OSDN Git Service

android-x86/frameworks-base.git
7 years agoMerge "Filter external setting intents using IA_SETTING keyword."
TreeHugger Robot [Fri, 4 Nov 2016 19:51:40 +0000 (19:51 +0000)]
Merge "Filter external setting intents using IA_SETTING keyword."

7 years agoMerge "Fix IMountService transaction ids."
Sudheer Shanka [Fri, 4 Nov 2016 19:38:06 +0000 (19:38 +0000)]
Merge "Fix IMountService transaction ids."

7 years agoMerge "Add check for null manger for a11y recents action"
Phil Weaver [Fri, 4 Nov 2016 19:37:36 +0000 (19:37 +0000)]
Merge "Add check for null manger for a11y recents action"

7 years agoDO NOT MERGE ANYWHERE Add supports-multiwindow command to am. am: 040b4826c2 -s...
Michael Kwan [Fri, 4 Nov 2016 19:34:29 +0000 (19:34 +0000)]
DO NOT MERGE ANYWHERE Add supports-multiwindow command to am. am: 040b4826c2  -s ours am: b22ba03e85  -s ours am: 82fe47cc44  -s ours
am: 5822211aee  -s ours

Change-Id: I4aac99236edc24f46145cabbf805bddc321321ee

7 years agoMerge "Re-unite sources with their headers"
John Reck [Fri, 4 Nov 2016 19:32:03 +0000 (19:32 +0000)]
Merge "Re-unite sources with their headers"

7 years agoDO NOT MERGE ANYWHERE Add supports-multiwindow command to am. am: 040b4826c2 -s...
Michael Kwan [Fri, 4 Nov 2016 19:29:03 +0000 (19:29 +0000)]
DO NOT MERGE ANYWHERE Add supports-multiwindow command to am. am: 040b4826c2  -s ours am: b22ba03e85  -s ours
am: 82fe47cc44  -s ours

Change-Id: Ib062b926972a8931ce13021a4aa8a1ba4d9d54af

7 years agoDO NOT MERGE ANYWHERE Add supports-multiwindow command to am. am: 040b4826c2 -s...
Michael Kwan [Fri, 4 Nov 2016 19:21:16 +0000 (19:21 +0000)]
DO NOT MERGE ANYWHERE Add supports-multiwindow command to am. am: 040b4826c2  -s ours
am: b22ba03e85  -s ours

Change-Id: I26322338d505313fe492126b892d64a329c147f5

7 years agoDO NOT MERGE ANYWHERE Add supports-multiwindow command to am.
Michael Kwan [Fri, 4 Nov 2016 19:14:41 +0000 (19:14 +0000)]
DO NOT MERGE ANYWHERE Add supports-multiwindow command to am.
am: 040b4826c2  -s ours

Change-Id: I5b476dd054dab199135b3e8bb088d83d665e7be7

7 years agoMerge "Merge "If the current device is a watch, fix DeviceOwner/ProfileOwner logic...
Android Build Merger (Role) [Fri, 4 Nov 2016 19:09:38 +0000 (19:09 +0000)]
Merge "Merge "If the current device is a watch, fix DeviceOwner/ProfileOwner logic." into cw-f-dev am: e50a485c22 am: d4ef6421e5 am: 52df5e2c1b"

7 years agoMerge "If the current device is a watch, fix DeviceOwner/ProfileOwner logic." into...
Greg Plesur [Fri, 4 Nov 2016 19:08:58 +0000 (19:08 +0000)]
Merge "If the current device is a watch, fix DeviceOwner/ProfileOwner logic." into cw-f-dev am: e50a485c22 am: d4ef6421e5
am: 52df5e2c1b

Change-Id: I228a69981d2e7ec215bdbb31d66c3a4b37e70e56

7 years agoMerge "Add supports-multiwindow command to am."
TreeHugger Robot [Fri, 4 Nov 2016 19:08:26 +0000 (19:08 +0000)]
Merge "Add supports-multiwindow command to am."

7 years agoMerge "resolve merge conflicts of c874e60 to master"
Greg Plesur [Fri, 4 Nov 2016 19:04:36 +0000 (19:04 +0000)]
Merge "resolve merge conflicts of c874e60 to master"

7 years agoMerge "Renamed Aapt2.java to Aapt2Jni.java."
Paulo Casanova [Fri, 4 Nov 2016 18:47:21 +0000 (18:47 +0000)]
Merge "Renamed Aapt2.java to Aapt2Jni.java."

7 years agoMerge "Send BOOT_COMPLETED when updating system apps"
TreeHugger Robot [Fri, 4 Nov 2016 17:01:00 +0000 (17:01 +0000)]
Merge "Send BOOT_COMPLETED when updating system apps"

