/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 | 125 Handler handler = createHandler(); in testSetOnVolumeKeyLongPressListener() local 128 VolumeKeyLongPressListener listener = new VolumeKeyLongPressListener(3, handler); in testSetOnVolumeKeyLongPressListener() 129 mSessionManager.setOnVolumeKeyLongPressListener(listener, handler); in testSetOnVolumeKeyLongPressListener() 141 listener = new VolumeKeyLongPressListener(1, handler); in testSetOnVolumeKeyLongPressListener() 142 mSessionManager.setOnVolumeKeyLongPressListener(listener, handler); in testSetOnVolumeKeyLongPressListener() 148 mSessionManager.setOnVolumeKeyLongPressListener(null, handler); in testSetOnVolumeKeyLongPressListener() 153 removeHandler(handler); in testSetOnVolumeKeyLongPressListener() 157 Handler handler = createHandler(); in testSetOnMediaKeyListener() local 164 session.setCallback(callback, handler); in testSetOnMediaKeyListener() 176 MediaKeyListener listener = new MediaKeyListener(2, true, handler); in testSetOnMediaKeyListener() [all …]
|
D | MediaCasTest.java | 323 Handler handler = new Handler(thread.getLooper()); in testClearKeyApis() local 324 testEventEcho(mediaCas, 1, 2, null /* data */, handler); in testClearKeyApis() 325 testSessionEventEcho(mediaCas, session, 1, 2, null /* data */, handler); in testClearKeyApis() 327 testOpenSessionEcho(mediaCas, 0, 2, handler); in testClearKeyApis() 560 Handler handler = new Handler(thread.getLooper()); in testResourceLostEvent() local 561 testForceResourceLost(mediaCas, handler); in testResourceLostEvent() 671 int arg, byte[] data, Handler handler) throws Exception { in testEventEcho() argument 673 mediaCas.setEventListener(listener, handler); in testEventEcho() 680 int arg, byte[] data, Handler handler) throws Exception { in testSessionEventEcho() argument 682 mediaCas.setEventListener(listener, handler); in testSessionEventEcho() [all …]
|
/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 private void testCameraAccessForIdleUidByCamera(String cameraId, Handler handler) in testCameraAccessForIdleUidByCamera() argument 102 assertCameraAccess(mCameraManager, cameraId, true, handler); in testCameraAccessForIdleUidByCamera() 108 assertCameraAccess(mCameraManager, cameraId, false, handler); in testCameraAccessForIdleUidByCamera() 115 assertCameraAccess(mCameraManager, cameraId, true, handler); in testCameraAccessForIdleUidByCamera() 119 String cameraId, boolean hasAccess, Handler handler) { in assertCameraAccess() argument 125 cameraManager.openCamera(cameraId, callback, handler); in assertCameraAccess() 156 private void testCameraAccessBecomingInactiveUidByCamera(String cameraId, Handler handler) in testCameraAccessBecomingInactiveUidByCamera() argument 163 mCameraManager.openCamera(cameraId, callback, handler); in testCameraAccessBecomingInactiveUidByCamera()
|
/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()
|
D | ResultReceiverTest.java | 54 public MockResultReceiver(Handler handler) { in MockResultReceiver() argument 55 super(handler); in MockResultReceiver()
|
/cts/tests/tests/database/src/android/database/cts/ |
D | ContentObserverTest.java | 53 Handler handler = new Handler(looper); in testContentObserver() local 56 contentObserver = new MyContentObserver(handler); in testContentObserver() 97 Handler handler = new Handler(looper); in testContentObserverWithUri() local 100 contentObserver = new MyContentObserverWithUri(handler); in testContentObserverWithUri() 157 public MyContentObserver(Handler handler) { in MyContentObserver() argument 158 super(handler); in MyContentObserver() 231 public MyContentObserverWithUri(Handler handler) { in MyContentObserverWithUri() argument 232 super(handler); in MyContentObserverWithUri()
|
/cts/tests/framework/base/windowmanager/app/src/android/server/wm/app/ |
D | ClickableToastActivity.java | 44 Handler handler = new Handler(); in onCreate() local 47 handler.post(new DetectToastRunnable(getApplicationContext(), toast.getView(), deadline, in onCreate() 48 handler)); in onCreate() 94 Context applicationContext, View toastView, long deadline, Handler handler) { in DetectToastRunnable() argument 98 mHandler = handler; in DetectToastRunnable()
|
D | TopActivity.java | 46 Handler handler = new Handler(); in onCreate() local 47 handler.postDelayed(() -> { in onCreate()
|
D | UnresponsiveActivity.java | 44 final Handler handler = new Handler(); in onResume() local 45 handler.postDelayed(() -> { in onResume()
|
/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 …]
|
/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/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()
|
/cts/tests/camera/src/android/hardware/camera2/cts/testcases/ |
D | Camera2SurfaceViewTestCase.java | 396 CaptureRequest request, int count, CaptureCallback listener, Handler handler) in captureRequestsSynchronizedBurst() argument 398 return captureRequestsSynchronizedImpl(request, count, listener, handler, true); in captureRequestsSynchronizedBurst() 421 CaptureRequest request, CaptureCallback listener, Handler handler) in captureRequestsSynchronized() argument 423 return captureRequestsSynchronizedImpl(request, /*count*/1, listener, handler, false); in captureRequestsSynchronized() 449 CaptureRequest request, int count, CaptureCallback listener, Handler handler) in captureRequestsSynchronized() argument 451 return captureRequestsSynchronizedImpl(request, count, listener, handler, false); in captureRequestsSynchronized() 684 Handler handler = new Handler(Looper.getMainLooper()); in updatePreviewSurface() local 685 handler.post(new Runnable() { in updatePreviewSurface() 728 Handler handler = new Handler(Looper.getMainLooper()); in setPreviewVisibility() local 729 handler.post(new Runnable() { in setPreviewVisibility() [all …]
|
/cts/tests/location/common/src/android/location/cts/common/ |
D | TestLocationManager.java | 82 Handler handler) { in registerGnssMeasurementCallback() argument 85 mLocationManager.registerGnssMeasurementsCallback(callback, handler); in registerGnssMeasurementCallback() 235 GnssNavigationMessage.Callback callback, Handler handler) { in registerGnssNavigationMessageCallback() argument 237 return mLocationManager.registerGnssNavigationMessageCallback(callback, handler); in registerGnssNavigationMessageCallback()
|
/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/camera/utils/src/android/hardware/camera2/cts/ |
D | CameraTestUtils.java | 182 ImageReader.OnImageAvailableListener listener, Handler handler) { in makeImageReader() argument 186 reader.setOnImageAvailableListener(listener, handler); in makeImageReader() 202 ImageWriter.OnImageReleasedListener listener, Handler handler) { in makeImageWriter() argument 204 writer.setOnImageReleasedListener(listener, handler); in makeImageWriter() 214 String overridePhysicalCameraId, Handler handler) { in setupConfigurationTargets() argument 248 target.setOnImageAvailableListener(imageDropperListener, handler); in setupConfigurationTargets() 260 target.setOnImageAvailableListener(imageDropperListener, handler); in setupConfigurationTargets() 272 target.setOnImageAvailableListener(imageDropperListener, handler); in setupConfigurationTargets() 287 target.setOnImageAvailableListener(imageDropperListener, handler); in setupConfigurationTargets() 301 target.setOnImageAvailableListener(imageDropperListener, handler); in setupConfigurationTargets() [all …]
|
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/ |
D | CameraUtils.java | 38 public static boolean blockUntilOpenCamera(CameraManager cameraManager, Handler handler) { in blockUntilOpenCamera() argument 46 cameraManager.openCamera(cameraId, callback, handler); in blockUntilOpenCamera()
|