OSDN Git Service

android-x86/frameworks-base.git
6 years agoMerge "DO NOT MERGE. KEY_INTENT shouldn't grant permissions." into nyc-mr2-dev am...
Jeff Sharkey [Wed, 11 Oct 2017 21:03:59 +0000 (21:03 +0000)]
Merge "DO NOT MERGE. KEY_INTENT shouldn't grant permissions." into nyc-mr2-dev am: 09984216e6  -s ours am: 5f17a285f9
am: 98371ee7c9

Change-Id: Ib74482b52dcd5e3ac21b4b61e6a56f3293cddbd5

6 years agoMerge "DO NOT MERGE. KEY_INTENT shouldn't grant permissions." into nyc-mr2-dev am...
Jeff Sharkey [Wed, 11 Oct 2017 20:46:21 +0000 (20:46 +0000)]
Merge "DO NOT MERGE. KEY_INTENT shouldn't grant permissions." into nyc-mr2-dev am: 09984216e6  -s ours
am: 5f17a285f9

Change-Id: I9971bfff1c0792f78e4afe17a101ba6e6ae0cd2f

6 years agoMerge "Check target api version before crashing apps." into oc-mr1-dev
TreeHugger Robot [Wed, 11 Oct 2017 20:37:04 +0000 (20:37 +0000)]
Merge "Check target api version before crashing apps." into oc-mr1-dev

6 years agoMerge "DO NOT MERGE. KEY_INTENT shouldn't grant permissions." into nyc-mr2-dev
Jeff Sharkey [Wed, 11 Oct 2017 20:30:25 +0000 (20:30 +0000)]
Merge "DO NOT MERGE. KEY_INTENT shouldn't grant permissions." into nyc-mr2-dev
am: 09984216e6  -s ours

Change-Id: I3dcf7d6fdf11a8ed82d6f2362a18b12afaff1120

6 years agoMerge "DO NOT MERGE. KEY_INTENT shouldn't grant permissions." into nyc-mr2-dev
TreeHugger Robot [Wed, 11 Oct 2017 20:23:53 +0000 (20:23 +0000)]
Merge "DO NOT MERGE. KEY_INTENT shouldn't grant permissions." into nyc-mr2-dev

6 years agoMerge "Import translations. DO NOT MERGE" into oc-dev am: e721fbddb5 -s ours
Bill Yi [Wed, 11 Oct 2017 20:17:36 +0000 (20:17 +0000)]
Merge "Import translations. DO NOT MERGE" into oc-dev am: e721fbddb5  -s ours
am: 1018a5d4a1  -s ours

Change-Id: I7edb906e7c2e0e76cb4a523d3e70418c57fc14bd

6 years agoMerge "Import translations. DO NOT MERGE" into oc-dev
Bill Yi [Wed, 11 Oct 2017 20:09:44 +0000 (20:09 +0000)]
Merge "Import translations. DO NOT MERGE" into oc-dev
am: e721fbddb5  -s ours

Change-Id: Ic2a012410d13daece6049836eb20f1109011a4a6

6 years agoMerge "Import translations. DO NOT MERGE" into oc-dev
TreeHugger Robot [Wed, 11 Oct 2017 19:59:02 +0000 (19:59 +0000)]
Merge "Import translations. DO NOT MERGE" into oc-dev

6 years agoImport translations. DO NOT MERGE am: 757057a5b5 -s ours am: 6fd592553c -s ours...
Bill Yi [Wed, 11 Oct 2017 19:47:14 +0000 (19:47 +0000)]
Import translations. DO NOT MERGE am: 757057a5b5  -s ours am: 6fd592553c  -s ours am: fcde0eda85  -s ours
am: bb04ab9aa1  -s ours

Change-Id: Ia8b54c4fec8e8fec06bdca38bf948af8a222e8b2

6 years agoImport translations. DO NOT MERGE am: 757057a5b5 -s ours am: 6fd592553c -s ours
Bill Yi [Wed, 11 Oct 2017 19:37:05 +0000 (19:37 +0000)]
Import translations. DO NOT MERGE am: 757057a5b5  -s ours am: 6fd592553c  -s ours
am: fcde0eda85  -s ours

Change-Id: I68381bf426aedbb2a0bb365364f7462ab3bdb585

6 years agoMerge "Document how to handle save on multi-steps activity." into oc-mr1-dev
TreeHugger Robot [Wed, 11 Oct 2017 19:34:45 +0000 (19:34 +0000)]
Merge "Document how to handle save on multi-steps activity." into oc-mr1-dev

6 years agoImport translations. DO NOT MERGE am: 757057a5b5 -s ours
Bill Yi [Wed, 11 Oct 2017 19:27:42 +0000 (19:27 +0000)]
Import translations. DO NOT MERGE am: 757057a5b5  -s ours
am: 6fd592553c  -s ours

Change-Id: I2488e81c41395d3aedf20f02f61dfb9f67c5aa29

6 years agoImport translations. DO NOT MERGE
Bill Yi [Wed, 11 Oct 2017 19:20:06 +0000 (19:20 +0000)]
Import translations. DO NOT MERGE
am: 757057a5b5  -s ours

Change-Id: I35b629a43daf6ef991fc4ec61a4aba933cad0ae2

6 years agoMerge "Send a11y updates for updated notifications" into oc-mr1-dev
TreeHugger Robot [Wed, 11 Oct 2017 18:12:33 +0000 (18:12 +0000)]
Merge "Send a11y updates for updated notifications" into oc-mr1-dev

