Home
last modified time | relevance | path

Searched refs:SysInfo (Results 1 – 25 of 32) sorted by relevance

12

/external/libchrome/base/
Dsys_info_unittest.cc25 EXPECT_GE(SysInfo::NumberOfProcessors(), 1); in TEST_F()
30 EXPECT_GT(SysInfo::AmountOfPhysicalMemory(), 0); in TEST_F()
31 EXPECT_GT(SysInfo::AmountOfPhysicalMemoryMB(), 0); in TEST_F()
33 EXPECT_GE(SysInfo::AmountOfVirtualMemory(), 0); in TEST_F()
52 const int64_t amount = SysInfo::AmountOfAvailablePhysicalMemory(info); in TEST_F()
61 const int64_t amount = SysInfo::AmountOfAvailablePhysicalMemory(info); in TEST_F()
79 EXPECT_GE(SysInfo::AmountOfFreeDiskSpace(tmp_path), 0) << tmp_path.value(); in TEST_F()
93 EXPECT_GT(SysInfo::AmountOfTotalDiskSpace(tmp_path), 0) << tmp_path.value(); in TEST_F()
101 SysInfo::OperatingSystemVersionNumbers(&os_major_version, in TEST_F()
111 TimeDelta up_time_1 = SysInfo::Uptime(); in TEST_F()
[all …]
Dsys_info_android.cc145 result = base::SysInfo::AmountOfPhysicalMemoryMB() / 3; in GetDalvikHeapSizeMB()
163 result = base::SysInfo::AmountOfPhysicalMemoryMB() / 6; in GetDalvikHeapGrowthLimitMB()
173 std::string SysInfo::HardwareModelName() { in HardwareModelName()
179 std::string SysInfo::OperatingSystemName() { in OperatingSystemName()
183 std::string SysInfo::OperatingSystemVersion() { in OperatingSystemVersion()
190 void SysInfo::OperatingSystemVersionNumbers(int32_t* major_version, in OperatingSystemVersionNumbers()
198 std::string SysInfo::GetAndroidBuildCodename() { in GetAndroidBuildCodename()
204 std::string SysInfo::GetAndroidBuildID() { in GetAndroidBuildID()
210 int SysInfo::DalvikHeapSizeMB() { in DalvikHeapSizeMB()
215 int SysInfo::DalvikHeapGrowthLimitMB() { in DalvikHeapGrowthLimitMB()
[all …]
Dsys_info_chromeos.cc89 SysInfo::LsbReleaseMap::const_iterator iter = lsb_release_map_.find(key); in GetLsbReleaseValue()
105 const SysInfo::LsbReleaseMap& lsb_release_map() const { in lsb_release_map()
156 SysInfo::LsbReleaseMap lsb_release_map_;
173 void SysInfo::OperatingSystemVersionNumbers(int32_t* major_version, in OperatingSystemVersionNumbers()
181 const SysInfo::LsbReleaseMap& SysInfo::GetLsbReleaseMap() { in GetLsbReleaseMap()
186 bool SysInfo::GetLsbReleaseValue(const std::string& key, std::string* value) { in GetLsbReleaseValue()
191 std::string SysInfo::GetLsbReleaseBoard() { in GetLsbReleaseBoard()
200 Time SysInfo::GetLsbReleaseTime() { in GetLsbReleaseTime()
205 bool SysInfo::IsRunningOnChromeOS() { in IsRunningOnChromeOS()
210 void SysInfo::SetChromeOSVersionInfoForTest(const std::string& lsb_release, in SetChromeOSVersionInfoForTest()
Dsys_info.cc22 int64_t SysInfo::AmountOfPhysicalMemory() { in AmountOfPhysicalMemory()
32 int64_t SysInfo::AmountOfAvailablePhysicalMemory() { in AmountOfAvailablePhysicalMemory()
47 bool SysInfo::IsLowEndDevice() { in IsLowEndDevice()
65 int ram_size_mb = SysInfo::AmountOfPhysicalMemoryMB(); in DetectLowEndDevice()
74 bool SysInfo::IsLowEndDeviceImpl() { in IsLowEndDeviceImpl()
80 std::string SysInfo::HardwareModelName() { in HardwareModelName()
86 base::TimeDelta SysInfo::Uptime() { in Uptime()
Dsys_info_posix.cc140 int SysInfo::NumberOfProcessors() { in NumberOfProcessors()
147 int64_t SysInfo::AmountOfVirtualMemory() { in AmountOfVirtualMemory()
153 int64_t SysInfo::AmountOfFreeDiskSpace(const FilePath& path) { in AmountOfFreeDiskSpace()
163 int64_t SysInfo::AmountOfTotalDiskSpace(const FilePath& path) { in AmountOfTotalDiskSpace()
174 std::string SysInfo::OperatingSystemName() { in OperatingSystemName()
186 std::string SysInfo::OperatingSystemVersion() { in OperatingSystemVersion()
198 void SysInfo::OperatingSystemVersionNumbers(int32_t* major_version, in OperatingSystemVersionNumbers()
221 std::string SysInfo::OperatingSystemArchitecture() { in OperatingSystemArchitecture()
239 size_t SysInfo::VMAllocationGranularity() { in VMAllocationGranularity()
Dsys_info_linux.cc46 int64_t SysInfo::AmountOfPhysicalMemoryImpl() { in AmountOfPhysicalMemoryImpl()
51 int64_t SysInfo::AmountOfAvailablePhysicalMemoryImpl() { in AmountOfAvailablePhysicalMemoryImpl()
59 int64_t SysInfo::AmountOfAvailablePhysicalMemory( in AmountOfAvailablePhysicalMemory()
72 std::string SysInfo::CPUModelName() { in CPUModelName()
Dsys_info.h28 class BASE_EXPORT SysInfo {
Dlazy_instance_unittest.cc298 const int kNumForegroundThreads = 4 * base::SysInfo::NumberOfProcessors(); in TEST()
/external/llvm-project/llvm/unittests/ObjectYAML/
DMinidumpYAMLTest.cpp55 const SystemInfo &SysInfo = *ExpectedSysInfo; in TEST() local
56 EXPECT_EQ(ProcessorArchitecture::ARM64, SysInfo.ProcessorArch); in TEST()
57 EXPECT_EQ(OSPlatform::Linux, SysInfo.PlatformId); in TEST()
58 EXPECT_EQ(0x05060708u, SysInfo.CPU.Arm.CPUID); in TEST()
108 const SystemInfo &SysInfo = *ExpectedSysInfo; in TEST() local
109 EXPECT_EQ(ProcessorArchitecture::X86, SysInfo.ProcessorArch); in TEST()
110 EXPECT_EQ(OSPlatform::Linux, SysInfo.PlatformId); in TEST()
111 EXPECT_EQ("LLVMLLVMLLVM", StringRef(SysInfo.CPU.X86.VendorID, in TEST()
112 sizeof(SysInfo.CPU.X86.VendorID))); in TEST()
113 EXPECT_EQ(0x01020304u, SysInfo.CPU.X86.VersionInfo); in TEST()
[all …]
/external/rust/crates/nix/src/sys/
Dsysinfo.rs11 pub struct SysInfo(libc::sysinfo); struct
19 impl SysInfo { impl
75 pub fn sysinfo() -> Result<SysInfo> { in sysinfo()
78 Errno::result(res).map(|_| unsafe{ SysInfo(info.assume_init()) }) in sysinfo()
/external/libchrome/base/memory/
Dshared_memory_region_unittest.cc150 kRegionSize + SysInfo::VMAllocationGranularity()); in TYPED_TEST()
154 const size_t kPageSize = SysInfo::VMAllocationGranularity(); in TYPED_TEST()
184 const size_t kDataSize = SysInfo::VMAllocationGranularity(); in TYPED_TEST()
Dshared_memory_unittest.cc213 kDataSize + SysInfo::VMAllocationGranularity()); in TEST_P()
238 kDataSize2 + SysInfo::VMAllocationGranularity()); in TEST_P()
548 ASSERT_TRUE(SysInfo::VMAllocationGranularity() >= sizeof(uint32_t)); in TEST_P()
549 const size_t kCount = SysInfo::VMAllocationGranularity(); in TEST_P()
563 off_t offset = SysInfo::VMAllocationGranularity(); in TEST_P()
Dmemory_pressure_monitor_chromeos_unittest.cc79 if (base::SysInfo::IsRunningOnChromeOS()) in TEST()
Dplatform_shared_memory_region_unittest.cc167 SysInfo::VMAllocationGranularity() * 2); in TEST_F()
170 size_t offset = SysInfo::VMAllocationGranularity(); in TEST_F()
Dmemory_pressure_monitor_chromeos.cc122 base::SysInfo::IsRunningOnChromeOS() && !low_mem_file_.is_valid()) in MemoryPressureMonitor()
/external/libchrome/base/android/
Dsys_utils_unittest.cc20 static_cast<size_t>(SysInfo::AmountOfPhysicalMemory())); in TEST()
/external/libchrome/base/task_scheduler/
Dinitialization_util.cc17 const int num_of_cores = SysInfo::NumberOfProcessors(); in RecommendedMaxNumberOfThreadsInPool()
Dtask_scheduler.cc56 const int num_cores = SysInfo::NumberOfProcessors(); in StartWithDefaultParams()
/external/libchrome/base/process/
Dprocess_metrics_unittest.cc196 base::SysInfo::AmountOfAvailablePhysicalMemory(meminfo) / 1024); in TEST_F()
200 base::SysInfo::AmountOfAvailablePhysicalMemory(meminfo) / 1024); in TEST_F()
212 base::SysInfo::AmountOfAvailablePhysicalMemory(meminfo) / 1024); in TEST_F()
/external/libchrome/mojo/core/
Dplatform_shared_memory_mapping.cc31 return base::SysInfo::VMAllocationGranularity(); in GetPageSize()
/external/libchrome/base/files/
Dmemory_mapped_file.cc122 auto mask = SysInfo::VMAllocationGranularity() - 1; in CalculateVMAlignedBoundaries()
/external/swiftshader/third_party/llvm-subzero/lib/Support/Windows/
DPath.inc613 SYSTEM_INFO SysInfo;
614 ::GetSystemInfo(&SysInfo);
615 return SysInfo.dwAllocationGranularity;
/external/libchrome/base/test/launcher/
Dtest_launcher.cc142 std::max(1, base::SysInfo::NumberOfProcessors()); in CreateAndStartTaskScheduler()
1311 return base::checked_cast<size_t>(SysInfo::NumberOfProcessors()); in NumParallelJobs()
/external/llvm/lib/Support/Windows/
DPath.inc619 SYSTEM_INFO SysInfo;
620 ::GetSystemInfo(&SysInfo);
621 return SysInfo.dwAllocationGranularity;
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Support/Windows/
DPath.inc929 SYSTEM_INFO SysInfo;
930 ::GetSystemInfo(&SysInfo);
931 return SysInfo.dwAllocationGranularity;

12