Home
last modified time | relevance | path

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

12

/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/provisioning/
DProvisioningManagerHelper.java57 private HandlerThread mHandlerThread; field in ProvisioningManagerHelper
65 if (mHandlerThread == null) { in startNewProvisioningLocked()
66 mHandlerThread = new HandlerThread( in startNewProvisioningLocked()
68 mHandlerThread.start(); in startNewProvisioningLocked()
74 controller.start(mHandlerThread.getLooper()); in startNewProvisioningLocked()
140 if (mHandlerThread != null) { in clearResourcesLocked()
141 mHandlerThread.quitSafely(); in clearResourcesLocked()
142 mHandlerThread = null; in clearResourcesLocked()
/packages/services/Telecomm/src/com/android/server/telecom/callfiltering/
DIncomingCallFilterGraph.java49 private final HandlerThread mHandlerThread; field in IncomingCallFilterGraph
79 mHandlerThread.quit(); in whenDone()
91 mHandlerThread = new HandlerThread(TAG); in IncomingCallFilterGraph()
92 mHandlerThread.start(); in IncomingCallFilterGraph()
93 mHandler = new Handler(mHandlerThread.getLooper()); in IncomingCallFilterGraph()
127 mHandlerThread.quit(); in performFiltering()
172 return mHandlerThread; in getHandlerThread()
DBlockCheckerFilter.java46 private HandlerThread mHandlerThread; field in BlockCheckerFilter
59 mHandlerThread = new HandlerThread(TAG); in BlockCheckerFilter()
60 mHandlerThread.start(); in BlockCheckerFilter()
61 mHandler = new Handler(mHandlerThread.getLooper()); in BlockCheckerFilter()
148 mHandlerThread.quitSafely(); in completeResult()
/packages/apps/Bluetooth/src/com/android/bluetooth/btservice/
DActiveDeviceManager.java116 private HandlerThread mHandlerThread = null; field in ActiveDeviceManager
379 mHandlerThread = new HandlerThread("BluetoothActiveDeviceManager"); in start()
380 mHandlerThread.start(); in start()
381 mHandler = new ActiveDeviceManagerHandler(mHandlerThread.getLooper()); in start()
402 if (mHandlerThread != null) { in cleanup()
403 mHandlerThread.quit(); in cleanup()
404 mHandlerThread = null; in cleanup()
417 if (mHandlerThread == null) { in getHandlerLooper()
420 return mHandlerThread.getLooper(); in getHandlerLooper()
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/pbap/
DPbapStateMachineTest.java55 private HandlerThread mHandlerThread; field in PbapStateMachineTest
76 mHandlerThread = new HandlerThread("PbapTestHandlerThread"); in setUp()
77 mHandlerThread.start(); in setUp()
78 mHandler = new Handler(mHandlerThread.getLooper()); in setUp()
81 mPbapStateMachine = PbapStateMachine.make(mBluetoothPbapService, mHandlerThread.getLooper(), in setUp()
90 mHandlerThread.quitSafely(); in tearDown()
/packages/apps/Bluetooth/src/com/android/bluetooth/
DObexRejectServer.java43 private final HandlerThread mHandlerThread; field in ObexRejectServer
56 mHandlerThread = new HandlerThread("TestTimeoutHandler", in ObexRejectServer()
58 mHandlerThread.start(); in ObexRejectServer()
59 Looper timeoutLooper = mHandlerThread.getLooper(); in ObexRejectServer()
76 mHandlerThread.quit(); in shutdown()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/pipeline/
DProcessingTaskController.java31 private HandlerThread mHandlerThread = null; field in ProcessingTaskController
67 mHandlerThread = new HandlerThread("ProcessingTaskController", in ProcessingTaskController()
69 mHandlerThread.start(); in ProcessingTaskController()
70 mProcessingHandler = new Handler(mHandlerThread.getLooper(), this); in ProcessingTaskController()
95 mHandlerThread.quit(); in quit()
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/provisioning/
DProvisioningControllerBaseTest.java40 private HandlerThread mHandlerThread; field in ProvisioningControllerBaseTest
51 mHandlerThread = new HandlerThread("TestHandler"); in setUp()
52 mHandlerThread.start(); in setUp()
53 mHandler = new FakeTaskHandler(mHandlerThread.getLooper()); in setUp()
58 mHandlerThread.quitSafely(); in tearDown()
/packages/apps/DocumentsUI/src/com/android/documentsui/archives/
DReadableArchive.java71 private HandlerThread mHandlerThread; field in ReadableArchive
176 mHandlerThread = new HandlerThread(TAG); in ReadableArchive()
177 mHandlerThread.start(); in ReadableArchive()
178 mHandler = new Handler(mHandlerThread.getLooper()); in ReadableArchive()
363 if (mHandlerThread != null) { in close()
364 mHandlerThread.quitSafely(); in close()
365 mHandlerThread = null; in close()
/packages/services/Car/car-usb-handler/src/android/car/usb/handler/
DUsbDeviceHandlerResolver.java71 private final HandlerThread mHandlerThread; field in UsbDeviceHandlerResolver
80 mHandlerThread = new HandlerThread(TAG); in UsbDeviceHandlerResolver()
81 mHandlerThread.start(); in UsbDeviceHandlerResolver()
82 mHandler = new UsbDeviceResolverHandler(mHandlerThread.getLooper()); in UsbDeviceHandlerResolver()
91 if (mHandlerThread != null) { in release()
92 mHandlerThread.quitSafely(); in release()
128 mHandlerThread.getThreadHandler().post(() -> { in dispatch()
DAoapServiceManager.java65 private final HandlerThread mHandlerThread; field in AoapServiceManager
71 mHandlerThread = new HandlerThread(TAG); in AoapServiceManager()
72 mHandlerThread.start(); in AoapServiceManager()
74 mHandler = new Handler(mHandlerThread.getLooper()) { in AoapServiceManager()
136 connection = new AoapServiceConnection(name, this, mHandlerThread.getLooper()); in getConnectionOrNull()
/packages/apps/Bluetooth/src/com/android/bluetooth/pbapclient/
DPbapClientStateMachine.java100 private HandlerThread mHandlerThread = null; field in PbapClientStateMachine
154 mHandlerThread = in enter()
156 mHandlerThread.start(); in enter()
158 new PbapClientConnectionHandler.Builder().setLooper(mHandlerThread.getLooper()) in enter()
268 mHandlerThread.quitSafely(); in processMessage()
359 if (mHandlerThread != null) { in doQuit()
360 mHandlerThread.quitSafely(); in doQuit()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/data/
DUserPresetsManager.java18 private HandlerThread mHandlerThread = null; field in UserPresetsManager
62 mHandlerThread = new HandlerThread(LOGTAG, in UserPresetsManager()
64 mHandlerThread.start(); in UserPresetsManager()
65 mProcessingHandler = new Handler(mHandlerThread.getLooper(), this); in UserPresetsManager()
81 mHandlerThread.quit(); in close()
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/task/
DStartManagedProfileTaskTest.java70 private HandlerThread mHandlerThread; field in StartManagedProfileTaskTest
79 mHandlerThread = new HandlerThread("Test thread"); in setUp()
80 mHandlerThread.start(); in setUp()
93 mHandlerThread.quitSafely(); in tearDown()
105 new Handler(mHandlerThread.getLooper()).post(() -> mTask.run(TEST_USER_ID)); in testSuccess()
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/hfpclient/
DHeadsetClientStateMachineTest.java51 private HandlerThread mHandlerThread; field in HeadsetClientStateMachineTest
93 mHandlerThread = new HandlerThread("HeadsetClientStateMachineTestHandlerThread"); in setUp()
94 mHandlerThread.start(); in setUp()
97 new HeadsetClientStateMachine(mHeadsetClientService, mHandlerThread.getLooper(), in setUp()
100 TestUtils.waitForLooperToFinishScheduledTask(mHandlerThread.getLooper()); in setUp()
108 TestUtils.waitForLooperToFinishScheduledTask(mHandlerThread.getLooper()); in tearDown()
110 mHandlerThread.quit(); in tearDown()
300 TestUtils.waitForLooperToFinishScheduledTask(mHandlerThread.getLooper()); in testInBandRingtone()
302 TestUtils.waitForLooperToFinishScheduledTask(mHandlerThread.getLooper()); in testInBandRingtone()
326 TestUtils.waitForLooperToFinishScheduledTask(mHandlerThread.getLooper()); in testInBandRingtone()
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/
DBluetoothOppTransfer.java98 private HandlerThread mHandlerThread; field in BluetoothOppTransfer
477 if (mHandlerThread == null) { in start()
481 mHandlerThread = in start()
483 mHandlerThread.start(); in start()
484 mSessionHandler = new EventHandler(mHandlerThread.getLooper()); in start()
531 if (mHandlerThread != null) { in stop()
532 mHandlerThread.quit(); in stop()
533 mHandlerThread.interrupt(); in stop()
534 mHandlerThread = null; in stop()
/packages/services/Telephony/testapps/EmbmsServiceTestApp/src/com/android/phone/testapps/embmsmw/
DEmbmsTestStreamingService.java59 private HandlerThread mHandlerThread; field in EmbmsTestStreamingService
193 mHandlerThread.quitSafely(); in onDestroy()
200 mHandlerThread = new HandlerThread("EmbmsTestStreamingServiceWorker"); in onBind()
201 mHandlerThread.start(); in onBind()
202 mHandler = new Handler(mHandlerThread.getLooper(), mWorkerCallback); in onBind()
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/hfp/
DHeadsetPhoneStateTest.java60 private HandlerThread mHandlerThread; field in HeadsetPhoneStateTest
83 mHandlerThread = new HandlerThread("HeadsetStateMachineTestHandlerThread"); in setUp()
84 mHandlerThread.start(); in setUp()
85 when(mHeadsetService.getStateMachinesThreadLooper()).thenReturn(mHandlerThread.getLooper()); in setUp()
92 mHandlerThread.quit(); in tearDown()
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/btservice/
DSilenceDeviceManagerTest.java56 private HandlerThread mHandlerThread; field in SilenceDeviceManagerTest
80 mHandlerThread = new HandlerThread("SilenceManagerTestHandlerThread"); in setUp()
81 mHandlerThread.start(); in setUp()
82 mLooper = mHandlerThread.getLooper(); in setUp()
91 mHandlerThread.quit(); in tearDown()
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/hearingaid/
DHearingAidStateMachineTest.java52 private HandlerThread mHandlerThread; field in HearingAidStateMachineTest
77 mHandlerThread = new HandlerThread("HearingAidStateMachineTestHandlerThread"); in setUp()
78 mHandlerThread.start(); in setUp()
80 mHearingAidNativeInterface, mHandlerThread.getLooper()); in setUp()
93 mHandlerThread.quit(); in tearDown()
/packages/services/Car/service/src/com/android/car/
DCarBugreportManagerService.java86 private HandlerThread mHandlerThread; field in CarBugreportManagerService
101 mHandlerThread = new HandlerThread(TAG); in init()
102 mHandlerThread.start(); in init()
103 mHandler = new Handler(mHandlerThread.getLooper()); in init()
108 mHandlerThread.quitSafely(); in release()
DAppFocusService.java58 private HandlerThread mHandlerThread; field in AppFocusService
214 mHandlerThread = new HandlerThread(AppFocusService.class.getSimpleName()); in init()
215 mHandlerThread.start(); in init()
216 mDispatchHandler = new DispatchHandler(mHandlerThread.getLooper()); in init()
223 mHandlerThread.quitSafely(); in release()
225 mHandlerThread.join(1000); in release()
/packages/apps/Gallery2/src/com/android/gallery3d/util/
DProfile.java57 private HandlerThread mHandlerThread; field in Profile.Watchdog
71 mHandlerThread = new HandlerThread("Watchdog Handler", in Watchdog()
73 mHandlerThread.start(); in Watchdog()
74 mHandler = new Handler(mHandlerThread.getLooper()); in Watchdog()
/packages/apps/TV/src/com/android/tv/recommendation/
DNotificationService.java103 private HandlerThread mHandlerThread; field in NotificationService
154 mHandlerThread = new HandlerThread("tv notification"); in onCreate()
155 mHandlerThread.start(); in onCreate()
156 mHandler = new NotificationHandler(mHandlerThread.getLooper(), this); in onCreate()
228 if (mHandlerThread != null) { in onDestroy()
229 mHandlerThread.quit(); in onDestroy()
230 mHandlerThread = null; in onDestroy()
/packages/services/Telephony/testapps/EmbmsTestStreamingApp/src/com/android/phone/testapps/embmsfrontend/
DEmbmsTestStreamingApp.java134 private HandlerThread mHandlerThread; field in EmbmsTestStreamingApp
147 mHandlerThread = new HandlerThread("EmbmsSampleFrontendWorker"); in onCreate()
148 mHandlerThread.start(); in onCreate()
149 mHandler = new Handler(mHandlerThread.getLooper()); in onCreate()
242 mHandlerThread.quit(); in onDestroy()

12