7 years agoFilter external setting intents using IA_SETTING keyword.
Fan Zhang [Wed, 2 Nov 2016 22:54:53 +0000 (15:54 -0700)]
Filter external setting intents using IA_SETTING keyword.

Also add test for CategoryKey

Bug: 32382487
Bug: 32460089
Test: make RunSettingsLibRoboTests
Change-Id: I0ed6278344a545b5fc952f5811322857382e4b60

7 years agoMerge "Slightly better encapsulation for the set of recent activities"
Manu Cornet [Fri, 4 Nov 2016 16:39:01 +0000 (16:39 +0000)]
Merge "Slightly better encapsulation for the set of recent activities"

7 years agoresolve merge conflicts of c874e60 to master
Greg Plesur [Fri, 4 Nov 2016 16:34:30 +0000 (12:34 -0400)]
resolve merge conflicts of c874e60 to master

Change-Id: I39381c516e4a1267d06e3f7b682d1cf73eeb6f9b

7 years agoMerge "Never use getApplicationInfo."
TreeHugger Robot [Fri, 4 Nov 2016 16:12:19 +0000 (16:12 +0000)]
Merge "Never use getApplicationInfo."

7 years agoMerge "Added CMAS/ETWS duplicate expiration support" into nyc-mr2-dev am: e966a97113
Jack Yu [Fri, 4 Nov 2016 16:03:09 +0000 (16:03 +0000)]
Merge "Added CMAS/ETWS duplicate expiration support" into nyc-mr2-dev am: e966a97113
am: 250d0c402f

Change-Id: Ieb0d0742331e0ea3afed83b49e738cb3c9badbbd

7 years agoAdded CMAS/ETWS duplicate expiration support am: f8247928a2
Jack Yu [Fri, 4 Nov 2016 16:02:14 +0000 (16:02 +0000)]
Added CMAS/ETWS duplicate expiration support am: f8247928a2
am: 4461e96abb

Change-Id: I7a7e85f88e05f1dec1c83a9b41138534afc02269

7 years agoMerge "If the current device is a watch, fix DeviceOwner/ProfileOwner logic." into...
Greg Plesur [Fri, 4 Nov 2016 15:57:57 +0000 (15:57 +0000)]
Merge "If the current device is a watch, fix DeviceOwner/ProfileOwner logic." into cw-f-dev am: e50a485c22
am: d4ef6421e5

Change-Id: I6b1b41e844c72573dd7c5de51b6e9a63b590b632

7 years agoIf the current device is a watch, fix DeviceOwner/ProfileOwner logic. am: 34fb70ab88
Greg Plesur [Fri, 4 Nov 2016 15:56:54 +0000 (15:56 +0000)]
If the current device is a watch, fix DeviceOwner/ProfileOwner logic. am: 34fb70ab88
am: 9ee91d8d11

Change-Id: Ibf15871a6d0ca3219ebf32de89a42c9d680c427a

7 years agoMerge "Added CMAS/ETWS duplicate expiration support" into nyc-mr2-dev
Jack Yu [Fri, 4 Nov 2016 15:55:21 +0000 (15:55 +0000)]
Merge "Added CMAS/ETWS duplicate expiration support" into nyc-mr2-dev
am: e966a97113

Change-Id: Ia7daaa128679ec50c7b85cb03737381535507aaa

7 years agoAdded CMAS/ETWS duplicate expiration support
Jack Yu [Fri, 4 Nov 2016 15:55:12 +0000 (15:55 +0000)]
Added CMAS/ETWS duplicate expiration support
am: f8247928a2

Change-Id: Ic8ac9c15748ae2a5f22ab08df81ed501a8365bc0

7 years agoNever use getApplicationInfo.
Julia Reynolds [Fri, 4 Nov 2016 13:08:52 +0000 (09:08 -0400)]
Never use getApplicationInfo.

Always use getApplicationInfoAsUser.

Test: runtest, and install a work profile app and post a notification.

Bug: 32615127
Change-Id: I92cdf42d791d27eaff64b945be96b216e5866f6d

7 years agoMerge "If the current device is a watch, fix DeviceOwner/ProfileOwner logic." into...
Greg Plesur [Fri, 4 Nov 2016 14:09:33 +0000 (14:09 +0000)]
Merge "If the current device is a watch, fix DeviceOwner/ProfileOwner logic." into cw-f-dev
am: e50a485c22

Change-Id: If0ae1447b1931c498134f16ecf4bd51efa83b9e0

7 years agoIf the current device is a watch, fix DeviceOwner/ProfileOwner logic.
Greg Plesur [Fri, 4 Nov 2016 14:09:29 +0000 (14:09 +0000)]
If the current device is a watch, fix DeviceOwner/ProfileOwner logic.
am: 34fb70ab88

Change-Id: I901764f7bba26c921896d94444799185cce41932