6 years agoCheck target api version before crashing apps.
Julia Reynolds [Wed, 11 Oct 2017 12:44:46 +0000 (08:44 -0400)]
Check target api version before crashing apps.

All foreground service notifications need to be posted to a valid
notification channel, but only crash apps that don't provide a
valid notification if they target O_MR1+.

Fixes: 66905243
Test: manual, open apps with invalid notifications that do and don't
target O_MR1.

Change-Id: I60897302bf9806cba0e0be365e65c5e8c4ef4806

6 years agoDocument how to handle save on multi-steps activity.
Felipe Leme [Tue, 10 Oct 2017 22:53:04 +0000 (15:53 -0700)]
Document how to handle save on multi-steps activity.

Test: ran 'm -j doc-comment-check-docs' and checked resulting HTML
Fixes: 67650364

Change-Id: Ib9e6c63e537b47a0670fe6bdf5163e8ab80eef0c

6 years agoCanonicalize notification channel sounds for backup
Bernardo Rufino [Tue, 3 Oct 2017 12:55:10 +0000 (13:55 +0100)]
Canonicalize notification channel sounds for backup

Canonicalize for backup and canonicalize and uncanonicalize for restore
(see comment).

Test: Set custom notification sound, make backup, remove notification
sound from device (from Ringtones and make sure to update media content
provider), restore => Observe default instead of random number. Do the
same without removing the sound and observe restores successfully.
Test: runtest systemui-notification
Bug: 66444697

(cherry picked from commit c27bb6ad34fd59161f6460b692ba72c7ede789b6)

Change-Id: I32c186d0d7479b01f6cc67cce9bc5cb66264a064

6 years agoImport translations. DO NOT MERGE
Bill Yi [Wed, 11 Oct 2017 07:21:44 +0000 (00:21 -0700)]
Import translations. DO NOT MERGE

Auto-generated-cl: translation import
Exempt-From-Owner-Approval: translation import

Bug: 64712476
Change-Id: I9b8f913edd4d61427600f47c91644750e6dff3c5

6 years agoMerge "Fixed problem where scrim transition would be cancelled" into oc-mr1-dev
TreeHugger Robot [Wed, 11 Oct 2017 02:55:29 +0000 (02:55 +0000)]
Merge "Fixed problem where scrim transition would be cancelled" into oc-mr1-dev

6 years agoMerge "Log upstream network suspend/resume callbacks" into oc-mr1-dev
TreeHugger Robot [Wed, 11 Oct 2017 01:35:07 +0000 (01:35 +0000)]
Merge "Log upstream network suspend/resume callbacks" into oc-mr1-dev

6 years agoFixed problem where scrim transition would be cancelled
Lucas Dupin [Wed, 11 Oct 2017 00:31:09 +0000 (17:31 -0700)]
Fixed problem where scrim transition would be cancelled

Change-Id: I089e499bfaf524898f5156aecaf098c94b9a1b2b
Fixes: 64077859
Test: send notifications, look at AoD

6 years agoMerge "Add header to DropBox crash reports to indicate instant app crash" into oc...
Vlad Zavidovych [Tue, 10 Oct 2017 23:46:42 +0000 (23:46 +0000)]
Merge "Add header to DropBox crash reports to indicate instant app crash" into oc-mr1-dev

6 years agoMerge "Logs UID that requested a bugreport." into oc-mr1-dev
TreeHugger Robot [Tue, 10 Oct 2017 22:58:25 +0000 (22:58 +0000)]
Merge "Logs UID that requested a bugreport." into oc-mr1-dev

6 years agoMerge "Require DownloadRequest#Builder to have mandatory Source URI" into oc-mr1-dev
Brad Ebinger [Tue, 10 Oct 2017 22:47:18 +0000 (22:47 +0000)]
Merge "Require DownloadRequest#Builder to have mandatory Source URI" into oc-mr1-dev

6 years agoImport translations. DO NOT MERGE
Bill Yi [Tue, 10 Oct 2017 22:31:12 +0000 (15:31 -0700)]
Import translations. DO NOT MERGE

Change-Id: I4d38b1392fb97117f7a403a224fc65a871dcea19
Auto-generated-cl: translation import
Exempt-From-Owner-Approval: translation import

6 years agoMerge "Wrap StackOverflowError in NotFoundException. Bug: 67462465 Test: builds and...
TreeHugger Robot [Tue, 10 Oct 2017 22:22:38 +0000 (22:22 +0000)]
Merge "Wrap StackOverflowError in NotFoundException. Bug: 67462465 Test: builds and tested using faulty apk with recursive drawable. Change-Id: I47691343dae892beb5ed8c1c66c33edefade321e" into oc-mr1-dev

6 years agoRequire DownloadRequest#Builder to have mandatory Source URI
Brad Ebinger [Mon, 9 Oct 2017 18:23:21 +0000 (11:23 -0700)]
Require DownloadRequest#Builder to have mandatory Source URI

This change modifies the API to require that the
DownloadRequest#Builder includes the Source URI as a mandatory,
non-null parameter.

Test: Manual, Telephony Test MBMS app
Bug: 67640102
Merged-In: I25b39008317e333d422cd32a0c6348c010ca280f
Change-Id: I7d44e977314a57fdf063aa233bfb978b48ebf1db

