4446 Commits

Author SHA1 Message Date
Chet Haase
fbde30877f Merge "add getAlpha() to Drawable" 2013-03-08 23:52:33 +00:00
Chet Haase
b1af7f3d4b add getAlpha() to Drawable
Drawable has setAlpha(int), but no getAlpha() (although some subclasses have added the
method). This makes it more tedious to use the property. For example, animations that wish to
animate this property must explicitly give it a start value since this value cannot be queried
from the object.

The trick is that setAlpha(int) is abstract, only implemented by subclasses. We cannot take this
approach for getAlpha(), as we would break all subclasses of Drawable until they implemented the
method. Instead, we'll add a default method which returns an invalid value, making it easier for
clients of the method to detect whether the value is valid.

All subclasses of Drawble in frameworks have been changed to add an override of getAlpha() when
appropriate.

Issue #7485875 Drawables is missing getAlpha()

Change-Id: I06b6e35f1a56d202838eca44759c85c82595020a
2013-03-08 15:40:28 -08:00
Chet Haase
f287913e4a Merge "Revert "add getAlpha() to Drawable"" 2013-03-08 23:01:17 +00:00
Chet Haase
9f48f3eeae Revert "add getAlpha() to Drawable"
This reverts commit a227f59691246d23e47531de4dcdaa01f94b8875

Change-Id: Ic6337b773a2a2302d9d3f84fa9ff9c2324edd2ae
2013-03-08 23:00:02 +00:00
Fabrice Di Meglio
eabab3184a am 483b9198: am 7a7369a8: Merge "Fix bug #8058390 Space is required after the battery sign in the RTL locales" into jb-mr2-dev
* commit '483b9198f4b87f3f35df6666fe3f66c7c3e08fa9':
  Fix bug #8058390 Space is required after the battery sign in the RTL locales
2013-03-08 22:50:31 +00:00
Chet Haase
a227f59691 add getAlpha() to Drawable
Drawable has setAlpha(int), but no getAlpha() (although some subclasses have added the
method). This makes it more tedious to use the property. For example, animations that wish to
animate this property must explicitly give it a start value since this value cannot be queried
from the object.

The trick is that setAlpha(int) is abstract, only implemented by subclasses. We cannot take this
approach for getAlpha(), as we would break all subclasses of Drawable until they implemented the
method. Instead, we'll add a default method which returns an invalid value, making it easier for
clients of the method to detect whether the value is valid.

All subclasses of Drawble in frameworks have been changed to add an override of getAlpha() when
appropriate.

Issue #7485875 Drawables is missing getAlpha()

Change-Id: I3211bb03789282e010356bad92da0a4a9fe9afb3
2013-03-08 14:16:13 -08:00
Fabrice Di Meglio
02c40c2404 Fix bug #8058390 Space is required after the battery sign in the RTL locales
- fix remaining left/right properties that needed to be start/end properties

Change-Id: Iaa5090c2ad256e378313f164e2388f42428e5700
2013-03-08 14:05:28 -08:00
Christopher Tate
46cc43c6fa Full backup/restore now handles OBBs sensibly
OBB backup/ restore is no longer handled within the target app
process.  This is done to avoid having to require that OBB-using
apps have full read/write permission for external storage.

The new OBB backup service is a new component running in the
same app as the already-existing shared storage backup agent.
The backup infrastructure delegates backup/restore of apps'
OBB contents to this component (because the system process
may not itself read/write external storage).

From the command line, OBB backup is enabled by using new
-obb / -noobb flags with adb backup.  The default is noobb.

Finally, a couple of nit fixes:

- buffer-size mismatch between the writer and reader of chunked
  file data has been corrected; now the reading side won't be
  issuing an extra pipe read per chunk.

- bu now explicitly closes the transport socket fd after
  adopting it. This was benign but triggered a logged
  warning about leaked fds.

Bug: 6718844
Change-Id: Ie252494e2327e9ab97cf9ed87c298410a8618492
2013-03-07 13:47:20 -08:00
Michael Jurka
d0da4c45f3 am 46900709: am 5b532abd: Merge "Fix bug where Recents wasn\'t always properly updated" into jb-mr2-dev
* commit '469007092f4929e7813066e2b68ae4c489a1f176':
  Fix bug where Recents wasn't always properly updated
