Home
last modified time | relevance | path

Searched refs:sensorState (Results 1 – 5 of 5) sorted by relevance

/frameworks/base/services/core/java/com/android/server/sensorprivacy/
DSensorPrivacyStateControllerImpl.java55 SensorState sensorState = mPersistedState.getState(toggleType, userId, sensor); in getStateLocked() local
56 if (sensorState != null) { in getStateLocked()
57 return new SensorState(sensorState); in getStateLocked()
77 SensorState sensorState = new SensorState(true); in setStateLocked() local
78 mPersistedState.setState(toggleType, userId, sensor, sensorState); in setStateLocked()
79 notifyStateChangeLocked(toggleType, userId, sensor, sensorState); in setStateLocked()
104 SensorState sensorState = new SensorState(state); in setStateLocked() local
105 mPersistedState.setState(toggleType, userId, sensor, sensorState); in setStateLocked()
106 notifyStateChangeLocked(toggleType, userId, sensor, sensorState); in setStateLocked()
120 SensorState sensorState) { in notifyStateChangeLocked() argument
[all …]
DPersistedState.java238 public SensorState setState(int toggleType, int userId, int sensor, SensorState sensorState) { in setState() argument
239 return mStates.put(new TypeUserSensor(toggleType, userId, sensor), sensorState); in setState()
296 SensorState sensorState = states.valueAt(i); in persist() local
311 sensorState.getState()); in persist()
313 sensorState.getLastChange()); in persist()
357 SensorState sensorState = userStates.valueAt(j).second; in dump() local
366 sensorState.getState()); in dump()
369 sensorState.getLastChange()); in dump()
381 SensorState sensorState = mStates.valueAt(i); in forEachKnownState() local
382 consumer.accept(tus.mType, tus.mUserId, tus.mSensor, sensorState); in forEachKnownState()
[all …]
DSensorState.java39 SensorState(SensorState sensorState) { in SensorState() argument
40 mStateType = sensorState.getState(); in SensorState()
41 mLastChange = sensorState.getLastChange(); in SensorState()
DSensorPrivacyService.java860 SensorState sensorState = mSensorPrivacyStateController in setToggleSensorPrivacyStateUnchecked() local
862 lastChange[0] = sensorState.getLastChange(); in setToggleSensorPrivacyStateUnchecked()
1038 SensorState sensorState = mSensorPrivacyStateController in setToggleSensorPrivacyUnchecked() local
1040 lastChange[0] = sensorState.getLastChange(); in setToggleSensorPrivacyUnchecked()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/sensorprivacy/
DSensorPrivacyServiceMockingTest.java322 SensorState sensorState = mock(SensorState.class); in testGetSetState() local
324 doReturn(sensorState).when(persistedState).getState(TOGGLE_TYPE_SOFTWARE, 0, in testGetSetState()
326 doReturn(SensorPrivacyManager.StateTypes.ENABLED).when(sensorState).getState(); in testGetSetState()
327 doReturn(0L).when(sensorState).getLastChange(); in testGetSetState()