/cts/tests/tests/media/audio/src/android/media/audio/cts/ |
D | AudioTrackTest.java | 309 final String TEST_NAME = "testBuilderDefault"; in testBuilderDefault() local 328 assertEquals(TEST_NAME + ": Track initialized", AudioTrack.STATE_INITIALIZED, in testBuilderDefault() 330 assertEquals(TEST_NAME + ": Default track encoding", expectedDefaultEncoding, in testBuilderDefault() 332 assertEquals(TEST_NAME + ": Default track channels", expectedDefaultChannels, in testBuilderDefault() 340 final String TEST_NAME = "testBuilderFormat"; in testBuilderFormat() local 359 assertEquals(TEST_NAME + ": Track initialized", AudioTrack.STATE_INITIALIZED, in testBuilderFormat() 361 assertEquals(TEST_NAME + ": Track channels", TEST_CHANNELS, observedChannelConf); in testBuilderFormat() 362 assertEquals(TEST_NAME + ": Track sample rate", TEST_RATE, observedRate); in testBuilderFormat() 369 final String TEST_NAME = "testBuilderSession"; in testBuilderSession() local 381 assertEquals(TEST_NAME + ": Assigned track session ID", expectedSessionId, in testBuilderSession() [all …]
|
D | AudioTrackLatencyTest.java | 245 final String TEST_NAME = "testPlaySmallBuffer"; in testPlaySmallBuffer() local 250 int framesWrittenTotal = setup.primeAudioTrack(TEST_NAME); in testPlaySmallBuffer() 254 assertEquals(TEST_NAME + ": initial position", 0, position1); in testPlaySmallBuffer() 266 assertTrue(TEST_NAME + ": did it start?, position after start = " + position2, in testPlaySmallBuffer() 279 assertEquals(TEST_NAME + ": did it play all the data?", in testPlaySmallBuffer() 288 final String TEST_NAME = "testPlayPauseSmallBuffer"; in testPlayPauseSmallBuffer() local 293 setup.primeAudioTrack(TEST_NAME); in testPlayPauseSmallBuffer() 297 assertEquals(TEST_NAME + ": initial position", 0, position1); in testPlayPauseSmallBuffer() 307 assertTrue(TEST_NAME + ": [" + i + "] did it advance? p1 = " + position1 in testPlayPauseSmallBuffer() 321 final String TEST_NAME = "createCustomAudioTrack"; in createCustomAudioTrack() local [all …]
|
D | MediaSyncEventTest.java | 57 final String TEST_NAME = "testSynchronizedRecord"; in testSynchronizedRecord() local 81 assertEquals(TEST_NAME, vab.length, in testSynchronizedRecord() 99 assertEquals(TEST_NAME, AudioRecord.STATE_INITIALIZED, record.getState()); in testSynchronizedRecord() 116 assertEquals(TEST_NAME, trackSessionId, event.getAudioSessionId()); in testSynchronizedRecord() 117 assertEquals(TEST_NAME, eventType, event.getType()); in testSynchronizedRecord() 124 assertEquals(TEST_NAME, in testSynchronizedRecord() 132 Log.d(TEST_NAME, "startTimeMs: " + startTimeMs); in testSynchronizedRecord() 147 Log.d(TEST_NAME, "playbackStartLatencyMs: " + playbackStartLatencyMs); in testSynchronizedRecord() 175 assertEquals(TEST_NAME, amount, ret); in testSynchronizedRecord() 178 Log.d(TEST_NAME, "firstSampleReadTimeMs: " + firstSampleReadTimeMs); in testSynchronizedRecord() [all …]
|
D | AudioNativeTest.java | 74 final String TEST_NAME = "testPlayStreamData"; in testPlayStreamData() local 118 assertTrue(TEST_NAME, in testPlayStreamData() 120 assertTrue(TEST_NAME, track.start()); in testPlayStreamData() 175 final String TEST_NAME = "testRecordStreamData"; in testRecordStreamData() local 353 final String TEST_NAME = "doRecordTest"; in doRecordTest() local 356 assertTrue(TEST_NAME, record.open(numChannels, sampleRate, useFloat, in doRecordTest() 358 assertTrue(TEST_NAME, record.start()); in doRecordTest() 378 assertTrue(TEST_NAME, record.stop()); in doRecordTest()
|
D | AudioTrackSurroundTest.java | 186 final String TEST_NAME = "testLoadSineSweep"; in testLoadSineSweep() local 188 assertTrue(TEST_NAME + ": load sinesweepraw as shorts", shortData.length > 100); in testLoadSineSweep() 190 assertTrue(TEST_NAME + ": load sinesweepraw as bytes", byteData.length > shortData.length); in testLoadSineSweep() 194 final String TEST_NAME = "createAudioTrack"; in createAudioTrack() local 198 assertTrue(TEST_NAME + ": getMinBufferSize", minBufferSize > 0); in createAudioTrack() 348 final String TEST_NAME = "playAndMeasureRate"; in playAndMeasureRate() local 363 log(TEST_NAME, String.format("test using rate = %d, encoding = 0x%08x", in playAndMeasureRate() 368 assertEquals(TEST_NAME + ": track created " + getPcmWarning(), in playAndMeasureRate() 374 assertTrue(TEST_NAME + ": priming offset = " + mOffset + ", " + getPcmWarning(), in playAndMeasureRate() 381 log(TEST_NAME, "native rate = " in playAndMeasureRate() [all …]
|
D | VolumeShaperTest.java | 409 final String TEST_NAME = "testVolumeShaperConfigurationBuilder"; in testVolumeShaperConfigurationBuilder() local 414 Log.d(TAG, TEST_NAME + " configuration builder should throw ISE if no curve specified"); in testVolumeShaperConfigurationBuilder() 427 Log.d(TAG, TEST_NAME + " configuration builder should IAE on invalid curve"); in testVolumeShaperConfigurationBuilder() 450 Log.d(TAG, TEST_NAME + " configuration builder should throw IAE on invalid duration"); in testVolumeShaperConfigurationBuilder() 458 Log.d(TAG, TEST_NAME + " configuration builder should throw IAE on invalid interpolator"); in testVolumeShaperConfigurationBuilder() 470 assertEquals(TEST_NAME + " default interpolation should be cubic", in testVolumeShaperConfigurationBuilder() 472 assertEquals(TEST_NAME + " default duration should be 1000 ms", in testVolumeShaperConfigurationBuilder() 474 assertTrue(TEST_NAME + " times should be { 0.f, 1.f }", in testVolumeShaperConfigurationBuilder() 476 assertTrue(TEST_NAME + " volumes should be { 0.f, 1.f }", in testVolumeShaperConfigurationBuilder() 498 checkEqual(TEST_NAME, testRamp, ramp); in testVolumeShaperConfigurationBuilder() [all …]
|
D | AudioRecordTest.java | 455 final String TEST_NAME = "testAudioRecordBuilderDefault"; in testAudioRecordBuilderDefault() local 471 assertEquals(TEST_NAME + ": default capture preset", expectedCapturePreset, observedSource); in testAudioRecordBuilderDefault() 472 assertEquals(TEST_NAME + ": default channel config", expectedChannel, observedChannel); in testAudioRecordBuilderDefault() 473 assertEquals(TEST_NAME + ": default encoding", expectedEncoding, observedEncoding); in testAudioRecordBuilderDefault() 474 assertEquals(TEST_NAME + ": state", expectedState, observedState); in testAudioRecordBuilderDefault() 485 final String TEST_NAME = "testAudioRecordBuilderPartialFormat"; in testAudioRecordBuilderPartialFormat() local 503 assertEquals(TEST_NAME + ": configured rate", expectedRate, observedRate); in testAudioRecordBuilderPartialFormat() 504 assertEquals(TEST_NAME + ": default channel config", expectedChannel, observedChannel); in testAudioRecordBuilderPartialFormat() 505 assertEquals(TEST_NAME + ": default encoding", expectedEncoding, observedEncoding); in testAudioRecordBuilderPartialFormat() 506 assertEquals(TEST_NAME + ": state", expectedState, observedState); in testAudioRecordBuilderPartialFormat() [all …]
|
/cts/tests/tests/media/bettertogether/src/android/media/bettertogether/cts/ |
D | MediaRoute2InfoTest.java | 52 public static final String TEST_NAME = "test_name"; field in MediaRoute2InfoTest 109 MediaRoute2Info.Builder builder = new MediaRoute2Info.Builder(TEST_ID, TEST_NAME); in testBuilderBuildWithEmptyRouteTypesShouldThrowIAE() 119 new MediaRoute2Info.Builder(TEST_ID, TEST_NAME) in testBuilderAndGettersOfMediaRoute2Info() 134 assertThat(routeInfo.getName()).isEqualTo(TEST_NAME); in testBuilderAndGettersOfMediaRoute2Info() 156 MediaRoute2Info routeInfo = new MediaRoute2Info.Builder(TEST_ID, TEST_NAME) in testBuilderSetExtrasWithNull() 170 MediaRoute2Info routeInfo = new MediaRoute2Info.Builder(TEST_ID, TEST_NAME) in testBuilderaddFeatures() 179 MediaRoute2Info routeInfo = new MediaRoute2Info.Builder(TEST_ID, TEST_NAME) in testBuilderclearFeatures() 193 new MediaRoute2Info.Builder(TEST_ID, TEST_NAME) in testBuilderCreatePublicRouteInfoByDefault() 203 new MediaRoute2Info.Builder(TEST_ID, TEST_NAME) in testRouteInfoSeenByItsCreatorPackage() 215 new MediaRoute2Info.Builder(TEST_ID, TEST_NAME) in testRouteInfoSeenOnlyByItsAllowedPackages() [all …]
|
D | RoutingSessionInfoTest.java | 53 public static final String TEST_NAME = "test_name"; field in RoutingSessionInfoTest 183 .setName(TEST_NAME) in testBuilderAndGettersOfRoutingSessionInfo() 199 assertThat(sessionInfo.getName()).isEqualTo(TEST_NAME); in testBuilderAndGettersOfRoutingSessionInfo() 383 .setName(TEST_NAME) in testEqualsCreatedWithSameArguments() 400 .setName(TEST_NAME) in testEqualsCreatedWithSameArguments() 426 .setName(TEST_NAME) in testEqualsCreatedWithBuilderCopyConstructor() 454 .setName(TEST_NAME) in testEqualsReturnFalse() 543 .setName(TEST_NAME) in testParcelingAndUnParceling() 583 .setName(TEST_NAME) in testDescribeContents() 599 .setName(TEST_NAME) in testGroupVolumeHandling() [all …]
|
/cts/tests/tests/notification/src/android/app/notification/current/cts/ |
D | PersonTest.java | 38 private static final CharSequence TEST_NAME = "Test Name"; field in PersonTest 47 .setName(TEST_NAME) in testPerson_builder() 55 assertEquals(TEST_NAME, person.getName()); in testPerson_builder() 79 .setName(TEST_NAME) in testToBuilder() 88 assertEquals(TEST_NAME, result.getName()); in testToBuilder() 124 .setName(TEST_NAME) in testEquals() 140 .setName(TEST_NAME) in testEquals_noIcon() 156 .setName(TEST_NAME) in testEquals_different()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/ |
D | TestResult.java | 46 private static final String TEST_NAME = "name"; field in TestResult 126 intent.putExtra(TEST_NAME, testName); in addResultData() 138 String name = setTestNameSuffix(sCurrentDisplayMode, data.getStringExtra(TEST_NAME)); in fromActivityResult() 166 removeTestNameSuffix(mode, data.getStringExtra(TEST_NAME)) in fromActivityResultWithDisplayMode() 172 setTestNameSuffix(mode, data.getStringExtra(TEST_NAME)) in fromActivityResultWithDisplayMode()
|
/cts/build/ |
D | deqp_dummy_test_list | 3 test:TEST_NAME
|