OSDN Git Service

android-x86/frameworks-base.git
5 years agoConvert data/etc/Android.mk to blueprint
Anton Hansson [Tue, 11 Dec 2018 16:12:53 +0000 (16:12 +0000)]
Convert data/etc/Android.mk to blueprint

Should produce identical artifacts.

Test: boot blueline
Change-Id: Iad06f3efc727d97bdef3d4a7cec9b2b1fbc775b9

5 years agoMerge "Add system_notification_accent_color for mainline"
Philip P. Moltmann [Tue, 18 Dec 2018 16:38:23 +0000 (16:38 +0000)]
Merge "Add system_notification_accent_color for mainline"

5 years agoMerge "Fix navigation bar flaky tests"
TreeHugger Robot [Tue, 18 Dec 2018 16:19:27 +0000 (16:19 +0000)]
Merge "Fix navigation bar flaky tests"

5 years agoMerge "Clean up job concurrency calculation"
Makoto Onuki [Tue, 18 Dec 2018 16:06:16 +0000 (16:06 +0000)]
Merge "Clean up job concurrency calculation"

5 years agoMerge "Move SystemUI and its permissions to /product"
Anton Hansson [Tue, 18 Dec 2018 14:54:21 +0000 (14:54 +0000)]
Merge "Move SystemUI and its permissions to /product"

5 years agoMerge "Fix an issue in SurfaceTexture with forgetting the dataspace"
TreeHugger Robot [Tue, 18 Dec 2018 14:41:42 +0000 (14:41 +0000)]
Merge "Fix an issue in SurfaceTexture with forgetting the dataspace"

5 years agoMerge "OMS: extract verifyIdmap from createIdmap"
Todd Kennedy [Tue, 18 Dec 2018 14:38:52 +0000 (14:38 +0000)]
Merge "OMS: extract verifyIdmap from createIdmap"

5 years agoMerge "OMS: fix checkstyle warnings"
Todd Kennedy [Tue, 18 Dec 2018 14:38:46 +0000 (14:38 +0000)]
Merge "OMS: fix checkstyle warnings"

5 years agoMerge "idmap2: replace std::pair<bool, T> with Result<T>"
Todd Kennedy [Tue, 18 Dec 2018 14:38:36 +0000 (14:38 +0000)]
Merge "idmap2: replace std::pair<bool, T> with Result<T>"

5 years agoMerge "Move Settings privapp-permissions to /product"
Anton Hansson [Tue, 18 Dec 2018 13:33:25 +0000 (13:33 +0000)]
Merge "Move Settings privapp-permissions to /product"

5 years agoMerge "[Multi-user] Decouple UserBMS and BMS creation"
Annie Meng [Tue, 18 Dec 2018 12:38:16 +0000 (12:38 +0000)]
Merge "[Multi-user] Decouple UserBMS and BMS creation"

5 years agoFix navigation bar flaky tests
Charles Chen [Tue, 18 Dec 2018 09:51:56 +0000 (17:51 +0800)]
Fix navigation bar flaky tests

The flakiness is because the timing issue on hasNavigationBar.
When a new display is added, onDisplayAdded is called and we may try to
add nav bar before DisplayPolicy#configure is called, which sets
mHasNavigationBar value. Therefore, we may get false from
hasNavigationBar even if a display does support system decorations.

Fixes: 120748674
Test: atest ActivityManagerMultiDisplayTests
Test: atest
ActivityManagerMultiDisplayTests#testNavBarShowingOnDisplayWithDecor *
100

Change-Id: Idb3c3d0874c15a466d179cc471ade5cea890e20e

5 years agoMerge "Add metric fields for Smart Suggestions in Notifications logging."
Gustav Sennton [Tue, 18 Dec 2018 10:43:57 +0000 (10:43 +0000)]
Merge "Add metric fields for Smart Suggestions in Notifications logging."

5 years agoMerge "Apply a per-package limit to secondary dex tracking."
Alan Stokes [Tue, 18 Dec 2018 10:40:44 +0000 (10:40 +0000)]
Merge "Apply a per-package limit to secondary dex tracking."

5 years agoMove SystemUI and its permissions to /product
Anton Hansson [Mon, 10 Dec 2018 17:18:15 +0000 (17:18 +0000)]
Move SystemUI and its permissions to /product

Since this app is frequently customized by OEMs, it doesn't
fit in the mainline /system image right now. Move it to
/product.

Bug: 110072687
Test: make
Test: boot blueline
Test: atest SystemUITests
Change-Id: If27bcccd62f239f716db5ee7f4f1418d936e1cf4

5 years agoMove Settings privapp-permissions to /product
Anton Hansson [Mon, 10 Dec 2018 17:18:15 +0000 (17:18 +0000)]
Move Settings privapp-permissions to /product

The app is moving to /product, so move the permission
grants as well.

Bug: 110072687
Test: boot blueline
Change-Id: I34fcab908db5b7a96a50b45bb45941282b05a82d

5 years agoMerge "Retrieve apps with recent location access"
Lifu Tang [Tue, 18 Dec 2018 08:43:31 +0000 (08:43 +0000)]
Merge "Retrieve apps with recent location access"

5 years agoMerge "Remove unused SystemUi service"
TreeHugger Robot [Tue, 18 Dec 2018 07:27:50 +0000 (07:27 +0000)]
Merge "Remove unused SystemUi service"

5 years agoRemove unused SystemUi service
Brad Stenning [Tue, 18 Dec 2018 05:10:14 +0000 (21:10 -0800)]
Remove unused SystemUi service

Bug:120864177

Test: emulator
Change-Id: I7fbd818b1210f2de3d89f3c2e35fd5dcad39d657

5 years agoMerge "Replace InterfaceParams with ifName in DhcpServer" am: 9d5e00321f am: fce422d811
Remi NGUYEN VAN [Tue, 18 Dec 2018 05:06:01 +0000 (21:06 -0800)]
Merge "Replace InterfaceParams with ifName in DhcpServer" am: 9d5e00321f am: fce422d811
am: 5f5bbffb14

Change-Id: Ib41a931d97610ddeac60012560554c6642186b78

5 years agoMerge "Replace InterfaceParams with ifName in DhcpServer" am: 9d5e00321f
Remi NGUYEN VAN [Tue, 18 Dec 2018 04:33:36 +0000 (20:33 -0800)]
Merge "Replace InterfaceParams with ifName in DhcpServer" am: 9d5e00321f
am: fce422d811

Change-Id: Iaf8dd7a21156aba248d33d095c169c0f62d8eebe

5 years agoMerge "Check that mDrivingStateManager is not null."
TreeHugger Robot [Tue, 18 Dec 2018 04:30:34 +0000 (04:30 +0000)]
Merge "Check that mDrivingStateManager is not null."

5 years agoMerge "Merge "Add new netd event callback for changes to NAT64 prefix" am: ed30ec8dd1...
Android Build Merger (Role) [Tue, 18 Dec 2018 04:28:19 +0000 (04:28 +0000)]
Merge "Merge "Add new netd event callback for changes to NAT64 prefix" am: ed30ec8dd1 am: dba2101a3c am: 97de461dcb"

5 years agoMerge "Add new netd event callback for changes to NAT64 prefix" am: ed30ec8dd1 am...
Nucca Chen [Tue, 18 Dec 2018 04:27:31 +0000 (20:27 -0800)]
Merge "Add new netd event callback for changes to NAT64 prefix" am: ed30ec8dd1 am: dba2101a3c
am: 97de461dcb

Change-Id: Ib08d3c201a71876a057176e2fce065e8360008e2

5 years agoMerge "Fix build for libmedia2_jni"
TreeHugger Robot [Tue, 18 Dec 2018 04:24:12 +0000 (04:24 +0000)]
Merge "Fix build for libmedia2_jni"

5 years agoMerge "Support wallpaper on secondary displays.(6/N)"
TreeHugger Robot [Tue, 18 Dec 2018 04:01:11 +0000 (04:01 +0000)]
Merge "Support wallpaper on secondary displays.(6/N)"

5 years agoMerge "Add new netd event callback for changes to NAT64 prefix" am: ed30ec8dd1
Nucca Chen [Tue, 18 Dec 2018 03:52:40 +0000 (19:52 -0800)]
Merge "Add new netd event callback for changes to NAT64 prefix" am: ed30ec8dd1
am: dba2101a3c

Change-Id: I4e263d78c48a07fbcbfddc63e118c45b4cfb9c5a

5 years agoMerge "Replace InterfaceParams with ifName in DhcpServer"
Remi NGUYEN VAN [Tue, 18 Dec 2018 03:51:25 +0000 (19:51 -0800)]
Merge "Replace InterfaceParams with ifName in DhcpServer"
am: 9d5e00321f

Change-Id: Id2863d3c148b109c74ed37a0c2be7a4ddfd4f923

5 years agoMerge "Support wallpaper on secondary displays.(5/N)"
TreeHugger Robot [Tue, 18 Dec 2018 03:43:49 +0000 (03:43 +0000)]
Merge "Support wallpaper on secondary displays.(5/N)"

5 years agoMerge "About phone page getFactoryMacAddress"
Oscar Shu [Tue, 18 Dec 2018 03:42:40 +0000 (03:42 +0000)]
Merge "About phone page getFactoryMacAddress"

5 years agoMerge "Replace InterfaceParams with ifName in DhcpServer"
Remi NGUYEN VAN [Tue, 18 Dec 2018 03:38:24 +0000 (03:38 +0000)]
Merge "Replace InterfaceParams with ifName in DhcpServer"

5 years agoMerge "Add new netd event callback for changes to NAT64 prefix"
Nucca Chen [Tue, 18 Dec 2018 03:38:20 +0000 (19:38 -0800)]
Merge "Add new netd event callback for changes to NAT64 prefix"
am: ed30ec8dd1

Change-Id: I5220971458e1491ccde1d8eeef0f91a9534aec75

5 years agoMerge "Remove a special test-only mode from IMMS"
TreeHugger Robot [Tue, 18 Dec 2018 03:35:07 +0000 (03:35 +0000)]
Merge "Remove a special test-only mode from IMMS"

5 years agoMerge "Add new netd event callback for changes to NAT64 prefix"
Nucca Chen [Tue, 18 Dec 2018 03:19:45 +0000 (03:19 +0000)]
Merge "Add new netd event callback for changes to NAT64 prefix"

5 years agoMerge "Add feature flag for settings slice injection"
TreeHugger Robot [Tue, 18 Dec 2018 03:19:28 +0000 (03:19 +0000)]
Merge "Add feature flag for settings slice injection"

5 years agoMerge "Revert "Support mouse pointer on external displays (2/3)""
Kamaljeet Maini [Tue, 18 Dec 2018 03:00:17 +0000 (03:00 +0000)]
Merge "Revert "Support mouse pointer on external displays (2/3)""

5 years agoMerge "MediaPlayer2: add DataSourceDesc for source dependent API's"
TreeHugger Robot [Tue, 18 Dec 2018 02:02:40 +0000 (02:02 +0000)]
Merge "MediaPlayer2: add DataSourceDesc for source dependent API's"

5 years agoMerge "Move biometrics into biometric namespace"
Kevin Chyn [Tue, 18 Dec 2018 02:01:45 +0000 (02:01 +0000)]
Merge "Move biometrics into biometric namespace"

5 years agoMerge "Sending a TIME_TICK on screen_on"
TreeHugger Robot [Tue, 18 Dec 2018 01:46:33 +0000 (01:46 +0000)]
Merge "Sending a TIME_TICK on screen_on"

5 years agoMerge "Prototype color changing support"
TreeHugger Robot [Tue, 18 Dec 2018 01:32:20 +0000 (01:32 +0000)]
Merge "Prototype color changing support"

5 years agoMerge "Scan Optimization: expose API to update device mobility state"
David Su [Tue, 18 Dec 2018 01:31:56 +0000 (01:31 +0000)]
Merge "Scan Optimization: expose API to update device mobility state"

5 years agoMerge "Remove unusued code; MediaPlayerBase and MP.set|getBufferingParams"
Dongwon Kang [Tue, 18 Dec 2018 01:24:35 +0000 (01:24 +0000)]
Merge "Remove unusued code; MediaPlayerBase and MP.set|getBufferingParams"

5 years agoFix build for libmedia2_jni
Chong Zhang [Tue, 18 Dec 2018 00:56:58 +0000 (16:56 -0800)]
Fix build for libmedia2_jni

Mpeg2ts static lib now uses the hidl allocator
to get the hidl memory.

bug: 112766913
bug: 111407253
Change-Id: I588e9a603a0dd34dd90a69a32a9b355222507ff2

5 years agoMerge "Add util for reverting schedule mode"
TreeHugger Robot [Tue, 18 Dec 2018 00:41:43 +0000 (00:41 +0000)]
Merge "Add util for reverting schedule mode"

5 years agoMerge "Reduce UsageStatsXmlV1 log messages."
TreeHugger Robot [Tue, 18 Dec 2018 00:33:59 +0000 (00:33 +0000)]
Merge "Reduce UsageStatsXmlV1 log messages."

5 years agoMerge "Clean up some CarSystemUI theme elements"
TreeHugger Robot [Tue, 18 Dec 2018 00:22:33 +0000 (00:22 +0000)]
Merge "Clean up some CarSystemUI theme elements"

5 years agoMerge "Add multiple esim support for SubscriptionManager"
Pengquan Meng [Tue, 18 Dec 2018 00:17:53 +0000 (00:17 +0000)]
Merge "Add multiple esim support for SubscriptionManager"

