Loading api/current.txt +2 −1 Original line number Diff line number Diff line Loading @@ -28068,8 +28068,9 @@ package android.os { method public boolean isSystemUser(); method public boolean isUserAGoat(); method public boolean isUserRunning(android.os.UserHandle); method public boolean isUserRunningAndLocked(android.os.UserHandle); method public boolean isUserRunningAndUnlocked(android.os.UserHandle); method public boolean isUserRunningOrStopping(android.os.UserHandle); method public boolean isUserRunningUnlocked(android.os.UserHandle); method public deprecated boolean setRestrictionsChallenge(java.lang.String); method public deprecated void setUserRestriction(java.lang.String, boolean); method public deprecated void setUserRestrictions(android.os.Bundle); api/system-current.txt +2 −1 Original line number Diff line number Diff line Loading @@ -30053,8 +30053,9 @@ package android.os { method public boolean isSystemUser(); method public boolean isUserAGoat(); method public boolean isUserRunning(android.os.UserHandle); method public boolean isUserRunningAndLocked(android.os.UserHandle); method public boolean isUserRunningAndUnlocked(android.os.UserHandle); method public boolean isUserRunningOrStopping(android.os.UserHandle); method public boolean isUserRunningUnlocked(android.os.UserHandle); method public deprecated boolean setRestrictionsChallenge(java.lang.String); method public deprecated void setUserRestriction(java.lang.String, boolean); method public deprecated void setUserRestrictions(android.os.Bundle); api/test-current.txt +2 −1 Original line number Diff line number Diff line Loading @@ -28068,8 +28068,9 @@ package android.os { method public boolean isSystemUser(); method public boolean isUserAGoat(); method public boolean isUserRunning(android.os.UserHandle); method public boolean isUserRunningAndLocked(android.os.UserHandle); method public boolean isUserRunningAndUnlocked(android.os.UserHandle); method public boolean isUserRunningOrStopping(android.os.UserHandle); method public boolean isUserRunningUnlocked(android.os.UserHandle); method public deprecated boolean setRestrictionsChallenge(java.lang.String); method public deprecated void setUserRestriction(java.lang.String, boolean); method public deprecated void setUserRestrictions(android.os.Bundle); core/java/android/app/ActivityManager.java +22 −2 Original line number Diff line number Diff line Loading @@ -3116,9 +3116,29 @@ public class ActivityManager { * @param userid the user's id. Zero indicates the default user. * @hide */ public boolean isUserRunning(int userid) { public boolean isUserRunning(int userId) { try { return ActivityManagerNative.getDefault().isUserRunning(userid, 0); return ActivityManagerNative.getDefault().isUserRunning(userId, 0); } catch (RemoteException e) { return false; } } /** {@hide} */ public boolean isUserRunningAndLocked(int userId) { try { return ActivityManagerNative.getDefault().isUserRunning(userId, ActivityManager.FLAG_AND_LOCKED); } catch (RemoteException e) { return false; } } /** {@hide} */ public boolean isUserRunningAndUnlocked(int userId) { try { return ActivityManagerNative.getDefault().isUserRunning(userId, ActivityManager.FLAG_AND_UNLOCKED); } catch (RemoteException e) { return false; } Loading core/java/android/content/pm/RegisteredServicesCache.java +8 −7 Original line number Diff line number Diff line Loading @@ -294,14 +294,16 @@ public abstract class RegisteredServicesCache<V> { */ public static class ServiceInfo<V> { public final V type; public final ComponentInfo componentInfo; public final ComponentName componentName; public final int uid; /** @hide */ public ServiceInfo(V type, ComponentName componentName, int uid) { public ServiceInfo(V type, ComponentInfo componentInfo, ComponentName componentName) { this.type = type; this.componentInfo = componentInfo; this.componentName = componentName; this.uid = uid; this.uid = (componentInfo != null) ? componentInfo.applicationInfo.uid : -1; } @Override Loading Loading @@ -362,8 +364,9 @@ public abstract class RegisteredServicesCache<V> { @VisibleForTesting protected List<ResolveInfo> queryIntentServices(int userId) { final PackageManager pm = mContext.getPackageManager(); return pm.queryIntentServicesAsUser( new Intent(mInterfaceName), PackageManager.GET_META_DATA, userId); return pm.queryIntentServicesAsUser(new Intent(mInterfaceName), PackageManager.GET_META_DATA | PackageManager.GET_ENCRYPTION_UNAWARE_COMPONENTS, userId); } /** Loading Loading @@ -563,9 +566,7 @@ public abstract class RegisteredServicesCache<V> { return null; } final android.content.pm.ServiceInfo serviceInfo = service.serviceInfo; final ApplicationInfo applicationInfo = serviceInfo.applicationInfo; final int uid = applicationInfo.uid; return new ServiceInfo<V>(v, componentName, uid); return new ServiceInfo<V>(v, serviceInfo, componentName); } catch (NameNotFoundException e) { throw new XmlPullParserException( "Unable to load resources for pacakge " + si.packageName); Loading Loading
api/current.txt +2 −1 Original line number Diff line number Diff line Loading @@ -28068,8 +28068,9 @@ package android.os { method public boolean isSystemUser(); method public boolean isUserAGoat(); method public boolean isUserRunning(android.os.UserHandle); method public boolean isUserRunningAndLocked(android.os.UserHandle); method public boolean isUserRunningAndUnlocked(android.os.UserHandle); method public boolean isUserRunningOrStopping(android.os.UserHandle); method public boolean isUserRunningUnlocked(android.os.UserHandle); method public deprecated boolean setRestrictionsChallenge(java.lang.String); method public deprecated void setUserRestriction(java.lang.String, boolean); method public deprecated void setUserRestrictions(android.os.Bundle);
api/system-current.txt +2 −1 Original line number Diff line number Diff line Loading @@ -30053,8 +30053,9 @@ package android.os { method public boolean isSystemUser(); method public boolean isUserAGoat(); method public boolean isUserRunning(android.os.UserHandle); method public boolean isUserRunningAndLocked(android.os.UserHandle); method public boolean isUserRunningAndUnlocked(android.os.UserHandle); method public boolean isUserRunningOrStopping(android.os.UserHandle); method public boolean isUserRunningUnlocked(android.os.UserHandle); method public deprecated boolean setRestrictionsChallenge(java.lang.String); method public deprecated void setUserRestriction(java.lang.String, boolean); method public deprecated void setUserRestrictions(android.os.Bundle);
api/test-current.txt +2 −1 Original line number Diff line number Diff line Loading @@ -28068,8 +28068,9 @@ package android.os { method public boolean isSystemUser(); method public boolean isUserAGoat(); method public boolean isUserRunning(android.os.UserHandle); method public boolean isUserRunningAndLocked(android.os.UserHandle); method public boolean isUserRunningAndUnlocked(android.os.UserHandle); method public boolean isUserRunningOrStopping(android.os.UserHandle); method public boolean isUserRunningUnlocked(android.os.UserHandle); method public deprecated boolean setRestrictionsChallenge(java.lang.String); method public deprecated void setUserRestriction(java.lang.String, boolean); method public deprecated void setUserRestrictions(android.os.Bundle);
core/java/android/app/ActivityManager.java +22 −2 Original line number Diff line number Diff line Loading @@ -3116,9 +3116,29 @@ public class ActivityManager { * @param userid the user's id. Zero indicates the default user. * @hide */ public boolean isUserRunning(int userid) { public boolean isUserRunning(int userId) { try { return ActivityManagerNative.getDefault().isUserRunning(userid, 0); return ActivityManagerNative.getDefault().isUserRunning(userId, 0); } catch (RemoteException e) { return false; } } /** {@hide} */ public boolean isUserRunningAndLocked(int userId) { try { return ActivityManagerNative.getDefault().isUserRunning(userId, ActivityManager.FLAG_AND_LOCKED); } catch (RemoteException e) { return false; } } /** {@hide} */ public boolean isUserRunningAndUnlocked(int userId) { try { return ActivityManagerNative.getDefault().isUserRunning(userId, ActivityManager.FLAG_AND_UNLOCKED); } catch (RemoteException e) { return false; } Loading
core/java/android/content/pm/RegisteredServicesCache.java +8 −7 Original line number Diff line number Diff line Loading @@ -294,14 +294,16 @@ public abstract class RegisteredServicesCache<V> { */ public static class ServiceInfo<V> { public final V type; public final ComponentInfo componentInfo; public final ComponentName componentName; public final int uid; /** @hide */ public ServiceInfo(V type, ComponentName componentName, int uid) { public ServiceInfo(V type, ComponentInfo componentInfo, ComponentName componentName) { this.type = type; this.componentInfo = componentInfo; this.componentName = componentName; this.uid = uid; this.uid = (componentInfo != null) ? componentInfo.applicationInfo.uid : -1; } @Override Loading Loading @@ -362,8 +364,9 @@ public abstract class RegisteredServicesCache<V> { @VisibleForTesting protected List<ResolveInfo> queryIntentServices(int userId) { final PackageManager pm = mContext.getPackageManager(); return pm.queryIntentServicesAsUser( new Intent(mInterfaceName), PackageManager.GET_META_DATA, userId); return pm.queryIntentServicesAsUser(new Intent(mInterfaceName), PackageManager.GET_META_DATA | PackageManager.GET_ENCRYPTION_UNAWARE_COMPONENTS, userId); } /** Loading Loading @@ -563,9 +566,7 @@ public abstract class RegisteredServicesCache<V> { return null; } final android.content.pm.ServiceInfo serviceInfo = service.serviceInfo; final ApplicationInfo applicationInfo = serviceInfo.applicationInfo; final int uid = applicationInfo.uid; return new ServiceInfo<V>(v, componentName, uid); return new ServiceInfo<V>(v, serviceInfo, componentName); } catch (NameNotFoundException e) { throw new XmlPullParserException( "Unable to load resources for pacakge " + si.packageName); Loading