Searched refs:page_size (Results 1 - 25 of 126) sorted by relevance

123456

/external/chromium/base/
H A Dsys_info_freebsd.cc14 int pages, page_size; local
17 sysctlbyname("vm.stats.vm.v_page_size", &page_size, &size, NULL, 0);
18 if (pages == -1 || page_size == -1) {
22 return static_cast<int64>(pages) * page_size;
H A Dsys_info_linux.cc14 long page_size = sysconf(_SC_PAGE_SIZE); local
15 if (pages == -1 || page_size == -1) {
20 return static_cast<int64>(pages) * page_size;
/external/chromium_org/base/
H A Dsys_info_freebsd.cc14 int pages, page_size; local
17 sysctlbyname("vm.stats.vm.v_page_size", &page_size, &size, NULL, 0);
18 if (pages == -1 || page_size == -1) {
22 return static_cast<int64>(pages) * page_size;
H A Dsys_info_linux.cc17 long page_size = sysconf(_SC_PAGESIZE); local
18 if (pages == -1 || page_size == -1) {
22 return static_cast<int64>(pages) * page_size;
H A Dsys_info_openbsd.cc17 long page_size = sysconf(_SC_PAGESIZE); local
18 if (pages == -1 || page_size == -1) {
22 return static_cast<int64>(pages) * page_size;
/external/chromium_org/printing/
H A Dprinted_page.cc11 const gfx::Size& page_size,
16 page_size_(page_size),
31 if (paper_size.width() > page_size().width()) {
32 int diff = paper_size.width() - page_size().width();
35 if (paper_size.height() > page_size().height()) {
36 int diff = paper_size.height() - page_size().height();
9 PrintedPage(int page_number, Metafile* metafile, const gfx::Size& page_size, const gfx::Rect& page_content_rect, double shrink_factor) argument
H A Dpdf_metafile_cg_mac_unittest.cc59 gfx::Size page_size = pdf2.GetPageBounds(1).size(); local
60 EXPECT_EQ(540, page_size.width());
61 EXPECT_EQ(720, page_size.height());
62 page_size = pdf2.GetPageBounds(2).size();
63 EXPECT_EQ(720, page_size.width());
64 EXPECT_EQ(540, page_size.height());
H A Dpage_setup_unittest.cc28 gfx::Size page_size(100 + rand() % kMax, 200 + rand() % kMax);
30 printable_area.set_width(page_size.width() - (rand() % kMax) -
32 printable_area.set_height(page_size.height() - (rand() % kMax) -
38 setup.Init(page_size, printable_area, kTextHeight);
47 page_size.height() -
50 page_size.width() -
57 page_size.width() - effective_margins.right -
59 page_size.height() - effective_margins.footer -
66 page_size.height() - effective_margins.bottom -
70 EXPECT_EQ(page_size, setu
[all...]
H A Dprinted_page.h27 const gfx::Size& page_size,
34 const gfx::Size& page_size() const { return page_size_; } function in class:printing::PrintedPage
H A Dpdf_metafile_cg_mac.h41 const gfx::Size& page_size, const gfx::Rect& content_area,
43 virtual bool StartPage(const gfx::Size& page_size,
/external/chromium_org/content/common/
H A Dset_process_title_linux.cc56 uintptr_t page_size, page, page_end; local
67 page_size = sysconf(_SC_PAGESIZE);
70 page -= page % page_size;
71 page_end = page + page_size;
110 uintptr_t page_size = sysconf(_SC_PAGESIZE);
113 if (((uintptr_t) environ) / page_size == ((uintptr_t) main_argv) / page_size)
/external/chromium_org/third_party/tcmalloc/vendor/src/
H A Dstacktrace_x86-inl.h207 // page_size is linker-initalized to avoid async-unsafe locking
209 static int page_size; local
210 if (page_size == 0) {
212 page_size = getpagesize();
217 ~(page_size - 1));
218 if (msync(reg_esp_aligned, page_size, MS_ASYNC) == 0) {
264 static int page_size = getpagesize(); local
265 void *new_sp_aligned = (void *)((uintptr_t)new_sp & ~(page_size - 1));
266 if (msync(new_sp_aligned, page_size, MS_ASYNC) == -1)
/external/chromium_org/chromeos/dbus/ibus/
H A Dibus_lookup_table.h110 uint32 page_size() const { return page_size_; } function in class:chromeos::IBusLookupTable
111 void set_page_size(uint32 page_size) { page_size_ = page_size; } argument
/external/chromium_org/tools/gyp/test/win/
H A Dgyptest-link-large-pdb.py34 page_size = struct.unpack('<I', pdb_file.read(4))[0]
35 if page_size != expected_page_size:
37 expected_page_size, page_size, pdb_path)
/external/chromium_org/sql/
H A Drecovery_unittest.cc52 sql::Statement s(db->GetUniqueStatement("PRAGMA page_size"));
69 char* buf, size_t page_size) {
73 if (0 != fseek(file.get(), (page_no - 1) * page_size, SEEK_SET))
75 if (1u != fread(buf, page_size, 1, file.get()))
83 const char* buf, size_t page_size) {
87 if (0 != fseek(file.get(), (page_no - 1) * page_size, SEEK_SET))
89 if (1u != fwrite(buf, page_size, 1, file.get()))
292 int page_size = GetPageSize(&db()); local
293 scoped_ptr<char[]> buf(new char[page_size]);
294 ASSERT_TRUE(ReadPage(db_path(), index_page, buf.get(), page_size)); local
68 ReadPage(const base::FilePath& path, size_t page_no, char* buf, size_t page_size) argument
82 WritePage(const base::FilePath& path, size_t page_no, const char* buf, size_t page_size) argument
303 ASSERT_TRUE(WritePage(db_path(), index_page, buf.get(), page_size)); local
364 const int page_size = GetPageSize(&db()); local
366 ASSERT_TRUE(ReadPage(db_path(), table_page, buf.get(), page_size)); local
375 ASSERT_TRUE(WritePage(db_path(), table_page, buf.get(), page_size)); local
[all...]
/external/linux-tools-perf/util/
H A Dtrace-event-read.c51 static unsigned long page_size; variable
290 int page_size; member in struct:cpu_data
297 cpu_data[cpu].offset += page_size;
298 cpu_data[cpu].size -= page_size;
311 if (cpu_data[cpu].size <= page_size) {
325 ret = read(input_fd, cpu_data[cpu].page, page_size);
335 munmap(cpu_data[cpu].page, page_size);
338 if (cpu_data[cpu].size <= page_size)
343 cpu_data[cpu].page = mmap(NULL, page_size, PROT_READ, MAP_PRIVATE,
397 cpu_data[cpu].page_size
[all...]
/external/chromium_org/content/public/test/
H A Drender_widget_test.h35 // in the given bitmap. The widget is resized to |page_size| before we paint
38 virtual void ResizeAndPaint(const gfx::Size& page_size,
/external/chromium_org/android_webview/common/
H A Dprint_messages.cc12 : page_size(),
39 page_size = gfx::Size();
/external/chromium_org/chrome/common/
H A Dprint_messages.cc12 : page_size(),
39 page_size = gfx::Size();
/external/chromium_org/chrome/renderer/printing/
H A Dprint_web_view_helper_win.cc80 page_params.page_size = page_size_in_dpi;
131 gfx::Size page_size; local
133 GetPageSizeAndContentAreaFromPageLayout(page_layout_in_points, &page_size,
139 static_cast<int>(ConvertUnitDouble(page_size.width(), kPointsPerInch,
141 static_cast<int>(ConvertUnitDouble(page_size.height(), kPointsPerInch,
161 page_size = gfx::Size(
172 params.display_header_footer ? gfx::Rect(page_size) : content_area;
175 page_size, canvas_area, scale_factor);
/external/chromium_org/third_party/tcmalloc/chromium/src/
H A Dstacktrace_x86-inl.h210 // page_size is linker-initalized to avoid async-unsafe locking
212 static int page_size; local
213 if (page_size == 0) {
215 page_size = getpagesize();
220 ~(page_size - 1));
221 if (msync(reg_esp_aligned, page_size, MS_ASYNC) == 0) {
267 static int page_size = getpagesize(); local
268 void *new_sp_aligned = (void *)((uintptr_t)new_sp & ~(page_size - 1));
269 if (msync(new_sp_aligned, page_size, MS_ASYNC) == -1)
/external/chromium_org/base/process/
H A Dprocess_metrics_mac.cc182 vm_size_t page_size; local
183 kr = host_page_size(task, &page_size);
191 *private_bytes = private_pages_count * page_size;
193 *shared_bytes = shared_pages_count * page_size;
315 vm_size_t page_size; local
316 kr = host_page_size(host, &page_size);
322 return (data.active_count * page_size) / 1024;
/external/chromium_org/third_party/mesa/src/src/gallium/auxiliary/util/
H A Du_slab.h66 unsigned page_size; member in struct:util_slab_mempool
/external/llvm/unittests/Support/
H A DProcessTest.cpp32 EXPECT_LT(1u, process::get_self()->page_size());
/external/mesa3d/src/gallium/auxiliary/util/
H A Du_slab.h66 unsigned page_size; member in struct:util_slab_mempool

Completed in 2265 milliseconds

123456