OSDN Git Service

android-x86/frameworks-base.git
5 years agoHandle additional users settings custom clock faces.
Robert Snoeberger [Mon, 8 Apr 2019 21:07:14 +0000 (17:07 -0400)]
Handle additional users settings custom clock faces.

Fixes: 128607948
Test: Switched user and checked clock face.
Change-Id: I2dc895f2b82cfa39f64588215a535ade4c90054e

5 years agoMerge "Fix job persistence & re-inflation" into qt-dev
TreeHugger Robot [Mon, 8 Apr 2019 17:17:12 +0000 (17:17 +0000)]
Merge "Fix job persistence & re-inflation" into qt-dev

5 years agoMerge "Adding documentation to getElapsedRealtimeUncertaintyNanos following api counc...
TreeHugger Robot [Mon, 8 Apr 2019 17:13:58 +0000 (17:13 +0000)]
Merge "Adding documentation to getElapsedRealtimeUncertaintyNanos following api council guidance." into qt-dev

5 years agoMerge changes Ic4eb56fc,I7ba66213,I4b4dba44 into qt-dev
TreeHugger Robot [Mon, 8 Apr 2019 17:08:54 +0000 (17:08 +0000)]
Merge changes Ic4eb56fc,I7ba66213,I4b4dba44 into qt-dev

* changes:
  WifiScannerTest: More unit tests
  WifiScannerTest: Add unit tests
  WifiManagerTest: Add unit tests

5 years agoMerge "wifi proto change for some legacy API usage metrics" into qt-dev
Oscar Shu [Mon, 8 Apr 2019 17:07:11 +0000 (17:07 +0000)]
Merge "wifi proto change for some legacy API usage metrics" into qt-dev

5 years agoMerge "ApplicationLoaders: hard failures & tests" into qt-dev
Steven Moreland [Mon, 8 Apr 2019 16:27:21 +0000 (16:27 +0000)]
Merge "ApplicationLoaders: hard failures & tests" into qt-dev

5 years agoMerge "Grant sound recorder microphone permissions" into qt-dev
TreeHugger Robot [Mon, 8 Apr 2019 15:33:22 +0000 (15:33 +0000)]
Merge "Grant sound recorder microphone permissions" into qt-dev

5 years agoMerge "Sharesheet - Fix scroll behavior moving past bounds" into qt-dev
TreeHugger Robot [Mon, 8 Apr 2019 15:27:12 +0000 (15:27 +0000)]
Merge "Sharesheet - Fix scroll behavior moving past bounds" into qt-dev

5 years agoMerge "Remove DELEGATION_PACKAGE_INSTALLATION" into qt-dev
TreeHugger Robot [Mon, 8 Apr 2019 15:10:59 +0000 (15:10 +0000)]
Merge "Remove DELEGATION_PACKAGE_INSTALLATION" into qt-dev

5 years agoMerge "Restricted permission mechanism - framework" into qt-dev
Svetoslav Ganov [Mon, 8 Apr 2019 14:54:03 +0000 (14:54 +0000)]
Merge "Restricted permission mechanism - framework" into qt-dev

5 years agoMerge "Use marquee in Global Actions menu. Fix centering on classic Global Actions...
Aaron Heuckroth [Mon, 8 Apr 2019 14:20:58 +0000 (14:20 +0000)]
Merge "Use marquee in Global Actions menu. Fix centering on classic Global Actions menu." into qt-dev

5 years agoMerge "Remove OPTED_OUT Secure Setting based on API Council feedback." into qt-dev
Anthony Tripaldi [Mon, 8 Apr 2019 14:15:46 +0000 (14:15 +0000)]
Merge "Remove OPTED_OUT Secure Setting based on API Council feedback." into qt-dev

5 years agoMerge "BubbleData [1/n]: remove unused parameter" into qt-dev
Mark Renouf [Mon, 8 Apr 2019 13:58:33 +0000 (13:58 +0000)]
Merge "BubbleData [1/n]: remove unused parameter" into qt-dev

5 years agoSharesheet - Fix scroll behavior moving past bounds
Matt Pietal [Mon, 8 Apr 2019 13:57:07 +0000 (09:57 -0400)]
Sharesheet - Fix scroll behavior moving past bounds

ResolverDrawerLayout is tracking fractions of pixels, but just drops
these fractions when offsetting the child views. When scrolling up and
down continuously, this can lead to the view scrolling past the window
bounds. Do not discard these fractions. Track the remainders and add
them in when the sum to >= 1px.

Bug: 129979914
Test: Manual scrolling test
Change-Id: I0e8ea04baca341c6b6e0573e086f3f2f8c2b39b5

5 years agoGrant sound recorder microphone permissions
Justin Klaassen [Thu, 14 Mar 2019 15:45:06 +0000 (08:45 -0700)]
Grant sound recorder microphone permissions

Bug: 128599472
Test: DefaultPermissionGrantPolicyTest#testDefaultGrant
Change-Id: I3016a13ca36fec0cc8c2ecbb2f11a4dcf17c63c1

