/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/ |
D | ActiveModeWardenTest.java | 159 TestLooper mLooper; field in ActiveModeWardenTest 218 mLooper = new TestLooper(); in setUp() 280 mLooper.dispatchAll(); in setUp() 316 mLooper.getLooper(), in createActiveModeWarden() 344 mLooper.dispatchAll(); in cleanUp() 383 mLooper.dispatchAll(); in enterClientModeActiveState() 391 mLooper.dispatchAll(); in enterClientModeActiveState() 430 mLooper.dispatchAll(); in enterScanOnlyModeActiveState() 437 mLooper.dispatchAll(); in enterScanOnlyModeActiveState() 443 mLooper.dispatchAll(); in enterScanOnlyModeActiveState() [all …]
|
D | LocalOnlyHotspotRequestInfoTest.java | 48 private TestLooper mLooper; field in LocalOnlyHotspotRequestInfoTest 61 mLooper = new TestLooper(); in setUp() 72 mLOHSRequestInfo = new LocalOnlyHotspotRequestInfo(mLooper.getLooper(), in verifyBinderLinkToDeathIsCalled() 82 mLOHSRequestInfo = new LocalOnlyHotspotRequestInfo(mLooper.getLooper(), in verifyNullCallbackChecked() 91 mLOHSRequestInfo = new LocalOnlyHotspotRequestInfo(mLooper.getLooper(), in verifyNullDeathCallbackChecked() 100 mLOHSRequestInfo = new LocalOnlyHotspotRequestInfo(mLooper.getLooper(), in verifyUnlinkDeathRecipientUnlinksFromBinder() 111 mLOHSRequestInfo = new LocalOnlyHotspotRequestInfo(mLooper.getLooper(), in verifyBinderDeathTriggersCallback() 114 mLooper.dispatchAll(); in verifyBinderDeathTriggersCallback() 125 mLOHSRequestInfo = new LocalOnlyHotspotRequestInfo(mLooper.getLooper(), in verifyRemoteExceptionTriggersCallback() 127 mLooper.dispatchAll(); in verifyRemoteExceptionTriggersCallback() [all …]
|
D | WifiServiceImplTest.java | 367 private TestLooper mLooper; field in WifiServiceImplTest 528 mLooper = new TestLooper(); in setUp() 566 when(mHandlerThread.getThreadHandler()).thenReturn(new Handler(mLooper.getLooper())); in setUp() 567 when(mHandlerThread.getLooper()).thenReturn(mLooper.getLooper()); in setUp() 621 mWifiThreadRunner = new WifiThreadRunner(new Handler(mLooper.getLooper())); in setUp() 793 mLooper.dispatchAll(); in makeWifiServiceImpl() 823 mLooper.startAutoDispatch(); in testRemoveNetworkFailureAppBelowQSdk() 825 mLooper.stopAutoDispatchAndIgnoreExceptions(); in testRemoveNetworkFailureAppBelowQSdk() 836 mLooper.dispatchAll(); in testWifiMetricsDump() 837 mLooper.startAutoDispatch(); in testWifiMetricsDump() [all …]
|
D | ConcreteClientModeManagerTest.java | 100 TestLooper mLooper; field in ConcreteClientModeManagerTest 167 mLooper.moveTimeForward(timeMillis); in moveTimeForward() 259 mLooper = new TestLooper(); in setUp() 268 return new ConcreteClientModeManager(mContext, mLooper.getLooper(), mClock, mWifiNative, in createClientModeManager() 278 mLooper.dispatchAll(); in startClientInScanOnlyModeAndVerifyEnabled() 288 mLooper.dispatchAll(); in startClientInScanOnlyModeAndVerifyEnabled() 306 mLooper.dispatchAll(); in startClientInConnectModeAndVerifyEnabled() 319 mLooper.dispatchAll(); in startClientInConnectModeAndVerifyEnabled() 405 mLooper.dispatchAll(); in clientInScanOnlyModeInterfaceHotPlug() 417 mLooper.dispatchAll(); in interfaceDestroyedAndAdded() [all …]
|
D | ClientModeImplTest.java | 515 TestLooper mLooper; field in ClientModeImplTest 657 mLooper = new TestLooper(); in setUp() 742 when(mWifiHandlerThread.getLooper()).thenReturn(mLooper.getLooper()); in setUp() 824 new ScoringParams(), new WifiThreadRunner(new Handler(mLooper.getLooper())), in initializeCmi() 831 mWifiLockManager, mFrameworkFacade, mLooper.getLooper(), in initializeCmi() 855 mLooper.dispatchAll(); in initializeCmi() 889 mLooper.dispatchAll(); in checkIsWifiEnabledForModeChanges() 926 mLooper.dispatchAll(); in canSaveNetworkConfig() 952 mLooper.dispatchAll(); in canSaveAdminRestrictedNetworkWithoutConnecting() 972 mLooper.dispatchAll(); in canSaveDeprecatedSecurityTypeNetworkWithoutConnecting() [all …]
|
D | ExternalScoreUpdateObserverProxyTest.java | 45 TestLooper mLooper = new TestLooper(); field in ExternalScoreUpdateObserverProxyTest 56 new WifiThreadRunner(new Handler(mLooper.getLooper()))); in setUp() 64 mLooper.dispatchAll(); in testCallback() 68 mLooper.dispatchAll(); in testCallback() 76 mLooper.dispatchAll(); in testCallback() 87 mLooper.dispatchAll(); in testCallbackForApiInS() 91 mLooper.dispatchAll(); in testCallbackForApiInS() 95 mLooper.dispatchAll(); in testCallbackForApiInS() 104 mLooper.dispatchAll(); in testCallbackForApiInS()
|
D | WifiMonitorTest.java | 75 private TestLooper mLooper; field in WifiMonitorTest 82 mLooper = new TestLooper(); in setUp() 83 mHandlerSpy = spy(new Handler(mLooper.getLooper())); in setUp() 84 mSecondHandlerSpy = spy(new Handler(mLooper.getLooper())); in setUp() 98 mLooper.dispatchAll(); in testBroadcastWpsEventFailDueToErrorTkipOnlyProhibhited() 119 mLooper.dispatchAll(); in testBroadcastWpsEventFailDueToErrorWepProhibhited() 138 mLooper.dispatchAll(); in testBroadcastWpsEventFailDueToConfigAuthError() 155 mLooper.dispatchAll(); in testBroadcastWpsEventFailDueToConfigPbcOverlapError() 173 mLooper.dispatchAll(); in testBroadcastWpsEventFailDueToConfigError() 191 mLooper.dispatchAll(); in testBroadcastWpsEventSuccess() [all …]
|
D | SoftApManagerTest.java | 183 private TestLooper mLooper; field in SoftApManagerTest 279 mLooper.dispatchAll(); in mockSoftApInfoUpdateAndVerifyAfterSapStarted() 286 mLooper.dispatchAll(); in mockSoftApInfoUpdateAndVerifyAfterSapStarted() 326 mLooper = new TestLooper(); in setUp() 464 mContext, mLooper.getLooper(), mFrameworkFacade, mWifiNative, mWifiInjector, in createSoftApManager() 481 mLooper.dispatchAll(); in createSoftApManager() 1034 mLooper.dispatchAll(); in stopWhenStarted() 1088 mLooper.dispatchAll(); in cleanStopOnInterfaceDestroyed() 1131 mLooper.dispatchAll(); in noCallbackOnInterfaceDestroyedWhenAlreadyStopped() 1143 mLooper.dispatchAll(); in noCallbackOnInterfaceDestroyedWhenAlreadyStopped() [all …]
|
/packages/services/Car/cpp/watchdog/server/src/ |
D | LooperWrapper.cpp | 28 if (mLooper == nullptr) { in wake() 32 return mLooper->wake(); in wake() 36 if (mLooper == nullptr) { in pollAll() 40 return mLooper->pollAll(timeoutMillis); in pollAll() 44 if (mLooper == nullptr) { in sendMessage() 48 return mLooper->sendMessage(handler, message); in sendMessage() 53 if (mLooper == nullptr) { in sendMessageAtTime() 57 return mLooper->sendMessageAtTime(uptime, handler, message); in sendMessageAtTime() 61 if (mLooper == nullptr) { in removeMessages() 65 return mLooper->removeMessages(handler); in removeMessages() [all …]
|
/packages/services/Car/cpp/evs/manager/1.1/stats/ |
D | LooperWrapper.cpp | 30 if (mLooper == nullptr) { in wake() 35 return mLooper->wake(); in wake() 39 if (mLooper == nullptr) { in pollAll() 44 return mLooper->pollAll(timeoutMillis); in pollAll() 48 if (mLooper == nullptr) { in sendMessage() 53 return mLooper->sendMessage(handler, message); in sendMessage() 58 if (mLooper == nullptr) { in sendMessageAtTime() 63 return mLooper->sendMessageAtTime(uptime, handler, message); in sendMessageAtTime() 67 if (mLooper == nullptr) { in removeMessages() 72 return mLooper->removeMessages(handler); in removeMessages()
|
D | StatsCollector.cpp | 80 mLooper->removeMessages(this); in handleMessage() 82 mPeriodicCollectionInfo.lastCollectionTime = mLooper->now(); in handleMessage() 83 mLooper->sendMessage(this, CollectionEvent::PERIODIC); in handleMessage() 97 mLooper->removeMessages(this); in handleMessage() 98 mLooper->wake(); in handleMessage() 138 mLooper->sendMessageAtTime(info->lastCollectionTime, this, event); in handleCollectionEvent() 152 snapshot.timestamp = mLooper->now(); in collectLocked() 203 mLooper->setLooper(Looper::prepare(/*opts=*/0)); in startCollection() 206 mLooper->sendMessage(this, CollectionEvent::PERIODIC); in startCollection() 211 mLooper->pollAll(/*timeoutMillis=*/-1); in startCollection() [all …]
|
/packages/services/Car/cpp/evs/manager/aidl/stats/src/ |
D | LooperWrapper.cpp | 28 if (mLooper == nullptr) { in wake() 33 return mLooper->wake(); in wake() 37 if (mLooper == nullptr) { in pollAll() 42 return mLooper->pollAll(timeoutMillis); in pollAll() 46 if (mLooper == nullptr) { in sendMessage() 51 return mLooper->sendMessage(handler, message); in sendMessage() 56 if (mLooper == nullptr) { in sendMessageAtTime() 61 return mLooper->sendMessageAtTime(uptime, handler, message); in sendMessageAtTime() 65 if (mLooper == nullptr) { in removeMessages() 70 return mLooper->removeMessages(handler); in removeMessages()
|
D | StatsCollector.cpp | 80 mLooper->removeMessages(this); in handleMessage() 82 mPeriodicCollectionInfo.lastCollectionTime = mLooper->now(); in handleMessage() 83 mLooper->sendMessage(this, CollectionEvent::PERIODIC); in handleMessage() 97 mLooper->removeMessages(this); in handleMessage() 98 mLooper->wake(); in handleMessage() 137 mLooper->sendMessageAtTime(info->lastCollectionTime, this, event); in handleCollectionEvent() 151 snapshot.timestamp = mLooper->now(); in collectLocked() 203 mLooper->setLooper(Looper::prepare(/*opts=*/0)); in startCollection() 206 mLooper->sendMessage(this, CollectionEvent::PERIODIC); in startCollection() 211 mLooper->pollAll(/*timeoutMillis=*/-1); in startCollection() [all …]
|
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/scanner/ |
D | WifiScanningServiceTest.java | 170 TestLooper mLooper; field in WifiScanningServiceTest 220 mLooper = new TestLooper(); in setUp() 250 mWifiScanningServiceImpl = new WifiScanningServiceImpl(mContext, mLooper.getLooper(), in setUp() 298 mLooper.dispatchAll(); in registerScanListener() 317 mLooper.dispatchAll(); in sendBackgroundScanRequest() 325 mLooper.dispatchAll(); in sendSingleScanRequest() 433 mLooper.dispatchAll(); in startServiceAndLoadDriver() 450 mLooper.dispatchAll(); in setupAndLoadDriver() 493 mLooper.dispatchAll(); in startServiceAndTriggerSingleScanWithoutDriverLoaded() 499 mLooper.dispatchAll(); in startServiceAndTriggerSingleScanWithoutDriverLoaded() [all …]
|
/packages/modules/Connectivity/Tethering/tests/unit/src/com/android/networkstack/tethering/ |
D | EntitlementManagerTest.java | 125 private final TestLooper mLooper = new TestLooper(); field in EntitlementManagerTest 259 mEnMgr = new WrappedEntitlementManager(mMockContext, new Handler(mLooper.getLooper()), mLog, in setUp() 331 mLooper.dispatchAll(); in testRequestLastEntitlementCacheValue() 344 mLooper.dispatchAll(); in testRequestLastEntitlementCacheValue() 356 mLooper.dispatchAll(); in testRequestLastEntitlementCacheValue() 369 mLooper.dispatchAll(); in testRequestLastEntitlementCacheValue() 381 mLooper.dispatchAll(); in testRequestLastEntitlementCacheValue() 393 mLooper.dispatchAll(); in testRequestLastEntitlementCacheValue() 404 mLooper.dispatchAll(); in testRequestLastEntitlementCacheValue() 416 mLooper.dispatchAll(); in testRequestLastEntitlementCacheValue() [all …]
|
D | TetheringTest.java | 304 private TestLooper mLooper; field in TetheringTest 507 return mLooper.getLooper(); in makeTetheringLooper() 689 mLooper = new TestLooper(); in initTetheringOnTestThread() 768 mLooper.dispatchAll(); in registerTetheringEventCallback() 784 mLooper.dispatchAll(); in sendWifiApStateChanged() 793 mLooper.dispatchAll(); in sendWifiApStateChanged() 820 mLooper.dispatchAll(); in sendWifiP2pConnectionChanged() 845 mLooper.dispatchAll(); in sendUsbBroadcast() 851 mLooper.dispatchAll(); in sendConfigurationChanged() 916 mLooper.dispatchAll(); in prepareNcmTethering() [all …]
|
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/hotspot2/soap/ |
D | RedirectListenerTest.java | 52 private TestLooper mLooper = new TestLooper(); field in RedirectListenerTest 53 private Handler mHandler = new Handler(mLooper.getLooper()); 87 mRedirectListener = new RedirectListenerSpy(mLooper.getLooper(), TEST_PORT); in setUp() 93 mLooper.dispatchAll(); in verifyStartServer() 100 mLooper.dispatchAll(); in verifyStopServer() 105 assertFalse(mLooper.isIdle()); in verifyStopServer() 121 mLooper.moveTimeForward(RedirectListener.USER_TIMEOUT_MILLIS); in timeOutForKnownGetRequest() 122 mLooper.dispatchAll(); in timeOutForKnownGetRequest() 143 mLooper.moveTimeForward(RedirectListener.USER_TIMEOUT_MILLIS); in receiveUnknownGetRequest() 144 mLooper.dispatchAll(); in receiveUnknownGetRequest() [all …]
|
/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivity/ |
D | MulticastRoutingCoordinatorServiceTest.kt | 106 lateinit var mLooper: TestLooper variable in com.android.server.connectivity.MulticastRoutingCoordinatorServiceTest 153 mLooper = TestLooper() in prepareService() 154 val handler = Handler(mLooper.getLooper()) in prepareService() 173 mLooper.dispatchAll() // let MulticastRoutingCoordinatorService handle all msgs first to in sendMrt6msgNocachePacket() 177 mLooper.getNewExecutor().execute({ mService.handleMulticastNocacheUpcall(mrt6Msg) }) in sendMrt6msgNocachePacket() 178 mLooper.dispatchAll() in sendMrt6msgNocachePacket() 213 mLooper.dispatchAll() in testMulticastRouting_applyForwardNone() 228 mLooper.dispatchAll() in testMulticastRouting_applyForwardMinimumScope() 241 mLooper.dispatchAll() in testMulticastRouting_addressScopelargerThanMinScope_allowMfcIsAdded() 272 mLooper.dispatchAll() in testMulticastRouting_applyForwardSelected_joinsGroup() [all …]
|
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/ |
D | IkeSessionStateMachineTest.java | 415 private TestLooper mLooper; field in IkeSessionStateMachineTest 829 mLooper = new TestLooper(); in setUp() 854 mLooper.dispatchAll(); in tearDown() 941 mLooper.getLooper(), in makeAndStartIkeSession() 1004 mLooper.getLooper(), in makeAndStartIkeSession() 1018 mLooper.dispatchAll(); in makeAndStartIkeSession() 1512 mLooper.dispatchAll(); in testQuit() 1733 mLooper.dispatchAll(); in testCreateIkeLocalIkeInitNegotiatesDhGroup() 1745 mLooper.dispatchAll(); in testCreateIkeLocalIkeInitNegotiatesDhGroup() 1774 mLooper.dispatchAll(); in testCreateIkeLocalIkeInitReceivesCookie() [all …]
|
D | ChildSessionStateMachineTest.java | 217 private TestLooper mLooper; field in ChildSessionStateMachineTest 297 mLooper = new TestLooper(); in setup() 424 mLooper.dispatchAll(); in quitAndVerify() 581 mLooper.dispatchAll(); in disableTestCreateFirstChild() 648 mLooper.dispatchAll(); in checkCreateChildAndGetRequest() 667 mLooper.dispatchAll(); in checkCreateChildAndGetRequest() 684 mLooper.dispatchAll(); in testCreateChildExecuteCbAfterKillSession() 692 mLooper.dispatchAll(); in testCreateChildExecuteCbAfterKillSession() 720 mLooper.dispatchAll(); in createChildSessionAndReceiveErrorNotification() 727 mLooper.dispatchAll(); in createChildSessionAndReceiveErrorNotification() [all …]
|
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/p2p/ |
D | WifiP2pMonitorTest.java | 46 private TestLooper mLooper; field in WifiP2pMonitorTest 53 mLooper = new TestLooper(); in setUp() 54 mHandlerSpy = spy(new Handler(mLooper.getLooper())); in setUp() 55 mSecondHandlerSpy = spy(new Handler(mLooper.getLooper())); in setUp() 67 mLooper.dispatchAll(); in testBroadcastSupplicantDisconnectionEvent() 83 mLooper.dispatchAll(); in testBroadcastEventToTwoHandlers() 99 mLooper.dispatchAll(); in testBroadcastEventWhenIfaceIsNull() 113 mLooper.dispatchAll(); in testBroadcastEventWhenIfaceHandlerIsNull() 127 mLooper.dispatchAll(); in testBroadcastP2pFrequencyChanged() 144 mLooper.dispatchAll(); in testBroadcastP2pProvisionDiscoveryFailure() [all …]
|
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/hotspot2/ |
D | PasspointProvisionerTest.java | 152 private TestLooper mLooper = new TestLooper(); field in PasspointProvisionerTest 204 when(RedirectListener.createInstance(mLooper.getLooper())).thenReturn(mRedirectListener); in setUp() 293 mPasspointProvisioner.init(mLooper.getLooper()); in initAndStartProvisioning() 297 assertEquals(mHandler.getLooper(), mLooper.getLooper()); in initAndStartProvisioning() 299 mLooper.dispatchAll(); in initAndStartProvisioning() 305 mLooper.dispatchAll(); in initAndStartProvisioning() 335 mLooper.dispatchAll(); in stopAfterStep() 343 mLooper.dispatchAll(); in stopAfterStep() 353 mLooper.dispatchAll(); in stopAfterStep() 369 mLooper.dispatchAll(); in stopAfterStep() [all …]
|
/packages/modules/Uwb/service/tests/src/com/android/server/uwb/ |
D | UwbSettingsStoreTest.java | 71 private TestLooper mLooper; field in UwbSettingsStoreTest 78 mLooper = new TestLooper(); in setUp() 83 mContext, new Handler(mLooper.getLooper()), mAtomicFile, mUwbInjector); in setUp() 98 mLooper.dispatchAll(); in testSetterGetter() 111 new Handler(mLooper.getLooper())); in testChangeListener() 114 mLooper.dispatchAll(); in testChangeListener() 119 mLooper.dispatchAll(); in testChangeListener() 130 mLooper.dispatchAll(); in testLoadFromStore() 149 mLooper.dispatchAll(); in testMigrationWhenStoreFileEmptyOrNotFound() 167 mLooper.dispatchAll(); in testNoMigrationLoadFromStoreWhenStoreFileEmptyOrNotFound()
|
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/btservice/ |
D | SilenceDeviceManagerTest.java | 56 private Looper mLooper; field in SilenceDeviceManagerTest 78 mLooper = mHandlerThread.getLooper(); in setUp() 79 mSilenceDeviceManager = new SilenceDeviceManager(mAdapterService, mServiceFactory, mLooper); in setUp() 113 TestUtils.waitForLooperToFinishScheduledTask(mLooper); in testSetGetDeviceSilenceConnectedCase() 122 TestUtils.waitForLooperToFinishScheduledTask(mLooper); in testSetGetDeviceSilenceConnectedCase() 153 TestUtils.waitForLooperToFinishScheduledTask(mLooper); in testSetGetDeviceSilenceDisconnectedCase() 172 TestUtils.waitForLooperToFinishScheduledTask(mLooper); in a2dpConnected() 179 TestUtils.waitForLooperToFinishScheduledTask(mLooper); in a2dpDisconnected() 186 TestUtils.waitForLooperToFinishScheduledTask(mLooper); in headsetConnected() 193 TestUtils.waitForLooperToFinishScheduledTask(mLooper); in headsetDisconnected()
|
/packages/apps/Messaging/src/com/android/messaging/util/ |
D | NotificationPlayer.java | 65 private Looper mLooper; field in NotificationPlayer 83 mLooper = Looper.myLooper(); in run() 132 if ((mLooper != null) in startSound() 133 && (mLooper.getThread().getState() != Thread.State.TERMINATED)) { in startSound() 134 mLooper.quit(); in startSound() 168 if ((mLooper != null) && (mLooper.getThread().getState() != Thread.State.TERMINATED)) { in stopSound() 169 mLooper.quit(); in stopSound() 229 if (mLooper != null) { in onCompletion() 230 mLooper.quit(); in onCompletion()
|