/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/notification/ |
D | NotificationBackend.java | 63 row.pkg = app.packageName; in loadAppRow() 68 Log.e(TAG, "Error loading application label for " + row.pkg, t); in loadAppRow() 69 row.label = row.pkg; in loadAppRow() 72 row.banned = getNotificationsBanned(row.pkg, row.uid); in loadAppRow() 73 row.showBadge = canShowBadge(row.pkg, row.uid); in loadAppRow() 74 row.allowBubbles = canBubble(row.pkg, row.uid); in loadAppRow() 76 row.blockedChannelCount = getBlockedChannelCount(row.pkg, row.uid); in loadAppRow() 77 row.channelCount = getChannelCount(row.pkg, row.uid); in loadAppRow() 106 String pkg = nonBlockablePkgs[i]; in markAppRowWithBlockables() local 107 if (pkg == null) { in markAppRowWithBlockables() [all …]
|
D | NotificationStation.java | 80 public String pkg; field in NotificationStation.HistoricalNotificationInfo 288 info.pkg = sbn.getPackageName(); in loadNotifications() 290 info.icon = loadIconDrawable(info.pkg, info.user, n.icon); in loadNotifications() 291 info.pkgicon = loadPackageIconDrawable(info.pkg, info.user); in loadNotifications() 292 info.pkgname = loadPackageName(info.pkg); in loadNotifications() 306 logd(" [%d] %s: %s", info.timestamp, info.pkg, info.title); in loadNotifications() 327 .append(info.pkg) in generateExtraText() 538 private Resources getResourcesForUserPackage(String pkg, int userId) { in getResourcesForUserPackage() argument 541 if (pkg != null) { in getResourcesForUserPackage() 546 r = mPm.getResourcesForApplicationAsUser(pkg, userId); in getResourcesForUserPackage() [all …]
|
D | BubblePreferenceController.java | 110 .setPkgInfo(mAppRow.pkg, mAppRow.uid) in onPreferenceChange() 115 mBackend.setAllowBubbles(mAppRow.pkg, mAppRow.uid, value); in onPreferenceChange() 123 public static void revertBubblesApproval(Context mContext, String pkg, int uid) { in revertBubblesApproval() argument 125 backend.setAllowBubbles(pkg, uid, false); in revertBubblesApproval() 133 public static void applyBubblesApproval(Context mContext, String pkg, int uid) { in applyBubblesApproval() argument 135 backend.setAllowBubbles(pkg, uid, true); in applyBubblesApproval()
|
/packages/apps/Settings/src/com/android/settings/notification/ |
D | NotificationBackend.java | 65 row.pkg = app.packageName; in loadAppRow() 70 Log.e(TAG, "Error loading application label for " + row.pkg, t); in loadAppRow() 71 row.label = row.pkg; in loadAppRow() 74 row.banned = getNotificationsBanned(row.pkg, row.uid); in loadAppRow() 75 row.showBadge = canShowBadge(row.pkg, row.uid); in loadAppRow() 76 row.allowBubbles = canBubble(row.pkg, row.uid); in loadAppRow() 78 row.blockedChannelCount = getBlockedChannelCount(row.pkg, row.uid); in loadAppRow() 79 row.channelCount = getChannelCount(row.pkg, row.uid); in loadAppRow() 115 String pkg = nonBlockablePkgs[i]; in markAppRowWithBlockables() local 116 if (pkg == null) { in markAppRowWithBlockables() [all …]
|
D | NotificationStation.java | 80 public String pkg; field in NotificationStation.HistoricalNotificationInfo 288 info.pkg = sbn.getPackageName(); in loadNotifications() 290 info.icon = loadIconDrawable(info.pkg, info.user, n.icon); in loadNotifications() 291 info.pkgicon = loadPackageIconDrawable(info.pkg, info.user); in loadNotifications() 292 info.pkgname = loadPackageName(info.pkg); in loadNotifications() 306 logd(" [%d] %s: %s", info.timestamp, info.pkg, info.title); in loadNotifications() 327 .append(info.pkg) in generateExtraText() 538 private Resources getResourcesForUserPackage(String pkg, int userId) { in getResourcesForUserPackage() argument 541 if (pkg != null) { in getResourcesForUserPackage() 546 r = mPm.getResourcesForApplicationAsUser(pkg, userId); in getResourcesForUserPackage() [all …]
|
D | NotificationSettingsBase.java | 202 mShowLegacyChannelConfig = mBackend.onlyHasDefaultChannel(mAppRow.pkg, mAppRow.uid) in loadChannelGroup() 208 mAppRow.pkg, mAppRow.uid, NotificationChannel.DEFAULT_CHANNEL_ID); in loadChannelGroup() 226 .setPackage(mAppRow.pkg); in collectConfigActivities() 259 private PackageInfo findPackageInfo(String pkg, int uid) { in findPackageInfo() argument 260 if (pkg == null || uid < 0) { in findPackageInfo() 264 if (packages != null && pkg != null) { in findPackageInfo() 268 if (pkg.equals(p)) { in findPackageInfo() 270 return mPm.getPackageInfo(pkg, PackageManager.GET_SIGNATURES); in findPackageInfo() 272 Log.w(TAG, "Failed to load package " + pkg, e); in findPackageInfo()
|
D | BubblePreferenceController.java | 104 .setPkgInfo(mAppRow.pkg, mAppRow.uid) in onPreferenceChange() 109 mBackend.setAllowBubbles(mAppRow.pkg, mAppRow.uid, value); in onPreferenceChange() 122 public static void revertBubblesApproval(Context mContext, String pkg, int uid) { in revertBubblesApproval() argument 124 backend.setAllowBubbles(pkg, uid, false); in revertBubblesApproval() 132 public static void applyBubblesApproval(Context mContext, String pkg, int uid) { in applyBubblesApproval() argument 134 backend.setAllowBubbles(pkg, uid, true); in applyBubblesApproval()
|
/packages/apps/PermissionController/src/com/android/packageinstaller/permission/service/ |
D | LocationAccessCheck.java | 225 String pkg = lineComponents[0]; in loadAlreadyNotifiedPackagesLocked() local 230 packages.add(new UserPackage(mContext, pkg, user)); in loadAlreadyNotifiedPackagesLocked() 265 writer.append(userPkg.pkg); in safeAlreadyNotifiedPackagesLocked() 282 private void markAsNotified(@NonNull String pkg, @NonNull UserHandle user) { in markAsNotified() argument 285 alreadyNotifiedPackages.add(new UserPackage(mContext, pkg, user)); in markAsNotified() 394 UserPackage pkg = packages.get(i); in addLocationNotificationIfNeeded() local 397 LocationManager.class, pkg.user); in addLocationNotificationIfNeeded() 398 if (locationManager.isExtraLocationControllerPackageEnabled() && pkg.pkg.equals( in addLocationNotificationIfNeeded() 400 packageToNotifyFor = pkg; in addLocationNotificationIfNeeded() 442 String pkg = packageOps.getPackageName(); in getLocationUsersWithNoNotificationYetLocked() local [all …]
|
/packages/apps/SecureElement/src/com/android/se/security/gpac/ |
D | PKG_REF_DO.java | 37 public PKG_REF_DO(byte[] pkg) { in PKG_REF_DO() argument 38 super(pkg, TAG, 0, (pkg == null ? 0 : pkg.length)); in PKG_REF_DO() 39 if (pkg != null) { in PKG_REF_DO() 40 mPackageName = new String(pkg); in PKG_REF_DO() 87 byte[] pkg = new byte[getValueLength()]; in interpret() 88 System.arraycopy(data, index, pkg, 0, getValueLength()); in interpret() 89 mPackageName = new String(pkg); in interpret() 100 byte[] pkg = mPackageName.getBytes(); in build() 102 if (pkg.length > 128) { in build() 109 stream.write(pkg.length); in build() [all …]
|
/packages/apps/Settings/src/com/android/settings/applications/ |
D | AppStateSmsPremBridge.java | 53 protected void updateExtraInfo(AppEntry app, String pkg, int uid) { in updateExtraInfo() argument 54 app.extraInfo = getState(pkg); in updateExtraInfo() 57 public SmsState getState(String pkg) { in getState() argument 59 state.smsState = getSmsState(pkg); in getState() 63 private int getSmsState(String pkg) { in getSmsState() argument 65 return mSmsManager.getPremiumSmsPermission(pkg); in getSmsState() 71 public void setSmsState(String pkg, int state) { in setSmsState() argument 73 mSmsManager.setPremiumSmsPermission(pkg, state); in setSmsState()
|
D | ProcessStatsDetail.java | 346 String pkg = entry.mServices.keyAt(ip); in fillServicesSection() local 353 psvc = pkgServices.get(pkg); in fillServicesSection() 356 pkgServices.put(pkg, psvc); in fillServicesSection() 401 private void stopService(String pkg, String name) { in stopService() argument 403 ApplicationInfo appInfo = getActivity().getPackageManager().getApplicationInfo(pkg, 0); in stopService() 405 showStopServiceDialog(pkg, name); in stopService() 409 Log.e(TAG, "Can't find app " + pkg, e); in stopService() 412 doStopService(pkg, name); in stopService() 415 private void showStopServiceDialog(final String pkg, final String name) { in showStopServiceDialog() argument 421 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() 110 protected abstract void updateExtraInfo(AppEntry app, String pkg, int uid); in updateExtraInfo() argument 147 String pkg = (String) msg.obj; in handleMessage() local 151 if (app.info.uid == uid && pkg.equals(app.info.packageName)) { in handleMessage() 152 updateExtraInfo(app, pkg, uid); in handleMessage()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/applications/ |
D | AppStateSmsPremBridge.java | 53 protected void updateExtraInfo(AppEntry app, String pkg, int uid) { in updateExtraInfo() argument 54 app.extraInfo = getState(pkg); in updateExtraInfo() 57 public SmsState getState(String pkg) { in getState() argument 59 state.smsState = getSmsState(pkg); in getState() 63 private int getSmsState(String pkg) { in getSmsState() argument 65 return mSmsManager.getPremiumSmsPermission(pkg); in getSmsState() 71 public void setSmsState(String pkg, int state) { in setSmsState() argument 73 mSmsManager.setPremiumSmsPermission(pkg, state); in setSmsState()
|
D | ProcessStatsDetail.java | 346 String pkg = entry.mServices.keyAt(ip); in fillServicesSection() local 353 psvc = pkgServices.get(pkg); in fillServicesSection() 356 pkgServices.put(pkg, psvc); in fillServicesSection() 401 private void stopService(String pkg, String name) { in stopService() argument 403 ApplicationInfo appInfo = getActivity().getPackageManager().getApplicationInfo(pkg, 0); in stopService() 405 showStopServiceDialog(pkg, name); in stopService() 409 Log.e(TAG, "Can't find app " + pkg, e); in stopService() 412 doStopService(pkg, name); in stopService() 415 private void showStopServiceDialog(final String pkg, final String name) { in showStopServiceDialog() argument 421 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() 110 protected abstract void updateExtraInfo(AppEntry app, String pkg, int uid); in updateExtraInfo() argument 147 String pkg = (String) msg.obj; in handleMessage() local 151 if (app.info.uid == uid && pkg.equals(app.info.packageName)) { in handleMessage() 152 updateExtraInfo(app, pkg, uid); in handleMessage()
|
/packages/apps/PermissionController/src/com/android/packageinstaller/permission/data/ |
D | PerUserUidToSensitivityLiveData.java | 122 PackageInfo pkg = pkgs.get(pkgNum); in loadValueInBackground() local 123 boolean pkgHasLauncherIcon = pkgsWithLauncherIcon.contains(pkg.packageName); in loadValueInBackground() 124 boolean pkgIsSystemApp = (pkg.applicationInfo.flags & ApplicationInfo.FLAG_SYSTEM) != 0; in loadValueInBackground() 127 ArrayMap<String, Integer> uidPermissions = uidsPermissions.get(pkg.applicationInfo.uid); in loadValueInBackground() 130 uidsPermissions.put(pkg.applicationInfo.uid, uidPermissions); in loadValueInBackground() 134 if (!ArrayUtils.contains(pkg.requestedPermissions, perm)) { in loadValueInBackground() 152 if (pkg.applicationInfo.uid < Process.FIRST_APPLICATION_UID) { in loadValueInBackground() 162 boolean permGrantedByDefault = (pm.getPermissionFlags(perm, pkg.packageName, in loadValueInBackground() 174 if (pkg.applicationInfo.uid < Process.FIRST_APPLICATION_UID) { in loadValueInBackground()
|
/packages/apps/Settings/src/com/android/settings/password/ |
D | PasswordUtils.java | 59 String pkg = getCallingAppPackageName(activityToken); in getCallingAppLabel() local 60 if (pkg == null || pkg.equals(SETTINGS_PACKAGE_NAME)) { in getCallingAppLabel() 64 return Utils.getApplicationLabel(context, pkg); in getCallingAppLabel() 72 String pkg = null; in getCallingAppPackageName() local 74 pkg = ActivityManager.getService().getLaunchedFromPackage(activityToken); in getCallingAppPackageName() 78 return pkg; in getCallingAppPackageName()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/password/ |
D | PasswordUtils.java | 59 String pkg = getCallingAppPackageName(activityToken); in getCallingAppLabel() local 60 if (pkg == null || pkg.equals(SETTINGS_PACKAGE_NAME)) { in getCallingAppLabel() 64 return Utils.getApplicationLabel(context, pkg); in getCallingAppLabel() 72 String pkg = null; in getCallingAppPackageName() local 74 pkg = ActivityManager.getService().getLaunchedFromPackage(activityToken); in getCallingAppPackageName() 78 return pkg; in getCallingAppPackageName()
|
/packages/apps/Settings/src/com/android/settings/applications/specialaccess/zenaccess/ |
D | ZenAccessController.java | 89 public static boolean hasAccess(Context context, String pkg) { in hasAccess() argument 91 NotificationManager.class).isNotificationPolicyAccessGrantedForPackage(pkg); in hasAccess() 94 public static void setAccess(final Context context, final String pkg, final boolean access) { in setAccess() argument 95 logSpecialPermissionChange(access, pkg, context); in setAccess() 98 mgr.setNotificationPolicyAccessGranted(pkg, access); in setAccess() 102 public static void deleteRules(final Context context, final String pkg) { in deleteRules() argument 105 mgr.removeAutomaticZenRules(pkg); in deleteRules()
|
D | FriendlyWarningDialogFragment.java | 42 public FriendlyWarningDialogFragment setPkgInfo(String pkg, CharSequence label) { in setPkgInfo() argument 44 args.putString(KEY_PKG, pkg); in setPkgInfo() 45 args.putString(KEY_LABEL, TextUtils.isEmpty(label) ? pkg : label.toString()); in setPkgInfo() 54 final String pkg = args.getString(KEY_PKG); in onCreateDialog() local 67 ZenAccessController.deleteRules(getContext(), pkg); in onCreateDialog() 68 ZenAccessController.setAccess(getContext(), pkg, false); in onCreateDialog()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/applications/specialaccess/zenaccess/ |
D | ZenAccessController.java | 89 public static boolean hasAccess(Context context, String pkg) { in hasAccess() argument 91 NotificationManager.class).isNotificationPolicyAccessGrantedForPackage(pkg); in hasAccess() 94 public static void setAccess(final Context context, final String pkg, final boolean access) { in setAccess() argument 95 logSpecialPermissionChange(access, pkg, context); in setAccess() 98 mgr.setNotificationPolicyAccessGranted(pkg, access); in setAccess() 102 public static void deleteRules(final Context context, final String pkg) { in deleteRules() argument 105 mgr.removeAutomaticZenRules(pkg); in deleteRules()
|
D | FriendlyWarningDialogFragment.java | 42 public FriendlyWarningDialogFragment setPkgInfo(String pkg, CharSequence label) { in setPkgInfo() argument 44 args.putString(KEY_PKG, pkg); in setPkgInfo() 45 args.putString(KEY_LABEL, TextUtils.isEmpty(label) ? pkg : label.toString()); in setPkgInfo() 54 final String pkg = args.getString(KEY_PKG); in onCreateDialog() local 67 ZenAccessController.deleteRules(getContext(), pkg); in onCreateDialog() 68 ZenAccessController.setAccess(getContext(), pkg, false); in onCreateDialog()
|
/packages/apps/StorageManager/src/com/android/storagemanager/deletionhelper/ |
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()
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/device/apps/specialaccess/ |
D | HighPower.java | 101 final String pkg = pref.getKey(); in bindPreference() local 103 mPowerWhitelistBackend.removeApp(pkg); in bindPreference() 105 mPowerWhitelistBackend.addApp(pkg); in bindPreference() 116 final String pkg = preference.getKey(); in updateSummary() local 117 if (mPowerWhitelistBackend.isSysWhitelisted(pkg)) { in updateSummary() 119 } else if (mPowerWhitelistBackend.isWhitelisted(pkg)) { in updateSummary()
|
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/testutils/ |
D | ShadowNotificationManager.java | 40 public void setNotificationPolicyAccessGranted(String pkg, boolean granted) { in setNotificationPolicyAccessGranted() argument 42 mNotificationPolicyGrantedPackages.add(pkg); in setNotificationPolicyAccessGranted() 44 mNotificationPolicyGrantedPackages.remove(pkg); in setNotificationPolicyAccessGranted() 49 protected boolean isNotificationPolicyAccessGrantedForPackage(String pkg) { in isNotificationPolicyAccessGrantedForPackage() argument 50 return mNotificationPolicyGrantedPackages.contains(pkg); in isNotificationPolicyAccessGrantedForPackage()
|