Home
last modified time | relevance | path

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

12345678910>>...41

/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/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 {
69 value: "net_bt_admin"
76 value: "net_bt"
[all …]
DHelloActivity.apk.pb.txt11 value: "Q"
15 value: "Q"
19 value: "Q"
23 value: "0x1c"
27 value: "Q"
31 value: "Hello,"
35 value: "Q"
39 value: "0x1c"
43 value: "0x1c"
84 value {
[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 …]
DMutableTest.java35 assertFalse(mut.value); in testMutableBoolean()
37 assertTrue(mut.value); in testMutableBoolean()
43 assertEquals(127, mut.value); in testMutableByte()
45 assertEquals(-128, mut.value); in testMutableByte()
51 assertEquals('a', mut.value); in testMutableChar()
53 assertEquals('b', mut.value); in testMutableChar()
59 assertEquals(0, mut.value, 0); in testMutableDouble()
61 assertEquals(Double.MAX_VALUE, mut.value, 0); in testMutableDouble()
67 assertEquals(0f, mut.value, 0); in testMutableFloat()
69 assertEquals(Float.MAX_VALUE, mut.value, 0); in testMutableFloat()
[all …]
/cts/common/device-side/bedstead/dpmwrapper/src/main/java/com/android/bedstead/dpmwrapper/
DDataFormatter.java68 Object value = args[index]; in addArg() local
75 if (value == null) { in addArg()
76 logMarshalling("Adding Null", index, extraTypeName, TYPE_NULL, extraValueName, value); in addArg()
81 if ((value instanceof Boolean)) { in addArg()
83 value); in addArg()
85 intent.putExtra(extraValueName, ((Boolean) value).booleanValue()); in addArg()
88 if ((value instanceof Integer)) { in addArg()
89 logMarshalling("Adding Integer", index, extraTypeName, TYPE_INT, extraValueName, value); in addArg()
91 intent.putExtra(extraValueName, ((Integer) value).intValue()); in addArg()
94 if ((value instanceof Long)) { in addArg()
[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 …]
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 …]
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 …]
/cts/tests/location/location_gnss/src/android/location/cts/gnss/asn1/base/
DAsn1OctetString.java40 private byte[] value; field in Asn1OctetString
55 return value; in getValue()
58 public void setValue(byte[] value) { in setValue() argument
59 this.value = value; in setValue()
67 Objects.requireNonNull(value, "No value set."); in getBerValueLength()
68 return value.length; in getBerValueLength()
72 Objects.requireNonNull(value, "No value set."); in encodeBerValue()
73 buf.put(value); in encodeBerValue()
77 value = getRemaining(buf); in decodeBerValue()
81 Objects.requireNonNull(value, "No value set."); in encodePerImpl()
[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 Objects.requireNonNull(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 …]
DAsn1BitString.java42 private BitSet value; field in Asn1BitString
57 return value; in getValue()
60 public void setValue(BitSet value) { in setValue() argument
61 this.value = value; in setValue()
69 Objects.requireNonNull(value, "No value set."); in getBerValueLength()
71 return (value.length() + 7) / 8 + 1; in getBerValueLength()
75 Objects.requireNonNull(value, "No value set."); in encodeBerValue()
77 maximumSize == null || value.length() <= maximumSize, "Too large %s", in encodeBerValue()
78 value.length()); in encodeBerValue()
80 int bitsToEncode = Math.max(minimumSize, value.length()); in encodeBerValue()
[all …]
DAsn1Integer.java41 private BigInteger value; field in Asn1Integer
83 Objects.requireNonNull(value, "No value set."); in validateValue()
85 minimumValue == null || value.compareTo(minimumValue) >= 0, in validateValue()
86 "Too small value %s", value); in validateValue()
88 maximumValue == null || value.compareTo(maximumValue) <= 0, in validateValue()
89 "Too large value %s", value); in validateValue()
93 if (value.equals(BigInteger.ZERO)) { in getBerValueLength()
97 return (value.bitLength() >> 3) + 1; in getBerValueLength()
102 if (value.equals(BigInteger.ZERO)) { in encodeBerValue()
105 buf.put(value.toByteArray()); in encodeBerValue()
[all …]
DAsn1Boolean.java32 private boolean value; field in Asn1Boolean
47 buf.put(value ? (byte) 0xFF : (byte) 0x00); in encodeBerValue()
54 value = (buf.get() != 0); in decodeBerValue()
58 return value; in getValue()
61 public void setValue(boolean value) { in setValue() argument
62 this.value = value; in setValue()
67 result.appendBit(value); in encodePerImpl()
80 value = reader.readBit(); in decodePerUnaligned()
84 value = reader.readBit(); in decodePerAligned()
/cts/tests/tests/nativemedia/mediametrics/src/
DMediaMetricsTest.cpp51 int32_t value; in TEST_F() local
52 EXPECT_TRUE(mediametrics_getInt32(handle_, "attr1", &value)); in TEST_F()
53 EXPECT_EQ(100, value); in TEST_F()
56 EXPECT_TRUE(mediametrics_getInt32(handle_, "attr1", &value)); in TEST_F()
57 EXPECT_EQ(150, value); in TEST_F()
62 int64_t value; in TEST_F() local
63 EXPECT_TRUE(mediametrics_getInt64(handle_, "attr2", &value)); in TEST_F()
64 EXPECT_EQ(1e10, value); in TEST_F()
67 EXPECT_TRUE(mediametrics_getInt64(handle_, "attr2", &value)); in TEST_F()
68 EXPECT_EQ(1e10 + 50, value); in TEST_F()
[all …]
/cts/tests/sensor/src/android/hardware/cts/helpers/
DSensorStats.java83 public synchronized void addValue(String key, Object value) { in addValue() argument
84 if (value == null) { in addValue()
87 mValues.put(key, value); in addValue()
145 Object value = flattened.get(key); in log() local
146 Log.v(tag, String.format("%s: %s", key, getValueString(value))); in log()
176 Object value = flattened.get(key); in logToFile() local
177 writer.write(String.format("%s: %s\n", key, getValueString(value))); in logToFile()
200 private static String getValueString(Object value) { in getValueString() argument
201 if (value == null) { in getValueString()
203 } else if (value instanceof boolean[]) { in getValueString()
[all …]
/cts/tests/tests/binder_ndk/src/android/binder/cts/
DJavaClientTest.java369 boolean[] value = {}; in testArrays()
370 boolean[] out1 = new boolean[value.length]; in testArrays()
371 boolean[] out2 = mInterface.RepeatBooleanArray(value, out1); in testArrays()
373 Assert.assertArrayEquals(value, out1); in testArrays()
374 Assert.assertArrayEquals(value, out2); in testArrays()
377 boolean[] value = {false, true, false}; in testArrays()
378 boolean[] out1 = new boolean[value.length]; in testArrays()
379 boolean[] out2 = mInterface.RepeatBooleanArray(value, out1); in testArrays()
381 Assert.assertArrayEquals(value, out1); in testArrays()
382 Assert.assertArrayEquals(value, out2); in testArrays()
[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/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/contactsprovider/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 …]
/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/framework/base/windowmanager/util/src/android/server/wm/
DCliIntentExtra.java35 private CliIntentExtra(String option, String key, String value) { in CliIntentExtra() argument
42 if (TextUtils.isEmpty(value)) { in CliIntentExtra()
47 mValue = value; in CliIntentExtra()
76 String value() { in value() method in CliIntentExtra
87 sb.append(" ").append(option()).append(" ").append(key()).append(" ").append(value()); in appendTo()
99 public static CliIntentExtra extraString(String key, String value) { in extraString() argument
100 return new CliIntentExtra("--es", key, value); in extraString()
112 public static CliIntentExtra extraBool(String key, boolean value) { in extraBool() argument
113 return new CliIntentExtra("--ez", key, Boolean.toString(value)); in extraBool()
125 public static CliIntentExtra extraInt(String key, int value) { in extraInt() argument
[all …]
/cts/tests/translation/src/android/translation/cts/unittests/
DTranslationValueTest.java40 final TranslationRequestValue value = TranslationRequestValue.forText("sample text"); in testTranslationRequestValue_forText() local
42 assertThat(value.getText()).isEqualTo("sample text"); in testTranslationRequestValue_forText()
47 final TranslationResponseValue value = new TranslationResponseValue.Builder(STATUS_SUCCESS) in testTranslationResponseValue_validBuilder() local
51 assertThat(value.getStatusCode()).isEqualTo(STATUS_SUCCESS); in testTranslationResponseValue_validBuilder()
52 assertThat(value.getText()).isEqualTo("sample text"); in testTranslationResponseValue_validBuilder()
57 final TranslationResponseValue value = TranslationResponseValue.forError(); in testTranslationResponseValue_forError() local
59 assertThat(value.getStatusCode()).isEqualTo(TranslationResponseValue.STATUS_ERROR); in testTranslationResponseValue_forError()
60 assertThat(value.getText()).isNull(); in testTranslationResponseValue_forError()
73 final TranslationResponseValue value = new TranslationResponseValue.Builder(STATUS_SUCCESS) in testTranslationResponseValue_validDictionary() local
77 assertThat(value.getStatusCode()).isEqualTo(STATUS_SUCCESS); in testTranslationResponseValue_validDictionary()
[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 …]

12345678910>>...41