5 years agoMerge "Allow different explicit health and package expiry timeouts" into qt-dev
Zimuzo Ezeozue [Mon, 8 Apr 2019 13:05:15 +0000 (13:05 +0000)]
Merge "Allow different explicit health and package expiry timeouts" into qt-dev

5 years agoMerge "Prevent SIGN_IN notification pop up several times" into qt-dev
Lorenzo Colitti [Mon, 8 Apr 2019 12:03:10 +0000 (12:03 +0000)]
Merge "Prevent SIGN_IN notification pop up several times" into qt-dev

5 years agoAllow different explicit health and package expiry timeouts
Zimuzo [Fri, 5 Apr 2019 11:03:10 +0000 (12:03 +0100)]
Allow different explicit health and package expiry timeouts

We have always evaluated the explicit health check results on package
expiry. Since I29e2d619a5296716c29893ab3aa2f35f69bfb4d7 we now receive
explicit health check timeouts from ExtServices. This cl doesn't yet
use the timeout but it treats explicit health check timeouts as
different events from package expiry. This is in preparation to use
the timeouts from the cl mentioned above.

Improved readability: Logging, comments, variable and function names

Bug: 120598832
Test: atest PackageWatchdogTest
Change-Id: I8030dae1fef5b8fee42095c1eaf16861cc33ac59

5 years agoMerge "Fixed incorrect service state populated" into qt-dev
TreeHugger Robot [Mon, 8 Apr 2019 10:09:27 +0000 (10:09 +0000)]
Merge "Fixed incorrect service state populated" into qt-dev

5 years agoMerge "Add system captions manager service" into qt-dev
TreeHugger Robot [Mon, 8 Apr 2019 08:57:44 +0000 (08:57 +0000)]
Merge "Add system captions manager service" into qt-dev

5 years agoRemove OPTED_OUT Secure Setting based on API Council feedback.
Anthony Tripaldi [Fri, 5 Apr 2019 20:08:56 +0000 (16:08 -0400)]
Remove OPTED_OUT Secure Setting based on API Council feedback.

Bug:129768185
Test: manual
Change-Id: I51d47142cfb2abeb17d6ad5e99b8f7d1ea585fc7

5 years agoMerge "Remove SocketUtils#setSocketTimeValueOption" into qt-dev
Remi NGUYEN VAN [Mon, 8 Apr 2019 08:27:49 +0000 (08:27 +0000)]
Merge "Remove SocketUtils#setSocketTimeValueOption" into qt-dev

5 years agoMerge "Move attach*Filter() and addArpEntry() methods to NetworkStack" into qt-dev
Remi NGUYEN VAN [Mon, 8 Apr 2019 08:27:19 +0000 (08:27 +0000)]
Merge "Move attach*Filter() and addArpEntry() methods to NetworkStack" into qt-dev

5 years agoMerge "Revert "Depecrate flags, and try to match them to actions"" into qt-dev
TreeHugger Robot [Mon, 8 Apr 2019 08:15:12 +0000 (08:15 +0000)]
Merge "Revert "Depecrate flags, and try to match them to actions"" into qt-dev

5 years agoFixed incorrect service state populated
Jack Yu [Mon, 8 Apr 2019 08:10:27 +0000 (01:10 -0700)]
Fixed incorrect service state populated

ServiceState.setStateOutOfService does not correctly
clean up the information so the old WLAN registration info
got populated for the next time use.

Bug: 130048577
Test: Telephony sanity tests
Change-Id: I7fab7090c22390914af024c44bffd643c13f33e5

5 years agoPrevent SIGN_IN notification pop up several times
lucaslin [Mon, 8 Apr 2019 07:47:25 +0000 (15:47 +0800)]
Prevent SIGN_IN notification pop up several times

SIGN_IN notification may pop up several times before user
logged in the network if someone trigger
ConnectivityService#reportNetworkConnectivity().
Add a boolean to make sure SIGN_IN notification will only pop up
once to user before user logged in.

Bug: b/122164725
Test: Build pass.
Change-Id: I9c7f1d47fde8e5dfadd6646497023b05f3b0ed88
Merged-In: I9c7f1d47fde8e5dfadd6646497023b05f3b0ed88

5 years agoRestricted permission mechanism - framework
Svet Ganov [Sat, 6 Apr 2019 01:52:08 +0000 (18:52 -0700)]
Restricted permission mechanism - framework

This change adds a mechanism for restricting permissions (only runtime
for now), so that an app cannot hold the permission if it is not white
listed. The whitelisting can happen at install or at any later point.

There are three whitelists: system: OS managed with default grants
and role holders being on it; upgrade: only OS puts on this list
apps when upgrading from a pre to post restriction permission database
version and OS and installer on record can remove; installer: only
the installer on record can add and remove (and the system of course).

Added a permission policy service that sits on top of permissions
and app ops and is responsible to sync between permissions and app
ops when there is an interdependecy in any direction.

Added versioning to the runtime permissions database to allow operations
that need to be done once on upgrade such as adding all permissions held
by apps pre upgrade to the upgrade whitelist if the new permisison version
inctroduces a new restricted permission. The upgrade logic is in the
permission controller and we will eventually put the default grants there.

