OSDN Git Service

android-x86/frameworks-base.git
6 years agoMerge "Ensure profile-specific PiP notification is shown." into oc-mr1-dev
Winson Chung [Thu, 21 Sep 2017 16:38:16 +0000 (16:38 +0000)]
Merge "Ensure profile-specific PiP notification is shown." into oc-mr1-dev

6 years agoImport translations. DO NOT MERGE am: de5eefa935 -s ours am: 9d008286c7 -s ours...
Bill Yi [Thu, 21 Sep 2017 16:19:40 +0000 (16:19 +0000)]
Import translations. DO NOT MERGE am: de5eefa935  -s ours am: 9d008286c7  -s ours am: b4e9b3f651  -s ours
am: 7139a4dd5e  -s ours

Change-Id: I7192304b8aaad74dfab22571892b66e8c84a9736

6 years agoImport translations. DO NOT MERGE am: de5eefa935 -s ours am: 9d008286c7 -s ours
Bill Yi [Thu, 21 Sep 2017 16:13:13 +0000 (16:13 +0000)]
Import translations. DO NOT MERGE am: de5eefa935  -s ours am: 9d008286c7  -s ours
am: b4e9b3f651  -s ours

Change-Id: I8b727efb19b68f7adfc1f3eda4240e70551b8102

6 years agoImport translations. DO NOT MERGE am: 50e19c566e -s ours
Bill Yi [Thu, 21 Sep 2017 16:11:12 +0000 (16:11 +0000)]
Import translations. DO NOT MERGE am: 50e19c566e  -s ours
am: e708378dc9  -s ours

Change-Id: Ifdce36eb6dbb6c0af7a1f65d9142e77b05a2f5da

6 years agoImport translations. DO NOT MERGE
Bill Yi [Thu, 21 Sep 2017 16:06:29 +0000 (16:06 +0000)]
Import translations. DO NOT MERGE
am: 50e19c566e  -s ours

Change-Id: I82b5f21b00ed2e75a74859ffe70560e6999902a6

6 years agoImport translations. DO NOT MERGE am: de5eefa935 -s ours
Bill Yi [Thu, 21 Sep 2017 16:04:11 +0000 (16:04 +0000)]
Import translations. DO NOT MERGE am: de5eefa935  -s ours
am: 9d008286c7  -s ours

Change-Id: I5535968d3817e8c09e9d5e3e0a75180d29dbe303

6 years agoImport translations. DO NOT MERGE
Bill Yi [Thu, 21 Sep 2017 15:56:53 +0000 (15:56 +0000)]
Import translations. DO NOT MERGE
am: de5eefa935  -s ours

Change-Id: I53abfc53a067bca1cec279285f59185b8b18a64e

6 years agoImport translations. DO NOT MERGE
Bill Yi [Thu, 21 Sep 2017 10:12:01 +0000 (03:12 -0700)]
Import translations. DO NOT MERGE

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

Bug: 64712476
Change-Id: I0e4df67a950b6e0d541548c01f0812141102fb91

6 years agoMerge "Use noteOpNoThrow instead in AMS" into oc-mr1-dev
TreeHugger Robot [Thu, 21 Sep 2017 09:17:12 +0000 (09:17 +0000)]
Merge "Use noteOpNoThrow instead in AMS" into oc-mr1-dev

6 years agoUse noteOpNoThrow instead in AMS
Tony Mak [Wed, 20 Sep 2017 20:23:48 +0000 (21:23 +0100)]
Use noteOpNoThrow instead in AMS

We just want a boolean result to tell whether a package has certain permissions,
we do not expect the check to throw SecurityException, so let's use
noteOpNoThrow instead.

Fixes: 65912167

Test: Disable Gmail, install a test app and run setPassword. No crash.
Change-Id: Ifc6e7fbbae1121bda329f0a291522af9698959db

6 years agoImport translations. DO NOT MERGE
Bill Yi [Thu, 21 Sep 2017 03:12:47 +0000 (20:12 -0700)]
Import translations. DO NOT MERGE

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

6 years agoMerge "Revert "Increased the text size for colorized notifications"" into oc-mr1-dev
TreeHugger Robot [Thu, 21 Sep 2017 01:29:53 +0000 (01:29 +0000)]
Merge "Revert "Increased the text size for colorized notifications"" into oc-mr1-dev

6 years agoMerge "have OffloaderController store and re-push more state" into oc-mr1-dev
TreeHugger Robot [Wed, 20 Sep 2017 23:28:08 +0000 (23:28 +0000)]
Merge "have OffloaderController store and re-push more state" into oc-mr1-dev

6 years agoRevert "Increased the text size for colorized notifications"
Selim Cinek [Wed, 20 Sep 2017 22:52:29 +0000 (22:52 +0000)]
Revert "Increased the text size for colorized notifications"

This reverts commit 299b3302ef6ea5094f094e92f384853aa012172b.

Change-Id: Id887bd37f8f7b0c1ff48c339c9d59491f65cae84
Bug: 35925915
Fixes: 66067974

