OSDN Git Service

android-x86/frameworks-base.git
10 years agoam 0fc59cd9: am da2bbaf2: am 2c7b913e: am 5daec5b5: Merge "UsbDeviceManager: Fix...
Mike Lockwood [Tue, 25 Feb 2014 15:48:03 +0000 (15:48 +0000)]
am 0fc59cd9: am da2bbaf2: am 2c7b913e: am 5daec5b5: Merge "UsbDeviceManager: Fix race condition entering USB accessory mode" into klp-dev

* commit '0fc59cd958b87d015deac63797fcbfbcec518389':
  UsbDeviceManager: Fix race condition entering USB accessory mode

10 years agoam da2bbaf2: am 2c7b913e: am 5daec5b5: Merge "UsbDeviceManager: Fix race condition...
Mike Lockwood [Tue, 25 Feb 2014 15:44:24 +0000 (15:44 +0000)]
am da2bbaf2: am 2c7b913e: am 5daec5b5: Merge "UsbDeviceManager: Fix race condition entering USB accessory mode" into klp-dev

* commit 'da2bbaf219117f7507c5c0015c41347a9cc27507':
  UsbDeviceManager: Fix race condition entering USB accessory mode

10 years agoam 2c7b913e: am 5daec5b5: Merge "UsbDeviceManager: Fix race condition entering USB...
Mike Lockwood [Tue, 25 Feb 2014 15:41:11 +0000 (15:41 +0000)]
am 2c7b913e: am 5daec5b5: Merge "UsbDeviceManager: Fix race condition entering USB accessory mode" into klp-dev

* commit '2c7b913e367670dde337893efd59029c054019fc':
  UsbDeviceManager: Fix race condition entering USB accessory mode

10 years agoam 5daec5b5: Merge "UsbDeviceManager: Fix race condition entering USB accessory mode...
Mike Lockwood [Tue, 25 Feb 2014 15:38:25 +0000 (15:38 +0000)]
am 5daec5b5: Merge "UsbDeviceManager: Fix race condition entering USB accessory mode" into klp-dev

* commit '5daec5b58a89779b0f8775f52859bae0bda17b23':
  UsbDeviceManager: Fix race condition entering USB accessory mode

10 years agoMerge "UsbDeviceManager: Fix race condition entering USB accessory mode" into klp-dev
Mike Lockwood [Tue, 25 Feb 2014 15:35:33 +0000 (15:35 +0000)]
Merge "UsbDeviceManager: Fix race condition entering USB accessory mode" into klp-dev

10 years agoam 7fe5978b: am 2ba70fd4: Merge "Use reinterpret_cast when an integer is cast to...
Narayan Kamath [Tue, 25 Feb 2014 13:14:35 +0000 (13:14 +0000)]
am 7fe5978b: am 2ba70fd4: Merge "Use reinterpret_cast when an integer is cast to a pointer"

* commit '7fe5978bf7c4b473d8f6db5a12cfdcd110511331':
  Use reinterpret_cast when an integer is cast to a pointer

10 years agoam a88abfb3: am 6ab07fac: Merge "Use long for pointers in opengl/EGL classes"
Narayan Kamath [Tue, 25 Feb 2014 13:14:30 +0000 (13:14 +0000)]
am a88abfb3: am 6ab07fac: Merge "Use long for pointers in opengl/EGL classes"

* commit 'a88abfb3a5dccdad6210b294843fa2e21a27d378':
  Use long for pointers in opengl/EGL classes

10 years agoam 2ba70fd4: Merge "Use reinterpret_cast when an integer is cast to a pointer"
Narayan Kamath [Tue, 25 Feb 2014 13:11:43 +0000 (05:11 -0800)]
am 2ba70fd4: Merge "Use reinterpret_cast when an integer is cast to a pointer"

* commit '2ba70fd49bfcbb516e75c198c106764609335feb':
  Use reinterpret_cast when an integer is cast to a pointer

10 years agoam 6ab07fac: Merge "Use long for pointers in opengl/EGL classes"
Narayan Kamath [Tue, 25 Feb 2014 13:11:40 +0000 (05:11 -0800)]
am 6ab07fac: Merge "Use long for pointers in opengl/EGL classes"

* commit '6ab07fac49d6b618883a2ef4cea11f0959b3abe3':
  Use long for pointers in opengl/EGL classes

10 years agoMerge "Use reinterpret_cast when an integer is cast to a pointer"
Narayan Kamath [Tue, 25 Feb 2014 13:05:47 +0000 (13:05 +0000)]
Merge "Use reinterpret_cast when an integer is cast to a pointer"

10 years agoMerge "Use long for pointers in opengl/EGL classes"
Narayan Kamath [Tue, 25 Feb 2014 13:05:43 +0000 (13:05 +0000)]
Merge "Use long for pointers in opengl/EGL classes"

10 years agoam 2326acb5: Merge "Fix typo that causes dreaming on battery." into klp-modular-dev
Jeff Brown [Tue, 25 Feb 2014 00:32:37 +0000 (00:32 +0000)]
am 2326acb5: Merge "Fix typo that causes dreaming on battery." into klp-modular-dev

* commit '2326acb591d889d9492219f5f8f79940fd66ba70':
  Fix typo that causes dreaming on battery.

10 years agoMerge "Fix typo that causes dreaming on battery." into klp-modular-dev
Jeff Brown [Tue, 25 Feb 2014 00:27:41 +0000 (00:27 +0000)]
Merge "Fix typo that causes dreaming on battery." into klp-modular-dev

10 years agoam bf3a45f3: Merge "DO NOT MERGE EGL14.eglCreateWindowSurface should set producerCont...
Justin Koh [Tue, 25 Feb 2014 00:24:51 +0000 (00:24 +0000)]
am bf3a45f3: Merge "DO NOT MERGE EGL14.eglCreateWindowSurface should set producerControlledByApp" into klp-modular-dev

