Commit Graph

253881 Commits

Author SHA1 Message Date
Robert Carr
57d9fbd17f Introduce new constant for double tap gesture rotation hint.
As discussed in ag/1192965/ we have a special case for rotation
animation selection in launch from double tap. This was set to
ROTATION_ANIMATION_CROSSFADE as the goal was just to avoid
ROTATION_ANIMATION_ROTATE on the viewfinder surface and
seamless rotation in launch scenarios was initially descoped. Now we
are aiming at fixing this though, and ROTATION_ANIMATION_CROSSFADE
does not quality for seamless rotation. ROTATION_ANIMATION_JUMPCUT
also would not be a good choice because in the situation that the
rotation occurs before the app starting window appears, then we would
jump cut from unrotated wallpaper to rotated app, I think we want
a crossfade in this scenario. To this end introduce and use a new @hide constant
ROTATION_ANIMATION_SEAMLESS which qualifies for seamless but falls back
to CROSSFADE if seamless can't occur.

Bug: 30171992
Change-Id: If1945b17b5159be4cd5ba0b139d6bea9f7fcca33
2016-08-15 12:25:37 -07:00
Julius D'souza
0903c5fe7a DO NOT MERGE ANYWHERE: Make slow brightness display ramp rate configurable.
am: 13edf0a70b  -s ours

Change-Id: I7c02cea3ea0008f3f112063b6a06d08049c4998b
2016-08-15 19:25:33 +00:00
Julius D'souza
13edf0a70b DO NOT MERGE ANYWHERE: Make slow brightness display ramp rate configurable.
Add overlay setting with current default value.

Bug: 30085530
Change-Id: Ib5d2448b88cfb66a97febcdf06e2118c84b16cd0
2016-08-15 12:15:29 -07:00
Chong Zhang
f96cb3c34d Revert "DO NOT MERGE -- Revert the following two commits as they're causing flickering"
This reverts commit 44bd57ee25.

bug: 30831873
bug: 30790402
2016-08-15 19:09:57 +00:00
Chong Zhang
1fb9466c1d Merge "Allow performShowLocked when transition animation started" into nyc-mr1-dev 2016-08-15 19:04:48 +00:00
Selim Cinek
45d2ff9b6a Merge "Fixed that HUNs wouldn't show when the keyguard is occluded" into nyc-mr1-dev 2016-08-15 18:35:59 +00:00
Jason Monk
f9c6026a7d QS Footer: Don't update icon from wrong thread.
Change-Id: I25191818579fac57236b67d7291b6ee00dd838b5
Fixes: 30748384
2016-08-15 13:57:43 -04:00
Tyler Gunn
04ce757860 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
2016-08-15 10:56:12 -07:00
Chong Zhang
83caa366f4 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
2016-08-15 17:52:59 +00:00
David Gross
375ac04044 Merge "Update RenderScript docs: reduction, other API 23/24 changes, cleanup." into nyc-dev
am: 8cb4ca439e

Change-Id: I1507e8d3d8bf588ea48e17b3d93ced19228d5d21
2016-08-15 17:23:17 +00:00
David Gross
1f5b0ea408 Update RenderScript docs: reduction, other API 23/24 changes, cleanup.
am: b50e856fc7

Change-Id: I37cf0227be2a32261b44f19f6d45a5ea4ff6f624
2016-08-15 17:23:14 +00:00
David Gross
8cb4ca439e Merge "Update RenderScript docs: reduction, other API 23/24 changes, cleanup." into nyc-dev 2016-08-15 17:17:02 +00:00
Sudheer Shanka
a3af5c6207 DO NOT MERGE: Clean up when recycling a pid with a pending launch
Fix for accidental launch of a broadcast receiver in an
incorrect app instance.

Bug: 30202481
Change-Id: I84b74edc29ca3fb88048b44af682ecbeb176b774
2016-08-12 18:49:56 -07:00
Amith Yamasani
b02862c2cf DO NOT MERGE: Clean up when recycling a pid with a pending launch
Fix for accidental launch of a broadcast receiver in an
incorrect app instance.

Bug: 30202481
Change-Id: I8ec8f19c633f3aec8da084dab5fd5b312443336f
2016-08-12 18:32:42 -07:00
Amith Yamasani
a92810a189 DO NOT MERGE: Clean up when recycling a pid with a pending launch
Fix for accidental launch of a broadcast receiver in an
incorrect app instance.

