/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/helpers/ |
D | SensorFeaturesDeactivator.java | 104 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 …]
|
D | SensorSettingContainer.java | 114 protected abstract int getSettingMode(int defaultValue); in getSettingMode() argument
|
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/instrumentation/ |
D | Arguments.java | 41 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/ |
D | SecureSettings.kt | 92 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 …]
|
D | SystemSettings.kt | 135 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()
|
D | GlobalSettings.kt | 135 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/ |
D | PreferenceDataStoreTest.java | 211 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 …]
|
D | CustomPreference.java | 143 Object defaultValue) { in onSetInitialValue() argument 144 super.onSetInitialValue(restorePersistedValue, defaultValue); in onSetInitialValue()
|
/cts/tests/inputmethod/mockime/src/com/android/cts/mockime/ |
D | ImeSettings.java | 181 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/ |
D | OverrideAnimationScaleRule.java | 82 GlobalSetting(@NonNull String name, @Nullable String defaultValue) { 84 mDefaultValue = defaultValue;
|
/cts/tests/tests/content/src/android/content/cts/util/ |
D | XmlUtils.java | 61 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/ |
D | XmlUtils.java | 58 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/ |
D | XmlUtils.java | 59 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/ |
D | ExifInterfaceTest.java | 901 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/ |
D | TranslationValueTest.java | 106 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/ |
D | StaticMetadata.java | 1175 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/ |
D | GLtestView.java | 213 EGLConfig config, int attribute, int defaultValue) { in findConfigAttrib() argument 218 return defaultValue; in findConfigAttrib()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/ |
D | SoundPlayerObject.java | 545 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/ |
D | BlankActivityTest.java | 301 boolean defaultValue) { in assertContentCaptureEnableStatus() argument 303 boolean isEnabled = intent.getBooleanExtra("cc_enable", defaultValue); in assertContentCaptureEnableStatus()
|
/cts/tests/tests/nativemedia/aaudio/jni/ |
D | utils.cpp | 247 int AAudioExtensions::getIntegerProperty(const char *name, int defaultValue) { in getIntegerProperty() argument 248 int result = defaultValue; in getIntegerProperty()
|
D | utils.h | 207 static int getIntegerProperty(const char *name, int defaultValue);
|
/cts/tests/vr/src/android/vr/cts/ |
D | OpenGLESActivity.java | 372 EGLConfig config, int attribute, int defaultValue) { in findConfigAttrib() argument 378 return defaultValue; in findConfigAttrib()
|
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/ |
D | FullScreenMagnificationGestureHandlerTest.java | 434 private int getSecureSettingInt(String key, int defaultValue) { in getSecureSettingInt() argument 437 defaultValue); in getSecureSettingInt()
|
/cts/tests/tests/webkit/src/android/webkit/cts/ |
D | WebChromeClientTest.java | 535 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/ |
D | GLSurfaceViewCustom.java | 962 EGLConfig config, int attribute, int defaultValue) { in findConfigAttrib() argument 967 return defaultValue; in findConfigAttrib()
|