Home
last modified time | relevance | path

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

12345678

/cts/tests/tests/provider/src/android/provider/cts/
DContactsTest.java91 ContentValues value = new ContentValues(); in testPeopleTable() local
92 value.put(PeopleColumns.NAME, insertPeopleName); in testPeopleTable()
93 value.put(PeopleColumns.NOTES, insertPeopleNotes); in testPeopleTable()
94 value.put(PeopleColumns.LAST_TIME_CONTACTED, 0); in testPeopleTable()
95 value.put(PeopleColumns.CUSTOM_RINGTONE, (String) null); in testPeopleTable()
96 value.put(PeopleColumns.SEND_TO_VOICEMAIL, 1); in testPeopleTable()
98 Uri uri = mProvider.insert(People.CONTENT_URI, value); in testPeopleTable()
115 value.clear(); in testPeopleTable()
117 value.put(PeopleColumns.NAME, updatePeopleName); in testPeopleTable()
118 value.put(PeopleColumns.NOTES, updatePeopleNotes); in testPeopleTable()
[all …]
DVoicemailContractTest.java88 ContentValues value = new ContentValues(); in testVoicemailsTable() local
89 value.put(Voicemails.NUMBER, insertCallsNumber); in testVoicemailsTable()
90 value.put(Voicemails.DATE, insertDate); in testVoicemailsTable()
91 value.put(Voicemails.DURATION, insertCallsDuration); in testVoicemailsTable()
93 value.put(Voicemails.SOURCE_DATA, insertSourceData); in testVoicemailsTable()
94 value.put(Voicemails.MIME_TYPE, insertMimeType); in testVoicemailsTable()
95 value.put(Voicemails.IS_READ, false); in testVoicemailsTable()
96 value.put(Voicemails.HAS_CONTENT, true); in testVoicemailsTable()
98 Uri uri = mVoicemailProvider.insert(mVoicemailContentUri, value); in testVoicemailsTable()
117 value.clear(); in testVoicemailsTable()
[all …]
DBrowserTest.java80 ContentValues value = new ContentValues(); in setUp() local
91 value.put(colNames[i], cursor.getBlob(i)); in setUp()
94 value.put(colNames[i], cursor.getFloat(i)); in setUp()
97 value.put(colNames[i], cursor.getLong(i)); in setUp()
100 value.put(colNames[i], cursor.getString(i)); in setUp()
104 mBookmarksBackup.add(value); in setUp()
114 ContentValues value = new ContentValues(); in setUp() local
116 value.put(SearchColumns._ID, cursor.getInt(0)); in setUp()
117 value.put(SearchColumns.SEARCH, cursor.getString(1)); in setUp()
118 value.put(SearchColumns.DATE, cursor.getLong(2)); in setUp()
[all …]
DSettingsTest.java53 ContentValues value = new ContentValues(); in testSystemTable() local
54 value.put(Settings.System.NAME, insertName); in testSystemTable()
55 value.put(Settings.System.VALUE, insertValue); in testSystemTable()
57 provider.insert(Settings.System.CONTENT_URI, value); in testSystemTable()
69 value.clear(); in testSystemTable()
70 value.put(Settings.System.NAME, updateName); in testSystemTable()
71 value.put(Settings.System.VALUE, updateValue); in testSystemTable()
73 provider.update(Settings.System.CONTENT_URI, value, in testSystemTable()
121 ContentValues value = new ContentValues(); in testBluetoothDevicesTable() local
122 value.put("name", insertName); in testBluetoothDevicesTable()
[all …]
DSearchRecentSuggestionsTest.java132 ContentValues value = new ContentValues(); in testSuggestionsTable() local
133 value.put("display1", insertDisplay1); in testSuggestionsTable()
134 value.put("display2", insertDisplay2); in testSuggestionsTable()
135 value.put("query", insertQuery); in testSuggestionsTable()
136 value.put("date", 1); in testSuggestionsTable()
138 mTestSRSProvider.insert(mTestUri, value); in testSuggestionsTable()
159 value.clear(); in testSuggestionsTable()
160 value.put("display1", updateDisplay1); in testSuggestionsTable()
161 value.put("display2", updateDisplay2); in testSuggestionsTable()
162 value.put("query", updateQuery); in testSuggestionsTable()
[all …]
DContactsContract_TestDataBuilder.java104 public T with(String key, String value) { in with() argument
105 mValues.put(key, value); in with()
110 public T with(String key, long value) { in with() argument
111 mValues.put(key, value); in with()
116 public T with(String key, byte[] value) { in with() argument
117 mValues.put(key, value); in with()
173 Object value = entry.getValue(); in loadUsingValues() local
180 if (value == null) { in loadUsingValues()
184 selectionArgs.add(value.toString()); in loadUsingValues()
205 public void assertColumn(String columnName, long value) { in assertColumn() argument
[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 …]
DKeyframeTest.java63 String value = "test"; in testOfObjectValue() local
64 Keyframe keyFrame = Keyframe.ofObject(0.0f, value); in testOfObjectValue()
66 assertEquals(keyFrame.getValue(), value); in testOfObjectValue() local
91 Float value = new Float(100.0f); in testSetValue() local
92 keyFrame.setValue(value); in testSetValue()
94 assertEquals(value, actualValue); in testSetValue()
/cts/tools/dex-tools/src/dex/structure/
DDexEncodedValueType.java163 private byte value; field in DexEncodedValueType
174 private DexEncodedValueType(byte value) { in DexEncodedValueType() argument
175 this.value = value; in DexEncodedValueType()
185 public static DexEncodedValueType get(byte value) { in get() argument
188 if (type.value == (value & 0x1F)) { in get()
204 public static byte valueArg(byte value) { in valueArg() argument
205 return (byte) (value >>> 5); in valueArg()
DDexAnnotation.java46 private byte value; field in DexAnnotation.Visibility
48 private Visibility(byte value) { in Visibility() argument
49 this.value = value; in Visibility()
61 public static Visibility get(byte value) { in get() argument
63 switch (value) { in get()
/cts/libs/json/src/com/android/json/stream/
DJsonWriter.java274 public JsonWriter value(String value) throws IOException { in value() method in JsonWriter
275 if (value == null) { in value()
279 string(value); in value()
299 public JsonWriter value(boolean value) throws IOException { in value() argument
301 out.write(value ? "true" : "false"); in value()
312 public JsonWriter value(double value) throws IOException { in value() method in JsonWriter
313 if (Double.isNaN(value) || Double.isInfinite(value)) { in value()
314 throw new IllegalArgumentException("Numeric values must be finite, but was " + value); in value()
317 out.append(Double.toString(value)); in value()
326 public JsonWriter value(long value) throws IOException { in value() method in JsonWriter
[all …]
/cts/tools/dex-tools/src/dex/reader/
DDexEncodedValueImpl.java34 private Object value; field in DexEncodedValueImpl
63 value = getByteValue(valueArg); in parseValue()
66 value = getShortValue(valueArg); in parseValue()
69 value = getCharValue(valueArg); in parseValue()
72 value = getIntValue(valueArg); in parseValue()
75 value = getLongValue(valueArg); in parseValue()
78 value = getFloatValue(valueArg); in parseValue()
81 value = getDoubleValue(valueArg); in parseValue()
84 value = getStringValue(valueArg); in parseValue()
87 value = getTypeValue(valueArg); in parseValue()
[all …]
/cts/tools/tradefed-host/src/com/android/cts/tradefed/targetprep/
DSettingsToggler.java27 public static void setSecureString(ITestDevice device, String name, String value) in setSecureString() argument
34 + " --bind value:s:" + value); in setSecureString()
38 public static void setSecureInt(ITestDevice device, String name, int value) in setSecureInt() argument
45 + " --bind value:i:" + value); in setSecureInt()
48 public static void updateSecureString(ITestDevice device, String name, String value) in updateSecureString() argument
53 + " --bind value:s:" + value in updateSecureString()
57 public static void updateSecureInt(ITestDevice device, String name, int value) in updateSecureInt() argument
62 + " --bind value:i:" + value in updateSecureInt()
/cts/suite/audio_quality/lib/src/task/
DTaskAsync.cpp58 bool TaskAsync::parseAttribute(const android::String8& name, const android::String8& value) in parseAttribute() argument
62 mId.append(value); in parseAttribute()
64 mVolume = atoi(value.string()); in parseAttribute()
70 if (StringUtil::compare(value, "start") == 0) { // async in parseAttribute()
74 if (StringUtil::compare(value, "host") == 0) { in parseAttribute()
76 } else if (StringUtil::compare(value, "DUT") == 0) { in parseAttribute()
82 if (StringUtil::compare(value, "voice") == 0) { in parseAttribute()
84 } else if (StringUtil::compare(value, "music") == 0) { in parseAttribute()
90 result = TaskGeneric::parseAttribute(name, value); in parseAttribute()
DTaskGeneric.cpp104 bool TaskGeneric::parseAttribute(const android::String8& name, const android::String8& value) in parseAttribute() argument
107 if (!addStringAttribute(name, value)) { in parseAttribute()
109 name.string(), value.string(), getType()); in parseAttribute()
125 bool TaskGeneric::addStringAttribute(const android::String8& key, const android::String8& value) in addStringAttribute() argument
131 mStringAttributes[key] = value; in addStringAttribute()
135 bool TaskGeneric::findStringAttribute(const android::String8& key, android::String8& value) const in findStringAttribute()
141 value = it->second; in findStringAttribute()
/cts/tools/dex-tools/dex/
Dclasses0.out.dex19 @dalvik.annotation.Throws (value =Ljava/lang/CloneNotSupportedException; )
24 @dalvik.annotation.Throws (value =Ljava/lang/Throwable; )
26 @dalvik.annotation.Signature (value =()Ljava/lang/Class<+Ljava/lang/Object;>; )
36 @dalvik.annotation.Throws (value =Ljava/lang/InterruptedException; )
38 @dalvik.annotation.Throws (value =Ljava/lang/InterruptedException; )
41 @dalvik.annotation.Throws (value =Ljava/lang/InterruptedException; )
86 @dalvik.annotation.Throws (value =Ljava/io/IOException; )
92 @dalvik.annotation.Throws (value =Ljava/io/IOException; )
106 @dalvik.annotation.Throws (value =Ljava/io/IOException; )
120 @dalvik.annotation.Throws (value =Ljava/io/IOException; )
[all …]
/cts/tests/src/android/renderscript/cts/
Dscriptgroup.rs18 int value = arith_value;
21 value = *(int*)(rsGetElementAt(arith_rs_input, x));
24 *aout = *ain + value;
26 *aout = *ain - value;
28 *aout = *ain * value;
30 *aout = *ain / value;
/cts/tests/tests/preference2/src/android/preference2/cts/
DCustomPreference.java151 protected boolean persistBoolean(boolean value) { in persistBoolean() argument
152 return super.persistBoolean(value); in persistBoolean()
156 protected boolean persistFloat(float value) { in persistFloat() argument
157 return super.persistFloat(value); in persistFloat()
161 protected boolean persistInt(int value) { in persistInt() argument
162 return super.persistInt(value); in persistInt()
166 protected boolean persistLong(long value) { in persistLong() argument
167 return super.persistLong(value); in persistLong()
171 protected boolean persistString(String value) { in persistString() argument
172 return super.persistString(value); in persistString()
/cts/tests/tests/media/src/android/media/cts/
DAudioEffectTest.java434 byte[] value = new byte[2]; in test3_0SetParameterByteArrayByteArray()
435 int status = mEffect.getParameter(param, value); in test3_0SetParameterByteArrayByteArray()
438 if (mEffect.byteArrayToShort(value) == preset) { in test3_0SetParameterByteArrayByteArray()
441 value = mEffect.shortToByteArray(preset); in test3_0SetParameterByteArrayByteArray()
442 status = mEffect.setParameter(param, value); in test3_0SetParameterByteArrayByteArray()
444 status = mEffect.getParameter(param, value); in test3_0SetParameterByteArrayByteArray()
447 mEffect.byteArrayToShort(value)); in test3_0SetParameterByteArrayByteArray()
465 int[] value = new int[1]; in test3_1SetParameterIntInt() local
466 int status = mEffect.getParameter(param, value); in test3_1SetParameterIntInt()
469 if (value[0] == time) { in test3_1SetParameterIntInt()
[all …]
/cts/tools/signature-tools/src/signature/model/impl/
DSigAnnotationElement.java28 private Object value; field in SigAnnotationElement
39 return value; in getValue()
42 public void setValue(Object value) { in setValue() argument
43 this.value = value; in setValue()
/cts/tools/signature-tools/src/signature/converter/doclet/
DDocletToSigConverter.java266 Object value = annotationValue.value(); in convertAnnotationValue() local
267 if (value instanceof Type) { in convertAnnotationValue()
269 return convertTypeReference((Type) value); in convertAnnotationValue()
270 } else if (value instanceof String) { in convertAnnotationValue()
271 return value; in convertAnnotationValue()
272 } else if (value instanceof Double || value instanceof Float in convertAnnotationValue()
273 || value instanceof Long || value instanceof Integer in convertAnnotationValue()
274 || value instanceof Short || value instanceof Byte in convertAnnotationValue()
275 || value instanceof Character || value instanceof Boolean) { in convertAnnotationValue()
276 return value; in convertAnnotationValue()
[all …]
/cts/tests/SignatureTest/src/android/tests/sigtest/
DSimpleSignatureTest.java276 private static int modifierDescriptionToReflectedType(String name, String key, String value) { in modifierDescriptionToReflectedType() argument
278 return value.equals("true") ? Modifier.ABSTRACT : 0; in modifierDescriptionToReflectedType()
280 return value.equals("true") ? Modifier.FINAL : 0; in modifierDescriptionToReflectedType()
282 return value.equals("true") ? Modifier.NATIVE : 0; in modifierDescriptionToReflectedType()
284 return value.equals("true") ? Modifier.STATIC : 0; in modifierDescriptionToReflectedType()
286 return value.equals("true") ? Modifier.SYNCHRONIZED : 0; in modifierDescriptionToReflectedType()
288 return value.equals("true") ? Modifier.TRANSIENT : 0; in modifierDescriptionToReflectedType()
290 return value.equals("true") ? Modifier.VOLATILE : 0; in modifierDescriptionToReflectedType()
292 if (value.equals(MODIFIER_PRIVATE)) { in modifierDescriptionToReflectedType()
294 } else if (value.equals(MODIFIER_PROTECTED)) { in modifierDescriptionToReflectedType()
[all …]
DSignatureTest.java251 private static int modifierDescriptionToReflectedType(String name, String key, String value) { in modifierDescriptionToReflectedType() argument
253 return value.equals("true") ? Modifier.ABSTRACT : 0; in modifierDescriptionToReflectedType()
255 return value.equals("true") ? Modifier.FINAL : 0; in modifierDescriptionToReflectedType()
257 return value.equals("true") ? Modifier.NATIVE : 0; in modifierDescriptionToReflectedType()
259 return value.equals("true") ? Modifier.STATIC : 0; in modifierDescriptionToReflectedType()
261 return value.equals("true") ? Modifier.SYNCHRONIZED : 0; in modifierDescriptionToReflectedType()
263 return value.equals("true") ? Modifier.TRANSIENT : 0; in modifierDescriptionToReflectedType()
265 return value.equals("true") ? Modifier.VOLATILE : 0; in modifierDescriptionToReflectedType()
267 if (value.equals(MODIFIER_PRIVATE)) { in modifierDescriptionToReflectedType()
269 } else if (value.equals(MODIFIER_PROTECTED)) { in modifierDescriptionToReflectedType()
[all …]
/cts/hostsidetests/appsecurity/test-apps/WriteExternalStorageApp/src/com/android/cts/writeexternalstorageapp/
DWriteExternalStorageTest.java86 final int value = r.nextInt(); in testLegacyPaths() local
87 writeInt(target, value); in testLegacyPaths()
91 assertEquals(readInt(file), value); in testLegacyPaths() local
100 private static void writeInt(File file, int value) throws IOException { in writeInt() argument
103 os.writeInt(value); in writeInt()
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/aput_object/
DTest_aput_object.java43 String[] value = {"world", null, ""}; in testN2() local
45 for (int i = 0; i < value.length; i++) { in testN2()
46 t.run(arr, 1, value[i]); in testN2()
47 assertEquals(value[i], arr[1]); in testN2()
57 Integer value = new Integer(12345); in testN3() local
58 t.run(arr, 0, value); in testN3()
59 assertEquals(value, arr[0]); in testN3()

12345678