OSDN Git Service

android-x86/frameworks-base.git
8 years agoMerge "AAPT: Fix use-after-free error" into nyc-mr1-dev
TreeHugger Robot [Mon, 15 Aug 2016 22:56:00 +0000 (22:56 +0000)]
Merge "AAPT: Fix use-after-free error" into nyc-mr1-dev

8 years agoMerge "Add missing remote conference property set." into nyc-mr1-dev
Tyler Gunn [Mon, 15 Aug 2016 22:32:02 +0000 (22:32 +0000)]
Merge "Add missing remote conference property set." into nyc-mr1-dev

8 years agoFixed an issue where the background could show in a wrong way
Selim Cinek [Mon, 15 Aug 2016 19:40:57 +0000 (12:40 -0700)]
Fixed an issue where the background could show in a wrong way

Change-Id: Icefeb2275d6cbabc576c35990ce4441b3a41ebd9
Fixes: 30855224

8 years agoAAPT: Fix use-after-free error
Adam Lesinski [Mon, 15 Aug 2016 21:19:46 +0000 (14:19 -0700)]
AAPT: Fix use-after-free error

Re-order deletion of ResXMLTree and the Asset object
it iterates over.

Bug:30844391
Change-Id: Ied033d0a8f93343006228a2054c6d0f42bb4717a

8 years agoMerge "Docs only: N is no longer a shrug." into nyc-mr1-dev
Dianne Hackborn [Mon, 15 Aug 2016 21:16:41 +0000 (21:16 +0000)]
Merge "Docs only: N is no longer a shrug." into nyc-mr1-dev

8 years agoWallpaper target selection during animation
Chong Zhang [Fri, 12 Aug 2016 23:03:29 +0000 (16:03 -0700)]
Wallpaper target selection during animation

In case of double tapping from Home, there could be two set of
transitions, first is launcher->Recents, followed shortly by
Recents->app. On the second transition, it should be running
a wallpaper close, but because of the way we pick wallpaper
target, sometimes we pick launcher if both launcher & Recents
are animating away. This makes us to run a different animation
which could involve dimming the wallpaper briefly.

Also, findWallpaperTarget() sometimes could toggle between two
valid wallpaper targets, picking either of them gives correct
result for showing the wallpaper, but could result in different
exit transition.

This change prefers the visible target if there is only one
visible, otherwise the one in opening or closing app list. This
helps maybeUpdateTransitToWallpaper to better choose transition.

bug: 30831873
Change-Id: I0eaa89bdc35f5f51875d5cbeceba11ce40f4791f

8 years agoDO NOT MERGE ANYWHERE: Make slow brightness display ramp rate configurable. am: 13edf...
Julius D'souza [Mon, 15 Aug 2016 19:47:33 +0000 (19:47 +0000)]
DO NOT MERGE ANYWHERE: Make slow brightness display ramp rate configurable. am: 13edf0a70b  -s ours am: 0903c5fe7a  -s ours
am: f51dfc24d1  -s ours

Change-Id: Iada12a5685d32efafedd18b4d6fba5b8cc642f60

8 years agoDO NOT MERGE ANYWHERE: Make slow brightness display ramp rate configurable. am: 13edf...
Julius D'souza [Mon, 15 Aug 2016 19:33:29 +0000 (19:33 +0000)]
DO NOT MERGE ANYWHERE: Make slow brightness display ramp rate configurable. am: 13edf0a70b  -s ours
am: 0903c5fe7a  -s ours

Change-Id: Iba7ccc2ec071ea8c13d146b39aab48d2f4fc4977

8 years agoMerge "QS Footer: Don't update icon from wrong thread." into nyc-mr1-dev
TreeHugger Robot [Mon, 15 Aug 2016 19:25:45 +0000 (19:25 +0000)]
Merge "QS Footer: Don't update icon from wrong thread." into nyc-mr1-dev

8 years agoDO NOT MERGE ANYWHERE: Make slow brightness display ramp rate configurable.
Julius D'souza [Mon, 15 Aug 2016 19:25:33 +0000 (19:25 +0000)]
DO NOT MERGE ANYWHERE: Make slow brightness display ramp rate configurable.
am: 13edf0a70b  -s ours

Change-Id: I7c02cea3ea0008f3f112063b6a06d08049c4998b

8 years agoDO NOT MERGE ANYWHERE: Make slow brightness display ramp rate configurable.
Julius D'souza [Fri, 5 Aug 2016 21:34:38 +0000 (14:34 -0700)]
DO NOT MERGE ANYWHERE: Make slow brightness display ramp rate configurable.

Add overlay setting with current default value.

Bug: 30085530
Change-Id: Ib5d2448b88cfb66a97febcdf06e2118c84b16cd0