NOTE: This change is reacting to a VP feedback for how we would handle
SMS/CallLog restriction as we pivoted from role based approach to roles
for things the user would understand plus whitelist for everything else.
This would also help us roll out softly the storage permisison as there
is too much churm coming from developer feedback.

Exempt-From-Owner-Approval: trivial change due to APi adjustment

Test: atest CtsAppSecurityHostTestCases:android.appsecurity.cts.PermissionsHostTest
Test: atest CtsPermissionTestCases
Test: atest CtsPermission2TestCases
Test: atest RoleManagerTestCases

bug:124769181

Change-Id: Ic48e3c728387ecf02f89d517ba1fe785ab9c75fd

5 years agoRemove SocketUtils#setSocketTimeValueOption
Remi NGUYEN VAN [Fri, 5 Apr 2019 12:39:23 +0000 (05:39 -0700)]
Remove SocketUtils#setSocketTimeValueOption

This API was added in Q but is not necessary anymore as
Os#setsockoptTimeval was exposed as public API.

Test: m
Fixes: 129433363
Merged-In: If4a75f23c6c0589c23cadce3b088966649062463
(cherry picked from commit 77f9d85f120df6313938f4105aeb005c1fe888c3)

Change-Id: I4669eb2f9fa073d765be6bcb5863a5887eaf1ab5

5 years agoMove attach*Filter() and addArpEntry() methods to NetworkStack
Remi NGUYEN VAN [Fri, 5 Apr 2019 11:44:45 +0000 (04:44 -0700)]
Move attach*Filter() and addArpEntry() methods to NetworkStack

The SocketUtils.attach*Filter and SocketUtils.addArpEntry methods
were added there because they could not be added as JNI inside
the NetworkStack. This was not possible because on Go devices,
the NetworkStack was a jar library. But now, Go also uses an APK.
Hence, move these methods to the NetworkStack.

Fixes: 129433183
Merged-In: I66d7b3e4fbfa32bb0bc853e8cf9399031daff8a9
(cherry picked from commit fe71be2b04a3213828dc0347a1dd4a3675d20562)

Change-Id: Ice433a41469e784385f19498c154345d7b9c69b5

5 years agoMerge "Import translations. DO NOT MERGE" into qt-dev
TreeHugger Robot [Mon, 8 Apr 2019 00:35:13 +0000 (00:35 +0000)]
Merge "Import translations. DO NOT MERGE" into qt-dev

5 years agoMerge "Revert "Fix lifecycle issue in CommonPool"" into qt-dev
TreeHugger Robot [Sun, 7 Apr 2019 22:23:51 +0000 (22:23 +0000)]
Merge "Revert "Fix lifecycle issue in CommonPool"" into qt-dev

5 years agoImport translations. DO NOT MERGE
Bill Yi [Sun, 7 Apr 2019 20:58:46 +0000 (13:58 -0700)]
Import translations. DO NOT MERGE

Auto-generated-cl: translation import

Bug: 64712476
Change-Id: I120e035377ab67c16f3173921065deabad07c2e3

5 years agoAdd system captions manager service
Robert Berry [Mon, 18 Mar 2019 20:33:42 +0000 (16:33 -0400)]
Add system captions manager service

This service connects to a remote system captions manager service. This
service is responsible for enabling system captions when the user
requests them. As the system binds to it, this service will be
persistent.

Cherry pick from ag/6761232

Bug: 128925852
Test: Manual. I created an implementation of the service.
Merged-In: Iafde1bb68f4754d8167624f47c6833d43c0ec336
Change-Id: Iafde1bb68f4754d8167624f47c6833d43c0ec336

5 years agoMerge "Add provisioning extra definition to skip education screens" into qt-dev
TreeHugger Robot [Sun, 7 Apr 2019 10:33:28 +0000 (10:33 +0000)]
Merge "Add provisioning extra definition to skip education screens" into qt-dev

5 years agoMerge "Import translations. DO NOT MERGE" into qt-dev
TreeHugger Robot [Sun, 7 Apr 2019 06:24:23 +0000 (06:24 +0000)]
Merge "Import translations. DO NOT MERGE" into qt-dev

5 years agoRevert "Fix lifecycle issue in CommonPool"
David James [Sun, 7 Apr 2019 04:27:56 +0000 (04:27 +0000)]
Revert "Fix lifecycle issue in CommonPool"

This reverts commit 5ff61f32a78dca0c722c8ac2685874a26190ceed.

Reason for revert: causes global presubmit to be very flaky, see b/130081457
Fixes: b/130081457

Change-Id: I93aa5d6686cd6b5bf831766c9e47c291749526a9

5 years agoMerge "Enabled the USAP Pool by default." into qt-dev
Mathieu Chartier [Sat, 6 Apr 2019 19:21:30 +0000 (19:21 +0000)]
Merge "Enabled the USAP Pool by default." into qt-dev

5 years agoImport translations. DO NOT MERGE
Bill Yi [Sat, 6 Apr 2019 17:26:49 +0000 (10:26 -0700)]
Import translations. DO NOT MERGE

