Home
last modified time | relevance | path

Searched refs:handlerThread (Results 1 – 25 of 26) 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/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/location/src/android/location/cts/
DLocationManagerTest.java379 HandlerThread handlerThread = new HandlerThread("testLocationUpdates"); in testLocationUpdatesWithLocationListenerAndLooper() local
380 handlerThread.start(); in testLocationUpdatesWithLocationListenerAndLooper()
382 handlerThread.getLooper()); in testLocationUpdatesWithLocationListenerAndLooper()
480 HandlerThread handlerThread = new HandlerThread("testLocationUpdates4"); in testSingleUpdateWithLocationListenerAndLooper() local
481 handlerThread.start(); in testSingleUpdateWithLocationListenerAndLooper()
482 mManager.requestSingleUpdate(TEST_MOCK_PROVIDER_NAME, listener, handlerThread.getLooper()); in testSingleUpdateWithLocationListenerAndLooper()
662 HandlerThread handlerThread = new HandlerThread("testLocationUpdates1"); in testLocationUpdatesWithCriteriaAndLocationListenerAndLooper() local
663 handlerThread.start(); in testLocationUpdatesWithCriteriaAndLocationListenerAndLooper()
665 mManager.requestLocationUpdates(0, 0, criteria, listener, handlerThread.getLooper()); in testLocationUpdatesWithCriteriaAndLocationListenerAndLooper()
720 HandlerThread handlerThread = new HandlerThread("testLocationUpdates2"); in testSingleUpdateWithCriteriaAndLocationListenerAndLooper() local
[all …]
/cts/tests/tests/media/src/android/media/cts/
DAudioFocusTest.java130 final HandlerThread handlerThread = new HandlerThread(TAG); in testNullListenerHandlerNpe() local
131 handlerThread.start(); in testNullListenerHandlerNpe()
132 final Handler h = new Handler(handlerThread.getLooper()); in testNullListenerHandlerNpe()
270 HandlerThread handlerThread = new HandlerThread(TAG); in doTestTwoPlayersGainLoss() local
271 handlerThread.start(); in doTestTwoPlayersGainLoss()
272 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.java162 HandlerThread handlerThread = new HandlerThread(TAG); in doCallbackTest() local
163 handlerThread.start(); in doCallbackTest()
164 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.java394 HandlerThread handlerThread = new HandlerThread("MediaSessionManagerTest"); in createHandler() local
395 handlerThread.start(); in createHandler()
396 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()
DMediaSession2Test.java85 HandlerThread handlerThread = new HandlerThread("MediaSessionTestBase"); in setUpThread() local
86 handlerThread.start(); in setUpThread()
87 sHandler = new Handler(handlerThread.getLooper()); in setUpThread()
/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.java234 HandlerThread handlerThread = new HandlerThread("doGpsUpdate_bg"); in doGpsUpdate() local
235 handlerThread.start(); in doGpsUpdate()
237 Handler handler = new Handler(handlerThread.getLooper()); in doGpsUpdate()
247 handlerThread.quitSafely(); in doGpsUpdate()
342 HandlerThread handlerThread = new HandlerThread("br_handler_thread"); in registerReceiver() local
343 handlerThread.start(); in registerReceiver()
344 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/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/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/tests/tests/provider/src/android/provider/cts/
DSettingsTest.java309 HandlerThread handlerThread = new HandlerThread("MyThread"); in testUriChangesUpdatingFromDifferentProcesses() local
310 handlerThread.start(); in testUriChangesUpdatingFromDifferentProcesses()
315 false, new ContentObserver(new Handler(handlerThread.getLooper())) { in testUriChangesUpdatingFromDifferentProcesses()
343 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.java75 final HandlerThread handlerThread = new HandlerThread("TestCallbacks"); in setUp() local
76 handlerThread.start(); in setUp()
77 mHandler = new Handler(handlerThread.getLooper()); in setUp()
/cts/hostsidetests/stagedinstall/app/src/com/android/tests/stagedinstall/
DStagedInstallTest.java579 HandlerThread handlerThread = new HandlerThread( in testStagedApkSessionCallbacks() local
581 handlerThread.start(); in testStagedApkSessionCallbacks()
582 Handler handler = new Handler(handlerThread.getLooper()); in testStagedApkSessionCallbacks()
618 handlerThread.quitSafely(); in testStagedApkSessionCallbacks()
619 handlerThread.join(); in testStagedApkSessionCallbacks()
/cts/tests/tests/assist/src/android/assist/cts/
DAssistTestBase.java164 HandlerThread handlerThread = new HandlerThread("AssistTestCallbackReceivingThread"); in registerForAsyncReceivingCallback() local
165 handlerThread.start(); in registerForAsyncReceivingCallback()
166 Handler handler = new Handler(handlerThread.getLooper()); in registerForAsyncReceivingCallback()
/cts/tests/sensor/src/android/hardware/cts/
DSensorTest.java451 HandlerThread handlerThread = new HandlerThread("sensorThread"); in testBatchAndFlushWithHandler() local
452 handlerThread.start(); in testBatchAndFlushWithHandler()
453 Handler handler = new Handler(handlerThread.getLooper()); in testBatchAndFlushWithHandler()

12