OSDN Git Service

android-x86/frameworks-base.git
7 years agoTest: AccountManagerService APCT test.
Hongming Jin [Mon, 23 Jan 2017 19:37:27 +0000 (11:37 -0800)]
Test: AccountManagerService APCT test.

Add tests for startUpdateCredentials, finishSession and isCredentialsUpdateSuggested.

Bug: 31346530
Change-Id: I8c93b6b0db50086a83894eadfcf6a2398be81b6c

7 years agoUpstream allowing multiple toasts for focused app
Svet Ganov [Sun, 22 Jan 2017 01:40:40 +0000 (17:40 -0800)]
Upstream allowing multiple toasts for focused app

Test:The topic contains CTS tests that pass

Change-Id: I60515845f7c9be23887764bb1c59bf2b3301adc8

7 years agoMerge "Import translations. DO NOT MERGE" into nyc-mr2-dev am: 40758bb7d2 -s ours
Bill Yi [Sun, 22 Jan 2017 01:14:30 +0000 (01:14 +0000)]
Merge "Import translations. DO NOT MERGE" into nyc-mr2-dev am: 40758bb7d2  -s ours
am: 7a2497c1d0  -s ours

Change-Id: Iacb511030a1f4983ec37d5daecf425fa85eb601c

7 years agoImport translations. DO NOT MERGE am: c78569cc23 -s ours
Bill Yi [Sun, 22 Jan 2017 01:13:29 +0000 (01:13 +0000)]
Import translations. DO NOT MERGE am: c78569cc23  -s ours
am: 6e307f0cd8  -s ours

Change-Id: I8ada86da67601caa6bf6ef2b6ae7a31eed1ff8e8

7 years agoMerge "Import translations. DO NOT MERGE" into nyc-mr2-dev am: 96701d3c94 -s ours
Bill Yi [Sun, 22 Jan 2017 01:12:19 +0000 (01:12 +0000)]
Merge "Import translations. DO NOT MERGE" into nyc-mr2-dev am: 96701d3c94  -s ours
am: 443276fcf3  -s ours

Change-Id: I65ca05a47129b8673577ddebb67dd4910807440c

7 years agoImport translations. DO NOT MERGE am: 7eefc3ed2a -s ours
Bill Yi [Sun, 22 Jan 2017 01:11:18 +0000 (01:11 +0000)]
Import translations. DO NOT MERGE am: 7eefc3ed2a  -s ours
am: d70c407393  -s ours

Change-Id: I7fc89da76a5aa59a2a55fbf0e426c9fabf21a514

7 years agoImport translations. DO NOT MERGE am: f60d275a45 -s ours
Bill Yi [Sun, 22 Jan 2017 01:10:16 +0000 (01:10 +0000)]
Import translations. DO NOT MERGE am: f60d275a45  -s ours
am: 1fdaba0518  -s ours

Change-Id: I6e8b033689555609d59097385c185cff0f0f6425

7 years agoMerge "Import translations. DO NOT MERGE" into nyc-mr2-dev
Bill Yi [Sun, 22 Jan 2017 01:01:22 +0000 (01:01 +0000)]
Merge "Import translations. DO NOT MERGE" into nyc-mr2-dev
am: 40758bb7d2  -s ours

Change-Id: I25058d9c3131588c724233d1d9faafad9f4104d6

7 years agoImport translations. DO NOT MERGE
Bill Yi [Sun, 22 Jan 2017 01:01:15 +0000 (01:01 +0000)]
Import translations. DO NOT MERGE
am: c78569cc23  -s ours

Change-Id: If9dd42a1c21fd84db10276fce6d79cc17e46061b

7 years agoMerge "Import translations. DO NOT MERGE" into nyc-mr2-dev
Bill Yi [Sun, 22 Jan 2017 00:59:40 +0000 (00:59 +0000)]
Merge "Import translations. DO NOT MERGE" into nyc-mr2-dev
am: 96701d3c94  -s ours

Change-Id: I7e2c5d5ea83dfce16529ef041f06ee18d5a16a11

7 years agoImport translations. DO NOT MERGE
Bill Yi [Sun, 22 Jan 2017 00:59:33 +0000 (00:59 +0000)]
Import translations. DO NOT MERGE
am: 7eefc3ed2a  -s ours

Change-Id: I4d2301434bbd5e6aed99d7850ce0924939c6e62c

7 years agoImport translations. DO NOT MERGE
Bill Yi [Sun, 22 Jan 2017 00:58:17 +0000 (00:58 +0000)]
Import translations. DO NOT MERGE
am: f60d275a45  -s ours

Change-Id: I1ab211b4274b8cf4efcc84bdc52101e058f4d184

