From 9953697583cfd932f9d507b4ddb97c7cecd04d63 Mon Sep 17 00:00:00 2001 From: wanghuan16 Date: Fri, 12 May 2023 09:55:16 +0800 Subject: [PATCH] Correcting spelling errors in logs and comments. Change-Id: Iad9402806b6be212846870e26fdebc740f92adca Signed-off-by: wanghuan16 --- .../android/hardware/SensorAdditionalInfo.java | 2 +- core/java/android/hardware/SensorManager.java | 14 +++++++------- .../java/android/hardware/SystemSensorManager.java | 8 ++++---- 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/core/java/android/hardware/SensorAdditionalInfo.java b/core/java/android/hardware/SensorAdditionalInfo.java index 12edc5eb7e33f..59def9fb3325f 100644 --- a/core/java/android/hardware/SensorAdditionalInfo.java +++ b/core/java/android/hardware/SensorAdditionalInfo.java @@ -63,7 +63,7 @@ public class SensorAdditionalInfo { public final int[] intValues; /** - * Typical values of additional infomation type. The set of values is subject to extension in + * Typical values of additional information type. The set of values is subject to extension in * newer versions and vendors have the freedom of define their own custom values. * * @hide diff --git a/core/java/android/hardware/SensorManager.java b/core/java/android/hardware/SensorManager.java index 6d8c4a93b44eb..f05397669b34d 100644 --- a/core/java/android/hardware/SensorManager.java +++ b/core/java/android/hardware/SensorManager.java @@ -872,9 +872,9 @@ public abstract class SensorManager { /** * Flushes the FIFO of all the sensors registered for this listener. If there are events - * in the FIFO of the sensor, they are returned as if the maxReportLantecy of the FIFO has + * in the FIFO of the sensor, they are returned as if the maxReportLatency of the FIFO has * expired. Events are returned in the usual way through the SensorEventListener. - * This call doesn't affect the maxReportLantecy for this sensor. This call is asynchronous and + * This call doesn't affect the maxReportLatency for this sensor. This call is asynchronous and * returns immediately. * {@link android.hardware.SensorEventListener2#onFlushCompleted onFlushCompleted} is called * after all the events in the batch at the time of calling this method have been delivered @@ -902,7 +902,7 @@ public abstract class SensorManager { * Create a sensor direct channel backed by shared memory wrapped in MemoryFile object. * * The resulting channel can be used for delivering sensor events to native code, other - * processes, GPU/DSP or other co-processors without CPU intervention. This is the recommanded + * processes, GPU/DSP or other co-processors without CPU intervention. This is the recommended * for high performance sensor applications that use high sensor rates (e.g. greater than 200Hz) * and cares about sensor event latency. * @@ -924,7 +924,7 @@ public abstract class SensorManager { * Create a sensor direct channel backed by shared memory wrapped in HardwareBuffer object. * * The resulting channel can be used for delivering sensor events to native code, other - * processes, GPU/DSP or other co-processors without CPU intervention. This is the recommanded + * processes, GPU/DSP or other co-processors without CPU intervention. This is the recommended * for high performance sensor applications that use high sensor rates (e.g. greater than 200Hz) * and cares about sensor event latency. * @@ -1334,11 +1334,11 @@ public abstract class SensorManager { * returned by {@link #getRotationMatrix}. * * @param X - * defines the axis of the new cooridinate system that coincide with the X axis of the + * defines the axis of the new coordinate system that coincide with the X axis of the * original coordinate system. * * @param Y - * defines the axis of the new cooridinate system that coincide with the Y axis of the + * defines the axis of the new coordinate system that coincide with the Y axis of the * original coordinate system. * * @param outR @@ -1826,7 +1826,7 @@ public abstract class SensorManager { * This method is used to inject raw sensor data into the HAL. Call {@link * initDataInjection(boolean)} before this method to set the HAL in data injection mode. This * method should be called only if a previous call to initDataInjection has been successful and - * the HAL and SensorService are already opreating in data injection mode. + * the HAL and SensorService are already operating in data injection mode. * * @param sensor The sensor to inject. * @param values Sensor values to inject. The length of this diff --git a/core/java/android/hardware/SystemSensorManager.java b/core/java/android/hardware/SystemSensorManager.java index 1c4898a4c8d0f..3d87fa3f0a941 100644 --- a/core/java/android/hardware/SystemSensorManager.java +++ b/core/java/android/hardware/SystemSensorManager.java @@ -453,7 +453,7 @@ public class SystemSensorManager extends SensorManager { public void onReceive(Context context, Intent intent) { if (intent.getAction() == Intent.ACTION_DYNAMIC_SENSOR_CHANGED) { if (DEBUG_DYNAMIC_SENSOR) { - Log.i(TAG, "DYNS received DYNAMIC_SENSOR_CHANED broadcast"); + Log.i(TAG, "DYNS received DYNAMIC_SENSOR_CHANGED broadcast"); } // Dynamic sensors probably changed mDynamicSensorListDirty = true; @@ -498,7 +498,7 @@ public class SystemSensorManager extends SensorManager { protected void unregisterDynamicSensorCallbackImpl( DynamicSensorCallback callback) { if (DEBUG_DYNAMIC_SENSOR) { - Log.i(TAG, "Removing dynamic sensor listerner"); + Log.i(TAG, "Removing dynamic sensor listener"); } mDynamicSensorCallbacks.remove(callback); } @@ -624,7 +624,7 @@ public class SystemSensorManager extends SensorManager { } if (hardwareBuffer.getWidth() < MIN_DIRECT_CHANNEL_BUFFER_SIZE) { throw new IllegalArgumentException( - "Width if HaradwareBuffer must be greater than " + "Width if HardwareBuffer must be greater than " + MIN_DIRECT_CHANNEL_BUFFER_SIZE); } if ((hardwareBuffer.getUsage() & HardwareBuffer.USAGE_SENSOR_DIRECT_DATA) == 0) { @@ -655,7 +655,7 @@ public class SystemSensorManager extends SensorManager { /* * BaseEventQueue is the communication channel with the sensor service, - * SensorEventQueue, TriggerEventQueue are subclases and there is one-to-one mapping between + * SensorEventQueue, TriggerEventQueue are subclasses and there is one-to-one mapping between * the queues and the listeners. InjectEventQueue is also a sub-class which is a special case * where data is being injected into the sensor HAL through the sensor service. It is not * associated with any listener and there is one InjectEventQueue associated with a