6 years agoMerge "Track the earliest alarm for exiting DND." into oc-mr1-dev
TreeHugger Robot [Wed, 20 Sep 2017 20:02:05 +0000 (20:02 +0000)]
Merge "Track the earliest alarm for exiting DND." into oc-mr1-dev

6 years agoMerge "DND apps might not have a service, and that's ok" into oc-mr1-dev
TreeHugger Robot [Wed, 20 Sep 2017 20:01:33 +0000 (20:01 +0000)]
Merge "DND apps might not have a service, and that's ok" into oc-mr1-dev

6 years agoMerge "Convert ICarrierService to oneway." into oc-mr1-dev
Jonathan Basseri [Wed, 20 Sep 2017 19:16:24 +0000 (19:16 +0000)]
Merge "Convert ICarrierService to oneway." into oc-mr1-dev

6 years agoMerge "LegacyCamera: fix wrong class name in JNI" into oc-mr1-dev
TreeHugger Robot [Wed, 20 Sep 2017 19:06:01 +0000 (19:06 +0000)]
Merge "LegacyCamera: fix wrong class name in JNI" into oc-mr1-dev

6 years agoMerge "Fix STOPSHIP in SyncManager" into oc-mr1-dev
TreeHugger Robot [Wed, 20 Sep 2017 17:27:40 +0000 (17:27 +0000)]
Merge "Fix STOPSHIP in SyncManager" into oc-mr1-dev

6 years agoAudioService: reduce EU volume warning thresdhold for USB headsets
Eric Laurent [Wed, 20 Sep 2017 16:54:47 +0000 (16:54 +0000)]
AudioService: reduce EU volume warning thresdhold for USB headsets
am: 630f37a4ad

Change-Id: Ied24bdcddc54255c3a287ffa871148177ad097f7

6 years agoMerge "Fix compiler filter for downgrading unused apps" into oc-mr1-dev
Shubham Ajmera [Wed, 20 Sep 2017 16:13:00 +0000 (16:13 +0000)]
Merge "Fix compiler filter for downgrading unused apps" into oc-mr1-dev

6 years agoMerge "packagemanager_native access to package installer, version" into oc-mr1-dev
Ray Essick [Wed, 20 Sep 2017 16:08:47 +0000 (16:08 +0000)]
Merge "packagemanager_native access to package installer, version" into oc-mr1-dev

6 years agoMerge "DND alert info set to INVISIBLE (not GONE) to retain formatting." into oc...
TreeHugger Robot [Wed, 20 Sep 2017 16:02:46 +0000 (16:02 +0000)]
Merge "DND alert info set to INVISIBLE (not GONE) to retain formatting." into oc-mr1-dev

6 years agoMerge "Fix reliability triggering" into oc-mr1-dev
Neil Fuller [Wed, 20 Sep 2017 15:36:47 +0000 (15:36 +0000)]
Merge "Fix reliability triggering" into oc-mr1-dev

6 years agoMerge "Fail gracefully if password reset token is invalidated" into oc-mr1-dev
Rubin Xu [Wed, 20 Sep 2017 15:15:42 +0000 (15:15 +0000)]
Merge "Fail gracefully if password reset token is invalidated" into oc-mr1-dev

6 years agoMerge "Handle null left and right tab strip drawables" into oc-mr1-dev
TreeHugger Robot [Wed, 20 Sep 2017 13:59:05 +0000 (13:59 +0000)]
Merge "Handle null left and right tab strip drawables" into oc-mr1-dev

6 years agoTrack the earliest alarm for exiting DND.
Julia Reynolds [Tue, 19 Sep 2017 17:10:26 +0000 (13:10 -0400)]
Track the earliest alarm for exiting DND.

Test: manual
Change-Id: Ifa7ae6b6f3f8ff2c7cc8382ab73bf2bc89cd085e
Fixes: 65332502

6 years agoDND apps might not have a service, and that's ok
Julia Reynolds [Fri, 15 Sep 2017 18:26:32 +0000 (14:26 -0400)]
DND apps might not have a service, and that's ok

Also add logging for permission changes.

Bug: 64969998
Test: manual; trigger backup and verify dnd apps still have dnd
access.
Change-Id: Iefa14a6a1130fb4cc823fe6979f6b5a7b212ca4b

6 years agoMerge "Fix window visibility during layout" into oc-mr1-dev
TreeHugger Robot [Wed, 20 Sep 2017 03:17:44 +0000 (03:17 +0000)]
Merge "Fix window visibility during layout" into oc-mr1-dev

6 years agoMerge "Partially revert ce54397368dc98182d7b4eb2ff3c142bbd87e39d" into oc-mr1-dev
TreeHugger Robot [Wed, 20 Sep 2017 03:11:22 +0000 (03:11 +0000)]
Merge "Partially revert ce54397368dc98182d7b4eb2ff3c142bbd87e39d" into oc-mr1-dev

6 years agoMerge "Select a system audio route only when needed" into oc-mr1-dev
TreeHugger Robot [Wed, 20 Sep 2017 02:54:45 +0000 (02:54 +0000)]
Merge "Select a system audio route only when needed" into oc-mr1-dev