Auto-generated-cl: translation import

Bug: 64712476
Change-Id: If83787f9703cc88c8f7b24357360b2c88379e614

5 years agoMerge "Don't update process-level configutaion for MSIME process" into qt-dev
TreeHugger Robot [Sat, 6 Apr 2019 16:49:20 +0000 (16:49 +0000)]
Merge "Don't update process-level configutaion for MSIME process" into qt-dev

5 years agoMerge "Move no longer flaky tests into pre-submit" into qt-dev
Yunfan Chen [Sat, 6 Apr 2019 15:10:02 +0000 (15:10 +0000)]
Merge "Move no longer flaky tests into pre-submit" into qt-dev

5 years agoMerge "Do not start jit profile in app zygote" into qt-dev
TreeHugger Robot [Sat, 6 Apr 2019 11:55:48 +0000 (11:55 +0000)]
Merge "Do not start jit profile in app zygote" into qt-dev

5 years agoMerge "Java code for mainline modules to log to statsd." into qt-dev
TreeHugger Robot [Sat, 6 Apr 2019 11:43:39 +0000 (11:43 +0000)]
Merge "Java code for mainline modules to log to statsd." into qt-dev

5 years agoDon't update process-level configutaion for MSIME process
lumark [Tue, 2 Apr 2019 06:56:46 +0000 (14:56 +0800)]
Don't update process-level configutaion for MSIME process

Currently, process-level display configuration change for IME process
is only for single-client IME window moving to another display to update
UI layout according display configuration.

It's not applicable for MSIME use case since other IMEs on other displays
will also receive this configuration change due to IME services use
the same application config/context, so add a check to fix this issue.

Fix: 129723692
Test: atest MultiDisplaySystemDecorationTests
Test: manual
      1. Enable config_perDisplayFocusEnabled config,
      2. Install MultiClientInputMethod app
      3. Set multi client IME component by "adb shell setprop persist.debug.multi_client_ime \
         com.example.android.multiclientinputmethod/.MultiClientInputMethod"
      4. Reboot device to initiate MultiClientInputMethod
      5. In Settings -> developer options -> Enable Simulated display &
         Force desktop mode.
      6. Reboot device to enable multi-display test environment.
      7. In primary & external display, launch app with EditText.
      8. Focus EditText in both displays and see if keyboard can displayed
         with correct layout.

Change-Id: Ic556ca212d285de183e3709b032427d5d97e0623
(cherry picked from commit 7234a64355adaea72f566e15cdca62eefd7e6515)

5 years agoUpdate color for permission, settings, pointer
Lyn Han [Tue, 2 Apr 2019 23:27:32 +0000 (16:27 -0700)]
Update color for permission, settings, pointer

Fix bug where we created inset drawable from adaptive icon
drawable, instead of the original settings drawable.

And refactors.

Test: manual
Bug: 123829494
Bug: 123663905
Change-Id: I9342213365cf3679facd22da8592325777d3d17f

5 years agoJava code for mainline modules to log to statsd.
Tej Singh [Sun, 24 Mar 2019 00:26:32 +0000 (17:26 -0700)]
Java code for mainline modules to log to statsd.

Adds support for generating app code to allow java mainline modules to
call the StatsLog.writeRaw public API. Supports primitives, enums,
attribution chains, MODE_BYTES. Does not support key value pairs,
worksource methods (because worksource uses hidden apis in the
worksource object).

Test: manually tested atom logging from DocumentsUI
Test: existing autogenerated code is not modified
Test: cts will follow
Bug: 126134616

Change-Id: Ia321cf2d9952e3875ed0c7a28db1f4113711513f

5 years agoMerge "Add display white balance enabled methods to CDS" into qt-dev
Christine Franks [Sat, 6 Apr 2019 01:25:41 +0000 (01:25 +0000)]
Merge "Add display white balance enabled methods to CDS" into qt-dev

5 years agoMerge "Fix LaTeX formatting in Android documentation" into qt-dev
TreeHugger Robot [Sat, 6 Apr 2019 01:20:24 +0000 (01:20 +0000)]
Merge "Fix LaTeX formatting in Android documentation" into qt-dev

5 years agoMerge "Change elapsedRealtimeUncertaintyNanos from long to double" into qt-dev
TreeHugger Robot [Sat, 6 Apr 2019 01:11:24 +0000 (01:11 +0000)]
Merge "Change elapsedRealtimeUncertaintyNanos from long to double" into qt-dev

5 years agoAdding documentation to getElapsedRealtimeUncertaintyNanos following api council...
Pierre Fite-Georgel [Thu, 4 Apr 2019 20:27:07 +0000 (13:27 -0700)]
Adding documentation to getElapsedRealtimeUncertaintyNanos following api council guidance.

Test: N/A comment only
Bug: 129769397
Change-Id: I906494b0b72898149322959f5900626a12d6d86b
(cherry picked from commit d6d4d1efa2084c79161c1ffac303477e9d8e72fe)

