Home
last modified time | relevance | path

Searched refs:handlerThread (Results 1 – 25 of 31) 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/tests/tests/media/src/android/media/cts/
DAudioFocusTest.java140 final HandlerThread handlerThread = new HandlerThread(TAG); in testNullListenerHandlerNpe() local
141 handlerThread.start(); in testNullListenerHandlerNpe()
142 final Handler h = new Handler(handlerThread.getLooper()); in testNullListenerHandlerNpe()
253 final HandlerThread handlerThread = new HandlerThread(TAG); in testAudioFocusRequestMediaGainLossWithPlayer() local
254 handlerThread.start(); in testAudioFocusRequestMediaGainLossWithPlayer()
255 final Handler handler = new Handler(handlerThread.getLooper()); in testAudioFocusRequestMediaGainLossWithPlayer()
302 handlerThread.quitSafely(); in testAudioFocusRequestMediaGainLossWithPlayer()
380 final HandlerThread handlerThread = new HandlerThread(TAG); in doTwoFocusOwnerOnePlayerFocusLoss() local
381 handlerThread.start(); in doTwoFocusOwnerOnePlayerFocusLoss()
382 final Handler handler = new Handler(handlerThread.getLooper()); in doTwoFocusOwnerOnePlayerFocusLoss()
[all …]
DAudioPlaybackConfigurationTest.java199 HandlerThread handlerThread = new HandlerThread(TAG); in doTestCallbackMediaPlayer() local
200 handlerThread.start(); in doTestCallbackMediaPlayer()
201 h = new Handler(handlerThread.getLooper()); in doTestCallbackMediaPlayer()
270 final HandlerThread handlerThread = new HandlerThread(TAG); in testCallbackMediaPlayerRelease() local
271 handlerThread.start(); in testCallbackMediaPlayerRelease()
272 final Handler h = new Handler(handlerThread.getLooper()); in testCallbackMediaPlayerRelease()
388 final HandlerThread handlerThread = new HandlerThread(TAG); in testGetAudioDeviceInfoMediaPlayerStart()
389 handlerThread.start(); in testGetAudioDeviceInfoMediaPlayerStart()
390 final Handler h = new Handler(handlerThread.getLooper()); in testGetAudioDeviceInfoMediaPlayerStart()
DUtils.java155 final HandlerThread handlerThread = new HandlerThread(TAG); in assertMediaPlaybackStarted() local
156 handlerThread.start(); in assertMediaPlaybackStarted()
163 final Handler handler = new Handler(handlerThread.getLooper()); in assertMediaPlaybackStarted()
182 handlerThread.quitSafely(); in assertMediaPlaybackStarted()
DAudioRecordingConfigurationTest.java164 HandlerThread handlerThread = new HandlerThread(TAG); in doCallbackTest() local
165 handlerThread.start(); in doCallbackTest()
166 h = new Handler(handlerThread.getLooper()); in doCallbackTest()
DMediaSession2ServiceTest.java77 HandlerThread handlerThread = new HandlerThread("MediaSession2ServiceTest"); in setUpThread() local
78 handlerThread.start(); in setUpThread()
79 sHandlerExecutor = new HandlerExecutor(handlerThread.getLooper()); in setUpThread()
DMediaControllerTest.java477 HandlerThread handlerThread = new HandlerThread("Test thread"); in testRegisteringSameCallbackWithDifferentHandlerHasNoEffect() local
478 handlerThread.start(); in testRegisteringSameCallbackWithDifferentHandlerHasNoEffect()
481 mController.registerCallback(callback, new Handler(handlerThread.getLooper())); in testRegisteringSameCallbackWithDifferentHandlerHasNoEffect()
486 assertNotEquals(handlerThread.getLooper(), currentHandlerInController.getLooper()); in testRegisteringSameCallbackWithDifferentHandlerHasNoEffect()
488 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()
DMediaPlayerDrmTestBase.java659 final HandlerThread handlerThread = new HandlerThread("ModDrmHandlerThread"); in preparePlayerAndDrm_V5_asyncDrmSetupWithHandler() local
660 handlerThread.start(); in preparePlayerAndDrm_V5_asyncDrmSetupWithHandler()
661 Handler handler = new Handler(handlerThread.getLooper()); in preparePlayerAndDrm_V5_asyncDrmSetupWithHandler()
749 handlerThread.quit(); in preparePlayerAndDrm_V5_asyncDrmSetupWithHandler()
DHeifWriterTest.java136 HandlerThread handlerThread = new HandlerThread( in setUp() local
138 handlerThread.start(); in setUp()
139 mHandler = new Handler(handlerThread.getLooper()); in setUp()
DMediaSessionManagerTest.java523 HandlerThread handlerThread = new HandlerThread("MediaSessionManagerTest"); in createHandler() local
524 handlerThread.start(); in createHandler()
525 return new Handler(handlerThread.getLooper()); in createHandler()
/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.kt111 val handlerThread = HandlerThread("Receive broadcast from overlay activity") in testIncompleteMotion() constant
112 handlerThread.start() in testIncompleteMotion()
113 val looper: Looper = handlerThread.looper in testIncompleteMotion()
123 handlerThread.quit() in testIncompleteMotion()
/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/libs/install/src/com/android/cts/install/lib/
DInstallUtils.java273 HandlerThread handlerThread = new HandlerThread("RollbackTestHandlerThread"); in processUserData() local
274 handlerThread.start(); in processUserData()
294 }, new Handler(handlerThread.getLooper()), 0, NO_RESPONSE, null); in processUserData()
322 HandlerThread handlerThread = new HandlerThread("RollbackTestHandlerThread"); in getUserDataVersion() local
323 handlerThread.start(); in getUserDataVersion()
337 }, new Handler(handlerThread.getLooper()), noResponse, null, null); in getUserDataVersion()
/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.java169 final HandlerThread handlerThread = new HandlerThread(TAG); in clickAndWaitForSettingChange() local
170 handlerThread.start(); in clickAndWaitForSettingChange()
172 new Handler(handlerThread.getLooper())) { in clickAndWaitForSettingChange()
186 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/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/translation/src/android/translation/cts/
DCtsTranslationService.java74 final HandlerThread handlerThread = new HandlerThread("CtsTranslationServiceWorker"); in CtsTranslationService() local
75 handlerThread.start(); in CtsTranslationService()
76 mHandler = Handler.createAsync(handlerThread.getLooper()); in CtsTranslationService()
/cts/tests/tests/provider/src/android/provider/cts/settings/
DSettingsTest.java310 HandlerThread handlerThread = new HandlerThread("MyThread"); in testUriChangesUpdatingFromDifferentProcesses() local
311 handlerThread.start(); in testUriChangesUpdatingFromDifferentProcesses()
316 false, new ContentObserver(new Handler(handlerThread.getLooper())) { in testUriChangesUpdatingFromDifferentProcesses()
344 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/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()
/cts/hostsidetests/statsdatom/apps/statsdapp/src/com/android/server/cts/device/statsdatom/
DAtomTests.java435 HandlerThread handlerThread = new HandlerThread("br_handler_thread"); in testCameraState() local
436 handlerThread.start(); in testCameraState()
437 Looper looper = handlerThread.getLooper(); in testCameraState()
1063 HandlerThread handlerThread = new HandlerThread("br_handler_thread"); in registerReceiver() local
1064 handlerThread.start(); in registerReceiver()
1065 Looper looper = handlerThread.getLooper(); in registerReceiver()
/cts/tests/sensor/src/android/hardware/cts/
DSensorTest.java481 HandlerThread handlerThread = new HandlerThread("sensorThread"); in testBatchAndFlushWithHandler() local
482 handlerThread.start(); in testBatchAndFlushWithHandler()
483 Handler handler = new Handler(handlerThread.getLooper()); in testBatchAndFlushWithHandler()

12