7 years agoMerge "If the current device is a watch, fix DeviceOwner/ProfileOwner logic." into...
Greg Plesur [Fri, 4 Nov 2016 14:02:09 +0000 (14:02 +0000)]
Merge "If the current device is a watch, fix DeviceOwner/ProfileOwner logic." into cw-f-dev

7 years agoSlightly better encapsulation for the set of recent activities
Manu Cornet [Fri, 4 Nov 2016 13:58:15 +0000 (06:58 -0700)]
Slightly better encapsulation for the set of recent activities

Bug: 32101881
Test: Locally on Ryu device
Change-Id: Ibf2f5af268ec00abc8caa6232fb517b60545ad46

7 years agoMerge "Add SkiaProfileRenderer to draw visual debugging info"
TreeHugger Robot [Fri, 4 Nov 2016 12:53:36 +0000 (12:53 +0000)]
Merge "Add SkiaProfileRenderer to draw visual debugging info"

7 years agoRenamed Aapt2.java to Aapt2Jni.java.
Paulo Casanova [Fri, 4 Nov 2016 11:28:44 +0000 (11:28 +0000)]
Renamed Aapt2.java to Aapt2Jni.java.

See http://ag/1590668 for a discussion.

Test: Done in tools
Change-Id: I3bfced0da98ab24531c1c1a79970841b32bfa1fa

7 years agoMerge "Added CMAS/ETWS duplicate expiration support"
TreeHugger Robot [Fri, 4 Nov 2016 10:50:39 +0000 (10:50 +0000)]
Merge "Added CMAS/ETWS duplicate expiration support"

7 years agoMerge "Add shell command to move activity stacks between displays"
TreeHugger Robot [Fri, 4 Nov 2016 09:00:07 +0000 (09:00 +0000)]
Merge "Add shell command to move activity stacks between displays"

7 years agoMerge "Added CMAS/ETWS duplicate expiration support" into nyc-mr2-dev
TreeHugger Robot [Fri, 4 Nov 2016 08:22:59 +0000 (08:22 +0000)]
Merge "Added CMAS/ETWS duplicate expiration support" into nyc-mr2-dev

7 years agoAdded CMAS/ETWS duplicate expiration support
Jack Yu [Thu, 3 Nov 2016 19:24:22 +0000 (12:24 -0700)]
Added CMAS/ETWS duplicate expiration support

Now message duplication detection will only look back messages
for 24 hours by default for all countries, except 1 hour in
Japan.

Test: runtest -x packages/apps/CellBroadcastReceiver/tests/unit

bug: 31171149
Change-Id: I6765c9cebdb3bd9ab6d065f10acbd66047a34d8c

7 years agoMerge "Stop using return within finally"
TreeHugger Robot [Fri, 4 Nov 2016 02:42:08 +0000 (02:42 +0000)]
Merge "Stop using return within finally"

7 years agoAdd SkiaProfileRenderer to draw visual debugging info
Matt Sarett [Wed, 26 Oct 2016 15:03:23 +0000 (11:03 -0400)]
Add SkiaProfileRenderer to draw visual debugging info

This adds support for debug.hwui.profile and
debug.hwui.show_dirty_regions to the Skia pipelines.

There still may be some follow up work for profiling
with visual bars.  The speed at which the renderer
is able to draw the rects in the graph is having a
noticeable effect on the actual data in the graphs.

Test: Verified that the features work as expected.

BUG:32370375

Change-Id: I24430da2bab3eb54f6a771f9c984f8ae0008a5a7

7 years agoMerge "Trust: Add missing cleanup upon removing user"
TreeHugger Robot [Fri, 4 Nov 2016 00:38:10 +0000 (00:38 +0000)]
Merge "Trust: Add missing cleanup upon removing user"

7 years agoAdd shell command to move activity stacks between displays
Andrii Kulian [Wed, 2 Nov 2016 17:58:58 +0000 (10:58 -0700)]
Add shell command to move activity stacks between displays

Also rename "stack movetask" command to be consistent with other
shell commands.

Test: New CTS tests coming soon.
Change-Id: I3d7e04e0ae8ea76c27c3e4c1e286d5cd4539870c

7 years agoMerge "Switch settings command to use "cmd" call on service."
Dianne Hackborn [Fri, 4 Nov 2016 00:15:23 +0000 (00:15 +0000)]
Merge "Switch settings command to use "cmd" call on service."

7 years agoMerge "Order non-app window containers."
TreeHugger Robot [Thu, 3 Nov 2016 23:54:16 +0000 (23:54 +0000)]
Merge "Order non-app window containers."

7 years agoMerge "Doze: Fix broken non-AoD"
TreeHugger Robot [Thu, 3 Nov 2016 23:42:14 +0000 (23:42 +0000)]
Merge "Doze: Fix broken non-AoD"