* commit 'bf3a45f3adc435d7670ac5a92d2fb73b1e21f7aa':
  DO NOT MERGE EGL14.eglCreateWindowSurface should set producerControlledByApp

10 years agoMerge "DO NOT MERGE EGL14.eglCreateWindowSurface should set producerControlledByApp...
Justin Koh [Tue, 25 Feb 2014 00:20:45 +0000 (00:20 +0000)]
Merge "DO NOT MERGE EGL14.eglCreateWindowSurface should set producerControlledByApp" into klp-modular-dev

10 years agoFix typo that causes dreaming on battery.
Jeff Brown [Tue, 25 Feb 2014 00:19:51 +0000 (16:19 -0800)]
Fix typo that causes dreaming on battery.

Bug: 13173012
Change-Id: I611970a5b4c4b0072ce52e3fc6a57dd3a0c075b3

10 years agoDO NOT MERGE EGL14.eglCreateWindowSurface should set producerControlledByApp
Takahiro Aizawa [Wed, 11 Dec 2013 10:22:26 +0000 (19:22 +0900)]
DO NOT MERGE EGL14.eglCreateWindowSurface should set producerControlledByApp

Interface of Surface class changed.
To reflect the change for EGL14, add producerControlledByApp flag.
Similar change can be seen in 0fa257fe53bf520bdde93996a1901ce6bc3e1788

This is a cherry-pick of https://android-review.googlesource.com/#/c/72973/ which is already in master, so do not merge.

Change-Id: Ic8911d3131e033747cfdabe59ac2fea1e90bb4a0

10 years agoam f7f80d7b: Merge "Start the dream manager even if dreams are not supported." into...
Jeff Brown [Mon, 24 Feb 2014 22:18:32 +0000 (22:18 +0000)]
am f7f80d7b: Merge "Start the dream manager even if dreams are not supported." into klp-modular-dev

* commit 'f7f80d7b54b11d432bb6e72da526edf369128ea7':
  Start the dream manager even if dreams are not supported.

10 years agoMerge "Start the dream manager even if dreams are not supported." into klp-modular-dev
Jeff Brown [Mon, 24 Feb 2014 22:15:59 +0000 (22:15 +0000)]
Merge "Start the dream manager even if dreams are not supported." into klp-modular-dev

10 years agoStart the dream manager even if dreams are not supported.
Jeff Brown [Mon, 24 Feb 2014 21:57:53 +0000 (13:57 -0800)]
Start the dream manager even if dreams are not supported.

The dreams manager also manages dozing.  It has a minimal footprint
so there is no real reason to disable the component (it just makes
debugging more difficult).

Improved the documentation of the config_dreamsSupported resource
to clarify exactly what it controls.

Bug: 12494706
Change-Id: I78244846f7c1ddfd11bc1605af59b0db91337971

10 years agoUse long for pointers in opengl/EGL classes
Ashok Bhat [Mon, 24 Feb 2014 10:06:55 +0000 (10:06 +0000)]
Use long for pointers in opengl/EGL classes

Note that files changed in this patch have been automatically
generated by running frameworks/native/opengl/tools/glgen/gen script

This patch updates EGL classes in frameworks/base to support
64-bit platforms. Key changes in the EGL classes include

[x] EGLObjectHandle class - EGLObjectHandle class has two public
    methods (constructor and getHandle) that assume handles are
    32-bit. They have not been changed. Instead, two new hidden
    methods (EGLObjectHandle(long) and getNativeHandle) have been
    added.

[x] EG14 class - Two public methods eglGetDisplay and
    eglCreatePbufferFromClientBuffer assume that handles are 32-bit.
    They have been changed to throw unsupported operation exception
    on non 32-bit machines. Two new methods eglGetDisplay(long)
    and eglCreatePbufferFromClientBuffer(...long buffer..) have
    been added to support 64-bit handles.

Change-Id: I9e0f064e5b33700eb0baa2e1841a21f931f7a765
Signed-off-by: Ashok Bhat <ashok.bhat@arm.com>
10 years agoUse reinterpret_cast when an integer is cast to a pointer
Ashok Bhat [Mon, 24 Feb 2014 09:49:07 +0000 (09:49 +0000)]
Use reinterpret_cast when an integer is cast to a pointer

Note that files changed in this patch have been generated
by running frameworks/native/opengl/tools/glgen/gen script.

Change-Id: Iff3ac2e804af41b9a6ec073fd65019c6806fe821
Signed-off-by: Ashok Bhat <ashok.bhat@arm.com>
10 years agoam ffda4648: Merge "Fixes for ActivityView on home activity" into klp-modular-dev
Craig Mautner [Sat, 22 Feb 2014 07:33:24 +0000 (07:33 +0000)]
am ffda4648: Merge "Fixes for ActivityView on home activity" into klp-modular-dev

* commit 'ffda464851008f750246f343c939d8003071cd23':
  Fixes for ActivityView on home activity

10 years agoMerge "Fixes for ActivityView on home activity" into klp-modular-dev
Craig Mautner [Sat, 22 Feb 2014 05:11:22 +0000 (05:11 +0000)]
Merge "Fixes for ActivityView on home activity" into klp-modular-dev

10 years agoFixes for ActivityView on home activity
Craig Mautner [Sat, 22 Feb 2014 05:08:00 +0000 (21:08 -0800)]
Fixes for ActivityView on home activity

When the ActivityView is part of the home activity special checks
must be made. Things like don't move the home stack to the back
when the ActivityView activity is resumed.

Fixes bug 13119389.

