Home
last modified time | relevance | path

Searched refs:pkgName (Results 1 – 25 of 40) 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/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/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/apps/Launcher3/quickstep/recents_ui_overrides/src/com/android/launcher3/appprediction/
DDynamicItemCache.java121 for (String pkgName : pkgNames) { in handleWorkerMessage()
122 InstantAppItemInfo instantAppItemInfo = loadInstantApp(pkgName); in handleWorkerMessage()
188 private InstantAppItemInfo loadInstantApp(String pkgName) { in loadInstantApp() argument
192 ApplicationInfo ai = pm.getApplicationInfo(pkgName, 0); in loadInstantApp()
200 String url = retrieveDefaultUrl(pkgName, pm); in loadInstantApp()
202 Log.w(TAG, "no default-url available for pkg " + pkgName); in loadInstantApp()
209 InstantAppItemInfo info = new InstantAppItemInfo(intent, pkgName); in loadInstantApp()
219 public static String retrieveDefaultUrl(String pkgName, PackageManager pm) { in retrieveDefaultUrl() argument
221 .addCategory(Intent.CATEGORY_LAUNCHER).setPackage(pkgName); in retrieveDefaultUrl()
235 public InstantAppItemInfo getInstantApp(String pkgName) { in getInstantApp() argument
[all …]
/packages/apps/SettingsIntelligence/src/com/android/settings/intelligence/search/query/
DCursorToSearchResultConverter.java124 final String pkgName = cursor.getString(cursor.getColumnIndexOrThrow( in buildSingleSearchResultFromCursor() local
142 final Drawable icon = getIconForPackage(contextMap, pkgName, iconResStr); in buildSingleSearchResultFromCursor()
155 private Drawable getIconForPackage(Map<String, Context> contextMap, String pkgName, in getIconForPackage() argument
157 if (TextUtils.isEmpty(pkgName)) { in getIconForPackage()
164 Context packageContext = contextMap.get(pkgName); in getIconForPackage()
170 themedAppContext.createPackageContext(pkgName, 0), in getIconForPackage()
172 contextMap.put(pkgName, packageContext); in getIconForPackage()
174 Log.e(TAG, "Cannot create Context for package: " + pkgName); in getIconForPackage()
183 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()
284 pkgName, appEntry.info.uid, !blocked); in displayRecentApps()
288 !mNotificationBackend.getNotificationsBanned(pkgName, appEntry.info.uid)); in displayRecentApps()
326 private boolean shouldIncludePkgInRecents(String pkgName, int userId) { in shouldIncludePkgInRecents() argument
328 .setPackage(pkgName); in shouldIncludePkgInRecents()
333 mApplicationsState.getEntry(pkgName, userId); in shouldIncludePkgInRecents()
335 Log.d(TAG, "Not a user visible or instant app, skipping " + pkgName); in shouldIncludePkgInRecents()
/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/services/Telephony/src/com/android/phone/
DCarrierConfigLoader.java659 private boolean bindToConfigPackage(String pkgName, int phoneId, int eventId) { in bindToConfigPackage() argument
660 logdWithLocalLog("Binding to " + pkgName + " for phone " + phoneId); in bindToConfigPackage()
662 carrierService.setPackage(pkgName); in bindToConfigPackage()
663 mServiceConnection[phoneId] = new CarrierServiceConnection(phoneId, pkgName, eventId); in bindToConfigPackage()
1239 || TextUtils.isEmpty(connection.pkgName)) { in dumpCarrierServiceIfBound()
1242 final String servicePkgName = connection.pkgName; in dumpCarrierServiceIfBound()
1297 private boolean hasCarrierPrivileges(String pkgName, int phoneId) { in hasCarrierPrivileges() argument
1303 subIds[0]).checkCarrierPrivilegesForPackage(pkgName) in hasCarrierPrivileges()
1309 final String pkgName; field in CarrierConfigLoader.CarrierServiceConnection
1313 CarrierServiceConnection(int phoneId, String pkgName, int eventId) { in CarrierServiceConnection() argument
[all …]
/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/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/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/Launcher3/src/com/android/launcher3/qsb/
DQsbContainerView.java121 String pkgName = QsbContainerView.getSearchWidgetPackageName(context); in getSearchComponentName() local
122 if (pkgName != null) { in getSearchComponentName()
124 return new ComponentName(pkgName, pkgName); in getSearchComponentName()
/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.java252 String pkgName = pkgNames[pkgNum]; in onRevokeRuntimePermissions() local
254 PackageInfo pkgInfo = getPkgInfo(pkgName); in onRevokeRuntimePermissions()
262 && !callerPackageName.equals(pm.getInstallerPackageName(pkgName))) { in onRevokeRuntimePermissions()
263 Log.i(LOG_TAG, "Ignoring " + pkgName + " as it is not installed by " in onRevokeRuntimePermissions()
284 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/apps/Car/Settings/src/com/android/car/settings/common/
DCarSettingActivity.java125 String pkgName = intent.getStringExtra(Intent.EXTRA_CALLING_PACKAGE); in intentFromSettings() local
126 return TextUtils.equals(pkgName, getPackageName()); in intentFromSettings()
/packages/modules/NetworkStack/tests/hostlib/src/com/android/testutils/host/
DDeflakeHostTestBase.kt103 val pkgName = AaptParser.parse(apkFile)?.packageName in <lambda>() constant
108 val runOptions = DeviceTestRunOptions(pkgName) in <lambda>()

12