Home
last modified time | relevance | path

Searched refs:sensorManager (Results 1 – 25 of 26) sorted by relevance

12

/frameworks/base/services/core/java/com/android/server/display/whitebalance/
DAmbientSensor.java77 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()
DDisplayWhiteBalanceFactory.java58 SensorManager sensorManager, Resources resources) { in create() argument
60 createBrightnessSensor(handler, sensorManager, resources); in create()
63 createColorTemperatureSensor(handler, sensorManager, resources); in create()
108 SensorManager sensorManager, Resources resources) { in createBrightnessSensor() argument
111 return new AmbientSensor.AmbientBrightnessSensor(handler, sensorManager, rate); in createBrightnessSensor()
136 Handler handler, SensorManager sensorManager, Resources resources) { in createColorTemperatureSensor() argument
143 return new AmbientSensor.AmbientColorTemperatureSensor(handler, sensorManager, name, rate); in createColorTemperatureSensor()
/frameworks/base/packages/SystemUI/src/com/android/systemui/doze/
DDozeFactory.java49 SensorManager sensorManager = Dependency.get(AsyncSensorManager.class); in assembleMachine() local
72 createDozeTriggers(context, sensorManager, host, alarmManager, config, params, in assembleMachine()
76 createDozeScreenBrightness(context, wrappedService, sensorManager, host, params, in assembleMachine()
87 DozeMachine.Service service, SensorManager sensorManager, DozeHost host, in createDozeScreenBrightness() argument
89 Sensor sensor = DozeSensors.findSensorWithType(sensorManager, in createDozeScreenBrightness()
91 return new DozeScreenBrightness(context, service, sensorManager, sensor, host, handler, in createDozeScreenBrightness()
95 private DozeTriggers createDozeTriggers(Context context, SensorManager sensorManager, in createDozeTriggers() argument
101 sensorManager, handler, wakeLock, allowPulseTriggers, dockManager); in createDozeTriggers()
DDozeScreenBrightness.java72 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()
DDozeSensors.java83 public DozeSensors(Context context, AlarmManager alarmManager, SensorManager sensorManager, in DozeSensors() argument
88 mSensorManager = sensorManager; in DozeSensors()
165 static Sensor findSensorWithType(SensorManager sensorManager, String type) { in findSensorWithType() argument
169 List<Sensor> sensorList = sensorManager.getSensorList(Sensor.TYPE_ALL); in findSensorWithType()
DDozeTriggers.java92 DozeParameters dozeParameters, SensorManager sensorManager, Handler handler, in DozeTriggers() argument
99 mSensorManager = sensorManager; in DozeTriggers()
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/
DProximitySensor.java61 public ProximitySensor(Context context, AsyncSensorManager sensorManager) { in ProximitySensor() argument
62 mSensorManager = sensorManager; in ProximitySensor()
63 Sensor sensor = findCustomProxSensor(context, sensorManager); in ProximitySensor()
67 sensor = sensorManager.getDefaultSensor(Sensor.TYPE_PROXIMITY); in ProximitySensor()
93 public static Sensor findCustomProxSensor(Context context, SensorManager sensorManager) { in findCustomProxSensor() argument
99 List<Sensor> sensorList = sensorManager.getSensorList(Sensor.TYPE_ALL); in findCustomProxSensor()
DAsyncSensorManager.java69 AsyncSensorManager(SensorManager sensorManager, PluginManager pluginManager) { in AsyncSensorManager() argument
70 mInner = sensorManager; in AsyncSensorManager()
/frameworks/base/core/jni/
Dandroid_hardware_SensorManager.cpp199 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/
DGestureLauncherService.java214 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/
DSensorManager.cpp49 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/
DDisplayFoldController.java162 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/core/java/com/android/internal/os/
DSensorPowerCalculator.java31 public SensorPowerCalculator(PowerProfile profile, SensorManager sensorManager, in SensorPowerCalculator() argument
33 mSensors = sensorManager.getSensorList(Sensor.TYPE_ALL); in SensorPowerCalculator()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/util/
DAsyncSensorManagerTest.java102 public TestableAsyncSensorManager(SensorManager sensorManager) { in TestableAsyncSensorManager() argument
103 super(sensorManager, mPluginManager); in TestableAsyncSensorManager()
/frameworks/base/services/core/java/com/android/server/power/
DWirelessChargerDetector.java143 public WirelessChargerDetector(SensorManager sensorManager, in WirelessChargerDetector() argument
145 mSensorManager = sensorManager; in WirelessChargerDetector()
149 mGravitySensor = sensorManager.getDefaultSensor(Sensor.TYPE_GRAVITY); in WirelessChargerDetector()
DPowerManagerService.java729 SensorManager sensorManager, SuspendBlocker suspendBlocker, Handler handler) { in createWirelessChargerDetector() argument
730 return new WirelessChargerDetector(sensorManager, suspendBlocker, handler); in createWirelessChargerDetector()
845 SensorManager sensorManager = new SystemSensorManager(mContext, mHandler.getLooper()); in systemReady() local
854 mWirelessChargerDetector = mInjector.createWirelessChargerDetector(sensorManager, in systemReady()
865 mDisplayPowerCallbacks, mHandler, sensorManager); in systemReady()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DSarManager.java102 SensorManager sensorManager, in SarManager() argument
109 mSensorManager = sensorManager; in SarManager()
/frameworks/base/core/java/android/hardware/
DLegacySensorManager.java46 public LegacySensorManager(SensorManager sensorManager) { in LegacySensorManager() argument
47 mSensorManager = sensorManager; in LegacySensorManager()
/frameworks/base/services/core/java/com/android/server/display/
DAutomaticBrightnessController.java222 SensorManager sensorManager, Sensor lightSensor, BrightnessMappingStrategy mapper, in AutomaticBrightnessController() argument
229 this(new Injector(), callbacks, looper, sensorManager, lightSensor, mapper, in AutomaticBrightnessController()
239 SensorManager sensorManager, Sensor lightSensor, BrightnessMappingStrategy mapper, in AutomaticBrightnessController() argument
248 mSensorManager = sensorManager; in AutomaticBrightnessController()
DBrightnessTracker.java1009 SensorManager sensorManager = context.getSystemService(SensorManager.class); in registerSensorListener() local
1010 Sensor lightSensor = sensorManager.getDefaultSensor(Sensor.TYPE_LIGHT); in registerSensorListener()
1011 sensorManager.registerListener(sensorListener, in registerSensorListener()
1016 SensorManager sensorManager = context.getSystemService(SensorManager.class); in unregisterSensorListener() local
1017 sensorManager.unregisterListener(sensorListener); in unregisterSensorListener()
DDisplayModeDirector.java123 public void start(SensorManager sensorManager) { in start() argument
127 mBrightnessObserver.observe(sensorManager); in start()
848 public void observe(SensorManager sensorManager) { in observe() argument
849 mSensorManager = sensorManager; in observe()
DDisplayPowerController.java392 SensorManager sensorManager, DisplayBlanker blanker) { in DisplayPowerController() argument
399 mSensorManager = sensorManager; in DisplayPowerController()
496 handler.getLooper(), sensorManager, lightSensor, mBrightnessMapper, in DisplayPowerController()
DDisplayManagerService.java2344 SensorManager sensorManager) { in initPowerManagement() argument
2362 mContext, callbacks, handler, sensorManager, blanker); in initPowerManagement()
2363 mSensorManager = sensorManager; in initPowerManagement()
/frameworks/base/core/java/android/hardware/display/
DDisplayManagerInternal.java41 Handler handler, SensorManager sensorManager); in initPowerManagement() argument
/frameworks/base/services/tests/servicestests/src/com/android/server/power/
DPowerManagerServiceTest.java193 SensorManager sensorManager, SuspendBlocker suspendBlocker, Handler handler) { in createService()

12