/third_party/jsframework/runtime/main/extend/dpi/ |
D | Dpi.ts | 26 instance?: { dpi: dpiConstructor }; 76 return this.dpi ? this.dpi : global.aceapp.dpi; 80 const dpi = this._dpi; constant 81 return dpi.$r(key); 92 if (typeof global.dpi === 'function') { 96 dpi: class extends Dpi {
|
D | index.ts | 16 import dpi from './Dpi'; 19 dpi
|
/third_party/libinput/tools/ |
D | make-ptraccel-graphs.sh | 14 $tool --mode=accel --dpi=1000 --filter=linear --speed=$speed > $outfile-$speed.gnuplot 32 for dpi in $dpis; do 33 $tool --mode=accel --dpi=$dpi --filter=low-dpi > $outfile-$dpi.gnuplot 48 plot for [dpi in dpis] fname(dpi) using 1:2 title lname(dpi), \ 55 $tool --mode=accel --dpi=1000 --filter=touchpad --speed=$speed> $outfile-$speed.gnuplot
|
D | ptraccel-debug.c | 146 mmps_to_upus(double mmps, int dpi) in mmps_to_upus() argument 148 return mmps * (dpi/25.4) / 1e6; in mmps_to_upus() 154 int dpi) in print_accel_func() argument 166 double units_per_us = mmps_to_upus(mmps, dpi); in print_accel_func() 224 int dpi = 1000; in main() local 305 dpi = strtod(optarg, NULL); in main() 318 filter = create_pointer_accelerator_filter_linear(dpi, in main() 322 filter = create_pointer_accelerator_filter_linear_low_dpi(dpi, in main() 326 filter = create_pointer_accelerator_filter_touchpad(dpi, in main() 331 filter = create_pointer_accelerator_filter_lenovo_x230(dpi, in main() [all …]
|
/third_party/libinput/doc/user/ |
D | normalization-of-relative-motion.rst | 9 of the sensor. Most optical mice use sensors with 1000dpi resolution, but 10 some devices range from 100dpi to well above 8000dpi. 19 resolution of 1000dpi and higher, motion events are normalized to a default 20 of 1000dpi before pointer acceleration is applied. As a result, devices with 21 1000dpi and above feel the same. 23 Devices below 1000dpi are not normalized (normalization of a 1-device unit 24 movement on a 400dpi mouse would cause a 2.5 pixel movement). Instead, 25 libinput applies a dpi-dependent acceleration function. At low speeds, a 27 movement speed increases, acceleration is applied - at high speeds a low-dpi 28 device will roughly feel the same as a higher-dpi mouse. [all …]
|
/third_party/skia/experimental/xps_to_png/ |
D | xps_to_png.cs | 23 static void convert(double dpi, string path, string out_path) { in convert() argument 24 double scale = dpi / 96.0; in convert() 53 ceil(scale * width), ceil(scale * height), dpi, dpi, in convert() 72 static void try_convert(double dpi, string path, string out_path) { in try_convert() argument 74 convert(dpi, path, out_path); in try_convert() 82 double dpi = 72.0; in Main() 92 dpi = System.Convert.ToDouble(arg.Remove(0, flag.Length)); in Main() 102 () => try_convert(dpi, file, file)); in Main()
|
/third_party/libinput/src/ |
D | filter.h | 108 create_pointer_accelerator_filter_flat(int dpi); 111 create_pointer_accelerator_filter_linear(int dpi, bool use_velocity_averaging); 114 create_pointer_accelerator_filter_linear_low_dpi(int dpi, bool use_velocity_averaging); 117 create_pointer_accelerator_filter_touchpad(int dpi, 123 create_pointer_accelerator_filter_touchpad_flat(int dpi); 126 create_pointer_accelerator_filter_lenovo_x230(int dpi, bool use_velocity_averaging);
|
D | filter-mouse.c | 60 int dpi; member 140 normalized = normalize_for_dpi(unaccelerated, accel->dpi); in accelerator_filter_pre_normalized() 173 return normalize_for_dpi(unaccelerated, accel->dpi); in accelerator_filter_noop() 239 speed_in = speed_in * DEFAULT_MOUSE_DPI/accel_filter->dpi; in pointer_accel_profile_linear() 311 create_default_filter(int dpi, bool use_velocity_averaging) in create_default_filter() argument 323 filter->dpi = dpi; in create_default_filter() 329 create_pointer_accelerator_filter_linear(int dpi, bool use_velocity_averaging) in create_pointer_accelerator_filter_linear() argument 333 filter = create_default_filter(dpi, use_velocity_averaging); in create_pointer_accelerator_filter_linear()
|
D | filter-low-dpi.c | 60 int dpi; member 85 double dpi_factor = accel_filter->dpi/(double)DEFAULT_MOUSE_DPI; in pointer_accel_profile_linear_low_dpi() 175 return normalize_for_dpi(unaccelerated, accel->dpi); in accelerator_filter_noop() 237 create_default_filter(int dpi, bool use_velocity_averaging) in create_default_filter() argument 249 filter->dpi = dpi; in create_default_filter() 255 create_pointer_accelerator_filter_linear_low_dpi(int dpi, bool use_velocity_averaging) in create_pointer_accelerator_filter_linear_low_dpi() argument 259 filter = create_default_filter(dpi, use_velocity_averaging); in create_pointer_accelerator_filter_linear_low_dpi()
|
D | filter-flat.c | 41 int dpi; member 71 return normalize_for_dpi(unaccelerated, accel->dpi); in accelerator_filter_noop_flat() 113 create_pointer_accelerator_filter_flat(int dpi) in create_pointer_accelerator_filter_flat() argument 119 filter->dpi = dpi; in create_pointer_accelerator_filter_flat()
|
D | filter-touchpad-flat.c | 44 int dpi; member 75 normalized = normalize_for_dpi(unaccelerated, accel->dpi); in accelerator_filter_noop_touchpad_flat() 116 create_pointer_accelerator_filter_touchpad_flat(int dpi) in create_pointer_accelerator_filter_touchpad_flat() argument 122 filter->dpi = dpi; in create_pointer_accelerator_filter_touchpad_flat()
|
D | filter-touchpad.c | 56 int dpi; member 140 return normalize_for_dpi(&accelerated, accel->dpi); in accelerator_filter_post_normalized() 200 normalized = normalize_for_dpi(unaccelerated, accel->dpi); in touchpad_constant_filter() 241 speed_in = v_us2s(speed_in) * 25.4/accel_filter->dpi; in touchpad_accel_profile_linear() 326 create_pointer_accelerator_filter_touchpad(int dpi, in create_pointer_accelerator_filter_touchpad() argument 340 filter->dpi = dpi; in create_pointer_accelerator_filter_touchpad()
|
D | filter-touchpad-x230.c | 74 int dpi; member 149 unaccelerated = normalize_for_dpi(raw, accel->dpi); in accelerator_filter_x230() 179 normalized = normalize_for_dpi(unaccelerated, accel->dpi); in accelerator_filter_constant_x230() 300 create_pointer_accelerator_filter_lenovo_x230(int dpi, bool use_velocity_averaging) in create_pointer_accelerator_filter_lenovo_x230() argument 314 filter->dpi = dpi; in create_pointer_accelerator_filter_lenovo_x230()
|
D | filter-private.h | 120 normalize_for_dpi(const struct device_float_coords *coords, int dpi) in normalize_for_dpi() argument 124 norm.x = coords->x * DEFAULT_MOUSE_DPI/dpi; in normalize_for_dpi() 125 norm.y = coords->y * DEFAULT_MOUSE_DPI/dpi; in normalize_for_dpi()
|
D | util-prop-parsers.c | 55 int nread, dpi = 0, rate; in parse_mouse_dpi_property() local 78 sscanf(prop, "%d@%d%n", &dpi, &rate, &nread); in parse_mouse_dpi_property() 80 sscanf(prop, "%d%n", &dpi, &nread); in parse_mouse_dpi_property() 81 if (!nread || dpi <= 0 || rate <= 0 || prop[nread] == '@') in parse_mouse_dpi_property() 88 return dpi; in parse_mouse_dpi_property()
|
/third_party/cef/tests/cefclient/browser/ |
D | print_handler_gtk.cc | 235 int dpi = gtk_print_settings_get_resolution(settings); in InitPrintSettings() local 236 if (dpi) { in InitPrintSettings() 239 gtk_page_setup_get_paper_width(page_setup, GTK_UNIT_INCH) * dpi, in InitPrintSettings() 240 gtk_page_setup_get_paper_height(page_setup, GTK_UNIT_INCH) * dpi); in InitPrintSettings() 242 gtk_page_setup_get_left_margin(page_setup, GTK_UNIT_INCH) * dpi, in InitPrintSettings() 243 gtk_page_setup_get_top_margin(page_setup, GTK_UNIT_INCH) * dpi, in InitPrintSettings() 244 gtk_page_setup_get_page_width(page_setup, GTK_UNIT_INCH) * dpi, in InitPrintSettings() 245 gtk_page_setup_get_page_height(page_setup, GTK_UNIT_INCH) * dpi); in InitPrintSettings() 248 dpi = kPixelsPerInch; in InitPrintSettings() 249 double page_width_in_pixel = kLetterWidthInch * dpi; in InitPrintSettings() [all …]
|
/third_party/skia/src/xps/ |
D | SkXPSDocument.cpp | 29 SkXPSDocument(SkWStream*, SkScalar dpi, SkTScopedComPtr<IXpsOMObjectFactory>); 39 SkScalar dpi, in SkXPSDocument() argument 47 SkScalar pixelsPerMeterScale = SkDoubleToScalar(dpi * 5000.0 / 127.0); 81 SkScalar dpi) { in MakeDocument() argument 84 ? sk_make_sp<SkXPSDocument>(stream, dpi, std::move(factory)) in MakeDocument()
|
/third_party/jsframework/test/ut/extend/ |
D | dpi.ts | 25 import dpi from '../../../runtime/main/extend/dpi'; 51 const Dpi = dpi.dpi.create(0).instance.dpi;
|
/third_party/gstreamer/gstplugins_base/gst-libs/gst/gl/winrt/ |
D | gstglwindow_winrt_egl.cpp | 131 float dpi = 96.0f; in get_logical_dpi() local 133 hr = properties->get_LogicalDpi (&dpi); in get_logical_dpi() 135 return dpi; in get_logical_dpi() 174 float dpi; in IFACEMETHOD() local 176 dpi = get_logical_dpi (); in IFACEMETHOD() 178 width = (guint) dip_to_pixel (new_size.Width, dpi); in IFACEMETHOD() 179 height = (guint) dip_to_pixel (new_size.Height, dpi); in IFACEMETHOD() 457 float dpi; in getWindowSizeForCoreWindow() local 459 dpi = get_logical_dpi (); in getWindowSizeForCoreWindow() 461 *width = (guint) dip_to_pixel (bounds.Width, dpi); in getWindowSizeForCoreWindow() [all …]
|
/third_party/libevdev/tools/ |
D | Makefile.am | 4 mouse-dpi-tool \ 19 mouse_dpi_tool_SOURCES = mouse-dpi-tool.c 27 mouse-dpi-tool.1 \
|
/third_party/jsframework/runtime/preparation/ |
D | init.ts | 26 import dpi from '../main/extend/dpi/index'; 51 for (const serviceName in dpi) { 52 service.register(serviceName, dpi[serviceName]);
|
/third_party/cef/tests/ceftests/ |
D | print_unittest.cc | 29 int dpi = 25; in TEST() local 30 settings->SetDPI(dpi); in TEST() 31 EXPECT_EQ(dpi, settings->GetDPI()); in TEST()
|
/third_party/cef/libcef/browser/ |
D | print_settings_impl.cc | 62 void CefPrintSettingsImpl::SetDPI(int dpi) { in SetDPI() argument 64 mutable_value()->set_dpi(dpi); in SetDPI() 69 return const_value().dpi(); in GetDPI()
|
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/d3d/d3d11/winrt/ |
D | CoreWindowNativeWindow.cpp | 222 float dpi = 96.0f; in GetLogicalDpi() local 223 if (SUCCEEDED(displayProperties->get_LogicalDpi(&dpi))) in GetLogicalDpi() 225 return dpi; in GetLogicalDpi()
|
/third_party/jsframework/runtime/main/manage/instance/ |
D | life.ts | 41 const { I18n, dpi } = services; constant 49 page.dpiService = dpi;
|