7 years agoMerge "BT: Don't switch devices when one of the connected BT headsets disconnects...
Andre Eisenbach [Thu, 3 Nov 2016 23:38:59 +0000 (23:38 +0000)]
Merge "BT: Don't switch devices when one of the connected BT headsets disconnects" am: 0bebfe76fc am: 2fe13541ad am: 51d7a455aa
am: 045226008c

Change-Id: Iacd5ae71b6338bcb461ae69cc09e5158fea502dc

7 years agoMerge "BT: Don't switch devices when one of the connected BT headsets disconnects...
Andre Eisenbach [Thu, 3 Nov 2016 23:32:10 +0000 (23:32 +0000)]
Merge "BT: Don't switch devices when one of the connected BT headsets disconnects" am: 0bebfe76fc am: 2fe13541ad
am: 51d7a455aa

Change-Id: Ia5b8bcbb6f42ef939abe71b74327d845e4a11768

7 years agoRe-unite sources with their headers
John Reck [Thu, 3 Nov 2016 23:16:47 +0000 (16:16 -0700)]
Re-unite sources with their headers

Move all the includes for androidfw under
a common base path for that library instead
of frameworks/base/includes.

Also fixes -Werror issues that resulted in
no longer being -isystem.

Test: builds
Change-Id: Ic4312eb61b197af114dded5691d5ae1ec82923f7

7 years agoMerge "BT: Don't switch devices when one of the connected BT headsets disconnects...
Andre Eisenbach [Thu, 3 Nov 2016 23:25:37 +0000 (23:25 +0000)]
Merge "BT: Don't switch devices when one of the connected BT headsets disconnects" am: 0bebfe76fc
am: 2fe13541ad

Change-Id: Iba20aef49c4d34875d8521cba82e6ffc26051ac3

7 years agoMerge "BT: Don't switch devices when one of the connected BT headsets disconnects"
Andre Eisenbach [Thu, 3 Nov 2016 23:22:07 +0000 (23:22 +0000)]
Merge "BT: Don't switch devices when one of the connected BT headsets disconnects"
am: 0bebfe76fc

Change-Id: Ibd4c4f9defec469bb14a282c53d64932123d4905

7 years agoMerge "BT: Don't switch devices when one of the connected BT headsets disconnects"
Andre Eisenbach [Thu, 3 Nov 2016 23:13:17 +0000 (23:13 +0000)]
Merge "BT: Don't switch devices when one of the connected BT headsets disconnects"

7 years agoMerge "Add tests for MagnificationController."
Phil Weaver [Thu, 3 Nov 2016 23:11:50 +0000 (23:11 +0000)]
Merge "Add tests for MagnificationController."

7 years agoMerge "Get rid of Keyguard visibility modifiers on WindowState"
TreeHugger Robot [Thu, 3 Nov 2016 23:08:23 +0000 (23:08 +0000)]
Merge "Get rid of Keyguard visibility modifiers on WindowState"

7 years agoAdd check for null manger for a11y recents action
Phil Weaver [Thu, 3 Nov 2016 22:28:03 +0000 (15:28 -0700)]
Add check for null manger for a11y recents action

Bug: 31986988

Test: Ran A11y cts
Change-Id: Ia6a1e1b921d8b0008edbcf1f1a8d1d3d0eb969c6

7 years agoMerge "MediaRecorder: Fix some audio source descriptions"
Jean-Michel Trivi [Thu, 3 Nov 2016 22:34:11 +0000 (22:34 +0000)]
Merge "MediaRecorder: Fix some audio source descriptions"

7 years agoAdd supports-multiwindow command to am.
Michael Kwan [Thu, 3 Nov 2016 22:30:34 +0000 (15:30 -0700)]
Add supports-multiwindow command to am.

The supports-multiwindow command allows the ability to
check if the device has multiwindow support in the shell.

Test: manual - adb shell am supports-multiwindow
Bug: 30120559
Change-Id: If5e251a878a29cef2365715b18e4275e4f1ff0ca

7 years agoMerge "Fix RenderNodeDrawable to draw nonzero Z nodes when needed"
TreeHugger Robot [Thu, 3 Nov 2016 22:30:07 +0000 (22:30 +0000)]
Merge "Fix RenderNodeDrawable to draw nonzero Z nodes when needed"

7 years agoMerge "Make calls from apps to a11y oneway."
Phil Weaver [Thu, 3 Nov 2016 22:23:23 +0000 (22:23 +0000)]
Merge "Make calls from apps to a11y oneway."

7 years agoAdded CMAS/ETWS duplicate expiration support
Jack Yu [Thu, 3 Nov 2016 19:24:22 +0000 (12:24 -0700)]
Added CMAS/ETWS duplicate expiration support

Now message duplication detection will only look back messages
for 24 hours by default for all countries, except 1 hour in
Japan.

