/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/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/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/renderscript/src/android/renderscript/cts/ |
D | doubleglobal.rs | 25 double pi = 3.14159265359; 28 pi2 = pi * 2;
|
D | DoubleTest.java | 39 double pi = 3.14159265359; in testDoubleGlobal() local 40 Target.Floaty pi2 = t.new32((float) (pi * 2)); in testDoubleGlobal()
|
D | intrinsic_blur.rs | 54 const float pi = M_PI; 56 float coeff1 = 1.0f / (sqrt( 2.0f * pi ) * sigma);
|
/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 | 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/net/src/android/net/wifi/cts/ |
D | WifiManagerTest.java | 726 for (PackageInfo pi : holding) { 727 fail("The NETWORK_STACK permission must not be held by " + pi.packageName 773 for (PackageInfo pi : holding) { 774 String packageName = pi.packageName; 840 for (PackageInfo pi : holding) { 841 if (!allowedPackages.contains(pi.packageName)) { 842 fail("The NETWORK_SETUP_WIZARD permission must not be held by " + pi.packageName 874 for (PackageInfo pi : holding) { 875 if (!Objects.equals(pi.packageName, validPkg)) { 877 + pi.packageName + " and must be revoked for security reasons [" [all …]
|
/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/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/app/src/android/app/cts/ |
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()
|
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()
|
/cts/tests/tests/bluetooth/src/android/bluetooth/cts/ |
D | BluetoothLeScanTest.java | 285 PendingIntent pi = PendingIntent.getBroadcast(mContext, 1, broadcastIntent, 0); in testStartScanPendingIntent_nullnull() local 287 mScanner.startScan(null, null, pi); in testStartScanPendingIntent_nullnull() 289 mScanner.stopScan(pi); in testStartScanPendingIntent_nullnull() 315 PendingIntent pi = PendingIntent.getBroadcast(mContext, 1, broadcastIntent, 0); in testStartScanPendingIntent() local 317 mScanner.startScan(filters, batchScanSettings, pi); in testStartScanPendingIntent() 319 mScanner.stopScan(pi); in testStartScanPendingIntent()
|
/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/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 | 110 final ProviderInfo pi = new ProviderInfo(); in setUp() local 111 pi.authority = AUTHORITY; in setUp() 112 pi.exported = true; in setUp() 113 pi.grantUriPermissions = true; in setUp() 114 pi.readPermission = android.Manifest.permission.MANAGE_DOCUMENTS; in setUp() 115 pi.writePermission = android.Manifest.permission.MANAGE_DOCUMENTS; in setUp() 116 mProvider.attachInfo(mContext, pi); in setUp()
|
/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/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; \
|
/cts/hostsidetests/devicepolicy/app/PackageInstaller/src/com/android/cts/packageinstaller/ |
D | BasePackageInstallTest.java | 163 PackageInfo pi = mPackageManager.getPackageInfo(packageName, 0); in isPackageInstalled() local 164 return pi != null; in isPackageInstalled()
|
/cts/suite/audio_quality/test_description/processing/ |
D | calc_delay.py | 70 multiplier = 2.0 * np.pi * signalFrequency / float(samplingRate)
|