Home
last modified time | relevance | path

Searched refs:getDeviceState (Results 1 – 14 of 14) sorted by relevance

/packages/modules/DeviceLock/DeviceLockController/tests/robolectric/src/com/android/devicelockcontroller/policy/
DDeviceStateControllerImplTest.java75 assertThat(GlobalParametersClient.getInstance().getDeviceState().get()).isEqualTo( in lockDevice_withUnprovisionedState_shouldPseudoLockDevice()
90 assertThat(GlobalParametersClient.getInstance().getDeviceState().get()).isEqualTo( in lockDevice_withProvisionInProgressState_shouldThrowException()
105 assertThat(GlobalParametersClient.getInstance().getDeviceState().get()).isEqualTo( in lockDevice_withProvisionPausedState_shouldThrowException()
120 assertThat(GlobalParametersClient.getInstance().getDeviceState().get()).isEqualTo( in lockDevice_withProvisionFailedState_shouldThrowException()
136 assertThat(GlobalParametersClient.getInstance().getDeviceState().get()).isEqualTo( in lockDevice_withKioskProvisionedState_shouldLockDevice()
163 assertThat(GlobalParametersClient.getInstance().getDeviceState().get()).isEqualTo( in lockDevice_withProvisionSucceededState_shouldLockDevice()
180 assertThat(GlobalParametersClient.getInstance().getDeviceState().get()).isEqualTo( in unlockDevice_withKioskProvisionedState_shouldUnlockDevice()
194 assertThat(GlobalParametersClient.getInstance().getDeviceState().get()).isEqualTo( in unlockDevice_withUnprovisionedState_shouldPseudoUnlock()
209 assertThat(GlobalParametersClient.getInstance().getDeviceState().get()).isEqualTo( in unlockDevice_withProvisionInProgressState_shouldThrowException()
224 assertThat(GlobalParametersClient.getInstance().getDeviceState().get()).isEqualTo( in unlockDevice_withProvisionPausedState_shouldThrowException()
[all …]
/packages/modules/DeviceLock/DeviceLockController/src/com/android/devicelockcontroller/policy/
DDeviceStateControllerImpl.java123 return Futures.transform(mGlobalParametersClient.getDeviceState(),
137 public ListenableFuture<Integer> getDeviceState() {
138 return mGlobalParametersClient.getDeviceState();
143 return Futures.transform(mGlobalParametersClient.getDeviceState(),
DDeviceStateController.java55 ListenableFuture<Integer> getDeviceState(); in getDeviceState() method
DDevicePolicyControllerImpl.java230 GlobalParametersClient.getInstance().getDeviceState();
/packages/modules/DeviceLock/DeviceLockController/src/com/android/devicelockcontroller/storage/
DGlobalParametersService.java80 public int getDeviceState() {
81 return GlobalParameters.getDeviceState(mContext);
DGlobalParameters.java108 static int getDeviceState(Context context) { in getDeviceState() method in GlobalParameters
180 KEY_DEVICE_STATE, getDeviceState(context), in dump()
DGlobalParametersClient.java196 public ListenableFuture<@DeviceState Integer> getDeviceState() {
197 return call(() -> asInterface(getService()).getDeviceState());
DIGlobalParametersService.aidl32 int getDeviceState(); in getDeviceState() method
/packages/modules/Uwb/service/support_lib/test/
DOemExtensionTests.java56 assertEquals(deviceState.getDeviceState(), state); in testDeviceState()
61 assertEquals(fromBundle.getDeviceState(), state); in testDeviceState()
/packages/modules/DeviceLock/DeviceLockController/tests/robolectric/src/com/android/devicelockcontroller/
DDeviceLockControllerServiceTest.java120 when(deviceStateController.getDeviceState()).thenReturn(Futures.immediateFuture( in lockDevice_failure_shouldLogToStatsLogger()
156 when(deviceStateController.getDeviceState()).thenReturn(Futures.immediateFuture( in unlockDevice_failure_shouldLogToStatsLogger()
/packages/modules/Uwb/service/support_lib/src/com/google/uwb/support/oemextension/
DDeviceStatus.java44 public long getDeviceState() { in getDeviceState() method in DeviceStatus
/packages/apps/Settings/src/com/android/settings/display/
DDeviceStateAutoRotationHelper.java80 settableDeviceState.getDeviceState(), in createPreferenceControllers()
/packages/modules/DeviceLock/DeviceLockController/src/com/android/devicelockcontroller/
DDeviceLockControllerService.java239 Futures.addCallback(mDeviceStateController.getDeviceState(),
/packages/modules/Uwb/tests/cts/tests/src/android/uwb/cts/
DUwbManagerTest.java1934 assertEquals(deviceStatusBundle.getDeviceState(), DEVICE_STATE_ACTIVE); in testOemCallbackExtension()