OSDN Git Service

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

5 years agoMerge "Ensure getParentSurfaceControl and getSurfaceControl return valid or null...
TreeHugger Robot [Fri, 5 Apr 2019 17:50:52 +0000 (17:50 +0000)]
Merge "Ensure getParentSurfaceControl and getSurfaceControl return valid or null SC" into qt-dev

5 years agoMerge "Adding a level of indirection. Dimens value should live in the framework/base...
TreeHugger Robot [Fri, 5 Apr 2019 17:44:25 +0000 (17:44 +0000)]
Merge "Adding a level of indirection. Dimens value should live in the framework/base and not the overlay." into qt-dev

5 years agoPerform initial grants on package change asynchronously
Eugene Susla [Thu, 4 Apr 2019 17:07:33 +0000 (10:07 -0700)]
Perform initial grants on package change asynchronously

Fixes: 129048190
Test: manual; presubmit
Change-Id: I9cfa3c312bb4d620516c3420831c8ed55c28b59c

5 years agoSharesheet - Content preview polish
Matt Pietal [Fri, 5 Apr 2019 17:20:31 +0000 (13:20 -0400)]
Sharesheet - Content preview polish

1. Add ripple feedback to clipboard copy even though the sharesheet
disappears really fast and you may not see it.
2. Make sure file icon is gray and not influence by the overlay.
3. Default multiple file sharing to file preview area and not image
preview area when there are mixed file types

Bug: 129979196
Test: Visual inspection
Change-Id: Ia86d418ccaca9a122f00dbc3e9c3b30785fb2abd

5 years agoMerge "Support profileable application action" into qt-dev
TreeHugger Robot [Fri, 5 Apr 2019 17:26:53 +0000 (17:26 +0000)]
Merge "Support profileable application action" into qt-dev

5 years agoSet config_dialogCornerRadius to square icon shape
Hyunyoung Song [Fri, 5 Apr 2019 17:22:48 +0000 (10:22 -0700)]
Set config_dialogCornerRadius to square icon shape

Bug: 130028929
Test: flashed and used developers options / square to test it out
Change-Id: I9bdae337be36ce775b50ad859ea557e1c3ef8e93

5 years agoMerge "make libmedia_jni_utils depends on libgui" into qt-dev
Chong Zhang [Fri, 5 Apr 2019 17:18:04 +0000 (17:18 +0000)]
Merge "make libmedia_jni_utils depends on libgui" into qt-dev

5 years agoMerge "wifi.proto: Add link probe event to StaEvent" into qt-dev
David Su [Fri, 5 Apr 2019 17:15:01 +0000 (17:15 +0000)]
Merge "wifi.proto: Add link probe event to StaEvent" into qt-dev

5 years agoMerge "zygote: initialize ashmem early" into qt-dev
TreeHugger Robot [Fri, 5 Apr 2019 17:06:51 +0000 (17:06 +0000)]
Merge "zygote: initialize ashmem early" into qt-dev

5 years agoUpdate action bar dark theme style
Salvador Martinez [Thu, 28 Mar 2019 22:14:54 +0000 (15:14 -0700)]
Update action bar dark theme style

Sets the background colors for action bars in the dark theme
style for DeviceDefault to use a black background. Settings
was overriding it locally so other apps weren't getting the
correct color.

Test: visual inspection
Bug: 120422008
Change-Id: Ic2b0235b7825a5651d1db52265dea5e74af7c2fe

5 years agoFormat all IconPack overlay resources.
Amin Shaikh [Fri, 5 Apr 2019 16:43:19 +0000 (12:43 -0400)]
Format all IconPack overlay resources.

Ran vendor/google_experimental/users/ashaikh/IconPack/format_icon_pack_xml.sh
which formats all drawable resources using the same ordering as android
studio.  All future icon pack updates will include formatting resources this way.

Bug: 118757293
Test: make
Change-Id: I8978dc72369ec98a8a29ba9ec787fd8de860cb73

