Home
last modified time | relevance | path

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

1234

/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/media/src/android/media/cts/
DMediaSessionManagerTest.java127 Handler handler = createHandler(); in testSetOnVolumeKeyLongPressListener() local
130 VolumeKeyLongPressListener listener = new VolumeKeyLongPressListener(3, handler); in testSetOnVolumeKeyLongPressListener()
131 mSessionManager.setOnVolumeKeyLongPressListener(listener, handler); in testSetOnVolumeKeyLongPressListener()
143 listener = new VolumeKeyLongPressListener(1, handler); in testSetOnVolumeKeyLongPressListener()
144 mSessionManager.setOnVolumeKeyLongPressListener(listener, handler); in testSetOnVolumeKeyLongPressListener()
150 mSessionManager.setOnVolumeKeyLongPressListener(null, handler); in testSetOnVolumeKeyLongPressListener()
155 removeHandler(handler); in testSetOnVolumeKeyLongPressListener()
159 Handler handler = createHandler(); in testSetOnMediaKeyListener() local
166 session.setCallback(callback, handler); in testSetOnMediaKeyListener()
178 MediaKeyListener listener = new MediaKeyListener(2, true, handler); in testSetOnMediaKeyListener()
[all …]
DPresentationSyncTest.java286 Handler handler = new Handler() { in runChoreographedTest() local
305 handler.sendMessage(Message.obtain(handler, START_TEST, frameDelay, 0)); in runChoreographedTest()
333 public void start(Handler handler, int frameDelay) { in start() argument
334 mHandler = handler; in start()
DMediaCasTest.java290 Handler handler = new Handler(thread.getLooper()); in testClearKeyApis() local
291 testEventEcho(mediaCas, 1, 2, null /* data */, handler); in testClearKeyApis()
292 testSessionEventEcho(mediaCas, session, 1, 2, null /* data */, handler); in testClearKeyApis()
562 int arg, byte[] data, Handler handler) throws Exception { in testEventEcho() argument
564 mediaCas.setEventListener(listener, handler); in testEventEcho()
571 int arg, byte[] data, Handler handler) throws Exception { in testSessionEventEcho() argument
573 mediaCas.setEventListener(listener, handler); in testSessionEventEcho()
/cts/tests/camera/utils/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()
/cts/tests/tests/telecom/src/android/telecom/cts/
DRemoteConnectionTest.java166 Handler handler = setupRemoteConnectionCallbacksTest(); in testRemoteConnectionCallbacks_StateChange() local
179 mRemoteConnectionObject.registerCallback(callback, handler); in testRemoteConnectionCallbacks_StateChange()
192 Handler handler = setupRemoteConnectionCallbacksTest(); in testRemoteConnectionCallbacks_RingbackRequest() local
205 mRemoteConnectionObject.registerCallback(callback, handler); in testRemoteConnectionCallbacks_RingbackRequest()
218 Handler handler = setupRemoteConnectionCallbacksTest(); in testRemoteConnectionCallbacks_ConnectionCapabilities() local
233 mRemoteConnectionObject.registerCallback(callback, handler); in testRemoteConnectionCallbacks_ConnectionCapabilities()
247 Handler handler = setupRemoteConnectionCallbacksTest(); in testRemoteConnectionCallbacks_ConnectionProperties() local
262 mRemoteConnectionObject.registerCallback(callback, handler); in testRemoteConnectionCallbacks_ConnectionProperties()
277 Handler handler = setupRemoteConnectionCallbacksTest(); in testRemoteConnectionCallbacks_PostDialWait() local
291 mRemoteConnectionObject.registerCallback(callback, handler); in testRemoteConnectionCallbacks_PostDialWait()
[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/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/camera/src/android/hardware/camera2/cts/
DIdleUidTest.java99 String cameraId, Handler handler) throws Exception { in testCameraAccessForIdleUidByCamera() argument
101 assertCameraAccess(cameraManager, cameraId, true, handler); in testCameraAccessForIdleUidByCamera()
107 assertCameraAccess(cameraManager, cameraId, false, handler); in testCameraAccessForIdleUidByCamera()
114 assertCameraAccess(cameraManager, cameraId, true, handler); in testCameraAccessForIdleUidByCamera()
118 String cameraId, boolean hasAccess, Handler handler) { in assertCameraAccess() argument
124 cameraManager.openCamera(cameraId, callback, handler); in assertCameraAccess()
156 String cameraId, Handler handler) throws Exception { in testCameraAccessBecomingInactiveUidByCamera() argument
162 cameraManager.openCamera(cameraId, callback, handler); in testCameraAccessBecomingInactiveUidByCamera()
/cts/tests/tests/os/src/android/os/cts/
DHandlerTest.java177 Handler handler = new Handler(looper); in testGetLooper() local
178 assertSame(looper, handler.getLooper()); in testGetLooper()
294 Handler handler = new Handler(Looper.getMainLooper()); in testObtainMessageWithInt() local
295 Message msg = handler.obtainMessage(); in testObtainMessageWithInt()
305 Handler handler = new Handler(Looper.getMainLooper()); in testObtainMessageWithIntObject() local
306 Message msg = handler.obtainMessage(); in testObtainMessageWithIntObject()
318 Handler handler = new Handler(Looper.getMainLooper()); in testObtainMessageWithMutiInt() local
319 Message msg = handler.obtainMessage(); in testObtainMessageWithMutiInt()
333 Handler handler = new Handler(Looper.getMainLooper()); in testObtainMessageWithMutiIntObject() local
334 Message msg = handler.obtainMessage(); in testObtainMessageWithMutiIntObject()
[all …]
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 …]
DLooperTest.java58 Handler handler = new Handler(); in testLoop()
59 Message msg = Message.obtain(handler, run); in testLoop()
60 handler.sendMessageAtTime(msg, 0); in testLoop()
204 Handler handler = new Handler(); in testSetMessageLogging()
205 Message msg = Message.obtain(handler, run); in testSetMessageLogging()
206 handler.sendMessageAtTime(msg, 0); in testSetMessageLogging()
DResultReceiverTest.java54 public MockResultReceiver(Handler handler) { in MockResultReceiver() argument
55 super(handler); in MockResultReceiver()
/cts/tests/tests/webkit/src/android/webkit/cts/
DHttpAuthHandlerTest.java85 HttpAuthHandler handler, String host, String realm) { in onReceivedHttpAuthRequest() argument
87 handler.cancel(); in onReceivedHttpAuthRequest()
92 this.useHttpAuthUsernamePassword = handler.useHttpAuthUsernamePassword(); in onReceivedHttpAuthRequest()
94 handler.proceed(mUser, mPassword); in onReceivedHttpAuthRequest()
107 HttpAuthHandler handler, String host, String realm) { in onReceivedHttpAuthRequest() argument
109 handler.cancel(); in onReceivedHttpAuthRequest()
DWebViewSslTest.java496 public void onReceivedSslError(WebView view, SslErrorHandler handler, SslError error) { in testInsecureSiteClearsCertificate() argument
497 handler.proceed(); in testInsecureSiteClearsCertificate()
526 public void onReceivedSslError(WebView view, SslErrorHandler handler, SslError error) { in testSecureSiteSetsCertificate() argument
527 handler.proceed(); in testSecureSiteSetsCertificate()
589 public void onReceivedSslError(WebView view, SslErrorHandler handler, SslError error) { in testOnReceivedSslError() argument
592 handler.proceed(); in testOnReceivedSslError()
622 public void onReceivedSslError(WebView view, SslErrorHandler handler, SslError error) { in testOnReceivedSslErrorProceed() argument
623 handler.proceed(); in testOnReceivedSslErrorProceed()
643 public void onReceivedSslError(WebView view, SslErrorHandler handler, SslError error) { in testOnReceivedSslErrorCancel() argument
644 handler.cancel(); in testOnReceivedSslErrorCancel()
[all …]
DWebViewTest.java1476 final DocumentHasImageCheckHandler handler = in testDocumentHasImages() local
1483 response.setTarget(handler); in testDocumentHasImages()
1484 assertFalse(handler.future().isDone()); in testDocumentHasImages()
1487 assertEquals(1, (int)WebkitUtils.waitForFuture(handler.future())); in testDocumentHasImages()
1721 final HrefCheckHandler handler = new HrefCheckHandler(mWebView.getHandler().getLooper()); in testRequestFocusNodeHref() local
1723 hrefMsg.setTarget(handler); in testRequestFocusNodeHref()
1726 handler.reset(); in testRequestFocusNodeHref()
1733 if (handler.hasCalledHandleMessage()) { in testRequestFocusNodeHref()
1734 if (handler.mResultUrl != null) { in testRequestFocusNodeHref()
1737 handler.reset(); in testRequestFocusNodeHref()
[all …]
/cts/tests/tests/accounts/src/android/accounts/cts/
DAccountManagerTest.java315 AccountManagerCallback<Bundle> callback, Handler handler) throws in addAccount() argument
325 handler); in addAccount()
516 private void testAddAccountWithCallbackAndHandler(Handler handler) throws IOException, in testAddAccountWithCallbackAndHandler() argument
557 handler); in testAddAccountWithCallbackAndHandler()
1074 private void testGetAccountsByTypeAndFeaturesWithCallbackAndHandler(Handler handler) throws in testGetAccountsByTypeAndFeaturesWithCallbackAndHandler() argument
1103 handler); in testGetAccountsByTypeAndFeaturesWithCallbackAndHandler()
1144 handler); in testGetAccountsByTypeAndFeaturesWithCallbackAndHandler()
1492 private void testGetAuthTokenWithCallbackAndHandler(Handler handler) throws IOException, in testGetAuthTokenWithCallbackAndHandler() argument
1525 handler in testGetAuthTokenWithCallbackAndHandler()
1553 private void testGetAuthTokenWithOptionsAndCallbackAndHandler(Handler handler) throws in testGetAuthTokenWithOptionsAndCallbackAndHandler() argument
[all …]
/cts/tests/tests/appwidget/src/android/appwidget/cts/provider/
DCollectionAppWidgetProvider.java125 final Handler handler = new Handler(Looper.myLooper()); in onUpdate() local
140 handler.postDelayed(this, TIME_SLICE); in onUpdate()
144 handler.postDelayed(setScrollRunnable, TIME_SLICE); in onUpdate()
162 handler.postDelayed(this, TIME_SLICE); in onUpdate()
166 handler.postDelayed(setRelativeScrollRunnable, TIME_SLICE); in onUpdate()
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/
DStubGestureAccessibilityService.java28 Handler handler) { in doDispatchGesture() argument
29 return dispatchGesture(description, callback, handler); in doDispatchGesture()
/cts/tests/fragment/src/android/fragment/cts/
DHostCallbacks.java25 public HostCallbacks(FragmentTestActivity activity, Handler handler, int windowAnimations) { in HostCallbacks() argument
26 super(activity, handler, windowAnimations); in HostCallbacks()
/cts/tests/tests/location/src/android/location/cts/
DTestLocationManager.java80 Handler handler) { in registerGnssMeasurementCallback() argument
83 mLocationManager.registerGnssMeasurementsCallback(callback, handler); in registerGnssMeasurementCallback()
194 GnssNavigationMessage.Callback callback, Handler handler) { in registerGnssNavigationMessageCallback() argument
196 return mLocationManager.registerGnssNavigationMessageCallback(callback, handler); in registerGnssNavigationMessageCallback()
/cts/tests/framework/base/windowmanager/app/src/android/server/wm/app/
DTopActivity.java43 Handler handler = new Handler(); in onCreate() local
44 handler.postDelayed(() -> { in onCreate()
/cts/tests/tests/view/src/android/view/cts/
DFrameMetricsListenerTest.java74 final Handler handler = new Handler(Looper.getMainLooper()); in testReceiveData() local
84 addOnFrameMetricsAvailableListener(listener, handler)); in testReceiveData()
108 final Handler handler = new Handler(Looper.getMainLooper()); in testMultipleListeners() local
128 frameMetricsListener1, handler); in testMultipleListeners()
130 frameMetricsListener2, handler); in testMultipleListeners()
/cts/tests/camera/utils/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()
725 CameraDevice.StateCallback listener, Handler handler) throws CameraAccessException, in openCamera() argument
737 return (new BlockingCameraManager(manager)).openCamera(cameraId, listener, handler); in openCamera()
756 public static CameraDevice openCamera(CameraManager manager, String cameraId, Handler handler) in openCamera() argument
759 return openCamera(manager, cameraId, /*listener*/null, handler); in openCamera()
771 CameraCaptureSession.StateCallback listener, Handler handler) in configureCameraSession() argument
776 sessionListener, handler); in configureCameraSession()
[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()

1234