Home
last modified time | relevance | path

Searched refs:handler (Results 1 – 25 of 48) sorted by relevance

12

/cts/suite/audio_quality/lib/src/audio/
DRemoteAudio.cpp110 CommandHandler* handler = NULL; in handlePacket() local
112 handler = reinterpret_cast<CommandHandler*>(mDownloadHandler.get()); in handlePacket()
114 handler = reinterpret_cast<CommandHandler*>(mPlaybackHandler.get()); in handlePacket()
116 handler = reinterpret_cast<CommandHandler*>(mRecordingHandler.get()); in handlePacket()
118 handler = reinterpret_cast<CommandHandler*>(mDeviceInfoHandler.get()); in handlePacket()
121 if (handler != NULL) { in handlePacket()
122 param = &(handler->getParam()); in handlePacket()
125 if (handler != NULL) { in handlePacket()
127 android::Mutex::Autolock lock(handler->mStateLock); in handlePacket()
128 if (handler->mNotifyOnReply) { in handlePacket()
[all …]
/cts/tests/tests/hardware/src/android/hardware/camera2/cts/helpers/
DCameraSessionUtils.java76 Handler handler) in getConfiguredSession() argument
78 device.createCaptureSession(outputs, this, handler); in getConfiguredSession()
117 CameraCaptureSession session, CaptureRequest request, Handler handler) in getCapturedResult() argument
119 session.capture(request, this, handler); in getCapturedResult()
175 Handler handler) in configureAndVerifySession() argument
179 checkNotNull(handler); in configureAndVerifySession()
183 CameraCaptureSession session = listener.getConfiguredSession(device, outputs, handler); in configureAndVerifySession()
213 CameraCaptureSession session, CaptureRequest request, Handler handler) in captureAndVerifyResult() argument
218 checkNotNull(handler); in captureAndVerifyResult()
221 handler); in captureAndVerifyResult()
DCamera2Focuser.java94 AutoFocusListener listener, CameraCharacteristics staticInfo, Handler handler) in Camera2Focuser() argument
105 if (handler == null) { in Camera2Focuser()
121 mHandler = handler; in Camera2Focuser()
/cts/tests/tests/database/src/android/database/cts/
DContentObserverTest.java51 Handler handler = new Handler(looper); in testContentObserver() local
54 contentObserver = new MyContentObserver(handler); in testContentObserver()
95 Handler handler = new Handler(looper); in testContentObserverWithUri() local
98 contentObserver = new MyContentObserverWithUri(handler); in testContentObserverWithUri()
127 public MyContentObserver(Handler handler) { in MyContentObserver() argument
128 super(handler); in MyContentObserver()
171 public MyContentObserverWithUri(Handler handler) { in MyContentObserverWithUri() argument
172 super(handler); in MyContentObserverWithUri()
/cts/tests/tests/telecom/src/android/telecom/cts/
DRemoteConnectionTest.java167 Handler handler = setupRemoteConnectionCallbacksTest(); in testRemoteConnectionCallbacks_StateChange() local
180 mRemoteConnectionObject.registerCallback(callback, handler); in testRemoteConnectionCallbacks_StateChange()
193 Handler handler = setupRemoteConnectionCallbacksTest(); in testRemoteConnectionCallbacks_RingbackRequest() local
206 mRemoteConnectionObject.registerCallback(callback, handler); in testRemoteConnectionCallbacks_RingbackRequest()
219 Handler handler = setupRemoteConnectionCallbacksTest(); in testRemoteConnectionCallbacks_ConnectionCapabilities() local
234 mRemoteConnectionObject.registerCallback(callback, handler); in testRemoteConnectionCallbacks_ConnectionCapabilities()
249 Handler handler = setupRemoteConnectionCallbacksTest(); in testRemoteConnectionCallbacks_PostDialWait() local
263 mRemoteConnectionObject.registerCallback(callback, handler); in testRemoteConnectionCallbacks_PostDialWait()
277 Handler handler = setupRemoteConnectionCallbacksTest(); in testRemoteConnectionCallbacks_PostDialChar() local
290 mRemoteConnectionObject.registerCallback(callback, handler); in testRemoteConnectionCallbacks_PostDialChar()
[all …]
DRemoteConferenceTest.java206 Handler handler = setupRemoteConferenceCallbacksTest(); in testRemoteConferenceCallbacks_StateChange() local
219 mRemoteConferenceObject.registerCallback(callback, handler); in testRemoteConferenceCallbacks_StateChange()
232 Handler handler = setupRemoteConferenceCallbacksTest(); in testRemoteConferenceCallbacks_Disconnect() local
246 mRemoteConferenceObject.registerCallback(callback, handler); in testRemoteConferenceCallbacks_Disconnect()
259 Handler handler = setupRemoteConferenceCallbacksTest(); in testRemoteConferenceCallbacks_ConnectionAdd() local
273 mRemoteConferenceObject.registerCallback(callback, handler); in testRemoteConferenceCallbacks_ConnectionAdd()
290 Handler handler = setupRemoteConferenceCallbacksTest(); in testRemoteConferenceCallbacks_ConnectionRemove() local
304 mRemoteConferenceObject.registerCallback(callback, handler); in testRemoteConferenceCallbacks_ConnectionRemove()
322 Handler handler = setupRemoteConferenceCallbacksTest(); in testRemoteConferenceCallbacks_ConnectionCapabilities() local
337 mRemoteConferenceObject.registerCallback(callback, handler); in testRemoteConferenceCallbacks_ConnectionCapabilities()
[all …]
/cts/tests/tests/os/src/android/os/cts/
DHandlerTest.java175 Handler handler = new Handler(looper); in testGetLooper() local
176 assertSame(looper, handler.getLooper()); in testGetLooper()
292 Handler handler = new Handler(Looper.getMainLooper()); in testObtainMessageWithInt() local
293 Message msg = handler.obtainMessage(); in testObtainMessageWithInt()
303 Handler handler = new Handler(Looper.getMainLooper()); in testObtainMessageWithIntObject() local
304 Message msg = handler.obtainMessage(); in testObtainMessageWithIntObject()
316 Handler handler = new Handler(Looper.getMainLooper()); in testObtainMessageWithMutiInt() local
317 Message msg = handler.obtainMessage(); in testObtainMessageWithMutiInt()
331 Handler handler = new Handler(Looper.getMainLooper()); in testObtainMessageWithMutiIntObject() local
332 Message msg = handler.obtainMessage(); in testObtainMessageWithMutiIntObject()
[all …]
DLooperTest.java57 Handler handler = new Handler(); in testLoop()
58 Message msg = Message.obtain(handler, run); in testLoop()
59 handler.sendMessageAtTime(msg, 0); in testLoop()
199 Handler handler = new Handler(); in testSetMessageLogging()
200 Message msg = Message.obtain(handler, run); in testSetMessageLogging()
201 handler.sendMessageAtTime(msg, 0); in testSetMessageLogging()
DMessageQueueTest.java136 Handler handler = new Handler(thread.getLooper()); in testIsIdle() local
137 handler.post(new Runnable() { in testIsIdle()
146 handler.post(new Runnable() { in testIsIdle()
407 final Handler handler = new Handler(thread.getLooper()); in testPathologicalFileDescriptorReuseCallbacks1() local
434 syncWait(handler); in testPathologicalFileDescriptorReuseCallbacks1()
461 syncWait(handler); in testPathologicalFileDescriptorReuseCallbacks1()
486 final Handler handler = new Handler(thread.getLooper()); in testPathologicalFileDescriptorReuseCallbacks2() local
516 syncWait(handler); in testPathologicalFileDescriptorReuseCallbacks2()
543 syncWait(handler); in testPathologicalFileDescriptorReuseCallbacks2()
575 final Handler handler = new Handler(thread.getLooper()); in testPathologicalFileDescriptorReuseCallbacks3() local
[all …]
DResultReceiverTest.java54 public MockResultReceiver(Handler handler) { in MockResultReceiver() argument
55 super(handler); in MockResultReceiver()
DParcelFileDescriptorTest.java279 final Handler handler = new Handler(Looper.getMainLooper()); in testFileNormal() local
282 File.createTempFile("pfd", "bbq"), ParcelFileDescriptor.MODE_READ_WRITE, handler, in testFileNormal()
293 final Handler handler = new Handler(Looper.getMainLooper()); in testFileError() local
296 File.createTempFile("pfd", "bbq"), ParcelFileDescriptor.MODE_READ_WRITE, handler, in testFileError()
307 final Handler handler = new Handler(Looper.getMainLooper()); in testFileDetach() local
310 File.createTempFile("pfd", "bbq"), ParcelFileDescriptor.MODE_READ_WRITE, handler, in testFileDetach()
DMessageTest.java261 Handler handler = new Handler(mHandler.getLooper()) { in testRecycleThrowsIfMessageIsBeingDelivered() local
271 handler.sendEmptyMessage(WHAT); in testRecycleThrowsIfMessageIsBeingDelivered()
281 Handler handler = new Handler(mHandler.getLooper()) { in testSendMessageThrowsIfMessageIsBeingDelivered() local
291 handler.sendEmptyMessage(WHAT); in testSendMessageThrowsIfMessageIsBeingDelivered()
/cts/tests/tests/webkit/src/android/webkit/cts/
DHttpAuthHandlerTest.java83 HttpAuthHandler handler, String host, String realm) { in onReceivedHttpAuthRequest() argument
85 handler.cancel(); in onReceivedHttpAuthRequest()
90 this.useHttpAuthUsernamePassword = handler.useHttpAuthUsernamePassword(); in onReceivedHttpAuthRequest()
92 handler.proceed(mUser, mPassword); in onReceivedHttpAuthRequest()
105 HttpAuthHandler handler, String host, String realm) { in onReceivedHttpAuthRequest() argument
107 handler.cancel(); in onReceivedHttpAuthRequest()
DWebViewSslTest.java495 public void onReceivedSslError(WebView view, SslErrorHandler handler, SslError error) { in testInsecureSiteClearsCertificate() argument
496 handler.proceed(); in testInsecureSiteClearsCertificate()
526 public void onReceivedSslError(WebView view, SslErrorHandler handler, SslError error) { in testSecureSiteSetsCertificate() argument
527 handler.proceed(); in testSecureSiteSetsCertificate()
590 public void onReceivedSslError(WebView view, SslErrorHandler handler, SslError error) { in testOnReceivedSslError() argument
593 handler.proceed(); in testOnReceivedSslError()
623 public void onReceivedSslError(WebView view, SslErrorHandler handler, SslError error) { in testOnReceivedSslErrorProceed() argument
624 handler.proceed(); in testOnReceivedSslErrorProceed()
644 public void onReceivedSslError(WebView view, SslErrorHandler handler, SslError error) { in testOnReceivedSslErrorCancel() argument
645 handler.cancel(); in testOnReceivedSslErrorCancel()
[all …]
DWebViewTest.java1516 final DocumentHasImageCheckHandler handler =
1525 response.setTarget(handler);
1526 assertFalse(handler.hasCalledHandleMessage());
1533 return handler.hasCalledHandleMessage();
1536 assertEquals(1, handler.getMsgArg1());
1732 final HrefCheckHandler handler = new HrefCheckHandler(mWebView.getHandler().getLooper());
1734 hrefMsg.setTarget(handler);
1737 handler.reset();
1744 if (handler.hasCalledHandleMessage()) {
1745 if (handler.mResultUrl != null) {
[all …]
/cts/tests/tests/accounts/src/android/accounts/cts/
DAccountManagerTest.java288 AccountManagerCallback<Bundle> callback, Handler handler) throws in addAccount() argument
298 handler); in addAccount()
446 private void testAddAccountWithCallbackAndHandler(Handler handler) throws IOException, in testAddAccountWithCallbackAndHandler() argument
487 handler); in testAddAccountWithCallbackAndHandler()
772 private void testGetAccountsByTypeAndFeaturesWithCallbackAndHandler(Handler handler) throws in testGetAccountsByTypeAndFeaturesWithCallbackAndHandler() argument
801 handler); in testGetAccountsByTypeAndFeaturesWithCallbackAndHandler()
842 handler); in testGetAccountsByTypeAndFeaturesWithCallbackAndHandler()
1190 private void testGetAuthTokenWithCallbackAndHandler(Handler handler) throws IOException, in testGetAuthTokenWithCallbackAndHandler() argument
1223 handler in testGetAuthTokenWithCallbackAndHandler()
1251 private void testGetAuthTokenWithOptionsAndCallbackAndHandler(Handler handler) throws in testGetAuthTokenWithOptionsAndCallbackAndHandler() argument
[all …]
/cts/hostsidetests/devicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/
DCameraUtils.java38 public static boolean blockUntilOpenCamera(CameraManager cameraManager, Handler handler) { in blockUntilOpenCamera() argument
46 cameraManager.openCamera(cameraId, callback, handler); in blockUntilOpenCamera()
/cts/tests/tests/view/src/android/view/inputmethod/cts/
DInputMethodManagerTest.java115 Handler handler = new Handler(); in testInputMethodManager()
116 ResultReceiver receiver = new ResultReceiver(handler); in testInputMethodManager()
118 receiver = new ResultReceiver(handler); in testInputMethodManager()
/cts/tests/tests/media/src/android/media/cts/
DPresentationSyncTest.java284 Handler handler = new Handler() { in runChoreographedTest() local
303 handler.sendMessage(Message.obtain(handler, START_TEST, frameDelay, 0)); in runChoreographedTest()
331 public void start(Handler handler, int frameDelay) { in start() argument
332 mHandler = handler; in start()
/cts/tests/tests/display/src/android/display/cts/
DDisplayTest.java255 Handler handler = new Handler(Looper.getMainLooper()); in testModeSwitch() local
272 }, handler); in testModeSwitch()
276 handler.post(new Runnable() { in testModeSwitch()
291 handler.post(new Runnable() { in testModeSwitch()
/cts/tests/tests/hardware/src/android/hardware/camera2/cts/testcases/
DCamera2SurfaceViewTestCase.java378 CaptureRequest request, CaptureCallback listener, Handler handler) in captureRequestsSynchronized() argument
380 return captureRequestsSynchronized(request, /*count*/1, listener, handler); in captureRequestsSynchronized()
406 CaptureRequest request, int count, CaptureCallback listener, Handler handler) in captureRequestsSynchronized() argument
422 mSession.capture(request, listener, handler); in captureRequestsSynchronized()
609 Handler handler = new Handler(Looper.getMainLooper()); in updatePreviewSurface() local
610 handler.post(new Runnable() { in updatePreviewSurface()
/cts/tests/tests/app.usage/src/android/app/usage/cts/
DActivityTransitionTest.java137 public PassInfo(Handler handler) {
138 super(handler);
/cts/suite/cts/deviceTests/opengl/src/com/android/cts/opengl/reference/
DGLGameActivity.java105 public Worker(Handler handler) { in Worker() argument
106 mHandler = handler; in Worker()
/cts/tests/app/src/android/app/cts/
DDialogStubActivity.java168 final Handler handler = new Handler() { in onCreateDialog() local
176 positiveMessage.setTarget(handler); in onCreateDialog()
180 negativeMessage.setTarget(handler); in onCreateDialog()
184 neutralMessage.setTarget(handler); in onCreateDialog()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/projection/offscreen/
DProjectionOffscreenActivity.java102 Handler handler = new Handler(Looper.getMainLooper());
103 handler.postDelayed(
108 handler.postDelayed(playNotificationRunnable, TIME_SCREEN_OFF + 500);

12