8 years agoRevert "DO NOT MERGE -- Revert the following two commits as they're causing flickering"
Chong Zhang [Mon, 15 Aug 2016 18:09:29 +0000 (11:09 -0700)]
Revert "DO NOT MERGE -- Revert the following two commits as they're causing flickering"

This reverts commit 44bd57ee25484bd74025c116f8a83d1df5990f34.

bug: 30831873
bug: 30790402

8 years agoMerge "Allow performShowLocked when transition animation started" into nyc-mr1-dev
Chong Zhang [Mon, 15 Aug 2016 19:04:47 +0000 (19:04 +0000)]
Merge "Allow performShowLocked when transition animation started" into nyc-mr1-dev

8 years agoMerge "Fixed that HUNs wouldn't show when the keyguard is occluded" into nyc-mr1-dev
Selim Cinek [Mon, 15 Aug 2016 18:35:57 +0000 (18:35 +0000)]
Merge "Fixed that HUNs wouldn't show when the keyguard is occluded" into nyc-mr1-dev

8 years agoQS Footer: Don't update icon from wrong thread.
Jason Monk [Mon, 15 Aug 2016 17:57:43 +0000 (13:57 -0400)]
QS Footer: Don't update icon from wrong thread.

Change-Id: I25191818579fac57236b67d7291b6ee00dd838b5
Fixes: 30748384

8 years agoAdd missing remote conference property set.
Tyler Gunn [Mon, 15 Aug 2016 17:56:12 +0000 (10:56 -0700)]
Add missing remote conference property set.

When creating a new remote conference, there was a missing call to
"setConnectionProperties".  This would prevent remote conferences from
being created with the correct properties as defined in the actual
conference.

Bug: 30383741
Change-Id: I335e35c222ae18b0d6ea7e750b91bcc36aa40ece

8 years agoAllow performShowLocked when transition animation started
Chong Zhang [Mon, 15 Aug 2016 01:47:54 +0000 (18:47 -0700)]
Allow performShowLocked when transition animation started

Some transitions can have no animation, in which case
isReadyForDisplayIgnoringKeyguard() will wait for VIEW visibility
to become VISIBLE. But if we have a saved surface, the transition
could have already started. This causes exiting app to be hidden,
while entering app's performShowLocked() still hold back waiting
for the relayout to visible.

If we started animating with saved surface, it should also count
as transition animation started.

b/30855380

Change-Id: I6260a323b48e57d8337267d9136f630226a48dc8

8 years agoMerge "Update RenderScript docs: reduction, other API 23/24 changes, cleanup." into...
David Gross [Mon, 15 Aug 2016 17:23:17 +0000 (17:23 +0000)]
Merge "Update RenderScript docs: reduction, other API 23/24 changes, cleanup." into nyc-dev
am: 8cb4ca439e

Change-Id: I1507e8d3d8bf588ea48e17b3d93ced19228d5d21

8 years agoUpdate RenderScript docs: reduction, other API 23/24 changes, cleanup.
David Gross [Mon, 15 Aug 2016 17:23:14 +0000 (17:23 +0000)]
Update RenderScript docs: reduction, other API 23/24 changes, cleanup.
am: b50e856fc7

Change-Id: I37cf0227be2a32261b44f19f6d45a5ea4ff6f624

8 years agoMerge "Update RenderScript docs: reduction, other API 23/24 changes, cleanup." into...
David Gross [Mon, 15 Aug 2016 17:17:01 +0000 (17:17 +0000)]
Merge "Update RenderScript docs: reduction, other API 23/24 changes, cleanup." into nyc-dev

8 years agoMerge "SamplingTimer: Fix issue with summary recording too much" into nyc-mr1-dev
TreeHugger Robot [Sat, 13 Aug 2016 00:40:52 +0000 (00:40 +0000)]
Merge "SamplingTimer: Fix issue with summary recording too much" into nyc-mr1-dev

8 years agoMerge "Remember all wallpapers' backup-allow state" into nyc-mr1-dev
TreeHugger Robot [Sat, 13 Aug 2016 00:24:10 +0000 (00:24 +0000)]
Merge "Remember all wallpapers' backup-allow state" into nyc-mr1-dev

8 years agoMerge "Fix LockscreenWallpaper jank" into nyc-mr1-dev
TreeHugger Robot [Sat, 13 Aug 2016 00:12:59 +0000 (00:12 +0000)]
Merge "Fix LockscreenWallpaper jank" into nyc-mr1-dev

8 years agoDocs only: N is no longer a shrug.
Dianne Hackborn [Fri, 12 Aug 2016 23:15:44 +0000 (16:15 -0700)]
Docs only: N is no longer a shrug.

Change-Id: I6fa8f77d93f53b7969ec6aab4c7e9ca27d17d01f

