/cts/hostsidetests/devicepolicy/app/DeviceAdmin/src/com.android.cts.deviceadmin/ |
D | DeviceAdminWithEnterprisePoliciesBlockedTest.java | 31 boolean originalValue = dpm.getCameraDisabled(mAdminComponent); in testCameraDisabled() 33 assertEquals(originalValue, dpm.getCameraDisabled(mAdminComponent)); in testCameraDisabled() 37 int originalValue = dpm.getKeyguardDisabledFeatures(mAdminComponent); in testKeyguardDisabledFeatures() local 40 assertEquals(originalValue, dpm.getKeyguardDisabledFeatures(mAdminComponent)); in testKeyguardDisabledFeatures() 52 int originalValue = dpm.getPasswordHistoryLength(mAdminComponent); in testPasswordHistoryLength() local 54 assertEquals(originalValue, dpm.getPasswordHistoryLength(mAdminComponent)); in testPasswordHistoryLength() 58 int originalValue = dpm.getPasswordMinimumLength(mAdminComponent); in testPasswordMinimumLength() local 60 assertEquals(originalValue, dpm.getPasswordMinimumLength(mAdminComponent)); in testPasswordMinimumLength() 64 int originalValue = dpm.getPasswordMinimumLetters(mAdminComponent); in testPasswordMinimumLetters() local 66 assertEquals(originalValue, dpm.getPasswordMinimumLetters(mAdminComponent)); in testPasswordMinimumLetters() [all …]
|
D | DeviceAdminTest.java | 62 int originalValue = dpm.getPasswordHistoryLength(mAdminComponent); in testPasswordHistoryLength() local 70 dpm.setPasswordHistoryLength(mAdminComponent, originalValue); in testPasswordHistoryLength() 78 long originalValue = dpm.getPasswordExpirationTimeout(mAdminComponent); in testPasswordExpirationTimeout() local 87 dpm.setPasswordExpirationTimeout(mAdminComponent, originalValue); in testPasswordExpirationTimeout()
|
/cts/tests/tests/hardware/src/android/hardware/hdmi/cts/ |
D | HdmiControlManagerTest.java | 254 int originalValue = mHdmiControlManager.getHdmiCecEnabled(); in testHdmiCecConfig_HdmiCecEnabled() local 260 assertThat(mHdmiControlManager.getHdmiCecEnabled()).isEqualTo(originalValue); in testHdmiCecConfig_HdmiCecEnabled() 271 mHdmiControlManager.setHdmiCecEnabled(originalValue); in testHdmiCecConfig_HdmiCecEnabled() 272 assertThat(mHdmiControlManager.getHdmiCecEnabled()).isEqualTo(originalValue); in testHdmiCecConfig_HdmiCecEnabled() 279 int originalValue = mHdmiControlManager.getHdmiCecEnabled(); in testHdmiCecConfig_HdmiCecEnabled_ListenerWithCustomExecutor() local 313 mHdmiControlManager.setHdmiCecEnabled(originalValue); in testHdmiCecConfig_HdmiCecEnabled_ListenerWithCustomExecutor() 314 assertThat(mHdmiControlManager.getHdmiCecEnabled()).isEqualTo(originalValue); in testHdmiCecConfig_HdmiCecEnabled_ListenerWithCustomExecutor() 321 int originalValue = mHdmiControlManager.getHdmiCecEnabled(); in testHdmiCecConfig_HdmiCecEnabled_Listener() local 354 mHdmiControlManager.setHdmiCecEnabled(originalValue); in testHdmiCecConfig_HdmiCecEnabled_Listener() 355 assertThat(mHdmiControlManager.getHdmiCecEnabled()).isEqualTo(originalValue); in testHdmiCecConfig_HdmiCecEnabled_Listener() [all …]
|
/cts/tests/devicepolicy/src/android/devicepolicy/cts/ |
D | SettingsTest.java | 75 int originalValue = TestApis.settings().global().getInt(DEPRECATED_GLOBAL_SETTING); in setGlobalSetting_settingIsDeprecated_doesNotChangeSetting() local 76 int newValue = originalValue + 1; in setGlobalSetting_settingIsDeprecated_doesNotChangeSetting() 84 .isEqualTo(originalValue); in setGlobalSetting_settingIsDeprecated_doesNotChangeSetting() 86 TestApis.settings().global().putInt(DEPRECATED_GLOBAL_SETTING, originalValue); in setGlobalSetting_settingIsDeprecated_doesNotChangeSetting() 112 int originalValue = TestApis.settings().global().getInt(SUPPORTED_GLOBAL_SETTING); in setGlobalSetting_supported_changesValue() local 113 int newValue = originalValue + 1; in setGlobalSetting_supported_changesValue() 123 TestApis.settings().global().putInt(SUPPORTED_GLOBAL_SETTING, originalValue); in setGlobalSetting_supported_changesValue() 130 int originalValue = TestApis.settings().secure() in setSecureSetting_sets() local 132 int newValue = originalValue + 1; in setSecureSetting_sets() 144 SECURE_SETTING, String.valueOf(originalValue)); in setSecureSetting_sets() [all …]
|
D | MtePolicyTest.java | 65 int originalValue = sDeviceState.dpc().devicePolicyManager().getMtePolicy(); in setMtePolicy_MTE_ENABLED_applies() local 72 sDeviceState.dpc().devicePolicyManager().setMtePolicy(originalValue); in setMtePolicy_MTE_ENABLED_applies() 81 int originalValue = sDeviceState.dpc().devicePolicyManager().getMtePolicy(); in setMtePolicy_MTE_ENABLED_logsEvent() local 94 sDeviceState.dpc().devicePolicyManager().setMtePolicy(originalValue); in setMtePolicy_MTE_ENABLED_logsEvent() 103 int originalValue = sDeviceState.dpc().devicePolicyManager().getMtePolicy(); in setMtePolicy_MTE_DISABLED_applies() local 110 sDeviceState.dpc().devicePolicyManager().setMtePolicy(originalValue); in setMtePolicy_MTE_DISABLED_applies() 119 int originalValue = sDeviceState.dpc().devicePolicyManager().getMtePolicy(); in setMtePolicy_MTE_DISABLED_logsEvent() local 132 sDeviceState.dpc().devicePolicyManager().setMtePolicy(originalValue); in setMtePolicy_MTE_DISABLED_logsEvent()
|
D | TimeTest.java | 69 boolean originalValue = sDeviceState.dpc().devicePolicyManager().getAutoTimeRequired(); in setAutoTimeRequired_false_setsAutoTimeNotRequired() 79 sDeviceState.dpc().componentName(), originalValue); in setAutoTimeRequired_false_setsAutoTimeNotRequired() local 86 boolean originalValue = sDeviceState.dpc().devicePolicyManager().getAutoTimeRequired(); in setAutoTimeRequired_true_setsAutoTimeRequired() 95 sDeviceState.dpc().componentName(), originalValue); in setAutoTimeRequired_true_setsAutoTimeRequired() local 112 boolean originalValue = sDeviceState.dpc().devicePolicyManager().getAutoTimeRequired(); in setAutoTimeRequired_true_policyDoesNotApply_autoTimeIsNotRequired() 121 sDeviceState.dpc().componentName(), originalValue); in setAutoTimeRequired_true_policyDoesNotApply_autoTimeIsNotRequired() local 129 boolean originalValue = sDeviceState.dpc().devicePolicyManager().getAutoTimeRequired(); in setAutoTimeRequired_true_logsEvent() 140 sDeviceState.dpc().componentName(), originalValue); in setAutoTimeRequired_true_logsEvent() local 148 boolean originalValue = sDeviceState.dpc().devicePolicyManager().getAutoTimeRequired(); in setAutoTimeRequired_false_logsEvent() 159 sDeviceState.dpc().componentName(), originalValue); in setAutoTimeRequired_false_logsEvent() local [all …]
|
D | DeviceManagementCoexistenceTest.java | 167 boolean originalValue = sDeviceState.dpc().devicePolicyManager() in getDevicePolicyState_autoTimezoneSet_returnsPolicy() 180 sDeviceState.dpc().componentName(), originalValue); in getDevicePolicyState_autoTimezoneSet_returnsPolicy() local 390 boolean originalValue = sDeviceState.dpc().devicePolicyManager() in getDevicePolicyState_autoTimezone_returnsCorrectResolutionMechanism() 405 sDeviceState.dpc().componentName(), originalValue); in getDevicePolicyState_autoTimezone_returnsCorrectResolutionMechanism() local 520 boolean originalValue = sDeviceState.dpc().devicePolicyManager() in policyUpdateReceiver_autoTimezoneSet_receivedPolicySetBroadcast() 531 sDeviceState.dpc().componentName(), originalValue); in policyUpdateReceiver_autoTimezoneSet_receivedPolicySetBroadcast() local
|
/cts/hostsidetests/backup/OtherSoundsSettingsApp/src/android/cts/backup/othersoundssettingsapp/ |
D | OtherSoundsSettingsTest.java | 100 int originalValue = prepareSystemSetting(Settings.System.DTMF_TONE_WHEN_DIALING); in testOtherSoundsSettings_dialPadTones() local 101 assertTrue("Dial pad tones does not exist.", originalValue != -1); in testOtherSoundsSettings_dialPadTones() 106 1 - originalValue); in testOtherSoundsSettings_dialPadTones() 114 assertTrue("Dial pad tones restore fail.", originalValue == restoreValue); in testOtherSoundsSettings_dialPadTones() 129 int originalValue = prepareSystemSetting(Settings.System.SOUND_EFFECTS_ENABLED); in testOtherSoundsSettings_touchSounds() local 130 assertTrue("Touch sounds does not exist.", originalValue != -1); in testOtherSoundsSettings_touchSounds() 135 1 - originalValue); in testOtherSoundsSettings_touchSounds() 143 assertTrue("Touch sounds restore fail.", originalValue == restoreValue); in testOtherSoundsSettings_touchSounds() 166 int originalValue = prepareSystemSetting(Settings.System.HAPTIC_FEEDBACK_ENABLED); in testOtherSoundsSettings_touchVibration() local 167 assertTrue("Touch vibration does not exist.", originalValue != -1); in testOtherSoundsSettings_touchVibration() [all …]
|
/cts/tests/tests/nfc/src/android/nfc/cts/ |
D | DefaultPaymentProviderTestUtils.java | 49 ComponentName originalValue = CardEmulation.getPreferredPaymentService(context); in setDefaultPaymentSetting() local 54 return originalValue; in setDefaultPaymentSetting() 70 ComponentName originalValue = setDefaultPaymentSetting(serviceName, context); in setDefaultPaymentService() local 87 return originalValue; in setDefaultPaymentService() 107 ComponentName originalValue = setDefaultPaymentService(service, context); in runWithDefaultPaymentService() local 112 if (originalValue != null) { in runWithDefaultPaymentService() 113 setDefaultPaymentService(originalValue, context); in runWithDefaultPaymentService() 119 ComponentName originalValue = setDefaultPaymentSetting(service, context); in runWithDefaultPaymentSetting() local 121 if (originalValue != null) { in runWithDefaultPaymentSetting() 122 setDefaultPaymentSetting(originalValue, context); in runWithDefaultPaymentSetting()
|
/cts/tests/tests/provider/src/android/provider/cts/settings/ |
D | Settings_SystemTest.java | 194 final String originalValue = System.getString(mContentResolver, System.RINGTONE); in testInvalidRingtoneUriIsRejected() local 203 assertThat(System.getString(mContentResolver, System.RINGTONE)).isEqualTo(originalValue); in testInvalidRingtoneUriIsRejected() 209 final String originalValue = System.getString(mContentResolver, System.NOTIFICATION_SOUND); in testInvalidAlarmAlertUriIsRejected() local 217 .isEqualTo(originalValue); in testInvalidAlarmAlertUriIsRejected() 223 final String originalValue = System.getString(mContentResolver, System.ALARM_ALERT); in testInvalidNotificationSoundUriIsRejected() local 230 assertThat(System.getString(mContentResolver, System.ALARM_ALERT)).isEqualTo(originalValue); in testInvalidNotificationSoundUriIsRejected()
|
/cts/tests/translation/src/android/translation/cts/ |
D | Helper.java | 169 String originalValue = System.getProperty(LOG_TAG, ""); in enableDebugLog() local 171 Log.d(TAG, "enableDebugLog(), original value = " + originalValue); in enableDebugLog() 172 return originalValue; in enableDebugLog()
|
/cts/common/device-side/bedstead/nene/src/test/java/com/android/bedstead/nene/utils/ |
D | RetryTest.java | 129 ValueTester(E originalValue, E changedValue, int numberOfIterations) { in ValueTester() argument 130 mOriginalValue = originalValue; in ValueTester()
|
D | PollTest.java | 517 ValueTester(E originalValue, E changedValue, int numberOfIterations) { in ValueTester() argument 518 mOriginalValue = originalValue; in ValueTester()
|
/cts/tests/tests/rsblas/src/android/renderscript/cts/ |
D | BNNMTest.java | 50 final int originalValue = data[n]; in addByteNoise() local 56 int newValue = (originalValue + delta); in addByteNoise()
|
/cts/tests/tests/resourcesloader/src/android/content/res/loader/cts/ |
D | ResourcesLoaderValuesTest.kt | 756 val originalValue = getValue(res) in <lambda>() constant 778 assertEquals(originalValue, getValue(res)) in <lambda>() 785 val originalValue = getValue(res) in <lambda>() constant 798 assertEquals(originalValue, getValue(res)) in <lambda>()
|
/cts/tests/tests/display/src/android/display/cts/ |
D | DisplayTest.java | 1105 final int originalValue = Settings.System.getInt(mContext.getContentResolver(), 1109 final int valueToSet = originalValue > 128 ? 40 : 200; // sufficiently different value 1115 assertEquals(originalValue, newValue); // verify that setting the new value failed. 1121 Settings.System.SCREEN_BRIGHTNESS, originalValue);
|
/cts/tests/tests/car/lib/CarIntegrationTestUtilsLib/src/android/car/cts/utils/ |
D | VehiclePropertyVerifier.java | 898 U originalValue = areaIdToInitialValue.valueAt(i); in restoreInitialValuesByAreaId() local 914 if (valueEquals(originalValue, currentValue)) { in restoreInitialValuesByAreaId() 918 propertyId, carPropertyConfig.getPropertyType(), areaId, originalValue); in restoreInitialValuesByAreaId() 921 + " at area ID: " + areaId + " to its original value: " + originalValue in restoreInitialValuesByAreaId()
|
/cts/tests/tests/os/src/android/os/storage/cts/ |
D | StorageManagerTest.java | 931 final Object originalValue = field.get(volume); in assertStorageVolumesEquals() local 933 assertEquals("Mismatch for field " + field.getName(), originalValue, clonedValue); in assertStorageVolumesEquals()
|