Home
last modified time | relevance | path

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

123456

/cts/tools/incremental-cts/
Dtarget_file_handler_test.py27 handler = TargetFileHandler(build_file)
30 hash_dict = handler.get_file_hash(deqp_deps)
41 handler = TargetFileHandler(build_file)
43 'userdebug/test-keys'), handler.get_system_fingerprint())
48 handler = TargetFileHandler(build_file)
50 handler.get_system_fingerprint()
/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/apps/CtsVerifier/src/com/android/cts/verifier/camera/its/
DIntraPreviewAction.java77 Handler handler, in IntraPreviewAction() argument
80 mCameraHandler = handler; in IntraPreviewAction()
131 Handler handler, in PreviewSleepAction() argument
134 super(cameraCharacteristics, handler, recordingResultListener); in PreviewSleepAction()
154 Handler handler, in PreviewDynamicZoomAction() argument
157 super(cameraCharacteristics, handler, recordingResultListener); in PreviewDynamicZoomAction()
198 Handler handler, in PreviewDynamicMeteringAction() argument
205 super(cameraCharacteristics, handler, recordingResultListener); in PreviewDynamicMeteringAction()
/cts/tests/camera/src/android/hardware/camera2/cts/
DIdleUidTest.java99 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/media/bettertogether/src/android/media/bettertogether/cts/
DMediaSessionManagerTest.java331 Handler handler = createHandlerWithScheduledLooperQuit(); in testSetOnVolumeKeyLongPressListener() local
334 VolumeKeyLongPressListener listener = new VolumeKeyLongPressListener(3, handler); in testSetOnVolumeKeyLongPressListener()
335 mSessionManager.setOnVolumeKeyLongPressListener(listener, handler); in testSetOnVolumeKeyLongPressListener()
347 listener = new VolumeKeyLongPressListener(1, handler); in testSetOnVolumeKeyLongPressListener()
348 mSessionManager.setOnVolumeKeyLongPressListener(listener, handler); in testSetOnVolumeKeyLongPressListener()
354 mSessionManager.setOnVolumeKeyLongPressListener(null, handler); in testSetOnVolumeKeyLongPressListener()
364 Handler handler = createHandlerWithScheduledLooperQuit(); in testSetOnMediaKeyListener() local
372 session.setCallback(callback, handler); in testSetOnMediaKeyListener()
384 MediaKeyListener listener = new MediaKeyListener(2, true, handler); in testSetOnMediaKeyListener()
385 mSessionManager.setOnMediaKeyListener(listener, handler); in testSetOnMediaKeyListener()
[all …]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/presence/nan/
DWifiAwarePeer.java52 private final Handler handler; field in WifiAwarePeer
63 public WifiAwarePeer(Context context, Handler handler) { in WifiAwarePeer() argument
64 this.handler = handler; in WifiAwarePeer()
66 this.rttRanger = new RttRanger(context, handler::post); in WifiAwarePeer()
102 handler); in attach()
144 session.publish(publishConfig, createPublishDiscoverySessionCallback(), handler); in onAttached()
147 handler); in onAttached()
/cts/tests/tests/attributionsource/src/android/attributionsource/cts/
DAttributionSourceActivity.kt42 val handler = Handler(mHandlerThread!!.getLooper()) in onCreate() constant
43 readAttributionSource(this, intent, handler) in onCreate()
70 public fun readAttributionSource(activity: Activity, intent: Intent, handler: Handler) { in readAttributionSource()
71 handler.postDelayed(object : Runnable { in readAttributionSource()
/cts/hostsidetests/securitybulletin/test-apps/CVE-2023-40111/src/android/security/cts/CVE_2023_40111/
DPocActivity.java55 Handler handler = new Handler(Looper.getMainLooper()); in onResume() local
65 runMediaPlayback(handler); in onResume()
98 handler.postDelayed(runnable, 2_000L /* delay */); in onResume()
129 private void runMediaPlayback(Handler handler) { in runMediaPlayback() argument
138 mAudioManager.registerAudioPlaybackCallback(callback, handler); in runMediaPlayback()
/cts/hostsidetests/securitybulletin/test-apps/CVE-2023-21145/src/android/security/cts/CVE_2023_21145/
DPipActivity.java40 Handler handler = new Handler(handlerThread.getLooper()); in onResume() local
44 handler.postDelayed( in onResume()
50 handler.postDelayed( in onResume()
/cts/tests/tests/telecom/src/android/telecom/cts/
DRemoteConferenceTest.java231 Handler handler = setupRemoteConferenceCallbacksTest(); in testRemoteConferenceCallbacks_StateChange() local
244 mRemoteConferenceObject.registerCallback(callback, handler); in testRemoteConferenceCallbacks_StateChange()
261 Handler handler = setupRemoteConferenceCallbacksTest(); in testRemoteConferenceCallbacks_Disconnect() local
275 mRemoteConferenceObject.registerCallback(callback, handler); in testRemoteConferenceCallbacks_Disconnect()
292 Handler handler = setupRemoteConferenceCallbacksTest(); in testRemoteConferenceCallbacks_ConnectionAdd() local
306 mRemoteConferenceObject.registerCallback(callback, handler); in testRemoteConferenceCallbacks_ConnectionAdd()
327 Handler handler = setupRemoteConferenceCallbacksTest(); in testRemoteConferenceCallbacks_ConnectionRemove() local
341 mRemoteConferenceObject.registerCallback(callback, handler); in testRemoteConferenceCallbacks_ConnectionRemove()
363 Handler handler = setupRemoteConferenceCallbacksTest(); in testRemoteConferenceCallbacks_ConnectionCapabilities() local
378 mRemoteConferenceObject.registerCallback(callback, handler); in testRemoteConferenceCallbacks_ConnectionCapabilities()
[all …]
DRemoteConnectionTest.java311 Handler handler = setupRemoteConnectionCallbacksTest(); in testRemoteConnectionCallbacks_StateChange() local
324 mRemoteConnectionObject.registerCallback(callback, handler); in testRemoteConnectionCallbacks_StateChange()
337 Handler handler = setupRemoteConnectionCallbacksTest(); in testRemoteConnectionCallbacks_RingbackRequest() local
350 mRemoteConnectionObject.registerCallback(callback, handler); in testRemoteConnectionCallbacks_RingbackRequest()
363 Handler handler = setupRemoteConnectionCallbacksTest(); in testRemoteConnectionCallbacks_ConnectionCapabilities() local
378 mRemoteConnectionObject.registerCallback(callback, handler); in testRemoteConnectionCallbacks_ConnectionCapabilities()
392 Handler handler = setupRemoteConnectionCallbacksTest(); in testRemoteConnectionCallbacks_ConnectionProperties() local
407 mRemoteConnectionObject.registerCallback(callback, handler); in testRemoteConnectionCallbacks_ConnectionProperties()
422 Handler handler = setupRemoteConnectionCallbacksTest(); in testRemoteConnectionCallbacks_PostDialWait() local
436 mRemoteConnectionObject.registerCallback(callback, handler); in testRemoteConnectionCallbacks_PostDialWait()
[all …]
/cts/tests/framework/base/windowmanager/app/src/android/server/wm/app/
DClickableToastActivity.java44 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()
/cts/tests/tests/os/src/android/os/cts/
DHandlerTest.java212 Handler handler = new Handler(looper); in testGetLooper() local
213 assertSame(looper, handler.getLooper()); in testGetLooper()
336 Handler handler = new Handler(Looper.getMainLooper()); in testObtainMessageWithInt() local
337 Message msg = handler.obtainMessage(); in testObtainMessageWithInt()
348 Handler handler = new Handler(Looper.getMainLooper()); in testObtainMessageWithIntObject() local
349 Message msg = handler.obtainMessage(); in testObtainMessageWithIntObject()
362 Handler handler = new Handler(Looper.getMainLooper()); in testObtainMessageWithMutiInt() local
363 Message msg = handler.obtainMessage(); in testObtainMessageWithMutiInt()
378 Handler handler = new Handler(Looper.getMainLooper()); in testObtainMessageWithMutiIntObject() local
379 Message msg = handler.obtainMessage(); in testObtainMessageWithMutiIntObject()
[all …]
DLooperTest.java81 Handler handler = new Handler(); in testLoop()
82 Message msg = Message.obtain(handler, run); in testLoop()
83 handler.sendMessageAtTime(msg, 0); in testLoop()
235 Handler handler = new Handler(); in testSetMessageLogging()
236 Message msg = Message.obtain(handler, run); in testSetMessageLogging()
237 handler.sendMessageAtTime(msg, 0); in testSetMessageLogging()
/cts/tests/tests/database/src/android/database/cts/
DContentObserverTest.java69 Handler handler = new Handler(looper); in testContentObserver() local
72 contentObserver = new MyContentObserver(handler); in testContentObserver()
115 Handler handler = new Handler(looper); in testContentObserverWithUri() local
118 contentObserver = new MyContentObserverWithUri(handler); in testContentObserverWithUri()
177 public MyContentObserver(Handler handler) { in MyContentObserver() argument
178 super(handler); in MyContentObserver()
251 public MyContentObserverWithUri(Handler handler) { in MyContentObserverWithUri() argument
252 super(handler); in MyContentObserverWithUri()
/cts/tests/tests/sensorprivacy/test-apps/CtsUseMicOrCameraForSensorPrivacy/src/android/sensorprivacy/cts/usemiccamera/
DUseMicCamera.kt60 val handler = Handler(mainLooper) in onStart() constant
86 handler.postDelayed({ in onStart()
92 handler.postDelayed({ in onStart()
99 handler.postDelayed({ in onStart()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/car/
DGarageModeChecker.java192 GarageModeCheckerTask(Handler handler, JobParameters jobParameters, int iteration) { in GarageModeCheckerTask() argument
193 mHandler = new WeakReference<Handler>(handler); in GarageModeCheckerTask()
234 final Handler handler = mHandler.get(); in onPostExecute() local
235 if (handler == null) { in onPostExecute()
239 Message msg = handler.obtainMessage(MSG_RUN_JOB, mIteration + 1, 0, mJobParameter); in onPostExecute()
240 handler.sendMessageDelayed(msg, MS_PER_ITERATION); in onPostExecute()
242 Message msg = handler.obtainMessage(MSG_FINISHED, 0, 0, mJobParameter); in onPostExecute()
243 handler.sendMessage(msg); in onPostExecute()
/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/media/misc/src/android/media/misc/cts/
DMediaCasTest.java357 Handler handler = new Handler(thread.getLooper()); in testClearKeyApis() local
358 testEventEcho(mediaCas, 1, 2, null /* data */, handler); in testClearKeyApis()
359 testSessionEventEcho(mediaCas, session, 1, 2, null /* data */, handler); in testClearKeyApis()
361 testOpenSessionEcho(mediaCas, 0, 2, handler); in testClearKeyApis()
611 Handler handler = new Handler(thread.getLooper()); in testResourceLostEvent() local
612 testForceResourceLost(mediaCas, handler); in testResourceLostEvent()
634 Handler handler = new Handler(thread.getLooper()); in testConstructWithEventListener() local
642 handler, in testConstructWithEventListener()
762 int arg, byte[] data, Handler handler) throws Exception { in testEventEcho() argument
764 mediaCas.setEventListener(listener, handler); in testEventEcho()
[all …]
/cts/tests/tests/nfc/src/android/nfc/cts/
DNfcUtils.java58 Handler handler = new Handler(handlerThread.getLooper()); in enableNfc() local
62 handler); in enableNfc()
101 Handler handler = new Handler(handlerThread.getLooper()); in disableNfc() local
105 handler); in disableNfc()
/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()
163 handler.postDelayed(this, TIME_SLICE); in onUpdate()
167 handler.postDelayed(setRelativeScrollRunnable, TIME_SLICE); in onUpdate()
/cts/tests/tests/webkit/src/android/webkit/cts/
DHttpAuthHandlerTest.java119 HttpAuthHandler handler, String host, String realm) { in onReceivedHttpAuthRequest() argument
121 handler.cancel(); in onReceivedHttpAuthRequest()
126 this.useHttpAuthUsernamePassword = handler.useHttpAuthUsernamePassword(); in onReceivedHttpAuthRequest()
128 handler.proceed(mUser, mPassword); in onReceivedHttpAuthRequest()
141 HttpAuthHandler handler, String host, String realm) { in onReceivedHttpAuthRequest() argument
143 handler.cancel(); in onReceivedHttpAuthRequest()
/cts/tests/tests/sensorprivacy/test-apps/CtsUseMicOrCameraAndOverlayForSensorPrivacy/src/android/sensorprivacy/cts/usemiccamera/overlay/
DUseMicCamera.kt59 val handler = Handler(mainLooper) in onStart() constant
87 handler.postDelayed({ mic = openMic() }, 5000) in onStart()
90 handler.postDelayed({ in onStart()
/cts/tests/framework/base/biometrics/apps/biometrics/src/android/server/biometrics/
DClass2BiometricOrCredentialActivity.java37 final Handler handler = new Handler(Looper.getMainLooper()); in onResume() local
38 final Executor executor = handler::post; in onResume()
DClass2BiometricActivity.java39 final Handler handler = new Handler(Looper.getMainLooper()); in onResume() local
40 final Executor executor = handler::post; in onResume()

123456