Home
last modified time | relevance | path

Searched refs:targetPackageName (Results 1 – 25 of 54) sorted by relevance

123

/frameworks/base/core/java/android/content/om/
DOverlayInfo.java177 public final String targetPackageName; field in OverlayInfo
247 this(source.packageName, source.overlayName, source.targetPackageName, in OverlayInfo()
254 public OverlayInfo(@NonNull String packageName, @NonNull String targetPackageName, in OverlayInfo() argument
257 this(packageName, null /* overlayName */, targetPackageName, targetOverlayableName, in OverlayInfo()
264 @NonNull String targetPackageName, @Nullable String targetOverlayableName, in OverlayInfo() argument
269 this.targetPackageName = targetPackageName; in OverlayInfo()
285 targetPackageName = source.readString(); in OverlayInfo()
327 return targetPackageName; in getTargetPackageName()
403 if (targetPackageName == null) { in ensureValidState()
433 dest.writeString(targetPackageName); in writeToParcel()
[all …]
DOverlayManager.java280 public List<OverlayInfo> getOverlayInfosForTarget(@NonNull final String targetPackageName, in getOverlayInfosForTarget() argument
283 return mService.getOverlayInfosForTarget(targetPackageName, user.getIdentifier()); in getOverlayInfosForTarget()
302 public void invalidateCachesForOverlay(@NonNull final String targetPackageName, in invalidateCachesForOverlay() argument
305 mService.invalidateCachesForOverlay(targetPackageName, user.getIdentifier()); in invalidateCachesForOverlay()
411 public List<OverlayInfo> getOverlayInfosForTarget(@NonNull final String targetPackageName) { in getOverlayInfosForTarget() argument
413 return mOverlayManagerImpl.getOverlayInfosForTarget(targetPackageName); in getOverlayInfosForTarget()
DFabricatedOverlay.java329 @NonNull String targetPackageName, @Nullable String targetOverlayable, in generateFabricatedOverlayInternal() argument
334 overlay.targetPackageName = targetPackageName; in generateFabricatedOverlayInternal()
/frameworks/base/packages/PackageInstaller/src/com/android/packageinstaller/v2/model/
DUninstallRepository.kt69 private var targetPackageName: String? = null variable in com.android.packageinstaller.v2.model.UninstallRepository
124 targetPackageName = packageUri.encodedSchemeSpecificPart in performPreUninstallChecks()
125 if (targetPackageName == null) { in performPreUninstallChecks()
157 targetPackageName!!, in performPreUninstallChecks()
165 Log.e(LOG_TAG, "Invalid packageName: $targetPackageName") in performPreUninstallChecks()
174 ComponentName(targetPackageName!!, className), in performPreUninstallChecks()
279 val pkgInfo = packageManager.getPackageInfo(targetPackageName!!, 0) in generateUninstallDetails()
283 Log.e(LOG_TAG, "Cannot check hasFragileUserData for $targetPackageName", e) in generateUninstallDetails()
289 targetPackageName!!, in generateUninstallDetails()
401 uninstallData.putString(EXTRA_PACKAGE_NAME, targetPackageName) in initiateUninstall()
[all …]
/frameworks/base/services/core/java/com/android/server/om/
DOverlayActorEnforcer.java94 + overlayInfo.targetPackageName + " for user " + userId; in enforceActor()
113 final String targetPackageName = overlayInfo.targetPackageName; in isAllowedActor() local
114 var targetPkgState = mPackageManager.getPackageStateForUser(targetPackageName, userId); in isAllowedActor()
130 if (ArrayUtils.contains(callingPackageNames, targetPackageName)) { in isAllowedActor()
138 if (mPackageManager.doesTargetDefineOverlayable(targetPackageName, userId)) { in isAllowedActor()
159 targetOverlayable = mPackageManager.getOverlayableForTarget(targetPackageName, in isAllowedActor()
DOverlayManagerServiceImpl.java107 if (!Objects.equals(theTruth.getOverlayTarget(), oldSettings.targetPackageName)) { in mustReinitializeOverlay()
133 if (!Objects.equals(theTruth.targetPackageName, oldSettings.targetPackageName)) { in mustReinitializeOverlay()
246 + oi.targetPackageName + "' in category '" + oi.category + "' for user " in updateOverlaysForUser()
251 UserPackage.of(oi.userId, oi.targetPackageName)); in updateOverlaysForUser()
325 UserPackage.of(userId, info.targetPackageName)); in removeOverlaysForUser()
371 UserPackage.of(userId, currentInfo.targetPackageName)); in updatePackageOverlays()
385 UserPackage.of(userId, currentInfo.targetPackageName)); in updatePackageOverlays()
391 UserPackage.of(userId, currentInfo.targetPackageName)); in updatePackageOverlays()
432 List<OverlayInfo> getOverlayInfosForTarget(@NonNull final String targetPackageName, in getOverlayInfosForTarget() argument
434 return mSettings.getOverlaysForTarget(targetPackageName, userId); in getOverlayInfosForTarget()
[all …]
DOverlayManagerSettings.java76 @NonNull final String targetPackageName, @Nullable final String targetOverlayableName, in init() argument
80 final SettingsItem item = new SettingsItem(overlay, userId, targetPackageName, in init()
180 List<OverlayInfo> getOverlaysForTarget(@NonNull final String targetPackageName, in getOverlaysForTarget() argument
182 final List<SettingsItem> items = selectWhereTarget(targetPackageName, userId); in getOverlaysForTarget()
186 void forEachMatching(int userId, String overlayName, String targetPackageName, in forEachMatching() argument
196 if (targetPackageName != null && !item.mTargetPackageName.equals(targetPackageName)) { in forEachMatching()
517 final String targetPackageName = XmlUtils.readStringAttribute(parser,
530 return new SettingsItem(overlay, userId, targetPackageName, targetOverlayableName,
586 @NonNull final String targetPackageName,
593 mTargetPackageName = targetPackageName;
[all …]
DOverlayManagerService.java609 public List<OverlayInfo> getOverlayInfosForTarget(@Nullable final String targetPackageName,
611 if (targetPackageName == null) {
616 traceBegin(TRACE_TAG_RRO, "OMS#getOverlayInfosForTarget " + targetPackageName);
620 return mImpl.getOverlayInfosForTarget(targetPackageName, realUserId);
1356 public boolean doesTargetDefineOverlayable(String targetPackageName, int userId) in doesTargetDefineOverlayable() argument
1358 var packageState = getPackageStateForUser(targetPackageName, userId); in doesTargetDefineOverlayable()
1566 for (final String targetPackageName : targetPackageNames) { in updatePackageManagerLocked()
1568 if (!"android".equals(targetPackageName)) { in updatePackageManagerLocked()
1569 list.addAll(mImpl.getEnabledOverlayPaths(targetPackageName, userId, true)); in updatePackageManagerLocked()
1571 pendingChanges.put(targetPackageName, list.build()); in updatePackageManagerLocked()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/om/
DOverlayManagerServiceImplTestsBase.java112 void assertOverlayInfoForTarget(final String targetPackageName, int userId, in assertOverlayInfoForTarget() argument
115 mImpl.getOverlayInfosForTarget(targetPackageName, userId); in assertOverlayInfoForTarget()
130 FakeDeviceState.PackageBuilder overlay(String packageName, String targetPackageName) { in overlay() argument
131 return overlay(packageName, targetPackageName, null /* targetOverlayableName */); in overlay()
134 FakeDeviceState.PackageBuilder overlay(String packageName, String targetPackageName, in overlay() argument
136 return new FakeDeviceState.PackageBuilder(packageName, targetPackageName, in overlay()
342 final String targetPackageName; field in OverlayManagerServiceImplTestsBase.FakeDeviceState.Package
350 private Package(String packageName, String targetPackageName, in Package() argument
354 this.targetPackageName = targetPackageName; in Package()
369 when(pkg.getOverlayTarget()).thenReturn(targetPackageName); in getPackageForUser()
[all …]
DOverlayActorEnforcerTests.kt261 var targetPackageName: String = TARGET_PKG, in <lambda>() variable in com.android.server.om.OverlayActorEnforcerTests.Companion.OverlayInfoParams
267 targetPackageName, in <lambda>()
405 override fun doesTargetDefineOverlayable(targetPackageName: String?, userId: Int): Boolean { in <lambda>()
408 targetPkgState == null || targetPkgState?.packageName == targetPackageName in <lambda>()
/frameworks/base/core/jni/
Dcom_android_internal_content_om_OverlayManagerImpl.cpp34 jfieldID targetPackageName; member
68 jfieldID targetPackageName; member
119 const std::string& overlayName, const std::string& targetPackageName, in callCreateFrroFile() argument
123 return createFrroFile_(out_error, packageName, overlayName, targetPackageName, in callCreateFrroFile()
160 const std::string& targetPackageName,
240 gFabricatedOverlayInternalOffsets.targetPackageName); in CreateFrroFile()
241 const ScopedUtfChars targetPackageName(env, jsTargetPackageName); in CreateFrroFile() local
242 if (targetPackageName.c_str() == nullptr) { in CreateFrroFile()
261 frroFilePath.c_str(), packageName.c_str(), overlayName.c_str(), targetPackageName.c_str(), in CreateFrroFile()
310 targetPackageName.c_str(), overlayable, entries_params, in CreateFrroFile()
[all …]
/frameworks/base/services/tests/PackageManagerServiceTests/unit/src/com/android/server/pm/test/verify/domain/
DDomainVerificationEnforcerTest.kt173 it.targetPackageName, it.userId in <lambda>()
182 it.targetPackageName, it.userId in <lambda>()
187 it.targetPackageName, in <lambda>()
195 it.targetPackageName, in <lambda>()
201 verifyPackages(listOf(it.targetPackageName), true) in <lambda>()
204 clearDomainVerificationState(listOf(it.targetPackageName)) in <lambda>()
207 clearUserStates(listOf(it.targetPackageName), it.userId) in <lambda>()
213 getDomainVerificationInfo(it.targetPackageName) in <lambda>()
225 it.targetPackageName, in <lambda>()
252 setDomainVerificationLinkHandlingAllowed(it.targetPackageName, true, it.userId) in <lambda>()
[all …]
/frameworks/base/core/java/com/android/internal/content/om/
DOverlayScanner.java50 public final String targetPackageName; field in OverlayScanner.ParsedOverlayInfo
57 public ParsedOverlayInfo(String packageName, String targetPackageName, in ParsedOverlayInfo() argument
61 this.targetPackageName = targetPackageName; in ParsedOverlayInfo()
74 packageName, targetPackageName, targetSdkVersion, isStatic, in toString()
DOverlayManagerImpl.java237 checkPackageName(overlayInternal.targetPackageName); in registerFabricatedOverlay()
258 isSameWithTargetSignature(overlayInternal.targetPackageName), in registerFabricatedOverlay()
359 if (!TextUtils.equals(targetPackage, fabricatedOverlayInfo.targetPackageName)) { in getOverlayInfosForTarget()
370 fabricatedOverlayInfo.targetPackageName, in getOverlayInfosForTarget()
DOverlayConfig.java121 if (!o1.targetPackageName.equals(o2.targetPackageName)) {
122 return o1.targetPackageName.compareTo(o2.targetPackageName);
497 || !"android".equals(overlay.parsedConfig.parsedInfo.targetPackageName)) { in getImmutableFrameworkOverlayIdmapInvocations()
/frameworks/base/services/core/java/com/android/server/display/color/
DColorDisplayShellCommand.java78 final String targetPackageName = getPackageName(); in setLayerSaturation() local
79 if (targetPackageName == null) { in setLayerSaturation()
83 mService.setAppSaturationLevelInternal(callerPackageName, targetPackageName, level); in setLayerSaturation()
/frameworks/base/core/java/com/android/internal/app/
DUnlaunchableAppActivity.java70 String targetPackageName = intent.getStringExtra(Intent.EXTRA_PACKAGE_NAME); in onCreate() local
71 Log.i(TAG, "Unlaunchable activity for target package: " + targetPackageName); in onCreate()
83 Log.e(TAG, "Unlaunchable activity for target package " + targetPackageName in onCreate()
96 (targetPackageName != null && targetPackageName.equals( in onCreate()
DHarmfulAppWarningActivity.java129 public static Intent createHarmfulAppWarningIntent(Context context, String targetPackageName, in createHarmfulAppWarningIntent() argument
133 intent.putExtra(Intent.EXTRA_PACKAGE_NAME, targetPackageName); in createHarmfulAppWarningIntent()
/frameworks/base/test-runner/src/android/test/
DActivityInstrumentationTestCase.java75 final String targetPackageName = getInstrumentation().getTargetContext().getPackageName(); in setUp() local
76 setActivity(launchActivity(targetPackageName, mActivityClass, null)); in setUp()
/frameworks/base/services/core/java/com/android/server/vr/
DVrManagerService.java373 final ComponentName targetPackageName; field in VrManagerService.VrState
378 VrState(boolean enabled, boolean running2dInVr, ComponentName targetPackageName, int userId, in VrState() argument
384 this.targetPackageName = targetPackageName; in VrState()
390 VrState(boolean enabled, boolean running2dInVr, ComponentName targetPackageName, int userId, in VrState() argument
396 this.targetPackageName = targetPackageName; in VrState()
423 sb.append((targetPackageName == null) ? "None" in toLogString()
424 : targetPackageName.flattenToString()); in toLogString()
1222 mPendingState.targetPackageName, mPendingState.userId, mPendingState.processId, in consumeAndApplyPendingStateLocked()
1268 private void setVrMode(boolean enabled, @NonNull ComponentName targetPackageName, in setVrMode() argument
1282 targetListener = targetPackageName; in setVrMode()
[all …]
/frameworks/base/core/tests/coretests/src/com/android/internal/content/res/
DOverlayConfigIterationRule.java73 TestOverlayInfo(String packageName, String targetPackageName, in TestOverlayInfo() argument
76 super(packageName, targetPackageName, targetSdkVersion, isStatic, priority, path, null); in TestOverlayInfo()
189 when(a.getOverlayTarget()).thenReturn(info.targetPackageName); in apply()
/frameworks/base/cmds/idmap2/idmap2d/aidl/core/android/os/
DFabricatedOverlayInfo.aidl26 @utf8InCpp String targetPackageName;
DFabricatedOverlayInternal.aidl27 @utf8InCpp String targetPackageName;
/frameworks/base/media/java/android/media/
DIMediaRouterService.aidl79 String targetPackageName); in getSystemSessionInfoForPackage() argument
81 …ter(IMediaRouter2Manager manager, String callingPackageName, String targetPackageName, in UserHand… in registerProxyRouter() argument
/frameworks/base/packages/SystemUI/src/com/android/systemui/theme/
DThemeOverlayApplier.java219 mTargetPackageToCategories.get(o.targetPackageName).contains( in applyCurrentUserOverlays()
294 if (overlayInfo == null || overlayInfo.targetPackageName.equals(mLauncherPackage) in setEnabled()
295 || overlayInfo.targetPackageName.equals(mThemePickerPackage)) { in setEnabled()

123