Bug: 30202481
Change-Id: I8ec8f19c633f3aec8da084dab5fd5b312443336f
2016-08-12 18:28:45 -07:00
Amith Yamasani
d1eeb5b7b4 DO NOT MERGE: Clean up when recycling a pid with a pending launch
Fix for accidental launch of a broadcast receiver in an
incorrect app instance.

Bug: 30202481
Change-Id: I8ec8f19c633f3aec8da084dab5fd5b312443336f
2016-08-12 18:16:38 -07:00
Amith Yamasani
55eacb9441 DO NOT MERGE: Clean up when recycling a pid with a pending launch
Fix for accidental launch of a broadcast receiver in an
incorrect app instance.

Bug: 30202481
Change-Id: I8ec8f19c633f3aec8da084dab5fd5b312443336f
2016-08-12 18:07:51 -07:00
TreeHugger Robot
8aacc3cf98 Merge "SamplingTimer: Fix issue with summary recording too much" into nyc-mr1-dev 2016-08-13 00:40:53 +00:00
TreeHugger Robot
6ae8693cd7 Merge "Remember all wallpapers' backup-allow state" into nyc-mr1-dev 2016-08-13 00:24:11 +00:00
TreeHugger Robot
6912cf9b30 Merge "Fix LockscreenWallpaper jank" into nyc-mr1-dev 2016-08-13 00:13:00 +00:00
Dianne Hackborn
c1b607df71 Docs only: N is no longer a shrug.
Change-Id: I6fa8f77d93f53b7969ec6aab4c7e9ca27d17d01f
2016-08-12 17:01:35 -07:00
TreeHugger Robot
64d7220153 Merge "Copy exiting app token list while stepping animation." into nyc-mr1-dev 2016-08-12 23:48:14 +00:00
Mark Lu
fa43485910 docs: fix broken links in Activity reference
Bug: 30142414
Bug: 30837469
Change-Id: If370e49fee32df41b7dab93d6c89c79a9835dabb
2016-08-12 16:05:17 -07:00
Adam Lesinski
9edd6be542 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
2016-08-12 15:49:44 -07:00
Mark Lu
9f52b7a4a8 docs: fix link in Loader reference page
Bug: 29764129
Change-Id: I5ca881bb30adbbaf65ba37b1cf63903a4fc5600e
2016-08-12 15:48:05 -07:00
Adrian Roos
d866b02d54 Fix LockscreenWallpaper jank
Change-Id: I3f11d26eaa51eb509284fb1bb25eab03a4f243a0
Fixes: 30493315
2016-08-12 15:31:24 -07:00
Richard Uhler
d42fe85bc9 Fix incorrect notification about running out of storage space.
Previously, if there were problems generating the boot image, we would
display a notification saying the device is out of storage space,
regardless of whether the device was actually out of storage.

This change makes it so we only display the notification if the device
has less than 250MB when the boot image is missing.