8 years agoMerge "Copy exiting app token list while stepping animation." into nyc-mr1-dev
TreeHugger Robot [Fri, 12 Aug 2016 23:48:12 +0000 (23:48 +0000)]
Merge "Copy exiting app token list while stepping animation." into nyc-mr1-dev

8 years agoSamplingTimer: Fix issue with summary recording too much
Adam Lesinski [Fri, 12 Aug 2016 22:49:44 +0000 (15:49 -0700)]
SamplingTimer: Fix issue with summary recording too much

The summary is supposed to just hold enough data to continue counting
once the device has reset. Since kernel stats reset when the device
resets, and the first update is ignored to account for soft resets where the
kernel continues running, SamplingTimer should not be recording the last value
it saw from /proc/wakelocks in the summary.

Bug:30575302
Change-Id: Ic193bc5af9a0ede514e3abc8146523d7316c47d3

8 years agoFix LockscreenWallpaper jank
Adrian Roos [Fri, 12 Aug 2016 22:29:36 +0000 (15:29 -0700)]
Fix LockscreenWallpaper jank

Change-Id: I3f11d26eaa51eb509284fb1bb25eab03a4f243a0
Fixes: 30493315

8 years agoCopy exiting app token list while stepping animation.
Robert Carr [Fri, 12 Aug 2016 20:50:38 +0000 (13:50 -0700)]
Copy exiting app token list while stepping animation.

Stepping the animation can lead to WindowStateAnimator#finishExit,
which can lead to WindowManagerService#removeWindowInnerLocked, which
can immediately call WindowSurfacePlacer.performSurfacePlacement. From
here we will directly modify mExitingAppTokens for each stack and remove
tokens where exiting is complete. I think removeWindowInnerLocked making
a direct call to performSurfacePlacement is questionable...but changing
semantics there is very risky. For now, simply avoid processing tokens
in the animator if the surface placer has removed them. It seems all we
would want to do is trigger a layout pass, which has just occured anyway.

Bug: 30813094
Change-Id: Iaff77d227e09839f7e6edda6b8f188d164e6da74

8 years agoMerge "Fix documentation." into nyc-mr1-dev
Hui Shu [Fri, 12 Aug 2016 21:24:42 +0000 (21:24 +0000)]
Merge "Fix documentation." into nyc-mr1-dev

8 years agoRemember all wallpapers' backup-allow state
Christopher Tate [Fri, 12 Aug 2016 21:13:02 +0000 (14:13 -0700)]
Remember all wallpapers' backup-allow state

...not just system wallpapers.

Bug 30751829

Change-Id: If9f5df33e587e31080a7e65b1cbcae03f9a39f3c

8 years agoLimit capabilities of a11y gesture dispatch.
Phil Weaver [Fri, 12 Aug 2016 21:05:15 +0000 (21:05 +0000)]
Limit capabilities of a11y gesture dispatch.
am: 157f416a35

Change-Id: I260318856e390a585b0fdf404a10916f2ee5af82

8 years agoMerge "Assist: Allow disabling the disclosure animation" into nyc-mr1-dev
TreeHugger Robot [Fri, 12 Aug 2016 20:28:10 +0000 (20:28 +0000)]
Merge "Assist: Allow disabling the disclosure animation" into nyc-mr1-dev

8 years agoMerge "Add restart to GlobalActions." into nyc-mr1-dev
Alison Cichowlas [Fri, 12 Aug 2016 20:12:37 +0000 (20:12 +0000)]
Merge "Add restart to GlobalActions." into nyc-mr1-dev

8 years agoMerge "Add property to force restorecon to run." into nyc-mr1-dev
TreeHugger Robot [Fri, 12 Aug 2016 20:12:15 +0000 (20:12 +0000)]
Merge "Add property to force restorecon to run." into nyc-mr1-dev

8 years agoMerge "Fix NPE in deferToPendingTransaction." into nyc-mr1-dev
Rob Carr [Fri, 12 Aug 2016 20:00:05 +0000 (20:00 +0000)]
Merge "Fix NPE in deferToPendingTransaction." into nyc-mr1-dev

8 years agoMerge "DO NO MERGE -- Revert the following two commits as they're causing flickering...
Chong Zhang [Fri, 12 Aug 2016 19:44:11 +0000 (19:44 +0000)]
Merge "DO NO MERGE -- Revert the following two commits as they're causing flickering" into nyc-mr1-dev

8 years agoDO NO MERGE -- Revert the following two commits as they're causing flickering
Chong Zhang [Fri, 12 Aug 2016 18:44:52 +0000 (11:44 -0700)]
DO NO MERGE -- Revert the following two commits as they're causing flickering

When double tapping Recents, need to reinvestigate.

b/30831873
b/30790402

Revert "Clear WS.mDestroying on AWT.clearAnimatingFlags"

