Home
last modified time | relevance | path

Searched refs:ApexInfo (Results 1 – 25 of 48) sorted by relevance

12

/system/update_engine/aosp/
Dapex_handler_android_unittest.cc32 ApexInfo CreateApexInfo(const std::string& package_name, in CreateApexInfo()
36 ApexInfo result; in CreateApexInfo()
46 std::vector<ApexInfo> apex_infos; in TEST()
47 ApexInfo compressed_apex_1 = CreateApexInfo("sample1", 1, true, 1); in TEST()
48 ApexInfo compressed_apex_2 = CreateApexInfo("sample2", 2, true, 2); in TEST()
49 ApexInfo uncompressed_apex = CreateApexInfo("uncompressed", 1, false, 4); in TEST()
60 std::vector<ApexInfo> apex_infos; in TEST()
61 ApexInfo compressed_apex_1 = CreateApexInfo("sample1", 1, true, 1); in TEST()
62 ApexInfo compressed_apex_2 = CreateApexInfo("sample2", 2, true, 2); in TEST()
63 ApexInfo uncompressed_apex = CreateApexInfo("uncompressed", 1, false, 4); in TEST()
[all …]
Dapex_handler_android.h37 const std::vector<ApexInfo>& apex_infos) const;
38 bool AllocateSpace(const std::vector<ApexInfo>& apex_infos) const;
47 const std::vector<ApexInfo>& apex_infos) const;
48 bool AllocateSpace(const std::vector<ApexInfo>& apex_infos) const;
Dapex_handler_android.cc32 const std::vector<ApexInfo>& apex_infos) { in CreateCompressedApexInfoList()
59 const std::vector<ApexInfo>& apex_infos) const { in CalculateSize()
79 const std::vector<ApexInfo>& apex_infos) const { in AllocateSpace()
101 const std::vector<ApexInfo>& apex_infos) const { in CalculateSize()
106 const std::vector<ApexInfo>& apex_infos) const { in AllocateSpace()
Dapex_handler_interface.h32 const std::vector<ApexInfo>& apex_infos) const = 0;
33 virtual bool AllocateSpace(const std::vector<ApexInfo>& apex_infos) const = 0;
/system/apex/tests/src/com/android/tests/apex/
DApexRollbackTests.java30 import com.android.tradefed.device.ITestDevice.ApexInfo;
130 ApexInfo ctsShimV1 = new ApexInfo("com.android.apex.cts.shim", 1L); in testAutomaticBootLoopRecovery()
131 ApexInfo ctsShimV2 = new ApexInfo("com.android.apex.cts.shim", 2L); in testAutomaticBootLoopRecovery()
132 Set<ApexInfo> activatedApexes = device.getActiveApexes(); in testAutomaticBootLoopRecovery()
170 ApexInfo ctsShimV1 = new ApexInfo("com.android.apex.cts.shim", 1L); in testSessionNotRevertedWithCheckpointingDisabled()
171 ApexInfo ctsShimV2 = new ApexInfo("com.android.apex.cts.shim", 2L); in testSessionNotRevertedWithCheckpointingDisabled()
175 Set<ApexInfo> activatedApexes = device.getActiveApexes(); in testSessionNotRevertedWithCheckpointingDisabled()
208 ApexInfo ctsShimV1 = new ApexInfo("com.android.apex.cts.shim", 1L); in testCheckpointingRevertsSession()
209 ApexInfo ctsShimV2 = new ApexInfo("com.android.apex.cts.shim", 2L); in testCheckpointingRevertsSession()
213 Set<ApexInfo> activatedApexes = device.getActiveApexes(); in testCheckpointingRevertsSession()
[all …]
DApexdHostTest.java26 import com.android.apex.ApexInfo;
88 final Set<ITestDevice.ApexInfo> activeApexes = getDevice().getActiveApexes(); in testOrphanedApexIsNotActivated()
89 ITestDevice.ApexInfo testApex = new ITestDevice.ApexInfo( in testOrphanedApexIsNotActivated()
109 final Set<ITestDevice.ApexInfo> activeApexes = getDevice().getActiveApexes(); in testApexWithoutPbIsNotActivated()
110 ITestDevice.ApexInfo testApex = new ITestDevice.ApexInfo( in testApexWithoutPbIsNotActivated()
140 final Set<ITestDevice.ApexInfo> activeApexes = getDevice().getActiveApexes(); in testRemountApex()
141 ITestDevice.ApexInfo testApex = new ITestDevice.ApexInfo( in testRemountApex()
172 final Set<ITestDevice.ApexInfo> activeApexes = getDevice().getActiveApexes(); in testApexWithoutPbIsNotActivated_ProductPartitionHasOlderVersion()
173 assertThat(activeApexes).contains(new ITestDevice.ApexInfo( in testApexWithoutPbIsNotActivated_ProductPartitionHasOlderVersion()
175 assertThat(activeApexes).doesNotContain(new ITestDevice.ApexInfo( in testApexWithoutPbIsNotActivated_ProductPartitionHasOlderVersion()
[all …]
DApexE2EBaseHostTest.java30 import com.android.tradefed.device.ITestDevice.ApexInfo;
100 ApexInfo apex = installApex(mApexFileName); in stageActivateUninstallApexPackage()
103 Set<ApexInfo> activatedApexes = getDevice().getActiveApexes(); in stageActivateUninstallApexPackage()
111 ApexInfo apex = mHostUtils.getApexInfo(mHostUtils.getTestFile(filename)); in uninstallAllApexes()
116 protected final ApexInfo installApex(String filename) throws Exception { in installApex()
123 ApexInfo testApexInfo = mHostUtils.getApexInfo(testAppFile); in installApex()
/system/linkerconfig/modules/include/linkerconfig/
Dbasecontext.h35 void AddApexModule(ApexInfo apex_module);
36 const std::vector<ApexInfo>& GetApexModules() const;
41 virtual Namespace BuildApexNamespace(const ApexInfo& apex_info,
52 std::vector<ApexInfo> apex_modules_;
Dapex.h28 struct ApexInfo { struct
43 ApexInfo() = default; // for std::map::operator[] argument
44 ApexInfo(std::string name, std::string path, in ApexInfo() argument
70 android::base::Result<std::map<std::string, ApexInfo>> ScanActiveApexes(
/system/apex/apexd/
Dapexd_test_utils.h99 AllOf(Field("moduleName", &ApexInfo::moduleName, Eq(other.moduleName)),
100 Field("modulePath", &ApexInfo::modulePath, Eq(other.modulePath)),
101 Field("preinstalledModulePath", &ApexInfo::preinstalledModulePath,
103 Field("versionCode", &ApexInfo::versionCode, Eq(other.versionCode)),
104 Field("isFactory", &ApexInfo::isFactory, Eq(other.isFactory)),
105 Field("isActive", &ApexInfo::isActive, Eq(other.isActive))),
157 inline void PrintTo(const ApexInfo& apex, std::ostream* os) { in PrintTo()
324 Property("moduleName", &ApexInfo::getModuleName,
326 Property("modulePath", &ApexInfo::getModulePath,
329 &ApexInfo::getPreinstalledModulePath,
[all …]
/system/apex/apexd/aidl/android/apex/
DIApexService.aidl19 import android.apex.ApexInfo;
32 ApexInfo[] getActivePackages(); in getActivePackages()
33 ApexInfo[] getAllPackages(); in getAllPackages()
72 ApexInfo getActivePackage(in @utf8InCpp String package_name); in getActivePackage()
161 ApexInfo installAndActivatePackage(in @utf8InCpp String packagePath); in installAndActivatePackage()
DApexInfoList.aidl19 import android.apex.ApexInfo;
22 ApexInfo[] apexInfos;
/system/linkerconfig/modules/
Dbasecontext.cc25 void BaseContext::AddApexModule(ApexInfo apex_module) { in AddApexModule()
29 const std::vector<ApexInfo>& BaseContext::GetApexModules() const { in GetApexModules()
41 Namespace BaseContext::BuildApexNamespace(const ApexInfo& apex_info, in BuildApexNamespace()
Dapex.cc139 Result<std::map<std::string, ApexInfo>> ScanActiveApexes(const std::string& root) { in ScanActiveApexes()
140 std::map<std::string, ApexInfo> apexes; in ScanActiveApexes()
172 ApexInfo info(manifest.name(), in ScanActiveApexes()
222 bool ApexInfo::InSystem() const { in InSystem()
229 bool ApexInfo::InProduct() const { in InProduct()
234 bool ApexInfo::InVendor() const { in InVendor()
/system/linkerconfig/contents/include/linkerconfig/
Dcontext.h52 const modules::ApexInfo& GetCurrentApex() const;
61 void SetCurrentApex(const modules::ApexInfo* apex);
74 const modules::ApexInfo* current_apex_;
Dnamespacebuilder.h50 const modules::ApexInfo& apex_info);
52 const Context& ctx, const modules::ApexInfo& apex_info);
/system/linkerconfig/contents/tests/configuration/
Dapexconfig_test.cc29 using android::linkerconfig::modules::ApexInfo;
37 ApexInfo PrepareApex(const std::string& apex_name, in PrepareApex()
40 return ApexInfo(apex_name, in PrepareApex()
Dbaseconfig_test.cc24 using android::linkerconfig::modules::ApexInfo;
67 ctx.AddApexModule(ApexInfo( in TEST()
/system/apex/apexd/apex-info-list-api/
Dcurrent.txt4 public class ApexInfo {
5 ctor public ApexInfo();
26 method public java.util.List<com.android.apex.ApexInfo> getApexInfo();
31 …method public static com.android.apex.ApexInfo readApexInfo(java.io.InputStream) throws javax.xml.…
41 …method public static void write(com.android.apex.XmlWriter, com.android.apex.ApexInfo) throws java…
Dlast_current.txt4 public class ApexInfo {
5 ctor public ApexInfo();
26 method public java.util.List<com.android.apex.ApexInfo> getApexInfo();
31 …method public static com.android.apex.ApexInfo readApexInfo(java.io.InputStream) throws javax.xml.…
41 …method public static void write(com.android.apex.XmlWriter, com.android.apex.ApexInfo) throws java…
/system/linkerconfig/contents/namespace/
Dapexemptydefault.cc22 using android::linkerconfig::modules::ApexInfo;
29 const ApexInfo& apex_info) { in BuildApexEmptyDefaultNamespace()
Dapexdefault.cc24 using android::linkerconfig::modules::ApexInfo;
32 const ApexInfo& apex_info) { in BuildApexDefaultNamespace()
/system/linkerconfig/modules/tests/
Dapex_test.cc34 using ::android::linkerconfig::modules::ApexInfo;
47 ApexInfo("com.android.foo", in TEST()
76 ApexInfo("com.android.foo", in TEST()
87 ApexInfo("com.android.bar", in TEST()
114 ApexInfo("com.android.foo", in TEST()
/system/linkerconfig/contents/context/
Dcontext.cc27 using android::linkerconfig::modules::ApexInfo;
66 const ApexInfo& Context::GetCurrentApex() const { in GetCurrentApex()
83 void Context::SetCurrentApex(const ApexInfo* apex) { in SetCurrentApex()
/system/linkerconfig/contents/configuration/
Dapexconfig.cc21 using android::linkerconfig::modules::ApexInfo;
29 Context& ctx, const ApexInfo& apex_info) { in CreateApexConfiguration()

12