/frameworks/base/services/autofill/java/com/android/server/autofill/ |
H A D | AutofillManagerServiceImpl.java | 148 final String packageName = getPackageName(); 149 if (packageName == null) { 155 final ApplicationInfo info = pm.getApplicationInfo(packageName, 0); 158 Slog.e(TAG, "Could not get label for " + packageName + ": " + e); 159 return packageName; 289 int flags, @NonNull String packageName) { 298 hasCallback, packageName); 304 "id=" + newSession.id + " uid=" + uid + " s=" + mInfo.getServiceInfo().packageName 381 @NonNull IBinder appCallbackToken, boolean hasCallback, @NonNull String packageName) { 397 mInfo.getServiceInfo().getComponentName(), packageName); 286 startSessionLocked(@onNull IBinder activityToken, int uid, @NonNull IBinder appCallbackToken, @NonNull AutofillId autofillId, @NonNull Rect virtualBounds, @Nullable AutofillValue value, boolean hasCallback, int flags, @NonNull String packageName) argument 380 createSessionByTokenLocked(@onNull IBinder activityToken, int uid, @NonNull IBinder appCallbackToken, boolean hasCallback, @NonNull String packageName) argument [all...] |
/frameworks/base/services/backup/java/com/android/server/backup/ |
H A D | Trampoline.java | 142 public void dataChanged(String packageName) throws RemoteException { argument 145 svc.dataChanged(packageName); 150 public void clearBackupData(String transportName, String packageName) argument 154 svc.clearBackupData(transportName, packageName); 159 public void agentConnected(String packageName, IBinder agent) throws RemoteException { argument 162 svc.agentConnected(packageName, agent); 167 public void agentDisconnected(String packageName) throws RemoteException { argument 170 svc.agentDisconnected(packageName); 175 public void restoreAtInstall(String packageName, int token) throws RemoteException { argument 178 svc.restoreAtInstall(packageName, toke 343 beginRestoreSession(String packageName, String transportID) argument 358 getAvailableRestoreToken(String packageName) argument 364 isAppEligibleForBackup(String packageName) argument [all...] |
/frameworks/base/services/companion/java/com/android/server/companion/ |
H A D | CompanionDeviceManagerService.java | 136 public void onPackageRemoved(String packageName, int uid) { 139 a -> !Objects.equals(a.companionAppPackage, packageName)), 144 public void onPackageModified(String packageName) { 146 if (!ArrayUtils.isEmpty(readAllAssociations(userId, packageName))) { 147 updateSpecialAccessPermissionForAssociatedPackage(packageName, userId); 413 public void onDeviceSelected(String packageName, int userId, String deviceAddress) { 414 addAssociation(userId, packageName, deviceAddress); 425 void addAssociation(int userId, String packageName, String deviceAddress) { argument 426 updateSpecialAccessPermissionForAssociatedPackage(packageName, userId); 427 recordAssociation(packageName, deviceAddres 435 updateSpecialAccessPermissionForAssociatedPackage(String packageName, int userId) argument 474 getPackageInfo(String packageName, int userId) argument [all...] |
/frameworks/base/services/core/java/com/android/server/ |
H A D | IntentResolver.java | 217 String prefix, ArrayMap<String, F[]> map, String packageName, 232 if (packageName != null && !isPackageForFilter(packageName, filter)) { 257 if (packageName != null && !isPackageForFilter(packageName, filter)) { 282 public boolean dump(PrintWriter out, String title, String prefix, String packageName, argument 288 mTypeToFilter, packageName, printFilter, collapseDuplicates)) { 292 mBaseTypeToFilter, packageName, printFilter, collapseDuplicates)) { 296 mWildTypeToFilter, packageName, printFilter, collapseDuplicates)) { 300 mSchemeToFilter, packageName, printFilte 216 dumpMap(PrintWriter out, String titlePrefix, String title, String prefix, ArrayMap<String, F[]> map, String packageName, boolean printFilter, boolean collapseDuplicates) argument 512 isPackageForFilter(String packageName, F filter) argument [all...] |
/frameworks/base/services/core/java/com/android/server/am/ |
H A D | ProcessStatsService.java | 119 public ProcessState getProcessStateLocked(String packageName, argument 121 return mProcessStats.getProcessStateLocked(packageName, uid, versionCode, processName); 124 public ServiceState getServiceStateLocked(String packageName, int uid, argument 126 return mProcessStats.getServiceStateLocked(packageName, uid, versionCode, processName,
|
H A D | ServiceRecord.java | 76 final String packageName; // the package implementing intent's component field in class:ServiceRecord 215 pw.print(prefix); pw.print("packageName="); pw.println(packageName); 326 packageName = sInfo.applicationInfo.packageName; 342 tracker = ams.mProcessStats.getServiceStateLocked(serviceInfo.packageName, 360 restartTracker = ams.mProcessStats.getServiceStateLocked(serviceInfo.packageName, 452 final String localPackageName = packageName; 478 appName = appInfo.packageName; 483 appInfo.packageName, [all...] |
H A D | TaskChangeNotificationController.java | 281 void notifyActivityPinned(String packageName, int taskId) { argument 284 taskId, 0, packageName); 336 void notifyActivityForcedResizable(int taskId, int reason, String packageName) { argument 339 packageName);
|
/frameworks/base/services/core/java/com/android/server/firewall/ |
H A D | IntentFirewall.java | 502 protected boolean isPackageForFilter(String packageName, FirewallIntentFilter filter) { argument
|
/frameworks/base/services/core/java/com/android/server/media/projection/ |
H A D | MediaProjectionManagerService.java | 207 public boolean hasProjectionPermission(int uid, String packageName) { argument 211 hasPermission |= checkPermission(packageName, 214 AppOpsManager.OP_PROJECT_MEDIA, uid, packageName) 223 public IMediaProjection createProjection(int uid, String packageName, int type, argument 230 if (packageName == null || packageName.isEmpty()) { 236 projection = new MediaProjection(type, uid, packageName); 239 projection.uid, projection.packageName, AppOpsManager.MODE_ALLOWED); 328 private boolean checkPermission(String packageName, String permission) { argument 329 return mContext.getPackageManager().checkPermission(permission, packageName) 336 public final String packageName; field in class:MediaProjectionManagerService.MediaProjection 344 MediaProjection(int type, int uid, String packageName) argument [all...] |
/frameworks/base/services/core/java/com/android/server/pm/ |
H A D | DefaultPermissionGrantPolicy.java | 596 for (String packageName : locationPackageNames) { 597 PackageParser.Package locationPackage = getSystemPackageLPr(packageName); 734 public void grantDefaultPermissionsToDefaultSmsAppLPr(String packageName, int userId) { argument 736 if (packageName == null) { 739 PackageParser.Package smsPackage = getPackageLPr(packageName); 750 public void grantDefaultPermissionsToDefaultDialerAppLPr(String packageName, int userId) { argument 752 if (packageName == null) { 755 PackageParser.Package dialerPackage = getPackageLPr(packageName); 775 public void grantDefaultPermissionsToDefaultSimCallManagerLPr(String packageName, int userId) { argument 776 if (packageName 818 grantDefaultPermissionsToDefaultBrowserLPr(String packageName, int userId) argument 900 getPackageLPr(String packageName) argument 904 getSystemPackageLPr(String packageName) argument [all...] |
H A D | Installer.java | 153 public long createAppData(String uuid, String packageName, int userId, int flags, int appId, argument 157 return mInstalld.createAppData(uuid, packageName, userId, flags, appId, seInfo, 164 public void restoreconAppData(String uuid, String packageName, int userId, int flags, int appId, argument 168 mInstalld.restoreconAppData(uuid, packageName, userId, flags, appId, seInfo); 174 public void migrateAppData(String uuid, String packageName, int userId, int flags) argument 178 mInstalld.migrateAppData(uuid, packageName, userId, flags); 184 public void clearAppData(String uuid, String packageName, int userId, int flags, argument 188 mInstalld.clearAppData(uuid, packageName, userId, flags, ceDataInode); 194 public void destroyAppData(String uuid, String packageName, int userId, int flags, argument 198 mInstalld.destroyAppData(uuid, packageName, userI 213 moveCompleteApp(String fromUuid, String toUuid, String packageName, String dataAppName, int appId, String seInfo, int targetSdkVersion) argument 294 mergeProfiles(int uid, String packageName) argument 303 dumpProfiles(int uid, String packageName, String codePaths) argument 351 clearAppProfiles(String packageName) argument 360 destroyAppProfiles(String packageName) argument 413 linkNativeLibraryDirectory(String uuid, String packageName, String nativeLibPath32, int userId) argument 463 reconcileSecondaryDexFile(String apkPath, String packageName, int uid, String[] isas, @Nullable String volumeUuid, int flags) argument [all...] |
H A D | InstantAppRegistry.java | 134 public byte[] getInstantAppCookieLPw(@NonNull String packageName, argument 137 PackageParser.Package pkg = mService.mPackages.get(packageName); 146 File cookieFile = peekInstantCookieFile(packageName, userId); 157 public boolean setInstantAppCookieLPw(@NonNull String packageName, argument 163 Slog.e(LOG_TAG, "Instant app cookie for package " + packageName + " size " 170 PackageParser.Package pkg = mService.mPackages.get(packageName); 180 @NonNull String packageName, @NonNull File cookieFile, @UserIdInt int userId) { 182 File appDir = getInstantApplicationDir(packageName, userId); 204 public Bitmap getInstantAppIconLPw(@NonNull String packageName, argument 206 File iconFile = new File(getInstantApplicationDir(packageName, userI 179 persistInstantApplicationCookie(@ullable byte[] cookie, @NonNull String packageName, @NonNull File cookieFile, @UserIdInt int userId) argument 214 getInstantAppAndroidIdLPw(@onNull String packageName, @UserIdInt int userId) argument 228 generateInstantAppAndroidIdLPw(@onNull String packageName, @UserIdInt int userId) argument 507 deleteInstantApplicationMetadataLPw(@onNull String packageName, @UserIdInt int userId) argument 815 propagateInstantAppPermissionsIfNeeded(@onNull String packageName, @UserIdInt int userId) argument 839 peekOrParseUninstalledInstantAppInfo( @onNull String packageName, @UserIdInt int userId) argument 947 peekInstantCookieFile(@onNull String packageName, @UserIdInt int userId) argument 968 parseMetadata(@onNull XmlPullParser parser, @NonNull String packageName) argument 980 parsePackage(@onNull XmlPullParser parser, @NonNull String packageName) argument 1073 getInstantApplicationDir(String packageName, int userId) argument [all...] |
H A D | LauncherAppsService.java | 91 public final String packageName; field in class:LauncherAppsService.BroadcastCookie 93 BroadcastCookie(UserHandle userHandle, String packageName) { argument 95 this.packageName = packageName; 299 String packageName, UserHandle user) 304 .setPackage(packageName), 335 String callingPackage, String packageName, UserHandle user) 338 new Intent(Intent.ACTION_CREATE_SHORTCUT).setPackage(packageName), user); 390 public boolean isPackageEnabled(String callingPackage, String packageName, UserHandle user) argument 404 PackageInfo info = pmInt.getPackageInfo(packageName, 298 getLauncherActivities(String callingPackage, String packageName, UserHandle user) argument 334 getShortcutConfigActivities( String callingPackage, String packageName, UserHandle user) argument 415 getApplicationInfo( String callingPackage, String packageName, int flags, UserHandle user) argument 447 getShortcuts(String callingPackage, long changedSince, String packageName, List shortcutIds, ComponentName componentName, int flags, UserHandle targetUser) argument 468 pinShortcuts(String callingPackage, String packageName, List<String> ids, UserHandle targetUser) argument 484 getShortcutIconResId(String callingPackage, String packageName, String id, int targetUserId) argument 499 getShortcutIconFd(String callingPackage, String packageName, String id, int targetUserId) argument 521 startShortcut(String callingPackage, String packageName, String shortcutId, Rect sourceBounds, Bundle startActivityOptions, int targetUserId) argument 730 onPackageAdded(String packageName, int uid) argument 752 onPackageRemoved(String packageName, int uid) argument 774 onPackageModified(String packageName) argument 884 onShortcutChanged(@onNull String packageName, @UserIdInt int userId) argument 889 onShortcutChangedInner(@onNull String packageName, @UserIdInt int userId) argument [all...] |
H A D | PackageManagerShellCommand.java | 243 String packageName = getNextArg(); 244 if (packageName == null) { 250 mInterface.setPackagesSuspendedAsUser(new String[]{packageName}, suspendedState, 252 pw.println("Package " + packageName + " new suspended state: " 253 + mInterface.isPackageSuspendedForUser(packageName, userId)); 338 final String packageName = getNextArg(); 339 if (packageName == null) { 345 final int res = mInterface.installExistingPackageAsUser(packageName, userId, 348 throw new NameNotFoundException("Package " + packageName + " doesn't exist"); 350 pw.println("Package " + packageName 929 runRemoveSplit(String packageName, String splitName) argument [all...] |
H A D | ShortcutUser.java | 72 final String packageName; field in class:ShortcutUser.PackageWithUser 74 private PackageWithUser(int userId, String packageName) { argument 76 this.packageName = Preconditions.checkNotNull(packageName); 79 public static PackageWithUser of(int userId, String packageName) { argument 80 return new PackageWithUser(userId, packageName); 89 return packageName.hashCode() ^ userId; 99 return userId == that.userId && packageName.equals(that.packageName); 104 return String.format("[Package: %d, %s]", userId, packageName); 165 hasPackage(@onNull String packageName) argument 174 removePackage(@onNull String packageName) argument 196 removeLauncher( @serIdInt int packageUserId, @NonNull String packageName) argument 202 getPackageShortcutsIfExists(@onNull String packageName) argument 211 getPackageShortcuts(@onNull String packageName) argument 221 getLauncherShortcuts(@onNull String packageName, @UserIdInt int launcherUserId) argument 253 forPackageItem(@onNull String packageName, @UserIdInt int packageUserId, Consumer<ShortcutPackageItem> callback) argument 278 onCalledByPublisher(@onNull String packageName) argument 314 rescanPackageIfNeeded(@onNull String packageName, boolean forceRescan) argument 326 attemptToRestoreIfNeededAndSave(ShortcutService s, @NonNull String packageName, @UserIdInt int packageUserId) argument [all...] |
/frameworks/base/services/core/java/com/android/server/power/ |
H A D | Notifier.java | 171 public void onWakeLockAcquired(int flags, String tag, String packageName, argument 175 + "\", packageName=" + packageName 193 AppOpsManager.OP_WAKE_LOCK, ownerUid, packageName); 246 public void onWakeLockChanging(int flags, String tag, String packageName, argument 257 + "\", packageName=" + newPackageName 272 onWakeLockReleased(flags, tag, packageName, ownerUid, ownerPid, workSource, historyTag); 281 public void onWakeLockReleased(int flags, String tag, String packageName, argument 285 + "\", packageName=" + packageName [all...] |
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/ |
H A D | Owners.java | 171 po.put(mProfileOwners.keyAt(i), mProfileOwners.valueAt(i).packageName); 174 mDeviceOwnerUserId, (mDeviceOwner != null ? mDeviceOwner.packageName : null), 180 return mDeviceOwner != null ? mDeviceOwner.packageName : null; 297 return profileOwner != null ? profileOwner.packageName : null; 413 String packageName = parser.getAttributeValue(null, ATTR_PACKAGE); 414 mDeviceOwner = new OwnerInfo(name, packageName, 731 public final String packageName; field in class:Owners.OwnerInfo 737 public OwnerInfo(String name, String packageName, boolean userRestrictionsMigrated, argument 740 this.packageName = packageName; [all...] |
/frameworks/base/services/midi/java/com/android/server/midi/ |
H A D | MidiService.java | 114 public void onPackageAdded(String packageName, int uid) { 115 addPackageDeviceServers(packageName); 119 public void onPackageModified(String packageName) { 120 removePackageDeviceServers(packageName); 121 addPackageDeviceServers(packageName); 125 public void onPackageRemoved(String packageName, int uid) { 126 removePackageDeviceServers(packageName); 386 return (mServiceInfo == null ? null : mServiceInfo.packageName); 442 new ComponentName(mServiceInfo.packageName, mServiceInfo.name)); 740 public MidiDeviceInfo getServiceDeviceInfo(String packageName, Strin argument 845 addPackageDeviceServers(String packageName) argument 1000 removePackageDeviceServers(String packageName) argument [all...] |
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/ |
H A D | ShortcutManagerTest1.java | 480 mMainActivityFetcher = (packageName, userId) -> null; 898 protected File openIconFileForWriteAndGetPath(int userId, String packageName) argument 902 mService.openIconFileForWrite(userId, makePackageShortcut(packageName, "id")); 3905 checkHandlePackageDeleteInner((userId, packageName) -> { 3906 uninstallPackage(userId, packageName); 3908 genPackageDeleteIntent(packageName, userId)); 3913 checkHandlePackageDeleteInner((userId, packageName) -> { 3914 disablePackage(userId, packageName); 3916 genPackageChangedIntent(packageName, userId));
|
/frameworks/base/services/usb/java/com/android/server/usb/ |
H A D | UsbProfileGroupSettingsManager.java | 123 final @NonNull String packageName; field in class:UsbProfileGroupSettingsManager.UserPackage 128 * @param packageName The name of the package 131 private UserPackage(@NonNull String packageName, @NonNull UserHandle user) { argument 132 this.packageName = packageName; 143 return user.equals(other.user) && packageName.equals(other.packageName); 150 result = 31 * result + packageName.hashCode(); 156 return user.getIdentifier() + "/" + packageName; 562 public void onPackageAdded(String packageName, in argument 572 onPackageRemoved(String packageName, int uid) argument 1402 setDevicePackage(@onNull UsbDevice device, @Nullable String packageName, @NonNull UserHandle user) argument 1430 setAccessoryPackage(@onNull UsbAccessory accessory, @Nullable String packageName, @NonNull UserHandle user) argument 1459 hasDefaults(@onNull String packageName, @NonNull UserHandle user) argument 1474 clearDefaults(@onNull String packageName, @NonNull UserHandle user) argument [all...] |
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/ |
H A D | GraphReader.java | 83 public ImportPackageCommand(String packageName) { argument 84 mPackageName = packageName; 279 String packageName = getRequiredAttribute(attributes, "package"); 280 mCommandStack.append(new ImportPackageCommand(packageName));
|
/frameworks/compile/slang/ |
H A D | slang_rs_reflection_cpp.cpp | 465 const std::string &packageName = mRSContext->getReflectJavaPackageName(); local 470 << ", \"/data/data/" << packageName << "/app\", sizeof(\"" 471 << packageName << "\"))"; local
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
H A D | IccSmsInterfaceManager.java | 563 public int getPremiumSmsPermission(String packageName) { argument 564 return mDispatcher.getPremiumSmsPermission(packageName); 568 public void setPremiumSmsPermission(String packageName, int permission) { argument 569 mDispatcher.setPremiumSmsPermission(packageName, permission);
|
H A D | SmsUsageMonitor.java | 460 String packageName = parser.getAttributeValue(null, ATTR_PACKAGE_NAME); 462 if (packageName == null) { 467 mPremiumSmsPolicy.put(packageName, Integer.parseInt(policy)); 536 * @param packageName the name of the package to query permission 543 public int getPremiumSmsPermission(String packageName) { argument 544 checkCallerIsSystemOrPhoneOrSameApp(packageName); 546 Integer policy = mPremiumSmsPolicy.get(packageName); 558 * @param packageName the name of the package to set permission 564 public void setPremiumSmsPermission(String packageName, int permission) { argument 571 mPremiumSmsPolicy.put(packageName, permissio [all...] |
/frameworks/opt/telephony/src/java/com/android/internal/telephony/uicc/ |
H A D | UiccCarrierPrivilegeRules.java | 115 public String packageName; field in class:UiccCarrierPrivilegeRules.AccessRule 118 AccessRule(byte[] certificateHash, String packageName, long accessType) { argument 120 this.packageName = packageName; 124 boolean matches(byte[] certHash, String packageName) { argument 126 (TextUtils.isEmpty(this.packageName) || this.packageName.equals(packageName)); 132 packageName + " access: " + accessType; 260 if(!TextUtils.isEmpty(ar.packageName)) { 275 getCarrierPrivilegeStatus(Signature signature, String packageName) argument 302 getCarrierPrivilegeStatus(PackageManager packageManager, String packageName) argument [all...] |