/frameworks/native/services/sensorservice/ |
D | SensorDevice.cpp | 62 checkReturn(mSensors->getSensorsList( in SensorDevice() 81 checkReturn(mSensors->activate(list[i].sensorHandle, 0 /* enabled */)); in SensorDevice() 86 (checkReturn(mSensors->unregisterDirectChannel(-1)) != Result::INVALID_OPERATION); in SensorDevice() 94 mSensors = ISensors::getService(); in connectHidlService() 95 if (mSensors == nullptr) { in connectHidlService() 104 if(mSensors->poll(0, [](auto, const auto &, const auto &) {}).isOk()) { in connectHidlService() 110 mSensors = nullptr; in connectHidlService() 114 return (mSensors != nullptr); in connectHidlService() 122 checkReturn(mSensors->activate(handle, 0 /* enabled */)); in handleDynamicSensorConnection() 129 if (mSensors == nullptr) return "HAL not initialized\n"; in dump() [all …]
|
D | SensorService.cpp | 234 mSensors.forEachSensor( in onFirstRef() 308 if (mSensors.add(handle, s, isDebug, isVirtual)){ in registerSensor() 312 return mSensors.getNonSensor(); in registerSensor() 321 bool ret = mSensors.remove(handle); in unregisterDynamicSensorLocked() 420 } else if (!mSensors.hasAnySensor()) { in dump() 430 result.append(mSensors.dump().c_str()); in dump() 437 sp<SensorInterface> s = mSensors.getInterface(i.first); in dump() 620 const size_t vcount = mSensors.getVirtualSensors().size(); in threadLoop() 687 sp<SensorInterface> si = mSensors.getInterface(handle); in threadLoop() 745 if (mSensors.isNewHandle(handle)) { in threadLoop() [all …]
|
D | SensorDevice.h | 106 sp<hardware::sensors::V1_0::ISensors> mSensors; variable
|
D | SensorService.h | 280 SensorList mSensors; variable
|
/frameworks/base/core/java/android/hardware/ |
D | LegacySensorManager.java | 209 private int mSensors; field in LegacySensorManager.LegacyListener 214 mSensors = 0; in LegacyListener() 218 if ((mSensors & legacyType) != 0) { in registerSensor() 221 boolean alreadyHasOrientationSensor = hasOrientationSensor(mSensors); in registerSensor() 222 mSensors |= legacyType; in registerSensor() 230 if ((mSensors & legacyType) == 0) { in unregisterSensor() 233 mSensors &= ~legacyType; in unregisterSensor() 234 if (hasOrientationSensor(legacyType) && hasOrientationSensor(mSensors)) { in unregisterSensor() 241 return mSensors != 0; in hasSensors() 267 if ((mSensors & SensorManager.SENSOR_ORIENTATION_RAW) != 0) { in onSensorChanged() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/doze/ |
D | DozeTriggersTest.java | 58 private FakeSensorManager mSensors; field in DozeTriggersTest 77 mSensors = new FakeSensorManager(mContext); in setUp() 81 mSensors, Handler.createAsync(Looper.myLooper()), mWakeLock, true); in setUp() 93 mSensors.getMockProximitySensor().sendProximityResult(false); /* Near */ in testOnNotification_stillWorksAfterOneFailedProxCheck() 100 mSensors.getMockProximitySensor().sendProximityResult(true); /* Far */ in testOnNotification_stillWorksAfterOneFailedProxCheck()
|
/frameworks/base/core/java/com/android/internal/os/ |
D | SensorPowerCalculator.java | 28 private final List<Sensor> mSensors; field in SensorPowerCalculator 33 mSensors = sensorManager.getSensorList(Sensor.TYPE_ALL); in SensorPowerCalculator() 55 final int sensorsCount = mSensors.size(); in calculateApp() 57 final Sensor s = mSensors.get(i); in calculateApp()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/doze/ |
D | DozeSensors.java | 59 private final TriggerSensor[] mSensors; field in DozeSensors 85 mSensors = new TriggerSensor[] { in DozeSensors() 137 for (TriggerSensor s : mSensors) { in setListening() 150 for (TriggerSensor sensor : mSensors) { in setTouchscreenSensorsListening() 158 for (TriggerSensor s : mSensors) { in reregisterAllSensors() 161 for (TriggerSensor s : mSensors) { in reregisterAllSensors() 167 for (TriggerSensor s : mSensors) { in onUserSwitched() 182 for (TriggerSensor s : mSensors) { 194 for (TriggerSensor s : mSensors) { in dump()
|
/frameworks/hardware/interfaces/sensorservice/libsensorndkbridge/ |
D | ASensorManager.cpp | 102 mSensors = list; in getSensorList() 107 mSensorList.reset(new ASensorRef[mSensors.size()]); in getSensorList() 108 for (size_t i = 0; i < mSensors.size(); ++i) { in getSensorList() 110 reinterpret_cast<ASensorRef>(&mSensors[i]); in getSensorList() 118 return mSensors.size(); in getSensorList() 133 for (size_t i = 0; i < mSensors.size(); ++i) { in getDefaultSensor() 134 if (sensor == mSensors[i]) { in getDefaultSensor() 136 reinterpret_cast<ASensorRef>(&mSensors[i]); in getDefaultSensor()
|
D | ASensorManager.h | 68 android::hardware::hidl_vec<SensorInfo> mSensors; member
|
/frameworks/native/libs/sensor/ |
D | SensorManager.cpp | 132 mSensors.clear(); in sensorManagerDied() 163 mSensors = mSensorServer->getSensorList(mOpPackageName); in assertStateLocked() 164 size_t count = mSensors.size(); in assertStateLocked() 170 mSensorList[i] = mSensors.array() + i; in assertStateLocked() 184 return static_cast<ssize_t>(mSensors.size()); in getSensorList() 218 for (size_t i=0 ; i<mSensors.size() ; i++) { in getDefaultSensor()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/utils/hardware/ |
D | FakeSensorManager.java | 55 private final FakeGenericSensor[] mSensors; field in FakeSensorManager 65 mSensors = new FakeGenericSensor[]{ in FakeSensorManager() 93 .stream(mSensors) in getFullSensorList() 106 for (FakeGenericSensor s : mSensors) { in unregisterListenerImpl() 119 for (FakeGenericSensor s : mSensors) { in registerListenerImpl()
|
/frameworks/native/libs/sensor/include/sensor/ |
D | SensorManager.h | 84 Vector<Sensor> mSensors; variable
|