/packages/apps/Settings/src/com/android/settings/notification/ |
D | NotificationBackend.java | 42 row.pkg = app.packageName; in loadAppRow() 47 Log.e(TAG, "Error loading application label for " + row.pkg, t); in loadAppRow() 48 row.label = row.pkg; in loadAppRow() 51 row.banned = getNotificationsBanned(row.pkg, row.uid); in loadAppRow() 52 row.appImportance = getImportance(row.pkg, row.uid); in loadAppRow() 53 row.appBypassDnd = getBypassZenMode(row.pkg, row.uid); in loadAppRow() 54 row.appVisOverride = getVisibilityOverride(row.pkg, row.uid); in loadAppRow() 66 public boolean getNotificationsBanned(String pkg, int uid) { in getNotificationsBanned() argument 68 final boolean enabled = sINM.areNotificationsEnabledForPackage(pkg, uid); in getNotificationsBanned() 76 public boolean getBypassZenMode(String pkg, int uid) { in getBypassZenMode() argument [all …]
|
D | ZenAccessSettings.java | 121 final String pkg = app.packageName; in reloadList() local 127 pref.setChecked(hasAccess(pkg)); in reloadList() 128 if (autoApproved.contains(pkg)) { in reloadList() 138 .setPkgInfo(pkg, label) in reloadList() 142 .setPkgInfo(pkg, label) in reloadList() 168 private boolean hasAccess(String pkg) { in hasAccess() argument 169 return mNoMan.isNotificationPolicyAccessGrantedForPackage(pkg); in hasAccess() 172 private static void setAccess(final Context context, final String pkg, final boolean access) { in setAccess() argument 177 mgr.setNotificationPolicyAccessGranted(pkg, access); in setAccess() 182 private static void deleteRules(final Context context, final String pkg) { in deleteRules() argument [all …]
|
D | NotificationStation.java | 65 public String pkg; field in NotificationStation.HistoricalNotificationInfo 275 info.pkg = sbn.getPackageName(); in loadNotifications() 277 info.icon = loadIconDrawable(info.pkg, info.user, n.icon); in loadNotifications() 278 info.pkgicon = loadPackageIconDrawable(info.pkg, info.user); in loadNotifications() 279 info.pkgname = loadPackageName(info.pkg); in loadNotifications() 293 .append(info.pkg) in loadNotifications() 460 logd(" [%d] %s: %s", info.timestamp, info.pkg, info.title); in loadNotifications() 472 private Resources getResourcesForUserPackage(String pkg, int userId) { in getResourcesForUserPackage() argument 475 if (pkg != null) { in getResourcesForUserPackage() 480 r = mPm.getResourcesForApplicationAsUser(pkg, userId); in getResourcesForUserPackage() [all …]
|
/packages/apps/Settings/src/com/android/settings/fuelgauge/ |
D | PowerWhitelistBackend.java | 50 public boolean isSysWhitelisted(String pkg) { in isSysWhitelisted() argument 51 return mSysWhitelistedApps.contains(pkg); in isSysWhitelisted() 54 public boolean isWhitelisted(String pkg) { in isWhitelisted() argument 55 return mWhitelistedApps.contains(pkg); in isWhitelisted() 58 public void addApp(String pkg) { in addApp() argument 60 mDeviceIdleService.addPowerSaveWhitelistApp(pkg); in addApp() 61 mWhitelistedApps.add(pkg); in addApp() 67 public void removeApp(String pkg) { in removeApp() argument 69 mDeviceIdleService.removePowerSaveWhitelistApp(pkg); in removeApp() 70 mWhitelistedApps.remove(pkg); in removeApp()
|
/packages/apps/PackageInstaller/src/com/android/packageinstaller/wear/ |
D | WearPackageInstallerService.java | 244 PackageParser.Package pkg = PackageUtil.getPackageInfo(tempFile); in installPackage() local 245 if (pkg == null) { in installPackage() 250 if (!pkg.packageName.equals(packageName)) { in installPackage() 256 List<String> wearablePerms = pkg.requestedPermissions; in installPackage() 260 if (existingPkgInfo.versionCode == pkg.mVersionCode) { in installPackage() 262 Log.w(TAG, "Version number (" + pkg.mVersionCode + in installPackage() 267 Log.w(TAG, "Version number of new app (" + pkg.mVersionCode + in installPackage() 270 } else if (existingPkgInfo.versionCode > pkg.mVersionCode) { in installPackage() 271 Log.w(TAG, "Version number of new app (" + pkg.mVersionCode + in installPackage() 297 if (checkPerms && !checkPermissions(pkg, companionSdkVersion, companionDeviceVersion, in installPackage() [all …]
|
D | WearPackageUtil.java | 132 public static boolean hasLauncherActivity(PackageParser.Package pkg) { in hasLauncherActivity() argument 133 if (pkg == null || pkg.activities == null) { in hasLauncherActivity() 137 final int activityCount = pkg.activities.size(); in hasLauncherActivity() 139 if (pkg.activities.get(i).intents != null) { in hasLauncherActivity() 141 pkg.activities.get(i).intents; in hasLauncherActivity()
|
/packages/apps/Settings/src/com/android/settings/applications/ |
D | AppStateSmsPremBridge.java | 52 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()
|
D | ProcessStatsDetail.java | 326 String pkg = entry.mServices.keyAt(ip); in fillServicesSection() local 333 psvc = pkgServices.get(pkg); in fillServicesSection() 336 pkgServices.put(pkg, psvc); in fillServicesSection() 381 private void stopService(String pkg, String name) { in stopService() argument 383 ApplicationInfo appInfo = getActivity().getPackageManager().getApplicationInfo(pkg, 0); in stopService() 385 showStopServiceDialog(pkg, name); in stopService() 389 Log.e(TAG, "Can't find app " + pkg, e); in stopService() 392 doStopService(pkg, name); in stopService() 395 private void showStopServiceDialog(final String pkg, final String name) { in showStopServiceDialog() argument 401 doStopService(pkg, name); in showStopServiceDialog() [all …]
|
D | AppStateBaseBridge.java | 64 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()
|
D | AppStateUsageBridge.java | 46 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()
|
D | AppStateWriteSettingsBridge.java | 47 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()
|
D | AppStateOverlayBridge.java | 45 protected void updateExtraInfo(AppEntry app, String pkg, int uid) { in updateExtraInfo() argument 46 app.extraInfo = getOverlayInfo(pkg, uid); in updateExtraInfo() 49 public OverlayState getOverlayInfo(String pkg, int uid) { in getOverlayInfo() argument 50 PermissionState permissionState = super.getPermissionInfo(pkg, uid); in getOverlayInfo()
|
D | DefaultPhonePreference.java | 85 public static boolean hasPhonePreference(String pkg, Context context) { in hasPhonePreference() argument 88 return dialerPackages.contains(pkg); in hasPhonePreference() 91 public static boolean isPhoneDefault(String pkg, Context context) { in isPhoneDefault() argument 94 return def != null && def.equals(pkg); in isPhoneDefault()
|
D | DefaultSmsPreference.java | 81 public static boolean hasSmsPreference(String pkg, Context context) { in hasSmsPreference() argument 85 if (data.mPackageName.equals(pkg)) { in hasSmsPreference() 92 public static boolean isSmsDefault(String pkg, Context context) { in isSmsDefault() argument 94 return appName != null && appName.getPackageName().equals(pkg); in isSmsDefault()
|
D | ProcessStatsUi.java | 159 ProcStatsPackageEntry pkg = pkgEntries.get(i); in refreshUi() local 160 pkg.updateMetrics(); in refreshUi() 173 ProcStatsPackageEntry pkg = pkgEntries.get(i); in refreshUi() local 175 pkg.retrieveUiData(context, mPm); in refreshUi() 176 pref.init(pkg, mPm, maxMemory, memInfo.weightToRam, in refreshUi()
|
D | WriteSettingsDetails.java | 179 public static CharSequence getSummary(Context context, String pkg) { in getSummary() argument 184 ApplicationInfo appInfo = packageManager.getApplicationInfo(pkg, 0); in getSummary() 190 Log.w(LOG_TAG, "Package " + pkg + " not found", e); in getSummary() 204 if (pkg.equals(packageOp.getPackageName())) { in getSummary() 214 int mode = appOpsManager.noteOpNoThrow(AppOpsManager.OP_WRITE_SETTINGS, uid, pkg); in getSummary()
|
D | AppStateAppOpsBridge.java | 79 protected abstract void updateExtraInfo(AppEntry app, String pkg, int uid); in updateExtraInfo() argument 90 public PermissionState getPermissionInfo(String pkg, int uid) { in getPermissionInfo() argument 91 PermissionState permissionState = new PermissionState(pkg, new UserHandle(UserHandle in getPermissionInfo() 94 permissionState.packageInfo = mIPackageManager.getPackageInfo(pkg, in getPermissionInfo() 112 List<PackageOps> ops = mAppOpsManager.getOpsForPackage(uid, pkg, mAppOpsOpCodes); in getPermissionInfo() 117 Log.w(TAG, "PackageManager is dead. Can't get package info " + pkg, e); in getPermissionInfo()
|
D | DefaultHomePreference.java | 118 public static boolean hasHomePreference(String pkg, Context context) { in hasHomePreference() argument 123 if (homeActivities.get(i).activityInfo.packageName.equals(pkg)) { in hasHomePreference() 130 public static boolean isHomeDefault(String pkg, Context context) { in isHomeDefault() argument 135 return def != null && def.getPackageName().equals(pkg); in isHomeDefault()
|
/packages/apps/Nfc/src/com/android/nfc/ |
D | NfceeAccessControl.java | 77 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/TvSettings/Settings/src/com/android/tv/settings/device/apps/ |
D | EnableDisablePreference.java | 120 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/PackageInstaller/src/com/android/packageinstaller/ |
D | RemoveReceiver.java | 31 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/experimental/NotificationLog/src/com/android/notificationlog/ |
D | NotificationLogActivity.java | 92 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/providers/ContactsProvider/src/com/android/providers/contacts/util/ |
D | ContactsPermissions.java | 65 public static boolean hasPackagePermission(Context context, String permission, String pkg) { in hasPackagePermission() argument 67 if (ALLOW_SELF_CALL && context.getPackageName().equals(pkg)) { in hasPackagePermission() 70 ok = context.getPackageManager().checkPermission(permission, pkg) in hasPackagePermission() 76 + " pkg=" + pkg in hasPackagePermission()
|
/packages/apps/PackageInstaller/src/com/android/packageinstaller/permission/model/ |
D | PermissionStatusReceiver.java | 149 String pkg = intent.getStringExtra(Intent.EXTRA_PACKAGE_NAME); in onReceive() local 150 succeeded = getPermissionsCount(context, pkg, counts, grantedGroups); in onReceive() 183 public boolean getPermissionsCount(Context context, String pkg, int[] counts, in getPermissionsCount() argument 187 context.getPackageManager().getPackageInfo(pkg, PackageManager.GET_PERMISSIONS); in getPermissionsCount() 195 if (Utils.shouldShowPermission(group, pkg)) { in getPermissionsCount()
|
/packages/apps/Launcher3/src/com/android/launcher3/ |
D | WidgetPreviewLoader.java | 190 final String pkg; in removeObsoletePreviews() local 193 pkg = ((ResolveInfo) obj).activityInfo.packageName; in removeObsoletePreviews() 197 pkg = info.provider.getPackageName(); in removeObsoletePreviews() 206 packages.add(pkg); in removeObsoletePreviews() 218 String pkg = c.getString(1); in removeObsoletePreviews() local 223 if (packages != null && packages.contains(pkg)) { in removeObsoletePreviews() 224 long[] versions = getPackageVersion(pkg); in removeObsoletePreviews() 237 packages.add(pkg); in removeObsoletePreviews() 243 for (String pkg : packagesToDelete.valueAt(i)) { in removeObsoletePreviews() 244 removePackage(pkg, user, userId); in removeObsoletePreviews()
|