Home
last modified time | relevance | path

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

12

/cts/tests/tests/telephony/current/LocationAccessingApp/src/android/telephony/cts/locationaccessingapp/
DCtsLocationAccessService.java88 HandlerThread handlerThread = new HandlerThread("Telephony location CTS"); in listenForCellInfo() local
89 handlerThread.start(); in listenForCellInfo()
90 Executor executor = new Handler(handlerThread.getLooper())::post; in listenForCellInfo()
106 handlerThread.quit(); in listenForCellInfo()
112 HandlerThread handlerThread = new HandlerThread("Telephony location CTS"); in listenForCellLocation() local
113 handlerThread.start(); in listenForCellLocation()
114 Executor executor = new Handler(handlerThread.getLooper())::post; in listenForCellLocation()
130 handlerThread.quit(); in listenForCellLocation()
136 HandlerThread handlerThread = new HandlerThread("Telephony location CTS"); in listenForServiceState() local
137 handlerThread.start(); in listenForServiceState()
[all …]
/cts/tests/tests/location/src/android/location/cts/
DLocationManagerTest.java382 HandlerThread handlerThread = new HandlerThread("testLocationUpdates"); in testLocationUpdatesWithLocationListenerAndLooper() local
383 handlerThread.start(); in testLocationUpdatesWithLocationListenerAndLooper()
385 handlerThread.getLooper()); in testLocationUpdatesWithLocationListenerAndLooper()
483 HandlerThread handlerThread = new HandlerThread("testLocationUpdates4"); in testSingleUpdateWithLocationListenerAndLooper() local
484 handlerThread.start(); in testSingleUpdateWithLocationListenerAndLooper()
485 mManager.requestSingleUpdate(TEST_MOCK_PROVIDER_NAME, listener, handlerThread.getLooper()); in testSingleUpdateWithLocationListenerAndLooper()
665 HandlerThread handlerThread = new HandlerThread("testLocationUpdates1"); in testLocationUpdatesWithCriteriaAndLocationListenerAndLooper() local
666 handlerThread.start(); in testLocationUpdatesWithCriteriaAndLocationListenerAndLooper()
668 mManager.requestLocationUpdates(0, 0, criteria, listener, handlerThread.getLooper()); in testLocationUpdatesWithCriteriaAndLocationListenerAndLooper()
723 HandlerThread handlerThread = new HandlerThread("testLocationUpdates2"); in testSingleUpdateWithCriteriaAndLocationListenerAndLooper() local
[all …]
DScanningSettingsTest.java119 final HandlerThread handlerThread = new HandlerThread(TAG); in clickAndWaitForSettingChange() local
120 handlerThread.start(); in clickAndWaitForSettingChange()
122 new Handler(handlerThread.getLooper())) { in clickAndWaitForSettingChange()
136 handlerThread.quit(); in clickAndWaitForSettingChange()
/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/tests/net/src/android/net/cts/
DCaptivePortalApiTest.kt92 private val handlerThread = HandlerThread(CaptivePortalApiTest::class.java.simpleName) constant
125 handlerThread.start() in setUp()
127 handlerThread.threadHandler, in setUp()
130 handlerThread.threadHandler.post { reader.start() } in setUp()
147 handlerThread.threadHandler.post { reader.stop() } in tearDown()
148 handlerThread.quitSafely() in tearDown()
/cts/tests/tests/media/src/android/media/cts/
DAudioFocusTest.java131 final HandlerThread handlerThread = new HandlerThread(TAG); in testNullListenerHandlerNpe() local
132 handlerThread.start(); in testNullListenerHandlerNpe()
133 final Handler h = new Handler(handlerThread.getLooper()); in testNullListenerHandlerNpe()
271 HandlerThread handlerThread = new HandlerThread(TAG); in doTestTwoPlayersGainLoss() local
272 handlerThread.start(); in doTestTwoPlayersGainLoss()
273 h = new Handler(handlerThread.getLooper()); in doTestTwoPlayersGainLoss()
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()
DAudioPlaybackConfigurationTest.java180 HandlerThread handlerThread = new HandlerThread(TAG); in doTestCallbackMediaPlayer() local
181 handlerThread.start(); in doTestCallbackMediaPlayer()
182 h = new Handler(handlerThread.getLooper()); in doTestCallbackMediaPlayer()
247 final HandlerThread handlerThread = new HandlerThread(TAG); in testCallbackMediaPlayerRelease() local
248 handlerThread.start(); in testCallbackMediaPlayerRelease()
249 final Handler h = new Handler(handlerThread.getLooper()); in testCallbackMediaPlayerRelease()
DAudioRecordingConfigurationTest.java163 HandlerThread handlerThread = new HandlerThread(TAG); in doCallbackTest() local
164 handlerThread.start(); in doCallbackTest()
165 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()
DMediaController2Test.java97 HandlerThread handlerThread = new HandlerThread("MediaSessionTestBase"); in setUpThread() local
98 handlerThread.start(); in setUpThread()
99 sHandler = new Handler(handlerThread.getLooper()); in setUpThread()
DMediaSessionManagerTest.java409 HandlerThread handlerThread = new HandlerThread("MediaSessionManagerTest"); in createHandler() local
410 handlerThread.start(); in createHandler()
411 return new Handler(handlerThread.getLooper()); in createHandler()
DMediaPlayerDrmTestBase.java650 final HandlerThread handlerThread = new HandlerThread("ModDrmHandlerThread"); in preparePlayerAndDrm_V5_asyncDrmSetupWithHandler() local
651 handlerThread.start(); in preparePlayerAndDrm_V5_asyncDrmSetupWithHandler()
652 Handler handler = new Handler(handlerThread.getLooper()); in preparePlayerAndDrm_V5_asyncDrmSetupWithHandler()
740 handlerThread.quit(); in preparePlayerAndDrm_V5_asyncDrmSetupWithHandler()
DHeifWriterTest.java119 HandlerThread handlerThread = new HandlerThread( in setUp() local
121 handlerThread.start(); in setUp()
122 mHandler = new Handler(handlerThread.getLooper()); in setUp()
/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/hostsidetests/incident/apps/batterystatsapp/src/com/android/server/cts/device/batterystats/
DBatteryStatsBgVsFgActions.java247 HandlerThread handlerThread = new HandlerThread("doGpsUpdate_bg"); in doGpsUpdate() local
248 handlerThread.start(); in doGpsUpdate()
250 Handler handler = new Handler(handlerThread.getLooper()); in doGpsUpdate()
260 handlerThread.quitSafely(); in doGpsUpdate()
355 HandlerThread handlerThread = new HandlerThread("br_handler_thread"); in registerReceiver() local
356 handlerThread.start(); in registerReceiver()
357 Looper looper = handlerThread.getLooper(); in registerReceiver()
/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/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/statsd/apps/statsdapp/src/com/android/server/cts/device/statsd/
DAtomTests.java191 HandlerThread handlerThread = new HandlerThread("br_handler_thread"); in testCameraState() local
192 handlerThread.start(); in testCameraState()
193 Looper looper = handlerThread.getLooper(); in testCameraState()
501 HandlerThread handlerThread = new HandlerThread("br_handler_thread"); in registerReceiver() local
502 handlerThread.start(); in registerReceiver()
503 Looper looper = handlerThread.getLooper(); in registerReceiver()
/cts/libs/install/src/com/android/cts/install/lib/
DInstallUtils.java220 HandlerThread handlerThread = new HandlerThread("RollbackTestHandlerThread"); in processUserData() local
221 handlerThread.start(); in processUserData()
241 }, new Handler(handlerThread.getLooper()), 0, NO_RESPONSE, null); in processUserData()
/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/tests/provider/src/android/provider/cts/
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/tests/tests/location2/src/android/location2/cts/
DLocationManagerTest.java197 HandlerThread handlerThread = new HandlerThread("testLocationUpdates for "
199 handlerThread.start();
202 providerName, 0, 0, listener, handlerThread.getLooper());
/cts/tests/app/src/android/app/cts/
DWallpaperManagerTest.java77 final HandlerThread handlerThread = new HandlerThread("TestCallbacks"); in setUp() local
78 handlerThread.start(); in setUp()
79 mHandler = new Handler(handlerThread.getLooper()); in setUp()
/cts/hostsidetests/stagedinstall/app/src/com/android/tests/stagedinstall/
DStagedInstallTest.java666 HandlerThread handlerThread = new HandlerThread( in testStagedApkSessionCallbacks() local
668 handlerThread.start(); in testStagedApkSessionCallbacks()
669 Handler handler = new Handler(handlerThread.getLooper()); in testStagedApkSessionCallbacks()
704 handlerThread.quitSafely(); in testStagedApkSessionCallbacks()
705 handlerThread.join(); in testStagedApkSessionCallbacks()

12