OSDN Git Service

android-x86/frameworks-base.git
6 years agoMerge "Add "uses-sdk" to AndroidManifest for ActivityManagerPerfTests"
TreeHugger Robot [Fri, 9 Feb 2018 21:33:22 +0000 (21:33 +0000)]
Merge "Add "uses-sdk" to AndroidManifest for ActivityManagerPerfTests"

6 years agoMerge "Add missing callback to StatusBarService for inline reply"
Amith Yamasani [Fri, 9 Feb 2018 20:49:32 +0000 (20:49 +0000)]
Merge "Add missing callback to StatusBarService for inline reply"

6 years agoMerge "Update Inactive Apps to show standby buckets"
Amith Yamasani [Fri, 9 Feb 2018 20:41:59 +0000 (20:41 +0000)]
Merge "Update Inactive Apps to show standby buckets"

6 years agoMerge "ByteStringUtils: fix hex parsing to include lowercase input."
TreeHugger Robot [Fri, 9 Feb 2018 19:49:15 +0000 (19:49 +0000)]
Merge "ByteStringUtils: fix hex parsing to include lowercase input."

6 years agoMerge "Refactor ZygoteProcess to deal in LocalSocketAddress."
TreeHugger Robot [Fri, 9 Feb 2018 19:44:55 +0000 (19:44 +0000)]
Merge "Refactor ZygoteProcess to deal in LocalSocketAddress."

6 years agoMerge "Simplify method management for IAudioService"
TreeHugger Robot [Fri, 9 Feb 2018 19:25:21 +0000 (19:25 +0000)]
Merge "Simplify method management for IAudioService"

6 years agoMerge "Fixed bug with turnScreenOn window flag."
TreeHugger Robot [Fri, 9 Feb 2018 19:08:29 +0000 (19:08 +0000)]
Merge "Fixed bug with turnScreenOn window flag."

6 years agoMerge "Shore up dividing by zero protections."
TreeHugger Robot [Fri, 9 Feb 2018 18:54:31 +0000 (18:54 +0000)]
Merge "Shore up dividing by zero protections."

6 years agoMerge "Prevent AAPT from versioning <animated-selector> tags."
TreeHugger Robot [Fri, 9 Feb 2018 18:53:23 +0000 (18:53 +0000)]
Merge "Prevent AAPT from versioning <animated-selector> tags."

6 years agoMerge "Restrict DisplayContent creation."
Bryce Lee [Fri, 9 Feb 2018 18:45:55 +0000 (18:45 +0000)]
Merge "Restrict DisplayContent creation."

6 years agoMerge "Don't propagate unrequested permissions"
TreeHugger Robot [Fri, 9 Feb 2018 18:44:43 +0000 (18:44 +0000)]
Merge "Don't propagate unrequested permissions"

6 years agoMerge "Interrupt blanking callback when diplay turns on"
Lucas Dupin [Fri, 9 Feb 2018 18:31:40 +0000 (18:31 +0000)]
Merge "Interrupt blanking callback when diplay turns on"

6 years agoMerge "Follow up to ambient brightness stats change"
TreeHugger Robot [Fri, 9 Feb 2018 18:20:41 +0000 (18:20 +0000)]
Merge "Follow up to ambient brightness stats change"

6 years agoMerge "Improve temporary logging around activity destruction."
TreeHugger Robot [Fri, 9 Feb 2018 18:05:05 +0000 (18:05 +0000)]
Merge "Improve temporary logging around activity destruction."

6 years agoMerge "Remove black frame when pulsing"
Lucas Dupin [Fri, 9 Feb 2018 17:50:37 +0000 (17:50 +0000)]
Merge "Remove black frame when pulsing"

6 years agoShore up dividing by zero protections.
Jeff Sharkey [Fri, 9 Feb 2018 17:06:59 +0000 (10:06 -0700)]
Shore up dividing by zero protections.

We're already trying to protect against zero elsewhere in this file,
but we've seen evidence of it still happening, so add last-ditch
protections.

Test: builds, boots
Bug: 73060623
Change-Id: I0549ed08f906521a8dbd9ff6162f80fa9b388434

6 years agoFixed bug with turnScreenOn window flag.
chaviw [Wed, 7 Feb 2018 17:37:16 +0000 (09:37 -0800)]
Fixed bug with turnScreenOn window flag.

