114615 Commits

Author SHA1 Message Date
Dianne Hackborn
237cefbcee 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
2013-10-22 19:15:49 -07:00
Brett Chabot
89bd973344 Merge "Add 'no system permission' test app." into klp-dev 2013-10-23 01:17:34 +00:00
Christopher Tate
d34e115522 am 5f474fcb: Merge "Edge case: overriden system package moved & became privileged in OTA" into klp-dev
* commit '5f474fcb6d6a0215f7726580921e0610ca6281a1':
  Edge case: overriden system package moved & became privileged in OTA
2013-10-22 16:42:39 -07:00
Christopher Tate
5f474fcb6d Merge "Edge case: overriden system package moved & became privileged in OTA" into klp-dev 2013-10-22 23:38:02 +00:00
Jim Miller
ca71f48e03 Remove '?' icon in layout for "Forgot pattern" button
Fixes bug 11234297

Change-Id: I5fbb54997b7a2bcf29b3a98b10a2ba4e908283ef
2013-10-22 16:29:17 -07:00
Chet Haase
df32aa8715 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
2013-10-22 16:27:56 -07:00
Christopher Tate
9f08820025 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
2013-10-22 15:36:01 -07:00
Craig Mautner
deba7bb0ca am 798adeff: Don\'t use transient states for wallpaper animation.
* commit '798adeffb0b9c22707b493895453e7dd2f608b75':
  Don't use transient states for wallpaper animation.
2013-10-22 14:58:12 -07:00
Craig Mautner
798adeffb0 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
2013-10-22 14:50:52 -07:00
Craig Mautner
d37d185979 am 40006309: Merge "Check for home activity when switching focus." into klp-dev
* commit '40006309990c40f5b4b26646b98df222d8d27922':
  Check for home activity when switching focus.
2013-10-22 13:04:07 -07:00
Craig Mautner
4000630999 Merge "Check for home activity when switching focus." into klp-dev 2013-10-22 20:01:12 +00:00
Baligh Uddin
b1c3072ca3 am d94b7ffc: (-s ours) Merge "Import translations. DO NOT MERGE" into klp-dev
* commit 'd94b7ffc2e621a48bed9f10fa03dcc7508fce8ce':
  Import translations. DO NOT MERGE
2013-10-22 12:52:23 -07:00
Baligh Uddin
501633dd45 am f56d8694: (-s ours) Merge "Import translations. DO NOT MERGE" into klp-dev
* commit 'f56d8694f224ef7082c48a227d18d5612a4cfe11':
  Import translations. DO NOT MERGE
2013-10-22 12:52:16 -07:00
Baligh Uddin
d94b7ffc2e Merge "Import translations. DO NOT MERGE" into klp-dev 2013-10-22 19:48:12 +00:00
Baligh Uddin
f56d8694f2 Merge "Import translations. DO NOT MERGE" into klp-dev 2013-10-22 19:48:05 +00:00
John Spurlock
42197263bc Optimize system bar background drawable.
Out with TransitionDrawable.

The new background drawable knows about all possible
background styles, and optimizes the transitions
between them - including picking up from the current
state, force finishing on screen off, and using
SystemClock.elapsedRealtime() for timing.

Bug:11254317
Change-Id: Ice83dc966f6674ef97f7008f2a1b62d67ec59e7d
2013-10-22 15:39:54 -04:00
Craig Mautner
04f0b70c13 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
2013-10-22 12:31:01 -07:00
John Spurlock
a81736a74d 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
2013-10-22 13:51:52 -04:00
Craig Mautner
e609a677f8 am 74082349: Merge "Make sure mFocusedStack is never the home stack." into klp-dev
* commit '7408234985707f98d4800cdd43a6fcaa35cb628a':
  Make sure mFocusedStack is never the home stack.
2013-10-22 10:39:51 -07:00
Craig Mautner
7408234985 Merge "Make sure mFocusedStack is never the home stack." into klp-dev 2013-10-22 17:36:57 +00:00
Craig Mautner
d1bbdb462a 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
2013-10-22 09:53:20 -07:00
Roman Nurik
1330dfa8c7 am acc642bc: Merge "Add Nexus 5 to Device Art Generator." into klp-dev
* commit 'acc642bce9e1ca1782c8f93131d944d4a2f92be0':
  Add Nexus 5 to Device Art Generator.
2013-10-22 09:09:05 -07:00
Roman Nurik
acc642bce9 Merge "Add Nexus 5 to Device Art Generator." into klp-dev 2013-10-22 16:06:20 +00:00
Brett Chabot
305258da75 Add 'no system permission' test app.
Used in PackageManagerOTATests to verify upgraded system apps
are granetd new permissions.

Bug 11271490

Change-Id: Idbc07bc043d06ea15dc41285ecbfb8186a7ecc95
2013-10-22 04:58:50 +00:00
Craig Mautner
0857e3b97a am 24ba3234: Merge "Do not delete stacks that are not empty." into klp-dev
* commit '24ba3234caa27185aa34aab5b88190f85f9a8d75':
  Do not delete stacks that are not empty.