This reverts commit c2661e52eae3161ac8c02e831290ad50ad395be2.

Revert "Some fixes for transition animation selection"

This reverts commit 73e9bc3f1557f0320c8af843dfb051f27187361d.

8 years agoMerge "Account for scaling of surfaceInset area in magnification." into nyc-mr1-dev
Rob Carr [Fri, 12 Aug 2016 19:37:15 +0000 (19:37 +0000)]
Merge "Account for scaling of surfaceInset area in magnification." into nyc-mr1-dev

8 years agoAssist: Allow disabling the disclosure animation
Adrian Roos [Thu, 11 Aug 2016 22:42:40 +0000 (15:42 -0700)]
Assist: Allow disabling the disclosure animation

Change-Id: I6e7ed00f066fda7cc268119e7aa4133010aa69c1
Fixes: 30809067

8 years agoAdd property to force restorecon to run.
Jeff Sharkey [Fri, 12 Aug 2016 18:26:54 +0000 (12:26 -0600)]
Add property to force restorecon to run.

As an optimization, we typically only run restorecon when
seapp_contexts changes.  This CL checks a property that can be used
to always force a restorecon to help investigate boot timing.

Bug: 30213213
Change-Id: I4d65c1a4e4a0830ef4a32cd2fae1d3ab188b65cc

8 years agoUpdate RenderScript docs: reduction, other API 23/24 changes, cleanup.
David Gross [Fri, 12 Aug 2016 18:06:29 +0000 (11:06 -0700)]
Update RenderScript docs: reduction, other API 23/24 changes, cleanup.

Substantive changes:
- Add discussion of reduction kernels.
- Use RS_KERNEL in place of __attribute__((kernel)).
- Discuss "context" special argument.
- Special arguments x, y, z may be of type int.
- Discuss multiple inputs for mapping kernels.
- Mention that script-side global writes are not visible in Java.
- Rewrite part of discussion regarding when to use support library.
- Change minimum device version for support library from Android 2.2 (API level 8)
  to Android 2.3 (API level 9).

Stylistic changes (better conformance with style guide):
- Proper use of <i> (italic) versus <em> (emphasis).
- Proper case for headings.
- Proper pattern for Android version numbers.
- Do not use e.g. or i.e.
- Prefer active rather than passive voice.
- Prefer present rather than future tense.

Miscellaneous minor editorial changes.

Bug: 27299393
Bug: 30000147

Change-Id: Ie0a26152714cf8f619d4914218f7262d675bb25f
(cherry picked from commit 05eef3040ed1bbd7640151b395072b8264b6d53d)

8 years agoMerge "Fix a race to detemine IME switcher visibilityde" into nyc-mr1-dev
Yohei Yukawa [Fri, 12 Aug 2016 17:43:42 +0000 (17:43 +0000)]
Merge "Fix a race to detemine IME switcher visibilityde" into nyc-mr1-dev

8 years agoAdd restart to GlobalActions.
Alison Cichowlas [Fri, 5 Aug 2016 18:50:27 +0000 (14:50 -0400)]
Add restart to GlobalActions.

Update power icon in GlobalActions for consistency
with new restart icon.

Bug: 30395806
Change-Id: I5ab20c15c889384fb685fc678fbf9ed912fcde5d

8 years agoMerge "Start listening on notifications/QS panels on expansion started" into nyc...
Jason Monk [Fri, 12 Aug 2016 17:04:45 +0000 (17:04 +0000)]
Merge "Start listening on notifications/QS panels on expansion started" into nyc-mr1-dev

8 years agoMerge "Add ImsReason codes and DisconnectCauses for data disconnects." into nyc-mr1-dev
Tyler Gunn [Fri, 12 Aug 2016 14:54:26 +0000 (14:54 +0000)]
Merge "Add ImsReason codes and DisconnectCauses for data disconnects." into nyc-mr1-dev

8 years agoMerge "Fix NPE in TextureView" into nyc-mr1-dev
John Reck [Fri, 12 Aug 2016 14:25:14 +0000 (14:25 +0000)]
Merge "Fix NPE in TextureView" into nyc-mr1-dev

8 years agoMerge "Import translations. DO NOT MERGE" into nyc-mr1-dev
TreeHugger Robot [Fri, 12 Aug 2016 10:44:40 +0000 (10:44 +0000)]
Merge "Import translations. DO NOT MERGE" into nyc-mr1-dev

8 years agoMerge "Import translations. DO NOT MERGE" into nyc-mr1-dev
TreeHugger Robot [Fri, 12 Aug 2016 09:24:37 +0000 (09:24 +0000)]
Merge "Import translations. DO NOT MERGE" into nyc-mr1-dev