7 years agoMerge "Import translations. DO NOT MERGE"
TreeHugger Robot [Sun, 22 Jan 2017 00:50:45 +0000 (00:50 +0000)]
Merge "Import translations. DO NOT MERGE"

7 years agoMerge "Import translations. DO NOT MERGE" into nyc-mr2-dev
TreeHugger Robot [Sun, 22 Jan 2017 00:50:15 +0000 (00:50 +0000)]
Merge "Import translations. DO NOT MERGE" into nyc-mr2-dev

7 years agoMerge "Import translations. DO NOT MERGE"
TreeHugger Robot [Sun, 22 Jan 2017 00:49:41 +0000 (00:49 +0000)]
Merge "Import translations. DO NOT MERGE"

7 years agoMerge "Import translations. DO NOT MERGE" into nyc-mr2-dev
TreeHugger Robot [Sun, 22 Jan 2017 00:49:12 +0000 (00:49 +0000)]
Merge "Import translations. DO NOT MERGE" into nyc-mr2-dev

7 years agoMerge "Use infinities for one-sided ranges for a11y."
TreeHugger Robot [Sun, 22 Jan 2017 00:06:50 +0000 (00:06 +0000)]
Merge "Use infinities for one-sided ranges for a11y."

7 years agoImport translations. DO NOT MERGE
Bill Yi [Sat, 21 Jan 2017 21:29:01 +0000 (13:29 -0800)]
Import translations. DO NOT MERGE

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

7 years agoImport translations. DO NOT MERGE
Bill Yi [Sat, 21 Jan 2017 19:57:08 +0000 (11:57 -0800)]
Import translations. DO NOT MERGE

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

7 years agoImport translations. DO NOT MERGE
Bill Yi [Sat, 21 Jan 2017 19:48:44 +0000 (11:48 -0800)]
Import translations. DO NOT MERGE

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

7 years agoImport translations. DO NOT MERGE
Bill Yi [Sat, 21 Jan 2017 19:37:22 +0000 (11:37 -0800)]
Import translations. DO NOT MERGE

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

7 years agoImport translations. DO NOT MERGE
Bill Yi [Sat, 21 Jan 2017 19:01:34 +0000 (11:01 -0800)]
Import translations. DO NOT MERGE

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

7 years agoMerge "Add @TestApi PopupMenu.getMenuListView"
TreeHugger Robot [Sat, 21 Jan 2017 07:10:01 +0000 (07:10 +0000)]
Merge "Add @TestApi PopupMenu.getMenuListView"

7 years agoUse infinities for one-sided ranges for a11y.
Phil Weaver [Mon, 19 Dec 2016 22:24:49 +0000 (14:24 -0800)]
Use infinities for one-sided ranges for a11y.

This was a request from Chrome to be able to specify
one-sided ranges. Rather than add new behavior, I'm just
documenting what seems to me a reasonable convention.

Bug: 30025621
Test: No tests as this just adds comments.
Change-Id: I1467f57729eed08a981c3e6d50951e78c3564a50

7 years agoMerge "DO NOT MERGE - Require password to FR in carrier demo mode" into nyc-mr2-dev...
Christine Franks [Sat, 21 Jan 2017 05:47:58 +0000 (05:47 +0000)]
Merge "DO NOT MERGE - Require password to FR in carrier demo mode" into nyc-mr2-dev am: e1a7e67dc0
am: 0405386934  -s ours

Change-Id: I1fd1fd38e3a2d7b7491cf279d36183ba67839753

7 years agoDO NOT MERGE - Require password to FR in carrier demo mode am: 319b44e6e9
Christine Franks [Sat, 21 Jan 2017 05:46:57 +0000 (05:46 +0000)]
DO NOT MERGE - Require password to FR in carrier demo mode am: 319b44e6e9
am: b196493856  -s ours

Change-Id: I9813d735626a1d92b5eeebc1b7b6bab445e69ada

7 years agoMerge "Add Setting for curating saved open networks." am: b3b665de22 am: 2aec2f7a9c...
Amin Shaikh [Sat, 21 Jan 2017 05:45:56 +0000 (05:45 +0000)]
Merge "Add Setting for curating saved open networks." am: b3b665de22 am: 2aec2f7a9c am: 835db7f6b6
am: 17a040d48e  -s ours

Change-Id: Ic54b5dccaec681ad30c8370aab9cc704ed38622b

7 years agoMerge "DO NOT MERGE - Require password to FR in carrier demo mode" into nyc-mr2-dev
Christine Franks [Sat, 21 Jan 2017 05:42:11 +0000 (05:42 +0000)]
Merge "DO NOT MERGE - Require password to FR in carrier demo mode" into nyc-mr2-dev
am: e1a7e67dc0