6 years agohave OffloaderController store and re-push more state
Erik Kline [Tue, 19 Sep 2017 08:56:10 +0000 (17:56 +0900)]
have OffloaderController store and re-push more state

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

6 years agoMerge changes Ied9d0cec,I3087f446,Ibe706872 into oc-mr1-dev
Hugo Benichi [Wed, 20 Sep 2017 00:58:35 +0000 (00:58 +0000)]
Merge changes Ied9d0cec,I3087f446,Ibe706872 into oc-mr1-dev

* changes:
  Wakeup packet events: addressing a few comments
  Connectivity metrics: add WakeupStats events
  Connectivity metrics: collect NFLOG wakeup events

6 years agoMerge "Handle night display state when timezone changes" into oc-mr1-dev
Christine Franks [Wed, 20 Sep 2017 00:23:28 +0000 (00:23 +0000)]
Merge "Handle night display state when timezone changes" into oc-mr1-dev

6 years agoMerge "Handle autofill auth scenarios where the FillContext cannot be retrieved:...
TreeHugger Robot [Wed, 20 Sep 2017 00:19:03 +0000 (00:19 +0000)]
Merge "Handle autofill auth scenarios where the FillContext cannot be retrieved:" into oc-mr1-dev

6 years agoMerge "Handle showWhenLocked on secondary displays" into oc-mr1-dev
David Stevens [Wed, 20 Sep 2017 00:09:04 +0000 (00:09 +0000)]
Merge "Handle showWhenLocked on secondary displays" into oc-mr1-dev

6 years agoMerge "Consider task's root activity when determining if resizable." into oc-mr1-dev
Bryce Lee [Tue, 19 Sep 2017 23:21:54 +0000 (23:21 +0000)]
Merge "Consider task's root activity when determining if resizable." into oc-mr1-dev

6 years agoConsider task's root activity when determining if resizable.
Bryce Lee [Fri, 15 Sep 2017 00:06:41 +0000 (17:06 -0700)]
Consider task's root activity when determining if resizable.

We consider an activity resizable if the root activity of the its
parent task is resizable. This changelist adds this condition to
consideration.

Change-Id: I4162ff7eb6cad3f4a3f9fdf35ccc0b0d2383ff15
Fixes: 65668913
Test: bit FrameworksServicesTests:com.android.server.am.ActivityRecordTests#testCanBeLaunchedOnDisplay
Test: cts/hostsidetests/services/activityandwindowmanager/util/run-test CtsServicesHostTestCases android.server.cts.ActivityManagerDisplayTests#testLaunchNonResizeableActivityFromSecondaryDisplaySameTask

6 years agoMerge "Autofill optimization: don't contact server when session is finished." into...
TreeHugger Robot [Tue, 19 Sep 2017 22:47:16 +0000 (22:47 +0000)]
Merge "Autofill optimization: don't contact server when session is finished." into oc-mr1-dev

6 years agoMerge "Deferred setup banner updates intermittently" into oc-mr1-dev
TreeHugger Robot [Tue, 19 Sep 2017 22:13:28 +0000 (22:13 +0000)]
Merge "Deferred setup banner updates intermittently" into oc-mr1-dev

6 years agoMerge "Fix dexopt dump" into oc-mr1-dev
Calin Juravle [Tue, 19 Sep 2017 21:58:14 +0000 (21:58 +0000)]
Merge "Fix dexopt dump" into oc-mr1-dev

6 years agoMerge "Add an explicit reason for the compilation of shared apks" into oc-mr1-dev
Calin Juravle [Tue, 19 Sep 2017 21:56:41 +0000 (21:56 +0000)]
Merge "Add an explicit reason for the compilation of shared apks" into oc-mr1-dev

6 years agoPartially revert ce54397368dc98182d7b4eb2ff3c142bbd87e39d
Shubham Ajmera [Tue, 19 Sep 2017 21:07:05 +0000 (14:07 -0700)]
Partially revert ce54397368dc98182d7b4eb2ff3c142bbd87e39d

We have already reverted A/B dexopt for secondary dex files in commit
7c1471197427b59f99578fd2483b1e113ba4b7f1. This removes secondary dex
opt during boot after OTA.

Bug: 65067046
Test: make and boot.
Change-Id: I76009ed609a608e009a50860b53a8dfed9d57334

6 years agoHandle night display state when timezone changes
Christine Franks [Fri, 25 Aug 2017 20:57:26 +0000 (13:57 -0700)]
Handle night display state when timezone changes

Bug: 64458884
Test: runtest -c com.android.server.NightDisplayServiceTest \
frameworks-services and manually tested Hawaii and London

Change-Id: I052034a4c64eb73c42672215e8847c11e00efeb5

6 years agoEnsure profile-specific PiP notification is shown.
Winson Chung [Fri, 15 Sep 2017 22:41:00 +0000 (15:41 -0700)]
Ensure profile-specific PiP notification is shown.

- Pipe through user id when an activity is pinned, to ensure we show the
  right notification with the correct profile badge that launches into the
  correct profile's PiP settings.

Bug: 65417722
Test: Enter PiP for work profile app, ensure that it shows the notification
      for that profile, and launches the profile-specific PiP settings.