8 years agoMerge "Import translations. DO NOT MERGE" into nyc-mr1-dev
TreeHugger Robot [Fri, 12 Aug 2016 09:24:19 +0000 (09:24 +0000)]
Merge "Import translations. DO NOT MERGE" into nyc-mr1-dev

8 years agoImport translations. DO NOT MERGE
Bill Yi [Fri, 12 Aug 2016 07:26:31 +0000 (00:26 -0700)]
Import translations. DO NOT MERGE

Change-Id: Ib152ecb48817f123084dd0c776f3aa6393fc3f83
Auto-generated-cl: translation import

8 years agoImport translations. DO NOT MERGE
Bill Yi [Fri, 12 Aug 2016 07:13:54 +0000 (00:13 -0700)]
Import translations. DO NOT MERGE

Change-Id: I27949ecc8590b8c00ddac9c45000e34c11205a29
Auto-generated-cl: translation import

8 years agoImport translations. DO NOT MERGE
Bill Yi [Fri, 12 Aug 2016 07:06:34 +0000 (00:06 -0700)]
Import translations. DO NOT MERGE

Change-Id: I617474f76296482b1eade0ad6ed909b4c4fd25c7
Auto-generated-cl: translation import

8 years agoFix a race to detemine IME switcher visibilityde
Yohei Yukawa [Fri, 12 Aug 2016 02:16:02 +0000 (19:16 -0700)]
Fix a race to detemine IME switcher visibilityde

When the current user is switching to a user who requires password to
unlock, there is a chance that InputMethodManagerService has not
completed InputMethodManagerService#onSwitchUser() when the keyguard is
calling InputMethodManager#getEnabledInputMethodList() to detemine
whether the IME switcher icon should be shown or not.  If this occurs,
and if the previous user enables only one IME but the new user enables
multiple IMEs, it's possible that the IME switcher icon is not shown
when it should be.  Although the user is still able to work around this
by switch back to the previous user then the current user again until
the icon shows up, or can rely on a way to switch to next
IME (e.g. globe key) if it's available, the lack of the IME switcher
is still concerning since it can prevent the user from unlocking the
device.

As a quick workaround for this situation, this CL introduces a delayed
task to re-evaluate if we need to show the IME switcher icon on the
keyguard or not (currently the delay is set to 500msec) until this race
condition is fundamentally fixed.

Bug: 30640917
Change-Id: I93ea71d73540c31fbbe1cc4bd6747871f957dcc6

8 years agoMerge "Make data warning notification heads up." into nyc-mr1-dev
Sanket Padawe [Fri, 12 Aug 2016 01:38:44 +0000 (01:38 +0000)]
Merge "Make data warning notification heads up." into nyc-mr1-dev

8 years agoMerge "Allow to keep screen on only if window can be seen" into nyc-mr1-dev
Chong Zhang [Fri, 12 Aug 2016 00:42:56 +0000 (00:42 +0000)]
Merge "Allow to keep screen on only if window can be seen" into nyc-mr1-dev

8 years agoFix documentation.
Hui Shu [Tue, 9 Aug 2016 01:22:11 +0000 (18:22 -0700)]
Fix documentation.

Remove spurious duplicate line in JavaDoc.

Change-Id: I7ee7339d2ef21241ff21e66683e37e8ea0bbfaa4

8 years agoMerge "Include tids in android.util.Process exceptions." into nyc-mr1-dev
Ruben Brunk [Fri, 12 Aug 2016 00:00:35 +0000 (00:00 +0000)]
Merge "Include tids in android.util.Process exceptions." into nyc-mr1-dev

8 years agoMake data warning notification heads up.
Sanket Padawe [Thu, 11 Aug 2016 23:34:10 +0000 (16:34 -0700)]
Make data warning notification heads up.

Bug: 30760683
Change-Id: Id3fed0a62936dddabcb169536a4a917d750259d7

8 years agoMerge "Clean up when recycling a pid with a pending launch" into nyc-mr1-dev
Amith Yamasani [Thu, 11 Aug 2016 20:48:26 +0000 (20:48 +0000)]
Merge "Clean up when recycling a pid with a pending launch" into nyc-mr1-dev

8 years agoMerge changes Ide94af72,Ie2c94439 into nyc-mr1-dev
Wale Ogunwale [Thu, 11 Aug 2016 20:43:26 +0000 (20:43 +0000)]
Merge changes Ide94af72,Ie2c94439 into nyc-mr1-dev

* changes:
  Clear WS.mDestroying on AWT.clearAnimatingFlags
  Some fixes for transition animation selection

8 years agoLimit capabilities of a11y gesture dispatch.
Phil Weaver [Fri, 5 Aug 2016 18:23:50 +0000 (11:23 -0700)]
Limit capabilities of a11y gesture dispatch.

Changing the service side to accept descriptions of
motion events, not motion events themselves, so we can
control their creation.