Change-Id: I3a337da003d504647d6ff7489d907754986e8482

7 years agoDO NOT MERGE - Require password to FR in carrier demo mode
Christine Franks [Sat, 21 Jan 2017 05:42:06 +0000 (05:42 +0000)]
DO NOT MERGE - Require password to FR in carrier demo mode
am: 319b44e6e9

Change-Id: Ie53a29cfc067f255f2f90e5d83ec8d92a57a3651

7 years agoMerge "Add Setting for curating saved open networks." am: b3b665de22 am: 2aec2f7a9c
Amin Shaikh [Sat, 21 Jan 2017 05:38:45 +0000 (05:38 +0000)]
Merge "Add Setting for curating saved open networks." am: b3b665de22 am: 2aec2f7a9c
am: 835db7f6b6

Change-Id: I5a8e3a4fc0198dbb7bf88e2bbcf0152b0b82a7fc

7 years agoMerge "DO NOT MERGE - Require password to FR in carrier demo mode" into nyc-mr2-dev
Christine Franks [Sat, 21 Jan 2017 05:36:08 +0000 (05:36 +0000)]
Merge "DO NOT MERGE - Require password to FR in carrier demo mode" into nyc-mr2-dev

7 years agoMerge "Add Setting for curating saved open networks." am: b3b665de22
Amin Shaikh [Sat, 21 Jan 2017 05:34:12 +0000 (05:34 +0000)]
Merge "Add Setting for curating saved open networks." am: b3b665de22
am: 2aec2f7a9c

Change-Id: If61be9f8e71bb89a8714c3f4a5eb10b04982cdf7

7 years agoMerge "Add Setting for curating saved open networks."
Amin Shaikh [Sat, 21 Jan 2017 05:27:06 +0000 (05:27 +0000)]
Merge "Add Setting for curating saved open networks."
am: b3b665de22

Change-Id: I3c65f39dc4f38f1c6c00a240f519cb0b0cf1a916

7 years agoMerge "Move several config elements into TetheringConfiguration class" am: 8d35276910...
Erik Kline [Sat, 21 Jan 2017 05:19:09 +0000 (05:19 +0000)]
Merge "Move several config elements into TetheringConfiguration class" am: 8d35276910 am: 81499754bc am: 46f036c6da
am: 9bd62dee06

Change-Id: If0212af9c8fa35b190640ed2bf4bd7332078625d

7 years agoMove several config elements into TetheringConfiguration class am: 3e7566572e am...
Erik Kline [Sat, 21 Jan 2017 05:18:07 +0000 (05:18 +0000)]
Move several config elements into TetheringConfiguration class am: 3e7566572e am: ec45953fd7 am: befb6a1702
am: dac4c3702f

Change-Id: Ib19c970ca13ad5c08c581506f8f53c3a3c47e3ba

7 years agoMerge "Add Setting for curating saved open networks."
Treehugger Robot [Sat, 21 Jan 2017 05:17:41 +0000 (05:17 +0000)]
Merge "Add Setting for curating saved open networks."

7 years agoMerge "Load EGL early in Activity launch, instead of in Zygote" into nyc-mr2-dev...
Jesse Hall [Sat, 21 Jan 2017 05:17:01 +0000 (05:17 +0000)]
Merge "Load EGL early in Activity launch, instead of in Zygote" into nyc-mr2-dev am: f2a54b6a39  -s ours
am: 4d2afaa85a  -s ours

Change-Id: Ib6613b13fcae139f0a5aa611de239d5f5d5b4f15

7 years agoLoad EGL early in Activity launch, instead of in Zygote am: fd104e7fde -s ours
Jesse Hall [Sat, 21 Jan 2017 05:15:55 +0000 (05:15 +0000)]
Load EGL early in Activity launch, instead of in Zygote am: fd104e7fde  -s ours
am: e1d004740a  -s ours

Change-Id: Iec83488d82e6bdfba2fd9b73c315d7d36de22e7a

7 years agoMerge "Move several config elements into TetheringConfiguration class" am: 8d35276910...
Erik Kline [Sat, 21 Jan 2017 05:12:58 +0000 (05:12 +0000)]
Merge "Move several config elements into TetheringConfiguration class" am: 8d35276910 am: 81499754bc
am: 46f036c6da

Change-Id: I29fb42f75f0bd660f003794b47164d119a3e57ae

7 years agoMove several config elements into TetheringConfiguration class am: 3e7566572e am...
Erik Kline [Sat, 21 Jan 2017 05:12:00 +0000 (05:12 +0000)]
Move several config elements into TetheringConfiguration class am: 3e7566572e am: ec45953fd7
am: befb6a1702

