Home
last modified time | relevance | path

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

/system/libvintf/
DRuntimeInfo.cpp31 const std::string &RuntimeInfo::osName() const { in osName()
35 const std::string &RuntimeInfo::nodeName() const { in nodeName()
39 const std::string &RuntimeInfo::osRelease() const { in osRelease()
43 const std::string &RuntimeInfo::osVersion() const { in osVersion()
47 const std::string &RuntimeInfo::hardwareId() const { in hardwareId()
51 const KernelVersion &RuntimeInfo::kernelVersion() const { in kernelVersion()
55 const std::map<std::string, std::string> &RuntimeInfo::kernelConfigs() const { in kernelConfigs()
59 size_t RuntimeInfo::kernelSepolicyVersion() const { in kernelSepolicyVersion()
63 const std::string &RuntimeInfo::cpuInfo() const { in cpuInfo()
67 const Version &RuntimeInfo::bootVbmetaAvbVersion() const { in bootVbmetaAvbVersion()
[all …]
DRuntimeInfo-target.cpp50 RuntimeInfoFetcher(RuntimeInfo *ki) : mRuntimeInfo(ki) { } in RuntimeInfoFetcher()
51 status_t fetchAllInformation(RuntimeInfo::FetchFlags flags);
54 status_t fetchVersion(RuntimeInfo::FetchFlags flags);
55 status_t fetchKernelConfigs(RuntimeInfo::FetchFlags flags);
56 status_t fetchCpuInfo(RuntimeInfo::FetchFlags flags);
57 status_t fetchKernelSepolicyVers(RuntimeInfo::FetchFlags flags);
58 status_t fetchAvb(RuntimeInfo::FetchFlags flags);
60 RuntimeInfo *mRuntimeInfo;
65 status_t RuntimeInfoFetcher::fetchKernelConfigs(RuntimeInfo::FetchFlags) { in fetchKernelConfigs()
90 status_t RuntimeInfoFetcher::fetchCpuInfo(RuntimeInfo::FetchFlags) { in fetchCpuInfo()
[all …]
DRuntimeInfo-host.cpp26 status_t RuntimeInfo::fetchAllInformation(RuntimeInfo::FetchFlags /* flags */) { in fetchAllInformation()
Dcheck_vintf.cpp104 struct StaticRuntimeInfo : public RuntimeInfo {
110 if (flags & RuntimeInfo::FetchFlag::CPU_VERSION) { in fetchAllInformation()
114 if (flags & RuntimeInfo::FetchFlag::KERNEL_FCM) { in fetchAllInformation()
118 if (flags & RuntimeInfo::FetchFlag::CONFIG_GZ) { in fetchAllInformation()
132 if (flags & RuntimeInfo::FetchFlag::POLICYVERS) { in fetchAllInformation()
139 struct StubRuntimeInfo : public RuntimeInfo {
143 struct StaticRuntimeInfoFactory : public ObjectFactory<RuntimeInfo> {
144 std::shared_ptr<RuntimeInfo> info;
145 StaticRuntimeInfoFactory(std::shared_ptr<RuntimeInfo> i) : info(i) {} in StaticRuntimeInfoFactory()
146 std::shared_ptr<RuntimeInfo> make_shared() const override { in make_shared()
[all …]
DAndroid.bp76 "RuntimeInfo.cpp",
112 "RuntimeInfo-host.cpp",
117 "RuntimeInfo-target.cpp",
DVintfObject.cpp533 std::shared_ptr<const RuntimeInfo> VintfObject::GetRuntimeInfo(RuntimeInfo::FetchFlags flags) { in GetRuntimeInfo()
536 std::shared_ptr<const RuntimeInfo> VintfObject::getRuntimeInfo(RuntimeInfo::FetchFlags flags) { in getRuntimeInfo()
552 auto allExceptKernelFcm = RuntimeInfo::FetchFlag::ALL & ~RuntimeInfo::FetchFlag::KERNEL_FCM; in getRuntimeInfo()
563 if (flags & RuntimeInfo::FetchFlag::KERNEL_FCM) { in getRuntimeInfo()
928 auto runtimeInfo = getRuntimeInfo(RuntimeInfo::FetchFlag::KERNEL_FCM); in getKernelLevel()
950 const std::unique_ptr<ObjectFactory<RuntimeInfo>>& VintfObject::getRuntimeInfoFactory() { in getRuntimeInfoFactory()
1234 std::unique_ptr<ObjectFactory<RuntimeInfo>>&& e) { in setRuntimeInfoFactory()
1248 mObject->mRuntimeInfoFactory = std::make_unique<ObjectFactory<RuntimeInfo>>(); in build()
Dparse_string.cpp456 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.h48 class MockRuntimeInfo : public RuntimeInfo {
51 MOCK_METHOD1(fetchAllInformation, status_t(RuntimeInfo::FetchFlags));
52 status_t doFetch(RuntimeInfo::FetchFlags flags);
64 class MockRuntimeInfoFactory : public ObjectFactory<RuntimeInfo> {
67 std::shared_ptr<RuntimeInfo> make_shared() const override { return object_; } in make_shared()
Dvintf_object_tests.cpp589 fetchAllInformation(RuntimeInfo::FetchFlag::CPU_VERSION)); in TEST_F()
590 EXPECT_CALL(*runtimeInfoFactory().getInfo(), fetchAllInformation(RuntimeInfo::FetchFlag::NONE)); in TEST_F()
593 fetchAllInformation(RuntimeInfo::FetchFlag::ALL & ~RuntimeInfo::FetchFlag::CPU_VERSION)); in TEST_F()
594 EXPECT_CALL(*runtimeInfoFactory().getInfo(), fetchAllInformation(RuntimeInfo::FetchFlag::NONE)); in TEST_F()
597 RuntimeInfo::FetchFlag::CPU_VERSION)); in TEST_F()
599 RuntimeInfo::FetchFlag::CPU_VERSION)); in TEST_F()
601 RuntimeInfo::FetchFlag::ALL)); in TEST_F()
603 RuntimeInfo::FetchFlag::ALL)); in TEST_F()
608 EXPECT_EQ(nullptr, vintfObject->getRuntimeInfo(RuntimeInfo::FetchFlag::ALL)); in TEST_F()
DAndroid.bp77 "RuntimeInfo-fake.cpp",
DLibVintfTest.cpp93 void setAvb(RuntimeInfo &ki, Version vbmeta, Version boot) { in setAvb()
133 static status_t parseGkiKernelRelease(RuntimeInfo::FetchFlags flags, in parseGkiKernelRelease()
136 return RuntimeInfo::parseGkiKernelRelease(flags, kernelRelease, version, kernelLevel); in parseGkiKernelRelease()
192 RuntimeInfo testRuntimeInfo() { in testRuntimeInfo()
193 RuntimeInfo info; in testRuntimeInfo()
809 TEST_F(LibVintfTest, RuntimeInfo) { in TEST_F() argument
810 RuntimeInfo ki = testRuntimeInfo(); in TEST_F()
900 RuntimeInfo badAvb = testRuntimeInfo(); in TEST_F()
949 RuntimeInfo ki = testRuntimeInfo(); in TEST_F()
1739 RuntimeInfo runtime = testRuntimeInfo(); in TEST_F()
[all …]
/system/libvintf/include/vintf/
DVintfObject.h56 std::shared_ptr<RuntimeInfo> object;
58 RuntimeInfo::FetchFlags fetchedFlags = RuntimeInfo::FetchFlag::NONE;
132 std::shared_ptr<const RuntimeInfo> getRuntimeInfo(
133 RuntimeInfo::FetchFlags flags = RuntimeInfo::FetchFlag::ALL);
242 std::unique_ptr<ObjectFactory<RuntimeInfo>> mRuntimeInfoFactory;
270 virtual const std::unique_ptr<ObjectFactory<RuntimeInfo>>& getRuntimeInfoFactory();
311 static std::shared_ptr<const RuntimeInfo> GetRuntimeInfo(
312 RuntimeInfo::FetchFlags flags = RuntimeInfo::FetchFlag::ALL);
368 Builder& setRuntimeInfoFactory(std::unique_ptr<ObjectFactory<RuntimeInfo>>&&);
DRuntimeInfo.h43 struct RuntimeInfo { struct
45 RuntimeInfo() {} in RuntimeInfo() argument
46 virtual ~RuntimeInfo() = default;
118 static status_t parseGkiKernelRelease(RuntimeInfo::FetchFlags flags,
125 friend std::string dump(const RuntimeInfo& ki, bool); argument
DCheckFlags.h34 VINTF_CHECK_FLAGS_FIELD(RuntimeInfo, 1)
DKernelInfo.h66 friend struct RuntimeInfo;
DCompatibilityMatrix.h153 friend struct RuntimeInfo;
Dparse_string.h112 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/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.cpp42 using android::vintf::RuntimeInfo;
976 ->getRuntimeInfo(RuntimeInfo::FetchFlag::CPU_VERSION) in TEST()