Home
last modified time | relevance | path

Searched refs:GlobalParameters (Results 1 – 3 of 3) sorted by relevance

/packages/modules/DeviceLock/DeviceLockController/src/com/android/devicelockcontroller/storage/
DGlobalParametersService.java41 GlobalParameters.clear(mContext);
46 GlobalParameters.dump(mContext);
51 return GlobalParameters.isProvisionReady(mContext);
56 GlobalParameters.setProvisionReady(mContext, isProvisionReady);
61 return GlobalParameters.getRegisteredDeviceId(mContext);
66 GlobalParameters.setRegisteredDeviceId(mContext, registeredDeviceId);
71 return GlobalParameters.isProvisionForced(mContext);
76 GlobalParameters.setProvisionForced(mContext, isForced);
81 return GlobalParameters.getDeviceState(mContext);
86 GlobalParameters.setDeviceState(mContext, state);
[all …]
DGlobalParameters.java39 final class GlobalParameters { class
50 private GlobalParameters() { in GlobalParameters() method in GlobalParameters
/packages/modules/DeviceLock/DeviceLockController/tests/robolectric/src/com/android/devicelockcontroller/storage/
DGlobalParametersTest.java43 assertThat(GlobalParameters.getRegisteredDeviceId(mContext)).isNull(); in getRegisteredId_shouldReturnExpectedResult()
45 GlobalParameters.setRegisteredDeviceId(mContext, REGISTERED_DEVICE_ID); in getRegisteredId_shouldReturnExpectedResult()
47 assertThat(GlobalParameters.getRegisteredDeviceId(mContext)).isEqualTo( in getRegisteredId_shouldReturnExpectedResult()
53 assertThat(GlobalParameters.isProvisionForced(mContext)).isNotEqualTo(FORCED_PROVISION); in isProvisionForced_shouldReturnExpectedResult()
55 GlobalParameters.setProvisionForced(mContext, FORCED_PROVISION); in isProvisionForced_shouldReturnExpectedResult()
57 assertThat(GlobalParameters.isProvisionForced(mContext)).isEqualTo(FORCED_PROVISION); in isProvisionForced_shouldReturnExpectedResult()
62 assertThat(GlobalParameters.getLastReceivedProvisionState(mContext)).isNotEqualTo( in getLastReceivedProvisionState_shouldReturnExpectedResult()
65 GlobalParameters.setLastReceivedProvisionState(mContext, LAST_RECEIVED_PROVISION_STATE); in getLastReceivedProvisionState_shouldReturnExpectedResult()
67 assertThat(GlobalParameters.getLastReceivedProvisionState(mContext)).isEqualTo( in getLastReceivedProvisionState_shouldReturnExpectedResult()
73 assertThat(GlobalParameters.getFinalizationState(mContext)).isNotEqualTo(FINALIZED); in getFinalizationState_shouldReturnExpectedResult()
[all …]