Change-Id: I3a6040c9824dfd4b8ee97d58d131b14a519b470a

10 years agoam f8a68404: am 271f8539: am b26117ac: am 25b44ae6: Merge "add android studio to...
Scott Main [Sat, 22 Feb 2014 00:57:36 +0000 (00:57 +0000)]
am f8a68404: am 271f8539: am b26117ac: am 25b44ae6: Merge "add android studio to launch procedures" into klp-docs

* commit 'f8a68404c767cf4e5f3e63ab53737472066a90c1':
  add android studio to launch procedures

10 years agoam f0f45452: Merge "Reset deferred task removal when app token added." into klp-modul...
Craig Mautner [Sat, 22 Feb 2014 00:53:43 +0000 (00:53 +0000)]
am f0f45452: Merge "Reset deferred task removal when app token added." into klp-modular-dev

* commit 'f0f454522ae5024645a292596e644c6f7a06853c':
  Reset deferred task removal when app token added.

10 years agoam 271f8539: am b26117ac: am 25b44ae6: Merge "add android studio to launch procedures...
Scott Main [Sat, 22 Feb 2014 00:53:21 +0000 (00:53 +0000)]
am 271f8539: am b26117ac: am 25b44ae6: Merge "add android studio to launch procedures" into klp-docs

* commit '271f85399bbbe0b6a6719286a4b0857ff845cfc2':
  add android studio to launch procedures

10 years agoMerge "Reset deferred task removal when app token added." into klp-modular-dev
Craig Mautner [Sat, 22 Feb 2014 00:50:55 +0000 (00:50 +0000)]
Merge "Reset deferred task removal when app token added." into klp-modular-dev

10 years agoam b26117ac: am 25b44ae6: Merge "add android studio to launch procedures" into klp...
Scott Main [Sat, 22 Feb 2014 00:50:08 +0000 (00:50 +0000)]
am b26117ac: am 25b44ae6: Merge "add android studio to launch procedures" into klp-docs

* commit 'b26117aca0daadeb51369c8da617d5b7ba9b05b6':
  add android studio to launch procedures

10 years agoam 25b44ae6: Merge "add android studio to launch procedures" into klp-docs
Scott Main [Sat, 22 Feb 2014 00:47:08 +0000 (00:47 +0000)]
am 25b44ae6: Merge "add android studio to launch procedures" into klp-docs

* commit '25b44ae684295b53ac7ba15d827fc03c51aee37b':
  add android studio to launch procedures

10 years agoReset deferred task removal when app token added.
Craig Mautner [Sat, 22 Feb 2014 00:46:22 +0000 (16:46 -0800)]
Reset deferred task removal when app token added.

A task is scheduled for deletion after the final activity has
been removed and has animated away. But if another activity is then
added to the task the deletion flag must be reset.

Also added improved debugging.

Fixes bug 12987986.

Change-Id: I207ea6e9592a9e036d67aa5d1465b4acc5bdd120

10 years agoMerge "add android studio to launch procedures" into klp-docs
Scott Main [Sat, 22 Feb 2014 00:43:26 +0000 (00:43 +0000)]
Merge "add android studio to launch procedures" into klp-docs

10 years agoresolved conflicts for merge of 9e413bf4 to klp-modular-dev-plus-aosp
Greg Hackmann [Sat, 22 Feb 2014 00:35:52 +0000 (16:35 -0800)]
resolved conflicts for merge of 9e413bf4 to klp-modular-dev-plus-aosp

Change-Id: Ibc41f0248235afca9546829e00b31003d09f4f7e

10 years agoam 83930aa0: Merge "Fix broken IME when decrypting storage" into klp-modular-dev
Adam Lesinski [Fri, 21 Feb 2014 22:17:26 +0000 (22:17 +0000)]
am 83930aa0: Merge "Fix broken IME when decrypting storage" into klp-modular-dev

* commit '83930aa09aecef7429d8a1c07b80f10b7e2e13f6':
  Fix broken IME when decrypting storage

10 years agoMerge "Fix broken IME when decrypting storage" into klp-modular-dev
Adam Lesinski [Fri, 21 Feb 2014 22:13:44 +0000 (22:13 +0000)]
Merge "Fix broken IME when decrypting storage" into klp-modular-dev

10 years agoFix broken IME when decrypting storage
Adam Lesinski [Fri, 21 Feb 2014 22:06:47 +0000 (14:06 -0800)]
Fix broken IME when decrypting storage

Bug:13113499
Change-Id: Icf767864c8ff694fd569b9237ae1004cc20204a2

10 years agoam bbfc08b3: Merge changes I6d4fdada,Ia34899a4
Greg Hackmann [Fri, 21 Feb 2014 21:04:00 +0000 (13:04 -0800)]
am bbfc08b3: Merge changes I6d4fdada,Ia34899a4

* commit 'bbfc08b3abc0934f67659f3238eb79dcac838c17':
  open("/dev/rtc0") failure in AlarmManagerService.setTime() should be non-fatal
  Move time setting code from SystemClock to AlarmManagerService

10 years agoMerge changes I6d4fdada,Ia34899a4
Greg Hackmann [Fri, 21 Feb 2014 21:01:00 +0000 (21:01 +0000)]
Merge changes I6d4fdada,Ia34899a4

* changes:
  open("/dev/rtc0") failure in AlarmManagerService.setTime() should be non-fatal
  Move time setting code from SystemClock to AlarmManagerService

10 years agoopen("/dev/rtc0") failure in AlarmManagerService.setTime() should be non-fatal
Greg Hackmann [Tue, 28 Jan 2014 00:30:09 +0000 (16:30 -0800)]
open("/dev/rtc0") failure in AlarmManagerService.setTime() should be non-fatal

