Home
last modified time | relevance | path

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

/cts/tests/tests/media/src/android/media/cts/
DMediaSessionManagerTest.java118 HandlerThread handlerThread = new HandlerThread(TAG); in testSetOnVolumeKeyLongPressListener() local
119 handlerThread.start(); in testSetOnVolumeKeyLongPressListener()
120 Handler handler = new Handler(handlerThread.getLooper()); in testSetOnVolumeKeyLongPressListener()
150 HandlerThread handlerThread = new HandlerThread(TAG); in testSetOnMediaKeyListener() local
151 handlerThread.start(); in testSetOnMediaKeyListener()
152 Handler handler = new Handler(handlerThread.getLooper()); in testSetOnMediaKeyListener()
218 HandlerThread handlerThread = new HandlerThread(TAG); in testRemoteUserInfo() local
219 handlerThread.start(); in testRemoteUserInfo()
220 Handler handler = new Handler(handlerThread.getLooper()); in testRemoteUserInfo()
DUtils.java132 final HandlerThread handlerThread = new HandlerThread(TAG); in assertMediaPlaybackStarted() local
133 handlerThread.start(); in assertMediaPlaybackStarted()
139 final Handler handler = new Handler(handlerThread.getLooper()); in assertMediaPlaybackStarted()
157 handlerThread.quitSafely(); in assertMediaPlaybackStarted()
DAudioFocusTest.java127 final HandlerThread handlerThread = new HandlerThread(TAG); in testNullListenerHandlerNpe() local
128 handlerThread.start(); in testNullListenerHandlerNpe()
129 final Handler h = new Handler(handlerThread.getLooper()); in testNullListenerHandlerNpe()
240 HandlerThread handlerThread = new HandlerThread(TAG); in doTestTwoPlayersGainLoss() local
241 handlerThread.start(); in doTestTwoPlayersGainLoss()
242 h = new Handler(handlerThread.getLooper()); in doTestTwoPlayersGainLoss()
DAudioPlaybackConfigurationTest.java173 HandlerThread handlerThread = new HandlerThread(TAG); in doTestCallbackMediaPlayer() local
174 handlerThread.start(); in doTestCallbackMediaPlayer()
175 h = new Handler(handlerThread.getLooper()); in doTestCallbackMediaPlayer()
240 final HandlerThread handlerThread = new HandlerThread(TAG); in testCallbackMediaPlayerRelease() local
241 handlerThread.start(); in testCallbackMediaPlayerRelease()
242 final Handler h = new Handler(handlerThread.getLooper()); in testCallbackMediaPlayerRelease()
DMediaSession2TestBase.java76 HandlerThread handlerThread = new HandlerThread("MediaSession2TestBase"); in setUpThread() local
77 handlerThread.start(); in setUpThread()
78 sHandler = new TestUtils.SyncHandler(handlerThread.getLooper()); in setUpThread()
DAudioRecordingConfigurationTest.java160 HandlerThread handlerThread = new HandlerThread(TAG); in doCallbackTest() local
161 handlerThread.start(); in doCallbackTest()
162 h = new Handler(handlerThread.getLooper()); in doCallbackTest()
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.java121 HandlerThread handlerThread = new HandlerThread( in setUp() local
123 handlerThread.start(); in setUp()
124 mHandler = new Handler(handlerThread.getLooper()); in setUp()
/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.java445 HandlerThread handlerThread = new HandlerThread("testLocationUpdates"); in testLocationUpdatesWithLocationListenerAndLooper() local
446 handlerThread.start(); in testLocationUpdatesWithLocationListenerAndLooper()
448 handlerThread.getLooper()); in testLocationUpdatesWithLocationListenerAndLooper()
546 HandlerThread handlerThread = new HandlerThread("testLocationUpdates4"); in testSingleUpdateWithLocationListenerAndLooper() local
547 handlerThread.start(); in testSingleUpdateWithLocationListenerAndLooper()
548 mManager.requestSingleUpdate(TEST_MOCK_PROVIDER_NAME, listener, handlerThread.getLooper()); in testSingleUpdateWithLocationListenerAndLooper()
728 HandlerThread handlerThread = new HandlerThread("testLocationUpdates1"); in testLocationUpdatesWithCriteriaAndLocationListenerAndLooper() local
729 handlerThread.start(); in testLocationUpdatesWithCriteriaAndLocationListenerAndLooper()
731 mManager.requestLocationUpdates(0, 0, criteria, listener, handlerThread.getLooper()); in testLocationUpdatesWithCriteriaAndLocationListenerAndLooper()
786 HandlerThread handlerThread = new HandlerThread("testLocationUpdates2"); in testSingleUpdateWithCriteriaAndLocationListenerAndLooper() local
[all …]
/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/devicepolicy/app/IntentSender/src/com/android/cts/intent/sender/
DContentTest.java191 HandlerThread handlerThread = new HandlerThread("observer"); in testCanNotifyAcrossProfiles() local
192 handlerThread.start(); in testCanNotifyAcrossProfiles()
193 UriObserver uriObserver = new UriObserver(new Handler(handlerThread.getLooper())); in testCanNotifyAcrossProfiles()
201 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.java189 HandlerThread handlerThread = new HandlerThread("br_handler_thread"); in testCameraState() local
190 handlerThread.start(); in testCameraState()
191 Looper looper = handlerThread.getLooper(); in testCameraState()
443 HandlerThread handlerThread = new HandlerThread("br_handler_thread"); in registerReceiver() local
444 handlerThread.start(); in registerReceiver()
445 Looper looper = handlerThread.getLooper(); in registerReceiver()
/cts/tests/tests/provider/src/android/provider/cts/
DSettingsTest.java277 HandlerThread handlerThread = new HandlerThread("MyThread"); in testUriChangesUpdatingFromDifferentProcesses() local
278 handlerThread.start(); in testUriChangesUpdatingFromDifferentProcesses()
283 false, new ContentObserver(new Handler(handlerThread.getLooper())) { in testUriChangesUpdatingFromDifferentProcesses()
311 handlerThread.quit(); in testUriChangesUpdatingFromDifferentProcesses()
/cts/tests/tests/location2/src/android/location2/cts/
DLocationManagerTest.java174 HandlerThread handlerThread = new HandlerThread("testLocationUpdates for " in doTestGetLocationUpdates_withListener() local
176 handlerThread.start(); in doTestGetLocationUpdates_withListener()
179 providerName, 0, 0, listener, handlerThread.getLooper()); in doTestGetLocationUpdates_withListener()
/cts/tests/app/src/android/app/cts/
DWallpaperManagerTest.java76 final HandlerThread handlerThread = new HandlerThread("TestCallbacks"); in setUp() local
77 handlerThread.start(); in setUp()
78 mHandler = new Handler(handlerThread.getLooper()); in setUp()
/cts/hostsidetests/incident/apps/batterystatsapp/src/com/android/server/cts/device/batterystats/
DBatteryStatsBgVsFgActions.java341 HandlerThread handlerThread = new HandlerThread("br_handler_thread"); in registerReceiver() local
342 handlerThread.start(); in registerReceiver()
343 Looper looper = handlerThread.getLooper(); in registerReceiver()
/cts/tests/sensor/src/android/hardware/cts/
DSensorTest.java422 HandlerThread handlerThread = new HandlerThread("sensorThread"); in testBatchAndFlushWithHandler() local
423 handlerThread.start(); in testBatchAndFlushWithHandler()
424 Handler handler = new Handler(handlerThread.getLooper()); in testBatchAndFlushWithHandler()
/cts/tests/tests/accounts/src/android/accounts/cts/
DAccountManagerTest.java1369 final HandlerThread handlerThread = new HandlerThread("accounts.test"); in testGetAuthTokenWithCallback_Options_Handler_DefaultToken_Success() local
1370 handlerThread.start(); in testGetAuthTokenWithCallback_Options_Handler_DefaultToken_Success()
1402 new Handler(handlerThread.getLooper())); in testGetAuthTokenWithCallback_Options_Handler_DefaultToken_Success()
1429 final HandlerThread handlerThread = new HandlerThread("accounts.test"); in testGetAuthTokenWithCallback_Options_Handler_CustomToken_Success() local
1430 handlerThread.start(); in testGetAuthTokenWithCallback_Options_Handler_CustomToken_Success()
1462 new Handler(handlerThread.getLooper())); in testGetAuthTokenWithCallback_Options_Handler_CustomToken_Success()