/cts/tests/tests/os/src/android/os/health/cts/ |
D | HealthStatsTest.java | 70 private void checkHealthStats(HealthStats readback) { in checkHealthStats() argument 72 Assert.assertEquals("HealthStatsTest", readback.getDataType()); in checkHealthStats() 76 Assert.assertEquals(2, readback.getTimerKeyCount()); in checkHealthStats() 78 Assert.assertEquals(TIMER_0, readback.getTimerKeyAt(0)); in checkHealthStats() 79 Assert.assertTrue(readback.hasTimer(TIMER_0)); in checkHealthStats() 80 Assert.assertEquals(1, readback.getTimerCount(TIMER_0)); in checkHealthStats() 81 Assert.assertEquals(100, readback.getTimerTime(TIMER_0)); in checkHealthStats() 83 Assert.assertEquals(TIMER_1, readback.getTimerKeyAt(1)); in checkHealthStats() 84 Assert.assertTrue(readback.hasTimer(TIMER_1)); in checkHealthStats() 85 Assert.assertEquals(Integer.MAX_VALUE, readback.getTimerCount(TIMER_1)); in checkHealthStats() [all …]
|
D | TimerStatTest.java | 87 TimerStat readback = new TimerStat(parcel); in testParceling() local 89 Assert.assertEquals(Integer.MAX_VALUE, readback.getCount()); in testParceling() 90 Assert.assertEquals(Long.MAX_VALUE, readback.getTime()); in testParceling()
|
/cts/tests/tests/proto/src/android/util/proto/cts/ |
D | ProtoOutputStreamBoolTest.java | 89 final Test.All readback = Test.All.parseFrom(result); in testWriteCompat() local 91 assertEquals(val, readback.boolField); in testWriteCompat() 166 final Test.All readback = Test.All.parseFrom(result); in testRepeatedCompat() local 168 assertNotNull(readback.boolFieldRepeated); in testRepeatedCompat() 169 assertEquals(val.length, readback.boolFieldRepeated.length); in testRepeatedCompat() 171 assertEquals(val[i], readback.boolFieldRepeated[i]); in testRepeatedCompat() 250 final Test.All readback = Test.All.parseFrom(result); in testPackedCompat() local 252 Assert.assertArrayEquals(val, readback.boolFieldPacked); in testPackedCompat()
|
D | ProtoOutputStreamBytesTest.java | 104 final Test.All readback = Test.All.parseFrom(result); in testWriteCompat() local 106 Assert.assertArrayEquals(val, readback.bytesField); in testWriteCompat() 210 final Test.All readback = Test.All.parseFrom(result); in testRepeatedCompat() local 212 assertNotNull(readback.bytesFieldRepeated); in testRepeatedCompat() 213 assertEquals(val.length, readback.bytesFieldRepeated.length); in testRepeatedCompat() 215 Assert.assertArrayEquals(val[i], readback.bytesFieldRepeated[i]); in testRepeatedCompat()
|
D | ProtoOutputStreamDoubleTest.java | 146 final Test.All readback = Test.All.parseFrom(result); in testWriteCompat() local 148 assertEquals(val, readback.doubleField); in testWriteCompat() 300 final Test.All readback = Test.All.parseFrom(result); in testRepeatedCompat() local 302 assertNotNull(readback.doubleFieldRepeated); in testRepeatedCompat() 303 assertEquals(val.length, readback.doubleFieldRepeated.length); in testRepeatedCompat() 305 assertEquals(val[i], readback.doubleFieldRepeated[i]); in testRepeatedCompat() 444 final Test.All readback = Test.All.parseFrom(result); in testPackedCompat() local 446 assertNotNull(readback.doubleFieldPacked); in testPackedCompat() 447 assertEquals(val.length, readback.doubleFieldPacked.length); in testPackedCompat() 449 assertEquals(val[i], readback.doubleFieldPacked[i]); in testPackedCompat()
|
D | ProtoOutputStreamFloatTest.java | 140 final Test.All readback = Test.All.parseFrom(result); in testWriteCompat() local 142 assertEquals(val, readback.floatField); in testWriteCompat() 276 final Test.All readback = Test.All.parseFrom(result); in testRepeatedCompat() local 278 assertNotNull(readback.floatFieldRepeated); in testRepeatedCompat() 279 assertEquals(val.length, readback.floatFieldRepeated.length); in testRepeatedCompat() 281 assertEquals(val[i], readback.floatFieldRepeated[i]); in testRepeatedCompat() 404 final Test.All readback = Test.All.parseFrom(result); in testPackedCompat() local 406 assertNotNull(readback.floatFieldPacked); in testPackedCompat() 407 assertEquals(val.length, readback.floatFieldPacked.length); in testPackedCompat() 409 assertEquals(val[i], readback.floatFieldPacked[i]); in testPackedCompat()
|
D | ProtoOutputStreamSFixed32Test.java | 104 final Test.All readback = Test.All.parseFrom(result); in testWriteCompat() local 106 assertEquals(val, readback.sfixed32Field); in testWriteCompat() 205 final Test.All readback = Test.All.parseFrom(result); in testRepeatedCompat() local 207 assertNotNull(readback.sfixed32FieldRepeated); in testRepeatedCompat() 208 assertEquals(val.length, readback.sfixed32FieldRepeated.length); in testRepeatedCompat() 210 assertEquals(val[i], readback.sfixed32FieldRepeated[i]); in testRepeatedCompat() 307 final Test.All readback = Test.All.parseFrom(result); in testPackedCompat() local 309 Assert.assertArrayEquals(val, readback.sfixed32FieldPacked); in testPackedCompat()
|
D | ProtoOutputStreamInt32Test.java | 106 final Test.All readback = Test.All.parseFrom(result); in testWriteCompat() local 108 assertEquals(val, readback.int32Field); in testWriteCompat() 211 final Test.All readback = Test.All.parseFrom(result); in testRepeatedCompat() local 213 assertNotNull(readback.int32FieldRepeated); in testRepeatedCompat() 214 assertEquals(val.length, readback.int32FieldRepeated.length); in testRepeatedCompat() 216 assertEquals(val[i], readback.int32FieldRepeated[i]); in testRepeatedCompat() 322 final Test.All readback = Test.All.parseFrom(result); in testPackedCompat() local 324 Assert.assertArrayEquals(val, readback.int32FieldPacked); in testPackedCompat()
|
D | ProtoOutputStreamUInt32Test.java | 104 final Test.All readback = Test.All.parseFrom(result); in testWriteCompat() local 106 assertEquals(val, readback.uint32Field); in testWriteCompat() 205 final Test.All readback = Test.All.parseFrom(result); in testRepeatedCompat() local 207 assertNotNull(readback.uint32FieldRepeated); in testRepeatedCompat() 208 assertEquals(val.length, readback.uint32FieldRepeated.length); in testRepeatedCompat() 210 assertEquals(val[i], readback.uint32FieldRepeated[i]); in testRepeatedCompat() 307 final Test.All readback = Test.All.parseFrom(result); in testPackedCompat() local 309 Assert.assertArrayEquals(val, readback.uint32FieldPacked); in testPackedCompat()
|
D | ProtoOutputStreamSInt32Test.java | 104 final Test.All readback = Test.All.parseFrom(result); in testWriteCompat() local 106 assertEquals(val, readback.sint32Field); in testWriteCompat() 205 final Test.All readback = Test.All.parseFrom(result); in testRepeatedCompat() local 207 assertNotNull(readback.sint32FieldRepeated); in testRepeatedCompat() 208 assertEquals(val.length, readback.sint32FieldRepeated.length); in testRepeatedCompat() 210 assertEquals(val[i], readback.sint32FieldRepeated[i]); in testRepeatedCompat() 306 final Test.All readback = Test.All.parseFrom(result); in testPackedCompat() local 308 Assert.assertArrayEquals(val, readback.sint32FieldPacked); in testPackedCompat()
|
D | ProtoOutputStreamFixed32Test.java | 104 final Test.All readback = Test.All.parseFrom(result); in testWriteCompat() local 106 assertEquals(val, readback.fixed32Field); in testWriteCompat() 205 final Test.All readback = Test.All.parseFrom(result); in testRepeatedCompat() local 207 assertNotNull(readback.fixed32FieldRepeated); in testRepeatedCompat() 208 assertEquals(val.length, readback.fixed32FieldRepeated.length); in testRepeatedCompat() 210 assertEquals(val[i], readback.fixed32FieldRepeated[i]); in testRepeatedCompat() 306 final Test.All readback = Test.All.parseFrom(result); in testPackedCompat() local 308 Assert.assertArrayEquals(val, readback.fixed32FieldPacked); in testPackedCompat()
|
D | ProtoOutputStreamStringTest.java | 142 final Test.All readback = Test.All.parseFrom(result); in testWriteCompat() local 144 assertEquals(val, readback.stringField); in testWriteCompat() 242 final Test.All readback = Test.All.parseFrom(result); in testRepeatedCompat() local 244 assertNotNull(readback.stringFieldRepeated); in testRepeatedCompat() 245 assertEquals(val.length, readback.stringFieldRepeated.length); in testRepeatedCompat() 247 assertEquals(val[i], readback.stringFieldRepeated[i]); in testRepeatedCompat()
|
D | ProtoOutputStreamSFixed64Test.java | 121 final Test.All readback = Test.All.parseFrom(result); in testWriteCompat() local 123 assertEquals(val, readback.sfixed64Field); in testWriteCompat() 253 final Test.All readback = Test.All.parseFrom(result); in testRepeatedCompat() local 255 assertNotNull(readback.sfixed64FieldRepeated); in testRepeatedCompat() 256 assertEquals(val.length, readback.sfixed64FieldRepeated.length); in testRepeatedCompat() 258 assertEquals(val[i], readback.sfixed64FieldRepeated[i]); in testRepeatedCompat() 382 final Test.All readback = Test.All.parseFrom(result); in testPackedCompat() local 384 Assert.assertArrayEquals(val, readback.sfixed64FieldPacked); in testPackedCompat()
|
D | ProtoOutputStreamUInt64Test.java | 118 final Test.All readback = Test.All.parseFrom(result); in testWriteCompat() local 120 assertEquals(val, readback.uint64Field); in testWriteCompat() 244 final Test.All readback = Test.All.parseFrom(result); in testRepeatedCompat() local 246 assertNotNull(readback.uint64FieldRepeated); in testRepeatedCompat() 247 assertEquals(val.length, readback.uint64FieldRepeated.length); in testRepeatedCompat() 249 assertEquals(val[i], readback.uint64FieldRepeated[i]); in testRepeatedCompat() 375 final Test.All readback = Test.All.parseFrom(result); in testPackedCompat() local 377 Assert.assertArrayEquals(val, readback.uint64FieldPacked); in testPackedCompat()
|
D | ProtoOutputStreamFixed64Test.java | 121 final Test.All readback = Test.All.parseFrom(result); in testWriteCompat() local 123 assertEquals(val, readback.fixed64Field); in testWriteCompat() 254 final Test.All readback = Test.All.parseFrom(result); in testRepeatedCompat() local 256 assertNotNull(readback.fixed64FieldRepeated); in testRepeatedCompat() 257 assertEquals(val.length, readback.fixed64FieldRepeated.length); in testRepeatedCompat() 259 assertEquals(val[i], readback.fixed64FieldRepeated[i]); in testRepeatedCompat() 383 final Test.All readback = Test.All.parseFrom(result); in testPackedCompat() local 385 Assert.assertArrayEquals(val, readback.fixed64FieldPacked); in testPackedCompat()
|
D | ProtoOutputStreamInt64Test.java | 118 final Test.All readback = Test.All.parseFrom(result); in testWriteCompat() local 120 assertEquals(val, readback.int64Field); in testWriteCompat() 244 final Test.All readback = Test.All.parseFrom(result); in testRepeatedCompat() local 246 assertNotNull(readback.int64FieldRepeated); in testRepeatedCompat() 247 assertEquals(val.length, readback.int64FieldRepeated.length); in testRepeatedCompat() 249 assertEquals(val[i], readback.int64FieldRepeated[i]); in testRepeatedCompat() 375 final Test.All readback = Test.All.parseFrom(result); in testPackedCompat() local 377 Assert.assertArrayEquals(val, readback.int64FieldPacked); in testPackedCompat()
|
D | ProtoOutputStreamSInt64Test.java | 117 final Test.All readback = Test.All.parseFrom(result); in testWriteCompat() local 119 assertEquals(val, readback.sint64Field); in testWriteCompat() 240 final Test.All readback = Test.All.parseFrom(result); in testRepeatedCompat() local 242 assertNotNull(readback.sint64FieldRepeated); in testRepeatedCompat() 243 assertEquals(val.length, readback.sint64FieldRepeated.length); in testRepeatedCompat() 245 assertEquals(val[i], readback.sint64FieldRepeated[i]); in testRepeatedCompat() 360 final Test.All readback = Test.All.parseFrom(result); in testPackedCompat() local 362 Assert.assertArrayEquals(val, readback.sint64FieldPacked); in testPackedCompat()
|
D | ProtoOutputStreamEnumTest.java | 109 final Test.All readback = Test.All.parseFrom(result); in testWriteCompat() local 113 assertEquals(val, readback.outsideField); in testWriteCompat() 217 final Test.All readback = Test.All.parseFrom(result); in testRepeatedCompat() local 335 final Test.All readback = Test.All.parseFrom(result); in testPackedCompat() local 337 Assert.assertArrayEquals(val, readback.outsideFieldPacked); in testPackedCompat()
|
/cts/tests/tests/media/libmediandkjni/ |
D | native-media-jni.cpp | 860 const char* readback = NULL; in Java_android_media_cts_NativeDecoderTest_testFormatNative() local 861 if (!AMediaFormat_getString(format, AMEDIAFORMAT_KEY_MIME, &readback) in Java_android_media_cts_NativeDecoderTest_testFormatNative() 862 || strcmp(value, readback) || value == readback) { in Java_android_media_cts_NativeDecoderTest_testFormatNative()
|