New issue
Advanced search Search tips

Issue 706768 link

Starred by 1 user

Issue metadata

Status: Duplicate
Merged: issue 706770
Owner: ----
Closed: Apr 2017
EstimatedDays: ----
NextAction: ----
OS: Chrome
Pri: 2
Type: Bug



Sign in to add a comment

ARC based app cannot get correct DPI value with Android display manager interface

Reported by laffier....@gmail.com, Mar 30 2017

Issue description

UserAgent: Mozilla/5.0 (X11; CrOS x86_64 9000.91.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.110 Safari/537.36
Platform: 9000.91.0 (Official Build) stable-channel link

Steps to reproduce the problem:
Steps to reproduce the problem:
1.set Chromebook Pixel 2013/2015 to best resolution
Run the following code in ARC based app in Chromebook Pixel 2013/2015

DisplayMetrics dm = new DisplayMetrics();
mActivity.getWindowManager().getDefaultDisplay().getMetrics(dm);
int dpi = dm.densityDpi;

2.set Chromebook Pixel 2013/2015 to native resolution
Run the following code in ARC based app in Chromebook Pixel 2013/2015

DisplayMetrics dm = new DisplayMetrics();
mActivity.getWindowManager().getDefaultDisplay().getMetrics(dm);
int dpi = dm.densityDpi;

What is the expected behavior?
1. the returned dpi value should be 120
2. the returned dpi value should be 240

What went wrong?
1.We got 240 in the first step
2.We got 120 in the second step

Did this work before? N/A 

Chrome version: 56.0.2924.110  Channel: stable
OS Version: 9000.91.0
Flash Version: Shockwave Flash 24.0 r0

We can get correct value with Chrome.system.display.getInfo
 


This issue also exists in the following devices:

Chrome API:Chrome.system.display.getInfo

1. Toshiba Chromebook 2

in best resolution:1920x1080
  dpi value got with Chrome API:168
  dpi value got with Android API in ARC: 120

in maximum resolution:2400x1350
  dpi value got with Chrome API:210
  dpi value got with Android API in ARC: 120

2. Samsung Chromebook XE503C32

in best resolution:1920x1080
  dpi value got with Chrome API:166
  dpi value got with Android API in ARC: 120

in native resolution:2400x1350
  dpi value got with Chrome API:208
  dpi value got with Android API in ARC: 120


3.ASUS Chromebook Flip

in best resolution:1280x800
  dpi value got with Chrome API:149
  dpi value got with Android API in ARC: 120

in maximum resolution:1440x900
  dpi value got with Chrome API:168
  dpi value got with Android API in ARC: 120


It maybe one common issue.


Mergedinto: 706770
Status: Duplicate (was: Unconfirmed)

Sign in to add a comment