[Android] Add GetDescription and defer calculating device_utc_offset

First, only get the device's utc offset when it is actually needed. Calculating
this offset takes about 100ms on a typical device. The build scripts assume
that creating an instance of AndroidCommands is not so expensive. Instead,
defer calculating this value until it is actually requested. There are
currently several cases where the build scripts call adb directly instead of
through android_commands just to avoid this extra cost.

Second, add a GetDescription method to get a (mostly) user-readable description
of the device.

TBR=frankf@chromium.org

Review URL: https://chromiumcodereview.appspot.com/17088005

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@207371 0039d316-1c4b-4281-b951-d872f2087c98


CrOS-Libchrome-Original-Commit: 3873cc0874cb50e5440994ace16b90a44129d337
1 file changed
tree: 002b6317453db60e8c077a06285d925fbc41db3e
  1. base/
  2. build/
  3. dbus/
  4. ipc/
  5. testing/
  6. third_party/