Loading services/devicepolicy/java/com/android/server/devicepolicy/DevicePolicyManagerService.java +2 −2 Original line number Diff line number Diff line Loading @@ -3029,8 +3029,8 @@ public class DevicePolicyManagerService extends IDevicePolicyManager.Stub { throw new IllegalStateException(e); } if (ai == null) { throw new IllegalStateException("Couldn't find package to remove admin " + packageName + " " + userHandle); throw new IllegalStateException("Couldn't find package: " + packageName + " on user " + userHandle); } return (ai.flags & ApplicationInfo.FLAG_TEST_ONLY) != 0; } Loading services/tests/servicestests/src/com/android/server/devicepolicy/DpmTestBase.java +1 −1 Original line number Diff line number Diff line Loading @@ -131,7 +131,7 @@ public abstract class DpmTestBase extends AndroidTestCase { doReturn(ai).when(mMockContext.ipackageManager).getApplicationInfo( eq(admin.getPackageName()), eq(PackageManager.GET_DISABLED_UNTIL_USED_COMPONENTS), anyInt(), eq(UserHandle.getUserId(packageUid))); // Set up queryBroadcastReceivers(). Loading Loading
services/devicepolicy/java/com/android/server/devicepolicy/DevicePolicyManagerService.java +2 −2 Original line number Diff line number Diff line Loading @@ -3029,8 +3029,8 @@ public class DevicePolicyManagerService extends IDevicePolicyManager.Stub { throw new IllegalStateException(e); } if (ai == null) { throw new IllegalStateException("Couldn't find package to remove admin " + packageName + " " + userHandle); throw new IllegalStateException("Couldn't find package: " + packageName + " on user " + userHandle); } return (ai.flags & ApplicationInfo.FLAG_TEST_ONLY) != 0; } Loading
services/tests/servicestests/src/com/android/server/devicepolicy/DpmTestBase.java +1 −1 Original line number Diff line number Diff line Loading @@ -131,7 +131,7 @@ public abstract class DpmTestBase extends AndroidTestCase { doReturn(ai).when(mMockContext.ipackageManager).getApplicationInfo( eq(admin.getPackageName()), eq(PackageManager.GET_DISABLED_UNTIL_USED_COMPONENTS), anyInt(), eq(UserHandle.getUserId(packageUid))); // Set up queryBroadcastReceivers(). Loading