Home
last modified time | relevance | path

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

/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/helpers/
DSensorFeaturesDeactivator.java98 protected int getSettingMode(int defaultValue) { in getSettingMode() argument
103 .getInt(contentResolver, Settings.System.AIRPLANE_MODE_ON, defaultValue); in getSettingMode()
106 .getInt(contentResolver, Settings.Global.AIRPLANE_MODE_ON, defaultValue); in getSettingMode()
117 public int getSettingMode(int defaultValue) { in getSettingMode() argument
121 defaultValue); in getSettingMode()
131 protected int getSettingMode(int defaultValue) { in getSettingMode() argument
139 return defaultValue; in getSettingMode()
146 return defaultValue; in getSettingMode()
152 defaultValue); in getSettingMode()
163 protected int getSettingMode(int defaultValue) { in getSettingMode() argument
[all …]
DSensorSettingContainer.java110 protected abstract int getSettingMode(int defaultValue); in getSettingMode() argument
/cts/tools/signature-tools/src/signature/model/impl/
DSigAnnotationField.java27 private Object defaultValue = Uninitialized.unset(); field in SigAnnotationField
34 return defaultValue; in getDefaultValue()
37 public void setDefaultValue(Object defaultValue) { in setDefaultValue() argument
38 this.defaultValue = defaultValue; in setDefaultValue()
/cts/tools/signature-tools/test/signature/converter/
DConvertAnnotationTest.java150 Integer defaultValue = (Integer)annotationField.getDefaultValue(); in testAnnotationDefaultsInt1() local
151 assertEquals(1, defaultValue.intValue()); in testAnnotationDefaultsInt1()
174 Object[] defaultValue = (Object[])field.getDefaultValue(); in testAnnotationDefaultsInt2() local
175 assertEquals(0, defaultValue.length); in testAnnotationDefaultsInt2()
198 Object[] defaultValue = (Object[])field.getDefaultValue(); in testAnnotationDefaultsInt3() local
199 assertEquals(2, defaultValue.length); in testAnnotationDefaultsInt3()
201 Object defaultValue0 = defaultValue[0]; in testAnnotationDefaultsInt3()
206 Object defaultValue1 = defaultValue[1]; in testAnnotationDefaultsInt3()
235 Double defaultValue = (Double)annotationField.getDefaultValue(); in testAnnotationDefaultsDouble1() local
236 assertEquals(1.0, defaultValue.doubleValue()); in testAnnotationDefaultsDouble1()
[all …]
/cts/libs/vogar-expect/src/vogar/
DAnnotatedOutcome.java84 public ResultValue getMostRecentResultValue(ResultValue defaultValue) { in getMostRecentResultValue() argument
87 defaultValue : in getMostRecentResultValue()
140 public Long lastRun(Long defaultValue) { in lastRun() argument
142 return defaultValue; in lastRun()
145 return runTimes.isEmpty() ? defaultValue : runTimes.get(runTimes.size() - 1); in lastRun()
/cts/tests/tests/preference2/src/android/preference2/cts/
DCustomPreference.java146 Object defaultValue) { in onSetInitialValue() argument
147 super.onSetInitialValue(restorePersistedValue, defaultValue); in onSetInitialValue()
/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/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/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/hardware/src/android/hardware/camera2/cts/helpers/
DStaticMetadata.java957 public int getSensitivityMinimumOrDefault(int defaultValue) { in getSensitivityMinimumOrDefault() argument
962 "had no valid minimum value; using default of " + defaultValue); in getSensitivityMinimumOrDefault()
963 return defaultValue; in getSensitivityMinimumOrDefault()
990 public int getSensitivityMaximumOrDefault(int defaultValue) { in getSensitivityMaximumOrDefault() argument
995 "had no valid maximum value; using default of " + defaultValue); in getSensitivityMaximumOrDefault()
996 return defaultValue; in getSensitivityMaximumOrDefault()
1010 public long getExposureMinimumOrDefault(long defaultValue) { in getExposureMinimumOrDefault() argument
1015 "had no valid minimum value; using default of " + defaultValue); in getExposureMinimumOrDefault()
1016 return defaultValue; in getExposureMinimumOrDefault()
1043 public long getExposureMaximumOrDefault(long defaultValue) { in getExposureMaximumOrDefault() argument
[all …]
/cts/tools/signature-tools/templates/model/
Dmodel.stg23 $SigField(element = element)$ $if(element.defaultValue)$ default=$element.defaultValue$$endif$
/cts/tests/tests/webkit/src/android/webkit/cts/
DWebChromeClientTest.java415 String defaultValue, JsPromptResult result) { in onJsPrompt() argument
416 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()
/cts/tools/signature-tools/src/signature/converter/dex/
DDexToSigConverter.java484 Object defaultValue) { in convertAnnotationField() argument
487 annotationField.setDefaultValue(defaultValue); in convertAnnotationField()
/cts/tools/signature-tools/src/signature/converter/doclet/
DDocletToSigConverter.java233 annotationElement.defaultValue())); in convertClass()
/cts/suite/cts/deviceTests/browserbench/assets/octane/
Dgbemu.js10628 GameBoyCore.prototype.getTypedArray = function (length, defaultValue, numberType) { argument
10651 if (defaultValue != 0) {
10654 arrayHandle[index++] = defaultValue;
10663 arrayHandle[index++] = defaultValue;
/cts/suite/cts/deviceTests/browserbench/assets/octane/js/
Djquery.js6063 dest.defaultValue = src.defaultValue;