The test
ActivityManagerActivityVisibilityTests#testTurnScreenOnActivity_withRelayout
was failing due to issues with how the turnScreenOn flag was handled.
This change centralizes the logic about when to turn the screen on. The
check for whether the screen should be turned on will happen on each
relayout but is guarded by a flag set in resume. This way the screen can only
have the chance to turn on if a resume was just called.

Change-Id: I0a6e4a11de92fa41c8a49cbfd1b78bd8b38a1b4a
Fixes: 68091612
Test: WindowStateTests
Test: ActivityManagerActivityVisibilityTests

6 years agoSimplify method management for IAudioService
Mikhail Naganov [Wed, 31 Jan 2018 18:28:49 +0000 (10:28 -0800)]
Simplify method management for IAudioService

Move all the methods called from native to the beginning,
so adding new Java-only methods does not affect transaction IDs
of methods called from native.

Also, remove unused imports from IAudioService.aidl

Bug: 72256604
Test: Loopback test in Java, OpenSL ES, and AAudio modes
Change-Id: Icc89e3ed7a052c26eb0e72ba31e3a4a973bcfd35

6 years agoMerge "Add support for vibrator HAL 1.2 effects."
TreeHugger Robot [Fri, 9 Feb 2018 16:36:13 +0000 (16:36 +0000)]
Merge "Add support for vibrator HAL 1.2 effects."

6 years agoFollow up to ambient brightness stats change
Peeyush Agarwal [Thu, 8 Feb 2018 12:39:39 +0000 (12:39 +0000)]
Follow up to ambient brightness stats change

- Add docs to public methods of the API
- Use single variable for scheduling write from brightness tracker

Test: atest com.android.server.display.AmbientBrightnessStatsTrackerTest
&& atest android.hardware.display.AmbientBrightnessDayStatsTest
Bug: 69406079
Change-Id: I828e3bde4691240a2c0e0443e60b30665b65b8de

6 years agoMerge "Upload tombstone with the system_server_native_crash tag."
Anton Hansson [Fri, 9 Feb 2018 16:15:08 +0000 (16:15 +0000)]
Merge "Upload tombstone with the system_server_native_crash tag."

6 years agoRestrict DisplayContent creation.
Bryce Lee [Fri, 2 Feb 2018 23:09:21 +0000 (15:09 -0800)]
Restrict DisplayContent creation.

This changelist limits DisplayContent the display
container/controller creation. All other callpoints now can only
retrieve existing DisplayContents. This removes the chances of
arbitrary calls generating a DisplayContent without the related
ActivityDisplay on the ActivityManager side.

Since display creation is now driven on the ActivityManager side,
the ActivityManagerService must be initialized and associated with
the WindowManagerService before the WindowManagerService can be fully
initialized. This is reflected in changes to SystemServer.

Fixes: 72228411
Test: go/wm-smoke-auto
Change-Id: I8dddb5fc109be4363de5ba87faff9d9885009042

6 years agoImprove temporary logging around activity destruction.
Bryce Lee [Thu, 8 Feb 2018 22:37:06 +0000 (14:37 -0800)]
Improve temporary logging around activity destruction.

This changelist improves logging for capture details around
b/71506345. These modifications are intended to be reverted once
the root cause has been found.

Bug: 71506345
Test: manual
Change-Id: I1dd5eba710e81bf78632359d4ee4c047fefa5da6

6 years agoMerge "SkColorTypeShiftPerPixel is deprecated"
TreeHugger Robot [Fri, 9 Feb 2018 15:55:34 +0000 (15:55 +0000)]
Merge "SkColorTypeShiftPerPixel is deprecated"

6 years agoMerge "Handle non-primary user only apps in watchlist report"
Ricky Wai [Fri, 9 Feb 2018 15:01:57 +0000 (15:01 +0000)]
Merge "Handle non-primary user only apps in watchlist report"

6 years agoUpload tombstone with the system_server_native_crash tag.
Anton Hansson [Tue, 6 Feb 2018 10:51:18 +0000 (10:51 +0000)]
Upload tombstone with the system_server_native_crash tag.

This allows monitoring system server native crashes separately from
all the other native crashes.

Note that this now double-reports native crashes in system server,
once with SYSTEM_TOMBSTONE tag and once with the
system_server_native_crash tag. This can likely be cleaned up to
only report the latter, once it's been verified to work.

Test: "ls /data/system/dropbox" after triggering a native SS crash.
Bug: 63172851
Change-Id: Ib09275b53627c0219e2f74ea2ab102575f9b33c0

