Home
last modified time | relevance | path

Searched refs:pkgName (Results 1 – 25 of 114) sorted by relevance

12345

/frameworks/opt/net/wifi/service/java/com/android/server/wifi/util/
DWifiPermissionsUtil.java117 public void enforceLocationPermission(String pkgName, int uid) { in enforceLocationPermission() argument
118 if (!checkCallersLocationPermission(pkgName, uid, /* coarseForTargetSdkLessThanQ */ true)) { in enforceLocationPermission()
155 public boolean checkCallersLocationPermission(String pkgName, int uid, in checkCallersLocationPermission() argument
157 boolean isTargetSdkLessThanQ = isTargetSdkLessThan(pkgName, Build.VERSION_CODES.Q, uid); in checkCallersLocationPermission()
171 boolean isAppOpAllowed = noteAppOpAllowed(AppOpsManager.OP_FINE_LOCATION, pkgName, uid); in checkCallersLocationPermission()
173 isAppOpAllowed = noteAppOpAllowed(AppOpsManager.OP_COARSE_LOCATION, pkgName, uid); in checkCallersLocationPermission()
184 public void enforceFineLocationPermission(String pkgName, int uid) { in enforceFineLocationPermission() argument
185 if (!checkCallersFineLocationPermission(pkgName, uid, false)) { in enforceFineLocationPermission()
200 private boolean checkCallersFineLocationPermission(String pkgName, int uid, in checkCallersFineLocationPermission() argument
210 if (!checkAppOpAllowed(AppOpsManager.OP_FINE_LOCATION, pkgName, uid)) { in checkCallersFineLocationPermission()
[all …]
/frameworks/base/core/java/com/android/internal/util/
DLocationPermissionChecker.java85 public boolean checkLocationPermission(String pkgName, @Nullable String featureId, in checkLocationPermission() argument
87 return checkLocationPermissionInternal(pkgName, featureId, uid, message) == SUCCEEDED; in checkLocationPermission()
108 String pkgName, @Nullable String featureId, int uid, @Nullable String message) { in checkLocationPermissionWithDetailInfo() argument
109 final int result = checkLocationPermissionInternal(pkgName, featureId, uid, message); in checkLocationPermissionWithDetailInfo()
134 public void enforceLocationPermission(String pkgName, @Nullable String featureId, int uid, in enforceLocationPermission() argument
136 final int result = checkLocationPermissionInternal(pkgName, featureId, uid, message); in enforceLocationPermission()
146 private int checkLocationPermissionInternal(String pkgName, @Nullable String featureId, in checkLocationPermissionInternal() argument
148 checkPackage(uid, pkgName); in checkLocationPermissionInternal()
157 if (!checkCallersLocationPermission(pkgName, featureId, uid, in checkLocationPermissionInternal()
177 public boolean checkCallersLocationPermission(String pkgName, @Nullable String featureId, in checkCallersLocationPermission() argument
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DCarrierPrivilegesTracker.java195 String pkgName = (uri != null) ? uri.getSchemeSpecificPart() : null;
196 if (TextUtils.isEmpty(pkgName)) {
201 sendMessage(obtainMessage(what, pkgName));
268 String pkgName = (String) msg.obj; in handleMessage() local
269 handlePackageAddedOrReplaced(pkgName); in handleMessage()
273 String pkgName = (String) msg.obj; in handleMessage() local
274 handlePackageRemoved(pkgName); in handleMessage()
367 private void handlePackageAddedOrReplaced(String pkgName) { in handlePackageAddedOrReplaced() argument
370 pkg = mPackageManager.getPackageInfo(pkgName, PackageManager.GET_SIGNING_CERTIFICATES); in handlePackageAddedOrReplaced()
372 Rlog.e(TAG, "Error getting installed package: " + pkgName, e); in handlePackageAddedOrReplaced()
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/uicc/
DShowInstallAppNotificationReceiver.java31 public static Intent get(Context context, String pkgName) { in get() argument
33 intent.putExtra(EXTRA_PACKAGE_NAME, pkgName); in get()
39 String pkgName = intent.getStringExtra(EXTRA_PACKAGE_NAME); in onReceive() local
41 if (!UiccProfile.isPackageBundled(context, pkgName)) { in onReceive()
42 InstallCarrierAppUtils.showNotification(context, pkgName); in onReceive()
DInstallCarrierAppUtils.java52 static void showNotification(Context context, String pkgName) { in showNotification() argument
56 String appName = getAppNameFromPackageName(context, pkgName); in showNotification()
71 getPlayStoreIntent(pkgName), PendingIntent.FLAG_UPDATE_CURRENT); in showNotification()
87 pkgName, in showNotification()
107 static void hideNotification(Context context, String pkgName) { in hideNotification() argument
108 getNotificationManager(context).cancel(pkgName, ACTIVATE_CELL_SERVICE_NOTIFICATION_ID); in hideNotification()
111 static Intent getPlayStoreIntent(String pkgName) { in getPlayStoreIntent() argument
114 storeIntent.setData(Uri.parse("market://details?id=" + pkgName)); in getPlayStoreIntent()
121 String pkgName, long delayMillis) { in showNotificationIfNotInstalledDelayed() argument
126 ShowInstallAppNotificationReceiver.get(context, pkgName), in showNotificationIfNotInstalledDelayed()
/frameworks/base/core/java/com/android/internal/os/
DAppIdToPackageMap.java68 String pkgName = mAppIdToPackageMap.get(appId); in mapAppId() local
69 return pkgName == null ? String.valueOf(appId) : pkgName; in mapAppId()
75 final String pkgName = mAppIdToPackageMap.get(appId); in mapUid() local
77 return pkgName == null ? uidStr : pkgName + '/' + uidStr; in mapUid()
/frameworks/base/services/core/java/com/android/server/job/
DJobSchedulerShellCommand.java94 private boolean printError(int errCode, String pkgName, int userId, int jobId) { in printError() argument
100 pw.print(pkgName); in printError()
110 pw.print(pkgName); in printError()
120 pw.print(pkgName); in printError()
156 final String pkgName = getNextArgRequired(); in runJob() local
161 int ret = mInternal.executeRunCommand(pkgName, userId, jobId, force); in runJob()
162 if (printError(ret, pkgName, userId, jobId)) { in runJob()
202 final String pkgName = getNextArg(); in timeout() local
208 return mInternal.executeTimeoutCommand(pw, pkgName, userId, jobIdStr != null, jobId); in timeout()
238 final String pkgName = getNextArg(); in cancelJob() local
[all …]
DJobSchedulerService.java804 final String pkgName = getPackageName(intent);
810 if (pkgName != null && pkgUid != -1) {
815 if (component.equals(pkgName)) {
817 Slog.d(TAG, "Package state change: " + pkgName);
822 … final int state = pm.getApplicationEnabledSetting(pkgName, userId);
826 Slog.d(TAG, "Removing jobs for package " + pkgName
829 cancelJobsForPackageAndUid(pkgName, pkgUid,
848 Slog.d(TAG, "Something in " + pkgName
858 Slog.w(TAG, "PACKAGE_CHANGED for " + pkgName + " / uid " + pkgUid);
868 cancelJobsForPackageAndUid(pkgName, uidRemoved, "app uninstalled");
[all …]
/frameworks/base/core/tests/coretests/src/android/content/pm/
DPackageManagerTests.java144 String pkgName; field in PackageManagerTests.InstallReceiver
146 InstallReceiver(String pkgName) { in InstallReceiver() argument
147 this.pkgName = pkgName; in InstallReceiver()
160 if (pkgName.equals(installedPkg)) { in notifyNow()
422 String pkgName = pkg.packageName; in assertInstall() local
423 ApplicationInfo info = getPm().getApplicationInfo(pkgName, 0); in assertInstall()
425 assertEquals(pkgName, info.packageName); in assertInstall()
558 private void assertNotInstalled(String pkgName) { in assertNotInstalled() argument
560 ApplicationInfo info = getPm().getApplicationInfo(pkgName, 0); in assertNotInstalled()
561 fail(pkgName + " shouldnt be installed"); in assertNotInstalled()
[all …]
/frameworks/av/services/mediaanalytics/
Dstatsd_drm.cpp46 std::string pkgName = item->getPkgName(); in statsd_mediadrm() local
62 timestamp, pkgName.c_str(), pkgVersionCode, in statsd_mediadrm()
83 std::string pkgName = item->getPkgName(); in statsd_widevineCDM() local
95 timestamp, pkgName.c_str(), pkgVersionCode, in statsd_widevineCDM()
Dstatsd_extractor.cpp46 std::string pkgName = item->getPkgName(); in statsd_extractor() local
83 timestamp, pkgName.c_str(), pkgVersionCode, in statsd_extractor()
Dstatsd_audiopolicy.cpp46 std::string pkgName = item->getPkgName(); in statsd_audiopolicy() local
114 timestamp, pkgName.c_str(), pkgVersionCode, in statsd_audiopolicy()
Dstatsd_audiotrack.cpp46 std::string pkgName = item->getPkgName(); in statsd_audiotrack() local
138 timestamp, pkgName.c_str(), pkgVersionCode, in statsd_audiotrack()
/frameworks/base/services/core/java/com/android/server/location/
DGnssVisibilityControl.java178 String pkgName = intent.getData().getEncodedSchemeSpecificPart(); in listenForProxyAppsPackageUpdates()
179 handleProxyAppPackageUpdate(pkgName, action); in listenForProxyAppsPackageUpdates()
186 private void handleProxyAppPackageUpdate(String pkgName, String action) { in handleProxyAppPackageUpdate() argument
187 final ProxyAppState proxyAppState = mProxyAppsState.get(pkgName); in handleProxyAppPackageUpdate()
192 if (DEBUG) Log.d(TAG, "Proxy app " + pkgName + " package changed: " + action); in handleProxyAppPackageUpdate()
193 final boolean updatedLocationPermission = shouldEnableLocationPermissionInGnssHal(pkgName); in handleProxyAppPackageUpdate()
196 Log.i(TAG, "Proxy app " + pkgName + " location permission changed." in handleProxyAppPackageUpdate()
391 private boolean isProxyAppInstalled(String pkgName) { in isProxyAppInstalled() argument
392 ApplicationInfo proxyAppInfo = getProxyAppInfo(pkgName); in isProxyAppInstalled()
396 private boolean hasLocationPermission(String pkgName) { in hasLocationPermission() argument
[all …]
/frameworks/base/core/java/android/content/pm/
DPackageStats.java134 public PackageStats(String pkgName) { in PackageStats() argument
135 packageName = pkgName; in PackageStats()
140 public PackageStats(String pkgName, int userHandle) { in PackageStats() argument
141 this.packageName = pkgName; in PackageStats()
/frameworks/base/services/backup/java/com/android/server/backup/keyvalue/
DBackupRequest.java27 public BackupRequest(String pkgName) { in BackupRequest() argument
28 packageName = pkgName; in BackupRequest()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DCarrierPrivilegesTrackerTest.java146 pkg.packageName = pkgCertInfo.pkgName; in setupInstalledPackages()
150 eq(pkgCertInfo.pkgName), eq(GET_SIGNING_CERTIFICATES))) in setupInstalledPackages()
153 eq(pkgCertInfo.pkgName), eq(pkgCertInfo.userInfo.id))) in setupInstalledPackages()
530 private void sendPackageChangedIntent(String action, String pkgName) { in sendPackageChangedIntent() argument
531 mContext.sendBroadcast(new Intent(action, new Uri.Builder().path(pkgName).build())); in sendPackageChangedIntent()
544 public final String pkgName; field in CarrierPrivilegesTrackerTest.PackageCertInfo
549 PackageCertInfo(String pkgName, String cert, UserInfo userInfo, int uid) { in PackageCertInfo() argument
550 this.pkgName = pkgName; in PackageCertInfo()
/frameworks/base/services/core/java/com/android/server/pm/
DSELinuxMMAC.java275 String pkgName = parser.getAttributeValue(null, "name"); in readPackageOrThrow() local
285 pb.addInnerPackageMapOrThrow(pkgName, seinfo); in readPackageOrThrow()
603 public PolicyBuilder addInnerPackageMapOrThrow(String pkgName, String seinfo) { in addInnerPackageMapOrThrow() argument
604 if (!validateValue(pkgName)) { in addInnerPackageMapOrThrow()
605 String err = "Invalid package name " + pkgName; in addInnerPackageMapOrThrow()
613 String pkgValue = mPkgMap.get(pkgName); in addInnerPackageMapOrThrow()
619 mPkgMap.put(pkgName, seinfo); in addInnerPackageMapOrThrow()
/frameworks/base/services/core/java/com/android/server/wm/
DHighRefreshRateBlacklist.java74 String pkgName = pkg.trim();
75 if (!pkgName.isEmpty()) {
76 mBlacklistedPackages.add(pkgName);
/frameworks/base/services/core/java/com/android/server/policy/
DPermissionPolicyService.java666 final String pkgName = pkg.packageName; in addOpIfFgPermissions() local
679 && isBgPermRestricted(pkgName, bgPermissionName, uid)) { in addOpIfFgPermissions()
680 mOpsToForegroundIfAllow.add(new OpToChange(uid, pkgName, opCode)); in addOpIfFgPermissions()
686 if (mPackageManager.checkPermission(permission, pkgName) in addOpIfFgPermissions()
688 final boolean isBgHardRestricted = isBgPermRestricted(pkgName, bgPermissionName, in addOpIfFgPermissions()
691 pkgName) == PackageManager.PERMISSION_GRANTED; in addOpIfFgPermissions()
694 mOpsToAllow.add(new OpToChange(uid, pkgName, opCode)); in addOpIfFgPermissions()
696 mOpsToForeground.add(new OpToChange(uid, pkgName, opCode)); in addOpIfFgPermissions()
699 mOpsToIgnore.add(new OpToChange(uid, pkgName, opCode)); in addOpIfFgPermissions()
710 void addPackage(@NonNull String pkgName) { in addPackage() argument
[all …]
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/applications/
DApplicationsState.java555 int indexOfApplicationInfoLocked(String pkgName, int userId) { in indexOfApplicationInfoLocked() argument
558 if (appInfo.packageName.equals(pkgName) in indexOfApplicationInfoLocked()
566 void addPackage(String pkgName, int userId) { in addPackage() argument
570 if (DEBUG) Log.i(TAG, "Adding package " + pkgName); in addPackage()
578 if (indexOfApplicationInfoLocked(pkgName, userId) >= 0) { in addPackage()
583 ApplicationInfo info = mIpm.getApplicationInfo(pkgName, in addPackage()
612 public void removePackage(String pkgName, int userId) { in removePackage() argument
615 int idx = indexOfApplicationInfoLocked(pkgName, userId); in removePackage()
616 if (DEBUG) Log.i(TAG, "removePackage: " + pkgName + " @ " + idx); in removePackage()
618 AppEntry entry = mEntriesMap.get(userId).get(pkgName); in removePackage()
[all …]
/frameworks/base/core/java/com/android/internal/app/procstats/
DProcessStats.java268 final String pkgName = pkgMap.keyAt(ip); in add() local
282 if (DEBUG) Slog.d(TAG, "Adding pkg " + pkgName + " uid " + uid in add()
284 ProcessState thisProc = getProcessStateLocked(pkgName, uid, vers, in add()
290 final PackageState pkgState = getPackageStateLocked(pkgName, uid, in add()
300 if (DEBUG) Slog.d(TAG, "Adding pkg " + pkgName + " uid " + uid in add()
302 ServiceState thisSvc = getServiceStateLocked(pkgName, uid, vers, in add()
308 if (DEBUG) Slog.d(TAG, "Adding pkg " + pkgName + " uid " + uid in add()
310 AssociationState thisAsc = getAssociationStateLocked(pkgName, uid, vers, in add()
1083 final String pkgName = readCommonString(in, version); in readFromParcel() local
1084 if (pkgName == null) { in readFromParcel()
[all …]
/frameworks/base/services/backup/java/com/android/server/backup/fullbackup/
DFullBackupObbConnection.java111 public void restoreObbFile(String pkgName, ParcelFileDescriptor data, in restoreObbFile() argument
117 mService.restoreObbFile(pkgName, data, fileSize, type, path, mode, mtime, in restoreObbFile()
120 Slog.w(TAG, "Unable to restore OBBs for " + pkgName, e); in restoreObbFile()
/frameworks/base/core/java/android/service/notification/
DINotificationListener.aidl45 …void onNotificationChannelModification(String pkgName, in UserHandle user, in NotificationChannel … in onNotificationChannelModification() argument
46 …void onNotificationChannelGroupModification(String pkgName, in UserHandle user, in NotificationCha… in onNotificationChannelGroupModification() argument
/frameworks/base/services/backup/java/com/android/server/backup/restore/
DPerformUnifiedRestoreTask.java478 final String pkgName = (mRestoreDescription != null) in dispatchNextRestore() local
480 if (pkgName == null) { in dispatchNextRestore()
499 sendOnRestorePackage(pkgName); in dispatchNextRestore()
501 Metadata metaInfo = mPmAgent.getRestoredMetadata(pkgName); in dispatchNextRestore()
503 Slog.e(TAG, "No metadata for " + pkgName); in dispatchNextRestore()
504 EventLog.writeEvent(EventLogTags.RESTORE_AGENT_FAILURE, pkgName, in dispatchNextRestore()
512 pkgName, PackageManager.GET_SIGNING_CERTIFICATES, mUserId); in dispatchNextRestore()
516 Slog.e(TAG, "Package not present: " + pkgName); in dispatchNextRestore()
522 EventLog.writeEvent(EventLogTags.RESTORE_AGENT_FAILURE, pkgName, in dispatchNextRestore()
536 Slog.w(TAG, "Package " + pkgName + ": " + message); in dispatchNextRestore()
[all …]

12345