OSDN Git Service
Craig Mautner [Thu, 24 Oct 2013 17:57:24 +0000 (17:57 +0000)]
Merge "Disable time consuming debugging code." into klp-dev
Adam Lesinski [Thu, 24 Oct 2013 17:44:58 +0000 (17:44 +0000)]
Merge "Improve Jank for translucent activities" into klp-dev
Daniel Sandler [Thu, 17 Oct 2013 17:05:53 +0000 (13:05 -0400)]
DessertCase memory improvements
- reuse intermediate bitmaps when loading resources
- only use hardware layers on views that are animating
Bug:
11269977
Change-Id: I39ad7aff16468632da47448404416404f3b54cc4
Craig Mautner [Thu, 24 Oct 2013 16:13:14 +0000 (09:13 -0700)]
Disable time consuming debugging code.
Scanning bitmaps for monochromicity takes time. Lots of time. Don't do
it.
Fixes bug
11366278.
Change-Id: I7a8ad42751311fc39efc27fb4c51522fc1ba0523
Baligh Uddin [Thu, 24 Oct 2013 02:27:01 +0000 (02:27 +0000)]
Merge "Import translations. DO NOT MERGE" into klp-dev
Baligh Uddin [Thu, 24 Oct 2013 02:25:15 +0000 (02:25 +0000)]
Merge "Import translations. DO NOT MERGE" into klp-dev
Baligh Uddin [Thu, 24 Oct 2013 02:25:02 +0000 (02:25 +0000)]
Merge "Import translations. DO NOT MERGE" into klp-dev
Baligh Uddin [Thu, 24 Oct 2013 00:59:26 +0000 (17:59 -0700)]
Import translations. DO NOT MERGE
Change-Id: Ia0ce87e181ca1c425b1a4ea2427b267c9e5d1cf0
Auto-generated-cl: translation import
Adam Lesinski [Wed, 23 Oct 2013 17:45:28 +0000 (10:45 -0700)]
Improve Jank for translucent activities
The previous jank improvement only worked when closing
an app, not when bringing one forward (hitting home button).
This should cover the specific case that is being missed: Having the
Home task being brought to front over a translucent window, with
a wallpaper behind both tasks.
bug:
11253262
Change-Id: I200ef6fe2dda8d9ab4e1f82059b4f888c59007f4
Baligh Uddin [Thu, 24 Oct 2013 00:17:35 +0000 (17:17 -0700)]
Import translations. DO NOT MERGE
Change-Id: I85bcd3e5a5bffe627336332a1bc2d921e2ef7139
Auto-generated-cl: translation import
Baligh Uddin [Thu, 24 Oct 2013 00:08:47 +0000 (17:08 -0700)]
Import translations. DO NOT MERGE
Change-Id: If44c0d3258a9b125cfc1afe930af8f6524200ffd
Auto-generated-cl: translation import
Craig Mautner [Wed, 23 Oct 2013 22:35:25 +0000 (22:35 +0000)]
Merge "Search further than one task for fullscreen." into klp-dev
Craig Mautner [Wed, 23 Oct 2013 22:14:22 +0000 (15:14 -0700)]
Search further than one task for fullscreen.
When a non-fullscreen task over home launches another non-fullscreen
task then the home task might not be displayed. Looking all the way
down the task stacks until reaching a visible, fullscreen activity or
home provides the right information.
Fixes bug
11273803.
Change-Id: I8dab0956c1cda06ddb7850ea3ffac7f6a223c6ad
Chet Haase [Wed, 23 Oct 2013 21:46:01 +0000 (21:46 +0000)]
Merge "Cache Scene objects by layout ID on the scene root" into klp-dev
Adam Powell [Wed, 23 Oct 2013 20:26:03 +0000 (13:26 -0700)]
Cache Scene objects by layout ID on the scene root
The current tracking of scene objects in a static ThreadLocal is
problematic as it leaks the Context associated with the SceneRoot and
returns the wrong Scene object if the same layout ID is used across
different scene roots.
Track Scene objects on the scene root view instead to avoid these
issues.
Change-Id: I891986897f757f2666897c937b5ebb0ed1d531c1
John Spurlock [Wed, 23 Oct 2013 21:19:24 +0000 (21:19 +0000)]
Merge "Decouple IME_ACTIVE and IME_VISIBLE for hardware keyboards." into klp-dev
John Spurlock [Wed, 23 Oct 2013 20:36:47 +0000 (16:36 -0400)]
Decouple IME_ACTIVE and IME_VISIBLE for hardware keyboards.
Reserve IME_VISIBLE for when software keyboards are actually
showing.
Bug:
11186297
Change-Id: I4e09a7de353e564bd1a97dadd603d3104254fa56
Adam Powell [Wed, 23 Oct 2013 20:28:58 +0000 (20:28 +0000)]
Merge "Import button assets from UX repository" into klp-dev
Jeff Sharkey [Wed, 23 Oct 2013 19:19:07 +0000 (19:19 +0000)]
Merge "Add notification docs to DocumentsProvider." into klp-dev
Chet Haase [Wed, 23 Oct 2013 19:17:09 +0000 (19:17 +0000)]
Merge "Fix leak with transitions when views get removed" into klp-dev
Jeff Sharkey [Wed, 23 Oct 2013 19:14:34 +0000 (12:14 -0700)]
Add notification docs to DocumentsProvider.
Bug:
11272209
Change-Id: I97d67c91c4f4a312cbde82afd9e27509c26517b2
Martijn Coenen [Wed, 23 Oct 2013 18:12:06 +0000 (18:12 +0000)]
Merge "Unhide BIND_NFC_SERVICE permission." into klp-dev
Jeff Sharkey [Wed, 23 Oct 2013 18:09:54 +0000 (18:09 +0000)]
Merge "Update roots when data cleared, refresh UI." into klp-dev
Jeff Sharkey [Wed, 23 Oct 2013 18:09:40 +0000 (18:09 +0000)]
Merge "Treat document thumbnails as preemptable." into klp-dev
Adam Powell [Wed, 23 Oct 2013 18:09:03 +0000 (11:09 -0700)]
Import button assets from UX repository
Bug
11192938
Change-Id: Ib59fd4d288d3ef5f132a4cee2a2e0384053b5594
Victoria Lease [Wed, 23 Oct 2013 17:56:53 +0000 (17:56 +0000)]
Merge "add accessibility string for location quicksetting" into klp-dev
Dianne Hackborn [Wed, 23 Oct 2013 17:44:21 +0000 (17:44 +0000)]
Merge "Fix issue #
11278906: Some wm commands fail on shell users" into klp-dev
Dianne Hackborn [Wed, 23 Oct 2013 17:44:11 +0000 (17:44 +0000)]
Merge "Fix issue #
11323037: Android apk incorrectly marked as running in app processes" into klp-dev
Martijn Coenen [Wed, 23 Oct 2013 17:43:16 +0000 (10:43 -0700)]
Unhide BIND_NFC_SERVICE permission.
Needs to be held by host-based card emulation
apps in order to work.
Bug:
11352063
Change-Id: I8ba42446cd3066b38309d8e9cbc51d140a023547
Dianne Hackborn [Wed, 23 Oct 2013 17:23:39 +0000 (10:23 -0700)]
Fix issue #
11278906: Some wm commands fail on shell users
Binder.clearCallingIdentity makes everything better.
Change-Id: I31cd9478c857553b3cf1ea54d5b4987571788796
Jeff Sharkey [Wed, 23 Oct 2013 16:59:06 +0000 (09:59 -0700)]
Update roots when data cleared, refresh UI.
Data cleared usually means accounts went away, so kick off roots
refresh. Also update any visible UI after a refresh finishes.
Bug:
10899793
Change-Id: Id68c80b5e635e358cfd75f4961ce13cd1c7c5f82
Jeff Sharkey [Wed, 23 Oct 2013 00:09:44 +0000 (17:09 -0700)]
Treat document thumbnails as preemptable.
When a more important request comes along, preempt all outstanding
thumbnail requests.
Bug:
11317901
Change-Id: I164fc8d804bb9c471e6da3f8127228043b3ca482
John Spurlock [Wed, 23 Oct 2013 15:48:21 +0000 (15:48 +0000)]
Merge "Ensure the simple CAB appears below the status bar." into klp-dev
Dianne Hackborn [Wed, 23 Oct 2013 01:45:27 +0000 (18:45 -0700)]
Fix issue #
11323037: Android apk incorrectly marked as running in app processes
The android package is now a special case, not being added to the package list
when creating a multi-process component. There is no need, since this package
is actually the framework itself which must be loaded in every process.
Also cleaned up some of the procstats dump output to help see what is going
on here.
Change-Id: If65d35ecd562f3154bdebfded69c454af6ce8c96
Brett Chabot [Wed, 23 Oct 2013 01:17:33 +0000 (01:17 +0000)]
Merge "Add 'no system permission' test app." into klp-dev
Christopher Tate [Tue, 22 Oct 2013 23:38:02 +0000 (23:38 +0000)]
Merge "Edge case: overriden system package moved & became privileged in OTA" into klp-dev
Chet Haase [Tue, 22 Oct 2013 00:19:37 +0000 (17:19 -0700)]
Fix leak with transitions when views get removed
Transitions, when started, add an OnPreDrawListener to the current
ViewTreeObserver (which is global to the view hierarchy). This listener
is removed when the listener is called.
It is possible to add this listener and then remove the view from
the hierarchy before the listener is called. This could result in
either the listener not getting called at all (since there was no
drawing event) or (in the case of this bug) the listener getting called
when the sceneRoot had no AttachInfo (which is the case when that
root has been removed from the hierarchy). This results in the listener
trying to remove itself from a *different* ViewTreeObserver than the one
it added itself to, leaving the actual listener still sitting on a list
of listeners in that original VTO. This can result in a growing list of
listeners and a growing amount of work that gets done on every frame.
It can also lead to a serious memory leak, since the objects referred to
by the transition may be non-trivial (as in the case of this bug).
The fix is to add another mechanism for the listener to get removed.
Specifically, we now listen for detach events on the sceneRoot. If that
view gets detached before the listener is called, then we have a chance to
remove it from the correct VTO before the AttachInfo becomes null.
Issue #
11307391 keyguard is slow after updating to krt16c and playing music
Change-Id: I108413ea2f18f5351df0a11d4ae56fec0b4aa154
Christopher Tate [Tue, 22 Oct 2013 22:36:01 +0000 (15:36 -0700)]
Edge case: overriden system package moved & became privileged in OTA
Because properly continuing permission grants post-OTA has changed
policy to include privilege considerations based on install location,
make sure that we re-evaluate when we determine that the apk has
moved from its pre-OTA location.
Bug
11271490
Change-Id: I6c09986e2851a67504268b289932588457c05dfc
Craig Mautner [Tue, 22 Oct 2013 21:29:01 +0000 (14:29 -0700)]
Don't use transient states for wallpaper animation.
The WindowManagerService member mLowerWallpaperTarget is not stable
throughout an app transition. Relying on it to be stable causes the
intra-wallpaper animation to start out right but after the windows
have been relayed out there is no longer a lower wallpaper target.
This causes the wallpaper to start tracking the animation of the
current wallpaper target rather than remain stable.
Switching to a new variable that saves the state of wallpaper
animation at the start of the animation fixes bug
11240590.
Change-Id: I336a59c47665fcf61019f567b8663956ff0e4940
Craig Mautner [Tue, 22 Oct 2013 20:01:11 +0000 (20:01 +0000)]
Merge "Check for home activity when switching focus." into klp-dev
Baligh Uddin [Tue, 22 Oct 2013 19:48:12 +0000 (19:48 +0000)]
Merge "Import translations. DO NOT MERGE" into klp-dev
Baligh Uddin [Tue, 22 Oct 2013 19:48:04 +0000 (19:48 +0000)]
Merge "Import translations. DO NOT MERGE" into klp-dev
Craig Mautner [Tue, 22 Oct 2013 19:31:01 +0000 (12:31 -0700)]
Check for home activity when switching focus.
When finishing or stopping an activity the code was automatically
refocusing to the next activity on the same stack independent of the
task's onTopOfHome flag. When the activity eventually finished or
stopped it would then honor the onTopOfHome flag.
This fix examines the onTopOfHome flag and arranges the focus
correctly if home is the next activity to run.
Fixes bug
11318263.
Change-Id: I73a8f5e82de04b01acaffe366b085f9e475e1451
John Spurlock [Tue, 15 Oct 2013 20:19:09 +0000 (16:19 -0400)]
Ensure the simple CAB appears below the status bar.
When the contextual action bar is not in overlay mode,
the screen layout is a linear layout. (screen_simple.xml)
Ensure the standalone CAB appears below the status bar,
consumes the top offset (to avoid content application below it)
and fill in the status area with a guard view for background
protection.
Bug:
10014069
Change-Id: I614f16dfa77367a94808aef54710ffebd66e1ca8
Craig Mautner [Tue, 22 Oct 2013 17:36:57 +0000 (17:36 +0000)]
Merge "Make sure mFocusedStack is never the home stack." into klp-dev
Craig Mautner [Tue, 22 Oct 2013 16:53:20 +0000 (09:53 -0700)]
Make sure mFocusedStack is never the home stack.
There were circumstances where mFocusedStack could be assigned the
home stack. If this were ever to occur then all subsequent tasks would
be put on the home stack. This fix ensures that there is no way that
mFocusedStack will ever be assigned to the home task.
Fixes bug
11271189.
Change-Id: I7ddd9b6bcbf2787cbe2f44b461ad057ae2241f00
Roman Nurik [Tue, 22 Oct 2013 16:06:20 +0000 (16:06 +0000)]
Merge "Add Nexus 5 to Device Art Generator." into klp-dev
Brett Chabot [Tue, 22 Oct 2013 04:33:40 +0000 (21:33 -0700)]
Add 'no system permission' test app.
Used in PackageManagerOTATests to verify upgraded system apps
are granetd new permissions.
Bug
11271490
Change-Id: Idbc07bc043d06ea15dc41285ecbfb8186a7ecc95
Craig Mautner [Tue, 22 Oct 2013 04:31:12 +0000 (04:31 +0000)]
Merge "Do not delete stacks that are not empty." into klp-dev
Craig Mautner [Tue, 22 Oct 2013 03:05:26 +0000 (20:05 -0700)]
Do not delete stacks that are not empty.
The possibility existed that an activity was set to a task that it was
already being set to. If that were to happen, and it was the only
activity in the only task of the stack the stack would be deleted.
This fixes that situation and logs it as well to confirm that it does
fix bug
11272935. Logging to be deleted upon successful monkey run
exhibiting the log.
Change-Id: I436fdcc9a3734adad81d3ef90f29b93b3ac4dfcd
Jeff Brown [Tue, 22 Oct 2013 01:03:54 +0000 (01:03 +0000)]
Merge "Fix issues catching up to touch events after a short pause." into klp-dev
Robert Greenwalt [Tue, 22 Oct 2013 00:59:39 +0000 (00:59 +0000)]
Merge "Don't set same country code on supplicant again and again" into klp-dev
Christopher Tate [Tue, 22 Oct 2013 00:58:42 +0000 (00:58 +0000)]
Merge "Preserve window sizes when rebatching alarms" into klp-dev
Vinit Deshapnde [Mon, 21 Oct 2013 18:58:40 +0000 (11:58 -0700)]
Don't set same country code on supplicant again and again
Setting the same code is redundant, and may cause supplicant to drop
currently connected connection.
Bug:
11303252
Change-Id: I1af57b3af2d0b8cc51939a8b9872fb3fe0105a91
Christopher Tate [Tue, 22 Oct 2013 00:51:31 +0000 (17:51 -0700)]
Preserve window sizes when rebatching alarms
The existing code wasn't retaining the requested window bounds, if any,
and so could wind up rebatching alarms into much longer potential
delivery windows than originally demanded by the caller. This could
wind up delivering alarms outside their designated windows entirely.
Bug
11324357
Change-Id: I4d418cd08702e397b3c7692b412d4bf51d5d9e4b
Jim Miller [Mon, 21 Oct 2013 00:21:57 +0000 (17:21 -0700)]
Prevent having multiple seek runnables in flight.
This fix ensures that only one runnable is running at a time, no matter how
many events come in. There's probably a better way to do this, but this is a
safe fix.
Fixes bug
11307391
Change-Id: I007c95062b20285571f39603c95fb9174b9a2da3
Adam Lesinski [Tue, 22 Oct 2013 00:13:16 +0000 (00:13 +0000)]
Merge "Fix jank for translucent window transitions" into klp-dev
Adam Lesinski [Mon, 21 Oct 2013 21:56:47 +0000 (14:56 -0700)]
Fix jank for translucent window transitions
When a translucent window is closing, the transition
animation to Launcher is janky because Launcher is
expected to be 'opening' but it has always been open
underneath the translucent window. Therefore, the
animation applied to the translucent app appears
janky.
bug:
11253262
Change-Id: I9b6af3291d119e6927401f63785b12f25573f4eb
Jim Miller [Mon, 21 Oct 2013 23:10:01 +0000 (23:10 +0000)]
Merge "Workaround for corner case in TransitionManager" into klp-dev
Matthew Xie [Mon, 21 Oct 2013 22:58:53 +0000 (22:58 +0000)]
Merge "Change pairing api/intent permission from PRIVILEGED to ADMIN" into klp-dev
Jim Miller [Mon, 21 Oct 2013 22:36:54 +0000 (15:36 -0700)]
Workaround for corner case in TransitionManager
This works around a problem where removing a review with unfinished
transitions results in leaked object references to KeyguardTransportControlView.
The workaround disables transitions until we have a better fix.
Fixes bug
11307391
Change-Id: I1df82f2c6f1cd9f5c9076d4c76cfd4aec3b6806c
Jay Shrauner [Mon, 21 Oct 2013 22:23:54 +0000 (22:23 +0000)]
Merge "Fix CountryDetector NPE" into klp-dev
Roman Nurik [Mon, 21 Oct 2013 22:11:58 +0000 (18:11 -0400)]
Add Nexus 5 to Device Art Generator.
Change-Id: I101ec82b1d50c6437e96165fb8ac6c73d451ff84
Matthew Xie [Mon, 21 Oct 2013 21:56:33 +0000 (14:56 -0700)]
Change pairing api/intent permission from PRIVILEGED to ADMIN
The APIs are createBond, setPin, setPairingConfirmation
The intent is ACTION_PAIRING_REQUEST
bug
11101076
Change-Id: I3a314efd973b3ce078ab5347159c336f222d9f15
Jason Monk [Mon, 21 Oct 2013 21:40:17 +0000 (21:40 +0000)]
Merge "Make setting PAC require CONNECTIVITY_INTERNAL" into klp-dev
Winson Chung [Mon, 21 Oct 2013 21:16:22 +0000 (21:16 +0000)]
Merge "DO NOT MERGE Fix null pointer exception when updating rotation tile. (Bug
11111473)" into klp-dev
Alan Viverette [Mon, 21 Oct 2013 20:48:57 +0000 (20:48 +0000)]
Merge "Don't clip keyguard security container children (e.g. glow pad)" into klp-dev
Jason Monk [Mon, 21 Oct 2013 16:43:53 +0000 (12:43 -0400)]
Make setting PAC require CONNECTIVITY_INTERNAL
Also disables all setting of PAC networks through the internal AsyncChannel
methods. PAC can only be saved through addOrUpdateNetwork for permission
checks.
Bug:
11316946
Change-Id: I51016b578080c342a5e5d536ea9a3fdd4fe16644
Wink Saville [Mon, 21 Oct 2013 19:03:18 +0000 (19:03 +0000)]
Merge "Fix typo for radio technology" into klp-dev
Jay Shrauner [Mon, 21 Oct 2013 18:54:19 +0000 (11:54 -0700)]
Fix CountryDetector NPE
Fix CountryDetector NPE by calling CallerInfo.getCurrentCountryIso() which
checks for potential nulls.
Bug:
11291034
Change-Id: I0a4412c432551c64ec30652d69636442653ee337
Christopher Tate [Mon, 21 Oct 2013 18:31:14 +0000 (18:31 +0000)]
Merge "Fix priv-app edge case across OTAs" into klp-dev
Sungmin Choi [Sun, 20 Oct 2013 00:26:11 +0000 (17:26 -0700)]
Fix typo for radio technology
Bug:
11317677
Change-Id: I792517f4c3aa568b014d6c2bc0023ce5255f8abb
Victoria Lease [Mon, 21 Oct 2013 15:55:29 +0000 (15:55 +0000)]
Merge "Implement language-specific GSUB processing" into klp-dev
Baligh Uddin [Mon, 21 Oct 2013 15:39:26 +0000 (08:39 -0700)]
Import translations. DO NOT MERGE
Change-Id: Ifefb5cc2d2e9545e3a3c89ec8b2284a04c1bff39
Auto-generated-cl: translation import
Baligh Uddin [Mon, 21 Oct 2013 15:29:27 +0000 (08:29 -0700)]
Import translations. DO NOT MERGE
Change-Id: I1609ae278c6e7fe7af1d440df91940e0a0b07e45
Auto-generated-cl: translation import
Deepanshu Gupta [Mon, 21 Oct 2013 02:51:19 +0000 (02:51 +0000)]
Merge "Don't run the async query if being rendered in EditMode." into klp-dev
Scott Main [Sun, 20 Oct 2013 22:28:10 +0000 (22:28 +0000)]
Merge "add xml attributes to IME javadoc" into klp-dev
John Spurlock [Sat, 19 Oct 2013 17:03:54 +0000 (17:03 +0000)]
Merge "Move the IME navigation guard view up to decor." into klp-dev
Christopher Tate [Sat, 19 Oct 2013 01:11:05 +0000 (18:11 -0700)]
Fix priv-app edge case across OTAs
In this case:
1. Privileged system app FOO is overlain by an installed update,
2. FOO was replaced during an OTA,
3. The new in-system FOO introduced new privileged permission requests
that had not been requested by the original FOO,
4. the update version of FOO still had a higher version code than
the new FOO on the system disk, and
5. the update version of FOO had been requesting these same (newly-
added-to-system-apk) permissions all along;
then the newly-added privileged permission requests were incorrectly being
refused. FOO should be able to use any privileged permission used by the
APK sited on the system disk; but instead, it was only being granted the
permissions used by the *original* version of FOO, even though the system
FOO now attempted to use them.
Still with me?
The fix is to (a) properly track privileged-install state when processing
known-to-be-hidden system packages, and (b) to tie the semantics of the
permission grant more explicitly to that evaluated state, rather than
using the prior (rather fragile) fixed-up privilege calculation applied
to the overlain apk's parse records.
Bug
11271490
Change-Id: Id8a45d667e52f3b5d18109e3620d5865f85bb9c9
Jim Miller [Sat, 19 Oct 2013 01:08:11 +0000 (01:08 +0000)]
Merge "Revert "Fix dodgy states of keyguard transport controls"" into klp-dev
Jim Miller [Sat, 19 Oct 2013 01:00:16 +0000 (01:00 +0000)]
Revert "Fix dodgy states of keyguard transport controls"
This reverts commit
bdb5ac7ddbabec0ba947a32937d8b95738d513dc.
Change-Id: Iea8db9a590a2a3b65d941b2918345eb27f690240
Jonathan Dixon [Sat, 19 Oct 2013 00:35:23 +0000 (00:35 +0000)]
Merge "Restore 4 classes that were accidentally deleted" into klp-dev
Svetoslav Ganov [Sat, 19 Oct 2013 00:26:44 +0000 (00:26 +0000)]
Merge "Hide the print dialog if the printing activity is destroyed." into klp-dev
Jonathan Dixon [Fri, 18 Oct 2013 23:51:53 +0000 (16:51 -0700)]
Restore 4 classes that were accidentally deleted
Bug
11291911
These deleted classes were previously public APIs and so need to remain
in the build (but hidden) in order to keep existing apps working.
(Partially reverts Change-Id: I02549a71104b35d86d99058c71f43e054730ec7d)
Change-Id: I28e53b056f41e66645136f5e18fba2ff55a65fe5
Scott Main [Fri, 18 Oct 2013 23:07:47 +0000 (16:07 -0700)]
add xml attributes to IME javadoc
Change-Id: I7a3505753188ba23777391a286d8595ed64777cb
John Spurlock [Fri, 18 Oct 2013 21:34:42 +0000 (17:34 -0400)]
Move the IME navigation guard view up to decor.
Although the IME windows are now allowed to extend into
the nav bar, some IMEs were making assumptions about
computed insets based on the height of the content view.
So our navigation bar view (opaque view blocking the nav bar
area to avoid the island effect when transparent) needs to live
above the content view in the hierarchy, making the content view
the same height as it was before.
A surgical spot to put the guard view is up at the root view
(PhoneWindow.DecorView). fitSystemWindows is always called since
this view is not recreated, and the layout is stable: waiting until
the IME is attached to the window is too late to add a guard view.
This is above the screen_* layouts, so will work without having to
touch all of them. And it only affects windows of TYPE_INPUT_METHOD.
Bug:
11237795
Change-Id: I6a93f30aec83f1cecfb854073046cbc87ab4aa66
Scott Main [Fri, 18 Oct 2013 21:43:02 +0000 (14:43 -0700)]
fix javadoc link
Change-Id: I509fb12393ee0b8bf78ff4110fc18420739f7c58
John Spurlock [Fri, 18 Oct 2013 21:08:56 +0000 (21:08 +0000)]
Merge "Do not show immersive mode help in touch exploration mode." into klp-dev
Adam Lesinski [Fri, 18 Oct 2013 20:36:58 +0000 (20:36 +0000)]
Merge "Prune unneeded density resources from APK" into klp-dev
Svetoslav [Fri, 18 Oct 2013 20:27:05 +0000 (20:27 +0000)]
Merge "Printer list items have wrong width." into klp-dev
Svetoslav [Fri, 18 Oct 2013 20:26:37 +0000 (20:26 +0000)]
Merge "Clear the caller identity when dumping print system state." into klp-dev
Svetoslav Ganov [Fri, 18 Oct 2013 05:20:40 +0000 (22:20 -0700)]
Hide the print dialog if the printing activity is destroyed.
1. For an app to print it creates a PrintDocumentAdapter implementation
which is passed to the print dialog activity. If the activity that
created the adapter is destroyed then the adapter, which may rely on
the activity state, may be in an invalid state. For example, an app
creates an adapter and calls print resuting in the app activity and
the print dialog activity being stacked. Now the user rotates the
device which triggers the recreating of the activity stack (assume the
app does not handle rotation). The recreated print dialog activity
receives the intent that originally created it with containing the
adapter that was constructed in the context of the old, now destroyed,
app activity instance.
To handle this we are limiting an app to be able to print only from
and activity and when this activity is destroyed we mark the adapter
as invalid which will result in hiding the print dialog activity. Note
that if the app process is killed we already handle this in the print
dialog activiy by registering a death recipient on the adapter binder.
2. In the PrintManager.PrintDocumentAdapterDelegate some of the state is
accessed only on the main thread and some from miltiple threads. The
code was trying to avoid locking for state that is not accessed by
multiple threads but this is error prone and the benefit does not
justify the complexity and added fragility. Now grabbing a lock all
the time.
3. The PrintJobConfigActivity waits for it to bind to the print spooler
service before instantiating its print controller and editor. However,
these can be accessed by invoking some of the activity cycle callbacks.
This change is adding null checks for the case where the activity
callbacks are called before the binding to the spooler is completed.
bug:
11242661
Change-Id: Id906b3170e4f0a0553772dfa62686f06fdca0eaf
Daniel Sandler [Fri, 18 Oct 2013 19:53:27 +0000 (15:53 -0400)]
Do not show immersive mode help in touch exploration mode.
Bug:
11277364
Change-Id: Ifafcbff38e34c0ef08d9a466d93ce591369183a3
Deepanshu Gupta [Fri, 18 Oct 2013 20:04:20 +0000 (20:04 +0000)]
Merge "Layoutlib Create: Remove references to java package class Objects." into klp-dev
Deepanshu Gupta [Fri, 18 Oct 2013 18:22:46 +0000 (11:22 -0700)]
Don't run the async query if being rendered in EditMode.
Skips the QueryHandler if the QuickContactBadge widget is being rendered
in edit mode.
Bug:
11288332
Change-Id: I04b115292f61afc7f515787fa4a396bc6ea56a16
Winson Chung [Fri, 18 Oct 2013 01:26:00 +0000 (18:26 -0700)]
DO NOT MERGE Fix null pointer exception when updating rotation tile. (Bug
11111473)
This occurs when switching users on devices that
don't have a rotation lock quick settings tile.
Change-Id: I738ca15ca754be90cec7eaf3a8eda3e38ed96b33
(cherry picked from commit
e8f50a1400d288e6fd7c20ec7947270e204ee57d)
Daniel Sandler [Fri, 18 Oct 2013 16:05:04 +0000 (12:05 -0400)]
Relayout the immersive cling in the correct thread.
Bug:
11266364
Change-Id: Ia629262ff0c362a5a45b6c5822be080cefcb8c56
Deepanshu Gupta [Fri, 18 Oct 2013 03:06:44 +0000 (20:06 -0700)]
Layoutlib Create: Remove references to java package class Objects.
Remove references to Java 7 class java.util.Objects and replace it with
a new class that can be loaded on Java 6.
Change-Id: Ibbd9b20b8bc89e247f1d0c48d743d06d1a4f0704
Jeff Brown [Fri, 18 Oct 2013 02:40:40 +0000 (19:40 -0700)]
Fix issues catching up to touch events after a short pause.
When the app spends more than half a second responding to a touch
event, the input dispatch eventually decides to stop sending it
events until it catches up. (This is when the ANR clock starts.)
However, due to a bug in the timing logic, if the app eventually
does respond again we would resume delivery but only send one
event at a time until the queue was completely drained again.
This meant it could take a long time to catch up and process all
events.
The problem is that we were comparing the current time with the
waiting event time. So when events became older than half a second,
we would simply stop streaming and end up serialized.
This change fixes the timing logic such that the streaming timeout
is based on the delivery time of the waiting event rather than
the event time itself. Now we only stop streaming when it has
been over half a second since the waiting event was delivered
so we resume streaming immediately as soon as some waiting
events are handled.
Bug:
11278743
Change-Id: Ic8c68ee372a07f7caa4168eefcabf9b8a8ad5d87
Jeff Brown [Fri, 18 Oct 2013 02:08:19 +0000 (02:08 +0000)]
Merge "Log view root, input and looper state in bug reports." into klp-dev