/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 | 235 Handler handler = createHandler(); in testSetOnVolumeKeyLongPressListener() local 238 VolumeKeyLongPressListener listener = new VolumeKeyLongPressListener(3, handler); in testSetOnVolumeKeyLongPressListener() 239 mSessionManager.setOnVolumeKeyLongPressListener(listener, handler); in testSetOnVolumeKeyLongPressListener() 251 listener = new VolumeKeyLongPressListener(1, handler); in testSetOnVolumeKeyLongPressListener() 252 mSessionManager.setOnVolumeKeyLongPressListener(listener, handler); in testSetOnVolumeKeyLongPressListener() 258 mSessionManager.setOnVolumeKeyLongPressListener(null, handler); in testSetOnVolumeKeyLongPressListener() 263 removeHandler(handler); in testSetOnVolumeKeyLongPressListener() 267 Handler handler = createHandler(); in testSetOnMediaKeyListener() local 274 session.setCallback(callback, handler); in testSetOnMediaKeyListener() 286 MediaKeyListener listener = new MediaKeyListener(2, true, handler); in testSetOnMediaKeyListener() [all …]
|
D | MediaCasTest.java | 338 Handler handler = new Handler(thread.getLooper()); in testClearKeyApis() local 339 testEventEcho(mediaCas, 1, 2, null /* data */, handler); in testClearKeyApis() 340 testSessionEventEcho(mediaCas, session, 1, 2, null /* data */, handler); in testClearKeyApis() 342 testOpenSessionEcho(mediaCas, 0, 2, handler); in testClearKeyApis() 575 Handler handler = new Handler(thread.getLooper()); in testResourceLostEvent() local 576 testForceResourceLost(mediaCas, handler); in testResourceLostEvent() 597 Handler handler = new Handler(thread.getLooper()); in testConstructWithEventListener() local 600 android.media.tv.TvInputService.PRIORITY_HINT_USE_CASE_TYPE_LIVE, handler, in testConstructWithEventListener() 720 int arg, byte[] data, Handler handler) throws Exception { in testEventEcho() argument 722 mediaCas.setEventListener(listener, handler); in testEventEcho() [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/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/sensorprivacy/test-apps/CtsUseMicOrCameraAndOverlayForSensorPrivacy/src/android/sensorprivacy/cts/usemiccamera/overlay/ |
D | UseMicCamera.kt | 58 val handler = Handler(mainLooper) in onCreate() constant 76 handler.postDelayed({ mic = openMic() }, 1000) in onCreate() 79 handler.postDelayed({ in onCreate() 84 handler.postDelayed({ in onCreate()
|
/cts/tests/tests/telecom/src/android/telecom/cts/ |
D | RemoteConnectionTest.java | 260 Handler handler = setupRemoteConnectionCallbacksTest(); in testRemoteConnectionCallbacks_StateChange() local 273 mRemoteConnectionObject.registerCallback(callback, handler); in testRemoteConnectionCallbacks_StateChange() 286 Handler handler = setupRemoteConnectionCallbacksTest(); in testRemoteConnectionCallbacks_RingbackRequest() local 299 mRemoteConnectionObject.registerCallback(callback, handler); in testRemoteConnectionCallbacks_RingbackRequest() 312 Handler handler = setupRemoteConnectionCallbacksTest(); in testRemoteConnectionCallbacks_ConnectionCapabilities() local 327 mRemoteConnectionObject.registerCallback(callback, handler); in testRemoteConnectionCallbacks_ConnectionCapabilities() 341 Handler handler = setupRemoteConnectionCallbacksTest(); in testRemoteConnectionCallbacks_ConnectionProperties() local 356 mRemoteConnectionObject.registerCallback(callback, handler); in testRemoteConnectionCallbacks_ConnectionProperties() 371 Handler handler = setupRemoteConnectionCallbacksTest(); in testRemoteConnectionCallbacks_PostDialWait() local 385 mRemoteConnectionObject.registerCallback(callback, handler); in testRemoteConnectionCallbacks_PostDialWait() [all …]
|
D | RemoteConferenceTest.java | 222 Handler handler = setupRemoteConferenceCallbacksTest(); in testRemoteConferenceCallbacks_StateChange() local 235 mRemoteConferenceObject.registerCallback(callback, handler); in testRemoteConferenceCallbacks_StateChange() 252 Handler handler = setupRemoteConferenceCallbacksTest(); in testRemoteConferenceCallbacks_Disconnect() local 266 mRemoteConferenceObject.registerCallback(callback, handler); in testRemoteConferenceCallbacks_Disconnect() 283 Handler handler = setupRemoteConferenceCallbacksTest(); in testRemoteConferenceCallbacks_ConnectionAdd() local 297 mRemoteConferenceObject.registerCallback(callback, handler); in testRemoteConferenceCallbacks_ConnectionAdd() 318 Handler handler = setupRemoteConferenceCallbacksTest(); in testRemoteConferenceCallbacks_ConnectionRemove() local 332 mRemoteConferenceObject.registerCallback(callback, handler); in testRemoteConferenceCallbacks_ConnectionRemove() 354 Handler handler = setupRemoteConferenceCallbacksTest(); in testRemoteConferenceCallbacks_ConnectionCapabilities() local 369 mRemoteConferenceObject.registerCallback(callback, handler); in testRemoteConferenceCallbacks_ConnectionCapabilities() [all …]
|
/cts/tests/tests/sensorprivacy/test-apps/CtsUseMicOrCameraForSensorPrivacy/src/android/sensorprivacy/cts/usemiccamera/ |
D | UseMicCamera.kt | 60 val handler = Handler(mainLooper) in onCreate() constant 79 handler.postDelayed({ mic = openMic() }, 1000) in onCreate() 82 handler.postDelayed({ in onCreate() 88 handler.postDelayed({ in onCreate()
|
/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/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 | 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 | 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 | ResultReceiverTest.java | 54 public MockResultReceiver(Handler handler) { in MockResultReceiver() argument 55 super(handler); in MockResultReceiver()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/car/ |
D | GarageModeChecker.java | 180 GarageModeCheckerTask(Handler handler, JobParameters jobParameters, int iteration) { in GarageModeCheckerTask() argument 181 mHandler = new WeakReference<Handler>(handler); in GarageModeCheckerTask() 222 final Handler handler = mHandler.get(); in onPostExecute() local 223 if (handler == null) { in onPostExecute() 227 Message msg = handler.obtainMessage(MSG_RUN_JOB, mIteration + 1, 0, mJobParameter); in onPostExecute() 228 handler.sendMessageDelayed(msg, MS_PER_ITERATION); in onPostExecute() 230 Message msg = handler.obtainMessage(MSG_FINISHED, 0, 0, mJobParameter); in onPostExecute() 231 handler.sendMessage(msg); in onPostExecute()
|
/cts/tools/incremental-cts/ |
D | target_file_handler_test.py | 27 handler = TargetFileHandler(build_file) 30 hash_dict = handler.get_file_hash(deqp_deps)
|
/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()
|
/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/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/framework/base/biometrics/apps/biometrics/src/android/server/biometrics/ |
D | Class2BiometricOrCredentialActivity.java | 38 final Handler handler = new Handler(Looper.getMainLooper()); in onCreate() local 39 final Executor executor = handler::post; in onCreate()
|
D | Class3BiometricActivity.java | 37 final Handler handler = new Handler(Looper.getMainLooper()); in onCreate() local 38 final Executor executor = handler::post; in onCreate()
|
/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/framework/base/windowmanager/app/src/android/server/wm/app/ |
D | TopActivity.java | 36 Handler handler = new Handler(); in onCreate() local 37 handler.postDelayed(() -> { in onCreate()
|
D | UnresponsiveActivity.java | 44 final Handler handler = new Handler(); in onResume() local 45 handler.postDelayed(() -> { in onResume()
|
/cts/tests/tests/sensorprivacy/test-apps/utils/src/android/sensorprivacy/cts/testapp/utils/ |
D | Utils.kt | 73 val handler = Handler(handlerThread.looper) in openCam() constant 77 handler.post(runnable) in openCam() 106 session.capture(captureRequest, null, handler) in openCam() 129 handler.postDelayed({ in openCam()
|