Setting the time-of-day clock is still useful on systems where the RTC
device is not yet brought up or otherwise unavailable.  This matches the
in-kernel behavior of the Android alarm driver.

Change-Id: I6d4fdadab12e241ada7419425efd55bd13873c55
Signed-off-by: Greg Hackmann <ghackmann@google.com>
10 years agoMove time setting code from SystemClock to AlarmManagerService
Greg Hackmann [Thu, 20 Feb 2014 00:39:36 +0000 (16:39 -0800)]
Move time setting code from SystemClock to AlarmManagerService

On devices using /dev/rtc instead of /dev/alarm, updating the
time-of-day clock and RTC are separate syscalls.  Hence the clock and
RTC could be left in inconsistent states if two threads called
SystemClock.setCurrentTimeMillis() simultaneously.

By moving this code into AlarmManagerService, we can put a global lock
around AlarmManagerService.setTime() and prevent the race condition.

Note that access to SystemClock.setCurrentTimeMillis() is now gated by
android.permission.SET_TIME, where before it was gated by filesystem
permissions (i.e., could the process write to /dev/alarm or /dev/rtc).

Change-Id: Ia34899a4cde983656305fd2ef466dfe908ed23c8
Signed-off-by: Greg Hackmann <ghackmann@google.com>
10 years agoam b2f07b27: am 4a809272: Merge "Fix documentation for Parcel.readException()."
Elliott Hughes [Fri, 21 Feb 2014 17:28:54 +0000 (17:28 +0000)]
am b2f07b27: am 4a809272: Merge "Fix documentation for Parcel.readException()."

* commit 'b2f07b27725bed9716114c46df2cf636eb366f6f':
  Fix documentation for Parcel.readException().

10 years agoam 29d60b95: am 8d41e653: Merge "Miscellaneous small documentation fixes."
Elliott Hughes [Fri, 21 Feb 2014 17:28:51 +0000 (17:28 +0000)]
am 29d60b95: am 8d41e653: Merge "Miscellaneous small documentation fixes."

* commit '29d60b95fa8019c0542f46551057c4d376bb8a7a':
  Miscellaneous small documentation fixes.

10 years agoam 4a809272: Merge "Fix documentation for Parcel.readException()."
Elliott Hughes [Fri, 21 Feb 2014 17:25:54 +0000 (09:25 -0800)]
am 4a809272: Merge "Fix documentation for Parcel.readException()."

* commit '4a80927241b3168d9d5138c46c22385d6467a736':
  Fix documentation for Parcel.readException().

10 years agoam 8d41e653: Merge "Miscellaneous small documentation fixes."
Elliott Hughes [Fri, 21 Feb 2014 17:25:50 +0000 (09:25 -0800)]
am 8d41e653: Merge "Miscellaneous small documentation fixes."

* commit '8d41e653bae240488281d430309e2d501e9524e5':
  Miscellaneous small documentation fixes.

10 years agoMerge "Fix documentation for Parcel.readException()."
Elliott Hughes [Fri, 21 Feb 2014 17:21:52 +0000 (17:21 +0000)]
Merge "Fix documentation for Parcel.readException()."

10 years agoMerge "Miscellaneous small documentation fixes."
Elliott Hughes [Fri, 21 Feb 2014 17:19:21 +0000 (17:19 +0000)]
Merge "Miscellaneous small documentation fixes."

10 years agoam c2c0a61c: Add copyright notice to files missing them.
Craig Mautner [Fri, 21 Feb 2014 16:55:55 +0000 (16:55 +0000)]
am c2c0a61c: Add copyright notice to files missing them.

* commit 'c2c0a61cf5f779b4726f089f28d966c03ccbba54':
  Add copyright notice to files missing them.

10 years agoam 911b2ce3: am 4a642ee5: Merge "Remove unused JNITest class"
Narayan Kamath [Fri, 21 Feb 2014 16:47:43 +0000 (16:47 +0000)]
am 911b2ce3: am 4a642ee5: Merge "Remove unused JNITest class"

* commit '911b2ce3da7dbd8b6335d1092fc6c9e880147104':
  Remove unused JNITest class

10 years agoam 19256340: am 22c66639: Merge "Fixes for 64bit in libhwui"
Narayan Kamath [Fri, 21 Feb 2014 16:47:38 +0000 (16:47 +0000)]
am 19256340: am 22c66639: Merge "Fixes for 64bit in libhwui"

* commit '192563407964926537d688d4098054c3834341c0':
  Fixes for 64bit in libhwui

10 years agoam 4a642ee5: Merge "Remove unused JNITest class"
Narayan Kamath [Fri, 21 Feb 2014 16:34:36 +0000 (08:34 -0800)]
am 4a642ee5: Merge "Remove unused JNITest class"

* commit '4a642ee5e65ca47ecf6cb274096162e580aac922':
  Remove unused JNITest class

10 years agoam 22c66639: Merge "Fixes for 64bit in libhwui"
Narayan Kamath [Fri, 21 Feb 2014 16:34:30 +0000 (08:34 -0800)]
am 22c66639: Merge "Fixes for 64bit in libhwui"

* commit '22c66639093a634b5688372d261d003b0478c450':
  Fixes for 64bit in libhwui

10 years agoMerge "Remove unused JNITest class"
Narayan Kamath [Fri, 21 Feb 2014 15:02:30 +0000 (15:02 +0000)]
Merge "Remove unused JNITest class"

10 years agoRemove unused JNITest class
Ashok Bhat [Sat, 15 Feb 2014 11:28:48 +0000 (11:28 +0000)]
Remove unused JNITest class

JNITest class is no longer actively used. This patch
removes the class (java and jni) files.

JNI interfaces and calls are extensively tested in
the art unit tests (art/tests) and in cts (see
CtsJniTestCases).