Bug: 30647115
Change-Id: Ia6772a1fc05df91818e3f88959d1e2b4a35fe0cc
(cherry picked from commit a8918f23c712e97fa1dc4911f64827d64fc906e5)

8 years agoMerge "Limit capabilities of a11y gesture dispatch." into nyc-mr1-dev
Phil Weaver [Thu, 11 Aug 2016 20:35:11 +0000 (20:35 +0000)]
Merge "Limit capabilities of a11y gesture dispatch." into nyc-mr1-dev

8 years agoMerge "Don't preserve a11y focus in hierarchy state." into nyc-mr1-dev
Phil Weaver [Thu, 11 Aug 2016 20:34:41 +0000 (20:34 +0000)]
Merge "Don't preserve a11y focus in hierarchy state." into nyc-mr1-dev

8 years agoMerge "Dump out last real used app transit type" into nyc-mr1-dev
TreeHugger Robot [Thu, 11 Aug 2016 20:29:41 +0000 (20:29 +0000)]
Merge "Dump out last real used app transit type" into nyc-mr1-dev

8 years agoMerge "Check system & lock wallpaper backup eligibility independently" into nyc-mr1-dev
Chris Tate [Thu, 11 Aug 2016 20:20:08 +0000 (20:20 +0000)]
Merge "Check system & lock wallpaper backup eligibility independently" into nyc-mr1-dev

8 years agoAdd ImsReason codes and DisconnectCauses for data disconnects.
Tyler Gunn [Thu, 11 Aug 2016 20:13:51 +0000 (13:13 -0700)]
Add ImsReason codes and DisconnectCauses for data disconnects.

Adding reason code and disconnect causes for:
1. disconnects due to user disabling data.
2. disconnects due to data limit being reached.

Bug: 30702393
Change-Id: Id6ea5ee4f5aac1a8602094315f893e2f7b3cc8d6

8 years agoFix NPE in deferToPendingTransaction.
Robert Carr [Thu, 11 Aug 2016 20:03:02 +0000 (13:03 -0700)]
Fix NPE in deferToPendingTransaction.

Just because a child window has a surface doesn't necessarily
mean the parent window will have a surface. destroySurfaceLocked()
only takes care of setting mAttachedHidden so the child surface
will be invisible, but it may not be destroyed until a later point.

Bug: 30813094
Change-Id: Idb1b03fd61a7537ebfe33bafc93f278c0e6751f4

8 years agoMerge "Do not toggle OEM unlock if bootloader unlocked" into nyc-mr1-dev
TreeHugger Robot [Thu, 11 Aug 2016 18:45:25 +0000 (18:45 +0000)]
Merge "Do not toggle OEM unlock if bootloader unlocked" into nyc-mr1-dev

8 years agoCheck system & lock wallpaper backup eligibility independently
Christopher Tate [Wed, 10 Aug 2016 23:13:14 +0000 (16:13 -0700)]
Check system & lock wallpaper backup eligibility independently

Bug 30751829

Change-Id: Ic94689dd63238449222d1aea07231d9fd29fc76d

8 years agoFix NPE in TextureView
John Reck [Thu, 11 Aug 2016 17:43:14 +0000 (10:43 -0700)]
Fix NPE in TextureView

Bug: 30779663
Change-Id: Ib3d40b60674ab3de8bfcfdd8489b89cf07b8d8b3

8 years agoMerge "Use colorAccent for profile_button." into nyc-mr1-dev
Andrew Sapperstein [Thu, 11 Aug 2016 17:27:55 +0000 (17:27 +0000)]
Merge "Use colorAccent for profile_button." into nyc-mr1-dev

8 years agoMerge "Add API to enable/disable the visual voicemail client" into nyc-mr1-dev
Ta-wei Yen [Thu, 11 Aug 2016 17:15:12 +0000 (17:15 +0000)]
Merge "Add API to enable/disable the visual voicemail client" into nyc-mr1-dev

8 years agoDo not toggle OEM unlock if bootloader unlocked
Esteban Talavera [Thu, 11 Aug 2016 10:23:40 +0000 (11:23 +0100)]
Do not toggle OEM unlock if bootloader unlocked

Bug: 30681215
Change-Id: Ia0fd55dd7b6b731d6f5733fc733621e99bd7b153

8 years agoadd info about how to return default values from android.jar bug: 30757670
smain@google.com [Thu, 11 Aug 2016 16:42:03 +0000 (16:42 +0000)]
add info about how to return default values from android.jar bug: 30757670
am: abfa7e2c65

Change-Id: I60f631fa7d33bc8cd39082a8caf8dbb9f94bb47c

8 years agoClear WS.mDestroying on AWT.clearAnimatingFlags
Wale Ogunwale [Thu, 11 Aug 2016 16:34:45 +0000 (09:34 -0700)]
Clear WS.mDestroying on AWT.clearAnimatingFlags

