Searched refs:OTHER_PACKAGE (Results 1 – 2 of 2) sorted by relevance
/cts/hostsidetests/appsecurity/test-apps/UsePermissionDiffCert/src/com/android/cts/usespermissiondiffcertapp/ |
D | ModifyInstallerPackageTest.java | 39 static final String OTHER_PACKAGE = "com.android.cts.permissiondeclareapp"; field in ModifyInstallerPackageTest 120 assertEquals(null, getPackageManager().getInstallerPackageName(OTHER_PACKAGE)); in testSetInstallPackage() 122 getPackageManager().setInstallerPackageName(OTHER_PACKAGE, MY_PACKAGE); in testSetInstallPackage() 123 assertEquals(MY_PACKAGE, getPackageManager().getInstallerPackageName(OTHER_PACKAGE)); in testSetInstallPackage() 126 getPackageManager().setInstallerPackageName(OTHER_PACKAGE, null); in testSetInstallPackage() 127 assertEquals(null, getPackageManager().getInstallerPackageName(OTHER_PACKAGE)); in testSetInstallPackage() 149 getPackageManager().setInstallerPackageName(OTHER_PACKAGE, "thisdoesnotexistihope!"); in testSetInstallPackageBadInstaller() 154 assertEquals(null, getPackageManager().getInstallerPackageName(OTHER_PACKAGE)); in testSetInstallPackageBadInstaller() 163 assertEquals(null, getPackageManager().getInstallerPackageName(OTHER_PACKAGE)); in testSetInstallPackageWrongCertificate() 166 getPackageManager().setInstallerPackageName(OTHER_PACKAGE, OTHER_PACKAGE); in testSetInstallPackageWrongCertificate() [all …]
|
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/ |
D | ApplicationRestrictionsTest.java | 71 final String OTHER_PACKAGE = CTS_PACKAGE + "dummy"; in testSetApplicationRestrictions() local 81 mDevicePolicyManager.setApplicationRestrictions(ADMIN_RECEIVER_COMPONENT, OTHER_PACKAGE, in testSetApplicationRestrictions() 88 OTHER_PACKAGE)); in testSetApplicationRestrictions() 107 mDevicePolicyManager.setApplicationRestrictions(ADMIN_RECEIVER_COMPONENT, OTHER_PACKAGE, in testSetApplicationRestrictions() 110 ADMIN_RECEIVER_COMPONENT, OTHER_PACKAGE).isEmpty()); in testSetApplicationRestrictions()
|