/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/ |
D | FoldStateListenerTest.kt | 51 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 …]
|
D | CentralSurfacesImplTest.java | 1411 callbackCaptor.getValue().onDeviceStateChanged(deviceState); in setDeviceState()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/ |
D | DeviceStateRotationLockSettingControllerTest.java | 123 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 …]
|
D | DevicePostureControllerImplTest.kt | 103 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/ |
D | DeviceStateManagerGlobalTest.java | 84 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/ |
D | DeviceStateRepositoryTest.kt | 88 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/ |
D | DeviceStateManager.java | 247 void onDeviceStateChanged(@NonNull DeviceState state); in onDeviceStateChanged() method 276 public final void onDeviceStateChanged(@NonNull DeviceState deviceState) { in onDeviceStateChanged() method in DeviceStateManager.FoldStateListener
|
D | DeviceStateManagerGlobal.java | 398 () -> mDeviceStateCallback.onDeviceStateChanged(newDeviceState)); in notifyDeviceStateChanged()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
D | FoldStateListener.kt | 49 override fun onDeviceStateChanged(state: DeviceState) { in onFoldStateChanged() method
|
/frameworks/base/libs/WindowManager/Jetpack/src/androidx/window/sidecar/ |
D | StubSidecar.java | 68 mSidecarCallback.onDeviceStateChanged(newState); in updateDeviceState()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
D | DevicePostureControllerImpl.java | 90 public void onDeviceStateChanged(@NonNull DeviceState state) { in DevicePostureControllerImpl()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/unfold/ |
D | UnfoldLatencyTrackerTest.kt | 174 foldStateListenerCaptor.value.onDeviceStateChanged(state) in sendFoldEvent()
|
D | FoldAodAnimationControllerTest.kt | 229 foldStateListenerCaptor.value.onDeviceStateChanged(state) in fold()
|
/frameworks/base/libs/WindowManager/Jetpack/src/androidx/window/common/ |
D | DeviceStateManagerFoldingFeatureProducer.java | 87 public void onDeviceStateChanged(@NonNull DeviceState state) {
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/reardisplay/ |
D | RearDisplayDialogControllerTest.java | 177 public void onDeviceStateChanged(DeviceState state) { } in onDeviceStateChanged() method in RearDisplayDialogControllerTest.TestDeviceStateManagerCallback
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/reardisplay/ |
D | RearDisplayDialogController.java | 233 public void onDeviceStateChanged(@NonNull DeviceState state) { in onDeviceStateChanged() method in RearDisplayDialogController.DeviceStateManagerCallback
|
/frameworks/base/packages/SystemUI/src/com/android/keyguard/ |
D | KeyguardDisplayManager.java | 319 public void onDeviceStateChanged(@NonNull DeviceState state) { in onDeviceStateChanged() method in KeyguardDisplayManager.DeviceStateHelper
|
/frameworks/base/libs/WindowManager/Jetpack/src/androidx/window/extensions/area/ |
D | WindowAreaComponentImpl.java | 464 public void onDeviceStateChanged(@NonNull DeviceState state) { in onDeviceStateChanged() method in WindowAreaComponentImpl
|
/frameworks/base/core/java/android/hardware/camera2/ |
D | CameraManager.java | 239 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
|
D | CameraCharacteristics.java | 252 public final void onDeviceStateChanged(boolean folded) { in getDeviceStateListener()
|
/frameworks/base/services/voiceinteraction/java/com/android/server/soundtrigger/ |
D | SoundTriggerService.java | 535 -> mSoundTriggerHelper.onDeviceStateChanged(state); in SoundTriggerSessionStub() 1720 -> mSoundTriggerHelper.onDeviceStateChanged(state); in SessionImpl()
|
D | SoundTriggerHelper.java | 608 public void onDeviceStateChanged(SoundTriggerDeviceState state) { in onDeviceStateChanged() method in SoundTriggerHelper
|
/frameworks/base/services/tests/powerservicetests/src/com/android/server/power/ |
D | PowerManagerServiceTest.java | 2856 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/ |
D | DisplayManagerServiceTest.java | 796 listener.onDeviceStateChanged(new DeviceState(
|
/frameworks/base/services/core/java/com/android/server/display/ |
D | DisplayManagerService.java | 5173 public void onDeviceStateChanged(DeviceState deviceState) { in onDeviceStateChanged() method in DeviceStateListener
|