/frameworks/base/core/java/com/android/internal/util/ |
D | LocationPermissionChecker.java | 85 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/net/wifi/service/java/com/android/server/wifi/util/ |
D | WifiPermissionsUtil.java | 84 public void enforceLocationPermission(String pkgName, @Nullable String featureId, int uid) { in enforceLocationPermission() argument 85 if (!checkCallersLocationPermission(pkgName, featureId, in enforceLocationPermission() 127 public boolean checkCallersLocationPermission(String pkgName, @Nullable String featureId, in checkCallersLocationPermission() argument 129 boolean isTargetSdkLessThanQ = isTargetSdkLessThan(pkgName, Build.VERSION_CODES.Q, uid); in checkCallersLocationPermission() 144 AppOpsManager.OPSTR_FINE_LOCATION, pkgName, featureId, uid, message); in checkCallersLocationPermission() 149 return noteAppOpAllowed(AppOpsManager.OPSTR_COARSE_LOCATION, pkgName, featureId, uid, in checkCallersLocationPermission() 162 public void enforceFineLocationPermission(String pkgName, @Nullable String featureId, in enforceFineLocationPermission() argument 164 if (!checkCallersFineLocationPermission(pkgName, featureId, uid, false)) { in enforceFineLocationPermission() 180 private boolean checkCallersFineLocationPermission(String pkgName, @Nullable String featureId, in checkCallersFineLocationPermission() argument 190 return checkAppOpAllowed(AppOpsManager.OPSTR_FINE_LOCATION, pkgName, uid); in checkCallersFineLocationPermission() [all …]
|
/frameworks/base/core/java/android/ddm/ |
D | DdmHandleAppName.java | 84 public static void setAppName(String appName, String pkgName, int userId) { in setAppName() argument 85 if (appName == null || appName.isEmpty() || pkgName == null || pkgName.isEmpty()) return; in setAppName() 87 sNames = new Names(appName, pkgName); in setAppName() 90 sendAPNM(appName, pkgName, userId); in setAppName() 101 private static void sendAPNM(String appName, String pkgName, int userId) { in sendAPNM() argument 110 + pkgName.length() * 2 /* pkgName */); in sendAPNM() 115 out.putInt(pkgName.length()); in sendAPNM() 116 putString(out, pkgName); in sendAPNM() 132 private Names(String appName, String pkgName) { in Names() argument 134 mPkgName = pkgName; in Names()
|
D | DdmHandleHello.java | 131 String pkgName = names.getPkgName(); in handleHELO() local 150 + pkgName.length() * 2); in handleHELO() 164 out.putInt(pkgName.length()); in handleHELO() 165 putString(out, pkgName); in handleHELO()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/uicc/ |
D | ShowInstallAppNotificationReceiver.java | 31 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()
|
D | InstallCarrierAppUtils.java | 52 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() 88 pkgName, in showNotification() 108 static void hideNotification(Context context, String pkgName) { in hideNotification() argument 109 getNotificationManager(context).cancel(pkgName, ACTIVATE_CELL_SERVICE_NOTIFICATION_ID); in hideNotification() 112 static Intent getPlayStoreIntent(String pkgName) { in getPlayStoreIntent() argument 115 storeIntent.setData(Uri.parse("market://details?id=" + pkgName)); in getPlayStoreIntent() 122 String pkgName, long delayMillis) { in showNotificationIfNotInstalledDelayed() argument 127 ShowInstallAppNotificationReceiver.get(context, pkgName), in showNotificationIfNotInstalledDelayed()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
D | CarrierPrivilegesTracker.java | 195 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/base/services/core/java/com/android/server/pm/ |
D | UserSystemPackageInstaller.java | 334 for (String pkgName : allWhitelistedPackages) { in getPackagesWhitelistWarnings() 335 final AndroidPackage pkg = pmInt.getPackage(pkgName); in getPackagesWhitelistWarnings() 337 warnings.add(String.format(notPresentFmt, pkgName)); in getPackagesWhitelistWarnings() 339 warnings.add(String.format(notSystemFmt, pkgName)); in getPackagesWhitelistWarnings() 341 warnings.add(String.format(overlayPackageFmt, pkgName)); in getPackagesWhitelistWarnings() 365 final String pkgName = pkg.getManifestPackageName(); in getPackagesWhitelistErrors() 366 if (!allWhitelistedPackages.contains(pkgName) in getPackagesWhitelistErrors() 367 && !isAutoGeneratedRRO(pmInt.getPackage(pkgName))) { in getPackagesWhitelistErrors() 368 errors.add(String.format(logMessageFmt, pkgName)); in getPackagesWhitelistErrors() 544 final String pkgName; in shouldInstallPackage() local [all …]
|
D | SELinuxMMAC.java | 292 String pkgName = parser.getAttributeValue(null, "name"); in readPackageOrThrow() local 302 pb.addInnerPackageMapOrThrow(pkgName, seinfo); in readPackageOrThrow() 663 public PolicyBuilder addInnerPackageMapOrThrow(String pkgName, String seinfo) { in addInnerPackageMapOrThrow() argument 664 if (!validateValue(pkgName)) { in addInnerPackageMapOrThrow() 665 String err = "Invalid package name " + pkgName; in addInnerPackageMapOrThrow() 673 String pkgValue = mPkgMap.get(pkgName); in addInnerPackageMapOrThrow() 679 mPkgMap.put(pkgName, seinfo); in addInnerPackageMapOrThrow()
|
/frameworks/base/apex/jobscheduler/service/java/com/android/server/job/ |
D | JobSchedulerShellCommand.java | 98 private boolean printError(int errCode, String pkgName, int userId, int jobId) { in printError() argument 104 pw.print(pkgName); in printError() 114 pw.print(pkgName); in printError() 124 pw.print(pkgName); in printError() 171 final String pkgName = getNextArgRequired(); in runJob() local 176 int ret = mInternal.executeRunCommand(pkgName, userId, jobId, satisfied, force); in runJob() 177 if (printError(ret, pkgName, userId, jobId)) { in runJob() 217 final String pkgName = getNextArg(); in timeout() local 223 return mInternal.executeTimeoutCommand(pw, pkgName, userId, jobIdStr != null, jobId); in timeout() 253 final String pkgName = getNextArg(); in cancelJob() local [all …]
|
/frameworks/base/core/java/com/android/internal/os/ |
D | AppIdToPackageMap.java | 68 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/tests/PackageManagerComponentOverrideTests/src/com/android/server/pm/test/override/ |
D | PackageManagerComponentLabelIconOverrideTest.kt | 126 val pkgName: String, in <lambda>() constant in com.android.server.pm.test.override.PackageManagerComponentLabelIconOverrideTest.Companion.Params 129 val componentName: ComponentName? = ComponentName(pkgName, COMPONENT_CLASS_NAME) in <lambda>() 131 constructor(pkgName: String, appType: AppType, exception: Class<out Exception>) in <lambda>() 132 : this(pkgName, appType, Result.Exception(exception)) in <lambda>() 156 return "pkg=$pkgName, type=$appType, component=$componentName, result=$resultString" in <lambda>() 250 assertThat(mockPendingBroadcasts.get(userId, params.pkgName)) in <lambda>() 255 assertThat(mockPendingBroadcasts.get(userId, params.pkgName)).isNull() in <lambda>() 260 private fun makePkg(pkgName: String, block: ParsedPackage.() -> Unit = {}) = in <lambda>() 261 PackageImpl.forTesting(pkgName) in <lambda>() 268 private fun makePkgSetting(pkgName: String) = spy(PackageSetting(pkgName, null, File("/test"), in <lambda>() [all …]
|
/frameworks/av/services/mediametrics/ |
D | statsd_drm.cpp | 49 std::string pkgName = item->getPkgName(); in statsd_mediadrm() local 64 timestamp, pkgName.c_str(), pkgVersionCode, in statsd_mediadrm() 82 std::string pkgName = item->getPkgName(); in statsd_widevineCDM() local 93 timestamp, pkgName.c_str(), pkgVersionCode, in statsd_widevineCDM() 115 std::string pkgName = item->getPkgName(); in statsd_drmmanager() local 136 timestamp, pkgName.c_str(), pkgVersionCode, mediaApexVersion, in statsd_drmmanager()
|
D | statsd_extractor.cpp | 46 std::string pkgName = item->getPkgName(); in statsd_extractor() local 83 timestamp, pkgName.c_str(), pkgVersionCode, in statsd_extractor()
|
/frameworks/base/core/tests/coretests/src/android/content/pm/ |
D | PackageManagerTests.java | 147 String pkgName; field in PackageManagerTests.InstallReceiver 149 InstallReceiver(String pkgName) { in InstallReceiver() argument 150 this.pkgName = pkgName; in InstallReceiver() 163 if (pkgName.equals(installedPkg)) { in notifyNow() 427 String pkgName = pkg.getPackageName(); in assertInstall() local 428 ApplicationInfo info = getPm().getApplicationInfo(pkgName, 0); in assertInstall() 430 assertEquals(pkgName, info.packageName); in assertInstall() 562 private void assertNotInstalled(String pkgName) { in assertNotInstalled() argument 564 ApplicationInfo info = getPm().getApplicationInfo(pkgName, 0); in assertNotInstalled() 565 fail(pkgName + " shouldnt be installed"); in assertNotInstalled() [all …]
|
/frameworks/base/core/java/android/permission/ |
D | PermissionManager.java | 639 final String pkgName; field in PermissionManager.PackageNamePermissionQuery 642 PackageNamePermissionQuery(@Nullable String permName, @Nullable String pkgName, int uid) { in PackageNamePermissionQuery() argument 644 this.pkgName = pkgName; in PackageNamePermissionQuery() 652 pkgName, permName, uid); in toString() 657 return Objects.hash(permName, pkgName, uid); in hashCode() 672 && Objects.equals(pkgName, other.pkgName) in equals() 679 String permName, String pkgName, int uid) { in checkPackageNamePermissionUncached() argument 682 permName, pkgName, uid); in checkPackageNamePermissionUncached() 696 query.permName, query.pkgName, query.uid); 705 public static int checkPackageNamePermission(String permName, String pkgName, int uid) { in checkPackageNamePermission() argument [all …]
|
/frameworks/base/services/backup/java/com/android/server/backup/keyvalue/ |
D | BackupRequest.java | 27 public BackupRequest(String pkgName) { in BackupRequest() argument 28 packageName = pkgName; in BackupRequest()
|
/frameworks/base/tests/ActivityManagerPerfTests/tests/src/com/android/frameworks/perftests/am/util/ |
D | TargetPackageUtils.java | 166 public static void startStubPackage(Context context, String pkgName) { in startStubPackage() argument 167 stopStubPackage(context, pkgName); in startStubPackage() 171 intent.setComponent(new ComponentName(pkgName, Constants.STUB_INIT_SERVICE_NAME)); in startStubPackage() 176 Assert.assertTrue("Timeout when waiting for starting package " + pkgName, in startStubPackage() 183 public static void stopStubPackage(Context context, String pkgName) { in stopStubPackage() argument 186 final int uid = pm.getPackageUid(pkgName, 0); in stopStubPackage() 189 am.forceStopPackage(pkgName); in stopStubPackage()
|
/frameworks/base/services/core/java/com/android/server/location/gnss/ |
D | GnssVisibilityControl.java | 180 String pkgName = intent.getData().getEncodedSchemeSpecificPart(); in listenForProxyAppsPackageUpdates() 181 handleProxyAppPackageUpdate(pkgName, action); in listenForProxyAppsPackageUpdates() 188 private void handleProxyAppPackageUpdate(String pkgName, String action) { in handleProxyAppPackageUpdate() argument 189 final ProxyAppState proxyAppState = mProxyAppsState.get(pkgName); in handleProxyAppPackageUpdate() 194 if (DEBUG) Log.d(TAG, "Proxy app " + pkgName + " package changed: " + action); in handleProxyAppPackageUpdate() 195 final boolean updatedLocationPermission = shouldEnableLocationPermissionInGnssHal(pkgName); in handleProxyAppPackageUpdate() 198 Log.i(TAG, "Proxy app " + pkgName + " location permission changed." in handleProxyAppPackageUpdate() 394 private boolean isProxyAppInstalled(String pkgName) { in isProxyAppInstalled() argument 395 ApplicationInfo proxyAppInfo = getProxyAppInfo(pkgName); in isProxyAppInstalled() 399 private boolean hasLocationPermission(String pkgName) { in hasLocationPermission() argument [all …]
|
/frameworks/base/core/java/android/content/pm/ |
D | PackageStats.java | 134 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/core/java/com/android/server/wm/ |
D | HighRefreshRateBlacklist.java | 68 String pkgName = pkg.trim(); in updateBlacklist() local 69 if (!pkgName.isEmpty()) { in updateBlacklist() 70 mBlacklistedPackages.add(pkgName); in updateBlacklist()
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
D | CarrierPrivilegesTrackerTest.java | 146 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/utils/quota/ |
D | UptcMap.java | 172 final String pkgName = getPackageNameAtIndex(u, p); in forEach() local 174 final int tagCount = tagCountForUserAndPackage(userId, pkgName); in forEach() 177 consumer.accept(userId, pkgName, tag, get(userId, pkgName, tag)); in forEach()
|
/frameworks/base/services/tests/PackageManagerServiceTests/host/src/com/android/server/pm/test/ |
D | HostUtils.kt | 38 fun getDataDir(device: ITestDevice, pkgName: String) = in getDataDir() 39 device.executeShellCommand("dumpsys package $pkgName") in getDataDir()
|
/frameworks/base/services/backup/java/com/android/server/backup/fullbackup/ |
D | FullBackupObbConnection.java | 111 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()
|