6 years agoWrap StackOverflowError in NotFoundException.
Hyunyoung Song [Tue, 10 Oct 2017 17:35:59 +0000 (10:35 -0700)]
Wrap StackOverflowError in NotFoundException.
Bug: 67462465
Test: builds and tested using faulty apk with recursive drawable.
Change-Id: I47691343dae892beb5ed8c1c66c33edefade321e

6 years agoSend a11y updates for updated notifications
Julia Reynolds [Tue, 10 Oct 2017 17:58:49 +0000 (13:58 -0400)]
Send a11y updates for updated notifications

Unless the updated notification is quiet.

Test: runtest systemui-notification
Change-Id: I0d0b27cedf085c00648d00ed63f252f94d8e5e35
Fixes: 67626983

6 years agoMerge "Ignore non-repeating vibrations in favor of repeating vibrations." into oc...
Michael Wright [Tue, 10 Oct 2017 17:50:56 +0000 (17:50 +0000)]
Merge "Ignore non-repeating vibrations in favor of repeating vibrations." into oc-mr1-dev

6 years agoAdd header to DropBox crash reports to indicate instant app crash
Vlad Zavidovych [Thu, 5 Oct 2017 22:37:13 +0000 (15:37 -0700)]
Add header to DropBox crash reports to indicate instant app crash

Bug: 62372653
Test: runtest -c com.android.server.am.ActivityManagerServiceTest frameworks-services
Change-Id: I5a3d293d4bd7b54b6fcfe26516e51aff15354ded
(cherry picked from commit 9cab93555579dd73607dfa4f526ea3a0df456843)

6 years agoMerge "Fix NPE when removing PIN locked SIM during E911 call" into oc-mr1-dev
Brad Ebinger [Tue, 10 Oct 2017 17:14:35 +0000 (17:14 +0000)]
Merge "Fix NPE when removing PIN locked SIM during E911 call" into oc-mr1-dev

6 years agoMerge "docs: Tiny usage fix ("e-mail" -> "email")" into oc-mr1-dev
Andrew Solovay [Tue, 10 Oct 2017 16:29:06 +0000 (16:29 +0000)]
Merge "docs: Tiny usage fix ("e-mail" -> "email")" into oc-mr1-dev

6 years agoLog upstream network suspend/resume callbacks
Erik Kline [Tue, 10 Oct 2017 02:54:08 +0000 (11:54 +0900)]
Log upstream network suspend/resume callbacks

Also log signal strength while we're at it:

    2017-10-10T14:05:00.968 - [UpstreamNetworkMonitor] preferred upstream type: WIFI
    2017-10-10T14:06:07.654 - [UpstreamNetworkMonitor] upstream network signal strength: -62 -> -67
    2017-10-10T14:06:13.704 - [UpstreamNetworkMonitor] upstream network signal strength: -67 -> -64

Test: as follows
    - built
    - flashed
    - booted
    - runtest frameworks-net passes
Bug: 29337859
Bug: 32163131
Bug: 64976634
Bug: 67396342

Change-Id: Id6e143edc9f5b0256aa637643680f6c8dce70d90

6 years agoMerge "MediaSessionService: Prevent getActiveSessions() from growing infinitely"...
TreeHugger Robot [Tue, 10 Oct 2017 05:44:55 +0000 (05:44 +0000)]
Merge "MediaSessionService: Prevent getActiveSessions() from growing infinitely" into oc-mr1-dev

6 years agodocs: Tiny usage fix ("e-mail" -> "email")
Andrew Solovay [Sat, 7 Oct 2017 02:02:28 +0000 (19:02 -0700)]
docs: Tiny usage fix ("e-mail" -> "email")

I needed to make an edit in this branch to verify part of our docs
process, so I found a Javadoc typo to fix. No code error, just took
out the hyphen in "e-mail" in a Javadoc comment.

Test: make ds-docs
Bug: 67515954
Change-Id: Icb9b2a9df0d7dfd697050735886adec80bc92ff8

6 years agoMerge "docs: Adding API level 27 (Oreo MR1) to the docs build options" into oc-mr1-dev
Andrew Solovay [Tue, 10 Oct 2017 01:19:14 +0000 (01:19 +0000)]
Merge "docs: Adding API level 27 (Oreo MR1) to the docs build options" into oc-mr1-dev

6 years agoMerge "Expose RECORD_AUDIO to Instant Apps" into oc-mr1-dev
TreeHugger Robot [Mon, 9 Oct 2017 23:14:25 +0000 (23:14 +0000)]
Merge "Expose RECORD_AUDIO to Instant Apps" into oc-mr1-dev

6 years agoFix NPE when removing PIN locked SIM during E911 call
Brad Ebinger [Thu, 5 Oct 2017 18:39:06 +0000 (11:39 -0700)]
Fix NPE when removing PIN locked SIM during E911 call

There is the possibility of mCallback being null while
the Keyguard still has a PhoneStateListener registered
for onSimStateChanged callback. This can cause a NPE.

Bug: 66986066
Test: Manual, PIN/PUK locked SIM
Merged-In: Id8ca403a839cff994970c370973a91e8e5688722
Change-Id: I799c9521f787e800e259c3bdce9edee3f844f5f3

6 years agoDon't take a lock on the UI thread.
Makoto Onuki [Sat, 23 Sep 2017 00:22:50 +0000 (17:22 -0700)]
Don't take a lock on the UI thread.

Bug 66719356

