Home
last modified time | relevance | path

Searched refs:onDeviceStateChanged (Results 1 – 25 of 29) sorted by relevance

12

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/
DFoldStateListenerTest.kt51 sut.onDeviceStateChanged(DEVICE_STATE_FOLDED) in onStateChanged_stateFolded_notifiesWithFoldedAndGoingToSleep()
58 sut.onDeviceStateChanged(DEVICE_STATE_HALF_FOLDED) in onStateChanged_stateHalfFolded_notifiesWithNotFoldedAndNotGoingToSleep()
65 sut.onDeviceStateChanged(DEVICE_STATE_UNFOLDED) in onStateChanged_stateUnfolded_notifiesWithNotFoldedAndNotGoingToSleep()
72 sut.onDeviceStateChanged(DEVICE_STATE_UNFOLDED) in onStateChanged_stateUnfoldedThenHalfFolded_notifiesOnce()
73 sut.onDeviceStateChanged(DEVICE_STATE_HALF_FOLDED) in onStateChanged_stateUnfoldedThenHalfFolded_notifiesOnce()
80 sut.onDeviceStateChanged(DEVICE_STATE_HALF_FOLDED) in onStateChanged_stateHalfFoldedThenUnfolded_notifiesOnce()
81 sut.onDeviceStateChanged(DEVICE_STATE_UNFOLDED) in onStateChanged_stateHalfFoldedThenUnfolded_notifiesOnce()
88 sut.onDeviceStateChanged(DEVICE_STATE_HALF_FOLDED) in onStateChanged_stateHalfFoldedThenFolded_notifiesTwice()
89 sut.onDeviceStateChanged(DEVICE_STATE_FOLDED) in onStateChanged_stateHalfFoldedThenFolded_notifiesTwice()
98 sut.onDeviceStateChanged(DEVICE_STATE_FOLDED) in onStateChanged_stateFoldedThenHalfFolded_notifiesTwice()
[all …]
DCentralSurfacesImplTest.java1411 callbackCaptor.getValue().onDeviceStateChanged(deviceState); in setDeviceState()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/
DDeviceStateRotationLockSettingControllerTest.java123 mDeviceStateCallback.onDeviceStateChanged(createDeviceStateForIdentifier(1)); in whenNoSavedValueForDeviceState_assumeIgnored()
127 mDeviceStateCallback.onDeviceStateChanged(createDeviceStateForIdentifier(2)); in whenNoSavedValueForDeviceState_assumeIgnored()
138 mDeviceStateCallback.onDeviceStateChanged(createDeviceStateForIdentifier(0)); in whenDeviceStateSwitched_loadCorrectSetting()
141 mDeviceStateCallback.onDeviceStateChanged(createDeviceStateForIdentifier(1)); in whenDeviceStateSwitched_loadCorrectSetting()
151 mDeviceStateCallback.onDeviceStateChanged(createDeviceStateForIdentifier(2)); in whenDeviceStateSwitched_settingIsIgnored_loadsDefaultFallbackSetting()
165 mDeviceStateCallback.onDeviceStateChanged(createDeviceStateForIdentifier(2)); in whenDeviceStateSwitched_ignoredSetting_fallbackValueChanges_usesFallbackValue()
177 mDeviceStateCallback.onDeviceStateChanged(createDeviceStateForIdentifier(0)); in whenUserChangesSetting_saveSettingForCurrentState()
193 mDeviceStateCallback.onDeviceStateChanged(createDeviceStateForIdentifier(0)); in whenDeviceStateSwitchedToIgnoredState_useFallbackSetting()
196 mDeviceStateCallback.onDeviceStateChanged(createDeviceStateForIdentifier(2)); in whenDeviceStateSwitchedToIgnoredState_useFallbackSetting()
206 mDeviceStateCallback.onDeviceStateChanged(createDeviceStateForIdentifier(1)); in whenDeviceStateSwitchedToIgnoredState_noFallback_newSettingsSaveForPreviousState()
[all …]
DDevicePostureControllerImplTest.kt103 deviceStateCallback.value.onDeviceStateChanged(DEVICE_STATE_CLOSED) in testPostureChanged_updates()
106 deviceStateCallback.value.onDeviceStateChanged(DEVICE_STATE_HALF_FOLDED) in testPostureChanged_updates()
109 deviceStateCallback.value.onDeviceStateChanged(DEVICE_STATE_OPENED) in testPostureChanged_updates()
112 deviceStateCallback.value.onDeviceStateChanged(DEVICE_STATE_FLIPPED) in testPostureChanged_updates()
115 deviceStateCallback.value.onDeviceStateChanged(DEVICE_STATE_UNKNOWN) in testPostureChanged_updates()
124 deviceStateCallback.value.onDeviceStateChanged(DEVICE_STATE_HALF_FOLDED) in testPostureChanged_useBaseUpdate()
139 deviceStateCallback.value.onDeviceStateChanged(updatedState) in testPostureChanged_useBaseUpdate()
143 deviceStateCallback.value.onDeviceStateChanged(DEVICE_STATE_USE_BASE_STATE) in testPostureChanged_useBaseUpdate()
152 deviceStateCallback.value.onDeviceStateChanged(DEVICE_STATE_HALF_FOLDED) in baseStateChanges_doesNotUpdatePosture()
157 deviceStateCallback.value.onDeviceStateChanged( in baseStateChanges_doesNotUpdatePosture()
[all …]
/frameworks/base/core/tests/devicestatetests/src/android/hardware/devicestate/
DDeviceStateManagerGlobalTest.java84 verify(callback1).onDeviceStateChanged(eq(mService.getMergedState())); in registerCallback()
85 verify(callback2).onDeviceStateChanged(eq(mService.getMergedState())); in registerCallback()
101 verify(callback1).onDeviceStateChanged(eq(mService.getMergedState())); in registerCallback()
102 verify(callback2).onDeviceStateChanged(eq(mService.getMergedState())); in registerCallback()
112 verify(callback1).onDeviceStateChanged(eq(mService.getMergedState())); in registerCallback()
113 verify(callback2).onDeviceStateChanged(eq(mService.getMergedState())); in registerCallback()
125 verify(callback).onDeviceStateChanged(eq(mService.getMergedState())); in unregisterCallback()
141 verify(callback).onDeviceStateChanged(eq(mService.getBaseState())); in submitRequest()
148 verify(callback).onDeviceStateChanged(eq(OTHER_DEVICE_STATE)); in submitRequest()
153 verify(callback).onDeviceStateChanged(eq(mService.getBaseState())); in submitRequest()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/display/data/repository/
DDeviceStateRepositoryTest.kt88 deviceStateManagerListener.value.onDeviceStateChanged( in folded_receivesFoldedState()
100 deviceStateManagerListener.value.onDeviceStateChanged( in halfFolded_receivesHalfFoldedState()
112 deviceStateManagerListener.value.onDeviceStateChanged( in unfolded_receivesUnfoldedState()
124 deviceStateManagerListener.value.onDeviceStateChanged( in rearDisplay_receivesRearDisplayState()
136 deviceStateManagerListener.value.onDeviceStateChanged( in concurrentDisplay_receivesConcurrentDisplayState()
148 deviceStateManagerListener.value.onDeviceStateChanged( in unknownState_receivesUnknownState()
/frameworks/base/core/java/android/hardware/devicestate/
DDeviceStateManager.java247 void onDeviceStateChanged(@NonNull DeviceState state); in onDeviceStateChanged() method
276 public final void onDeviceStateChanged(@NonNull DeviceState deviceState) { in onDeviceStateChanged() method in DeviceStateManager.FoldStateListener
DDeviceStateManagerGlobal.java398 () -> mDeviceStateCallback.onDeviceStateChanged(newDeviceState)); in notifyDeviceStateChanged()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DFoldStateListener.kt49 override fun onDeviceStateChanged(state: DeviceState) { in onFoldStateChanged() method
/frameworks/base/libs/WindowManager/Jetpack/src/androidx/window/sidecar/
DStubSidecar.java68 mSidecarCallback.onDeviceStateChanged(newState); in updateDeviceState()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DDevicePostureControllerImpl.java90 public void onDeviceStateChanged(@NonNull DeviceState state) { in DevicePostureControllerImpl()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/unfold/
DUnfoldLatencyTrackerTest.kt174 foldStateListenerCaptor.value.onDeviceStateChanged(state) in sendFoldEvent()
DFoldAodAnimationControllerTest.kt229 foldStateListenerCaptor.value.onDeviceStateChanged(state) in fold()
/frameworks/base/libs/WindowManager/Jetpack/src/androidx/window/common/
DDeviceStateManagerFoldingFeatureProducer.java87 public void onDeviceStateChanged(@NonNull DeviceState state) {
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/reardisplay/
DRearDisplayDialogControllerTest.java177 public void onDeviceStateChanged(DeviceState state) { } in onDeviceStateChanged() method in RearDisplayDialogControllerTest.TestDeviceStateManagerCallback
/frameworks/base/packages/SystemUI/src/com/android/systemui/reardisplay/
DRearDisplayDialogController.java233 public void onDeviceStateChanged(@NonNull DeviceState state) { in onDeviceStateChanged() method in RearDisplayDialogController.DeviceStateManagerCallback
/frameworks/base/packages/SystemUI/src/com/android/keyguard/
DKeyguardDisplayManager.java319 public void onDeviceStateChanged(@NonNull DeviceState state) { in onDeviceStateChanged() method in KeyguardDisplayManager.DeviceStateHelper
/frameworks/base/libs/WindowManager/Jetpack/src/androidx/window/extensions/area/
DWindowAreaComponentImpl.java464 public void onDeviceStateChanged(@NonNull DeviceState state) { in onDeviceStateChanged() method in WindowAreaComponentImpl
/frameworks/base/core/java/android/hardware/camera2/
DCameraManager.java239 void onDeviceStateChanged(boolean folded); in onDeviceStateChanged() method
262 callback.onDeviceStateChanged(folded); in handleStateChange()
270 listener.onDeviceStateChanged(mFoldedDeviceState); in addDeviceStateListener()
277 public void onDeviceStateChanged(DeviceState state) { in onDeviceStateChanged() method in CameraManager.FoldStateListener
DCameraCharacteristics.java252 public final void onDeviceStateChanged(boolean folded) { in getDeviceStateListener()
/frameworks/base/services/voiceinteraction/java/com/android/server/soundtrigger/
DSoundTriggerService.java535 -> mSoundTriggerHelper.onDeviceStateChanged(state); in SoundTriggerSessionStub()
1720 -> mSoundTriggerHelper.onDeviceStateChanged(state); in SessionImpl()
DSoundTriggerHelper.java608 public void onDeviceStateChanged(SoundTriggerDeviceState state) { in onDeviceStateChanged() method in SoundTriggerHelper
/frameworks/base/services/tests/powerservicetests/src/com/android/server/power/
DPowerManagerServiceTest.java2856 deviceStateCallback.onDeviceStateChanged(DEVICE_STATE_1); in testUserActivityOnDeviceStateChange()
2866 deviceStateCallback.onDeviceStateChanged(DEVICE_STATE_1); in testUserActivityOnDeviceStateChange()
/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/
DDisplayManagerServiceTest.java796 listener.onDeviceStateChanged(new DeviceState(
/frameworks/base/services/core/java/com/android/server/display/
DDisplayManagerService.java5173 public void onDeviceStateChanged(DeviceState deviceState) { in onDeviceStateChanged() method in DeviceStateListener

12