/cts/tests/tests/proto/src/android/util/proto/cts/ |
D | ProtoOutputStreamSwitchedWriteTest.java | 43 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 …]
|
D | ProtoOutputStreamBoolTest.java | 74 public void testWriteCompat(boolean val) throws Exception { in testWriteCompat() argument 81 all.boolField = val; in testWriteCompat() 82 po.writeBool(ProtoOutputStream.makeFieldId(fieldId, fieldFlags), val); in testWriteCompat() local 91 assertEquals(val, readback.boolField); in testWriteCompat() 149 public void testRepeatedCompat(boolean[] val) throws Exception { in testRepeatedCompat() argument 156 all.boolFieldRepeated = val; in testRepeatedCompat() 157 for (int i=0; i<val.length; i++) { in testRepeatedCompat() 158 po.writeRepeatedBool(ProtoOutputStream.makeFieldId(fieldId, fieldFlags), val[i]); in testRepeatedCompat() local 169 assertEquals(val.length, readback.boolFieldRepeated.length); in testRepeatedCompat() 170 for (int i=0; i<val.length; i++) { in testRepeatedCompat() [all …]
|
D | ProtoOutputStreamFixed32Test.java | 89 public void testWriteCompat(int val) throws Exception { in testWriteCompat() argument 96 all.fixed32Field = val; in testWriteCompat() 97 po.writeFixed32(ProtoOutputStream.makeFieldId(fieldId, fieldFlags), val); in testWriteCompat() local 106 assertEquals(val, readback.fixed32Field); in testWriteCompat() 188 public void testRepeatedCompat(int[] val) throws Exception { in testRepeatedCompat() argument 195 all.fixed32FieldRepeated = val; in testRepeatedCompat() 196 for (int i=0; i<val.length; i++) { in testRepeatedCompat() 197 po.writeRepeatedFixed32(ProtoOutputStream.makeFieldId(fieldId, fieldFlags), val[i]); in testRepeatedCompat() local 208 assertEquals(val.length, readback.fixed32FieldRepeated.length); in testRepeatedCompat() 209 for (int i=0; i<val.length; i++) { in testRepeatedCompat() [all …]
|
D | ProtoOutputStreamSFixed32Test.java | 89 public void testWriteCompat(int val) throws Exception { in testWriteCompat() argument 96 all.sfixed32Field = val; in testWriteCompat() 97 po.writeSFixed32(ProtoOutputStream.makeFieldId(fieldId, fieldFlags), val); in testWriteCompat() local 106 assertEquals(val, readback.sfixed32Field); in testWriteCompat() 188 public void testRepeatedCompat(int[] val) throws Exception { in testRepeatedCompat() argument 195 all.sfixed32FieldRepeated = val; in testRepeatedCompat() 196 for (int i=0; i<val.length; i++) { in testRepeatedCompat() 197 po.writeRepeatedSFixed32(ProtoOutputStream.makeFieldId(fieldId, fieldFlags), val[i]); in testRepeatedCompat() local 208 assertEquals(val.length, readback.sfixed32FieldRepeated.length); in testRepeatedCompat() 209 for (int i=0; i<val.length; i++) { in testRepeatedCompat() [all …]
|
D | ProtoOutputStreamInt32Test.java | 91 public void testWriteCompat(int val) throws Exception { in testWriteCompat() argument 98 all.int32Field = val; in testWriteCompat() 99 po.writeInt32(ProtoOutputStream.makeFieldId(fieldId, fieldFlags), val); in testWriteCompat() local 108 assertEquals(val, readback.int32Field); in testWriteCompat() 194 public void testRepeatedCompat(int[] val) throws Exception { in testRepeatedCompat() argument 201 all.int32FieldRepeated = val; in testRepeatedCompat() 202 for (int i=0; i<val.length; i++) { in testRepeatedCompat() 203 po.writeRepeatedInt32(ProtoOutputStream.makeFieldId(fieldId, fieldFlags), val[i]); in testRepeatedCompat() local 214 assertEquals(val.length, readback.int32FieldRepeated.length); in testRepeatedCompat() 215 for (int i=0; i<val.length; i++) { in testRepeatedCompat() [all …]
|
D | ProtoOutputStreamSInt32Test.java | 89 public void testWriteCompat(int val) throws Exception { in testWriteCompat() argument 96 all.sint32Field = val; in testWriteCompat() 97 po.writeSInt32(ProtoOutputStream.makeFieldId(fieldId, fieldFlags), val); in testWriteCompat() local 106 assertEquals(val, readback.sint32Field); in testWriteCompat() 188 public void testRepeatedCompat(int[] val) throws Exception { in testRepeatedCompat() argument 195 all.sint32FieldRepeated = val; in testRepeatedCompat() 196 for (int i=0; i<val.length; i++) { in testRepeatedCompat() 197 po.writeRepeatedSInt32(ProtoOutputStream.makeFieldId(fieldId, fieldFlags), val[i]); in testRepeatedCompat() local 208 assertEquals(val.length, readback.sint32FieldRepeated.length); in testRepeatedCompat() 209 for (int i=0; i<val.length; i++) { in testRepeatedCompat() [all …]
|
D | ProtoOutputStreamUInt32Test.java | 89 public void testWriteCompat(int val) throws Exception { in testWriteCompat() argument 96 all.uint32Field = val; in testWriteCompat() 97 po.writeUInt32(ProtoOutputStream.makeFieldId(fieldId, fieldFlags), val); in testWriteCompat() local 106 assertEquals(val, readback.uint32Field); in testWriteCompat() 188 public void testRepeatedCompat(int[] val) throws Exception { in testRepeatedCompat() argument 195 all.uint32FieldRepeated = val; in testRepeatedCompat() 196 for (int i=0; i<val.length; i++) { in testRepeatedCompat() 197 po.writeRepeatedUInt32(ProtoOutputStream.makeFieldId(fieldId, fieldFlags), val[i]); in testRepeatedCompat() local 208 assertEquals(val.length, readback.uint32FieldRepeated.length); in testRepeatedCompat() 209 for (int i=0; i<val.length; i++) { in testRepeatedCompat() [all …]
|
D | ProtoOutputStreamEnumTest.java | 94 public void testWriteCompat(int val) throws Exception { in testWriteCompat() argument 101 all.outsideField = val; in testWriteCompat() 102 po.writeEnum(ProtoOutputStream.makeFieldId(fieldId, fieldFlags), val); in testWriteCompat() local 112 if (val == Test.OUTSIDE_0 || val == Test.OUTSIDE_1) { in testWriteCompat() 113 assertEquals(val, readback.outsideField); in testWriteCompat() 200 public void testRepeatedCompat(int[] val) throws Exception { in testRepeatedCompat() argument 207 all.outsideFieldRepeated = val; in testRepeatedCompat() 208 for (int i=0; i<val.length; i++) { in testRepeatedCompat() 209 po.writeRepeatedEnum(ProtoOutputStream.makeFieldId(fieldId, fieldFlags), val[i]); in testRepeatedCompat() local 246 private void writePackedEnum(ProtoOutputStream po, int fieldId, int val) { in writePackedEnum() argument [all …]
|
D | ProtoOutputStreamFloatTest.java | 125 public void testWriteCompat(float val) throws Exception { in testWriteCompat() argument 132 all.floatField = val; in testWriteCompat() 133 po.writeFloat(ProtoOutputStream.makeFieldId(fieldId, fieldFlags), val); in testWriteCompat() local 142 assertEquals(val, readback.floatField); in testWriteCompat() 259 public void testRepeatedCompat(float[] val) throws Exception { in testRepeatedCompat() argument 266 all.floatFieldRepeated = val; in testRepeatedCompat() 267 for (int i=0; i<val.length; i++) { in testRepeatedCompat() 268 po.writeRepeatedFloat(ProtoOutputStream.makeFieldId(fieldId, fieldFlags), val[i]); in testRepeatedCompat() local 279 assertEquals(val.length, readback.floatFieldRepeated.length); in testRepeatedCompat() 280 for (int i=0; i<val.length; i++) { in testRepeatedCompat() [all …]
|
D | ProtoOutputStreamDoubleTest.java | 131 public void testWriteCompat(double val) throws Exception { in testWriteCompat() argument 138 all.doubleField = val; in testWriteCompat() 139 po.writeDouble(ProtoOutputStream.makeFieldId(fieldId, fieldFlags), val); in testWriteCompat() local 148 assertEquals(val, readback.doubleField); in testWriteCompat() 283 public void testRepeatedCompat(double[] val) throws Exception { in testRepeatedCompat() argument 290 all.doubleFieldRepeated = val; in testRepeatedCompat() 291 for (int i=0; i<val.length; i++) { in testRepeatedCompat() 292 po.writeRepeatedDouble(ProtoOutputStream.makeFieldId(fieldId, fieldFlags), val[i]); in testRepeatedCompat() local 303 assertEquals(val.length, readback.doubleFieldRepeated.length); in testRepeatedCompat() 304 for (int i=0; i<val.length; i++) { in testRepeatedCompat() [all …]
|
D | ProtoOutputStreamFixed64Test.java | 106 public void testWriteCompat(long val) throws Exception { in testWriteCompat() argument 113 all.fixed64Field = val; in testWriteCompat() 114 po.writeFixed64(ProtoOutputStream.makeFieldId(fieldId, fieldFlags), val); in testWriteCompat() local 123 assertEquals(val, readback.fixed64Field); in testWriteCompat() 237 public void testRepeatedCompat(long[] val) throws Exception { in testRepeatedCompat() argument 244 all.fixed64FieldRepeated = val; in testRepeatedCompat() 245 for (int i=0; i<val.length; i++) { in testRepeatedCompat() 246 po.writeRepeatedFixed64(ProtoOutputStream.makeFieldId(fieldId, fieldFlags), val[i]); in testRepeatedCompat() local 257 assertEquals(val.length, readback.fixed64FieldRepeated.length); in testRepeatedCompat() 258 for (int i=0; i<val.length; i++) { in testRepeatedCompat() [all …]
|
D | ProtoOutputStreamInt64Test.java | 103 public void testWriteCompat(long val) throws Exception { in testWriteCompat() argument 110 all.int64Field = val; in testWriteCompat() 111 po.writeInt64(ProtoOutputStream.makeFieldId(fieldId, fieldFlags), val); in testWriteCompat() local 120 assertEquals(val, readback.int64Field); in testWriteCompat() 227 public void testRepeatedCompat(long[] val) throws Exception { in testRepeatedCompat() argument 234 all.int64FieldRepeated = val; in testRepeatedCompat() 235 for (int i=0; i<val.length; i++) { in testRepeatedCompat() 236 po.writeRepeatedInt64(ProtoOutputStream.makeFieldId(fieldId, fieldFlags), val[i]); in testRepeatedCompat() local 247 assertEquals(val.length, readback.int64FieldRepeated.length); in testRepeatedCompat() 248 for (int i=0; i<val.length; i++) { in testRepeatedCompat() [all …]
|
D | ProtoOutputStreamUInt64Test.java | 103 public void testWriteCompat(long val) throws Exception { in testWriteCompat() argument 110 all.uint64Field = val; in testWriteCompat() 111 po.writeUInt64(ProtoOutputStream.makeFieldId(fieldId, fieldFlags), val); in testWriteCompat() local 120 assertEquals(val, readback.uint64Field); in testWriteCompat() 227 public void testRepeatedCompat(long[] val) throws Exception { in testRepeatedCompat() argument 234 all.uint64FieldRepeated = val; in testRepeatedCompat() 235 for (int i=0; i<val.length; i++) { in testRepeatedCompat() 236 po.writeRepeatedUInt64(ProtoOutputStream.makeFieldId(fieldId, fieldFlags), val[i]); in testRepeatedCompat() local 247 assertEquals(val.length, readback.uint64FieldRepeated.length); in testRepeatedCompat() 248 for (int i=0; i<val.length; i++) { in testRepeatedCompat() [all …]
|
D | ProtoOutputStreamSFixed64Test.java | 106 public void testWriteCompat(long val) throws Exception { in testWriteCompat() argument 113 all.sfixed64Field = val; in testWriteCompat() 114 po.writeSFixed64(ProtoOutputStream.makeFieldId(fieldId, fieldFlags), val); in testWriteCompat() local 123 assertEquals(val, readback.sfixed64Field); in testWriteCompat() 236 public void testRepeatedCompat(long[] val) throws Exception { in testRepeatedCompat() argument 243 all.sfixed64FieldRepeated = val; in testRepeatedCompat() 244 for (int i=0; i<val.length; i++) { in testRepeatedCompat() 245 po.writeRepeatedSFixed64(ProtoOutputStream.makeFieldId(fieldId, fieldFlags), val[i]); in testRepeatedCompat() local 256 assertEquals(val.length, readback.sfixed64FieldRepeated.length); in testRepeatedCompat() 257 for (int i=0; i<val.length; i++) { in testRepeatedCompat() [all …]
|
D | ProtoOutputStreamSInt64Test.java | 102 public void testWriteCompat(long val) throws Exception { in testWriteCompat() argument 109 all.sint64Field = val; in testWriteCompat() 110 po.writeSInt64(ProtoOutputStream.makeFieldId(fieldId, fieldFlags), val); in testWriteCompat() local 119 assertEquals(val, readback.sint64Field); in testWriteCompat() 223 public void testRepeatedCompat(long[] val) throws Exception { in testRepeatedCompat() argument 230 all.sint64FieldRepeated = val; in testRepeatedCompat() 231 for (int i=0; i<val.length; i++) { in testRepeatedCompat() 232 po.writeRepeatedSInt64(ProtoOutputStream.makeFieldId(fieldId, fieldFlags), val[i]); in testRepeatedCompat() local 243 assertEquals(val.length, readback.sint64FieldRepeated.length); in testRepeatedCompat() 244 for (int i=0; i<val.length; i++) { in testRepeatedCompat() [all …]
|
D | ProtoOutputStreamBytesTest.java | 89 public void testWriteCompat(byte[] val) throws Exception { in testWriteCompat() argument 96 all.bytesField = val; in testWriteCompat() 97 po.writeBytes(ProtoOutputStream.makeFieldId(fieldId, fieldFlags), val); in testWriteCompat() local 106 Assert.assertArrayEquals(val, readback.bytesField); in testWriteCompat() 193 public void testRepeatedCompat(byte[][] val) throws Exception { in testRepeatedCompat() argument 200 all.bytesFieldRepeated = val; in testRepeatedCompat() 201 for (int i=0; i<val.length; i++) { in testRepeatedCompat() 202 po.writeRepeatedBytes(ProtoOutputStream.makeFieldId(fieldId, fieldFlags), val[i]); in testRepeatedCompat() local 213 assertEquals(val.length, readback.bytesFieldRepeated.length); in testRepeatedCompat() 214 for (int i=0; i<val.length; i++) { in testRepeatedCompat() [all …]
|
D | ProtoOutputStreamStringTest.java | 127 public void testWriteCompat(String val) throws Exception { in testWriteCompat() argument 134 all.stringField = val; in testWriteCompat() 135 po.writeString(ProtoOutputStream.makeFieldId(fieldId, fieldFlags), val); in testWriteCompat() local 144 assertEquals(val, readback.stringField); in testWriteCompat() 225 public void testRepeatedCompat(String[] val) throws Exception { in testRepeatedCompat() argument 232 all.stringFieldRepeated = val; in testRepeatedCompat() 233 for (int i=0; i<val.length; i++) { in testRepeatedCompat() 234 po.writeRepeatedString(ProtoOutputStream.makeFieldId(fieldId, fieldFlags), val[i]); in testRepeatedCompat() local 245 assertEquals(val.length, readback.stringFieldRepeated.length); in testRepeatedCompat() 246 for (int i=0; i<val.length; i++) { in testRepeatedCompat() [all …]
|
/cts/tests/tests/renderscript/src/android/renderscript/cts/ |
D | Float16Utils.java | 42 static boolean isFloat16NaN(short val) { in isFloat16NaN() argument 43 return (val & EXPONENT_MASK) == EXPONENT_MASK && in isFloat16NaN() 44 (val & MANTISSA_MASK) != 0; in isFloat16NaN() 48 static boolean isFloat16Infinite(short val) { in isFloat16Infinite() argument 49 return (val & EXPONENT_MASK) == EXPONENT_MASK && in isFloat16Infinite() 50 (val & MANTISSA_MASK) == 0; in isFloat16Infinite() 54 static boolean isFloat16SubNormal(short val) { in isFloat16SubNormal() argument 55 return (val & EXPONENT_MASK) == 0 && (val & MANTISSA_MASK) != 0; in isFloat16SubNormal() 59 static boolean isFloat16Zero(short val) { in isFloat16Zero() argument 60 return (val & ~SIGN_MASK) == 0; in isFloat16Zero() [all …]
|
D | reduce.rs | 39 static void aiAccum(int *accum, int val) { *accum += val; } 50 float val; 59 accum->min.val = posInf; 61 accum->max.val = negInf; 67 me.val = in; 70 if (me.val <= accum->min.val) 72 if (me.val >= accum->max.val) 77 const MinAndMax *val) { 78 if ((accum->min.idx < 0) || (val->min.val < accum->min.val)) 79 accum->min = val->min; [all …]
|
D | float16_gen.c | 88 int isFloat16NaN(unsigned short val) { in isFloat16NaN() argument 89 return (val & EXPONENT_MASK) == EXPONENT_MASK && in isFloat16NaN() 90 (val & MANTISSA_MASK) != 0; in isFloat16NaN() 94 int isFloat16Infinite(unsigned short val) { in isFloat16Infinite() argument 95 return (val & EXPONENT_MASK) == EXPONENT_MASK && in isFloat16Infinite() 96 (val & MANTISSA_MASK) == 0; in isFloat16Infinite() 100 int isFloat16SubNormal(unsigned short val) { in isFloat16SubNormal() argument 101 return (val & EXPONENT_MASK) == 0 && (val & MANTISSA_MASK) != 0; in isFloat16SubNormal() 105 int isFloat16Negative(unsigned short val) { in isFloat16Negative() argument 106 return (val & SIGN_MASK) != 0; in isFloat16Negative()
|
D | single_source_alloc.rs | 36 int val = (gStart + x + y * gDimX + z * gDimY * gDimX); \ 37 _RS_ASSERT_EQU(in, (CT) val); \ 40 int val = (gStart + x + y * gDimX + z * gDimY * gDimX); \ 41 _RS_ASSERT_EQU(in.x, (CT) val); \ 42 _RS_ASSERT_EQU(in.y, (CT) (val + 1)); \ 45 int val = (gStart + x + y * gDimX + z * gDimY * gDimX); \ 46 _RS_ASSERT_EQU(in.x, (CT) val); \ 47 _RS_ASSERT_EQU(in.y, (CT) (val + 1)); \ 48 _RS_ASSERT_EQU(in.z, (CT) (val + 2)); \ 51 int val = (gStart + x + y * gDimX + z * gDimY * gDimX); \ [all …]
|
/cts/suite/audio_quality/lib/include/task/ |
D | TaskCase.h | 62 inline explicit Value(double val): mType(ETypeDouble) { in Value() argument 63 setDouble(val); in Value() 65 inline explicit Value(int64_t val): mType(ETypeI64) { in Value() argument 66 setInt64(val); in Value() 74 inline void setDouble(double val) { in setDouble() argument 75 mValue[0] = val; in setDouble() 83 inline void setInt64(int64_t val) { in setInt64() argument 85 data[0] = val; in setInt64() 106 bool registerValue(const android::String8& name, Value& val); 107 bool updateValue(const android::String8& name, Value& val); [all …]
|
/cts/suite/audio_quality/lib/src/audio/ |
D | AudioSignalFactory.cpp | 34 double val = sin(multiplier * i) * maxPositive; in generateSineWave() local 35 *data = (int16_t)val; in generateSineWave() 38 *data = (int16_t)val; in generateSineWave() 57 int val = rand(); in generateWhiteNoise() local 58 val = (int16_t)((val - middle) * maxPositive / middle); in generateWhiteNoise() 59 *data = val; in generateWhiteNoise() 62 *data = val; in generateWhiteNoise()
|
/cts/tests/tests/media/libndkaudio/ |
D | WaveTableGenerator.cpp | 35 float val = 0.0f; in genSinWave() local 37 tbl[index] = (float) sin(val) * maxValue; in genSinWave() 38 val += incr; in genSinWave()
|
/cts/tests/tests/content/src/android/content/cts/util/ |
D | XmlUtils.java | 185 public static final void writeMapXml(Map val, OutputStream out) in writeMapXml() argument 191 writeMapXml(val, null, serializer); in writeMapXml() 207 public static final void writeListXml(List val, OutputStream out) in writeListXml() argument 214 writeListXml(val, null, serializer); in writeListXml() 232 public static final void writeMapXml(Map val, String name, XmlSerializer out) in writeMapXml() argument 234 writeMapXml(val, name, out, null); in writeMapXml() 254 public static final void writeMapXml(Map val, String name, XmlSerializer out, in writeMapXml() argument 257 if (val == null) { in writeMapXml() 268 writeMapXml(val, out, callback); in writeMapXml() 288 public static final void writeMapXml(Map val, XmlSerializer out, in writeMapXml() argument [all …]
|