6 years agoPrevent AAPT from versioning <animated-selector> tags.
Nick Butcher [Tue, 9 Jan 2018 15:24:21 +0000 (15:24 +0000)]
Prevent AAPT from versioning <animated-selector> tags.

Bug: 69359529
Test: Manually tested with ag/3178054
Change-Id: I10ae4d96c2a31a0a7c363d7a9292ecdfd3bb526a

6 years agoHandle non-primary user only apps in watchlist report
Ricky Wai [Wed, 7 Feb 2018 17:31:04 +0000 (17:31 +0000)]
Handle non-primary user only apps in watchlist report

Bug: 72995507
Test: Install an app in work profile and able to generate watchlist
report
Test: runtest frameworks-services -c com.android.server.net.watchlist.WatchlistLoggingHandlerTests

Change-Id: I01e4e3986b9a5db7cb9929a5924a4bf7b13bbcd0

6 years agoFix ArcVideoService compile error
Risan [Fri, 9 Feb 2018 10:52:00 +0000 (19:52 +0900)]
Fix ArcVideoService compile error

This CL fixes ArcVideoService to include
components/arc/common/video.mojom.h instead of video.mojom.h. Direct
include to video.mojom.h is deprecated after ag/3559847.

Bug: 73146261
Test: Compiled.
Change-Id: I8a3275bcdbfd73646a8aa94c5ef4e44c7fd458db

6 years agoMerge "AssetManager2: Fix issue with native cast"
TreeHugger Robot [Fri, 9 Feb 2018 10:36:33 +0000 (10:36 +0000)]
Merge "AssetManager2: Fix issue with native cast"

6 years agoMerge "Add tests for PerformBackupTask"
TreeHugger Robot [Fri, 9 Feb 2018 09:56:33 +0000 (09:56 +0000)]
Merge "Add tests for PerformBackupTask"

6 years agoMerge "AssetManager2: Fix list function"
TreeHugger Robot [Fri, 9 Feb 2018 08:18:16 +0000 (08:18 +0000)]
Merge "AssetManager2: Fix list function"

6 years agoMerge "Atom: CallStateChanged"
TreeHugger Robot [Fri, 9 Feb 2018 07:32:21 +0000 (07:32 +0000)]
Merge "Atom: CallStateChanged"

6 years agoMerge "Fix issue #72116995: Add permission guarding Service#startForeground"
TreeHugger Robot [Fri, 9 Feb 2018 07:31:46 +0000 (07:31 +0000)]
Merge "Fix issue #72116995: Add permission guarding Service#startForeground"

6 years agoAssetManager2: Fix issue with native cast
Adam Lesinski [Fri, 9 Feb 2018 06:57:00 +0000 (22:57 -0800)]
AssetManager2: Fix issue with native cast

The NDK wasn't fully updated to be aware of the fact that
the implementation of AAssetManager changed.

Bug: 73120367
Test: manual - YouTube TV doesn't crash
Change-Id: I6d897ddf197bdcac8118d26e55f40ab9542f5013

6 years agoMerge "Send broadcast to pkg installers on config change"
TreeHugger Robot [Fri, 9 Feb 2018 07:22:03 +0000 (07:22 +0000)]
Merge "Send broadcast to pkg installers on config change"

6 years agoMerge "Modify javadoc for onWindowShown" am: 2d46e07e48 am: d5d1718c4a
tiansiming [田思明] [Fri, 9 Feb 2018 06:51:32 +0000 (06:51 +0000)]
Merge "Modify javadoc for onWindowShown" am: 2d46e07e48 am: d5d1718c4a
am: b95b38ca3a

Change-Id: I04bbf26857e60a1129c6947cb91fffef2c939edf

6 years agoMerge "Modify javadoc for onWindowShown" am: 2d46e07e48
tiansiming [田思明] [Fri, 9 Feb 2018 06:39:54 +0000 (06:39 +0000)]
Merge "Modify javadoc for onWindowShown" am: 2d46e07e48
am: d5d1718c4a

Change-Id: I82c1c9a4601e579b34e6f8c40f80258b78a8a7d8

6 years agoAssetManager2: Fix list function
Adam Lesinski [Fri, 9 Feb 2018 06:35:21 +0000 (22:35 -0800)]
AssetManager2: Fix list function

List was skipping directories. Include them, and add tests to ensure
the order and precedence is correct.

Bug: 72511641
Test: make libandroidfw_tests
Test: atest CtsContentTestCases:AssetManagerTest
Change-Id: Iadf45883283d3e4aae93bd7c3343745912e34fa0

