Home
last modified time | relevance | path

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

123456789

/packages/apps/Settings/src/com/android/settings/notification/
DNotificationBackend.java76 row.pkg = app.packageName; in loadAppRow()
81 Log.e(TAG, "Error loading application label for " + row.pkg, t); in loadAppRow()
82 row.label = row.pkg; in loadAppRow()
85 row.banned = getNotificationsBanned(row.pkg, row.uid); in loadAppRow()
86 row.showBadge = canShowBadge(row.pkg, row.uid); in loadAppRow()
87 row.bubblePreference = getBubblePreference(row.pkg, row.uid); in loadAppRow()
89 row.blockedChannelCount = getBlockedChannelCount(row.pkg, row.uid); in loadAppRow()
90 row.channelCount = getChannelCount(row.pkg, row.uid); in loadAppRow()
126 String pkg = nonBlockablePkgs[i]; in markAppRowWithBlockables() local
127 if (pkg == null) { in markAppRowWithBlockables()
[all …]
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/notification/
DNotificationBackend.java64 row.pkg = app.packageName; in loadAppRow()
69 Log.e(TAG, "Error loading application label for " + row.pkg, t); in loadAppRow()
70 row.label = row.pkg; in loadAppRow()
73 row.banned = getNotificationsBanned(row.pkg, row.uid); in loadAppRow()
74 row.showBadge = canShowBadge(row.pkg, row.uid); in loadAppRow()
75 row.bubblePreference = getBubblePreference(row.pkg, row.uid); in loadAppRow()
77 row.blockedChannelCount = getBlockedChannelCount(row.pkg, row.uid); in loadAppRow()
78 row.channelCount = getChannelCount(row.pkg, row.uid); in loadAppRow()
107 String pkg = nonBlockablePkgs[i]; in markAppRowWithBlockables() local
108 if (pkg == null) { in markAppRowWithBlockables()
[all …]
DNotificationStation.java80 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 …]
/packages/apps/PermissionController/tests/mocking/src/com/android/permissioncontroller/permission/utils/
DGrantRevokeTests.kt343 val pkg = createMockPackage(mapOf(FG_PERM_NAME to false)) in grantOnePermTest() constant
345 perms[FG_PERM_NAME] = createMockPerm(pkg, FG_PERM_NAME) in grantOnePermTest()
346 val group = createMockGroup(pkg, perms) in grantOnePermTest()
368 val pkg = createMockPackage(mapOf(FG_PERM_NAME to false, FG_PERM_2_NAME to false)) in grantTwoPermTest() constant
370 perms[FG_PERM_NAME] = createMockPerm(pkg, FG_PERM_NAME) in grantTwoPermTest()
371 perms[FG_PERM_2_NAME] = createMockPerm(pkg, FG_PERM_2_NAME, BG_PERM_NAME) in grantTwoPermTest()
372 val group = createMockGroup(pkg, perms) in grantTwoPermTest()
398 val pkg = createMockPackage(mapOf(FG_PERM_NAME_NO_APP_OP to false)) in grantNoAppOpPerm() constant
400 perms[FG_PERM_NAME_NO_APP_OP] = createMockPerm(pkg, FG_PERM_NAME_NO_APP_OP) in grantNoAppOpPerm()
401 val group = createMockGroup(pkg, perms) in grantNoAppOpPerm()
[all …]
/packages/apps/PermissionController/src/com/android/permissioncontroller/permission/service/
DLocationAccessCheck.java225 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 …]
DAutoRevokePermissions.kt248 pkgs.groupBy { pkg -> pkg.uid } in revokePermissionsOnUnusedApps() method
319 userApps.forEachInParallel(Main) { pkg: LightPackageInfo -> in revokePermissionsOnUnusedApps() method
320 if (pkg.grantedPermissions.isEmpty()) { in revokePermissionsOnUnusedApps()
324 if (isPackageAutoRevokePermanentlyExempt(pkg, user)) { in revokePermissionsOnUnusedApps()
328 val packageName = pkg.packageName in revokePermissionsOnUnusedApps()
329 if (isPackageAutoRevokeExempt(context, pkg)) { in revokePermissionsOnUnusedApps()
420 revokedApps.add(pkg.packageName to user) in revokePermissionsOnUnusedApps()
452 pkg: LightPackageInfo, in isPackageAutoRevokePermanentlyExempt()
456 .getInitializedValue()[pkg.packageName] in isPackageAutoRevokePermanentlyExempt()
467 val carrierPrivilegedStatus = CarrierPrivilegedStatusLiveData[pkg.packageName] in isPackageAutoRevokePermanentlyExempt()
[all …]
/packages/apps/SecureElement/src/com/android/se/security/gpac/
DPKG_REF_DO.java37 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/
DAppStateSmsPremBridge.java50 protected void updateExtraInfo(AppEntry app, String pkg, int uid) { in updateExtraInfo() argument
51 app.extraInfo = getState(pkg); in updateExtraInfo()
54 public SmsState getState(String pkg) { in getState() argument
56 state.smsState = getSmsState(pkg); in getState()
60 private int getSmsState(String pkg) { in getSmsState() argument
61 return mSmsManager.getPremiumSmsConsent(pkg); in getSmsState()
64 public void setSmsState(String pkg, int state) { in setSmsState() argument
65 mSmsManager.setPremiumSmsConsent(pkg, state); in setSmsState()
DAppStateManageExternalStorageBridge.java47 protected void updateExtraInfo(ApplicationsState.AppEntry app, String pkg, int uid) { in updateExtraInfo() argument
48 app.extraInfo = getManageExternalStoragePermState(pkg, uid); in updateExtraInfo()
64 public PermissionState getPermissionInfo(String pkg, int uid) { in getPermissionInfo() argument
65 PermissionState ps = super.getPermissionInfo(pkg, uid); in getPermissionInfo()
66 ps.appOpMode = mAppOpsManager.unsafeCheckOpNoThrow(APP_OP_STR, uid, pkg); in getPermissionInfo()
74 public PermissionState getManageExternalStoragePermState(String pkg, int uid) { in getManageExternalStoragePermState() argument
75 return getPermissionInfo(pkg, uid); in getManageExternalStoragePermState()
DProcessStatsDetail.java346 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 …]
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()
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/
DAppStateSmsPremBridge.java53 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()
DProcessStatsDetail.java346 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 …]
/packages/apps/PermissionController/src/com/android/permissioncontroller/permission/data/
DUserSensitivityLiveData.kt105 for (pkg in pkgs) { in <lambda>() constant
107 val userSensitiveState = sensitiveStatePerUid.getOrPut(pkg.uid) { in <lambda>()
110 userSensitiveState.packages.add(pkg) in <lambda>()
114 LauncherPackagesLiveData.value?.contains(pkg.packageName) ?: return in <lambda>()
116 KotlinUtils.packageHasLaunchIntent(context, pkg.packageName) in <lambda>()
118 val pkgIsSystemApp = pkg.appFlags and ApplicationInfo.FLAG_SYSTEM != 0 in <lambda>()
120 for (perm in pkg.requestedPermissions.intersect(runtimePerms)) { in <lambda>()
128 val permGrantedByDefault = pm.getPermissionFlags(perm, pkg.packageName, in <lambda>()
149 flags = if (pkg.uid < Process.FIRST_APPLICATION_UID) { in <lambda>()
DAutoRevokedPackagesLiveData.kt56 packageNames.addAll(packageList.mapNotNull { pkg -> in <lambda>() method
57 if (pkg.enabled) { in <lambda>()
58 pkg.packageName to user in <lambda>()
69 for (pkg in toRemove) { in <lambda>() constant
70 val packagePermissionsLiveData = packagePermGroupsLiveDatas.remove(pkg) ?: continue in <lambda>()
73 removeSource(permStateLiveDatas.remove(Triple(pkg.first, groupName, pkg.second)) in <lambda>()
76 packageAutoRevokedPermsList.remove(pkg) in <lambda>()
/packages/apps/Settings/src/com/android/settings/password/
DPasswordUtils.java59 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/notification/app/
DBubblePreferenceController.java89 mHasSentInvalidMsg = mBackend.isInInvalidMsgState(mAppRow.pkg, mAppRow.uid); in updateState()
91 mAppRow.pkg, mAppRow.uid).getList().size(); in updateState()
126 .setPkgPrefInfo(mAppRow.pkg, mAppRow.uid, value) in onPreferenceChange()
131 mBackend.setAllowBubbles(mAppRow.pkg, mAppRow.uid, value); in onPreferenceChange()
150 public static void revertBubblesApproval(Context mContext, String pkg, int uid) { in revertBubblesApproval() argument
152 backend.setAllowBubbles(pkg, uid, BUBBLE_PREFERENCE_NONE); in revertBubblesApproval()
163 public static void applyBubblesApproval(Context mContext, String pkg, int uid, int pref) { in applyBubblesApproval() argument
165 backend.setAllowBubbles(pkg, uid, pref); in applyBubblesApproval()
DNotificationSettings.java208 mContext, mConversationInfo, mAppRow.pkg, mAppRow.uid, in loadConversation()
218 mShowLegacyChannelConfig = mBackend.onlyHasDefaultChannel(mAppRow.pkg, mAppRow.uid) in loadChannelGroup()
224 mAppRow.pkg, mAppRow.uid, NotificationChannel.DEFAULT_CHANNEL_ID, null); in loadChannelGroup()
242 .setPackage(mAppRow.pkg); in collectConfigActivities()
275 private PackageInfo findPackageInfo(String pkg, int uid) { in findPackageInfo() argument
276 if (pkg == null || uid < 0) { in findPackageInfo()
280 if (packages != null && pkg != null) { in findPackageInfo()
284 if (pkg.equals(p)) { in findPackageInfo()
286 return mPm.getPackageInfo(pkg, PackageManager.GET_SIGNATURES); in findPackageInfo()
288 Log.w(TAG, "Failed to load package " + pkg, e); in findPackageInfo()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/password/
DPasswordUtils.java59 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/applications/specialaccess/zenaccess/
DZenAccessController.java89 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()
DFriendlyWarningDialogFragment.java42 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/Settings/src/com/android/settings/applications/specialaccess/zenaccess/
DZenAccessController.java89 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()
DFriendlyWarningDialogFragment.java42 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/Settings/tests/robotests/src/com/android/settings/notification/app/
DInvalidConversationPreferenceControllerTest.java102 appRow.pkg = "hi"; in testIsAvailable_notIfAppBlocked()
113 appRow.pkg = "hi"; in testIsAvailable_notIfInValidMsgState()
123 appRow.pkg = "hi"; in testIsAvailable()
132 appRow.pkg = "hi"; in testUpdateState_disabledByAdmin()
146 appRow.pkg = "pkg"; in testUpdateState_notChecked()
159 appRow.pkg = "pkg"; in testUpdateState_checked()
172 appRow.pkg = "pkg"; in testOnPreferenceChange_toggleEnabled()
191 appRow.pkg = "pkg"; in testOnPreferenceChange_toggleDisabled()
/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()

123456789