Home
last modified time | relevance | path

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

1234567

/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/csip/
DCsipSetCoordinatorStateMachineTest.java61 private HandlerThread mHandlerThread; field in CsipSetCoordinatorStateMachineTest
85 mHandlerThread = new HandlerThread("CsipSetCoordinatorServiceTestHandlerThread"); in setUp()
86 mHandlerThread.start(); in setUp()
93 mHandlerThread.getLooper())); in setUp()
106 mHandlerThread.quit(); in tearDown()
294 TestUtils.waitForLooperToFinishScheduledTask(mHandlerThread.getLooper()); in testProcessDisconnectMessage_onDisconnectedState()
302 TestUtils.waitForLooperToFinishScheduledTask(mHandlerThread.getLooper()); in testProcessConnectMessage_onDisconnectedState()
307 TestUtils.waitForLooperToFinishScheduledTask(mHandlerThread.getLooper()); in testProcessConnectMessage_onDisconnectedState()
323 TestUtils.waitForLooperToFinishScheduledTask(mHandlerThread.getLooper()); in testStackEvent_withoutStateChange_onDisconnectedState()
331 TestUtils.waitForLooperToFinishScheduledTask(mHandlerThread.getLooper()); in testStackEvent_withoutStateChange_onDisconnectedState()
[all …]
/packages/modules/Connectivity/staticlibs/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 …]
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/provisioning/
DProvisioningManagerHelper.java48 private HandlerThread mHandlerThread; field in ProvisioningManagerHelper
55 if (mHandlerThread == null) { in startNewProvisioningLocked()
56 mHandlerThread = new HandlerThread( in startNewProvisioningLocked()
58 mHandlerThread.start(); in startNewProvisioningLocked()
64 controller.start(mHandlerThread.getLooper()); in startNewProvisioningLocked()
149 if (mHandlerThread != null) { in clearResourcesLocked()
150 mHandlerThread.quitSafely(); in clearResourcesLocked()
151 mHandlerThread = null; in clearResourcesLocked()
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/bass_client/
DBassClientStateMachineTest.java144 private HandlerThread mHandlerThread; field in BassClientStateMachineTest
180 mHandlerThread = new HandlerThread("BassClientStateMachineTestHandlerThread"); in setUp()
181 mHandlerThread.start(); in setUp()
187 mHandlerThread.getLooper(), in setUp()
213 mHandlerThread.quit(); in tearDown()
666 TestUtils.waitForLooperToFinishScheduledTask(mHandlerThread.getLooper()); in gattCallbackOnConnectionStateChange_changedToConnected()
680 TestUtils.waitForLooperToFinishScheduledTask(mHandlerThread.getLooper()); in gattCallbackOnConnectionStateChange_changedToConnected()
702 TestUtils.waitForLooperToFinishScheduledTask(mHandlerThread.getLooper()); in gattCallbackOnConnectionStateChanged_changedToDisconnected()
762 TestUtils.waitForLooperToFinishScheduledTask(mHandlerThread.getLooper()); in gattCallbackOnCharacteristicRead()
787 TestUtils.waitForLooperToFinishScheduledTask(mHandlerThread.getLooper()); in gattCallbackOnCharacteristicRead()
[all …]
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/gatt/
DDistanceMeasurementTrackerTest.java59 private HandlerThread mHandlerThread; field in DistanceMeasurementTrackerTest
82 mHandlerThread = new HandlerThread("DistanceMeasurementTrackerTestHandlerThread"); in setUp()
83 mHandlerThread.start(); in setUp()
88 mHandlerThread.quit(); in tearDown()
89 mHandlerThread.join(TIMEOUT_MS); in tearDown()
94 mTracker.startTimer(mHandlerThread.getLooper()); in testStartTimer()
101 mTracker.startTimer(mHandlerThread.getLooper()); in testCancelTimer()
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/
DObexRejectServer.java41 private final HandlerThread mHandlerThread; field in ObexRejectServer
54 mHandlerThread = in ObexRejectServer()
57 mHandlerThread.start(); in ObexRejectServer()
58 Looper timeoutLooper = mHandlerThread.getLooper(); in ObexRejectServer()
73 mHandlerThread.quit(); in shutdown()
/packages/modules/Connectivity/tests/common/java/android/net/
DNetworkProviderTest.kt70 private val mHandlerThread = HandlerThread("${javaClass.simpleName} handler thread") in <lambda>() constant
75 mHandlerThread.start() in <lambda>()
80 mHandlerThread.quitSafely() in <lambda>()
81 mHandlerThread.join() in <lambda>()
121 return TestNetworkProvider(ctx, mHandlerThread.looper) in <lambda>()
168 val agent = object : NetworkAgent(context, mHandlerThread.looper, "TestAgent", nc, lp, in <lambda>()
241 HandlerExecutor(mHandlerThread.threadHandler), offerCallback1) in <lambda>()
243 HandlerExecutor(mHandlerThread.threadHandler), offerCallback2) in <lambda>()
245 HandlerExecutor(mHandlerThread.threadHandler), offerCallback3) in <lambda>()
247 HandlerExecutor(mHandlerThread.threadHandler), offerCallback4) in <lambda>()
[all …]
/packages/modules/Uwb/generic_ranging/src/com/android/sensor/
DArCoreMultiSensorFinder.java83 private HandlerThread mHandlerThread; field in ArCoreMultiSensorFinder
163 this.mHandlerThread = null; in ArCoreMultiSensorFinder()
254 if (processInOwnThread && this.mHandlerThread == null) { in start()
255 this.mHandlerThread = new HandlerThread("MultiSensorFinder"); in start()
256 this.mHandlerThread.start(); in start()
257 this.mProcessingThreadHandler = new Handler(this.mHandlerThread.getLooper()); in start()
338 if (mHandlerThread != null) { in delete()
339 mHandlerThread.quit(); in delete()
340 mHandlerThread = null; in delete()
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/a2dpsink/
DA2dpSinkStreamHandlerTest.java55 private HandlerThread mHandlerThread; field in A2dpSinkStreamHandlerTest
93 mHandlerThread = new HandlerThread("A2dpSinkStreamHandlerTest"); in setUp()
94 mHandlerThread.start(); in setUp()
106 when(mMockA2dpSink.getMainLooper()).thenReturn(mHandlerThread.getLooper()); in setUp()
193 TestUtils.waitForLooperToFinishScheduledTask(mHandlerThread.getLooper()); in testSrcPlayIot()
218 TestUtils.waitForLooperToFinishScheduledTask(mHandlerThread.getLooper()); in testFocusGain()
233 TestUtils.waitForLooperToFinishScheduledTask(mHandlerThread.getLooper()); in testFocusTransientMayDuck()
251 TestUtils.waitForLooperToFinishScheduledTask(mHandlerThread.getLooper()); in testFocusLostTransient()
272 TestUtils.waitForLooperToFinishScheduledTask(mHandlerThread.getLooper()); in testFocusRerequest()
286 TestUtils.waitForLooperToFinishScheduledTask(mHandlerThread.getLooper()); in testFocusGainFromTransientLoss()
[all …]
/packages/services/Telecomm/src/com/android/server/telecom/callfiltering/
DIncomingCallFilterGraph.java50 private final HandlerThread mHandlerThread; field in IncomingCallFilterGraph
80 mHandlerThread.quit(); in whenDone()
92 mHandlerThread = new HandlerThread(TAG); in IncomingCallFilterGraph()
93 mHandlerThread.start(); in IncomingCallFilterGraph()
94 mHandler = new Handler(mHandlerThread.getLooper()); in IncomingCallFilterGraph()
128 mHandlerThread.quit(); in performFiltering()
178 return mHandlerThread; in getHandlerThread()
/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/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/hfpclient/
DHeadsetClientStateMachineTest.java94 private HandlerThread mHandlerThread; field in HeadsetClientStateMachineTest
142 mHandlerThread = new HandlerThread("HeadsetClientStateMachineTestHandlerThread"); in setUp()
143 mHandlerThread.start(); in setUp()
149 mHandlerThread.getLooper(), in setUp()
152 TestUtils.waitForLooperToFinishScheduledTask(mHandlerThread.getLooper()); in setUp()
157 TestUtils.waitForLooperToFinishScheduledTask(mHandlerThread.getLooper()); in tearDown()
160 TestUtils.waitForLooperToFinishScheduledTask(mHandlerThread.getLooper()); in tearDown()
161 mHandlerThread.quit(); in tearDown()
168 TestUtils.waitForLooperToFinishScheduledTask(mHandlerThread.getLooper()); in quitHeadsetClientStateMachine()
171 TestUtils.waitForLooperToFinishScheduledTask(mHandlerThread.getLooper()); in quitHeadsetClientStateMachine()
[all …]
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/provisioning/
DProvisioningControllerBaseTest.java44 private HandlerThread mHandlerThread; field in ProvisioningControllerBaseTest
55 mHandlerThread = new HandlerThread("TestHandler"); in setUp()
56 mHandlerThread.start(); in setUp()
57 mHandler = new FakeTaskHandler(mHandlerThread.getLooper()); in setUp()
62 mHandlerThread.quitSafely(); in tearDown()
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/pbap/
DPbapStateMachineTest.java54 private HandlerThread mHandlerThread; field in PbapStateMachineTest
75 mHandlerThread = new HandlerThread("PbapTestHandlerThread"); in setUp()
76 mHandlerThread.start(); in setUp()
77 mHandler = new Handler(mHandlerThread.getLooper()); in setUp()
83 mHandlerThread.getLooper(), in setUp()
95 mHandlerThread.quitSafely(); in tearDown()
/packages/modules/Connectivity/Tethering/tests/privileged/src/com/android/networkstack/tethering/
DConntrackSocketTest.java66 private HandlerThread mHandlerThread; field in ConntrackSocketTest
77 mHandlerThread = new HandlerThread(getClass().getSimpleName()); in setUp()
78 mHandlerThread.start(); in setUp()
79 mHandler = new Handler(mHandlerThread.getLooper()); in setUp()
90 if (mHandlerThread != null) { in tearDown()
91 mHandlerThread.quitSafely(); in tearDown()
92 mHandlerThread.join(); in tearDown()
/packages/modules/Telephony/services/QualifiedNetworksService/tests/src/com/android/telephony/qns/
DQualifiedNetworksServiceImplTest.java58 HandlerThread mHandlerThread; field in QualifiedNetworksServiceImplTest
112 mQualifiedNetworksService.mHandlerThread = new HandlerThread("QnsImplTest"); in setUp()
113 mQualifiedNetworksService.mHandlerThread.start(); in setUp()
122 if (mHandlerThread != null) { in tearDown()
123 mHandlerThread.quit(); in tearDown()
130 mHandlerThread = new TestHandlerThread(); in createNap()
131 mHandlerThread.start(); in createNap()
146 mHandlerThread.quit(); in testNetworkAvailabilityProviderLifeCycle()
154 mHandlerThread.quit(); in testNetworkAvailabilityProviderLifeCycle()
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/camera2/
DCameraSystemActivity.java49 private HandlerThread mHandlerThread; field in CameraSystemActivity
76 mHandlerThread = new HandlerThread("CameraPreviewThread"); in onCreate()
77 mHandlerThread.start(); in onCreate()
78 mHandler = new Handler(mHandlerThread.getLooper()); in onCreate()
199 if (mHandlerThread != null) { in onDestroy()
200 mHandlerThread.quitSafely(); in onDestroy()
201 mHandlerThread.join(); in onDestroy()
/packages/modules/Bluetooth/service/src/
DBluetoothService.kt26 private val mHandlerThread: HandlerThread constant
31 mHandlerThread = HandlerThread("BluetoothManagerService")
32 mHandlerThread.start()
33 mBluetoothManagerService = BluetoothManagerService(context, mHandlerThread.getLooper())
/packages/modules/Wifi/service/java/com/android/server/wifi/scanner/
DWifiScanningService.java36 private final HandlerThread mHandlerThread; field in WifiScanningService
41 mHandlerThread = new HandlerThread("WifiScanningService"); in WifiScanningService()
42 mHandlerThread.start(); in WifiScanningService()
43 mImpl = new WifiScanningServiceImpl(getContext(), mHandlerThread.getLooper(), in WifiScanningService()
/packages/services/Iwlan/src/com/google/android/iwlan/
DIwlanCarrierConfigChangeListener.java35 private static HandlerThread mHandlerThread; field in IwlanCarrierConfigChangeListener
66 mHandlerThread = new HandlerThread("IwlanCarrierConfigChangeListenerThread"); in getInstance()
67 mHandlerThread.start(); in getInstance()
68 mInstance = new IwlanCarrierConfigChangeListener(mHandlerThread.getLooper()); in getInstance()
/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/modules/Connectivity/tests/integration/util/com/android/server/
DNetworkAgentWrapper.java76 private final HandlerThread mHandlerThread; field in NetworkAgentWrapper
163 mHandlerThread = new HandlerThread(mLogTag); in NetworkAgentWrapper()
164 mHandlerThread.start(); in NetworkAgentWrapper()
195 super(wrapper.mContext, wrapper.mHandlerThread.getLooper(), wrapper.mLogTag, in InstrumentedNetworkAgent()
198 wrapper.mHandlerThread.getLooper(), PROVIDER_NAME)); in InstrumentedNetworkAgent()
214 mWrapper.mHandlerThread.getThreadHandler().postDelayed( in startSocketKeepalive()
222 mWrapper.mHandlerThread.getThreadHandler().postDelayed( in stopSocketKeepalive()
375 mHandlerThread.quitSafely(); in destroy()
377 mHandlerThread.join(DESTROY_TIMEOUT_MS); in destroy()
460 HandlerUtils.waitForIdle(mHandlerThread, timeoutMs); in waitForIdle()
/packages/modules/Permission/tests/cts/permission/src/android/permission/cts/
DCamera2PermissionTest.java52 protected HandlerThread mHandlerThread; field in Camera2PermissionTest
70 mHandlerThread = new HandlerThread(TAG); in setUp()
71 mHandlerThread.start(); in setUp()
72 mHandler = new Handler(mHandlerThread.getLooper()); in setUp()
78 mHandlerThread.quitSafely(); in tearDown()
/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivity/
DNetworkRequestStateStatsMetricsTest.java64 private HandlerThread mHandlerThread; field in NetworkRequestStateStatsMetricsTest
80 mHandlerThread = new HandlerThread("NetworkRequestStateStatsMetrics"); in setup()
82 .thenReturn(mHandlerThread); in setup()
139 HandlerUtils.waitForIdle(mHandlerThread, TIMEOUT_MS); in testUnreceivedNetworkRequestRemoved()
152 HandlerUtils.waitForIdle(mHandlerThread, TIMEOUT_MS); in testNoMessagesWhenNetworkRequestReceived()
162 mHandlerThread.getThreadHandler().post(() -> cv.block()); in testMessageQueueSizeLimitNotExceeded()
/packages/modules/Connectivity/tests/unit/java/com/android/server/ethernet/
DEthernetTrackerTest.java70 private HandlerThread mHandlerThread; field in EthernetTrackerTest
82 mHandlerThread = new HandlerThread(THREAD_NAME); in setUp()
83 mHandlerThread.start(); in setUp()
84 tracker = new EthernetTracker(mContext, mHandlerThread.getThreadHandler(), mFactory, mNetd, in setUp()
90 mHandlerThread.quitSafely(); in cleanUp()
91 mHandlerThread.join(); in cleanUp()
100 HandlerUtils.waitForIdle(mHandlerThread, TIMEOUT_MS); in waitForIdle()

1234567