242229 Commits

Author SHA1 Message Date
Andrew Solovay
2748f89096 docs: Fixing redirects for DAC-on-devsite
On Devsite, the redirect parser doesn't understand regular
expressions, which breaks ~ 10% of our existing redirects; fixing
them now. Also fixing a few other redirect-related bugs while I've got
the hood open.

See first comment for doc stage location.

bug: 28447522
bug: 28467616

Change-Id: I5f315fd54cb9353a56674b5aac4dcd53875263c9
2016-05-02 16:49:21 -07:00
Winson
aa0dea7a4a Pipe the dismiss button logic through the touch handler.
- This ensures that we perform the same dismiss animation when 
  dismissing via the button or via swipe.

Bug: 28443410
Change-Id: I309c38253e9c2dc78a5882dc663eec84a11619dd
2016-05-02 16:40:12 -07:00
Winson
95ee8736da Skip scroll-to animation when undocking and there are no tasks.
Bug: 28367678
Change-Id: Iafd064196cae43f60ff6d356843d1e431d15daea
2016-05-02 16:40:07 -07:00
Winson
9832f8f463 Fixing issue with docking being disallowed for secondary user.
- When a task is docked, the context is not correct for the given user.

Bug: 28195260
Change-Id: I59f73caf818d294c146d215c2bd31dbe1d4c7c5a
2016-05-02 16:40:00 -07:00
Chong Zhang
d127c6d461 Fix bad animation when pressing Home with translucent activity
Force a setAppVisibility if the previous app was translucent, so that
the resumed app is added to the opening app list. Otherwise opening
app list is empty and the transition can't be set up correctly.

bug: 28463843
Change-Id: I7f8e28d0f804c799a429743df6fc501c06d62f21
2016-05-02 16:38:33 -07:00
Philip P. Moltmann
f8a765bce2 Merge "Check if records is inited before removing items" into nyc-dev 2016-05-02 23:32:39 +00:00
John Reck
ded1d3c45b Remove high-overhead low-signal trace section
Bug: 28519669

This trace tag makes shadows look way more expensive
than they actually are, particularly troublesome
when tracing things with large number of shadows.

Change-Id: Ib6558b1388edd4b006ec15127470cb9ab563f954
2016-05-02 16:24:28 -07:00
TreeHugger Robot
6a3948bc12 Merge "use 'int' for min sdk version" into nyc-dev 2016-05-02 23:19:44 +00:00
Ben Lin
d88030fe9e Merge "Add ability to rename a downloaded file." into nyc-dev 2016-05-02 22:54:23 +00:00
Todd Kennedy
5a7abbc3a2 Merge "use prebuilt for the shim" into nyc-dev 2016-05-02 22:49:55 +00:00
Jaewan Kim
28194523a4 Merge "PIP: Show background scrim for PIP controls in Recents" into nyc-dev 2016-05-02 22:34:57 +00:00
Doris Liu
f8d131cc8d Count native allocation for VD against Java heap
There are two parts to VD's native allocation:
1) VD's internal data structure (i.e. groups, paths, etc that make
   up of the VD tree). This structure can change, when a VD is used
   to load a different drawable resource.
2) Two bitmap caches, not both of which will necessarily be allocated
   The size of the bitmap cache depends on canvas matrix and drawable
   bounds, and therefore can often change.

We need to count the native allocation from the above against Java heap.

Bug: 26269056
Change-Id: If833aedcf7f3efe00ea73a41ddccb1b48066ffd8
2016-05-02 15:34:40 -07:00
Jaewan Kim
bfa0f48407 Merge "Fix crash when device doesn't support picture-in-picture" into nyc-dev 2016-05-02 22:27:54 +00:00
TreeHugger Robot
33f39a96cb Merge "Fixed a bug where the image and the text were overlapping" into nyc-dev 2016-05-02 22:26:40 +00:00
Jeff Sharkey
599de361cb Merge "Apply non-FBE migration early during boot." into nyc-dev 2016-05-02 22:23:27 +00:00
Eino-Ville Talvala
04a935162c ImageReader/Writer: Only register 1 buffer for native allocation
Registering with the maximum potential memory made by visible by an
ImageReader/Writer can cause the VM to try to heavily garbage-collect
the rest of the application. This can have significant impact on camera
applications, since they often have large ImageReader/Writer queues.

