Merge "ServiceManager APIs for Remote Key Provisioning mainline module."
This commit is contained in:
@@ -348,6 +348,7 @@ package android.os {
|
||||
}
|
||||
|
||||
public final class ServiceManager {
|
||||
method @NonNull public static String[] getDeclaredInstances(@NonNull String);
|
||||
method public static boolean isDeclared(@NonNull String);
|
||||
method @Nullable public static android.os.IBinder waitForDeclaredService(@NonNull String);
|
||||
}
|
||||
|
||||
@@ -258,12 +258,14 @@ public final class ServiceManager {
|
||||
* waitForService should always be able to return the service.
|
||||
* @hide
|
||||
*/
|
||||
@SystemApi(client = SystemApi.Client.MODULE_LIBRARIES)
|
||||
@NonNull
|
||||
public static String[] getDeclaredInstances(@NonNull String iface) {
|
||||
try {
|
||||
return getIServiceManager().getDeclaredInstances(iface);
|
||||
} catch (RemoteException e) {
|
||||
Log.e(TAG, "error in getDeclaredInstances", e);
|
||||
return null;
|
||||
throw e.rethrowFromSystemServer();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user