Home
last modified time | relevance | path

Searched refs:targetPackage (Results 1 – 25 of 42) sorted by relevance

12

/frameworks/base/services/core/java/com/android/server/job/
DGrantedUriPermissions.java66 int sourceUid, String targetPackage, int targetUserId, String tag) { in createFromIntent() argument
76 perms = grantUri(am, data, sourceUid, targetPackage, targetUserId, grantFlags, tag, in createFromIntent()
82 perms = grantClip(am, clip, sourceUid, targetPackage, targetUserId, grantFlags, tag, in createFromIntent()
90 int sourceUid, String targetPackage, int targetUserId, int grantFlags, String tag) { in createFromClip() argument
96 perms = grantClip(am, clip, sourceUid, targetPackage, targetUserId, grantFlags, in createFromClip()
103 int sourceUid, String targetPackage, int targetUserId, int grantFlags, String tag, in grantClip() argument
107 curPerms = grantItem(am, clip.getItemAt(i), sourceUid, targetPackage, targetUserId, in grantClip()
114 int sourceUid, String targetPackage, int targetUserId, int grantFlags, String tag, in grantUri() argument
124 sourceUid, targetPackage, uri, grantFlags, sourceUserId, targetUserId); in grantUri()
133 int sourceUid, String targetPackage, int targetUserId, int grantFlags, String tag, in grantItem() argument
[all …]
/frameworks/base/core/java/android/app/backup/
DBackupTransport.java479 public int performFullBackup(PackageInfo targetPackage, ParcelFileDescriptor socket, in performFullBackup() argument
481 return performFullBackup(targetPackage, socket); in performFullBackup()
488 public int performFullBackup(PackageInfo targetPackage, ParcelFileDescriptor socket) { in performFullBackup() argument
562 public boolean isAppEligibleForBackup(PackageInfo targetPackage, boolean isFullBackup) { in isAppEligibleForBackup() argument
743 public int performFullBackup(PackageInfo targetPackage, ParcelFileDescriptor socket, in performFullBackup() argument
745 return BackupTransport.this.performFullBackup(targetPackage, socket, flags); in performFullBackup()
764 public boolean isAppEligibleForBackup(PackageInfo targetPackage, boolean isFullBackup) in isAppEligibleForBackup() argument
766 return BackupTransport.this.isAppEligibleForBackup(targetPackage, isFullBackup); in isAppEligibleForBackup()
/frameworks/base/services/core/java/com/android/server/om/
DIdmapManager.java71 boolean createIdmap(@NonNull final PackageInfo targetPackage, in createIdmap() argument
74 Slog.d(TAG, "create idmap for " + targetPackage.packageName + " and " in createIdmap()
77 final int sharedGid = UserHandle.getSharedAppGid(targetPackage.applicationInfo.uid); in createIdmap()
78 final String targetPath = targetPackage.applicationInfo.getBaseCodePath(); in createIdmap()
82 int policies = calculateFulfilledPolicies(targetPackage, overlayPackage, userId); in createIdmap()
170 private int calculateFulfilledPolicies(@NonNull final PackageInfo targetPackage, in calculateFulfilledPolicies() argument
176 if (mPackageManager.signaturesMatching(targetPackage.packageName, in calculateFulfilledPolicies()
DOverlayManagerServiceImpl.java676 final PackageInfo targetPackage = mPackageManager.getPackageInfo(targetPackageName, userId); in updateState() local
681 if (targetPackage != null && overlayPackage != null in updateState()
684 mIdmapManager.createIdmap(targetPackage, overlayPackage, userId); in updateState()
696 final @OverlayInfo.State int newState = calculateNewState(targetPackage, overlayPackage, in updateState()
710 private @OverlayInfo.State int calculateNewState(@Nullable final PackageInfo targetPackage, in calculateNewState() argument
727 if (targetPackage == null) { in calculateNewState()
786 void onOverlaysChanged(@NonNull String targetPackage, int userId); in onOverlaysChanged() argument
/frameworks/base/services/core/java/com/android/server/appbinding/finders/
DAppServiceFinder.java112 final String targetPackage = getTargetPackage(userId); in findService() local
114 Slog.d(TAG, getAppDescription() + " package=" + targetPackage); in findService()
116 if (targetPackage == null) { in findService()
122 mTargetPackages.put(userId, targetPackage); in findService()
126 targetPackage, in findService()
139 Slog.w(TAG, getAppDescription() + " package " + targetPackage + " u" + userId in findService()
/frameworks/base/core/java/android/content/pm/
DInstrumentationInfo.java33 public String targetPackage; field in InstrumentationInfo
129 targetPackage = orig.targetPackage; in InstrumentationInfo()
160 dest.writeString(targetPackage); in writeToParcel()
192 targetPackage = source.readString(); in InstrumentationInfo()
DIPackageManager.aidl263 String targetPackage, int flags); in queryInstrumentation() argument
268 void setInstallerPackageName(in String targetPackage, in String installerPackageName); in setInstallerPackageName() argument
/frameworks/base/services/contentcapture/java/com/android/server/contentcapture/
DContentCaptureMetricsLogger.java37 @Nullable String targetPackage) { in writeServiceEvent() argument
39 targetPackage); in writeServiceEvent()
51 @Nullable String targetPackage) { in writeServiceEvent() argument
52 writeServiceEvent(eventType, ComponentName.flattenToShortString(service), targetPackage); in writeServiceEvent()
/frameworks/base/test-runner/src/android/test/
DActivityInstrumentationTestCase2.java101 final String targetPackage = getInstrumentation().getTargetContext().getPackageName(); in getActivity() local
104 a = launchActivity(targetPackage, mActivityClass, null); in getActivity()
106 a = launchActivityWithIntent(targetPackage, mActivityClass, mActivityIntent); in getActivity()
/frameworks/base/core/java/com/android/internal/backup/
DIBackupTransport.aidl237 int performFullBackup(in PackageInfo targetPackage, in ParcelFileDescriptor socket, int flags); in performFullBackup() argument
250 boolean isAppEligibleForBackup(in PackageInfo targetPackage, boolean isFullBackup); in isAppEligibleForBackup() argument
/frameworks/base/services/robotests/src/com/android/server/testing/shadows/
DShadowPerformUnifiedRestoreTask.java63 @Nullable PackageInfo targetPackage, in __constructor__() argument
69 mPackage = targetPackage; in __constructor__()
/frameworks/base/services/core/java/com/android/server/inputmethod/
DInputContentUriTokenHandler.java51 @NonNull String targetPackage, @UserIdInt int sourceUserId, in InputContentUriTokenHandler() argument
55 mTargetPackage = targetPackage; in InputContentUriTokenHandler()
/frameworks/base/services/core/java/com/android/server/wm/
DDragAndDropPermissionsHandler.java49 DragAndDropPermissionsHandler(ClipData clipData, int sourceUid, String targetPackage, int mode, in DragAndDropPermissionsHandler() argument
52 mTargetPackage = targetPackage; in DragAndDropPermissionsHandler()
/frameworks/base/services/core/java/com/android/server/am/
DBroadcastStats.java95 public void addBackgroundCheckViolation(String action, String targetPackage) { in addBackgroundCheckViolation() argument
101 ViolationEntry ve = ae.mBackgroundCheckViolations.get(targetPackage); in addBackgroundCheckViolation()
104 ae.mBackgroundCheckViolations.put(targetPackage, ve); in addBackgroundCheckViolation()
/frameworks/base/tools/aapt2/link/
DManifestFixer_test.cpp310 <instrumentation android:name=".TestRunner" android:targetPackage="android" /> in TEST_F()
323 instrumentation_el->FindAttribute(xml::kSchemaAndroid, "targetPackage"); in TEST_F()
336 <overlay android:targetName="Customization" android:targetPackage="android" /> in TEST_F()
349 overlay_el->FindAttribute(xml::kSchemaAndroid, "targetPackage"); in TEST_F()
/frameworks/base/packages/SystemUI/src/com/android/systemui/theme/
DThemeOverlayManager.java143 targetPackagesToQuery.forEach(targetPackage -> overlays.addAll(mOverlayManager in applyCurrentUserOverlays()
144 .getOverlayInfosForTarget(targetPackage, UserHandle.SYSTEM))); in applyCurrentUserOverlays()
/frameworks/base/services/core/java/com/android/server/uri/
DUriGrantsManagerInternal.java37 void revokeUriPermission(String targetPackage, int callingUid, in revokeUriPermission() argument
DUriGrantsManagerService.java775 void revokeUriPermission(String targetPackage, int callingUid, GrantUri grantUri, in revokeUriPermission() argument
798 if (targetPackage != null && !targetPackage.equals(perm.targetPkg)) { in revokeUriPermission()
831 if (targetPackage != null && !targetPackage.equals(perm.targetPkg)) { in revokeUriPermission()
840 targetPackage == null); in revokeUriPermission()
1323 public void revokeUriPermission(String targetPackage, int callingUid, GrantUri grantUri, in revokeUriPermission() argument
1327 targetPackage, callingUid, grantUri, modeFlags); in revokeUriPermission()
/frameworks/base/services/tests/servicestests/src/com/android/server/om/
DOverlayManagerServiceImplTests.java452 boolean createIdmap(@NonNull final PackageInfo targetPackage, in createIdmap() argument
454 final DummyDeviceState.Package t = mState.select(targetPackage.packageName, userId); in createIdmap()
500 public void onOverlaysChanged(@NonNull String targetPackage, int userId) { in onOverlaysChanged() argument
/frameworks/base/packages/LocalTransport/src/com/android/localtransport/
DLocalTransport.java482 public int performFullBackup(PackageInfo targetPackage, ParcelFileDescriptor socket) { in performFullBackup() argument
489 Log.i(TAG, "performFullBackup : " + targetPackage); in performFullBackup()
504 mFullTargetPackage = targetPackage.packageName; in performFullBackup()
/frameworks/base/services/backup/java/com/android/server/backup/restore/
DPerformUnifiedRestoreTask.java172 @Nullable PackageInfo targetPackage, in PerformUnifiedRestoreTask() argument
189 mTargetPackage = targetPackage; in PerformUnifiedRestoreTask()
198 if (targetPackage != null) { in PerformUnifiedRestoreTask()
201 mAcceptSet.add(targetPackage); in PerformUnifiedRestoreTask()
/frameworks/base/services/core/java/com/android/server/pm/
DPackageManagerShellCommand.java567 String targetPackage = null; in runListInstrumentation() local
578 targetPackage = opt; in runListInstrumentation()
592 mInterface.queryInstrumentation(targetPackage, 0 /*flags*/).getList(); in runListInstrumentation()
597 return o1.targetPackage.compareTo(o2.targetPackage); in runListInstrumentation()
612 pw.print(ii.targetPackage); in runListInstrumentation()
2743 final String targetPackage = getNextArg(); in runSetInstaller() local
2746 if (targetPackage == null || installerPackageName == null) { in runSetInstaller()
2751 mInterface.setInstallerPackageName(targetPackage, installerPackageName); in runSetInstaller()
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/android/
DBridgePackageManager.java489 public List<InstrumentationInfo> queryInstrumentation(String targetPackage, int flags) { in queryInstrumentation() argument
689 public void setInstallerPackageName(String targetPackage, String installerPackageName) { in setInstallerPackageName() argument
/frameworks/base/services/tests/servicestests/src/com/android/server/backup/testutils/
DPackageManagerStub.java493 public List<InstrumentationInfo> queryInstrumentation(String targetPackage, int flags) { in queryInstrumentation() argument
705 public void setInstallerPackageName(String targetPackage, String installerPackageName) { in setInstallerPackageName() argument
/frameworks/base/test-mock/src/android/test/mock/
DMockPackageManager.java545 String targetPackage, int flags) { in queryInstrumentation() argument
695 public void setInstallerPackageName(String targetPackage, in setInstallerPackageName() argument

12