Home
last modified time | relevance | path

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

/cts/hostsidetests/devicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/
DPhoneAccountTest.java101 final HandlerThread handlerThread = new HandlerThread("Observer"); in internalTestOutgoingCall() local
108 handlerThread.start(); in internalTestOutgoingCall()
110 new CalllogContentObserver(new Handler(handlerThread.getLooper()), in internalTestOutgoingCall()
125 handlerThread.quit(); in internalTestOutgoingCall()
153 final HandlerThread handlerThread = new HandlerThread("Observer"); in testIncomingCall() local
160 handlerThread.start(); in testIncomingCall()
162 new CalllogContentObserver(new Handler(handlerThread.getLooper()), in testIncomingCall()
176 handlerThread.quit(); in testIncomingCall()
/cts/tests/tests/location/src/android/location/cts/
DLocationManagerTest.java444 HandlerThread handlerThread = new HandlerThread("testLocationUpdates"); in testLocationUpdatesWithLocationListenerAndLooper() local
445 handlerThread.start(); in testLocationUpdatesWithLocationListenerAndLooper()
447 handlerThread.getLooper()); in testLocationUpdatesWithLocationListenerAndLooper()
545 HandlerThread handlerThread = new HandlerThread("testLocationUpdates4"); in testSingleUpdateWithLocationListenerAndLooper() local
546 handlerThread.start(); in testSingleUpdateWithLocationListenerAndLooper()
547 mManager.requestSingleUpdate(TEST_MOCK_PROVIDER_NAME, listener, handlerThread.getLooper()); in testSingleUpdateWithLocationListenerAndLooper()
727 HandlerThread handlerThread = new HandlerThread("testLocationUpdates1"); in testLocationUpdatesWithCriteriaAndLocationListenerAndLooper() local
728 handlerThread.start(); in testLocationUpdatesWithCriteriaAndLocationListenerAndLooper()
730 mManager.requestLocationUpdates(0, 0, criteria, listener, handlerThread.getLooper()); in testLocationUpdatesWithCriteriaAndLocationListenerAndLooper()
785 HandlerThread handlerThread = new HandlerThread("testLocationUpdates2"); in testSingleUpdateWithCriteriaAndLocationListenerAndLooper() local
[all …]
/cts/tests/tests/media/src/android/media/cts/
DAudioFocusTest.java123 final HandlerThread handlerThread = new HandlerThread(TAG); in testNullListenerHandlerNpe() local
124 handlerThread.start(); in testNullListenerHandlerNpe()
125 final Handler h = new Handler(handlerThread.getLooper()); in testNullListenerHandlerNpe()
209 HandlerThread handlerThread = new HandlerThread(TAG); in doTestTwoPlayersGainLoss() local
210 handlerThread.start(); in doTestTwoPlayersGainLoss()
211 h = new Handler(handlerThread.getLooper()); in doTestTwoPlayersGainLoss()
DMediaSessionManagerTest.java113 HandlerThread handlerThread = new HandlerThread(TAG); in testSetOnVolumeKeyLongPressListener() local
114 handlerThread.start(); in testSetOnVolumeKeyLongPressListener()
115 Handler handler = new Handler(handlerThread.getLooper()); in testSetOnVolumeKeyLongPressListener()
145 HandlerThread handlerThread = new HandlerThread(TAG); in testSetOnMediaKeyListener() local
146 handlerThread.start(); in testSetOnMediaKeyListener()
147 Handler handler = new Handler(handlerThread.getLooper()); in testSetOnMediaKeyListener()
DUtils.java170 final HandlerThread handlerThread = new HandlerThread(TAG); in assertMediaPlaybackStarted() local
171 handlerThread.start(); in assertMediaPlaybackStarted()
177 final Handler handler = new Handler(handlerThread.getLooper()); in assertMediaPlaybackStarted()
195 handlerThread.quitSafely(); in assertMediaPlaybackStarted()
DAudioRecordingConfigurationTest.java155 HandlerThread handlerThread = new HandlerThread(TAG); in doCallbackTest() local
156 handlerThread.start(); in doCallbackTest()
157 h = new Handler(handlerThread.getLooper()); in doCallbackTest()
DAudioPlaybackConfigurationTest.java172 HandlerThread handlerThread = new HandlerThread(TAG); in doTestCallbackMediaPlayer() local
173 handlerThread.start(); in doTestCallbackMediaPlayer()
174 h = new Handler(handlerThread.getLooper()); in doTestCallbackMediaPlayer()
DMediaPlayerDrmTestBase.java649 final HandlerThread handlerThread = new HandlerThread("ModDrmHandlerThread"); in preparePlayerAndDrm_V5_asyncDrmSetupWithHandler() local
650 handlerThread.start(); in preparePlayerAndDrm_V5_asyncDrmSetupWithHandler()
651 Handler handler = new Handler(handlerThread.getLooper()); in preparePlayerAndDrm_V5_asyncDrmSetupWithHandler()
739 handlerThread.quit(); in preparePlayerAndDrm_V5_asyncDrmSetupWithHandler()
/cts/hostsidetests/devicepolicy/app/IntentReceiver/src/com/android/cts/intent/receiver/
DIntentReceiverActivity.java123 HandlerThread handlerThread = new HandlerThread("observer"); in onCreate() local
124 handlerThread.start(); in onCreate()
125 UriObserver uriObserver = new UriObserver(new Handler(handlerThread.getLooper())); in onCreate()
132 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/tests/tests/uirendering/src/android/uirendering/cts/testinfrastructure/
DDrawActivity.java61 HandlerThread handlerThread = new HandlerThread("FrameMetrics"); in onCreate() local
62 handlerThread.start(); in onCreate()
73 }, new Handler(handlerThread.getLooper())); in onCreate()
/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.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.java173 HandlerThread handlerThread = new HandlerThread("testLocationUpdates for " in doTestGetLocationUpdates_withListener() local
175 handlerThread.start(); in doTestGetLocationUpdates_withListener()
178 providerName, 0, 0, listener, handlerThread.getLooper()); in doTestGetLocationUpdates_withListener()
/cts/hostsidetests/incident/apps/batterystatsapp/src/com/android/server/cts/device/batterystats/
DBatteryStatsBgVsFgActions.java328 HandlerThread handlerThread = new HandlerThread("br_handler_thread"); in registerReceiver() local
329 handlerThread.start(); in registerReceiver()
330 Looper looper = handlerThread.getLooper(); in registerReceiver()
/cts/tests/sensor/src/android/hardware/cts/
DSensorTest.java352 HandlerThread handlerThread = new HandlerThread("sensorThread"); in testBatchAndFlushWithHandler() local
353 handlerThread.start(); in testBatchAndFlushWithHandler()
354 Handler handler = new Handler(handlerThread.getLooper()); in testBatchAndFlushWithHandler()
/cts/tests/tests/accounts/src/android/accounts/cts/
DAccountManagerTest.java1357 final HandlerThread handlerThread = new HandlerThread("accounts.test"); in testGetAuthTokenWithCallback_Options_Handler_DefaultToken_Success() local
1358 handlerThread.start(); in testGetAuthTokenWithCallback_Options_Handler_DefaultToken_Success()
1390 new Handler(handlerThread.getLooper())); in testGetAuthTokenWithCallback_Options_Handler_DefaultToken_Success()
1417 final HandlerThread handlerThread = new HandlerThread("accounts.test"); in testGetAuthTokenWithCallback_Options_Handler_CustomToken_Success() local
1418 handlerThread.start(); in testGetAuthTokenWithCallback_Options_Handler_CustomToken_Success()
1450 new Handler(handlerThread.getLooper())); in testGetAuthTokenWithCallback_Options_Handler_CustomToken_Success()
/cts/tools/dex-tools/dex/
Dclasses.out.dex131427 com.android.internal.os.HandlerThread handlerThread
131654 com.android.internal.os.HandlerThread handlerThread