Test: adb shell am instrument -w -e class com.android.server.pm.ShortcutManagerTest1 -w com.android.frameworks.servicestests
Test: adb shell am instrument -w -e class com.android.server.pm.ShortcutManagerTest2 -w com.android.frameworks.servicestests
Test: adb shell am instrument -w -e class com.android.server.pm.ShortcutManagerTest3 -w com.android.frameworks.servicestests
Test: adb shell am instrument -w -e class com.android.server.pm.ShortcutManagerTest4 -w com.android.frameworks.servicestests
Test: adb shell am instrument -w -e class com.android.server.pm.ShortcutManagerTest5 -w com.android.frameworks.servicestests
Test: adb shell am instrument -w -e class com.android.server.pm.ShortcutManagerTest6 -w com.android.frameworks.servicestests
Test: adb shell am instrument -w -e class com.android.server.pm.ShortcutManagerTest7 -w com.android.frameworks.servicestests
Test: adb shell am instrument -w -e class com.android.server.pm.ShortcutManagerTest8 -w com.android.frameworks.servicestests
Test: adb shell am instrument -w -e class com.android.server.pm.ShortcutManagerTest9 -w com.android.frameworks.servicestests
Test: adb shell am instrument -w -e class com.android.server.pm.ShortcutManagerTest10 -w com.android.frameworks.servicestests
Test: cts-tradefed run cts-dev --skip-device-info --skip-preconditions --skip-system-status-check com.android.compatibility.common.tradefed.targetprep.NetworkConnectivityChecker -a armeabi-v7a -l INFO -m CtsShortcutManagerTestCases
Test: cts-tradefed run cts-dev --skip-device-info --skip-preconditions --skip-system-status-check com.android.compatibility.common.tradefed.targetprep.NetworkConnectivityChecker -a armeabi-v7a -l INFO -m CtsShortcutHostTestCases
Change-Id: I1045eda4910e3c7d3172038a1efd31cdf9346729

6 years agoMerge "Decreases likelihood of AoD flickering" into oc-mr1-dev
TreeHugger Robot [Mon, 9 Oct 2017 18:01:54 +0000 (18:01 +0000)]
Merge "Decreases likelihood of AoD flickering" into oc-mr1-dev

6 years agoExpose RECORD_AUDIO to Instant Apps
Chad Brubaker [Mon, 9 Oct 2017 17:50:46 +0000 (10:50 -0700)]
Expose RECORD_AUDIO to Instant Apps

This runtime permission should have been exposed to Instant Apps but
incorrectly was not

Bug: 67578813
Test: cts-tradefed run cts -m CtsPermission2TestCases
Change-Id: Icad01cc8e99f52c6e638f54aaf78e9cc56475fc4

6 years agoAlways synchronize the OEM unlock allowed bit to the FRP partition
Rubin Xu [Fri, 6 Oct 2017 11:07:32 +0000 (12:07 +0100)]
Always synchronize the OEM unlock allowed bit to the FRP partition

For devices using OEMLock HAL, OEM unlock allowed bit is maintained by the HAL.
However PersistentDataBlockService will only look at the OEM unlock allowed bit
on the pst partition to make sure FRP data is cleared on a unlockable device.
As a short term fix, make sure the OEM unlock allowed bit on both the HAL and pst
partition is always in sync.

Bug: 67043266
Test: On walleye/taimen, add an account, enable OEM unlock, factory reset
      via fastboot, and observe FRP is not enforced.

Change-Id: Id4a0d81d7a424e17c2751e7e65582b51c14bd073

6 years agoIgnore non-repeating vibrations in favor of repeating vibrations.
Michael Wright [Thu, 5 Oct 2017 18:04:14 +0000 (14:04 -0400)]
Ignore non-repeating vibrations in favor of repeating vibrations.

This way we don't inadvertently cancel things like alarms and ring
tone vibrations in favor of one shot vibrations, which are typically
shorter and meant to be feedback rather than attention getting.

Test: start alarm, hit home button, see alarm vibration isn't cancelled.
Bug: 65621937
Change-Id: Ib7fcaea7bc7f101d738b72112c8d5096c4b34ca2

6 years agoMerge "Import translations. DO NOT MERGE" into oc-dev am: 2758e3af09 -s ours
Bill Yi [Sun, 8 Oct 2017 22:57:14 +0000 (22:57 +0000)]
Merge "Import translations. DO NOT MERGE" into oc-dev am: 2758e3af09  -s ours
am: 748d6e3404  -s ours

Change-Id: I30d9c967e92847e096a29761cb275e3dcd631789

6 years agoMerge "Import translations. DO NOT MERGE" into oc-dev
Bill Yi [Sun, 8 Oct 2017 22:45:57 +0000 (22:45 +0000)]
Merge "Import translations. DO NOT MERGE" into oc-dev
am: 2758e3af09  -s ours

Change-Id: I84cd6ad222b419aee8c31c26a07922dd5c7d6746

6 years agoMerge "Import translations. DO NOT MERGE" into oc-mr1-dev
TreeHugger Robot [Sun, 8 Oct 2017 22:34:13 +0000 (22:34 +0000)]
Merge "Import translations. DO NOT MERGE" into oc-mr1-dev

6 years agoMerge "Import translations. DO NOT MERGE" into oc-dev
TreeHugger Robot [Sun, 8 Oct 2017 22:32:15 +0000 (22:32 +0000)]
Merge "Import translations. DO NOT MERGE" into oc-dev

6 years agoMerge "Import translations. DO NOT MERGE" into oc-mr1-dev
TreeHugger Robot [Sun, 8 Oct 2017 22:30:10 +0000 (22:30 +0000)]
Merge "Import translations. DO NOT MERGE" into oc-mr1-dev