5 years agoMerge "FileUtils.java: Don't treat open access modes as flags"
TreeHugger Robot [Tue, 18 Dec 2018 00:15:51 +0000 (00:15 +0000)]
Merge "FileUtils.java: Don't treat open access modes as flags"

5 years agoMerge "Add missing getter & improve docs"
John Reck [Mon, 17 Dec 2018 23:52:21 +0000 (23:52 +0000)]
Merge "Add missing getter & improve docs"

5 years agoClean up job concurrency calculation
Makoto Onuki [Sat, 15 Dec 2018 00:34:59 +0000 (16:34 -0800)]
Clean up job concurrency calculation

- Mostly variable renaming and comments.
- A few bugs have been fixed.
- I *think* the max job count check is not working as intended, but we don't
fix it yet.

Bug: 111360323
Test: atest CtsJobSchedulerTestCases

Summary
-------
CtsJobSchedulerTestCases: Passed: 33, Failed: 5

5 tests failed
--------------
android.jobscheduler.cts.BatteryConstraintTest#testBatteryNotLowConstraintFails_withoutPower
android.jobscheduler.cts.ConnectivityConstraintTest#testConnectivityConstraintExecutes_metered
android.jobscheduler.cts.ConnectivityConstraintTest#testConnectivityConstraintExecutes_withMobile
android.jobscheduler.cts.ConnectivityConstraintTest#testUnmeteredConstraintFails_withMobile
android.jobscheduler.cts.TimingConstraintsTest#testJobParameters_unexpiredDeadline

(Unchanged from the ToT result)

Change-Id: I9f0fe8c18265652ca2b6217b3f6540aa7233b7c0

5 years agoidmap2: replace std::pair<bool, T> with Result<T>
MÃ¥rten Kongstad [Mon, 19 Nov 2018 13:14:37 +0000 (14:14 +0100)]
idmap2: replace std::pair<bool, T> with Result<T>

Introduce a new type Result<T> to indicate if an operation succeeded or
not, and if it did, to hold the return value of the operation. This is
the same as how std::pair<bool, T> is already used in the codebase, so
replace all instances with Result<T> to improve clarity.

Result<T> is simply an alias for std::optional<T>. The difference is
semantic: use Result<T> as the return value for functions that can fail,
use std::optional<T> when values are truly optional. This is modelled
after Rust's std::result and std::option.

A future change may graduate Result<T> to a proper class which can hold
additional details on why an operation failed, such as a string or an
error code. As a special case, continue to use std::unique_ptr<T>
instead of Result<std::unique_ptr<T>> for now: the latter would increase
code complexity without added benefit.

Test: make idmap2_tests
Change-Id: I2a8355107ed2b6485409e5e655a84cf1e20b9911

5 years agoMerge "Fix issue #121104681: Force stopping AGSA causes system to revert to its defau...
TreeHugger Robot [Mon, 17 Dec 2018 23:39:28 +0000 (23:39 +0000)]
Merge "Fix issue #121104681: Force stopping AGSA causes system to revert to its default impl"

5 years agoMerge "Match current colors for device default car theme"
TreeHugger Robot [Mon, 17 Dec 2018 23:33:02 +0000 (23:33 +0000)]
Merge "Match current colors for device default car theme"

5 years agoOMS: fix checkstyle warnings
MÃ¥rten Kongstad [Tue, 4 Dec 2018 09:28:01 +0000 (10:28 +0100)]
OMS: fix checkstyle warnings

Fix checkstyle warnings related to the overlay manager, i.e. in the Java
files under

  - core/java/android/content/om
  - core/tests/overlaytests
  - services/core/java/com/android/server/om

Test: prebuilts/checkstyle/checkstyle.py -f $path
Change-Id: I5078629240da2ceb1fd710d2e79e3114bafdd5bb

5 years agoOMS: extract verifyIdmap from createIdmap
MÃ¥rten Kongstad [Tue, 4 Dec 2018 13:36:48 +0000 (14:36 +0100)]
OMS: extract verifyIdmap from createIdmap

For clarity, split IIdmap2::createIdmap into two separate functions:

  - IIdmap2::verifyIdmap [check if an existing idmap file is OK to use]
  - IIdmap2::createIdmap [unconditionally (re)create an idmap file]

Teach the IdmapManager to call verifyIdmap and to proceed with
createIdmap only if actually needed.

Test: atest OverlayDeviceTests OverlayHostTests
Change-Id: I9f6f1192011fcb094adffeca1eb3f709520bbd24

5 years agoMerge "Change platform Scene.getCurrentScene parameter from View to ViewGroup"
TreeHugger Robot [Mon, 17 Dec 2018 22:53:33 +0000 (22:53 +0000)]
Merge "Change platform Scene.getCurrentScene parameter from View to ViewGroup"

5 years agoMerge "Statsd atoms: Add comment about Wifi"
TreeHugger Robot [Mon, 17 Dec 2018 22:51:26 +0000 (22:51 +0000)]
Merge "Statsd atoms: Add comment about Wifi"

5 years agoFix an issue in SurfaceTexture with forgetting the dataspace
Stan Iliev [Mon, 17 Dec 2018 22:37:38 +0000 (17:37 -0500)]
Fix an issue in SurfaceTexture with forgetting the dataspace

Test: Ran CTS and verified dataspace is not set to 0
Bug: 119504473
Change-Id: I6f9920e1979e5435dc95a7c2ab3f02d57dc57c4e

5 years agoMerge "Add TEST_MAPPING for androidfw to add presubmit tests."
TreeHugger Robot [Mon, 17 Dec 2018 22:35:39 +0000 (22:35 +0000)]
Merge "Add TEST_MAPPING for androidfw to add presubmit tests."

5 years agoMerge "Merge "Fix performance-for-range-copy warnings" am: bc29242288 am: 7adb73f332...
Android Build Merger (Role) [Mon, 17 Dec 2018 22:31:47 +0000 (22:31 +0000)]
Merge "Merge "Fix performance-for-range-copy warnings" am: bc29242288 am: 7adb73f332 am: 2296036a40"

5 years agoMerge "Fix performance-for-range-copy warnings" am: bc29242288 am: 7adb73f332
Chih-Hung Hsieh [Mon, 17 Dec 2018 22:31:14 +0000 (14:31 -0800)]
Merge "Fix performance-for-range-copy warnings" am: bc29242288 am: 7adb73f332
am: 2296036a40

Change-Id: Ia99ea6c9633986e68340bc88983d06baa7a1c597

5 years agoMerge "Initial sleep-lock-screen implementation"
Lucas Dupin [Mon, 17 Dec 2018 22:30:24 +0000 (22:30 +0000)]
Merge "Initial sleep-lock-screen implementation"

5 years agoMerge "Read product property to set Vulkan as default render pipeline"
TreeHugger Robot [Mon, 17 Dec 2018 22:26:25 +0000 (22:26 +0000)]
Merge "Read product property to set Vulkan as default render pipeline"

5 years agoMerge "Fix performance-for-range-copy warnings" am: bc29242288
Chih-Hung Hsieh [Mon, 17 Dec 2018 22:17:57 +0000 (14:17 -0800)]
Merge "Fix performance-for-range-copy warnings" am: bc29242288
am: 7adb73f332

Change-Id: I0ab1a28f5490f96bc8b08f073d364a01ff2f20df

5 years agoMerge "Use frameworks wifi icons instead of sysui"
Fabian Kozynski [Mon, 17 Dec 2018 22:09:33 +0000 (22:09 +0000)]
Merge "Use frameworks wifi icons instead of sysui"

5 years agoMerge "Fix performance-for-range-copy warnings"
Chih-Hung Hsieh [Mon, 17 Dec 2018 22:08:29 +0000 (14:08 -0800)]
Merge "Fix performance-for-range-copy warnings"
am: bc29242288

Change-Id: I96e7ca53f2878fd9f75ac14999a02a96a96bb93e

5 years agoMerge "[view-compiler] Add layout validation" am: ceea877ddd am: 1e41ae605d
Eric Holk [Mon, 17 Dec 2018 22:07:44 +0000 (14:07 -0800)]
Merge "[view-compiler] Add layout validation" am: ceea877ddd am: 1e41ae605d
am: 9020a7cd30

Change-Id: I62894502aa797466212ef3f91285ea0c5099f390

5 years ago[Multi-user] Decouple UserBMS and BMS creation
Annie Meng [Tue, 11 Dec 2018 18:24:03 +0000 (18:24 +0000)]
[Multi-user] Decouple UserBMS and BMS creation

The BMS constructor is now only responsible for setting up the system
service. User registration logic is moved to its own helper that
Trampoline calls during a user unlock callback.

** Logic **
All IBackupManager methods that BMS implements now use bookkeeping to
get the UserBMS instance to act on. Currently the system user instance
is hardcoded in most methods as we don't pass in the user id parameter
(except for a few added in ag/5667585).

If these methods are called on a non-registered user, we log and return
a default value.

