/frameworks/native/services/sensorservice/ |
D | SensorsWrapper.h | 106 mSensors(sensors) { }; in SensorsWrapperBase() 109 return mSensors->getSensorsList(_hidl_cb); in getSensorsList() 113 return mSensors->setOperationMode(mode); in setOperationMode() 117 return mSensors->activate(sensorHandle, enabled); in activate() 122 return mSensors->batch(sensorHandle, samplingPeriodNs, maxReportLatencyNs); in batch() 126 return mSensors->flush(sensorHandle); in flush() 130 return mSensors->injectSensorData(event); in injectSensorData() 135 return mSensors->registerDirectChannel(mem, _hidl_cb); in registerDirectChannel() 139 return mSensors->unregisterDirectChannel(channelHandle); in unregisterDirectChannel() 145 return mSensors->configDirectReport(sensorHandle, channelHandle, rate, _hidl_cb); in configDirectReport() [all …]
|
D | SensorDevice.cpp | 112 (checkReturnAndGetStatus(mSensors->unregisterDirectChannel(-1)) != INVALID_OPERATION); in SensorDevice() 118 checkReturn(mSensors->getSensorsList( in initializeSensorList() 137 checkReturn(mSensors->activate(list[i].sensorHandle, 0 /* enabled */)); in initializeSensorList() 175 mSensors = new SensorServiceUtil::SensorsWrapperV1_0(sensors); in connectHidlServiceV1_0() 180 if(mSensors->poll(0, [](auto, const auto &, const auto &) {}).isOk()) { in connectHidlServiceV1_0() 187 mSensors = nullptr; in connectHidlServiceV1_0() 203 mSensors = new SensorServiceUtil::SensorsWrapperV2_0(sensors); in connectHidlServiceV2_0() 220 CHECK(mSensors != nullptr && mEventQueue != nullptr && in connectHidlServiceV2_0() 224 status_t status = checkReturnAndGetStatus(mSensors->initialize( in connectHidlServiceV2_0() 252 mSensors = nullptr; in reconnect() [all …]
|
D | SensorService.cpp | 239 mSensors.forEachSensor( in onFirstRef() 312 if (mSensors.add(handle, s, isDebug, isVirtual)){ in registerSensor() 316 return mSensors.getNonSensor(); in registerSensor() 325 bool ret = mSensors.remove(handle); in unregisterDynamicSensorLocked() 406 } else if (!mSensors.hasAnySensor()) { in dump() 421 result.append(mSensors.dump().c_str()); in dump() 428 sp<SensorInterface> s = mSensors.getInterface(i.first); in dump() 700 const size_t vcount = mSensors.getVirtualSensors().size(); in threadLoop() 765 sp<SensorInterface> si = mSensors.getInterface(handle); in threadLoop() 827 if (mSensors.isNewHandle(handle)) { in threadLoop() [all …]
|
D | SensorDevice.h | 130 sp<SensorServiceUtil::ISensorsWrapper> mSensors; variable
|
D | SensorService.h | 372 SensorServiceUtil::SensorList mSensors; variable
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/doze/ |
D | DozeTriggersTest.java | 60 private FakeSensorManager mSensors; field in DozeTriggersTest 79 mSensors = spy(new FakeSensorManager(mContext)); in setUp() 80 mTapSensor = mSensors.getFakeTapSensor().getSensor(); in setUp() 85 mSensors, Handler.createAsync(Looper.myLooper()), mWakeLock, true, in setUp() 98 mSensors.getMockProximitySensor().sendProximityResult(false); /* Near */ in testOnNotification_stillWorksAfterOneFailedProxCheck() 104 mSensors.getMockProximitySensor().sendProximityResult(true); /* Far */ in testOnNotification_stillWorksAfterOneFailedProxCheck() 114 verify(mSensors).requestTriggerSensor(any(), eq(mTapSensor)); in testTransitionTo_disablesAndEnablesTouchSensors() 116 clearInvocations(mSensors); in testTransitionTo_disablesAndEnablesTouchSensors() 121 verify(mSensors).cancelTriggerSensor(any(), eq(mTapSensor)); in testTransitionTo_disablesAndEnablesTouchSensors() 123 clearInvocations(mSensors); in testTransitionTo_disablesAndEnablesTouchSensors() [all …]
|
D | DozeSensorsTest.java | 150 for (TriggerSensor sensor : mSensors) { in TestableDozeSensors() 157 mSensors = new TriggerSensor[] {mTriggerSensor}; in TestableDozeSensors()
|
/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/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/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 | 70 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 | 60 private final FakeGenericSensor[] mSensors; field in FakeSensorManager 70 mSensors = new FakeGenericSensor[]{ in FakeSensorManager() 103 .stream(mSensors) in getFullSensorList() 116 for (FakeGenericSensor s : mSensors) { in unregisterListenerImpl() 129 for (FakeGenericSensor s : mSensors) { in registerListenerImpl()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/doze/ |
D | DozeSensors.java | 74 protected TriggerSensor[] mSensors; field in DozeSensors 96 mSensors = new TriggerSensor[] { in DozeSensors() 206 for (TriggerSensor s : mSensors) { in updateListening() 216 for (TriggerSensor s : mSensors) { in updateListening() 225 for (TriggerSensor sensor : mSensors) { in setTouchscreenSensorsListening() 233 for (TriggerSensor s : mSensors) { in onUserSwitched() 248 for (TriggerSensor s : mSensors) { 260 for (TriggerSensor sensor : mSensors) { in ignoreTouchScreenSensorsSettingInterferingWithDocking() 269 for (TriggerSensor s : mSensors) { in dump()
|
/frameworks/native/libs/sensor/include/sensor/ |
D | SensorManager.h | 84 Vector<Sensor> mSensors; variable
|
/frameworks/base/config/ |
D | hiddenapi-greylist-max-o.txt | 23891 Landroid/hardware/LegacySensorManager$LegacyListener;->mSensors:I
|