We call AppWindowToken.clearAnimatingFlags() when an app token is
no longer considered exiting since it is now part of the opening
app transition. To the same effect we should no longer consider
its windows destroying so they can be factored in when decided
what to do during the transition like picking the right wallpaper
target.

Bug: 30790402
Change-Id: Ide94af72a38bd4a955abb122b47f921fd3f70652

8 years agoadd info about how to return default values from android.jar
smain@google.com [Wed, 10 Aug 2016 19:59:24 +0000 (12:59 -0700)]
add info about how to return default values from android.jar
bug: 30757670

Change-Id: I84e1624cbe7ae8d5e4e2886d4e8f61d621729464

8 years agoSome fixes for transition animation selection
Chong Zhang [Fri, 29 Jul 2016 20:09:40 +0000 (13:09 -0700)]
Some fixes for transition animation selection

- Request wallpaper adjust after we clear mDestroying or
  mAnimatingExit flags, as these could affect wallpaper
  target selection result.

- Adjust wallpaper before we check lower/upper target. As
  there could be pending operations that requested a wall-
  paper update. Lower/upper target is needed to correctly
  decide if the opening or closing apps had wallpaper.

- Make sure lower/upper targets are set even when current
  target is clientHidden, in which case we should set
  wallpaper target to old target but the lower/upper
  still needs to be set up.

Bug: 30790402
Bug: 30255354
Change-Id: Ie2c94439142cbb91660c5aa4164cc660831486d5
(cherry picked from commit ec8299ca4575cb5afe96bb60082d50cb8a01c74b)

8 years agoDump out last real used app transit type
Chong Zhang [Thu, 28 Jul 2016 00:52:45 +0000 (17:52 -0700)]
Dump out last real used app transit type

Easier for debugging or testing bad exit animations.

Bug: 30790402
Bug: 30255354
Change-Id: I8097195bfc918baf66ecc99b55f4845aba2eaff4
(cherry picked from commit 1c93f6de2dd74dfc7ee0f52aca6e8b491ace02f9)

8 years agoMerge "Don't run expand/collapse animations when dismissing." into nyc-mr1-dev
Julia Reynolds [Thu, 11 Aug 2016 14:28:47 +0000 (14:28 +0000)]
Merge "Don't run expand/collapse animations when dismissing." into nyc-mr1-dev

8 years agoMerge "Suppress Boot sound for non-standard scenarios." into nyc-mr1-dev
Geoffrey Pitsch [Thu, 11 Aug 2016 12:56:42 +0000 (12:56 +0000)]
Merge "Suppress Boot sound for non-standard scenarios." into nyc-mr1-dev

8 years agoMerge "Make NightDisplayService robust to early alarms" into nyc-mr1-dev
TreeHugger Robot [Thu, 11 Aug 2016 02:46:49 +0000 (02:46 +0000)]
Merge "Make NightDisplayService robust to early alarms" into nyc-mr1-dev

8 years agoMerge "Only disable trust agents after lockout" into nyc-mr1-dev
TreeHugger Robot [Thu, 11 Aug 2016 02:30:31 +0000 (02:30 +0000)]
Merge "Only disable trust agents after lockout" into nyc-mr1-dev

8 years agoMerge "Zygote: allow system server compilation to fail" into nyc-mr1-dev
TreeHugger Robot [Thu, 11 Aug 2016 02:02:08 +0000 (02:02 +0000)]
Merge "Zygote: allow system server compilation to fail" into nyc-mr1-dev

8 years agoMake NightDisplayService robust to early alarms
Justin Klaassen [Mon, 8 Aug 2016 22:01:47 +0000 (15:01 -0700)]
Make NightDisplayService robust to early alarms

Bug: 30743700

Use the same time for calculating the next activated state and
scheduling the next alarm. This prevents the alarm from being scheduled
incorrectly if the activated state is updated slightly before the
scheduled start or end time.

Change-Id: I690aebddd28547a25b507c227c4527ffdd7c6a02

8 years agoOnly disable trust agents after lockout
Adrian Roos [Thu, 11 Aug 2016 00:09:55 +0000 (17:09 -0700)]
Only disable trust agents after lockout

Previously trust agents would be disabled even after one
wrong attempt. Now we wait for the cooldown (usually 5 attempts),
the same as fingerprint.

Also adds a TrustArchive entry of when device policy changes are sent to
trust agents.

Bug: 30037948
Change-Id: I9e284d994ddae45ef66b5b8b601297c63d8ba667

8 years agoMerge "Base date-change alarm on 24h "hour zero," not 12h" into nyc-mr1-dev
TreeHugger Robot [Thu, 11 Aug 2016 00:57:25 +0000 (00:57 +0000)]
Merge "Base date-change alarm on 24h "hour zero," not 12h" into nyc-mr1-dev