Change-Id: Ife89a2da79aa2a3002eca50f7e9c0a91c894375c

7 years agoMerge "Load EGL early in Activity launch, instead of in Zygote" into nyc-mr2-dev
Jesse Hall [Sat, 21 Jan 2017 05:08:38 +0000 (05:08 +0000)]
Merge "Load EGL early in Activity launch, instead of in Zygote" into nyc-mr2-dev
am: f2a54b6a39  -s ours

Change-Id: I3392b81976e9a530faba27ff93e6514ad8ded7a7

7 years agoLoad EGL early in Activity launch, instead of in Zygote
Jesse Hall [Sat, 21 Jan 2017 05:08:33 +0000 (05:08 +0000)]
Load EGL early in Activity launch, instead of in Zygote
am: fd104e7fde  -s ours

Change-Id: Ide0fccd9666589c0003312ee51e25eb253bddce7

7 years agoMerge "Move several config elements into TetheringConfiguration class" am: 8d35276910
Erik Kline [Sat, 21 Jan 2017 05:06:06 +0000 (05:06 +0000)]
Merge "Move several config elements into TetheringConfiguration class" am: 8d35276910
am: 81499754bc

Change-Id: I6a0dc7192aeca1ecccbf8223516bf3f5f4a9bfb8

7 years agoMerge "Address a few unittest comments." am: 9c3a298748 am: d4d464ae2c am: 8de6457414
Erik Kline [Sat, 21 Jan 2017 05:05:22 +0000 (05:05 +0000)]
Merge "Address a few unittest comments." am: 9c3a298748 am: d4d464ae2c am: 8de6457414
am: d870ed9e26

Change-Id: Ifd4c7e8ec13d24e5c58f727c9a2e3f1521643e4c

7 years agoMove several config elements into TetheringConfiguration class am: 3e7566572e
Erik Kline [Sat, 21 Jan 2017 05:05:04 +0000 (05:05 +0000)]
Move several config elements into TetheringConfiguration class am: 3e7566572e
am: ec45953fd7

Change-Id: If9cffb4d63cdfdf075b6c8991e763f4237d0d5a8

7 years agoMerge "Load EGL early in Activity launch, instead of in Zygote" into nyc-mr2-dev
TreeHugger Robot [Sat, 21 Jan 2017 05:04:21 +0000 (05:04 +0000)]
Merge "Load EGL early in Activity launch, instead of in Zygote" into nyc-mr2-dev

7 years agoMerge "Move several config elements into TetheringConfiguration class"
Erik Kline [Sat, 21 Jan 2017 04:57:34 +0000 (04:57 +0000)]
Merge "Move several config elements into TetheringConfiguration class"
am: 8d35276910

Change-Id: I0eb196a4b61e460db24271d6805177641ad3fc9b

7 years agoMerge "Address a few unittest comments." am: 9c3a298748 am: d4d464ae2c
Erik Kline [Sat, 21 Jan 2017 04:57:32 +0000 (04:57 +0000)]
Merge "Address a few unittest comments." am: 9c3a298748 am: d4d464ae2c
am: 8de6457414

Change-Id: I007c10df7bd3658453cb245d11f5b606ac70e0b3

7 years agoMove several config elements into TetheringConfiguration class
Erik Kline [Sat, 21 Jan 2017 04:57:29 +0000 (04:57 +0000)]
Move several config elements into TetheringConfiguration class
am: 3e7566572e

Change-Id: Ic053965b54eed0afc9a4785ce80ef1fab281493a

7 years agoMerge "Address a few unittest comments." am: 9c3a298748
Erik Kline [Sat, 21 Jan 2017 04:50:36 +0000 (04:50 +0000)]
Merge "Address a few unittest comments." am: 9c3a298748
am: d4d464ae2c

Change-Id: Iacb543c081a89327c66ce849b764866f12bc60d0

7 years agoMerge "Move several config elements into TetheringConfiguration class"
Erik Kline [Sat, 21 Jan 2017 04:49:10 +0000 (04:49 +0000)]
Merge "Move several config elements into TetheringConfiguration class"

7 years agoMerge "Address a few unittest comments."
Erik Kline [Sat, 21 Jan 2017 04:43:27 +0000 (04:43 +0000)]
Merge "Address a few unittest comments."
am: 9c3a298748

Change-Id: I2d41cdbe05653bcbed9d3b38b440c06b98006809

