Create service-connectivity.jar
Create a new target service-connectivity to split
ConnectivityService from services.core.
Add ConnectivityServiceInitializer for initializing
ConnectivityService and add systemReady() in
ConnectivityManager so that SystemServer can call systemReady()
through ConnectivityManager which won't change current behavior.
Bug: 158268939
Test: make target-java, make host-java
atest FrameworksNetIntegrationTests
atest FrameworksNetTests
make, device can boot,
atest CtsStrictJavaPackagesTestCases
wifi and mobile data work.
Change-Id: I99401772ba9c1c34adca20040da3c7c72d86ddd9
Merged-In: Ie732bfaf381404af0bb599ca2f421a96e7aa4257
This commit is contained in:
parent
968238aa92
commit
925d09b779
2 changed files with 96 additions and 4 deletions
|
|
@ -898,6 +898,18 @@ public class ConnectivityManager {
|
|||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @hide
|
||||
* TODO: Expose for SystemServer when becomes a module.
|
||||
*/
|
||||
public void systemReady() {
|
||||
try {
|
||||
mService.systemReady();
|
||||
} catch (RemoteException e) {
|
||||
throw e.rethrowFromSystemServer();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Checks if a given type uses the cellular data connection.
|
||||
* This should be replaced in the future by a network property.
|
||||
|
|
|
|||
|
|
@ -233,4 +233,6 @@ interface IConnectivityManager
|
|||
|
||||
void simulateDataStall(int detectionMethod, long timestampMillis, in Network network,
|
||||
in PersistableBundle extras);
|
||||
|
||||
void systemReady();
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue