OSDN Git Service

android-x86/frameworks-base.git
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 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 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 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 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 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 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 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

6 years agoMerge "Fix nomanservice notificationrecord leak" into oc-dev
TreeHugger Robot [Mon, 18 Sep 2017 17:35:06 +0000 (17:35 +0000)]
Merge "Fix nomanservice notificationrecord leak" into oc-dev

6 years agoMerge "Refinement of auto-dimming nav" into oc-mr1-dev
TreeHugger Robot [Mon, 18 Sep 2017 17:13:25 +0000 (17:13 +0000)]
Merge "Refinement of auto-dimming nav" into oc-mr1-dev

6 years agoMerge "Add low-ram check for PiP support even if feature is enabled." into oc-mr1-dev
Winson Chung [Mon, 18 Sep 2017 17:10:30 +0000 (17:10 +0000)]
Merge "Add low-ram check for PiP support even if feature is enabled." into oc-mr1-dev

6 years agoMerge "Minor fixes on WebView.onProvideAutofillVirtualStructure() javadoc." into...
TreeHugger Robot [Mon, 18 Sep 2017 16:47:40 +0000 (16:47 +0000)]
Merge "Minor fixes on WebView.onProvideAutofillVirtualStructure() javadoc." into oc-mr1-dev

6 years agoImport translations. DO NOT MERGE
Bill Yi [Mon, 18 Sep 2017 15:21:35 +0000 (08:21 -0700)]
Import translations. DO NOT MERGE

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

Bug: 64712476
Change-Id: I6a56e46644120a42a4a0cff43dfd5f8b61ca6f8f

6 years agoRefinement of auto-dimming nav
Jason Monk [Mon, 18 Sep 2017 14:31:37 +0000 (10:31 -0400)]
Refinement of auto-dimming nav

 - Make dimming only happen for interaction with nav
 - Extend time to dim
 - Shorten time to start dimming by same amount.

Test: visual
Change-Id: Ieb5b31bacdde9ce1952601ad65cff2d54386dd0f
Fixes: 65694001

6 years agoRemove use of MeasureUnit.internalGetInstance
Joachim Sauer [Thu, 14 Sep 2017 14:49:22 +0000 (15:49 +0100)]
Remove use of MeasureUnit.internalGetInstance

MeasureUnit.internalGetUnit() is a method on ICU MeasureUnit which is
used to construct and register MeasureUnits. Calling it from non-ICU
code makes future calls to MeasureUnit.getAvailable(type) return the
newly-created MeasureUnit, but that MeasureUnit will not be fully
supported by ICU (no translations, ...).

This code creates a MeasureUnit by calling a constructor reflectively to
avoid the registration, which is a workaround.

