Home
last modified time | relevance | path

Searched refs:pi (Results 1 – 25 of 29) sorted by relevance

12

/frameworks/base/tests/AndroidTests/src/com/android/unit_tests/activity/
DMetaDataTest.java140 ProviderInfo pi = mContext.getPackageManager().resolveContentProvider( in testProviderWithData() local
143 checkMetaData(cn, pi); in testProviderWithData()
145 pi = mContext.getPackageManager().resolveContentProvider( in testProviderWithData()
148 assertNull("Meta data returned when not requested", pi.metaData); in testProviderWithData()
155 PermissionInfo pi = mContext.getPackageManager().getPermissionInfo( in testPermissionWithData() local
157 checkMetaData(cn, pi); in testPermissionWithData()
159 pi = mContext.getPackageManager().getPermissionInfo( in testPermissionWithData()
162 assertNull("Meta data returned when not requested", pi.metaData); in testPermissionWithData()
DIntentSenderTest.java48 public void onSendFinished(PendingIntent pi, Intent intent, in testRegisteredReceivePermissionDenied()
75 public void onSendFinished(PendingIntent pi, Intent intent, in testLocalReceivePermissionDenied()
/frameworks/base/telephony/java/com/android/internal/telephony/cdma/
DCdmaInformationRecords.java154 public byte pi; field in CdmaInformationRecords.CdmaNumberInfoRec
157 public CdmaNumberInfoRec(int id, String number, int numberType, int numberPlan, int pi, in CdmaNumberInfoRec() argument
162 this.pi = (byte)pi; in CdmaNumberInfoRec()
173 ", pi: " + pi + in toString()
191 int pi, int si, int reason) { in CdmaRedirectingNumberInfoRec() argument
193 number, numberType, numberPlan, pi, si); in CdmaRedirectingNumberInfoRec()
/frameworks/base/services/java/com/android/server/
DMountService.java235 PendingIntent pi = PendingIntent.getActivity(mContext, 0, intent, 0); in updateUsbMassStorageNotification() local
240 sound, true, pi); in updateUsbMassStorageNotification()
352 PendingIntent pi = PendingIntent.getActivity(mContext, 0, intent, 0); in notifyMediaNoFs() local
357 true, false, pi); in notifyMediaNoFs()
383 PendingIntent pi = PendingIntent.getActivity(mContext, 0, intent, 0); in notifyMediaShared() local
387 false, true, pi); in notifyMediaShared()
420 PendingIntent pi = PendingIntent.getActivity(mContext, 0, intent, 0); in notifyMediaUnmountable() local
425 true, false, pi); in notifyMediaUnmountable()
448 PendingIntent pi) { in setUsbStorageNotification() argument
481 if (pi == null) { in setUsbStorageNotification()
[all …]
DAlarmManagerService.java782 private final BroadcastStats getStatsLocked(PendingIntent pi) { in getStatsLocked() argument
783 String pkg = pi.getTargetPackage(); in getStatsLocked()
793 public void onSendFinished(PendingIntent pi, Intent intent, int resultCode, in onSendFinished() argument
796 BroadcastStats bs = getStatsLocked(pi); in onSendFinished()
DPackageManagerService.java1069 public void freeStorage(final long freeStorageSize, final IntentSender pi) { in freeStorage() argument
1083 if(pi != null) { in freeStorage()
1087 pi.sendIntent(null, code, null, in freeStorage()
1801 PackageInfo pi = generatePackageInfo(p, flags); in getInstalledPackages() local
1802 if(pi != null) { in getInstalledPackages()
1803 finalList.add(pi); in getInstalledPackages()
6698 PermissionInfo pi = bp.perm != null ? bp.perm.info in writePermission() local
6700 if (pi != null) { in writePermission()
6702 if (pi.icon != 0) { in writePermission()
6704 Integer.toString(pi.icon)); in writePermission()
[all …]
/frameworks/base/cmds/pm/src/com/android/commands/pm/
DPm.java461 PermissionInfo pi = ps.get(p); in doListPermissions() local
462 if (groups && groupName == null && pi.group != null) { in doListPermissions()
465 if (pi.protectionLevel < startProtectionLevel in doListPermissions()
466 || pi.protectionLevel > endProtectionLevel) { in doListPermissions()
475 Resources res = getResources(pi); in doListPermissions()
477 System.out.print(loadText(pi, pi.labelRes, in doListPermissions()
478 pi.nonLocalizedLabel)); in doListPermissions()
480 System.out.print(pi.name); in doListPermissions()
484 + "permission:" + pi.name); in doListPermissions()
486 System.out.println(prefix + " package:" + pi.packageName); in doListPermissions()
[all …]
/frameworks/base/core/java/android/content/pm/
DPackageParser.java170 PackageInfo pi = new PackageInfo(); in generatePackageInfo() local
171 pi.packageName = p.packageName; in generatePackageInfo()
172 pi.versionCode = p.mVersionCode; in generatePackageInfo()
173 pi.versionName = p.mVersionName; in generatePackageInfo()
174 pi.sharedUserId = p.mSharedUserId; in generatePackageInfo()
175 pi.sharedUserLabel = p.mSharedUserLabel; in generatePackageInfo()
176 pi.applicationInfo = p.applicationInfo; in generatePackageInfo()
178 pi.gids = gids; in generatePackageInfo()
183 pi.configPreferences = new ConfigurationInfo[N]; in generatePackageInfo()
184 p.configPreferences.toArray(pi.configPreferences); in generatePackageInfo()
[all …]
DIPackageManager.aidl247 in IntentSender pi); in freeStorage() argument
DPackageManager.java1574 public abstract void freeStorage(long freeStorageSize, IntentSender pi); in freeStorage() argument
/frameworks/base/core/java/android/content/
DIntentSender.java110 FinishedDispatcher(IntentSender pi, OnFinished who, Handler handler) { in FinishedDispatcher() argument
111 mIntentSender = pi; in FinishedDispatcher()
/frameworks/base/tests/AndroidTests/src/com/android/unit_tests/
DComponentTest.java604 PackageInfo pi = mPackageManager.getPackageInfo(ENABLED_PACKAGENAME, 0); in testQueryEnabledProvider() local
607 pi.applicationInfo.uid, 0); in testQueryEnabledProvider()
620 PackageInfo pi = mPackageManager.getPackageInfo(ENABLED_PACKAGENAME, 0); in testQueryDisabledProvider() local
625 pi.applicationInfo.uid, 0); in testQueryDisabledProvider()
631 pi.applicationInfo.uid, GET_DISABLED_COMPONENTS); in testQueryDisabledProvider()
DAppCacheTest.java507 PendingIntent pi) throws Exception { in invokePMFreeStorage() argument
511 getPm().freeStorage(idealStorageSize, pi.getIntentSender()); in invokePMFreeStorage()
647 PendingIntent pi = PendingIntent.getBroadcast(mContext, in testFreeStorage() local
650 invokePMFreeStorage(availableMem, receiver, pi); in testFreeStorage()
/frameworks/base/core/java/android/app/
DApplicationContext.java1291 ActivityThread.PackageInfo pi = in createPackageContext() local
1293 if (pi != null) { in createPackageContext()
1296 c.init(pi, null, mMainThread, mResources); in createPackageContext()
1485 PackageInfo pi = mPM.getPackageInfo(packageName, flags); in getPackageInfo() local
1486 if (pi != null) { in getPackageInfo()
1487 return pi; in getPackageInfo()
1542 PermissionInfo pi = mPM.getPermissionInfo(name, flags); in getPermissionInfo() local
1543 if (pi != null) { in getPermissionInfo()
1544 return pi; in getPermissionInfo()
1557 List<PermissionInfo> pi = mPM.queryPermissionsByGroup(group, flags); in queryPermissionsByGroup() local
[all …]
DApplicationThreadNative.java127 List<Intent> pi = data.createTypedArrayList(Intent.CREATOR); in onTransact() local
130 scheduleLaunchActivity(intent, b, ident, info, state, ri, pi, in onTransact()
140 List<Intent> pi = data.createTypedArrayList(Intent.CREATOR); in onTransact() local
143 scheduleRelaunchActivity(b, ri, pi, configChanges, notResumed); in onTransact()
150 List<Intent> pi = data.createTypedArrayList(Intent.CREATOR); in onTransact() local
152 scheduleNewIntent(pi, b); in onTransact()
DPendingIntent.java144 FinishedDispatcher(PendingIntent pi, OnFinished who, Handler handler) { in FinishedDispatcher() argument
145 mPendingIntent = pi; in FinishedDispatcher()
/frameworks/base/tools/aapt/
DResourceTable.cpp2147 size_t pi; in assignResourceIds() local
2151 for (pi=0; pi<N; pi++) { in assignResourceIds()
2152 sp<Package> p = mOrderedPackages.itemAt(pi); in assignResourceIds()
2249 size_t pi; in addSymbols() local
2251 for (pi=0; pi<N; pi++) { in addSymbols()
2252 sp<Package> p = mOrderedPackages.itemAt(pi); in addSymbols()
2504 size_t pi; in flatten() local
2509 for (pi=0; pi<N; pi++) { in flatten()
2510 sp<Package> p = mOrderedPackages.itemAt(pi); in flatten()
2561 for (pi=0; pi<N; pi++) { in flatten()
[all …]
/frameworks/base/location/java/com/android/internal/location/
DGpsNetInitiatedHandler.java215 PendingIntent pi = PendingIntent.getBroadcast(mContext, 0, intent, 0); in setNiNotification() local
216 mNiNotification.setLatestEventInfo(mContext, title, message, pi); in setNiNotification()
/frameworks/base/core/java/android/server/search/
DSearchableInfo.java336 ProviderInfo pi = pm.resolveContentProvider(mSuggestAuthority, 0); in SearchableInfo() local
337 if (pi != null) { in SearchableInfo()
338 suggestProviderPackage = pi.packageName; in SearchableInfo()
/frameworks/base/libs/utils/
DResourceTypes.cpp1269 package_info* pi = mPackages[i]; in ~Theme() local
1270 if (pi != NULL) { in ~Theme()
1271 free_package(pi); in ~Theme()
1276 void ResTable::Theme::free_package(package_info* pi) in free_package() argument
1278 for (size_t j=0; j<pi->numTypes; j++) { in free_package()
1279 theme_entry* te = pi->types[j].entries; in free_package()
1284 free(pi); in free_package()
1287 ResTable::Theme::package_info* ResTable::Theme::copy_package(package_info* pi) in copy_package() argument
1290 sizeof(package_info) + (pi->numTypes*sizeof(type_info))); in copy_package()
1291 newpi->numTypes = pi->numTypes; in copy_package()
[all …]
/frameworks/base/awt/com/android/internal/awt/
DAndroidGraphics2D.java184 PathIterator pi = s.getPathIterator(null); in getPath() local
185 while (pi.isDone() == false) { in getPath()
186 getCurrentSegment(pi, path); in getPath()
187 pi.next(); in getPath()
192 private void getCurrentSegment(PathIterator pi, Path path) { in getCurrentSegment() argument
194 int type = pi.currentSegment(coordinates); in getCurrentSegment()
/frameworks/base/awt/org/apache/harmony/awt/gl/
DCommonGraphics2D.java255 PathIterator pi = s.getPathIterator(transform, 0.5); in draw() local
261 while (!pi.isDone()) { in draw()
262 switch (pi.currentSegment(points)) { in draw()
284 pi.next(); in draw()
/frameworks/base/test-runner/android/test/mock/
DMockPackageManager.java338 long idealStorageSize, IntentSender pi) { in freeStorage() argument
/frameworks/base/services/java/com/android/server/am/
DActivityManagerService.java6135 ProviderInfo pi, int uid, int modeFlags) { in checkHoldingPermissionsLocked() argument
6138 if ((pi.readPermission != null) && in checkHoldingPermissionsLocked()
6139 (pm.checkUidPermission(pi.readPermission, uid) in checkHoldingPermissionsLocked()
6145 if ((pi.writePermission != null) && in checkHoldingPermissionsLocked()
6146 (pm.checkUidPermission(pi.writePermission, uid) in checkHoldingPermissionsLocked()
6206 ProviderInfo pi = null; in grantUriPermissionLocked() local
6210 pi = cpr.info; in grantUriPermissionLocked()
6213 pi = pm.resolveContentProvider(name, in grantUriPermissionLocked()
6218 if (pi == null) { in grantUriPermissionLocked()
6234 if (checkHoldingPermissionsLocked(pm, pi, targetUid, modeFlags)) { in grantUriPermissionLocked()
[all …]
/frameworks/base/include/utils/
DResourceTypes.h1787 void free_package(package_info* pi);
1788 package_info* copy_package(package_info* pi);

12