/packages/apps/Settings/src/com/android/settings/applications/ |
D | RunningState.java | 454 PackageInfo pi = pm.getPackageInfo(name, 0); in ensureLabel() local 455 if (pi.sharedUserLabel != 0) { in ensureLabel() 457 pi.sharedUserLabel, pi.applicationInfo); in ensureLabel() 461 mPackageInfo = pi.applicationInfo; in ensureLabel() 844 private boolean isInterestingProcess(ActivityManager.RunningAppProcessInfo pi) { in isInterestingProcess() argument 845 if ((pi.flags&ActivityManager.RunningAppProcessInfo.FLAG_CANT_SAVE_STATE) != 0) { in isInterestingProcess() 848 if ((pi.flags&ActivityManager.RunningAppProcessInfo.FLAG_PERSISTENT) == 0 in isInterestingProcess() 849 && pi.importance >= ActivityManager.RunningAppProcessInfo.IMPORTANCE_FOREGROUND in isInterestingProcess() 850 && pi.importance < ActivityManager.RunningAppProcessInfo.IMPORTANCE_CANT_SAVE_STATE in isInterestingProcess() 851 && pi.importanceReasonCode in isInterestingProcess() [all …]
|
D | AppOpsDetails.java | 115 PermissionInfo pi = mPm.getPermissionInfo(perm, 0); in refreshUi() local 116 if (pi.group != null && !lastPermGroup.equals(pi.group)) { in refreshUi() 117 lastPermGroup = pi.group; in refreshUi() 118 PermissionGroupInfo pgi = mPm.getPermissionGroupInfo(pi.group, 0); in refreshUi()
|
D | RunningServiceDetails.java | 333 void addProcessDetailsView(RunningState.ProcessItem pi, boolean isMain) { in addProcessDetailsView() argument 342 detail.mActiveItem = detail.mViewHolder.bind(mState, pi, mBuilder); in addProcessDetailsView() 345 if (pi.mUserId != UserHandle.myUserId()) { in addProcessDetailsView() 354 ActivityManager.RunningAppProcessInfo rpi = pi.mRunningProcessInfo; in addProcessDetailsView() 411 RunningState.ProcessItem pi = i < 0 ? item.mProcess in addDetailsViews() 413 if (pi != null && pi.mPid <= 0) { in addDetailsViews() 417 addProcessDetailsView(pi, i < 0); in addDetailsViews()
|
/packages/apps/Settings/src/com/android/settings/users/ |
D | AppRestrictionsFragment.java | 331 private boolean isPlatformSigned(PackageInfo pi) { in isPlatformSigned() argument 332 return (pi != null && pi.signatures != null && in isPlatformSigned() 333 mSysPackageInfo.signatures[0].equals(pi.signatures[0])); in isPlatformSigned() 336 private boolean isAppEnabledForUser(PackageInfo pi) { in isAppEnabledForUser() argument 337 if (pi == null) return false; in isAppEnabledForUser() 338 final int flags = pi.applicationInfo.flags; in isAppEnabledForUser() 339 final int privateFlags = pi.applicationInfo.privateFlags; in isAppEnabledForUser() 371 PackageInfo pi = null; in populateApps() local 373 pi = ipm.getPackageInfo(packageName, in populateApps() 379 if (pi == null) { in populateApps() [all …]
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/users/ |
D | AppRestrictionsFragment.java | 364 private boolean isPlatformSigned(PackageInfo pi) { in isPlatformSigned() argument 365 return (pi != null && pi.signatures != null && in isPlatformSigned() 366 mSysPackageInfo.signatures[0].equals(pi.signatures[0])); in isPlatformSigned() 369 private boolean isAppEnabledForUser(PackageInfo pi) { in isAppEnabledForUser() argument 370 if (pi == null) return false; in isAppEnabledForUser() 371 final int flags = pi.applicationInfo.flags; in isAppEnabledForUser() 372 final int privateFlags = pi.applicationInfo.privateFlags; in isAppEnabledForUser() 404 PackageInfo pi = null; in populateApps() local 406 pi = mIPm.getPackageInfo(packageName, in populateApps() 412 if (pi == null) { in populateApps() [all …]
|
/packages/apps/DeskClock/src/com/android/alarmclock/ |
D | DigitalAppWidgetProvider.java | 213 final PendingIntent pi = PendingIntent.getActivity(context, 0, openApp, 0); in relayoutWidget() local 214 rv.setOnClickPendingIntent(R.id.digital_widget, pi); in relayoutWidget() 279 final PendingIntent pi = PendingIntent.getActivity(context, 0, selectCity, 0); in relayoutWidget() local 280 rv.setPendingIntentTemplate(R.id.world_city_list, pi); in relayoutWidget() 372 final PendingIntent pi = in updateDayChangeCallback() local 374 getAlarmManager(context).setExact(AlarmManager.RTC, nextDay.getTime(), pi); in updateDayChangeCallback() 381 final PendingIntent pi = in removeDayChangeCallback() local 383 if (pi != null) { in removeDayChangeCallback() 384 getAlarmManager(context).cancel(pi); in removeDayChangeCallback() 385 pi.cancel(); in removeDayChangeCallback()
|
/packages/apps/DeskClock/src/com/android/deskclock/data/ |
D | TimerModel.java | 679 final PendingIntent pi = PendingIntent.getService(mContext, in updateAlarmManager() local 681 if (pi != null) { in updateAlarmManager() 682 mAlarmManager.cancel(pi); in updateAlarmManager() 683 pi.cancel(); in updateAlarmManager() 687 final PendingIntent pi = PendingIntent.getService(mContext, in updateAlarmManager() local 689 schedulePendingIntent(mAlarmManager, nextExpiringTimer.getExpirationTime(), pi); in updateAlarmManager() 836 static void schedulePendingIntent(AlarmManager am, long triggerTime, PendingIntent pi) { in schedulePendingIntent() argument 839 am.setExactAndAllowWhileIdle(ELAPSED_REALTIME_WAKEUP, triggerTime, pi); in schedulePendingIntent() 841 am.setExact(ELAPSED_REALTIME_WAKEUP, triggerTime, pi); in schedulePendingIntent()
|
D | TimerNotificationBuilder.java | 192 final PendingIntent pi = in build() local 198 TimerModel.schedulePendingIntent(am, triggerTime, pi); in build() 201 final PendingIntent pi = PendingIntent.getService(context, 0, updateNotification, in build() local 203 if (pi != null) { in build() 204 am.cancel(pi); in build() 205 pi.cancel(); in build()
|
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/common/ |
D | Utils.java | 185 PackageInfo pi; in findDeviceAdmin() local 187 pi = context.getPackageManager().getPackageInfo(dpcPackageName, in findDeviceAdmin() 195 dpcComponentName, pi); in findDeviceAdmin() 214 @Nullable ComponentName dpcComponentName, @NonNull PackageInfo pi) { in findDeviceAdminInPackageInfo() argument 216 if (!isComponentInPackageInfo(dpcComponentName, pi)) { in findDeviceAdminInPackageInfo() 223 return findDeviceAdminInPackage(dpcPackageName, pi); in findDeviceAdminInPackageInfo() 257 PackageInfo pi) { in isComponentInPackageInfo() argument 258 for (ActivityInfo ai : pi.receivers) { in isComponentInPackageInfo()
|
/packages/apps/Settings/src/com/android/settings/fuelgauge/ |
D | BatteryEntry.java | 308 … final PackageInfo pi = ipm.getPackageInfo(pkgName, 0 /* no flags */, userId); in loadNameAndIcon() local 309 if (pi == null) { in loadNameAndIcon() 314 if (pi.sharedUserLabel != 0) { in loadNameAndIcon() 316 pi.sharedUserLabel, pi.applicationInfo); in loadNameAndIcon() 319 if (pi.applicationInfo.icon != 0) { in loadNameAndIcon() 321 icon = pi.applicationInfo.loadIcon(pm); in loadNameAndIcon()
|
/packages/experimental/NotificationShowcase/src/com/android/example/notificationshowcase/ |
D | NotificationService.java | 173 PendingIntent pi = ToastService.getPendingIntent(context, R.string.upload_click); in makeUploadNotification() local 179 .setContentIntent(pi) in makeUploadNotification() 245 PendingIntent pi = ToastService.getPendingIntent(this, R.string.timer_click); in onHandleIntent() local 250 .setContentIntent(pi) in onHandleIntent() 295 PendingIntent pi = ToastService.getPendingIntent(this, R.string.email_click); in onHandleIntent() local 302 .setContentIntent(pi) in onHandleIntent() 312 PendingIntent pi = ToastService.getPendingIntent(this, R.string.social_click); in onHandleIntent() local 317 .setContentIntent(pi) in onHandleIntent()
|
/packages/apps/Test/connectivity/sl4n/rapidjson/doc/diagram/ |
D | tutorial.dot | 28 pi [label="{string|\"pi\"}", fillcolor=5] 46 root -> { hello; t; f; n; i; pi; a } 55 pi -> pi1
|
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/ |
D | HttpClientFactory.java | 110 PackageInfo pi; in getUserAgent() local 112 pi = context.getPackageManager().getPackageInfo( in getUserAgent() 118 pi.packageName, in getUserAgent() 119 pi.versionName, in getUserAgent()
|
/packages/apps/Settings/src/com/android/settings/ |
D | DeviceAdminAdd.java | 261 DeviceAdminInfo.PolicyInfo pi = newPolicies.get(i); in onCreate() local 262 if (!mDPM.hasGrantedPolicy(who, pi.ident)) { in onCreate() 646 for (DeviceAdminInfo.PolicyInfo pi : mDeviceAdmin.getUsedPolicies()) { in addDeviceAdminPolicies() 647 int descriptionId = isAdminUser ? pi.description : pi.descriptionForSecondaryUsers; in addDeviceAdminPolicies() 648 int labelId = isAdminUser ? pi.label : pi.labelForSecondaryUsers; in addDeviceAdminPolicies()
|
/packages/apps/StorageManager/src/com/android/storagemanager/deletionhelper/ |
D | AppStateUsageStatsBridge.java | 110 PackageInfo pi = null; in getDaysSinceInstalled() local 112 pi = mPm.getPackageInfo(packageName, 0); in getDaysSinceInstalled() 117 if (pi == null) { in getDaysSinceInstalled() 120 return (TimeUnit.MILLISECONDS.toDays(mClock.getCurrentTime() - pi.firstInstallTime)); in getDaysSinceInstalled()
|
D | AppsAsyncLoader.java | 378 android.content.pm.PackageInfo pi = null; in getDaysSinceInstalled() local 380 pi = mPackageManager.getPackageInfo(packageName, 0); in getDaysSinceInstalled() 385 if (pi == null) { in getDaysSinceInstalled() 388 return (TimeUnit.MILLISECONDS.toDays(mClock.getCurrentTime() - pi.firstInstallTime)); in getDaysSinceInstalled()
|
/packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/ |
D | CellBroadcastAlertService.java | 555 PendingIntent pi; in addToNotificationBar() local 557 pi = PendingIntent.getBroadcast(context, 0, intent, 0); in addToNotificationBar() 559 pi = PendingIntent.getActivity(context, NOTIFICATION_ID, intent, in addToNotificationBar() 578 builder.setDeleteIntent(pi); in addToNotificationBar() 580 builder.setContentIntent(pi); in addToNotificationBar()
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/system/development/ |
D | AppPicker.java | 120 PackageInfo pi = pm.getPackageInfo(ai.packageName, in onCreateActions() local 122 if (pi.requestedPermissions == null) { in onCreateActions() 125 for (String requestedPermission : pi.requestedPermissions) { in onCreateActions()
|
/packages/apps/Settings/src/com/android/settings/development/ |
D | AppPicker.java | 121 PackageInfo pi = getPackageManager().getPackageInfo(ai.packageName, in AppListAdapter() local 123 if (pi.requestedPermissions == null) { in AppListAdapter() 126 for (String requestedPermission : pi.requestedPermissions) { in AppListAdapter()
|
/packages/apps/Settings/src/com/android/settings/display/ |
D | ThemePreferenceController.java | 117 PackageInfo pi = mPackageManager.getPackageInfo(packageName, 0); in isChangeableOverlay() local 118 return pi != null && !pi.isStaticOverlay; in isChangeableOverlay()
|
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/common/ |
D | UtilsTest.java | 140 PackageInfo pi = new PackageInfo(); in testPackageRequiresUpdate() local 141 pi.packageName = TEST_PACKAGE_NAME_1; in testPackageRequiresUpdate() 142 pi.versionCode = 1; in testPackageRequiresUpdate() 143 when(mockPackageManager.getPackageInfo(TEST_PACKAGE_NAME_1, 0)).thenReturn(pi); in testPackageRequiresUpdate()
|
/packages/apps/Settings/tests/unit/src/com/android/settings/ |
D | TetherServiceTest.java | 198 PendingIntent pi = mPiCaptor.getValue(); in testScheduleRechecks() local 199 assertEquals(TetherService.class.getName(), pi.getIntent().getComponent().getClassName()); in testScheduleRechecks() 267 PendingIntent pi = mPiCaptor.getValue(); in testCancelAlarm() local 268 assertEquals(TetherService.class.getName(), pi.getIntent().getComponent().getClassName()); in testCancelAlarm()
|
/packages/apps/Settings/tests/unit/src/com/android/settings/display/ |
D | ThemePreferenceControllerTest.java | 121 PackageInfo pi = new PackageInfo(); in testUpdateState_withStaticOverlay() local 122 pi.isStaticOverlay = true; in testUpdateState_withStaticOverlay() 123 when(mMockPackageManager.getPackageInfo(eq("com.android.Theme1"), anyInt())).thenReturn(pi); in testUpdateState_withStaticOverlay()
|
/packages/apps/Test/connectivity/sl4n/rapidjson/doc/ |
D | tutorial.md | 25 "pi": 3.1416, 90 assert(document["pi"].IsNumber()); 91 assert(document["pi"].IsDouble()); 92 printf("pi = %g\n", document["pi"].GetDouble()); 97 pi = 3.1416 158 Type of member pi is Number 236 if (document["pi"] != 3.14) /*...*/; // Compare with double.
|
/packages/apps/Messaging/src/com/android/messaging/util/ |
D | VersionUtil.java | 43 PackageInfo pi = context.getPackageManager().getPackageInfo( in VersionUtil() local 45 versionCode = pi.versionCode; in VersionUtil()
|