The correct long-term fix is for ICU/CLDR to support petabyte correctly
(http://bugs.icu-project.org/trac/ticket/13355) and for us to just use
that instead.

Bug: 65632959
Test: bit CtsIcuTestCases:android.icu.dev.test.format.MeasureUnitTest
Test: coretests android.text.format.FormatterTest

(cherry picked from commit aa5629e60809e4775ca1f05e6f1f296a04a450dc)

Change-Id: If18dd378668a59a700030856573e46917a1bd051

6 years agoMerge "Fix consequent activity launch on virtual displays" into oc-mr1-dev
Andrii Kulian [Mon, 18 Sep 2017 06:25:46 +0000 (06:25 +0000)]
Merge "Fix consequent activity launch on virtual displays" into oc-mr1-dev

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

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

6 years agoSelect a system audio route only when needed
Sungsoo Lim [Thu, 14 Sep 2017 01:12:10 +0000 (10:12 +0900)]
Select a system audio route only when needed

When system audio routes are changd, updateAudioRoutes is called, and
it selects a system audio route even when a none system route was
seleted.
That makes the selected route be unselected and this CL fixes it.

Bug: 65403568
Test: manual tested that the issue is fixed
Change-Id: I5df9d3e5f68cfd40fdb625937f9a8e16f4308e16

6 years agoMerge "Import translations. DO NOT MERGE" into oc-mr1-dev
Bill Yi [Sun, 17 Sep 2017 22:18:14 +0000 (22:18 +0000)]
Merge "Import translations. DO NOT MERGE" into oc-mr1-dev

6 years agoMerge "Import translations. DO NOT MERGE" into oc-mr1-dev
TreeHugger Robot [Sat, 16 Sep 2017 20:52:54 +0000 (20:52 +0000)]
Merge "Import translations. DO NOT MERGE" into oc-mr1-dev

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

6 years agoMerge "Import translations. DO NOT MERGE" into oc-mr1-dev
TreeHugger Robot [Sat, 16 Sep 2017 20:05:22 +0000 (20:05 +0000)]
Merge "Import translations. DO NOT MERGE" into oc-mr1-dev

6 years agoMerge "Import translations. DO NOT MERGE" into oc-mr1-dev
TreeHugger Robot [Sat, 16 Sep 2017 20:02:32 +0000 (20:02 +0000)]
Merge "Import translations. DO NOT MERGE" into oc-mr1-dev

6 years agoMerge "Import translations. DO NOT MERGE" into oc-mr1-dev
TreeHugger Robot [Sat, 16 Sep 2017 20:01:27 +0000 (20:01 +0000)]
Merge "Import translations. DO NOT MERGE" into oc-mr1-dev

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

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

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

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

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

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

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

6 years agoMerge "Do not stop paused activity when sleeping." into oc-mr1-dev
Bryce Lee [Sat, 16 Sep 2017 19:33:21 +0000 (19:33 +0000)]
Merge "Do not stop paused activity when sleeping." into oc-mr1-dev

6 years agoRename "bitrate-control" to "bitrate-modes"
Pawin Vongmasa [Sat, 16 Sep 2017 13:46:59 +0000 (06:46 -0700)]
Rename "bitrate-control" to "bitrate-modes"

The property name that is listed in xml files is
"bitrate-modes", not bit "bitrate-control".

Test: make cts -j123 && cts-tradefed run cts-dev -m \
CtsMediaTestCases --compatibility:module-arg \
CtsMediaTestCases:include-annotation:\
android.platform.test.annotations.RequiresDevice

Bug: 65769027
Change-Id: Ifef752e05cac3b868cee76ce69f1763c075f10ec

6 years agoImport translations. DO NOT MERGE
Bill Yi [Sat, 16 Sep 2017 13:17:52 +0000 (06:17 -0700)]
Import translations. DO NOT MERGE

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

Bug: 64712476
Change-Id: Ided02ec91e7a2f5aacd8e5c28201672d14fceea7

6 years agoImport translations. DO NOT MERGE
Bill Yi [Sat, 16 Sep 2017 12:57:19 +0000 (05:57 -0700)]
Import translations. DO NOT MERGE

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

Bug: 64712476
Change-Id: I6dab1e6544868c0ac2e0e4029a969a216f4c9b4d

6 years agoImport translations. DO NOT MERGE
Bill Yi [Sat, 16 Sep 2017 06:57:48 +0000 (23:57 -0700)]
Import translations. DO NOT MERGE

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

Bug: 64712476
Change-Id: Ic2ce0ef69af1bfd9f4b8980b3079b9756f93763c

6 years agoImport translations. DO NOT MERGE
Bill Yi [Sat, 16 Sep 2017 06:50:17 +0000 (23:50 -0700)]
Import translations. DO NOT MERGE

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

Bug: 64712476
Change-Id: I431251ef3dc0930b820a108edc6b76f876639035

6 years agoImport translations. DO NOT MERGE
Bill Yi [Sat, 16 Sep 2017 04:55:46 +0000 (21:55 -0700)]
Import translations. DO NOT MERGE

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

Bug: 64712476
Change-Id: Ic586e92feca951793fd3cb9a401093e57e05b015

6 years agoImport translations. DO NOT MERGE
Bill Yi [Sat, 16 Sep 2017 04:48:17 +0000 (21:48 -0700)]
Import translations. DO NOT MERGE

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

Bug: 64712476
Change-Id: I81c38a635544d1672a6cbd1dc9528d95ccdbd894

6 years agoImport translations. DO NOT MERGE
Bill Yi [Sat, 16 Sep 2017 04:40:45 +0000 (21:40 -0700)]
Import translations. DO NOT MERGE

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

Bug: 64712476
Change-Id: I3978b88537a89176a6926eab1c21e09ab169a2cc

6 years agoImport translations. DO NOT MERGE
Bill Yi [Sat, 16 Sep 2017 04:33:13 +0000 (21:33 -0700)]
Import translations. DO NOT MERGE

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

Bug: 64712476
Change-Id: Ib786e99af653b130f2547c8ed1e223f0ddbcf3c8

6 years agoImport translations. DO NOT MERGE
Bill Yi [Sat, 16 Sep 2017 04:18:28 +0000 (21:18 -0700)]
Import translations. DO NOT MERGE

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

Bug: 64712476
Change-Id: Ie25a5101373e7c24af943b998a27f6f02da62a34

6 years agoImport translations. DO NOT MERGE
Bill Yi [Sat, 16 Sep 2017 04:03:41 +0000 (21:03 -0700)]
Import translations. DO NOT MERGE

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

Bug: 64712476
Change-Id: I8d182fda9abf6a8c4f5bb4f62de78e61a5c3d627

6 years agoImport translations. DO NOT MERGE
Bill Yi [Sat, 16 Sep 2017 03:56:07 +0000 (20:56 -0700)]
Import translations. DO NOT MERGE

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

Bug: 64712476
Change-Id: Ifdd0077f7516e9266a9f38ff474bc8f71cc7591b

6 years agoImport translations. DO NOT MERGE
Bill Yi [Sat, 16 Sep 2017 03:48:15 +0000 (20:48 -0700)]
Import translations. DO NOT MERGE

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

Bug: 64712476
Change-Id: I61400c4699a3694bc91bc6672e7dc62a28545bcc

6 years agoImport translations. DO NOT MERGE
Bill Yi [Sat, 16 Sep 2017 03:43:03 +0000 (20:43 -0700)]
Import translations. DO NOT MERGE

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

Bug: 64712476
Change-Id: Ie76a52fa6f6c717d78db5f9c338b1fde5cc6b4ad

6 years agoMerge "Fixed size of autofill service icon on Save affordance." into oc-mr1-dev
TreeHugger Robot [Sat, 16 Sep 2017 01:45:51 +0000 (01:45 +0000)]
Merge "Fixed size of autofill service icon on Save affordance." into oc-mr1-dev

6 years agoAdd low-ram check for PiP support even if feature is enabled.
Winson Chung [Fri, 15 Sep 2017 22:52:11 +0000 (15:52 -0700)]
Add low-ram check for PiP support even if feature is enabled.

Bug: 65602088
Test: Can not enter PiP on low-ram devices
Change-Id: I526cf73788fb4c7298433bee5cb54711820f042b

6 years agoFix NPE which could occur when showing notification guts
Kensuke Matsui [Thu, 3 Aug 2017 03:12:36 +0000 (12:12 +0900)]
Fix NPE which could occur when showing notification guts

SystemUI keeps shown heads-up notification for minimum display time
even if the notification is canceled right after it's posted.

This is intentional behavior but causes inconsistency between
mEntry and mRankingMap in NotificationData.
That inconsistency could cause NPE when showing notification guts.

To avoid this, update an Entry only when the corresponding Ranking
is available.

Fixes: 65567562
Test: manual - long press a missed call notification
               immediately after receiving an incoming call
Test: runtest -x packages/SystemUI/tests/src/com/android/systemui/statusbar/NotificationDataTest.java

Change-Id: I6dc70d8e57efa7af0f23862a00d0e18cf39dfebb

6 years agoMinor fixes on WebView.onProvideAutofillVirtualStructure() javadoc.
Felipe Leme [Fri, 15 Sep 2017 22:16:28 +0000 (15:16 -0700)]
Minor fixes on WebView.onProvideAutofillVirtualStructure() javadoc.

Test: mmm -j108 frameworks/base/:doc-comment-check-docs
Bug: 65751159

Change-Id: Ie60b1f32e4d9acc675c6e25b7d3e606049b6a3c3