Home
last modified time | relevance | path

Searched refs:dpi (Results 1 – 25 of 148) sorted by relevance

123456

/external/valgrind/main/coregrind/m_demangle/
Dcp-demangle.c3431 d_print_init (struct d_print_info *dpi, demangle_callbackref callback, in d_print_init() argument
3434 dpi->len = 0; in d_print_init()
3435 dpi->last_char = '\0'; in d_print_init()
3436 dpi->templates = NULL; in d_print_init()
3437 dpi->modifiers = NULL; in d_print_init()
3438 dpi->pack_index = 0; in d_print_init()
3439 dpi->flush_count = 0; in d_print_init()
3441 dpi->callback = callback; in d_print_init()
3442 dpi->opaque = opaque; in d_print_init()
3444 dpi->demangle_failure = 0; in d_print_init()
[all …]
/external/gcc-demangle/
Dcp-demangle.c3296 d_print_init (struct d_print_info *dpi, int options, in d_print_init() argument
3299 dpi->options = options; in d_print_init()
3300 dpi->len = 0; in d_print_init()
3301 dpi->last_char = '\0'; in d_print_init()
3302 dpi->templates = NULL; in d_print_init()
3303 dpi->modifiers = NULL; in d_print_init()
3304 dpi->flush_count = 0; in d_print_init()
3306 dpi->callback = callback; in d_print_init()
3307 dpi->opaque = opaque; in d_print_init()
3309 dpi->demangle_failure = 0; in d_print_init()
[all …]
/external/chromium_org/chrome/browser/ui/libgtk2ui/
Dprinting_gtk2_util.cc55 int dpi = gtk_print_settings_get_resolution(settings); in InitPrintSettingsGtk() local
56 if (dpi) { in InitPrintSettingsGtk()
59 gtk_page_setup_get_paper_width(page_setup, GTK_UNIT_INCH) * dpi, in InitPrintSettingsGtk()
60 gtk_page_setup_get_paper_height(page_setup, GTK_UNIT_INCH) * dpi); in InitPrintSettingsGtk()
62 gtk_page_setup_get_left_margin(page_setup, GTK_UNIT_INCH) * dpi, in InitPrintSettingsGtk()
63 gtk_page_setup_get_top_margin(page_setup, GTK_UNIT_INCH) * dpi, in InitPrintSettingsGtk()
64 gtk_page_setup_get_page_width(page_setup, GTK_UNIT_INCH) * dpi, in InitPrintSettingsGtk()
65 gtk_page_setup_get_page_height(page_setup, GTK_UNIT_INCH) * dpi); in InitPrintSettingsGtk()
68 dpi = printing::kPixelsPerInch; in InitPrintSettingsGtk()
69 double page_width_in_pixel = printing::kLetterWidthInch * dpi; in InitPrintSettingsGtk()
[all …]
/external/chromium_org/v8/src/compiler/arm64/
Dinstruction-selector-arm64-unittest.cc234 const MachInst2 dpi = GetParam(); in TEST_P() local
235 const MachineType type = dpi.machine_type; in TEST_P()
237 m.Return((m.*dpi.constructor)(m.Parameter(0), m.Parameter(1))); in TEST_P()
240 EXPECT_EQ(dpi.arch_opcode, s[0]->arch_opcode()); in TEST_P()
247 const MachInst2 dpi = GetParam(); in TEST_P() local
248 const MachineType type = dpi.machine_type; in TEST_P()
254 m.Return((m.*dpi.constructor)(m.Parameter(0), m.Int32Constant(imm))); in TEST_P()
257 EXPECT_EQ(dpi.arch_opcode, s[0]->arch_opcode()); in TEST_P()
267 m.Return((m.*dpi.constructor)(m.Int32Constant(imm), m.Parameter(0))); in TEST_P()
270 EXPECT_EQ(dpi.arch_opcode, s[0]->arch_opcode()); in TEST_P()
[all …]
/external/chromium_org/android_webview/native/
Daw_pdf_exporter.cc59 int MilsToDots(int val, int dpi) { in MilsToDots() argument
60 return static_cast<int>(ConvertUnitDouble(val, 1000.0, dpi)); in MilsToDots()
67 int dpi = Java_AwPdfExporter_getDpi(env, obj); in CreatePdfSettings() local
71 int width_in_dots = MilsToDots(width, dpi); in CreatePdfSettings()
72 int height_in_dots = MilsToDots(height, dpi); in CreatePdfSettings()
79 print_settings_->set_dpi(dpi); in CreatePdfSettings()
88 MilsToDots(Java_AwPdfExporter_getLeftMargin(env, obj), dpi); in CreatePdfSettings()
90 MilsToDots(Java_AwPdfExporter_getRightMargin(env, obj), dpi); in CreatePdfSettings()
92 MilsToDots(Java_AwPdfExporter_getTopMargin(env, obj), dpi); in CreatePdfSettings()
94 MilsToDots(Java_AwPdfExporter_getBottomMargin(env, obj), dpi); in CreatePdfSettings()
/external/chromium_org/chrome/renderer/printing/
Dmock_printer.cc24 void UpdateMargins(int margins_type, int dpi, PrintMsg_Print_Params* params) { in UpdateMargins() argument
26 params->content_size.SetSize(static_cast<int>((8.5 * dpi)), in UpdateMargins()
27 static_cast<int>((11.0 * dpi))); in UpdateMargins()
31 params->content_size.SetSize(static_cast<int>((8.0 * dpi)), in UpdateMargins()
32 static_cast<int>((10.5 * dpi))); in UpdateMargins()
33 params->margin_left = static_cast<int>(0.25 * dpi); in UpdateMargins()
34 params->margin_top = static_cast<int>(0.25 * dpi); in UpdateMargins()
36 params->content_size.SetSize(static_cast<int>((7.9 * dpi)), in UpdateMargins()
37 static_cast<int>((10.4 * dpi))); in UpdateMargins()
38 params->margin_left = static_cast<int>(0.30 * dpi); in UpdateMargins()
[all …]
Dprint_web_view_helper.cc91 return static_cast<int>(print_params->dpi); in GetDPI()
99 params.dpi && (params.margin_top >= 0) && (params.margin_left >= 0) && in PrintMsg_Print_Params_IsValid()
100 params.dpi > kMinDpi && params.document_cookie != 0; in PrintMsg_Print_Params_IsValid()
108 int dpi = GetDPI(&page_params); in GetCssPrintParams() local
111 ConvertUnit(page_params.page_size.width(), dpi, kPixelsPerInch), in GetCssPrintParams()
112 ConvertUnit(page_params.page_size.height(), dpi, kPixelsPerInch)); in GetCssPrintParams()
114 ConvertUnit(page_params.margin_top, dpi, kPixelsPerInch); in GetCssPrintParams()
118 dpi, kPixelsPerInch); in GetCssPrintParams()
122 dpi, kPixelsPerInch); in GetCssPrintParams()
125 dpi, kPixelsPerInch); in GetCssPrintParams()
[all …]
/external/chromium_org/components/cloud_devices/common/
Dprinter_description_unittest.cc274 DpiCapability dpi; in TEST() local
289 EXPECT_FALSE(dpi.LoadFrom(description)); in TEST()
320 DpiCapability dpi; in TEST() local
356 dpi.AddOption(Dpi(150, 250)); in TEST()
357 dpi.AddDefaultOption(Dpi(600, 1600), true); in TEST()
379 dpi.SaveTo(&description); in TEST()
400 DpiCapability dpi; in TEST() local
414 EXPECT_TRUE(dpi.LoadFrom(description)); in TEST()
453 EXPECT_TRUE(dpi.Contains(Dpi(150, 250))); in TEST()
454 EXPECT_TRUE(dpi.Contains(Dpi(600, 1600))); in TEST()
[all …]
/external/chromium_org/remoting/host/
Dscreen_resolution.cc20 const webrtc::DesktopVector& dpi) in ScreenResolution() argument
22 dpi_(dpi) { in ScreenResolution()
25 DCHECK_GE(dpi.x(), 0); in ScreenResolution()
26 DCHECK_GE(dpi.y(), 0); in ScreenResolution()
47 return dimensions_.equals(other.dimensions()) && dpi_.equals(other.dpi()); in Equals()
Dchromoting_param_traits.cc162 ParamTraits<webrtc::DesktopVector>::Write(m, p.dpi()); in Write()
171 webrtc::DesktopVector dpi; in Read() local
173 !ParamTraits<webrtc::DesktopVector>::Read(m, iter, &dpi)) { in Read()
177 dpi.x() < 0 || dpi.y() < 0) { in Read()
180 *r = remoting::ScreenResolution(size, dpi); in Read()
190 p.dpi().x(), p.dpi().y())); in Log()
Ddesktop_resizer_win.cc27 if (a.dpi().x() != b.dpi().x()) in operator <()
28 return a.dpi().x() < b.dpi().x(); in operator <()
29 return a.dpi().y() < b.dpi().y(); in operator <()
/external/chromium_org/printing/
Dprint_settings_initializer_win.cc22 int dpi = GetDeviceCaps(hdc, LOGPIXELSX); in InitPrintSettings() local
23 print_settings->set_dpi(dpi); in InitPrintSettings()
31 DCHECK_EQ(dpi, GetDeviceCaps(hdc, LOGPIXELSY)); in InitPrintSettings()
51 DCHECK_EQ(print_settings->device_units_per_inch(), dpi); in InitPrintSettings()
Dpdf_render_settings.h24 PdfRenderSettings(gfx::Rect area, int dpi, bool autorotate) in PdfRenderSettings() argument
25 : PdfRenderSettingsBase(area, dpi, autorotate) {} in PdfRenderSettings()
29 int dpi() const { return b; } in dpi() function
Dprinting_context_android.cc33 printing::PrintSettings* settings, int dpi, int width, int height) { in SetSizes() argument
38 settings->set_dpi(dpi); in SetSizes()
125 int dpi = Java_PrintingContext_getDpi(env, j_printing_context_.obj()); in AskUserForSettingsReply() local
128 width = Round(ConvertUnitDouble(width, kInchToMil, 1.0) * dpi); in AskUserForSettingsReply()
129 height = Round(ConvertUnitDouble(height, kInchToMil, 1.0) * dpi); in AskUserForSettingsReply()
130 SetSizes(&settings_, dpi, width, height); in AskUserForSettingsReply()
Dprint_settings.h87 void set_dpi(int dpi) { dpi_ = dpi; } in set_dpi() argument
88 int dpi() const { return dpi_; } in dpi() function
99 return dpi(); in device_units_per_inch()
Dprint_settings_initializer_mac.cc38 int dpi = best_resolution.hRes; in InitPrintSettings() local
39 print_settings->set_dpi(dpi); in InitPrintSettings()
41 DCHECK_EQ(dpi, best_resolution.vRes); in InitPrintSettings()
/external/chromium_org/chrome/service/cloud_print/
Dcdd_conversion_win.cc50 DpiTicketItem dpi; in CjtToDevMode() local
96 if (dpi.LoadFrom(description)) { in CjtToDevMode()
97 if (dpi.value().horizontal > 0) { in CjtToDevMode()
99 dev_mode->dmPrintQuality = dpi.value().horizontal; in CjtToDevMode()
101 if (dpi.value().vertical > 0) { in CjtToDevMode()
103 dev_mode->dmYResolution = dpi.value().vertical; in CjtToDevMode()
/external/chromium_org/chrome/common/cloud_print/
Dcloud_print_cdd_conversion.cc93 DpiCapability dpi; in PrinterSemanticCapsAndDefaultsToCdd() local
100 if (new_dpi.IsValid() && !dpi.Contains(new_dpi)) { in PrinterSemanticCapsAndDefaultsToCdd()
103 dpi.AddDefaultOption(new_dpi, new_dpi == default_dpi); in PrinterSemanticCapsAndDefaultsToCdd()
108 dpi.AddDefaultOption(default_dpi, true); in PrinterSemanticCapsAndDefaultsToCdd()
109 if (dpi.IsValid()) { in PrinterSemanticCapsAndDefaultsToCdd()
110 dpi.SaveTo(&description); in PrinterSemanticCapsAndDefaultsToCdd()
/external/chromium_org/android_webview/renderer/
Dprint_web_view_helper.cc91 return static_cast<int>(print_params->dpi); in GetDPI()
99 params.dpi && (params.margin_top >= 0) && (params.margin_left >= 0); in PrintMsg_Print_Params_IsValid()
107 int dpi = GetDPI(&page_params); in GetCssPrintParams() local
110 ConvertUnit(page_params.page_size.width(), dpi, kPixelsPerInch), in GetCssPrintParams()
111 ConvertUnit(page_params.page_size.height(), dpi, kPixelsPerInch)); in GetCssPrintParams()
113 ConvertUnit(page_params.margin_top, dpi, kPixelsPerInch); in GetCssPrintParams()
117 dpi, kPixelsPerInch); in GetCssPrintParams()
121 dpi, kPixelsPerInch); in GetCssPrintParams()
124 dpi, kPixelsPerInch); in GetCssPrintParams()
150 ConvertUnit(new_content_width, kPixelsPerInch, dpi), in GetCssPrintParams()
[all …]
/external/chromium_org/ui/gfx/
Dpango_util.cc90 static double dpi = -1.0; in GetPangoDPI() local
91 if (dpi < 0.0) { in GetPangoDPI()
94 dpi = delegate->GetFontDPI(); in GetPangoDPI()
95 if (dpi <= 0.0) in GetPangoDPI()
96 dpi = 96.0; in GetPangoDPI()
98 return dpi; in GetPangoDPI()
/external/skia/src/doc/
DSkDocument_PDF.cpp91 SkScalar dpi) { in CreatePDF() argument
92 return stream ? SkNEW_ARGS(SkDocument_PDF, (stream, done, enc, dpi)) : NULL; in CreatePDF()
101 SkScalar dpi) { in CreatePDF() argument
107 return SkNEW_ARGS(SkDocument_PDF, (stream, delete_wstream, enc, dpi)); in CreatePDF()
/external/chromium_org/third_party/skia/src/doc/
DSkDocument_PDF.cpp91 SkScalar dpi) { in CreatePDF() argument
92 return stream ? SkNEW_ARGS(SkDocument_PDF, (stream, done, enc, dpi)) : NULL; in CreatePDF()
101 SkScalar dpi) { in CreatePDF() argument
107 return SkNEW_ARGS(SkDocument_PDF, (stream, delete_wstream, enc, dpi)); in CreatePDF()
/external/chromium_org/win8/metro_driver/
Dprint_document_source.cc353 FLOAT dpi = dpi_; in MakePage() local
357 *reinterpret_cast<UINT32*>(&dpi) = static_cast<UINT32>(dpi_); in MakePage()
360 UINT32 dpi = static_cast<UINT32>(dpi_); in MakePage() local
364 *reinterpret_cast<FLOAT*>(&dpi) = dpi_; in MakePage()
367 hr = dxgi_preview_target_->DrawPage(job_page, dxgi_surface.Get(), dpi, dpi); in MakePage()
375 void PrintDocumentSource::ResetDpi(float dpi) { in ResetDpi() argument
378 if (dpi == dpi_) in ResetDpi()
380 dpi_ = dpi; in ResetDpi()
382 directx_context_.d2d_context->SetDpi(dpi, dpi); in ResetDpi()
/external/llvm/test/Transforms/GVN/
D2008-12-09-SelfRemove.ll11 define void @d_print_mod_list(%struct.d_print_info* %dpi, %struct.d_print_mod* %mods, i32 %suffix) …
13 %0 = getelementptr %struct.d_print_info* %dpi, i32 0, i32 1 ; <i8**> [#uses=1]
18 %2 = getelementptr %struct.d_print_info* %dpi, i32 0, i32 1 ; <i8**> [#uses=0]
/external/chromium_org/third_party/webrtc/modules/desktop_capture/
Ddesktop_frame.h50 const DesktopVector& dpi() const { return dpi_; } in dpi() function
51 void set_dpi(const DesktopVector& dpi) { dpi_ = dpi; } in set_dpi() argument

123456