Searched refs:dpi (Results 1 - 25 of 115) sorted by relevance

12345

/external/chromium_org/chrome/browser/ui/libgtk2ui/
H A Dprinting_gtk2_util.cc55 int dpi = gtk_print_settings_get_resolution(settings); local
56 if (dpi) {
59 gtk_page_setup_get_paper_width(page_setup, GTK_UNIT_INCH) * dpi,
60 gtk_page_setup_get_paper_height(page_setup, GTK_UNIT_INCH) * dpi);
62 gtk_page_setup_get_left_margin(page_setup, GTK_UNIT_INCH) * dpi,
63 gtk_page_setup_get_top_margin(page_setup, GTK_UNIT_INCH) * dpi,
64 gtk_page_setup_get_page_width(page_setup, GTK_UNIT_INCH) * dpi,
65 gtk_page_setup_get_page_height(page_setup, GTK_UNIT_INCH) * dpi);
68 dpi = printing::kPixelsPerInch;
69 double page_width_in_pixel = printing::kLetterWidthInch * dpi;
[all...]
/external/chromium_org/printing/
H A Dpdf_render_settings.h17 // int - render dpi
24 PdfRenderSettings(gfx::Rect area, int dpi, bool autorotate) argument
25 : PdfRenderSettingsBase(area, dpi, autorotate) {}
29 int dpi() const { return b; } function in class:printing::PdfRenderSettings
H A Dprint_settings_initializer_win.cc22 int dpi = GetDeviceCaps(hdc, LOGPIXELSX); local
23 print_settings->set_dpi(dpi);
27 // No printer device is known to advertise different dpi in X and Y axis; even
28 // the fax device using the 200x100 dpi setting. It's ought to break so many
30 // support different dpi settings in X and Y axis.
31 DCHECK_EQ(dpi, GetDeviceCaps(hdc, LOGPIXELSY));
51 DCHECK_EQ(print_settings->device_units_per_inch(), dpi);
H A Dprint_settings_initializer_mac.cc38 int dpi = best_resolution.hRes; local
39 print_settings->set_dpi(dpi);
41 DCHECK_EQ(dpi, best_resolution.vRes);
H A Dprint_settings.h87 void set_dpi(int dpi) { dpi_ = dpi; } argument
88 int dpi() const { return dpi_; } function in class:printing::PrintSettings
99 return dpi();
/external/chromium_org/remoting/host/
H A Dscreen_resolution.h19 const webrtc::DesktopVector& dpi);
29 const webrtc::DesktopVector& dpi() const { return dpi_; } function in class:remoting::ScreenResolution
H A Dscreen_resolution.cc20 const webrtc::DesktopVector& dpi)
22 dpi_(dpi) {
25 DCHECK_GE(dpi.x(), 0);
26 DCHECK_GE(dpi.y(), 0);
47 return dimensions_.equals(other.dimensions()) && dpi_.equals(other.dpi());
19 ScreenResolution(const webrtc::DesktopSize& dimensions, const webrtc::DesktopVector& dpi) argument
H A Ddesktop_resizer_win.cc27 if (a.dpi().x() != b.dpi().x())
28 return a.dpi().x() < b.dpi().x();
29 return a.dpi().y() < b.dpi().y();
/external/valgrind/main/coregrind/m_demangle/
H A Dcp-demangle.c3431 d_print_init (struct d_print_info *dpi, demangle_callbackref callback, argument
3434 dpi->len = 0;
3435 dpi->last_char = '\0';
3436 dpi->templates = NULL;
3437 dpi->modifiers = NULL;
3438 dpi->pack_index = 0;
3439 dpi->flush_count = 0;
3441 dpi->callback = callback;
3442 dpi->opaque = opaque;
3444 dpi
3450 d_print_error(struct d_print_info *dpi) argument
3456 d_print_saw_error(struct d_print_info *dpi) argument
3464 d_print_flush(struct d_print_info *dpi) argument
3475 d_append_char(struct d_print_info *dpi, char c) argument
3485 d_append_buffer(struct d_print_info *dpi, const char *s, size_t l) argument
3494 d_append_string(struct d_print_info *dpi, const char *s) argument
3500 d_append_num(struct d_print_info *dpi, long l) argument
3508 d_last_char(struct d_print_info *dpi) argument
3528 struct d_print_info dpi; local
3597 d_lookup_template_argument(struct d_print_info *dpi, const struct demangle_component *dc) argument
3614 d_find_pack(struct d_print_info *dpi, const struct demangle_component *dc) argument
3675 d_print_subexpr(struct d_print_info *dpi, int options, const struct demangle_component *dc) argument
3692 d_print_comp(struct d_print_info *dpi, int options, const struct demangle_component *dc) argument
4616 d_print_java_identifier(struct d_print_info *dpi, const char *name, int len) argument
4666 d_print_mod_list(struct d_print_info *dpi, int options, struct d_print_mod *mods, int suffix) argument
4752 d_print_mod(struct d_print_info *dpi, int options, const struct demangle_component *mod) argument
4816 d_print_function_type(struct d_print_info *dpi, int options, const struct demangle_component *dc, struct d_print_mod *mods) argument
4896 d_print_array_type(struct d_print_info *dpi, int options, const struct demangle_component *dc, struct d_print_mod *mods) argument
4950 d_print_expr_op(struct d_print_info *dpi, int options, const struct demangle_component *dc) argument
4963 d_print_cast(struct d_print_info *dpi, int options, const struct demangle_component *dc) argument
[all...]
/external/gcc-demangle/
H A Dcp-demangle.c3296 d_print_init (struct d_print_info *dpi, int options, argument
3299 dpi->options = options;
3300 dpi->len = 0;
3301 dpi->last_char = '\0';
3302 dpi->templates = NULL;
3303 dpi->modifiers = NULL;
3304 dpi->flush_count = 0;
3306 dpi->callback = callback;
3307 dpi->opaque = opaque;
3309 dpi
3315 d_print_error(struct d_print_info *dpi) argument
3321 d_print_saw_error(struct d_print_info *dpi) argument
3329 d_print_flush(struct d_print_info *dpi) argument
3340 d_append_char(struct d_print_info *dpi, char c) argument
3350 d_append_buffer(struct d_print_info *dpi, const char *s, size_t l) argument
3359 d_append_string(struct d_print_info *dpi, const char *s) argument
3365 d_append_num(struct d_print_info *dpi, long l) argument
3373 d_last_char(struct d_print_info *dpi) argument
3393 struct d_print_info dpi; local
3462 d_lookup_template_argument(struct d_print_info *dpi, const struct demangle_component *dc) argument
3479 d_find_pack(struct d_print_info *dpi, const struct demangle_component *dc) argument
3540 d_print_subexpr(struct d_print_info *dpi, const struct demangle_component *dc) argument
3557 d_print_comp(struct d_print_info *dpi, const struct demangle_component *dc) argument
4358 d_print_java_identifier(struct d_print_info *dpi, const char *name, int len) argument
4408 d_print_mod_list(struct d_print_info *dpi, struct d_print_mod *mods, int suffix) argument
4494 d_print_mod(struct d_print_info *dpi, const struct demangle_component *mod) argument
4558 d_print_function_type(struct d_print_info *dpi, const struct demangle_component *dc, struct d_print_mod *mods) argument
4638 d_print_array_type(struct d_print_info *dpi, const struct demangle_component *dc, struct d_print_mod *mods) argument
4692 d_print_expr_op(struct d_print_info *dpi, const struct demangle_component *dc) argument
4705 d_print_cast(struct d_print_info *dpi, const struct demangle_component *dc) argument
[all...]
/external/chromium_org/android_webview/native/
H A Daw_pdf_exporter.cc59 int MilsToDots(int val, int dpi) { argument
60 return static_cast<int>(ConvertUnitDouble(val, 1000.0, dpi));
67 int dpi = Java_AwPdfExporter_getDpi(env, obj); local
71 int width_in_dots = MilsToDots(width, dpi);
72 int height_in_dots = MilsToDots(height, dpi);
79 print_settings_->set_dpi(dpi);
88 MilsToDots(Java_AwPdfExporter_getLeftMargin(env, obj), dpi);
90 MilsToDots(Java_AwPdfExporter_getRightMargin(env, obj), dpi);
92 MilsToDots(Java_AwPdfExporter_getTopMargin(env, obj), dpi);
94 MilsToDots(Java_AwPdfExporter_getBottomMargin(env, obj), dpi);
[all...]
/external/chromium_org/ppapi/api/dev/
H A Dpp_print_settings_dev.idl39 int32_t dpi;
/external/chromium_org/ui/display/util/
H A Ddisplay_util.cc63 const unsigned int dpi = (kInchInMm * screen_size_in_pixels.width() / local
68 return (dpi > threshold) ? 2.0f : 1.0f;
/external/chromium_org/third_party/webrtc/modules/desktop_capture/
H A Ddesktop_frame.h50 const DesktopVector& dpi() const { return dpi_; } function in class:webrtc::DesktopFrame
51 void set_dpi(const DesktopVector& dpi) { dpi_ = dpi; } argument
/external/chromium_org/chrome/renderer/printing/
H A Dmock_printer.cc24 void UpdateMargins(int margins_type, int dpi, PrintMsg_Print_Params* params) { argument
26 params->content_size.SetSize(static_cast<int>((8.5 * dpi)),
27 static_cast<int>((11.0 * dpi)));
31 params->content_size.SetSize(static_cast<int>((8.0 * dpi)),
32 static_cast<int>((10.5 * dpi)));
33 params->margin_left = static_cast<int>(0.25 * dpi);
34 params->margin_top = static_cast<int>(0.25 * dpi);
36 params->content_size.SetSize(static_cast<int>((7.9 * dpi)),
37 static_cast<int>((10.4 * dpi)));
38 params->margin_left = static_cast<int>(0.30 * dpi);
[all...]
/external/chromium_org/v8/src/compiler/arm64/
H A Dinstruction-selector-arm64-unittest.cc234 const MachInst2 dpi = GetParam(); local
235 const MachineType type = dpi.machine_type;
237 m.Return((m.*dpi.constructor)(m.Parameter(0), m.Parameter(1)));
240 EXPECT_EQ(dpi.arch_opcode, s[0]->arch_opcode());
247 const MachInst2 dpi = GetParam(); local
248 const MachineType type = dpi.machine_type;
254 m.Return((m.*dpi.constructor)(m.Parameter(0), m.Int32Constant(imm)));
257 EXPECT_EQ(dpi.arch_opcode, s[0]->arch_opcode());
267 m.Return((m.*dpi.constructor)(m.Int32Constant(imm), m.Parameter(0)));
270 EXPECT_EQ(dpi
292 const MachInst2 dpi = GetParam(); local
305 const MachInst2 dpi = GetParam(); local
322 const MachInst2 dpi = GetParam(); local
384 const MachInst2 dpi = GetParam(); local
507 const MachInst2 dpi = GetParam(); local
523 const MachInst2 dpi = GetParam(); local
542 const MachInst2 dpi = GetParam(); local
557 const MachInst2 dpi = GetParam(); local
575 const MachInst2 dpi = GetParam(); local
591 const MachInst2 dpi = GetParam(); local
610 const MachInst2 dpi = GetParam(); local
631 const MachInst2 dpi = GetParam(); local
743 const MachInst2 dpi = GetParam(); local
756 const MachInst2 dpi = GetParam(); local
785 const MachInst2 dpi = GetParam(); local
[all...]
/external/chromium_org/chrome/common/cloud_print/
H A Dcloud_print_cdd_conversion.cc93 DpiCapability dpi; local
100 if (new_dpi.IsValid() && !dpi.Contains(new_dpi)) {
103 dpi.AddDefaultOption(new_dpi, new_dpi == default_dpi);
108 dpi.AddDefaultOption(default_dpi, true);
109 if (dpi.IsValid()) {
110 dpi.SaveTo(&description);
/external/chromium_org/chrome/service/cloud_print/
H A Dcdd_conversion_win.cc50 DpiTicketItem dpi; local
96 if (dpi.LoadFrom(description)) {
97 if (dpi.value().horizontal > 0) {
99 dev_mode->dmPrintQuality = dpi.value().horizontal;
101 if (dpi.value().vertical > 0) {
103 dev_mode->dmYResolution = dpi.value().vertical;
/external/chromium_org/chrome/browser/extensions/
H A Ddisplay_info_provider_win.cc16 #include "ui/gfx/win/dpi.h"
41 gfx::Size dpi(gfx::GetDPI());
45 unit->dpi_x = dpi.width();
46 unit->dpi_y = dpi.height();
/external/chromium_org/remoting/codec/
H A Dvideo_encoder_helper.cc62 if (!frame.dpi().is_zero()) {
63 packet->mutable_format()->set_x_dpi(frame.dpi().x());
64 packet->mutable_format()->set_y_dpi(frame.dpi().y());
/external/chromium_org/ppapi/c/dev/
H A Dpp_print_settings_dev.h63 int32_t dpi; member in struct:PP_PrintSettings_Dev
/external/chromium_org/third_party/skia/experimental/PdfViewer/inc/
H A DSkPdfRenderer.h71 double dpi = 72.0);
/external/chromium_org/third_party/skia/src/doc/
H A DSkDocument_PDF.cpp91 SkScalar dpi) {
92 return stream ? SkNEW_ARGS(SkDocument_PDF, (stream, done, enc, dpi)) : NULL;
101 SkScalar dpi) {
107 return SkNEW_ARGS(SkDocument_PDF, (stream, delete_wstream, enc, dpi));
89 CreatePDF(SkWStream* stream, void (*done)(SkWStream*,bool), SkPicture::EncodeBitmap enc, SkScalar dpi) argument
99 CreatePDF(const char path[], SkPicture::EncodeBitmap enc, SkScalar dpi) argument
/external/skia/experimental/PdfViewer/inc/
H A DSkPdfRenderer.h71 double dpi = 72.0);
/external/skia/src/doc/
H A DSkDocument_PDF.cpp91 SkScalar dpi) {
92 return stream ? SkNEW_ARGS(SkDocument_PDF, (stream, done, enc, dpi)) : NULL;
101 SkScalar dpi) {
107 return SkNEW_ARGS(SkDocument_PDF, (stream, delete_wstream, enc, dpi));
89 CreatePDF(SkWStream* stream, void (*done)(SkWStream*,bool), SkPicture::EncodeBitmap enc, SkScalar dpi) argument
99 CreatePDF(const char path[], SkPicture::EncodeBitmap enc, SkScalar dpi) argument

Completed in 659 milliseconds

12345