Home
last modified time | relevance | path

Searched refs:value (Results 1 – 25 of 929) sorted by relevance

12345678910>>...38

/cts/tools/release-parser/tests/resources/
Dbuild.prop.pb.txt7 value: "default"
11 value: "REL"
15 value: "Google"
19 value: "REL"
23 value: "9"
27 value: "Fri Jul 20 20:55:13 UTC 2018"
31 value: "vpee7.mtv.corp.google.com"
35 value: "1532120113"
39 value: "1"
43 value: "true"
[all …]
Dplatform.xml.pb.txt7 value {
22 value {
28 value: "/system/framework/android.test.base.jar"
35 value: "/system/framework/android.test.mock.jar"
42 value: "/system/framework/android.test.runner.jar"
49 value: "/system/framework/javax.obex.jar"
56 value: "/system/framework/org.apache.http.legacy.boot.jar"
63 value {
72 value {
78 value: "net_bt_admin"
[all …]
/cts/tests/tests/tools/processors/view_inspector/src/android/processor/view/inspector/cts/
DTestPropertyReader.java48 public void readBoolean(int id, boolean value) { in readBoolean() argument
49 mProperties.put(id, value); in readBoolean()
53 public void readByte(int id, byte value) { in readByte() argument
54 mProperties.put(id, value); in readByte()
58 public void readChar(int id, char value) { in readChar() argument
59 mProperties.put(id, value); in readChar()
63 public void readDouble(int id, double value) { in readDouble() argument
64 mProperties.put(id, value); in readDouble()
68 public void readFloat(int id, float value) { in readFloat() argument
69 mProperties.put(id, value); in readFloat()
[all …]
/cts/tests/tests/util/src/android/util/cts/
DJsonWriterTest.java43 jsonWriter.value("a"); in testWrongTopLevelType()
81 jsonWriter.value(true); in testValueWithoutName()
143 jsonWriter.value((String) null); in testNullStringValue()
154 jsonWriter.value(Double.NaN); in testNonFiniteDoubles()
159 jsonWriter.value(Double.NEGATIVE_INFINITY); in testNonFiniteDoubles()
164 jsonWriter.value(Double.POSITIVE_INFINITY); in testNonFiniteDoubles()
176 jsonWriter.value(new Double(Double.NaN)); in testNonFiniteBoxedDoubles()
181 jsonWriter.value(new Double(Double.NEGATIVE_INFINITY)); in testNonFiniteBoxedDoubles()
186 jsonWriter.value(new Double(Double.POSITIVE_INFINITY)); in testNonFiniteBoxedDoubles()
197 jsonWriter.value(-0.0); in testDoubles()
[all …]
/cts/tests/tests/binder_ndk/src/android/binder/cts/
DJavaClientTest.java339 boolean[] value = {}; in testArrays()
340 boolean[] out1 = new boolean[value.length]; in testArrays()
341 boolean[] out2 = mInterface.RepeatBooleanArray(value, out1); in testArrays()
343 Assert.assertArrayEquals(value, out1); in testArrays()
344 Assert.assertArrayEquals(value, out2); in testArrays()
347 boolean[] value = {false, true, false}; in testArrays()
348 boolean[] out1 = new boolean[value.length]; in testArrays()
349 boolean[] out2 = mInterface.RepeatBooleanArray(value, out1); in testArrays()
351 Assert.assertArrayEquals(value, out1); in testArrays()
352 Assert.assertArrayEquals(value, out2); in testArrays()
[all …]
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
DDeviceInfoStore.java118 public void addResult(String name, int value) throws IOException { in addResult() argument
121 mJsonWriter.value(value); in addResult()
128 public void addResult(String name, long value) throws IOException { in addResult() argument
131 mJsonWriter.value(value); in addResult()
138 public void addResult(String name, float value) throws IOException { in addResult() argument
139 addResult(name, (double) value); in addResult()
146 public void addResult(String name, double value) throws IOException { in addResult() argument
148 if (isDoubleNaNOrInfinite(value)) { in addResult()
152 mJsonWriter.value(value); in addResult()
160 public void addResult(String name, boolean value) throws IOException { in addResult() argument
[all …]
DSettingsUtils.java48 public static void set(@NonNull String namespace, @NonNull String key, @Nullable String value) { in set() argument
49 if (value == null) { in set()
53 if (TMP_HACK_REMOVE_EMPTY_PROPERTIES && TextUtils.isEmpty(value)) { in set()
58 runShellCommand("settings put %s %s %s default", namespace, key, value); in set()
64 public static void set(@NonNull String key, @Nullable String value) { in set() argument
65 set(NAMESPACE_SECURE, key, value); in set()
72 @NonNull String key, @Nullable String value) { in syncSet() argument
73 if (value == null) { in syncSet()
79 if (value.equals(currentValue)) { in syncSet()
86 set(namespace, key, value); in syncSet()
[all …]
DBundleUtils.java36 final Object value = keysAndValues[i + 1]; in makeBundle() local
38 if (value == null) { in makeBundle()
41 } else if (value instanceof Boolean) { in makeBundle()
42 ret.putBoolean(key, (Boolean) value); in makeBundle()
44 } else if (value instanceof Integer) { in makeBundle()
45 ret.putInt(key, (Integer) value); in makeBundle()
47 } else if (value instanceof String) { in makeBundle()
48 ret.putString(key, (String) value); in makeBundle()
50 } else if (value instanceof Bundle) { in makeBundle()
51 ret.putBundle(key, (Bundle) value); in makeBundle()
[all …]
/cts/common/device-side/util/src/com/android/compatibility/common/util/
DDeviceInfoStore.java118 public void addResult(String name, int value) throws IOException { in addResult() argument
121 mJsonWriter.value(value); in addResult()
128 public void addResult(String name, long value) throws IOException { in addResult() argument
131 mJsonWriter.value(value); in addResult()
138 public void addResult(String name, float value) throws IOException { in addResult() argument
139 addResult(name, (double) value); in addResult()
146 public void addResult(String name, double value) throws IOException { in addResult() argument
148 if (isDoubleNaNOrInfinite(value)) { in addResult()
152 mJsonWriter.value(value); in addResult()
160 public void addResult(String name, boolean value) throws IOException { in addResult() argument
[all …]
DSettingsUtils.java49 public static void set(@NonNull String namespace, @NonNull String key, @Nullable String value) { in set() argument
50 if (value == null) { in set()
54 if (TMP_HACK_REMOVE_EMPTY_PROPERTIES && TextUtils.isEmpty(value)) { in set()
59 runShellCommand("settings put %s %s %s default", namespace, key, value); in set()
65 public static void set(@NonNull String key, @Nullable String value) { in set() argument
66 set(NAMESPACE_SECURE, key, value); in set()
73 @NonNull String key, @Nullable String value) { in syncSet() argument
74 if (value == null) { in syncSet()
80 if (value.equals(currentValue)) { in syncSet()
87 set(namespace, key, value); in syncSet()
[all …]
DBundleUtils.java36 final Object value = keysAndValues[i + 1]; in makeBundle() local
38 if (value == null) { in makeBundle()
41 } else if (value instanceof Boolean) { in makeBundle()
42 ret.putBoolean(key, (Boolean) value); in makeBundle()
44 } else if (value instanceof Integer) { in makeBundle()
45 ret.putInt(key, (Integer) value); in makeBundle()
47 } else if (value instanceof String) { in makeBundle()
48 ret.putString(key, (String) value); in makeBundle()
50 } else if (value instanceof Bundle) { in makeBundle()
51 ret.putBundle(key, (Bundle) value); in makeBundle()
[all …]
/cts/tests/tests/provider/src/android/provider/cts/contacts/
DContactsTest.java92 ContentValues value = new ContentValues(); in testPeopleTable() local
93 value.put(PeopleColumns.NAME, insertPeopleName); in testPeopleTable()
94 value.put(PeopleColumns.NOTES, insertPeopleNotes); in testPeopleTable()
95 value.put(PeopleColumns.LAST_TIME_CONTACTED, 0); in testPeopleTable()
96 value.put(PeopleColumns.CUSTOM_RINGTONE, (String) null); in testPeopleTable()
97 value.put(PeopleColumns.SEND_TO_VOICEMAIL, 1); in testPeopleTable()
99 Uri uri = mProvider.insert(People.CONTENT_URI, value); in testPeopleTable()
116 value.clear(); in testPeopleTable()
118 value.put(PeopleColumns.NAME, updatePeopleName); in testPeopleTable()
119 value.put(PeopleColumns.NOTES, updatePeopleNotes); in testPeopleTable()
[all …]
DVoicemailContractTest.java144 ContentValues value = new ContentValues(); in testVoicemailsTable() local
145 value.put(Voicemails.NUMBER, insertCallsNumber); in testVoicemailsTable()
146 value.put(Voicemails.DATE, insertDate); in testVoicemailsTable()
147 value.put(Voicemails.DURATION, insertCallsDuration); in testVoicemailsTable()
148 value.put(Voicemails.NEW, 0); in testVoicemailsTable()
150 value.put(Voicemails.SOURCE_DATA, insertSourceData); in testVoicemailsTable()
151 value.put(Voicemails.MIME_TYPE, insertMimeType); in testVoicemailsTable()
152 value.put(Voicemails.IS_READ, false); in testVoicemailsTable()
153 value.put(Voicemails.HAS_CONTENT, true); in testVoicemailsTable()
154 value.put(Voicemails.TRANSCRIPTION, "foo"); in testVoicemailsTable()
[all …]
/cts/tests/tests/location/src/android/location/cts/asn1/base/
DAsn1OctetString.java39 private byte[] value; field in Asn1OctetString
54 return value; in getValue()
57 public void setValue(byte[] value) { in setValue() argument
58 this.value = value; in setValue()
66 Preconditions.checkNotNull(value, "No value set."); in getBerValueLength()
67 return value.length; in getBerValueLength()
71 Preconditions.checkNotNull(value, "No value set."); in encodeBerValue()
72 buf.put(value); in encodeBerValue()
76 value = getRemaining(buf); in decodeBerValue()
80 Preconditions.checkNotNull(value, "No value set."); in encodePerImpl()
[all …]
DAsn1BitString.java41 private BitSet value; field in Asn1BitString
56 return value; in getValue()
59 public void setValue(BitSet value) { in setValue() argument
60 this.value = value; in setValue()
68 Preconditions.checkNotNull(value, "No value set."); in getBerValueLength()
70 return (value.length() + 7) / 8 + 1; in getBerValueLength()
74 Preconditions.checkNotNull(value, "No value set."); in encodeBerValue()
76 maximumSize == null || value.length() <= maximumSize, "Too large %s", in encodeBerValue()
77 value.length()); in encodeBerValue()
79 int bitsToEncode = Math.max(minimumSize, value.length()); in encodeBerValue()
[all …]
DAsn1Integer.java40 private BigInteger value; field in Asn1Integer
82 Preconditions.checkNotNull(value, "No value set."); in validateValue()
84 minimumValue == null || value.compareTo(minimumValue) >= 0, in validateValue()
85 "Too small value %s", value); in validateValue()
87 maximumValue == null || value.compareTo(maximumValue) <= 0, in validateValue()
88 "Too large value %s", value); in validateValue()
92 if (value.equals(BigInteger.ZERO)) { in getBerValueLength()
96 return (value.bitLength() >> 3) + 1; in getBerValueLength()
101 if (value.equals(BigInteger.ZERO)) { in encodeBerValue()
104 buf.put(value.toByteArray()); in encodeBerValue()
[all …]
DAsn1Enumerated.java32 private Value value; field in Asn1Enumerated
45 return value; in getValue()
48 public void setValue(Value value) { in setValue() argument
49 this.value = value; in setValue()
84 value = lookupValue(ai.getInteger().intValue()); in decodeBerValue()
88 Preconditions.checkNotNull(value, "No value set."); in asAsn1Integer()
90 ai.setInteger(BigInteger.valueOf(value.getAssignedValue())); in asAsn1Integer()
98 extensionMarker.appendBit(value.isExtensionValue()); in encodePerImpl()
101 if (value.isExtensionValue()) { in encodePerImpl()
104 PerAlignedUtils.encodeNormallySmallWholeNumber(value.ordinal())); in encodePerImpl()
[all …]
/cts/tools/release-parser/src/com/android/cts/releaseparser/
DJsonPrinter.java61 mJsonWriter.name("name").value(mRelContent.getName()); in writeReleaseContent()
62 mJsonWriter.name("version").value(mRelContent.getVersion()); in writeReleaseContent()
63 mJsonWriter.name("build_number").value(mRelContent.getBuildNumber()); in writeReleaseContent()
64 mJsonWriter.name("fullname").value(mRelContent.getFullname()); in writeReleaseContent()
65 mJsonWriter.name("size").value(mRelContent.getSize()); in writeReleaseContent()
66 mJsonWriter.name("release_type").value(mRelContent.getReleaseType().toString()); in writeReleaseContent()
67 mJsonWriter.name("test_suite_tradefed").value(mRelContent.getTestSuiteTradefed()); in writeReleaseContent()
68 mJsonWriter.name("target_arch").value(mRelContent.getTargetArch()); in writeReleaseContent()
76 mJsonWriter.name("release_id").value(mRelContent.getReleaseId()); in writeReleaseIDs()
77 mJsonWriter.name("content_id").value(mRelContent.getContentId()); in writeReleaseIDs()
[all …]
/cts/tests/sensor/src/android/hardware/cts/helpers/
DSensorStats.java82 public synchronized void addValue(String key, Object value) { in addValue() argument
83 if (value == null) { in addValue()
86 mValues.put(key, value); in addValue()
144 Object value = flattened.get(key); in log() local
145 Log.v(tag, String.format("%s: %s", key, getValueString(value))); in log()
162 Object value = flattened.get(key); in logToFile() local
163 writer.write(String.format("%s: %s\n", key, getValueString(value))); in logToFile()
183 private static String getValueString(Object value) { in getValueString() argument
184 if (value == null) { in getValueString()
186 } else if (value instanceof boolean[]) { in getValueString()
[all …]
/cts/tests/camera/utils/src/android/hardware/camera2/cts/helpers/
DCameraErrorCollector.java85 public <T> void checkThat(final T value, final Matcher<T> matcher) { in checkThat() argument
86 super.checkThat(mCameraMsg, value, matcher); in checkThat()
96 public <T> void checkThat(final String reason, final T value, final Matcher<T> matcher) { in checkThat() argument
97 super.checkThat(mCameraMsg + reason, value, matcher); in checkThat()
333 for (T value : list) { in expectValuesGreaterOrEqual()
334 expectTrue(msg + String.format(", array value " + value.toString() + in expectValuesGreaterOrEqual()
336 min.toString()), value.compareTo(min) >= 0); in expectValuesGreaterOrEqual()
362 for (T value : list) { in expectValuesInRange()
363 expectTrue(msg + String.format(", array value " + value.toString() + in expectValuesInRange()
366 value.compareTo(max)<= 0 && value.compareTo(min) >= 0); in expectValuesInRange()
[all …]
/cts/tests/signature/lib/android/src/android/signature/cts/
DXmlApiParser.java142 String value = parser.getAttributeValue(null, ATTRIBUTE_VALUE); in loadFieldInfo() local
146 if (value != null) { in loadFieldInfo()
150 if (value.equals("null")) { in loadFieldInfo()
151 value = null; in loadFieldInfo()
155 value = unescapeFieldStringValue(value); in loadFieldInfo()
162 char c = (char) Integer.parseInt(value); in loadFieldInfo()
163 value = String.valueOf(c); in loadFieldInfo()
167 int len = value.length(); in loadFieldInfo()
168 if (value.charAt(0) == '\'' && value.charAt(len - 1) == '\'') { in loadFieldInfo()
169 String sub = value.substring(1, len - 1); in loadFieldInfo()
[all …]
/cts/tests/tests/animation/src/android/animation/cts/
DShapeHolder.java36 public void setPaint(Paint value) { in setPaint() argument
37 mPaint = value; in setPaint()
44 public void setX(float value) { in setX() argument
45 mX = value; in setX()
52 public void setY(float value) { in setY() argument
53 mY = value; in setY()
60 public void setShape(ShapeDrawable value) { in setShape() argument
61 mShape = value; in setShape()
72 public void setColor(int value) { in setColor() argument
73 mShape.getPaint().setColor(value); in setColor()
[all …]
/cts/tests/tests/widget/src/android/widget/cts/
DMyRemotableView.java48 public void setByteField(byte value) { in setByteField() argument
49 mByteField = value; in setByteField()
57 public void setCharField(char value) { in setCharField() argument
58 mCharField = value; in setCharField()
66 public void setDoubleField(double value) { in setDoubleField() argument
67 mDoubleField = value; in setDoubleField()
75 public void setShortField(short value) { in setShortField() argument
76 mShortField = value; in setShortField()
84 public void setBundleField(Bundle value) { in setBundleField() argument
85 mBundleField = value; in setBundleField()
[all …]
/cts/tests/tests/binder_ndk/libbinder_ndk_test/test_package/
DITest.aidl51 int RepeatInt(int value); in RepeatInt() argument
52 long RepeatLong(long value); in RepeatLong() argument
53 float RepeatFloat(float value); in RepeatFloat() argument
54 double RepeatDouble(double value); in RepeatDouble() argument
55 boolean RepeatBoolean(boolean value); in RepeatBoolean() argument
56 char RepeatChar(char value); in RepeatChar() argument
57 byte RepeatByte(byte value); in RepeatByte() argument
58 ByteEnum RepeatByteEnum(ByteEnum value); in RepeatByteEnum() argument
59 IntEnum RepeatIntEnum(IntEnum value); in RepeatIntEnum() argument
60 LongEnum RepeatLongEnum(LongEnum value); in RepeatLongEnum() argument
[all …]
/cts/libs/json/src/com/android/json/stream/
DJsonWriter.java275 public JsonWriter value(String value) throws IOException { in value() argument
276 if (value == null) { in value()
280 string(value); in value()
300 public JsonWriter value(boolean value) throws IOException { in value() method in JsonWriter
302 mOut.write(value ? "true" : "false"); in value()
313 public JsonWriter value(double value) throws IOException { in value() method in JsonWriter
314 if (Double.isNaN(value) || Double.isInfinite(value)) { in value()
315 throw new IllegalArgumentException("Numeric values must be finite, but was " + value); in value()
318 mOut.append(Double.toString(value)); in value()
327 public JsonWriter value(long value) throws IOException { in value() argument
[all …]

12345678910>>...38