OSDN Git Service

android-x86/frameworks-base.git
7 years agoMerge "MediaPlayer: add 2 more info notifications for playback error" into oc-dev
Wei Jia [Sat, 8 Apr 2017 00:33:57 +0000 (00:33 +0000)]
Merge "MediaPlayer: add 2 more info notifications for playback error" into oc-dev
am: e79081aeaa

Change-Id: Ia96dc51f195e6bb42fb64acca3b33225eff01cfc

7 years agoMerge "MediaPlayer: add 2 more info notifications for playback error" into oc-dev
TreeHugger Robot [Sat, 8 Apr 2017 00:24:08 +0000 (00:24 +0000)]
Merge "MediaPlayer: add 2 more info notifications for playback error" into oc-dev

7 years agoMerge "Do not make strong reference to Resources." into oc-dev
Bryce Lee [Sat, 8 Apr 2017 00:03:05 +0000 (00:03 +0000)]
Merge "Do not make strong reference to Resources." into oc-dev
am: 6f36255adc

Change-Id: I39c456cfb25d030a482ff4c17760b55409f58b96

7 years agoMerge "Autofill Partitioning: support multiple SaveInfos." into oc-dev
Felipe Leme [Sat, 8 Apr 2017 00:01:51 +0000 (00:01 +0000)]
Merge "Autofill Partitioning: support multiple SaveInfos." into oc-dev
am: 5c8d88e855

Change-Id: Ia363ebbbf73514936776b7b0a9ca7ba0f65bf1bc

7 years agoMerge "Make a11y node info parceling more robust" into nyc-dev am: ce5c8cb6b8 am...
Phil Weaver [Sat, 8 Apr 2017 00:00:43 +0000 (00:00 +0000)]
Merge "Make a11y node info parceling more robust" into nyc-dev am: ce5c8cb6b8 am: 3241198caa am: 9ff56373ff am: 8ebb1df537 am: 04520478fb
am: 549694b096

Change-Id: I208845530ca784f4472d245e0ccab9338f6d4069

7 years agoMerge "Do not make strong reference to Resources." into oc-dev
TreeHugger Robot [Fri, 7 Apr 2017 23:57:23 +0000 (23:57 +0000)]
Merge "Do not make strong reference to Resources." into oc-dev

7 years agoMerge "Make a11y node info parceling more robust" into nyc-dev am: ce5c8cb6b8 am...
Phil Weaver [Fri, 7 Apr 2017 23:55:41 +0000 (23:55 +0000)]
Merge "Make a11y node info parceling more robust" into nyc-dev am: ce5c8cb6b8 am: 3241198caa am: 9ff56373ff am: 8ebb1df537 am: 04520478fb
am: 643d02bde0

Change-Id: Ie1eda87359fbf6ddaf87a88cf28718215c03f6dd

7 years agoMerge "Autofill Partitioning: support multiple SaveInfos." into oc-dev
TreeHugger Robot [Fri, 7 Apr 2017 23:52:05 +0000 (23:52 +0000)]
Merge "Autofill Partitioning: support multiple SaveInfos." into oc-dev

7 years agoMake a11y node info parceling more robust am: d0e54c1c09 am: d87b12a4df am: a0f874d5c...
Phil Weaver [Fri, 7 Apr 2017 23:50:32 +0000 (23:50 +0000)]
Make a11y node info parceling more robust am: d0e54c1c09 am: d87b12a4df am: a0f874d5c1 am: c30868369c am: 4c898e40ef am: b35d6eadf3 am: 576768a022 am: 78aa850127 am: 582dc7eb8d
am: 292af1c8e8

Change-Id: I982a9cc7e5b8938b28be4477584c02797ef36dd5

7 years agoMerge "Make a11y node info parceling more robust" into nyc-dev am: ce5c8cb6b8 am...
Phil Weaver [Fri, 7 Apr 2017 23:49:19 +0000 (23:49 +0000)]
Merge "Make a11y node info parceling more robust" into nyc-dev am: ce5c8cb6b8 am: 3241198caa am: 9ff56373ff am: 8ebb1df537
am: 04520478fb

Change-Id: Ib2f1ddee4a1453b07dbde3282fab5de44be01891

7 years agoMake a11y node info parceling more robust am: d0e54c1c09 am: d87b12a4df am: a0f874d5c...
Phil Weaver [Fri, 7 Apr 2017 23:47:12 +0000 (23:47 +0000)]
Make a11y node info parceling more robust am: d0e54c1c09 am: d87b12a4df am: a0f874d5c1 am: c30868369c am: 4c898e40ef am: b35d6eadf3 am: 576768a022 am: 78aa850127 am: 582dc7eb8d
am: 97347441ea

Change-Id: I00048504492ff5d5f8b8956a75ac31d5e44ad8f2

7 years agoMerge "Make a11y node info parceling more robust" into nyc-dev am: ce5c8cb6b8 am...
Phil Weaver [Fri, 7 Apr 2017 23:47:03 +0000 (23:47 +0000)]
Merge "Make a11y node info parceling more robust" into nyc-dev am: ce5c8cb6b8 am: 3241198caa am: 9ff56373ff am: 8ebb1df537
am: 04520478fb

