Home
last modified time | relevance | path

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

/external/cronet/base/win/
Dwindows_version_unittest.cc24 EXPECT_EQ(OSInfo::Kernel32VersionNumber().major, in TEST()
25 OSInfo::GetInstance()->version_number().major); in TEST()
26 EXPECT_EQ(OSInfo::Kernel32VersionNumber().minor, in TEST()
27 OSInfo::GetInstance()->version_number().minor); in TEST()
46 TEST(OSInfo, MajorMinorBuildToVersion) { in TEST() argument
47 EXPECT_EQ(OSInfo::MajorMinorBuildToVersion(11, 0, 0), Version::WIN11); in TEST()
48 EXPECT_EQ(OSInfo::MajorMinorBuildToVersion(10, 0, 32767), in TEST()
50 EXPECT_EQ(OSInfo::MajorMinorBuildToVersion(10, 0, 22621), in TEST()
52 EXPECT_EQ(OSInfo::MajorMinorBuildToVersion(10, 0, 22000), Version::WIN11); in TEST()
53 EXPECT_EQ(OSInfo::MajorMinorBuildToVersion(10, 0, 21999), in TEST()
[all …]
Dwindows_version.cc78 OSInfo** OSInfo::GetInstanceStorage() { in GetInstanceStorage()
81 static OSInfo* info = []() { in GetInstanceStorage()
100 return new OSInfo(version_info, GetSystemInfoStorage(), os_type); in GetInstanceStorage()
107 OSInfo* OSInfo::GetInstance() { in GetInstance()
112 OSInfo::WindowsArchitecture OSInfo::GetArchitecture() { in GetArchitecture()
130 bool OSInfo::IsRunningEmulatedOnArm64() { in IsRunningEmulatedOnArm64()
157 OSInfo::OSInfo(const _OSVERSIONINFOEXW& version_info, in OSInfo() function in base::win::OSInfo
247 OSInfo::~OSInfo() = default;
249 Version OSInfo::Kernel32Version() { in Kernel32Version()
257 OSInfo::VersionNumber OSInfo::Kernel32VersionNumber() { in Kernel32VersionNumber()
[all …]
Dwindows_version.h81 class BASE_EXPORT OSInfo {
108 static OSInfo* GetInstance();
110 OSInfo(const OSInfo&) = delete;
111 OSInfo& operator=(const OSInfo&) = delete;
167 FRIEND_TEST_ALL_PREFIXES(OSInfo, MajorMinorBuildToVersion);
190 static OSInfo** GetInstanceStorage();
192 OSInfo(const _OSVERSIONINFOEXW& version_info,
195 ~OSInfo();
Ddark_mode_support.cc58 auto* os_info = base::win::OSInfo::GetInstance(); in GetDarkModeSupport()
Dwin_util.cc597 if (OSInfo::GetInstance()->version_type() == SUITE_HOME) in IsDeviceRegisteredWithManagement()
Dregistry_unittest.cc520 return OSInfo::GetInstance()->IsWowX86OnAMD64(); in IsRedirectorPresent()
/external/webrtc/rtc_base/win/
Dwindows_version.h72 class OSInfo {
109 OSInfo(const OSInfo&) = delete;
110 OSInfo& operator=(const OSInfo&) = delete;
112 static OSInfo* GetInstance();
130 OSInfo();
131 ~OSInfo();
Dwindows_version.cc266 OSInfo* OSInfo::GetInstance() { in GetInstance()
270 static OSInfo* info; in GetInstance()
272 OSInfo* new_info = new OSInfo(); in GetInstance()
281 OSInfo::OSInfo() in OSInfo() function in rtc::rtc_win::OSInfo
402 OSInfo::~OSInfo() {} in ~OSInfo()
404 std::string OSInfo::processor_model_name() { in processor_model_name()
423 OSInfo::WOW64Status OSInfo::GetWOW64StatusForProcess(HANDLE process_handle) { in GetWOW64StatusForProcess()
441 return OSInfo::GetInstance()->version(); in GetVersion()
Dwindows_version_unittest.cc40 std::string name = OSInfo::GetInstance()->processor_model_name(); in TEST()
/external/cronet/base/system/
Dsys_info_win.cc149 return win::OSInfo::GetInstance()->processors(); in NumberOfProcessors()
224 win::OSInfo* os_info = win::OSInfo::GetInstance(); in OperatingSystemVersion()
225 win::OSInfo::VersionNumber version_number = os_info->version_number(); in OperatingSystemVersion()
228 win::OSInfo::ServicePack service_pack = os_info->service_pack(); in OperatingSystemVersion()
243 win::OSInfo::WindowsArchitecture arch = win::OSInfo::GetArchitecture(); in OperatingSystemArchitecture()
245 case win::OSInfo::X86_ARCHITECTURE: in OperatingSystemArchitecture()
247 case win::OSInfo::X64_ARCHITECTURE: in OperatingSystemArchitecture()
249 case win::OSInfo::IA64_ARCHITECTURE: in OperatingSystemArchitecture()
251 case win::OSInfo::ARM64_ARCHITECTURE: in OperatingSystemArchitecture()
260 return win::OSInfo::GetInstance()->processor_model_name(); in CPUModelName()
[all …]
/external/cronet/base/test/
Dscoped_os_info_override_win.h14 class OSInfo; variable
47 std::unique_ptr<base::win::OSInfo, void (*)(base::win::OSInfo*)>;
53 raw_ptr<base::win::OSInfo> original_info_;
61 static void deleter(base::win::OSInfo* info);
Dscoped_os_info_override_win.cc15 : original_info_(base::win::OSInfo::GetInstance()), in ScopedOSInfoOverride()
17 *base::win::OSInfo::GetInstanceStorage() = overriding_info_.get(); in ScopedOSInfoOverride()
21 *base::win::OSInfo::GetInstanceStorage() = original_info_; in ~ScopedOSInfoOverride()
103 return UniqueOsInfo(new base::win::OSInfo(version_info, system_info, os_type), in CreateInfoOfType()
108 void ScopedOSInfoOverride::deleter(base::win::OSInfo* info) { in deleter()
/external/cronet/components/nacl/renderer/
Dplatform_info.cc25 if (base::win::OSInfo::GetArchitecture() == in GetSandboxArch()
26 base::win::OSInfo::X64_ARCHITECTURE) { in GetSandboxArch()
/external/cronet/base/
Dbase_paths_win.cc57 if (win::OSInfo::GetArchitecture() != win::OSInfo::X86_ARCHITECTURE) { in PathProviderWin()
74 if (base::win::OSInfo::GetInstance()->IsWowX86OnAMD64()) { in PathProviderWin()
Dpath_service_unittest.cc300 if (base::win::OSInfo::GetInstance()->IsWowX86OnAMD64()) { in TEST_F()
/external/libchrome/base/
Dpath_service_unittest.cc244 if (base::win::OSInfo::GetInstance()->wow64_status() == in TEST_F()
245 base::win::OSInfo::WOW64_ENABLED) { in TEST_F()
/external/cronet/base/process/
Dprocess_win.cc268 if (base::win::OSInfo::GetInstance()->version() >= in SetProcessBackgrounded()
/external/cronet/base/threading/
Dthread_restrictions.h476 class OSInfo; variable
654 friend class base::win::OSInfo;
/external/cronet/base/debug/
Dgdi_debug_util_win.cc304 if (base::win::OSInfo::GetInstance()->IsWowX86OnAMD64()) { in CollectGdiHandleCounts()
/external/cronet/components/nacl/browser/
Dnacl_browser.cc50 bool is64 = base::win::OSInfo::GetInstance()->IsWowX86OnAMD64(); in NaClIrtName()
Dnacl_process_host.cc155 return base::win::OSInfo::GetInstance()->IsWowX86OnAMD64(); in RunningOnWOW64()