Home
last modified time | relevance | path

Searched refs:RuntimeInfo (Results 1 – 23 of 23) sorted by relevance

/system/libvintf/
DRuntimeInfo-target.cpp44 RuntimeInfoFetcher(RuntimeInfo *ki) : mRuntimeInfo(ki) { } in RuntimeInfoFetcher()
45 status_t fetchAllInformation(RuntimeInfo::FetchFlags flags);
48 status_t fetchVersion(RuntimeInfo::FetchFlags flags);
49 status_t fetchKernelConfigs(RuntimeInfo::FetchFlags flags);
50 status_t fetchCpuInfo(RuntimeInfo::FetchFlags flags);
51 status_t fetchKernelSepolicyVers(RuntimeInfo::FetchFlags flags);
52 status_t fetchAvb(RuntimeInfo::FetchFlags flags);
54 RuntimeInfo* mRuntimeInfo;
58 status_t RuntimeInfoFetcher::fetchKernelConfigs(RuntimeInfo::FetchFlags) { in fetchKernelConfigs()
62 status_t RuntimeInfoFetcher::fetchCpuInfo(RuntimeInfo::FetchFlags) { in fetchCpuInfo()
[all …]
DRuntimeInfo.cpp32 const std::string &RuntimeInfo::osName() const { in osName()
36 const std::string &RuntimeInfo::nodeName() const { in nodeName()
40 const std::string &RuntimeInfo::osRelease() const { in osRelease()
44 const std::string &RuntimeInfo::osVersion() const { in osVersion()
48 const std::string &RuntimeInfo::hardwareId() const { in hardwareId()
52 const KernelVersion &RuntimeInfo::kernelVersion() const { in kernelVersion()
56 const std::map<std::string, std::string> &RuntimeInfo::kernelConfigs() const { in kernelConfigs()
60 size_t RuntimeInfo::kernelSepolicyVersion() const { in kernelSepolicyVersion()
64 const std::string &RuntimeInfo::cpuInfo() const { in cpuInfo()
68 const Version &RuntimeInfo::bootVbmetaAvbVersion() const { in bootVbmetaAvbVersion()
[all …]
DRuntimeInfo-host.cpp26 status_t RuntimeInfo::fetchAllInformation(RuntimeInfo::FetchFlags /* flags */) { in fetchAllInformation()
Dcheck_vintf.cpp105 struct StaticRuntimeInfo : public RuntimeInfo {
111 if (flags & RuntimeInfo::FetchFlag::CPU_VERSION) { in fetchAllInformation()
115 if (flags & RuntimeInfo::FetchFlag::KERNEL_FCM) { in fetchAllInformation()
119 if (flags & RuntimeInfo::FetchFlag::CONFIG_GZ) { in fetchAllInformation()
133 if (flags & RuntimeInfo::FetchFlag::POLICYVERS) { in fetchAllInformation()
142 struct StubRuntimeInfo : public RuntimeInfo {
146 struct StaticRuntimeInfoFactory : public ObjectFactory<RuntimeInfo> {
147 std::shared_ptr<RuntimeInfo> info;
148 StaticRuntimeInfoFactory(std::shared_ptr<RuntimeInfo> i) : info(i) {} in StaticRuntimeInfoFactory()
149 std::shared_ptr<RuntimeInfo> make_shared() const override { in make_shared()
[all …]
DAndroid.bp78 "RuntimeInfo.cpp",
123 "RuntimeInfo-host.cpp",
129 "RuntimeInfo-target.cpp",
DVintfObject.cpp638 std::shared_ptr<const RuntimeInfo> VintfObject::GetRuntimeInfo(RuntimeInfo::FetchFlags flags) { in GetRuntimeInfo()
641 std::shared_ptr<const RuntimeInfo> VintfObject::getRuntimeInfo(RuntimeInfo::FetchFlags flags) { in getRuntimeInfo()
657 auto allExceptKernelFcm = RuntimeInfo::FetchFlag::ALL & ~RuntimeInfo::FetchFlag::KERNEL_FCM; in getRuntimeInfo()
668 if (flags & RuntimeInfo::FetchFlag::KERNEL_FCM) { in getRuntimeInfo()
1043 auto runtimeInfo = getRuntimeInfo(RuntimeInfo::FetchFlag::KERNEL_FCM); in getKernelLevel()
1065 const std::unique_ptr<ObjectFactory<RuntimeInfo>>& VintfObject::getRuntimeInfoFactory() { in getRuntimeInfoFactory()
1426 std::unique_ptr<ObjectFactory<RuntimeInfo>>&& e) { in setRuntimeInfoFactory()
1439 mObject->mRuntimeInfoFactory = std::make_unique<ObjectFactory<RuntimeInfo>>(); in buildInternal()
Dmain.cpp406 const RuntimeInfo::FetchFlags flags = RuntimeInfo::FetchFlag::CPU_INFO | in dumpRi()
407 RuntimeInfo::FetchFlag::CPU_VERSION | in dumpRi()
408 RuntimeInfo::FetchFlag::POLICYVERS; in dumpRi()
Dparse_string.cpp460 std::string dump(const RuntimeInfo& ki, bool verbose) { in dump()
/system/libvintf/test/
DRuntimeInfo-fake.cpp33 status_t MockRuntimeInfo::doFetch(RuntimeInfo::FetchFlags flags) { in doFetch()
39 if (flags & RuntimeInfo::FetchFlag::CPU_VERSION) { in doFetch()
48 if (flags & RuntimeInfo::FetchFlag::KERNEL_FCM && kernel_info_.mLevel != Level::UNSPECIFIED) { in doFetch()
52 if (flags & RuntimeInfo::FetchFlag::POLICYVERS) { in doFetch()
56 if (flags & RuntimeInfo::FetchFlag::CONFIG_GZ) { in doFetch()
Dutils-fake.h60 class MockRuntimeInfo : public RuntimeInfo {
63 MOCK_METHOD1(fetchAllInformation, status_t(RuntimeInfo::FetchFlags));
64 status_t doFetch(RuntimeInfo::FetchFlags flags);
76 class MockRuntimeInfoFactory : public ObjectFactory<RuntimeInfo> {
79 std::shared_ptr<RuntimeInfo> make_shared() const override { return object_; } in make_shared()
DAndroid.bp83 "RuntimeInfo-fake.cpp",
148 "RuntimeInfo-fake.cpp",
Dvintf_object_tests.cpp670 fetchAllInformation(RuntimeInfo::FetchFlag::CPU_VERSION)); in TEST_F()
671 EXPECT_CALL(*runtimeInfoFactory().getInfo(), fetchAllInformation(RuntimeInfo::FetchFlag::NONE)); in TEST_F()
674 fetchAllInformation(RuntimeInfo::FetchFlag::ALL & ~RuntimeInfo::FetchFlag::CPU_VERSION)); in TEST_F()
675 EXPECT_CALL(*runtimeInfoFactory().getInfo(), fetchAllInformation(RuntimeInfo::FetchFlag::NONE)); in TEST_F()
678 RuntimeInfo::FetchFlag::CPU_VERSION)); in TEST_F()
680 RuntimeInfo::FetchFlag::CPU_VERSION)); in TEST_F()
682 RuntimeInfo::FetchFlag::ALL)); in TEST_F()
684 RuntimeInfo::FetchFlag::ALL)); in TEST_F()
689 EXPECT_EQ(nullptr, vintfObject->getRuntimeInfo(RuntimeInfo::FetchFlag::ALL)); in TEST_F()
DLibVintfTest.cpp94 void setAvb(RuntimeInfo &ki, Version vbmeta, Version boot) { in setAvb()
134 static status_t parseGkiKernelRelease(RuntimeInfo::FetchFlags flags, in parseGkiKernelRelease()
137 return RuntimeInfo::parseGkiKernelRelease(flags, kernelRelease, version, kernelLevel); in parseGkiKernelRelease()
200 RuntimeInfo testRuntimeInfo() { in testRuntimeInfo()
201 RuntimeInfo info; in testRuntimeInfo()
1074 TEST_F(LibVintfTest, RuntimeInfo) { in TEST_F() argument
1075 RuntimeInfo ki = testRuntimeInfo(); in TEST_F()
1165 RuntimeInfo badAvb = testRuntimeInfo(); in TEST_F()
1214 RuntimeInfo ki = testRuntimeInfo(); in TEST_F()
2198 RuntimeInfo runtime = testRuntimeInfo(); in TEST_F()
[all …]
/system/libvintf/include/vintf/
DRuntimeInfo.h43 struct RuntimeInfo { struct
45 RuntimeInfo() {} in RuntimeInfo() function
46 virtual ~RuntimeInfo() = default;
120 static status_t parseGkiKernelRelease(RuntimeInfo::FetchFlags flags,
127 friend std::string dump(const RuntimeInfo& ki, bool); argument
DVintfObject.h59 std::shared_ptr<RuntimeInfo> object;
61 RuntimeInfo::FetchFlags fetchedFlags = RuntimeInfo::FetchFlag::NONE;
137 std::shared_ptr<const RuntimeInfo> getRuntimeInfo(
138 RuntimeInfo::FetchFlags flags = RuntimeInfo::FetchFlag::ALL);
222 std::unique_ptr<ObjectFactory<RuntimeInfo>> mRuntimeInfoFactory;
254 virtual const std::unique_ptr<ObjectFactory<RuntimeInfo>>& getRuntimeInfoFactory();
295 static std::shared_ptr<const RuntimeInfo> GetRuntimeInfo(
296 RuntimeInfo::FetchFlags flags = RuntimeInfo::FetchFlag::ALL);
383 VintfObjectBuilder& setRuntimeInfoFactory(std::unique_ptr<ObjectFactory<RuntimeInfo>>&&);
DCheckFlags.h34 VINTF_CHECK_FLAGS_FIELD(RuntimeInfo, 1)
DKernelInfo.h66 friend struct RuntimeInfo;
DCompatibilityMatrix.h156 friend struct RuntimeInfo;
Dparse_string.h113 std::string dump(const RuntimeInfo& ki, bool verbose = true);
/system/memory/libmeminfo/vts/
Dvts_meminfo_test.cpp26 using android::vintf::RuntimeInfo;
61 ->getRuntimeInfo(android::vintf::RuntimeInfo::FetchFlag::CPU_VERSION) in TEST()
82 ->getRuntimeInfo(android::vintf::RuntimeInfo::FetchFlag::CPU_VERSION) in TEST()
103 ->getRuntimeInfo(RuntimeInfo::FetchFlag::CPU_VERSION) in TEST()
/system/netd/tests/
Dkernel_test.cpp33 using ::android::vintf::RuntimeInfo;
59 std::shared_ptr<const RuntimeInfo> mRuntimeInfo;
/system/memory/libdmabufheap/tests/
Ddmabuf_heap_test.cpp83 ->getRuntimeInfo(android::vintf::RuntimeInfo::FetchFlag::CPU_VERSION) in TEST_F()
295 ->getRuntimeInfo(android::vintf::RuntimeInfo::FetchFlag::CPU_VERSION) in TEST_F()
/system/memory/libmeminfo/
Dlibmeminfo_test.cpp43 using android::vintf::RuntimeInfo;
1221 ->getRuntimeInfo(RuntimeInfo::FetchFlag::CPU_VERSION) in TEST()