Home
last modified time | relevance | path

Searched refs:pkg (Results 1 – 25 of 94) sorted by relevance

1234

/packages/apps/Settings/src/com/android/settings/notification/
DNotificationBackend.java44 row.pkg = app.packageName; in loadAppRow()
49 Log.e(TAG, "Error loading application label for " + row.pkg, t); in loadAppRow()
50 row.label = row.pkg; in loadAppRow()
53 row.banned = getNotificationsBanned(row.pkg, row.uid); in loadAppRow()
54 row.showBadge = canShowBadge(row.pkg, row.uid); in loadAppRow()
73 String pkg = nonBlockablePkgs[i]; in markAppRowWithBlockables() local
74 if (pkg == null) { in markAppRowWithBlockables()
76 } else if (pkg.contains(":")) { in markAppRowWithBlockables()
78 if (packageName.equals(pkg.split(":", 2)[0])) { in markAppRowWithBlockables()
79 row.lockedChannelId = pkg.split(":", 2 )[1]; in markAppRowWithBlockables()
[all …]
DZenAccessSettings.java136 final String pkg = app.packageName; in reloadList() local
143 pref.setChecked(hasAccess(pkg)); in reloadList()
144 if (autoApproved.contains(pkg)) { in reloadList()
154 .setPkgInfo(pkg, label) in reloadList()
158 .setPkgInfo(pkg, label) in reloadList()
189 private boolean hasAccess(String pkg) { in hasAccess() argument
190 return mNoMan.isNotificationPolicyAccessGrantedForPackage(pkg); in hasAccess()
193 private static void setAccess(final Context context, final String pkg, final boolean access) { in setAccess() argument
194 logSpecialPermissionChange(access, pkg, context); in setAccess()
199 mgr.setNotificationPolicyAccessGranted(pkg, access); in setAccess()
[all …]
DNotificationStation.java77 public String pkg; field in NotificationStation.HistoricalNotificationInfo
285 info.pkg = sbn.getPackageName(); in loadNotifications()
287 info.icon = loadIconDrawable(info.pkg, info.user, n.icon); in loadNotifications()
288 info.pkgicon = loadPackageIconDrawable(info.pkg, info.user); in loadNotifications()
289 info.pkgname = loadPackageName(info.pkg); in loadNotifications()
303 logd(" [%d] %s: %s", info.timestamp, info.pkg, info.title); in loadNotifications()
324 .append(info.pkg) in generateExtraText()
510 private Resources getResourcesForUserPackage(String pkg, int userId) { in getResourcesForUserPackage() argument
513 if (pkg != null) { in getResourcesForUserPackage()
518 r = mPm.getResourcesForApplicationAsUser(pkg, userId); in getResourcesForUserPackage()
[all …]
/packages/apps/PackageInstaller/src/com/android/packageinstaller/wear/
DWearPackageInstallerService.java247 PackageParser.Package pkg = PackageUtil.getPackageInfo(this, tempFile); in installPackage() local
248 if (pkg == null) { in installPackage()
253 if (!pkg.packageName.equals(packageName)) { in installPackage()
259 pkg.applicationInfo.sourceDir = tempFile.getPath(); in installPackage()
260 pkg.applicationInfo.publicSourceDir = tempFile.getPath(); in installPackage()
262 getString(R.string.installing_app, pkg.applicationInfo.loadLabel(pm))); in installPackage()
264 List<String> wearablePerms = pkg.requestedPermissions; in installPackage()
268 if (existingPkgInfo.versionCode == pkg.mVersionCode) { in installPackage()
270 Log.w(TAG, "Version number (" + pkg.mVersionCode + in installPackage()
275 Log.w(TAG, "Version number of new app (" + pkg.mVersionCode + in installPackage()
[all …]
/packages/apps/PackageInstaller/tests/src/com/android/packageinstaller/shadows/
DShadowMetricsLogger.java53 public static void action(Context context, int category, String pkg) { in action() argument
54 sLogs.add(new Log(context, category, pkg)); in action()
60 public final String pkg; field in ShadowMetricsLogger.Log
62 public Log(Context context, int category, String pkg) { in Log() argument
65 this.pkg = pkg; in Log()
76 && Objects.equal(otherLog.pkg, pkg); in equals()
82 return ((context == null) ? 0 : context.hashCode()) + category + ((pkg == null) ? 0 in hashCode()
83 : pkg.hashCode()); in hashCode()
/packages/apps/Settings/src/com/android/settings/fuelgauge/
DPowerWhitelistBackend.java52 public boolean isSysWhitelisted(String pkg) { in isSysWhitelisted() argument
53 return mSysWhitelistedApps.contains(pkg); in isSysWhitelisted()
56 public boolean isWhitelisted(String pkg) { in isWhitelisted() argument
57 return mWhitelistedApps.contains(pkg); in isWhitelisted()
60 public void addApp(String pkg) { in addApp() argument
62 mDeviceIdleService.addPowerSaveWhitelistApp(pkg); in addApp()
63 mWhitelistedApps.add(pkg); in addApp()
69 public void removeApp(String pkg) { in removeApp() argument
71 mDeviceIdleService.removePowerSaveWhitelistApp(pkg); in removeApp()
72 mWhitelistedApps.remove(pkg); in removeApp()
/packages/apps/Settings/src/com/android/settings/applications/
DProcessStatsDetail.java345 String pkg = entry.mServices.keyAt(ip); in fillServicesSection() local
352 psvc = pkgServices.get(pkg); in fillServicesSection()
355 pkgServices.put(pkg, psvc); in fillServicesSection()
400 private void stopService(String pkg, String name) { in stopService() argument
402 ApplicationInfo appInfo = getActivity().getPackageManager().getApplicationInfo(pkg, 0); in stopService()
404 showStopServiceDialog(pkg, name); in stopService()
408 Log.e(TAG, "Can't find app " + pkg, e); in stopService()
411 doStopService(pkg, name); in stopService()
414 private void showStopServiceDialog(final String pkg, final String name) { in showStopServiceDialog() argument
420 doStopService(pkg, name); in showStopServiceDialog()
[all …]
DAppStateSmsPremBridge.java52 protected void updateExtraInfo(AppEntry app, String pkg, int uid) { in updateExtraInfo() argument
53 app.extraInfo = getState(pkg); in updateExtraInfo()
56 public SmsState getState(String pkg) { in getState() argument
58 state.smsState = getSmsState(pkg); in getState()
62 private int getSmsState(String pkg) { in getSmsState() argument
64 return mSmsManager.getPremiumSmsPermission(pkg); in getSmsState()
70 public void setSmsState(String pkg, int state) { in setSmsState() argument
72 mSmsManager.setPremiumSmsPermission(pkg, state); in setSmsState()
DAppStateBaseBridge.java64 public void forceUpdate(String pkg, int uid) { in forceUpdate() argument
65 mHandler.obtainMessage(BackgroundHandler.MSG_FORCE_LOAD_PKG, uid, 0, pkg).sendToTarget(); in forceUpdate()
109 protected abstract void updateExtraInfo(AppEntry app, String pkg, int uid); in updateExtraInfo() argument
142 String pkg = (String) msg.obj; in handleMessage() local
146 if (app.info.uid == uid && pkg.equals(app.info.packageName)) { in handleMessage()
147 updateExtraInfo(app, pkg, uid); in handleMessage()
DAppStateAppOpsBridge.java86 protected abstract void updateExtraInfo(AppEntry app, String pkg, int uid); in updateExtraInfo() argument
97 public PermissionState getPermissionInfo(String pkg, int uid) { in getPermissionInfo() argument
98 PermissionState permissionState = new PermissionState(pkg, new UserHandle(UserHandle in getPermissionInfo()
101 permissionState.packageInfo = mIPackageManager.getPackageInfo(pkg, in getPermissionInfo()
122 List<PackageOps> ops = mAppOpsManager.getOpsForPackage(uid, pkg, mAppOpsOpCodes); in getPermissionInfo()
127 Log.w(TAG, "PackageManager is dead. Can't get package info " + pkg, e); in getPermissionInfo()
DAppStateWriteSettingsBridge.java47 protected void updateExtraInfo(AppEntry app, String pkg, int uid) { in updateExtraInfo() argument
48 app.extraInfo = getWriteSettingsInfo(pkg, uid); in updateExtraInfo()
51 public WriteSettingsState getWriteSettingsInfo(String pkg, int uid) { in getWriteSettingsInfo() argument
52 PermissionState permissionState = super.getPermissionInfo(pkg, uid); in getWriteSettingsInfo()
DAppStateUsageBridge.java46 protected void updateExtraInfo(AppEntry app, String pkg, int uid) { in updateExtraInfo() argument
47 app.extraInfo = getUsageInfo(pkg, uid); in updateExtraInfo()
50 public UsageState getUsageInfo(String pkg, int uid) { in getUsageInfo() argument
51 PermissionState permissionState = super.getPermissionInfo(pkg, uid); in getUsageInfo()
DProcessStatsUi.java164 ProcStatsPackageEntry pkg = pkgEntries.get(i); in refreshUi() local
165 pkg.updateMetrics(); in refreshUi()
178 ProcStatsPackageEntry pkg = pkgEntries.get(i); in refreshUi() local
180 pkg.retrieveUiData(context, mPm); in refreshUi()
181 pref.init(pkg, mPm, maxMemory, memInfo.weightToRam, in refreshUi()
/packages/apps/Nfc/src/com/android/nfc/
DNfceeAccessControl.java77 public boolean check(int uid, String pkg) { in check() argument
90 if (uidPkg.equals(pkg)) { in check()
92 if (checkPackageNfceeAccess(pkg)) { in check()
130 boolean checkPackageNfceeAccess(String pkg) { in checkPackageNfceeAccess() argument
133 PackageInfo info = pm.getPackageInfo(pkg, PackageManager.GET_SIGNATURES); in checkPackageNfceeAccess()
148 if (DBG) Log.d(TAG, "Granted NFCEE access to " + pkg + " (wildcard)"); in checkPackageNfceeAccess()
152 if (pkg.equals(p)) { in checkPackageNfceeAccess()
154 if (DBG) Log.d(TAG, "Granted access to " + pkg + " (explicit)"); in checkPackageNfceeAccess()
161 Log.w(TAG, "denied NFCEE access for " + pkg + " with signature:"); in checkPackageNfceeAccess()
/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/
DNotificationBackendTest.java49 appRow.pkg = packageName; in testMarkAppRow_unblockablePackage()
70 channelBlockApp.pkg = channelBlockName; in testMarkAppRow_unblockableChannelOrPkg()
78 pkgBlock.pkg = pkgBlockName; in testMarkAppRow_unblockableChannelOrPkg()
85 otherAppRow.pkg ="foo.bar.nothingBlocked"; in testMarkAppRow_unblockableChannelOrPkg()
96 appRow.pkg = packageName; in testMarkAppRow_unblockableChannelAndPkg()
112 appRow.pkg = packageName; in testMarkAppRow_channelNameWithColons()
125 appRow.pkg = packageName; in testMarkAppRow_blocklistWithNullEntries()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/device/apps/
DEnableDisablePreference.java120 private static boolean isSystemPackage(PackageManager pm, PackageInfo pkg) { in isSystemPackage() argument
129 return sSystemSignature != null && sSystemSignature.equals(getFirstSignature(pkg)); in isSystemPackage()
132 private static Signature getFirstSignature(PackageInfo pkg) { in getFirstSignature() argument
133 if (pkg != null && pkg.signatures != null && pkg.signatures.length > 0) { in getFirstSignature()
134 return pkg.signatures[0]; in getFirstSignature()
/packages/apps/StorageManager/src/com/android/storagemanager/deletionhelper/
DAppStateBaseBridge.java64 public void forceUpdate(String pkg, int uid) { in forceUpdate() argument
65 mHandler.obtainMessage(BackgroundHandler.MSG_FORCE_LOAD_PKG, uid, 0, pkg).sendToTarget(); in forceUpdate()
109 protected abstract void updateExtraInfo(AppEntry app, String pkg, int uid); in updateExtraInfo() argument
142 String pkg = (String) msg.obj; in handleMessage() local
146 if (app.info.uid == uid && pkg.equals(app.info.packageName)) { in handleMessage()
147 updateExtraInfo(app, pkg, uid); in handleMessage()
/packages/apps/Launcher3/src/com/android/launcher3/model/
DSdCardAvailableReceiver.java64 for (String pkg : new HashSet<>(entry.getValue())) { in onReceive()
65 if (!launcherApps.isPackageEnabledForProfile(pkg, user)) { in onReceive()
66 if (pmHelper.isAppOnSdcard(pkg, user)) { in onReceive()
67 packagesUnavailable.add(pkg); in onReceive()
69 packagesRemoved.add(pkg); in onReceive()
/packages/experimental/NotificationLog/src/com/android/notificationlog/
DNotificationLogActivity.java92 String pkg = (String) data[0]; in bindView() local
100 appInfo = mPM.getApplicationInfo(pkg, 0); in bindView()
101 pkg = mPM.getApplicationLabel(appInfo) + " (" + pkg + ")"; in bindView()
105 title.setText(pkg); in bindView()
/packages/apps/PackageInstaller/src/com/android/packageinstaller/
DRemoveReceiver.java31 String pkg = uri != null ? uri.getSchemeSpecificPart() : null; in onReceive() local
32 if (pkg != null) { in onReceive()
36 if (prefs.getBoolean(pkg, false)) { in onReceive()
37 prefs.edit().remove(pkg).apply(); in onReceive()
/packages/apps/Settings/src/com/android/settings/applications/defaultapps/
DDefaultSmsPreferenceController.java55 public static boolean hasSmsPreference(String pkg, Context context) { in hasSmsPreference() argument
59 if (data.mPackageName.equals(pkg)) { in hasSmsPreference()
66 public static boolean isSmsDefault(String pkg, Context context) { in isSmsDefault() argument
68 return appName != null && appName.getPackageName().equals(pkg); in isSmsDefault()
DDefaultEmergencyPreferenceController.java61 public static boolean hasEmergencyPreference(String pkg, Context context) { in hasEmergencyPreference() argument
63 i.setPackage(pkg); in hasEmergencyPreference()
69 public static boolean isEmergencyDefault(String pkg, Context context) { in isEmergencyDefault() argument
72 return defaultPackage != null && defaultPackage.equals(pkg); in isEmergencyDefault()
DDefaultPhonePreferenceController.java73 public static boolean hasPhonePreference(String pkg, Context context) { in hasPhonePreference() argument
76 return dialerPackages.contains(pkg); in hasPhonePreference()
79 public static boolean isPhoneDefault(String pkg, Context context) { in isPhoneDefault() argument
82 return def != null && def.equals(pkg); in isPhoneDefault()
/packages/apps/Settings/src/com/android/settings/core/instrumentation/
DSettingSuggestionsLogWriter.java57 public void action(Context context, int category, String pkg, in action() argument
64 mEventStore.writeEvent(pkg, EventStore.EVENT_SHOWN); in action()
67 mEventStore.writeEvent(pkg, EventStore.EVENT_DISMISSED); in action()
70 mEventStore.writeEvent(pkg, EventStore.EVENT_CLICKED); in action()
/packages/apps/Launcher3/src/com/android/launcher3/compat/
DPackageInstallerCompatVL.java160 String pkg = sessionInfo.getInstallerPackageName(); in verify() local
162 if (!mSessionVerifiedMap.containsKey(pkg)) { in verify()
164 boolean hasSystemFlag = launcherApps.getApplicationInfo(pkg, in verify()
166 mSessionVerifiedMap.put(pkg, DEBUG || hasSystemFlag); in verify()
169 return mSessionVerifiedMap.get(pkg) ? sessionInfo : null; in verify()

1234