2013-03-06 23:00:31 +00:00
Michael Jurka
5b532abdc2 Merge "Fix bug where Recents wasn't always properly updated" into jb-mr2-dev 2013-03-06 22:52:39 +00:00
Michael Jurka
0e7757b6a1 Fix bug where Recents wasn't always properly updated
Also fix bug where icons were sometimes missing

Change-Id: I98fb30242e0f1bbe4f3088b350bd808cd9c3ae67
2013-03-06 23:29:46 +01:00
Michael Jurka
a3bb886dde am 497c3aff: am 4aab3c8a: Merge "Fix Recents in RTL/landscape mode" into jb-mr2-dev
* commit '497c3affe1b664a328e5895ab4d4cb0ffd871b43':
  Fix Recents in RTL/landscape mode
2013-03-06 22:19:29 +00:00
Michael Jurka
4aab3c8a78 Merge "Fix Recents in RTL/landscape mode" into jb-mr2-dev 2013-03-06 22:11:58 +00:00
Michael Jurka
237ebdf528 am e6052518: am 652b7915: Merge "Improve swipe performance in Recents" into jb-mr2-dev
* commit 'e60525181d830b18f29c3cdf3bb77481a46aef0e':
  Improve swipe performance in Recents
2013-03-06 21:05:26 +00:00
Michael Jurka
e9c90271ac Fix Recents in RTL/landscape mode
The normal LTR Recents interface in landscape
actually scrolls/behaves like a RTL interface,
so we hardcode the layout to stay the same in both
modes

Change-Id: I57e5e76de3260c6de1dd9e939797b7e1c23cca03
2013-03-06 22:04:05 +01:00
Michael Jurka
499293f096 Improve swipe performance in Recents 2013-03-06 18:08:45 +01:00
Baligh Uddin
722cb6e586 Import translations. DO NOT MERGE
Change-Id: If3e2eaeb1ee905a522bf20c3212f66caea6b62d3
Auto-generated-cl: translation import
2013-03-06 08:49:18 -08:00
Daniel Sandler
e1a0bc7e71 am 9f16fd5b: am 56bea4d4: Merge "Defend against NaNs in panel animation code." into jb-mr2-dev
* commit '9f16fd5b12b73bfa4c781811d1963328d6594add':
  Defend against NaNs in panel animation code.
2013-03-05 21:08:32 +00:00
Daniel Sandler
e7c5bbb171 Defend against NaNs in panel animation code.
Once these get into the Animators, they freeze up and
disable the whole notification panel. Not cool.

Bug: 7686690
Change-Id: I04567417b3840a82d9cfe071c601e3078b2e3fe3
2013-03-05 14:06:12 -05:00
Michael Jurka
f43d20e70d am 7ac02bfb: Merge "Fix RTL layout in Recent Apps, landscape mode" into jb-mr2-dev
* commit '7ac02bfb862aec324b00f3919ff00a95ff1effa6':
  Fix RTL layout in Recent Apps, landscape mode
2013-03-04 11:00:53 +00:00
Michael Jurka
7ac02bfb86 Merge "Fix RTL layout in Recent Apps, landscape mode" into jb-mr2-dev 2013-03-04 10:56:58 +00:00
Jeff Sharkey
4e6d19656e am 2e0da1ea: Merge "Improve performance of storage measurement." into jb-mr2-dev
* commit '2e0da1ea5f2493d968b4b83d4a0dd54e2cc63849':
  Improve performance of storage measurement.
2013-03-02 06:20:17 +00:00
Jeff Sharkey
2e0da1ea5f Merge "Improve performance of storage measurement." into jb-mr2-dev 2013-03-02 06:14:51 +00:00
Jeff Sharkey
63d0a06799 Improve performance of storage measurement.
When calculating directory sizes of data living on emulated external
storage, translate the path to use the internal backing data, which
avoids going through the emulation layer.  It carefully retreats to
the original path when it runs into trouble.

Testing with a hierarchy of 10 directories deep and 2 directories
and 10 files wide at each level, this change improves performance
from 5900ms before to 250ms after; over 20 times faster (!).

