Home
last modified time | relevance | path

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

123

/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/camera/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()
248 Handler handler = setupRemoteConnectionCallbacksTest(); in testRemoteConnectionCallbacks_PostDialWait() local
262 mRemoteConnectionObject.registerCallback(callback, handler); in testRemoteConnectionCallbacks_PostDialWait()
276 Handler handler = setupRemoteConnectionCallbacksTest(); in testRemoteConnectionCallbacks_PostDialChar() local
289 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.java304 final Handler handler = new Handler(Looper.getMainLooper()); in testFileNormal() local
307 File.createTempFile("pfd", "bbq"), ParcelFileDescriptor.MODE_READ_WRITE, handler, in testFileNormal()
318 final Handler handler = new Handler(Looper.getMainLooper()); in testFileError() local
321 File.createTempFile("pfd", "bbq"), ParcelFileDescriptor.MODE_READ_WRITE, handler, in testFileError()
332 final Handler handler = new Handler(Looper.getMainLooper()); in testFileDetach() local
335 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/view/src/android/view/cts/
DFrameMetricsListenerTest.java72 final Handler handler = new Handler(Looper.getMainLooper()); in testReceiveData() local
87 mActivity.getWindow().addOnFrameMetricsAvailableListener(listener, handler); in testReceiveData()
133 final Handler handler = new Handler(Looper.getMainLooper()); in testMultipleListeners() local
161 frameMetricsListener1, handler); in testMultipleListeners()
163 frameMetricsListener2, handler); in testMultipleListeners()
203 final Handler handler = new Handler(thread.getLooper()); in testDropCount() local
219 … mActivity.getWindow().addOnFrameMetricsAvailableListener(frameMetricsListener, handler); in testDropCount()
/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.java1590 final DocumentHasImageCheckHandler handler =
1599 response.setTarget(handler);
1600 assertFalse(handler.hasCalledHandleMessage());
1607 return handler.hasCalledHandleMessage();
1610 assertEquals(1, handler.getMsgArg1());
1814 final HrefCheckHandler handler = new HrefCheckHandler(mWebView.getHandler().getLooper());
1816 hrefMsg.setTarget(handler);
1819 handler.reset();
1826 if (handler.hasCalledHandleMessage()) {
1827 if (handler.mResultUrl != null) {
[all …]
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/
DStubGestureAccessibilityService.java30 Handler handler) { in doDispatchGesture() argument
31 return dispatchGesture(description, callback, handler); in doDispatchGesture()
/cts/tests/tests/location/src/android/location/cts/
DTestLocationManager.java80 Handler handler) { in registerGnssMeasurementCallback() argument
83 mLocationManager.registerGnssMeasurementsCallback(callback, handler); in registerGnssMeasurementCallback()
180 GnssNavigationMessage.Callback callback, Handler handler) { in registerGnssNavigationMessageCallback() argument
182 return mLocationManager.registerGnssNavigationMessageCallback(callback, handler); in registerGnssNavigationMessageCallback()
/cts/tests/tests/accounts/src/android/accounts/cts/
DAccountManagerTest.java292 AccountManagerCallback<Bundle> callback, Handler handler) throws in addAccount() argument
302 handler); in addAccount()
493 private void testAddAccountWithCallbackAndHandler(Handler handler) throws IOException, in testAddAccountWithCallbackAndHandler() argument
534 handler); in testAddAccountWithCallbackAndHandler()
844 private void testGetAccountsByTypeAndFeaturesWithCallbackAndHandler(Handler handler) throws in testGetAccountsByTypeAndFeaturesWithCallbackAndHandler() argument
873 handler); in testGetAccountsByTypeAndFeaturesWithCallbackAndHandler()
914 handler); in testGetAccountsByTypeAndFeaturesWithCallbackAndHandler()
1262 private void testGetAuthTokenWithCallbackAndHandler(Handler handler) throws IOException, in testGetAuthTokenWithCallbackAndHandler() argument
1295 handler in testGetAuthTokenWithCallbackAndHandler()
1323 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.java116 Handler handler = new Handler(); in testInputMethodManager()
117 ResultReceiver receiver = new ResultReceiver(handler); in testInputMethodManager()
119 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/camera/src/android/hardware/camera2/cts/testcases/
DCamera2SurfaceViewTestCase.java394 CaptureRequest request, CaptureCallback listener, Handler handler) in captureRequestsSynchronized() argument
396 return captureRequestsSynchronized(request, /*count*/1, listener, handler); in captureRequestsSynchronized()
422 CaptureRequest request, int count, CaptureCallback listener, Handler handler) in captureRequestsSynchronized() argument
438 mSession.capture(request, listener, handler); in captureRequestsSynchronized()
627 Handler handler = new Handler(Looper.getMainLooper()); in updatePreviewSurface() local
628 handler.post(new Runnable() { in updatePreviewSurface()
670 Handler handler = new Handler(Looper.getMainLooper()); in setPreviewVisibility() local
671 handler.post(new Runnable() { in setPreviewVisibility()
/cts/tests/camera/src/android/hardware/camera2/cts/
DCameraTestUtils.java175 ImageReader.OnImageAvailableListener listener, Handler handler) { in makeImageReader() argument
179 reader.setOnImageAvailableListener(listener, handler); in makeImageReader()
195 ImageWriter.OnImageReleasedListener listener, Handler handler) { in makeImageWriter() argument
197 writer.setOnImageReleasedListener(listener, handler); in makeImageWriter()
703 CameraDevice.StateCallback listener, Handler handler) throws CameraAccessException, in openCamera() argument
715 return (new BlockingCameraManager(manager)).openCamera(cameraId, listener, handler); in openCamera()
734 public static CameraDevice openCamera(CameraManager manager, String cameraId, Handler handler) in openCamera() argument
737 return openCamera(manager, cameraId, /*listener*/null, handler); in openCamera()
749 CameraCaptureSession.StateCallback listener, Handler handler) in configureCameraSession() argument
754 sessionListener, handler); in configureCameraSession()
[all …]
/cts/tests/tests/display/src/android/display/cts/
DDisplayTest.java286 Handler handler = new Handler(Looper.getMainLooper());
303 }, handler);
307 handler.post(new Runnable() {
322 handler.post(new Runnable() {

123