Home
last modified time | relevance | path

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

/frameworks/opt/net/ethernet/java/com/android/server/ethernet/
DEthernetServiceImpl.java81 HandlerThread handlerThread = new HandlerThread("EthernetServiceThread"); in start() local
82 handlerThread.start(); in start()
83 mHandler = new Handler(handlerThread.getLooper()); in start()
/frameworks/base/core/java/android/app/
DQueuedWork.java105 HandlerThread handlerThread = new HandlerThread("queued-work-looper", in getHandler() local
107 handlerThread.start(); in getHandler()
109 sHandler = new QueuedWorkHandler(handlerThread.getLooper()); in getHandler()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/rtt/
DRttService.java62 HandlerThread handlerThread = wifiInjector.getRttHandlerThread(); in onBootPhase() local
70 mImpl.start(handlerThread.getLooper(), wifiInjector.getClock(), awareBinder, rttNative, in onBootPhase()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DSubscriptionMonitorTest.java60 HandlerThread handlerThread; field in SubscriptionMonitorTest.TestHandler
67 if(handlerThread != null) { in die()
68 handlerThread.quit(); in die()
69 handlerThread = null; in die()
85 final HandlerThread handlerThread = new HandlerThread("TestHandler"); in makeHandler() local
86 handlerThread.start(); in makeHandler()
87 final TestHandler result = new TestHandler(handlerThread.getLooper()); in makeHandler()
88 result.handlerThread = handlerThread; in makeHandler()
/frameworks/base/tests/net/util/java/com/android/internal/util/
DTestUtils.java39 public static void waitForIdleHandler(HandlerThread handlerThread, long timeoutMs) { in waitForIdleHandler() argument
40 waitForIdleLooper(handlerThread.getLooper(), timeoutMs); in waitForIdleHandler()
/frameworks/base/services/tests/servicestests/src/com/android/server/appop/
DAppOpsUpgradeTest.java126 HandlerThread handlerThread = new HandlerThread(TAG); in setUp() local
127 handlerThread.start(); in setUp()
128 mHandler = new Handler(handlerThread.getLooper()); in setUp()
DAppOpsServiceTest.java92 HandlerThread handlerThread = new HandlerThread(TAG); in setUp() local
93 handlerThread.start(); in setUp()
94 mHandler = new Handler(handlerThread.getLooper()); in setUp()
/frameworks/base/core/tests/bugreports/src/android/server/bugreports/
DBugreportManagerTest.java223 HandlerThread handlerThread = new HandlerThread("BugreportManagerTest"); in createHandler() local
224 handlerThread.start(); in createHandler()
225 return new Handler(handlerThread.getLooper()); in createHandler()
/frameworks/base/services/core/java/com/android/server/rollback/
DRollbackPackageHealthObserver.java87 HandlerThread handlerThread = new HandlerThread("RollbackPackageHealthObserver"); in RollbackPackageHealthObserver() local
88 handlerThread.start(); in RollbackPackageHealthObserver()
89 mHandler = handlerThread.getThreadHandler(); in RollbackPackageHealthObserver()
/frameworks/base/tests/RollbackTest/RollbackTest/src/com/android/tests/rollback/
DRollbackTestUtils.java464 HandlerThread handlerThread = new HandlerThread("RollbackTestHandlerThread"); in processUserData() local
465 handlerThread.start(); in processUserData()
485 }, new Handler(handlerThread.getLooper()), 0, NO_RESPONSE, null); in processUserData()
494 handlerThread.quit(); in processUserData()
/frameworks/base/services/core/java/com/android/server/net/watchlist/
DNetworkWatchlistService.java125 NetworkWatchlistService(Context context, ServiceThread handlerThread, in NetworkWatchlistService() argument
129 mHandlerThread = handlerThread; in NetworkWatchlistService()
/frameworks/base/services/core/java/com/android/server/net/
DNetworkStatsObservers.java127 HandlerThread handlerThread = new HandlerThread(TAG); in getHandlerLooperLocked() local
128 handlerThread.start(); in getHandlerLooperLocked()
129 return handlerThread.getLooper(); in getHandlerLooperLocked()
DNetworkStatsService.java348 HandlerThread handlerThread = new HandlerThread(TAG); in create() local
350 handlerThread.start(); in create()
351 Handler handler = new NetworkStatsHandler(handlerThread.getLooper(), callback); in create()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/aware/
DWifiAwareServiceImpl.java96 public void start(HandlerThread handlerThread, WifiAwareStateManager awareStateManager, in start() argument
107 mStateManager.start(mContext, handlerThread.getLooper(), awareMetrics, wifiPermissionsUtil, in start()
112 new ContentObserver(new Handler(handlerThread.getLooper())) { in start()
/frameworks/base/services/core/java/com/android/server/slice/
DSliceManagerService.java525 ServiceThread handlerThread = new ServiceThread(TAG, in createHandler() local
527 handlerThread.start(); in createHandler()
528 return handlerThread; in createHandler()
/frameworks/base/tests/net/java/com/android/server/
DConnectivityServiceTest.java981 final HandlerThread handlerThread = new HandlerThread("MockVpnThread"); in startHandlerThreadAndReturnLooper() local
982 handlerThread.start(); in startHandlerThreadAndReturnLooper()
983 return handlerThread.getLooper(); in startHandlerThreadAndReturnLooper()
2486 final HandlerThread handlerThread = new HandlerThread("testNetworkFactoryRequests"); in tryNetworkFactoryRequests() local
2487 handlerThread.start(); in tryNetworkFactoryRequests()
2488 final MockNetworkFactory testFactory = new MockNetworkFactory(handlerThread.getLooper(), in tryNetworkFactoryRequests()
2564 handlerThread.quit(); in tryNetworkFactoryRequests()
3602 final HandlerThread handlerThread = new HandlerThread("MobileDataAlwaysOnFactory"); in testMobileDataAlwaysOn() local
3603 handlerThread.start(); in testMobileDataAlwaysOn()
3607 final MockNetworkFactory testFactory = new MockNetworkFactory(handlerThread.getLooper(), in testMobileDataAlwaysOn()
[all …]
/frameworks/base/media/apex/java/android/media/
DMediaPlayer2.java1108 HandlerThread handlerThread = mHandlerThread;
1109 if (handlerThread != null && Looper.myLooper() != handlerThread.getLooper()) {
1148 HandlerThread handlerThread = mHandlerThread;
1149 if (handlerThread != null && Looper.myLooper() != handlerThread.getLooper()) {
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DWifiServiceImplTest.java3004 HandlerThread handlerThread = createAndStartHandlerThreadForRunWithScissors(); in setupClientModeImplHandlerForRunWithScissors() local
3005 mHandlerSpyForCmiRunWithScissors = spy(handlerThread.getThreadHandler()); in setupClientModeImplHandlerForRunWithScissors()
3011 HandlerThread handlerThread = new HandlerThread("ServiceHandlerThreadForTest"); in createAndStartHandlerThreadForRunWithScissors() local
3012 handlerThread.start(); in createAndStartHandlerThreadForRunWithScissors()
3013 return handlerThread; in createAndStartHandlerThreadForRunWithScissors()
/frameworks/base/services/core/java/com/android/server/stats/
DStatsCompanionService.java372 HandlerThread handlerThread = new HandlerThread(TAG); in StatsCompanionService() local
373 handlerThread.start(); in StatsCompanionService()
374 mHandler = new CompanionHandler(handlerThread.getLooper()); in StatsCompanionService()
/frameworks/base/services/core/java/com/android/server/am/
DActivityManagerService.java2396 public ActivityManagerService(Injector injector, ServiceThread handlerThread) { in ActivityManagerService() argument
2397 final boolean hasHandlerThread = handlerThread != null; in ActivityManagerService()
2405 mHandler = hasHandlerThread ? new MainHandler(handlerThread.getLooper()) : null; in ActivityManagerService()
2406 mHandlerThread = handlerThread; in ActivityManagerService()
2426 ? new PendingIntentController(handlerThread.getLooper(), mUserController) : null; in ActivityManagerService()