Bug: 8172425
Change-Id: Ia7365416f091e102bf7345a49f7d7209a22580a9
2013-03-01 16:36:52 -08:00
Michael Jurka
e60bc7f2d8 Fix RTL layout in Recent Apps, landscape mode
Bug: 8067692
2013-03-01 16:00:32 +01:00
Jim Miller
17f509aefe Re-enable USER_PRESENT broadcast in keyguard.
Change-Id: I0a1983d07bd81d3edf2b8bcb5e81e48613fc4205
2013-02-28 18:36:12 -08:00
Jim Miller
83178a6791 Merge "Post-review Keyguard cleanup." 2013-03-01 02:07:27 +00:00
Svetoslav
6b25e726cb Remove a workaround for accessibility managers that works across users.
The system and some processes such as the keyguard and system UI
run across users. Hence, the local accessibility manager should call
into the backing system service with the id of the current user.
For all other processes the local manager uses the current user id.
There was a method that is to be called before the local accessibility
manager has been accessed to initialize it to work across users.
This had to be done for keyguard and system UI.

This change removed the workaround and now the local accessibility
manager determines under the hood which user id to use while calling
into the system. If the local manager is in the system process or
its process has permissions to work across uses, the manager uses
UserHandle.USER_CURRENT, otherwise it uses the user if its process.

Change-Id: I3e97fe98805adca01c1a0127a276828e90926f95
2013-02-28 17:57:29 -08:00
Jim Miller
25190577cc Post-review Keyguard cleanup.
- remove userActivity() from KeyguardService interface and call it
on PowerManager directly
- Split IKeyguardResult into two parts: IKeyguardShowCallback and
IKeyguardExitCallback.
- Misc other changes from the review.

Change-Id: I3f679cfa5d3f8bc742f2b2259ac354045e89a87b
2013-02-28 17:41:34 -08:00
Jim Miller
6486588e40 Merge "Fix dependency between keyguard/dexopt/AccessibilityManagerService." 2013-02-28 22:09:41 +00:00
Jim Miller
195b551761 Fix dependency between keyguard/dexopt/AccessibilityManagerService.
This fixes a bug on userdebug builds where dexopt hadn't completed
before the service is needed.  The resulting crash prevented dexopt
from completing, resulting in a reboot loop and perpetual issue starting
the service.

The solution is to hold off on creating keyguard until the system is ready.

It also moves the creation of the AccessibilityManagerService singleton back
into the system process.

Fixes bug 8287106

Change-Id: I96e15c084d38c255fd8f6bca6f21a0785b82ec74
2013-02-28 13:40:49 -08:00
Jim Miller
105beddcb9 Fix bad merge in KeyguardHostView
This restores the fix detailed in Change-Id: I866d4b42493df3a6449d8eabc3ea140dc39dac57

Change-Id: Ibe75afd7a612cf96a56e5815a198c2047c7ff5bd
2013-02-27 21:35:18 -08:00
Jim Miller
6a31d15efb Merge changes I254d6fc6,I360e9ac7
* changes:
  Move keyguard to its own process.
  Move keyguard source and resources into new package
2013-02-28 03:30:45 +00:00
Jim Miller
5ecd81154f Move keyguard to its own process.
This is in preparation to moving keyguard into its own process.

Moved keyguard source and resources into new .apk.

Got basic test app working.  Still need to implement MockPatternUtils
and means to pass it into KeyguardService with local binder interface.

Added new ACCESS_KEYGUARD_SECURE_STORAGE permission.

Temporarily disabled USER_PRESENT broadcast.

Remove unintentional whitespace changes in PhoneWindowManager, etc.

Checkpoint basic working version.

Move to systemui process.

Synchronize with TOT.

Sync with recent user API changes.

Fix bug with returing interface instead of stub for IKeyguardResult.  Create KeyguardServiceDelegate to allow
for runtime-selectable local or remote interface.

More keyguard crash robustness.

Keyguard crash recovery working.  Currently fails safe (locked).

Fix selector view which was still using frameworks resources.

Remove more references to internal framework variables.  Use aliases for those we should move but
currently have dependencies.

Allow runtime switching between service and local mode.

Fix layout issue on tablets where orientation was reading the incorrect constant
from the framework.  Remove more framework dependencies.

Fix PIN keyboard input.

Remove unnecessary copy of orientation attrs.

Remove unused user selector widget and attempt to get multi user working again.

Fix multi-user avatar icon by grabbing it from UserManager rather than directly since
keyguard can no longer read it.