6 years agoImport translations. DO NOT MERGE
Bill Yi [Sun, 8 Oct 2017 16:14:18 +0000 (09:14 -0700)]
Import translations. DO NOT MERGE

Auto-generated-cl: translation import
Exempt-From-Owner-Approval: translation import

Bug: 64712476
Change-Id: Id495007a4f0069772a79e8abbd5e1a8bcfe6db92

6 years agoImport translations. DO NOT MERGE
Bill Yi [Sun, 8 Oct 2017 16:01:34 +0000 (09:01 -0700)]
Import translations. DO NOT MERGE

Auto-generated-cl: translation import
Exempt-From-Owner-Approval: translation import

Bug: 64712476
Change-Id: I317a9c13c04792c41f276258c095813298379366

6 years agoMerge "Import translations. DO NOT MERGE" into oc-dr1-dev
Bill Yi [Sun, 8 Oct 2017 14:57:18 +0000 (14:57 +0000)]
Merge "Import translations. DO NOT MERGE" into oc-dr1-dev
am: 1c5bd422fd  -s ours

Change-Id: I44be0362b31a91c724b7d5c8da7778bbdfc30990

6 years agoMerge "Import translations. DO NOT MERGE" into oc-mr1-dev
TreeHugger Robot [Sun, 8 Oct 2017 14:52:12 +0000 (14:52 +0000)]
Merge "Import translations. DO NOT MERGE" into oc-mr1-dev

6 years agoMerge "Import translations. DO NOT MERGE" into oc-dr1-dev
TreeHugger Robot [Sun, 8 Oct 2017 14:50:51 +0000 (14:50 +0000)]
Merge "Import translations. DO NOT MERGE" into oc-dr1-dev

6 years agoImport translations. DO NOT MERGE am: 80d87da085 -s ours am: d250d3aa34 -s ours...
Bill Yi [Sun, 8 Oct 2017 14:23:51 +0000 (14:23 +0000)]
Import translations. DO NOT MERGE am: 80d87da085  -s ours am: d250d3aa34  -s ours am: 09e6f1457b  -s ours
am: 581e056425  -s ours

Change-Id: I2f31ca4fff4afedcabc66f2492c7252175c42733

6 years agoImport translations. DO NOT MERGE am: 80d87da085 -s ours am: d250d3aa34 -s ours
Bill Yi [Sun, 8 Oct 2017 14:16:28 +0000 (14:16 +0000)]
Import translations. DO NOT MERGE am: 80d87da085  -s ours am: d250d3aa34  -s ours
am: 09e6f1457b  -s ours

Change-Id: I7010ae3bb92d9ec2adaa9eba4509ad2b713ecee7

6 years agoImport translations. DO NOT MERGE am: 80d87da085 -s ours
Bill Yi [Sun, 8 Oct 2017 14:08:20 +0000 (14:08 +0000)]
Import translations. DO NOT MERGE am: 80d87da085  -s ours
am: d250d3aa34  -s ours

Change-Id: I8b02ede43b1430713761f1ff89c7c864ef6ae4a7

6 years agoImport translations. DO NOT MERGE
Bill Yi [Sun, 8 Oct 2017 14:00:50 +0000 (14:00 +0000)]
Import translations. DO NOT MERGE
am: 80d87da085  -s ours

Change-Id: I7b560ea83669c408725cf2e7d6e1a7c3d7eb191f

6 years agoImport translations. DO NOT MERGE
Bill Yi [Sun, 8 Oct 2017 13:22:24 +0000 (06:22 -0700)]
Import translations. DO NOT MERGE

Auto-generated-cl: translation import
Exempt-From-Owner-Approval: translation import

Bug: 64712476
Change-Id: Ib770e076ec7294e42933896d1efb298912f1526c

6 years agoImport translations. DO NOT MERGE
Bill Yi [Sun, 8 Oct 2017 12:20:08 +0000 (05:20 -0700)]
Import translations. DO NOT MERGE

Auto-generated-cl: translation import
Exempt-From-Owner-Approval: translation import

Bug: 64712476
Change-Id: I4940cd7a3d5708a6e8091aad241320bf1eb15c8c

6 years agoImport translations. DO NOT MERGE
Bill Yi [Sun, 8 Oct 2017 12:07:09 +0000 (05:07 -0700)]
Import translations. DO NOT MERGE

Auto-generated-cl: translation import
Exempt-From-Owner-Approval: translation import

Bug: 64712476
Change-Id: I5d2a9d7f5d6f92f18b5433594c37cdecd9f8fe0c

6 years agoImport translations. DO NOT MERGE
Bill Yi [Sun, 8 Oct 2017 07:08:47 +0000 (07:08 +0000)]
Import translations. DO NOT MERGE
am: 87c4d55ccb  -s ours

Change-Id: I088ba3df3f4339070c1f26929815b3827403dd18

6 years agoMerge "Import translations. DO NOT MERGE" into oc-mr1-dev
TreeHugger Robot [Sun, 8 Oct 2017 06:59:49 +0000 (06:59 +0000)]
Merge "Import translations. DO NOT MERGE" into oc-mr1-dev

6 years agoImport translations. DO NOT MERGE
Bill Yi [Sun, 8 Oct 2017 04:49:36 +0000 (21:49 -0700)]
Import translations. DO NOT MERGE

Change-Id: Ibfe6303b4d78d1ac0c8a0dbb235c6be683504018
Auto-generated-cl: translation import
Exempt-From-Owner-Approval: translation import