Test: runtest -x packages/apps/CellBroadcastReceiver/tests/unit

bug: 31171149
Change-Id: I6765c9cebdb3bd9ab6d065f10acbd66047a34d8c

7 years agoTrust: Add missing cleanup upon removing user
Adrian Roos [Thu, 3 Nov 2016 21:46:13 +0000 (14:46 -0700)]
Trust: Add missing cleanup upon removing user

Change-Id: I4a1d9d38344aea54d1f0ae6d6834a45b2e73cb1c
Fixes: 31995569

7 years agoStop using return within finally
Ray Essick [Thu, 3 Nov 2016 21:45:56 +0000 (14:45 -0700)]
Stop using return within finally

Refactor code to avoid a return statement inside a finally block. Such
constructs interfere with exception propagation in non-obvious ways
and are therefore considered bad practice.

Bug: 32586420
Test: manual code walk

7 years agoIf the current device is a watch, fix DeviceOwner/ProfileOwner logic.
Greg Plesur [Tue, 1 Nov 2016 16:33:15 +0000 (12:33 -0400)]
If the current device is a watch, fix DeviceOwner/ProfileOwner logic.

In this case, don't require the device to have gone through the
Setup Wizard before disqualifying DO/PO if there's an incompatible
account on the device.

BUG: 32438704,32438210

Change-Id: I6858db13c8df6e95d01d18a903f4343f70370e8b

7 years agoMerge "Document Subtype additions for ACTION_WIFI_CONNECT, ACTION_WIFI_OFF."
Stephen Chen [Thu, 3 Nov 2016 21:09:45 +0000 (21:09 +0000)]
Merge "Document Subtype additions for ACTION_WIFI_CONNECT, ACTION_WIFI_OFF."

7 years agoBT: Don't switch devices when one of the connected BT headsets disconnects
Satish Kodishala [Mon, 18 Jan 2016 08:53:12 +0000 (14:23 +0530)]
BT: Don't switch devices when one of the connected BT headsets disconnects

Usecase:
1. Enable multi-hf.
2. Connect to HS1.
3. Connect to HS2.
4. Make a call on AG. Here call audio is present on HS2.
5. Now disconnect HS1 from AG.

Failure:
When HS1 is disconnected, call audio is routed to handset/speaker.

Root cause:
When hs1 disconnection intent is received, SCO path is cleared
and audio is routed to handset/speaker.

Fix:
Check if the device being disconnected is same as the device
call audio is present before clearing SCO path.

Change-Id: If83325679b70b5893e44e8d844000ee028d0246c

7 years agoOrder non-app window containers.
Wale Ogunwale [Wed, 2 Nov 2016 23:49:48 +0000 (16:49 -0700)]
Order non-app window containers.

- Add non-app window tokens to the display child container based on
their base layer so the highest based layer is z-ordered on-top.
- Separated DisplayContent.mNonAppWindowContainers into
mAboveAppWindowContainer and mBelowAppWindowContainer where the former
contains non-app windows that should be z-ordered on-top of all app
windows and the later contains non-app windows that should be
z-ordered below app windows.
- Change wallpaper base layer to 1 so that it is always below all other
window types.
- Add Ime related windows/tokens to DisplayContent.mImeWindowContainers
so that we can track them together
- Use alternative binder token when adding window TYPE_INPUT_METHOD_DIALOG
so that it can properly be associated as an IME token in WM vs. with
system_server or sys-ui token.

Test: Existing tests pass.
Bug: 30060889
Change-Id: Ib53e09af12545868c3741d83aaccb7311c872b41

7 years agoMerge "Update service test runner to allow test args" am: 56b92e8191 am: dde9ea21e4...
Etan Cohen [Thu, 3 Nov 2016 20:45:31 +0000 (20:45 +0000)]
Merge "Update service test runner to allow test args" am: 56b92e8191 am: dde9ea21e4 am: 10840d1897
am: be8e13de60

Change-Id: I48302e70e01fb290634f66bd679268fea0ede22d

7 years agoMerge "Update service test runner to allow test args" am: 56b92e8191 am: dde9ea21e4
Etan Cohen [Thu, 3 Nov 2016 20:39:26 +0000 (20:39 +0000)]
Merge "Update service test runner to allow test args" am: 56b92e8191 am: dde9ea21e4
am: 10840d1897

Change-Id: I200c88f0d6d00bef77fe00a59f8e99b3b91f7aa2

7 years agoMerge "New Wear devices need to update their DISABLE_LOCKSCREEN_KEY." into cw-f-dev...
Greg Plesur [Thu, 3 Nov 2016 20:37:33 +0000 (20:37 +0000)]
Merge "New Wear devices need to update their DISABLE_LOCKSCREEN_KEY." into cw-f-dev am: 343dbac2e0 am: c447d9ef6a
am: 0cbe2e1a5c

