Home
last modified time | relevance | path

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

12

/cts/tests/tests/attributionsource/src/android/attributionsource/cts/
DAttributionSourceActivity.kt33 private var mHandlerThread: HandlerThread? = null variable in android.attributionsource.cts.AttributionSourceActivity
40 mHandlerThread = HandlerThread("AttributionSourceActivityHandlerThread") in onCreate()
41 mHandlerThread!!.start() in onCreate()
42 val handler = Handler(mHandlerThread!!.getLooper()) in onCreate()
59 if (mHandlerThread != null) { in onDestroy()
60 mHandlerThread!!.quitSafely() in onDestroy()
61 mHandlerThread = null in onDestroy()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/wifi/
DBaseTestCase.java40 private HandlerThread mHandlerThread; field in BaseTestCase
109 mHandlerThread = new HandlerThread("CtsVerifier-Wifi"); in start()
110 mHandlerThread.start(); in start()
111 mHandler = new Handler(mHandlerThread.getLooper()); in start()
151 if (mHandlerThread != null) { in stop()
152 mHandlerThread.quitSafely(); in stop()
153 mHandlerThread = null; in stop()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/wifiaware/
DBaseTestCase.java36 private HandlerThread mHandlerThread; field in BaseTestCase
85 mHandlerThread = new HandlerThread("CtsVerifier-Aware"); in start()
86 mHandlerThread.start(); in start()
87 mHandler = new Handler(mHandlerThread.getLooper()); in start()
126 if (mHandlerThread != null) { in stop()
127 mHandlerThread.quitSafely(); in stop()
128 mHandlerThread = null; in stop()
/cts/tests/media/common/src/android/mediav2/common/cts/
DImageSurface.java50 private HandlerThread mHandlerThread; field in ImageSurface
119 mHandlerThread = new HandlerThread(LOG_TAG); in createSurface()
120 mHandlerThread.start(); in createSurface()
121 mHandler = new Handler(mHandlerThread.getLooper()); in createSurface()
170 if (mHandlerThread != null) { in release()
171 mHandlerThread.quitSafely(); in release()
172 mHandlerThread = null; in release()
/cts/tests/tests/telephony/current/src/android/telephony/embms/cts/
DMbmsGroupCallTestBase.java146 HandlerThread mHandlerThread; field in MbmsGroupCallTestBase
159 mHandlerThread = new HandlerThread("EmbmsCtsTestWorker"); in setUp()
160 mHandlerThread.start(); in setUp()
161 mCallbackExecutor = (new Handler(mHandlerThread.getLooper()))::post; in setUp()
170 if (mHandlerThread != null) { in tearDown()
171 mHandlerThread.quit(); in tearDown()
172 mHandlerThread = null; in tearDown()
183 mHandlerThread.quit(); in tearDown()
DMbmsStreamingTestBase.java124 HandlerThread mHandlerThread; field in MbmsStreamingTestBase
137 mHandlerThread = new HandlerThread("EmbmsCtsTestWorker"); in setUp()
138 mHandlerThread.start(); in setUp()
139 mCallbackExecutor = (new Handler(mHandlerThread.getLooper()))::post; in setUp()
153 mHandlerThread.quit(); in tearDown()
DMbmsDownloadTestBase.java134 HandlerThread mHandlerThread; field in MbmsDownloadTestBase
148 mHandlerThread = new HandlerThread("EmbmsCtsTestWorker"); in setUp()
149 mHandlerThread.start(); in setUp()
150 mHandler = new Handler(mHandlerThread.getLooper()); in setUp()
172 mHandlerThread.quit(); in tearDown()
/cts/tests/tests/telephony/current/EmbmsMiddlewareTestApp/src/android/telephony/cts/embmstestapp/
DCtsGroupCallService.java60 private HandlerThread mHandlerThread; field in CtsGroupCallService
186 mHandlerThread.quitSafely(); in onDestroy()
200 if (mHandlerThread != null && mHandlerThread.isAlive()) { in onBind()
204 mHandlerThread = new HandlerThread("CtsGroupCallServiceWorker"); in onBind()
205 mHandlerThread.start(); in onBind()
206 mHandler = new Handler(mHandlerThread.getLooper()); in onBind()
DCtsStreamingService.java82 private HandlerThread mHandlerThread; field in CtsStreamingService
232 mHandlerThread.quitSafely(); in onDestroy()
244 if (mHandlerThread != null && mHandlerThread.isAlive()) { in onBind()
248 mHandlerThread = new HandlerThread("CtsStreamingServiceWorker"); in onBind()
249 mHandlerThread.start(); in onBind()
250 mHandler = new Handler(mHandlerThread.getLooper(), mWorkerCallback); in onBind()
DCtsDownloadService.java132 private HandlerThread mHandlerThread; field in CtsDownloadService
492 mHandlerThread.quitSafely(); in onDestroy()
504 if (mHandlerThread != null && mHandlerThread.isAlive()) { in onBind()
508 mHandlerThread = new HandlerThread("CtsDownloadServiceWorker"); in onBind()
509 mHandlerThread.start(); in onBind()
510 mHandler = new Handler(mHandlerThread.getLooper()); in onBind()
/cts/tests/tests/media/bettertogether/src/android/media/bettertogether/cts/
DRemoteService.java50 private HandlerThread mHandlerThread; field in RemoteService
56 mHandlerThread = new HandlerThread(TAG); in onCreate()
57 mHandlerThread.start(); in onCreate()
58 mHandler = new Handler(mHandlerThread.getLooper()); in onCreate()
63 mHandlerThread.quitSafely(); in onDestroy()
/cts/hostsidetests/telephony/devicetest/src/android/telephony/device/cts/
DTelephonyTest.java52 private HandlerThread mHandlerThread; field in TelephonyTest
57 mHandlerThread = new HandlerThread(TelephonyTest.class.getSimpleName()); in setUp()
58 mHandlerThread.start(); in setUp()
59 mHandler = new Handler(mHandlerThread.getLooper()); in setUp()
66 mHandlerThread.quitSafely(); in tearDown()
/cts/tests/camera/api25test/src/android/camera/cts/api25test/
DEnableZslTest.java47 private HandlerThread mHandlerThread; field in EnableZslTest
82 mHandlerThread = new HandlerThread(TAG); in setUp()
83 mHandlerThread.start(); in setUp()
84 mHandler = new Handler(mHandlerThread.getLooper()); in setUp()
91 mHandlerThread.quitSafely(); in tearDown()
/cts/tests/surfacecontrol/src/android/view/cts/util/
DSurfaceControlViewHostHelper.java64 HandlerThread mHandlerThread; field in SurfaceControlViewHostHelper
74 mHandlerThread = new HandlerThread("SurfaceControlViewHostHelper"); in SurfaceControlViewHostHelper()
75 mHandlerThread.start(); in SurfaceControlViewHostHelper()
154 Handler handler = new Handler(mHandlerThread.getLooper()); in attachEmbedded()
/cts/tests/camera/headlessSystemUserTest/src/android/camera/cts/headlesssystemusertest/
DCamera2HeadlessSystemUserTest.java64 private HandlerThread mHandlerThread; field in Camera2HeadlessSystemUserTest
81 mHandlerThread = new HandlerThread(TAG); in setUp()
82 mHandlerThread.start(); in setUp()
83 mHandler = new Handler(mHandlerThread.getLooper()); in setUp()
95 mHandlerThread.quitSafely(); in tearDown()
/cts/hostsidetests/seccomp/app/src/android/seccomp/cts/app/
DSeccompDeviceTest.java69 private HandlerThread mHandlerThread; field in SeccompDeviceTest
88 mHandlerThread = new HandlerThread("HandlerThread"); in initializeSyscallMap()
89 mHandlerThread.start(); in initializeSyscallMap()
90 Looper looper = mHandlerThread.getLooper(); in initializeSyscallMap()
/cts/tests/camera/src/android/hardware/camera2/cts/testcases/
DCamera2ConcurrentAndroidTestCase.java87 protected HandlerThread mHandlerThread; field in Camera2ConcurrentAndroidTestCase
107 mHandlerThread = new HandlerThread(TAG); in setUp()
108 mHandlerThread.start(); in setUp()
109 mHandler = new Handler(mHandlerThread.getLooper()); in setUp()
172 if (mHandlerThread != null) { in tearDown()
173 mHandlerThread.quitSafely(); in tearDown()
DCamera2AndroidTestCase.java93 protected HandlerThread mHandlerThread; field in Camera2AndroidTestCase
130 mHandlerThread = new HandlerThread(TAG); in setUp()
131 mHandlerThread.start(); in setUp()
132 mHandler = new Handler(mHandlerThread.getLooper()); in setUp()
174 if (mHandlerThread != null) { in tearDown()
175 mHandlerThread.quitSafely(); in tearDown()
/cts/tests/tests/media/encoder/src/android/media/encoder/cts/
DSurfaceEncodeTimestampTest.java86 private HandlerThread mHandlerThread; field in SurfaceEncodeTimestampTest
100 if (mHandlerThread == null) { in setUp()
101 mHandlerThread = new HandlerThread( in setUp()
103 mHandlerThread.start(); in setUp()
104 mHandler = new Handler(mHandlerThread.getLooper()); in setUp()
111 if (mHandlerThread != null) { in tearDown()
112 mHandlerThread.quit(); in tearDown()
113 mHandlerThread = null; in tearDown()
/cts/libs/input/src/com/android/cts/input/
DVirtualInputDevice.java57 private final HandlerThread mHandlerThread; field in VirtualInputDevice
92 mHandlerThread = new HandlerThread("InputDeviceHandlerThread"); in VirtualInputDevice()
93 mHandlerThread.start(); in VirtualInputDevice()
94 mHandler = new Handler(mHandlerThread.getLooper()); in VirtualInputDevice()
/cts/tests/tests/display/src/android/display/cts/
DDisplayEventTest.java99 private HandlerThread mHandlerThread; field in DisplayEventTest
255 mHandlerThread = new HandlerThread("handler"); in setUp()
256 mHandlerThread.start(); in setUp()
257 mHandler = new TestHandler(mHandlerThread.getLooper()); in setUp()
265 mHandlerThread.quitSafely(); in tearDown()
/cts/tests/tests/wifi/src/android/net/wifi/cts/
DEasyConnectStatusCallbackTest.java63 private final HandlerThread mHandlerThread = new HandlerThread("EasyConnectTest"); field in EasyConnectStatusCallbackTest
66 mHandlerThread.start(); in mHandlerThread.start()
67 mExecutor = new HandlerExecutor(new Handler(mHandlerThread.getLooper()));
/cts/tests/devicepolicy/src/android/devicepolicy/cts/
DPreferentialNetworkServiceTest.java85 private final HandlerThread mHandlerThread = new HandlerThread(TAG + " handler thread"); field in PreferentialNetworkServiceTest
104 mHandlerThread.start(); in setUp()
109 mHandlerThread.quitSafely(); in tearDown()
157 new NetworkProvider(sContext, mHandlerThread.getLooper(), TAG); in setPreferentialNetworkServiceEnabled_enableService_issueRequest()
194 new NetworkProvider(sContext, mHandlerThread.getLooper(), TAG); in setPreferentialNetworkServiceEnabled_disableService_noIssueRequest()
462 new HandlerExecutor(mHandlerThread.getThreadHandler()), offerCallback); in registerEnterpriseNetworkOffer()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/security/
DUnlockedDeviceRequiredKeysTest.java87 private HandlerThread mHandlerThread; field in UnlockedDeviceRequiredKeysTest
113 mHandlerThread = new HandlerThread("receiver_thread"); in onCreate()
114 mHandlerThread.start(); in onCreate()
115 Handler handler = new Handler(mHandlerThread.getLooper()); in onCreate()
/cts/tests/tests/packageinstaller/atomicinstall/src/com/android/tests/atomicinstall/
DSessionAbandonBehaviorTest.java150 private HandlerThread mHandlerThread; field in SessionAbandonBehaviorTest
168 if (mHandlerThread != null) { in tearDown()
169 mHandlerThread.quit(); in tearDown()
188 mHandlerThread = new HandlerThread(mTestName.getMethodName()); in registerSessionCallbacks()
189 mHandlerThread.start(); in registerSessionCallbacks()
190 mHandler = new Handler(mHandlerThread.getLooper()); in registerSessionCallbacks()

12