5 years agoDon't set sehash when calling restoreconRecursive
Nick Kralevich [Thu, 4 Apr 2019 22:54:58 +0000 (15:54 -0700)]
Don't set sehash when calling restoreconRecursive

restorecon_recursive updates the SELinux label of the files in the
filesystem, and then attempts to write the xattr "security.sehash" as an
optimization for future restorecons. Writing security.* extended
attributes requires CAP_SYS_ADMIN, which system_server doesn't have (and
shouldn't have).

Suppress the computation and writing of the hash value. It's not
needed.

This bug has been around for a long time, but due to the fix for
bug 62302954, the error message is being generated more frequently
now.

TODO: It would be better if the default for restorecon was to suppress
the hash computation, since otherwise it encourages programs to be
overprivileged with CAP_SYS_ADMIN. I'll plan on doing that in a followup
commit.

Bugs where this error message has been called out:
Bug: 129766333
Bug: 129271240
Bug: 128700692
Bug: 129925723

Test: install an APK and ensure that no "SELinux:  setxattr failed"
    error messages are generated.

(cherry picked from commit cb1dddad27b86e675f7141ca429e9bb8ab8ac410)

Change-Id: Ifc5be24d14029cb616d5564366fc10a0b93c9939

5 years agoMerge "Only switch task focus to window's task that was tapped outside current focus...
Chavi Weingarten [Fri, 5 Apr 2019 16:41:43 +0000 (16:41 +0000)]
Merge "Only switch task focus to window's task that was tapped outside current focus" into qt-dev

5 years agoMerge "EGLAttrib requires special handling in JNI" into qt-dev
Courtney Goeltzenleuchter [Fri, 5 Apr 2019 16:37:25 +0000 (16:37 +0000)]
Merge "EGLAttrib requires special handling in JNI" into qt-dev

5 years agoFix documentation of CallRedirectionService
sqian [Fri, 5 Apr 2019 16:21:31 +0000 (09:21 -0700)]
Fix documentation of CallRedirectionService

Test: sanity
Bug: 130026756
Change-Id: I48f60b3c4a465e22250aa513a4d7d73f82375426

5 years agoFix metadata surfacecontrol api/jni
Evan Rosky [Thu, 4 Apr 2019 02:27:18 +0000 (19:27 -0700)]
Fix metadata surfacecontrol api/jni

This was wrong

Bug: 122925737
Test: Using setMetadata doesn't crash anymore
Change-Id: I75216ca9778e356b3f2a76555367e2563d9a29e0

5 years agoEnsure getParentSurfaceControl and getSurfaceControl return valid or null SC
Robert Carr [Thu, 4 Apr 2019 19:02:51 +0000 (12:02 -0700)]
Ensure getParentSurfaceControl and getSurfaceControl return valid or null SC

