Home
last modified time | relevance | path

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

123

/packages/apps/Settings/src/com/android/settings/applications/
DRunningState.java419 PackageInfo pi = pm.getPackageInfo(name, 0); in ensureLabel() local
420 if (pi.sharedUserLabel != 0) { in ensureLabel()
422 pi.sharedUserLabel, pi.applicationInfo); in ensureLabel()
426 mPackageInfo = pi.applicationInfo; in ensureLabel()
806 private boolean isInterestingProcess(ActivityManager.RunningAppProcessInfo pi) { in isInterestingProcess() argument
807 if ((pi.flags&ActivityManager.RunningAppProcessInfo.FLAG_CANT_SAVE_STATE) != 0) { in isInterestingProcess()
810 if ((pi.flags&ActivityManager.RunningAppProcessInfo.FLAG_PERSISTENT) == 0 in isInterestingProcess()
811 && pi.importance >= ActivityManager.RunningAppProcessInfo.IMPORTANCE_FOREGROUND in isInterestingProcess()
812 && pi.importance < ActivityManager.RunningAppProcessInfo.IMPORTANCE_CANT_SAVE_STATE in isInterestingProcess()
813 && pi.importanceReasonCode in isInterestingProcess()
[all …]
DRunningServiceDetails.java331 void addProcessDetailsView(RunningState.ProcessItem pi, boolean isMain) { in addProcessDetailsView() argument
340 detail.mActiveItem = detail.mViewHolder.bind(mState, pi, mBuilder); in addProcessDetailsView()
343 if (pi.mUserId != UserHandle.myUserId()) { in addProcessDetailsView()
352 ActivityManager.RunningAppProcessInfo rpi = pi.mRunningProcessInfo; in addProcessDetailsView()
409 RunningState.ProcessItem pi = i < 0 ? item.mProcess in addDetailsViews()
411 if (pi != null && pi.mPid <= 0) { in addDetailsViews()
415 addProcessDetailsView(pi, i < 0); in addDetailsViews()
DAppOpsDetails.java127 PermissionInfo pi = mPm.getPermissionInfo(perm, 0); in refreshUi() local
128 if (pi.group != null && !lastPermGroup.equals(pi.group)) { in refreshUi()
129 lastPermGroup = pi.group; in refreshUi()
130 PermissionGroupInfo pgi = mPm.getPermissionGroupInfo(pi.group, 0); in refreshUi()
DProcStatsEntry.java239 final PackageInfo pi = pm.getPackageInfo(curPkg, in retrieveUiData() local
243 if (pi.sharedUserLabel != 0) { in retrieveUiData()
244 mUiTargetApp = pi.applicationInfo; in retrieveUiData()
246 pi.sharedUserLabel, pi.applicationInfo); in retrieveUiData()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/users/
DAppLoadingTask.java135 PackageInfo pi = null; in populateApps() local
137 pi = mIPackageManager.getPackageInfo(packageName, in populateApps()
143 if (pi != null && (pi.requiredForAllUsers || isPlatformSigned(pi))) { in populateApps()
157 } else if (!mNewUser && isAppEnabledForUser(pi)) { in populateApps()
161 if (pi.requiredAccountType != null && pi.restrictedAccountType == null) { in populateApps()
166 boolean canSeeRestrictedAccounts = pi.restrictedAccountType != null; in populateApps()
297 PackageInfo pi = mPackageManager.getPackageInfo(app.packageName, 0); in addNonSystemApps() local
301 if (pi.requiredAccountType != null && pi.restrictedAccountType == null) { in addNonSystemApps()
390 final PackageInfo pi = mPackageManager.getPackageInfo(packageName, 0); in isSystemPackage() local
391 if (pi.applicationInfo == null) in isSystemPackage()
[all …]
/packages/apps/Settings/src/com/android/settings/users/
DAppRestrictionsFragment.java415 final PackageInfo pi = mPackageManager.getPackageInfo(packageName, 0); in isSystemPackage() local
416 if (pi.applicationInfo == null) return false; in isSystemPackage()
417 final int flags = pi.applicationInfo.flags; in isSystemPackage()
563 PackageInfo pi = pm.getPackageInfo(app.packageName, 0); in fetchAndMergeApps() local
568 && pi.requiredAccountType != null && pi.restrictedAccountType == null) { in fetchAndMergeApps()
630 private boolean isPlatformSigned(PackageInfo pi) { in isPlatformSigned() argument
631 return (pi != null && pi.signatures != null && in isPlatformSigned()
632 mSysPackageInfo.signatures[0].equals(pi.signatures[0])); in isPlatformSigned()
635 private boolean isAppEnabledForUser(PackageInfo pi) { in isAppEnabledForUser() argument
636 if (pi == null) return false; in isAppEnabledForUser()
[all …]
/packages/apps/Settings/src/com/android/settings/fuelgauge/
DBatteryEntry.java294 final PackageInfo pi = ipm.getPackageInfo(pkgName, 0 /* no flags */, userId); in loadNameAndIcon() local
295 if (pi == null) { in loadNameAndIcon()
300 if (pi.sharedUserLabel != 0) { in loadNameAndIcon()
302 pi.sharedUserLabel, pi.applicationInfo); in loadNameAndIcon()
305 if (pi.applicationInfo.icon != 0) { in loadNameAndIcon()
307 icon = pi.applicationInfo.loadIcon(pm); in loadNameAndIcon()
DPowerUsageDetail.java547 PackageInfo pi = null; in fillControlsSection() local
549 pi = packages != null ? pm.getPackageInfo(packages[0], 0) : null; in fillControlsSection()
551 ApplicationInfo ai = pi != null? pi.applicationInfo : null; in fillControlsSection()
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/task/
DInstallPackageTask.java90 PackageInfo pi = mPm.getPackageArchiveInfo(mPackageLocation, in packageContentIsCorrect() local
92 if (pi == null) { in packageContentIsCorrect()
97 if (!pi.packageName.equals(mPackageName)) { in packageContentIsCorrect()
98 ProvisionLogger.loge("Package name in apk (" + pi.packageName in packageContentIsCorrect()
104 for (ActivityInfo ai : pi.receivers) { in packageContentIsCorrect()
DSetDevicePolicyTask.java68 PackageInfo pi = mPackageManager.getPackageInfo(mPackageName, in isPackageInstalled() local
70 for (ActivityInfo ai : pi.receivers) { in isPackageInstalled()
/packages/apps/Settings/src/com/android/settings/
DDeviceAdminAdd.java217 DeviceAdminInfo.PolicyInfo pi = newPolicies.get(i); in onCreate() local
218 if (!mDPM.hasGrantedPolicy(who, pi.ident)) { in onCreate()
442 DeviceAdminInfo.PolicyInfo pi = policies.get(i); in updateInterface() local
444 this, getText(pi.label), "", true); in updateInterface()
460 DeviceAdminInfo.PolicyInfo pi = policies.get(i); in updateInterface() local
462 this, getText(pi.label), getText(pi.description), true); in updateInterface()
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/
DHttpClientFactory.java110 PackageInfo pi; in getUserAgent() local
112 pi = context.getPackageManager().getPackageInfo( in getUserAgent()
118 pi.packageName, in getUserAgent()
119 pi.versionName, in getUserAgent()
/packages/apps/FMRadio/jni/fmr/
Dcommon.cpp157 int COM_get_pi(int fd, RDSData_Struct *rds, uint16_t *pi) in COM_get_pi() argument
162 FMR_ASSERT(pi); in COM_get_pi()
166 *pi = rds->PI; in COM_get_pi()
169 *pi = -1; in COM_get_pi()
/packages/inputmethods/LatinIME/native/jni/
Dcom_android_inputmethod_keyboard_ProximityInfo.cpp42 ProximityInfo *pi = reinterpret_cast<ProximityInfo *>(proximityInfo); in latinime_Keyboard_release() local
43 delete pi; in latinime_Keyboard_release()
/packages/apps/UnifiedEmail/src/com/android/mail/ui/
DHelpActivity.java53 final PackageInfo pi = packageManager.getPackageInfo(getPackageName(), 0); in onCreate() local
54 actionBar.setSubtitle(getString(R.string.version, appName, pi.versionName)); in onCreate()
/packages/experimental/NotificationShowcase/src/com/android/example/notificationshowcase/
DFullScreenActivity.java56 PendingIntent pi = PendingIntent.getActivity( in getPendingIntent() local
58 return pi; in getPendingIntent()
DToastService.java68 PendingIntent pi = PendingIntent.getService( in getPendingIntent() local
70 return pi; in getPendingIntent()
DUpdateService.java71 PendingIntent pi = PendingIntent.getService( in getPendingIntent() local
73 return pi; in getPendingIntent()
DPhoneService.java77 PendingIntent pi = PendingIntent.getService( in getPendingIntent() local
79 return pi; in getPendingIntent()
/packages/apps/UnifiedEmail/src/com/android/mail/utils/
DHelpUrl.java72 final PackageInfo pi = context.getPackageManager().getPackageInfo(packageName, 0); in getVersion() local
73 return String.valueOf(pi.versionCode); in getVersion()
/packages/apps/UnifiedEmail/src/com/android/mail/providers/
DConversationInfo.java136 for (ParticipantInfo pi : participantInfos) { in markRead()
137 changed |= pi.markRead(read); in markRead()
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/
DProfileOwnerProvisioningService.java193 PackageInfo pi = getPackageManager().getPackageInfo(packageName, in getAdminReceiverComponent() local
195 for (ActivityInfo ai : pi.receivers) { in getAdminReceiverComponent()
/packages/apps/Calendar/src/com/android/calendar/alerts/
DAlarmScheduler.java319 PendingIntent pi = PendingIntent.getBroadcast(context, 0, intent, 0); in scheduleAlarm() local
320 alarmManager.set(AlarmManager.RTC_WAKEUP, alarmTime, pi); in scheduleAlarm()
/packages/apps/Exchange/src/com/android/exchange/service/
DPingSyncSynchronizer.java246 final PendingIntent pi = PendingIntent.getService(context, 0, intent, in scheduleDelayedPing() local
251 am.set(AlarmManager.ELAPSED_REALTIME_WAKEUP, atTime, pi); in scheduleDelayedPing()
/packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/
DCellBroadcastAlertService.java376 PendingIntent pi = PendingIntent.getActivity(this, NOTIFICATION_ID, intent, in addToNotificationBar() local
384 .setContentIntent(pi) in addToNotificationBar()

123