/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/csip/ |
D | CsipSetCoordinatorStateMachineTest.java | 61 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/ |
D | PacketReaderTest.java | 76 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/ |
D | ProvisioningManagerHelper.java | 48 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/ |
D | BassClientStateMachineTest.java | 144 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/ |
D | DistanceMeasurementTrackerTest.java | 59 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/ |
D | ObexRejectServer.java | 41 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/ |
D | NetworkProviderTest.kt | 70 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/ |
D | ArCoreMultiSensorFinder.java | 83 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/ |
D | A2dpSinkStreamHandlerTest.java | 55 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/ |
D | IncomingCallFilterGraph.java | 50 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/ |
D | ProcessingTaskController.java | 31 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/ |
D | HeadsetClientStateMachineTest.java | 94 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/ |
D | ProvisioningControllerBaseTest.java | 44 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/ |
D | PbapStateMachineTest.java | 54 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/ |
D | ConntrackSocketTest.java | 66 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/ |
D | QualifiedNetworksServiceImplTest.java | 58 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/ |
D | CameraSystemActivity.java | 49 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/ |
D | BluetoothService.kt | 26 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/ |
D | WifiScanningService.java | 36 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/ |
D | IwlanCarrierConfigChangeListener.java | 35 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/ |
D | UserPresetsManager.java | 18 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/ |
D | NetworkAgentWrapper.java | 76 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/ |
D | Camera2PermissionTest.java | 52 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/ |
D | NetworkRequestStateStatsMetricsTest.java | 64 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/ |
D | EthernetTrackerTest.java | 70 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()
|