Change-Id: I62b8e1b23cb81bfc60c93f452cf950ab06cbf32d

6 years agoFix compiler filter for downgrading unused apps
Shubham Ajmera [Tue, 19 Sep 2017 04:13:59 +0000 (21:13 -0700)]
Fix compiler filter for downgrading unused apps

Bug: 65861247
Test: Verified manually that dex files are getting downgraded for \
       unused packages.

Change-Id: Ice2b111ab5bfd231a592ac5ed416362b95d27e8a

6 years agoMerge "Do not pause scanning during Network state changes." into oc-mr1-dev
TreeHugger Robot [Tue, 19 Sep 2017 20:52:49 +0000 (20:52 +0000)]
Merge "Do not pause scanning during Network state changes." into oc-mr1-dev

6 years agoMerge "Remove all FATAL_IFs from graphicsstats service" into oc-mr1-dev
TreeHugger Robot [Tue, 19 Sep 2017 20:33:25 +0000 (20:33 +0000)]
Merge "Remove all FATAL_IFs from graphicsstats service" into oc-mr1-dev

6 years agoMerge "Adds handle to NanoAppInstanceInfo Parcel" into oc-mr1-dev
TreeHugger Robot [Tue, 19 Sep 2017 20:32:56 +0000 (20:32 +0000)]
Merge "Adds handle to NanoAppInstanceInfo Parcel" into oc-mr1-dev

6 years agoMerge "Mark uid as non-idle/FG-entitled when launching for fg service" into oc-mr1-dev
TreeHugger Robot [Tue, 19 Sep 2017 19:50:42 +0000 (19:50 +0000)]
Merge "Mark uid as non-idle/FG-entitled when launching for fg service" into oc-mr1-dev

6 years agoConvert ICarrierService to oneway.
Jonathan Basseri [Tue, 25 Jul 2017 20:34:36 +0000 (13:34 -0700)]
Convert ICarrierService to oneway.

Change the carrier config AIDL used by CarrierService to a oneway call.
This is the IPC used to fetch carrier config bundles from carrier apps.
Converting to oneway allows CarrierConfigLoader to be non-blocking while
it fetches config.

Bug: 63176442
Test: runtest carrierconfig-unit & manual
Change-Id: Iceaf0446321f719011f67897398da7d5998c5fc7

6 years agoDND alert info set to INVISIBLE (not GONE) to retain formatting.
Beverly [Tue, 19 Sep 2017 18:56:58 +0000 (14:56 -0400)]
DND alert info set to INVISIBLE (not GONE) to retain formatting.

Change-Id: I182aed5f48d4c2a935a7bfbb9a240046b27dea58
Fixes: 64688590
Test: Manual based on repro steps

6 years agoAutofill optimization: don't contact server when session is finished.
Felipe Leme [Tue, 19 Sep 2017 16:06:20 +0000 (09:06 -0700)]
Autofill optimization: don't contact server when session is finished.

Test: cts-tradefed run commandAndExit cts-dev -m CtsAutoFillServiceTestCases
Bug: 65414762

Change-Id: I214a7835727c3ff71de9dc65c8d6fe54507265fb

6 years agoLegacyCamera: fix wrong class name in JNI
Yin-Chia Yeh [Tue, 19 Sep 2017 18:23:43 +0000 (11:23 -0700)]
LegacyCamera: fix wrong class name in JNI

Test: class not found exception is fixed
Bug: 65954232
Change-Id: I1a80e121d21f8fef027c6b3a5854285b7779bb3e

6 years agopackagemanager_native access to package installer, version
Ray Essick [Tue, 19 Sep 2017 15:44:27 +0000 (08:44 -0700)]
packagemanager_native access to package installer, version

implementation of getInstallerForPackage() and
getVersionCodeForPackage() to support native media.metrics needs.

Bug: 65027506
Test: watch logs for various package combinations
Change-Id: I8a262799867cffe45922f21a237ad2af3d99a39b

6 years agoHandle showWhenLocked on secondary displays
David Stevens [Thu, 24 Aug 2017 01:41:49 +0000 (18:41 -0700)]
Handle showWhenLocked on secondary displays

The keyguard has windows on the default display and the remote display
selected by MediaRouter. Keyguard occlusion only applies to the default
display. To make the activity showWhenLocked flag work on secondary
displays, pass the display id of the locked secondary display from the
SystemUi to KeyguardController and make its isKeyguardShowing method
take a displayId.

Test: android.server.cts.ActivityManagerDisplayTests
Test: #testSecondaryDisplayShowWhenLocked
Bug: 64994006
Merged-In: Ib31fc76e9df469e97a59a181f09d457ceed4ef5f
Change-Id: Ib31fc76e9df469e97a59a181f09d457ceed4ef5f

6 years agoAdds handle to NanoAppInstanceInfo Parcel
Arthur Ishiguro [Mon, 18 Sep 2017 19:07:44 +0000 (12:07 -0700)]
Adds handle to NanoAppInstanceInfo Parcel

- Since mHandle (UID) was not recorded in writeToParcel, it always
returned 0 as the UID. This resulted in error messages claiming
mismatches between the reported and actual UID of nanoapps when called
from an external process.
- Also fixes the Parcel constructor to actually read the mContexthubId
field.