7 years agoMerge "Rename visibleToEphemeral to visibleToInstantApps"
Chad Brubaker [Sat, 21 Jan 2017 04:38:52 +0000 (04:38 +0000)]
Merge "Rename visibleToEphemeral to visibleToInstantApps"

7 years agoMerge "Address a few unittest comments."
Erik Kline [Sat, 21 Jan 2017 04:36:27 +0000 (04:36 +0000)]
Merge "Address a few unittest comments."

7 years agoMerge "Change HFP Client API to support multi device"
Sanket Agarwal [Sat, 21 Jan 2017 03:21:54 +0000 (03:21 +0000)]
Merge "Change HFP Client API to support multi device"

7 years agoMerge "vibrator HAL uses "default" service name"
Chris Phoenix [Sat, 21 Jan 2017 02:51:31 +0000 (02:51 +0000)]
Merge "vibrator HAL uses "default" service name"

7 years agoMerge "Load EGL early in Activity launch, instead of in Zygote" into nyc-mr2-dev...
Jesse Hall [Sat, 21 Jan 2017 02:44:11 +0000 (02:44 +0000)]
Merge "Load EGL early in Activity launch, instead of in Zygote" into nyc-mr2-dev-plus-aosp
am: 0d3537c67b

Change-Id: Iba27f6ba7c4830688e1d96a02fc864a13e221189

7 years agoMerge "resolve merge conflicts of 5fa7fb1d9f2a to master"
TreeHugger Robot [Sat, 21 Jan 2017 02:41:15 +0000 (02:41 +0000)]
Merge "resolve merge conflicts of 5fa7fb1d9f2a to master"

7 years agovibrator HAL uses "default" service name
Chris Phoenix [Thu, 19 Jan 2017 23:54:28 +0000 (15:54 -0800)]
vibrator HAL uses "default" service name

The getService() and registerAsService() methods of interface objects
now have default parameters of "default" for the service name. HALs
will not have to use any service name unless they want to register
more than one service.

Test: builds; verify HAL still works

Bug: 33844934

Change-Id: I7ad730bc5b52b9bd3c63410f6f926cbc08d0b73c

7 years agoAdd Setting for curating saved open networks.
Amin Shaikh [Fri, 20 Jan 2017 01:38:23 +0000 (17:38 -0800)]
Add Setting for curating saved open networks.

Bug: 34392914
Test: make
Change-Id: Icd17753af6b0efdb35d1060b16029a53fdf4e605
Merged-In: Icd17753af6b0efdb35d1060b16029a53fdf4e605

7 years agoMerge "Add Setting for curating saved open networks."
TreeHugger Robot [Sat, 21 Jan 2017 02:27:26 +0000 (02:27 +0000)]
Merge "Add Setting for curating saved open networks."

7 years agoDO NOT MERGE - Require password to FR in carrier demo mode
Christine Franks [Fri, 20 Jan 2017 19:56:32 +0000 (11:56 -0800)]
DO NOT MERGE - Require password to FR in carrier demo mode

Bug: 34341567
Test: manual - password not required for regular user factory resets
and is required in carrier demo mode.

Change-Id: If696e5c5c806e31399e33a151b0d36e7a950ceb0

7 years agoMerge "Introduce RescueParty."
TreeHugger Robot [Sat, 21 Jan 2017 02:22:39 +0000 (02:22 +0000)]
Merge "Introduce RescueParty."

7 years agoMerge "Added an onDeviceUnlockLockout callback to TrustAgentService."
Zac Iqbal [Sat, 21 Jan 2017 01:35:39 +0000 (01:35 +0000)]
Merge "Added an onDeviceUnlockLockout callback to TrustAgentService."

7 years agoMerge "Import translations. DO NOT MERGE"
TreeHugger Robot [Sat, 21 Jan 2017 01:17:37 +0000 (01:17 +0000)]
Merge "Import translations. DO NOT MERGE"

7 years agoMerge "Add ClipData.addItem(Item, ContentResolver)"
TreeHugger Robot [Sat, 21 Jan 2017 01:09:23 +0000 (01:09 +0000)]
Merge "Add ClipData.addItem(Item, ContentResolver)"

7 years agoresolve merge conflicts of 5fa7fb1d9f2a to master
Jesse Hall [Sat, 21 Jan 2017 00:49:12 +0000 (16:49 -0800)]
resolve merge conflicts of 5fa7fb1d9f2a to master

Test: make
Change-Id: I7f119535a120303796fcd08f0274269f7d0dbaba

7 years agoMerge "Set permissions for launching on private displays"
TreeHugger Robot [Sat, 21 Jan 2017 00:59:16 +0000 (00:59 +0000)]
Merge "Set permissions for launching on private displays"

