Home
last modified time | relevance | path

Searched refs:mHandlerThread (Results 1 – 25 of 67) sorted by relevance

123

/frameworks/libs/net/common/tests/unit/src/com/android/net/module/util/
DPacketReaderTest.java76 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/
DTimeZoneDetectorInternalImplTest.java44 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/
DUiAutomationShellWrapper.java20 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/
DResolverRankerService.java108 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/
DAudioVolumeGroupChangeHandler.java39 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/
DAudioPortEventHandler.java38 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/
DNetworkWatchlistServiceTests.java124 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/
DNetworkLogger.java56 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/
DBackupHandlerTest.java51 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/
DAudioPlaybackHandler.java29 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/
DBpcTestServiceCmdService.java36 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/
DGbaService.java75 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/
DImsRttTextHandlerTest.java77 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/
DDozeUiTest.java77 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/
DEabBulkCapabilityUpdaterTest.java57 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/
DCallbackHandlerTest.java54 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/
DTestableLooper.java230 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/
DHandlerThreadingDomainTest.java44 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/
DQualifiedNetworksService.java71 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/
DNetworkService.java71 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/
DPluginInstanceManagerTest.java75 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/
DSmsPermissionsTest.java51 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/
DNetworkWatchlistService.java105 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/
DInputEventSenderAndReceiverTest.kt104 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/
DOomAdjPerfTest.java78 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()

123