6 years agoMerge "Modify javadoc for onWindowShown"
tiansiming [田思明] [Fri, 9 Feb 2018 06:28:30 +0000 (06:28 +0000)]
Merge "Modify javadoc for onWindowShown"
am: 2d46e07e48

Change-Id: I126b0bcfbc5d1d10cad7564e7f8c8a7e419b96c6

6 years agoMerge "Added display name to DisplayInfo proto"
TreeHugger Robot [Fri, 9 Feb 2018 06:16:25 +0000 (06:16 +0000)]
Merge "Added display name to DisplayInfo proto"

6 years agoMerge "[RTT][AWARE] Update documentation for direct ranging to an Aware peer"
TreeHugger Robot [Fri, 9 Feb 2018 05:41:26 +0000 (05:41 +0000)]
Merge "[RTT][AWARE] Update documentation for direct ranging to an Aware peer"

6 years agoMerge "Fix the Skia roll - implement onWritePixels"
TreeHugger Robot [Fri, 9 Feb 2018 04:55:27 +0000 (04:55 +0000)]
Merge "Fix the Skia roll - implement onWritePixels"

6 years agoMerge "Update time based triggering logic to guard against spam"
TreeHugger Robot [Fri, 9 Feb 2018 04:48:50 +0000 (04:48 +0000)]
Merge "Update time based triggering logic to guard against spam"

6 years agoMerge "Merge "Set the WebViewLoader's targetSdk same with framework's." am: d7187c90d...
Android Build Merger (Role) [Fri, 9 Feb 2018 04:19:49 +0000 (04:19 +0000)]
Merge "Merge "Set the WebViewLoader's targetSdk same with framework's." am: d7187c90d0 am: f7ba304045 am: 933e043cd3"

6 years agoMerge "Set the WebViewLoader's targetSdk same with framework's." am: d7187c90d0 am...
yunseon.park [Fri, 9 Feb 2018 04:19:18 +0000 (04:19 +0000)]
Merge "Set the WebViewLoader's targetSdk same with framework's." am: d7187c90d0 am: f7ba304045
am: 933e043cd3

Change-Id: If2d26b707c6b9cba2aba07956cd53d6497cedd53

6 years agoMerge "AssetManager2: Allow out of order type/type spec"
Adam Lesinski [Fri, 9 Feb 2018 04:18:59 +0000 (04:18 +0000)]
Merge "AssetManager2: Allow out of order type/type spec"

6 years agoMerge "AudioService: makes some members accessible by a derived class"
TreeHugger Robot [Fri, 9 Feb 2018 04:08:15 +0000 (04:08 +0000)]
Merge "AudioService: makes some members accessible by a derived class"

6 years agoMerge "Set the WebViewLoader's targetSdk same with framework's." am: d7187c90d0
yunseon.park [Fri, 9 Feb 2018 04:07:27 +0000 (04:07 +0000)]
Merge "Set the WebViewLoader's targetSdk same with framework's." am: d7187c90d0
am: f7ba304045

Change-Id: I123b9bdce3fde5405f356fb0b4c80e770eae43b8

6 years agoMerge "Set the WebViewLoader's targetSdk same with framework's."
yunseon.park [Fri, 9 Feb 2018 03:55:29 +0000 (03:55 +0000)]
Merge "Set the WebViewLoader's targetSdk same with framework's."
am: d7187c90d0

Change-Id: I98f83e81e2d4081288d3c4ac07732c1f3716beb5

6 years agoMerge "Modify javadoc for onWindowShown"
Treehugger Robot [Fri, 9 Feb 2018 03:50:05 +0000 (03:50 +0000)]
Merge "Modify javadoc for onWindowShown"

6 years agoMerge "Revert "Call ImageDecoder directly in ResourcesImpl""
TreeHugger Robot [Fri, 9 Feb 2018 03:47:26 +0000 (03:47 +0000)]
Merge "Revert "Call ImageDecoder directly in ResourcesImpl""

6 years agoUpdate time based triggering logic to guard against spam
Salvador Martinez [Thu, 8 Feb 2018 22:29:08 +0000 (14:29 -0800)]
Update time based triggering logic to guard against spam

Since the time based estimate takes recent usage into account we
could get a situation where the notification could trigger many
times. This CL makes it so the notification can only trigger at most
twice per charge cycle. The percentage based triggering remains
unaffected.

Test: SysUI Tests
Bug: 27567513
Change-Id: I81e29f96ac97b0d1a177e923c16d5f2800da404a

