/frameworks/base/services/core/java/com/android/server/display/whitebalance/ |
D | AmbientSensor.java | 78 AmbientSensor(String tag, @NonNull Handler handler, @NonNull SensorManager sensorManager, in AmbientSensor() argument 80 validateArguments(handler, sensorManager, rate); in AmbientSensor() 84 mSensorManager = sensorManager; in AmbientSensor() 142 private static void validateArguments(Handler handler, SensorManager sensorManager, int rate) { in validateArguments() argument 144 Objects.requireNonNull(sensorManager, "sensorManager cannot be null"); in validateArguments() 249 AmbientBrightnessSensor(@NonNull Handler handler, @NonNull SensorManager sensorManager, in AmbientBrightnessSensor() argument 251 super(TAG, handler, sensorManager, rate); in AmbientBrightnessSensor() 329 @NonNull SensorManager sensorManager, String name, int rate) { in AmbientColorTemperatureSensor() argument 330 super(TAG, handler, sensorManager, rate); in AmbientColorTemperatureSensor()
|
D | DisplayWhiteBalanceFactory.java | 60 SensorManager sensorManager, Resources resources) { in create() argument 62 createBrightnessSensor(handler, sensorManager, resources); in create() 66 createColorTemperatureSensor(handler, sensorManager, resources); in create() 112 SensorManager sensorManager, Resources resources) { in createBrightnessSensor() argument 115 return new AmbientSensor.AmbientBrightnessSensor(handler, sensorManager, rate); in createBrightnessSensor() 123 Handler handler, SensorManager sensorManager, Resources resources) { in createColorTemperatureSensor() argument 130 return new AmbientSensor.AmbientColorTemperatureSensor(handler, sensorManager, name, rate); in createColorTemperatureSensor()
|
/frameworks/base/core/tests/coretests/src/android/hardware/input/ |
D | InputDeviceSensorManagerTest.java | 181 SensorManager sensorManager = device.getSensorManager(); in getInputDeviceSensors_withExpectedType() local 182 List<Sensor> accelList = sensorManager.getSensorList(Sensor.TYPE_ACCELEROMETER); in getInputDeviceSensors_withExpectedType() 188 List<Sensor> gyroList = sensorManager.getSensorList(Sensor.TYPE_GYROSCOPE); in getInputDeviceSensors_withExpectedType() 201 SensorManager sensorManager = device.getSensorManager(); in getInputDeviceSensors_withUnexpectedType() local 203 List<Sensor> gameRotationList = sensorManager.getSensorList( in getInputDeviceSensors_withUnexpectedType() 208 List<Sensor> gravityList = sensorManager.getSensorList(Sensor.TYPE_GRAVITY); in getInputDeviceSensors_withUnexpectedType() 218 SensorManager sensorManager = device.getSensorManager(); in testInputDeviceSensorListener() local 219 Sensor sensor = sensorManager.getDefaultSensor(Sensor.TYPE_ACCELEROMETER); in testInputDeviceSensorListener() 229 assertTrue(sensorManager.registerListener(listener, sensor, in testInputDeviceSensorListener() 247 sensorManager.unregisterListener(listener); in testInputDeviceSensorListener()
|
/frameworks/base/services/core/java/com/android/server/display/utils/ |
D | SensorUtils.java | 34 public static Sensor findSensor(SensorManager sensorManager, String sensorType, in findSensor() argument 39 final List<Sensor> sensors = sensorManager.getSensorList(Sensor.TYPE_ALL); in findSensor() 48 return sensorManager.getDefaultSensor(fallbackType); in findSensor()
|
/frameworks/base/core/jni/ |
D | android_hardware_SensorManager.cpp | 199 nativeGetSensorAtIndex(JNIEnv *env, jclass clazz, jlong sensorManager, jobject sensor, jint index) in nativeGetSensorAtIndex() argument 201 SensorManager* mgr = reinterpret_cast<SensorManager*>(sensorManager); in nativeGetSensorAtIndex() 213 nativeGetDynamicSensors(JNIEnv *env, jclass clazz, jlong sensorManager, jobject sensorList) { in nativeGetDynamicSensors() argument 215 SensorManager* mgr = reinterpret_cast<SensorManager*>(sensorManager); in nativeGetDynamicSensors() 230 static jboolean nativeIsDataInjectionEnabled(JNIEnv *_env, jclass _this, jlong sensorManager) { in nativeIsDataInjectionEnabled() argument 231 SensorManager* mgr = reinterpret_cast<SensorManager*>(sensorManager); in nativeIsDataInjectionEnabled() 235 static jint nativeCreateDirectChannel(JNIEnv *_env, jclass _this, jlong sensorManager, in nativeCreateDirectChannel() argument 256 SensorManager* mgr = reinterpret_cast<SensorManager*>(sensorManager); in nativeCreateDirectChannel() 260 static void nativeDestroyDirectChannel(JNIEnv *_env, jclass _this, jlong sensorManager, in nativeDestroyDirectChannel() argument 262 SensorManager* mgr = reinterpret_cast<SensorManager*>(sensorManager); in nativeDestroyDirectChannel() [all …]
|
/frameworks/base/services/core/java/com/android/server/ |
D | GestureLauncherService.java | 275 SensorManager sensorManager = (SensorManager) mContext.getSystemService( in unregisterCameraLaunchGesture() local 277 sensorManager.unregisterListener(mGestureListener); in unregisterCameraLaunchGesture() 290 SensorManager sensorManager = (SensorManager) mContext.getSystemService( in registerCameraLaunchGesture() local 298 mCameraLaunchSensor = sensorManager.getDefaultSensor( in registerCameraLaunchGesture() 307 mCameraLaunchRegistered = sensorManager.registerListener(mGestureListener, in registerCameraLaunchGesture() 326 SensorManager sensorManager = (SensorManager) mContext.getSystemService( in unregisterCameraLiftTrigger() local 328 sensorManager.cancelTriggerSensor(mCameraLiftTriggerListener, mCameraLiftTriggerSensor); in unregisterCameraLiftTrigger() 339 SensorManager sensorManager = (SensorManager) mContext.getSystemService( in registerCameraLiftTrigger() local 347 mCameraLiftTriggerSensor = sensorManager.getDefaultSensor( in registerCameraLiftTrigger() 356 … mCameraLiftRegistered = sensorManager.requestTriggerSensor(mCameraLiftTriggerListener, in registerCameraLiftTrigger() [all …]
|
/frameworks/native/libs/sensor/ |
D | SensorManager.cpp | 49 SensorManager* sensorManager; in getInstanceForPackage() local 53 sensorManager = iterator->second; in getInstanceForPackage() 79 sensorManager = new SensorManager(opPackageName); in getInstanceForPackage() 85 sPackageInstances.insert(std::make_pair(String16(), sensorManager)); in getInstanceForPackage() 89 sPackageInstances.insert(std::make_pair(opPackageName, sensorManager)); in getInstanceForPackage() 92 return *sensorManager; in getInstanceForPackage()
|
/frameworks/base/core/tests/coretests/src/com/android/internal/os/ |
D | SensorPowerCalculatorTest.java | 58 SensorManager sensorManager = mock(SensorManager.class); in testTimerBasedModel() local 59 when(sensorManager.getSensorList(Sensor.TYPE_ALL)) in testTimerBasedModel() 68 SensorPowerCalculator calculator = new SensorPowerCalculator(sensorManager); in testTimerBasedModel()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/sensors/ |
D | SensorModule.java | 34 static ThresholdSensor providePrimaryProxSensor(SensorManager sensorManager, in providePrimaryProxSensor() argument 44 Sensor defaultSensor = sensorManager.getDefaultSensor(Sensor.TYPE_PROXIMITY, in providePrimaryProxSensor()
|
D | ThresholdSensorImpl.java | 65 private ThresholdSensorImpl(AsyncSensorManager sensorManager, Sensor sensor, in ThresholdSensorImpl() argument 67 mSensorManager = sensorManager; in ThresholdSensorImpl() 227 Builder(@Main Resources resources, AsyncSensorManager sensorManager, Execution execution) { in Builder() argument 229 mSensorManager = sensorManager; in Builder()
|
D | AsyncSensorManager.java | 63 public AsyncSensorManager(SensorManager sensorManager, ThreadFactory threadFactory, in AsyncSensorManager() argument 65 mInner = sensorManager; in AsyncSensorManager()
|
/frameworks/base/tests/SilkFX/src/com/android/test/silkfx/materials/ |
D | GlassView.kt | 59 private val sensorManager = context.getSystemService(SensorManager::class.java) constant 184 sensorManager?.getSensorList(Sensor.TYPE_GYROSCOPE)?.firstOrNull().let { in onAttachedToWindow() 185 sensorManager?.registerListener(sensorListener, it, SensorManager.SENSOR_DELAY_GAME) in onAttachedToWindow() 190 sensorManager?.unregisterListener(sensorListener) in onDetachedFromWindow()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/doze/dagger/ |
D | DozeModule.java | 97 AsyncSensorManager sensorManager, Context context) { in providesBrightnessSensor() argument 98 return Optional.ofNullable(DozeSensors.findSensorWithType(sensorManager, in providesBrightnessSensor()
|
/frameworks/base/core/java/com/android/internal/os/ |
D | SensorPowerCalculator.java | 32 public SensorPowerCalculator(SensorManager sensorManager) { in SensorPowerCalculator() argument 33 List<Sensor> sensors = sensorManager.getSensorList(Sensor.TYPE_ALL); in SensorPowerCalculator()
|
/frameworks/base/services/core/java/com/android/server/power/ |
D | WirelessChargerDetector.java | 143 public WirelessChargerDetector(SensorManager sensorManager, in WirelessChargerDetector() argument 145 mSensorManager = sensorManager; in WirelessChargerDetector() 149 mGravitySensor = sensorManager.getDefaultSensor(Sensor.TYPE_GRAVITY); in WirelessChargerDetector()
|
/frameworks/base/services/core/java/com/android/server/policy/ |
D | DeviceStateProviderImpl.java | 262 final SensorManager sensorManager = mContext.getSystemService(SensorManager.class); in setStateConditions() local 265 sensorManager.registerListener(this, sensor, SensorManager.SENSOR_DELAY_FASTEST); in setStateConditions() 271 final SensorManager sensorManager = mContext.getSystemService(SensorManager.class); in findSensor() local 272 final List<Sensor> sensors = sensorManager.getSensorList(Sensor.TYPE_ALL); in findSensor()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/display/ |
D | DisplayModeDirectorTest.java | 680 SensorManager sensorManager = createMockSensorManager(createLightSensor()); 684 director.start(sensorManager); 700 SensorManager sensorManager = createMockSensorManager(createLightSensor()); 708 director.start(sensorManager); 741 SensorManager sensorManager = createMockSensorManager(lightSensor); 743 director.start(sensorManager); 747 Mockito.verify(sensorManager, Mockito.timeout(TimeUnit.SECONDS.toMillis(1))) 789 SensorManager sensorManager = createMockSensorManager(lightSensor); 791 director.start(sensorManager); 795 verify(sensorManager, Mockito.timeout(TimeUnit.SECONDS.toMillis(1))) [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/doze/ |
D | DozeScreenBrightness.java | 86 AsyncSensorManager sensorManager, in DozeScreenBrightness() argument 93 mSensorManager = sensorManager; in DozeScreenBrightness()
|
D | DozeSensors.java | 105 DozeSensors(Context context, AsyncSensorManager sensorManager, in DozeSensors() argument 111 mSensorManager = sensorManager; in DozeSensors() 248 public static Sensor findSensorWithType(SensorManager sensorManager, String type) { in findSensorWithType() argument 252 List<Sensor> sensorList = sensorManager.getSensorList(Sensor.TYPE_ALL); in findSensorWithType()
|
D | DozeTriggers.java | 176 DozeParameters dozeParameters, AsyncSensorManager sensorManager, in DozeTriggers() argument 187 mSensorManager = sensorManager; in DozeTriggers()
|
/frameworks/base/services/core/java/com/android/server/biometrics/sensors/ |
D | LoggableMonitor.java | 361 protected Sensor getAmbientLightSensor(@NonNull SensorManager sensorManager) { in getAmbientLightSensor() argument 362 return mShouldLogMetrics ? sensorManager.getDefaultSensor(Sensor.TYPE_LIGHT) : null; in getAmbientLightSensor()
|
/frameworks/base/core/java/android/hardware/ |
D | LegacySensorManager.java | 46 public LegacySensorManager(SensorManager sensorManager) { in LegacySensorManager() argument 47 mSensorManager = sensorManager; in LegacySensorManager()
|
/frameworks/base/services/core/java/com/android/server/display/ |
D | AutomaticBrightnessController.java | 218 SensorManager sensorManager, Sensor lightSensor, BrightnessMappingStrategy mapper, in AutomaticBrightnessController() argument 225 this(new Injector(), callbacks, looper, sensorManager, lightSensor, mapper, in AutomaticBrightnessController() 236 SensorManager sensorManager, Sensor lightSensor, BrightnessMappingStrategy mapper, in AutomaticBrightnessController() argument 246 mSensorManager = sensorManager; in AutomaticBrightnessController()
|
D | DisplayModeDirector.java | 171 public void start(SensorManager sensorManager) { in start() argument 174 mBrightnessObserver.observe(sensorManager); in start() 1527 public void registerLightSensor(SensorManager sensorManager, Sensor lightSensor) { in registerLightSensor() argument 1528 mSensorManager = sensorManager; in registerLightSensor() 1535 public void observe(SensorManager sensorManager) { in observe() argument 1536 mSensorManager = sensorManager; in observe() 2168 final SensorManagerInternal sensorManager = in observe() local 2170 sensorManager.addProximityActiveListener(BackgroundThread.getExecutor(), this); in observe()
|
D | BrightnessTracker.java | 1049 SensorManager sensorManager = context.getSystemService(SensorManager.class); in registerSensorListener() local 1050 Sensor lightSensor = sensorManager.getDefaultSensor(Sensor.TYPE_LIGHT); in registerSensorListener() 1051 sensorManager.registerListener(sensorListener, in registerSensorListener() 1056 SensorManager sensorManager = context.getSystemService(SensorManager.class); in unregisterSensorListener() local 1057 sensorManager.unregisterListener(sensorListener); in unregisterSensorListener()
|