Merge with AppWidget userId changes in master.

Change-Id: I254d6fc6423ae40f6d7fef50aead4caa701e5ad2
2013-02-27 17:27:53 -08:00
Jim Miller
25a272a9f6 Move keyguard source and resources into new package
This is part 1 of two commits.  This commit moves all keyguard
source and resources to a new com.android.keyguard package.
The second part of this change applies an overlay that makes
it work.

Change-Id: I360e9ac7783c6cb289c992733818b9535df185b9
2013-02-27 17:26:43 -08:00
Romain Guy
6a7cac6af9 am d9731a57: am bf53be46: am 09353f74: Merge "Check and fail early if requested wallpaper size exceeds maximum texture size."
* commit 'd9731a57c631a5218819dbb02755c4dd41e7cc44':
  Check and fail early if requested wallpaper size exceeds maximum texture size.
2013-02-27 23:22:28 +00:00
Romain Guy
d9731a57c6 am bf53be46: am 09353f74: Merge "Check and fail early if requested wallpaper size exceeds maximum texture size."
* commit 'bf53be46d237866a9964a4f1fa960eb6ef4a70a6':
  Check and fail early if requested wallpaper size exceeds maximum texture size.
2013-02-27 07:08:15 +00:00
Maggie Benthall
3316f30add am 40bbc3bb: Merge "Add location sharing toggle user restriction." into jb-mr2-dev
* commit '40bbc3bb9997c6e9ea9aae42edd6bb4430d70978':
  Add location sharing toggle user restriction.
2013-02-25 21:49:03 +00:00
Baligh Uddin
1441e6fa32 Merge "Import translations. DO NOT MERGE" 2013-02-25 18:07:01 +00:00
Maggie Benthall
6794458f86 Add location sharing toggle user restriction.
And add support for respecting it.

Change-Id: Ia5cf9134c5f5741c3f55afadbe54f862da7bfe5b
2013-02-25 12:45:14 -05:00
Baligh Uddin
351600ec71 Import translations. DO NOT MERGE
Change-Id: Ie31e6632a217b9b9c7c0ebb79b16747830370db1
Auto-generated-cl: translation import
2013-02-25 08:53:09 -08:00
Baligh Uddin
be46b8ccd2 Import translations. DO NOT MERGE
Change-Id: Icdfc932c8898e3c716e012d384afa2521d3ac11c
Auto-generated-cl: translation import
2013-02-25 08:52:34 -08:00
Derek Sollenberger
bc340d03c3 Merge "Merge remote-tracking branch 'goog/master-chromium' into 'goog/master'" 2013-02-22 18:39:13 +00:00
Daniel Sandler
458d5e1b03 Make QUICK_CLOCK work on tablets.
Bug: 7724222
Change-Id: Ib8f4beb206736ed01edda96fbd3638a377a8f49e
2013-02-21 15:12:49 -05:00
Fabrice Di Meglio
584e5af847 am 50c291b6: Merge "SystemUI optimization - rely on inheritance for layout direction"
* commit '50c291b653062e7356fd8764bf625a1e1f2c678d':
  SystemUI optimization - rely on inheritance for layout direction
2013-02-20 15:21:26 -08:00
Fabrice Di Meglio
50c291b653 Merge "SystemUI optimization - rely on inheritance for layout direction" 2013-02-20 23:18:04 +00:00
Michael Wright
01fc6fc4c1 am 1fd2ed58: Merge "Add brightness dialog to SystemUI"
* commit '1fd2ed58da3e578df0cd0c326c719cf1c282b793':
  Add brightness dialog to SystemUI
2013-02-20 15:06:43 -08:00
Michael Wright
1fd2ed58da Merge "Add brightness dialog to SystemUI" 2013-02-20 23:03:18 +00:00
Michael Wright
0087a14d4b Add brightness dialog to SystemUI
Change-Id: If31406c9144bb2583876f08dd54b259d1dfa3601
2013-02-20 14:39:03 -08:00
Romain Guy
09bd2113e3 am 14bd8359: Merge "Wallpaper software rendering fallback Bug #8230579"
* commit '14bd8359a84c9b3f634d1fd816ddf5750d6539a9':
  Wallpaper software rendering fallback Bug #8230579
2013-02-20 10:36:12 -08:00