/frameworks/base/services/core/java/com/android/server/display/whitebalance/ |
D | AmbientSensor.java | 77 AmbientSensor(String tag, @NonNull Handler handler, @NonNull SensorManager sensorManager, in AmbientSensor() argument 79 validateArguments(handler, sensorManager, rate); in AmbientSensor() 83 mSensorManager = sensorManager; in AmbientSensor() 141 private static void validateArguments(Handler handler, SensorManager sensorManager, int rate) { in validateArguments() argument 143 Preconditions.checkNotNull(sensorManager, "sensorManager cannot be null"); in validateArguments() 248 AmbientBrightnessSensor(@NonNull Handler handler, @NonNull SensorManager sensorManager, in AmbientBrightnessSensor() argument 250 super(TAG, handler, sensorManager, rate); in AmbientBrightnessSensor() 328 @NonNull SensorManager sensorManager, String name, int rate) { in AmbientColorTemperatureSensor() argument 329 super(TAG, handler, sensorManager, rate); in AmbientColorTemperatureSensor()
|
D | DisplayWhiteBalanceFactory.java | 58 SensorManager sensorManager, Resources resources) { in create() argument 60 createBrightnessSensor(handler, sensorManager, resources); in create() 63 createColorTemperatureSensor(handler, sensorManager, resources); in create() 93 SensorManager sensorManager, Resources resources) { in createBrightnessSensor() argument 96 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/packages/SystemUI/src/com/android/systemui/doze/ |
D | DozeFactory.java | 47 SensorManager sensorManager = Dependency.get(AsyncSensorManager.class); in assembleMachine() local 68 createDozeTriggers(context, sensorManager, host, alarmManager, config, params, in assembleMachine() 72 createDozeScreenBrightness(context, wrappedService, sensorManager, host, params, in assembleMachine() 82 DozeMachine.Service service, SensorManager sensorManager, DozeHost host, in createDozeScreenBrightness() argument 84 Sensor sensor = DozeSensors.findSensorWithType(sensorManager, in createDozeScreenBrightness() 86 return new DozeScreenBrightness(context, service, sensorManager, sensor, host, handler, in createDozeScreenBrightness() 90 private DozeTriggers createDozeTriggers(Context context, SensorManager sensorManager, in createDozeTriggers() argument 96 sensorManager, handler, wakeLock, allowPulseTriggers, dockManager); in createDozeTriggers()
|
D | DozeScreenBrightness.java | 72 SensorManager sensorManager, Sensor lightSensor, DozeHost host, in DozeScreenBrightness() argument 77 mSensorManager = sensorManager; in DozeScreenBrightness() 95 SensorManager sensorManager, Sensor lightSensor, DozeHost host, in DozeScreenBrightness() argument 97 this(context, service, sensorManager, lightSensor, host, handler, in DozeScreenBrightness()
|
D | DozeSensors.java | 81 public DozeSensors(Context context, AlarmManager alarmManager, SensorManager sensorManager, in DozeSensors() argument 86 mSensorManager = sensorManager; in DozeSensors() 161 static Sensor findSensorWithType(SensorManager sensorManager, String type) { in findSensorWithType() argument 165 List<Sensor> sensorList = sensorManager.getSensorList(Sensor.TYPE_ALL); in findSensorWithType()
|
D | DozeTriggers.java | 91 DozeParameters dozeParameters, SensorManager sensorManager, Handler handler, in DozeTriggers() argument 98 mSensorManager = sensorManager; in DozeTriggers()
|
/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 | 214 SensorManager sensorManager = (SensorManager) mContext.getSystemService( in unregisterCameraLaunchGesture() local 216 sensorManager.unregisterListener(mGestureListener); in unregisterCameraLaunchGesture() 229 SensorManager sensorManager = (SensorManager) mContext.getSystemService( in registerCameraLaunchGesture() local 237 mCameraLaunchSensor = sensorManager.getDefaultSensor( in registerCameraLaunchGesture() 246 mCameraLaunchRegistered = sensorManager.registerListener(mGestureListener, in registerCameraLaunchGesture() 265 SensorManager sensorManager = (SensorManager) mContext.getSystemService( in unregisterCameraLiftTrigger() local 267 sensorManager.cancelTriggerSensor(mCameraLiftTriggerListener, mCameraLiftTriggerSensor); in unregisterCameraLiftTrigger() 278 SensorManager sensorManager = (SensorManager) mContext.getSystemService( in registerCameraLiftTrigger() local 286 mCameraLiftTriggerSensor = sensorManager.getDefaultSensor( in registerCameraLiftTrigger() 295 … 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/services/core/java/com/android/server/policy/ |
D | DisplayFoldController.java | 162 final SensorManager sensorManager = context.getSystemService(SensorManager.class); in createWithProxSensor() local 163 final Sensor proxSensor = sensorManager.getDefaultSensor(Sensor.TYPE_PROXIMITY); in createWithProxSensor() 169 sensorManager.registerListener(new SensorEventListener() { in createWithProxSensor()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/util/ |
D | AsyncSensorManagerTest.java | 102 public TestableAsyncSensorManager(SensorManager sensorManager) { in TestableAsyncSensorManager() argument 103 super(sensorManager, mPluginManager); in TestableAsyncSensorManager()
|
/frameworks/base/core/java/com/android/internal/os/ |
D | SensorPowerCalculator.java | 31 public SensorPowerCalculator(PowerProfile profile, SensorManager sensorManager, in SensorPowerCalculator() argument 33 mSensors = 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()
|
D | PowerManagerService.java | 721 SensorManager sensorManager, SuspendBlocker suspendBlocker, Handler handler) { in createWirelessChargerDetector() argument 722 return new WirelessChargerDetector(sensorManager, suspendBlocker, handler); in createWirelessChargerDetector() 837 SensorManager sensorManager = new SystemSensorManager(mContext, mHandler.getLooper()); in systemReady() local 846 mWirelessChargerDetector = mInjector.createWirelessChargerDetector(sensorManager, in systemReady() 857 mDisplayPowerCallbacks, mHandler, sensorManager); in systemReady()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/ |
D | AsyncSensorManager.java | 69 AsyncSensorManager(SensorManager sensorManager, PluginManager pluginManager) { in AsyncSensorManager() argument 70 mInner = sensorManager; in AsyncSensorManager()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/classifier/brightline/ |
D | BrightLineFalsingManager.java | 66 SensorManager sensorManager) { in BrightLineFalsingManager() argument 68 mSensorManager = sensorManager; in BrightLineFalsingManager()
|
/frameworks/base/core/java/android/hardware/ |
D | LegacySensorManager.java | 46 public LegacySensorManager(SensorManager sensorManager) { in LegacySensorManager() argument 47 mSensorManager = sensorManager; in LegacySensorManager()
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/ |
D | SarManager.java | 102 SensorManager sensorManager, in SarManager() argument 109 mSensorManager = sensorManager; in SarManager()
|
/frameworks/base/services/core/java/com/android/server/display/ |
D | BrightnessTracker.java | 1006 SensorManager sensorManager = context.getSystemService(SensorManager.class); in registerSensorListener() local 1007 Sensor lightSensor = sensorManager.getDefaultSensor(Sensor.TYPE_LIGHT); in registerSensorListener() 1008 sensorManager.registerListener(sensorListener, in registerSensorListener() 1013 SensorManager sensorManager = context.getSystemService(SensorManager.class); in unregisterSensorListener() local 1014 sensorManager.unregisterListener(sensorListener); in unregisterSensorListener()
|
D | AutomaticBrightnessController.java | 219 SensorManager sensorManager, Sensor lightSensor, BrightnessMappingStrategy mapper, in AutomaticBrightnessController() argument 227 mSensorManager = sensorManager; in AutomaticBrightnessController()
|
D | DisplayPowerController.java | 392 SensorManager sensorManager, DisplayBlanker blanker) { in DisplayPowerController() argument 399 mSensorManager = sensorManager; in DisplayPowerController() 496 handler.getLooper(), sensorManager, lightSensor, mBrightnessMapper, in DisplayPowerController()
|
D | DisplayManagerService.java | 2342 SensorManager sensorManager) { in initPowerManagement() argument 2360 mContext, callbacks, handler, sensorManager, blanker); in initPowerManagement()
|
/frameworks/base/core/java/android/hardware/display/ |
D | DisplayManagerInternal.java | 41 Handler handler, SensorManager sensorManager); in initPowerManagement() argument
|
/frameworks/base/services/tests/servicestests/src/com/android/server/power/ |
D | PowerManagerServiceTest.java | 185 SensorManager sensorManager, SuspendBlocker suspendBlocker, Handler handler) { in setUp()
|