Searched refs:RuntimeInfo (Results 1 – 18 of 18) sorted by relevance
/system/libvintf/ |
D | RuntimeInfo.cpp | 28 const std::string &RuntimeInfo::osName() const { in osName() 32 const std::string &RuntimeInfo::nodeName() const { in nodeName() 36 const std::string &RuntimeInfo::osRelease() const { in osRelease() 40 const std::string &RuntimeInfo::osVersion() const { in osVersion() 44 const std::string &RuntimeInfo::hardwareId() const { in hardwareId() 48 const KernelVersion &RuntimeInfo::kernelVersion() const { in kernelVersion() 52 const std::map<std::string, std::string> &RuntimeInfo::kernelConfigs() const { in kernelConfigs() 56 size_t RuntimeInfo::kernelSepolicyVersion() const { in kernelSepolicyVersion() 60 const std::string &RuntimeInfo::cpuInfo() const { in cpuInfo() 64 const Version &RuntimeInfo::bootVbmetaAvbVersion() const { in bootVbmetaAvbVersion() [all …]
|
D | RuntimeInfo-target.cpp | 50 RuntimeInfoFetcher(RuntimeInfo *ki) : mRuntimeInfo(ki) { } in RuntimeInfoFetcher() 51 status_t fetchAllInformation(RuntimeInfo::FetchFlags flags); 60 RuntimeInfo *mRuntimeInfo; 168 status_t RuntimeInfoFetcher::fetchAllInformation(RuntimeInfo::FetchFlags flags) { in fetchAllInformation() 170 using F = RuntimeInfo::FetchFlag; in fetchAllInformation() 191 status_t RuntimeInfo::fetchAllInformation(RuntimeInfo::FetchFlags flags) { in fetchAllInformation()
|
D | RuntimeInfo-host.cpp | 26 status_t RuntimeInfo::fetchAllInformation(RuntimeInfo::FetchFlags /* flags */) { in fetchAllInformation()
|
D | Android.bp | 45 "RuntimeInfo.cpp", 82 "RuntimeInfo-host.cpp", 87 "RuntimeInfo-target.cpp",
|
D | check_vintf.cpp | 147 struct StaticRuntimeInfo : public RuntimeInfo { 152 if (flags & RuntimeInfo::FetchFlag::CPU_VERSION) { in fetchAllInformation() 156 if (flags & RuntimeInfo::FetchFlag::CONFIG_GZ) { in fetchAllInformation() 170 if (flags & RuntimeInfo::FetchFlag::POLICYVERS) { in fetchAllInformation() 177 struct StubRuntimeInfo : public RuntimeInfo { 181 struct StaticRuntimeInfoFactory : public ObjectFactory<RuntimeInfo> { 182 std::shared_ptr<RuntimeInfo> info; 183 StaticRuntimeInfoFactory(std::shared_ptr<RuntimeInfo> i) : info(i) {} in StaticRuntimeInfoFactory() 184 std::shared_ptr<RuntimeInfo> make_shared() const override { in make_shared()
|
D | VintfObject.cpp | 499 std::shared_ptr<const RuntimeInfo> VintfObject::GetRuntimeInfo(RuntimeInfo::FetchFlags flags) { in GetRuntimeInfo() 502 std::shared_ptr<const RuntimeInfo> VintfObject::getRuntimeInfo(RuntimeInfo::FetchFlags flags) { in getRuntimeInfo() 513 if ((flags & RuntimeInfo::FetchFlag::KERNEL_FCM) != 0) { in getRuntimeInfo() 516 mDeviceRuntimeInfo.fetchedFlags &= ~RuntimeInfo::FetchFlag::KERNEL_FCM; in getRuntimeInfo() 524 flags &= ~RuntimeInfo::FetchFlag::KERNEL_FCM; in getRuntimeInfo() 920 const std::unique_ptr<ObjectFactory<RuntimeInfo>>& VintfObject::getRuntimeInfoFactory() { in getRuntimeInfoFactory() 987 std::unique_ptr<ObjectFactory<RuntimeInfo>>&& e) { in setRuntimeInfoFactory() 1001 mObject->mRuntimeInfoFactory = std::make_unique<ObjectFactory<RuntimeInfo>>(); in build()
|
D | parse_string.cpp | 470 std::string dump(const RuntimeInfo& ki, bool verbose) { in dump()
|
/system/libvintf/test/ |
D | RuntimeInfo-fake.cpp | 33 status_t MockRuntimeInfo::doFetch(RuntimeInfo::FetchFlags flags) { in doFetch() 39 if (flags & RuntimeInfo::FetchFlag::CPU_VERSION) { in doFetch() 48 if (flags & RuntimeInfo::FetchFlag::POLICYVERS) { in doFetch() 52 if (flags & RuntimeInfo::FetchFlag::CONFIG_GZ) { in doFetch()
|
D | utils-fake.h | 48 class MockRuntimeInfo : public RuntimeInfo { 51 MOCK_METHOD1(fetchAllInformation, status_t(RuntimeInfo::FetchFlags)); 52 status_t doFetch(RuntimeInfo::FetchFlags flags); 63 class MockRuntimeInfoFactory : public ObjectFactory<RuntimeInfo> { 66 std::shared_ptr<RuntimeInfo> make_shared() const override { return object_; } in make_shared()
|
D | vintf_object_tests.cpp | 548 auto allExceptKernelFcm = RuntimeInfo::FetchFlag::ALL & ~RuntimeInfo::FetchFlag::KERNEL_FCM; in TEST_F() 553 fetchAllInformation(RuntimeInfo::FetchFlag::CPU_VERSION)); in TEST_F() 554 EXPECT_CALL(*runtimeInfoFactory().getInfo(), fetchAllInformation(RuntimeInfo::FetchFlag::NONE)); in TEST_F() 557 fetchAllInformation(allExceptKernelFcm & ~RuntimeInfo::FetchFlag::CPU_VERSION)); in TEST_F() 558 EXPECT_CALL(*runtimeInfoFactory().getInfo(), fetchAllInformation(RuntimeInfo::FetchFlag::NONE)); in TEST_F() 561 RuntimeInfo::FetchFlag::CPU_VERSION)); in TEST_F() 563 RuntimeInfo::FetchFlag::CPU_VERSION)); in TEST_F() 565 RuntimeInfo::FetchFlag::ALL)); in TEST_F() 567 RuntimeInfo::FetchFlag::ALL)); in TEST_F()
|
D | Android.bp | 65 "RuntimeInfo-fake.cpp",
|
D | LibVintfTest.cpp | 91 void setAvb(RuntimeInfo &ki, Version vbmeta, Version boot) { in setAvb() 184 RuntimeInfo testRuntimeInfo() { in testRuntimeInfo() 185 RuntimeInfo info; in testRuntimeInfo() 802 TEST_F(LibVintfTest, RuntimeInfo) { in TEST_F() argument 803 RuntimeInfo ki = testRuntimeInfo(); in TEST_F() 893 RuntimeInfo badAvb = testRuntimeInfo(); in TEST_F() 942 RuntimeInfo ki = testRuntimeInfo(); in TEST_F() 1741 RuntimeInfo runtime = testRuntimeInfo(); in TEST_F()
|
/system/libvintf/include/vintf/ |
D | VintfObject.h | 53 std::shared_ptr<RuntimeInfo> object; 55 RuntimeInfo::FetchFlags fetchedFlags = RuntimeInfo::FetchFlag::NONE; 131 std::shared_ptr<const RuntimeInfo> getRuntimeInfo( 132 RuntimeInfo::FetchFlags flags = RuntimeInfo::FetchFlag::ALL); 226 std::unique_ptr<ObjectFactory<RuntimeInfo>> mRuntimeInfoFactory; 252 virtual const std::unique_ptr<ObjectFactory<RuntimeInfo>>& getRuntimeInfoFactory(); 300 static std::shared_ptr<const RuntimeInfo> GetRuntimeInfo( 301 RuntimeInfo::FetchFlags flags = RuntimeInfo::FetchFlag::ALL); 350 Builder& setRuntimeInfoFactory(std::unique_ptr<ObjectFactory<RuntimeInfo>>&&);
|
D | RuntimeInfo.h | 43 struct RuntimeInfo { struct 45 RuntimeInfo() {} in RuntimeInfo() function 46 virtual ~RuntimeInfo() = default; 109 friend std::string dump(const RuntimeInfo& ki, bool); argument
|
D | CheckFlags.h | 34 VINTF_CHECK_FLAGS_FIELD(RuntimeInfo, 1)
|
D | KernelInfo.h | 66 friend struct RuntimeInfo;
|
D | CompatibilityMatrix.h | 147 friend struct RuntimeInfo;
|
D | parse_string.h | 106 std::string dump(const RuntimeInfo& ki, bool verbose = true);
|