Home
last modified time | relevance | path

Searched refs:DeviceState (Results 1 – 22 of 22) sorted by relevance

/packages/modules/DeviceLock/DeviceLockController/tests/robolectric/src/com/android/devicelockcontroller/policy/
DDeviceStateControllerImplTest.java25 import com.android.devicelockcontroller.policy.DeviceStateController.DeviceState;
76 DeviceState.UNDEFINED); in lockDevice_withUnprovisionedState_shouldPseudoLockDevice()
91 DeviceState.UNDEFINED); in lockDevice_withProvisionInProgressState_shouldThrowException()
106 DeviceState.UNDEFINED); in lockDevice_withProvisionPausedState_shouldThrowException()
121 DeviceState.UNDEFINED); in lockDevice_withProvisionFailedState_shouldThrowException()
137 DeviceState.LOCKED); in lockDevice_withKioskProvisionedState_shouldLockDevice()
146 globalParametersClient.setDeviceState(DeviceState.CLEARED).get(); in lockDevice_withClearDeviceState_shouldThrowException()
164 DeviceState.LOCKED); in lockDevice_withProvisionSucceededState_shouldLockDevice()
181 DeviceState.UNLOCKED); in unlockDevice_withKioskProvisionedState_shouldUnlockDevice()
195 DeviceState.UNDEFINED); in unlockDevice_withUnprovisionedState_shouldPseudoUnlock()
[all …]
DDevicePolicyControllerImplTest.java28 import static com.android.devicelockcontroller.policy.DeviceStateController.DeviceState.CLEARED;
29 import static com.android.devicelockcontroller.policy.DeviceStateController.DeviceState.LOCKED;
30 import static com.android.devicelockcontroller.policy.DeviceStateController.DeviceState.UNDEFINED;
31 import static com.android.devicelockcontroller.policy.DeviceStateController.DeviceState.UNLOCKED;
/packages/apps/Camera2/src/com/android/camera/device/
DSingleDeviceStateMachine.java56 private enum DeviceState { enum in SingleDeviceStateMachine
83 private DeviceState mDeviceState;
111 mDeviceState = DeviceState.CLOSED; in SingleDeviceStateMachine()
191 mDeviceState = DeviceState.OPENED; in onDeviceOpened()
223 mDeviceState = DeviceState.CLOSING; in onDeviceOpenException()
240 mDeviceState = DeviceState.CLOSED; in onDeviceClosed()
270 if (mDeviceState == DeviceState.CLOSED && mTargetState == TargetState.OPENED) { in update()
272 } else if (mDeviceState == DeviceState.OPENED && mTargetState == TargetState.OPENED) { in update()
274 } else if (mDeviceState == DeviceState.OPENED && mTargetState == TargetState.CLOSED) { in update()
276 } else if (mDeviceState == DeviceState.CLOSED && mTargetState == TargetState.CLOSED) { in update()
[all …]
/packages/modules/DeviceLock/DeviceLockController/src/com/android/devicelockcontroller/policy/
DDeviceStateController.java64 DeviceState.UNDEFINED,
65 DeviceState.UNLOCKED,
66 DeviceState.LOCKED,
67 DeviceState.CLEARED,
69 @interface DeviceState { annotation
DDeviceStateControllerImpl.java19 import static com.android.devicelockcontroller.policy.DeviceStateController.DeviceState.CLEARED;
20 import static com.android.devicelockcontroller.policy.DeviceStateController.DeviceState.LOCKED;
21 import static com.android.devicelockcontroller.policy.DeviceStateController.DeviceState.UNDEFINED;
22 import static com.android.devicelockcontroller.policy.DeviceStateController.DeviceState.UNLOCKED;
45 private volatile @DeviceState int mPseudoDeviceState;
76 private ListenableFuture<Void> setDeviceState(@DeviceState int deviceState) { in setDeviceState()
DDevicePolicyControllerImpl.java22 import static com.android.devicelockcontroller.policy.DeviceStateController.DeviceState.CLEARED;
23 import static com.android.devicelockcontroller.policy.DeviceStateController.DeviceState.LOCKED;
24 import static com.android.devicelockcontroller.policy.DeviceStateController.DeviceState.UNDEFINED;
25 import static com.android.devicelockcontroller.policy.DeviceStateController.DeviceState.UNLOCKED;
57 import com.android.devicelockcontroller.policy.DeviceStateController.DeviceState;
229 final ListenableFuture<@DeviceState Integer> deviceState =
258 @ProvisionState int provisionState, @DeviceState int deviceState) {
/packages/modules/DeviceLock/DeviceLockController/src/com/android/devicelockcontroller/storage/
DGlobalParameters.java26 import com.android.devicelockcontroller.policy.DeviceStateController.DeviceState;
107 @DeviceState
109 return getSharedPreferences(context).getInt(KEY_DEVICE_STATE, DeviceState.UNDEFINED); in getDeviceState()
115 static void setDeviceState(Context context, @DeviceState int state) { in setDeviceState()
DGlobalParametersClient.java32 import com.android.devicelockcontroller.policy.DeviceStateController.DeviceState;
196 public ListenableFuture<@DeviceState Integer> getDeviceState() {
206 public ListenableFuture<Void> setDeviceState(@DeviceState int state) {
DGlobalParametersService.java25 import com.android.devicelockcontroller.policy.DeviceStateController.DeviceState;
85 public void setDeviceState(@DeviceState int state) {
/packages/services/Car/tests/android_car_api_test/src/android/car/apitest/
DDeviceConfigTest.java30 import com.android.bedstead.harrier.DeviceState;
49 public static final DeviceState sDeviceState = new DeviceState();
DLocalePickerTest.java27 import com.android.bedstead.harrier.DeviceState;
50 public static final DeviceState sDeviceState = new DeviceState();
/packages/modules/DeviceLock/DeviceLockController/src/com/android/devicelockcontroller/
DDeviceLockControllerService.java245 case DeviceStateController.DeviceState.UNLOCKED ->
248 case DeviceStateController.DeviceState.LOCKED ->
251 case DeviceStateController.DeviceState.CLEARED ->
254 case DeviceStateController.DeviceState.UNDEFINED ->
/packages/modules/DeviceLock/DeviceLockController/tests/robolectric/src/com/android/devicelockcontroller/
DDeviceLockControllerServiceTest.java121 DeviceStateController.DeviceState.UNLOCKED)); in lockDevice_failure_shouldLogToStatsLogger()
128 verify(mStatsLogger).logLockDeviceFailure(DeviceStateController.DeviceState.UNLOCKED); in lockDevice_failure_shouldLogToStatsLogger()
157 DeviceStateController.DeviceState.LOCKED)); in unlockDevice_failure_shouldLogToStatsLogger()
164 verify(mStatsLogger).logUnlockDeviceFailure(DeviceStateController.DeviceState.LOCKED); in unlockDevice_failure_shouldLogToStatsLogger()
/packages/modules/DeviceLock/DeviceLockController/src/com/android/devicelockcontroller/debug/
DDeviceLockCommandReceiver.java23 import static com.android.devicelockcontroller.policy.DeviceStateController.DeviceState.CLEARED;
24 import static com.android.devicelockcontroller.policy.DeviceStateController.DeviceState.LOCKED;
25 import static com.android.devicelockcontroller.policy.DeviceStateController.DeviceState.UNLOCKED;
48 import com.android.devicelockcontroller.policy.DeviceStateController.DeviceState;
421 private static FutureCallback<Void> getSetStateCallBack(@DeviceState int state) { in getSetStateCallBack()
/packages/modules/Uwb/indev_uwb_adaptation/jni/src/
Dcallback.rs27 use uwb_core::params::uci_packets::{DeviceState, ReasonCode, SessionId, SessionState};
140 fn on_uci_device_status_changed(&mut self, state: DeviceState) { in on_uci_device_status_changed() argument
/packages/modules/Permission/tests/cts/permissionmultiuser/src/android/permissionmultiuser/cts/
DAppDataSharingUpdatesTest.kt54 import com.android.bedstead.harrier.DeviceState in <lambda>()
205 @JvmField @ClassRule @Rule val deviceState: DeviceState = DeviceState() in <lambda>()
/packages/services/Telephony/src/com/android/services/telephony/
DDeviceState.java29 public class DeviceState { class
DTelephonyConnectionService.java235 private DeviceState mDeviceState = new DeviceState();
529 public void setDeviceState(DeviceState state) { in setDeviceState()
/packages/modules/AppSearch/testing/contactsindexertests/src/com/android/server/appsearch/contactsindexer/
DEnterpriseContactsTest.java83 import com.android.bedstead.harrier.DeviceState;
124 public static final DeviceState sDeviceState = new DeviceState();
/packages/modules/Permission/tests/functional/safetycenter/multiusers/src/android/safetycenter/functional/multiusers/
DSafetyCenterMultiUsersTest.kt45 import com.android.bedstead.harrier.DeviceState
115 @JvmField @ClassRule @Rule val deviceState: DeviceState = DeviceState()
/packages/modules/Permission/tests/cts/role/src/android/app/role/cts/
DRoleManagerTest.java68 import com.android.bedstead.harrier.DeviceState;
181 public static final DeviceState sDeviceState = new DeviceState();
/packages/services/Telephony/tests/src/com/android/services/telephony/
DTelephonyConnectionServiceTest.java236 @Mock DeviceState mDeviceState;