Home
last modified time | relevance | path

Searched refs:DEFAULT_VALUE (Results 1 – 12 of 12) sorted by relevance

/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/utils/
DAsyncResultHolderTests.java36 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/
DAutoBrightnessPreferenceController.java30 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()
DAdaptiveSleepPreferenceController.java51 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/
DWifiPowerMetricsTest.java47 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/
DAnimatorDurationScalePreferenceControllerTest.java22 .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()
DTransitionAnimationScalePreferenceControllerTest.java20 .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()
DWindowAnimationScalePreferenceControllerTest.java20 .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/
DSelectLongPressTimeoutPreferenceControllerTest.java37 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/
DTransitionAnimationScalePreferenceController.java41 static final float DEFAULT_VALUE = 1; field in TransitionAnimationScalePreferenceController
82 float scale = newValue != null ? Float.parseFloat(newValue.toString()) : DEFAULT_VALUE; in writeAnimationScaleOption()
DAnimatorDurationScalePreferenceController.java40 static final float DEFAULT_VALUE = 1; field in AnimatorDurationScalePreferenceController
80 float scale = newValue != null ? Float.parseFloat(newValue.toString()) : DEFAULT_VALUE; in writeAnimationScaleOption()
DWindowAnimationScalePreferenceController.java41 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/
DCarPropertyTest.java76 private static final Object[] DEFAULT_VALUE = {"MIXED property", true, 2, 3, 4.5f}; field in CarPropertyTest
254 assertArrayEquals(DEFAULT_VALUE, propertyValue.getValue()); in testMixedTypeProperty()