/frameworks/libs/net/common/tests/unit/src/com/android/net/module/util/ |
D | PacketReaderTest.java | 78 protected HandlerThread mHandlerThread; field in PacketReaderTest 131 mHandlerThread = new HandlerThread(PacketReaderTest.class.getSimpleName()); in setUp() 132 mHandlerThread.start(); in setUp() 138 mHandlerThread.getThreadHandler().post(() -> mReceiver.stop()); in tearDown() 142 mHandlerThread.quit(); in tearDown() 143 mHandlerThread = null; in tearDown() 167 final Handler h = mHandlerThread.getThreadHandler(); in testBasicWorking() 213 final Handler h = mHandlerThread.getThreadHandler(); in testMinimalRecvBufSize() 223 final Handler h = mHandlerThread.getThreadHandler(); in testStartingFromWrongThread() 230 final Handler h = mHandlerThread.getThreadHandler(); in testStoppingFromWrongThread() [all …]
|
/frameworks/base/media/java/android/media/audiopolicy/ |
D | AudioVolumeGroupChangeHandler.java | 39 private HandlerThread mHandlerThread; field in AudioVolumeGroupChangeHandler 63 mHandlerThread = new HandlerThread(TAG); in init() 64 mHandlerThread.start(); in init() 66 if (mHandlerThread.getLooper() == null) { in init() 70 mHandler = new Handler(mHandlerThread.getLooper()) { in init() 112 if (mHandlerThread.isAlive()) { in finalize() 113 mHandlerThread.quit(); in finalize()
|
/frameworks/base/core/java/android/service/resolver/ |
D | ResolverRankerService.java | 108 private HandlerThread mHandlerThread; field in ResolverRankerService 117 if (mHandlerThread == null) { in onBind() 118 mHandlerThread = new HandlerThread(HANDLER_THREAD_NAME); in onBind() 119 mHandlerThread.start(); in onBind() 120 mHandler = new Handler(mHandlerThread.getLooper()); in onBind() 131 if (mHandlerThread != null) { in onDestroy() 132 mHandlerThread.quitSafely(); in onDestroy()
|
/frameworks/base/cmds/uiautomator/library/testrunner-src/com/android/uiautomator/core/ |
D | UiAutomationShellWrapper.java | 20 private final HandlerThread mHandlerThread = new HandlerThread(HANDLER_THREAD_NAME); field in UiAutomationShellWrapper 25 if (mHandlerThread.isAlive()) { in connect() 28 mHandlerThread.start(); in connect() 29 mUiAutomation = new UiAutomation(mHandlerThread.getLooper(), in connect() 62 if (!mHandlerThread.isAlive()) { in disconnect() 66 mHandlerThread.quit(); in disconnect()
|
/frameworks/base/media/java/android/media/ |
D | AudioPortEventHandler.java | 37 private HandlerThread mHandlerThread; field in AudioPortEventHandler 66 mHandlerThread = new HandlerThread(TAG); in init() 67 mHandlerThread.start(); in init() 69 if (mHandlerThread.getLooper() != null) { in init() 70 mHandler = new Handler(mHandlerThread.getLooper()) { in init() 153 if (mHandlerThread.isAlive()) { in finalize() 154 mHandlerThread.quit(); in finalize()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/net/watchlist/ |
D | NetworkWatchlistServiceTests.java | 111 ServiceThread mHandlerThread; field in NetworkWatchlistServiceTests 117 mHandlerThread = new ServiceThread("NetworkWatchlistServiceTests", in setUp() 119 mHandlerThread.start(); in setUp() 121 mHandlerThread.getLooper()); in setUp() 123 mHandlerThread, mWatchlistHandler, null); in setUp() 128 mHandlerThread.quitSafely(); in tearDown() 175 mHandlerThread.getLooper()) { in testNetworkEvents() 201 mHandlerThread.getLooper()) { in testNetworkEvents()
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/scanner/ |
D | WifiScanningService.java | 31 private final HandlerThread mHandlerThread; field in WifiScanningService 36 mHandlerThread = new HandlerThread("WifiScanningService"); in WifiScanningService() 37 mHandlerThread.start(); in WifiScanningService() 38 mImpl = new WifiScanningServiceImpl(getContext(), mHandlerThread.getLooper(), in WifiScanningService()
|
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/ |
D | NetworkLogger.java | 51 private ServiceThread mHandlerThread; field in NetworkLogger 113 mHandlerThread = new ServiceThread(TAG, Process.THREAD_PRIORITY_BACKGROUND, in startNetworkLogging() 115 mHandlerThread.start(); in startNetworkLogging() 116 mNetworkLoggingHandler = new NetworkLoggingHandler(mHandlerThread.getLooper(), in startNetworkLogging() 149 if (mHandlerThread != null) { in stopNetworkLogging() 150 mHandlerThread.quitSafely(); in stopNetworkLogging()
|
/frameworks/base/core/java/android/speech/tts/ |
D | AudioPlaybackHandler.java | 29 private final Thread mHandlerThread; field in AudioPlaybackHandler 34 mHandlerThread = new Thread(new MessageLoop(), "TTS.AudioPlaybackThread"); in AudioPlaybackHandler() 38 mHandlerThread.start(); in start() 89 mHandlerThread.interrupt(); in quit()
|
/frameworks/base/core/tests/coretests/BinderProxyCountingTestService/src/com/android/frameworks/coretests/binderproxycountingtestservice/ |
D | BpcTestServiceCmdService.java | 36 HandlerThread mHandlerThread; field in BpcTestServiceCmdService 97 mHandlerThread = new HandlerThread("BinderProxyCountingServiceThread"); in onCreate() 98 mHandlerThread.start(); in onCreate() 99 mHandler = new Handler(mHandlerThread.getLooper()); in onCreate()
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ims/ |
D | FeatureConnectorTest.java | 55 private HandlerThread mHandlerThread; field in FeatureConnectorTest 72 mHandlerThread = new HandlerThread("ConnectorHandlerThread"); in setUp() 73 mHandlerThread.start(); in setUp() 76 mListener, mExecutor, mHandlerThread.getLooper()); in setUp() 82 mHandlerThread.quit(); in tearDown()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/doze/ |
D | DozeUiTest.java | 70 private HandlerThread mHandlerThread; field in DozeUiTest 77 mHandlerThread = new HandlerThread("DozeUiTest"); in setUp() 78 mHandlerThread.start(); in setUp() 80 mHandler = mHandlerThread.getThreadHandler(); in setUp() 88 mHandlerThread.quit(); in tearDown() 90 mHandlerThread = null; in tearDown()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/timezonedetector/ |
D | TimeZoneDetectorServiceTest.java | 53 private HandlerThread mHandlerThread; field in TimeZoneDetectorServiceTest 62 mHandlerThread = new HandlerThread("TimeZoneDetectorServiceTest"); in setUp() 63 mHandlerThread.start(); in setUp() 64 mTestHandler = new TestHandler(mHandlerThread.getLooper()); in setUp() 74 mHandlerThread.quit(); in tearDown() 75 mHandlerThread.join(); in tearDown()
|
/frameworks/base/telephony/java/android/telephony/data/ |
D | QualifiedNetworksService.java | 69 private final HandlerThread mHandlerThread; field in QualifiedNetworksService 230 mHandlerThread = new HandlerThread(TAG); in QualifiedNetworksService() 231 mHandlerThread.start(); in QualifiedNetworksService() 233 mHandler = new QualifiedNetworksServiceHandler(mHandlerThread.getLooper()); in QualifiedNetworksService() 269 mHandlerThread.quit(); in onDestroy()
|
/frameworks/base/tests/testables/src/android/testing/ |
D | TestableLooper.java | 230 private HandlerThread mHandlerThread; field in TestableLooper.LooperFrameworkMethod 314 mHandlerThread = new HandlerThread(TestableLooper.class.getSimpleName()); in createLooper() 315 mHandlerThread.start(); in createLooper() 316 return mHandlerThread.getLooper(); in createLooper() 322 if (mHandlerThread != null) { in finalize() 323 mHandlerThread.quit(); in finalize()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/timedetector/ |
D | TimeDetectorServiceTest.java | 57 private HandlerThread mHandlerThread; field in TimeDetectorServiceTest 66 mHandlerThread = new HandlerThread("TimeDetectorServiceTest"); in setUp() 67 mHandlerThread.start(); in setUp() 68 mTestHandler = new TestHandler(mHandlerThread.getLooper()); in setUp() 78 mHandlerThread.quit(); in tearDown() 79 mHandlerThread.join(); in tearDown()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/shared/plugins/ |
D | PluginInstanceManagerTest.java | 76 private HandlerThread mHandlerThread; field in PluginInstanceManagerTest 89 mHandlerThread = new HandlerThread("test_thread"); in setup() 90 mHandlerThread.start(); in setup() 100 mMockListener, true, mHandlerThread.getLooper(), mMockVersionInfo, in setup() 108 mHandlerThread.quit(); in tearDown() 198 mMockListener, true, mHandlerThread.getLooper(), mMockVersionInfo, in testNonDebuggable() 215 mMockListener, true, mHandlerThread.getLooper(), mMockVersionInfo, in testNonDebuggable_whitelist() 259 mMockListener, true, mHandlerThread.getLooper(), mMockVersionInfo, in testDisableWhitelisted()
|
/frameworks/base/telephony/java/android/telephony/ |
D | NetworkService.java | 71 private final HandlerThread mHandlerThread; field in NetworkService 225 mHandlerThread = new HandlerThread(TAG); in NetworkService() 226 mHandlerThread.start(); in NetworkService() 228 mHandler = new NetworkServiceHandler(mHandlerThread.getLooper()); in NetworkService() 268 mHandlerThread.quit(); in onDestroy()
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
D | SmsPermissionsTest.java | 53 private HandlerThread mHandlerThread; field in SmsPermissionsTest 72 mHandlerThread = new HandlerThread("IccSmsInterfaceManagerTest"); in setUp() 73 mHandlerThread.start(); in setUp() 75 new Handler(mHandlerThread.getLooper()).post(() -> { in setUp() 100 mHandlerThread.quit(); in tearDown() 101 mHandlerThread.join(); in tearDown()
|
/frameworks/base/services/core/java/com/android/server/net/watchlist/ |
D | NetworkWatchlistService.java | 105 private final ServiceThread mHandlerThread; field in NetworkWatchlistService 115 mHandlerThread = new ServiceThread(TAG, Process.THREAD_PRIORITY_BACKGROUND, in NetworkWatchlistService() 117 mHandlerThread.start(); in NetworkWatchlistService() 119 mHandlerThread.getLooper()); in NetworkWatchlistService() 129 mHandlerThread = handlerThread; in NetworkWatchlistService()
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/imsphone/ |
D | ImsRttTextHandlerTest.java | 77 HandlerThread mHandlerThread; field in ImsRttTextHandlerTest 87 mHandlerThread = new HandlerThread("TestImsRttTextHandler"); in setUp() 88 mHandlerThread.start(); in setUp() 89 mRttTextHandler = new ImsRttTextHandler(mHandlerThread.getLooper(), mNetworkWriter); in setUp() 232 mHandlerThread.quit(); in tearDown()
|
/frameworks/base/tests/net/common/java/android/net/ |
D | NetworkProviderTest.kt | 50 private val mHandlerThread = HandlerThread("${javaClass.simpleName} handler thread") in <lambda>() constant in android.net.NetworkProviderTest 55 mHandlerThread.start() in <lambda>() 60 mHandlerThread.quitSafely() in <lambda>() 91 return TestNetworkProvider(context, mHandlerThread.looper) in <lambda>() 126 val agent = object : NetworkAgent(context, mHandlerThread.looper, "TestAgent", nc, lp, in <lambda>()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/ |
D | CallbackHandlerTest.java | 51 private HandlerThread mHandlerThread; field in CallbackHandlerTest 60 mHandlerThread = new HandlerThread("TestThread"); in setUp() 61 mHandlerThread.start(); in setUp() 62 mHandler = new CallbackHandler(mHandlerThread.getLooper()); in setUp() 204 mHandlerThread.quitSafely(); in waitForCallbacks() 206 mHandlerThread.join(); in waitForCallbacks()
|
/frameworks/base/tests/net/integration/util/com/android/server/ |
D | NetworkAgentWrapper.java | 60 private final HandlerThread mHandlerThread; field in NetworkAgentWrapper 105 mHandlerThread = new HandlerThread(mLogTag); in NetworkAgentWrapper() 106 mHandlerThread.start(); in NetworkAgentWrapper() 120 super(wrapper.mHandlerThread.getLooper(), wrapper.mContext, wrapper.mLogTag, in InstrumentedNetworkAgent() 268 HandlerUtilsKt.waitForIdle(mHandlerThread, timeoutMs); in waitForIdle()
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/gsm/ |
D | UsimDataDownloadTest.java.broken | 60 private TestHandlerThread mHandlerThread; 67 mHandlerThread = new TestHandlerThread(); 68 mHandlerThread.start(); 69 mHandler = mHandlerThread.getHandler(); 75 mHandlerThread.quit();
|