Loading core/java/android/os/ServiceManager.java +1 −1 Original line number Diff line number Diff line Loading @@ -425,7 +425,7 @@ public final class ServiceManager { private static IBinder rawGetService(String name) throws RemoteException { final long start = sStatLogger.getTime(); final IBinder binder = getIServiceManager().getService(name).getBinder(); final IBinder binder = getIServiceManager().getService2(name).getBinder(); final int time = (int) sStatLogger.logDurationStat(Stats.GET_SERVICE, start); Loading core/java/android/os/ServiceManagerNative.java +7 −1 Original line number Diff line number Diff line Loading @@ -57,8 +57,14 @@ class ServiceManagerProxy implements IServiceManager { return mRemote; } // TODO(b/355394904): This function has been deprecated, please use getService2 instead. @UnsupportedAppUsage public Service getService(String name) throws RemoteException { public IBinder getService(String name) throws RemoteException { // Same as checkService (old versions of servicemanager had both methods). return checkService(name).getBinder(); } public Service getService2(String name) throws RemoteException { // Same as checkService (old versions of servicemanager had both methods). return checkService(name); } Loading Loading
core/java/android/os/ServiceManager.java +1 −1 Original line number Diff line number Diff line Loading @@ -425,7 +425,7 @@ public final class ServiceManager { private static IBinder rawGetService(String name) throws RemoteException { final long start = sStatLogger.getTime(); final IBinder binder = getIServiceManager().getService(name).getBinder(); final IBinder binder = getIServiceManager().getService2(name).getBinder(); final int time = (int) sStatLogger.logDurationStat(Stats.GET_SERVICE, start); Loading
core/java/android/os/ServiceManagerNative.java +7 −1 Original line number Diff line number Diff line Loading @@ -57,8 +57,14 @@ class ServiceManagerProxy implements IServiceManager { return mRemote; } // TODO(b/355394904): This function has been deprecated, please use getService2 instead. @UnsupportedAppUsage public Service getService(String name) throws RemoteException { public IBinder getService(String name) throws RemoteException { // Same as checkService (old versions of servicemanager had both methods). return checkService(name).getBinder(); } public Service getService2(String name) throws RemoteException { // Same as checkService (old versions of servicemanager had both methods). return checkService(name); } Loading