/frameworks/native/services/sensorservice/ |
D | HidlSensorHalWrapper.cpp | 117 return mSensors->supportsPolling(); in supportsPolling() 121 return mSensors->supportsMessageQueues(); in supportsMessageQueues() 146 auto ret = mSensors->poll(count, in poll() 187 size_t availableEvents = mSensors->getEventQueue()->availableToRead(); in pollFmq() 201 availableEvents = mSensors->getEventQueue()->availableToRead(); in pollFmq() 216 if (mSensors->getEventQueue()->read(mEventBuffer.data(), eventsToRead)) { in pollFmq() 238 if (mSensors != nullptr) { in getSensorsList() 239 checkReturn(mSensors->getSensorsList([&](const auto& list) { in getSensorsList() 247 if (!mSensors->supportsMessageQueues()) { in getSensorsList() 248 checkReturn(mSensors->activate(list[i].sensorHandle, 0 /* enabled */)); in getSensorsList() [all …]
|
D | AidlSensorHalWrapper.cpp | 107 mSensors = nullptr; in connect() 111 if (mSensors != nullptr) { in connect() 112 AIBinder_unlinkToDeath(mSensors->asBinder().get(), mDeathRecipient.get(), this); in connect() 117 mSensors = ISensors::fromBinder(binder); in connect() 138 mSensors->initialize(mEventQueue->dupeDesc(), mWakeLockQueue->dupeDesc(), mCallback); in connect() 140 AIBinder_linkToDeath(mSensors->asBinder().get(), mDeathRecipient.get(), this); in connect() 146 return mSensors != nullptr; in connect() 214 if (mSensors != nullptr) { in getSensorsList() 216 mSensors->getSensorsList(&list); in getSensorsList() 228 if (mSensors == nullptr) return NO_INIT; in setOperationMode() [all …]
|
D | SensorService.cpp | 174 while (handle == 0 || !mSensors.isNewHandle(handle)) { in registerRuntimeSensor() 195 return mSensors.getNonSensor().getHandle(); in registerRuntimeSensor() 232 mSensors.forEachEntry( in unregisterRuntimeSensor() 443 mSensors.forEachSensor( in onFirstRef() 542 if (mSensors.add(handle, std::move(s), isDebug, isVirtual, deviceId)) { in registerSensor() 556 bool ret = mSensors.remove(handle); in unregisterDynamicSensorLocked() 607 } else if (!mSensors.hasAnySensor()) { in dump() 622 result.append(mSensors.dump().c_str()); in dump() 732 if (!mSensors.hasAnySensor()) { in dumpProtoLocked() 748 mSensors.dump(&proto); in dumpProtoLocked() [all …]
|
D | AidlSensorHalWrapper.h | 79 std::shared_ptr<aidl::android::hardware::sensors::ISensors> mSensors;
|
D | HidlSensorHalWrapper.h | 125 sp<::android::hardware::sensors::V2_1::implementation::ISensorsWrapperBase> mSensors;
|
/frameworks/base/services/core/java/com/android/server/biometrics/sensors/ |
D | SensorList.java | 32 private final SparseArray<T> mSensors; field in SensorList 36 mSensors = new SparseArray<T>(); in SensorList() 46 mSensors.put(sensorId, sensor); in addSensor() 67 return mSensors.valueAt(position); in valueAt() 74 return mSensors.get(sensorId); in get() 81 return mSensors.keyAt(position); in keyAt() 88 return mSensors.size(); in size() 95 return mSensors.contains(sensorId); in contains()
|
/frameworks/base/core/java/android/hardware/input/ |
D | InputDeviceSensorManager.java | 63 private final Map<Integer, List<Sensor>> mSensors = new HashMap<>(); field in InputDeviceSensorManager 107 if (!mSensors.containsKey(deviceId)) { in onInputDeviceAdded() 118 mSensors.remove(deviceId); in onInputDeviceRemoved() 124 mSensors.remove(deviceId); in onInputDeviceChanged() 142 mSensors.put(deviceId, sensors); in populateSensorsForInputDeviceLocked() 147 mSensors.clear(); in initializeSensors() 164 List<Sensor> sensors = mSensors.get(deviceId); in getInputDeviceSensorLocked() 252 private final List<Sensor> mSensors = new ArrayList<>(); field in InputDeviceSensorManager.InputSensorEventListenerDelegate 265 return mSensors; in getSensors() 269 return mSensors.isEmpty(); in isEmpty() [all …]
|
/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/services/tests/servicestests/src/com/android/server/biometrics/ |
D | AuthSessionTest.java | 128 @NonNull private List<BiometricSensor> mSensors; field in AuthSessionTest 144 mSensors = new ArrayList<>(); in setUp() 154 final AuthSession session = createAuthSession(mSensors, in testNewAuthSession_eligibleSensorsSetToStateUnknown() 176 final AuthSession session = createAuthSession(mSensors, in testStartNewAuthSession() 182 assertEquals(mSensors.size(), session.mPreAuthInfo.eligibleSensors.size()); in testStartNewAuthSession() 238 final AuthSession session = createAuthSession(mSensors, in testOnErrorReceived_lockoutError() 274 final AuthSession session = createAuthSession(mSensors, in testOnErrorReceivedBeforeOnDialogAnimatedIn() 313 final AuthSession session = createAuthSession(mSensors, in testOnRejectionReceivedBeforeOnDialogAnimatedIn() 350 final AuthSession session = createAuthSession(mSensors, in testCancelReducesAppetiteForCookies() 405 final int fingerprintSensorId = mSensors.stream() in testMultiAuth_fingerprintSensorStartsAfterUINotifies() [all …]
|
D | BiometricServiceTest.java | 623 verify(mBiometricService.mSensors.get(0).impl).prepareForAuthentication( in testAuthenticate_happyPathWithoutConfirmation() 642 verify(mBiometricService.mSensors.get(0).impl) in testAuthenticate_happyPathWithoutConfirmation() 1245 verify(mBiometricService.mSensors.get(0).impl).cancelAuthenticationFromService( in testDismissedReasonUserCancel_whileAuthenticating_cancelsHalAuthentication() 1265 verify(mBiometricService.mSensors.get(0).impl) in testDismissedReasonNegative_whilePaused_invokeHalCancel() 1284 verify(mBiometricService.mSensors.get(0).impl) in testDismissedReasonUserCancel_whilePaused_invokesHalCancel() 1301 verify(mBiometricService.mSensors.get(0).impl) in testDismissedReasonUserCancel_whenPendingConfirmation() 1329 verify(mBiometricService.mSensors.get(0).impl) in testDismissedReasonMoreOptions_whilePaused_invokeHalCancel() 1585 for (BiometricSensor sensor : mBiometricService.mSensors) { in testWithDowngradedAuthenticator() 1649 for (BiometricSensor sensor : mBiometricService.mSensors) { in testWithDowngradedAuthenticator()
|
/frameworks/native/libs/input/ |
D | InputDevice.cpp | 195 mSensors(other.mSensors), in InputDeviceInfo() 225 mSensors.clear(); in initialize() 254 if (mSensors.find(info.type) != mSensors.end()) { in addSensorInfo() 258 mSensors.insert_or_assign(info.type, info); in addSensorInfo() 285 infos.reserve(mSensors.size()); in getSensors() 286 for (const auto& [type, info] : mSensors) { in getSensors()
|
/frameworks/native/services/inputflinger/reader/mapper/ |
D | SensorInputMapper.cpp | 67 auto it = mSensors.find(sensorType); in parseSensorConfiguration() 68 if (it == mSensors.end()) { in parseSensorConfiguration() 71 mSensors.emplace(sensorType, sensor); in parseSensorConfiguration() 80 for (const auto& [sensorType, sensor] : mSensors) { in populateDeviceInfo() 91 for (const auto& [sensorType, sensor] : mSensors) { in dump() 290 auto it = mSensors.find(sensorType); in setSensorEnabled() 291 if (it == mSensors.end()) { in setSensorEnabled() 304 for (const auto& [_, sensor] : mSensors) { in setSensorEnabled() 315 auto it = mSensors.find(sensorType); in flushSensor() 316 if (it == mSensors.end()) { in flushSensor() [all …]
|
D | SensorInputMapper.h | 128 std::unordered_map<InputDeviceSensorType, Sensor> mSensors; variable
|
/frameworks/hardware/interfaces/sensorservice/libsensorndkbridge/ |
D | ASensorManager.cpp | 103 ndk::ScopedAStatus ret = mManager->getSensorList(&mSensors); in getSensorList() 109 mSensorList.reset(new ASensorRef[mSensors.size()]); in getSensorList() 110 for (size_t i = 0; i < mSensors.size(); ++i) { in getSensorList() 112 reinterpret_cast<ASensorRef>(&mSensors[i]); in getSensorList() 120 return mSensors.size(); in getSensorList() 136 for (size_t i = 0; i < mSensors.size(); ++i) { in getDefaultSensor() 137 if (sensor == mSensors[i]) { in getDefaultSensor() 138 defaultSensor = reinterpret_cast<ASensorRef>(&mSensors[i]); in getDefaultSensor()
|
D | ASensorManager.h | 67 std::vector<SensorInfo> mSensors; member
|
/frameworks/base/services/core/java/com/android/server/power/stats/ |
D | SensorPowerCalculator.java | 30 private final SparseArray<Sensor> mSensors; field in SensorPowerCalculator 34 mSensors = new SparseArray<>(sensors.size()); in SensorPowerCalculator() 37 mSensors.put(sensor.getHandle(), sensor); in SensorPowerCalculator() 109 Sensor s = mSensors.get(sensorHandle); in calculatePowerMah()
|
/frameworks/native/libs/sensor/ |
D | SensorManager.cpp | 190 mSensors.clear(); in sensorManagerDied() 229 mSensors = mSensorServer->getSensorList(mOpPackageName); in assertStateLocked() 231 mSensors = mSensorServer->getRuntimeSensorList(mOpPackageName, mDeviceId); in assertStateLocked() 234 size_t count = mSensors.size(); in assertStateLocked() 242 mSensorList[i] = mSensors.array() + i; in assertStateLocked() 256 return static_cast<ssize_t>(mSensors.size()); in assertStateLocked() 267 list = mSensors; in assertStateLocked() 348 for (size_t i=0 ; i<mSensors.size() ; i++) { in assertStateLocked()
|
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/util/sensors/ |
D | FakeSensorManager.java | 60 private final FakeGenericSensor[] mSensors; field in FakeSensorManager 71 mSensors = new FakeGenericSensor[]{ in FakeSensorManager() 109 .stream(mSensors) in getFullSensorList() 122 for (FakeGenericSensor s : mSensors) { in unregisterListenerImpl() 135 for (FakeGenericSensor s : mSensors) { in registerListenerImpl()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/doze/ |
D | DozeTriggersTest.java | 118 private FakeSensorManager mSensors; field in DozeTriggersTest 134 mSensors = spy(new FakeSensorManager(mContext)); in setupDozeTriggers() 135 mTapSensor = mSensors.getFakeTapSensor().getSensor(); in setupDozeTriggers() 138 new AsyncSensorManager(mSensors, new FakeThreadFactory(mExecutor), null); in setupDozeTriggers() 273 verify(mSensors).requestTriggerSensor(any(), eq(mTapSensor)); in testTransitionTo_disablesAndEnablesTouchSensors() 275 clearInvocations(mSensors); in testTransitionTo_disablesAndEnablesTouchSensors() 282 verify(mSensors).cancelTriggerSensor(any(), eq(mTapSensor)); in testTransitionTo_disablesAndEnablesTouchSensors() 284 clearInvocations(mSensors); in testTransitionTo_disablesAndEnablesTouchSensors() 288 verify(mSensors).requestTriggerSensor(any(), eq(mTapSensor)); in testTransitionTo_disablesAndEnablesTouchSensors() 296 verify(mSensors).requestTriggerSensor(any(), eq(mTapSensor)); in transitionToDockedAod_disablesTouchSensors() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/doze/ |
D | DozeSensors.java | 520 @NonNull final Sensor[] mSensors; // index = posture, value = sensor field in DozeSensors.TriggerSensor 608 mSensors = sensors; in TriggerSensor() 627 || mSensors.length < 2 in setPosture() 628 || posture >= mSensors.length) { in setPosture() 632 Sensor oldSensor = mSensors[mPosture]; in setPosture() 633 Sensor newSensor = mSensors[posture]; in setPosture() 683 final Sensor sensor = mSensors[mPosture]; in updateListening() 719 .append(", mSensors=").append(Arrays.toString(mSensors)); in toString() 720 if (mSensors.length > 2) { in toString() 730 final Sensor sensor = mSensors[mPosture]; in onTrigger()
|
/frameworks/base/services/core/java/com/android/server/biometrics/ |
D | BiometricStrengthController.java | 86 for (BiometricSensor sensor : mService.mSensors) { in updateStrengths() 98 for (BiometricSensor sensor : mService.mSensors) { in revertStrengths()
|
D | BiometricService.java | 129 final ArrayList<BiometricSensor> mSensors = new ArrayList<>(); field in BiometricService 526 for (BiometricSensor sensor : mSensors) { 544 for (BiometricSensor sensor : mSensors) { 681 for (BiometricSensor sensor : mSensors) { 721 for (BiometricSensor sensor : mSensors) { 727 mSensors.add(new BiometricSensor(getContext(), id, modality, strength, authenticator) { 769 InvalidationTracker.start(getContext(), mSensors, userId, fromSensorId, callback); 779 for (BiometricSensor sensor : mSensors) { 820 for (BiometricSensor sensor : mSensors) { 865 for (BiometricSensor sensor : mSensors) { [all …]
|
D | AuthSession.java | 139 private int[] mSensors; field in AuthSession 298 mSensors = new int[0]; in goToInitialState() 303 mSensors /* sensorIds */, in goToInitialState() 348 mSensors = new int[mPreAuthInfo.eligibleSensors.size()]; in onCookieReceived() 350 mSensors[i] = mPreAuthInfo.eligibleSensors.get(i).id; in onCookieReceived() 355 mSensors, in onCookieReceived() 484 mSensors = new int[0]; in onErrorReceived() 489 mSensors /* sensorIds */, in onErrorReceived()
|
/frameworks/native/libs/sensor/include/sensor/ |
D | SensorManager.h | 93 Vector<Sensor> mSensors; variable
|
/frameworks/native/include/input/ |
D | InputDevice.h | 378 std::unordered_map<InputDeviceSensorType, InputDeviceSensorInfo> mSensors; variable
|