2013-10-21 21:34:59 -07:00
Craig Mautner
24ba3234ca Merge "Do not delete stacks that are not empty." into klp-dev 2013-10-22 04:31:12 +00:00
Craig Mautner
19d9bd54d3 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
2013-10-21 20:05:26 -07:00
Jeff Brown
c024edfb08 am 534103d4: Merge "Fix issues catching up to touch events after a short pause." into klp-dev
* commit '534103d4004ffd102609a09e0b55d329adbc1a57':
  Fix issues catching up to touch events after a short pause.
2013-10-21 18:06:23 -07:00
Jeff Brown
534103d400 Merge "Fix issues catching up to touch events after a short pause." into klp-dev 2013-10-22 01:03:55 +00:00
Robert Greenwalt
4802c6da7f am 4d8a8392: Merge "Don\'t set same country code on supplicant again and again" into klp-dev
* commit '4d8a8392f7a452479f228fbe08e43fa4145dda56':
  Don't set same country code on supplicant again and again
2013-10-21 18:01:39 -07:00
Christopher Tate
6fd8884402 am 7eb83c59: Merge "Preserve window sizes when rebatching alarms" into klp-dev
* commit '7eb83c597fadaa41052c96826c7ca3e53aca9a3d':
  Preserve window sizes when rebatching alarms
2013-10-21 18:01:36 -07:00
Robert Greenwalt
4d8a8392f7 Merge "Don't set same country code on supplicant again and again" into klp-dev 2013-10-22 00:59:40 +00:00
Christopher Tate
7eb83c597f Merge "Preserve window sizes when rebatching alarms" into klp-dev 2013-10-22 00:58:42 +00:00
Vinit Deshapnde
da40d92766 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
2013-10-21 17:55:12 -07:00
Christopher Tate
3e04b47216 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
2013-10-21 17:51:31 -07:00
Jim Miller
253f7295c8 am 1693f6a5: Prevent having multiple seek runnables in flight.
* commit '1693f6a5639a1f993bdc1dca9dade5e3eb3c14f2':
  Prevent having multiple seek runnables in flight.
2013-10-21 17:23:54 -07:00
Jim Miller
1693f6a563 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
2013-10-21 17:17:40 -07:00
Adam Lesinski
ed51f0ac8f am e17e0f0e: Merge "Fix jank for translucent window transitions" into klp-dev
* commit 'e17e0f0e6cfdf32a8b6d142f49819ca9c90be69c':
  Fix jank for translucent window transitions
2013-10-21 17:16:51 -07:00
Adam Lesinski
e17e0f0e6c Merge "Fix jank for translucent window transitions" into klp-dev 2013-10-22 00:13:17 +00:00
Adam Lesinski
43d8d3355b 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
2013-10-21 16:41:48 -07:00
Jim Miller
262e5281d7 am 644696f0: Merge "Workaround for corner case in TransitionManager" into klp-dev
* commit '644696f0a0bee1714868b9e9cf351f1380e68f39':
  Workaround for corner case in TransitionManager
2013-10-21 16:12:18 -07:00
Jim Miller
644696f0a0 Merge "Workaround for corner case in TransitionManager" into klp-dev 2013-10-21 23:10:01 +00:00
Matthew Xie
9a53fbe44f am ce39e8ce: Merge "Change pairing api/intent permission from PRIVILEGED to ADMIN" into klp-dev
* commit 'ce39e8ced8bcbc6663d420bea66280f8b438e027':
  Change pairing api/intent permission from PRIVILEGED to ADMIN
2013-10-21 16:05:26 -07:00
Matthew Xie
ce39e8ced8 Merge "Change pairing api/intent permission from PRIVILEGED to ADMIN" into klp-dev 2013-10-21 22:58:53 +00:00
Jim Miller
ee186de4b2 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
2013-10-21 15:36:54 -07:00
Jay Shrauner
3e33d5a769 am 8d51c2f6: Merge "Fix CountryDetector NPE" into klp-dev
* commit '8d51c2f6fa628cc8f3e4d182df2dafdb7cbea48c':
  Fix CountryDetector NPE
2013-10-21 15:27:43 -07:00
Jay Shrauner
8d51c2f6fa Merge "Fix CountryDetector NPE" into klp-dev 2013-10-21 22:23:55 +00:00
Roman Nurik
e81bd59d01 Add Nexus 5 to Device Art Generator.
Change-Id: I101ec82b1d50c6437e96165fb8ac6c73d451ff84
2013-10-21 18:11:58 -04:00
Matthew Xie
ac2c6c3a16 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
2013-10-21 14:56:33 -07:00
Jason Monk
7d16718105 am 0aeca872: Merge "Make setting PAC require CONNECTIVITY_INTERNAL" into klp-dev
* commit '0aeca87233950933f4f48003f4ebaba342ee2ab8':
  Make setting PAC require CONNECTIVITY_INTERNAL
2013-10-21 14:44:08 -07:00