Change-Id: I62f7c72deb5d206fa3f545ae39a9cb9011110d0a
Signed-off-by: Ashok Bhat <ashok.bhat@arm.com>
10 years agoMerge "Fixes for 64bit in libhwui"
Narayan Kamath [Fri, 21 Feb 2014 14:23:57 +0000 (14:23 +0000)]
Merge "Fixes for 64bit in libhwui"

10 years agoFixes for 64bit in libhwui
Kévin PETIT [Thu, 13 Feb 2014 11:03:40 +0000 (11:03 +0000)]
Fixes for 64bit in libhwui

Using reinterpret_cast allows conversions between pointer types
and integers which don't have the same size. The corresponding
flags is -Wint-to-pointer-cast.

Change-Id: I8ff0c79d235fa6d07b8d9305edc185d946d5133d
Signed-off-by: Kévin PETIT <kevin.petit@arm.com>
10 years agoAdd copyright notice to files missing them.
Craig Mautner [Fri, 21 Feb 2014 04:25:41 +0000 (20:25 -0800)]
Add copyright notice to files missing them.

Fixes bug 13121968.

Change-Id: Ifd86581178e7e98bd72b832020e7c8379d40b2de

10 years agoam fd8a8ccb: Merge "Set the new SurfaceControl opaque flag." into klp-modular-dev
Craig Mautner [Thu, 20 Feb 2014 22:39:52 +0000 (22:39 +0000)]
am fd8a8ccb: Merge "Set the new SurfaceControl opaque flag." into klp-modular-dev

* commit 'fd8a8ccbb79b3d83bb328d64c544c59251eef151':
  Set the new SurfaceControl opaque flag.

10 years agoam 267b37ce: Merge "Resize DimLayer explicitly on rotation." into klp-modular-dev
Craig Mautner [Thu, 20 Feb 2014 22:39:49 +0000 (22:39 +0000)]
am 267b37ce: Merge "Resize DimLayer explicitly on rotation." into klp-modular-dev

* commit '267b37ceff64b6adaeef52e3a582f1186144f93e':
  Resize DimLayer explicitly on rotation.

10 years agoMerge "Set the new SurfaceControl opaque flag." into klp-modular-dev
Craig Mautner [Thu, 20 Feb 2014 22:36:52 +0000 (22:36 +0000)]
Merge "Set the new SurfaceControl opaque flag." into klp-modular-dev

10 years agoMerge "Resize DimLayer explicitly on rotation." into klp-modular-dev
Craig Mautner [Thu, 20 Feb 2014 22:34:38 +0000 (22:34 +0000)]
Merge "Resize DimLayer explicitly on rotation." into klp-modular-dev

10 years agoResize DimLayer explicitly on rotation.
Craig Mautner [Thu, 20 Feb 2014 22:31:32 +0000 (14:31 -0800)]
Resize DimLayer explicitly on rotation.

Using the alpha value to trigger a resizing of the DimLayer was a
Bad Idea. The alpha value should reflect the true alpha value and
not be used to trick the code. Actually changing the size and
position is a Better Idea.

Fixes bug 13101776.

Change-Id: I11c16b8276919ea85960fe87bb17c0956ce8a3b1

10 years agoam 07e6d1b9: Merge "Add a new "doze mode" based on Dream components." into klp-modula...
Jeff Brown [Thu, 20 Feb 2014 21:47:08 +0000 (21:47 +0000)]
am 07e6d1b9: Merge "Add a new "doze mode" based on Dream components." into klp-modular-dev

* commit '07e6d1b9a5f81ff5a5bf91f2b260ee487d5f2b65':
  Add a new "doze mode" based on Dream components.

10 years agoMerge "Add a new "doze mode" based on Dream components." into klp-modular-dev
Jeff Brown [Thu, 20 Feb 2014 21:43:42 +0000 (21:43 +0000)]
Merge "Add a new "doze mode" based on Dream components." into klp-modular-dev

10 years agoAdd a new "doze mode" based on Dream components.
Jeff Brown [Fri, 31 Jan 2014 05:47:47 +0000 (21:47 -0800)]
Add a new "doze mode" based on Dream components.

When a doze component has been specified in a config.xml resource
overlay, the power manager will try to start a preconfigured dream
whenever it would have otherwise gone to sleep and turned the
screen off.  The dream should render whatever it intends to show
then call startDozing() to tell the power manager to put the display
into a low power "doze" state and allow the application processor
to be suspended.  The dream may wake up periodically using the
alarm manager or other features to update the contents of the display.

Added several new config.xml resources related to dreams and dozing.
In particular for dozing there are two new resources that pertain to
decoupling auto-suspend mode and interactive mode from the display
state.  This is a requirement to enable the application processor
and other components to be suspended while dozing.  Most devices
do not support these features today.

Consolidated the power manager's NAPPING and DREAMING states into one
to simplify the logic.  The NAPPING state was mostly superfluous
and simply indicated that the power manager should attempt to start
a new dream.  This state is now tracked in the mSandmanSummoned field.

Added a new DOZING state which is analoguous to DREAMING.  The normal
state transition is now: AWAKE -> DREAMING -> DOZING -> ASLEEP.
The PowerManager.goToSleep() method now enters the DOZING state instead
of immediately going to sleep.

While in the doze state, the screen remains on.  However, we actually
tell the rest of the system that the screen is off.  This is somewhat
unfortunate but much of the system makes inappropriate assumptions
about what it means for the screen to be on or off.  In particular,
screen on is usually taken to indicate an interactive state where
the user is present but that's not at all true for dozing (and is
only sometimes true while dreaming).  We will probably need to add
some more precise externally visible states at some point.