Bug: 37785458
Test: Compile and load, verify error message doesn't appear
Change-Id: I2ff75f510aae549c741786f5746862256ea5a877

6 years agoMerge "Allow to enable WAL for testing" into oc-mr1-dev
Fyodor Kupolov [Tue, 19 Sep 2017 16:45:39 +0000 (16:45 +0000)]
Merge "Allow to enable WAL for testing" into oc-mr1-dev

6 years agoMerge "Listen for device power state for VrMode" into oc-mr1-dev
David Stevens [Tue, 19 Sep 2017 16:35:28 +0000 (16:35 +0000)]
Merge "Listen for device power state for VrMode" into oc-mr1-dev

6 years agoFix reliability triggering
Neil Fuller [Wed, 13 Sep 2017 20:59:59 +0000 (21:59 +0100)]
Fix reliability triggering

Fix reliability triggering in the time zone update
feature. The reliability triggering is there to
resume an update check when things go wrong. For
example, if the device is turned off after a
time zone data app is updated but before the time
zone update process has finished pulling the data
out and installing it in /data. The reliability
trigger happens when the device is idle and will
complete the work.

The idle triggering currently doesn't work as it
was implemented incorrectly.

The code has been changed to use the
JobScheduler to trigger on idle and scheduling
has been made explicit.

Unit tests run with:

make -j30 FrameworksServicesTests
adb install -r -g \
  "out/target/product/marlin/data/app/FrameworksServicesTests/FrameworksServicesTests.apk"
adb shell am instrument -e package com.android.server.timezone -w \
  com.android.frameworks.servicestests \
  "com.android.frameworks.servicestests/android.support.test.runner.AndroidJUnitRunner"

Test: See above
Test: Manual testing: adb shell am idle-maintenance, adb logcat/adb shell dumpsys timezone
Test: PTS: run pts -m PtsTimeZoneTestCases
Bug: 65657543
Change-Id: Ibb2c537955d09a5d538c50490dae94a518522f19
Merged-In: Ibb2c537955d09a5d538c50490dae94a518522f19
(cherry picked from commit cd1a109b872f58f5baa0ce8438bf3ddd69eec9fc)

6 years agoAudioService: reduce EU volume warning thresdhold for USB headsets
Eric Laurent [Fri, 1 Sep 2017 22:12:42 +0000 (15:12 -0700)]
AudioService: reduce EU volume warning thresdhold for USB headsets

Take into account additional gain due to simultaneous application of
EQ and bass boost by substracting 7dB from current warning message threshold.

Bug: 65225835
Test: check warning displayed when playing over USB headset after boot when
no SIM is present

Change-Id: I1bfcbf571d72122f4df6ff5e40be227c42d555e3
(cherry picked from commit 0e5deb3967398834c9d2321b31d3c56b380e98b5)

6 years agoFail gracefully if password reset token is invalidated
Rubin Xu [Tue, 19 Sep 2017 14:27:21 +0000 (15:27 +0100)]
Fail gracefully if password reset token is invalidated

This can happen if the user went through an untrusted credential reset,
which causes it's synthetic password to change. In this case fail gracefully.

Bug: 65912645
Test: cts-tradefed run cts-dev -m CtsDevicePolicyManagerTestCases -t com.android.cts.devicepolicy.MixedManagedProfileOwnerTest#testResetPasswordWithToken
Test: cts-tradefed run cts-dev -m CtsDevicePolicyManagerTestCases -t com.android.cts.devicepolicy.ManagedProfileTest#testResetPasswordTokenUsableAfterClearingLock
Test: cts-tradefed run cts-dev -m CtsDevicePolicyManagerTestCases -t com.android.cts.devicepolicy.ManagedProfileTest#testResetPasswordWithTokenBeforeUnlock
Change-Id: I2f2fc4fbaa97cde6f4c1997e27aa5087b0a42b19

6 years agoMerge "Remove use of MeasureUnit.internalGetInstance" into oc-mr1-dev
Joachim Sauer [Tue, 19 Sep 2017 12:39:01 +0000 (12:39 +0000)]
Merge "Remove use of MeasureUnit.internalGetInstance" into oc-mr1-dev

6 years agoWakeup packet events: addressing a few comments
Hugo Benichi [Tue, 19 Sep 2017 04:15:26 +0000 (13:15 +0900)]
Wakeup packet events: addressing a few comments

This patch addresses a few post-submit comment for
commits f562ac34a51dc and 60c9f63b66921.

Bug: 34901696
Bug: 62179647
Test: runtest frameworks-net
Merged-In: I4abec57e0c6bc869dc57b5eb54582dd977b64c30

(cherry picked from commit 175b574e27daa0d8832b8cc9615a15fce998309a)

Change-Id: Ied9d0cec98685e5a91ed2ca2c81ad88d7ae8d751

6 years agoMerge "Set use low res snapshots for low ram devices missing in theme snapshot" into...
TreeHugger Robot [Tue, 19 Sep 2017 03:15:41 +0000 (03:15 +0000)]
Merge "Set use low res snapshots for low ram devices missing in theme snapshot" into oc-mr1-dev

