Searched refs:mTethering (Results 1 – 4 of 4) sorted by relevance
/frameworks/base/packages/Tethering/tests/unit/src/com/android/networkstack/tethering/ |
D | TetheringServiceTest.java | 67 private Tethering mTethering; field in TetheringServiceTest 112 mTethering = service.getTethering(); in setUp() 145 when(mTethering.isTetheringSupported()).thenReturn(true); in runTetheringCall() 153 verifyNoMoreInteractions(mTethering); in verifyNoMoreInteractionsForTethering() 155 reset(mTethering, mITetheringEventCallback); in verifyNoMoreInteractionsForTethering() 159 when(mTethering.tether(TEST_IFACE_NAME)).thenReturn(TETHER_ERROR_NO_ERROR); in runTether() 161 verify(mTethering).isTetheringSupported(); in runTether() 162 verify(mTethering).tether(TEST_IFACE_NAME); in runTether() 171 verify(mTethering).isTetherProvisioningRequired(); in testTether() 183 verify(mTethering).isTetherProvisioningRequired(); in testTether() [all …]
|
D | TetheringTest.java | 225 private Tethering mTethering; field in TetheringTest 541 mTethering = makeTethering(); in setUp() 684 mTethering.interfaceStatusChanged(TEST_WLAN_IFNAME, true); in failingLocalOnlyHotspotLegacyApBroadcast() 705 mTethering.startTethering(createTetheringRequestParcel(TETHERING_NCM), null); in prepareNcmTethering() 709 mTethering.interfaceStatusChanged(TEST_NCM_IFNAME, true); in prepareNcmTethering() 716 mTethering.startTethering(createTetheringRequestParcel(TETHERING_USB), null); in prepareUsbTethering() 720 mTethering.interfaceStatusChanged(TEST_USB_IFNAME, true); in prepareUsbTethering() 759 mTethering.interfaceStatusChanged(TEST_WLAN_IFNAME, true); in workingLocalOnlyHotspotEnrichedApBroadcast() 782 mTethering.interfaceRemoved(TEST_WLAN_IFNAME); in workingLocalOnlyHotspotEnrichedApBroadcast() 798 assertEquals(TETHER_ERROR_UNKNOWN_IFACE, mTethering.getLastTetherError(TEST_WLAN_IFNAME)); in workingLocalOnlyHotspotEnrichedApBroadcast() [all …]
|
D | MockTetheringService.java | 33 private final Tethering mTethering = mock(Tethering.class); field in MockTetheringService 42 return mTethering; in makeTethering() 55 return mTethering; in getTethering()
|
/frameworks/base/packages/Tethering/src/com/android/networkstack/tethering/ |
D | TetheringService.java | 97 private final Tethering mTethering; field in TetheringService.TetheringConnector 100 mTethering = tether; in TetheringConnector() 110 listener.onResult(mTethering.tether(iface)); in tether() 120 listener.onResult(mTethering.untether(iface)); in untether() 130 listener.onResult(mTethering.setUsbTethering(enable)); in setUsbTethering() 144 mTethering.startTethering(request, listener); in startTethering() 153 mTethering.stopTethering(type); in stopTethering() 163 mTethering.requestLatestTetheringEntitlementResult(type, receiver, showEntitlementUi); in requestLatestTetheringEntitlementResult() 174 mTethering.registerTetheringEventCallback(callback); in registerTetheringEventCallback() 186 mTethering.unregisterTetheringEventCallback(callback); in unregisterTetheringEventCallback() [all …]
|