Home
last modified time | relevance | path

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

/packages/modules/Connectivity/Tethering/tests/unit/common/android/net/
DTetheredClientTest.kt22 import android.net.TetheringManager.TETHERING_USB
90 TETHERING_USB)) in makeLinkAddress()
95 val client1 = TetheredClient(TEST_MACADDR, listOf(TEST_ADDRINFO1), TETHERING_USB) in makeLinkAddress()
96 val client2 = TetheredClient(TEST_OTHER_MACADDR, listOf(TEST_ADDRINFO2), TETHERING_USB) in makeLinkAddress()
100 TETHERING_USB), client1.addAddresses(client2)) in makeLinkAddress()
/packages/apps/Settings/tests/robotests/src/com/android/settings/connecteddevice/usb/
DUsbDefaultFragmentTest.java153 verify(mTetheringManager).startTethering(eq(TetheringManager.TETHERING_USB), in setDefaultKey_functionRndis_startTetheringInvoked()
166 verify(mTetheringManager).startTethering(eq(TetheringManager.TETHERING_USB), in setDefaultKey_functionNcm_invokesStartTethering()
284 verify(mTetheringManager).startTethering(eq(TetheringManager.TETHERING_USB), in usbIsPluginAndUsbTetheringIsOn_startTetheringIsInvoked()
298 verify(mTetheringManager).startTethering(eq(TetheringManager.TETHERING_USB), in usbIsPluginAndUsbTetheringIsOn_receivedNcm_startsTethering()
310 verify(mTetheringManager, never()).startTethering(eq(TetheringManager.TETHERING_USB), in usbIsNotPluginAndUsbTetheringIsOn_startTetheringIsNotInvoked()
325 verify(mTetheringManager, never()).startTethering(eq(TetheringManager.TETHERING_USB), in usbIsPluginAndUsbTetheringIsAlreadyStarted_startTetheringIsNotInvoked()
DUsbDetailsFunctionsControllerTest.java262 verify(mTetheringManager).startTethering(eq(TetheringManager.TETHERING_USB), in onRadioButtonClicked_functionRndis_startTetheringInvoked()
276 verify(mTetheringManager).startTethering(eq(TetheringManager.TETHERING_USB), in onRadioButtonClicked_functionNcm_startsTethering()
327 verify(mTetheringManager, never()).startTethering(eq(TetheringManager.TETHERING_USB), in onRadioButtonClicked_clickSameButton_doNothing()
/packages/modules/Connectivity/Tethering/tests/unit/src/com/android/networkstack/tethering/
DEntitlementManagerTest.java29 import static android.net.TetheringManager.TETHERING_USB;
387 mEnMgr.requestLatestTetheringEntitlementResult(TETHERING_USB, receiver, false); in testRequestLastEntitlementCacheValue()
451 mEnMgr.startProvisioningIfNeeded(TETHERING_USB, true); in verifyPermissionIfAllNotApproved()
478 mEnMgr.startProvisioningIfNeeded(TETHERING_USB, true); in verifyPermissionIfAnyApproved()
509 mEnMgr.startProvisioningIfNeeded(TETHERING_USB, true); in testRunTetherProvisioning()
619 mEnMgr.startProvisioningIfNeeded(TETHERING_USB, true); in testsetExemptedDownstreamType()
625 verify(mEntitlementFailedListener).onUiEntitlementFailed(TETHERING_USB); in testsetExemptedDownstreamType()
626 mEnMgr.stopProvisioningIfNeeded(TETHERING_USB); in testsetExemptedDownstreamType()
DConnectedClientsTrackerTest.kt23 import android.net.TetheringManager.TETHERING_USB
63 TETHERING_USB)
DTetheringTest.java44 import static android.net.TetheringManager.TETHERING_USB;
840 final TetheringRequestParcel request = createTetheringRequestParcel(TETHERING_USB); in prepareUsbTethering()
845 assertEquals(request, mTethering.getActiveTetheringRequests().get(TETHERING_USB)); in prepareUsbTethering()
1913 mTethering.stopTethering(TETHERING_USB); in runStopUSBTethering()
2152 mTethering.startTethering(createTetheringRequestParcel(TETHERING_USB), firstResult); in testMultipleStartTethering()
2159 mTethering.startTethering(createTetheringRequestParcel(TETHERING_USB), secondResult); in testMultipleStartTethering()
2167 mTethering.startTethering(createTetheringRequestParcel(TETHERING_USB, in testMultipleStartTethering()
2196 mTethering.startTethering(createTetheringRequestParcel(TETHERING_USB, in testRequestStaticIp()
DPrivateAddressCoordinatorTest.java23 import static android.net.TetheringManager.TETHERING_USB;
89 when(mUsbIpServer.interfaceType()).thenReturn(TETHERING_USB); in setUpIpServers()
/packages/apps/Settings/tests/robotests/src/com/android/settings/network/
DTetherEnablerTest.java20 import static android.net.ConnectivityManager.TETHERING_USB;
184 verify(mConnectivityManager, never()).startTethering(eq(TETHERING_USB), anyBoolean(), any(), in onSwitchToggled_onlyStartsWifiTetherWhenNeeded()
202 verify(mConnectivityManager).stopTethering(TETHERING_USB); in onSwitchToggled_stopAllTetheringInterfaces()
304 assertThat(TetherEnabler.isTethering(TETHERING_USB_ON, TETHERING_USB)).isTrue(); in isTethering_shouldReturnCorrectly()
305 assertThat(TetherEnabler.isTethering(~TETHERING_USB_ON, TETHERING_USB)).isFalse(); in isTethering_shouldReturnCorrectly()
DUsbTetherPreferenceControllerTest.java108 verify(mTetherEnabler).startTethering(TetheringManager.TETHERING_USB); in setChecked_shouldStartUsbTethering()
114 verify(mTetherEnabler).stopTethering(TetheringManager.TETHERING_USB); in setUnchecked_shouldStopUsbTethering()
/packages/apps/Settings/src/com/android/settings/network/
DTetherEnabler.java20 import static android.net.ConnectivityManager.TETHERING_USB;
99 public static final int TETHERING_USB_ON = 1 << TETHERING_USB;
266 stopTethering(TETHERING_USB); in onSwitchToggled()
DUsbTetherPreferenceController.java77 return ConnectivityManager.TETHERING_USB; in getTetherType()
/packages/apps/Settings/src/com/android/settings/connecteddevice/usb/
DUsbDefaultFragment.java19 import static android.net.TetheringManager.TETHERING_USB;
185 mTetheringManager.startTethering(TETHERING_USB, new HandlerExecutor(mHandler), in startTethering()
DUsbDetailsFunctionsController.java157 TetheringManager.TETHERING_USB, new HandlerExecutor(mHandler), in onRadioButtonClicked()
/packages/modules/Connectivity/Tethering/src/com/android/networkstack/tethering/
DTethering.java41 import static android.net.TetheringManager.TETHERING_USB;
385 stopTetheringInternal(TETHERING_USB); in onChange()
533 if (type == TETHERING_USB || type == TETHERING_NCM) return; in processInterfaceStateChange()
574 return TETHERING_USB; in ifaceNameToType()
639 case TETHERING_USB: in enableTetheringInternal()
847 stopTethering(TETHERING_USB); in untetherAll()
907 return TETHERING_USB; in getServedUsbType()
937 case TETHERING_USB: in sendTetherStateChangedBroadcast()
1101 if (type == TETHERING_USB || type == TETHERING_NCM) { in maybeStopUsbProvisioning()
1370 if (type != TETHERING_USB && type != TETHERING_NCM) continue; in disableUsbIpServing()
DEntitlementManager.java29 import static android.net.TetheringManager.TETHERING_USB;
505 case TETHERING_USB: in isValidDownstreamType()
544 case TETHERING_USB: return "TETHERING_USB"; in typeString()
/packages/modules/Connectivity/tests/cts/tethering/src/android/tethering/cts/
DTetheringManagerTest.java23 import static android.net.TetheringManager.TETHERING_USB;
240 final TetheringRequest tr2 = new TetheringRequest.Builder(TETHERING_USB) in testTetheringRequest()
247 assertEquals(TETHERING_USB, tr2.getTetheringType()); in testTetheringRequest()
/packages/modules/Connectivity/Tethering/tests/unit/src/android/net/util/
DTetheringUtilsTest.java19 import static android.net.TetheringManager.TETHERING_USB;
92 request.tetheringType = TETHERING_USB; in testIsTetheringRequestEquals()
/packages/apps/Settings/src/com/android/settings/
DTetherSettings.java20 import static android.net.ConnectivityManager.TETHERING_USB;
530 startTethering(TETHERING_USB); in onPreferenceTreeClick()
532 mCm.stopTethering(TETHERING_USB); in onPreferenceTreeClick()
/packages/apps/Settings/src/com/android/settings/wifi/tether/
DTetherService.java26 import static android.net.TetheringManager.TETHERING_USB;
109 mPendingCallbacks.put(TETHERING_USB, new ArrayList<ResultReceiver>()); in onCreate()
/packages/apps/Test/connectivity/PMC/src/com/android/pmc/
DPMCMainActivity.java307 mConnManager.startTethering(ConnectivityManager.TETHERING_USB, true, tetherCallback); in startUSBTethering()
323 mConnManager.stopTethering(ConnectivityManager.TETHERING_USB); in stopUSBTethering()
/packages/modules/Connectivity/Tethering/common/TetheringLib/src/android/net/
DTetheringManager.java124 TETHERING_USB,
149 public static final int TETHERING_USB = 1; field in TetheringManager
746 return type == TETHERING_USB || type == TETHERING_ETHERNET || type == TETHERING_NCM;
/packages/modules/Connectivity/Tethering/tests/unit/src/android/net/ip/
DIpServerTest.java23 import static android.net.TetheringManager.TETHERING_USB;
440 initStateMachine(TETHERING_USB); in canBeTetheredAsUsb()
604 initTetheredStateMachine(TETHERING_USB, null); in interfaceDownLeadsToUnavailable()
625 initStateMachine(TETHERING_USB); in usbShouldBeTornDownOnTetherError()
645 initTetheredStateMachine(TETHERING_USB, null); in shouldTearDownUsbOnUpstreamError()
/packages/modules/Connectivity/Tethering/common/TetheringLib/api/
Dsystem-current.txt49 field public static final int TETHERING_USB = 1; // 0x1
/packages/modules/Connectivity/framework/api/
Dsystem-current.txt71 field public static final int TETHERING_USB = 1; // 0x1
/packages/modules/Connectivity/framework/src/android/net/
DConnectivityManager.java489 public static final int TETHERING_USB = 1; field in ConnectivityManager