/frameworks/hardware/interfaces/sensorservice/aidl/vts/ |
D | VtsHalSensorManagerTargetTest.cpp | 141 std::vector<SensorInfo> sensorList; in TEST_P() local 142 auto res = GetSensorList(&sensorList); in TEST_P() 147 std::vector<SensorInfo> sensorList; in TEST_P() local 148 auto res = GetSensorList(&sensorList, [](const auto& info) { in TEST_P() 152 if (sensorList.empty()) { in TEST_P() 221 std::vector<SensorInfo> sensorList; in TEST_P() local 223 &sensorList, [](const auto& info) { return info.type == SensorType::ACCELEROMETER; }); in TEST_P() 228 if (sensorList.empty()) { in TEST_P() 232 ASSERT_THAT(sensorList, Contains(info)); in TEST_P() 239 std::vector<SensorInfo> sensorList; in TEST_P() local [all …]
|
/frameworks/base/services/core/java/com/android/server/power/stats/processor/ |
D | SensorPowerStatsProcessor.java | 83 List<Sensor> sensorList = mSensorManager.getSensorList(Sensor.TYPE_ALL); in ensureInitialized() local 84 mStatsLayout = new SensorPowerStatsLayout(sensorList.stream().collect( in ensureInitialized() 85 Collectors.toMap(Sensor::getHandle, sensor -> makeLabel(sensor, sensorList)))); in ensureInitialized() 102 private String makeLabel(Sensor sensor, List<Sensor> sensorList) { in makeLabel() argument 107 for (int i = sensorList.size() - 1; i >= 0; i--) { in makeLabel() 108 Sensor s = sensorList.get(i); in makeLabel() 243 List<Sensor> sensorList = mSensorManager.getSensorList(Sensor.TYPE_ALL); in computeUidPowerEstimates() local 244 int[] uidSensorDurationPositions = new int[sensorList.size()]; in computeUidPowerEstimates() 245 double[] sensorPower = new double[sensorList.size()]; in computeUidPowerEstimates() 246 for (int i = sensorList.size() - 1; i >= 0; i--) { in computeUidPowerEstimates() [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 | 220 Sensor const* const* sensorList; in nativeGetSensorAtIndex() local 221 ssize_t count = mgr->getSensorList(&sensorList); in nativeGetSensorAtIndex() 226 return translateNativeSensorToJavaSensor(env, sensor, *sensorList[index]) != NULL; in nativeGetSensorAtIndex() 233 Vector<Sensor> sensorList; in nativeGetDefaultDeviceSensorAtIndex() local 234 ssize_t count = mgr->getDefaultDeviceSensorList(sensorList); in nativeGetDefaultDeviceSensorAtIndex() 239 return translateNativeSensorToJavaSensor(env, sensor, sensorList[index]) != NULL; in nativeGetDefaultDeviceSensorAtIndex() 243 nativeGetDynamicSensors(JNIEnv *env, jclass clazz, jlong sensorManager, jobject sensorList) { in nativeGetDynamicSensors() argument 256 env->CallBooleanMethod(sensorList, listOffsets.add, sensor); in nativeGetDynamicSensors() 261 jobject sensorList) { in nativeGetRuntimeSensors() argument 273 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/libs/sensor/ |
D | SensorManager.cpp | 80 bool findSensorNameInList(int32_t handle, const Vector<Sensor>& sensorList, in findSensorNameInList() argument 82 for (auto& sensor : sensorList) { in findSensorNameInList()
|
/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()
|