Move OemNetworkPreferences to Connectivity
The data class supports a ConnectivityManager API, so it should be together with the ConnectivityManager API surface. Bug: 181512874 Test: m Change-Id: I5642486ea0febcb08cadcbd4cd3f0c6056deae0e
This commit is contained in:
19
framework/aidl-export/android/net/OemNetworkPreferences.aidl
Normal file
19
framework/aidl-export/android/net/OemNetworkPreferences.aidl
Normal file
@@ -0,0 +1,19 @@
|
||||
/*
|
||||
* 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.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* 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 permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package android.net;
|
||||
|
||||
parcelable OemNetworkPreferences;
|
||||
@@ -320,6 +320,26 @@ package android.net {
|
||||
method @NonNull @RequiresPermission(android.Manifest.permission.NETWORK_SIGNAL_STRENGTH_WAKEUP) public android.net.NetworkRequest.Builder setSignalStrength(int);
|
||||
}
|
||||
|
||||
public final class OemNetworkPreferences implements android.os.Parcelable {
|
||||
method public int describeContents();
|
||||
method @NonNull public java.util.Map<java.lang.String,java.lang.Integer> getNetworkPreferences();
|
||||
method public void writeToParcel(@NonNull android.os.Parcel, int);
|
||||
field @NonNull public static final android.os.Parcelable.Creator<android.net.OemNetworkPreferences> CREATOR;
|
||||
field public static final int OEM_NETWORK_PREFERENCE_OEM_PAID = 1; // 0x1
|
||||
field public static final int OEM_NETWORK_PREFERENCE_OEM_PAID_NO_FALLBACK = 2; // 0x2
|
||||
field public static final int OEM_NETWORK_PREFERENCE_OEM_PAID_ONLY = 3; // 0x3
|
||||
field public static final int OEM_NETWORK_PREFERENCE_OEM_PRIVATE_ONLY = 4; // 0x4
|
||||
field public static final int OEM_NETWORK_PREFERENCE_UNINITIALIZED = 0; // 0x0
|
||||
}
|
||||
|
||||
public static final class OemNetworkPreferences.Builder {
|
||||
ctor public OemNetworkPreferences.Builder();
|
||||
ctor public OemNetworkPreferences.Builder(@NonNull android.net.OemNetworkPreferences);
|
||||
method @NonNull public android.net.OemNetworkPreferences.Builder addNetworkPreference(@NonNull String, int);
|
||||
method @NonNull public android.net.OemNetworkPreferences build();
|
||||
method @NonNull public android.net.OemNetworkPreferences.Builder clearNetworkPreference(@NonNull String);
|
||||
}
|
||||
|
||||
public abstract class QosCallback {
|
||||
ctor public QosCallback();
|
||||
method public void onError(@NonNull android.net.QosCallbackException);
|
||||
|
||||
Reference in New Issue
Block a user