Change-Id: I12ead2e4ef5b01c37e5c7583e7f188f08ce3ca3c

7 years agoMake a11y node info parceling more robust am: d0e54c1c09 am: d87b12a4df am: a0f874d5c...
Phil Weaver [Fri, 7 Apr 2017 23:40:40 +0000 (23:40 +0000)]
Make a11y node info parceling more robust am: d0e54c1c09 am: d87b12a4df am: a0f874d5c1 am: c30868369c am: 4c898e40ef am: b35d6eadf3 am: 576768a022 am: 78aa850127
am: 582dc7eb8d

Change-Id: I7acac13ebb9b6c41feea6c2edc1f37231973d9c7

7 years agoMake a11y node info parceling more robust am: d0e54c1c09 am: d87b12a4df am: a0f874d5c...
Phil Weaver [Fri, 7 Apr 2017 23:40:03 +0000 (23:40 +0000)]
Make a11y node info parceling more robust am: d0e54c1c09 am: d87b12a4df am: a0f874d5c1 am: c30868369c am: 4c898e40ef am: b35d6eadf3 am: 576768a022 am: 78aa850127
am: 582dc7eb8d

Change-Id: Icab9eec928b57d957eb6c0251948d008916b5491

7 years agoMerge "Make a11y node info parceling more robust" into nyc-dev am: ce5c8cb6b8 am...
Phil Weaver [Fri, 7 Apr 2017 23:39:58 +0000 (23:39 +0000)]
Merge "Make a11y node info parceling more robust" into nyc-dev am: ce5c8cb6b8 am: 3241198caa am: 9ff56373ff
am: 8ebb1df537

Change-Id: Idcb33dc49c7f93ebbac86c7f8d99c33ecb296cdf

7 years agoMake a11y node info parceling more robust am: d0e54c1c09 am: d87b12a4df am: a0f874d5c...
Phil Weaver [Fri, 7 Apr 2017 23:32:32 +0000 (23:32 +0000)]
Make a11y node info parceling more robust am: d0e54c1c09 am: d87b12a4df am: a0f874d5c1 am: c30868369c am: 4c898e40ef am: b35d6eadf3 am: 576768a022
am: 78aa850127

Change-Id: Ib44e1d477230767f5e03f63cb96a342a4bd929fb

7 years agoMerge "Make a11y node info parceling more robust" into nyc-dev am: ce5c8cb6b8 am...
Phil Weaver [Fri, 7 Apr 2017 23:32:28 +0000 (23:32 +0000)]
Merge "Make a11y node info parceling more robust" into nyc-dev am: ce5c8cb6b8 am: 3241198caa
am: 9ff56373ff

Change-Id: I53855b4dc3bba60226751fdaaaa722636c226486

7 years agoMerge "Make a11y node info parceling more robust" into nyc-dev am: ce5c8cb6b8
Phil Weaver [Fri, 7 Apr 2017 23:25:03 +0000 (23:25 +0000)]
Merge "Make a11y node info parceling more robust" into nyc-dev am: ce5c8cb6b8
am: 3241198caa

Change-Id: I370bd8804cd24fb3b67160da1e76084abce525cf

7 years agoMake a11y node info parceling more robust am: d0e54c1c09 am: d87b12a4df am: a0f874d5c...
Phil Weaver [Fri, 7 Apr 2017 23:24:59 +0000 (23:24 +0000)]
Make a11y node info parceling more robust am: d0e54c1c09 am: d87b12a4df am: a0f874d5c1 am: c30868369c am: 4c898e40ef am: b35d6eadf3
am: 576768a022

Change-Id: If36bfc0a6ec317b6d46a0de7fe24a8be38ef59c7

7 years agoMerge "Make a11y node info parceling more robust am: 487d869733 am: aa2da19dc6" into...
Android Build Merger (Role) [Fri, 7 Apr 2017 23:18:11 +0000 (23:18 +0000)]
Merge "Make a11y node info parceling more robust am: 487d869733 am: aa2da19dc6" into oc-dev-plus-aosp

7 years agoMake a11y node info parceling more robust am: 487d869733
Phil Weaver [Fri, 7 Apr 2017 23:17:32 +0000 (23:17 +0000)]
Make a11y node info parceling more robust am: 487d869733
am: aa2da19dc6

Change-Id: I9d21c5a5975cbf6d3e5096124e29d1e8b03ddc03

7 years agoMake a11y node info parceling more robust am: d0e54c1c09 am: d87b12a4df am: a0f874d5c...
Phil Weaver [Fri, 7 Apr 2017 23:17:08 +0000 (23:17 +0000)]
Make a11y node info parceling more robust am: d0e54c1c09 am: d87b12a4df am: a0f874d5c1 am: c30868369c am: 4c898e40ef
am: b35d6eadf3

Change-Id: I460b2e5df5cc1946eec4e9366e22c5de188642c9

7 years agoMerge "Make a11y node info parceling more robust" into nyc-dev
Phil Weaver [Fri, 7 Apr 2017 23:17:02 +0000 (23:17 +0000)]
Merge "Make a11y node info parceling more robust" into nyc-dev
am: ce5c8cb6b8