6 years agoDo not pause scanning during Network state changes.
Sundeep Ghuman [Wed, 6 Sep 2017 18:46:21 +0000 (11:46 -0700)]
Do not pause scanning during Network state changes.

This prevents UI bugs in WifiSettings where scan results would become to
old upon switching networks and thus all the APs would be removed from
the wifi picker. Now scanning is only paused/resumed during start/stop
tracking as well as on wifi state changes between enabled/ not enabled.

Also adds additional logging to scan result age in verbose logging.

Bug: b/64989100
Test: runtest --path
frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/wifi/WifiTrackerTest.java
Manual: 1. Repeated switch back and forth between different networks.
2. Ensure that AccessPoints in WifiSettings do not disappear after new
connections.

Change-Id: I11e424bcce799a5f3d003a955dcee004294058b7
Merged-In: I11e424bcce799a5f3d003a955dcee004294058b7
(cherry picked from commit db9b94c195f056248b1f5c3b4ef5e907c1b82028)

6 years agoMark uid as non-idle/FG-entitled when launching for fg service
Christopher Tate [Mon, 18 Sep 2017 23:43:30 +0000 (16:43 -0700)]
Mark uid as non-idle/FG-entitled when launching for fg service

During app launch the app is considered background unless there's an
established reason for it to be otherwise, but the two-stage "start
foreground service" sequence means that there was now a race condition
between giving the app the opportunity to make the service launch in
the foreground and the "hey this uid isn't foreground, we should shut
things down.

Now, during service launch we explicitly mark the uid as foreground-
equivalent when the startForegroundService() sequence is underway.

The install-then-launch sequence isn't strictly essential to demonstrate
the race; but it happened to wind up inducing some broadcast traffic
(and therefore an OOM-adjust sequence) at a conveniently inopportune time
very early during process bringup for the fg service.

Fixes: 65706471
Test: adb install -r ~/Downloads/sampleForegroundService.apk &&
  adb shell am startforegroundservice -a myActionName android.support.mediacompat.foregroundservice

Change-Id: I6f3b6f8fb808e9d830fe108c577047b1938452fc

6 years agoMerge "Rename "bitrate-control" to "bitrate-modes"" into oc-mr1-dev
TreeHugger Robot [Tue, 19 Sep 2017 01:14:05 +0000 (01:14 +0000)]
Merge "Rename "bitrate-control" to "bitrate-modes"" into oc-mr1-dev

6 years agoMerge "Fix missing RequiredPermission annotation." into oc-mr1-dev
TreeHugger Robot [Tue, 19 Sep 2017 00:41:04 +0000 (00:41 +0000)]
Merge "Fix missing RequiredPermission annotation." into oc-mr1-dev

6 years agoFix dexopt dump
Calin Juravle [Tue, 19 Sep 2017 00:40:48 +0000 (17:40 -0700)]
Fix dexopt dump

Dexopt dump prints the status of primary oat file instead of secondary.
We cannot get the secondary dex file status without an installd call so
this CL just removes the status line.

Bug: 65843255
Test: adb shell dumpsys package dexopt
Change-Id: I76028704267eed68ba8c51f45ce8b54f403cc255

6 years agoMerge "Import translations. DO NOT MERGE" into oc-mr1-dev
TreeHugger Robot [Tue, 19 Sep 2017 00:19:44 +0000 (00:19 +0000)]
Merge "Import translations. DO NOT MERGE" into oc-mr1-dev

6 years agoListen for device power state for VrMode
David Stevens [Thu, 14 Sep 2017 23:27:56 +0000 (16:27 -0700)]
Listen for device power state for VrMode

ActivityManagerService's sleep state is now dependent on whether or not
there are any awake displays, instead of the device power state. Make
VrManagerService listen to the device power state instead of the
ActtivityManagerService sleep state, since its VirtualDisplay for 2D
activities will keep ActtivityManagerService awake.

Bug: 65605913
Test: manual
Change-Id: Ia620d24977d896e6688020d59850046dd0cb7187

6 years agoSet use low res snapshots for low ram devices missing in theme snapshot
Matthew Ng [Mon, 18 Sep 2017 23:29:46 +0000 (16:29 -0700)]
Set use low res snapshots for low ram devices missing in theme snapshot

Creating new tasksnapshot from app theme was missing to set the reduced
flag to true.

Test: settings to smart lock and pass pattern/password
Bug: 65534047
Change-Id: I78e9fed223ffc4c7a9cb8d31836b18f1fc4e7d34

6 years agoMerge "Move VR Display Policy check to after wakefulness." into oc-mr1-dev
TreeHugger Robot [Mon, 18 Sep 2017 22:23:58 +0000 (22:23 +0000)]
Merge "Move VR Display Policy check to after wakefulness." into oc-mr1-dev

6 years agoMerge "Fixed padding of autofill service icon on Save affordance." into oc-mr1-dev
TreeHugger Robot [Mon, 18 Sep 2017 22:13:31 +0000 (22:13 +0000)]
Merge "Fixed padding of autofill service icon on Save affordance." into oc-mr1-dev