Test: Verify the following sequence does not display the notification:
$ adb shell stop
$ adb shell rm /data/dalvik-cache/arm/*.oat
$ adb shell setprop dalvik.vm.extra-opts -Xnoimage-dex2oat
$ adb shell start

Test: Verify the following sequence does display the notification:
$ adb shell stop
$ adb shell rm /data/dalvik-cache/arm/*.oat
$ adb shell setprop dalvik.vm.extra-opts -Xnoimage-dex2oat
$ adb shell setprop debug.freemem 104857600
$ adb shell start

Bug: 28931369
Change-Id: Ia2291bf674af063a55f339d2a0411e670ca16ba2
2016-08-12 14:38:45 -07:00
Robert Carr
46831fa9ff 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
2016-08-12 14:36:04 -07:00
Hui Shu
caef4afe42 Merge "Fix documentation." into nyc-mr1-dev 2016-08-12 21:24:44 +00:00
Tyler Gunn
86d5c3fcde Support auto-downgrade to audio when data disabled.
Add carrier config option to determine if carrier supports downgrade to
audio.
Add new telephony Connection events to signal Dialer that there was a
downgrade to audio, and why.

Bug: 30702393
Change-Id: Idd5272aafd71601e92291644640f52afe200208e
2016-08-12 14:14:13 -07:00
Christopher Tate
c613c63096 Remember all wallpapers' backup-allow state
...not just system wallpapers.

Bug 30751829

Change-Id: If9f5df33e587e31080a7e65b1cbcae03f9a39f3c
2016-08-12 14:13:02 -07:00
Phil Weaver
b0d9af4e2b Limit capabilities of a11y gesture dispatch.
am: 157f416a35

Change-Id: I260318856e390a585b0fdf404a10916f2ee5af82
2016-08-12 21:05:15 +00:00
Sriram Viswanathan
e45311adc9 Replace android auto assets with the latest
The latest assets which matches up with that in the App.
Also the matches up with sizes with icons the nexus launcher.

BUG:30388078

Change-Id: Iffac75b86c3d736392fa7a1809ffdf921d610b3d
2016-08-12 13:51:31 -07:00
TreeHugger Robot
1ee928a62a Merge "Assist: Allow disabling the disclosure animation" into nyc-mr1-dev 2016-08-12 20:28:12 +00:00
David Christie
41a0dd41f1 Fix vulnerability where large GPS XTRA data can be injected. -Can potentially crash system with OOM. Bug: 29555864 am: dde12c6923 am: 3462e52676 am: 5a6b11114a am: 655361b2b1
am: 62783bde30

Change-Id: I466311d2aa3983e690778fb1084f93eab7e8ae7d
2016-08-12 20:17:03 +00:00
David Christie
1081a15fd4 resolve merge conflicts of b4a5615 to lmp-dev am: 288166cbb2
am: b7f8b59e24

Change-Id: I26eda3647447490d58777d9fd8b2055ab8574e5e
2016-08-12 20:17:00 +00:00
Alison Cichowlas
c7d6af6cd0 Merge "Add restart to GlobalActions." into nyc-mr1-dev 2016-08-12 20:12:38 +00:00
TreeHugger Robot
54250f58b2 Merge "Add property to force restorecon to run." into nyc-mr1-dev 2016-08-12 20:12:17 +00:00
David Christie
62783bde30 Fix vulnerability where large GPS XTRA data can be injected. -Can potentially crash system with OOM. Bug: 29555864 am: dde12c6923 am: 3462e52676 am: 5a6b11114a
am: 655361b2b1

Change-Id: I39e11f906f059cf8bb1ea861490a0e9051d11bed
2016-08-12 20:09:56 +00:00
David Christie
b7f8b59e24 resolve merge conflicts of b4a5615 to lmp-dev
am: 288166cbb2

Change-Id: Ie8927cbe2b224241f8d896487ff17117c15c0255
2016-08-12 20:09:54 +00:00
Mark Lu
5dabf06ae5 docs: rewrite one attribute description in R.attr
Bug: 6440151
Change-Id: Ia5a28b33e40ad3de8320bb8e2c314f6e49fe4edd
2016-08-12 13:05:25 -07:00
Mark Lu
53415ff24e docs: Fix typo and broken link in AsyncTask.java
Bug: 29323321
Change-Id: Ie3a62480bfee881083b5d266cbc1481fb148d237
2016-08-12 13:02:32 -07:00
Rob Carr
4a86fbc4d9 Merge "Fix NPE in deferToPendingTransaction." into nyc-mr1-dev 2016-08-12 20:00:07 +00:00
David Christie
655361b2b1 Fix vulnerability where large GPS XTRA data can be injected. -Can potentially crash system with OOM. Bug: 29555864 am: dde12c6923 am: 3462e52676
am: 5a6b11114a

Change-Id: Ie2c2290014481772cf10c5f9e4fc565bf06e74a3
2016-08-12 19:56:57 +00:00
Chong Zhang
b6ee436eee Merge "DO NO MERGE -- Revert the following two commits as they're causing flickering" into nyc-mr1-dev 2016-08-12 19:44:12 +00:00
Chong Zhang
44bd57ee25 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.
2016-08-12 19:40:28 +00:00
Rob Carr
60ce77aa38 Merge "Account for scaling of surfaceInset area in magnification." into nyc-mr1-dev 2016-08-12 19:37:16 +00:00
Adrian Roos
2335bd6787 Assist: Allow disabling the disclosure animation
Change-Id: I6e7ed00f066fda7cc268119e7aa4133010aa69c1
Fixes: 30809067
2016-08-12 12:04:53 -07:00
Jeff Sharkey
6da39a4406 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
2016-08-12 18:34:09 +00:00
David Gross
b50e856fc7 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 05eef3040e)
2016-08-12 11:06:29 -07:00