Change-Id: I6cd7aa39d267bbecbbed54f564dc90b520fe5773

7 years agoMake a11y node info parceling more robust am: 487d869733
Phil Weaver [Fri, 7 Apr 2017 23:16:55 +0000 (23:16 +0000)]
Make a11y node info parceling more robust am: 487d869733
am: 27e1f88a28

Change-Id: Ic602da1e45e4e906d9e3475a229886913e5dec16

7 years agoMerge "Make a11y node info parceling more robust" into nyc-dev
Phil Weaver [Fri, 7 Apr 2017 23:10:27 +0000 (23:10 +0000)]
Merge "Make a11y node info parceling more robust" into nyc-dev

7 years agoMake a11y node info parceling more robust am: d0e54c1c09 am: d87b12a4df am: a0f874d5c...
Phil Weaver [Fri, 7 Apr 2017 23:09:35 +0000 (23:09 +0000)]
Make a11y node info parceling more robust am: d0e54c1c09 am: d87b12a4df am: a0f874d5c1 am: c30868369c
am: 4c898e40ef

Change-Id: Icdb456c12bf0e0d3675ab15fa0b82b482ff4ddeb

7 years agoMake a11y node info parceling more robust
Phil Weaver [Fri, 7 Apr 2017 23:09:30 +0000 (23:09 +0000)]
Make a11y node info parceling more robust
am: 487d869733

Change-Id: I5c85f0dd279f8263aad5b76cbf51dd9d4e0ef549

7 years agoMake a11y node info parceling more robust
Phil Weaver [Fri, 7 Apr 2017 23:09:28 +0000 (23:09 +0000)]
Make a11y node info parceling more robust
am: 487d869733

Change-Id: I57d8feb17000692b6b93d976de43362ce3a34001

7 years agoMake a11y node info parceling more robust am: d0e54c1c09 am: d87b12a4df am: a0f874d5c1
Phil Weaver [Fri, 7 Apr 2017 23:02:10 +0000 (23:02 +0000)]
Make a11y node info parceling more robust am: d0e54c1c09 am: d87b12a4df am: a0f874d5c1
am: c30868369c

Change-Id: If1cfc920db5aea27397a8f79125db944d5c4580b

7 years agoMake a11y node info parceling more robust am: d0e54c1c09 am: d87b12a4df
Phil Weaver [Fri, 7 Apr 2017 22:53:58 +0000 (22:53 +0000)]
Make a11y node info parceling more robust am: d0e54c1c09 am: d87b12a4df
am: a0f874d5c1

Change-Id: I2bc5c091c1c685da2be951e4294483519481789f

7 years agoMake a11y node info parceling more robust am: d0e54c1c09
Phil Weaver [Fri, 7 Apr 2017 22:46:31 +0000 (22:46 +0000)]
Make a11y node info parceling more robust am: d0e54c1c09
am: d87b12a4df

Change-Id: Ic10324338024f86cfc64b3e01c6380b26334d5a3

7 years agoMake a11y node info parceling more robust
Phil Weaver [Fri, 7 Apr 2017 22:39:22 +0000 (22:39 +0000)]
Make a11y node info parceling more robust
am: d0e54c1c09

Change-Id: Ie4c34b84540bc928859ef1c271b4eb9d520fa6bc

7 years agoMerge "Return to Home stack when a context of tasks launched from Home finished"...
Shunta Sato [Fri, 7 Apr 2017 22:37:41 +0000 (22:37 +0000)]
Merge "Return to Home stack when a context of tasks launched from Home finished" into oc-dev
am: d275c9a65c

Change-Id: I04432d298ec4aa604e9615eefb38d4f250839697

7 years agoMerge "Add RecommendationPlugin for Cloud Print" into oc-dev
Philip P. Moltmann [Fri, 7 Apr 2017 22:36:36 +0000 (22:36 +0000)]
Merge "Add RecommendationPlugin for Cloud Print" into oc-dev
am: 5cd4797c7a

Change-Id: Ie76ce6bbdef0b2d9cce0f954bcc1efdfcc9d0149

7 years agoMerge "Return to Home stack when a context of tasks launched from Home finished"...
TreeHugger Robot [Fri, 7 Apr 2017 22:30:59 +0000 (22:30 +0000)]
Merge "Return to Home stack when a context of tasks launched from Home finished" into oc-dev

7 years agoMediaPlayer: add 2 more info notifications for playback error
Wei Jia [Tue, 4 Apr 2017 23:00:03 +0000 (16:00 -0700)]
MediaPlayer: add 2 more info notifications for playback error

Test: mediaplayer doesn't send error notify to client when only one track has error.
Bug: 24761723
Change-Id: I7221dfdbc6a256532186c654406bbe06de831798

7 years agoMerge "Add RecommendationPlugin for Cloud Print" into oc-dev
TreeHugger Robot [Fri, 7 Apr 2017 22:21:37 +0000 (22:21 +0000)]
Merge "Add RecommendationPlugin for Cloud Print" into oc-dev

