Home
last modified time | relevance | path

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

12

/packages/apps/Settings/tests/robotests/src/com/android/settings/network/
DTetherEnablerTest.java151 mEnabler.startTethering(TetheringManager.TETHERING_WIFI); in startTether_fail_resetSwitchBar()
179 verify(mConnectivityManager, never()).startTethering(anyInt(), anyBoolean(), any(), any()); in onSwitchToggled_onlyStartsWifiTetherWhenNeeded()
183 verify(mConnectivityManager).startTethering(eq(TETHERING_WIFI), anyBoolean(), any(), any()); in onSwitchToggled_onlyStartsWifiTetherWhenNeeded()
184 verify(mConnectivityManager, never()).startTethering(eq(TETHERING_USB), anyBoolean(), any(), in onSwitchToggled_onlyStartsWifiTetherWhenNeeded()
186 verify(mConnectivityManager, never()).startTethering(eq(TETHERING_BLUETOOTH), anyBoolean(), in onSwitchToggled_onlyStartsWifiTetherWhenNeeded()
188 verify(mConnectivityManager, never()).startTethering(eq(TETHERING_ETHERNET), anyBoolean(), in onSwitchToggled_onlyStartsWifiTetherWhenNeeded()
217 mEnabler.startTethering(ConnectivityManager.TETHERING_BLUETOOTH); in startTethering_startsBluetoothTetherWhenOff()
221 mEnabler.startTethering(ConnectivityManager.TETHERING_BLUETOOTH); in startTethering_startsBluetoothTetherWhenOff()
222 verify(mConnectivityManager).startTethering( in startTethering_startsBluetoothTetherWhenOff()
DUsbTetherPreferenceControllerTest.java108 verify(mTetherEnabler).startTethering(TetheringManager.TETHERING_USB); in setChecked_shouldStartUsbTethering()
DBluetoothTetherPreferenceControllerTest.java112 verify(mTetherEnabler).startTethering(TetheringManager.TETHERING_BLUETOOTH); in setChecked_shouldStartBluetoothTethering()
DEthernetTetherPreferenceControllerTest.java118 verify(mTetherEnabler).startTethering(TetheringManager.TETHERING_ETHERNET); in setChecked_shouldStartEthernetTethering()
/packages/apps/Car/Settings/src/com/android/car/settings/wifi/
DWifiTetheringHandler.java101 startTethering(); in updateWifiTetheringState()
137 startTethering(); in handleWifiApStateChanged()
148 private void startTethering() { in startTethering() method in WifiTetheringHandler
149 mTetheringManager.startTethering(ConnectivityManager.TETHERING_WIFI, in startTethering()
/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/apps/Settings/src/com/android/settings/connecteddevice/usb/
DUsbDefaultFragment.java81 startTethering();
171 startTethering(); in setDefaultKey()
182 private void startTethering() { in startTethering() method in UsbDefaultFragment
185 mTetheringManager.startTethering(TETHERING_USB, new HandlerExecutor(mHandler), in startTethering()
DUsbDetailsFunctionsController.java156 mTetheringManager.startTethering( in onRadioButtonClicked()
/packages/apps/Settings/src/com/android/settings/
DTetherSettings.java292 startTethering(TETHERING_BLUETOOTH); in onReceive()
511 private void startTethering(int choice) { in startTethering() method in TetherSettings
523 mCm.startTethering(choice, true, mStartTetheringCallback, mHandler); in startTethering()
530 startTethering(TETHERING_USB); in onPreferenceTreeClick()
536 startTethering(TETHERING_BLUETOOTH); in onPreferenceTreeClick()
542 startTethering(TETHERING_ETHERNET); in onPreferenceTreeClick()
/packages/apps/Settings/src/com/android/settings/network/
DTetherEnabler.java264 startTethering(TETHERING_WIFI); in onSwitchToggled()
288 public void startTethering(int choice) { in startTethering() method in TetherEnabler
308 mConnectivityManager.startTethering(choice, true /* showProvisioningUi */, in startTethering()
335 startTethering(TETHERING_BLUETOOTH); in handleBluetoothStateChanged()
DTetherBasePreferenceController.java87 mTetherEnabler.startTethering(getTetherType()); in setChecked()
/packages/modules/Connectivity/Tethering/tests/unit/src/com/android/networkstack/tethering/
DTetheringTest.java833 mTethering.startTethering(createTetheringRequestParcel(TETHERING_NCM), null); in prepareNcmTethering()
841 mTethering.startTethering(request, null); in prepareUsbTethering()
1411 mTethering.startTethering(createTetheringRequestParcel(TETHERING_WIFI), null); in failingWifiTetheringLegacyApBroadcast()
1438 mTethering.startTethering(createTetheringRequestParcel(TETHERING_WIFI), null); in workingWifiTetheringEnrichedApBroadcast()
1514 mTethering.startTethering(createTetheringRequestParcel(TETHERING_WIFI), null); in failureEnablingIpForwarding()
1848 mTethering.startTethering(createTetheringRequestParcel(TETHERING_WIFI), null); in testRegisterTetheringEventCallback()
1945 mTethering.startTethering(createTetheringRequestParcel(TETHERING_ETHERNET), null); in testNoDuplicatedEthernetRequest()
1948 mTethering.startTethering(createTetheringRequestParcel(TETHERING_ETHERNET), null); in testNoDuplicatedEthernetRequest()
2152 mTethering.startTethering(createTetheringRequestParcel(TETHERING_USB), firstResult); in testMultipleStartTethering()
2159 mTethering.startTethering(createTetheringRequestParcel(TETHERING_USB), secondResult); in testMultipleStartTethering()
[all …]
DTetheringServiceTest.java257 mTetheringConnector.startTethering(request, TEST_CALLER_PKG, TEST_ATTRIBUTION_TAG, in runStartTethering()
260 verify(mTethering).startTethering(eq(request), eq(result)); in runStartTethering()
269 mTetheringConnector.startTethering(request, TEST_CALLER_PKG, TEST_ATTRIBUTION_TAG, in testStartTethering()
293 mTetheringConnector.startTethering(request, TEST_CALLER_PKG, TEST_ATTRIBUTION_TAG, in runStartTetheringAndVerifyNoPermission()
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/tether/
DWifiTetherSwitchBarControllerTest.java108 verify(mConnectivityManager, never()).startTethering(anyInt(), anyBoolean(), any(), any()); in onSwitchToggled_switchOff_noStartTethering()
119 .startTethering(anyInt(), anyBoolean(), any(), any()); in onSwitchToggled_switchOn_startTethering()
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/connectivity/
DConnectivityFragment.java492 view.findViewById(R.id.startTethering).setOnClickListener(v -> startTethering()); in onCreateView()
604 private void startTethering() { in startTethering() method in ConnectivityFragment
618 mConnectivityManager.startTethering(ConnectivityManager.TETHERING_WIFI, false, cb); in startTethering()
/packages/modules/Connectivity/Tethering/common/TetheringLib/src/android/net/
DTetheringManager.java802 public void startTethering(@NonNull final TetheringRequest request,
819 getConnector(c -> c.startTethering(request.getParcel(), callerPkg,
840 public void startTethering(int type, @NonNull final Executor executor,
842 startTethering(new TetheringRequest.Builder(type).build(), executor, callback);
DITetheringConnector.aidl34 void startTethering(in TetheringRequestParcel request, String callerPkg, in startTethering() method
/packages/modules/Connectivity/Tethering/src/com/android/networkstack/tethering/
DTetheringService.java130 public void startTethering(TetheringRequestParcel request, String callerPkg, in startTethering() method in TetheringService.TetheringConnector
139 mTethering.startTethering(request, listener); in startTethering()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/testutils/
DShadowConnectivityManager.java72 public void startTethering(int type, boolean showProvisioningUi, in startTethering() method in ShadowConnectivityManager
/packages/modules/Connectivity/tests/cts/tethering/src/android/tethering/cts/
DTetheringManagerTest.java219 mTM.startTethering(request, c -> c.run() /* executor */, startTetheringCallback); in testStartTetheringWithStateChangeBroadcast()
334 mTM.startTethering(new TetheringRequest.Builder(TETHERING_WIFI).build(), in testEnableTetheringPermission()
/packages/modules/Connectivity/Tethering/common/TetheringLib/api/
Dmodule-lib-current.txt25 …PRIVILEGED, android.Manifest.permission.WRITE_SETTINGS}) public void startTethering(int, @NonNull …
/packages/apps/Settings/src/com/android/settings/wifi/tether/
DWifiTetherSwitchBarController.java111 mConnectivityManager.startTethering(TETHERING_WIFI, true /* showProvisioningUi */, in startTether()
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/wifi/
DWifiTetheringHandlerTest.java110 verify(mTetheringManager).startTethering( in onSwitchOn_shouldAttemptTetherOn()
/packages/apps/Bluetooth/src/com/android/bluetooth/pan/
DPanService.java598 mNapIfaceAddr = startTethering(iface); in handlePanDeviceStateChange()
648 private String startTethering(String iface) { in startTethering() method in PanService

12