Change-Id: I98803fd185b5d523e5aec610d29c112ee78a6254

7 years agoNew Wear devices need to update their DISABLE_LOCKSCREEN_KEY. am: eb2e45369a am:...
Greg Plesur [Thu, 3 Nov 2016 20:36:27 +0000 (20:36 +0000)]
New Wear devices need to update their DISABLE_LOCKSCREEN_KEY. am: eb2e45369a am: a71a0b8da1
am: e44736a819

Change-Id: I36f1980ede5ea483c4750386a7b5905254ce33f8

7 years agoMerge "Update service test runner to allow test args" am: 56b92e8191
Etan Cohen [Thu, 3 Nov 2016 20:32:54 +0000 (20:32 +0000)]
Merge "Update service test runner to allow test args" am: 56b92e8191
am: dde9ea21e4

Change-Id: I59d572e233720ecf0ddc6cbb5893323b563a3241

7 years agoMerge "New Wear devices need to update their DISABLE_LOCKSCREEN_KEY." into cw-f-dev...
Greg Plesur [Thu, 3 Nov 2016 20:30:59 +0000 (20:30 +0000)]
Merge "New Wear devices need to update their DISABLE_LOCKSCREEN_KEY." into cw-f-dev am: 343dbac2e0
am: c447d9ef6a

Change-Id: I17a831ab2c537c00452f250d151ec3f63b2d6277

7 years agoNew Wear devices need to update their DISABLE_LOCKSCREEN_KEY. am: eb2e45369a
Greg Plesur [Thu, 3 Nov 2016 20:29:55 +0000 (20:29 +0000)]
New Wear devices need to update their DISABLE_LOCKSCREEN_KEY. am: eb2e45369a
am: a71a0b8da1

Change-Id: I9a19eea21e008a9253ea7abbd854b21f4696548c

7 years agoMerge "Update service test runner to allow test args"
Etan Cohen [Thu, 3 Nov 2016 20:26:29 +0000 (20:26 +0000)]
Merge "Update service test runner to allow test args"
am: 56b92e8191

Change-Id: Ib5f44685228bab61d50dea4c5bd226c4b80c2dd1

7 years agoMerge "New Wear devices need to update their DISABLE_LOCKSCREEN_KEY." into cw-f-dev
Greg Plesur [Thu, 3 Nov 2016 20:23:29 +0000 (20:23 +0000)]
Merge "New Wear devices need to update their DISABLE_LOCKSCREEN_KEY." into cw-f-dev
am: 343dbac2e0

Change-Id: Ia7b6297443c555edc9372e6991784b2a6920d2ba

7 years agoNew Wear devices need to update their DISABLE_LOCKSCREEN_KEY.
Greg Plesur [Thu, 3 Nov 2016 20:23:24 +0000 (20:23 +0000)]
New Wear devices need to update their DISABLE_LOCKSCREEN_KEY.
am: eb2e45369a

Change-Id: I64c1cc38bc38d9d0ee6214a64c6ddfaa57095ce0

7 years agoMerge "Update service test runner to allow test args"
Etan Cohen [Thu, 3 Nov 2016 20:18:53 +0000 (20:18 +0000)]
Merge "Update service test runner to allow test args"

7 years agoMerge "New Wear devices need to update their DISABLE_LOCKSCREEN_KEY." into cw-f-dev
Greg Plesur [Thu, 3 Nov 2016 20:15:15 +0000 (20:15 +0000)]
Merge "New Wear devices need to update their DISABLE_LOCKSCREEN_KEY." into cw-f-dev

7 years agoMerge "Disable multiwindow support for watch devices by default." into cw-f-dev am...
Michael Kwan [Thu, 3 Nov 2016 20:09:24 +0000 (20:09 +0000)]
Merge "Disable multiwindow support for watch devices by default." into cw-f-dev am: 0d3f740316 am: 10f3eda0fd
am: af03cd3c5b

Change-Id: Ifac814e3904d92dc193dcb17ea9c4bc046ad0272

7 years agoDisable multiwindow support for watch devices by default. am: 1cb6777e51 am: 620a33b827
Michael Kwan [Thu, 3 Nov 2016 20:08:25 +0000 (20:08 +0000)]
Disable multiwindow support for watch devices by default. am: 1cb6777e51 am: 620a33b827
am: 4c5d4dd64d

Change-Id: I8bb789fee47c5b14612ac29ea43fd8ae4e4a7ea5

7 years agoMerge "[NAN-AWARE] Rename NAN to Aware [DO NOT MERGE] am: a61b9fb569 -s ours"
Android Build Merger (Role) [Thu, 3 Nov 2016 20:06:13 +0000 (20:06 +0000)]
Merge "[NAN-AWARE] Rename NAN to Aware [DO NOT MERGE] am: a61b9fb569  -s ours"

