Home
last modified time | relevance | path

Searched refs:handler (Results 1 – 25 of 72) 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/tests/media/src/android/media/cts/
DMediaSessionManagerTest.java120 Handler handler = new Handler(handlerThread.getLooper()); in testSetOnVolumeKeyLongPressListener() local
123 VolumeKeyLongPressListener listener = new VolumeKeyLongPressListener(3, handler); in testSetOnVolumeKeyLongPressListener()
124 mSessionManager.setOnVolumeKeyLongPressListener(listener, handler); in testSetOnVolumeKeyLongPressListener()
136 listener = new VolumeKeyLongPressListener(1, handler); in testSetOnVolumeKeyLongPressListener()
137 mSessionManager.setOnVolumeKeyLongPressListener(listener, handler); in testSetOnVolumeKeyLongPressListener()
143 mSessionManager.setOnVolumeKeyLongPressListener(null, handler); in testSetOnVolumeKeyLongPressListener()
152 Handler handler = new Handler(handlerThread.getLooper()); in testSetOnMediaKeyListener() local
160 session.setCallback(callback, handler); in testSetOnMediaKeyListener()
172 MediaKeyListener listener = new MediaKeyListener(2, true, handler); in testSetOnMediaKeyListener()
173 mSessionManager.setOnMediaKeyListener(listener, handler); in testSetOnMediaKeyListener()
[all …]
DTestServiceRegistry.java64 public void setHandler(Handler handler) { in setHandler() argument
66 mHandler = new SyncHandler(handler.getLooper()); in setHandler()
DMockMediaSessionService2.java56 final SyncHandler handler = (SyncHandler) TestServiceRegistry.getInstance().getHandler(); in onCreateSession() local
57 final Executor executor = (runnable) -> handler.post(runnable); in onCreateSession()
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()
/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/camera/src/android/hardware/camera2/cts/
DIdleUidTest.java100 String cameraId, Handler handler) throws Exception { in testCameraAccessForIdleUidByCamera() argument
102 assertCameraAccess(cameraManager, cameraId, true, handler); in testCameraAccessForIdleUidByCamera()
108 assertCameraAccess(cameraManager, cameraId, false, handler); in testCameraAccessForIdleUidByCamera()
115 assertCameraAccess(cameraManager, cameraId, true, handler); in testCameraAccessForIdleUidByCamera()
119 String cameraId, boolean hasAccess, Handler handler) { in assertCameraAccess() argument
125 cameraManager.openCamera(cameraId, callback, handler); in assertCameraAccess()
157 String cameraId, Handler handler) throws Exception { in testCameraAccessBecomingInactiveUidByCamera() argument
163 cameraManager.openCamera(cameraId, callback, handler); in testCameraAccessBecomingInactiveUidByCamera()
/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.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/accessibilityservice/src/android/accessibilityservice/cts/
DStubGestureAccessibilityService.java27 Handler handler) { in doDispatchGesture() argument
28 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/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.java496 public void onReceivedSslError(WebView view, SslErrorHandler handler, SslError error) { in testInsecureSiteClearsCertificate() argument
497 handler.proceed(); in testInsecureSiteClearsCertificate()
527 public void onReceivedSslError(WebView view, SslErrorHandler handler, SslError error) { in testSecureSiteSetsCertificate() argument
528 handler.proceed(); in testSecureSiteSetsCertificate()
591 public void onReceivedSslError(WebView view, SslErrorHandler handler, SslError error) { in testOnReceivedSslError() argument
594 handler.proceed(); in testOnReceivedSslError()
624 public void onReceivedSslError(WebView view, SslErrorHandler handler, SslError error) { in testOnReceivedSslErrorProceed() argument
625 handler.proceed(); in testOnReceivedSslErrorProceed()
645 public void onReceivedSslError(WebView view, SslErrorHandler handler, SslError error) { in testOnReceivedSslErrorCancel() argument
646 handler.cancel(); in testOnReceivedSslErrorCancel()
[all …]
/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 …]
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()
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()
/cts/tests/framework/base/activitymanager/app/src/android/server/am/
DTopActivity.java43 Handler handler = new Handler(); in onCreate() local
44 handler.postDelayed(() -> { in onCreate()
/cts/tests/tests/widget/src/android/widget/cts/appwidget/
DMyAppWidgetProvider.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/tests/location/src/android/location/cts/
DTestLocationManager.java81 Handler handler) { in registerGnssMeasurementCallback() argument
84 mLocationManager.registerGnssMeasurementsCallback(callback, handler); in registerGnssMeasurementCallback()
205 GnssNavigationMessage.Callback callback, Handler handler) { in registerGnssNavigationMessageCallback() argument
207 return mLocationManager.registerGnssNavigationMessageCallback(callback, handler); in registerGnssNavigationMessageCallback()
/cts/tests/tests/accounts/src/android/accounts/cts/
DAccountManagerTest.java317 AccountManagerCallback<Bundle> callback, Handler handler) throws in addAccount() argument
327 handler); in addAccount()
518 private void testAddAccountWithCallbackAndHandler(Handler handler) throws IOException, in testAddAccountWithCallbackAndHandler() argument
559 handler); in testAddAccountWithCallbackAndHandler()
1076 private void testGetAccountsByTypeAndFeaturesWithCallbackAndHandler(Handler handler) throws in testGetAccountsByTypeAndFeaturesWithCallbackAndHandler() argument
1105 handler); in testGetAccountsByTypeAndFeaturesWithCallbackAndHandler()
1146 handler); in testGetAccountsByTypeAndFeaturesWithCallbackAndHandler()
1494 private void testGetAuthTokenWithCallbackAndHandler(Handler handler) throws IOException, in testGetAuthTokenWithCallbackAndHandler() argument
1527 handler in testGetAuthTokenWithCallbackAndHandler()
1555 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/cts/
DFrameMetricsListenerTest.java73 final Handler handler = new Handler(Looper.getMainLooper()); in testReceiveData() local
83 addOnFrameMetricsAvailableListener(listener, handler)); in testReceiveData()
107 final Handler handler = new Handler(Looper.getMainLooper()); in testMultipleListeners() local
127 frameMetricsListener1, handler); in testMultipleListeners()
129 frameMetricsListener2, handler); in testMultipleListeners()
/cts/tests/camera/utils/src/android/hardware/camera2/cts/
DCameraTestUtils.java178 ImageReader.OnImageAvailableListener listener, Handler handler) { in makeImageReader() argument
182 reader.setOnImageAvailableListener(listener, handler); in makeImageReader()
198 ImageWriter.OnImageReleasedListener listener, Handler handler) { in makeImageWriter() argument
200 writer.setOnImageReleasedListener(listener, handler); in makeImageWriter()
717 CameraDevice.StateCallback listener, Handler handler) throws CameraAccessException, in openCamera() argument
729 return (new BlockingCameraManager(manager)).openCamera(cameraId, listener, handler); in openCamera()
748 public static CameraDevice openCamera(CameraManager manager, String cameraId, Handler handler) in openCamera() argument
751 return openCamera(manager, cameraId, /*listener*/null, handler); in openCamera()
763 CameraCaptureSession.StateCallback listener, Handler handler) in configureCameraSession() argument
768 sessionListener, handler); in configureCameraSession()
[all …]

123