6 years agoMerge "Turn off debug logging in statsd"
TreeHugger Robot [Fri, 9 Feb 2018 03:10:20 +0000 (03:10 +0000)]
Merge "Turn off debug logging in statsd"

6 years agoFix the Skia roll - implement onWritePixels
Leon Scroggins III [Thu, 8 Feb 2018 22:14:28 +0000 (17:14 -0500)]
Fix the Skia roll - implement onWritePixels

Test: None

https://skia-review.googlesource.com/c/skia/+/105623 added a new
abstract method to SkSurface_Base, so these subclasses needs to
implement it. Implementation is empty just to get the roll fixed.

Change-Id: Ib6029acf40feb47a572cd6e18678b08a6f38fe4b

6 years agoMerge "media: fix javadoc for MediaDataSource"
Chong Zhang [Fri, 9 Feb 2018 02:12:05 +0000 (02:12 +0000)]
Merge "media: fix javadoc for MediaDataSource"

6 years agoMerge "Use the WS hidden flag instead of WSA for dim check"
TreeHugger Robot [Fri, 9 Feb 2018 01:39:01 +0000 (01:39 +0000)]
Merge "Use the WS hidden flag instead of WSA for dim check"

6 years agoMerge "Change Resources.getDrawable nullability"
TreeHugger Robot [Fri, 9 Feb 2018 01:30:23 +0000 (01:30 +0000)]
Merge "Change Resources.getDrawable nullability"

6 years agoMerge "Revert "Exempt instrumented processes from hidden API checks""
TreeHugger Robot [Fri, 9 Feb 2018 01:26:32 +0000 (01:26 +0000)]
Merge "Revert "Exempt instrumented processes from hidden API checks""

6 years agoMerge changes I718d3e64,Idd015077
Winson Chung [Fri, 9 Feb 2018 01:14:36 +0000 (01:14 +0000)]
Merge changes I718d3e64,Idd015077

* changes:
  Fix issue with quickswitch happening after recents animation starting
  Handle both touch flows to start quickscrub

6 years agoByteStringUtils: fix hex parsing to include lowercase input.
Dan Cashman [Fri, 9 Feb 2018 00:53:58 +0000 (16:53 -0800)]
ByteStringUtils: fix hex parsing to include lowercase input.

fromHexToByteArray() should be able to handle any hex input, not
just input specified as upper-case.

Bug: 73001469
Test: Builds, boots.
Change-Id: I89dcbaeb95d6fc540b532d897ff27fb5f40381c7

6 years agoMerge "Do not unbind from the TextClassifierService."
TreeHugger Robot [Fri, 9 Feb 2018 00:59:10 +0000 (00:59 +0000)]
Merge "Do not unbind from the TextClassifierService."

6 years agoMerge "VintfObject: add getTargetFcmVersion" am: 5a748e5ee2 am: b901a37a85
Yifan Hong [Fri, 9 Feb 2018 00:56:05 +0000 (00:56 +0000)]
Merge "VintfObject: add getTargetFcmVersion" am: 5a748e5ee2 am: b901a37a85
am: 600ee19e3d

Change-Id: I93fcdab5d1dd81392f20a947f2c7bbe91ddaa525

6 years agoMerge "Draw text with a hairline stroke as if it is fill style"
TreeHugger Robot [Fri, 9 Feb 2018 00:48:10 +0000 (00:48 +0000)]
Merge "Draw text with a hairline stroke as if it is fill style"

6 years agoMerge "VintfObject: add getTargetFcmVersion" am: 5a748e5ee2
Yifan Hong [Fri, 9 Feb 2018 00:44:01 +0000 (00:44 +0000)]
Merge "VintfObject: add getTargetFcmVersion" am: 5a748e5ee2
am: b901a37a85

Change-Id: Ide89fa9bc6c3dfb0bbeff6a3a8afdee4c31504e2

6 years agoSend broadcast to pkg installers on config change
Adam Lesinski [Thu, 25 Jan 2018 21:03:57 +0000 (13:03 -0800)]
Send broadcast to pkg installers on config change

Send a protected system broadcast to apps that hold
the INSTALL_PACKAGES permission whenever a change to
properties like locale or display density happens.

Receivers can be registered in the manifest, and a process
will be woken up to receive the broadcast.

This will happen rarely, since the configuration changes
eligible to trigger this broadcast are rare themselves.

Bug: 63918966
Test: manual