6 years agoImport translations. DO NOT MERGE
Bill Yi [Sun, 8 Oct 2017 00:23:29 +0000 (17:23 -0700)]
Import translations. DO NOT MERGE

Auto-generated-cl: translation import
Exempt-From-Owner-Approval: translation import

Bug: 64712476
Change-Id: I944d5c1ac050fe65d777b815adb59f5d6536811a

6 years agoImport translations. DO NOT MERGE
Bill Yi [Sun, 8 Oct 2017 00:14:24 +0000 (17:14 -0700)]
Import translations. DO NOT MERGE

Auto-generated-cl: translation import
Exempt-From-Owner-Approval: translation import

Bug: 64712476
Change-Id: If025d5171c5b4109c98d13b8cf6df3073f2687e5

6 years agoMerge "Fixed an issue where added icons were white in multiwindow" into oc-mr1-dev
TreeHugger Robot [Sat, 7 Oct 2017 17:34:40 +0000 (17:34 +0000)]
Merge "Fixed an issue where added icons were white in multiwindow" into oc-mr1-dev

6 years agoMerge "Add keyguard state as a gate for VR Mode." into oc-mr1-dev
TreeHugger Robot [Sat, 7 Oct 2017 02:37:06 +0000 (02:37 +0000)]
Merge "Add keyguard state as a gate for VR Mode." into oc-mr1-dev

6 years agodocs: Adding API level 27 (Oreo MR1) to the docs build options
Andrew Solovay [Fri, 6 Oct 2017 21:27:20 +0000 (14:27 -0700)]
docs: Adding API level 27 (Oreo MR1) to the docs build options

We also need to modify the server settings to add the watermark to
docs with API level 27.

Test: make ds-docs
Bug: 67459392
Change-Id: I7c0f74924a5b39dede4c324069ff05e26eec5413

6 years agoMerge "Add permissions for LiveTv (AOSP)" into oc-mr1-dev
TreeHugger Robot [Sat, 7 Oct 2017 01:02:50 +0000 (01:02 +0000)]
Merge "Add permissions for LiveTv (AOSP)" into oc-mr1-dev

6 years agoMerge "Update ANOMALY_DETECTION_CONSTANTS javadoc." into oc-mr1-dev
TreeHugger Robot [Sat, 7 Oct 2017 00:25:13 +0000 (00:25 +0000)]
Merge "Update ANOMALY_DETECTION_CONSTANTS javadoc." into oc-mr1-dev

6 years agoMerge "Add comment about flag VIRTUAL_DISPLAY_FLAG_DESTROY_CONTENT_ON_REMOVAL as...
TreeHugger Robot [Fri, 6 Oct 2017 23:29:32 +0000 (23:29 +0000)]
Merge "Add comment about flag VIRTUAL_DISPLAY_FLAG_DESTROY_CONTENT_ON_REMOVAL as recommended." into oc-mr1-dev

6 years agoAdd keyguard state as a gate for VR Mode.
Santos Cordon [Thu, 5 Oct 2017 18:31:15 +0000 (11:31 -0700)]
Add keyguard state as a gate for VR Mode.

Problem: When the user toggles power button while in VR, they will be
taken to a black VR screen that occludes the keyguard.

VRManager previously used wakefulness and screen off as gates for VR Mode. However,
the keyguard state can be on or off when the device is awake so we need
to listen to the keyguard state as well.

Change:
1) Have ActivityManagerService tell VrManagerService about the keyguard
state the same as it does with wakefulness.
2) Stop applying any pending states when the device comes out of
sleep/screen-off/keyguard to force user into putting-headset-on (DON) UX
in those situations.

Bug: 66696304
Test: Manual - toggle device's power button and see logs of keyguard.
Test with all keyguard types.

Change-Id: I4ae03cb1c8c13acdc8cd11839f178bc8d8f6f515

6 years agoDecreases likelihood of AoD flickering
Lucas Dupin [Fri, 6 Oct 2017 22:21:57 +0000 (15:21 -0700)]
Decreases likelihood of AoD flickering

The transition from display power modes isn't tightly coupled
to the AoD lifecycle. We rely on a timeout to show and hide
the sysui scrim. In this case we increased it.

Change-Id: I13a0d33205c9f904afced63f231176151aee15c4
Fixes: 64077859
Test: receive notificaition in AoD, observe.

6 years agoMerge "Restrict sending new intent to one invocation." into oc-mr1-dev
Bryce Lee [Fri, 6 Oct 2017 21:58:50 +0000 (21:58 +0000)]
Merge "Restrict sending new intent to one invocation." into oc-mr1-dev

6 years agoUpdate ANOMALY_DETECTION_CONSTANTS javadoc.
Andrew Sapperstein [Fri, 6 Oct 2017 01:23:13 +0000 (18:23 -0700)]
Update ANOMALY_DETECTION_CONSTANTS javadoc.

Adds more of the supported parameters including the new
wakeup blacklist parameter.

Bug: 67000019
Test: is comment change
Change-Id: Iee80b5cbf7972860e87efd5551bce962a3fa03c5

6 years agoAdd permissions for LiveTv (AOSP)
Shubang [Fri, 6 Oct 2017 01:31:00 +0000 (18:31 -0700)]
Add permissions for LiveTv (AOSP)

It crashes without the permissions

Bug: 67474061
Test: make; flashall; install and open LiveTv;
Change-Id: Ifec8bfb4ee93ac6b9189a9c337fdd2ef9ec34537

