/cts/hostsidetests/appsecurity/test-apps/PackageAccessApp/src/com/android/cts/packageaccessapp/ |
D | PackageAccessTest.java | 52 PackageInfo pi = pm.getPackageInfo(TINY_PKG, 0); in testPackageAccess_inUser() local 53 assertNotNull(pi); in testPackageAccess_inUser() 63 PackageInfo pi = pm.getPackageInfo(TINY_PKG, PackageManager.MATCH_UNINSTALLED_PACKAGES); in testPackageAccess_inUserUninstalled() local 64 assertNotNull(pi); in testPackageAccess_inUserUninstalled() 74 PackageInfo pi = pm.getPackageInfo(TINY_PKG, 0); in testPackageAccess_notInOtherUser() local 76 assertNull(pi); in testPackageAccess_notInOtherUser() 85 PackageInfo pi = pm.getPackageInfo(TINY_PKG, PackageManager.MATCH_UNINSTALLED_PACKAGES); in testPackageAccess_notInOtherUserUninstalled() local 87 assertNull(pi); in testPackageAccess_notInOtherUserUninstalled() 97 for (PackageInfo pi : packages) { in testPackageAccess_getPackagesCantSeeTiny() 98 if (TINY_PKG.equals(pi.packageName)) { in testPackageAccess_getPackagesCantSeeTiny() [all …]
|
/cts/tests/AlarmManager/src/android/alarmmanager/cts/ |
D | UidCapTests.java | 70 final PendingIntent pi = PendingIntent.getBroadcast(mContext, 0, in sufficientAlarmsAllowedByDefault() local 72 mAlarmManager.set(ALARM_TYPES[i % ALARM_TYPES.length], Long.MAX_VALUE, pi); in sufficientAlarmsAllowedByDefault() 73 mAlarmsSet.add(pi); in sufficientAlarmsAllowedByDefault() 86 final PendingIntent pi = PendingIntent.getBroadcast(mContext, 0, in alarmsCannotExceedLimit() local 88 mAlarmManager.set(ALARM_TYPES[i % ALARM_TYPES.length], Long.MAX_VALUE, pi); in alarmsCannotExceedLimit() 89 mAlarmsSet.add(pi); in alarmsCannotExceedLimit() 112 for (PendingIntent pi : mAlarmsSet) { in cancelAlarms() 113 mAlarmManager.cancel(pi); in cancelAlarms()
|
/cts/hostsidetests/appsecurity/test-apps/V3SigningSchemeRotation/src/android/appsecurity/cts/v3rotationtests/ |
D | V3RotationTest.java | 105 PackageInfo pi = pm.getPackageInfo(PKG, PackageManager.GET_SIGNATURES); in testGetSignaturesShowsOld() local 106 assertNotNull("Failed to get signatures in PackageInfo of " + PKG, pi.signatures); in testGetSignaturesShowsOld() 108 1, pi.signatures.length); in testGetSignaturesShowsOld() 110 pi.signatures[0].toCharsString(), FIRST_CERT_HEX); in testGetSignaturesShowsOld() 117 PackageInfo pi = pm.getPackageInfo(PKG, PackageManager.GET_SIGNING_CERTIFICATES); in testGetSigningCertificatesShowsAll() local 119 pi.signingInfo); in testGetSigningCertificatesShowsAll() 121 pi.signingInfo.hasMultipleSigners()); in testGetSigningCertificatesShowsAll() 122 Signature[] signingHistory = pi.signingInfo.getSigningCertificateHistory(); in testGetSigningCertificatesShowsAll()
|
/cts/common/device-side/device-info/src/com/android/compatibility/common/deviceinfo/ |
D | PackageDeviceInfo.java | 127 final PermissionInfo pi = pm.getPermissionInfo(permission, 0); in collectPermissions() local 131 writePermissionsDetails(pi, store); in collectPermissions() 192 private static void writePermissionsDetails(PermissionInfo pi, DeviceInfoStore store) in writePermissionsDetails() argument 195 store.addResult(PERMISSION_FLAGS, pi.flags); in writePermissionsDetails() 200 store.addResult(PERMISSION_GROUP, pi.group); in writePermissionsDetails() 203 store.addResult(PERMISSION_PROTECTION, pi.getProtection()); in writePermissionsDetails() 204 store.addResult(PERMISSION_PROTECTION_FLAGS, pi.getProtectionFlags()); in writePermissionsDetails() 207 pi.protectionLevel & PermissionInfo.PROTECTION_MASK_BASE); in writePermissionsDetails() 209 pi.protectionLevel & ~PermissionInfo.PROTECTION_MASK_BASE); in writePermissionsDetails()
|
/cts/tests/tests/content/src/android/content/pm/cts/ |
D | FeatureGroupInfoTest.java | 58 PackageInfo pi = mPackageManager.getPackageInfo(getContext().getPackageName(), in testFeatureGroupsAreCorrect() local 60 assertNotNull(pi); in testFeatureGroupsAreCorrect() 61 assertNotNull(pi.reqFeatures); in testFeatureGroupsAreCorrect() 62 assertNotNull(pi.featureGroups); in testFeatureGroupsAreCorrect() 64 assertFeatureInfosMatch(pi.reqFeatures, expectedFeatures); in testFeatureGroupsAreCorrect() 65 assertFeatureGroupsMatch(pi.featureGroups, expectedGroups); in testFeatureGroupsAreCorrect()
|
/cts/tests/tests/wifi/src/android/net/wifi/cts/ |
D | WifiManagerTest.java | 727 for (PackageInfo pi : holding) { 728 fail("The NETWORK_STACK permission must not be held by " + pi.packageName 775 for (PackageInfo pi : holding) { 776 String packageName = pi.packageName; 845 for (PackageInfo pi : holding) { in testNetworkSetupWizardPermission() 846 if (!allowedPackages.contains(pi.packageName)) { in testNetworkSetupWizardPermission() 847 fail("The NETWORK_SETUP_WIZARD permission must not be held by " + pi.packageName in testNetworkSetupWizardPermission() 879 for (PackageInfo pi : holding) { in testNetworkManagedProvisioningPermission() 880 if (!Objects.equals(pi.packageName, validPkg)) { in testNetworkManagedProvisioningPermission() 882 + pi.packageName + " and must be revoked for security reasons [" in testNetworkManagedProvisioningPermission() [all …]
|
/cts/hostsidetests/devicepolicy/app/DeviceAdmin/src/com.android.cts.deviceadmin/ |
D | DeviceAdminTest.java | 37 final PackageInfo pi = pm.getPackageInfo(mContext.getPackageName(), /* flags =*/ 0); in testTargetApiLevel() local 39 assertTrue(getTargetApiLevel() == pi.applicationInfo.targetSdkVersion || in testTargetApiLevel() 40 Build.VERSION_CODES.CUR_DEVELOPMENT == pi.applicationInfo.targetSdkVersion); in testTargetApiLevel()
|
/cts/tests/tests/permission/src/android/permission/cts/ |
D | ServicePermissionTest.java | 64 for (PackageInfo pi : holding) { in testServicePermissions() 65 if (!Objects.equals("android", pi.packageName)) { in testServicePermissions() 66 failures.add(perm + " held by " + pi.packageName); in testServicePermissions()
|
D | SecureElementPermissionTest.java | 55 .map(pi -> { in testSecureElementPrivilegedPermission() 57 return pm.getPackageUid(pi.packageName, 0); in testSecureElementPrivilegedPermission()
|
D | ProviderPermissionTest.java | 215 for (PackageInfo pi : holding) { in testManageDocuments() 216 if (!Objects.equals(pi.packageName, validPkg)) { in testManageDocuments() 219 + pi.packageName + " which must be revoked for security reasons"); in testManageDocuments()
|
/cts/tests/tests/bluetooth/src/android/bluetooth/cts/ |
D | BluetoothLeScanTest.java | 280 PendingIntent pi = PendingIntent.getBroadcast(mContext, 1, broadcastIntent, 0); in testStartScanPendingIntent_nullnull() local 282 mScanner.startScan(null, null, pi); in testStartScanPendingIntent_nullnull() 284 mScanner.stopScan(pi); in testStartScanPendingIntent_nullnull() 310 PendingIntent pi = PendingIntent.getBroadcast(mContext, 1, broadcastIntent, 0); in testStartScanPendingIntent() local 312 mScanner.startScan(filters, batchScanSettings, pi); in testStartScanPendingIntent() 314 mScanner.stopScan(pi); in testStartScanPendingIntent()
|
/cts/hostsidetests/appsecurity/test-apps/MajorVersionApp/src-common/com/android/cts/majorversion/ |
D | VersionTest.java | 35 PackageInfo pi = pm.getPackageInfo(InstrumentationRegistry.getContext().getPackageName(), in testCheckVersion() local 39 assertEquals(VersionConstants.PACKAGE_VERSION, pi.getLongVersionCode()); in testCheckVersion()
|
/cts/tests/tests/contactsproviderwipe/src/android/provider/cts/contactsproviderwipe/ |
D | ContactsContract_Wipe.java | 87 for (ProviderInfo pi : list) { in getContactsProviderPackageName() 88 if (TextUtils.isEmpty(pi.authority)) { in getContactsProviderPackageName() 91 for (String authority : pi.authority.split(";")) { in getContactsProviderPackageName() 94 return pi.packageName; in getContactsProviderPackageName()
|
/cts/tests/app/src/android/app/cts/ |
D | PendingIntentTest.java | 59 public void onSendFinished(PendingIntent pi, Intent intent, int resultCode, in setUp() 242 PendingIntent pi; in testUpdateCurrent() local 246 pi = PendingIntent.getBroadcast(context, 0, intent, 0); in testUpdateCurrent() 250 pi.send(); in testUpdateCurrent() 259 pi = PendingIntent.getBroadcast(context, 0, intent, 0); in testUpdateCurrent() 261 pi.send(); in testUpdateCurrent() 267 pi = PendingIntent.getBroadcast(context, 0, intent, PendingIntent.FLAG_UPDATE_CURRENT); in testUpdateCurrent() 269 pi.send(); in testUpdateCurrent() 273 pi.cancel(); in testUpdateCurrent()
|
D | RecoverableSecurityExceptionTest.java | 51 final PendingIntent pi = PendingIntent.getActivity(getContext(), 42, new Intent(), 0); in build() local 53 new RemoteAction(Icon.createWithFilePath("/dev/null"), "title", "content", pi)); in build()
|
/cts/libs/install/src/com/android/cts/install/lib/ |
D | InstallUtils.java | 257 PackageInfo pi = getPackageInfo(packageName); in isSystemAppWithoutUpdate() local 258 if (pi == null) { in isSystemAppWithoutUpdate() 261 return ((pi.applicationInfo.flags & ApplicationInfo.FLAG_SYSTEM) != 0) in isSystemAppWithoutUpdate() 262 && ((pi.applicationInfo.flags & ApplicationInfo.FLAG_UPDATED_SYSTEM_APP) == 0); in isSystemAppWithoutUpdate()
|
/cts/tests/tests/os/src/android/os/cts/ |
D | CrossProcessExceptionService.java | 71 final PendingIntent pi = PendingIntent.getActivity( in onBind() local 74 … throw new AuthenticationRequiredException(new FileNotFoundException("FNFE"), pi); in onBind()
|
/cts/tests/tests/renderscript/src/android/renderscript/cts/ |
D | DoubleTest.java | 39 double pi = 3.14159265359; in testDoubleGlobal() local 40 Target.Floaty pi2 = t.new32((float) (pi * 2)); in testDoubleGlobal()
|
D | doubleglobal.rscript | 25 double pi = 3.14159265359; 28 pi2 = pi * 2;
|
/cts/tests/tests/content/src/android/content/cts/ |
D | ContentResolverWrapTest.java | 94 final ProviderInfo pi = new ProviderInfo(); in setUp() local 95 pi.authority = AUTHORITY; in setUp() 96 pi.exported = true; in setUp() 97 mProvider.attachInfo(mContext, pi); in setUp()
|
/cts/tests/tests/packageinstaller/install/src/android/packageinstaller/install/cts/ |
D | PackageInstallerTestBase.kt | 132 val pi = pm.packageInstaller in <lambda>() constant 135 val sessionId = pi.createSession(PackageInstaller.SessionParams(MODE_FULL_INSTALL)) in <lambda>() 136 val session = pi.openSession(sessionId)!! in <lambda>()
|
/cts/tests/tests/packageinstaller/nopermission/src/android.packageinstaller.nopermission.cts/ |
D | NoPermissionTests.kt | 118 val pi = pm.packageInstaller in <lambda>() constant 121 val sessionId = pi.createSession(PackageInstaller.SessionParams( in <lambda>() 123 val session = pi.openSession(sessionId)!! in <lambda>()
|
/cts/tests/tests/provider/src/android/provider/cts/ |
D | DocumentsContractTest.java | 115 final ProviderInfo pi = new ProviderInfo(); in setUp() local 116 pi.authority = AUTHORITY; in setUp() 117 pi.exported = true; in setUp() 118 pi.grantUriPermissions = true; in setUp() 119 pi.readPermission = android.Manifest.permission.MANAGE_DOCUMENTS; in setUp() 120 pi.writePermission = android.Manifest.permission.MANAGE_DOCUMENTS; in setUp() 121 mProvider.attachInfo(mContext, pi); in setUp()
|
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/ |
D | BaseDeviceAdminTest.java | 95 final PackageInfo pi = pm.getPackageInfo(mContext.getPackageName(), /* flags =*/ 0); in getTargetApiLevel() local 96 return pi.applicationInfo.targetSdkVersion; in getTargetApiLevel()
|
/cts/tests/simplecpu/jni/ |
D | CpuNativeJni.cpp | 35 TYPE *pi = (TYPE *) (parmi); \ 38 TYPE t = *pi; \ 39 *pi++ = *pj; \
|