Change-Id: I817a51ea05f762e02561691825d57d643db7dc30

6 years agoMerge "VintfObject: add getTargetFcmVersion"
Yifan Hong [Fri, 9 Feb 2018 00:33:38 +0000 (00:33 +0000)]
Merge "VintfObject: add getTargetFcmVersion"
am: 5a748e5ee2

Change-Id: I902bf93cb06bdbab8aba58e41db8eb71a066dbb6

6 years agomedia: fix javadoc for MediaDataSource
Chong Zhang [Thu, 8 Feb 2018 23:54:23 +0000 (15:54 -0800)]
media: fix javadoc for MediaDataSource

bug: 72872254
Change-Id: I843a75e1890f6c26b005c5f95641e0f472679155

6 years agoMerge "Temporary fix to prevent breakage with new API."
TreeHugger Robot [Fri, 9 Feb 2018 00:29:19 +0000 (00:29 +0000)]
Merge "Temporary fix to prevent breakage with new API."

6 years agoMerge "fix subsystem sleep state to use correct puller"
TreeHugger Robot [Fri, 9 Feb 2018 00:25:58 +0000 (00:25 +0000)]
Merge "fix subsystem sleep state to use correct puller"

6 years agoMerge "Fixed an issue where the icon wouldn't disappear after launching"
TreeHugger Robot [Fri, 9 Feb 2018 00:16:56 +0000 (00:16 +0000)]
Merge "Fixed an issue where the icon wouldn't disappear after launching"

6 years ago[RTT][AWARE] Update documentation for direct ranging to an Aware peer
Etan Cohen [Thu, 8 Feb 2018 17:48:13 +0000 (09:48 -0800)]
[RTT][AWARE] Update documentation for direct ranging to an Aware peer

Update documentation with references to (now) public API specifying
the ranging configuration of Aware devices.

Bug: 73088768
Test: builds
Change-Id: Iedb69550cfb249050bb9e92f3e698f8f7db2ff85

6 years agoRemove black frame when pulsing
Lucas Dupin [Thu, 8 Feb 2018 19:42:22 +0000 (11:42 -0800)]
Remove black frame when pulsing

Fixes: 73121392
Test: Receive notification on AOD
Change-Id: I04802b3b456e2c484fc5aaab8460a08b82f952e4

6 years agoDon't propagate unrequested permissions
Todd Kennedy [Thu, 8 Feb 2018 22:52:57 +0000 (14:52 -0800)]
Don't propagate unrequested permissions

When an instant app is re-installed, we attempt to propagate the
previously accepted permissions. Instead of crashing the system_server,
we simply ignore the previously granted permission and forget that
the user ever granted it. If a second update to the instant app
re-requests the permission, the user will again have to accept or
deny.

Test: atest GtsPackageManagerHostTestCases:PackageManagerHostTest
Change-Id: I7bb9fb67159f6c4d4f4e2a24e7913d11713e826e
Fixes: 72698203

6 years agoMerge "Fix global actions dialog order"
TreeHugger Robot [Fri, 9 Feb 2018 00:01:45 +0000 (00:01 +0000)]
Merge "Fix global actions dialog order"

6 years agoMerge "Switch activity relaunch to lifecycler"
TreeHugger Robot [Thu, 8 Feb 2018 23:58:15 +0000 (23:58 +0000)]
Merge "Switch activity relaunch to lifecycler"

6 years agoUse the WS hidden flag instead of WSA for dim check
chaviw [Wed, 7 Feb 2018 21:19:00 +0000 (13:19 -0800)]
Use the WS hidden flag instead of WSA for dim check

The current code uses the WSA mLastHidden flag to ensure that the WSA
animation starts at the same time as the dim. However, the flag is set
to true when the layer is being preserved which will cause the dim to
hide and then show again. Instead, use the WS mHidden flag which is set
to false when the WSA will be shown, but still remains false when the
WSA surface is getting preserved.

Change-Id: I8b2545480fad78cdba26173d28503fc7fe591d28
Fixes: 72869695
Test: Bug no longer occurs.
Test: Other dims still work properly
Test: atest WindowManagerSmokeTest

6 years agoMerge "Wireless charging on aod and lockscreen"
TreeHugger Robot [Thu, 8 Feb 2018 23:46:15 +0000 (23:46 +0000)]
Merge "Wireless charging on aod and lockscreen"

6 years agoMerge changes I6993325b,Icb5114fe
TreeHugger Robot [Thu, 8 Feb 2018 23:32:03 +0000 (23:32 +0000)]
Merge changes I6993325b,Icb5114fe

