Remove the queue on the NetworkAgent side
Now that the system server has a queue doing this job, the queue on the network agent side can be removed. Test: ConnectivityCoverageTests, CtsNetTestCases Change-Id: Idf0435f447cfdd28d829a867d1085771837c6f9b
This commit is contained in:
parent
6f2b294fd0
commit
391ec5d99c
1 changed files with 197 additions and 79 deletions
|
|
@ -1200,11 +1200,14 @@ public class ConnectivityManager {
|
|||
|
||||
/** @hide */
|
||||
public static final long FEATURE_USE_DECLARED_METHODS_FOR_CALLBACKS = 1L;
|
||||
/** @hide */
|
||||
public static final long FEATURE_QUEUE_NETWORK_AGENT_EVENTS_IN_SYSTEM_SERVER = 1L << 1;
|
||||
|
||||
/** @hide */
|
||||
@Retention(RetentionPolicy.SOURCE)
|
||||
@LongDef(flag = true, prefix = "FEATURE_", value = {
|
||||
FEATURE_USE_DECLARED_METHODS_FOR_CALLBACKS
|
||||
FEATURE_USE_DECLARED_METHODS_FOR_CALLBACKS,
|
||||
FEATURE_QUEUE_NETWORK_AGENT_EVENTS_IN_SYSTEM_SERVER
|
||||
})
|
||||
public @interface ConnectivityManagerFeature {}
|
||||
|
||||
|
|
@ -4881,7 +4884,8 @@ public class ConnectivityManager {
|
|||
return 0;
|
||||
}
|
||||
|
||||
private boolean isFeatureEnabled(@ConnectivityManagerFeature long connectivityManagerFeature) {
|
||||
/** @hide */
|
||||
public boolean isFeatureEnabled(@ConnectivityManagerFeature long connectivityManagerFeature) {
|
||||
synchronized (mEnabledConnectivityManagerFeaturesLock) {
|
||||
if (mEnabledConnectivityManagerFeatures == null) {
|
||||
try {
|
||||
|
|
|
|||
Loading…
Reference in a new issue