/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/utils/ |
D | AsyncResultHolderTests.java | 36 private static final int DEFAULT_VALUE = 2; field in AsyncResultHolderTests 57 final int resultValue = holder.get(DEFAULT_VALUE, TIMEOUT_IN_MILLISECONDS); in testGetWithoutSet() 58 assertEquals(DEFAULT_VALUE, resultValue); in testGetWithoutSet() 65 final int resultValue = holder.get(DEFAULT_VALUE, TIMEOUT_IN_MILLISECONDS); in testGetBeforeSet() 66 assertEquals(DEFAULT_VALUE, resultValue); in testGetBeforeSet() 73 final int resultValue = holder.get(DEFAULT_VALUE, TIMEOUT_IN_MILLISECONDS); in testGetAfterSet() 81 final int resultValue = holder.get(DEFAULT_VALUE, TIMEOUT_IN_MILLISECONDS); in testGetBeforeTimeout()
|
/packages/apps/Settings/src/com/android/settings/display/ |
D | AutoBrightnessPreferenceController.java | 30 private final int DEFAULT_VALUE = SCREEN_BRIGHTNESS_MODE_MANUAL; field in AutoBrightnessPreferenceController 39 SYSTEM_KEY, DEFAULT_VALUE) != DEFAULT_VALUE; in isChecked() 45 isChecked ? SCREEN_BRIGHTNESS_MODE_AUTOMATIC : DEFAULT_VALUE); in setChecked()
|
D | AdaptiveSleepPreferenceController.java | 51 private static final int DEFAULT_VALUE = 0; field in AdaptiveSleepPreferenceController 113 Settings.Secure.ADAPTIVE_SLEEP, isChecked ? 1 : DEFAULT_VALUE); in initializePreference() 123 Settings.Secure.ADAPTIVE_SLEEP, DEFAULT_VALUE) in isChecked() 124 != DEFAULT_VALUE; in isChecked()
|
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/ |
D | WifiPowerMetricsTest.java | 47 private static final long DEFAULT_VALUE = 0; field in WifiPowerMetricsTest 87 + "null", DEFAULT_VALUE, wifiRadioUsage.loggingDurationMs); in testBuildWifiRadioUsageProtoNull() 89 DEFAULT_VALUE, wifiRadioUsage.scanTimeMs); in testBuildWifiRadioUsageProtoNull() 173 + " returns null", DEFAULT_VALUE, wifiPowerStats.monitoredRailEnergyConsumedMah, in testBuildProtoNull()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/development/ |
D | AnimatorDurationScalePreferenceControllerTest.java | 22 .DEFAULT_VALUE; 87 verify(mWindowManager).setAnimationScale(ANIMATOR_DURATION_SCALE_SELECTOR, DEFAULT_VALUE); in onPreferenceChange_noValueSet_shouldSetDefault() 124 verify(mWindowManager).setAnimationScale(ANIMATOR_DURATION_SCALE_SELECTOR, DEFAULT_VALUE); in onDeveloperOptionsSwitchDisabled_shouldDisablePreference()
|
D | TransitionAnimationScalePreferenceControllerTest.java | 20 .DEFAULT_VALUE; 88 .setAnimationScale(TRANSITION_ANIMATION_SCALE_SELECTOR, DEFAULT_VALUE); in onPreferenceChange_noValueSet_shouldSetDefault() 126 .setAnimationScale(TRANSITION_ANIMATION_SCALE_SELECTOR, DEFAULT_VALUE); in onDeveloperOptionsSwitchDisabled_shouldDisablePreference()
|
D | WindowAnimationScalePreferenceControllerTest.java | 20 .DEFAULT_VALUE; 87 verify(mWindowManager).setAnimationScale(WINDOW_ANIMATION_SCALE_SELECTOR, DEFAULT_VALUE); in onPreferenceChange_noValueSet_shouldSetDefault() 124 verify(mWindowManager).setAnimationScale(WINDOW_ANIMATION_SCALE_SELECTOR, DEFAULT_VALUE); in onDeveloperOptionsSwitchDisabled_shouldDisablePreference()
|
/packages/apps/Settings/tests/unit/src/com/android/settings/accessibility/ |
D | SelectLongPressTimeoutPreferenceControllerTest.java | 37 private static final int DEFAULT_VALUE = 400; field in SelectLongPressTimeoutPreferenceControllerTest 57 Settings.Secure.LONG_PRESS_TIMEOUT, DEFAULT_VALUE); in getSummary_byDefault_shouldReturnShort() local
|
/packages/apps/Settings/src/com/android/settings/development/ |
D | TransitionAnimationScalePreferenceController.java | 41 static final float DEFAULT_VALUE = 1; field in TransitionAnimationScalePreferenceController 82 float scale = newValue != null ? Float.parseFloat(newValue.toString()) : DEFAULT_VALUE; in writeAnimationScaleOption()
|
D | AnimatorDurationScalePreferenceController.java | 40 static final float DEFAULT_VALUE = 1; field in AnimatorDurationScalePreferenceController 80 float scale = newValue != null ? Float.parseFloat(newValue.toString()) : DEFAULT_VALUE; in writeAnimationScaleOption()
|
D | WindowAnimationScalePreferenceController.java | 41 static final float DEFAULT_VALUE = 1; field in WindowAnimationScalePreferenceController 81 float scale = newValue != null ? Float.parseFloat(newValue.toString()) : DEFAULT_VALUE; in writeAnimationScaleOption()
|
/packages/services/Car/tests/vehiclehal_test/src/com/android/car/vehiclehal/test/ |
D | CarPropertyTest.java | 76 private static final Object[] DEFAULT_VALUE = {"MIXED property", true, 2, 3, 4.5f}; field in CarPropertyTest 254 assertArrayEquals(DEFAULT_VALUE, propertyValue.getValue()); in testMixedTypeProperty()
|