java: config: Refactor waitAndGetSystemService()
- Make use of waitForService() for >= Android 11. - Reserve manual polling for Android 10 due to lack of waitForService(). - Rework on logs to be less cluttering. Signed-off-by: Dakkshesh <beakthoven@gmail.com>
This commit is contained in:
@@ -7,18 +7,22 @@ package android.os;
|
||||
|
||||
public class ServiceManager {
|
||||
public static IBinder getService(String name) {
|
||||
throw new UnsupportedOperationException("STUB!");
|
||||
throw new UnsupportedOperationException("");
|
||||
}
|
||||
|
||||
public static IBinder waitForService(String name) {
|
||||
throw new UnsupportedOperationException("");
|
||||
}
|
||||
|
||||
public static void addService(String name, IBinder binder) {
|
||||
throw new UnsupportedOperationException("STUB!");
|
||||
throw new UnsupportedOperationException("");
|
||||
}
|
||||
|
||||
public static IBinder checkService(String name) {
|
||||
throw new UnsupportedOperationException("STUB!");
|
||||
throw new UnsupportedOperationException("");
|
||||
}
|
||||
|
||||
public static String[] listServices() {
|
||||
throw new UnsupportedOperationException("STUB!");
|
||||
throw new UnsupportedOperationException("");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user