/frameworks/libs/net/common/tests/unit/src/com/android/net/module/util/ |
D | PacketReaderTest.java | 76 protected HandlerThread mHandlerThread; field in PacketReaderTest 128 mHandlerThread = new HandlerThread(PacketReaderTest.class.getSimpleName()); in setUp() 129 mHandlerThread.start(); in setUp() 135 mHandlerThread.getThreadHandler().post(() -> mReceiver.stop()); in tearDown() 139 mHandlerThread.quit(); in tearDown() 140 mHandlerThread = null; in tearDown() 164 final Handler h = mHandlerThread.getThreadHandler(); in testBasicWorking() 210 final Handler h = mHandlerThread.getThreadHandler(); in testMinimalRecvBufSize() 220 final Handler h = mHandlerThread.getThreadHandler(); in testStartingFromWrongThread() 227 final Handler h = mHandlerThread.getThreadHandler(); in testStoppingFromWrongThread() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/timezonedetector/ |
D | TimeZoneDetectorInternalImplTest.java | 44 private HandlerThread mHandlerThread; field in TimeZoneDetectorInternalImplTest 53 mHandlerThread = new HandlerThread("TimeZoneDetectorInternalTest"); in setUp() 54 mHandlerThread.start(); in setUp() 55 mTestHandler = new TestHandler(mHandlerThread.getLooper()); in setUp() 65 mHandlerThread.quit(); in tearDown() 66 mHandlerThread.join(); in tearDown()
|
/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/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/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() 113 if (mHandlerThread.isAlive()) { in finalize() 114 mHandlerThread.quit(); in finalize()
|
/frameworks/base/media/java/android/media/ |
D | AudioPortEventHandler.java | 38 private HandlerThread mHandlerThread; field in AudioPortEventHandler 67 mHandlerThread = new HandlerThread(TAG); in init() 68 mHandlerThread.start(); in init() 70 if (mHandlerThread.getLooper() != null) { in init() 71 mHandler = new Handler(mHandlerThread.getLooper()) { in init() 155 if (mHandlerThread.isAlive()) { in finalize() 156 mHandlerThread.quit(); in finalize()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/net/watchlist/ |
D | NetworkWatchlistServiceTests.java | 124 ServiceThread mHandlerThread; field in NetworkWatchlistServiceTests 130 mHandlerThread = new ServiceThread("NetworkWatchlistServiceTests", in setUp() 132 mHandlerThread.start(); in setUp() 134 mHandlerThread.getLooper()); in setUp() 136 mHandlerThread, mWatchlistHandler, null); in setUp() 141 mHandlerThread.quitSafely(); in tearDown() 188 mHandlerThread.getLooper()) { in testNetworkEvents() 214 mHandlerThread.getLooper()) { in testNetworkEvents()
|
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/ |
D | NetworkLogger.java | 56 private ServiceThread mHandlerThread; field in NetworkLogger 134 mHandlerThread = new ServiceThread(TAG, Process.THREAD_PRIORITY_BACKGROUND, in startNetworkLogging() 136 mHandlerThread.start(); in startNetworkLogging() 137 mNetworkLoggingHandler = new NetworkLoggingHandler(mHandlerThread.getLooper(), in startNetworkLogging() 170 if (mHandlerThread != null) { in stopNetworkLogging() 171 mHandlerThread.quitSafely(); in stopNetworkLogging()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/backup/internal/ |
D | BackupHandlerTest.java | 51 private HandlerThread mHandlerThread; field in BackupHandlerTest 62 mHandlerThread = new HandlerThread("BackupHandlerTestThread"); in setUp() 63 mHandlerThread.start(); in setUp() 68 mHandlerThread.quit(); in tearDown() 117 super(mUserBackupManagerService, mHandlerThread); in TestBackupHandler()
|
/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/base/telephony/java/android/telephony/gba/ |
D | GbaService.java | 75 private final HandlerThread mHandlerThread; field in GbaService 85 mHandlerThread = new HandlerThread(TAG); in GbaService() 86 mHandlerThread.start(); in GbaService() 88 mHandler = new GbaServiceHandler(mHandlerThread.getLooper()); in GbaService() 215 mHandlerThread.quit(); in onDestroy()
|
/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() 233 mHandlerThread.join(); in tearDown()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/doze/ |
D | DozeUiTest.java | 77 private HandlerThread mHandlerThread; field in DozeUiTest 88 mHandlerThread = new HandlerThread("DozeUiTest"); in setUp() 89 mHandlerThread.start(); in setUp() 91 mHandler = mHandlerThread.getThreadHandler(); in setUp() 101 mHandlerThread.quit(); in tearDown() 103 mHandlerThread = null; in tearDown()
|
/frameworks/opt/net/ims/tests/src/com/android/ims/rcs/uce/eab/ |
D | EabBulkCapabilityUpdaterTest.java | 57 private HandlerThread mHandlerThread; field in EabBulkCapabilityUpdaterTest 78 mHandlerThread = new HandlerThread("TestThread"); in setUp() 79 mHandlerThread.start(); in setUp() 80 mHandler = mHandlerThread.getThreadHandler(); in setUp() 92 mHandlerThread.quit(); in tearDown()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/ |
D | CallbackHandlerTest.java | 54 private HandlerThread mHandlerThread; field in CallbackHandlerTest 63 mHandlerThread = new HandlerThread("TestThread"); in setUp() 64 mHandlerThread.start(); in setUp() 65 mHandler = new CallbackHandler(mHandlerThread.getLooper()); in setUp() 196 mHandlerThread.quitSafely(); in waitForCallbacks() 198 mHandlerThread.join(); in waitForCallbacks()
|
/frameworks/base/tests/testables/src/android/testing/ |
D | TestableLooper.java | 230 private HandlerThread mHandlerThread; field in TestableLooper.LooperFrameworkMethod 317 mHandlerThread = new HandlerThread(TestableLooper.class.getSimpleName()); in createLooper() 318 mHandlerThread.start(); in createLooper() 319 return mHandlerThread.getLooper(); in createLooper() 325 if (mHandlerThread != null) { in finalize() 326 mHandlerThread.quit(); in finalize()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/timezonedetector/location/ |
D | HandlerThreadingDomainTest.java | 44 private HandlerThread mHandlerThread; field in HandlerThreadingDomainTest 49 mHandlerThread = new HandlerThread("HandlerThreadingDomainTest"); in setUp() 50 mHandlerThread.start(); in setUp() 51 mTestHandler = new Handler(mHandlerThread.getLooper()); in setUp() 56 mHandlerThread.quit(); in tearDown() 57 mHandlerThread.join(); in tearDown()
|
/frameworks/base/telephony/java/android/telephony/data/ |
D | QualifiedNetworksService.java | 71 private final HandlerThread mHandlerThread; field in QualifiedNetworksService 249 mHandlerThread = new HandlerThread(TAG); in QualifiedNetworksService() 250 mHandlerThread.start(); in QualifiedNetworksService() 252 mHandler = new QualifiedNetworksServiceHandler(mHandlerThread.getLooper()); in QualifiedNetworksService() 288 mHandlerThread.quit(); in onDestroy()
|
/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/base/packages/SystemUI/tests/src/com/android/systemui/shared/plugins/ |
D | PluginInstanceManagerTest.java | 75 private HandlerThread mHandlerThread; field in PluginInstanceManagerTest 88 mHandlerThread = new HandlerThread("test_thread"); in setup() 89 mHandlerThread.start(); in setup() 99 mMockListener, true, mHandlerThread.getLooper(), mMockVersionInfo, in setup() 107 mHandlerThread.quit(); in tearDown() 196 mMockListener, true, mHandlerThread.getLooper(), mMockVersionInfo, in testNonDebuggable() 213 mMockListener, true, mHandlerThread.getLooper(), mMockVersionInfo, in testNonDebuggable_whitelist() 257 mMockListener, true, mHandlerThread.getLooper(), mMockVersionInfo, in testDisableWhitelisted()
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
D | SmsPermissionsTest.java | 51 private HandlerThread mHandlerThread; field in SmsPermissionsTest 70 mHandlerThread = new HandlerThread("IccSmsInterfaceManagerTest"); in setUp() 71 mHandlerThread.start(); in setUp() 73 new Handler(mHandlerThread.getLooper()).post(() -> { in setUp() 98 mHandlerThread.quit(); in tearDown() 99 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/base/tests/Input/src/com/android/test/input/ |
D | InputEventSenderAndReceiverTest.kt | 104 private val mHandlerThread = HandlerThread("Process input events") constant in InputEventSenderAndReceiverTest 111 mHandlerThread.start() in setUp() 113 val looper = mHandlerThread.getLooper() in setUp() 120 mHandlerThread.quitSafely() in tearDown()
|
/frameworks/base/tests/ActivityManagerPerfTests/tests/src/com/android/frameworks/perftests/am/tests/ |
D | OomAdjPerfTest.java | 78 private HandlerThread mHandlerThread; field in OomAdjPerfTest 83 mHandlerThread = new HandlerThread("command receiver"); in setUp() 84 mHandlerThread.start(); in setUp() 85 TargetPackageUtils.initCommandResultReceiver(mHandlerThread.getLooper()); in setUp() 103 mHandlerThread.quitSafely(); in tearDown()
|