** Tests **
Each IBackupManager method now has four corresponding tests:
1) Permission denial test: No INTERACT_ACROSS_USERS_FULL permission +
non-calling user id = security exception (added in ag/5667585, only for
methods that take in an user id param currently).
2) Permission grant test: INTERACT_ACROSS_USERS_FULL permission +
non-calling user id = call forwarded.
3) Registered user test: Passing an user id that has a corresponding
UserBMS instance -> delegate call to that UserBMS instance.
4) Unknown user test: Passing an user id that has no corresponding
UserBMS instance -> no call forwarded.

These tests will be updated when more methods take in an user id param.

Bug: 120212806
Test: 1) atest RunFrameworksServicesRoboTests
2) Unlock system user -> starts service, registers transports
3) adb shell bmgr flows
4) atest TrampolineTest
5) CTS + GTS Backup test cases
6) SUW + Cloud restore; D2D
Change-Id: Ic04f754c75af905ee34c609063c08406e23671d5

5 years agoMerge "[automerger skipped] Merge "expose Carrier Id related APIs" am: 18b925a7af...
Android Build Merger (Role) [Mon, 17 Dec 2018 21:57:23 +0000 (21:57 +0000)]
Merge "[automerger skipped] Merge "expose Carrier Id related APIs" am: 18b925a7af am: 0031ae8145 am: 31cf647396  -s ours"

5 years agoMerge "[view-compiler] Add layout validation" am: ceea877ddd
Eric Holk [Mon, 17 Dec 2018 21:55:25 +0000 (13:55 -0800)]
Merge "[view-compiler] Add layout validation" am: ceea877ddd
am: 1e41ae605d

Change-Id: I2bfe50dbb03c6cdcb7cde9b1c1a8f2cf932c41e0

5 years ago[automerger skipped] Merge "expose Carrier Id related APIs" am: 18b925a7af am: 0031ae8145
Chen Xu [Mon, 17 Dec 2018 21:54:57 +0000 (13:54 -0800)]
[automerger skipped] Merge "expose Carrier Id related APIs" am: 18b925a7af am: 0031ae8145
am: 31cf647396  -s ours

Change-Id: Id7d9376286fa9152532c9d967563d172e8601e8f

5 years agoMerge "Fix performance-for-range-copy warnings"
Treehugger Robot [Mon, 17 Dec 2018 21:54:31 +0000 (21:54 +0000)]
Merge "Fix performance-for-range-copy warnings"

5 years agoMerge "Do not use default to get TelephonyManager"
Shuo Qian [Mon, 17 Dec 2018 21:50:56 +0000 (21:50 +0000)]
Merge "Do not use default to get TelephonyManager"

5 years agoRevert "Support mouse pointer on external displays (2/3)"
Andrii Kulian [Mon, 17 Dec 2018 18:59:36 +0000 (18:59 +0000)]
Revert "Support mouse pointer on external displays (2/3)"

This reverts commit 84cdf9cc3b849679e6b4f6d3ccb66270f0abad2f.

Reason for revert: b/120864177

Test: Presubmit
Bug: b/120864177

Change-Id: Ia65e704169527b54cf1d1d470445f96a65fa0294

5 years agoMerge "Changed verbosity of log message shown when context is not autofillable."
TreeHugger Robot [Mon, 17 Dec 2018 21:46:12 +0000 (21:46 +0000)]
Merge "Changed verbosity of log message shown when context is not autofillable."

5 years agoMerge "Implement ModuleInfoProvider"
Dario Freni [Mon, 17 Dec 2018 21:45:29 +0000 (21:45 +0000)]
Merge "Implement ModuleInfoProvider"

5 years agoAdd feature flag for settings slice injection
jackqdyulei [Mon, 17 Dec 2018 21:28:41 +0000 (13:28 -0800)]
Add feature flag for settings slice injection

Bug: 120803703
Test: Manual
Change-Id: I1e0f92576ffb01d7300ec60d9c40165454b3aeba

5 years agoMerge "Fix checking if process name is whitelisted"
TreeHugger Robot [Mon, 17 Dec 2018 21:41:50 +0000 (21:41 +0000)]
Merge "Fix checking if process name is whitelisted"

5 years agoMerge "expose Carrier Id related APIs" am: 18b925a7af
Chen Xu [Mon, 17 Dec 2018 21:39:23 +0000 (13:39 -0800)]
Merge "expose Carrier Id related APIs" am: 18b925a7af
am: 0031ae8145

Change-Id: I6e9837cffdcac094557ea99cde0736abdfff0ff9

5 years agoMerge "[view-compiler] Add layout validation"
Eric Holk [Mon, 17 Dec 2018 21:38:46 +0000 (13:38 -0800)]
Merge "[view-compiler] Add layout validation"
am: ceea877ddd

