Home
last modified time | relevance | path

Searched refs:pkgName (Results 1 – 25 of 36) sorted by relevance

12

/packages/providers/TvProvider/tests/src/com/android/providers/tv/
DUtils.java52 BaseProgram(String pkgName) { in BaseProgram() argument
53 this(-1, pkgName); in BaseProgram()
56 BaseProgram(long id, String pkgName) { in BaseProgram() argument
58 this.packageName = pkgName; in BaseProgram()
83 Program(String pkgName) { in Program() argument
84 super(-1, pkgName); in Program()
87 Program(long id, String pkgName) { in Program() argument
88 super(id, pkgName); in Program()
103 PreviewProgram(String pkgName) { in PreviewProgram() argument
104 super(-1, pkgName); in PreviewProgram()
[all …]
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/device/apps/
DRecentAppsPreferenceController.java157 final String pkgName = stat.getPackageName(); in displayRecentApps() local
159 mApplicationsState.getEntry(pkgName, mUserId); in displayRecentApps()
165 Preference pref = appPreferences.remove(pkgName); in displayRecentApps()
170 pref.setKey(pkgName); in displayRecentApps()
176 AppManagementFragment.prepareArgs(pref.getExtras(), pkgName); in displayRecentApps() local
218 final String pkgName = pkgStats.getPackageName(); in getDisplayableRecentAppList() local
219 final UsageStats existingStats = map.get(pkgName); in getDisplayableRecentAppList()
221 map.put(pkgName, pkgStats); in getDisplayableRecentAppList()
249 final String pkgName = stat.getPackageName(); in shouldIncludePkgInRecents() local
251 Log.d(TAG, "Invalid timestamp, skipping " + pkgName); in shouldIncludePkgInRecents()
[all …]
DForceStopPreference.java101 String pkgName = getArguments().getString(ARG_PACKAGE_NAME); in onOk() local
103 pkgName); in onOk() local
106 am.forceStopPackage(pkgName); in onOk()
/packages/apps/Settings/src/com/android/settings/applications/
DRecentAppStatsMixin.java131 final String pkgName = pkgStats.getPackageName(); in loadDisplayableRecentApps() local
132 final UsageStats existingStats = map.get(pkgName); in loadDisplayableRecentApps()
134 map.put(pkgName, pkgStats); in loadDisplayableRecentApps()
161 final String pkgName = stat.getPackageName(); in shouldIncludePkgInRecents() local
164 + pkgName); in shouldIncludePkgInRecents()
168 if (SKIP_SYSTEM_PACKAGES.contains(pkgName)) { in shouldIncludePkgInRecents()
169 Log.d(TAG, "System package, skipping " + pkgName); in shouldIncludePkgInRecents()
172 if (AppUtils.isHiddenSystemModule(mContext, pkgName)) { in shouldIncludePkgInRecents()
176 .setPackage(pkgName); in shouldIncludePkgInRecents()
181 mApplicationsState.getEntry(pkgName, mUserId); in shouldIncludePkgInRecents()
[all …]
DRecentAppsPreferenceController.java151 final String pkgName = stat.getPackageName(); in createAppEntity() local
153 mApplicationsState.getEntry(pkgName, mUserId); in createAppEntity()
166 R.string.application_info_label, pkgName, appEntry.info.uid, in createAppEntity()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/applications/
DRecentAppStatsMixin.java131 final String pkgName = pkgStats.getPackageName(); in loadDisplayableRecentApps() local
132 final UsageStats existingStats = map.get(pkgName); in loadDisplayableRecentApps()
134 map.put(pkgName, pkgStats); in loadDisplayableRecentApps()
161 final String pkgName = stat.getPackageName(); in shouldIncludePkgInRecents() local
164 + pkgName); in shouldIncludePkgInRecents()
168 if (SKIP_SYSTEM_PACKAGES.contains(pkgName)) { in shouldIncludePkgInRecents()
169 Log.d(TAG, "System package, skipping " + pkgName); in shouldIncludePkgInRecents()
172 if (AppUtils.isHiddenSystemModule(mContext, pkgName)) { in shouldIncludePkgInRecents()
176 .setPackage(pkgName); in shouldIncludePkgInRecents()
181 mApplicationsState.getEntry(pkgName, mUserId); in shouldIncludePkgInRecents()
[all …]
DRecentAppsPreferenceController.java151 final String pkgName = stat.getPackageName(); in createAppEntity() local
153 mApplicationsState.getEntry(pkgName, mUserId); in createAppEntity()
166 R.string.application_info_label, pkgName, appEntry.info.uid, in createAppEntity()
/packages/apps/Launcher3/quickstep/recents_ui_overrides/src/com/android/launcher3/appprediction/
DDynamicItemCache.java120 for (String pkgName : pkgNames) { in handleWorkerMessage()
121 InstantAppItemInfo instantAppItemInfo = loadInstantApp(pkgName); in handleWorkerMessage()
187 private InstantAppItemInfo loadInstantApp(String pkgName) { in loadInstantApp() argument
191 ApplicationInfo ai = pm.getApplicationInfo(pkgName, 0); in loadInstantApp()
199 String url = retrieveDefaultUrl(pkgName, pm); in loadInstantApp()
201 Log.w(TAG, "no default-url available for pkg " + pkgName); in loadInstantApp()
208 InstantAppItemInfo info = new InstantAppItemInfo(intent, pkgName); in loadInstantApp()
218 public static String retrieveDefaultUrl(String pkgName, PackageManager pm) { in retrieveDefaultUrl() argument
220 .addCategory(Intent.CATEGORY_LAUNCHER).setPackage(pkgName); in retrieveDefaultUrl()
234 public InstantAppItemInfo getInstantApp(String pkgName) { in getInstantApp() argument
[all …]
/packages/apps/SettingsIntelligence/src/com/android/settings/intelligence/search/query/
DCursorToSearchResultConverter.java122 final String pkgName = cursor.getString(cursor.getColumnIndexOrThrow( in buildSingleSearchResultFromCursor() local
140 final Drawable icon = getIconForPackage(contextMap, pkgName, iconResStr); in buildSingleSearchResultFromCursor()
153 private Drawable getIconForPackage(Map<String, Context> contextMap, String pkgName, in getIconForPackage() argument
155 if (TextUtils.isEmpty(pkgName)) { in getIconForPackage()
162 Context packageContext = contextMap.get(pkgName); in getIconForPackage()
165 packageContext = mContext.createPackageContext(pkgName, 0); in getIconForPackage()
166 contextMap.put(pkgName, packageContext); in getIconForPackage()
168 Log.e(TAG, "Cannot create Context for package: " + pkgName); in getIconForPackage()
177 Log.w(TAG, "Cannot get icon, pkg/id :" + pkgName + "/" + iconId); in getIconForPackage()
/packages/apps/Settings/src/com/android/settings/notification/
DRecentNotifyingAppsPreferenceController.java245 final String pkgName = app.getPackage(); in displayRecentApps() local
254 pkgName)); in displayRecentApps()
259 pref.setKey(getKey(app.getUserId(), pkgName)); in displayRecentApps() local
267 args.putString(AppInfoBase.ARG_PACKAGE_NAME, pkgName); in displayRecentApps()
281 pkgName, appEntry.info.uid, !blocked); in displayRecentApps()
285 !mNotificationBackend.getNotificationsBanned(pkgName, appEntry.info.uid)); in displayRecentApps()
323 private boolean shouldIncludePkgInRecents(String pkgName, int userId) { in shouldIncludePkgInRecents() argument
325 .setPackage(pkgName); in shouldIncludePkgInRecents()
330 mApplicationsState.getEntry(pkgName, userId); in shouldIncludePkgInRecents()
332 Log.d(TAG, "Not a user visible or instant app, skipping " + pkgName); in shouldIncludePkgInRecents()
/packages/apps/Bluetooth/src/com/android/bluetooth/
DUtils.java404 public static boolean isLegacyForegroundApp(Context context, String pkgName) { in isLegacyForegroundApp() argument
405 return !isMApp(context, pkgName) && isForegroundApp(context, pkgName); in isLegacyForegroundApp()
408 private static boolean isMApp(Context context, String pkgName) { in isMApp() argument
410 return context.getPackageManager().getApplicationInfo(pkgName, 0).targetSdkVersion in isMApp()
418 public static boolean isQApp(Context context, String pkgName) { in isQApp() argument
420 return context.getPackageManager().getApplicationInfo(pkgName, 0).targetSdkVersion in isQApp()
432 private static boolean isForegroundApp(Context context, String pkgName) { in isForegroundApp() argument
435 return !tasks.isEmpty() && pkgName.equals(tasks.get(0).topActivity.getPackageName()); in isForegroundApp()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/fuelgauge/
DBatteryEntry.java324 for (String pkgName : packages) { in loadNameAndIcon()
326 … final PackageInfo pi = ipm.getPackageInfo(pkgName, 0 /* no flags */, userId); in loadNameAndIcon()
329 + pkgName + ", user " + userId); in loadNameAndIcon()
333 final CharSequence nm = pm.getText(pkgName, in loadNameAndIcon()
338 defaultPackageName = pkgName; in loadNameAndIcon()
346 + pkgName + ", user " + userId, e); in loadNameAndIcon()
/packages/apps/Settings/src/com/android/settings/fuelgauge/
DBatteryEntry.java324 for (String pkgName : packages) { in loadNameAndIcon()
326 … final PackageInfo pi = ipm.getPackageInfo(pkgName, 0 /* no flags */, userId); in loadNameAndIcon()
329 + pkgName + ", user " + userId); in loadNameAndIcon()
333 final CharSequence nm = pm.getText(pkgName, in loadNameAndIcon()
338 defaultPackageName = pkgName; in loadNameAndIcon()
346 + pkgName + ", user " + userId, e); in loadNameAndIcon()
/packages/apps/Settings/src/com/android/settings/applications/appinfo/
DAppButtonsPreferenceController.java449 String pkgName = mAppEntry.info.packageName; in updateUninstallButton() local
451 OverlayInfo overlayInfo = mOverlayManager.getOverlayInfo(pkgName, user); in updateUninstallButton()
535 void forceStopPackage(String pkgName) { in forceStopPackage() argument
540 pkgName, in forceStopPackage() local
544 Log.d(TAG, "Stopping package " + pkgName); in forceStopPackage()
545 am.forceStopPackage(pkgName); in forceStopPackage()
547 mState.invalidatePackage(pkgName, userId); in forceStopPackage()
548 ApplicationsState.AppEntry newEnt = mState.getEntry(pkgName, userId); in forceStopPackage()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/applications/appinfo/
DAppButtonsPreferenceController.java450 String pkgName = mAppEntry.info.packageName; in updateUninstallButton() local
452 OverlayInfo overlayInfo = mOverlayManager.getOverlayInfo(pkgName, user); in updateUninstallButton()
536 void forceStopPackage(String pkgName) { in forceStopPackage() argument
541 pkgName, in forceStopPackage() local
545 Log.d(TAG, "Stopping package " + pkgName); in forceStopPackage()
546 am.forceStopPackage(pkgName); in forceStopPackage()
548 mState.invalidatePackage(pkgName, userId); in forceStopPackage()
549 ApplicationsState.AppEntry newEnt = mState.getEntry(pkgName, userId); in forceStopPackage()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/applications/specialaccess/financialapps/
DFinancialAppsController.java85 final String pkgName = installedPackage.packageName; in updateList() local
95 pref.setKey(pkgName); in updateList()
103 pkgName) == AppOpsManager.MODE_ALLOWED); in updateList()
121 pkgName, in updateList()
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/services/
DTestNotificationService.java115 String pkgName = sbn.getPackageName(); in onNotificationPosted() local
116 if (mTargetPackageName.equals(pkgName)) { in onNotificationPosted()
129 String pkgName = sbn.getPackageName(); in onNotificationRemoved() local
130 if (!mTargetPackageName.equals(pkgName)) { in onNotificationRemoved()
/packages/apps/PermissionController/src/com/android/packageinstaller/permission/service/
DLocationAccessCheck.java565 String pkgName = pkg.packageName; in createNotificationForLocationUser() local
577 deleteIntent.putExtra(EXTRA_PACKAGE_NAME, pkgName); in createNotificationForLocationUser()
584 clickIntent.putExtra(EXTRA_PACKAGE_NAME, pkgName); in createNotificationForLocationUser()
615 notificationManager.notify(pkgName, LOCATION_ACCESS_CHECK_NOTIFICATION_ID, b.build()); in createNotificationForLocationUser()
617 if (DEBUG) Log.i(LOG_TAG, "Notified " + pkgName); in createNotificationForLocationUser()
620 pkg.applicationInfo.uid, pkgName, in createNotificationForLocationUser()
623 + " uid=" + pkg.applicationInfo.uid + " pkgName=" + pkgName); in createNotificationForLocationUser()
DPermissionControllerServiceImpl.java253 String pkgName = pkgNames[pkgNum]; in onRevokeRuntimePermissions() local
255 PackageInfo pkgInfo = getPkgInfo(pkgName); in onRevokeRuntimePermissions()
263 && !callerPackageName.equals(pm.getInstallerPackageName(pkgName))) { in onRevokeRuntimePermissions()
264 Log.i(LOG_TAG, "Ignoring " + pkgName + " as it is not installed by " in onRevokeRuntimePermissions()
285 actuallyRevokedPerms.put(pkgName, revokedPerms); in onRevokeRuntimePermissions()
/packages/apps/Settings/src/com/android/settings/
DUsageStatsActivity.java91 TextView pkgName; field in UsageStatsActivity.AppViewHolder
180 holder.pkgName = (TextView) convertView.findViewById(R.id.package_name); in getView()
194 holder.pkgName.setText(label); in getView()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/
DUsageStatsActivity.java91 TextView pkgName; field in UsageStatsActivity.AppViewHolder
180 holder.pkgName = (TextView) convertView.findViewById(R.id.package_name); in getView()
194 holder.pkgName.setText(label); in getView()
/packages/apps/Car/Settings/src/com/android/car/settings/applications/managedomainurls/
DApplicationLaunchSettingsFragment.java65 String pkgName = getArguments().getString(ARG_PACKAGE_NAME); in onAttach() local
66 mAppEntry = mState.getEntry(pkgName, mCarUserManagerHelper.getCurrentProcessUserId()); in onAttach()
/packages/services/Telephony/src/com/android/phone/
DNumberVerificationManager.java189 static void overrideAuthorizedPackage(String pkgName) { in overrideAuthorizedPackage() argument
190 sAuthorizedPackageOverride = pkgName; in overrideAuthorizedPackage()
DEmergencyAssistanceHelper.java130 private static boolean setDefaultEmergencyPackageAsync(Context context, String pkgName) { in setDefaultEmergencyPackageAsync() argument
134 RoleManager.ROLE_EMERGENCY, pkgName, 0, Process.myUserHandle(), in setDefaultEmergencyPackageAsync()
/packages/apps/Nfc/src/com/android/nfc/
DP2pLinkManager.java587 boolean beamDefaultDisabled(String pkgName) { in beamDefaultDisabled() argument
589 ApplicationInfo ai = mPackageManager.getApplicationInfo(pkgName, in beamDefaultDisabled()
600 NdefMessage createDefaultNdef(String pkgName) { in createDefaultNdef() argument
602 "http://play.google.com/store/apps/details?id=" + pkgName + "&feature=beam")); in createDefaultNdef()
603 NdefRecord appRecord = NdefRecord.createApplicationRecord(pkgName); in createDefaultNdef()

12