Loading packages/Tethering/Android.bp +10 −0 Original line number Diff line number Diff line Loading @@ -17,6 +17,7 @@ java_defaults { name: "TetheringAndroidLibraryDefaults", // TODO (b/146757305): change to module API once available // TODO (b/148190005): change to module-libs-api-stubs-current once it is ready. sdk_version: "core_platform", srcs: [ "src/**/*.java", Loading @@ -34,7 +35,12 @@ java_defaults { "net-utils-framework-common", ], libs: [ // Order matters: framework-tethering needs to be before the system stubs, otherwise // hidden fields in the framework-tethering classes (which are also used to generate stubs) // will not be found. "framework-tethering", "android_system_stubs_current", "framework-res", "unsupportedappusage", "android_system_stubs_current", "framework-res", Loading Loading @@ -86,6 +92,7 @@ cc_library { java_defaults { name: "TetheringAppDefaults", // TODO (b/146757305): change to module API once available // TODO (b/148190005): change to module-libs-api-stubs-current once it is ready. sdk_version: "core_platform", privileged: true, // Build system doesn't track transitive dependeicies for jni_libs, list all the dependencies Loading @@ -99,6 +106,9 @@ java_defaults { "res", ], libs: [ // Order matters: framework-tethering needs to be before the system stubs, otherwise // hidden fields in the framework-tethering classes (which are also used to generate stubs) // will not be found. "framework-tethering", "android_system_stubs_current", "framework-res", Loading packages/Tethering/common/TetheringLib/src/android/net/ITetheringConnector.aidl +4 −4 Original line number Diff line number Diff line /** * Copyright (c) 2019, The Android Open Source Project /* * Copyright (C) 2020 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. Loading @@ -10,7 +10,7 @@ * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing perNmissions and * See the License for the specific language governing permissions and * limitations under the License. */ package android.net; Loading packages/Tethering/common/TetheringLib/src/android/net/ITetheringEventCallback.aidl +2 −0 Original line number Diff line number Diff line Loading @@ -17,6 +17,7 @@ package android.net; import android.net.Network; import android.net.TetheredClient; import android.net.TetheringConfigurationParcel; import android.net.TetheringCallbackStartedParcel; import android.net.TetherStatesParcel; Loading @@ -33,4 +34,5 @@ oneway interface ITetheringEventCallback void onUpstreamChanged(in Network network); void onConfigurationChanged(in TetheringConfigurationParcel config); void onTetherStatesChanged(in TetherStatesParcel states); void onTetherClientsChanged(in List<TetheredClient> clients); } packages/Tethering/common/TetheringLib/src/android/net/TetheredClient.java +18 −0 Original line number Diff line number Diff line Loading @@ -191,6 +191,15 @@ public final class TetheredClient implements Parcelable { return new AddressInfo[size]; } }; @NonNull @Override public String toString() { return "AddressInfo {" + mAddress + (mHostname != null ? ", hostname " + mHostname : "") + "}"; } } @Override Loading @@ -212,4 +221,13 @@ public final class TetheredClient implements Parcelable { return new TetheredClient[size]; } }; @NonNull @Override public String toString() { return "TetheredClient {hwAddr " + mMacAddress + ", addresses " + mAddresses + ", tetheringType " + mTetheringType + "}"; } } packages/Tethering/common/TetheringLib/src/android/net/TetheringCallbackStartedParcel.aidl +2 −0 Original line number Diff line number Diff line Loading @@ -17,6 +17,7 @@ package android.net; import android.net.Network; import android.net.TetheredClient; import android.net.TetheringConfigurationParcel; import android.net.TetherStatesParcel; Loading @@ -29,4 +30,5 @@ parcelable TetheringCallbackStartedParcel { Network upstreamNetwork; TetheringConfigurationParcel config; TetherStatesParcel states; List<TetheredClient> tetheredClients; } No newline at end of file Loading
packages/Tethering/Android.bp +10 −0 Original line number Diff line number Diff line Loading @@ -17,6 +17,7 @@ java_defaults { name: "TetheringAndroidLibraryDefaults", // TODO (b/146757305): change to module API once available // TODO (b/148190005): change to module-libs-api-stubs-current once it is ready. sdk_version: "core_platform", srcs: [ "src/**/*.java", Loading @@ -34,7 +35,12 @@ java_defaults { "net-utils-framework-common", ], libs: [ // Order matters: framework-tethering needs to be before the system stubs, otherwise // hidden fields in the framework-tethering classes (which are also used to generate stubs) // will not be found. "framework-tethering", "android_system_stubs_current", "framework-res", "unsupportedappusage", "android_system_stubs_current", "framework-res", Loading Loading @@ -86,6 +92,7 @@ cc_library { java_defaults { name: "TetheringAppDefaults", // TODO (b/146757305): change to module API once available // TODO (b/148190005): change to module-libs-api-stubs-current once it is ready. sdk_version: "core_platform", privileged: true, // Build system doesn't track transitive dependeicies for jni_libs, list all the dependencies Loading @@ -99,6 +106,9 @@ java_defaults { "res", ], libs: [ // Order matters: framework-tethering needs to be before the system stubs, otherwise // hidden fields in the framework-tethering classes (which are also used to generate stubs) // will not be found. "framework-tethering", "android_system_stubs_current", "framework-res", Loading
packages/Tethering/common/TetheringLib/src/android/net/ITetheringConnector.aidl +4 −4 Original line number Diff line number Diff line /** * Copyright (c) 2019, The Android Open Source Project /* * Copyright (C) 2020 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. Loading @@ -10,7 +10,7 @@ * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing perNmissions and * See the License for the specific language governing permissions and * limitations under the License. */ package android.net; Loading
packages/Tethering/common/TetheringLib/src/android/net/ITetheringEventCallback.aidl +2 −0 Original line number Diff line number Diff line Loading @@ -17,6 +17,7 @@ package android.net; import android.net.Network; import android.net.TetheredClient; import android.net.TetheringConfigurationParcel; import android.net.TetheringCallbackStartedParcel; import android.net.TetherStatesParcel; Loading @@ -33,4 +34,5 @@ oneway interface ITetheringEventCallback void onUpstreamChanged(in Network network); void onConfigurationChanged(in TetheringConfigurationParcel config); void onTetherStatesChanged(in TetherStatesParcel states); void onTetherClientsChanged(in List<TetheredClient> clients); }
packages/Tethering/common/TetheringLib/src/android/net/TetheredClient.java +18 −0 Original line number Diff line number Diff line Loading @@ -191,6 +191,15 @@ public final class TetheredClient implements Parcelable { return new AddressInfo[size]; } }; @NonNull @Override public String toString() { return "AddressInfo {" + mAddress + (mHostname != null ? ", hostname " + mHostname : "") + "}"; } } @Override Loading @@ -212,4 +221,13 @@ public final class TetheredClient implements Parcelable { return new TetheredClient[size]; } }; @NonNull @Override public String toString() { return "TetheredClient {hwAddr " + mMacAddress + ", addresses " + mAddresses + ", tetheringType " + mTetheringType + "}"; } }
packages/Tethering/common/TetheringLib/src/android/net/TetheringCallbackStartedParcel.aidl +2 −0 Original line number Diff line number Diff line Loading @@ -17,6 +17,7 @@ package android.net; import android.net.Network; import android.net.TetheredClient; import android.net.TetheringConfigurationParcel; import android.net.TetherStatesParcel; Loading @@ -29,4 +30,5 @@ parcelable TetheringCallbackStartedParcel { Network upstreamNetwork; TetheringConfigurationParcel config; TetherStatesParcel states; List<TetheredClient> tetheredClients; } No newline at end of file