8 years agoMerge "Camera: ensure lock ordering (device->session)" into nyc-mr1-dev
Yin-Chia Yeh [Thu, 11 Aug 2016 00:32:13 +0000 (00:32 +0000)]
Merge "Camera: ensure lock ordering (device->session)" into nyc-mr1-dev

8 years agoMerge "Use non-fast JNI for Canvas.native_drawBitmap." into nyc-mr1-dev
Hiroshi Yamauchi [Thu, 11 Aug 2016 00:05:17 +0000 (00:05 +0000)]
Merge "Use non-fast JNI for Canvas.native_drawBitmap." into nyc-mr1-dev

8 years agoMerge "PIP: Hide play/pause button by default" into nyc-mr1-dev
Jaewan Kim [Wed, 10 Aug 2016 23:22:19 +0000 (23:22 +0000)]
Merge "PIP: Hide play/pause button by default" into nyc-mr1-dev

8 years agoMerge "Fix lock wallpaper backup & restore" into nyc-mr1-dev
Chris Tate [Wed, 10 Aug 2016 23:17:07 +0000 (23:17 +0000)]
Merge "Fix lock wallpaper backup & restore" into nyc-mr1-dev

8 years agoBase date-change alarm on 24h "hour zero," not 12h
Christopher Tate [Wed, 10 Aug 2016 23:15:48 +0000 (16:15 -0700)]
Base date-change alarm on 24h "hour zero," not 12h

Bug 30628519

Change-Id: Ie504748c7fc2d43c713ddc72c39c56a976cc0df0

8 years agoMerge "Use localized hour when announcing selection for accessibility" into nyc-mr1-dev
TreeHugger Robot [Wed, 10 Aug 2016 21:55:28 +0000 (21:55 +0000)]
Merge "Use localized hour when announcing selection for accessibility" into nyc-mr1-dev

8 years agoMerge "Fix exception spam in ActivityManagerService." into nyc-mr1-dev
TreeHugger Robot [Wed, 10 Aug 2016 21:38:15 +0000 (21:38 +0000)]
Merge "Fix exception spam in ActivityManagerService." into nyc-mr1-dev

8 years agoMerge "Add carrier config to indicate whether to notify of vt handover failure."...
Tyler Gunn [Wed, 10 Aug 2016 21:28:37 +0000 (21:28 +0000)]
Merge "Add carrier config to indicate whether to notify of vt handover failure." into nyc-mr1-dev

8 years agoMerge "Use symmetric conditions for advertising and performing ACTION_SCROLL" into...
TreeHugger Robot [Wed, 10 Aug 2016 20:57:21 +0000 (20:57 +0000)]
Merge "Use symmetric conditions for advertising and performing ACTION_SCROLL" into nyc-mr1-dev

8 years agoDon't run expand/collapse animations when dismissing.
Julia Reynolds [Wed, 10 Aug 2016 15:42:56 +0000 (11:42 -0400)]
Don't run expand/collapse animations when dismissing.

Also restore some padding.

Change-Id: Iada58be574c52651931ea733aaa4022c71e136b5
Fixes: 30764259
Fixes: 30781039

8 years agoFix exception spam in ActivityManagerService.
Tim Murray [Mon, 8 Aug 2016 03:17:47 +0000 (20:17 -0700)]
Fix exception spam in ActivityManagerService.

If a thread that ActivityManagerService should be setting to FIFO dies,
it throws an exception. However, it is expected that threads may
die (due to LMK or app behavior), so we should suppress as much of this
as possible.

bug 30746129

Change-Id: Ief1ab8568fe8b27284ec442570b6a06677998ff1

8 years agoCamera: ensure lock ordering (device->session)
Yin-Chia Yeh [Tue, 9 Aug 2016 00:50:53 +0000 (17:50 -0700)]
Camera: ensure lock ordering (device->session)

On close/abort calls, which are more likely to run in parallel
with CameraDevice APIs.

Bug: 30742426
Change-Id: I6550283d1026373d48bb730164e65b25c7037bab

8 years agoMerge "Fix two shortcut manager issues" into nyc-mr1-dev
TreeHugger Robot [Wed, 10 Aug 2016 19:14:54 +0000 (19:14 +0000)]
Merge "Fix two shortcut manager issues" into nyc-mr1-dev

8 years agoZygote: allow system server compilation to fail
Andreas Gampe [Wed, 10 Aug 2016 03:44:04 +0000 (20:44 -0700)]
Zygote: allow system server compilation to fail

Do not terminate when the system server classpath cannot be
compiled. This can be the case in fallback mode, e.g., when
a device ran out of space.

Bug: 30765660
Change-Id: I3aca3f2f789e2201e4019e1bf04d239ab54b0d3d