Searched refs:tetherState (Results 1 – 3 of 3) sorted by relevance
985 TetherState tetherState = mTetherStates.get(iface); in tether() local986 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() local1021 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 …]
247 int tetherState = TETHERING_OFF; in getTetheringState() local253 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()
2325 TetherStatesParcel tetherState = callback.pollTetherStatesChanged(); in testRegisterTetheringEventCallback() local2326 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()