Change-Id: Ia95ec8ccc77c4be60f018d99391067f3b8b02fd2

5 years agoRemove unusued code; MediaPlayerBase and MP.set|getBufferingParams
Dongwon Kang [Mon, 17 Dec 2018 18:50:50 +0000 (10:50 -0800)]
Remove unusued code; MediaPlayerBase and MP.set|getBufferingParams

Test: build
Bug: 112766913
Change-Id: I999a637a1cb47a28a032478f3c56ab0645837f92

5 years agoMerge "[view-compiler] Add layout validation"
Treehugger Robot [Mon, 17 Dec 2018 21:28:37 +0000 (21:28 +0000)]
Merge "[view-compiler] Add layout validation"

5 years agoMerge "Fix a race condition in DeviceIdleControllerTest."
TreeHugger Robot [Mon, 17 Dec 2018 21:28:26 +0000 (21:28 +0000)]
Merge "Fix a race condition in DeviceIdleControllerTest."

5 years agoFileUtils.java: Don't treat open access modes as flags
Nick Kralevich [Mon, 17 Dec 2018 20:46:08 +0000 (12:46 -0800)]
FileUtils.java: Don't treat open access modes as flags

O_RDONLY, O_WRONLY, and O_RDWR are not flags. Rather, they are the
integer values 0, 1, and 2, respectively.

  #define O_RDONLY 00000000
  #define O_WRONLY 00000001
  #define O_RDWR 00000002

Quoting "man 2 open"

  * File access mode *

  Unlike  the  other  values  that  can  be  specified in flags,
  the access mode values O_RDONLY, O_WRONLY, and O_RDWR do not
  specify individual bits.  Rather, they define the low order
  two bits of flags, and are defined respectively as 0, 1, and
  2. In other words, the combination O_RDONLY | O_WRONLY is a
  logical error, and certainly does not have the same meaning
  as O_RDWR.

  Linux reserves the special, nonstandard access mode 3
  (binary 11) in flags to mean: check for read and write
  permission on the file and return a file descriptor that
  can't be used for reading or writing. This nonstandard access
  mode is used by some Linux drivers to return a file
  descriptor that is to be used only for device-specific
  ioctl(2) operations.

Rather than treat these values like flags, use O_ACCMODE to extract the
values and then perform the comparisons.

Introduced in 63280e06fc64672ab36d14f852b13df2274cc328.

Test: android compiles and boots.
Change-Id: I4d3185e835615ffba3a7854d3d58351e124599d0

5 years agoMerge "expose Carrier Id related APIs"
Chen Xu [Mon, 17 Dec 2018 21:20:03 +0000 (13:20 -0800)]
Merge "expose Carrier Id related APIs"
am: 18b925a7af

Change-Id: I517cd9638544ced0117a7222b21c92940b52885e

5 years agoPrototype color changing support
Matthew Ng [Sat, 15 Dec 2018 01:42:38 +0000 (17:42 -0800)]
Prototype color changing support

If enabled through settings (off by default) you can turn on color
adaption prototype that would sample colors around the home button to
determine if the button should be white or black.

Bug: 112934365
Test: manual
Change-Id: I726a005d97fd525c6b2d6ba3db9a8ed0cc355272

5 years agoMerge "Deprecate ConditionProviderService."
Julia Reynolds [Mon, 17 Dec 2018 21:08:55 +0000 (21:08 +0000)]
Merge "Deprecate ConditionProviderService."

5 years agoMerge "passpoint-r2: define getMatchingPasspointConfigsForOsuProviders API"
Ecco Park [Mon, 17 Dec 2018 21:06:50 +0000 (21:06 +0000)]
Merge "passpoint-r2: define getMatchingPasspointConfigsForOsuProviders API"

5 years agoAdd TEST_MAPPING for androidfw to add presubmit tests.
Aurimas Liutikas [Fri, 14 Dec 2018 18:12:27 +0000 (10:12 -0800)]
Add TEST_MAPPING for androidfw to add presubmit tests.

Test: atest --host libandroidfw_tests
Change-Id: Id893e720139791b499f2f38a25a057738a488c2b

5 years agoMerge "expose Carrier Id related APIs"
Chen Xu [Mon, 17 Dec 2018 20:56:54 +0000 (20:56 +0000)]
Merge "expose Carrier Id related APIs"

5 years agoMerge "[Multi-user] Add -user param to adb backup/restore"
Ruslan Tkhakokhov [Mon, 17 Dec 2018 20:33:50 +0000 (20:33 +0000)]
Merge "[Multi-user] Add -user param to adb backup/restore"