7 years agoMerge changes I5d41419a,I763be06c into oc-dev
Jorim Jaggi [Fri, 7 Apr 2017 22:14:59 +0000 (22:14 +0000)]
Merge changes I5d41419a,I763be06c into oc-dev
am: bc4bd823d9

Change-Id: I1c23329a3a18fb58d42c13e91e030f589e19025b

7 years agoMerge "copy 'visbileToInstantApps' setting" into oc-dev
Todd Kennedy [Fri, 7 Apr 2017 22:10:43 +0000 (22:10 +0000)]
Merge "copy 'visbileToInstantApps' setting" into oc-dev
am: e467be5e14

Change-Id: Ib3551cf0dce0afc169b89bc504b8f9ef88746423

7 years agoMerge "Don't show alert window notifications when in Vr mode." into oc-dev
Wale Ogunwale [Fri, 7 Apr 2017 22:09:30 +0000 (22:09 +0000)]
Merge "Don't show alert window notifications when in Vr mode." into oc-dev
am: 77d23337fb

Change-Id: I6c978ab89f31308e359119e6196df909812b3e77

7 years agoMerge "AAPT2: fixing the -c flag being ignored" into oc-dev
Mihai Nita [Fri, 7 Apr 2017 22:08:21 +0000 (22:08 +0000)]
Merge "AAPT2: fixing the -c flag being ignored" into oc-dev
am: 7354ee76aa

Change-Id: Iec7350226e00bca1acf7e24bbf447f95c53b5c51

7 years agoDo not make strong reference to Resources.
Bryce Lee [Fri, 7 Apr 2017 22:06:52 +0000 (22:06 +0000)]
Do not make strong reference to Resources.

This CL removes the strong reference added for mapping display ids
and Resources to Displays. Instead, the key pair is now the display
id and ResourcesKey, and the mapping is pruned when key is
invalidated.

Change-Id: If91368171212b28c40e03c15fb39c72412a44811
Fixes: 36625868
Test: make -j32 cts; cts-tradefed; run cts --module CtsAppTestCases --test android.app.cts.DisplayTest#testRotation

7 years agoMerge changes I5d41419a,I763be06c into oc-dev
TreeHugger Robot [Fri, 7 Apr 2017 22:05:14 +0000 (22:05 +0000)]
Merge changes I5d41419a,I763be06c into oc-dev

* changes:
  Introduce android.anim thread in system_server
  Fix thread booster

7 years agoMerge "copy 'visbileToInstantApps' setting" into oc-dev
TreeHugger Robot [Fri, 7 Apr 2017 22:04:04 +0000 (22:04 +0000)]
Merge "copy 'visbileToInstantApps' setting" into oc-dev

7 years agoMerge "Don't show alert window notifications when in Vr mode." into oc-dev
TreeHugger Robot [Fri, 7 Apr 2017 22:00:40 +0000 (22:00 +0000)]
Merge "Don't show alert window notifications when in Vr mode." into oc-dev

7 years agoMerge "AAPT2: fixing the -c flag being ignored" into oc-dev
TreeHugger Robot [Fri, 7 Apr 2017 21:56:32 +0000 (21:56 +0000)]
Merge "AAPT2: fixing the -c flag being ignored" into oc-dev

7 years agoMerge "MediaPlayer: hide BufferingParams API" into oc-dev
Wei Jia [Fri, 7 Apr 2017 21:54:06 +0000 (21:54 +0000)]
Merge "MediaPlayer: hide BufferingParams API" into oc-dev
am: 4c2a62edb6

Change-Id: Ib1b36bf7efe6aea88fa3f370e6e20d897c98b734

7 years agoMerge "ViewRootImpl: Fix child lifetime." into oc-dev
Robert Carr [Fri, 7 Apr 2017 21:52:59 +0000 (21:52 +0000)]
Merge "ViewRootImpl: Fix child lifetime." into oc-dev
am: ca2622b860

Change-Id: Ibd108646edf7217a9f7656b3c83cd87820649c2d

7 years agoMerge "Show recents at correct time when starting activity in docked stack" into...
Wale Ogunwale [Fri, 7 Apr 2017 21:51:50 +0000 (21:51 +0000)]
Merge "Show recents at correct time when starting activity in docked stack" into oc-dev
am: 735a5e1438

Change-Id: Ibef3a6f9e14e7bcb7466832bb6fe147afe7d37d0

7 years agoMerge "MediaPlayer: hide BufferingParams API" into oc-dev
TreeHugger Robot [Fri, 7 Apr 2017 21:46:34 +0000 (21:46 +0000)]
Merge "MediaPlayer: hide BufferingParams API" into oc-dev

7 years agoMerge "ViewRootImpl: Fix child lifetime." into oc-dev
TreeHugger Robot [Fri, 7 Apr 2017 21:44:45 +0000 (21:44 +0000)]
Merge "ViewRootImpl: Fix child lifetime." into oc-dev

7 years agoMerge "Show recents at correct time when starting activity in docked stack" into...
TreeHugger Robot [Fri, 7 Apr 2017 21:42:46 +0000 (21:42 +0000)]
Merge "Show recents at correct time when starting activity in docked stack" into oc-dev

