/cts/tests/tests/os/src/android/os/cts/ |
D | MessageTest.java | 37 private Handler mHandler = new Handler(Looper.getMainLooper()) { field in MessageTest 62 mMessage.setTarget(mHandler); in testAccessMessageProperties() 63 assertEquals(mHandler, mMessage.getTarget()); in testAccessMessageProperties() 66 Message expected = Message.obtain(mHandler, mRunnable); in testAccessMessageProperties() 94 Message message = Message.obtain(mHandler, WHAT, ARG1, ARG2, OBJ); in testObtain2() 105 Message expected = Message.obtain(mHandler); in testObtain3() 106 assertEquals(mHandler, expected.getTarget()); in testObtain3() 110 Message expected = Message.obtain(mHandler, mRunnable); in testObtain4() 111 assertEquals(mHandler, expected.getTarget()); in testObtain4() 116 Message expected = Message.obtain(mHandler, WHAT); in testObtain5() [all …]
|
D | HandlerTest.java | 40 private final Handler mHandler = new Handler(Looper.getMainLooper()); field in HandlerTest 72 assertTrue(mHandler.postAtTime(r, SystemClock.uptimeMillis() + RUNTIME)); in testPostAtTime1() 76 mHandler.removeCallbacks(r); in testPostAtTime1() 82 assertTrue(mHandler.postAtTime(r, token, SystemClock.uptimeMillis() + RUNTIME)); in testPostAtTime2() 86 mHandler.removeCallbacks(r); in testPostAtTime2() 101 mHandler.dump(pw, prefix); in testDump() 105 Message msg = mHandler.obtainMessage(); in testHasMessagesWithInt() 106 assertFalse(mHandler.hasMessages(msg.what)); in testHasMessagesWithInt() 107 mHandler.sendMessageAtTime(msg, SystemClock.uptimeMillis() + RUNTIME); in testHasMessagesWithInt() 108 assertTrue(mHandler.hasMessages(msg.what)); in testHasMessagesWithInt() [all …]
|
D | MessageQueueTest.java | 180 mHandler.sendMessageAtTime(mHandler.obtainMessage(2), now + 1); in testMessageOrder() 181 mHandler.sendMessageAtTime(mHandler.obtainMessage(3), now + 2); in testMessageOrder() 182 mHandler.sendMessageAtTime(mHandler.obtainMessage(4), now + 2); in testMessageOrder() 183 mHandler.sendMessageAtTime(mHandler.obtainMessage(0), now + 0); in testMessageOrder() 184 mHandler.sendMessageAtTime(mHandler.obtainMessage(1), now + 0); in testMessageOrder() 203 mHandler.sendMessageAtTime(mHandler.obtainMessage(3), now); in testAtFrontOfQueue() 204 mHandler.sendMessageAtFrontOfQueue(mHandler.obtainMessage(2)); in testAtFrontOfQueue() 205 mHandler.sendMessageAtFrontOfQueue(mHandler.obtainMessage(0)); in testAtFrontOfQueue() 212 mHandler.sendMessageAtFrontOfQueue(mHandler.obtainMessage(1)); in testAtFrontOfQueue() 727 mHandler.sendEmptyMessage(0); in testSyncBarriers() [all …]
|
D | ResultReceiverTest.java | 27 private Handler mHandler = new Handler(Looper.getMainLooper()); field in ResultReceiverTest 31 MockResultReceiver sender = new MockResultReceiver(mHandler); in testResultReceiver() 39 ResultReceiver receiver = new ResultReceiver(mHandler); in testResultReceiver()
|
D | MessengerService.java | 29 private final Handler mHandler = new Handler() { field in MessengerService 41 private final Messenger mMessenger = new Messenger(mHandler);
|
D | TestedScreen.java | 91 private final Handler mHandler = new Handler() { field in TestedScreen 108 mHandler.sendMessageAtTime(m, SystemClock.uptimeMillis() + 1000); in queueIdle() 111 mHandler.sendMessageAtTime(m, SystemClock.uptimeMillis() + 1000); in queueIdle()
|
D | TokenWatcherTest.java | 38 private Handler mHandler; field in TokenWatcherTest 64 mHandler = new Handler(mLooper); in setUp() 115 mMockTokenWatcher = new MockTokenWatcher(mHandler, TAG); in testTokenWatcher() 145 mMockTokenWatcher = new MockTokenWatcher(mHandler, TAG); in testCleanUp()
|
/cts/tests/tests/content/src/android/content/cts/ |
D | MockContextWrapperService.java | 41 private Handler mHandler = new Handler() { field in MockContextWrapperService 43 mHandler.sendMessageDelayed(mHandler.obtainMessage(TEST_MESSAGE_WHAT), 1000); 49 mHandler.sendMessageDelayed(mHandler.obtainMessage(TEST_MESSAGE_WHAT), 1000); in onCreate() 55 mHandler.removeMessages(1); in onDestroy()
|
/cts/tests/tests/permission/src/android/permission/cts/ |
D | Camera2PermissionTest.java | 45 protected Handler mHandler; field in Camera2PermissionTest 66 mHandler = new Handler(mHandlerThread.getLooper()); in setUp() 73 mHandler = null; in tearDown() 103 mCameraManager.registerAvailabilityCallback(availabilityListener, mHandler); in testAvailabilityCallback() 105 mCameraManager.registerAvailabilityCallback(availabilityListener, mHandler); in testAvailabilityCallback() 106 mCameraManager.registerAvailabilityCallback(availabilityListener, mHandler); in testAvailabilityCallback() 124 cameraId, mCameraListener, mHandler); in openCamera()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/usb/ |
D | UsbAccessoryTestActivity.java | 66 private MessageHandler mHandler; field in UsbAccessoryTestActivity 91 mHandler = new MessageHandler(); in onCreate() 159 new MessageThread(inputStream, outputStream, mHandler).start(); in openAccessory() 171 private final MessageHandler mHandler; field in UsbAccessoryTestActivity.MessageThread 178 this.mHandler = handler; in MessageThread() 183 mHandler.sendEmptyMessage(MessageHandler.MESSAGE_THREAD_STARTING); in run() 201 mHandler.sendEmptyMessage(MessageHandler.MESSAGE_THREAD_EXCEPTION); in run() 204 mHandler.sendEmptyMessage(MessageHandler.MESSAGE_THREAD_EXCEPTION); in run() 206 mHandler.sendEmptyMessage(MessageHandler.MESSAGE_THREAD_ENDING); in run() 212 mHandler.sendReceivedMessage(text); in handleReceivedMessage() [all …]
|
/cts/hostsidetests/theme/app/src/android/theme/app/ |
D | GenerateImagesActivity.java | 109 private final Handler mHandler; field in GenerateImagesActivity.KeyguardCheck 115 mHandler = new Handler(context.getMainLooper()); in KeyguardCheck() 122 mHandler.removeCallbacks(this); in start() 123 mHandler.post(this); in start() 127 mHandler.removeCallbacks(this); in cancel() 136 mHandler.postDelayed(this, RETRY_DELAY); in run()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/p2p/ |
D | ResponderTestActivity.java | 66 private Handler mHandler = new Handler(); field in ResponderTestActivity 124 mHandler.post(new Runnable() { in onReceive() 140 mHandler.post(new Runnable() { in onTestMsgReceived() 150 mHandler.post(new Runnable() { in onTestSuccess() 161 mHandler.post(new Runnable() { in onTestFailed()
|
D | RequesterTestActivity.java | 82 private Handler mHandler = new Handler(); field in RequesterTestActivity 162 mHandler.post(new Runnable() { in onTestStarted() 171 mHandler.post(new Runnable() { in onTestMsgReceived() 184 mHandler.post(new Runnable() { in onTestFailed() 195 mHandler.post(new Runnable() { in onTestSuccess() 231 mHandler.post(new Runnable() { in searchTarget()
|
/cts/tests/tests/hardware/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/suite/cts/hostTests/uihost/appB/src/com/android/cts/taskswitching/appb/ |
D | AppBActivity.java | 35 private Handler mHandler; field in AppBActivity 49 mHandler = new Handler(); in onCreate() 55 mHandler.post(new Runnable() { in onResume()
|
/cts/suite/cts/hostTests/uihost/appA/src/com/android/cts/taskswitching/appa/ |
D | AppAActivity.java | 37 private Handler mHandler; field in AppAActivity 50 mHandler = new Handler(); in onCreate() 55 mHandler.post(new Runnable() { in onResume()
|
/cts/tests/tests/uirendering/src/android/uirendering/cts/testinfrastructure/ |
D | DrawActivity.java | 40 private Handler mHandler; field in DrawActivity 49 mHandler = new RenderSpecHandler(); in onCreate() 60 ((RenderSpecHandler) mHandler).setViewInitializer(viewInitializer); in enqueueRenderSpecAndWait() 63 … mHandler.obtainMessage(RenderSpecHandler.CANVAS_MSG, 0, arg2, canvasClient).sendToTarget(); in enqueueRenderSpecAndWait() 65 … mHandler.obtainMessage(RenderSpecHandler.WEB_VIEW_MSG, 0, arg2, webViewUrl).sendToTarget(); in enqueueRenderSpecAndWait() 67 mHandler.obtainMessage(RenderSpecHandler.LAYOUT_MSG, layoutId, arg2).sendToTarget(); in enqueueRenderSpecAndWait()
|
/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()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/bluetooth/ |
D | BluetoothChatService.java | 69 private final Handler mHandler; field in BluetoothChatService 91 mHandler = handler; in BluetoothChatService() 104 mHandler.obtainMessage(MESSAGE_STATE_CHANGE, state, -1).sendToTarget(); in setState() 190 Message msg = mHandler.obtainMessage(MESSAGE_DEVICE_NAME); in connected() 194 mHandler.sendMessage(msg); in connected() 249 Message msg = mHandler.obtainMessage(MESSAGE_TOAST); in connectionFailed() 253 mHandler.sendMessage(msg); in connectionFailed() 261 Message msg = mHandler.obtainMessage(MESSAGE_TOAST); in connectionLost() 265 mHandler.sendMessage(msg); in connectionLost() 464 mHandler.obtainMessage(MESSAGE_READ, bytes, -1, buffer) in run() [all …]
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/location/ |
D | LocationVerifier.java | 59 private final Handler mHandler; field in LocationVerifier 207 mHandler = new Handler(this); in LocationVerifier() 232 mHandler.removeMessages(MSG_TIMEOUT); in stop() 252 mHandler.removeMessages(MSG_TIMEOUT); in scheduleTimeout() 253 mHandler.sendMessageDelayed(mHandler.obtainMessage(MSG_TIMEOUT), mTimeout); in scheduleTimeout()
|
/cts/suite/cts/deviceTests/opengl/src/com/android/cts/opengl/reference/ |
D | GLGameActivity.java | 103 private Handler mHandler; field in GLGameActivity.Worker 106 mHandler = handler; in Worker() 114 mHandler.sendEmptyMessage(0); in run() 135 mHandler.sendEmptyMessage((success) ? 1 : 0); in run() 139 mHandler.sendEmptyMessage(0); in onTimeout()
|
/cts/tests/tests/hardware/src/android/hardware/camera2/cts/ |
D | CameraManagerTest.java | 60 private Handler mHandler; field in CameraManagerTest 90 mHandler = new Handler(mHandlerThread.getLooper()); in setUp() 97 mHandler = null; in tearDown() 213 mCameraManager.openCamera(ids[i], mCameraListener, mHandler); in testCameraManagerOpenCamerasSerially() 265 mHandler); in testCameraManagerOpenAllCameras() 424 mCameraManager.openCamera(ids[i], successListener, mHandler); in testCameraManagerOpenCameraTwice() 426 mHandler); in testCameraManagerOpenCameraTwice() 471 mCameraManager.registerAvailabilityCallback(mListener, mHandler); in testCameraManagerListener() 472 mCameraManager.registerAvailabilityCallback(mListener, mHandler); in testCameraManagerListener() 498 mCameraManager.registerAvailabilityCallback(ac, mHandler); in testCameraManagerListenerCallbacks() [all …]
|
/cts/tests/app/src/android/app/cts/ |
D | TestedScreen.java | 91 private final Handler mHandler = new Handler() { field in TestedScreen 108 mHandler.sendMessageAtTime(m, SystemClock.uptimeMillis() + 1000); in queueIdle() 111 mHandler.sendMessageAtTime(m, SystemClock.uptimeMillis() + 1000); in queueIdle()
|
/cts/tests/tests/widget/src/android/widget/cts/ |
D | ViewGroupCtsActivity.java | 29 private final Handler mHandler = new Handler(); field in ViewGroupCtsActivity 49 mHandler.postDelayed(new Runnable() { in onResume()
|
/cts/tests/tests/view/src/android/view/cts/ |
D | ViewGroupCtsActivity.java | 29 private final Handler mHandler = new Handler(); field in ViewGroupCtsActivity 49 mHandler.postDelayed(new Runnable() { in onResume()
|