Home
last modified time | relevance | path

Searched refs:defaultValue (Results 1 – 20 of 20) sorted by relevance

/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/helpers/
DSensorFeaturesDeactivator.java99 protected int getSettingMode(int defaultValue) { in getSettingMode() argument
104 .getInt(contentResolver, Settings.System.AIRPLANE_MODE_ON, defaultValue); in getSettingMode()
107 .getInt(contentResolver, Settings.Global.AIRPLANE_MODE_ON, defaultValue); in getSettingMode()
125 public int getSettingMode(int defaultValue) { in getSettingMode() argument
129 defaultValue); in getSettingMode()
139 protected int getSettingMode(int defaultValue) { in getSettingMode() argument
143 defaultValue); in getSettingMode()
154 protected int getSettingMode(int defaultValue) { in getSettingMode() argument
158 defaultValue); in getSettingMode()
169 protected int getSettingMode(int defaultValue) { in getSettingMode() argument
[all …]
DSensorSettingContainer.java114 protected abstract int getSettingMode(int defaultValue); in getSettingMode() argument
/cts/tests/tests/preference/src/android/preference/cts/
DPreferenceDataStoreTest.java211 assertEquals(TEST_DEFAULT_STR, mPreference.defaultValue); in testDefaultStringValue()
504 public Object defaultValue; field in PreferenceDataStoreTest.PreferenceWrapper
514 String getString(String defaultValue) { in getString() argument
515 return getPersistedString(defaultValue); in getString()
530 int getInt(int defaultValue) { in getInt() argument
531 return getPersistedInt(defaultValue); in getInt()
538 long getLong(long defaultValue) { in getLong() argument
539 return getPersistedLong(defaultValue); in getLong()
546 float getFloat(float defaultValue) { in getFloat() argument
547 return getPersistedFloat(defaultValue); in getFloat()
[all …]
DCustomPreference.java143 Object defaultValue) { in onSetInitialValue() argument
144 super.onSetInitialValue(restorePersistedValue, defaultValue); in onSetInitialValue()
/cts/tests/inputmethod/mockime/src/com/android/cts/mockime/
DImeSettings.java70 public boolean fullscreenModeAllowed(boolean defaultValue) { in fullscreenModeAllowed() argument
71 return mBundle.getBoolean(FULLSCREEN_MODE_ALLOWED, defaultValue); in fullscreenModeAllowed()
104 public boolean getHardKeyboardConfigurationBehaviorAllowed(boolean defaultValue) { in getHardKeyboardConfigurationBehaviorAllowed() argument
105 return mBundle.getBoolean(HARD_KEYBOARD_CONFIGURATION_BEHAVIOR_ALLOWED, defaultValue); in getHardKeyboardConfigurationBehaviorAllowed()
/cts/hostsidetests/userspacereboot/src/com/android/cts/userspacereboot/host/
DUserspaceRebootHostTest.java276 final String defaultValue = getProperty("init.userspace_reboot.watchdog.timeoutmillis", ""); in testUserspaceRebootWatchdogTriggers() local
284 getDevice().setProperty("init.userspace_reboot.watchdog.timeoutmillis", defaultValue); in testUserspaceRebootWatchdogTriggers()
371 private String getProperty(String name, String defaultValue) throws Exception { in getProperty() argument
373 return ret == null ? defaultValue : ret; in getProperty()
/cts/tests/tests/content/src/android/content/cts/util/
DXmlUtils.java61 convertValueToList(CharSequence value, String[] options, int defaultValue) in convertValueToList() argument
70 return defaultValue; in convertValueToList()
74 convertValueToBoolean(CharSequence value, boolean defaultValue) in convertValueToBoolean() argument
79 return defaultValue; in convertValueToBoolean()
90 convertValueToInt(CharSequence charSeq, int defaultValue) in convertValueToInt() argument
93 return defaultValue; in convertValueToInt()
135 public static int convertValueToUnsignedInt(String value, int defaultValue) { in convertValueToUnsignedInt() argument
137 return defaultValue; in convertValueToUnsignedInt()
1522 public static int readIntAttribute(XmlPullParser in, String name, int defaultValue) { in readIntAttribute() argument
1527 return defaultValue; in readIntAttribute()
[all …]
/cts/tests/tests/view/src/android/view/cts/util/
DXmlUtils.java58 convertValueToList(CharSequence value, String[] options, int defaultValue) in convertValueToList() argument
67 return defaultValue; in convertValueToList()
71 convertValueToBoolean(CharSequence value, boolean defaultValue) in convertValueToBoolean() argument
76 return defaultValue; in convertValueToBoolean()
87 convertValueToInt(CharSequence charSeq, int defaultValue) in convertValueToInt() argument
90 return defaultValue; in convertValueToInt()
132 public static int convertValueToUnsignedInt(String value, int defaultValue) { in convertValueToUnsignedInt() argument
134 return defaultValue; in convertValueToUnsignedInt()
1494 public static int readIntAttribute(XmlPullParser in, String name, int defaultValue) { in readIntAttribute() argument
1499 return defaultValue; in readIntAttribute()
[all …]
/cts/tests/tests/widget/src/android/widget/cts/util/
DXmlUtils.java59 convertValueToList(CharSequence value, String[] options, int defaultValue) in convertValueToList() argument
68 return defaultValue; in convertValueToList()
72 convertValueToBoolean(CharSequence value, boolean defaultValue) in convertValueToBoolean() argument
77 return defaultValue; in convertValueToBoolean()
88 convertValueToInt(CharSequence charSeq, int defaultValue) in convertValueToInt() argument
91 return defaultValue; in convertValueToInt()
133 public static int convertValueToUnsignedInt(String value, int defaultValue) { in convertValueToUnsignedInt() argument
135 return defaultValue; in convertValueToUnsignedInt()
1495 public static int readIntAttribute(XmlPullParser in, String name, int defaultValue) { in readIntAttribute() argument
1500 return defaultValue; in readIntAttribute()
[all …]
/cts/tests/tests/nativemedia/aaudio/jni/
Dtest_aaudio_mmap.cpp45 static int getSystemPropertyInt(const char *propName, int defaultValue) { in getSystemPropertyInt() argument
48 return defaultValue; in getSystemPropertyInt()
/cts/tests/camera/utils/src/android/hardware/camera2/cts/helpers/
DStaticMetadata.java1042 public int getSensitivityMinimumOrDefault(int defaultValue) { in getSensitivityMinimumOrDefault() argument
1047 "had no valid minimum value; using default of " + defaultValue); in getSensitivityMinimumOrDefault()
1048 return defaultValue; in getSensitivityMinimumOrDefault()
1075 public int getSensitivityMaximumOrDefault(int defaultValue) { in getSensitivityMaximumOrDefault() argument
1080 "had no valid maximum value; using default of " + defaultValue); in getSensitivityMaximumOrDefault()
1081 return defaultValue; in getSensitivityMaximumOrDefault()
1095 public long getExposureMinimumOrDefault(long defaultValue) { in getExposureMinimumOrDefault() argument
1100 "had no valid minimum value; using default of " + defaultValue); in getExposureMinimumOrDefault()
1101 return defaultValue; in getExposureMinimumOrDefault()
1128 public long getExposureMaximumOrDefault(long defaultValue) { in getExposureMaximumOrDefault() argument
[all …]
/cts/hostsidetests/sustainedperf/shadertoy_android/src/
DGLtestView.java213 EGLConfig config, int attribute, int defaultValue) { in findConfigAttrib() argument
218 return defaultValue; in findConfigAttrib()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/
DSoundPlayerObject.java545 private final int getMediaFormatInteger(MediaFormat mf, String name, int defaultValue) { in getMediaFormatInteger() argument
550 " field does not exist. Using default " + defaultValue); /* no such field */ in getMediaFormatInteger()
555 return defaultValue; in getMediaFormatInteger()
/cts/tests/vr/src/android/vr/cts/
DOpenGLESActivity.java372 EGLConfig config, int attribute, int defaultValue) { in findConfigAttrib() argument
378 return defaultValue; in findConfigAttrib()
/cts/tests/tests/webkit/src/android/webkit/cts/
DWebChromeClientTest.java530 String defaultValue, JsPromptResult result) { in onJsPrompt() argument
531 super.onJsPrompt(view, url, message, defaultValue, result); in onJsPrompt()
/cts/tests/tests/telephony/current/src/android/telephony/cts/
DSubscriptionManagerTest.java744 private <T, U> T executeWithShellPermissionAndDefault(T defaultValue, U targetObject, in executeWithShellPermissionAndDefault() argument
751 return defaultValue; in executeWithShellPermissionAndDefault()
/cts/tests/tests/app.usage/src/android/app/usage/cts/
DUsageStatsTest.java901 final int defaultValue = -1; in testIgnoreNonexistentPackage() local
906 int bucket = bucketMap.getOrDefault(fakePackageName, defaultValue); in testIgnoreNonexistentPackage()
913 bucket = bucketMap.getOrDefault(fakePackageName, defaultValue); in testIgnoreNonexistentPackage()
/cts/tests/tests/openglperf/src/android/openglperf/cts/
DGLSurfaceViewCustom.java962 EGLConfig config, int attribute, int defaultValue) { in findConfigAttrib() argument
967 return defaultValue; in findConfigAttrib()
/cts/hostsidetests/devicepolicy/src/com/android/cts/devicepolicy/
DBaseDevicePolicyTest.java554 protected boolean getBooleanSystemProperty(String key, boolean defaultValue) in getBooleanSystemProperty() argument
560 return defaultValue; in getBooleanSystemProperty()
/cts/tests/tests/widget/src/android/widget/cts/
DTextViewTest.java7867 final int defaultValue = 1; // 1px.
7870 assertEquals(defaultValue, textView.getAutoSizeStepGranularity());