5 years agoMerge "Run end actions immediately if there are no children to animate." into qt-dev
TreeHugger Robot [Sat, 6 Apr 2019 00:29:11 +0000 (00:29 +0000)]
Merge "Run end actions immediately if there are no children to animate." into qt-dev

5 years agoMerge "Guard CDS settings against USER_NULL" into qt-dev
TreeHugger Robot [Sat, 6 Apr 2019 00:23:39 +0000 (00:23 +0000)]
Merge "Guard CDS settings against USER_NULL" into qt-dev

5 years agoFix job persistence & re-inflation
Christopher Tate [Fri, 5 Apr 2019 22:51:42 +0000 (15:51 -0700)]
Fix job persistence & re-inflation

We were persisting jobs' battery-not-low constraints but were not
properly restoring that constraint when the job was inflated at boot.
This could result in a runtime bootloop (!) if the job had no other
constraints, requiring a factory reset to restore the device to
usability.

We now:

* properly inflate the battery-not-low constraint;
* persist & inflate the storage-not-low constraint, which previously was
being stripped entirely and could result in a similar crash-at-boot;
* ignore the job rather than crash the system if one is inflated into
a non-viable state; and
* formally test previously-untested constraint persistence

Bug: 130012063
Test: atest $ANDROID_BUILD_TOP/frameworks/base/services/tests/servicestests/src/com/android/server/job/JobStoreTest.java
Test: atest CtsJobSchedulerTestCases
Test: JobStoreTest with forced throw in JobInfo.Builder#build()
Change-Id: Ia3ab1eb16aeaa85336409368b4340622cec19f4c

5 years agoMerge "Opportunistic Sub Grouping Keys in CarrierConfig" into qt-dev
Xiangyu/Malcolm Chen [Sat, 6 Apr 2019 00:05:15 +0000 (00:05 +0000)]
Merge "Opportunistic Sub Grouping Keys in CarrierConfig" into qt-dev

5 years agoFix a bug in RegisterStatusBarResult parceling
Yohei Yukawa [Fri, 5 Apr 2019 23:53:32 +0000 (16:53 -0700)]
Fix a bug in RegisterStatusBarResult parceling

This is a follow up CL to my previous CL [1], which introduced
RegisterStatusBarResult to consolidate return values from
StatusBarManagerService#registerStatusBar().

It turns out that the following fields are not correctly unmarshalled.
 - RegisterStatusBarResult#mFullscreenStackBounds
 - RegisterStatusBarResult#mDockedStackBounds

This is because those two fields were written with
Parcel#writeParcelable() while we were reading them directly with
Rect.CREATOR#createFromParcel().  Parcel#writeParcelable() needs to be
used with Parcel#readParcelable() for null handling and custom
class-loader handling.

With this CL, we now read/write these two fields with the following
methods, which can also be used to write/read Parcelable objects in a
bit more simpler style unless as long as we can rely on the default
class-loader.
 - Parcel#writeTypedObject()
 - Parcel#readTypedObject()

This CL also adds unit tests for StatusBarIcon and
RegisterStatusBarResult to make sure that these classes can be sent
over Parcel.

 [1]: Ib1c0ae8f591ca09d0bce7a39f85ba57aad386e47
      49efa718a86959e1fe996f05669c462c98f836f0

Bug: 122439339
Test: atest FrameworksCoreTests:StatusBarIconTest
Test: atest FrameworksCoreTests:RegisterStatusBarResultTest
Change-Id: I0f41cbcb4c2f1222f18e1e34e3cf40bb0dfdfdb3

5 years agoMerge "Remove mainline settings feature flag." into qt-dev
TreeHugger Robot [Fri, 5 Apr 2019 23:33:16 +0000 (23:33 +0000)]
Merge "Remove mainline settings feature flag." into qt-dev

5 years agoFix LaTeX formatting in Android documentation
Nader Jawad [Fri, 5 Apr 2019 20:55:26 +0000 (13:55 -0700)]
Fix LaTeX formatting in Android documentation

Added missing usesMathJax tag within Javadoc for
each BlendMode enum value. This should ensure that the
blending formulas are rendered properly in the android documentation

Test: N/A
Bug: 130041190
Change-Id: I6c6dcc1804d8399468191bf758bf6cc7685918b5
(cherry picked from commit 39055b05e023a76941eb601d2c18df6b6db88117)

5 years agoMerge "Add cooling device into thermal service" into qt-dev
TreeHugger Robot [Fri, 5 Apr 2019 23:24:01 +0000 (23:24 +0000)]
Merge "Add cooling device into thermal service" into qt-dev

5 years agoChange elapsedRealtimeUncertaintyNanos from long to double
Yu-Han Yang [Tue, 26 Mar 2019 00:00:03 +0000 (17:00 -0700)]
Change elapsedRealtimeUncertaintyNanos from long to double

Bug: 129166160
Fixes: 129166160

Test: builds and existing tests passed
Change-Id: I948382a9e486b8ddc1ba6a9fe0fd9bb88e9bfb71

5 years agoMerge "DO NOT MERGE: Fix issue #129936402: Runtime restart occurs when suspending...
TreeHugger Robot [Fri, 5 Apr 2019 23:11:21 +0000 (23:11 +0000)]
Merge "DO NOT MERGE: Fix issue #129936402: Runtime restart occurs when suspending an app..." into qt-dev

