Rename satisfiedBy into canBeSatisfiedBy
Test: FrameworksNetTests NetworkStackTests Bug: 152238712 Change-Id: I076876a6662bde143ef7d315ce3767acafff93c1
This commit is contained in:
@@ -2896,7 +2896,7 @@ public class ConnectivityServiceTest {
|
||||
class ConfidentialMatchAllNetworkSpecifier extends NetworkSpecifier implements
|
||||
Parcelable {
|
||||
@Override
|
||||
public boolean satisfiedBy(NetworkSpecifier other) {
|
||||
public boolean canBeSatisfiedBy(NetworkSpecifier other) {
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -2924,7 +2924,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);
|
||||
@@ -3045,7 +3045,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