Home
last modified time | relevance | path

Searched refs:tetherState (Results 1 – 3 of 3) sorted by relevance

/packages/modules/Connectivity/Tethering/src/com/android/networkstack/tethering/
DTethering.java985 TetherState tetherState = mTetherStates.get(iface); in tether() local
986 if (tetherState == null) { in tether()
992 if (tetherState.lastState != IpServer.STATE_AVAILABLE) { in tether()
1000 final int type = tetherState.ipServer.interfaceType(); in tether()
1005 tetherState.ipServer.enable(requestedState, request); in tether()
1020 TetherState tetherState = mTetherStates.get(iface); in untether() local
1021 if (tetherState == null) { in untether()
1025 if (!tetherState.isCurrentlyServing()) { in untether()
1029 tetherState.ipServer.unwanted(); in untether()
1043 TetherState tetherState = mTetherStates.get(iface); in getLastErrorForTest() local
[all …]
/packages/apps/Settings/src/com/android/settings/network/
DTetherEnabler.java247 int tetherState = TETHERING_OFF; in getTetheringState() local
253 tetherState |= TETHERING_WIFI_ON; in getTetheringState()
262 tetherState |= TETHERING_BLUETOOTH_ON; in getTetheringState()
270 tetherState |= TETHERING_USB_ON; in getTetheringState()
274 tetherState |= TETHERING_ETHERNET_ON; in getTetheringState()
278 return tetherState; in getTetheringState()
/packages/modules/Connectivity/Tethering/tests/unit/src/com/android/networkstack/tethering/
DTetheringTest.java2325 TetherStatesParcel tetherState = callback.pollTetherStatesChanged(); in testRegisterTetheringEventCallback() local
2326 assertTetherStatesNotNullButEmpty(tetherState); in testRegisterTetheringEventCallback()
2334 tetherState = callback.pollTetherStatesChanged(); in testRegisterTetheringEventCallback()
2335 assertArrayEquals(tetherState.availableList, new TetheringInterface[] {wifiIface}); in testRegisterTetheringEventCallback()
2340 tetherState = callback.pollTetherStatesChanged(); in testRegisterTetheringEventCallback()
2341 assertArrayEquals(tetherState.tetheredList, new TetheringInterface[] {wifiIface}); in testRegisterTetheringEventCallback()
2352 tetherState = callback2.pollTetherStatesChanged(); in testRegisterTetheringEventCallback()
2353 assertEquals(tetherState.tetheredList, new TetheringInterface[] {wifiIface}); in testRegisterTetheringEventCallback()
2367 tetherState = callback2.pollTetherStatesChanged(); in testRegisterTetheringEventCallback()
2368 assertArrayEquals(tetherState.availableList, new TetheringInterface[] {wifiIface}); in testRegisterTetheringEventCallback()