7 years agoMerge "Implement onDrawTextBlob in the SkiaCanvasProxy."
TreeHugger Robot [Thu, 3 Nov 2016 20:04:14 +0000 (20:04 +0000)]
Merge "Implement onDrawTextBlob in the SkiaCanvasProxy."

7 years ago[NAN-AWARE] Rename NAN to Aware [DO NOT MERGE]
Etan Cohen [Thu, 3 Nov 2016 20:03:59 +0000 (20:03 +0000)]
[NAN-AWARE] Rename NAN to Aware [DO NOT MERGE]
am: a61b9fb569  -s ours

Change-Id: I40abb81290d255c0369f4356bd78b46f5479a857

7 years agoMerge "Disable multiwindow support for watch devices by default." into cw-f-dev am...
Michael Kwan [Thu, 3 Nov 2016 20:03:55 +0000 (20:03 +0000)]
Merge "Disable multiwindow support for watch devices by default." into cw-f-dev am: 0d3f740316
am: 10f3eda0fd

Change-Id: I5d6ad3b9b5ce63546907f629c289229bf673186d

7 years agoDisable multiwindow support for watch devices by default. am: 1cb6777e51
Michael Kwan [Thu, 3 Nov 2016 20:02:55 +0000 (20:02 +0000)]
Disable multiwindow support for watch devices by default. am: 1cb6777e51
am: 620a33b827

Change-Id: Id2f6d1e2a12c6644f41ed5f535568130139cd355

7 years agoAdd tests for MagnificationController.
Phil Weaver [Mon, 19 Sep 2016 20:51:10 +0000 (13:51 -0700)]
Add tests for MagnificationController.

Also refactoring the class to make it easier to test and
chaning behavior where the current behavior seemed poorly
defined.

Refactoring:
- Combined all handlers into one.
- Simplified animation to use a ValueAnimator.
- Eliminated ACCESSIBILITY_DISPLAY_MAGNIFICATION_AUTO_UPDATE
  setting. Move rest of settings reading into mockable class.
- Move callbacks from WindowManager into the main class.
- Pulled out my instrumented Handler from the
  MotionEventInjectorTest into its own class so I can reuse
  it.

Behavior changes:
- Always constraining out-of-bounds values rather than
  refusing to change them.
- Constraining offsets on bounds changes. We previously
  left them alone, even if they were out of bounds.
- Keeping track of the animation starting point. We were
  interpolating between the current magnification spec
  and the final one. This change means the magnification
  animates to a different profile.

Test: This CL adds tests. I've also run a11y CTS.

Bugs: 3185595430325691

Change-Id: Ie00e29ae88b75d9fe1016f9d107257c9cf6425bb

7 years agoMerge "Implement Skia pipelines for OpenGL and Vulkan."
TreeHugger Robot [Thu, 3 Nov 2016 19:59:41 +0000 (19:59 +0000)]
Merge "Implement Skia pipelines for OpenGL and Vulkan."

7 years agoMerge "Disable multiwindow support for watch devices by default." into cw-f-dev
Michael Kwan [Thu, 3 Nov 2016 19:56:24 +0000 (19:56 +0000)]
Merge "Disable multiwindow support for watch devices by default." into cw-f-dev
am: 0d3f740316

Change-Id: I7867b0ff72237c7ce216f570034f6f811e5a6abb

7 years agoDisable multiwindow support for watch devices by default.
Michael Kwan [Thu, 3 Nov 2016 19:56:20 +0000 (19:56 +0000)]
Disable multiwindow support for watch devices by default.
am: 1cb6777e51

Change-Id: I9e42480be007387109f9e58efe594dca860e3597

7 years agoMerge "Disable multiwindow support for watch devices by default." into cw-f-dev
Michael Kwan [Thu, 3 Nov 2016 19:48:53 +0000 (19:48 +0000)]
Merge "Disable multiwindow support for watch devices by default." into cw-f-dev

7 years agoMerge "Reference ctable when adopting pointer in Bitmap"
TreeHugger Robot [Thu, 3 Nov 2016 19:43:29 +0000 (19:43 +0000)]
Merge "Reference ctable when adopting pointer in Bitmap"

7 years agoMerge "update callers to newer Skia APIs"
TreeHugger Robot [Thu, 3 Nov 2016 19:27:43 +0000 (19:27 +0000)]
Merge "update callers to newer Skia APIs"

7 years agoDoze: Fix broken non-AoD
Adrian Roos [Thu, 3 Nov 2016 19:11:11 +0000 (12:11 -0700)]
Doze: Fix broken non-AoD

Fixes a bug where non-AoD doze mode
was broken.

