Home
last modified time | relevance | path

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

12

/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/helpers/
DSensorFeaturesDeactivator.java104 protected int getSettingMode(int defaultValue) { in getSettingMode() argument
109 .getInt(contentResolver, Settings.System.AIRPLANE_MODE_ON, defaultValue); in getSettingMode()
112 .getInt(contentResolver, Settings.Global.AIRPLANE_MODE_ON, defaultValue); in getSettingMode()
130 public int getSettingMode(int defaultValue) { in getSettingMode() argument
134 defaultValue); in getSettingMode()
144 protected int getSettingMode(int defaultValue) { in getSettingMode() argument
148 defaultValue); in getSettingMode()
159 protected int getSettingMode(int defaultValue) { in getSettingMode() argument
163 defaultValue); in getSettingMode()
174 protected int getSettingMode(int defaultValue) { in getSettingMode() argument
[all …]
DSensorSettingContainer.java114 protected abstract int getSettingMode(int defaultValue); in getSettingMode() argument
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/instrumentation/
DArguments.java41 public int getInt(String key, int defaultValue) { in getInt() argument
42 return mArguments.getInt(key, defaultValue); in getInt()
56 public boolean getBoolean(String key, boolean defaultValue) { in getBoolean() argument
59 return mArguments.getBoolean(key, defaultValue); in getBoolean()
71 public String getString(String key, String defaultValue) { in getString() argument
72 return mArguments.getString(key, defaultValue); in getString()
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/settings/
DSecureSettings.kt92 fun getInt(contentResolver: ContentResolver, key: String, defaultValue: Int): Int { in getInt()
95 return getIntInner(contentResolver, key, defaultValue) in getInt()
107 private fun getIntInner(contentResolver: ContentResolver, key: String, defaultValue: Int): Int { in getIntInner()
108 return Settings.Secure.getInt(contentResolver, key, defaultValue) in getIntInner()
139 fun getInt(user: UserReference, key: String, defaultValue: Int): Int { in getInt()
141 getInt(key, defaultValue) in getInt()
144 key, defaultValue) in getInt()
163 fun getInt(key: String, defaultValue: Int): Int { in getInt()
165 TestApis.context().instrumentedContext().contentResolver, key, defaultValue) in getInt()
231 fun getString(contentResolver: ContentResolver, key: String, defaultValue: String): String { in getString()
[all …]
DSystemSettings.kt135 fun getInt(contentResolver: ContentResolver, key: String, defaultValue: Int): Int { in getInt()
138 return getIntInner(contentResolver, key, defaultValue) in getInt()
150 private fun getIntInner(contentResolver: ContentResolver, key: String, defaultValue: Int): Int { in getIntInner()
151 return Settings.System.getInt(contentResolver, key, defaultValue) in getIntInner()
182 fun getInt(user: UserReference, key: String, defaultValue: Int): Int { in getInt()
184 getInt(key, defaultValue) in getInt()
187 key, defaultValue) in getInt()
206 fun getInt(key: String, defaultValue: Int): Int { in getInt()
208 TestApis.context().instrumentedContext().contentResolver, key, defaultValue) in getInt()
DGlobalSettings.kt135 fun getInt(contentResolver: ContentResolver, key: String, defaultValue: Int): Int { in <lambda>()
138 return getIntInner(contentResolver, key, defaultValue) in <lambda>()
150 private fun getIntInner(contentResolver: ContentResolver, key: String, defaultValue: Int): Int { in <lambda>()
151 return Settings.Global.getInt(contentResolver, key, defaultValue) in <lambda>()
182 fun getInt(user: UserReference, key: String, defaultValue: Int): Int { in <lambda>()
184 getInt(key, defaultValue) in <lambda>()
187 key, defaultValue) in <lambda>()
206 fun getInt(key: String, defaultValue: Int): Int { in <lambda>()
208 TestApis.context().instrumentedContext().contentResolver, key, defaultValue) in <lambda>()
/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.java181 public boolean isWatermarkEnabled(boolean defaultValue) { in isWatermarkEnabled() argument
182 return mBundle.getBoolean(WATERMARK_ENABLED, defaultValue); in isWatermarkEnabled()
185 public int getWatermarkGravity(int defaultValue) { in getWatermarkGravity() argument
186 return mBundle.getInt(WATERMARK_GRAVITY, defaultValue); in getWatermarkGravity()
189 public boolean getHardKeyboardConfigurationBehaviorAllowed(boolean defaultValue) { in getHardKeyboardConfigurationBehaviorAllowed() argument
190 return mBundle.getBoolean(HARD_KEYBOARD_CONFIGURATION_BEHAVIOR_ALLOWED, defaultValue); in getHardKeyboardConfigurationBehaviorAllowed()
198 public String getInlineSuggestionViewContentDesc(@Nullable String defaultValue) { in getInlineSuggestionViewContentDesc() argument
199 return mBundle.getString(INLINE_SUGGESTION_VIEW_CONTENT_DESC, defaultValue); in getInlineSuggestionViewContentDesc()
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
DOverrideAnimationScaleRule.java82 GlobalSetting(@NonNull String name, @Nullable String defaultValue) {
84 mDefaultValue = defaultValue;
/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/media/misc/src/android/media/misc/cts/
DExifInterfaceTest.java901 int defaultValue = -1; in testSetAttribute() local
906 assertEquals(defaultValue, exif.getAttributeInt(ExifInterface.TAG_MAKE, defaultValue)); in testSetAttribute()
911 assertEquals(defaultValue, exif.getAttributeInt(ExifInterface.TAG_MAKE, defaultValue)); in testSetAttribute()
970 int defaultValue = -1; in testGetAttributeForNullAndNonExistentTag() local
972 exif.getAttributeInt(null, defaultValue); in testGetAttributeForNullAndNonExistentTag()
977 assertEquals(defaultValue, exif.getAttributeInt(TAG_SUBJECT_AREA, defaultValue)); in testGetAttributeForNullAndNonExistentTag()
980 exif.getAttributeDouble(null, defaultValue); in testGetAttributeForNullAndNonExistentTag()
985 assertEquals(defaultValue, exif.getAttributeInt(TAG_SUBJECT_AREA, defaultValue)); in testGetAttributeForNullAndNonExistentTag()
/cts/tests/translation/src/android/translation/cts/unittests/
DTranslationValueTest.java106 final TranslationResponseValue defaultValue = in testTranslationResponseValue_extrasEqualityWhenEmpty() local
112 assertThat(defaultValue).isEqualTo(valueWithEmptyExtras); in testTranslationResponseValue_extrasEqualityWhenEmpty()
/cts/tests/camera/utils/src/android/hardware/camera2/cts/helpers/
DStaticMetadata.java1175 public int getSensitivityMinimumOrDefault(int defaultValue) { in getSensitivityMinimumOrDefault() argument
1181 "had no valid minimum value; using default of " + defaultValue); in getSensitivityMinimumOrDefault()
1183 return defaultValue; in getSensitivityMinimumOrDefault()
1210 public int getSensitivityMaximumOrDefault(int defaultValue) { in getSensitivityMaximumOrDefault() argument
1216 "had no valid maximum value; using default of " + defaultValue); in getSensitivityMaximumOrDefault()
1218 return defaultValue; in getSensitivityMaximumOrDefault()
1232 public long getExposureMinimumOrDefault(long defaultValue) { in getExposureMinimumOrDefault() argument
1237 "had no valid minimum value; using default of " + defaultValue); in getExposureMinimumOrDefault()
1238 return defaultValue; in getExposureMinimumOrDefault()
1265 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/contentcaptureservice/src/android/contentcaptureservice/cts/
DBlankActivityTest.java301 boolean defaultValue) { in assertContentCaptureEnableStatus() argument
303 boolean isEnabled = intent.getBooleanExtra("cc_enable", defaultValue); in assertContentCaptureEnableStatus()
/cts/tests/tests/nativemedia/aaudio/jni/
Dutils.cpp247 int AAudioExtensions::getIntegerProperty(const char *name, int defaultValue) { in getIntegerProperty() argument
248 int result = defaultValue; in getIntegerProperty()
Dutils.h207 static int getIntegerProperty(const char *name, int defaultValue);
/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/accessibilityservice/src/android/accessibilityservice/cts/
DFullScreenMagnificationGestureHandlerTest.java434 private int getSecureSettingInt(String key, int defaultValue) { in getSecureSettingInt() argument
437 defaultValue); in getSecureSettingInt()
/cts/tests/tests/webkit/src/android/webkit/cts/
DWebChromeClientTest.java535 String defaultValue, JsPromptResult result) { in onJsPrompt() argument
536 super.onJsPrompt(view, url, message, defaultValue, result); in onJsPrompt()
/cts/tests/tests/openglperf/src/android/openglperf/cts/
DGLSurfaceViewCustom.java962 EGLConfig config, int attribute, int defaultValue) { in findConfigAttrib() argument
967 return defaultValue; in findConfigAttrib()

12