7 years agoMerge "renaming/removing fingerprints should be reflected in UI immediately" into...
Kevin Chyn [Fri, 7 Apr 2017 21:00:58 +0000 (21:00 +0000)]
Merge "renaming/removing fingerprints should be reflected in UI immediately" into oc-dev
am: 1a199ba7e1

Change-Id: Ie74c7067b38d1e34e5fbc3b3d83cbf692f444a53

7 years agoMerge "renaming/removing fingerprints should be reflected in UI immediately" into...
TreeHugger Robot [Fri, 7 Apr 2017 20:55:10 +0000 (20:55 +0000)]
Merge "renaming/removing fingerprints should be reflected in UI immediately" into oc-dev

7 years agoShow recents at correct time when starting activity in docked stack
Wale Ogunwale [Fri, 7 Apr 2017 15:53:41 +0000 (08:53 -0700)]
Show recents at correct time when starting activity in docked stack

Previous logic relied on the returnTo type of the task of the activity
we are launching which can get the wrong signal at times because the
original task might have been started from home, but since we are
already in docked mode it shouldn't cause recents activity to be
launched.
We now decide if recents ability should be shown based on if the home
stack is currently visible at the time we started the new activity.
Also, renamed ActivityStack.getStackVisibilityLocked() to
ActivityStack.shouldBeVisible() since it is used to determine if the
stack should be visible and also so it isn't confused with the new
method ActivityStack.isVisible() which returns true if the stack is
currently visible.

Test: manual
Change-Id: I051e72ce93c886d25526af2afef851c95812ab3e
Fixes: 37005549

7 years agoMerge "Add hidden API to check support of Multi-Display" into oc-dev
Andrii Kulian [Fri, 7 Apr 2017 20:30:17 +0000 (20:30 +0000)]
Merge "Add hidden API to check support of Multi-Display" into oc-dev
am: 4eab3cb11a

Change-Id: I93855ada112e51892d5978c23de506388593aa9e

7 years agoMerge "Add hidden API to check support of Multi-Display" into oc-dev
Andrii Kulian [Fri, 7 Apr 2017 20:22:54 +0000 (20:22 +0000)]
Merge "Add hidden API to check support of Multi-Display" into oc-dev

7 years agoReturn to Home stack when a context of tasks launched from Home finished
Shunta Sato [Mon, 11 Jul 2016 04:32:52 +0000 (13:32 +0900)]
Return to Home stack when a context of tasks launched from Home finished

When the following conditions happen together, another context in
Application stack was launched unexpectedly:
- There is a context of tasks in Application stack, which is launched
  from a task on Home stack.
- All tasks/activities in the context are finishing.

Solution:
Add a condition check to see if the task is NOT one of the task
finishing on-top of the top running task.

Bug: 30883775
Test: manual
Author: Ichitaro Kohara <ichitaro.kohara@sonymobile.com>
Change-Id: I5d6097a7c8dc2733ff684957370c987dd158e329

7 years agoMerge "FingerprintService: check current user correctly" into oc-dev
Charles He [Fri, 7 Apr 2017 20:16:20 +0000 (20:16 +0000)]
Merge "FingerprintService: check current user correctly" into oc-dev
am: 23a7c1e870

Change-Id: I10b10af2f7caac3bfd2ec9b28335fdf4a1647b2c

7 years agoIntroduce android.anim thread in system_server
Jorim Jaggi [Tue, 28 Mar 2017 17:50:01 +0000 (18:50 +0100)]
Introduce android.anim thread in system_server

We create a new thread on which everything is running that
directly impacts window animations, i.e. layout, anim tick and
starting window creation. This is such that any work on
android.display can not lead to jank in the window animation,
specifically lock contention on activity manager lock that blocks
callbacks from android.display into AM can not lead to window
animation jank.

Test: Run animation, take systrace, make sure animation is on
android.anim
Test: AppWindowContainerControllerTestTest: AppWindowContainerControllerTestss
Fixes: 36792959

Change-Id: I5d41419a709b7984724e7053a3afdcc1ffe1aaa2

7 years agoMerge "FingerprintService: check current user correctly" into oc-dev
Charles He [Fri, 7 Apr 2017 20:06:16 +0000 (20:06 +0000)]
Merge "FingerprintService: check current user correctly" into oc-dev

7 years agocopy 'visbileToInstantApps' setting
Todd Kennedy [Fri, 7 Apr 2017 18:38:39 +0000 (11:38 -0700)]
copy 'visbileToInstantApps' setting