* changes:
  Frameworks: Annotate trivial @GuardedBy in services/core
  Frameworks: Annotate trivial @GuardedBy in core/java

6 years agoMerge "Revert "Revert "Turn on about phone v2"""
TreeHugger Robot [Thu, 8 Feb 2018 23:24:49 +0000 (23:24 +0000)]
Merge "Revert "Revert "Turn on about phone v2"""

6 years agoAssetManager2: Allow out of order type/type spec
Adam Lesinski [Thu, 8 Feb 2018 22:50:38 +0000 (14:50 -0800)]
AssetManager2: Allow out of order type/type spec

AssetManager2 assumes that RES_TABLE_TYPE_SPEC_TYPEs must immediately
precede their associated RES_TABLE_TYPE_TYPEs. This is not correct.
RES_TABLE_TYPE_SPEC_TYPEs must precede their associated
RES_TABLE_TYPE_TYPEs, but they do not need to immediately precede them.

For example, this is what we currently expect:

  RES_TABLE_TYPE_SPEC_TYPE id=1
  RES_TABLE_TYPE_TYPE id=1
  RES_TABLE_TYPE_SPEC_TYPE id=2
  RES_TABLE_TYPE_TYPE id=2

but this is also valid:

  RES_TABLE_TYPE_SPEC_TYPE id=1
  RES_TABLE_TYPE_SPEC_TYPE id=2
  RES_TABLE_TYPE_TYPE id=1
  RES_TABLE_TYPE_TYPE id=2

Bug: 73052092
Test: make libandroidfw_tests
Change-Id: I1f3c43760f8108eee24c2c6ed7bc16f70e951c2b

6 years agoAdded display name to DisplayInfo proto
Andrii Kulian [Thu, 8 Feb 2018 23:12:14 +0000 (15:12 -0800)]
Added display name to DisplayInfo proto

Bug: 72048469
Test: ActivityManagerMultiDisplayTests
Change-Id: Ied6ed9ce26c8ea8fc49c645ecb86dc455255f947

6 years agoMerge "Adjust ripple opacity again"
TreeHugger Robot [Thu, 8 Feb 2018 23:05:33 +0000 (23:05 +0000)]
Merge "Adjust ripple opacity again"

6 years agoDraw text with a hairline stroke as if it is fill style
Stan Iliev [Mon, 5 Feb 2018 23:04:11 +0000 (18:04 -0500)]
Draw text with a hairline stroke as if it is fill style

Dew to a side effect of HWUI opengl pipeline, the hairline stroke
is not respected, but it is drawn as a fill style. Implement the
same behaviour for skiagl pipeline with SDK API 27 and older.
On SDK released with Android P, the hairline stroke is respected.

Bug: 72494357
Test: Ran duolingo app
Change-Id: I48bdcf3ddec4bf65b5e93e01c5002177c4e3da90

6 years agoRevert "Exempt instrumented processes from hidden API checks"
David Brazdil [Thu, 8 Feb 2018 20:50:38 +0000 (20:50 +0000)]
Revert "Exempt instrumented processes from hidden API checks"

This reverts commit 4bf7443a44f8d82040d2abf94042b49b122ffe57.

Reason for revert: Causing too many downstream issues together
    with I072dd571f779e2b5e405d21eecce5a60d1b3c7f2. Revert to
    unblock pi-release and testing.

Bug: 73105914
Bug: 73103669
Bug: 73106486
Bug: 64382372
Bug: 73103081
Bug: 73119220
Bug: 73114663
Change-Id: I2c1353d31386da447456b17f9643c0470128ee3d

6 years agoMerge "Don't attempt to preload fonts in isolated processes."
TreeHugger Robot [Thu, 8 Feb 2018 22:51:25 +0000 (22:51 +0000)]
Merge "Don't attempt to preload fonts in isolated processes."

6 years agoMerge "Use proper string formatting for the "Active device" string"
TreeHugger Robot [Thu, 8 Feb 2018 22:47:52 +0000 (22:47 +0000)]
Merge "Use proper string formatting for the "Active device" string"

6 years agofix subsystem sleep state to use correct puller
Chenjie Yu [Thu, 8 Feb 2018 22:33:37 +0000 (14:33 -0800)]
fix subsystem sleep state to use correct puller

Test: cts test
Change-Id: Iacac0c0fa69de6da818d3788b7499e09e46c8393
Fix: 73128324