5 years agoEnabled the USAP Pool by default.
Chris Wailes [Tue, 26 Mar 2019 00:56:27 +0000 (17:56 -0700)]
Enabled the USAP Pool by default.

Set the default value for the USAP Pool to true for devices that don't
receive DeviceConfig profiles.

Bug: 128851983
Test: m & boot & check log for USAP creation
Change-Id: Id171336671a4fb8b8ad59c5b0e2e725657361107
(cherry picked from commit 0f7bce31a8c98d5f6735f5c82213730e0e64d03d)

5 years agoMerge "Add additional custom accent colors." into qt-dev
TreeHugger Robot [Fri, 5 Apr 2019 22:17:25 +0000 (22:17 +0000)]
Merge "Add additional custom accent colors." into qt-dev

5 years agoWifiScannerTest: More unit tests
Roshan Pius [Fri, 5 Apr 2019 20:11:28 +0000 (13:11 -0700)]
WifiScannerTest: More unit tests

Bug: 130035791
Test: ./frameworks/base/wifi/tests/runtests.sh
Change-Id: Ic4eb56fc3ba6bffd3df529432d17af0ba35b6333

5 years agoWifiScannerTest: Add unit tests
Roshan Pius [Fri, 5 Apr 2019 18:36:21 +0000 (11:36 -0700)]
WifiScannerTest: Add unit tests

Bug: 130035791
Test: ./frameworks/base/wifi/tests/runtests.sh
Change-Id: I7ba66213363cfd43a3c7d42e000165368dadeb8d

5 years agoWifiManagerTest: Add unit tests
Roshan Pius [Fri, 5 Apr 2019 18:35:35 +0000 (11:35 -0700)]
WifiManagerTest: Add unit tests

Bug: 130035791
Test: ./frameworks/base/wifi/tests/runtests.sh
Change-Id: I4b4dba445e5f9fc2abfed584bc8bea5e4d0d8d8f

5 years agoDO NOT MERGE: Fix issue #129936402: Runtime restart occurs when suspending an app...
Dianne Hackborn [Thu, 4 Apr 2019 18:01:41 +0000 (11:01 -0700)]
DO NOT MERGE: Fix issue #129936402: Runtime restart occurs when suspending an app...

NPE at com.android.server.appop.AppOpsService.notifyOpChanged(AppOpsService.java:1431)

Wasn't checking for a null callback list, and also fixed threading
issues.

Fixes: 129936402
Test: Manual
Change-Id: I9c39429421643ebc10e78679c2bec52827603da1
Merged-In: I9c39429421643ebc10e78679c2bec52827603da1

5 years agoMerge "Allow non-references to be copied between AssetManagers" into qt-dev
TreeHugger Robot [Fri, 5 Apr 2019 22:00:44 +0000 (22:00 +0000)]
Merge "Allow non-references to be copied between AssetManagers" into qt-dev

5 years agoGuard CDS settings against USER_NULL
Christine Franks [Tue, 2 Apr 2019 17:43:10 +0000 (10:43 -0700)]
Guard CDS settings against USER_NULL

Bug: 129421955
Test: manual
Change-Id: I25b2255d903a5448cfee1e24e03ac75652ce7733
(cherry picked from commit 8f4a54c693968c2e07f8fdd23ffe509a8bd1b703)

5 years agoAdd display white balance enabled methods to CDS
Christine Franks [Thu, 28 Mar 2019 18:45:56 +0000 (11:45 -0700)]
Add display white balance enabled methods to CDS

There needs to be a single source of truth about whether DWB is
enabled or disabled.

Bug: 123930917
Test: atest FrameworksServicesTests:DisplayWhiteBalanceTintControllerTest

Change-Id: If634b46c2d0da123901bd5833e2114d958957540
(cherry picked from commit ff6770d669399f2cbb8723fe1079e82ee0d9d232)

5 years agoAdd cooling device into thermal service
Wei Wang [Wed, 3 Apr 2019 21:58:42 +0000 (14:58 -0700)]
Add cooling device into thermal service

This is for statsd to log new metrics, as statsd has moved to use
thermal service in framework instead of connecting to HAL directly.

Bug: 119688911
Test: Build and dumpsys thermalservice
Test: atest $ANDROID_BUILD_TOP/frameworks/base/services/tests/servicestests/src/com/android/server/power/ThermalManagerServiceTest.java
Change-Id: Ib334c448c3615bf9d1cb0f1b6c2dd8a83d44f371

5 years agoRemove mainline settings feature flag.
Fan Zhang [Fri, 5 Apr 2019 21:30:31 +0000 (14:30 -0700)]
Remove mainline settings feature flag.

Fixes: 123648279
Test: rebuild
Change-Id: Iec229482cc249b9fcf1b3e7ec4a3d3c6f7fa8e2c

5 years agoMerge changes I9706478e,I3fe2dea3,Ic65566c0 into qt-dev
Joe Onorato [Fri, 5 Apr 2019 21:29:24 +0000 (21:29 +0000)]
Merge changes I9706478e,I3fe2dea3,Ic65566c0 into qt-dev

