Home
last modified time | relevance | path

Searched refs:mSensors (Results 1 – 25 of 27) sorted by relevance

12

/frameworks/native/services/sensorservice/
DHidlSensorHalWrapper.cpp117 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()
211 if (mSensors->getEventQueue()->read(mEventBuffer.data(), eventsToRead)) { in pollFmq()
233 if (mSensors != nullptr) { in getSensorsList()
234 checkReturn(mSensors->getSensorsList([&](const auto& list) { in getSensorsList()
242 if (!mSensors->supportsMessageQueues()) { in getSensorsList()
243 checkReturn(mSensors->activate(list[i].sensorHandle, 0 /* enabled */)); in getSensorsList()
[all …]
DAidlSensorHalWrapper.cpp107 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()
209 if (mSensors != nullptr) { in getSensorsList()
211 mSensors->getSensorsList(&list); in getSensorsList()
223 if (mSensors == nullptr) return NO_INIT; in setOperationMode()
[all …]
DSensorService.cpp172 while (handle == 0 || !mSensors.isNewHandle(handle)) { in registerRuntimeSensor()
193 return mSensors.getNonSensor().getHandle(); in registerRuntimeSensor()
220 mSensors.forEachEntry( in unregisterRuntimeSensor()
425 mSensors.forEachSensor( in onFirstRef()
523 if (mSensors.add(handle, std::move(s), isDebug, isVirtual, deviceId)) { in registerSensor()
537 bool ret = mSensors.remove(handle); in unregisterDynamicSensorLocked()
588 } else if (!mSensors.hasAnySensor()) { in dump()
603 result.append(mSensors.dump().c_str()); in dump()
709 if (!mSensors.hasAnySensor()) { in dumpProtoLocked()
725 mSensors.dump(&proto); in dumpProtoLocked()
[all …]
DAidlSensorHalWrapper.h79 std::shared_ptr<aidl::android::hardware::sensors::ISensors> mSensors;
DHidlSensorHalWrapper.h125 sp<::android::hardware::sensors::V2_1::implementation::ISensorsWrapperBase> mSensors;
/frameworks/base/services/core/java/com/android/server/biometrics/sensors/
DSensorList.java32 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/
DInputDeviceSensorManager.java63 private final Map<Integer, List<Sensor>> mSensors = new HashMap<>(); field in InputDeviceSensorManager
111 if (!mSensors.containsKey(deviceId)) { in onInputDeviceAdded()
123 mSensors.remove(deviceId); in onInputDeviceRemoved()
130 mSensors.remove(deviceId); in onInputDeviceChanged()
151 mSensors.put(deviceId, sensors); in populateSensorsForInputDeviceLocked()
156 mSensors.clear(); in initializeSensors()
173 List<Sensor> sensors = mSensors.get(deviceId); in getInputDeviceSensorLocked()
258 private List<Sensor> mSensors = new ArrayList<Sensor>(); field in InputDeviceSensorManager.InputSensorEventListenerDelegate
273 return mSensors; in getSensors()
277 return mSensors.isEmpty(); in isEmpty()
[all …]
/frameworks/base/core/java/android/hardware/
DLegacySensorManager.java209 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/native/libs/input/
DInputDevice.cpp192 mSensors(other.mSensors), in InputDeviceInfo()
217 mSensors.clear(); in initialize()
246 if (mSensors.find(info.type) != mSensors.end()) { in addSensorInfo()
250 mSensors.insert_or_assign(info.type, info); in addSensorInfo()
280 infos.reserve(mSensors.size()); in getSensors()
281 for (const auto& [type, info] : mSensors) { in getSensors()
/frameworks/native/services/inputflinger/reader/mapper/
DSensorInputMapper.cpp67 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 …]
DSensorInputMapper.h128 std::unordered_map<InputDeviceSensorType, Sensor> mSensors; variable
/frameworks/base/services/tests/servicestests/src/com/android/server/biometrics/
DAuthSessionTest.java115 @NonNull private List<BiometricSensor> mSensors; field in AuthSessionTest
127 mSensors = new ArrayList<>(); in setUp()
137 final AuthSession session = createAuthSession(mSensors, in testNewAuthSession_eligibleSensorsSetToStateUnknown()
159 final AuthSession session = createAuthSession(mSensors, in testStartNewAuthSession()
165 assertEquals(mSensors.size(), session.mPreAuthInfo.eligibleSensors.size()); in testStartNewAuthSession()
221 final AuthSession session = createAuthSession(mSensors, in testOnErrorReceived_lockoutError()
256 final AuthSession session = createAuthSession(mSensors, in testCancelReducesAppetiteForCookies()
311 final int fingerprintSensorId = mSensors.stream() in testMultiAuth_fingerprintSensorStartsAfterUINotifies()
317 final AuthSession session = createAuthSession(mSensors, in testMultiAuth_fingerprintSensorStartsAfterUINotifies()
323 assertEquals(mSensors.size(), session.mPreAuthInfo.eligibleSensors.size()); in testMultiAuth_fingerprintSensorStartsAfterUINotifies()
[all …]
DBiometricServiceTest.java592 verify(mBiometricService.mSensors.get(0).impl).prepareForAuthentication( in testAuthenticate_happyPathWithoutConfirmation()
611 verify(mBiometricService.mSensors.get(0).impl) in testAuthenticate_happyPathWithoutConfirmation()
1214 verify(mBiometricService.mSensors.get(0).impl).cancelAuthenticationFromService( in testDismissedReasonUserCancel_whileAuthenticating_cancelsHalAuthentication()
1234 verify(mBiometricService.mSensors.get(0).impl) in testDismissedReasonNegative_whilePaused_invokeHalCancel()
1253 verify(mBiometricService.mSensors.get(0).impl) in testDismissedReasonUserCancel_whilePaused_invokesHalCancel()
1270 verify(mBiometricService.mSensors.get(0).impl) in testDismissedReasonUserCancel_whenPendingConfirmation()
1532 for (BiometricSensor sensor : mBiometricService.mSensors) { in testWithDowngradedAuthenticator()
1596 for (BiometricSensor sensor : mBiometricService.mSensors) { in testWithDowngradedAuthenticator()
/frameworks/hardware/interfaces/sensorservice/libsensorndkbridge/
DASensorManager.cpp103 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()
DASensorManager.h67 std::vector<SensorInfo> mSensors; member
/frameworks/base/services/core/java/com/android/server/power/stats/
DSensorPowerCalculator.java30 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/base/packages/SystemUI/tests/src/com/android/systemui/doze/
DDozeTriggersTest.java107 private FakeSensorManager mSensors; field in DozeTriggersTest
123 mSensors = spy(new FakeSensorManager(mContext)); in setupDozeTriggers()
124 mTapSensor = mSensors.getFakeTapSensor().getSensor(); in setupDozeTriggers()
127 new AsyncSensorManager(mSensors, new FakeThreadFactory(mExecutor), null); in setupDozeTriggers()
203 verify(mSensors).requestTriggerSensor(any(), eq(mTapSensor)); in testTransitionTo_disablesAndEnablesTouchSensors()
205 clearInvocations(mSensors); in testTransitionTo_disablesAndEnablesTouchSensors()
212 verify(mSensors).cancelTriggerSensor(any(), eq(mTapSensor)); in testTransitionTo_disablesAndEnablesTouchSensors()
214 clearInvocations(mSensors); in testTransitionTo_disablesAndEnablesTouchSensors()
218 verify(mSensors).requestTriggerSensor(any(), eq(mTapSensor)); in testTransitionTo_disablesAndEnablesTouchSensors()
226 verify(mSensors).requestTriggerSensor(any(), eq(mTapSensor)); in transitionToDockedAod_disablesTouchSensors()
[all …]
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/util/sensors/
DFakeSensorManager.java60 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/native/libs/sensor/
DSensorManager.cpp143 mSensors.clear(); in sensorManagerDied()
177 mSensors = mSensorServer->getSensorList(mOpPackageName); in assertStateLocked()
178 size_t count = mSensors.size(); in assertStateLocked()
186 mSensorList[i] = mSensors.array() + i; in assertStateLocked()
200 return static_cast<ssize_t>(mSensors.size()); in getSensorList()
276 for (size_t i=0 ; i<mSensors.size() ; i++) { in getDefaultSensor()
/frameworks/base/services/core/java/com/android/server/biometrics/
DBiometricService.java121 final ArrayList<BiometricSensor> mSensors = new ArrayList<>(); field in BiometricService
516 for (BiometricSensor sensor : mSensors) {
534 for (BiometricSensor sensor : mSensors) {
625 for (BiometricSensor sensor : mSensors) {
665 for (BiometricSensor sensor : mSensors) {
671 mSensors.add(new BiometricSensor(getContext(), id, modality, strength, authenticator) {
713 InvalidationTracker.start(getContext(), mSensors, userId, fromSensorId, callback);
723 for (BiometricSensor sensor : mSensors) {
764 for (BiometricSensor sensor : mSensors) {
807 for (BiometricSensor sensor : mSensors) {
[all …]
DBiometricStrengthController.java86 for (BiometricSensor sensor : mService.mSensors) { in updateStrengths()
98 for (BiometricSensor sensor : mService.mSensors) { in revertStrengths()
DAuthSession.java137 private int[] mSensors; field in AuthSession
289 mSensors = new int[0]; in goToInitialState()
294 mSensors /* sensorIds */, in goToInitialState()
339 mSensors = new int[mPreAuthInfo.eligibleSensors.size()]; in onCookieReceived()
341 mSensors[i] = mPreAuthInfo.eligibleSensors.get(i).id; in onCookieReceived()
346 mSensors, in onCookieReceived()
475 mSensors = new int[0]; in onErrorReceived()
480 mSensors /* sensorIds */, in onErrorReceived()
/frameworks/base/packages/SystemUI/src/com/android/systemui/doze/
DDozeSensors.java519 @NonNull final Sensor[] mSensors; // index = posture, value = sensor field in DozeSensors.TriggerSensor
607 mSensors = sensors; in TriggerSensor()
626 || mSensors.length < 2 in setPosture()
627 || posture >= mSensors.length) { in setPosture()
631 Sensor oldSensor = mSensors[mPosture]; in setPosture()
632 Sensor newSensor = mSensors[posture]; in setPosture()
682 final Sensor sensor = mSensors[mPosture]; in updateListening()
718 .append(", mSensors=").append(Arrays.toString(mSensors)); in toString()
719 if (mSensors.length > 2) { in toString()
729 final Sensor sensor = mSensors[mPosture]; in onTrigger()
/frameworks/native/libs/sensor/include/sensor/
DSensorManager.h90 Vector<Sensor> mSensors; variable
/frameworks/native/include/input/
DInputDevice.h357 std::unordered_map<InputDeviceSensorType, InputDeviceSensorInfo> mSensors; variable

12