Bug: 28454727
Change-Id: I2ba43635f93da66655be024165a15631b3b421d3
2016-05-02 15:20:31 -07:00
Jaewan Kim
d98dcab679 Fix crash when device doesn't support picture-in-picture
Bug: 28512987
Change-Id: Ic8287d70fed491d7493d443ba7d9633b7d9aaea9
2016-05-03 07:13:28 +09:00
Eric Schmidt
186fada46b docs: Added virtual files to preview doc
Bug: 28297470
Change-Id: I393ba4083ce5d2ca43a815e61e962761b08a8194
2016-05-02 22:13:01 +00:00
Jeff Sharkey
f10640adef Merge "When fork() fails, clean up data structures." into nyc-dev 2016-05-02 22:12:34 +00:00
TreeHugger Robot
dba83f1289 Merge "Yell when no home app was found." into nyc-dev 2016-05-02 22:11:33 +00:00
Todd Kennedy
6e2e7f585b use 'int' for min sdk version
per api council

Change-Id: Id3c1191534f61a0d511a6e9932f50ee613830999
2016-05-02 15:07:32 -07:00
Felipe Leme
a110eec77f Multi-user Data Saver fixes:
- When adding a new user, adds its default whitelist apps.
- When removing an user, clears its revoked default whitelist apps.

BUG: 28451218

Change-Id: Ic30a3d6d30c7575620edd3ad32c3221203626f8d
2016-05-02 15:03:20 -07:00
Jeff Sharkey
f0143cc1c6 Apply non-FBE migration early during boot.
On non-FBE devices, we offer to migrate CE/DE storage of certain
system apps during boot.  However, if this migration happens after
app code has started to run, we end up clobbering open files such
as databases.

The right way to solve this is to apply all migration early during
boot (in the PMS constructor) before any app code can start.

Bug: 28512897, 28525109
Change-Id: I17eb9a09e5862d873b86c05ce35874a34386e433
2016-05-02 15:59:12 -06:00
Jaewan Kim
dded3aa8bd PIP: Show background scrim for PIP controls in Recents
Scrim will fade in after the PIP control's focus losing animation,
and will be gone immediately when PIP control gets focus.

Bug: 28041690
Change-Id: Ibb7fa0ce15ba1af13781a1bd5e87609fefa95cc0
2016-05-03 06:55:27 +09:00
Cheryl Potter
582666365b docs: Polish Android Monitor pages b/26279420 am: b843741489 -s ours am: 0f57c62e84 am: 8c3ab87f81
am: 5a164da26c

* commit '5a164da26cb016f43ca6e97197c6db0570747e5b':
  docs: Polish Android Monitor pages b/26279420

Change-Id: I88f45803148a8a3523bb3c1dfbfb3f3e32ce5313
2016-05-02 21:48:16 +00:00
Cheryl Potter
5a164da26c docs: Polish Android Monitor pages b/26279420 am: b843741489 -s ours am: 0f57c62e84
am: 8c3ab87f81

* commit '8c3ab87f813873c388d8fa04e0e5af972ef4d787':
  docs: Polish Android Monitor pages b/26279420

Change-Id: I51b4d802ef422ba1100704018e4a6525ea85517d
2016-05-02 21:42:13 +00:00
Cheryl Potter
8c3ab87f81 docs: Polish Android Monitor pages b/26279420 am: b843741489 -s ours
am: 0f57c62e84

* commit '0f57c62e8475a85467c5e7d6b1eab2ba834625ad':
  docs: Polish Android Monitor pages b/26279420

