Home
last modified time | relevance | path

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

/cts/tests/tests/proto/src/android/util/proto/cts/
DProtoOutputStreamSwitchedWriteTest.java43 abstract void write(Number val, long fieldId, ProtoOutputStream po); in write() argument
53 public void write(Number val, long fieldId, ProtoOutputStream po) {
54 po.writeDouble(fieldId, val.doubleValue());
60 public void write(Number val, long fieldId, ProtoOutputStream po) {
61 po.writeFloat(fieldId, val.floatValue());
67 public void write(Number val, long fieldId, ProtoOutputStream po) {
68 po.writeInt32(fieldId, val.intValue());
74 public void write(Number val, long fieldId, ProtoOutputStream po) {
75 po.writeInt64(fieldId, val.longValue());
81 public void write(Number val, long fieldId, ProtoOutputStream po) {
[all …]
DProtoOutputStreamBoolTest.java75 final int fieldId = 130; in testWriteCompat() local
82 po.writeBool(ProtoOutputStream.makeFieldId(fieldId, fieldFlags), val); in testWriteCompat()
150 final int fieldId = 131; in testRepeatedCompat() local
158 po.writeRepeatedBool(ProtoOutputStream.makeFieldId(fieldId, fieldFlags), val[i]); in testRepeatedCompat()
191 private void writePackedBool(ProtoOutputStream po, int fieldId, boolean val) { in writePackedBool() argument
193 po.writePackedBool(ProtoOutputStream.makeFieldId(fieldId, fieldFlags), in writePackedBool()
236 final int fieldId = 132; in testPackedCompat() local
243 po.writePackedBool(ProtoOutputStream.makeFieldId(fieldId, fieldFlags), val); in testPackedCompat()
DProtoOutputStreamEnumTest.java95 final int fieldId = 160; in testWriteCompat() local
102 po.writeEnum(ProtoOutputStream.makeFieldId(fieldId, fieldFlags), val); in testWriteCompat()
201 final int fieldId = 161; in testRepeatedCompat() local
209 po.writeRepeatedEnum(ProtoOutputStream.makeFieldId(fieldId, fieldFlags), val[i]); in testRepeatedCompat()
246 private void writePackedEnum(ProtoOutputStream po, int fieldId, int val) { in writePackedEnum() argument
248 … po.writePackedEnum(ProtoOutputStream.makeFieldId(fieldId, fieldFlags), new int[] { val, val }); in writePackedEnum()
321 final int fieldId = 162; in testPackedCompat() local
328 po.writePackedEnum(ProtoOutputStream.makeFieldId(fieldId, fieldFlags), val); in testPackedCompat()
DProtoOutputStreamSInt32Test.java90 final int fieldId = 70; in testWriteCompat() local
97 po.writeSInt32(ProtoOutputStream.makeFieldId(fieldId, fieldFlags), val); in testWriteCompat()
189 final int fieldId = 71; in testRepeatedCompat() local
197 po.writeRepeatedSInt32(ProtoOutputStream.makeFieldId(fieldId, fieldFlags), val[i]); in testRepeatedCompat()
230 private void writePackedSInt32(ProtoOutputStream po, int fieldId, int val) { in writePackedSInt32() argument
232 … po.writePackedSInt32(ProtoOutputStream.makeFieldId(fieldId, fieldFlags), new int[] { val, val }); in writePackedSInt32()
292 final int fieldId = 72; in testPackedCompat() local
299 po.writePackedSInt32(ProtoOutputStream.makeFieldId(fieldId, fieldFlags), val); in testPackedCompat()
DProtoOutputStreamFixed32Test.java90 final int fieldId = 90; in testWriteCompat() local
97 po.writeFixed32(ProtoOutputStream.makeFieldId(fieldId, fieldFlags), val); in testWriteCompat()
189 final int fieldId = 91; in testRepeatedCompat() local
197 po.writeRepeatedFixed32(ProtoOutputStream.makeFieldId(fieldId, fieldFlags), val[i]); in testRepeatedCompat()
230 private void writePackedFixed32(ProtoOutputStream po, int fieldId, int val) { in writePackedFixed32() argument
232 … po.writePackedFixed32(ProtoOutputStream.makeFieldId(fieldId, fieldFlags), new int[] { val, val }); in writePackedFixed32()
292 final int fieldId = 92; in testPackedCompat() local
299 po.writePackedFixed32(ProtoOutputStream.makeFieldId(fieldId, fieldFlags), val); in testPackedCompat()
DProtoOutputStreamInt32Test.java92 final int fieldId = 30; in testWriteCompat() local
99 po.writeInt32(ProtoOutputStream.makeFieldId(fieldId, fieldFlags), val); in testWriteCompat()
195 final int fieldId = 31; in testRepeatedCompat() local
203 po.writeRepeatedInt32(ProtoOutputStream.makeFieldId(fieldId, fieldFlags), val[i]); in testRepeatedCompat()
236 private void writePackedInt32(ProtoOutputStream po, int fieldId, int val) { in writePackedInt32() argument
238 po.writePackedInt32(ProtoOutputStream.makeFieldId(fieldId, fieldFlags), in writePackedInt32()
308 final int fieldId = 32; in testPackedCompat() local
315 po.writePackedInt32(ProtoOutputStream.makeFieldId(fieldId, fieldFlags), val); in testPackedCompat()
DProtoOutputStreamUInt32Test.java90 final int fieldId = 50; in testWriteCompat() local
97 po.writeUInt32(ProtoOutputStream.makeFieldId(fieldId, fieldFlags), val); in testWriteCompat()
189 final int fieldId = 51; in testRepeatedCompat() local
197 po.writeRepeatedUInt32(ProtoOutputStream.makeFieldId(fieldId, fieldFlags), val[i]); in testRepeatedCompat()
230 private void writePackedUInt32(ProtoOutputStream po, int fieldId, int val) { in writePackedUInt32() argument
232 … po.writePackedUInt32(ProtoOutputStream.makeFieldId(fieldId, fieldFlags), new int[] { val, val }); in writePackedUInt32()
292 final int fieldId = 52; in testPackedCompat() local
299 po.writePackedUInt32(ProtoOutputStream.makeFieldId(fieldId, fieldFlags), val); in testPackedCompat()
DProtoOutputStreamSFixed32Test.java90 final int fieldId = 110; in testWriteCompat() local
97 po.writeSFixed32(ProtoOutputStream.makeFieldId(fieldId, fieldFlags), val); in testWriteCompat()
189 final int fieldId = 111; in testRepeatedCompat() local
197 po.writeRepeatedSFixed32(ProtoOutputStream.makeFieldId(fieldId, fieldFlags), val[i]); in testRepeatedCompat()
230 private void writePackedSFixed32(ProtoOutputStream po, int fieldId, int val) { in writePackedSFixed32() argument
232 po.writePackedSFixed32(ProtoOutputStream.makeFieldId(fieldId, fieldFlags), in writePackedSFixed32()
293 final int fieldId = 112; in testPackedCompat() local
300 po.writePackedSFixed32(ProtoOutputStream.makeFieldId(fieldId, fieldFlags), val); in testPackedCompat()
DProtoOutputStreamInt64Test.java104 final int fieldId = 40; in testWriteCompat() local
111 po.writeInt64(ProtoOutputStream.makeFieldId(fieldId, fieldFlags), val); in testWriteCompat()
228 final int fieldId = 41; in testRepeatedCompat() local
236 po.writeRepeatedInt64(ProtoOutputStream.makeFieldId(fieldId, fieldFlags), val[i]); in testRepeatedCompat()
269 private void writePackedInt64(ProtoOutputStream po, int fieldId, long val) { in writePackedInt64() argument
271 … po.writePackedInt64(ProtoOutputStream.makeFieldId(fieldId, fieldFlags), new long[] { val, val }); in writePackedInt64()
361 final int fieldId = 42; in testPackedCompat() local
368 po.writePackedInt64(ProtoOutputStream.makeFieldId(fieldId, fieldFlags), val); in testPackedCompat()
DProtoOutputStreamUInt64Test.java104 final int fieldId = 60; in testWriteCompat() local
111 po.writeUInt64(ProtoOutputStream.makeFieldId(fieldId, fieldFlags), val); in testWriteCompat()
228 final int fieldId = 61; in testRepeatedCompat() local
236 po.writeRepeatedUInt64(ProtoOutputStream.makeFieldId(fieldId, fieldFlags), val[i]); in testRepeatedCompat()
269 private void writePackedUInt64(ProtoOutputStream po, int fieldId, long val) { in writePackedUInt64() argument
271 … po.writePackedUInt64(ProtoOutputStream.makeFieldId(fieldId, fieldFlags), new long[] { val, val }); in writePackedUInt64()
361 final int fieldId = 62; in testPackedCompat() local
368 po.writePackedUInt64(ProtoOutputStream.makeFieldId(fieldId, fieldFlags), val); in testPackedCompat()
DProtoOutputStreamFixed64Test.java107 final int fieldId = 100; in testWriteCompat() local
114 po.writeFixed64(ProtoOutputStream.makeFieldId(fieldId, fieldFlags), val); in testWriteCompat()
238 final int fieldId = 101; in testRepeatedCompat() local
246 po.writeRepeatedFixed64(ProtoOutputStream.makeFieldId(fieldId, fieldFlags), val[i]); in testRepeatedCompat()
279 private void writePackedFixed64(ProtoOutputStream po, int fieldId, long val) { in writePackedFixed64() argument
281 po.writePackedFixed64(ProtoOutputStream.makeFieldId(fieldId, fieldFlags), in writePackedFixed64()
369 final int fieldId = 102; in testPackedCompat() local
376 po.writePackedFixed64(ProtoOutputStream.makeFieldId(fieldId, fieldFlags), val); in testPackedCompat()
DProtoOutputStreamSFixed64Test.java107 final int fieldId = 120; in testWriteCompat() local
114 po.writeSFixed64(ProtoOutputStream.makeFieldId(fieldId, fieldFlags), val); in testWriteCompat()
237 final int fieldId = 121; in testRepeatedCompat() local
245 po.writeRepeatedSFixed64(ProtoOutputStream.makeFieldId(fieldId, fieldFlags), val[i]); in testRepeatedCompat()
278 private void writePackedSFixed64(ProtoOutputStream po, int fieldId, long val) { in writePackedSFixed64() argument
280 po.writePackedSFixed64(ProtoOutputStream.makeFieldId(fieldId, fieldFlags), in writePackedSFixed64()
368 final int fieldId = 122; in testPackedCompat() local
375 po.writePackedSFixed64(ProtoOutputStream.makeFieldId(fieldId, fieldFlags), val); in testPackedCompat()
DProtoOutputStreamSInt64Test.java103 final int fieldId = 80; in testWriteCompat() local
110 po.writeSInt64(ProtoOutputStream.makeFieldId(fieldId, fieldFlags), val); in testWriteCompat()
224 final int fieldId = 81; in testRepeatedCompat() local
232 po.writeRepeatedSInt64(ProtoOutputStream.makeFieldId(fieldId, fieldFlags), val[i]); in testRepeatedCompat()
265 private void writePackedSInt64(ProtoOutputStream po, int fieldId, long val) { in writePackedSInt64() argument
267 … po.writePackedSInt64(ProtoOutputStream.makeFieldId(fieldId, fieldFlags), new long[] { val, val }); in writePackedSInt64()
346 final int fieldId = 82; in testPackedCompat() local
353 po.writePackedSInt64(ProtoOutputStream.makeFieldId(fieldId, fieldFlags), val); in testPackedCompat()
DProtoOutputStreamDoubleTest.java132 final int fieldId = 10; in testWriteCompat() local
139 po.writeDouble(ProtoOutputStream.makeFieldId(fieldId, fieldFlags), val); in testWriteCompat()
284 final int fieldId = 11; in testRepeatedCompat() local
292 po.writeRepeatedDouble(ProtoOutputStream.makeFieldId(fieldId, fieldFlags), val[i]); in testRepeatedCompat()
325 private void writePackedDouble(ProtoOutputStream po, int fieldId, double val) { in writePackedDouble() argument
327 po.writePackedDouble(ProtoOutputStream.makeFieldId(fieldId, fieldFlags), in writePackedDouble()
430 final int fieldId = 12; in testPackedCompat() local
437 po.writePackedDouble(ProtoOutputStream.makeFieldId(fieldId, fieldFlags), val); in testPackedCompat()
DProtoOutputStreamFloatTest.java126 final int fieldId = 20; in testWriteCompat() local
133 po.writeFloat(ProtoOutputStream.makeFieldId(fieldId, fieldFlags), val); in testWriteCompat()
260 final int fieldId = 21; in testRepeatedCompat() local
268 po.writeRepeatedFloat(ProtoOutputStream.makeFieldId(fieldId, fieldFlags), val[i]); in testRepeatedCompat()
301 private void writePackedFloat(ProtoOutputStream po, int fieldId, float val) { in writePackedFloat() argument
303 … po.writePackedFloat(ProtoOutputStream.makeFieldId(fieldId, fieldFlags), new float[] { val, val }); in writePackedFloat()
390 final int fieldId = 22; in testPackedCompat() local
397 po.writePackedFloat(ProtoOutputStream.makeFieldId(fieldId, fieldFlags), val); in testPackedCompat()
DProtoOutputStreamBytesTest.java90 final int fieldId = 150; in testWriteCompat() local
97 po.writeBytes(ProtoOutputStream.makeFieldId(fieldId, fieldFlags), val); in testWriteCompat()
194 final int fieldId = 151; in testRepeatedCompat() local
202 po.writeRepeatedBytes(ProtoOutputStream.makeFieldId(fieldId, fieldFlags), val[i]); in testRepeatedCompat()
DProtoOutputStreamTagTest.java158 public void assertCheckFieldIdThrows(long fieldId, long expectedFlags) in assertCheckFieldIdThrows() argument
161 ProtoOutputStream.checkFieldId(fieldId, expectedFlags); in assertCheckFieldIdThrows()
162 throw new Exception("checkFieldId(0x" + Long.toHexString(fieldId) in assertCheckFieldIdThrows()
DProtoOutputStreamStringTest.java128 final int fieldId = 140; in testWriteCompat() local
135 po.writeString(ProtoOutputStream.makeFieldId(fieldId, fieldFlags), val); in testWriteCompat()
226 final int fieldId = 141; in testRepeatedCompat() local
234 po.writeRepeatedString(ProtoOutputStream.makeFieldId(fieldId, fieldFlags), val[i]); in testRepeatedCompat()
/cts/tests/autofillservice/src/android/autofillservice/cts/servicebehavior/
DFieldsClassificationTest.java233 final AtomicReference<AutofillId> fieldId = new AtomicReference<>(); in testHit_exactMatchLast4Algorithm() local
236 .setVisitor((contexts, builder) -> fieldId in testHit_exactMatchLast4Algorithm()
255 assertFillEventForFieldsClassification(events.get(0), fieldId.get(), "cat", 1); in testHit_exactMatchLast4Algorithm()
270 final AtomicReference<AutofillId> fieldId = new AtomicReference<>(); in testHit_CreditCardAlgorithm() local
273 .setVisitor((contexts, builder) -> fieldId in testHit_CreditCardAlgorithm()
292 assertFillEventForFieldsClassification(events.get(0), fieldId.get(), "card", 1); in testHit_CreditCardAlgorithm()
308 final AtomicReference<AutofillId> fieldId = new AtomicReference<>(); in testHit_useDefaultAlgorithm() local
311 .setVisitor((contexts, builder) -> fieldId in testHit_useDefaultAlgorithm()
330 assertFillEventForFieldsClassification(events.get(0), fieldId.get(), "cat", 1); in testHit_useDefaultAlgorithm()
345 final AtomicReference<AutofillId> fieldId = new AtomicReference<>(); in simpleHitTest() local
[all …]
/cts/tests/inputmethod/mockime/src/com/android/cts/mockime/
DImeEventStreamTestUtils.java178 public static Predicate<ImeEvent> editorMatcher(@NonNull String eventName, int fieldId) {
184 return fieldId == editorInfo.fieldId;
DImeEventStream.java232 sb.append(" fieldId=").append(info.fieldId); in dumpBundle()
/cts/tests/tests/renderscript/libcoremathtestcpp/
DCoreMathTestJni.cpp86 jfieldID fieldId = GetFieldId(name, "I"); in SetInt() local
87 if (fieldId) { in SetInt()
88 mEnv->SetIntField(mObject, fieldId, value); in SetInt()
93 jfieldID fieldId = GetFieldId(name, "F"); in SetFloat() local
94 if (fieldId) { in SetFloat()
95 mEnv->SetFloatField(mObject, fieldId, value); in SetFloat()
103 jfieldID fieldId = mEnv->GetFieldID(mClass, name, type); in GetFieldId() local
104 if (!fieldId) { in GetFieldId()
108 return fieldId; in GetFieldId()
/cts/tests/inputmethod/src/android/view/inputmethod/cts/
DEditorInfoTest.java59 info.fieldId = 2; in testEditorInfo()
87 assertEquals(info.fieldId, targetInfo.fieldId); in testEditorInfo()
/cts/common/device-side/device-info/src/com/android/compatibility/common/deviceinfo/
DGlesStubActivity.java218 static protected int[] getIntValues(int fieldId, int count) throws IllegalAccessException{ in getIntValues() argument
225 GLES20.glGetIntegerv(fieldId, resultInts, 0); in getIntValues()
/cts/tests/autofillservice/src/android/autofillservice/cts/testcore/
DHelper.java1265 @NonNull AutofillId fieldId, @NonNull String categoryId, float score) { in assertFillEventForFieldsClassification() argument
1268 new FieldClassificationResult(fieldId, categoryId, score) in assertFillEventForFieldsClassification()