3124 Commits

Author SHA1 Message Date
Baligh Uddin
a1a67eb23d Import translations. DO NOT MERGE
Change-Id: Ifb0c975361e9e00feb3957139cf2c15a463a5319
Auto-generated-cl: translation import
2013-04-15 09:19:05 -07:00
Baligh Uddin
2ea3c41c60 Import translations. DO NOT MERGE
Change-Id: I82b577fe2ce4219c5afdce07b539238fde0de090
Auto-generated-cl: translation import
2013-04-10 09:30:09 -07:00
Michael Jurka
d2c6dd012d am 7449844f: am 104ca45a: Merge "Fix janky icon fade-in animation in Recents" into jb-mr2-dev
* commit '7449844f692baa1aa461c5174e09a1e4eff55217':
  Fix janky icon fade-in animation in Recents
2013-04-08 23:13:21 -07:00
Michael Jurka
104ca45a04 Merge "Fix janky icon fade-in animation in Recents" into jb-mr2-dev 2013-04-09 06:04:36 +00:00
Jeff Brown
b437a79b05 resolved conflicts for merge of 21dffd5d to master
Change-Id: I37c48dee471c9d43f19c1fe4a01f70db53e2441f
2013-04-08 19:05:15 -07:00
Michael Jurka
e0523f7c80 Fix janky icon fade-in animation in Recents
Change-Id: I15d2274add8903820dac3da0fa47c9e54f6ec97d
2013-04-08 18:20:20 -07:00
Jeff Brown
3a2854bcee Merge "Queues, queues, queues and input." into jb-mr2-dev 2013-04-08 23:59:24 +00:00
Jeff Brown
f9e989d5f0 Queues, queues, queues and input.
Redesigned how ViewRootImpl delivers input events to views,
the IME and to native activities to fix several issues.

The prior change to make IME input event delegation use
InputChannels failed to take into account that InputMethodManager
is a singleton attached to the main looper whereas UI may be
attached to any looper.  Consequently interactions with the
InputChannel might occur on the wrong thread.  Fixed this
problem by checking the current thread and posting input
events or callbacks to the correct looper when necessary.

NativeActivity has also been broken for a while because the
default event handling logic for joysticks and touch navigation
was unable to dispatch events back into the native activity.
In particular, this meant that DPad synthesis from touch navigation
would not work in any native activity.  The plan is to fix
this problem by passing all events through ViewRootImpl as usual
then forwarding them to native activity as needed.  This should
greatly simplify IME pre-dispatch and system key handling
and make everything more robust overall.

Fixed issues related to when input events are synthesized.
In particular, added a more robust mechanism to ensure that
synthetic events are canceled appropriately when we discover
that events are no longer being resynthesized (because the
application or IME is handling or dropping them).

The new design is structured as a pipeline with a chain of
responsibility consisting of InputStage objects.  Each InputStage
is responsible for some part of handling each input event
such as dispatching to the view hierarchy or to the IME.
As a stage processes an input event, it has the option of
finishing the event, forwarding the event to the next stage
or handling the event asynchronously.  Some queueing logic
takes care to ensure that events are forwarded downstream in
the correct order even if they are handled out of order
by a given stage.

Cleaned up the InputMethodManager singleton initialization logic
to make it clearer that it must be attached to the main looper.
We don't actually need to pass this looper around.

Deleted the LatencyTimer class since no one uses it and we have
better ways of measuring latency these days using systrace.

Added a hidden helper to Looper to determine whether the current
thread is the indicated Looper thread.

Note: NativeActivity's IME dispatch is broken by this patch.
This will be fixed later in another patch.

Bug: 8473020
Change-Id: Iac2a1277545195a7a0137bbbdf04514c29165c60
2013-04-08 15:31:47 -07:00
John Spurlock
c6ff35c76f am fc9b371e: am 04c83357: Merge "Awaken dreams on home + recents." into jb-mr2-dev
* commit 'fc9b371e90545c9be46730a9d3ab555edfa7da39':
  Awaken dreams on home + recents.
2013-04-08 13:13:51 -07:00
John Spurlock
c8b46ca575 Awaken dreams on home + recents.
Fixes the KEYCODE_HOME case, awakes when home is
started for any reason.

Also awaken when toggling recents (and not locked).

