Home
last modified time | relevance | path

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

1234

/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/applications/
DRunningState.java454 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 …]
DRunningServiceDetails.java334 void addProcessDetailsView(RunningState.ProcessItem pi, boolean isMain) { in addProcessDetailsView() argument
343 detail.mActiveItem = detail.mViewHolder.bind(mState, pi, mBuilder); in addProcessDetailsView()
346 if (pi.mUserId != UserHandle.myUserId()) { in addProcessDetailsView()
355 ActivityManager.RunningAppProcessInfo rpi = pi.mRunningProcessInfo; in addProcessDetailsView()
412 RunningState.ProcessItem pi = i < 0 ? item.mProcess in addDetailsViews()
414 if (pi != null && pi.mPid <= 0) { in addDetailsViews()
418 addProcessDetailsView(pi, i < 0); in addDetailsViews()
/packages/apps/Settings/src/com/android/settings/applications/
DRunningState.java454 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 …]
DRunningServiceDetails.java334 void addProcessDetailsView(RunningState.ProcessItem pi, boolean isMain) { in addProcessDetailsView() argument
343 detail.mActiveItem = detail.mViewHolder.bind(mState, pi, mBuilder); in addProcessDetailsView()
346 if (pi.mUserId != UserHandle.myUserId()) { in addProcessDetailsView()
355 ActivityManager.RunningAppProcessInfo rpi = pi.mRunningProcessInfo; in addProcessDetailsView()
412 RunningState.ProcessItem pi = i < 0 ? item.mProcess in addDetailsViews()
414 if (pi != null && pi.mPid <= 0) { in addDetailsViews()
418 addProcessDetailsView(pi, i < 0); in addDetailsViews()
/packages/apps/Settings/src/com/android/settings/notification/
DRemoteVolumePreferenceController.java56 MediaController.PlaybackInfo pi) {
61 updatePreference(mPreference, mActiveToken, pi);
78 final MediaController.PlaybackInfo pi = mMediaController.getPlaybackInfo();
79 if (pi != null) {
80 setSliderPosition(pi.getCurrentVolume());
107 final MediaController.PlaybackInfo pi = mediaController.getPlaybackInfo(); in getActiveRemoteToken() local
108 if (isRemote(pi)) { in getActiveRemoteToken()
208 public static boolean isRemote(MediaController.PlaybackInfo pi) { in isRemote() argument
209 return pi != null in isRemote()
210 && pi.getPlaybackType() == MediaController.PlaybackInfo.PLAYBACK_TYPE_REMOTE; in isRemote()
[all …]
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/notification/
DRemoteVolumePreferenceController.java57 MediaController.PlaybackInfo pi) {
62 updatePreference(mPreference, mActiveToken, pi);
79 final MediaController.PlaybackInfo pi = mMediaController.getPlaybackInfo();
80 if (pi != null) {
81 setSliderPosition(pi.getCurrentVolume());
97 final MediaController.PlaybackInfo pi = mediaController.getPlaybackInfo(); in getAvailabilityStatus() local
98 if (isRemote(pi)) { in getAvailabilityStatus()
190 public static boolean isRemote(MediaController.PlaybackInfo pi) { in isRemote() argument
191 return pi != null in isRemote()
192 && pi.getPlaybackType() == MediaController.PlaybackInfo.PLAYBACK_TYPE_REMOTE; in isRemote()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/
DNotificationBackendTest.java63 PackageInfo pi = new PackageInfo(); in testMarkAppRow_defaultPackage() local
64 pi.packageName = "test"; in testMarkAppRow_defaultPackage()
65 pi.applicationInfo = new ApplicationInfo(); in testMarkAppRow_defaultPackage()
66 pi.applicationInfo.packageName = "test"; in testMarkAppRow_defaultPackage()
73 mock(PackageManager.class), rm, pi); in testMarkAppRow_defaultPackage()
80 PackageInfo pi = new PackageInfo(); in testMarkAppRow_notDefaultPackage() local
81 pi.packageName = "test"; in testMarkAppRow_notDefaultPackage()
82 pi.applicationInfo = new ApplicationInfo(); in testMarkAppRow_notDefaultPackage()
83 pi.applicationInfo.packageName = "test"; in testMarkAppRow_notDefaultPackage()
90 mock(PackageManager.class), rm, pi); in testMarkAppRow_notDefaultPackage()
/packages/apps/Settings/src/com/android/settings/users/
DAppRestrictionsFragment.java332 private boolean isPlatformSigned(PackageInfo pi) { in isPlatformSigned() argument
333 return (pi != null && pi.signatures != null && in isPlatformSigned()
334 mSysPackageInfo.signatures[0].equals(pi.signatures[0])); in isPlatformSigned()
337 private boolean isAppEnabledForUser(PackageInfo pi) { in isAppEnabledForUser() argument
338 if (pi == null) return false; in isAppEnabledForUser()
339 final int flags = pi.applicationInfo.flags; in isAppEnabledForUser()
340 final int privateFlags = pi.applicationInfo.privateFlags; in isAppEnabledForUser()
372 PackageInfo pi = null; in populateApps() local
374 pi = ipm.getPackageInfo(packageName, in populateApps()
380 if (pi == null) { in populateApps()
[all …]
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/users/
DAppRestrictionsFragment.java332 private boolean isPlatformSigned(PackageInfo pi) { in isPlatformSigned() argument
333 return (pi != null && pi.signatures != null && in isPlatformSigned()
334 mSysPackageInfo.signatures[0].equals(pi.signatures[0])); in isPlatformSigned()
337 private boolean isAppEnabledForUser(PackageInfo pi) { in isAppEnabledForUser() argument
338 if (pi == null) return false; in isAppEnabledForUser()
339 final int flags = pi.applicationInfo.flags; in isAppEnabledForUser()
340 final int privateFlags = pi.applicationInfo.privateFlags; in isAppEnabledForUser()
372 PackageInfo pi = null; in populateApps() local
374 pi = ipm.getPackageInfo(packageName, in populateApps()
380 if (pi == null) { in populateApps()
[all …]
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/users/
DAppRestrictionsFragment.java388 private boolean isPlatformSigned(PackageInfo pi) { in isPlatformSigned() argument
389 return (pi != null && pi.signatures != null && in isPlatformSigned()
390 mSysPackageInfo.signatures[0].equals(pi.signatures[0])); in isPlatformSigned()
393 private boolean isAppEnabledForUser(PackageInfo pi) { in isAppEnabledForUser() argument
394 if (pi == null) return false; in isAppEnabledForUser()
395 final int flags = pi.applicationInfo.flags; in isAppEnabledForUser()
396 final int privateFlags = pi.applicationInfo.privateFlags; in isAppEnabledForUser()
428 PackageInfo pi = null; in populateApps() local
430 pi = mIPm.getPackageInfo(packageName, in populateApps()
436 if (pi == null) { in populateApps()
[all …]
/packages/apps/DeskClock/src/com/android/deskclock/data/
DTimerModel.kt636 val pi: PendingIntent? = PendingIntent.getService(mContext, in updateAlarmManager() constant
638 if (pi != null) { in updateAlarmManager()
639 mAlarmManager.cancel(pi) in updateAlarmManager()
640 pi.cancel() in updateAlarmManager()
644 val pi: PendingIntent = PendingIntent.getService(mContext, in updateAlarmManager() constant
646 schedulePendingIntent(mAlarmManager, nextExpiringTimer.expirationTime, pi) in updateAlarmManager()
800 fun schedulePendingIntent(am: AlarmManager, triggerTime: Long, pi: PendingIntent?) { in schedulePendingIntent()
803 am.setExactAndAllowWhileIdle(ELAPSED_REALTIME_WAKEUP, triggerTime, pi) in schedulePendingIntent()
805 am.setExact(ELAPSED_REALTIME_WAKEUP, triggerTime, pi) in schedulePendingIntent()
DTimerModel.java681 final PendingIntent pi = PendingIntent.getService(mContext, in updateAlarmManager() local
683 if (pi != null) { in updateAlarmManager()
684 mAlarmManager.cancel(pi); in updateAlarmManager()
685 pi.cancel(); in updateAlarmManager()
689 final PendingIntent pi = PendingIntent.getService(mContext, in updateAlarmManager() local
691 schedulePendingIntent(mAlarmManager, nextExpiringTimer.getExpirationTime(), pi); in updateAlarmManager()
837 static void schedulePendingIntent(AlarmManager am, long triggerTime, PendingIntent pi) { in schedulePendingIntent() argument
840 am.setExactAndAllowWhileIdle(ELAPSED_REALTIME_WAKEUP, triggerTime, pi); in schedulePendingIntent()
842 am.setExact(ELAPSED_REALTIME_WAKEUP, triggerTime, pi); in schedulePendingIntent()
DTimerNotificationBuilder.kt199 val pi: PendingIntent = in build() constant
205 TimerModel.schedulePendingIntent(am, triggerTime, pi) in build()
208 val pi: PendingIntent? = PendingIntent.getService(context, 0, updateNotification, in build() constant
210 if (pi != null) { in build()
211 am.cancel(pi) in build()
212 pi.cancel() in build()
DTimerNotificationBuilder.java199 final PendingIntent pi = in build() local
205 TimerModel.schedulePendingIntent(am, triggerTime, pi); in build()
208 final PendingIntent pi = PendingIntent.getService(context, 0, updateNotification, in build() local
210 if (pi != null) { in build()
211 am.cancel(pi); in build()
212 pi.cancel(); in build()
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/specialaccess/pictureinpicture/
DPictureInPictureSettingsTest.java151 PackageInfo pi = new PackageInfo(); in createPackage() local
156 pi.activities = new ActivityInfo[1]; in createPackage()
157 pi.activities[0] = ai; in createPackage()
158 pi.applicationInfo = new ApplicationInfo(); in createPackage()
159 pi.applicationInfo.name = appTitle; in createPackage()
160 return pi; in createPackage()
/packages/apps/DeskClock/src/com/android/alarmclock/
DDigitalAppWidgetProvider.java213 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()
DDigitalAppWidgetProvider.kt188 val pi: PendingIntent = in <lambda>() constant
190 getAlarmManager(context).setExact(AlarmManager.RTC, nextDay.time, pi) in <lambda>()
197 val pi: PendingIntent? = in <lambda>() constant
199 if (pi != null) { in <lambda>()
200 getAlarmManager(context).cancel(pi) in <lambda>()
201 pi.cancel() in <lambda>()
328 val pi: PendingIntent = PendingIntent.getActivity(context, 0, openApp, 0) in <lambda>() constant
329 rv.setOnClickPendingIntent(R.id.digital_widget, pi) in <lambda>()
392 val pi: PendingIntent = PendingIntent.getActivity(context, 0, selectCity, 0) in <lambda>() constant
393 rv.setPendingIntentTemplate(R.id.world_city_list, pi) in <lambda>()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/fuelgauge/
DBatteryEntry.java326 … final PackageInfo pi = ipm.getPackageInfo(pkgName, 0 /* no flags */, userId); in loadNameAndIcon() local
327 if (pi == null) { in loadNameAndIcon()
332 if (pi.sharedUserLabel != 0) { in loadNameAndIcon()
334 pi.sharedUserLabel, pi.applicationInfo); in loadNameAndIcon()
337 if (pi.applicationInfo.icon != 0) { in loadNameAndIcon()
339 icon = pi.applicationInfo.loadIcon(pm); in loadNameAndIcon()
/packages/apps/Settings/src/com/android/settings/fuelgauge/
DBatteryEntry.java326 … final PackageInfo pi = ipm.getPackageInfo(pkgName, 0 /* no flags */, userId); in loadNameAndIcon() local
327 if (pi == null) { in loadNameAndIcon()
332 if (pi.sharedUserLabel != 0) { in loadNameAndIcon()
334 pi.sharedUserLabel, pi.applicationInfo); in loadNameAndIcon()
337 if (pi.applicationInfo.icon != 0) { in loadNameAndIcon()
339 icon = pi.applicationInfo.loadIcon(pm); in loadNameAndIcon()
/packages/apps/Test/connectivity/sl4n/rapidjson/doc/diagram/
Dtutorial.dot28 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/
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/modules/ExtServices/src/android/ext/services/notification/
DAgingHelper.java111 final PendingIntent pi = createPendingIntent(key, category); in scheduleAging() local
114 mAm.setExactAndAllowWhileIdle(AlarmManager.RTC_WAKEUP, time, pi); in scheduleAging()
118 final PendingIntent pi = createPendingIntent(key); in cancelAging() local
119 mAm.cancel(pi); in cancelAging()
/packages/apps/StorageManager/src/com/android/storagemanager/deletionhelper/
DAppStateUsageStatsBridge.java110 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()
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/common/
DUtils.java222 PackageInfo pi; in findDeviceAdmin() local
224 pi = context.getPackageManager().getPackageInfoAsUser(dpcPackageName, in findDeviceAdmin()
233 dpcComponentName, pi); in findDeviceAdmin()
252 @Nullable ComponentName dpcComponentName, @NonNull PackageInfo pi) { in findDeviceAdminInPackageInfo() argument
254 if (!isComponentInPackageInfo(dpcComponentName, pi)) { in findDeviceAdminInPackageInfo()
261 return findDeviceAdminInPackage(dpcPackageName, pi); in findDeviceAdminInPackageInfo()
295 PackageInfo pi) { in isComponentInPackageInfo() argument
296 for (ActivityInfo ai : pi.receivers) { in isComponentInPackageInfo()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/applications/specialaccess/deviceadmin/
DDeviceAdminAdd.java261 DeviceAdminInfo.PolicyInfo pi = newPolicies.get(i); in onCreate() local
262 if (!mDPM.hasGrantedPolicy(who, pi.ident)) { in onCreate()
670 for (DeviceAdminInfo.PolicyInfo pi : mDeviceAdmin.getUsedPolicies()) { in addDeviceAdminPolicies()
671 int descriptionId = isAdminUser ? pi.description : pi.descriptionForSecondaryUsers; in addDeviceAdminPolicies()
672 int labelId = isAdminUser ? pi.label : pi.labelForSecondaryUsers; in addDeviceAdminPolicies()

1234