Home
last modified time | relevance | path

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

12

/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/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/packages/SystemUI/tests/src/com/android/systemui/doze/
DDozeUiTest.java57 private HandlerThread mHandlerThread; field in DozeUiTest
62 mHandlerThread = new HandlerThread("DozeUiTest"); in setUp()
63 mHandlerThread.start(); in setUp()
68 mHandler = mHandlerThread.getThreadHandler(); in setUp()
75 mHandlerThread.quit(); in tearDown()
77 mHandlerThread = null; in tearDown()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/scanner/
DWifiScanningService.java31 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/
DNetworkLogger.java50 private ServiceThread mHandlerThread; field in NetworkLogger
111 mHandlerThread = new ServiceThread(TAG, Process.THREAD_PRIORITY_BACKGROUND, in startNetworkLogging()
113 mHandlerThread.start(); in startNetworkLogging()
114 mNetworkLoggingHandler = new NetworkLoggingHandler(mHandlerThread.getLooper(), in startNetworkLogging()
146 if (mHandlerThread != null) { in stopNetworkLogging()
147 mHandlerThread.quitSafely(); in stopNetworkLogging()
/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/packages/Osu2/src/com/android/osu/
DProvisionService.java40 private final HandlerThread mHandlerThread; field in ProvisionService
50 mHandlerThread = new HandlerThread(TAG); in ProvisionService()
51 mHandlerThread.start(); in ProvisionService()
52 mServiceHandler = new ServiceHandler(mHandlerThread.getLooper()); in ProvisionService()
/frameworks/base/tests/testables/src/android/testing/
DTestableLooper.java219 private HandlerThread mHandlerThread; field in TestableLooper.LooperFrameworkMethod
303 mHandlerThread = new HandlerThread(TestableLooper.class.getSimpleName()); in createLooper()
304 mHandlerThread.start(); in createLooper()
305 return mHandlerThread.getLooper(); in createLooper()
311 if (mHandlerThread != null) { in finalize()
312 mHandlerThread.quit(); in finalize()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/imsphone/
DImsRttTextHandlerTest.java70 HandlerThread mHandlerThread; field in ImsRttTextHandlerTest
80 mHandlerThread = new HandlerThread("TestImsRttTextHandler"); in setUp()
81 mHandlerThread.start(); in setUp()
82 mRttTextHandler = new ImsRttTextHandler(mHandlerThread.getLooper(), mNetworkWriter); in setUp()
212 mHandlerThread.quit(); in tearDown()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/pip/phone/
DPipTouchStateTest.java51 private HandlerThread mHandlerThread; field in PipTouchStateTest
57 mHandlerThread = new HandlerThread("PipTouchStateTestThread"); in setUp()
58 mHandlerThread.start(); in setUp()
59 mHandler = new Handler(mHandlerThread.getLooper()); in setUp()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/
DCallbackHandlerTest.java48 private HandlerThread mHandlerThread; field in CallbackHandlerTest
57 mHandlerThread = new HandlerThread("TestThread"); in setUp()
58 mHandlerThread.start(); in setUp()
59 mHandler = new CallbackHandler(mHandlerThread.getLooper()); in setUp()
194 mHandlerThread.quitSafely(); in waitForCallbacks()
196 mHandlerThread.join(); in waitForCallbacks()
/frameworks/base/media/java/android/media/
DMediaCas.java99 private HandlerThread mHandlerThread; field in MediaCas
421 if (mHandlerThread == null || !mHandlerThread.isAlive()) { in setEventListener()
422 mHandlerThread = new HandlerThread("MediaCasEventThread", in setEventListener()
424 mHandlerThread.start(); in setEventListener()
426 looper = mHandlerThread.getLooper(); in setEventListener()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/plugins/
DPluginInstanceManagerTest.java70 private HandlerThread mHandlerThread; field in PluginInstanceManagerTest
80 mHandlerThread = new HandlerThread("test_thread"); in setup()
81 mHandlerThread.start(); in setup()
90 mMockListener, true, mHandlerThread.getLooper(), mMockVersionInfo, in setup()
98 mHandlerThread.quit(); in tearDown()
188 mMockListener, true, mHandlerThread.getLooper(), mMockVersionInfo, in testNonDebuggable()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/gsm/
DUsimDataDownloadTest.java.broken60 private TestHandlerThread mHandlerThread;
67 mHandlerThread = new TestHandlerThread();
68 mHandlerThread.start();
69 mHandler = mHandlerThread.getHandler();
75 mHandlerThread.quit();
/frameworks/opt/net/lowpan/service/java/com/android/server/lowpan/
DLowpanServiceImpl.java47 private final HandlerThread mHandlerThread = new HandlerThread("LowpanServiceThread"); field in LowpanServiceImpl
55 Looper looper = mHandlerThread.getLooper(); in getLooper()
57 mHandlerThread.start(); in getLooper()
58 looper = mHandlerThread.getLooper(); in getLooper()
/frameworks/base/services/tests/servicestests/src/com/android/server/am/
DActivityTestsBase.java54 private HandlerThread mHandlerThread; field in ActivityTestsBase
63 mHandlerThread = new HandlerThread("ActivityTestsBaseThread"); in setUp()
64 mHandlerThread.start(); in setUp()
69 mHandlerThread.quitSafely(); in tearDown()
152 return new TestActivityStackSupervisor(this, mHandlerThread.getLooper()); in createStackSupervisor()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/test/
DModelInterpreter.java154 HandlerThread mHandlerThread; field in ModelInterpreter
189 mHandlerThread = new HandlerThread("ModelInterpreter"); in init()
190 mHandlerThread.start(); in init()
191 Looper looper = mHandlerThread.getLooper(); in init()
641 Looper looper = mHandlerThread.getLooper(); in shutdown()
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/
DAsyncSensorManager.java49 private final HandlerThread mHandlerThread = new HandlerThread("async_sensor"); field in AsyncSensorManager
54 mHandlerThread.start(); in AsyncSensorManager()
55 mHandler = new Handler(mHandlerThread.getLooper()); in AsyncSensorManager()
/frameworks/base/tests/UsbHostExternalManagmentTest/UsbHostExternalManagmentTestApp/src/com/android/hardware/usb/externalmanagementtest/
DUsbDeviceStateController.java50 private final HandlerThread mHandlerThread; field in UsbDeviceStateController
65 mHandlerThread = new HandlerThread(TAG); in UsbDeviceStateController()
66 mHandlerThread.start(); in UsbDeviceStateController()
68 mHandler = new UsbStateHandler(mHandlerThread.getLooper()); in UsbDeviceStateController()
86 mHandlerThread.quit(); in release()
/frameworks/base/cmds/uiautomator/library/testrunner-src/com/android/uiautomator/testrunner/
DUiAutomatorTestRunner.java76 private HandlerThread mHandlerThread; field in UiAutomatorTestRunner
114 mHandlerThread = new HandlerThread(HANDLER_THREAD_NAME); in start()
115 mHandlerThread.setDaemon(true); in start()
116 mHandlerThread.start(); in start()
171 mHandlerThread.quit(); in start()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/mocks/
DConnectivityServiceMock.java110 private final HandlerThread mHandlerThread; field in ConnectivityServiceMock
122 mHandlerThread = new HandlerThread("ConnectivityServiceMock"); in ConnectivityServiceMock()
123 mHandlerThread.start(); in ConnectivityServiceMock()
124 mHandler = new InternalHandler(mHandlerThread.getLooper()); in ConnectivityServiceMock()
125 mTrackerHandler = new NetworkStateTrackerHandler(mHandlerThread.getLooper()); in ConnectivityServiceMock()
130 if (mHandlerThread != null) { in die()
131 mHandlerThread.quit(); in die()
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/integration/
DCameraDeviceBinderTest.java75 private HandlerThread mHandlerThread; field in CameraDeviceBinderTest
241 mHandlerThread = new HandlerThread(TAG); in setUp()
242 mHandlerThread.start(); in setUp()
243 mHandler = new Handler(mHandlerThread.getLooper()); in setUp()
255 mHandlerThread.quitSafely(); in tearDown()
/frameworks/base/services/core/java/com/android/server/camera/
DCameraServiceProxy.java81 private final ServiceThread mHandlerThread; field in CameraServiceProxy
184 mHandlerThread = new ServiceThread(TAG, Process.THREAD_PRIORITY_DISPLAY, /*allowTo*/false); in CameraServiceProxy()
185 mHandlerThread.start(); in CameraServiceProxy()
186 mHandler = new Handler(mHandlerThread.getLooper(), this); in CameraServiceProxy()
/frameworks/base/core/java/android/hardware/camera2/legacy/
DCameraDeviceUserShim.java211 private final HandlerThread mHandlerThread; field in CameraDeviceUserShim.CameraCallbackThread
219 mHandlerThread = new HandlerThread("LegacyCameraCallback"); in CameraCallbackThread()
220 mHandlerThread.start(); in CameraCallbackThread()
224 mHandlerThread.quitSafely(); in close()
289 mHandler = new CallbackHandler(mHandlerThread.getLooper()); in getHandler()
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/
DCamera2SurfaceViewTestCase.java112 protected HandlerThread mHandlerThread; field in Camera2SurfaceViewTestCase
166 mHandlerThread = new HandlerThread(TAG); in setUp()
167 mHandlerThread.start(); in setUp()
168 mHandler = new Handler(mHandlerThread.getLooper()); in setUp()
186 mHandlerThread.quitSafely(); in tearDown()

12