Bug:8557212
Change-Id: I6578ae3971740a03c27596b838d27a5ab9b03752
2013-04-08 19:18:59 +00:00
John Spurlock
8740cb1da6 resolved conflicts for merge of 29211d3a to master
Change-Id: I9691f41b12fbf52d0ef35a9bf5223edef7afdfd2
2013-04-05 16:18:59 -04:00
Daniel Sandler
5feceebb89 New NotificationListenerService.
This is the best and only way for apps to listen for
notifications: create a NotificationListenerService, wait
for the NoMan to bind to you (as a result of the user
checking a box somewhere in Settings and agreeing to a
scary dialog box), and you'll start receiving notification
posted and dismissed callbacks. Your service, while enabled,
will also be able to clear one or all notifications.

Use this power wisely.

This change moves StatusBarNotification out of
com.android.internal into android.service.notification.
[Internal customers, including System UI and early users of
the system-only listener binder API, will need to be
updated.]

Bug: 8199624
Change-Id: I1be46f823d4b3ddc901109ec1e085cd6deb740c2
2013-04-05 19:54:44 +00:00
Baligh Uddin
8b2e3189bd Import translations. DO NOT MERGE
Change-Id: I708e495e579be3f02ea6a53445b9a6288d4bb237
Auto-generated-cl: translation import
2013-04-03 09:25:45 -07:00
Winson Chung
f11638b950 am 0853ec15: am 3a5a7749: Fixing NPE on screenshot error. (Bug 8328886)
* commit '0853ec1598e454647a79353aaa98a12c7b8bd09a':
  Fixing NPE on screenshot error. (Bug 8328886)
2013-04-02 11:03:00 -07:00
Winson Chung
3a5a774954 Fixing NPE on screenshot error. (Bug 8328886)
Change-Id: Id47b8429c512c02e63d86de2ce37bd8e3ee02359
2013-04-01 16:04:28 -07:00
Amith Yamasani
bb49e8573e resolved conflicts for merge of 15935aad to master
Change-Id: I9664186a62cf7b11844c6a14967f5b8c2b67c289
2013-03-30 19:26:37 -07:00
Amith Yamasani
27db46850b Block access to accounts for limited users.
Make sure that apps that have access to restricted accounts can see them.
If they don't have access, they shouldn't be able to add a new account either.
Show an error message in the account picker if the user/app is not authorized.

Change-Id: I117c0b14d7d06c5ac4e66506df156b174567f5f3
2013-03-30 18:25:49 -07:00
Dianne Hackborn
c3aac10360 am d680287b: am cb5a4bf2: Merge "Apparently SystemUI no longer needs the carousel." into jb-mr2-dev
* commit 'd680287b420dea41280a28d80eac79f780e0f7d0':
  Apparently SystemUI no longer needs the carousel.
2013-03-29 14:34:38 -07:00
Dianne Hackborn
cb5a4bf2ee Merge "Apparently SystemUI no longer needs the carousel." into jb-mr2-dev 2013-03-29 16:53:54 +00:00
Elliott Hughes
d1e0f941d5 am 0f3a3777: am 94eaab4a: am 3ae30483: am a19647d3: Merge "Correct executable bit for source files [Take 2]"
* commit '0f3a3777026c20011f1b419daf12980715e594ff':
  Correct executable bit for source files [Take 2]
2013-03-28 14:32:59 -07:00
Elliott Hughes
94eaab4a5d am 3ae30483: am a19647d3: Merge "Correct executable bit for source files [Take 2]"
* commit '3ae30483777708ff3a4f59a4fa75c6a76213cc30':
  Correct executable bit for source files [Take 2]
2013-03-28 14:29:21 -07:00
Dianne Hackborn
e8587722b6 Apparently SystemUI no longer needs the carousel.
Change-Id: Ib886b83fb096a8ef35b167e2727360353c020ec1
2013-03-27 17:43:57 -07:00
Chirayu Desai
3e4a3ea2ff Correct executable bit for source files [Take 2]
Change Ieb51bafb46c895a21d2e83696f5a901ba752b2c5 left out some
files, this fixes them.

Change-Id: Ia949a8581668836ea0251602e048f09c852f5169
2013-03-27 16:52:35 +05:30
Jim Miller
2910e55601 am f7a7ecb4: am fd81f910: Merge "Prevent Recents from doing a relayout" into jb-mr2-dev
* commit 'f7a7ecb4d3d7180da89b8ea684df00de865fa9cf':
  Prevent Recents from doing a relayout