6 years agoMerge "AudioService: reduce EU volume warning thresdhold for USB headsets" into oc...
TreeHugger Robot [Mon, 18 Sep 2017 21:53:33 +0000 (21:53 +0000)]
Merge "AudioService: reduce EU volume warning thresdhold for USB headsets" into oc-mr1-dev

6 years agoHandle autofill auth scenarios where the FillContext cannot be retrieved:
Felipe Leme [Mon, 18 Sep 2017 21:10:10 +0000 (14:10 -0700)]
Handle autofill auth scenarios where the FillContext cannot be retrieved:

Test: manually modified code to force a null FillContext and verified the
      session is properly cleared (even in the client side)
Test: cts-tradefed run commandAndExit cts-dev -m CtsAutoFillServiceTestCases

Fixes: 65374274

Change-Id: Ica482a48b0be34b89e36f9a34078fdcd48134537

6 years agoFix STOPSHIP in SyncManager
Makoto Onuki [Mon, 18 Sep 2017 21:03:03 +0000 (14:03 -0700)]
Fix STOPSHIP in SyncManager

- Remove WTF about removing periodic syncs. We haven't seen any reports of this.
Having a detailed log should be enough.

- Check the number of endpoints in the "unexpected periodic sync removal" check.

Bug: 64809410
Test: manual test
Change-Id: Icd6e595281c1a302f6ceec661561d3911785562b

6 years agoMerge "Added more metrics for Autofill:" into oc-mr1-dev
TreeHugger Robot [Mon, 18 Sep 2017 21:05:44 +0000 (21:05 +0000)]
Merge "Added more metrics for Autofill:" into oc-mr1-dev

6 years agoMerge "Import translations. DO NOT MERGE" into oc-dev am: 69ca32dcea -s ours
Bill Yi [Mon, 18 Sep 2017 20:16:43 +0000 (20:16 +0000)]
Merge "Import translations. DO NOT MERGE" into oc-dev am: 69ca32dcea  -s ours
am: 60af01bec9  -s ours

Change-Id: Ib420dbea84af5bec2926bb2abcf804038c977634

6 years agoMerge "Import translations. DO NOT MERGE" into oc-dev
Bill Yi [Mon, 18 Sep 2017 20:07:14 +0000 (20:07 +0000)]
Merge "Import translations. DO NOT MERGE" into oc-dev
am: 69ca32dcea  -s ours

Change-Id: I59c5213db2534724e11d0eadf049d9d5489ffa18

6 years agoImport translations. DO NOT MERGE am: 791ebeed32 -s ours am: fee3748d04 -s ours...
Bill Yi [Mon, 18 Sep 2017 20:05:44 +0000 (20:05 +0000)]
Import translations. DO NOT MERGE am: 791ebeed32  -s ours am: fee3748d04  -s ours am: 456c147827  -s ours
am: c49cdb6749  -s ours

Change-Id: I74302ee3485e173533f9ba3bbe26f83d11e1ebe4

6 years agoImport translations. DO NOT MERGE am: 791ebeed32 -s ours am: fee3748d04 -s ours
Bill Yi [Mon, 18 Sep 2017 19:56:59 +0000 (19:56 +0000)]
Import translations. DO NOT MERGE am: 791ebeed32  -s ours am: fee3748d04  -s ours
am: 456c147827  -s ours

Change-Id: I029764bb19cc295e4749d8974461f6d6be23d5c2

6 years agoRemove all FATAL_IFs from graphicsstats service
John Reck [Mon, 18 Sep 2017 18:08:31 +0000 (11:08 -0700)]
Remove all FATAL_IFs from graphicsstats service

As graphicsstats can be subjected to data coming
from the disk and is in system_server we want
to bias towards best-effort instead of strict
no-errors that the rest of HWUI typically uses.

So treat any dump/merge of graphics stats as
best effort, ignoring any errors that occur.

Bug: 65652900
Test: verified 'dumpsys graphicsstats' still works

Change-Id: Ia9b91b745c2a9aedad2f22e3087e1d4bf37a1135

6 years agoAdd an explicit reason for the compilation of shared apks
Calin Juravle [Fri, 15 Sep 2017 18:09:29 +0000 (11:09 -0700)]
Add an explicit reason for the compilation of shared apks

Some devices might find it more beneficial to compile shared apks like gms
or gms modules with quicken rather then speed.

Bug: 65591595
Test: build
Change-Id: I90b79e9f6bc4b4d6b3f5c0b90ab95e8880c4ac9d

6 years agoMerge "Import translations. DO NOT MERGE" into oc-dev
TreeHugger Robot [Mon, 18 Sep 2017 19:31:18 +0000 (19:31 +0000)]
Merge "Import translations. DO NOT MERGE" into oc-dev

6 years agoMerge "Clarified how to set for autofill views representing creditcard expiration...
TreeHugger Robot [Mon, 18 Sep 2017 19:29:46 +0000 (19:29 +0000)]
Merge "Clarified how to set for autofill views representing creditcard expiration dates." into oc-mr1-dev

