Home
last modified time | relevance | path

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

12

/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.java152 verify(mTetheringManager).startTethering(eq(TetheringManager.TETHERING_USB), in setDefaultKey_functionRndis_startTetheringInvoked()
165 verify(mTetheringManager).startTethering(eq(TetheringManager.TETHERING_USB), in setDefaultKey_functionNcm_invokesStartTethering()
296 verify(mTetheringManager).startTethering(eq(TetheringManager.TETHERING_USB), in usbIsPluginAndUsbTetheringIsOn_startTetheringIsInvoked()
312 verify(mTetheringManager).startTethering(eq(TetheringManager.TETHERING_USB), in usbIsPluginAndUsbTetheringIsOn_receivedNcm_startsTethering()
325 verify(mTetheringManager, never()).startTethering(eq(TetheringManager.TETHERING_USB), in usbIsNotPluginAndUsbTetheringIsOn_startTetheringIsNotInvoked()
342 verify(mTetheringManager, never()).startTethering(eq(TetheringManager.TETHERING_USB), in usbIsPluginAndUsbTetheringIsAlreadyStarted_startTetheringIsNotInvoked()
DUsbDetailsFunctionsControllerTest.java270 verify(mTetheringManager).startTethering(eq(TetheringManager.TETHERING_USB), in onRadioButtonClicked_functionRndis_startTetheringInvoked()
284 verify(mTetheringManager).startTethering(eq(TetheringManager.TETHERING_USB), in onRadioButtonClicked_functionNcm_startsTethering()
335 verify(mTetheringManager, never()).startTethering(eq(TetheringManager.TETHERING_USB), in onRadioButtonClicked_clickSameButton_doNothing()
/packages/modules/Connectivity/Tethering/tests/unit/src/com/android/networkstack/tethering/metrics/
DTetheringMetricsTest.java28 import static android.net.TetheringManager.TETHERING_USB;
185 runDownstreamTypesTest(TETHERING_USB, DownstreamType.DS_TETHERING_USB); in testDownstreamTypes()
292 mTetheringMetrics.createBuilder(TETHERING_USB, SYSTEMUI_PKG); in testMultiBuildersCreatedBeforeSendReport()
307 updateErrorAndSendReport(TETHERING_USB, TETHER_ERROR_ENABLE_FORWARDING_ERROR); in testMultiBuildersCreatedBeforeSendReport()
335 mTetheringMetrics.createBuilder(TETHERING_USB, SYSTEMUI_PKG); in testUpstreamsWithMultipleDownstreams()
338 updateErrorAndSendReport(TETHERING_USB, TETHER_ERROR_NO_ERROR); in testUpstreamsWithMultipleDownstreams()
/packages/apps/Settings/tests/robotests/src/com/android/settings/network/
DTetherEnablerTest.java20 import static android.net.ConnectivityManager.TETHERING_USB;
185 verify(mConnectivityManager, never()).startTethering(eq(TETHERING_USB), anyBoolean(), any(), in onSwitchToggled_onlyStartsWifiTetherWhenNeeded()
203 verify(mConnectivityManager).stopTethering(TETHERING_USB); in onSwitchToggled_stopAllTetheringInterfaces()
305 assertThat(TetherEnabler.isTethering(TETHERING_USB_ON, TETHERING_USB)).isTrue(); in isTethering_shouldReturnCorrectly()
306 assertThat(TetherEnabler.isTethering(~TETHERING_USB_ON, TETHERING_USB)).isFalse(); in isTethering_shouldReturnCorrectly()
/packages/modules/Connectivity/Tethering/tests/unit/src/com/android/networkstack/tethering/
DEntitlementManagerTest.java29 import static android.net.TetheringManager.TETHERING_USB;
403 mEnMgr.requestLatestTetheringEntitlementResult(TETHERING_USB, receiver, false); in testRequestLastEntitlementCacheValue()
467 mEnMgr.startProvisioningIfNeeded(TETHERING_USB, true); in verifyPermissionIfAllNotApproved()
494 mEnMgr.startProvisioningIfNeeded(TETHERING_USB, true); in verifyPermissionIfAnyApproved()
525 mEnMgr.startProvisioningIfNeeded(TETHERING_USB, true); in testRunTetherProvisioning()
637 mEnMgr.startProvisioningIfNeeded(TETHERING_USB, true); in testsetExemptedDownstreamType()
643 verify(mTetherProvisioningFailedListener).onTetherProvisioningFailed(TETHERING_USB, in testsetExemptedDownstreamType()
645 mEnMgr.stopProvisioningIfNeeded(TETHERING_USB); in testsetExemptedDownstreamType()
DConnectedClientsTrackerTest.kt23 import android.net.TetheringManager.TETHERING_USB
69 TETHERING_USB)
DTetheringTest.java45 import static android.net.TetheringManager.TETHERING_USB;
922 final TetheringRequestParcel request = createTetheringRequestParcel(TETHERING_USB); in prepareUsbTethering()
927 assertEquals(request, mTethering.getActiveTetheringRequests().get(TETHERING_USB)); in prepareUsbTethering()
2400 mTethering.stopTethering(TETHERING_USB); in runStopUSBTethering()
2647 mTethering.startTethering(createTetheringRequestParcel(TETHERING_USB), TEST_CALLER_PKG, in testMultipleStartTethering()
2655 mTethering.startTethering(createTetheringRequestParcel(TETHERING_USB), TEST_CALLER_PKG, in testMultipleStartTethering()
2664 mTethering.startTethering(createTetheringRequestParcel(TETHERING_USB, in testMultipleStartTethering()
2695 mTethering.startTethering(createTetheringRequestParcel(TETHERING_USB, in testRequestStaticIp()
3513 return new ArraySet<>(new Integer[] { TETHERING_USB, TETHERING_NCM, TETHERING_WIFI, in getAllSupportedTetheringTypes()
3552 expectedTypes.remove(TETHERING_USB); in testTetheringSupported()
DPrivateAddressCoordinatorTest.java25 import static android.net.TetheringManager.TETHERING_USB;
94 when(mUsbIpServer.interfaceType()).thenReturn(TETHERING_USB); in setUpIpServers()
/packages/apps/Settings/tests/spa_unit/src/com/android/settings/network/
DTetheredRepositoryTest.kt105 setOf(TetheringInterface(TetheringManager.TETHERING_USB, "")) in <lambda>()
108 assertThat(tetheredTypeDeferred.await()).isEqualTo(TetheringManager.TETHERING_USB) in <lambda>()
/packages/modules/Connectivity/tests/cts/tethering/src/android/tethering/cts/
DTetheringManagerTest.java25 import static android.net.TetheringManager.TETHERING_USB;
228 final TetheringRequest tr2 = new TetheringRequest.Builder(TETHERING_USB) in testTetheringRequest()
235 assertEquals(TETHERING_USB, tr2.getTetheringType()); in testTetheringRequest()
244 final TetheringRequest unparceled = new TetheringRequest.Builder(TETHERING_USB) in testTetheringRequestParcelable()
/packages/modules/Connectivity/Tethering/tests/unit/src/android/net/ip/
DIpServerTest.java26 import static android.net.TetheringManager.TETHERING_USB;
412 initStateMachine(TETHERING_USB); in canBeTetheredAsUsb()
584 initTetheredStateMachine(TETHERING_USB, null); in interfaceDownLeadsToUnavailable()
605 initStateMachine(TETHERING_USB); in usbShouldBeTornDownOnTetherError()
621 verify(mTetheringMetrics).updateErrorCode(eq(TETHERING_USB), in usbShouldBeTornDownOnTetherError()
623 verify(mTetheringMetrics).sendReport(eq(TETHERING_USB)); in usbShouldBeTornDownOnTetherError()
628 initTetheredStateMachine(TETHERING_USB, null); in shouldTearDownUsbOnUpstreamError()
642 verify(mTetheringMetrics).updateErrorCode(eq(TETHERING_USB), in shouldTearDownUsbOnUpstreamError()
644 verify(mTetheringMetrics).sendReport(eq(TETHERING_USB)); in shouldTearDownUsbOnUpstreamError()
/packages/apps/Settings/src/com/android/settings/network/
DTetherEnabler.java20 import static android.net.ConnectivityManager.TETHERING_USB;
113 public static final int TETHERING_USB_ON = 1 << TETHERING_USB;
290 stopTethering(TETHERING_USB); in onSwitchToggled()
/packages/apps/Settings/src/com/android/settings/connecteddevice/usb/
DUsbDefaultFragment.java19 import static android.net.TetheringManager.TETHERING_USB;
188 mTetheringManager.startTethering(TETHERING_USB, new HandlerExecutor(mHandler), in startTethering()
DUsbDetailsFunctionsController.java159 TetheringManager.TETHERING_USB, new HandlerExecutor(mHandler), in onRadioButtonClicked()
/packages/modules/Connectivity/Tethering/tests/unit/src/com/android/networkstack/tethering/util/
DTetheringUtilsTest.java19 import static android.net.TetheringManager.TETHERING_USB;
92 request.tetheringType = TETHERING_USB; in testIsTetheringRequestEquals()
/packages/modules/Connectivity/Tethering/src/com/android/networkstack/tethering/
DEntitlementManager.java30 import static android.net.TetheringManager.TETHERING_USB;
563 case TETHERING_USB: in isValidDownstreamType()
602 case TETHERING_USB: return "TETHERING_USB"; in typeString()
DTethering.java40 import static android.net.TetheringManager.TETHERING_USB;
439 stopTetheringInternal(TETHERING_USB); in onChange()
600 if (type == TETHERING_USB || type == TETHERING_NCM) return; in processInterfaceStateChange()
643 return TETHERING_USB; in ifaceNameToType()
710 case TETHERING_USB: in enableTetheringInternal()
1036 stopTethering(TETHERING_USB); in untetherAll()
1077 return TETHERING_USB; in getServedUsbType()
1105 case TETHERING_USB: in sendTetherStateChangedBroadcast()
1272 if (type == TETHERING_USB || type == TETHERING_NCM) { in maybeStopUsbProvisioning()
1566 if (type != TETHERING_USB && type != TETHERING_NCM) continue; in disableUsbIpServing()
[all …]
/packages/modules/Connectivity/Tethering/src/com/android/networkstack/tethering/metrics/
DTetheringMetrics.java28 import static android.net.TetheringManager.TETHERING_USB;
293 case TETHERING_USB: in downstreamTypeToEnum()
/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/Settings/src/com/android/settings/network/tether/
DTetherSettings.java20 import static android.net.ConnectivityManager.TETHERING_USB;
580 startTethering(TETHERING_USB); in onPreferenceTreeClick()
582 mCm.stopTethering(TETHERING_USB); in onPreferenceTreeClick()
/packages/apps/Test/connectivity/PMC/src/com/android/pmc/
DPMCMainActivity.java315 mConnManager.startTethering(ConnectivityManager.TETHERING_USB, true, tetherCallback); in startUSBTethering()
331 mConnManager.stopTethering(ConnectivityManager.TETHERING_USB); in stopUSBTethering()
/packages/modules/Connectivity/Tethering/common/TetheringLib/src/android/net/
DTetheringManager.java137 TETHERING_USB,
162 public static final int TETHERING_USB = 1; field in TetheringManager
874 return type == TETHERING_USB || type == TETHERING_ETHERNET || type == TETHERING_NCM;
/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

12