/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/hostsidetests/appsecurity/test-apps/V3SigningSchemeRotation/src/android/appsecurity/cts/v3rotationtests/ |
D | V3RotationTest.java | 138 PackageInfo pi = pm.getPackageInfo(PKG, PackageManager.GET_SIGNATURES); in testGetSignaturesShowsOld() local 139 assertNotNull("Failed to get signatures in PackageInfo of " + PKG, pi.signatures); in testGetSignaturesShowsOld() 141 1, pi.signatures.length); in testGetSignaturesShowsOld() 143 pi.signatures[0].toCharsString(), FIRST_CERT_HEX); in testGetSignaturesShowsOld() 150 PackageInfo pi = pm.getPackageInfo(PKG, PackageManager.GET_SIGNING_CERTIFICATES); in testGetSigningCertificatesShowsAll() local 152 pi.signingInfo); in testGetSigningCertificatesShowsAll() 154 pi.signingInfo.hasMultipleSigners()); in testGetSigningCertificatesShowsAll() 155 Signature[] signingHistory = pi.signingInfo.getSigningCertificateHistory(); in testGetSigningCertificatesShowsAll() 181 PackageInfo pi = pm.getPackageInfo(PKG, PackageManager.GET_SIGNING_CERTIFICATES); in testGetApkContentsSignersShowsCurrent() local 182 assertNotNull("Failed to get signatures in Package Info of " + PKG, pi.signingInfo); in testGetApkContentsSignersShowsCurrent() [all …]
|
/cts/tests/AlarmManager/src/android/alarmmanager/cts/ |
D | UidCapTests.java | 71 final PendingIntent pi = PendingIntent.getBroadcast(mContext, 0, in sufficientAlarmsAllowedByDefault() local 73 mAlarmManager.set(ALARM_TYPES[i % ALARM_TYPES.length], Long.MAX_VALUE, pi); in sufficientAlarmsAllowedByDefault() 74 mAlarmsSet.add(pi); in sufficientAlarmsAllowedByDefault() 87 final PendingIntent pi = PendingIntent.getBroadcast(mContext, 0, in alarmsCannotExceedLimit() local 89 mAlarmManager.set(ALARM_TYPES[i % ALARM_TYPES.length], Long.MAX_VALUE, pi); in alarmsCannotExceedLimit() 90 mAlarmsSet.add(pi); in alarmsCannotExceedLimit() 112 for (PendingIntent pi : mAlarmsSet) { in cancelAlarms() 113 mAlarmManager.cancel(pi); in cancelAlarms()
|
/cts/tests/tests/content/src/android/content/pm/cts/ |
D | ProviderInfoListTest.java | 35 final PackageInfo pi = pm.getPackageInfo(PACKAGE_NAME, in testApplicationInfoSquashed() local 39 assertNotNull(pi); in testApplicationInfoSquashed() 40 assertNotNull(pi.providers); in testApplicationInfoSquashed() 41 assertTrue(pi.providers.length > 1); in testApplicationInfoSquashed() 44 Collections.addAll(providers, pi.providers); in testApplicationInfoSquashed()
|
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/app/src/android/app/cts/ |
D | KeyguardInitialLockTest.java | 47 for (PackageInfo pi : holding) { in testSetInitialLockPermission() 48 if (!allowedPackages.contains(pi.packageName)) { in testSetInitialLockPermission() 49 fail("The SET_INITIAL_LOCK permission must not be held by " + pi.packageName in testSetInitialLockPermission()
|
/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/common/device-side/device-info/src/com/android/compatibility/common/deviceinfo/ |
D | PackageDeviceInfo.java | 150 final PermissionInfo pi = pm.getPermissionInfo(permission, 0); in collectPermissions() local 154 writePermissionsDetails(pi, store); in collectPermissions() 228 private static void writePermissionsDetails(PermissionInfo pi, DeviceInfoStore store) in writePermissionsDetails() argument 231 store.addResult(PERMISSION_FLAGS, pi.flags); in writePermissionsDetails() 236 store.addResult(PERMISSION_GROUP, pi.group); in writePermissionsDetails() 239 store.addResult(PERMISSION_PROTECTION, pi.getProtection()); in writePermissionsDetails() 240 store.addResult(PERMISSION_PROTECTION_FLAGS, pi.getProtectionFlags()); in writePermissionsDetails() 243 pi.protectionLevel & PermissionInfo.PROTECTION_MASK_BASE); in writePermissionsDetails() 245 pi.protectionLevel & ~PermissionInfo.PROTECTION_MASK_BASE); in writePermissionsDetails()
|
/cts/tests/tests/security/src/android/security/cts/ |
D | CVE_2020_0294.java | 53 PendingIntent pi = activityManager.getRunningServiceControlPanel(componentName); in testPocCVE_2020_0294() local 54 assumeNotNull(pi); in testPocCVE_2020_0294() 63 pi.send(targetContext, 0, spuriousIntent, null, null); in testPocCVE_2020_0294()
|
/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 | 51 .map(pi -> { in testSecureElementPrivilegedPermission() 53 return pm.getPackageUid(pi.packageName, 0); in testSecureElementPrivilegedPermission()
|
/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/hostsidetests/packagemanager/codepath/app/src/com/android/tests/codepath/app/ |
D | CodePathDeviceTest.java | 36 PackageInfo pi = InstrumentationRegistry.getInstrumentation().getContext() in testCodePathMatchesExpected() local 38 String apkPath = pi.applicationInfo.sourceDir; in testCodePathMatchesExpected()
|
/cts/tests/app/src/android/app/cts/ |
D | RecoverableSecurityExceptionTest.java | 51 …final PendingIntent pi = PendingIntent.getActivity(getContext(), 42, new Intent(), PendingIntent.F… in build() local 53 new RemoteAction(Icon.createWithFilePath("/dev/null"), "title", "content", pi)); in build()
|
D | PendingIntentTest.java | 63 public void onSendFinished(PendingIntent pi, Intent intent, int resultCode, in setUp() 260 PendingIntent pi; in testUpdateCurrent() local 264 pi = PendingIntent.getBroadcast(context, 0, intent, PendingIntent.FLAG_IMMUTABLE); in testUpdateCurrent() 268 pi.send(); in testUpdateCurrent() 277 pi = PendingIntent.getBroadcast(context, 0, intent, PendingIntent.FLAG_IMMUTABLE); in testUpdateCurrent() 279 pi.send(); in testUpdateCurrent() 285 pi = PendingIntent.getBroadcast(context, 0, intent, in testUpdateCurrent() 288 pi.send(); in testUpdateCurrent() 292 pi.cancel(); in testUpdateCurrent() 690 (pi) -> pi.queryIntentComponents(0)); in testGetIntentComponentAndType() [all …]
|
/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/libs/install/src/com/android/cts/install/lib/ |
D | InstallUtils.java | 357 PackageInfo pi = getPackageInfo(packageName); in isSystemAppWithoutUpdate() local 358 if (pi == null) { in isSystemAppWithoutUpdate() 361 return ((pi.applicationInfo.flags & ApplicationInfo.FLAG_SYSTEM) != 0) in isSystemAppWithoutUpdate() 362 && ((pi.applicationInfo.flags & ApplicationInfo.FLAG_UPDATED_SYSTEM_APP) == 0); in isSystemAppWithoutUpdate() 383 for (PackageInfo pi : installedPackages) { in isOnlyInstalledForUser() 384 if (pi.packageName.equals(packageName)) { in isOnlyInstalledForUser()
|
/cts/tests/tests/bluetooth/src/android/bluetooth/cts/ |
D | BluetoothLeScanTest.java | 280 PendingIntent pi = PendingIntent.getBroadcast(mContext, 1, broadcastIntent, in testStartScanPendingIntent_nullnull() local 283 mScanner.startScan(null, null, pi); in testStartScanPendingIntent_nullnull() 285 mScanner.stopScan(pi); in testStartScanPendingIntent_nullnull() 311 PendingIntent pi = PendingIntent.getBroadcast(mContext, 1, broadcastIntent, in testStartScanPendingIntent() local 314 mScanner.startScan(filters, batchScanSettings, pi); in testStartScanPendingIntent() 316 mScanner.stopScan(pi); in testStartScanPendingIntent()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/notifications/ |
D | ActionTriggeredReceiver.java | 61 PendingIntent pi = PendingIntent.getBroadcast(context, 0, intent, in makeBroadcastIntent() local 63 return pi; in makeBroadcastIntent()
|
/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/tests/appop2/src/android/app/appops2/cts/ |
D | AppOpsLoggingTest.kt | 92 val pi = context.createAttributionContext(TEST_ATTRIBUTION_TAG).packageManager in <lambda>() constant 94 val sessionId = pi.createSession(SessionParams(MODE_FULL_INSTALL)) in <lambda>() 96 val session = pi.openSession(sessionId) in <lambda>()
|
/cts/tests/tests/packageinstaller/install_appop_default/src/android/packageinstaller/install_appop_default/cts/ |
D | PackageInstallerTestBase.kt | 133 val pi = pm.packageInstaller in <lambda>() constant 136 val sessionId = pi.createSession(PackageInstaller.SessionParams(MODE_FULL_INSTALL)) in <lambda>() 137 val session = pi.openSession(sessionId)!! in <lambda>()
|
/cts/tests/tests/packageinstaller/nopermission/src/android.packageinstaller.nopermission.cts/ |
D | NoPermissionTests.kt | 132 val pi = pm.packageInstaller in launchPackageInstallerViaSession() constant 135 val sessionId = pi.createSession(PackageInstaller.SessionParams( in launchPackageInstallerViaSession() 137 val session = pi.openSession(sessionId)!! in launchPackageInstallerViaSession()
|