/packages/modules/Connectivity/Tethering/tests/unit/common/android/net/ |
D | TetheredClientTest.kt | 22 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/ |
D | UsbDefaultFragmentTest.java | 152 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()
|
D | UsbDetailsFunctionsControllerTest.java | 270 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/ |
D | TetheringMetricsTest.java | 28 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/ |
D | TetherEnablerTest.java | 20 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/ |
D | EntitlementManagerTest.java | 29 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()
|
D | ConnectedClientsTrackerTest.kt | 23 import android.net.TetheringManager.TETHERING_USB 69 TETHERING_USB)
|
D | TetheringTest.java | 45 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()
|
D | PrivateAddressCoordinatorTest.java | 25 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/ |
D | TetheredRepositoryTest.kt | 105 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/ |
D | TetheringManagerTest.java | 25 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/ |
D | IpServerTest.java | 26 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/ |
D | TetherEnabler.java | 20 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/ |
D | UsbDefaultFragment.java | 19 import static android.net.TetheringManager.TETHERING_USB; 188 mTetheringManager.startTethering(TETHERING_USB, new HandlerExecutor(mHandler), in startTethering()
|
D | UsbDetailsFunctionsController.java | 159 TetheringManager.TETHERING_USB, new HandlerExecutor(mHandler), in onRadioButtonClicked()
|
/packages/modules/Connectivity/Tethering/tests/unit/src/com/android/networkstack/tethering/util/ |
D | TetheringUtilsTest.java | 19 import static android.net.TetheringManager.TETHERING_USB; 92 request.tetheringType = TETHERING_USB; in testIsTetheringRequestEquals()
|
/packages/modules/Connectivity/Tethering/src/com/android/networkstack/tethering/ |
D | EntitlementManager.java | 30 import static android.net.TetheringManager.TETHERING_USB; 563 case TETHERING_USB: in isValidDownstreamType() 602 case TETHERING_USB: return "TETHERING_USB"; in typeString()
|
D | Tethering.java | 40 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/ |
D | TetheringMetrics.java | 28 import static android.net.TetheringManager.TETHERING_USB; 293 case TETHERING_USB: in downstreamTypeToEnum()
|
/packages/apps/Settings/src/com/android/settings/wifi/tether/ |
D | TetherService.java | 26 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/ |
D | TetherSettings.java | 20 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/ |
D | PMCMainActivity.java | 315 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/ |
D | TetheringManager.java | 137 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/ |
D | system-current.txt | 49 field public static final int TETHERING_USB = 1; // 0x1
|
/packages/modules/Connectivity/framework/api/ |
D | system-current.txt | 71 field public static final int TETHERING_USB = 1; // 0x1
|