/cts/suite/audio_quality/lib/src/audio/ |
D | RemoteAudio.cpp | 110 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/ |
D | MediaSessionManagerTest.java | 128 Handler handler = createHandler(); in testSetOnVolumeKeyLongPressListener() local 131 VolumeKeyLongPressListener listener = new VolumeKeyLongPressListener(3, handler); in testSetOnVolumeKeyLongPressListener() 132 mSessionManager.setOnVolumeKeyLongPressListener(listener, handler); in testSetOnVolumeKeyLongPressListener() 144 listener = new VolumeKeyLongPressListener(1, handler); in testSetOnVolumeKeyLongPressListener() 145 mSessionManager.setOnVolumeKeyLongPressListener(listener, handler); in testSetOnVolumeKeyLongPressListener() 151 mSessionManager.setOnVolumeKeyLongPressListener(null, handler); in testSetOnVolumeKeyLongPressListener() 156 removeHandler(handler); in testSetOnVolumeKeyLongPressListener() 160 Handler handler = createHandler(); in testSetOnMediaKeyListener() local 167 session.setCallback(callback, handler); in testSetOnMediaKeyListener() 179 MediaKeyListener listener = new MediaKeyListener(2, true, handler); in testSetOnMediaKeyListener() [all …]
|
D | PresentationSyncTest.java | 287 Handler handler = new Handler() { in runChoreographedTest() local 306 handler.sendMessage(Message.obtain(handler, START_TEST, frameDelay, 0)); in runChoreographedTest() 334 public void start(Handler handler, int frameDelay) { in start() argument 335 mHandler = handler; in start()
|
D | MediaCasTest.java | 290 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/ |
D | CameraSessionUtils.java | 76 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/ |
D | RemoteConnectionTest.java | 166 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 …]
|
D | RemoteConferenceTest.java | 206 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/camera/src/android/hardware/camera2/cts/ |
D | IdleUidTest.java | 99 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/database/src/android/database/cts/ |
D | ContentObserverTest.java | 51 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/os/src/android/os/cts/ |
D | HandlerTest.java | 177 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 …]
|
D | MessageQueueTest.java | 136 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 …]
|
D | LooperTest.java | 58 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()
|
/cts/tests/framework/base/windowmanager/app/src/android/server/wm/app/ |
D | ToastReceiver.java | 42 Handler handler = new Handler(); in onReceive() local 45 handler.post( in onReceive() 47 context.getApplicationContext(), toast.getView(), deadline, handler)); in onReceive() 93 Context applicationContext, View toastView, long deadline, Handler handler) { in DetectToastRunnable() argument 97 mHandler = handler; in DetectToastRunnable()
|
D | TopActivity.java | 43 Handler handler = new Handler(); in onCreate() local 44 handler.postDelayed(() -> { in onCreate()
|
/cts/tests/tests/webkit/src/android/webkit/cts/ |
D | HttpAuthHandlerTest.java | 85 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()
|
D | WebViewSslTest.java | 496 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 …]
|
D | WebViewTest.java | 1480 final DocumentHasImageCheckHandler handler = in testDocumentHasImages() local 1487 response.setTarget(handler); in testDocumentHasImages() 1488 assertFalse(handler.future().isDone()); in testDocumentHasImages() 1491 assertEquals(1, (int)WebkitUtils.waitForFuture(handler.future())); in testDocumentHasImages() 1725 final HrefCheckHandler handler = new HrefCheckHandler(mWebView.getHandler().getLooper()); in testRequestFocusNodeHref() local 1727 hrefMsg.setTarget(handler); in testRequestFocusNodeHref() 1730 handler.reset(); in testRequestFocusNodeHref() 1737 if (handler.hasCalledHandleMessage()) { in testRequestFocusNodeHref() 1738 if (handler.mResultUrl != null) { in testRequestFocusNodeHref() 1741 handler.reset(); in testRequestFocusNodeHref() [all …]
|
/cts/tests/tests/accounts/src/android/accounts/cts/ |
D | AccountManagerTest.java | 315 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/ |
D | CollectionAppWidgetProvider.java | 125 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/camera/src/android/hardware/camera2/cts/testcases/ |
D | Camera2SurfaceViewTestCase.java | 408 CaptureRequest request, int count, CaptureCallback listener, Handler handler) in captureRequestsSynchronizedBurst() argument 410 return captureRequestsSynchronizedImpl(request, count, listener, handler, true); in captureRequestsSynchronizedBurst() 433 CaptureRequest request, CaptureCallback listener, Handler handler) in captureRequestsSynchronized() argument 435 return captureRequestsSynchronizedImpl(request, /*count*/1, listener, handler, false); in captureRequestsSynchronized() 461 CaptureRequest request, int count, CaptureCallback listener, Handler handler) in captureRequestsSynchronized() argument 463 return captureRequestsSynchronizedImpl(request, count, listener, handler, false); in captureRequestsSynchronized() 696 Handler handler = new Handler(Looper.getMainLooper()); in updatePreviewSurface() local 697 handler.post(new Runnable() { in updatePreviewSurface() 740 Handler handler = new Handler(Looper.getMainLooper()); in setPreviewVisibility() local 741 handler.post(new Runnable() { in setPreviewVisibility() [all …]
|
/cts/tests/tests/location/src/android/location/cts/ |
D | TestLocationManager.java | 80 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/camera/utils/src/android/hardware/camera2/cts/ |
D | CameraTestUtils.java | 175 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/tests/tests/view/src/android/view/cts/ |
D | FrameMetricsListenerTest.java | 74 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/accessibilityservice/src/android/accessibilityservice/cts/ |
D | StubGestureAccessibilityService.java | 28 Handler handler) { in doDispatchGesture() argument 29 return dispatchGesture(description, callback, handler); in doDispatchGesture()
|
/cts/tests/fragment/src/android/fragment/cts/ |
D | HostCallbacks.java | 25 public HostCallbacks(FragmentTestActivity activity, Handler handler, int windowAnimations) { in HostCallbacks() argument 26 super(activity, handler, windowAnimations); in HostCallbacks()
|