Home
last modified time | relevance | path

Searched refs:mHandler (Results 1 – 25 of 151) sorted by relevance

1234567

/cts/tests/tests/os/src/android/os/cts/
DHandlerTest.java42 private final Handler mHandler = new Handler(Looper.getMainLooper()); field in HandlerTest
74 assertTrue(mHandler.postAtTime(r, SystemClock.uptimeMillis() + RUNTIME)); in testPostAtTime1()
78 mHandler.removeCallbacks(r); in testPostAtTime1()
84 assertTrue(mHandler.postAtTime(r, token, SystemClock.uptimeMillis() + RUNTIME)); in testPostAtTime2()
88 mHandler.removeCallbacks(r); in testPostAtTime2()
103 mHandler.dump(pw, prefix); in testDump()
107 Message msg = mHandler.obtainMessage(); in testHasMessagesWithInt()
108 assertFalse(mHandler.hasMessages(msg.what)); in testHasMessagesWithInt()
109 mHandler.sendMessageAtTime(msg, SystemClock.uptimeMillis() + RUNTIME); in testHasMessagesWithInt()
110 assertTrue(mHandler.hasMessages(msg.what)); in testHasMessagesWithInt()
[all …]
DMessageTest.java37 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 …]
DMessageQueueTest.java180 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 …]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/bluetooth/
DTestTaskQueue.java32 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()
DBluetoothChatService.java69 private final Handler mHandler; field in BluetoothChatService
94 mHandler = handler; in BluetoothChatService()
108 mHandler = handler; in BluetoothChatService()
123 mHandler.obtainMessage(MESSAGE_STATE_CHANGE, state, -1).sendToTarget(); in setState()
244 Message msg = mHandler.obtainMessage(MESSAGE_DEVICE_NAME); in connected()
248 mHandler.sendMessage(msg); in connected()
303 Message msg = mHandler.obtainMessage(MESSAGE_TOAST); in connectionFailed()
307 mHandler.sendMessage(msg); in connectionFailed()
315 Message msg = mHandler.obtainMessage(MESSAGE_TOAST); in connectionLost()
319 mHandler.sendMessage(msg); in connectionLost()
[all …]
/cts/hostsidetests/theme/app/src/android/theme/app/
DConditionCheck.java35 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/telephony/current/EmbmsMiddlewareTestApp/src/android/telephony/cts/embmstestapp/
DCtsStreamingService.java91 private Handler mHandler; field in CtsStreamingService
125 mHandler.post(() -> {
149 mHandler.removeMessages(SEND_STREAMING_SERVICES_LIST);
150 mHandler.sendMessage(
151 mHandler.obtainMessage(SEND_STREAMING_SERVICES_LIST, serviceInfos));
164 mHandler.post(() -> callback.onStreamStateUpdated(StreamingService.STATE_STARTED,
196 mHandler.removeCallbacksAndMessages(null);
213 mHandler.post(() -> mStreamCallback.onError(errorCode, message));
218 mHandler.post(() -> mAppCallback.onError(errorCode, message));
223 mHandler.post(() -> mStreamCallback.onMediaDescriptionUpdated());
[all …]
DCtsGroupCallService.java64 private Handler mHandler; field in CtsGroupCallService
85 mHandler.post(() -> { in initialize()
109 mHandler.post(() -> callback.onGroupCallStateChanged(GroupCall.STATE_STARTED, in startGroupCall()
140 mHandler.removeCallbacksAndMessages(null);
157 mHandler.post(() -> mGroupCallCallback.onError(errorCode, message));
162 mHandler.post(() -> mAppCallback.onError(errorCode, message));
167 mHandler.post(() -> mGroupCallCallback.onGroupCallStateChanged(state, reason));
172 mHandler.post(
178 mHandler.post(() -> mAppCallback.onAvailableSaisUpdated(currentSais, availableSais));
183 mHandler.post(() -> mAppCallback.onServiceInterfaceAvailable(interfaceName, index));
[all …]
/cts/tests/tests/content/src/android/content/cts/
DMockContextService.java39 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/src/android/telephony/cts/
DPhoneStateListenerTest.java106 private Handler mHandler; field in PhoneStateListenerTest
141 mHandler = new Handler(mHandlerThread.getLooper()); in setUp()
175 mHandler.post(() -> { in testOnServiceStateChanged()
205 mHandler.post(() -> { in testOnUnRegisterFollowedByRegister()
258 mHandler.post(() -> { in testOnSignalStrengthChanged()
382 mHandler.post(() -> { in testOnSignalStrengthsChanged()
421 mHandler.post(() -> { in testOnMessageWaitingIndicatorChanged()
451 mHandler.post(() -> { in testOnPreciseCallStateChanged()
486 mHandler.post(() -> { in testOnCallDisconnectCauseChanged()
518 mHandler.post(() -> { in testOnImsCallDisconnectCauseChanged()
[all …]
/cts/apps/CtsVerifierUSBCompanion/src/com/android/cts/verifierusbcompanion/
DTestCompanion.java32 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/permission/src/android/permission/cts/
DCamera2PermissionTest.java50 protected Handler mHandler; field in Camera2PermissionTest
71 mHandler = new Handler(mHandlerThread.getLooper()); in setUp()
78 mHandler = null; in tearDown()
132 mCameraManager.registerAvailabilityCallback(availabilityListener, mHandler); in testAvailabilityCallback()
134 mCameraManager.registerAvailabilityCallback(availabilityListener, mHandler); in testAvailabilityCallback()
135 mCameraManager.registerAvailabilityCallback(availabilityListener, mHandler); in testAvailabilityCallback()
153 cameraId, mCameraListener, mHandler); in openCamera()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/location/
DLocationListenerActivity.java45 private Handler mHandler; field in LocationListenerActivity
52 mHandler = new Handler(this); in onCreate()
71 mHandler.removeMessages(MSG_TIMEOUT_ID); in onActivityResult()
119 mHandler.removeMessages(MSG_TIMEOUT_ID); in scheduleTimeout()
120 mHandler.sendMessageDelayed(mHandler.obtainMessage(MSG_TIMEOUT_ID), MSG_TIMEOUT_MILLISEC); in scheduleTimeout()
/cts/tests/camera/src/android/hardware/camera2/cts/
DLogicalCameraDeviceTest.java151 sessionListener, mHandler); in testInvalidPhysicalCameraIdInOutputConfiguration()
249 readerListenerPhysical, mHandler); in testBasicLogicalPhysicalStreamCombination()
257 readerListenerLogical, mHandler); in testBasicLogicalPhysicalStreamCombination()
262 mCamera, mHandler, outputConfigs, /*inputConfig*/ null, in testBasicLogicalPhysicalStreamCombination()
272 mSessionListener, mHandler); in testBasicLogicalPhysicalStreamCombination()
280 mSession.capture(requestBuilder.build(), new SimpleCaptureCallback(), mHandler); in testBasicLogicalPhysicalStreamCombination() local
295 mSession.capture(requestBuilder.build(), new SimpleCaptureCallback(), mHandler); in testBasicLogicalPhysicalStreamCombination() local
311 mSession.capture(requestBuilder.build(), new SimpleCaptureCallback(), mHandler); in testBasicLogicalPhysicalStreamCombination() local
381 readerListener, mHandler); in testBasicPhysicalRequests()
390 mCamera, mHandler, outputConfigs, /*inputConfig*/ null, in testBasicPhysicalRequests()
[all …]
DCameraManagerTest.java73 private Handler mHandler; field in CameraManagerTest
103 mHandler = new Handler(mHandlerThread.getLooper()); in setUp()
110 mHandler = null; in tearDown()
235 final Executor executor = useExecutor ? new HandlerExecutor(mHandler) : null; in testCameraManagerOpenCamerasSerially()
247 mCameraManager.openCamera(ids[i], mCameraListener, mHandler); in testCameraManagerOpenCamerasSerially()
285 final Executor executor = useExecutor ? new HandlerExecutor(mHandler) : null; in testCameraManagerOpenAllCameras()
308 mCameraManager.openCamera(cameraId, mCameraListener, mHandler); in testCameraManagerOpenAllCameras()
461 final Executor executor = useExecutor ? new HandlerExecutor(mHandler) : null; in testCameraManagerOpenCameraTwice()
481 mCameraManager.openCamera(ids[i], successListener, mHandler); in testCameraManagerOpenCameraTwice()
482 mCameraManager.openCamera(ids[i], failListener, mHandler); in testCameraManagerOpenCameraTwice()
[all …]
DRobustnessTest.java111 imageReader.setOnImageAvailableListener(imageListener, mHandler); in testBadSurfaceDimensions()
126 surfaces, sessionListener, mHandler); in testBadSurfaceDimensions()
138 session.capture(request.build(), captureListener, mHandler); in testBadSurfaceDimensions() local
259 target.setOnImageAvailableListener(imageDropperListener, mHandler); in setupConfigurationTargets()
271 target.setOnImageAvailableListener(imageDropperListener, mHandler); in setupConfigurationTargets()
283 target.setOnImageAvailableListener(imageDropperListener, mHandler); in setupConfigurationTargets()
298 target.setOnImageAvailableListener(imageDropperListener, mHandler); in setupConfigurationTargets()
312 target.setOnImageAvailableListener(imageDropperListener, mHandler); in setupConfigurationTargets()
411 checkSessionConfigurationSupported(mCamera, mHandler, outputConfigs, in testMandatoryStreamCombination()
418 mCamera, mHandler, outputConfigs, /*inputConfig*/ null, in testMandatoryStreamCombination()
[all …]
DSurfaceViewPreviewTest.java239 mSession = configureCameraSession(mCamera, outputSurfaces, mockSessionListener, mHandler); in preparePerformanceTestByCamera()
245 mSession.setRepeatingRequest(previewRequest.build(), resultListener, mHandler); in preparePerformanceTestByCamera() local
253 mSession.setRepeatingRequest(previewRequest.build(), resultListener, mHandler); in preparePerformanceTestByCamera() local
318 mSession.setRepeatingRequest(previewRequest.build(), resultListener, mHandler); in preparePerformanceTestByCamera() local
391 mSession = configureCameraSession(mCamera, outputSurfaces, sessionListener, mHandler); in surfaceEqualityTestByCamera()
400 mSession.setRepeatingRequest(previewRequest.build(), resultListener, mHandler); in surfaceEqualityTestByCamera() local
426 mSession = configureCameraSession(mCamera, outputSurfaces, sessionListener, mHandler); in surfaceEqualityTestByCamera()
433 mSession.setRepeatingRequest(previewRequest.build(), resultListener, mHandler); in surfaceEqualityTestByCamera() local
488 sharedOutputTexture.setOnFrameAvailableListener(textureAvailableListener, mHandler); in testDeferredSurfacesByCamera()
536 CameraTestUtils.checkSessionConfigurationSupported(mCamera, mHandler, outputSurfaces, in testDeferredSurfacesByCamera()
[all …]
/cts/tests/camera/utils/src/android/hardware/camera2/cts/helpers/
DCamera2Focuser.java51 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/apps/CtsVerifier/src/com/android/cts/verifier/p2p/
DResponderTestActivity.java70 private Handler mHandler = new Handler(); field in ResponderTestActivity
111 mHandler.post(new Runnable() { in onResume()
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/tests/uirendering/src/android/uirendering/cts/testinfrastructure/
DDrawActivity.kt62 private lateinit var mHandler: Handler in hashCode() variable in android.uirendering.cts.testinfrastructure.DrawActivity
85 mHandler = RenderSpecHandler() in hashCode()
105 (mHandler as RenderSpecHandler).setViewInitializer(viewInitializer) in hashCode()
109 mHandler.obtainMessage(CANVAS_MSG, if (usePicture) 1 else 0, in hashCode()
113 mHandler.obtainMessage(LAYOUT_MSG, layoutId, arg2) in hashCode()
130 mHandler.post { in hashCode()
160 mHandler.post { in hashCode()
/cts/tests/tests/uirendering27/src/android/uirendering/cts/testinfrastructure/
DDrawActivity.kt62 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/apps/CtsVerifier/src/com/android/cts/verifier/vr/
DMockVrActivity.java30 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()
/cts/tests/tests/rscpp/librscpptest/
Drs_jni_script.cpp54 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/
DTimerProgressBar.java53 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/hostsidetests/telephony/devicetest/src/android/telephony/device/cts/
DTelephonyTest.java50 private Handler mHandler; field in TelephonyTest
58 mHandler = new Handler(mHandlerThread.getLooper()); in setUp()
80 PhoneStateListener testListener = new PhoneStateListener(new HandlerExecutor(mHandler)) { in testListenerRegistrationWithChangeEnabled()
116 PhoneStateListener testListener = new PhoneStateListener(new HandlerExecutor(mHandler)) { in testListenerRegistrationWithChangeDisabled()
142 () -> new PhoneStateListener(new HandlerExecutor(mHandler))) in registerFillerListeners()

1234567