Home
last modified time | relevance | path

Searched refs:mHandlerThread (Results 1 – 25 of 45) 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/modules/NetworkStack/tests/unit/src/android/net/util/
DPacketReaderTest.java73 protected HandlerThread mHandlerThread; field in PacketReaderTest
126 mHandlerThread = new HandlerThread(PacketReaderTest.class.getSimpleName()); in setUp()
127 mHandlerThread.start(); in setUp()
133 mHandlerThread.getThreadHandler().post(() -> { mReceiver.stop(); }); in tearDown()
137 mHandlerThread.quit(); in tearDown()
138 mHandlerThread = null; in tearDown()
160 final Handler h = mHandlerThread.getThreadHandler(); in testBasicWorking()
204 final Handler h = mHandlerThread.getThreadHandler(); in testMinimalRecvBufSize()
/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/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/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/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/src/com/android/bluetooth/btservice/storage/
DDatabaseManager.java60 private HandlerThread mHandlerThread = null; field in DatabaseManager
516 if (mHandlerThread == null) { in getHandlerLooper()
519 return mHandlerThread.getLooper(); in getHandlerLooper()
544 mHandlerThread = new HandlerThread("BluetoothDatabaseManager"); in start()
545 mHandlerThread.start(); in start()
546 mHandler = new DatabaseHandler(mHandlerThread.getLooper()); in start()
577 if (mHandlerThread != null) { in cleanup()
578 mHandlerThread.quit(); in cleanup()
579 mHandlerThread = null; in cleanup()
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/
DBluetoothOppTransfer.java99 private HandlerThread mHandlerThread; field in BluetoothOppTransfer
478 if (mHandlerThread == null) { in start()
482 mHandlerThread = in start()
484 mHandlerThread.start(); in start()
485 mSessionHandler = new EventHandler(mHandlerThread.getLooper()); in start()
532 if (mHandlerThread != null) { in stop()
533 mHandlerThread.quit(); in stop()
534 mHandlerThread.interrupt(); in stop()
535 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/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/Bluetooth/tests/unit/src/com/android/bluetooth/hfp/
DHeadsetPhoneStateTest.java59 private HandlerThread mHandlerThread; field in HeadsetPhoneStateTest
79 mHandlerThread = new HandlerThread("HeadsetStateMachineTestHandlerThread"); in setUp()
80 mHandlerThread.start(); in setUp()
81 when(mHeadsetService.getStateMachinesThreadLooper()).thenReturn(mHandlerThread.getLooper()); in setUp()
88 mHandlerThread.quit(); in tearDown()
/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.java101 private HandlerThread mHandlerThread; field in NotificationService
152 mHandlerThread = new HandlerThread("tv notification"); in onCreate()
153 mHandlerThread.start(); in onCreate()
154 mHandler = new NotificationHandler(mHandlerThread.getLooper(), this); in onCreate()
226 if (mHandlerThread != null) { in onDestroy()
227 mHandlerThread.quit(); in onDestroy()
228 mHandlerThread = null; in onDestroy()
/packages/apps/Bluetooth/src/com/android/bluetooth/pbap/
DBluetoothPbapService.java156 private HandlerThread mHandlerThread; field in BluetoothPbapService
493 mHandlerThread = new HandlerThread("PbapHandlerThread"); in start()
494 mHandlerThread.start(); in start()
495 mSessionStatusHandler = new PbapHandler(mHandlerThread.getLooper()); in start()
531 if (mHandlerThread != null) { in stop()
532 mHandlerThread.quitSafely(); in stop()
668 PbapStateMachine sm = PbapStateMachine.make(this, mHandlerThread.getLooper(), remoteDevice, in onConnect()
/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