6 years agoImport translations. DO NOT MERGE
Bill Yi [Mon, 18 Sep 2017 19:22:28 +0000 (12:22 -0700)]
Import translations. DO NOT MERGE

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

Bug: 64712476
Change-Id: Ib6808e51d755433df1e51f6f3ba3478c40233527

6 years agoImport translations. DO NOT MERGE am: 791ebeed32 -s ours
Bill Yi [Mon, 18 Sep 2017 19:16:08 +0000 (19:16 +0000)]
Import translations. DO NOT MERGE am: 791ebeed32  -s ours
am: fee3748d04  -s ours

Change-Id: I4d666020e912f122850cc140e3f62d65aea029ca

6 years agoFixed padding of autofill service icon on Save affordance.
Felipe Leme [Sat, 16 Sep 2017 01:56:26 +0000 (18:56 -0700)]
Fixed padding of autofill service icon on Save affordance.

Test: manual verification
Test: cts-tradefed run commandAndExit cts-dev -m CtsAutoFillServiceTestCases

Fixes: 65739885

Change-Id: Ia2b63750665eefd36143074c4cf0e1310de056b2

6 years agoMerge "DngCreator: Don't use default locale for writing date/time into DNG" into...
TreeHugger Robot [Mon, 18 Sep 2017 19:10:11 +0000 (19:10 +0000)]
Merge "DngCreator: Don't use default locale for writing date/time into DNG" into oc-mr1-dev

6 years agoImport translations. DO NOT MERGE
Bill Yi [Mon, 18 Sep 2017 19:09:21 +0000 (19:09 +0000)]
Import translations. DO NOT MERGE
am: 791ebeed32  -s ours

Change-Id: Iff6d60fe8fd1444c88ffa76634a50a4bb377334d

6 years agoFix missing RequiredPermission annotation.
Santos Cordon [Thu, 31 Aug 2017 23:36:01 +0000 (16:36 -0700)]
Fix missing RequiredPermission annotation.

Bug: 64360244
Test: Manual compilation.
Change-Id: I7091e366baf5bcaf29945e9a0e2a283309e54452

6 years agoMove VR Display Policy check to after wakefulness.
Santos Cordon [Wed, 13 Sep 2017 18:59:39 +0000 (11:59 -0700)]
Move VR Display Policy check to after wakefulness.

Being in VR was preventing sleep and doze functionalities to function.
Sleep and doze is what commonly happens when the user hits power button
and without this fix hitting the power button resulted in PowerManager
not turning off the display.

Bug: 65635259
Test: Manual.  Ensure that hitting power button while in 2D-in-VR turns
screen off on smartphones.
Test: runtest --path
frameworks/base/services/tests/servicestests/src/com/android/server/power/PowerManagerServiceTest.java

Change-Id: If3a14a5a423b0394926b323b97ed11b98177e43b

6 years agoMerge "Fixes an issue where the guts could disappear" into oc-mr1-dev
Selim Cinek [Mon, 18 Sep 2017 18:24:50 +0000 (18:24 +0000)]
Merge "Fixes an issue where the guts could disappear" into oc-mr1-dev

6 years agoMerge "Fix nomanservice notificationrecord leak" into oc-dev am: 9c32669043 -s ours
Julia Reynolds [Mon, 18 Sep 2017 18:19:17 +0000 (18:19 +0000)]
Merge "Fix nomanservice notificationrecord leak" into oc-dev am: 9c32669043  -s ours
am: beb14f16fd

Change-Id: Icd720ef0e675473039613fe2f77789735f8c559e

6 years agoresolve merge conflicts of 6df58d8da10d to oc-dr1-dev
fionaxu [Mon, 18 Sep 2017 18:12:24 +0000 (18:12 +0000)]
resolve merge conflicts of 6df58d8da10d to oc-dr1-dev
am: 6e40562a73  -s ours

Change-Id: I65b0adc062d2bfc83590b24d04030d01790e5bd7

6 years agoMerge "Fix nomanservice notificationrecord leak" into oc-dev
Julia Reynolds [Mon, 18 Sep 2017 18:09:02 +0000 (18:09 +0000)]
Merge "Fix nomanservice notificationrecord leak" into oc-dev
am: 9c32669043  -s ours

Change-Id: I890f0e8e36b5c397365af8d9eb7f84d1d9a7a719

6 years agoMerge "Fix NPE which could occur when showing notification guts" into oc-mr1-dev
Selim Cinek [Mon, 18 Sep 2017 18:08:29 +0000 (18:08 +0000)]
Merge "Fix NPE which could occur when showing notification guts" into oc-mr1-dev

6 years agoresolve merge conflicts of 6df58d8da10d to oc-dr1-dev
fionaxu [Fri, 15 Sep 2017 20:52:04 +0000 (13:52 -0700)]
resolve merge conflicts of 6df58d8da10d to oc-dr1-dev

Test: I solemnly swear I tested this conflict resolution.
Bug: 65113738
Merged-in: I6bc2d8ba45958eaf09e09e3ea2e57c79e0ac461e
Merged-in: I445c7bce01e0bf36214f5f4f6327a0582c774dae
Change-Id: I100ef303e5e50ddac12bc2e9f1dbeb21d6b801aa