6 years agoFixed an issue where added icons were white in multiwindow
Selim Cinek [Fri, 6 Oct 2017 20:37:32 +0000 (13:37 -0700)]
Fixed an issue where added icons were white in multiwindow

Because it wasn't laid out yet, icons would appear white.

Change-Id: I9338966299de253f36ae325553e82b76defe3b9d
Fixes: 66711268
Test: add icon with light statusbar in multiwindow, icon looks normal

6 years agoAdd comment about flag VIRTUAL_DISPLAY_FLAG_DESTROY_CONTENT_ON_REMOVAL
rongliu [Fri, 6 Oct 2017 18:01:02 +0000 (11:01 -0700)]
Add comment about flag VIRTUAL_DISPLAY_FLAG_DESTROY_CONTENT_ON_REMOVAL
as recommended.

Change-Id: I3778eed6f91e3ebf70683f40389c605648444b99
Bug: 67420451
Test: Only add comment.

6 years agoMerge "Stop explicitly using kCallerPasses_Ownership" into nyc-dev am: cfe2352d88...
Leon Scroggins III [Fri, 6 Oct 2017 17:49:02 +0000 (17:49 +0000)]
Merge "Stop explicitly using kCallerPasses_Ownership" into nyc-dev am: cfe2352d88 am: 2399d935bc am: f32424b90d am: 54c2cbb0f9 am: 85a68d9e71  -s ours am: d9c818dce4  -s ours
am: 497520a1e8  -s ours

Change-Id: I636624656ef7f6b51b334f524554c0cd40833c04

6 years agoMerge "Stop explicitly using kCallerPasses_Ownership" into nyc-dev am: cfe2352d88...
Leon Scroggins III [Fri, 6 Oct 2017 17:28:40 +0000 (17:28 +0000)]
Merge "Stop explicitly using kCallerPasses_Ownership" into nyc-dev am: cfe2352d88 am: 2399d935bc am: f32424b90d am: 54c2cbb0f9 am: 85a68d9e71  -s ours
am: d9c818dce4  -s ours

Change-Id: Ib0e20e79c8d9708845aede08f86d17bb08855642

6 years agoMerge "Stop explicitly using kCallerPasses_Ownership" into nyc-dev am: cfe2352d88...
Leon Scroggins III [Fri, 6 Oct 2017 17:10:50 +0000 (17:10 +0000)]
Merge "Stop explicitly using kCallerPasses_Ownership" into nyc-dev am: cfe2352d88 am: 2399d935bc am: f32424b90d am: 54c2cbb0f9
am: 85a68d9e71  -s ours

Change-Id: I09f8c134edef5c4cf67805faaf8cd56cae65ed69

6 years agoMerge "Stop explicitly using kCallerPasses_Ownership" into nyc-dev am: cfe2352d88...
Leon Scroggins III [Fri, 6 Oct 2017 16:53:46 +0000 (16:53 +0000)]
Merge "Stop explicitly using kCallerPasses_Ownership" into nyc-dev am: cfe2352d88 am: 2399d935bc am: f32424b90d
am: 54c2cbb0f9

Change-Id: Iae83cebe615d0df3a6f2c6bdee6f8002d3ae82b0

6 years agoRestrict sending new intent to one invocation.
Bryce Lee [Fri, 6 Oct 2017 00:20:25 +0000 (17:20 -0700)]
Restrict sending new intent to one invocation.

A special condition, where the new intent is delivered outside
the normal logic flow, was extended to included documents as well.
This can lead to any intent marked with the document launch flag
sending the intent in this block as well as the normal flow.

This changelist restricts the number of times the intent can be
sent to once during each activity start.

Change-Id: If1e62527d260cbe5ff170680695b03d9de532c09
Fixes: 67367621
Test: open Photos link in gmail twice
Test: cts/hostsidetests/services/activityandwindowmanager/util/run-test CtsAppTestCases android.app.cts.NewDocumentTest

6 years agoMerge "Stop explicitly using kCallerPasses_Ownership" into nyc-dev am: cfe2352d88...
Leon Scroggins III [Fri, 6 Oct 2017 16:32:10 +0000 (16:32 +0000)]
Merge "Stop explicitly using kCallerPasses_Ownership" into nyc-dev am: cfe2352d88 am: 2399d935bc
am: f32424b90d

Change-Id: I405bee24b11319430e3490f3299d9c8b6438e407

6 years agoMerge "Stop explicitly using kCallerPasses_Ownership" into nyc-dev am: cfe2352d88
Leon Scroggins III [Fri, 6 Oct 2017 16:18:49 +0000 (16:18 +0000)]
Merge "Stop explicitly using kCallerPasses_Ownership" into nyc-dev am: cfe2352d88
am: 2399d935bc

Change-Id: Ib219c4c5299b681b6f3858cb67c70a7fd9110f20

6 years agoMerge "Fixed a bug where the order of the icons was wrong" into oc-mr1-dev
Selim Cinek [Fri, 6 Oct 2017 16:09:29 +0000 (16:09 +0000)]
Merge "Fixed a bug where the order of the icons was wrong" into oc-mr1-dev

6 years agoMerge "Stop explicitly using kCallerPasses_Ownership" into nyc-dev
Leon Scroggins III [Fri, 6 Oct 2017 16:06:34 +0000 (16:06 +0000)]
Merge "Stop explicitly using kCallerPasses_Ownership" into nyc-dev
am: cfe2352d88