* changes:
  Make libplatformprotos-static, which is safe to use when you don't have shared libraries.
  Add additional system properties that can disable the face debugging codepath
  Fix mMaxOffset not initialized.

5 years agoMerge "Add DeviceConfig namespace for contacts provider" into qt-dev
Makoto Onuki [Fri, 5 Apr 2019 20:49:54 +0000 (20:49 +0000)]
Merge "Add DeviceConfig namespace for contacts provider" into qt-dev

5 years agoBubbleData [1/n]: remove unused parameter
Mark Renouf [Fri, 5 Apr 2019 17:46:24 +0000 (13:46 -0400)]
BubbleData [1/n]: remove unused parameter

Remove an unused parameter from updateBubble (always true).
Eventually BubbleData will determine and apply and changes in
position, affecting other bubbles potentially.

Bug: 123542488
Test: atest BubbleControllerTest
Change-Id: Id90d9c905f63f90273205de91f0cff3e221c1ba4

5 years agoMerge "Send a broadcast for grayscale changed" into qt-dev
TreeHugger Robot [Fri, 5 Apr 2019 20:05:40 +0000 (20:05 +0000)]
Merge "Send a broadcast for grayscale changed" into qt-dev

5 years agoAdd additional custom accent colors.
Amin Shaikh [Fri, 5 Apr 2019 17:16:18 +0000 (13:16 -0400)]
Add additional custom accent colors.

Fixes: 129874396
Test: make
Change-Id: I72ee7cfe2b970128838c27b37e9bee0e099a921f

5 years agoUse marquee in Global Actions menu.
Aaron Heuckroth [Fri, 5 Apr 2019 17:27:51 +0000 (13:27 -0400)]
Use marquee in Global Actions menu.
Fix centering on classic Global Actions menu.

Test: Automated tests pass. Set language to German (Belgien), and set screen size to the largest setting. Bug report string should scroll.

Fixes: 130031168
Fixes: 130031706

Change-Id: I4f873728edded9bc9eddc44a66ac84256a657741

5 years agoRevert "Depecrate flags, and try to match them to actions"
Qasid Ahmad Sadiq [Fri, 5 Apr 2019 04:30:07 +0000 (21:30 -0700)]
Revert "Depecrate flags, and try to match them to actions"

This reverts commit 063eefa78a37905416cf119fd58278c03ea534f3.
The problem with this fix is that services expect to be able to
determine if a node has certain capabilities, even if it is disabled,
and doesn't have the action associated with them.

Change-Id: Ia17ed6ed5f92737226cfe704dc71957f2ae5541b
Fix: 120247282
Test: it builds.

5 years agoRevert "With native FBE, lock user directories when framework is started"
Eric Biggers [Fri, 5 Apr 2019 19:46:35 +0000 (12:46 -0700)]
Revert "With native FBE, lock user directories when framework is started"

This reverts commit 171217cb379a67bbd57790b9118b94cab61ad41c.

Somehow, users may be started before this runs.  Revert it for now.

Bug: 129956131
Test: none (clean revert)
Change-Id: I609162d0c449376e2026c8db18ffb39152e10027

5 years agoOpportunistic Sub Grouping Keys in CarrierConfig
Nathan Harold [Tue, 12 Mar 2019 22:51:42 +0000 (15:51 -0700)]
Opportunistic Sub Grouping Keys in CarrierConfig

Add two keys to allow new subscriptions to be added
into subscription groups before carrier config changes
are broadcast.

Bug: 123721160
Test: atest SubscriptionInfoUpdaterTest
Merged-In: Ib6f811b70e41eba897b9bde0c0aeb0c880169f66
Change-Id: Ib6f811b70e41eba897b9bde0c0aeb0c880169f66
(cherry picked from commit c24e219fc17565c643305d90773d7f71bd168e4e)

5 years agoAllow non-references to be copied between AssetManagers
Ryan Mitchell [Sat, 9 Mar 2019 01:26:28 +0000 (17:26 -0800)]
Allow non-references to be copied between AssetManagers

Hard-coded values in styles can be copied between AssetManagers even if
the source package is not present in the destination AssetManager. Only
references and strings should be prevented from being copied over
because they would be invalid in the destination AssetManager.

Bug:126400561
Test: manual
Change-Id: I970a3e961763b2c003c15b950d864a9a0b615022

5 years agoMerge "Set config_dialogCornerRadius to square icon shape" into qt-dev
TreeHugger Robot [Fri, 5 Apr 2019 19:40:28 +0000 (19:40 +0000)]
Merge "Set config_dialogCornerRadius to square icon shape" into qt-dev

5 years agoMerge "Sharesheet - Content preview polish" into qt-dev
TreeHugger Robot [Fri, 5 Apr 2019 19:36:23 +0000 (19:36 +0000)]
Merge "Sharesheet - Content preview polish" into qt-dev