Change-Id: I6a926f1209d150c95e17ee0f9281dba8c1cbe985
2016-05-02 21:37:12 +00:00
Amit Mahajan
fc6a3ad85b Merge "Change to return phone count as 0 if voice, sms, data not supported." into nyc-dev 2016-05-02 21:37:07 +00:00
Android Build Merger (Role)
c99febc3e3 Merge "Backport ChooserTarget package source check from N am: 82b9565bd1 am: 6d5f80d13b am: 7ac638702d am: e7e49b48b2" into nyc-dev 2016-05-02 21:32:34 +00:00
Adam Powell
ddeb6dc42f Backport ChooserTarget package source check from N am: 82b9565bd1 am: 6d5f80d13b am: 7ac638702d
am: e7e49b48b2

* commit 'e7e49b48b295b4f81ad8a9f5c1d9f16370b06437':
  Backport ChooserTarget package source check from N

Change-Id: I8f735dc92aafba50b3724a1c53390333735012d5
2016-05-02 21:32:08 +00:00
Cheryl Potter
0f57c62e84 docs: Polish Android Monitor pages b/26279420
am: b843741489  -s ours

* commit 'b843741489fea6f489023ed7a2ce15d3e530e78c':
  docs: Polish Android Monitor pages b/26279420

Change-Id: If41fc379f585c1669b3823e217d6214ee70f5964
2016-05-02 21:31:27 +00:00
Glenn Kasten
2baa1e9ba1 Merge "Improve documentation for AudioTrack buffer sizes" into nyc-dev 2016-05-02 21:28:38 +00:00
Adam Powell
e7e49b48b2 Backport ChooserTarget package source check from N am: 82b9565bd1 am: 6d5f80d13b
am: 7ac638702d

* commit '7ac638702de3b8af0a02db764adb95f2d10d1524':
  Backport ChooserTarget package source check from N

Change-Id: I9d936089af04cc32a54245d91c17a23569c5fd1c
2016-05-02 21:26:29 +00:00
Todd Kennedy
20047d74d5 use prebuilt for the shim
The testing shim should be included as a prebuilt. This allows
us to destroy the signing key. This means that the shim can never
be upgraded in the field; aside from its intended purpose in
a CTS test.

Bug: 28398205
Change-Id: I033835d227416ff8aa6602abfc8b977c74cb666d
2016-05-02 14:24:00 -07:00
Adam Powell
7ac638702d Backport ChooserTarget package source check from N am: 82b9565bd1
am: 6d5f80d13b

* commit '6d5f80d13b06d439db08fcd5d25490edb322f923':
  Backport ChooserTarget package source check from N

Change-Id: Iec7902498e2cfe53ce16dc9faf2d91340f416799
2016-05-02 21:21:11 +00:00
Adam Powell
6d5f80d13b Backport ChooserTarget package source check from N
am: 82b9565bd1

* commit '82b9565bd13e2c5dac20b3221b7be28c5afe57ea':
  Backport ChooserTarget package source check from N

Change-Id: Ic7e4a8e80829ccb0b2f60c572eea15d18d6658ec
2016-05-02 21:15:05 +00:00
Scott Main
388d575893 Merge "resolve merge conflicts of 7829131 to nyc-dev" into nyc-dev 2016-05-02 21:11:30 +00:00
smain@google.com
0f3e895661 resolve merge conflicts of 7829131 to nyc-dev
Change-Id: I9e995ea0b6d7a8758ba37f171240b53182a31fed
2016-05-02 14:09:52 -07:00
TreeHugger Robot
b420612696 Merge "Use existing bounds when pinning an activity if there is already pinned stack" into nyc-dev 2016-05-02 21:06:26 +00:00
Adrian Roos
9cb7652fb1 Merge "Make sure all Notification actions are shown" into nyc-dev 2016-05-02 21:04:33 +00:00
Selim Cinek
37878683ff Fixed a bug where the image and the text were overlapping
If a notification was updated with an image, the layout could
stay the old one.