The DozeHardware interface encapsulates a generic microcontroller
interface to allow a doze dream for off-loading rendering or other
functions while dozing.  If the device possesses an MCU HAL for dozing
then it is exposed to the DreamService here.

Removed a number of catch blocks in DreamService that caught Throwable
and attempted to cause the dream to finish itself.  We actually just
want to let the process crash.  Cleanup will happen automatically if
needed.  Catching these exceptions results in mysterious undefined
behavior and broken dreams.

Bug: 12494706
Change-Id: Ie78336b37dde7250d1ce65b3d367879e3bfb2b8b

10 years agoam ea17c636: (-s ours) am 4292ce5d: (-s ours) am 810267c3: (-s ours) am 28009e81...
Baligh Uddin [Thu, 20 Feb 2014 18:43:00 +0000 (18:43 +0000)]
am ea17c636: (-s ours) am 4292ce5d: (-s ours) am 810267c3: (-s ours) am 28009e81: (-s ours) Merge "Import translations. DO NOT MERGE" into klp-dev

* commit 'ea17c6365fd70b057a4c696d9eec2b5f70b6e476':
  Import translations. DO NOT MERGE

10 years agoam 701449e8: (-s ours) am c9443fc5: (-s ours) am 8ca432c7: (-s ours) am c2803d47...
Baligh Uddin [Thu, 20 Feb 2014 18:42:58 +0000 (18:42 +0000)]
am 701449e8: (-s ours) am c9443fc5: (-s ours) am 8ca432c7: (-s ours) am c2803d47: (-s ours) Merge "Import translations. DO NOT MERGE" into klp-dev

* commit '701449e85395d7a81d244d4b115b9ef4ae2f06d9':
  Import translations. DO NOT MERGE

10 years agoam 4292ce5d: (-s ours) am 810267c3: (-s ours) am 28009e81: (-s ours) Merge "Import...
Baligh Uddin [Thu, 20 Feb 2014 18:39:46 +0000 (18:39 +0000)]
am 4292ce5d: (-s ours) am 810267c3: (-s ours) am 28009e81: (-s ours) Merge "Import translations. DO NOT MERGE" into klp-dev

* commit '4292ce5d0023551a6fa7a02b284bf9b02823b06b':
  Import translations. DO NOT MERGE

10 years agoam c9443fc5: (-s ours) am 8ca432c7: (-s ours) am c2803d47: (-s ours) Merge "Import...
Baligh Uddin [Thu, 20 Feb 2014 18:39:43 +0000 (18:39 +0000)]
am c9443fc5: (-s ours) am 8ca432c7: (-s ours) am c2803d47: (-s ours) Merge "Import translations. DO NOT MERGE" into klp-dev

* commit 'c9443fc54caa789c4e3c64e7d9feaee8ac00506f':
  Import translations. DO NOT MERGE

10 years agoam 810267c3: (-s ours) am 28009e81: (-s ours) Merge "Import translations. DO NOT...
Baligh Uddin [Thu, 20 Feb 2014 18:36:38 +0000 (18:36 +0000)]
am 810267c3: (-s ours) am 28009e81: (-s ours) Merge "Import translations. DO NOT MERGE" into klp-dev

* commit '810267c309f018c5b58b0a2e787b8a6434faa0e0':
  Import translations. DO NOT MERGE

10 years agoam 8ca432c7: (-s ours) am c2803d47: (-s ours) Merge "Import translations. DO NOT...
Baligh Uddin [Thu, 20 Feb 2014 18:36:35 +0000 (18:36 +0000)]
am 8ca432c7: (-s ours) am c2803d47: (-s ours) Merge "Import translations. DO NOT MERGE" into klp-dev

* commit '8ca432c7828d5d3d00c721b195a4ecb59564bbb7':
  Import translations. DO NOT MERGE

10 years agoam 28009e81: (-s ours) Merge "Import translations. DO NOT MERGE" into klp-dev
Baligh Uddin [Thu, 20 Feb 2014 18:33:18 +0000 (18:33 +0000)]
am 28009e81: (-s ours) Merge "Import translations. DO NOT MERGE" into klp-dev

* commit '28009e8102aa91294362cc2d7770cab73d02e640':
  Import translations. DO NOT MERGE

10 years agoam c2803d47: (-s ours) Merge "Import translations. DO NOT MERGE" into klp-dev
Baligh Uddin [Thu, 20 Feb 2014 18:33:13 +0000 (18:33 +0000)]
am c2803d47: (-s ours) Merge "Import translations. DO NOT MERGE" into klp-dev

* commit 'c2803d473ad180fa70e5000f0607795c92c4035d':
  Import translations. DO NOT MERGE

10 years agoMerge "Import translations. DO NOT MERGE" into klp-dev
Baligh Uddin [Thu, 20 Feb 2014 18:31:02 +0000 (18:31 +0000)]
Merge "Import translations. DO NOT MERGE" into klp-dev

10 years agoMerge "Import translations. DO NOT MERGE" into klp-dev
Baligh Uddin [Thu, 20 Feb 2014 18:30:49 +0000 (18:30 +0000)]
Merge "Import translations. DO NOT MERGE" into klp-dev

10 years agoam 50d0afa4: (-s ours) am 2f5347ee: (-s ours) am 1af20cc5: (-s ours) am 554b43a0...
Baligh Uddin [Thu, 20 Feb 2014 18:13:52 +0000 (18:13 +0000)]
am 50d0afa4: (-s ours) am 2f5347ee: (-s ours) am 1af20cc5: (-s ours) am 554b43a0: (-s ours) Merge "Import translations. DO NOT MERGE" into klp-dev

* commit '50d0afa43af2b215ddddbc7a3adfb8b5d85cb549':
  Import translations. DO NOT MERGE