Many places (like SurfaceAnimator#reset) expect that these SC will be valid or
null, but various implementors of Animatable were not fulfilling this contract.
Fulfill the contract and update the java-doc. Since everyone follows function
documentation this will never happen again.

Test: Existing tests pass. go/wm-smoke
Bug: 129949355
Change-Id: I5acb6b3209158c4c5b258a06c5d60d9e06bb6db1

5 years agoAdd supported PackageInfo to ExplicitHealthCheckService API
Zimuzo [Fri, 29 Mar 2019 17:42:19 +0000 (17:42 +0000)]
Add supported PackageInfo to ExplicitHealthCheckService API

With the change in I4f13638598037acaeb30d61c8d5178f45882fcba
to separate the PackageWatchdog package expiry deadline from the explicit
health check deadline. It would be cleaner for ExtServices to supply
this deadline per-package. We now do that as a field in
PackageInfo.

Bug: 120598832
Test: Builds

Change-Id: I29e2d619a5296716c29893ab3aa2f35f69bfb4d7

5 years agoMerge "fix AudioAttributes matching rule in AudioProductStrategy" into qt-dev
Eric Laurent [Fri, 5 Apr 2019 16:00:00 +0000 (16:00 +0000)]
Merge "fix AudioAttributes matching rule in AudioProductStrategy" into qt-dev

5 years agoMerge "Revert "Revert "Mute haptic channels by default.""" into qt-dev
Eric Laurent [Fri, 5 Apr 2019 16:00:00 +0000 (16:00 +0000)]
Merge "Revert "Revert "Mute haptic channels by default.""" into qt-dev

5 years agoMerge "Flag to configure model parameters" into qt-dev
TreeHugger Robot [Fri, 5 Apr 2019 15:52:17 +0000 (15:52 +0000)]
Merge "Flag to configure model parameters" into qt-dev

5 years agoMerge "Set system gesture exclusion rects for Bubbles" into qt-dev
TreeHugger Robot [Fri, 5 Apr 2019 15:41:25 +0000 (15:41 +0000)]
Merge "Set system gesture exclusion rects for Bubbles" into qt-dev

5 years agoVolume dialog should show the volume for the group id that is being changed.
Priyank Singh [Fri, 29 Mar 2019 22:00:16 +0000 (15:00 -0700)]
Volume dialog should show the volume for the group id that is being changed.

Bug: 117938620
Test: Manual
Change-Id: Ib32c1ac996c2f444d815390fc928381c8f781c2b

5 years agoAdding a level of indirection. Dimens value should live in the framework/base and...
Priyank Singh [Wed, 27 Mar 2019 22:40:05 +0000 (15:40 -0700)]
Adding a level of indirection. Dimens value should live in the framework/base and not the overlay.

Bug: 129080865
Test: Manual
Change-Id: Ic6bc3b254c32afad4230351fe9dd33217a7a86a4

5 years agoMerge "Catch ArrayIndexOutOfBoundsException in StateMachine.toString()" into qt-dev
TreeHugger Robot [Fri, 5 Apr 2019 15:27:05 +0000 (15:27 +0000)]
Merge "Catch ArrayIndexOutOfBoundsException in StateMachine.toString()" into qt-dev

5 years agoMerge "Fix isExternalStorageSandboxed() bug." into qt-dev
Jeff Sharkey [Fri, 5 Apr 2019 15:18:23 +0000 (15:18 +0000)]
Merge "Fix isExternalStorageSandboxed() bug." into qt-dev

5 years agoMerge "Expose notification guts on menu shown" into qt-dev
TreeHugger Robot [Fri, 5 Apr 2019 15:05:15 +0000 (15:05 +0000)]
Merge "Expose notification guts on menu shown" into qt-dev

5 years agoRe-inflate views in onOverlayChanged.
Robert Snoeberger [Fri, 5 Apr 2019 14:37:21 +0000 (10:37 -0400)]
Re-inflate views in onOverlayChanged.

onThemeChanged had been used to re-inflate changes, but
ag/6670184 modified onThemeChanged to exit early if the
ThemeResId hasn't changd. A style change doesn't change
the ThemeResId, so re-inflating views in onOverlayChanged
so that font, etc. will update.

Fixes: 129870891
Test: Lock screen font changes with style change.
Change-Id: Ib4aecb017012d5035753fdc3a71615cb7b5216ce

5 years agoMerge "Update icon for Calendar permission." into qt-dev
TreeHugger Robot [Fri, 5 Apr 2019 14:26:14 +0000 (14:26 +0000)]
Merge "Update icon for Calendar permission." into qt-dev

5 years agoMerge "fix nullability" into qt-dev
Todd Kennedy [Fri, 5 Apr 2019 14:16:37 +0000 (14:16 +0000)]
Merge "fix nullability" into qt-dev

5 years agoMerge "Sharesheet - Limit EXTRA_INITIAL_INTENTS to 2" into qt-dev
TreeHugger Robot [Fri, 5 Apr 2019 14:10:41 +0000 (14:10 +0000)]
Merge "Sharesheet - Limit EXTRA_INITIAL_INTENTS to 2" into qt-dev

5 years agoMerge "Update theme icon packs." into qt-dev
TreeHugger Robot [Fri, 5 Apr 2019 14:08:52 +0000 (14:08 +0000)]
Merge "Update theme icon packs." into qt-dev