Home
last modified time | relevance | path

Searched refs:idmap2 (Results 1 – 25 of 64) sorted by relevance

123

/frameworks/base/cmds/idmap2/idmap2/
DCommands.h25 android::idmap2::Result<android::idmap2::Unit> Create(const std::vector<std::string>& args);
26 android::idmap2::Result<android::idmap2::Unit> CreateMultiple(const std::vector<std::string>& args);
27 android::idmap2::Result<android::idmap2::Unit> Dump(const std::vector<std::string>& args);
28 android::idmap2::Result<android::idmap2::Unit> Lookup(const std::vector<std::string>& args);
DCreate.cpp34 using android::idmap2::BinaryStreamVisitor;
35 using android::idmap2::CommandLineOptions;
36 using android::idmap2::Error;
37 using android::idmap2::Idmap;
38 using android::idmap2::OverlayResourceContainer;
39 using android::idmap2::Result;
40 using android::idmap2::TargetResourceContainer;
41 using android::idmap2::Unit;
42 using android::idmap2::utils::kIdmapFilePermissionMask;
43 using android::idmap2::utils::PoliciesToBitmaskResult;
[all …]
DCreateMultiple.cpp38 using android::idmap2::BinaryStreamVisitor;
39 using android::idmap2::CommandLineOptions;
40 using android::idmap2::Error;
41 using android::idmap2::Idmap;
42 using android::idmap2::OverlayResourceContainer;
43 using android::idmap2::Result;
44 using android::idmap2::TargetResourceContainer;
45 using android::idmap2::Unit;
46 using android::idmap2::utils::kIdmapCacheDir;
47 using android::idmap2::utils::kIdmapFilePermissionMask;
[all …]
DDump.cpp31 using android::idmap2::CommandLineOptions;
32 using android::idmap2::Error;
33 using android::idmap2::Idmap;
34 using android::idmap2::PrettyPrintVisitor;
35 using android::idmap2::RawPrintVisitor;
36 using android::idmap2::Result;
37 using android::idmap2::Unit;
DCommandUtils.cpp28 using android::idmap2::Error;
29 using android::idmap2::IdmapHeader;
30 using android::idmap2::OverlayResourceContainer;
31 using android::idmap2::Result;
32 using android::idmap2::TargetResourceContainer;
33 using android::idmap2::Unit;
DLookup.cpp51 using android::idmap2::CommandLineOptions;
52 using android::idmap2::Error;
53 using android::idmap2::IdmapHeader;
54 using android::idmap2::OverlayResourceContainer;
55 using android::idmap2::ResourceId;
56 using android::idmap2::Result;
57 using android::idmap2::Unit;
DMain.cpp31 using android::idmap2::CommandLineOptions;
32 using android::idmap2::Result;
33 using android::idmap2::Unit;
DCommandUtils.h25 android::idmap2::Result<android::idmap2::Unit> Verify(
/frameworks/base/services/core/java/com/android/server/om/
DIdmapDaemon.java82 private Connection(IIdmap2 idmap2) { in Connection() argument
85 mIdmap2 = idmap2; in Connection()
134 final IIdmap2 idmap2 = c.getIdmap2(); in createIdmap() local
135 if (idmap2 == null) { in createIdmap()
142 return idmap2.createIdmap(targetPath, overlayPath, TextUtils.emptyIfNull(overlayName), in createIdmap()
149 final IIdmap2 idmap2 = c.getIdmap2(); in removeIdmap() local
150 if (idmap2 == null) { in removeIdmap()
156 return idmap2.removeIdmap(overlayPath, userId); in removeIdmap()
164 final IIdmap2 idmap2 = c.getIdmap2(); in verifyIdmap() local
165 if (idmap2 == null) { in verifyIdmap()
[all …]
/frameworks/base/cmds/idmap2/tests/
DBinaryStreamVisitorTests.cpp33 namespace android::idmap2 { namespace
49 const auto idmap2 = std::move(*result2); in TEST() local
52 idmap2->GetHeader()->GetFulfilledPolicies()); in TEST()
54 idmap2->GetHeader()->GetEnforceOverlayable()); in TEST()
55 ASSERT_EQ(idmap1->GetHeader()->GetTargetPath(), idmap2->GetHeader()->GetTargetPath()); in TEST()
56 ASSERT_EQ(idmap1->GetHeader()->GetTargetCrc(), idmap2->GetHeader()->GetTargetCrc()); in TEST()
57 ASSERT_EQ(idmap1->GetHeader()->GetTargetPath(), idmap2->GetHeader()->GetTargetPath()); in TEST()
59 ASSERT_EQ(idmap1->GetData().size(), idmap2->GetData().size()); in TEST()
66 const std::vector<std::unique_ptr<const IdmapData>>& data_blocks2 = idmap2->GetData(); in TEST()
DPoliciesTests.cpp24 using android::idmap2::utils::BitmaskToPolicies;
25 using android::idmap2::utils::PoliciesToBitmaskResult;
30 namespace android::idmap2 { namespace
DRawPrintVisitorTests.cpp36 namespace android::idmap2 { namespace
69 StringPrintf(ADDRESS "%s target crc\n", android::idmap2::TestConstants::TARGET_CRC_STRING), in TEST()
72 StringPrintf(ADDRESS "%s overlay crc\n", android::idmap2::TestConstants::OVERLAY_CRC_STRING), in TEST()
DMain.cpp23 namespace android::idmap2 { namespace
DTestConstants.h20 namespace android::idmap2::TestConstants {
/frameworks/base/cmds/idmap2/include/idmap2/
DSysTrace.h25 namespace android::idmap2::utils {
48 android::idmap2::utils::ScopedTraceNoStart _trace##__LINE__; \
49 android::idmap2::utils::atrace_enabled() \
50 && android::idmap2::utils::ScopedTraceMessageHelper().stream()
64 #define SYSTRACE android::idmap2::utils::DummyStream().stream()
DFileUtils.h25 namespace android::idmap2::utils {
DPolicyUtils.h29 namespace android::idmap2::utils {
/frameworks/base/cmds/idmap2/idmap2d/
DIdmap2Service.cpp46 using android::idmap2::BinaryStreamVisitor;
47 using android::idmap2::FabricatedOverlayContainer;
48 using android::idmap2::Idmap;
49 using android::idmap2::IdmapHeader;
50 using android::idmap2::OverlayResourceContainer;
51 using android::idmap2::PrettyPrintVisitor;
52 using android::idmap2::TargetResourceContainer;
53 using android::idmap2::utils::kIdmapCacheDir;
54 using android::idmap2::utils::kIdmapFilePermissionMask;
55 using android::idmap2::utils::RandomStringForPath;
[all …]
DIdmap2Service.h88 std::unique_ptr<idmap2::TargetResourceContainer> apk;
100 using TargetResourceContainerPtr = MaybeUniquePtr<idmap2::TargetResourceContainer>;
101 idmap2::Result<TargetResourceContainerPtr> GetTargetContainer(const std::string& target_path);
/frameworks/base/cmds/idmap2/self_targeting/
DSelfTargeting.cpp32 using android::idmap2::BinaryStreamVisitor;
33 using android::idmap2::Idmap;
34 using android::idmap2::OverlayResourceContainer;
46 android::idmap2::FabricatedOverlay::Builder builder(packageName, overlayName, in CreateFrroFile()
141 const auto target = idmap2::TargetResourceContainer::FromPath(targetPath); in CreateIdmapFile()
193 const auto overlay = idmap2::FabricatedOverlayContainer::FromPath(overlay_path); in GetFabricatedOverlayInfo()
/frameworks/base/cmds/idmap2/
DAndroid.bp185 "idmap2",
226 ":idmap2",
241 name: "idmap2",
247 "idmap2/CommandUtils.cpp",
248 "idmap2/Create.cpp",
249 "idmap2/CreateMultiple.cpp",
250 "idmap2/Dump.cpp",
251 "idmap2/Lookup.cpp",
252 "idmap2/Main.cpp",
/frameworks/base/cmds/idmap2/libidmap2/
DPolicyUtils.cpp26 using android::idmap2::policy::kPolicyStringToFlag;
28 namespace android::idmap2::utils { namespace
DResourceUtils.cpp27 using android::idmap2::Result;
30 namespace android::idmap2::utils { namespace
DSysTrace.cpp22 namespace android::idmap2::utils { namespace
DResult.cpp23 namespace android::idmap2 { namespace

123