Test: adb shell settings put secure doze_always_on 0 && echo "Test that double-tap / pickup gestures work"
Change-Id: If2720eea5081fb9f88bfe0346ec829b241532b29

7 years agoNew Wear devices need to update their DISABLE_LOCKSCREEN_KEY.
Greg Plesur [Wed, 2 Nov 2016 21:10:27 +0000 (17:10 -0400)]
New Wear devices need to update their DISABLE_LOCKSCREEN_KEY.

Previous versions of Wear forced this flag to "true."

BUG: 32591969
Change-Id: I9619eee5df5f67e92818ef0b7b45ddd2299449f1

7 years agoDO NOT MERGE ANYWHERE Add supports-multiwindow command to am.
Michael Kwan [Thu, 3 Nov 2016 08:04:24 +0000 (01:04 -0700)]
DO NOT MERGE ANYWHERE Add supports-multiwindow command to am.

The supports-multiwindow command allows the ability to
check if the device has multiwindow support in the shell.

Bug: 30120559
Change-Id: I466e28d8a794fa457826a6526ef9ef660cd3856c

7 years agoMake calls from apps to a11y oneway.
Phil Weaver [Thu, 3 Nov 2016 16:34:29 +0000 (09:34 -0700)]
Make calls from apps to a11y oneway.

Saves about 300us for each AccessibilityEvent sent, which
translates to 1 ms in gfx-avg-frame-time in the
QuickSettingsPull.

Test: Ran a11y cts and unit tests. Ran systrace and the
QuickSettingsPull to measure jank improvement.
Change-Id: I6d219b0e82c21047e50d402d930d8a5cc93fa6ad

7 years agoMerge "Updated JNI interface."
Paulo Casanova [Thu, 3 Nov 2016 18:39:02 +0000 (18:39 +0000)]
Merge "Updated JNI interface."

7 years agoMerge "Added Windows support for aapt/JNI."
Paulo Casanova [Thu, 3 Nov 2016 18:38:19 +0000 (18:38 +0000)]
Merge "Added Windows support for aapt/JNI."

7 years agoMerge "Fixed string array resource"
Robert Greenwalt [Thu, 3 Nov 2016 18:23:29 +0000 (18:23 +0000)]
Merge "Fixed string array resource"

7 years agoSend BOOT_COMPLETED when updating system apps
Fyodor Kupolov [Thu, 3 Nov 2016 00:46:04 +0000 (17:46 -0700)]
Send BOOT_COMPLETED when updating system apps

Previously, when a system app was updated, it wasn't getting
BOOT_COMPLETED broadcast.
sendPackageAddedForUser was extended to support multiple userIds and also
send LOCKED_BOOT_COMPLETED. handlePackagePostInstall is now using the same
method as installExistingPackageAsUser

Test: pm install --user X -r systemAppV2.apk
Bug: 32242899
Change-Id: I75fe955aaf02d0a4c80b3604e3ef82316bf5dbc0

7 years agoMediaRecorder: Fix some audio source descriptions
Jean-Michel Trivi [Thu, 3 Nov 2016 15:55:30 +0000 (08:55 -0700)]
MediaRecorder: Fix some audio source descriptions

voice recognition: it is always available
camcorder: "main microphone" doesn't mean anything
communication: there is no requirement for this source
  to behave like the default preset.

Test: make offline-sdk-docs
Bug: 32451872

Change-Id: I1a2f196977e547feebb031a98b0f0e560f0557d5

7 years agoMerge changes I0d6f2f0c,I278ab8c3
Winson Chung [Thu, 3 Nov 2016 17:48:09 +0000 (17:48 +0000)]
Merge changes I0d6f2f0c,I278ab8c3

* changes:
  Experiment for snapping PIP to closest edge.
  Experiment with allowing tap to break through to interact with the PIP.

7 years agoFix RenderNodeDrawable to draw nonzero Z nodes when needed
Stan Iliev [Wed, 2 Nov 2016 19:29:03 +0000 (15:29 -0400)]
Fix RenderNodeDrawable to draw nonzero Z nodes when needed

Fix RenderNodeDrawable to draw nonzero Z nodes if not in a reordering
section.
Write an unit test modeled after FrameBuilder zReorder, which
verifies the bug fix.

Test: built and run unit tests on angler-eng.
bug: 32541103
Change-Id: Ifbf2d51f4432f5de3af4abe5987c2a72fed14185

7 years agoDocument Subtype additions for ACTION_WIFI_CONNECT, ACTION_WIFI_OFF.
Stephen Chen [Thu, 3 Nov 2016 17:44:32 +0000 (10:44 -0700)]
Document Subtype additions for ACTION_WIFI_CONNECT, ACTION_WIFI_OFF.

Bug: 32371451
Test: n/a
Change-Id: Ib4f0eb49242c9ec248f3e8931ff73d35c2cb1167