Change-Id: Ic012193e79acf14551801e5e2b704ab9519b9c50
Fixes: 28315999
2016-05-02 13:52:29 -07:00
Cheryl Potter
b843741489 docs: Polish Android Monitor pages
b/26279420

(cherry picked from commit 5fc7099e1ed744458d33dca0b1f56834c92fce6e)

Change-Id: Ie24e6fbb1f82e84bf382b440f4eb533ad1a473a5
2016-05-02 13:41:27 -07:00
smain@google.com
251a0650a8 delete outdated translated versions of sdk/tools pages
bug: 28425669
bug: 28471385

Change-Id: Id81461f30f638734470ab9880509e76e4df68ce1
2016-05-02 13:40:45 -07:00
smain@google.com
782913190b Delete all of the tools/ directory, but save the adk files by moving them up. Redirects for all the tools/ files are already in Piper\'s site-android/en/_redirects.yaml file. The new adk redirects are in this cl: https://critique.corp.google.com/#review/121302608 am: 41f7ff9150
am: c10ce54761

* commit 'c10ce54761f4bb1a887561af15a51625c902049b':
  Delete all of the tools/ directory, but save the adk files by moving them up. Redirects for all the tools/ files are already in Piper's site-android/en/_redirects.yaml file. The new adk redirects are in this cl: https://critique.corp.google.com/#review/121302608

Change-Id: Ia8bc55aab35cdfadd7b5cecf435e68b4b3b7ba60
2016-05-02 20:38:41 +00:00
Phil Weaver
7cae9f7bbc Merge "Re-enable accessibility when UiAutomation closed." into nyc-dev 2016-05-02 20:38:40 +00:00
Paul Lawrence
65e654a1a1 Merge "Don't enforce this API - it's not sensitive" into nyc-dev 2016-05-02 20:35:42 +00:00
smain@google.com
c10ce54761 Delete all of the tools/ directory, but save the adk files by moving them up. Redirects for all the tools/ files are already in Piper\'s site-android/en/_redirects.yaml file. The new adk redirects are in this cl: https://critique.corp.google.com/#review/121302608
am: 41f7ff9150

* commit '41f7ff915033ebc8b2210e306cba99c4173a2285':
  Delete all of the tools/ directory, but save the adk files by moving them up. Redirects for all the tools/ files are already in Piper's site-android/en/_redirects.yaml file. The new adk redirects are in this cl: https://critique.corp.google.com/#review/121302608

Change-Id: Ib2c3b9bfe2ac1899005c2ef00c3f73dae471032b
2016-05-02 20:34:13 +00:00
Wale Ogunwale
06579d63a8 Fixed some issues with resuming already resumed activity
- Don’t adjust focus stack when a stack is left empty because we moved
the last task in it to the stack that will be the new top (focused).
Focus can be temporarily adjusted to another stack which we don’t want.
- Protect against trying to resume an already resumed activity in
ASS.resumeFocusedStackTopActivityLocked. This will just cause a crash
on the client side.
- In ASS.moveTasksToFullscreenStackLocked defer resume activity call
until we are done moving all the tasks to the new stack.
- In ASS.moveTaskToStackUncheckedLocked check top running activity
instead of just the top activity when we are trying to determine if
the task as focus and resumed. It is possible the resumed activity
in the task isn’t the top most because the top most is still
initializing or going away.

Bug: 28219871
Change-Id: I8c1113503f6f83d39983375a4f92155ddc04f20f
2016-05-02 13:28:33 -07:00
Paul Lawrence
895504e557 Don't enforce this API - it's not sensitive
Also it breaks device manager

b/28512889

Change-Id: I0006461c6a76bc1b7d19f9b07bec35b6807a4f96
2016-05-02 13:25:33 -07:00
Jeff Sharkey
65790f215e Yell when no home app was found.
If we didn't find a home app, the boot just appears to be wedged
and it's hard to investigate what the root-cause is.  Let's log to
make it more obvious.

Bug: 28465914
Change-Id: I9697af83eb27efb54f1f703506d4f148c96425b0
2016-05-02 14:22:22 -06:00