7 years agoIntroduce RescueParty.
Jeff Sharkey [Fri, 20 Jan 2017 17:42:57 +0000 (10:42 -0700)]
Introduce RescueParty.

When a device gets stuck in a crash loop, it's pretty much unusable
and impossible for users to recover from.

To help rescue devices from this state, this change introduces a new
feature that watches for runtime restart loops and persistent app
crash loops, and escalates through a series of increasingly
aggressive rescue operations.  Currently these rescue levels walk
through clearing any experiments in SettingsProvider before finally
rebooting and prompting the user to wipe data.

Crash loops are detected based on a number of events in a specific
window of time.  App stats can be stored in memory, but boot stats
need to be stored in system properties to be more robust.

Start up RecoveryService much earlier during the boot so we can
reboot into recovery when needed.

Add properties tha push system_server or SystemUI into a crash loops
for testing purposes.

Test: builds, boots, forced crashing walks through modes
Bug: 2487245730951331
Change-Id: I6cdd37682973fe18de0f08521e88f70ee7d7728b

7 years agoMerge "Remove style TextAppearance.StatusBar.TextButton"
TreeHugger Robot [Sat, 21 Jan 2017 00:31:15 +0000 (00:31 +0000)]
Merge "Remove style TextAppearance.StatusBar.TextButton"

7 years agoMerge "Updating picture-in-picture API."
TreeHugger Robot [Sat, 21 Jan 2017 00:29:18 +0000 (00:29 +0000)]
Merge "Updating picture-in-picture API."

7 years agoMerge "Promote DevicePolicyManager.packageHasActiveAdmins for Play Store"
David Ouyang [Sat, 21 Jan 2017 00:28:14 +0000 (00:28 +0000)]
Merge "Promote DevicePolicyManager.packageHasActiveAdmins for Play Store"

7 years agoMerge "Remove call to propagate permissions"
TreeHugger Robot [Fri, 20 Jan 2017 23:58:28 +0000 (23:58 +0000)]
Merge "Remove call to propagate permissions"

7 years agoLoad EGL early in Activity launch, instead of in Zygote
Jesse Hall [Fri, 20 Jan 2017 01:59:08 +0000 (17:59 -0800)]
Load EGL early in Activity launch, instead of in Zygote

Preloading EGL in Zygote was originally a memory footprint
optimization, but it turns out to be an important app startup time
optimization as well. Preloading EGL in Zygote is incompatible with
updatable graphics drivers, but we don't want to do it on-demand as
part of drawing the first frame either, since that increases
first-frame latency unacceptably.

This change removes Zygote preload, and instead loads EGL on a
low-priority background thread immediately after choosing which
graphics driver to use. This means it is usually done well before
drawing the first frame, without significantly disrupting other
activity launch work.

Test: observe systrace of Calculator launch on bullhead
Bug: 34404021
Change-Id: I6a0f6b90ade21848a10d51ddae62c936f70151b5
Merged-In: I887aa09bd35b088b16f53a89838a0c7c98f15761

7 years agoMerge "Load EGL early in Activity launch, instead of in Zygote" into nyc-mr2-dev...
Jesse Hall [Fri, 20 Jan 2017 23:57:30 +0000 (23:57 +0000)]
Merge "Load EGL early in Activity launch, instead of in Zygote" into nyc-mr2-dev-plus-aosp

7 years agoAdded an onDeviceUnlockLockout callback to TrustAgentService.
Zachary Iqbal [Thu, 12 Jan 2017 22:41:13 +0000 (14:41 -0800)]
Added an onDeviceUnlockLockout callback to TrustAgentService.

Test: Manually tested onDeviceUnlockLockout being called with an actual
TestAgentService implementation.

Notes:
- Active Trust Agents are no longer killed/unbinded from when a temporary
  device lockout occurs. Instead, the onDeviceUnlockLockout callback of
  the agent is called.

Change-Id: Ifa0984d1d7e5153568334d736e9ebd5a00ef1297
Bug: 34198873

7 years agoMerge "Added open, dismiss and split screen as custom accessibility actions"
TreeHugger Robot [Fri, 20 Jan 2017 23:54:08 +0000 (23:54 +0000)]
Merge "Added open, dismiss and split screen as custom accessibility actions"

7 years agoMerge "Notification player: do not use stream types"
Jean-Michel Trivi [Fri, 20 Jan 2017 23:42:41 +0000 (23:42 +0000)]
Merge "Notification player: do not use stream types"

7 years agoMerge "Add additional fields to RecommendationRequest." am: b8f0e69ef0 am: ac05acad45...
Amin Shaikh [Fri, 20 Jan 2017 23:40:40 +0000 (23:40 +0000)]
Merge "Add additional fields to RecommendationRequest." am: b8f0e69ef0 am: ac05acad45 am: b7b9c6f889
am: 746a4de692  -s ours