Change-Id: Id7d59d95e8f5dfa68f7ff55ca5729a11a1fdf1d0

6 years agoMerge "AudioService: log focus changes and limit focus stack size" into oc-mr1-dev
Jean-Michel Trivi [Fri, 6 Oct 2017 15:57:16 +0000 (15:57 +0000)]
Merge "AudioService: log focus changes and limit focus stack size" into oc-mr1-dev

6 years agoMerge "Stop explicitly using kCallerPasses_Ownership" into nyc-dev
TreeHugger Robot [Fri, 6 Oct 2017 15:45:37 +0000 (15:45 +0000)]
Merge "Stop explicitly using kCallerPasses_Ownership" into nyc-dev

6 years agoMerge "Add a flag to virtual display to indicates that content on this display need...
TreeHugger Robot [Fri, 6 Oct 2017 14:38:42 +0000 (14:38 +0000)]
Merge "Add a flag to virtual display to indicates that content on this display need to be destroyed once the display is removed. Then apply this flag to VR virtual display." into oc-mr1-dev

6 years agoMerge "Log NAT update descriptions when receiving netlink errors" into oc-mr1-dev
TreeHugger Robot [Fri, 6 Oct 2017 07:21:43 +0000 (07:21 +0000)]
Merge "Log NAT update descriptions when receiving netlink errors" into oc-mr1-dev

6 years agoMerge "Add AOD metrics in batterystats" into oc-mr1-dev
Mike Ma [Fri, 6 Oct 2017 07:01:36 +0000 (07:01 +0000)]
Merge "Add AOD metrics in batterystats" into oc-mr1-dev

6 years agoMerge "Use rotation from MediaMetadataRetriever directly" into oc-mr1-dev
TreeHugger Robot [Fri, 6 Oct 2017 05:20:14 +0000 (05:20 +0000)]
Merge "Use rotation from MediaMetadataRetriever directly" into oc-mr1-dev

6 years agoLog NAT update descriptions when receiving netlink errors
Erik Kline [Fri, 6 Oct 2017 03:56:55 +0000 (12:56 +0900)]
Log NAT update descriptions when receiving netlink errors

Test: as follows
    - built
    - flashed
    - booted
    - runtest frameworks-net passes
    - new logging messages observed

    2017-10-06T13:15:25.190 - [OffloadController] ERROR Error updating NAT conntrack entry >TCP (192.168.43.222, 58054) -> (198.35.26.112, 443)<: android.system.ErrnoException: NetlinkErrorMessage{...
Bug: 29337859
Bug: 32163131
Bug: 64976634
Bug: 67396342

Change-Id: Ie05d4e6588d75f8a9798f40b68a317e24b3b5050

6 years agoAdd AOD metrics in batterystats
Mike Ma [Tue, 19 Sep 2017 23:06:03 +0000 (16:06 -0700)]
Add AOD metrics in batterystats

Fixes: 64899521
Test: manual - flash build, reset batteryStats, use device > 1 hr
with alternating pattern between screen on/off/AOD. Dump stats, check
all screen related stats look normal, esp. record matches actual time
spent in each screen state. In raw bugreport:
Search "amount discharged" for % discharge;
Search "Screen on/off/doze discharge" for mAh discharge;
Search "time on battery" for up/real time in each state.

Test: Added two unit tests for note AOD screen state

Merged-In: I7193a36751124dd380818b2b665303c0f0d8c984
Change-Id: I51cead7f92abd9e4c620f7dfde393993cdad494e

6 years agoFixed a bug where the order of the icons was wrong
Selim Cinek [Fri, 6 Oct 2017 00:12:18 +0000 (17:12 -0700)]
Fixed a bug where the order of the icons was wrong

Because the normal order would not factor in the
yTranslation.

Change-Id: Ie37b69ee5187c4f4bd58f90d8297cf73b7a4ed53
Fixes: 67017075
Test: swipe through notification in statusbar, observe right ordering

6 years agoAvoid spaces in the trace file names.
gopinath [Sat, 16 Sep 2017 01:09:02 +0000 (18:09 -0700)]
Avoid spaces in the trace file names.

Having spaces in the trace file names introduces slashes in the
file names and not able to pull the file names with the slashes
from the device.So avoid having spaces while constructing the
trace file names.

Bug : b/65737738

Change-Id: Ie1971566586f77d18b17722ce0e3cc9ef3ebfdd3
(cherry picked from commit 3f04fb1bcf168e5ea8aae090f86b9122189c6390)

6 years agoUse rotation from MediaMetadataRetriever directly
Chong Zhang [Thu, 5 Oct 2017 22:12:36 +0000 (15:12 -0700)]
Use rotation from MediaMetadataRetriever directly

MediaMetadataRetriever now reports rotation in clockwise,
no longer need to translate.

bug: 67470228

Test: verified rotation using test app attached in bug
Change-Id: Ifebcf25ea302477818e2e03db1e55525db985e67

6 years agoAudioService: log focus changes and limit focus stack size
Jean-Michel Trivi [Thu, 5 Oct 2017 19:19:23 +0000 (12:19 -0700)]
AudioService: log focus changes and limit focus stack size

Log audio focus request and abandon commands.
Limit the size of the audio focus stack to prevent malicious
  applications trying to run the process out of memory.

Test: use media apps and speech reco, check dumpsys audio
Bug: 67055749
Change-Id: I529529fe40f33a8f67c64c3c61ba22d9530fb4d9