Merge "Rename entitlement callback to adhere to API guidelines." am: 0102e3d548
am: 33a9d34e8a
Change-Id: I29bbf7cbbc0d87a9831762342d81496e6983df68
This commit is contained in:
@@ -3124,7 +3124,7 @@ package android.net {
|
||||
}
|
||||
|
||||
public static interface ConnectivityManager.OnTetheringEntitlementResultListener {
|
||||
method public void onEntitlementResult(int);
|
||||
method public void onTetheringEntitlementResult(int);
|
||||
}
|
||||
|
||||
public abstract static class ConnectivityManager.OnTetheringEventCallback {
|
||||
|
||||
@@ -2805,7 +2805,7 @@ public class ConnectivityManager {
|
||||
* {@link #TETHER_ERROR_PROVISION_FAILED}, or
|
||||
* {@link #TETHER_ERROR_ENTITLEMENT_UNKONWN}.
|
||||
*/
|
||||
void onEntitlementResult(@EntitlementResultCode int resultCode);
|
||||
void onTetheringEntitlementResult(@EntitlementResultCode int resultCode);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -2855,7 +2855,7 @@ public class ConnectivityManager {
|
||||
protected void onReceiveResult(int resultCode, Bundle resultData) {
|
||||
Binder.withCleanCallingIdentity(() ->
|
||||
executor.execute(() -> {
|
||||
listener.onEntitlementResult(resultCode);
|
||||
listener.onTetheringEntitlementResult(resultCode);
|
||||
}));
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user