Change-Id: I542c5562210e309bf17c235225051ab42c8d0f65

7 years agoAdd ClipData.addItem(Item, ContentResolver)
Vladislav Kaznacheev [Wed, 23 Nov 2016 23:31:13 +0000 (15:31 -0800)]
Add ClipData.addItem(Item, ContentResolver)

Unlike the existing addItem(Item), this method updates
the MIME type list in the ClipDescription.

Bug: 28750744
Test: cts-tradefed ... -m CtsContentTestCases
  --test android.content.cts.ClipboardManagerTest
Change-Id: Ida0477267d1319a31a738dfd704c0af71928dd2f

7 years agoMerge "Do not allow work profile apps to access main profile app."
Makoto Onuki [Fri, 20 Jan 2017 23:35:49 +0000 (23:35 +0000)]
Merge "Do not allow work profile apps to access main profile app."

7 years agoMerge "Add additional fields to RecommendationRequest." am: b8f0e69ef0 am: ac05acad45
Amin Shaikh [Fri, 20 Jan 2017 23:30:39 +0000 (23:30 +0000)]
Merge "Add additional fields to RecommendationRequest." am: b8f0e69ef0 am: ac05acad45
am: b7b9c6f889

Change-Id: Ieade1643bfc4c9039d6d4f702bf3ec527679ce74

7 years agoMerge "Add additional fields to RecommendationRequest." am: b8f0e69ef0
Amin Shaikh [Fri, 20 Jan 2017 23:23:39 +0000 (23:23 +0000)]
Merge "Add additional fields to RecommendationRequest." am: b8f0e69ef0
am: ac05acad45

Change-Id: I1062446bbd085b794bfe61843e670dc5af689d32

7 years agoMerge "SystemServer: reorder wifi services start" am: 10c514d9de am: eae39fd1ec am...
Rebecca Silberstein [Fri, 20 Jan 2017 23:20:38 +0000 (23:20 +0000)]
Merge "SystemServer: reorder wifi services start" am: 10c514d9de am: eae39fd1ec am: 5c00ee28b2
am: 844e5436a6  -s ours

Change-Id: I850b8a881ade0bdf2ea3a3de3ccfefa74e72dd51

7 years agoMerge "Add additional fields to RecommendationRequest."
Amin Shaikh [Fri, 20 Jan 2017 23:18:02 +0000 (23:18 +0000)]
Merge "Add additional fields to RecommendationRequest."
am: b8f0e69ef0

Change-Id: I9a50c8aca36cf740abbc62af6879b4e6ea736855

7 years agoMerge "TvInput HAL uses "default" service name"
Chris Phoenix [Fri, 20 Jan 2017 23:17:14 +0000 (23:17 +0000)]
Merge "TvInput HAL uses "default" service name"

7 years agoSet permissions for launching on private displays
Andrii Kulian [Tue, 17 Jan 2017 19:17:34 +0000 (11:17 -0800)]
Set permissions for launching on private displays

- System UIDs must be allowed to launch anything and everywhere.
- Display owner must be allowed to launch activities on it.
- Apps that are already on target display must be allowed to launch
  there.
- All other apps mustn't be allowed to launch on private displays.

Bug: 34230873
Test: android.server.cts.ActivityManagerDisplayTests
Test: #testPermissionLaunchFromSystem
Test: #testPermissionLaunchFromAppOnSecondary
Test: #testPermissionLaunchFromOwner
Test: #testPermissionLaunchFromDifferentApp
Change-Id: Ic98005649a6368370c512e822cba4e9decc18ae9

7 years agoMerge "SystemServer: reorder wifi services start" am: 10c514d9de am: eae39fd1ec
Rebecca Silberstein [Fri, 20 Jan 2017 23:13:38 +0000 (23:13 +0000)]
Merge "SystemServer: reorder wifi services start" am: 10c514d9de am: eae39fd1ec
am: 5c00ee28b2

Change-Id: Id6eb74c4aab2cd25f1d7adff4ddff160f6132fc6

7 years agoMerge "Add Binder support for Parcelable exceptions." am: a2ef6b5741 am: c3fbf32011...
Jeff Sharkey [Fri, 20 Jan 2017 23:12:19 +0000 (23:12 +0000)]
Merge "Add Binder support for Parcelable exceptions." am: a2ef6b5741 am: c3fbf32011 am: 4a0a4664b9
am: 7bb9ccc1e5

Change-Id: I9346a576d57c9f7093b875c4a43134f2ef095018

