Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2f78ab53 authored by Makoto Onuki's avatar Makoto Onuki Committed by android-build-merger
Browse files

Fix DPM unit tests, also fix a log message.

am: 6ad5f925

Change-Id: Ieab914cf8538e3086fb32cc351e45e6a5c2017c5
parents fa10c286 6ad5f925
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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;
    }
+1 −1
Original line number Diff line number Diff line
@@ -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().