Merge changes from topics "api-fix-networkagent", "networkprovider_api", "satisfiedby" into rvc-dev
* changes: Rename satisfiedBy into canBeSatisfiedBy Address further API council comments. Update the NetworkProvider API for council comments
This commit is contained in:
@@ -2911,7 +2911,7 @@ public class ConnectivityServiceTest {
|
||||
class ConfidentialMatchAllNetworkSpecifier extends NetworkSpecifier implements
|
||||
Parcelable {
|
||||
@Override
|
||||
public boolean satisfiedBy(NetworkSpecifier other) {
|
||||
public boolean canBeSatisfiedBy(NetworkSpecifier other) {
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -2939,7 +2939,7 @@ public class ConnectivityServiceTest {
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean satisfiedBy(NetworkSpecifier other) {
|
||||
public boolean canBeSatisfiedBy(NetworkSpecifier other) {
|
||||
if (other instanceof LocalStringNetworkSpecifier) {
|
||||
return TextUtils.equals(mString,
|
||||
((LocalStringNetworkSpecifier) other).mString);
|
||||
@@ -3060,7 +3060,10 @@ public class ConnectivityServiceTest {
|
||||
});
|
||||
|
||||
class NonParcelableSpecifier extends NetworkSpecifier {
|
||||
public boolean satisfiedBy(NetworkSpecifier other) { return false; }
|
||||
@Override
|
||||
public boolean canBeSatisfiedBy(NetworkSpecifier other) {
|
||||
return false;
|
||||
}
|
||||
};
|
||||
class ParcelableSpecifier extends NonParcelableSpecifier implements Parcelable {
|
||||
@Override public int describeContents() { return 0; }
|
||||
|
||||
Reference in New Issue
Block a user