/cts/tests/tests/os/src/android/os/cts/ |
D | HandlerTest.java | 62 private Handler mHandler; field in HandlerTest 68 mHandler = new Handler(Looper.getMainLooper()); in setUp() 101 assertTrue(mHandler.postAtTime(r, SystemClock.uptimeMillis() + RUNTIME)); in testPostAtTime1() 105 mHandler.removeCallbacks(r); in testPostAtTime1() 112 assertTrue(mHandler.postAtTime(r, token, SystemClock.uptimeMillis() + RUNTIME)); in testPostAtTime2() 116 mHandler.removeCallbacks(r); in testPostAtTime2() 133 mHandler.dump(pw, prefix); in testDump() 138 Message msg = mHandler.obtainMessage(); in testHasMessagesWithInt() 139 assertFalse(mHandler.hasMessages(msg.what)); in testHasMessagesWithInt() 140 mHandler.sendMessageAtTime(msg, SystemClock.uptimeMillis() + RUNTIME); in testHasMessagesWithInt() [all …]
|
D | MessageTest.java | 63 private Handler mHandler; field in MessageTest 76 mHandler = new Handler(Looper.getMainLooper()) { in setUp() 91 mMessage.setTarget(mHandler); in testAccessMessageProperties() 92 assertEquals(mHandler, mMessage.getTarget()); in testAccessMessageProperties() 95 Message expected = Message.obtain(mHandler, mRunnable); in testAccessMessageProperties() 125 Message message = Message.obtain(mHandler, WHAT, ARG1, ARG2, OBJ); in testObtain2() 137 Message expected = Message.obtain(mHandler); in testObtain3() 138 assertEquals(mHandler, expected.getTarget()); in testObtain3() 143 Message expected = Message.obtain(mHandler, mRunnable); in testObtain4() 144 assertEquals(mHandler, expected.getTarget()); in testObtain4() [all …]
|
D | MessageQueueTest.java | 204 mHandler.sendMessageAtTime(mHandler.obtainMessage(2), now + 1); in testMessageOrder() 205 mHandler.sendMessageAtTime(mHandler.obtainMessage(3), now + 2); in testMessageOrder() 206 mHandler.sendMessageAtTime(mHandler.obtainMessage(4), now + 2); in testMessageOrder() 207 mHandler.sendMessageAtTime(mHandler.obtainMessage(0), now + 0); in testMessageOrder() 208 mHandler.sendMessageAtTime(mHandler.obtainMessage(1), now + 0); in testMessageOrder() 228 mHandler.sendMessageAtTime(mHandler.obtainMessage(3), now); in testAtFrontOfQueue() 229 mHandler.sendMessageAtFrontOfQueue(mHandler.obtainMessage(2)); in testAtFrontOfQueue() 230 mHandler.sendMessageAtFrontOfQueue(mHandler.obtainMessage(0)); in testAtFrontOfQueue() 237 mHandler.sendMessageAtFrontOfQueue(mHandler.obtainMessage(1)); in testAtFrontOfQueue() 260 mHandler.sendMessageAtTime(mHandler.obtainMessage(5, object), now + 5); in testRemoveMessages() [all …]
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/bluetooth/ |
D | TestTaskQueue.java | 32 private Handler mHandler; field in TestTaskQueue 38 mHandler = new Handler(th.getLooper()); in TestTaskQueue() 47 mHandler.removeCallbacks(task); in quit() 52 mHandler.getLooper().quit(); in quit() 53 mHandler = null; in quit() 74 if ((mHandler != null) && (r != null)) { in addTask() 83 mHandler.postDelayed(task, delay); in addTask()
|
/cts/hostsidetests/theme/app/src/android/theme/app/ |
D | ConditionCheck.java | 35 private final Handler mHandler; field in ConditionCheck 44 mHandler = new Handler(context.getMainLooper()); in ConditionCheck() 58 mHandler.removeCallbacks(this); in start() 59 mHandler.post(this); in start() 63 mHandler.removeCallbacks(this); in cancel() 73 mHandler.removeCallbacks(this); in run() 74 mHandler.postDelayed(this, RETRY_DELAY); in run()
|
/cts/tests/tests/content/src/android/content/cts/ |
D | MockContextService.java | 39 private Handler mHandler = new Handler() { field in MockContextService 41 mHandler.sendMessageDelayed(mHandler.obtainMessage(TEST_MESSAGE_WHAT), 1000); 47 mHandler.sendMessageDelayed(mHandler.obtainMessage(TEST_MESSAGE_WHAT), 1000); in onCreate() 53 mHandler.removeMessages(1); in onDestroy()
|
/cts/tests/tests/telephony/current/EmbmsMiddlewareTestApp/src/android/telephony/cts/embmstestapp/ |
D | CtsStreamingService.java | 83 private Handler mHandler; field in CtsStreamingService 117 mHandler.post(() -> { 141 mHandler.removeMessages(SEND_STREAMING_SERVICES_LIST); 142 mHandler.sendMessage( 143 mHandler.obtainMessage(SEND_STREAMING_SERVICES_LIST, serviceInfos)); 156 mHandler.post(() -> callback.onStreamStateUpdated(StreamingService.STATE_STARTED, 188 mHandler.removeCallbacksAndMessages(null); 205 mHandler.post(() -> mStreamCallback.onError(errorCode, message)); 210 mHandler.post(() -> mAppCallback.onError(errorCode, message)); 215 mHandler.post(() -> mStreamCallback.onMediaDescriptionUpdated()); [all …]
|
D | CtsGroupCallService.java | 61 private Handler mHandler; field in CtsGroupCallService 82 mHandler.post(() -> { in initialize() 106 mHandler.post(() -> callback.onGroupCallStateChanged(GroupCall.STATE_STARTED, in startGroupCall() 137 mHandler.removeCallbacksAndMessages(null); 154 mHandler.post(() -> mGroupCallCallback.onError(errorCode, message)); 159 mHandler.post(() -> mAppCallback.onError(errorCode, message)); 164 mHandler.post(() -> mGroupCallCallback.onGroupCallStateChanged(state, reason)); 169 mHandler.post( 175 mHandler.post(() -> mAppCallback.onAvailableSaisUpdated(currentSais, availableSais)); 180 mHandler.post(() -> mAppCallback.onServiceInterfaceAvailable(interfaceName, index)); [all …]
|
/cts/apps/CtsVerifierUSBCompanion/src/com/android/cts/verifierusbcompanion/ |
D | TestCompanion.java | 32 private final @NonNull TestHandler mHandler; field in TestCompanion 43 mHandler = new TestHandler(observer); in TestCompanion() 69 mHandler.obtainMessage(TestHandler.SUCCESS).sendToTarget(); in success() 78 mHandler.obtainMessage(TestHandler.FAIL, error).sendToTarget(); in fail() 85 mHandler.obtainMessage(TestHandler.ABORT).sendToTarget(); in abort() 96 mHandler.obtainMessage(TestHandler.UPDATE_STATUS, status).sendToTarget(); in updateStatus()
|
/cts/tests/tests/voiceRecognition/src/android/voicerecognition/cts/ |
D | SpeechRecognitionActivity.java | 46 private Handler mHandler; field in SpeechRecognitionActivity 51 mHandler = new Handler(getMainLooper()); in onCreate() 72 mHandler.post(() -> mRecognizerInfos.get(index).mRecognizer.startListening(intent)); in startListening() 80 mHandler.post(mRecognizerInfos.get(index).mRecognizer::stopListening); in stopListening() 88 mHandler.post(mRecognizerInfos.get(index).mRecognizer::cancel); in cancel() 96 mHandler.post(mRecognizerInfos.get(index).mRecognizer::destroy); in destroyRecognizer() 103 mHandler.post(() -> { in destroyAllRecognizers() 120 mHandler.post(() -> mRecognizerInfos.get(index).mRecognizer.checkRecognitionSupport( in checkRecognitionSupport() 129 mHandler.post(() -> mRecognizerInfos.get(index).mRecognizer.triggerModelDownload(intent)); in triggerModelDownload() 139 mHandler.post(() -> mRecognizerInfos.get(index) in triggerModelDownloadWithListener() [all …]
|
/cts/tests/tests/voiceinteraction/src/android/voiceinteraction/cts/services/ |
D | CtsMainVoiceInteractionService.java | 41 private final Handler mHandler; field in CtsMainVoiceInteractionService 46 mHandler = Handler.createAsync(handlerThread.getLooper()); in CtsMainVoiceInteractionService() 58 mHandler.post(() -> runWithShellPermissionIdentity(() -> { in createAlwaysOnHotwordDetector() 70 mHandler.post(() -> runWithShellPermissionIdentity(() -> { in createVisualQueryDetector()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/vr/ |
D | MockVrActivity.java | 30 private Handler mHandler; field in MockVrActivity 43 mHandler = new Handler(); in onCreate() 53 mHandler.postDelayed(new Runnable() { in onResume() 61 mHandler.postDelayed(new Runnable() { in onResume()
|
D | MockVrActivity2.java | 27 private Handler mHandler; field in MockVrActivity2 38 mHandler = new Handler(); in onCreate() 46 mHandler.postDelayed(new Runnable() { in onResume()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/tunnelmode/ |
D | MediaCodecFlushActivity.java | 31 private Handler mHandler; field in MediaCodecFlushActivity 54 mHandler = new Handler(Looper.getMainLooper()); in onCreate() 72 mHandler.postDelayed(this::pauseStep, 5000); in playVideo() 81 mHandler.postDelayed(this::flushStep, 3000); in pauseStep() 90 mHandler.postDelayed(this::resumeStep, 3000); in flushStep() 99 mHandler.postDelayed(this::enablePassButton, 3000); in resumeStep()
|
/cts/tests/tests/appwidget/AppBal/src/android.appwidget.cts.appbal/ |
D | BalService.java | 27 Handler mHandler; field in BalService 40 mHandler = new Handler(); in onCreate() 41 mHandler.postDelayed(this::startBackgroundActivity, 1000 * 11); in onCreate()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/p2p/ |
D | ResponderTestActivity.java | 70 private Handler mHandler = new Handler(); field in ResponderTestActivity 111 mHandler.post(new Runnable() { in onStart() 141 mHandler.post(new Runnable() { in onReceive() 157 mHandler.post(new Runnable() { in onTestMsgReceived() 167 mHandler.post(new Runnable() { in onTestSuccess() 178 mHandler.post(new Runnable() { in onTestFailed()
|
/cts/tests/framework/base/windowmanager/backgroundactivity/common/src/android/server/wm/backgroundactivity/common/ |
D | EventReceiver.java | 36 private final Handler mHandler = new Handler(Looper.getMainLooper()); field in EventReceiver 47 return new ResultReceiver(mHandler) { in getNotifier() 62 if (Thread.currentThread() == mHandler.getLooper().getThread()) {
|
/cts/tests/camera/utils/src/android/hardware/camera2/cts/helpers/ |
D | Camera2Focuser.java | 51 private final Handler mHandler; field in Camera2Focuser 121 mHandler = handler; in Camera2Focuser() 219 mSession.setRepeatingRequest(mRepeatingBuilder.build(), listener, mHandler); in cancelAutoFocus() local 220 mSession.capture(requestBuilder.build(), listener, mHandler); in cancelAutoFocus() local 256 mSession.setRepeatingRequest(mRepeatingBuilder.build(), listener, mHandler); in startAutoFocusLocked() local 257 mSession.capture(requestBuilder.build(), listener, mHandler); in startAutoFocusLocked() local 280 mSession.setRepeatingRequest(mRepeatingBuilder.build(), listener, mHandler); in startAutoFocusFullActiveLocked() local 281 mSession.capture(requestBuilder.build(), listener, mHandler); in startAutoFocusFullActiveLocked() local 285 mHandler.post(new Runnable() { in dispatchAutoFocusStatusLocked()
|
/cts/hostsidetests/ui/appB/src/android/taskswitching/appb/ |
D | AppBActivity.java | 33 private Handler mHandler; field in AppBActivity 47 mHandler = new Handler(); in onCreate() 53 mHandler.post(() -> { in onResume()
|
/cts/hostsidetests/ui/appA/src/android/taskswitching/appa/ |
D | AppAActivity.java | 33 private Handler mHandler; field in AppAActivity 47 mHandler = new Handler(); in onCreate() 53 mHandler.post(() -> { in onResume()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/ |
D | TimerProgressBar.java | 53 mHandler = new Handler(context.getMainLooper()); in setHandler() 56 private Handler mHandler; field in TimerProgressBar 77 mHandler.postDelayed(this, mStepSize); 105 mHandler.post(mProgressCallback); in start()
|
/cts/tests/tests/telephony/current/src/android/telephony/cts/ |
D | PhoneStateListenerTest.java | 120 private Handler mHandler; field in PhoneStateListenerTest 160 mHandler = new Handler(mHandlerThread.getLooper()); in setUp() 190 mHandler.post(() -> { in testOnServiceStateChanged() 220 mHandler.post(() -> { in testOnUnRegisterFollowedByRegister() 273 mHandler.post(() -> { in testOnSignalStrengthChanged() 347 mHandler.post(() -> { in testOnSignalStrengthsChanged() 432 mHandler.post(() -> { in testOnMessageWaitingIndicatorChanged() 462 mHandler.post(() -> { in testOnPreciseCallStateChanged() 497 mHandler.post(() -> { in testOnCallDisconnectCauseChanged() 529 mHandler.post(() -> { in testOnImsCallDisconnectCauseChanged() [all …]
|
/cts/tests/tests/uirendering/src/android/uirendering/cts/testinfrastructure/ |
D | DrawActivity.kt | 63 private lateinit var mHandler: Handler in hashCode() variable in android.uirendering.cts.testinfrastructure.DrawActivity 89 mHandler = RenderSpecHandler() in hashCode() 111 (mHandler as RenderSpecHandler).setViewInitializer(viewInitializer) in hashCode() 115 mHandler.obtainMessage(CANVAS_MSG, if (usePicture) 1 else 0, in hashCode() 119 mHandler.obtainMessage(LAYOUT_MSG, layoutId, arg2) in hashCode() 135 mHandler.post { in hashCode() 161 mHandler.post { in hashCode()
|
/cts/tests/tests/uirendering27/src/android/uirendering/cts/testinfrastructure/ |
D | DrawActivity.kt | 62 private lateinit var mHandler: Handler in hashCode() variable in android.uirendering.cts.testinfrastructure.DrawActivity 85 mHandler = RenderSpecHandler() in hashCode() 107 (mHandler as RenderSpecHandler).setViewInitializer(viewInitializer) in hashCode() 111 mHandler.obtainMessage(CANVAS_MSG, if (usePicture) 1 else 0, in hashCode() 115 mHandler.obtainMessage(LAYOUT_MSG, layoutId, arg2) in hashCode() 131 mHandler.post { in hashCode() 161 mHandler.post { in hashCode()
|
/cts/tests/tests/rscpp/librscpptest/ |
D | rs_jni_script.cpp | 54 MessageHandlerFunc_t mHandler = rsMsgHandler; in Java_android_cts_rscpp_RSScriptTest_testSet() local 55 mRS->setMessageHandler(mHandler); in Java_android_cts_rscpp_RSScriptTest_testSet() 94 MessageHandlerFunc_t mHandler = rsMsgHandler; in Java_android_cts_rscpp_RSScriptTest_testInstance() local 95 mRS->setMessageHandler(mHandler); in Java_android_cts_rscpp_RSScriptTest_testInstance() 166 MessageHandlerFunc_t mHandler = rsMsgHandler; in Java_android_cts_rscpp_RSScriptTest_testVector() local 167 mRS->setMessageHandler(mHandler); in Java_android_cts_rscpp_RSScriptTest_testVector()
|