5 years agoMerge "Perform initial grants on package change asynchronously" into qt-dev
TreeHugger Robot [Fri, 5 Apr 2019 19:30:29 +0000 (19:30 +0000)]
Merge "Perform initial grants on package change asynchronously" into qt-dev

5 years agoMerge "Fix documentation of CallRedirectionService" into qt-dev
TreeHugger Robot [Fri, 5 Apr 2019 19:25:36 +0000 (19:25 +0000)]
Merge "Fix documentation of CallRedirectionService" into qt-dev

5 years agoMerge "Disable a wakeup alarm in car." into qt-dev
TreeHugger Robot [Fri, 5 Apr 2019 19:18:36 +0000 (19:18 +0000)]
Merge "Disable a wakeup alarm in car." into qt-dev

5 years agoMerge "Add supported PackageInfo to ExplicitHealthCheckService API" into qt-dev
Zimuzo Ezeozue [Fri, 5 Apr 2019 19:06:47 +0000 (19:06 +0000)]
Merge "Add supported PackageInfo to ExplicitHealthCheckService API" into qt-dev

5 years agoMerge "Disable ScheduledJobConstraintChanged logging for now." into qt-dev
TreeHugger Robot [Fri, 5 Apr 2019 19:04:19 +0000 (19:04 +0000)]
Merge "Disable ScheduledJobConstraintChanged logging for now." into qt-dev

5 years agoMerge "Volume dialog should show the volume for the group id that is being changed...
TreeHugger Robot [Fri, 5 Apr 2019 19:02:29 +0000 (19:02 +0000)]
Merge "Volume dialog should show the volume for the group id that is being changed." into qt-dev

5 years agoDo not start jit profile in app zygote
Bo Liu [Fri, 5 Apr 2019 18:54:52 +0000 (14:54 -0400)]
Do not start jit profile in app zygote

Bug: 130031692
Test: Scenario in bug works.
Change-Id: Ia28e8fc60cdf4afd2215b9f2239ca215694fc76c

5 years agoMerge "Re-inflate views in onOverlayChanged." into qt-dev
TreeHugger Robot [Fri, 5 Apr 2019 18:53:49 +0000 (18:53 +0000)]
Merge "Re-inflate views in onOverlayChanged." into qt-dev

5 years agoMerge "Update action bar dark theme style" into qt-dev
TreeHugger Robot [Fri, 5 Apr 2019 18:50:23 +0000 (18:50 +0000)]
Merge "Update action bar dark theme style" into qt-dev

5 years agoMerge "SurfaceFlinger: Add exclusion list for captureLayers." into qt-dev
Rob Carr [Fri, 5 Apr 2019 18:47:40 +0000 (18:47 +0000)]
Merge "SurfaceFlinger: Add exclusion list for captureLayers." into qt-dev

5 years agoMerge "Fix metadata surfacecontrol api/jni" into qt-dev
TreeHugger Robot [Fri, 5 Apr 2019 18:33:24 +0000 (18:33 +0000)]
Merge "Fix metadata surfacecontrol api/jni" into qt-dev

5 years agoRun end actions immediately if there are no children to animate.
Joshua Tsuji [Fri, 5 Apr 2019 18:21:53 +0000 (14:21 -0400)]
Run end actions immediately if there are no children to animate.

This fixes several issues around dismissing the last bubble while in the expanded state, since end actions passed to collapseToStack were never run.

Test: atest SystemUITests
Fixes: 128603791
Fixes: 129359745
Change-Id: I6840c6b0f417c96f7927e96261c9d9436b13c426

5 years agoMerge "Format all IconPack overlay resources." into qt-dev
TreeHugger Robot [Fri, 5 Apr 2019 18:22:25 +0000 (18:22 +0000)]
Merge "Format all IconPack overlay resources." into qt-dev

5 years agoMerge "Don't set sehash when calling restoreconRecursive" into qt-dev
TreeHugger Robot [Fri, 5 Apr 2019 18:13:30 +0000 (18:13 +0000)]
Merge "Don't set sehash when calling restoreconRecursive" into qt-dev

5 years agoMerge "Remove Gallery and Music role" into qt-dev
Philip P. Moltmann [Fri, 5 Apr 2019 18:13:14 +0000 (18:13 +0000)]
Merge "Remove Gallery and Music role" into qt-dev

5 years agoMerge "Add getTextClassifier perf test" into qt-dev
TreeHugger Robot [Fri, 5 Apr 2019 18:04:23 +0000 (18:04 +0000)]
Merge "Add getTextClassifier perf test" into qt-dev

5 years agoMerge "Fix lifecycle issue in CommonPool" into qt-dev
John Reck [Fri, 5 Apr 2019 17:59:10 +0000 (17:59 +0000)]
Merge "Fix lifecycle issue in CommonPool" into qt-dev

5 years agoSend a broadcast for grayscale changed
Mill Chen [Fri, 5 Apr 2019 17:36:56 +0000 (10:36 -0700)]
Send a broadcast for grayscale changed

Add android.settings.action.GRAYSCALE_CHANGED to protected broadcast
list.

Bug: 118387886
Test: manual
Change-Id: I67c49ead44c81880bceef708315ed98c8a69508a