2013-03-20 21:43:07 +00:00
Michael Jurka
31a6fb3b08 Prevent Recents from doing a relayout
Don't relayout Recents when going from a
fullscreen app to Recents; set the proper flags
to do the layout underneath the status bar
2013-03-20 16:44:13 +01:00
Baligh Uddin
3753efd720 Import translations. DO NOT MERGE
Change-Id: Ie8886ea0022ea1e276655dc57fe927d91c03bafb
Auto-generated-cl: translation import
2013-03-18 09:39:27 -07:00
Chet Haase
947ebdfaf7 am 8e035fd7: am 8fb6f418: Merge "Better fix for GL wallpaper creation" into jb-mr2-dev
* commit '8e035fd742508b04f83c33b2963b20979bc1046d':
  Better fix for GL wallpaper creation
2013-03-14 17:39:53 +00:00
Chet Haase
2e417be5c4 Better fix for GL wallpaper creation
A previous fix made initializing GL work better by calling eglMakeCurrent()
prior to querying the max texture size. However, that fix worked by creating an eglSurface
earlier than we did before, which for some reason causes problems later if wallpaper creation
fails and we back off to a software solution.

This new fix creates a temporary pbuffer surface instead, which still allows us to make the
call to eglMakeCurrent() prior to querying the max texture size, but does not result in the
later canvas lock failure if the wallpaper creation fails anyway.

Issue #8319960 sluggish yakju animations over launcher

Change-Id: I394d672549260a354f03ad9fd1b9e1f9a161a371
2013-03-14 09:38:01 -07:00
Chet Haase
addabb2358 am 9e19ea28: am 7534707b: Merge "Ensure wallpaper creation succeeds" into jb-mr2-dev
* commit '9e19ea284a4061d49876697ad8b285b4202c9573':
  Ensure wallpaper creation succeeds
2013-03-14 13:32:45 +00:00
Chet Haase
7534707b34 Merge "Ensure wallpaper creation succeeds" into jb-mr2-dev 2013-03-14 13:28:13 +00:00
Chet Haase
187e1e2fc7 Ensure wallpaper creation succeeds
ImageWallpaper was sometimes querying GL for a max texture size too early
(before the first call to eglMakeCurrent()). This problem caused the wallpaper
to then get created in software, resulting in noticeably slower performance
when the wallpaper was visible.

This fix ensures that the
makeCurrent happens before the query, ensuring that wallpapers of the right
size actually get created instead of failing due to this error at creation time.

Issue #8319960 sluggish yakju animations over launcher

Change-Id: I12a3eba9f1818bdf544691e0727fe12f7e820651
2013-03-14 06:24:32 -07:00
Baligh Uddin
e2a02e2e24 Merge "Import translations. DO NOT MERGE" 2013-03-14 03:03:01 +00:00
Daniel Sandler
4e8d867cbd am 865f7f40: am faa4bea4: am 39099fee: am 1bc1699c: Merge ""[+>" more icon was never shown in PhoneStatusBar"
* commit '865f7f4098fd3139b1c9e8a4d903187cbc31444c':
  "[+>" more icon was never shown in PhoneStatusBar
2013-03-12 20:32:14 +00:00
Daniel Sandler
faa4bea4c0 am 39099fee: am 1bc1699c: Merge ""[+>" more icon was never shown in PhoneStatusBar"
* commit '39099feeece6d76b0c68727506609331e7a6b64c':
  "[+>" more icon was never shown in PhoneStatusBar
2013-03-12 13:27:10 -07:00
Mats H Carlsson
cd231432ff "[+>" more icon was never shown in PhoneStatusBar
"[+>" more icon was never show in status bar because
the member variable for this icon was not initialized
from resources. This fix enables "[+>" icon to appear
in status bar when the number of indications in status
bar becomes large.

Bug: 8368569
Change-Id: Ieb3412eed831052d69c0cf63c9b4230c38171e4a
2013-03-12 19:51:07 +00:00
Baligh Uddin
1920949bda Import translations. DO NOT MERGE
Change-Id: Icf4bfb26c4271122bd5ff4ebfbd4bc3e780d6347
Auto-generated-cl: translation import
2013-03-12 09:47:12 -07:00
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
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