Closed Bug 772539 Opened 12 years ago Closed 11 years ago

Add capability to get screen size in devicemanagerADB

Categories

(Testing :: Mozbase, defect)

x86_64
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED INCOMPLETE

People

(Reporter: ahal, Unassigned)

Details

It is possible to get the screen resolution with devicemanagerSUT, but not devicemanagerADB. This is needed to detect invalid screen sizes for reftests.
I think it should be possible to get this information with the screencap utility on ICS-based devices.

http://a-more-common-hades.blogspot.ca/2012/01/screenshot-command.html

Not sure of a good way of doing this on 2.2/2.3, there are some ideas here but I have to confess I don't really like any of them: 

http://stackoverflow.com/questions/2807070/screenshot-of-the-nexus-one-from-adb

Since this functionality is really only needed for B2G (AFAIK), I might suggest just not supporting it for older devices.
Ok, I'll take a look. I'm trying out http://stackoverflow.com/questions/7527459/android-device-screen-size first, though it says it doesn't work on all devices.
Assignee: nobody → ahalberstadt
Status: NEW → ASSIGNED
(In reply to Andrew Halberstadt [:ahal] from comment #2)
> Ok, I'll take a look. I'm trying out
> http://stackoverflow.com/questions/7527459/android-device-screen-size first,
> though it says it doesn't work on all devices.

Yep, I can confirm this.
Assignee: ahalberstadt → nobody
Status: ASSIGNED → NEW
Found in triage. I don't know that this is something we can do without making some kind of extensive library. There doesn't seem to be a pressing need for it either, so resolving.
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → INCOMPLETE
You need to log in before you can comment on or make changes to this bug.