Home
last modified time | relevance | path

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

/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/ethernet/java/com/android/server/ethernet/
DEthernetServiceImpl.java78 HandlerThread handlerThread = new HandlerThread("EthernetServiceThread"); in start() local
79 handlerThread.start(); in start()
80 mHandler = new Handler(handlerThread.getLooper()); in start()
/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/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()
/frameworks/base/core/tests/bugreports/src/android/server/bugreports/
DBugreportManagerTest.java203 HandlerThread handlerThread = new HandlerThread("BugreportManagerTest"); in createHandler() local
204 handlerThread.start(); in createHandler()
205 return new Handler(handlerThread.getLooper()); in createHandler()
/frameworks/base/services/core/java/com/android/server/rollback/
DRollbackPackageHealthObserver.java95 HandlerThread handlerThread = new HandlerThread("RollbackPackageHealthObserver"); in RollbackPackageHealthObserver() local
96 handlerThread.start(); in RollbackPackageHealthObserver()
97 mHandler = handlerThread.getThreadHandler(); in RollbackPackageHealthObserver()
/frameworks/base/services/core/java/com/android/server/net/
DNetworkStatsObservers.java126 HandlerThread handlerThread = new HandlerThread(TAG); in getHandlerLooperLocked() local
127 handlerThread.start(); in getHandlerLooperLocked()
128 return handlerThread.getLooper(); in getHandlerLooperLocked()
DNetworkStatsService.java441 final HandlerThread handlerThread = mDeps.makeHandlerThread(); in NetworkStatsService() local
442 handlerThread.start(); in NetworkStatsService()
443 mHandler = new NetworkStatsHandler(handlerThread.getLooper()); in NetworkStatsService()
/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/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/tests/mockingservicestests/src/com/android/server/appop/
DAppOpsServiceTest.java135 HandlerThread handlerThread = new HandlerThread(TAG); in setUp() local
136 handlerThread.start(); in setUp()
137 mHandler = new Handler(handlerThread.getLooper()); in setUp()
/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/services/robotests/backup/src/com/android/server/backup/restore/
DActiveRestoreSessionTest.java121 HandlerThread handlerThread = startBackupThread(null); in setUp() local
122 Looper backupLooper = handlerThread.getLooper(); in setUp()
133 BackupHandler backupHandler = new BackupHandler(mBackupManagerService, handlerThread); in setUp()
/frameworks/base/tests/net/java/com/android/server/
DConnectivityServiceTest.java1008 final HandlerThread handlerThread = new HandlerThread("MockVpnThread"); in startHandlerThreadAndReturnLooper() local
1009 handlerThread.start(); in startHandlerThreadAndReturnLooper()
1010 return handlerThread.getLooper(); in startHandlerThreadAndReturnLooper()
2347 final HandlerThread handlerThread = new HandlerThread("testNetworkFactoryRequests"); in tryNetworkFactoryRequests() local
2348 handlerThread.start(); in tryNetworkFactoryRequests()
2349 final MockNetworkFactory testFactory = new MockNetworkFactory(handlerThread.getLooper(), in tryNetworkFactoryRequests()
2425 handlerThread.quit(); in tryNetworkFactoryRequests()
2453 final HandlerThread handlerThread = new HandlerThread("testNetworkFactoryRequests"); in testNetworkFactoryUnregister() local
2454 handlerThread.start(); in testNetworkFactoryUnregister()
2459 final MockNetworkFactory testFactory = new MockNetworkFactory(handlerThread.getLooper(), in testNetworkFactoryUnregister()
[all …]
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DWifiServiceImplTest.java3139 HandlerThread handlerThread = createAndStartHandlerThreadForRunWithScissors(); in setupClientModeImplHandlerForRunWithScissors() local
3140 mHandlerSpyForCmiRunWithScissors = spy(handlerThread.getThreadHandler()); in setupClientModeImplHandlerForRunWithScissors()
3146 HandlerThread handlerThread = new HandlerThread("ServiceHandlerThreadForTest"); in createAndStartHandlerThreadForRunWithScissors() local
3147 handlerThread.start(); in createAndStartHandlerThreadForRunWithScissors()
3148 return handlerThread; in createAndStartHandlerThreadForRunWithScissors()
/frameworks/base/services/core/java/com/android/server/stats/
DStatsCompanionService.java374 HandlerThread handlerThread = new HandlerThread(TAG); in StatsCompanionService() local
375 handlerThread.start(); in StatsCompanionService()
376 mHandler = new CompanionHandler(handlerThread.getLooper()); in StatsCompanionService()
/frameworks/base/services/core/java/com/android/server/am/
DActivityManagerService.java2421 public ActivityManagerService(Injector injector, ServiceThread handlerThread) { in ActivityManagerService() argument
2422 final boolean hasHandlerThread = handlerThread != null; in ActivityManagerService()
2430 mHandler = hasHandlerThread ? new MainHandler(handlerThread.getLooper()) : null; in ActivityManagerService()
2431 mHandlerThread = handlerThread; in ActivityManagerService()
2452 ? new PendingIntentController(handlerThread.getLooper(), mUserController) : null; in ActivityManagerService()