Home
last modified time | relevance | path

Searched refs:TETHERING_WIFI (Results 1 – 25 of 47) sorted by relevance

12

/packages/modules/Connectivity/Tethering/tests/unit/src/com/android/networkstack/tethering/
DEntitlementManagerTest.java30 import static android.net.TetheringManager.TETHERING_WIFI;
330 mEnMgr.requestLatestTetheringEntitlementResult(TETHERING_WIFI, receiver, true); in testRequestLastEntitlementCacheValue()
343 mEnMgr.requestLatestTetheringEntitlementResult(TETHERING_WIFI, receiver, false); in testRequestLastEntitlementCacheValue()
355 mEnMgr.requestLatestTetheringEntitlementResult(TETHERING_WIFI, receiver, true); in testRequestLastEntitlementCacheValue()
368 mEnMgr.requestLatestTetheringEntitlementResult(TETHERING_WIFI, receiver, false); in testRequestLastEntitlementCacheValue()
380 mEnMgr.requestLatestTetheringEntitlementResult(TETHERING_WIFI, receiver, true); in testRequestLastEntitlementCacheValue()
392 mEnMgr.requestLatestTetheringEntitlementResult(TETHERING_WIFI, receiver, true); in testRequestLastEntitlementCacheValue()
435 mEnMgr.startProvisioningIfNeeded(TETHERING_WIFI, true); in verifyPermissionResult()
441 mEnMgr.stopProvisioningIfNeeded(TETHERING_WIFI); in verifyPermissionResult()
447 mEnMgr.startProvisioningIfNeeded(TETHERING_WIFI, true); in verifyPermissionResult()
[all …]
DConnectedClientsTrackerTest.kt24 import android.net.TetheringManager.TETHERING_WIFI
56 TETHERING_WIFI)
64 TETHERING_WIFI)
109 val client2WithoutAddr = TetheredClient(client2Addr, emptyList(), TETHERING_WIFI) in runUpdateConnectedClientsTest()
151 assertSameClients(listOf(TetheredClient(client1Addr, emptyList(), TETHERING_WIFI)), in runUpdateConnectedClientsTest()
178 val client1WithoutAddr = TetheredClient(client1Addr, emptyList(), TETHERING_WIFI) in testLocalOnlyAndTetheredHotspotClients()
200 TetheredClient(client1Addr, emptyList(), TETHERING_WIFI), in testUpdateConnectedClients_LeaseExpiration()
206 TETHERING_WIFI)) in testUpdateConnectedClients_LeaseExpiration()
DTetheringServiceTest.java23 import static android.net.TetheringManager.TETHERING_WIFI;
320 request.tetheringType = TETHERING_WIFI; in testStartTethering()
354 request.tetheringType = TETHERING_WIFI; in runStartTetheringAndVerifyNoPermission()
365 request.tetheringType = TETHERING_WIFI; in testFailToBypassEntitlementWithoutNeworkStackPermission()
382 mTetheringConnector.stopTethering(TETHERING_WIFI, TEST_CALLER_PKG, in runStopTethering()
386 verify(mTethering).stopTethering(TETHERING_WIFI); in runStopTethering()
393 mTetheringConnector.stopTethering(TETHERING_WIFI, TEST_CALLER_PKG, in testStopTethering()
412 mTetheringConnector.stopTethering(TETHERING_WIFI, TEST_CALLER_PKG, in testStopTethering()
423 mTetheringConnector.requestLatestTetheringEntitlementResult(TETHERING_WIFI, result, in runRequestLatestTetheringEntitlementResult()
427 verify(mTethering).requestLatestTetheringEntitlementResult(eq(TETHERING_WIFI), in runRequestLatestTetheringEntitlementResult()
[all …]
DTetheringTest.java46 import static android.net.TetheringManager.TETHERING_WIFI;
1012 verify(mNotificationUpdater).onDownstreamChanged(eq(1 << TETHERING_WIFI)); in verifyStartHotspot()
1912 mTethering.startTethering(createTetheringRequestParcel(TETHERING_WIFI), TEST_CALLER_PKG, in failingWifiTetheringLegacyApBroadcast()
1941 mTethering.startTethering(createTetheringRequestParcel(TETHERING_WIFI), TEST_CALLER_PKG, in workingWifiTetheringEnrichedApBroadcast()
1968 mTethering.stopTethering(TETHERING_WIFI); in workingWifiTetheringEnrichedApBroadcast()
1991 mTethering.startTethering(createTetheringRequestParcel(TETHERING_WIFI), TEST_CALLER_PKG, in failureEnablingIpForwarding()
1997 verify(mTetheringMetrics).createBuilder(eq(TETHERING_WIFI), anyString()); in failureEnablingIpForwarding()
2021 verify(mNotificationUpdater, times(1)).onDownstreamChanged(eq(1 << TETHERING_WIFI)); in failureEnablingIpForwarding()
2037 verify(mTetheringMetrics, times(2)).updateErrorCode(eq(TETHERING_WIFI), in failureEnablingIpForwarding()
2039 verify(mTetheringMetrics, times(2)).sendReport(eq(TETHERING_WIFI)); in failureEnablingIpForwarding()
[all …]
/packages/modules/Connectivity/Tethering/tests/unit/src/com/android/networkstack/tethering/metrics/
DTetheringMetricsTest.java29 import static android.net.TetheringManager.TETHERING_WIFI;
182 runDownstreamTypesTest(TETHERING_WIFI, DownstreamType.DS_TETHERING_WIFI); in testDownstreamTypes()
192 mTetheringMetrics.createBuilder(TETHERING_WIFI, TEST_CALLER_PKG); in runErrorCodesTest()
196 updateErrorAndSendReport(TETHERING_WIFI, errorCode); in runErrorCodesTest()
234 mTetheringMetrics.createBuilder(TETHERING_WIFI, callerPkg); in runUserTypesTest()
237 updateErrorAndSendReport(TETHERING_WIFI, TETHER_ERROR_NO_ERROR); in runUserTypesTest()
259 mTetheringMetrics.createBuilder(TETHERING_WIFI, TEST_CALLER_PKG); in runUpstreamTypesTest()
263 updateErrorAndSendReport(TETHERING_WIFI, TETHER_ERROR_NO_ERROR); in runUpstreamTypesTest()
289 mTetheringMetrics.createBuilder(TETHERING_WIFI, SETTINGS_PKG); in testMultiBuildersCreatedBeforeSendReport()
298 updateErrorAndSendReport(TETHERING_WIFI, TETHER_ERROR_DHCPSERVER_ERROR); in testMultiBuildersCreatedBeforeSendReport()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/network/tether/
DTetheringManagerModelTest.java19 import static android.net.TetheringManager.TETHERING_WIFI;
100 mModel.startTethering(TETHERING_WIFI); in startTethering_startTetheringToTetheringManager()
102 verify(mTetheringManager).startTethering(eq(TETHERING_WIFI), any(), any()); in startTethering_startTetheringToTetheringManager()
107 mModel.stopTethering(TETHERING_WIFI); in stopTethering_stopTetheringToTetheringManager()
109 verify(mTetheringManager).stopTethering(eq(TETHERING_WIFI)); in stopTethering_stopTetheringToTetheringManager()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/wifi/
DCarWifiServiceUnitTest.java170 verify(mTetheringManager).startTethering(eq(TetheringManager.TETHERING_WIFI), any( in testPersistCarSettingOn_userUnlockBeforePowerOn_tetheringOn()
186 verify(mTetheringManager, never()).startTethering(eq(TetheringManager.TETHERING_WIFI), any( in testPersistCarSettingOn_notOnLast_noTethering()
201 verify(mTetheringManager, never()).startTethering(eq(TetheringManager.TETHERING_WIFI), any( in testPersistCarSettingOn_tetheringAlreadyEnabled_noTethering()
217 verify(mTetheringManager).startTethering(eq(TetheringManager.TETHERING_WIFI), any( in testPersistCarSettingOn_powerOnBeforeUserUnlock_tetheringOn()
232 verify(mTetheringManager, never()).startTethering(eq(TetheringManager.TETHERING_WIFI), any( in testPersistCarSettingOff_powerOnBeforeUserUnlock_noTethering()
242 verify(mTetheringManager, never()).startTethering(eq(TetheringManager.TETHERING_WIFI), any( in testPersistCarSettingOff_userUnlockBeforePowerOn_noTethering()
/packages/apps/Settings/tests/robotests/src/com/android/settings/network/
DTetherEnablerTest.java21 import static android.net.ConnectivityManager.TETHERING_WIFI;
149 mEnabler.startTethering(TetheringManager.TETHERING_WIFI); in startTether_fail_resetSwitchBar()
184 verify(mConnectivityManager).startTethering(eq(TETHERING_WIFI), anyBoolean(), any(), any()); in onSwitchToggled_onlyStartsWifiTetherWhenNeeded()
199 verify(mConnectivityManager).stopTethering(TETHERING_WIFI); in onSwitchToggled_stopAllTetheringInterfaces()
302 assertThat(TetherEnabler.isTethering(TETHERING_WIFI_ON, TETHERING_WIFI)).isTrue(); in isTethering_shouldReturnCorrectly()
303 assertThat(TetherEnabler.isTethering(~TETHERING_WIFI_ON, TETHERING_WIFI)).isFalse(); in isTethering_shouldReturnCorrectly()
/packages/modules/Connectivity/tests/cts/tethering/src/android/tethering/cts/
DTetheringManagerTest.java26 import static android.net.TetheringManager.TETHERING_WIFI;
219 final TetheringRequest tr = new TetheringRequest.Builder(TETHERING_WIFI).build(); in testTetheringRequest()
220 assertEquals(TETHERING_WIFI, tr.getTetheringType()); in testTetheringRequest()
285 new TetheringInterface(TETHERING_WIFI, wifiTetheringIface)); in testRegisterTetheringEventCallback()
341 mTM.startTethering(new TetheringRequest.Builder(TETHERING_WIFI).build(), in testEnableTetheringPermission()
402 TETHERING_WIFI, false, c -> c.run(), null); in testRequestLatestEntitlementResult()
413 TETHERING_WIFI, false, c -> c.run(), listener), TETHER_ERROR_NO_ERROR); in testRequestLatestEntitlementResult()
/packages/apps/Settings/src/com/android/settings/wifi/tether/
DWifiTetherSwitchBarController.java19 import static android.net.ConnectivityManager.TETHERING_WIFI;
119 mConnectivityManager.stopTethering(TETHERING_WIFI); in stopTether()
126 mConnectivityManager.startTethering(TETHERING_WIFI, true /* showProvisioningUi */, in startTether()
DWifiTetherPreferenceController.java19 import static android.net.TetheringManager.TETHERING_WIFI;
247 mTetheringManagerModel.startTethering(TETHERING_WIFI); in onSwitchToggled()
249 mTetheringManagerModel.stopTethering(TETHERING_WIFI); in onSwitchToggled()
/packages/modules/Connectivity/Tethering/src/com/android/networkstack/tethering/
DConnectedClientsTracker.java19 import static android.net.TetheringManager.TETHERING_WIFI;
115 if (client.getTetheringType() == TETHERING_WIFI in updateConnectedClients()
145 mac, Collections.emptyList() /* addresses */, TETHERING_WIFI)); in addWifiClientsIfNoLeases()
/packages/apps/Car/Settings/src/com/android/car/settings/wifi/
DWifiTetherUtil.java42 tetheringManager.startTethering(ConnectivityManager.TETHERING_WIFI, in startTethering()
50 tetheringManager.stopTethering(ConnectivityManager.TETHERING_WIFI); in stopTethering()
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/tether/
DWifiTetherPreferenceControllerTest.java19 import static android.net.TetheringManager.TETHERING_WIFI;
202 verify(mTetheringManagerModel).startTethering(TETHERING_WIFI); in onSwitchToggled_isChecked_startTethering()
210 verify(mTetheringManagerModel).stopTethering(TETHERING_WIFI); in onSwitchToggled_isUnchecked_stopTethering()
/packages/modules/Connectivity/Tethering/tests/unit/src/android/net/ip/
DIpServerTest.java27 import static android.net.TetheringManager.TETHERING_WIFI;
497 initTetheredStateMachine(TETHERING_WIFI, UPSTREAM_IFACE); in handlesChangingUpstreamNatFailure()
524 initTetheredStateMachine(TETHERING_WIFI, UPSTREAM_IFACE); in handlesChangingUpstreamInterfaceForwardingFailure()
649 initTetheredStateMachine(TETHERING_WIFI, UPSTREAM_IFACE); in ignoresDuplicateUpstreamNotifications()
661 initTetheredStateMachine(TETHERING_WIFI, UPSTREAM_IFACE); in startsDhcpServer()
751 initTetheredStateMachine(TETHERING_WIFI, UPSTREAM_IFACE, NO_ADDRESSES, in doesNotStartDhcpServerIfDisabled()
760 initTetheredStateMachine(TETHERING_WIFI, UPSTREAM_IFACE, UPSTREAM_ADDRESSES, in ipv6UpstreamInterfaceChanges()
828 initTetheredStateMachine(TETHERING_WIFI, UPSTREAM_IFACE, UPSTREAM_ADDRESSES, in stopNeighborMonitoringWhenInterfaceDown()
851 initTetheredStateMachine(TETHERING_WIFI, UPSTREAM_IFACE); in testAdjustTtlValue()
885 initStateMachine(TETHERING_WIFI); in testStopObsoleteDhcpServer()
[all …]
/packages/apps/Settings/src/com/android/settings/network/
DTetherEnabler.java21 import static android.net.ConnectivityManager.TETHERING_WIFI;
112 public static final int TETHERING_WIFI_ON = 1 << TETHERING_WIFI;
288 startTethering(TETHERING_WIFI); in onSwitchToggled()
291 stopTethering(TETHERING_WIFI); in onSwitchToggled()
DTetherPreferenceController.kt77 val hotSpotOn = TetheringManager.TETHERING_WIFI in tetheredTypes in getSummaryResId()
78 val tetherOn = tetheredTypes.any { it != TetheringManager.TETHERING_WIFI } in getSummaryResId()
/packages/apps/Settings/tests/spa_unit/src/com/android/settings/network/
DTetherPreferenceControllerTest.kt80 setOf(TetheringManager.TETHERING_WIFI, TetheringManager.TETHERING_BLUETOOTH) in getSummaryResId_bothWifiAndBluetoothOn()
88 val summaryResId = controller.getSummaryResId(setOf(TetheringManager.TETHERING_WIFI)) in getSummaryResId_onlyWifiHotspotOn()
DTetheredRepositoryTest.kt88 tetheringInterfaces = setOf(TetheringInterface(TetheringManager.TETHERING_WIFI, "")) in <lambda>()
92 assertThat(tetheredTypes).containsExactly(TetheringManager.TETHERING_WIFI) in <lambda>()
/packages/modules/Connectivity/Tethering/tests/mts/src/android/tethering/mts/
DTetheringModuleTest.java21 import static android.net.TetheringManager.TETHERING_WIFI;
108 tetherEventCallback.pollTetheredInterfacesChanged(wifiRegexs, TETHERING_WIFI, in addressConflictTest()
/packages/modules/Connectivity/tests/cts/net/util/java/android/net/cts/util/
DCtsTetheringUtils.java23 import static android.net.TetheringManager.TETHERING_WIFI;
499 final TetheringRequest request = new TetheringRequest.Builder(TETHERING_WIFI) in startWifiTethering()
507 callback.expectTetheredInterfacesChanged(wifiRegexs, TETHERING_WIFI); in startWifiTethering()
553 mTm.stopTethering(TETHERING_WIFI); in stopWifiTethering()
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/wifi/
DWifiTetheringHandlerTest.java106 eq(ConnectivityManager.TETHERING_WIFI), in onSwitchOn_shouldAttemptTetherOn()
117 verify(mTetheringManager).stopTethering(ConnectivityManager.TETHERING_WIFI); in onSwitchOff_shouldAttemptTetherOff()
/packages/apps/Settings/tests/unit/src/com/android/settings/wifi/repository/
DWifiHotspotRepositoryTest.java19 import static android.net.TetheringManager.TETHERING_WIFI;
705 verify(mTetheringManager, never()).stopTethering(TETHERING_WIFI); in restartTetheringIfNeeded_stateDisabled_doNotStopTethering()
714 verify(mTetheringManager).stopTethering(TETHERING_WIFI); in restartTetheringIfNeeded_stateEnabled_stopTethering()
723 verify(mTetheringManager, never()).startTethering(TETHERING_WIFI, in onStateChanged_stateDisabledAndRestartingFalse_doNotStartTethering()
733 verify(mTetheringManager).startTethering(TETHERING_WIFI, mContext.getMainExecutor(), in onStateChanged_stateDisabledAndRestartingTrue_startTethering()
/packages/modules/Connectivity/Tethering/tests/unit/src/com/android/networkstack/tethering/util/
DTetheringUtilsTest.java20 import static android.net.TetheringManager.TETHERING_WIFI;
73 request.tetheringType = TETHERING_WIFI; in makeTetheringRequestParcel()
/packages/apps/Settings/src/com/android/settings/wifi/repository/
DWifiHotspotRepository.java19 import static android.net.TetheringManager.TETHERING_WIFI;
607 mTetheringManager.startTethering(TETHERING_WIFI, mAppContext.getMainExecutor(), in startTethering()
613 mTetheringManager.stopTethering(TETHERING_WIFI); in stopTethering()

12