6 years agoMerge "Revert "Make blacklist the default hidden API list""
David Brazdil [Thu, 8 Feb 2018 22:36:15 +0000 (22:36 +0000)]
Merge "Revert "Make blacklist the default hidden API list""

6 years agoFixed an issue where the icon wouldn't disappear after launching
Selim Cinek [Thu, 8 Feb 2018 22:27:49 +0000 (14:27 -0800)]
Fixed an issue where the icon wouldn't disappear after launching

Fixes: 72861358
Test: add notification with auto_cancel and click on it. Observe icon disappearing
Change-Id: I31d0c93b6c1cd926ed7085b2cf812522d67f97e9

6 years agoTemporary fix to prevent breakage with new API.
David Chen [Thu, 8 Feb 2018 22:12:20 +0000 (14:12 -0800)]
Temporary fix to prevent breakage with new API.

Adds back in the old method signature. This temporary method can
be deleted in a week or so, after all callers have been migrated to
the new API.

Test: Test that make finishes.
Bug: 72562867
Change-Id: I608fcab0ac5508a482fc8d1e63490d3cfc1fedb1

6 years agoMerge "Track notification clicked events in UsageStats"
TreeHugger Robot [Thu, 8 Feb 2018 22:16:09 +0000 (22:16 +0000)]
Merge "Track notification clicked events in UsageStats"

6 years agoAdd missing callback to StatusBarService for inline reply
Amith Yamasani [Thu, 8 Feb 2018 21:55:59 +0000 (13:55 -0800)]
Add missing callback to StatusBarService for inline reply

SystemUI calls back to StatusBarService when inline reply is sent.

Bug: 72067231
Test: Receive a hangouts message and reply inline
      dumpsys usagestats should show a USER_INTERACTION event

Change-Id: Ie83297c0e54f09a4e90601fe57e1862453d3d125

6 years agoMerge "Move dev option restriction check from app to controller."
Fan Zhang [Thu, 8 Feb 2018 21:51:50 +0000 (21:51 +0000)]
Merge "Move dev option restriction check from app to controller."

6 years agoMerge "Accept an XML file containing a list of THM certificates instead of the tempor...
Bo Zhu [Thu, 8 Feb 2018 21:47:50 +0000 (21:47 +0000)]
Merge "Accept an XML file containing a list of THM certificates instead of the temporary solution using the raw public key"

6 years agoRevert "Make blacklist the default hidden API list"
Nicolas Geoffray [Thu, 8 Feb 2018 17:27:15 +0000 (17:27 +0000)]
Revert "Make blacklist the default hidden API list"

Bug: 64382372

This reverts commit 3f4136c3b76d2ec9cdba9caf132d9ca2958821b7.

Reason for revert: Causing too many downstream issues together
    with I2c1353d31386da447456b17f9643c0470128ee3d. Revert to
    unblock pi-release and testing.

Bug: 73105914
Bug: 73103669
Bug: 73106486
Bug: 64382372
Bug: 73103081
Bug: 73119220
Bug: 73114663

Change-Id: I072dd571f779e2b5e405d21eecce5a60d1b3c7f2

6 years agoMerge "Introduce perf tests for background text layout performance"
TreeHugger Robot [Thu, 8 Feb 2018 21:42:52 +0000 (21:42 +0000)]
Merge "Introduce perf tests for background text layout performance"

6 years agoFix issue with quickswitch happening after recents animation starting
Winson Chung [Thu, 8 Feb 2018 20:52:21 +0000 (12:52 -0800)]
Fix issue with quickswitch happening after recents animation starting

- When the animation starts, prevent quickswitch until the next gesture
  starts
- Refactor recents animation started signal into the gesture helper to
  simplify the code in the nav bar view

Bug: 67957962
Bug: 70180755
Bug: 73080940
Test: Quick scrub on nav bar

Change-Id: I718d3e64c14569e5df2e6a0ffc1aecdb0125f54f
Signed-off-by: Winson Chung <winsonc@google.com>
6 years agoMerge "Use var for design library"
TreeHugger Robot [Thu, 8 Feb 2018 21:37:08 +0000 (21:37 +0000)]
Merge "Use var for design library"

6 years agoMerge "AAPT2: Fix silent failure when ContainerReader fails during Link"
Mohamed Heikal [Thu, 8 Feb 2018 21:30:05 +0000 (21:30 +0000)]
Merge "AAPT2: Fix silent failure when ContainerReader fails during Link"