7 years agoMerge "Fixing dimensions for AppWidgetProviderInfo not getting updated properly for...
Sunny Goyal [Fri, 20 Jan 2017 23:07:18 +0000 (23:07 +0000)]
Merge "Fixing dimensions for AppWidgetProviderInfo not getting updated properly for PinItemRequest"

7 years agoMerge "SystemServer: reorder wifi services start" am: 10c514d9de
Rebecca Silberstein [Fri, 20 Jan 2017 23:07:10 +0000 (23:07 +0000)]
Merge "SystemServer: reorder wifi services start" am: 10c514d9de
am: eae39fd1ec

Change-Id: I723d8b96f5d5406e8f948885a845993e755ab0d8

7 years agoMerge "Improve behavior of bg check."
Dianne Hackborn [Fri, 20 Jan 2017 23:05:37 +0000 (23:05 +0000)]
Merge "Improve behavior of bg check."

7 years agoMerge "Add additional fields to RecommendationRequest."
Treehugger Robot [Fri, 20 Jan 2017 23:04:54 +0000 (23:04 +0000)]
Merge "Add additional fields to RecommendationRequest."

7 years agoImprove behavior of bg check.
Dianne Hackborn [Thu, 12 Jan 2017 23:10:57 +0000 (15:10 -0800)]
Improve behavior of bg check.

There is a new APP_START_MODE_DELAYED_RIGID which means that
things discovering something is not allowed to start should
report a clear error back to the caller.  This is how apps
that opt in to bg check should behave, and will now
be used if the app op mode is set to ERRORED.

This (for now?) removes the code that allows services to
be started if the request is coming from a foreground process.
That behavior isn't in the current bg check spec, and
probably not what we want as the standard platform model (since
it makes knowing when a service can start even harder to
determine).  It was originally done for the experimental
bg check work in N to see how much we could avoid
breaking existing apps, so not relevant when apps need to
explicitly opt in.

Also report temporary whitelist changes to activity manager for
it to lift background restrictions temporarily for apps.  Being
on the whitelist is now part of UidRecord, preventing a uid from
going idle.

Test: Initial CTS test added.

Change-Id: I36fd906fa69de8b7ff360605ae17c088f182e172

7 years agoMerge "Add Binder support for Parcelable exceptions." am: a2ef6b5741 am: c3fbf32011
Jeff Sharkey [Fri, 20 Jan 2017 23:03:40 +0000 (23:03 +0000)]
Merge "Add Binder support for Parcelable exceptions." am: a2ef6b5741 am: c3fbf32011
am: 4a0a4664b9

Change-Id: I9b5667ca6e5497a4eedaaf88979a1a3d0e22c174

7 years agoMerge "SystemServer: reorder wifi services start"
Rebecca Silberstein [Fri, 20 Jan 2017 23:00:13 +0000 (23:00 +0000)]
Merge "SystemServer: reorder wifi services start"
am: 10c514d9de

Change-Id: I3a918b707932084759701103c683fffed0e16cee

7 years agoMerge "Change the default behavior when MCC/MNC changes."
Jiuyu Sun [Fri, 20 Jan 2017 22:58:21 +0000 (22:58 +0000)]
Merge "Change the default behavior when MCC/MNC changes."

7 years agoMerge "Add Binder support for Parcelable exceptions." am: a2ef6b5741
Jeff Sharkey [Fri, 20 Jan 2017 22:56:45 +0000 (22:56 +0000)]
Merge "Add Binder support for Parcelable exceptions." am: a2ef6b5741
am: c3fbf32011

Change-Id: Ibd977a017ce48f0791520af3500969aec0c132e5

7 years agoRename visibleToEphemeral to visibleToInstantApps
Chad Brubaker [Fri, 20 Jan 2017 21:53:42 +0000 (13:53 -0800)]
Rename visibleToEphemeral to visibleToInstantApps

Test: builds
Test: cts-tradefed run commandAndExit cts-dev -m
CtsAppSecurityHostTestCases -t android.appsecurity.cts.EphemeralTest
Change-Id: Ia173af181ec6206dfa8d1956eb2c4894c43c059e

7 years agoChange HFP Client API to support multi device
Sanket Agarwal [Fri, 20 Jan 2017 22:55:15 +0000 (14:55 -0800)]
Change HFP Client API to support multi device

- Adds BluetoothDevice as a parameter where required
- Gets rid of device management APIs that can be done via
  BluetoothProfiles instead

Test: Manual sanity tests
Bug: b/33554547
Bug: b/30984220
Change-Id: I3485ac5bfe1fcb29c774ad040fdd608e1cacb8df