10 years agoam 2f5347ee: (-s ours) am 1af20cc5: (-s ours) am 554b43a0: (-s ours) Merge "Import...
Baligh Uddin [Thu, 20 Feb 2014 18:10:15 +0000 (18:10 +0000)]
am 2f5347ee: (-s ours) am 1af20cc5: (-s ours) am 554b43a0: (-s ours) Merge "Import translations. DO NOT MERGE" into klp-dev

* commit '2f5347ee46766134848586d67d2dd86bdc9d1952':
  Import translations. DO NOT MERGE

10 years agoam 749e6b9c: (-s ours) am 5da96060: (-s ours) am f887a67d: (-s ours) am aa20b274...
Baligh Uddin [Thu, 20 Feb 2014 18:09:59 +0000 (18:09 +0000)]
am 749e6b9c: (-s ours) am 5da96060: (-s ours) am f887a67d: (-s ours) am aa20b274: (-s ours) Merge "Import translations. DO NOT MERGE" into klp-dev

* commit '749e6b9cf21799aefe9accc50c60f6bfddf1545a':
  Import translations. DO NOT MERGE

10 years agoam bf2226ec: (-s ours) am 8b297fb6: (-s ours) am 8027100f: (-s ours) am e9adafd1...
Baligh Uddin [Thu, 20 Feb 2014 18:09:56 +0000 (18:09 +0000)]
am bf2226ec: (-s ours) am 8b297fb6: (-s ours) am 8027100f: (-s ours) am e9adafd1: (-s ours) Merge "Import translations. DO NOT MERGE" into klp-dev

* commit 'bf2226ec7f9fcb0a2fc169df170c770363d9a3f5':
  Import translations. DO NOT MERGE

10 years agoam 699991c8: (-s ours) am 08394af2: (-s ours) am e69b7b34: (-s ours) am 46a02249...
Baligh Uddin [Thu, 20 Feb 2014 18:09:54 +0000 (18:09 +0000)]
am 699991c8: (-s ours) am 08394af2: (-s ours) am e69b7b34: (-s ours) am 46a02249: (-s ours) Merge "Import translations. DO NOT MERGE" into klp-dev

* commit '699991c8a296834e8fe843bce85529b018d12af8':
  Import translations. DO NOT MERGE

10 years agoam 1af20cc5: (-s ours) am 554b43a0: (-s ours) Merge "Import translations. DO NOT...
Baligh Uddin [Thu, 20 Feb 2014 18:07:02 +0000 (18:07 +0000)]
am 1af20cc5: (-s ours) am 554b43a0: (-s ours) Merge "Import translations. DO NOT MERGE" into klp-dev

* commit '1af20cc5764a38d0713a292fd63bf6a628f2f5eb':
  Import translations. DO NOT MERGE

10 years agoam 5da96060: (-s ours) am f887a67d: (-s ours) am aa20b274: (-s ours) Merge "Import...
Baligh Uddin [Thu, 20 Feb 2014 18:06:24 +0000 (18:06 +0000)]
am 5da96060: (-s ours) am f887a67d: (-s ours) am aa20b274: (-s ours) Merge "Import translations. DO NOT MERGE" into klp-dev

* commit '5da96060e61c3076d0a5cbd87a3f17254414afeb':
  Import translations. DO NOT MERGE

10 years agoam 8b297fb6: (-s ours) am 8027100f: (-s ours) am e9adafd1: (-s ours) Merge "Import...
Baligh Uddin [Thu, 20 Feb 2014 18:06:21 +0000 (18:06 +0000)]
am 8b297fb6: (-s ours) am 8027100f: (-s ours) am e9adafd1: (-s ours) Merge "Import translations. DO NOT MERGE" into klp-dev

* commit '8b297fb6ef42650a1126287aa0b610aa9a503167':
  Import translations. DO NOT MERGE

10 years agoam 08394af2: (-s ours) am e69b7b34: (-s ours) am 46a02249: (-s ours) Merge "Import...
Baligh Uddin [Thu, 20 Feb 2014 18:06:17 +0000 (18:06 +0000)]
am 08394af2: (-s ours) am e69b7b34: (-s ours) am 46a02249: (-s ours) Merge "Import translations. DO NOT MERGE" into klp-dev

* commit '08394af265b02db7a76c4f4f4ae16b9d238e7580':
  Import translations. DO NOT MERGE

10 years agoam 554b43a0: (-s ours) Merge "Import translations. DO NOT MERGE" into klp-dev
Baligh Uddin [Thu, 20 Feb 2014 18:03:38 +0000 (18:03 +0000)]
am 554b43a0: (-s ours) Merge "Import translations. DO NOT MERGE" into klp-dev

* commit '554b43a066b6a084dbb9b7dba014de4b12ba1175':
  Import translations. DO NOT MERGE

10 years agoam f887a67d: (-s ours) am aa20b274: (-s ours) Merge "Import translations. DO NOT...
Baligh Uddin [Thu, 20 Feb 2014 18:03:07 +0000 (18:03 +0000)]
am f887a67d: (-s ours) am aa20b274: (-s ours) Merge "Import translations. DO NOT MERGE" into klp-dev

* commit 'f887a67dbd1fd22c16cadc58b8f23bfd4eeba4ef':
  Import translations. DO NOT MERGE

10 years agoam 8027100f: (-s ours) am e9adafd1: (-s ours) Merge "Import translations. DO NOT...
Baligh Uddin [Thu, 20 Feb 2014 18:03:05 +0000 (18:03 +0000)]
am 8027100f: (-s ours) am e9adafd1: (-s ours) Merge "Import translations. DO NOT MERGE" into klp-dev

* commit '8027100fdb13c046838f9af12ef7bf2bc3ad511f':
  Import translations. DO NOT MERGE

