/cts/tests/tests/media/src/android/media/cts/ |
D | AudioTrackLatencyTest.java | 73 final String TEST_NAME = "testSetBufferSize"; in testSetBufferSize() local 89 assertTrue(TEST_NAME, bufferCapacity > 0); in testSetBufferSize() 90 assertTrue(TEST_NAME, initialBufferSize > 0); in testSetBufferSize() 91 assertTrue(TEST_NAME, initialBufferSize <= bufferCapacity); in testSetBufferSize() 95 assertEquals(TEST_NAME + ": negative size", AudioTrack.ERROR_BAD_VALUE, resultNegative); in testSetBufferSize() 96 assertEquals(TEST_NAME + ": should be unchanged", in testSetBufferSize() 100 assertTrue(TEST_NAME + ": should be >0, but got " + resultZero, resultZero > 0); in testSetBufferSize() 101 assertTrue(TEST_NAME + ": zero size < original, but got " + resultZero, in testSetBufferSize() 103 assertEquals(TEST_NAME + ": should match resultZero", in testSetBufferSize() 107 assertTrue(TEST_NAME + ": set MAX_VALUE, >", resultMax > resultZero); in testSetBufferSize() [all …]
|
D | AudioTrackTest.java | 280 final String TEST_NAME = "testBuilderDefault"; in testBuilderDefault() local 299 assertEquals(TEST_NAME + ": Track initialized", AudioTrack.STATE_INITIALIZED, in testBuilderDefault() 301 assertEquals(TEST_NAME + ": Default track encoding", expectedDefaultEncoding, in testBuilderDefault() 303 assertEquals(TEST_NAME + ": Default track channels", expectedDefaultChannels, in testBuilderDefault() 310 final String TEST_NAME = "testBuilderFormat"; in testBuilderFormat() local 329 assertEquals(TEST_NAME + ": Track initialized", AudioTrack.STATE_INITIALIZED, in testBuilderFormat() 331 assertEquals(TEST_NAME + ": Track channels", TEST_CHANNELS, observedChannelConf); in testBuilderFormat() 332 assertEquals(TEST_NAME + ": Track sample rate", TEST_RATE, observedRate); in testBuilderFormat() 338 final String TEST_NAME = "testBuilderSession"; in testBuilderSession() local 350 assertEquals(TEST_NAME + ": Assigned track session ID", expectedSessionId, in testBuilderSession() [all …]
|
D | VolumeShaperTest.java | 347 final String TEST_NAME = "testVolumeShaperConfigurationBuilder"; in testVolumeShaperConfigurationBuilder() local 352 Log.d(TAG, TEST_NAME + " configuration builder should throw ISE if no curve specified"); in testVolumeShaperConfigurationBuilder() 365 Log.d(TAG, TEST_NAME + " configuration builder should IAE on invalid curve"); in testVolumeShaperConfigurationBuilder() 388 Log.d(TAG, TEST_NAME + " configuration builder should throw IAE on invalid duration"); in testVolumeShaperConfigurationBuilder() 396 Log.d(TAG, TEST_NAME + " configuration builder should throw IAE on invalid interpolator"); in testVolumeShaperConfigurationBuilder() 408 assertEquals(TEST_NAME + " default interpolation should be cubic", in testVolumeShaperConfigurationBuilder() 410 assertEquals(TEST_NAME + " default duration should be 1000 ms", in testVolumeShaperConfigurationBuilder() 412 assertTrue(TEST_NAME + " times should be { 0.f, 1.f }", in testVolumeShaperConfigurationBuilder() 414 assertTrue(TEST_NAME + " volumes should be { 0.f, 1.f }", in testVolumeShaperConfigurationBuilder() 436 checkEqual(TEST_NAME, testRamp, ramp); in testVolumeShaperConfigurationBuilder() [all …]
|
D | AudioNativeTest.java | 61 final String TEST_NAME = "testPlayStreamData"; in testPlayStreamData() local 105 assertTrue(TEST_NAME, in testPlayStreamData() 107 assertTrue(TEST_NAME, track.start()); in testPlayStreamData() 162 final String TEST_NAME = "testRecordStreamData"; in testRecordStreamData() local 279 final String TEST_NAME = "doRecordTest"; in doRecordTest() local 282 assertTrue(TEST_NAME, record.open(numChannels, sampleRate, useFloat, in doRecordTest() 284 assertTrue(TEST_NAME, record.start()); in doRecordTest() 304 assertTrue(TEST_NAME, record.stop()); in doRecordTest()
|
D | AudioTrackSurroundTest.java | 189 final String TEST_NAME = "testLoadSineSweep"; in testLoadSineSweep() local 191 assertTrue(TEST_NAME + ": load sinesweepraw as shorts", shortData.length > 100); in testLoadSineSweep() 193 assertTrue(TEST_NAME + ": load sinesweepraw as bytes", byteData.length > shortData.length); in testLoadSineSweep() 197 final String TEST_NAME = "createAudioTrack"; in createAudioTrack() local 201 assertTrue(TEST_NAME + ": getMinBufferSize", minBufferSize > 0); in createAudioTrack() 382 final String TEST_NAME = "playAndMeasureRate"; in playAndMeasureRate() local 398 log(TEST_NAME, String.format("test using rate = %d, encoding = 0x%08x", in playAndMeasureRate() 403 assertEquals(TEST_NAME + ": track created" + getPcmWarning(), in playAndMeasureRate() 413 assertTrue(TEST_NAME + ": priming offset = " + mOffset + getPcmWarning(), in playAndMeasureRate() 420 log(TEST_NAME, "native rate = " in playAndMeasureRate() [all …]
|
D | AudioRecordTest.java | 377 final String TEST_NAME = "testAudioRecordBuilderDefault"; in testAudioRecordBuilderDefault() local 393 assertEquals(TEST_NAME + ": default capture preset", expectedCapturePreset, observedSource); in testAudioRecordBuilderDefault() 394 assertEquals(TEST_NAME + ": default channel config", expectedChannel, observedChannel); in testAudioRecordBuilderDefault() 395 assertEquals(TEST_NAME + ": default encoding", expectedEncoding, observedEncoding); in testAudioRecordBuilderDefault() 396 assertEquals(TEST_NAME + ": state", expectedState, observedState); in testAudioRecordBuilderDefault() 407 final String TEST_NAME = "testAudioRecordBuilderPartialFormat"; in testAudioRecordBuilderPartialFormat() local 425 assertEquals(TEST_NAME + ": configured rate", expectedRate, observedRate); in testAudioRecordBuilderPartialFormat() 426 assertEquals(TEST_NAME + ": default channel config", expectedChannel, observedChannel); in testAudioRecordBuilderPartialFormat() 427 assertEquals(TEST_NAME + ": default encoding", expectedEncoding, observedEncoding); in testAudioRecordBuilderPartialFormat() 428 assertEquals(TEST_NAME + ": state", expectedState, observedState); in testAudioRecordBuilderPartialFormat() [all …]
|
/cts/tests/app/src/android/app/cts/ |
D | PersonTest.java | 27 private static final CharSequence TEST_NAME = "Test Name"; field in PersonTest 35 .setName(TEST_NAME) in testPerson_builder() 43 assertEquals(TEST_NAME, person.getName()); in testPerson_builder() 65 .setName(TEST_NAME) in testToBuilder() 74 assertEquals(TEST_NAME, result.getName()); in testToBuilder()
|
/cts/apps/CameraITS/tools/ |
D | run_sensor_fusion_box.py | 28 TEST_NAME = 'test_sensor_fusion' variable 124 cmd = ['python', os.path.join(TEST_DIR, TEST_NAME+'.py'), 128 outpath = os.path.join(outdir, TEST_NAME+'_stdout.txt') 129 errpath = os.path.join(outdir, TEST_NAME+'_stderr.txt') 155 msg = '%s %s/%s [%.1fs]' % (retstr, SCENE_NAME, TEST_NAME, t1-t0)
|
/cts/build/ |
D | deqp_dummy_test_list | 3 test:TEST_NAME
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/ |
D | TestResult.java | 37 private static final String TEST_NAME = "name"; field in TestResult 80 intent.putExtra(TEST_NAME, testName); in addResultData() 91 String name = data.getStringExtra(TEST_NAME); in fromActivityResult()
|