Change-Id: I342a133ae8d7f38008cb03706d160e6f2e2cca97
Fixes: 37002720
Test: Start instant app [adb shell am start -a android.intent.action.VIEW -c android.intent.category.BROWSABLE -d http://www.realestate.com.au/property-apartment-nsw-pyrmont-124879602] and see that hitting the 'share' icon works

7 years agoMerge "Special-case English for DateTime and Time key listeners" into oc-dev
Roozbeh Pournader [Fri, 7 Apr 2017 19:32:45 +0000 (19:32 +0000)]
Merge "Special-case English for DateTime and Time key listeners" into oc-dev
am: 91d289903c

Change-Id: Ibeaea13b146e30b5f7d67c49295081632a6a7736

7 years agoViewRootImpl: Fix child lifetime.
Robert Carr [Fri, 7 Apr 2017 02:53:07 +0000 (19:53 -0700)]
ViewRootImpl: Fix child lifetime.

As far as I can tell this has always been broken. We've always had
intermittent reports of buffer-queue-abandoned as well (a recent bug
came with some reports from N). During onStop SurfaceView relies on
onWindowVisibilityChanged, to trigger a visibility change. At this
point SurfaceView will emit the SurfaceDestroyed callback in order to
stop the client from further use of the Surface. The contract we've
been using with ViewRootImpl is at any point following
Activity.performStop returning the WindowManager was free to destroy
the Surfaces. This is why in setWindowsStopped we destroy the hardware
resources for the ViewRoot. However we aren't dispatching anything to
the SurfaceView. The WindowManager will send an app visibility
notification, but that would go through the handler. This means by the
time we return from Stop, there is no guarantee that the
onWindowVisibilityChanged callbacks have been invoked at all. It
seemed most sensible to dispatch the visibility callbacks directly. We
also ensure that getHostVisibility will return false after this point,
so that performTraversals will not reverse our visibility request if
it occurs again prior to the window visibility notification from the
WindowManager. We also guard against emitting a second window
visibility changed callback in the traversals. I don't know at this
point what value the window visibility notification provides but I
don't feel excited about removing it in this CL at this point in
the development cycle.

Test: Put Chrome in PiP. Turn screen off. No Crash!
Bug: 36561071
Change-Id: Id1673561b2299d477b2761b3ac6afa14eabbf7fb

7 years agoMerge "Special-case English for DateTime and Time key listeners" into oc-dev
TreeHugger Robot [Fri, 7 Apr 2017 19:21:51 +0000 (19:21 +0000)]
Merge "Special-case English for DateTime and Time key listeners" into oc-dev

7 years agoMerge "Revert "Do not make strong reference to Resources."" into oc-dev
Wale Ogunwale [Fri, 7 Apr 2017 19:14:41 +0000 (19:14 +0000)]
Merge "Revert "Do not make strong reference to Resources."" into oc-dev
am: 2f2e3f8ad5

Change-Id: I4b2f25475531003f8a4928e0b4a8eef05dfb9378

7 years agoMerge "Revert "Do not make strong reference to Resources."" into oc-dev
Wale Ogunwale [Fri, 7 Apr 2017 19:06:50 +0000 (19:06 +0000)]
Merge "Revert "Do not make strong reference to Resources."" into oc-dev

7 years agoMerge "Add a carrier option to hide the option of "Enhanced 4G LTE Mode"" into oc-dev
Ying Xu [Fri, 7 Apr 2017 18:55:11 +0000 (18:55 +0000)]
Merge "Add a carrier option to hide the option of "Enhanced 4G LTE Mode"" into oc-dev
am: 98852767b3

Change-Id: Ia7f57e10f3783a4bf7b711a347c6e64170d64f96

7 years agoMake a11y node info parceling more robust
Phil Weaver [Fri, 7 Apr 2017 00:40:51 +0000 (17:40 -0700)]
Make a11y node info parceling more robust

Fix a bug where a malformed Parceled representation
of an AccessibilityNodeInfo could be used to mess with
Bundles as they get reparceled.

Bug: 36491278
Test: Verified that POC no longer works, a11y cts still passes.
Change-Id: I10f24747e3ab87d77cd1deba56db4526e3aa5441
(cherry picked from commit 687bb44b437f7bb24dd3dddf072c2f646308e2ca)

7 years agoMerge "Add a carrier option to hide the option of "Enhanced 4G LTE Mode"" into oc-dev
Ying Xu [Fri, 7 Apr 2017 18:47:54 +0000 (18:47 +0000)]
Merge "Add a carrier option to hide the option of "Enhanced 4G LTE Mode"" into oc-dev

7 years agoMake a11y node info parceling more robust
Phil Weaver [Fri, 7 Apr 2017 00:40:51 +0000 (17:40 -0700)]
Make a11y node info parceling more robust

Fix a bug where a malformed Parceled representation
of an AccessibilityNodeInfo could be used to mess with
Bundles as they get reparceled.

Bug: 36491278
Test: Verified that POC no longer works, a11y cts still passes.
Change-Id: I10f24747e3ab87d77cd1deba56db4526e3aa5441
(cherry picked from commit 687bb44b437f7bb24dd3dddf072c2f646308e2ca)

7 years agoRevert "Do not make strong reference to Resources."
Bryce Lee [Fri, 7 Apr 2017 18:42:23 +0000 (18:42 +0000)]
Revert "Do not make strong reference to Resources."

This reverts commit 2d2315a66d81d29896e6a0ffedbfbbed3981b9ed.

Reason for revert: possible cause for b/37156733

Change-Id: I02d468449f0632d1281ab5ad2a381e7e36a5b0ea

7 years agoMake a11y node info parceling more robust
Phil Weaver [Fri, 7 Apr 2017 00:40:51 +0000 (17:40 -0700)]
Make a11y node info parceling more robust

Fix a bug where a malformed Parceled representation
of an AccessibilityNodeInfo could be used to mess with
Bundles as they get reparceled.

Bug: 36491278
Test: Verified that POC no longer works, a11y cts still passes.
Change-Id: I10f24747e3ab87d77cd1deba56db4526e3aa5441
(cherry picked from commit 687bb44b437f7bb24dd3dddf072c2f646308e2ca)

7 years agoMerge "Color management, the missing pieces" into oc-dev
Romain Guy [Fri, 7 Apr 2017 18:41:50 +0000 (18:41 +0000)]
Merge "Color management, the missing pieces" into oc-dev
am: 7dfa16c2ef

Change-Id: I258ae87aeb739f3df1d1aef00fb055861c757111

7 years agoMerge "Color management, the missing pieces" into oc-dev
TreeHugger Robot [Fri, 7 Apr 2017 18:34:34 +0000 (18:34 +0000)]
Merge "Color management, the missing pieces" into oc-dev

7 years agoMerge "Don't delete new notification channels not present in backup" into oc-dev
Geoffrey Pitsch [Fri, 7 Apr 2017 18:28:45 +0000 (18:28 +0000)]
Merge "Don't delete new notification channels not present in backup" into oc-dev
am: 9394a8fc62

Change-Id: Iae8d9273ede243c9261ace763dc321a6196e302f

7 years agoMerge "Remove WebView-fallback code for handling the non-functional stub." into oc-dev
Gustav Sennton [Fri, 7 Apr 2017 18:22:05 +0000 (18:22 +0000)]
Merge "Remove WebView-fallback code for handling the non-functional stub." into oc-dev
am: fc33499c64

Change-Id: Iefa63e6d00a10647457d197c02975442fade34d7

7 years agoMerge "Don't delete new notification channels not present in backup" into oc-dev
Geoffrey Pitsch [Fri, 7 Apr 2017 18:16:30 +0000 (18:16 +0000)]
Merge "Don't delete new notification channels not present in backup" into oc-dev

7 years agoMerge "Remove WebView-fallback code for handling the non-functional stub." into oc-dev
TreeHugger Robot [Fri, 7 Apr 2017 18:13:22 +0000 (18:13 +0000)]
Merge "Remove WebView-fallback code for handling the non-functional stub." into oc-dev

7 years agoAdd hidden API to check support of Multi-Display
Andrii Kulian [Fri, 7 Apr 2017 17:54:00 +0000 (10:54 -0700)]
Add hidden API to check support of Multi-Display

Added ActivityManager#supportsMultiDisplay() to check if system
supports running activities on secondary displays.

Bug: 36776777
Test: android.server.cts.ActivityManagerDisplayTests
Test: #testMultiDisplayDisabled
Change-Id: I18f98f2f6a9e865ad8dc63a470210190536d3271

7 years agoMerge "Fix theming on brightness dialog" into oc-dev
Jason Monk [Fri, 7 Apr 2017 17:49:33 +0000 (17:49 +0000)]
Merge "Fix theming on brightness dialog" into oc-dev
am: 3d82322c7c

Change-Id: I6c7e8a47686d5f3cfa1f4e235ef1bbb94dd753a7

7 years agoMerge "Revert "Ignore a broken test until it can be fixed."" into oc-dev
Adrian Roos [Fri, 7 Apr 2017 17:43:08 +0000 (17:43 +0000)]
Merge "Revert "Ignore a broken test until it can be fixed."" into oc-dev
am: 2d691791e7

Change-Id: If8de068e9e42dc8ccac513c3ad624ef38c6ac1dc

7 years agoMerge "Fix theming on brightness dialog" into oc-dev
TreeHugger Robot [Fri, 7 Apr 2017 17:37:46 +0000 (17:37 +0000)]
Merge "Fix theming on brightness dialog" into oc-dev

7 years agoMerge "Revert "Ignore a broken test until it can be fixed."" into oc-dev
Adrian Roos [Fri, 7 Apr 2017 17:35:44 +0000 (17:35 +0000)]
Merge "Revert "Ignore a broken test until it can be fixed."" into oc-dev

7 years agoMerge "Make sure to synchronize on references to plugin dependencies" into oc-dev
Jason Monk [Fri, 7 Apr 2017 17:32:19 +0000 (17:32 +0000)]
Merge "Make sure to synchronize on references to plugin dependencies" into oc-dev
am: 157017c8a8

Change-Id: Ia6feb2f2e41ce6f4551cd6cd8713e09b0f5c5275

7 years agoMerge "Synchronize on sysui dependency references" into oc-dev
Jason Monk [Fri, 7 Apr 2017 17:31:05 +0000 (17:31 +0000)]
Merge "Synchronize on sysui dependency references" into oc-dev
am: ed8051b528

Change-Id: Ica1d06c345112b7632c9892576edc0c7352ba2bb

7 years agoMerge "Make sure to synchronize on references to plugin dependencies" into oc-dev
TreeHugger Robot [Fri, 7 Apr 2017 17:24:57 +0000 (17:24 +0000)]
Merge "Make sure to synchronize on references to plugin dependencies" into oc-dev

7 years agoMerge "Synchronize on sysui dependency references" into oc-dev
TreeHugger Robot [Fri, 7 Apr 2017 17:23:31 +0000 (17:23 +0000)]
Merge "Synchronize on sysui dependency references" into oc-dev

7 years agoAdd RecommendationPlugin for Cloud Print
Philip P. Moltmann [Thu, 6 Apr 2017 02:51:08 +0000 (19:51 -0700)]
Add RecommendationPlugin for Cloud Print

Reuses already existing infrastructure. The mMDNSFilteredDiscovery lambda
is called for every network service that supports #PRIVET_SERVICE. Then
the plugin checks the txt fields to make sure the printer is valid. The
check is not complete but good enough to make sure this is either a
cloud print capable printer or something that tries really hard.

Test: Connected to network with three printers, 2 GCP capable. Found the
      two printers
Fixes: 35766193
Change-Id: I7c9180c8c154fa092fec5b943a94bad77da74c86

7 years agoAAPT2: fixing the -c flag being ignored
Mihai Nita [Fri, 7 Apr 2017 15:25:06 +0000 (08:25 -0700)]
AAPT2: fixing the -c flag being ignored

Bug: 36999175
Test: manual

Change-Id: Id9a4a00a3b37bc088d86df7c75bbe711536b980f

7 years agoMerge "AOD: More VisD updates" into oc-dev
Adrian Roos [Fri, 7 Apr 2017 16:14:34 +0000 (16:14 +0000)]
Merge "AOD: More VisD updates" into oc-dev
am: 67ee79e84f

Change-Id: Ie88590d0e098ef447c26cabb230cbf67aadcbb17

7 years agoMerge changes If96c0146,I0d68ad60 into oc-dev
Selim Cinek [Fri, 7 Apr 2017 16:08:26 +0000 (16:08 +0000)]
Merge changes If96c0146,I0d68ad60 into oc-dev
am: 5393a0e2d9

Change-Id: Ic70d9eb07b53ccda5fafb8c37177e130d4b279de

7 years agoMerge "AOD: More VisD updates" into oc-dev
TreeHugger Robot [Fri, 7 Apr 2017 16:03:29 +0000 (16:03 +0000)]
Merge "AOD: More VisD updates" into oc-dev

7 years agoMerge "remove deprecated API sendDialerCode" into oc-dev
Chen Xu [Fri, 7 Apr 2017 16:03:02 +0000 (16:03 +0000)]
Merge "remove deprecated API sendDialerCode" into oc-dev
am: 31fcda576f

Change-Id: Ia1ca68529e16deaa990d07b651592a9a80806531

7 years agoMerge changes If96c0146,I0d68ad60 into oc-dev
TreeHugger Robot [Fri, 7 Apr 2017 15:59:12 +0000 (15:59 +0000)]
Merge changes If96c0146,I0d68ad60 into oc-dev

* changes:
  Improved accessibility behavior of the notification shelf
  Fixed a bug where the indeterminate progressbar janky

7 years agoMerge "remove deprecated API sendDialerCode" into oc-dev
Chen Xu [Fri, 7 Apr 2017 15:53:07 +0000 (15:53 +0000)]
Merge "remove deprecated API sendDialerCode" into oc-dev

7 years agoMerge "Check component before notifying activity is visible." into oc-dev
Bryce Lee [Fri, 7 Apr 2017 15:03:54 +0000 (15:03 +0000)]
Merge "Check component before notifying activity is visible." into oc-dev
am: 13acf25cfd

Change-Id: I58d215ae33994274a364ec71ba59bae25e0e1c12

7 years agoMerge "Check component before notifying activity is visible." into oc-dev
Bryce Lee [Fri, 7 Apr 2017 14:58:13 +0000 (14:58 +0000)]
Merge "Check component before notifying activity is visible." into oc-dev

7 years agoColor management, the missing pieces
Romain Guy [Wed, 5 Apr 2017 02:38:50 +0000 (19:38 -0700)]
Color management, the missing pieces

Implement missing color management pieces for bitmaps:

- Bitmap.createBitmap(Bitmap src, ...) now creates a bitmap
  in the same color space as the source bitmap
- Bitmap.createScaledBitmap() now creates a bitmap in the
  same color space as the source bitmap
- Bitmap.createBitmap(..., ColorSpace colorSpace) to create
  bitmaps in a specific color space
- Fix copy from A8 to F16
- Copying bitmaps in F16 or with a color space does not work,
  it's currently a limitation in Skia

Bug: 36905374
Test: BitmapColorSpaceTest
Change-Id: I0092fe4432511db50daa3a9393389a9db05e0c2a

7 years agoMerge "Removed unused variables in PerformBackupTask#finalizeBackup()" into oc-dev
Michal Karpinski [Fri, 7 Apr 2017 14:51:29 +0000 (14:51 +0000)]
Merge "Removed unused variables in PerformBackupTask#finalizeBackup()" into oc-dev
am: ce7f931793

Change-Id: I40667aac08e8c6c5d2e31640a4667ea577cc8889