/cts/tests/tests/os/src/android/os/cts/ |
D | HandlerTest.java | 97 mHandler1.removeMessages(msg.what); in testSendMessageAtTime() 108 assertFalse(mHandler.hasMessages(msg.what)); in testHasMessagesWithInt() 110 assertTrue(mHandler.hasMessages(msg.what)); in testHasMessagesWithInt() 111 mHandler.removeMessages(msg.what); in testHasMessagesWithInt() 112 assertFalse(mHandler.hasMessages(msg.what)); in testHasMessagesWithInt() 118 assertFalse(mHandler.hasMessages(msg.what, msg.obj)); in testHasMessagesWithObject() 120 assertTrue(mHandler.hasMessages(msg.what, msg.obj)); in testHasMessagesWithObject() 121 mHandler.removeMessages(msg.what); in testHasMessagesWithObject() 122 assertFalse(mHandler.hasMessages(msg.what, msg.obj)); in testHasMessagesWithObject() 168 assertEquals(0, mHandler1.what); in testSendEmptyMessageAtTime() [all …]
|
D | MessageTest.java | 83 assertEquals(0, message.what); in testObtain() 98 assertEquals(message.what, expected.what); in testObtain2() 118 assertEquals(WHAT, expected.what); in testObtain5() 124 assertEquals(WHAT, expected.what); in testObtain6() 131 assertEquals(WHAT, expected.what); in testObtain7() 139 assertEquals(WHAT, expected.what); in testObtain8() 164 assertEquals(WHAT, mMessage.what); in testCopyFrom() 175 assertEquals(0, message.what); in testRecycle() 195 assertEquals(WHAT, mMessage.what); in testWriteToParcel()
|
D | MessageQueueTest.java | 211 if (msg.what == 0) { in testAtFrontOfQueue() 739 if (msg.what == 3) { in testSyncBarriers() 744 } else if (msg.what == 4) { in testSyncBarriers() 748 } else if (msg.what == 8) { in testSyncBarriers() 753 private void sendAsyncMessage(int what) { in testSyncBarriers() 754 Message msg = mHandler.obtainMessage(what); in testSyncBarriers() 847 if (msg.what != mCount) { in handleMessage() 849 + msg.what)); in handleMessage() 856 failure(new RuntimeException("Message received after done, #" + msg.what)); in handleMessage()
|
/cts/tests/tests/media/src/android/media/cts/ |
D | MediaPlayer2Test.java | 141 public void onInfo(MediaPlayer2 mp, DataSourceDesc dsd, int what, int extra) { in testVorbisCrash() 142 if (what == MediaPlayer2.MEDIA_INFO_PREPARED) { in testVorbisCrash() 148 public void onError(MediaPlayer2 mp, DataSourceDesc dsd, int what, int extra) { in testVorbisCrash() 190 public void onCallCompleted(MediaPlayer2 mp, DataSourceDesc dsd, int what, int status) { in testPlayNullSourcePath() 191 if (what == MediaPlayer2.CALL_COMPLETED_SET_DATA_SOURCE) { in testPlayNullSourcePath() 233 public void onInfo(MediaPlayer2 mp, DataSourceDesc dsd, int what, int extra) { in testPlayAudioFromDataURI() 234 if (what == MediaPlayer2.MEDIA_INFO_PREPARED) { in testPlayAudioFromDataURI() 240 public void onCallCompleted(MediaPlayer2 mp, DataSourceDesc dsd, int what, int status) { in testPlayAudioFromDataURI() 241 if (what == MediaPlayer2.CALL_COMPLETED_PLAY) { in testPlayAudioFromDataURI() 243 } else if (what == MediaPlayer2.CALL_COMPLETED_LOOP_CURRENT) { in testPlayAudioFromDataURI() [all …]
|
D | StreamingMediaPlayer2Test.java | 370 public void onError(MediaPlayer2 mp, DataSourceDesc dsd, int what, int extra) { in localHttpAudioStreamTest() 371 fail("Media player had error " + what + " playing " + name); in localHttpAudioStreamTest() 375 public void onInfo(MediaPlayer2 mp, DataSourceDesc dsd, int what, int extra) { in localHttpAudioStreamTest() 376 if (what == MediaPlayer2.MEDIA_INFO_PREPARED) { in localHttpAudioStreamTest() 378 } else if (what == MediaPlayer2.MEDIA_INFO_BUFFERING_UPDATE) { in localHttpAudioStreamTest() 434 public void onError(MediaPlayer2 mp, DataSourceDesc dsd, int what, int extra) { in localHttpsAudioStreamTest() 439 public void onInfo(MediaPlayer2 mp, DataSourceDesc dsd, int what, int extra) { in localHttpsAudioStreamTest() 440 if (what == MediaPlayer2.MEDIA_INFO_PREPARED) { in localHttpsAudioStreamTest() 442 } else if (what == MediaPlayer2.MEDIA_INFO_BUFFERING_UPDATE) { in localHttpsAudioStreamTest() 477 public void onError(MediaPlayer2 mp, DataSourceDesc dsd, int what, int extra) { in doTestBuffering() [all …]
|
D | MediaPlayer2TestBase.java | 117 public void onInfo(MediaPlayer2 mp, DataSourceDesc dsd, int what, int extra) { in createMediaPlayer2() 118 if (what == MediaPlayer2.MEDIA_INFO_PREPARED) { in createMediaPlayer2() 172 public void onInfo(MediaPlayer2 mp, DataSourceDesc dsd, int what, int extra) { in createMediaPlayer2() 173 if (what == MediaPlayer2.MEDIA_INFO_PREPARED) { in createMediaPlayer2() 276 public void onError(MediaPlayer2 mp, DataSourceDesc dsd, int what, int extra) { in setUpMP2ECb() 279 ecb.onError(mp, dsd, what, extra); in setUpMP2ECb() 285 public void onInfo(MediaPlayer2 mp, DataSourceDesc dsd, int what, int extra) { in setUpMP2ECb() 288 ecb.onInfo(mp, dsd, what, extra); in setUpMP2ECb() 294 public void onCallCompleted(MediaPlayer2 mp, DataSourceDesc dsd, int what, int status) { in setUpMP2ECb() 297 ecb.onCallCompleted(mp, dsd, what, status); in setUpMP2ECb() [all …]
|
D | .goutputstream-9KZYJZ | 370 public void onError(MediaPlayer2 mp, DataSourceDesc dsd, int what, int extra) { 371 fail("Media player had error " + what + " playing " + name); 375 public void onInfo(MediaPlayer2 mp, DataSourceDesc dsd, int what, int extra) { 376 if (what == MediaPlayer2.MEDIA_INFO_PREPARED) { 378 } else if (what == MediaPlayer2.MEDIA_INFO_BUFFERING_UPDATE) { 434 public void onError(MediaPlayer2 mp, DataSourceDesc dsd, int what, int extra) { 439 public void onInfo(MediaPlayer2 mp, DataSourceDesc dsd, int what, int extra) { 440 if (what == MediaPlayer2.MEDIA_INFO_PREPARED) { 442 } else if (what == MediaPlayer2.MEDIA_INFO_BUFFERING_UPDATE) { 477 public void onError(MediaPlayer2 mp, DataSourceDesc dsd, int what, int extra) { [all …]
|
D | MediaRandomTest.java | 186 public boolean onError(MediaPlayer mp, int what, int extra) { in testPlayerRandomAction() 188 what == MediaPlayer.MEDIA_ERROR_SERVER_DIED) { in testPlayerRandomAction() 276 public void onError(MediaRecorder recorder, int what, int extra) { in testRecorderRandomAction() 278 what == MediaRecorder.MEDIA_ERROR_SERVER_DIED) { in testRecorderRandomAction()
|
D | MediaPlayerTestBase.java | 245 public boolean onError(MediaPlayer mp, int what, int extra) { in playLoadedVideo() 246 fail("Media player had error " + what + " playing video"); in playLoadedVideo() 252 public boolean onInfo(MediaPlayer mp, int what, int extra) { in playLoadedVideo() 253 if (what == MediaPlayer.MEDIA_INFO_VIDEO_RENDERING_START) { in playLoadedVideo() 339 public boolean onError(MediaPlayer mp, int what, int extra) { in setOnErrorListener()
|
D | StreamingMediaPlayerTest.java | 312 public boolean onError(MediaPlayer mp, int what, int extra) { in localHttpAudioStreamTest() 313 fail("Media player had error " + what + " playing " + name); in localHttpAudioStreamTest() 366 public boolean onError(MediaPlayer mp, int what, int extra) { in localHttpsAudioStreamTest() 367 fail("Media player had error " + what + " playing " + name); in localHttpsAudioStreamTest() 430 public boolean onError(MediaPlayer mp, int what, int extra) { in doTestBuffering() 431 fail("Media player had error " + what + " playing " + name); in doTestBuffering()
|
/cts/tests/tests/webkit/src/android/webkit/cts/ |
D | TestProcessService.java | 53 if (msg.what == MSG_EXIT_PROCESS) { in handleMessage() 58 if (msg.what != MSG_RUN_TEST) { in handleMessage() 59 throw new AssertionFailedError("Unknown service message " + msg.what); in handleMessage()
|
D | TestProcessClient.java | 166 mLastResult = msg.what; in handleMessage() 167 if (msg.what == TestProcessService.REPLY_EXCEPTION) { in handleMessage()
|
/cts/tests/tests/widget/src/android/widget/cts/ |
D | MultiAutoCompleteTextView_CommaTokenizerTest.java | 125 UnderlineSpan what = new UnderlineSpan(); in testTerminateToken() local 126 spannableString.setSpan(what, 0, spannableString.length(), in testTerminateToken() 131 assertEquals(0, actual.getSpanStart(what)); in testTerminateToken() 132 assertEquals(spannableString.length(), actual.getSpanEnd(what)); in testTerminateToken()
|
/cts/tests/tests/text/src/android/text/method/cts/ |
D | NumberKeyListenerTest.java | 76 Object what = new Object(); in testFilter() local 78 spannableSource.setSpan(what, 0, spannableSource.length(), Spanned.SPAN_POINT_POINT); in testFilter() 82 assertEquals(Spanned.SPAN_POINT_POINT, filtered.getSpanFlags(what)); in testFilter() 83 assertEquals(0, filtered.getSpanStart(what)); in testFilter() 84 assertEquals("12345".length(), filtered.getSpanEnd(what)); in testFilter()
|
D | DigitsKeyListenerTest.java | 107 Object what = new Object(); in testFilter1() local 109 spannableSource.setSpan(what, 0, spannableSource.length(), Spanned.SPAN_POINT_POINT); in testFilter1() 113 assertEquals(Spanned.SPAN_POINT_POINT, filtered.getSpanFlags(what)); in testFilter1() 114 assertEquals(0, filtered.getSpanStart(what)); in testFilter1() 115 assertEquals("123".length(), filtered.getSpanEnd(what)); in testFilter1() 186 Object what = new Object(); in testFilter2() local 188 spannableSource.setSpan(what, 0, spannableSource.length(), Spanned.SPAN_POINT_POINT); in testFilter2() 192 assertEquals(Spanned.SPAN_POINT_POINT, filtered.getSpanFlags(what)); in testFilter2() 193 assertEquals(0, filtered.getSpanStart(what)); in testFilter2() 194 assertEquals("5123".length(), filtered.getSpanEnd(what)); in testFilter2() [all …]
|
/cts/tests/tests/view/src/android/view/cts/ |
D | PixelCopyVideoSourceActivity.java | 44 mVideoView.setOnErrorListener((mp, what, extra) -> { in onCreate() argument 45 Log.e(TAG, "MediaPlayer encountered error " + what + ", " + extra); in onCreate()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/ |
D | NativeAudioThread.java | 123 msg.what = NATIVE_AUDIO_THREAD_MESSAGE_REC_STARTED; in run() 139 msg.what = NATIVE_AUDIO_THREAD_MESSAGE_REC_ERROR; in run() 250 msg.what = NATIVE_AUDIO_THREAD_MESSAGE_REC_COMPLETE_ERRORS; in endTest() 252 msg.what = NATIVE_AUDIO_THREAD_MESSAGE_REC_COMPLETE; in endTest()
|
/cts/tests/tests/security/src/android/security/cts/ |
D | MediaServerCrashTest.java | 63 public boolean onError(MediaPlayer mp, int what, int extra) { in setUp() 65 assertTrue("mediaserver process died", what != MediaPlayer.MEDIA_ERROR_SERVER_DIED); in setUp() 66 Log.w(TAG, "onError " + what); in setUp()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/audiolib/ |
D | StreamRecorderListener.java | 37 switch (msg.what) { in handleMessage()
|
/cts/tests/tests/externalservice/service/src/android/externalservice/service/ |
D | ServiceCreator.java | 45 switch (msg.what) { 58 reply.what = ServiceMessages.MSG_CREATE_EXTERNAL_SERVICE_RESPONSE;
|
/cts/tests/tests/systemui/src/android/systemui/cts/ |
D | LightBarTests.java | 177 private void assertMoreThan(String what, float expected, float actual, String hint) { in assertMoreThan() argument 179 fail(what + ": expected more than " + expected * 100 + "%, but only got " + actual * 100 in assertMoreThan() 184 private void assertLessThan(String what, float expected, float actual, String hint) { in assertLessThan() argument 186 fail(what + ": expected less than " + expected * 100 + "%, but got " + actual * 100 in assertLessThan()
|
/cts/tests/app/app/src/android/app/stubs/ |
D | SearchManagerStubActivity.java | 211 if (!doStep(msg.what)) { in handleMessage() 212 sendEmptyMessage(msg.what + 1); in handleMessage()
|
/cts/tests/JobScheduler/JobTestApp/src/android/jobscheduler/cts/jobtestapp/ |
D | TestActivity.java | 43 switch (msg.what) {
|
/cts/tests/JobSchedulerSharedUid/JobSharedUidTestApp/src/android/jobscheduler/cts/jobtestapp/ |
D | TestActivity.java | 43 switch (msg.what) {
|
/cts/tests/tests/uirendering/src/android/uirendering/cts/testinfrastructure/ |
D | DrawActivity.java | 131 Log.d("UiRendering", "message of type " + message.what); in handleMessage() 132 if (message.what == RESET_MSG) { in handleMessage() 140 switch (message.what) { in handleMessage()
|