Home
last modified time | relevance | path

Searched refs:handlerThread (Results 1 – 25 of 36) sorted by relevance

12

/cts/tests/tests/telephony/current/LocationAccessingApp/src/android/telephony/cts/locationaccessingapp/
DCtsLocationAccessService.java104 HandlerThread handlerThread = new HandlerThread("Telephony location CTS"); in listenForCellInfo() local
105 handlerThread.start(); in listenForCellInfo()
106 Executor executor = new Handler(handlerThread.getLooper())::post; in listenForCellInfo()
122 handlerThread.quit(); in listenForCellInfo()
128 HandlerThread handlerThread = new HandlerThread("Telephony location CTS"); in listenForCellLocation() local
129 handlerThread.start(); in listenForCellLocation()
130 Executor executor = new Handler(handlerThread.getLooper())::post; in listenForCellLocation()
146 handlerThread.quit(); in listenForCellLocation()
152 HandlerThread handlerThread = new HandlerThread("Telephony location CTS"); in listenForServiceState() local
153 handlerThread.start(); in listenForServiceState()
[all …]
/cts/hostsidetests/media/app/MediaSessionTest/src/android/media/session/cts/
DUtils.java47 final HandlerThread handlerThread = new HandlerThread(TAG); in assertMediaPlaybackStarted() local
48 handlerThread.start(); in assertMediaPlaybackStarted()
54 final Handler handler = new Handler(handlerThread.getLooper()); in assertMediaPlaybackStarted()
72 handlerThread.quitSafely(); in assertMediaPlaybackStarted()
/cts/tests/tests/media/audio/src/android/media/audio/cts/
DAudioFocusTest.java142 final HandlerThread handlerThread = new HandlerThread(TAG); in testNullListenerHandlerNpe() local
143 handlerThread.start(); in testNullListenerHandlerNpe()
144 final Handler h = new Handler(handlerThread.getLooper()); in testNullListenerHandlerNpe()
247 final HandlerThread handlerThread = new HandlerThread(TAG); in testAudioFocusDelayedByCall() local
248 handlerThread.start(); in testAudioFocusDelayedByCall()
249 final Handler handler = new Handler(handlerThread.getLooper()); in testAudioFocusDelayedByCall()
300 handlerThread.quitSafely(); in testAudioFocusDelayedByCall()
323 final HandlerThread handlerThread = new HandlerThread(TAG); in testAudioFocusTransientDelayedByCall() local
324 handlerThread.start(); in testAudioFocusTransientDelayedByCall()
325 final Handler handler = new Handler(handlerThread.getLooper()); in testAudioFocusTransientDelayedByCall()
[all …]
DAudioPlaybackConfigurationTest.java193 HandlerThread handlerThread = new HandlerThread(TAG); in doTestCallbackMediaPlayer() local
194 handlerThread.start(); in doTestCallbackMediaPlayer()
195 h = new Handler(handlerThread.getLooper()); in doTestCallbackMediaPlayer()
262 final HandlerThread handlerThread = new HandlerThread(TAG); in testCallbackMediaPlayerRelease() local
263 handlerThread.start(); in testCallbackMediaPlayerRelease()
264 final Handler h = new Handler(handlerThread.getLooper()); in testCallbackMediaPlayerRelease()
377 final HandlerThread handlerThread = new HandlerThread(TAG); in testGetAudioDeviceInfoMediaPlayerStart()
378 handlerThread.start(); in testGetAudioDeviceInfoMediaPlayerStart()
379 final Handler h = new Handler(handlerThread.getLooper()); in testGetAudioDeviceInfoMediaPlayerStart()
DAudioRecordingConfigurationTest.java165 HandlerThread handlerThread = new HandlerThread(TAG); in doCallbackTest() local
166 handlerThread.start(); in doCallbackTest()
167 h = new Handler(handlerThread.getLooper()); in doCallbackTest()
/cts/tests/tests/webkit/src/android/webkit/cts/
DTestProcessService.java35 HandlerThread handlerThread = new HandlerThread("TestThread"); in TestProcessService() local
36 handlerThread.start(); in TestProcessService()
37 mHandler = new Handler(handlerThread.getLooper()); in TestProcessService()
/cts/hostsidetests/devicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/
DPhoneAccountTest.java106 final HandlerThread handlerThread = new HandlerThread("Observer"); in internalTestOutgoingCall() local
113 handlerThread.start(); in internalTestOutgoingCall()
115 new CalllogContentObserver(new Handler(handlerThread.getLooper()), in internalTestOutgoingCall()
130 handlerThread.quit(); in internalTestOutgoingCall()
187 final HandlerThread handlerThread = new HandlerThread("Observer"); in internalTestIncomingCall() local
194 handlerThread.start(); in internalTestIncomingCall()
196 new CalllogContentObserver(new Handler(handlerThread.getLooper()), in internalTestIncomingCall()
212 handlerThread.quit(); in internalTestIncomingCall()
/cts/tests/input/src/android/input/cts/
DIncompleteMotionTest.kt115 val handlerThread = HandlerThread("Receive broadcast from overlay activity") in testIncompleteMotion() constant
116 handlerThread.start() in testIncompleteMotion()
117 val looper: Looper = handlerThread.looper in testIncompleteMotion()
127 handlerThread.quit() in testIncompleteMotion()
/cts/tests/tests/sensorprivacy/test-apps/utils/src/android/sensorprivacy/cts/testapp/utils/
DUtils.kt71 val handlerThread = HandlerThread("CameraThread") in openCam() constant
72 handlerThread.start() in openCam()
73 val handler = Handler(handlerThread.looper) in openCam()
142 return Cam(cameraDevice.join(), handlerThread) in openCam()
/cts/libs/install/src/com/android/cts/install/lib/
DInstallUtils.java226 HandlerThread handlerThread = new HandlerThread("RollbackTestHandlerThread"); in processUserData() local
227 handlerThread.start(); in processUserData()
247 }, new Handler(handlerThread.getLooper()), 0, NO_RESPONSE, null); in processUserData()
275 HandlerThread handlerThread = new HandlerThread("RollbackTestHandlerThread"); in getUserDataVersion() local
276 handlerThread.start(); in getUserDataVersion()
290 }, new Handler(handlerThread.getLooper()), noResponse, null, null); in getUserDataVersion()
/cts/hostsidetests/devicepolicy/app/IntentReceiver/src/com/android/cts/intent/receiver/
DIntentReceiverActivity.java129 HandlerThread handlerThread = new HandlerThread("observer"); in onCreate() local
130 handlerThread.start(); in onCreate()
131 UriObserver uriObserver = new UriObserver(new Handler(handlerThread.getLooper())); in onCreate()
138 handlerThread.quit(); in onCreate()
/cts/tests/tests/media/common/src/android/media/cts/
DUtils.java153 final HandlerThread handlerThread = new HandlerThread(TAG); in assertMediaPlaybackStarted() local
154 handlerThread.start(); in assertMediaPlaybackStarted()
160 final Handler handler = new Handler(handlerThread.getLooper()); in assertMediaPlaybackStarted()
178 handlerThread.quitSafely(); in assertMediaPlaybackStarted()
/cts/hostsidetests/inputmethodservice/deviceside/devicetest/src/android/inputmethodservice/cts/devicetest/
DDirectShellCommand.java105 final HandlerThread handlerThread = new HandlerThread("ShellCommandResultReceiver"); in createBackgroundLooper() local
106 handlerThread.start(); in createBackgroundLooper()
107 return handlerThread.getLooper(); in createBackgroundLooper()
/cts/tests/location/location_fine/src/android/location/cts/fine/
DScanningSettingsTest.java174 final HandlerThread handlerThread = new HandlerThread(TAG); in clickAndWaitForSettingChange() local
175 handlerThread.start(); in clickAndWaitForSettingChange()
177 new Handler(handlerThread.getLooper())) { in clickAndWaitForSettingChange()
191 handlerThread.quit(); in clickAndWaitForSettingChange()
/cts/hostsidetests/devicepolicy/app/IntentSender/src/com/android/cts/intent/sender/
DContentTest.java192 HandlerThread handlerThread = new HandlerThread("observer"); in testCanNotifyAcrossProfiles() local
193 handlerThread.start(); in testCanNotifyAcrossProfiles()
194 UriObserver uriObserver = new UriObserver(new Handler(handlerThread.getLooper())); in testCanNotifyAcrossProfiles()
202 handlerThread.quit(); in testCanNotifyAcrossProfiles()
/cts/hostsidetests/multidevices/wifi_aware/snippet/
DWifiAwareSnippet.java52 private final HandlerThread handlerThread; field in WifiAwareSnippet
64 handlerThread = new HandlerThread("Snippet-Aware"); in WifiAwareSnippet()
65 handlerThread.start(); in WifiAwareSnippet()
66 handler = new Handler(handlerThread.getLooper()); in WifiAwareSnippet()
/cts/hostsidetests/devicepolicy/app/WidgetProvider/src/com/android/cts/widgetprovider/
DSimpleAppWidgetHostService.java143 HandlerThread handlerThread = new HandlerThread("Widget test callback handler"); in setup() local
144 handlerThread.start(); in setup()
145 mMessenger = new Messenger(new CheckHandler(handlerThread.getLooper())); in setup()
/cts/tests/inputmethod/mocka11yime/client/src/com/android/cts/mocka11yime/
DMockA11yImeSession.java197 final HandlerThread handlerThread = new HandlerThread("EventReceiver"); in create() local
198 handlerThread.start(); in create()
201 new Handler(handlerThread.getLooper()), Context.RECEIVER_EXPORTED); in create()
241 handlerThread.quitSafely(); in create()
/cts/tests/translation/src/android/translation/cts/
DCtsTranslationService.java76 final HandlerThread handlerThread = new HandlerThread("CtsTranslationServiceWorker"); in CtsTranslationService() local
77 handlerThread.start(); in CtsTranslationService()
78 mHandler = Handler.createAsync(handlerThread.getLooper()); in CtsTranslationService()
/cts/tests/tests/provider/src/android/provider/cts/settings/
DSettingsTest.java313 HandlerThread handlerThread = new HandlerThread("MyThread"); in testUriChangesUpdatingFromDifferentProcesses() local
314 handlerThread.start(); in testUriChangesUpdatingFromDifferentProcesses()
319 false, new ContentObserver(new Handler(handlerThread.getLooper())) { in testUriChangesUpdatingFromDifferentProcesses()
347 handlerThread.quit(); in testUriChangesUpdatingFromDifferentProcesses()
/cts/hostsidetests/incident/apps/batterystatsapp/src/com/android/server/cts/device/batterystats/
DBatteryStatsBgVsFgActions.java306 HandlerThread handlerThread = new HandlerThread("br_handler_thread"); in registerReceiver() local
307 handlerThread.start(); in registerReceiver()
308 Looper looper = handlerThread.getLooper(); in registerReceiver()
/cts/tests/tests/media/misc/src/android/media/misc/cts/
DMediaSession2ServiceTest.java78 HandlerThread handlerThread = new HandlerThread("MediaSession2ServiceTest"); in setUpThread() local
79 handlerThread.start(); in setUpThread()
80 sHandlerExecutor = new HandlerExecutor(handlerThread.getLooper()); in setUpThread()
DMediaControllerTest.java478 HandlerThread handlerThread = new HandlerThread("Test thread"); in testRegisteringSameCallbackWithDifferentHandlerHasNoEffect() local
479 handlerThread.start(); in testRegisteringSameCallbackWithDifferentHandlerHasNoEffect()
482 mController.registerCallback(callback, new Handler(handlerThread.getLooper())); in testRegisteringSameCallbackWithDifferentHandlerHasNoEffect()
487 assertNotEquals(handlerThread.getLooper(), currentHandlerInController.getLooper()); in testRegisteringSameCallbackWithDifferentHandlerHasNoEffect()
489 handlerThread.quitSafely(); in testRegisteringSameCallbackWithDifferentHandlerHasNoEffect()
DMediaController2Test.java97 HandlerThread handlerThread = new HandlerThread("MediaSessionTestBase"); in setUpThread() local
98 handlerThread.start(); in setUpThread()
99 sHandler = new Handler(handlerThread.getLooper()); in setUpThread()
/cts/tests/app/src/android/app/cts/
DWallpaperManagerTest.java86 final HandlerThread handlerThread = new HandlerThread("TestCallbacks"); in setUp() local
87 handlerThread.start(); in setUp()
88 mHandler = new Handler(handlerThread.getLooper()); in setUp()

12