Home
last modified time | relevance | path

Searched refs:TEST_NAME (Results 1 – 12 of 12) sorted by relevance

/cts/tests/tests/media/src/android/media/cts/
DAudioTrackLatencyTest.java74 final String TEST_NAME = "testSetBufferSize"; in testSetBufferSize() local
90 assertTrue(TEST_NAME, bufferCapacity > 0); in testSetBufferSize()
91 assertTrue(TEST_NAME, initialBufferSize > 0); in testSetBufferSize()
92 assertTrue(TEST_NAME, initialBufferSize <= bufferCapacity); in testSetBufferSize()
96 assertEquals(TEST_NAME + ": negative size", AudioTrack.ERROR_BAD_VALUE, resultNegative); in testSetBufferSize()
97 assertEquals(TEST_NAME + ": should be unchanged", in testSetBufferSize()
101 assertTrue(TEST_NAME + ": should be >0, but got " + resultZero, resultZero > 0); in testSetBufferSize()
102 assertTrue(TEST_NAME + ": zero size < original, but got " + resultZero, in testSetBufferSize()
104 assertEquals(TEST_NAME + ": should match resultZero", in testSetBufferSize()
108 assertTrue(TEST_NAME + ": set MAX_VALUE, >", resultMax > resultZero); in testSetBufferSize()
[all …]
DAudioTrackTest.java310 final String TEST_NAME = "testBuilderDefault"; in testBuilderDefault() local
329 assertEquals(TEST_NAME + ": Track initialized", AudioTrack.STATE_INITIALIZED, in testBuilderDefault()
331 assertEquals(TEST_NAME + ": Default track encoding", expectedDefaultEncoding, in testBuilderDefault()
333 assertEquals(TEST_NAME + ": Default track channels", expectedDefaultChannels, in testBuilderDefault()
341 final String TEST_NAME = "testBuilderFormat"; in testBuilderFormat() local
360 assertEquals(TEST_NAME + ": Track initialized", AudioTrack.STATE_INITIALIZED, in testBuilderFormat()
362 assertEquals(TEST_NAME + ": Track channels", TEST_CHANNELS, observedChannelConf); in testBuilderFormat()
363 assertEquals(TEST_NAME + ": Track sample rate", TEST_RATE, observedRate); in testBuilderFormat()
370 final String TEST_NAME = "testBuilderSession"; in testBuilderSession() local
382 assertEquals(TEST_NAME + ": Assigned track session ID", expectedSessionId, in testBuilderSession()
[all …]
DMediaSyncEventTest.java50 final String TEST_NAME = "testSynchronizedRecord"; in testSynchronizedRecord() local
74 assertEquals(TEST_NAME, vab.length, in testSynchronizedRecord()
92 assertEquals(TEST_NAME, AudioRecord.STATE_INITIALIZED, record.getState()); in testSynchronizedRecord()
109 assertEquals(TEST_NAME, trackSessionId, event.getAudioSessionId()); in testSynchronizedRecord()
110 assertEquals(TEST_NAME, eventType, event.getType()); in testSynchronizedRecord()
117 assertEquals(TEST_NAME, in testSynchronizedRecord()
147 assertEquals(TEST_NAME, amount, ret); in testSynchronizedRecord()
165 assertEquals(TEST_NAME, PLAYBACK_TIME_IN_MS, firstSampleTime - startTime, in testSynchronizedRecord()
167 assertEquals(TEST_NAME, RECORD_TIME_IN_MS, endTime - firstSampleTime, in testSynchronizedRecord()
171 assertEquals(TEST_NAME, AudioRecord.RECORDSTATE_STOPPED, record.getRecordingState()); in testSynchronizedRecord()
DVolumeShaperTest.java346 final String TEST_NAME = "testVolumeShaperConfigurationBuilder"; in testVolumeShaperConfigurationBuilder() local
351 Log.d(TAG, TEST_NAME + " configuration builder should throw ISE if no curve specified"); in testVolumeShaperConfigurationBuilder()
364 Log.d(TAG, TEST_NAME + " configuration builder should IAE on invalid curve"); in testVolumeShaperConfigurationBuilder()
387 Log.d(TAG, TEST_NAME + " configuration builder should throw IAE on invalid duration"); in testVolumeShaperConfigurationBuilder()
395 Log.d(TAG, TEST_NAME + " configuration builder should throw IAE on invalid interpolator"); in testVolumeShaperConfigurationBuilder()
407 assertEquals(TEST_NAME + " default interpolation should be cubic", in testVolumeShaperConfigurationBuilder()
409 assertEquals(TEST_NAME + " default duration should be 1000 ms", in testVolumeShaperConfigurationBuilder()
411 assertTrue(TEST_NAME + " times should be { 0.f, 1.f }", in testVolumeShaperConfigurationBuilder()
413 assertTrue(TEST_NAME + " volumes should be { 0.f, 1.f }", in testVolumeShaperConfigurationBuilder()
435 checkEqual(TEST_NAME, testRamp, ramp); in testVolumeShaperConfigurationBuilder()
[all …]
DMediaRoute2InfoTest.java50 public static final String TEST_NAME = "test_name"; field in MediaRoute2InfoTest
104 MediaRoute2Info.Builder builder = new MediaRoute2Info.Builder(TEST_ID, TEST_NAME); in testBuilderBuildWithEmptyRouteTypesShouldThrowIAE()
113 MediaRoute2Info routeInfo = new MediaRoute2Info.Builder(TEST_ID, TEST_NAME) in testBuilderAndGettersOfMediaRoute2Info()
127 assertEquals(TEST_NAME, routeInfo.getName()); in testBuilderAndGettersOfMediaRoute2Info()
149 MediaRoute2Info routeInfo = new MediaRoute2Info.Builder(TEST_ID, TEST_NAME) in testBuilderSetExtrasWithNull()
163 MediaRoute2Info routeInfo = new MediaRoute2Info.Builder(TEST_ID, TEST_NAME) in testBuilderaddFeatures()
172 MediaRoute2Info routeInfo = new MediaRoute2Info.Builder(TEST_ID, TEST_NAME) in testBuilderclearFeatures()
189 MediaRoute2Info routeInfo1 = new MediaRoute2Info.Builder(TEST_ID, TEST_NAME) in testEqualsCreatedWithSameArguments()
202 MediaRoute2Info routeInfo2 = new MediaRoute2Info.Builder(TEST_ID, TEST_NAME) in testEqualsCreatedWithSameArguments()
224 MediaRoute2Info routeInfo1 = new MediaRoute2Info.Builder(TEST_ID, TEST_NAME) in testEqualsCreatedWithBuilderCopyConstructor()
[all …]
DAudioNativeTest.java66 final String TEST_NAME = "testPlayStreamData"; in testPlayStreamData() local
110 assertTrue(TEST_NAME, in testPlayStreamData()
112 assertTrue(TEST_NAME, track.start()); in testPlayStreamData()
167 final String TEST_NAME = "testRecordStreamData"; in testRecordStreamData() local
342 final String TEST_NAME = "doRecordTest"; in doRecordTest() local
345 assertTrue(TEST_NAME, record.open(numChannels, sampleRate, useFloat, in doRecordTest()
347 assertTrue(TEST_NAME, record.start()); in doRecordTest()
367 assertTrue(TEST_NAME, record.stop()); in doRecordTest()
DAudioTrackSurroundTest.java201 final String TEST_NAME = "testLoadSineSweep"; in testLoadSineSweep() local
203 assertTrue(TEST_NAME + ": load sinesweepraw as shorts", shortData.length > 100); in testLoadSineSweep()
205 assertTrue(TEST_NAME + ": load sinesweepraw as bytes", byteData.length > shortData.length); in testLoadSineSweep()
209 final String TEST_NAME = "createAudioTrack"; in createAudioTrack() local
213 assertTrue(TEST_NAME + ": getMinBufferSize", minBufferSize > 0); in createAudioTrack()
397 final String TEST_NAME = "playAndMeasureRate"; in playAndMeasureRate() local
412 log(TEST_NAME, String.format("test using rate = %d, encoding = 0x%08x", in playAndMeasureRate()
417 assertEquals(TEST_NAME + ": track created" + getPcmWarning(), in playAndMeasureRate()
427 assertTrue(TEST_NAME + ": priming offset = " + mOffset + getPcmWarning(), in playAndMeasureRate()
434 log(TEST_NAME, "native rate = " in playAndMeasureRate()
[all …]
DRoutingSessionInfoTest.java46 public static final String TEST_NAME = "test_name"; field in RoutingSessionInfoTest
177 .setName(TEST_NAME) in testBuilderAndGettersOfRoutingSessionInfo()
194 assertEquals(TEST_NAME, sessionInfo.getName()); in testBuilderAndGettersOfRoutingSessionInfo()
395 .setName(TEST_NAME) in testEqualsCreatedWithSameArguments()
412 .setName(TEST_NAME) in testEqualsCreatedWithSameArguments()
438 .setName(TEST_NAME) in testEqualsCreatedWithBuilderCopyConstructor()
466 .setName(TEST_NAME) in testEqualsReturnFalse()
543 .setName(TEST_NAME) in testParcelingAndUnParceling()
583 .setName(TEST_NAME) in testDescribeContents()
DAudioRecordTest.java446 final String TEST_NAME = "testAudioRecordBuilderDefault"; in testAudioRecordBuilderDefault() local
462 assertEquals(TEST_NAME + ": default capture preset", expectedCapturePreset, observedSource); in testAudioRecordBuilderDefault()
463 assertEquals(TEST_NAME + ": default channel config", expectedChannel, observedChannel); in testAudioRecordBuilderDefault()
464 assertEquals(TEST_NAME + ": default encoding", expectedEncoding, observedEncoding); in testAudioRecordBuilderDefault()
465 assertEquals(TEST_NAME + ": state", expectedState, observedState); in testAudioRecordBuilderDefault()
476 final String TEST_NAME = "testAudioRecordBuilderPartialFormat"; in testAudioRecordBuilderPartialFormat() local
494 assertEquals(TEST_NAME + ": configured rate", expectedRate, observedRate); in testAudioRecordBuilderPartialFormat()
495 assertEquals(TEST_NAME + ": default channel config", expectedChannel, observedChannel); in testAudioRecordBuilderPartialFormat()
496 assertEquals(TEST_NAME + ": default encoding", expectedEncoding, observedEncoding); in testAudioRecordBuilderPartialFormat()
497 assertEquals(TEST_NAME + ": state", expectedState, observedState); in testAudioRecordBuilderPartialFormat()
[all …]
/cts/tests/app/src/android/app/cts/
DPersonTest.java27 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()
108 .setName(TEST_NAME) in testEquals()
123 .setName(TEST_NAME) in testEquals_noIcon()
138 .setName(TEST_NAME) in testEquals_different()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/
DTestResult.java44 private static final String TEST_NAME = "name"; field in TestResult
112 intent.putExtra(TEST_NAME, testName); in addResultData()
124 String name = data.getStringExtra(TEST_NAME); in fromActivityResult()
/cts/build/
Ddeqp_dummy_test_list3 test:TEST_NAME