/system/libvintf/ |
D | RuntimeInfo-target.cpp | 44 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 …]
|
D | RuntimeInfo.cpp | 32 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 …]
|
D | RuntimeInfo-host.cpp | 26 status_t RuntimeInfo::fetchAllInformation(RuntimeInfo::FetchFlags /* flags */) { in fetchAllInformation()
|
D | check_vintf.cpp | 105 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 …]
|
D | Android.bp | 78 "RuntimeInfo.cpp", 123 "RuntimeInfo-host.cpp", 129 "RuntimeInfo-target.cpp",
|
D | VintfObject.cpp | 638 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()
|
D | main.cpp | 406 const RuntimeInfo::FetchFlags flags = RuntimeInfo::FetchFlag::CPU_INFO | in dumpRi() 407 RuntimeInfo::FetchFlag::CPU_VERSION | in dumpRi() 408 RuntimeInfo::FetchFlag::POLICYVERS; in dumpRi()
|
D | parse_string.cpp | 460 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::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()
|
D | utils-fake.h | 60 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()
|
D | Android.bp | 83 "RuntimeInfo-fake.cpp", 148 "RuntimeInfo-fake.cpp",
|
D | vintf_object_tests.cpp | 670 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()
|
D | LibVintfTest.cpp | 94 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/ |
D | RuntimeInfo.h | 43 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
|
D | VintfObject.h | 59 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>>&&);
|
D | CheckFlags.h | 34 VINTF_CHECK_FLAGS_FIELD(RuntimeInfo, 1)
|
D | KernelInfo.h | 66 friend struct RuntimeInfo;
|
D | CompatibilityMatrix.h | 156 friend struct RuntimeInfo;
|
D | parse_string.h | 113 std::string dump(const RuntimeInfo& ki, bool verbose = true);
|
/system/memory/libmeminfo/vts/ |
D | vts_meminfo_test.cpp | 26 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/ |
D | kernel_test.cpp | 33 using ::android::vintf::RuntimeInfo; 59 std::shared_ptr<const RuntimeInfo> mRuntimeInfo;
|
/system/memory/libdmabufheap/tests/ |
D | dmabuf_heap_test.cpp | 83 ->getRuntimeInfo(android::vintf::RuntimeInfo::FetchFlag::CPU_VERSION) in TEST_F() 295 ->getRuntimeInfo(android::vintf::RuntimeInfo::FetchFlag::CPU_VERSION) in TEST_F()
|
/system/memory/libmeminfo/ |
D | libmeminfo_test.cpp | 43 using android::vintf::RuntimeInfo; 1221 ->getRuntimeInfo(RuntimeInfo::FetchFlag::CPU_VERSION) in TEST()
|