/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/decor/ |
D | OverlayWindowTest.kt | 48 private lateinit var overlay: OverlayWindow variable in com.android.systemui.decor.OverlayWindowTest 79 overlay = OverlayWindow(mContext) in setUp() 85 overlay.addDecorProvider(decorProvider1, rotation, Color.BLACK) in testAddProvider() 86 overlay.addDecorProvider(decorProvider2, rotation, Color.YELLOW) in testAddProvider() 89 mContext, overlay.rootView, rotation, Color.BLACK in testAddProvider() 92 mContext, overlay.rootView, rotation, Color.YELLOW in testAddProvider() 95 val view1FoundFromRootView = overlay.rootView.findViewById<View>(TEST_DECOR_VIEW_ID_1) in testAddProvider() 97 Assert.assertEquals(view1FoundFromRootView, overlay.getView(TEST_DECOR_VIEW_ID_1)) in testAddProvider() 98 val view2FoundFromRootView = overlay.rootView.findViewById<View>(TEST_DECOR_VIEW_ID_2) in testAddProvider() 100 Assert.assertEquals(view2FoundFromRootView, overlay.getView(TEST_DECOR_VIEW_ID_2)) in testAddProvider() [all …]
|
/frameworks/base/core/tests/overlaytests/device/src/com/android/overlaytest/ |
D | FabricatedOverlaysTest.java | 85 final FabricatedOverlay overlay = new FabricatedOverlay.Builder( in testFabricatedOverlay() local 92 .registerFabricatedOverlay(overlay) in testFabricatedOverlay() 95 OverlayInfo info = mOverlayManager.getOverlayInfo(overlay.getIdentifier(), mUserHandle); in testFabricatedOverlay() 100 .setEnabled(overlay.getIdentifier(), true, mUserId) in testFabricatedOverlay() 103 info = mOverlayManager.getOverlayInfo(overlay.getIdentifier(), mUserHandle); in testFabricatedOverlay() 109 .unregisterFabricatedOverlay(overlay.getIdentifier()) in testFabricatedOverlay() 117 final FabricatedOverlay overlay = new FabricatedOverlay.Builder( in testRegisterEnableAtomic() local 124 .registerFabricatedOverlay(overlay) in testRegisterEnableAtomic() 125 .setEnabled(overlay.getIdentifier(), true, mUserId) in testRegisterEnableAtomic() 133 FabricatedOverlay overlay = new FabricatedOverlay.Builder( in testRegisterTwice() local [all …]
|
/frameworks/base/core/java/android/content/om/ |
D | OverlayManagerTransaction.java | 106 …final OverlayIdentifier overlay = source.readParcelable(null, android.content.om.OverlayIdentifier… in OverlayManagerTransaction() local 109 mRequests.add(new Request(request, overlay, userId, extras)); in OverlayManagerTransaction() 162 public final OverlayIdentifier overlay; field in OverlayManagerTransaction.Request 169 public Request(@RequestType final int type, @NonNull final OverlayIdentifier overlay, in Request() argument 171 this(type, overlay, userId, null /* extras */); in Request() 174 public Request(@RequestType final int type, @NonNull final OverlayIdentifier overlay, in Request() argument 177 this.overlay = overlay; in Request() 185 type, typeToString(), overlay, userId); in toString() 233 public Builder setEnabled(@NonNull OverlayIdentifier overlay, boolean enable) { in setEnabled() argument 234 return setEnabled(overlay, enable, UserHandle.myUserId()); in setEnabled() [all …]
|
/frameworks/base/cmds/idmap2/tests/ |
D | ResourceMappingTests.cpp | 59 auto overlay = OverlayResourceContainer::FromPath(overlay_path); in TestGetResourceMapping() local 60 if (!overlay) { in TestGetResourceMapping() 61 return Error(overlay.GetError(), R"(Failed to load overlay "%s")", overlay_path.c_str()); in TestGetResourceMapping() 64 auto overlay_info = (*overlay)->FindOverlayInfo(overlay_name); in TestGetResourceMapping() 71 return ResourceMapping::FromContainers(**target, **overlay, *overlay_info, fulfilled_policies, in TestGetResourceMapping() 152 MappingExists(res, R::target::integer::int1, R::overlay::integer::int1, false /* rewrite */)); in TEST() 154 MappingExists(res, R::target::string::str1, R::overlay::string::str1, false /* rewrite */)); in TEST() 156 MappingExists(res, R::target::string::str3, R::overlay::string::str3, false /* rewrite */)); in TEST() 158 MappingExists(res, R::target::string::str4, R::overlay::string::str4, false /* rewrite */)); in TEST() 170 MappingExists(res, R::target::string::str1, R::overlay::string::str4, true /* rewrite */)); in TEST() [all …]
|
D | ResourceUtilsTests.cpp | 65 auto overlay = in TEST_F() local 67 ASSERT_TRUE(overlay); in TEST_F() 69 auto info = (*overlay)->FindOverlayInfo("InvalidName"); in TEST_F() 74 auto overlay = in TEST_F() local 76 ASSERT_TRUE(overlay); in TEST_F() 78 auto info = (*overlay)->FindOverlayInfo("ValidName"); in TEST_F() 83 auto overlay = in TEST_F() local 85 ASSERT_TRUE(overlay); in TEST_F() 87 auto info = (*overlay)->FindOverlayInfo("ValidNameAndTargetPackage"); in TEST_F()
|
D | IdmapTests.cpp | 195 auto overlay = OverlayResourceContainer::FromPath(overlay_apk_path); in TEST() local 196 ASSERT_TRUE(overlay); in TEST() 199 **target, **overlay, TestConstants::OVERLAY_NAME_ALL_POLICIES, PolicyFlags::PUBLIC, in TEST() 224 auto overlay = OverlayResourceContainer::FromPath(overlay_apk_path); in TEST() local 225 ASSERT_TRUE(overlay); in TEST() 228 **target, **overlay, TestConstants::OVERLAY_NAME_DEFAULT, PolicyFlags::PUBLIC, in TEST() 242 ASSERT_TARGET_ENTRY(target_entries[0], R::target::integer::int1, R::overlay::integer::int1); in TEST() 243 ASSERT_TARGET_ENTRY(target_entries[1], R::target::string::str1, R::overlay::string::str1); in TEST() 244 ASSERT_TARGET_ENTRY(target_entries[2], R::target::string::str3, R::overlay::string::str3); in TEST() 245 ASSERT_TARGET_ENTRY(target_entries[3], R::target::string::str4, R::overlay::string::str4); in TEST() [all …]
|
D | FabricatedOverlayTests.cpp | 28 auto overlay = in TEST() local 33 ASSERT_TRUE(overlay); in TEST() 34 auto container = FabricatedOverlayContainer::FromOverlay(std::move(*overlay)); in TEST() 49 auto overlay = in TEST() local 65 ASSERT_TRUE(overlay); in TEST() 66 auto container = FabricatedOverlayContainer::FromOverlay(std::move(*overlay)); in TEST() 139 auto overlay = in TEST() local 146 ASSERT_TRUE(overlay); in TEST() 149 ASSERT_TRUE((*overlay).ToBinaryStream(out)); in TEST()
|
D | PrettyPrintVisitorTests.cpp | 42 auto overlay = OverlayResourceContainer::FromPath(overlay_apk_path); in TEST() local 43 ASSERT_TRUE(overlay); in TEST() 45 const auto idmap = Idmap::FromContainers(**target, **overlay, TestConstants::OVERLAY_NAME_DEFAULT, in TEST() 56 R::target::integer::int1, R::overlay::integer::int1)), in TEST()
|
/frameworks/base/services/core/java/com/android/server/om/ |
D | OverlayManagerServiceImpl.java | 40 import android.content.pm.overlay.OverlayPaths; 241 final OverlayIdentifier overlay = new OverlayIdentifier(defaultOverlay); in updateOverlaysForUser() local 243 final OverlayInfo oi = mSettings.getOverlayInfo(overlay, newUserId); in updateOverlaysForUser() 248 mSettings.setEnabled(overlay, newUserId, true); in updateOverlaysForUser() 362 final OverlayIdentifier overlay = new OverlayIdentifier(pkg.getPackageName()); in updatePackageOverlays() local 365 OverlayInfo currentInfo = mSettings.getNullableOverlayInfo(overlay, userId); in updatePackageOverlays() 374 currentInfo = mSettings.init(overlay, userId, pkg.getOverlayTarget(), in updatePackageOverlays() 383 mSettings.setPriority(overlay, userId, priority); in updatePackageOverlays() 442 Set<UserPackage> setEnabled(@NonNull final OverlayIdentifier overlay, in setEnabled() argument 446 overlay, enable, userId)); in setEnabled() [all …]
|
D | OverlayManagerSettings.java | 75 OverlayInfo init(@NonNull final OverlayIdentifier overlay, final int userId, in init() argument 79 remove(overlay, userId); in init() 80 final SettingsItem item = new SettingsItem(overlay, userId, targetPackageName, in init() 90 boolean remove(@NonNull final OverlayIdentifier overlay, final int userId) { in remove() argument 91 final int idx = select(overlay, userId); in remove() 99 @NonNull OverlayInfo getOverlayInfo(@NonNull final OverlayIdentifier overlay, final int userId) in getOverlayInfo() argument 101 final int idx = select(overlay, userId); in getOverlayInfo() 103 throw new BadKeyException(overlay, userId); in getOverlayInfo() 109 OverlayInfo getNullableOverlayInfo(@NonNull final OverlayIdentifier overlay, final int userId) { in getNullableOverlayInfo() argument 110 final int idx = select(overlay, userId); in getNullableOverlayInfo() [all …]
|
D | OverlayManagerShellCommand.java | 250 final OverlayIdentifier overlay = OverlayIdentifier.fromString(getNextArgRequired()); in runEnableDisable() local 252 .setEnabled(overlay, enable, userId) in runEnableDisable() 320 FabricatedOverlay overlay = new FabricatedOverlay(name, targetPackage); in runFabricate() local 321 overlay.setTargetOverlayable(targetOverlayable); in runFabricate() 322 overlay.setOwningPackage(overlayPackageName); in runFabricate() 324 int result = addOverlayValuesFromXml(overlay, targetPackage, filename); in runFabricate() 332 if (addOverlayValue(overlay, resourceName, typeStr, strData, config) != 0) { in runFabricate() 338 .registerFabricatedOverlay(overlay).build()); in runFabricate() 343 FabricatedOverlay overlay, String targetPackage, String filename) { in addOverlayValuesFromXml() argument 391 if (addOverlayValue(overlay, targetPackage + ':' + target, in addOverlayValuesFromXml() [all …]
|
D | OverlayManagerService.java | 58 import android.content.pm.overlay.OverlayPaths; 634 public OverlayInfo getOverlayInfoByIdentifier(@Nullable final OverlayIdentifier overlay, 636 if (overlay == null || overlay.getPackageName() == null) { 641 traceBegin(TRACE_TAG_RRO, "OMS#getOverlayInfo " + overlay); 645 return mImpl.getOverlayInfo(overlay, realUserId); 662 final OverlayIdentifier overlay = new OverlayIdentifier(packageName); 664 enforceActor(overlay, "setEnabled", realUserId); 671 mImpl.setEnabled(overlay, enable, realUserId)); 695 final OverlayIdentifier overlay = new OverlayIdentifier(packageName); 697 enforceActor(overlay, "setEnabledExclusive", realUserId); [all …]
|
/frameworks/base/libs/androidfw/tests/data/overlay/ |
D | build | 23 aapt2 link -I $FRAMEWORK_RES_APK --manifest AndroidManifest.xml -o overlay.apk compiled.flata \ 31 --overlay-apk-path overlay/overlay.apk --idmap-path overlay/overlay.idmap
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/shared/plugins/ |
D | VersionInfoTest.java | 51 VersionInfo overlay = new VersionInfo().addClass(OverlayPlugin.class); in testSingleProvides() local 53 overlay.checkVersion(impl); in testSingleProvides() 58 VersionInfo overlay = new VersionInfo().addClass(OverlayPlugin.class); in testIncorrectVersion() local 61 overlay.checkVersion(impl); in testIncorrectVersion() 66 VersionInfo overlay = new VersionInfo().addClass(OverlayPlugin.class); in testMissingRequired() local 69 overlay.checkVersion(impl); in testMissingRequired() 74 VersionInfo overlay = new VersionInfo().addClass(QS.class); in testMissingDependencies() local 77 overlay.checkVersion(impl); in testMissingDependencies() 82 VersionInfo overlay = new VersionInfo().addClass(QS.class); in testHasDependencies() local 84 overlay.checkVersion(impl); in testHasDependencies()
|
/frameworks/base/core/tests/overlaytests/remount/test-apps/overlay_apex/ |
D | Android.bp | 27 name: "com.android.overlaytest.overlay.pem", 28 out: ["com.android.overlaytest.overlay.pem"], 33 name: "com.android.overlaytest.overlay.pubkey", 34 srcs: [":com.android.overlaytest.overlay.pem"], 35 out: ["com.android.overlaytest.overlay.pubkey"], 41 name: "com.android.overlaytest.overlay.key", 42 public_key: ":com.android.overlaytest.overlay.pubkey", 43 private_key: ":com.android.overlaytest.overlay.pem", 47 name: "com.android.overlaytest.overlay", 50 key: "com.android.overlaytest.overlay.key",
|
/frameworks/base/cmds/idmap2/idmap2d/ |
D | Idmap2Service.cpp | 132 const auto overlay = OverlayResourceContainer::FromPath(overlay_path); in verifyIdmap() local 133 if (!overlay) { in verifyIdmap() 140 header->IsUpToDate(*GetPointer(*target), **overlay, overlay_name, in verifyIdmap() 179 const auto overlay = OverlayResourceContainer::FromPath(overlay_path); in createIdmap() local 180 if (!overlay) { in createIdmap() 184 const auto idmap = Idmap::FromContainers(*GetPointer(*target), **overlay, overlay_name, in createIdmap() 254 const os::FabricatedOverlayInternal& overlay, in createFabricatedOverlay() argument 256 idmap2::FabricatedOverlay::Builder builder(overlay.packageName, overlay.overlayName, in createFabricatedOverlay() 257 overlay.targetPackageName); in createFabricatedOverlay() 258 if (!overlay.targetOverlayable.empty()) { in createFabricatedOverlay() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/om/ |
D | OverlayReferenceMapperTests.kt | 57 val overlay = mockOverlay() in <lambda>() constant 58 val existing = mapper.addInOrder(overlay) { in <lambda>() 65 assertMapping(ACTOR_PACKAGE_NAME to setOf(target, overlay)) in <lambda>() 121 val overlay = mockOverlay() in <lambda>() constant 126 mapper.addInOrder(overlay, existing = existing) { in <lambda>() 129 assertMapping(ACTOR_PACKAGE_NAME to setOf(target, overlay)) in <lambda>() 130 mapper.remove(overlay) { in <lambda>() 140 val overlay = mockOverlay() in <lambda>() constant 143 overlay.packageName to mapOf( in <lambda>() 149 mapper.addInOrder(target0, target1, overlay) { in <lambda>() [all …]
|
D | OverlayManagerServiceImplTests.java | 67 installAndAssert(overlay(OVERLAY, TARGET), USER, in testGetOverlayInfo() 80 installAndAssert(overlay(OVERLAY, TARGET), USER, in testGetOverlayInfosForTarget() 82 installAndAssert(overlay(OVERLAY2, TARGET), USER, in testGetOverlayInfosForTarget() 84 installAndAssert(overlay(OVERLAY3, TARGET), USER2, in testGetOverlayInfosForTarget() 110 installAndAssert(overlay(OVERLAY, TARGET), USER, in testGetOverlayInfosForUser() 112 installAndAssert(overlay(OVERLAY2, TARGET), USER, in testGetOverlayInfosForUser() 114 installAndAssert(overlay(OVERLAY3, TARGET2), USER, in testGetOverlayInfosForUser() 139 installAndAssert(overlay(OVERLAY, TARGET), USER, in testPriority() 141 installAndAssert(overlay(OVERLAY2, TARGET), USER, in testPriority() 143 installAndAssert(overlay(OVERLAY3, TARGET), USER, in testPriority() [all …]
|
/frameworks/base/apct-tests/perftests/core/src/android/app/ |
D | OverlayManagerPerfTest.java | 77 for (TestPackageInstaller.InstalledPackage overlay : sSmallOverlays) { in classTearDown() 78 overlay.uninstall(); in classTearDown() 81 for (TestPackageInstaller.InstalledPackage overlay : sLargeOverlays) { in classTearDown() 82 overlay.uninstall(); in classTearDown() 89 for (TestPackageInstaller.InstalledPackage overlay : sSmallOverlays) { in tearDown() 90 assertSetEnabled(sContext, overlay.getPackageName(), false); in tearDown() 93 for (TestPackageInstaller.InstalledPackage overlay : sLargeOverlays) { in tearDown() 94 assertSetEnabled(sContext, overlay.getPackageName(), false); in tearDown() 210 for (TestPackageInstaller.InstalledPackage overlay : sSmallOverlays) { in getStringTenOverlays() 211 assertSetEnabled(sContext, overlay.getPackageName(), true); in getStringTenOverlays() [all …]
|
/frameworks/base/apct-tests/perftests/core/apps/overlay/ |
D | Android.bp | 99 "--rename-manifest-package com.android.perftests.overlay.large0", 107 "--rename-manifest-package com.android.perftests.overlay.large1", 115 "--rename-manifest-package com.android.perftests.overlay.large2", 123 "--rename-manifest-package com.android.perftests.overlay.large3", 131 "--rename-manifest-package com.android.perftests.overlay.large4", 139 "--rename-manifest-package com.android.perftests.overlay.large5", 147 "--rename-manifest-package com.android.perftests.overlay.large6", 155 "--rename-manifest-package com.android.perftests.overlay.large7", 163 "--rename-manifest-package com.android.perftests.overlay.large8", 171 "--rename-manifest-package com.android.perftests.overlay.large9", [all …]
|
/frameworks/base/packages/SystemUI/compose/core/src/com/android/compose/animation/ |
D | ExpandableController.kt | 80 val overlay = remember { mutableStateOf<ViewGroupOverlay?>(null) } in rememberExpandableController() constant 111 overlay, in rememberExpandableController() 129 internal val overlay: MutableState<ViewGroupOverlay?>, constant in com.android.compose.animation.ExpandableControllerImpl 293 overlay.value = composeViewRoot.rootView.overlay as ViewGroupOverlay in activityController() 300 overlay.value = null in activityController() 312 val newOverlay = viewGroup.overlay as ViewGroupOverlay in dialogController() 313 if (newOverlay != overlay.value) { in dialogController() 314 overlay.value = newOverlay in dialogController() 319 if (overlay.value != null) { in dialogController() 320 overlay.value = null in dialogController()
|
/frameworks/base/tools/aapt2/link/ |
D | TableMerger.h | 70 bool Merge(const android::Source& src, ResourceTable* table, bool overlay); 78 bool MergeFile(const ResourceFile& fileDesc, bool overlay, io::IFile* file); 89 bool MergeImpl(const android::Source& src, ResourceTable* src_table, bool overlay, 93 bool overlay, bool allow_new_resources);
|
D | TableMerger.cpp | 40 bool TableMerger::Merge(const android::Source& src, ResourceTable* table, bool overlay) { in Merge() argument 44 return MergeImpl(src, table, overlay, options_.auto_add_overlay || !overlay /*allow_new*/); in Merge() 48 bool TableMerger::MergeImpl(const android::Source& src, ResourceTable* table, bool overlay, in MergeImpl() argument 61 error |= !DoMerge(src, package.get(), false /*mangle*/, overlay, allow_new); in MergeImpl() 202 IAaptContext* context, const ResourceNameRef& res_name, bool overlay, in MergeConfigValue() argument 211 if (overlay) { in MergeConfigValue() 219 if (overlay) { in MergeConfigValue() 235 bool mangle_package, bool overlay, bool allow_new_resources) { in DoMerge() argument 283 context_, res_name, overlay, options_.override_styles_instead_of_overlaying, in DoMerge() 315 if (overlay && original_comment) { in DoMerge() [all …]
|
/frameworks/base/core/java/android/view/accessibility/ |
D | CaptioningManager.java | 502 public CaptionStyle applyStyle(@NonNull CaptionStyle overlay) { in applyStyle() argument 503 final int newForegroundColor = overlay.hasForegroundColor() ? in applyStyle() 504 overlay.foregroundColor : foregroundColor; in applyStyle() 505 final int newBackgroundColor = overlay.hasBackgroundColor() ? in applyStyle() 506 overlay.backgroundColor : backgroundColor; in applyStyle() 507 final int newEdgeType = overlay.hasEdgeType() ? in applyStyle() 508 overlay.edgeType : edgeType; in applyStyle() 509 final int newEdgeColor = overlay.hasEdgeColor() ? in applyStyle() 510 overlay.edgeColor : edgeColor; in applyStyle() 511 final int newWindowColor = overlay.hasWindowColor() ? in applyStyle() [all …]
|
/frameworks/base/cmds/idmap2/self_targeting/ |
D | SelfTargeting.cpp | 148 const auto overlay = OverlayResourceContainer::FromPath(overlayPath); in CreateIdmapFile() local 149 if (!overlay) { in CreateIdmapFile() 151 overlay.GetErrorMessage().c_str()); in CreateIdmapFile() 159 const auto idmap = Idmap::FromContainers(**target, **overlay, overlayName, in CreateIdmapFile() 193 const auto overlay = idmap2::FabricatedOverlayContainer::FromPath(overlay_path); in GetFabricatedOverlayInfo() local 194 if (!overlay) { in GetFabricatedOverlayInfo() 200 out_info = (*overlay)->GetManifestInfo(); in GetFabricatedOverlayInfo()
|