Home
last modified time | relevance | path

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

/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DPhoneSwitcherTest.java61 HandlerThread handlerThread; field in PhoneSwitcherTest.TestHandler
68 if(handlerThread != null) { in die()
69 handlerThread.quit(); in die()
70 handlerThread = null; in die()
86 final HandlerThread handlerThread = new HandlerThread("TestHandler"); in makeHandler() local
87 handlerThread.start(); in makeHandler()
88 final TestHandler result = new TestHandler(handlerThread.getLooper()); in makeHandler()
89 result.handlerThread = handlerThread; in makeHandler()
189 final HandlerThread handlerThread = new HandlerThread("PhoneSwitcherTestThread"); in testRegister() local
190 handlerThread.start(); in testRegister()
[all …]
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/java/com/android/internal/util/
DTestUtils.java32 public static void waitForIdleHandler(HandlerThread handlerThread, long timeoutMs) { in waitForIdleHandler() argument
34 waitForIdleLooper(handlerThread.getLooper(), timeoutMs); in waitForIdleHandler()
/frameworks/base/core/java/android/app/
DQueuedWork.java102 HandlerThread handlerThread = new HandlerThread("queued-work-looper", in getHandler() local
104 handlerThread.start(); in getHandler()
106 sHandler = new QueuedWorkHandler(handlerThread.getLooper()); in getHandler()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/dataconnection/
DTelephonyNetworkFactoryTest.java63 final HandlerThread handlerThread; field in TelephonyNetworkFactoryTest.TestSetup
72 handlerThread = new HandlerThread("TelephonyNetworkFactoryTest") { in TestSetup()
81 handlerThread.start(); in TestSetup()
90 looper = handlerThread.getLooper(); in TestSetup()
114 handlerThread.quit(); in die()
/frameworks/opt/net/ethernet/java/com/android/server/ethernet/
DEthernetServiceImpl.java86 HandlerThread handlerThread = new HandlerThread("EthernetServiceThread"); in start() local
87 handlerThread.start(); in start()
88 mHandler = new Handler(handlerThread.getLooper()); in start()
/frameworks/base/services/tests/servicestests/src/com/android/server/am/
DUserControllerTest.java110 mInjector.handlerThread.quit(); in tearDown()
322 HandlerThread handlerThread; field in UserControllerTest.TestInjector
333 handlerThread = new HandlerThread(TAG); in TestInjector()
334 handlerThread.start(); in TestInjector()
335 handler = new TestHandler(handlerThread.getLooper()); in TestInjector()
/frameworks/base/services/core/java/com/android/server/net/
DNetworkStatsObservers.java129 HandlerThread handlerThread = new HandlerThread(TAG); in getHandlerLooperLocked() local
130 handlerThread.start(); in getHandlerLooperLocked()
131 return handlerThread.getLooper(); in getHandlerLooperLocked()
DNetworkStatsService.java294 HandlerThread handlerThread = new HandlerThread(TAG); in create() local
296 handlerThread.start(); in create()
297 Handler handler = new Handler(handlerThread.getLooper(), callback); in create()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/aware/
DWifiAwareServiceImpl.java85 public void start(HandlerThread handlerThread, WifiAwareStateManager awareStateManager, in start() argument
92 mStateManager.start(mContext, handlerThread.getLooper(), awareMetrics, permissionsWrapper); in start()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/
DStatusBarTest.java159 HandlerThread handlerThread = new HandlerThread("TestThread"); in setup() local
160 handlerThread.start(); in setup()
162 new Handler(handlerThread.getLooper())); in setup()
/frameworks/base/cmds/pm/src/com/android/commands/pm/
DPm.java331 final HandlerThread handlerThread = new HandlerThread("results"); in runShellCommand() local
332 handlerThread.start(); in runShellCommand()
337 new ResultReceiver(new Handler(handlerThread.getLooper()))); in runShellCommand()
342 handlerThread.quitSafely(); in runShellCommand()
/frameworks/base/tests/net/java/com/android/server/
DConnectivityServiceTest.java1804 final HandlerThread handlerThread = new HandlerThread("testNetworkFactoryRequests"); in tryNetworkFactoryRequests() local
1805 handlerThread.start(); in tryNetworkFactoryRequests()
1806 final MockNetworkFactory testFactory = new MockNetworkFactory(handlerThread.getLooper(), in tryNetworkFactoryRequests()
1879 handlerThread.quit(); in tryNetworkFactoryRequests()
2571 final HandlerThread handlerThread = new HandlerThread("MobileDataAlwaysOnFactory"); in testMobileDataAlwaysOn() local
2572 handlerThread.start(); in testMobileDataAlwaysOn()
2576 final MockNetworkFactory testFactory = new MockNetworkFactory(handlerThread.getLooper(), in testMobileDataAlwaysOn()
2626 handlerThread.quit(); in testMobileDataAlwaysOn()