Home
last modified time | relevance | path

Searched refs:sensorList (Results 1 – 8 of 8) sorted by relevance

/frameworks/base/native/android/
Dsensor.cpp93 Sensor const* const* sensorList; in ASensorManager_getDefaultSensorEx() local
94 size_t size = static_cast<SensorManager*>(manager)->getSensorList(&sensorList); in ASensorManager_getDefaultSensorEx()
96 if (ASensor_getType(sensorList[i]) == type && in ASensorManager_getDefaultSensorEx()
97 ASensor_isWakeUpSensor(sensorList[i]) == wakeUp) { in ASensorManager_getDefaultSensorEx()
98 return reinterpret_cast<ASensor const *>(sensorList[i]); in ASensorManager_getDefaultSensorEx()
/frameworks/base/core/jni/
Dandroid_hardware_SensorManager.cpp203 Sensor const* const* sensorList; in nativeGetSensorAtIndex() local
204 ssize_t count = mgr->getSensorList(&sensorList); in nativeGetSensorAtIndex()
209 return translateNativeSensorToJavaSensor(env, sensor, *sensorList[index]) != NULL; in nativeGetSensorAtIndex()
213 nativeGetDynamicSensors(JNIEnv *env, jclass clazz, jlong sensorManager, jobject sensorList) { in nativeGetDynamicSensors() argument
226 env->CallBooleanMethod(sensorList, listOffsets.add, sensor); in nativeGetDynamicSensors()
/frameworks/base/services/tests/servicestests/src/com/android/server/display/whitebalance/
DAmbientSensorTest.java129 final List<Sensor> sensorList = ImmutableList.of(mLightSensor, mAmbientColorSensor); in testAmbientColorTemperatureSensorCallback_CallbacksCalled() local
130 when(mSensorManagerMock.getSensorList(Sensor.TYPE_ALL)).thenReturn(sensorList); in testAmbientColorTemperatureSensorCallback_CallbacksCalled()
DAmbientLuxTest.java88 final List<Sensor> sensorList = ImmutableList.of(mLightSensor, mAmbientColorSensor); in setUp() local
89 when(mSensorManagerMock.getSensorList(Sensor.TYPE_ALL)).thenReturn(sensorList); in setUp()
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/sensors/
DThresholdSensorImpl.java325 List<Sensor> sensorList = mSensorManager.getSensorList(Sensor.TYPE_ALL); in findSensorByType() local
327 for (Sensor s : sensorList) { in findSensorByType()
/frameworks/base/packages/SystemUI/src/com/android/systemui/doze/
DDozeSensors.java252 List<Sensor> sensorList = sensorManager.getSensorList(Sensor.TYPE_ALL); in findSensorWithType() local
253 for (Sensor s : sensorList) { in findSensorWithType()
/frameworks/native/services/sensorservice/
DSensorService.h410 void makeUuidsIntoIdsForSensorList(Vector<Sensor> &sensorList) const;
DSensorService.cpp1258 void SensorService::makeUuidsIntoIdsForSensorList(Vector<Sensor> &sensorList) const { in makeUuidsIntoIdsForSensorList()
1259 for (auto &sensor : sensorList) { in makeUuidsIntoIdsForSensorList()