Home
last modified time | relevance | path

Searched refs:TetheringInterface (Results 1 – 12 of 12) sorted by relevance

/aosp12/packages/modules/Connectivity/Tethering/common/TetheringLib/src/android/net/
H A DTetheringInterface.java33 public final class TetheringInterface implements Parcelable { class
37 public TetheringInterface(@TetheringType int type, @NonNull String iface) { in TetheringInterface() method in TetheringInterface
43 private TetheringInterface(@NonNull Parcel in) { in TetheringInterface() method in TetheringInterface
71 if (!(obj instanceof TetheringInterface)) return false; in equals()
72 final TetheringInterface other = (TetheringInterface) obj; in equals()
82 public static final Creator<TetheringInterface> CREATOR = new Creator<TetheringInterface>() {
85 public TetheringInterface createFromParcel(@NonNull Parcel in) {
86 return new TetheringInterface(in);
91 public TetheringInterface[] newArray(int size) {
92 return new TetheringInterface[size];
H A DTetherStatesParcel.aidl19 import android.net.TetheringInterface;
26 TetheringInterface[] availableList;
27 TetheringInterface[] tetheredList;
28 TetheringInterface[] localOnlyList;
29 TetheringInterface[] erroredIfaceList;
H A DTetheringManager.java1014 default void onTetherableInterfacesChanged(@NonNull Set<TetheringInterface> interfaces) {
1037 default void onTetheredInterfacesChanged(@NonNull Set<TetheringInterface> interfaces) {
1060 default void onLocalOnlyInterfacesChanged(@NonNull Set<TetheringInterface> interfaces) {
1117 public static ArrayList<String> toIfaces(Collection<TetheringInterface> tetherIfaces) {
1119 for (TetheringInterface tether : tetherIfaces) {
1126 private static String[] toIfaces(TetheringInterface[] tetherIfaces) {
1212 private TetheringInterface[] mLastTetherableInterfaces = null;
1213 private TetheringInterface[] mLastTetheredInterfaces = null;
1214 private TetheringInterface[] mLastLocalOnlyInterfaces = null;
1225 final TetheringInterface tetherIface = newStates.erroredIfaceList[i];
[all …]
H A DTetheringInterface.aidl18 @JavaOnlyStableParcelable parcelable TetheringInterface;
/aosp12/packages/modules/Connectivity/tests/cts/net/util/java/android/net/cts/util/
H A DCtsTetheringUtils.java38 import android.net.TetheringInterface;
142 final int type, final Set<TetheringInterface> ifaces) { in getFirstMatchingTetheringInterface()
146 for (TetheringInterface iface : ifaces) { in getFirstMatchingTetheringInterface()
244 public void onError(TetheringInterface ifName, int error) { in onError()
266 for (TetheringInterface tether : tetheringIfaces) { in assertHasAllTetheringInterfaces()
278 final Set<TetheringInterface> interfaces = in expectTetherableInterfacesChanged()
293 public TetheringInterface expectTetheredInterfacesChanged( in expectTetheredInterfacesChanged()
303 final Set<TetheringInterface> interfaces = in expectTetheredInterfacesChanged()
304 (Set<TetheringInterface>) cv.callbackParam; in expectTetheredInterfacesChanged()
306 final TetheringInterface iface = in expectTetheredInterfacesChanged()
[all …]
/aosp12/packages/modules/Connectivity/Tethering/common/TetheringLib/api/
H A Dsystem-current.txt22 public final class TetheringInterface implements android.os.Parcelable {
23 ctor public TetheringInterface(int, @NonNull String);
28 …field @NonNull public static final android.os.Parcelable.Creator<android.net.TetheringInterface> C…
86 method public default void onError(@NonNull android.net.TetheringInterface, int);
88 … default void onLocalOnlyInterfacesChanged(@NonNull java.util.Set<android.net.TetheringInterface>);
91 …default void onTetherableInterfacesChanged(@NonNull java.util.Set<android.net.TetheringInterface>);
93 …c default void onTetheredInterfacesChanged(@NonNull java.util.Set<android.net.TetheringInterface>);
/aosp12/packages/modules/Connectivity/Tethering/src/com/android/networkstack/tethering/
H A DTethering.java98 import android.net.TetheringInterface;
927 final TetheringInterface tetheringIface = new TetheringInterface(type, iface); in sendTetherStateChangedBroadcast()
968 final ArrayList<TetheringInterface> available, in buildTetherStatesParcel()
969 final ArrayList<TetheringInterface> localOnly, in buildTetherStatesParcel()
970 final ArrayList<TetheringInterface> tethered, in buildTetherStatesParcel()
971 final ArrayList<TetheringInterface> errored, in buildTetherStatesParcel()
988 final ArrayList<TetheringInterface> localOnly, in buildStateChangeIntent()
989 final ArrayList<TetheringInterface> tethered, in buildStateChangeIntent()
990 final ArrayList<TetheringInterface> errored) { in buildStateChangeIntent()
2219 parcel.availableList = new TetheringInterface[0]; in emptyTetherStatesParcel()
[all …]
/aosp12/packages/modules/Connectivity/Tethering/common/TetheringLib/
H A DAndroid.bp60 "src/android/net/TetheringInterface.aidl",
61 "src/android/net/TetheringInterface.java",
/aosp12/packages/modules/Connectivity/Tethering/tests/mts/src/android/tethering/mts/
H A DTetheringModuleTest.java38 import android.net.TetheringInterface;
107 final TetheringInterface tetheredIface = in addressConflictTest()
/aosp12/packages/modules/Connectivity/Tethering/tests/integration/src/android/net/
H A DEthernetTetheringTest.java357 private final TetheringInterface mIface;
366 mIface = new TetheringInterface(TETHERING_ETHERNET, iface); in MyTetheringEventCallback()
379 public void onTetheredInterfacesChanged(Set<TetheringInterface> interfaces) { in onTetheredInterfacesChanged()
400 public void onLocalOnlyInterfacesChanged(Set<TetheringInterface> interfaces) { in onLocalOnlyInterfacesChanged()
/aosp12/packages/modules/Connectivity/tests/cts/tethering/src/android/tethering/cts/
H A DTetheringManagerTest.java50 import android.net.TetheringInterface;
261 final TetheringInterface tetheredIface = in testRegisterTetheringEventCallback()
277 new TetheringInterface(TETHERING_WIFI, wifiTetheringIface)); in testRegisterTetheringEventCallback()
/aosp12/packages/modules/Connectivity/Tethering/tests/unit/src/com/android/networkstack/tethering/
H A DTetheringTest.java141 import android.net.TetheringInterface;
1826 final TetheringInterface wifiIface = new TetheringInterface( in testRegisterTetheringEventCallback()
1846 assertArrayEquals(tetherState.availableList, new TetheringInterface[] {wifiIface}); in testRegisterTetheringEventCallback()
1851 assertArrayEquals(tetherState.tetheredList, new TetheringInterface[] {wifiIface}); in testRegisterTetheringEventCallback()
1863 assertEquals(tetherState.tetheredList, new TetheringInterface[] {wifiIface}); in testRegisterTetheringEventCallback()
1872 assertArrayEquals(tetherState.availableList, new TetheringInterface[] {wifiIface}); in testRegisterTetheringEventCallback()