5 years agoStatsd atoms: Add comment about Wifi
Bookatz [Mon, 17 Dec 2018 20:28:32 +0000 (12:28 -0800)]
Statsd atoms: Add comment about Wifi

Add comment explaining caveats about the Wifi atoms.

Bug: 115639456
Test: It is just a comment.
Change-Id: I0882ccbe21c59439c4a6a61fb665bc0bf4695006

5 years agoMerge "Statsd atom: Wifi on (enabled) and running"
Adam Bookatz [Mon, 17 Dec 2018 20:25:29 +0000 (20:25 +0000)]
Merge "Statsd atom: Wifi on (enabled) and running"

5 years agoUse frameworks wifi icons instead of sysui
Fabian Kozynski [Mon, 17 Dec 2018 19:00:51 +0000 (14:00 -0500)]
Use frameworks wifi icons instead of sysui

ic_qs_wifi_full_x have been replaced by ic_wifi_signal_x in frameworks.
That way they can be overlaid with the whole system. Also,
ic_qs_wifi_disabled was identical to ic_qs_wifi_full_0, so it was
removed.

Test: Visual (using HotDog overlay)
Bug: 121040363
Change-Id: Ia36613e5c0b1f3a0c1eb5c687d795992e8660955

5 years agoFix performance-for-range-copy warnings
Chih-Hung Hsieh [Tue, 11 Dec 2018 19:09:20 +0000 (11:09 -0800)]
Fix performance-for-range-copy warnings

Bug: 30413223
Test: make with WITH_TIDY=1 DEFAULT_GLOBAL_TIDY_CHECKS=-*,performance*
Change-Id: Ie481e88025a7a1f3abde8ff63420d5ccd8577e52

5 years agoFix issue #121104681: Force stopping AGSA causes system to revert to its default...
Dianne Hackborn [Mon, 17 Dec 2018 18:53:53 +0000 (10:53 -0800)]
Fix issue #121104681: Force stopping AGSA causes system to revert to its default impl

If you have a legacy assist app (launched through ACTION_ASSIST, not
implementing a VoiceInteractionService) then we kept the Google app
as the current speech recognizer.  Thus if you force stopped the
Google app, we saw that as one of the active parts of the interactor
or recognizer and reset all of the state.

Now we handle the "only recognizer" case separately, only resettting
the recognizer state in that case.

Bug: 121104681
Test: manual
Change-Id: Icc007bdf2352548d58be997fae77d9e5aba842f3

5 years ago[automerger skipped] Merge "Add FrequencyRange comparator to ServiceState" am: d0c404...
Pengquan Meng [Mon, 17 Dec 2018 19:37:43 +0000 (11:37 -0800)]
[automerger skipped] Merge "Add FrequencyRange comparator to ServiceState" am: d0c404cb21 am: 5cb84d7f23
am: b527f8a44c  -s ours

Change-Id: I384994f412f4c6a79cac99387e42c3c2e113c3e2

5 years agoFix a race condition in DeviceIdleControllerTest.
Robin Lee [Mon, 17 Dec 2018 16:43:57 +0000 (17:43 +0100)]
Fix a race condition in DeviceIdleControllerTest.

I noticed that the real ACTION_BATTERY_CHANGED races against the mocked
calls to update power state and cycle through idle states. This actually
works on a high-end phone or an emulator because the sticky broadcast
goes through before the test finishes setting up.

But on a slower device we sometimes beat the broadcast queue and wind up
getting our state reset halfway through the test. Flaky tests are bad so
let's not listen to broadcasts at all in the test.

May address issue 118639768 [DeviceIdleControllerTest is flaky].

Bug: 110756616
Bug: 118639768
Test: atest com.android.server.DeviceIdleControllerTest
Change-Id: Ie03ed10f2781ccaba4f39f4f34673a3e073e9f7f

5 years agoMerge "Add FrequencyRange comparator to ServiceState" am: d0c404cb21
Pengquan Meng [Mon, 17 Dec 2018 19:28:32 +0000 (11:28 -0800)]
Merge "Add FrequencyRange comparator to ServiceState" am: d0c404cb21
am: 5cb84d7f23

Change-Id: I5550790e9db3604bf35d4f01b6e7fef316e3809e

5 years agoAdd missing getter & improve docs
John Reck [Mon, 17 Dec 2018 18:55:54 +0000 (10:55 -0800)]
Add missing getter & improve docs

Also fix SkiaDisplayList::getUsedSize()

Bug: 120865963
Test: atest android.uirendering.cts.testclasses.RenderNodeTests
Change-Id: I3cdbd8d330da9a00367199087c9ae1e0a2cacf46