10 years agoam e69b7b34: (-s ours) am 46a02249: (-s ours) Merge "Import translations. DO NOT...
Baligh Uddin [Thu, 20 Feb 2014 18:03:02 +0000 (18:03 +0000)]
am e69b7b34: (-s ours) am 46a02249: (-s ours) Merge "Import translations. DO NOT MERGE" into klp-dev

* commit 'e69b7b3474c356438fbd65e43438e72ebda0bacb':
  Import translations. DO NOT MERGE

10 years agoam aa20b274: (-s ours) Merge "Import translations. DO NOT MERGE" into klp-dev
Baligh Uddin [Thu, 20 Feb 2014 17:59:50 +0000 (17:59 +0000)]
am aa20b274: (-s ours) Merge "Import translations. DO NOT MERGE" into klp-dev

* commit 'aa20b27472552ebc812dfbb3cbe260115ee43db1':
  Import translations. DO NOT MERGE

10 years agoam e9adafd1: (-s ours) Merge "Import translations. DO NOT MERGE" into klp-dev
Baligh Uddin [Thu, 20 Feb 2014 17:59:47 +0000 (17:59 +0000)]
am e9adafd1: (-s ours) Merge "Import translations. DO NOT MERGE" into klp-dev

* commit 'e9adafd1b95a7934bb813cb168e33a85a762a504':
  Import translations. DO NOT MERGE

10 years agoam 46a02249: (-s ours) Merge "Import translations. DO NOT MERGE" into klp-dev
Baligh Uddin [Thu, 20 Feb 2014 17:59:45 +0000 (17:59 +0000)]
am 46a02249: (-s ours) Merge "Import translations. DO NOT MERGE" into klp-dev

* commit '46a02249d7bde3fb88cc5312f88dab6d1690e20e':
  Import translations. DO NOT MERGE

10 years agoMerge "Import translations. DO NOT MERGE" into klp-dev
Baligh Uddin [Thu, 20 Feb 2014 17:59:40 +0000 (17:59 +0000)]
Merge "Import translations. DO NOT MERGE" into klp-dev

10 years agoMerge "Import translations. DO NOT MERGE" into klp-dev
Baligh Uddin [Thu, 20 Feb 2014 17:55:32 +0000 (17:55 +0000)]
Merge "Import translations. DO NOT MERGE" into klp-dev

10 years agoMerge "Import translations. DO NOT MERGE" into klp-dev
Baligh Uddin [Thu, 20 Feb 2014 17:55:23 +0000 (17:55 +0000)]
Merge "Import translations. DO NOT MERGE" into klp-dev

10 years agoMerge "Import translations. DO NOT MERGE" into klp-dev
Baligh Uddin [Thu, 20 Feb 2014 17:55:13 +0000 (17:55 +0000)]
Merge "Import translations. DO NOT MERGE" into klp-dev

10 years agoam 9edf7a11: am 2cb9147f: am 55542ee6: am 3e637042: Merge "Set default text style...
Xavier Ducrohet [Thu, 20 Feb 2014 17:53:20 +0000 (17:53 +0000)]
am 9edf7a11: am 2cb9147f: am 55542ee6: am 3e637042: Merge "Set default text style in layoutlib as NORMAL [DO NOT MERGE]" into klp-dev

* commit '9edf7a1159b528afa056e0d61ee4487ed310fe4c':
  Set default text style in layoutlib as NORMAL [DO NOT MERGE]

10 years agoam 65521c3c: am ca4b9a77: am e92c8542: am 01825b7a: Fix sans-serif-thin and sans...
Deepanshu Gupta [Thu, 20 Feb 2014 17:53:17 +0000 (17:53 +0000)]
am 65521c3c: am ca4b9a77: am e92c8542: am 01825b7a: Fix sans-serif-thin and sans-serif-light fonts in layoutlib. [DO NOT MERGE]

* commit '65521c3cf169808cd02ce09a7344bc633d51c1fc':
  Fix sans-serif-thin and sans-serif-light fonts in layoutlib. [DO NOT MERGE]

10 years agoam 2cb9147f: am 55542ee6: am 3e637042: Merge "Set default text style in layoutlib...
Xavier Ducrohet [Thu, 20 Feb 2014 17:49:32 +0000 (17:49 +0000)]
am 2cb9147f: am 55542ee6: am 3e637042: Merge "Set default text style in layoutlib as NORMAL [DO NOT MERGE]" into klp-dev

* commit '2cb9147fc49e6474eaf30fd833e43df10e42b899':
  Set default text style in layoutlib as NORMAL [DO NOT MERGE]

10 years agoam ca4b9a77: am e92c8542: am 01825b7a: Fix sans-serif-thin and sans-serif-light fonts...
Deepanshu Gupta [Thu, 20 Feb 2014 17:49:27 +0000 (17:49 +0000)]
am ca4b9a77: am e92c8542: am 01825b7a: Fix sans-serif-thin and sans-serif-light fonts in layoutlib. [DO NOT MERGE]

* commit 'ca4b9a77e7d20703287b33b203b2582bd43f7792':
  Fix sans-serif-thin and sans-serif-light fonts in layoutlib. [DO NOT MERGE]

10 years agoam 55542ee6: am 3e637042: Merge "Set default text style in layoutlib as NORMAL [DO...
Xavier Ducrohet [Thu, 20 Feb 2014 17:46:05 +0000 (17:46 +0000)]
am 55542ee6: am 3e637042: Merge "Set default text style in layoutlib as NORMAL [DO NOT MERGE]" into klp-dev

* commit '55542ee6449bd580f61bc005726b5c87773fbe25':
  Set default text style in layoutlib as NORMAL [DO NOT MERGE]