Searched refs:sensorList (Results 1 – 8 of 8) sorted by relevance
/frameworks/hardware/interfaces/sensorservice/aidl/vts/ |
D | VtsHalSensorManagerTargetTest.cpp | 109 std::vector<SensorInfo> sensorList; in TEST_P() local 110 auto res = GetSensorList(&sensorList); in TEST_P() 115 std::vector<SensorInfo> sensorList; in TEST_P() local 116 auto res = GetSensorList(&sensorList, [](const auto& info) { in TEST_P() 120 if (sensorList.empty()) { in TEST_P() 189 std::vector<SensorInfo> sensorList; in TEST_P() local 191 &sensorList, [](const auto& info) { return info.type == SensorType::ACCELEROMETER; }); in TEST_P() 196 if (sensorList.empty()) { in TEST_P() 200 ASSERT_THAT(sensorList, Contains(info)); in TEST_P() 207 std::vector<SensorInfo> sensorList; in TEST_P() local [all …]
|
/frameworks/base/native/android/ |
D | sensor.cpp | 103 Sensor const* const* sensorList; in ASensorManager_getDefaultSensorEx() local 104 size_t size = static_cast<SensorManager*>(manager)->getSensorList(&sensorList); in ASensorManager_getDefaultSensorEx() 106 if (ASensor_getType(sensorList[i]) == type && in ASensorManager_getDefaultSensorEx() 107 ASensor_isWakeUpSensor(sensorList[i]) == wakeUp) { in ASensorManager_getDefaultSensorEx() 108 return reinterpret_cast<ASensor const *>(sensorList[i]); in ASensorManager_getDefaultSensorEx()
|
/frameworks/base/core/jni/ |
D | android_hardware_SensorManager.cpp | 219 Sensor const* const* sensorList; in nativeGetSensorAtIndex() local 220 ssize_t count = mgr->getSensorList(&sensorList); in nativeGetSensorAtIndex() 225 return translateNativeSensorToJavaSensor(env, sensor, *sensorList[index]) != NULL; in nativeGetSensorAtIndex() 232 Vector<Sensor> sensorList; in nativeGetDefaultDeviceSensorAtIndex() local 233 ssize_t count = mgr->getDefaultDeviceSensorList(sensorList); in nativeGetDefaultDeviceSensorAtIndex() 238 return translateNativeSensorToJavaSensor(env, sensor, sensorList[index]) != NULL; in nativeGetDefaultDeviceSensorAtIndex() 242 nativeGetDynamicSensors(JNIEnv *env, jclass clazz, jlong sensorManager, jobject sensorList) { in nativeGetDynamicSensors() argument 255 env->CallBooleanMethod(sensorList, listOffsets.add, sensor); in nativeGetDynamicSensors() 260 jobject sensorList) { in nativeGetRuntimeSensors() argument 272 env->CallBooleanMethod(sensorList, listOffsets.add, sensor); in nativeGetRuntimeSensors()
|
/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/whitebalance/ |
D | AmbientSensorTest.java | 129 final List<Sensor> sensorList = ImmutableList.of(mLightSensor, mAmbientColorSensor); in testAmbientColorTemperatureSensorCallback_CallbacksCalled() local 130 when(mSensorManagerMock.getSensorList(Sensor.TYPE_ALL)).thenReturn(sensorList); in testAmbientColorTemperatureSensorCallback_CallbacksCalled()
|
D | AmbientLuxTest.java | 106 final List<Sensor> sensorList = ImmutableList.of(mLightSensor, mAmbientColorSensor); in setUp() local 107 when(mSensorManagerMock.getSensorList(Sensor.TYPE_ALL)).thenReturn(sensorList); in setUp()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/sensors/ |
D | ThresholdSensorImpl.java | 343 List<Sensor> sensorList = mSensorManager.getSensorList(Sensor.TYPE_ALL); in findSensorByType() local 345 for (Sensor s : sensorList) { in findSensorByType()
|
/frameworks/native/services/sensorservice/ |
D | SensorService.h | 488 void makeUuidsIntoIdsForSensorList(Vector<Sensor> &sensorList) const;
|
D | SensorService.cpp | 1510 void SensorService::makeUuidsIntoIdsForSensorList(Vector<Sensor> &sensorList) const { in makeUuidsIntoIdsForSensorList() 1511 for (auto &sensor : sensorList) { in makeUuidsIntoIdsForSensorList()
|