OSDN Git Service

android-x86/frameworks-base.git
5 years agoPrevent extra work on the same timestamp
Alex Salo [Wed, 1 May 2019 21:18:46 +0000 (14:18 -0700)]
Prevent extra work on the same timestamp

AttentionDetector gets called a lot, and there is no reason to do
any work, unless it is called with a new timestamp.

Bug: 111939367
Test: verified by doing FSOP + atest AttentionDetectorTest
Change-Id: If427bd3358e0ea35279fb5d235c2fd137df036ac

5 years agoMerge "Revert "MemoryIntArray: track the owned file descriptor in a PFD."" into qt-dev
Eugene Susla [Mon, 13 May 2019 22:21:48 +0000 (22:21 +0000)]
Merge "Revert "MemoryIntArray: track the owned file descriptor in a PFD."" into qt-dev

5 years agoMerge "Revert "MemoryIntArray: don't double close."" into qt-dev
Eugene Susla [Mon, 13 May 2019 22:21:48 +0000 (22:21 +0000)]
Merge "Revert "MemoryIntArray: don't double close."" into qt-dev

5 years agoMerge "Hide lock icon while WAKE_AND_UNLOCK is happening." into qt-dev
Lucas Dupin [Mon, 13 May 2019 21:15:04 +0000 (21:15 +0000)]
Merge "Hide lock icon while WAKE_AND_UNLOCK is happening." into qt-dev

5 years agoMerge "Fix NPE in SyncManager when updating accounts." into qt-dev
TreeHugger Robot [Mon, 13 May 2019 20:39:15 +0000 (20:39 +0000)]
Merge "Fix NPE in SyncManager when updating accounts." into qt-dev

5 years agoMerge "Clarify ContentResolver docs." into qt-dev
TreeHugger Robot [Mon, 13 May 2019 20:38:54 +0000 (20:38 +0000)]
Merge "Clarify ContentResolver docs." into qt-dev

5 years agoMerge "Call ScopedLocalFrame in JNI methods" into qt-dev
Chavi Weingarten [Mon, 13 May 2019 19:43:59 +0000 (19:43 +0000)]
Merge "Call ScopedLocalFrame in JNI methods" into qt-dev

5 years agoMerge "Fix typo." into qt-dev
TreeHugger Robot [Mon, 13 May 2019 19:31:34 +0000 (19:31 +0000)]
Merge "Fix typo." into qt-dev

5 years agoMerge "Update SignalDrawable to show X for empty state" into qt-dev
TreeHugger Robot [Mon, 13 May 2019 19:05:34 +0000 (19:05 +0000)]
Merge "Update SignalDrawable to show X for empty state" into qt-dev

5 years agoHide lock icon while WAKE_AND_UNLOCK is happening.
Lucas Dupin [Fri, 10 May 2019 23:23:04 +0000 (16:23 -0700)]
Hide lock icon while WAKE_AND_UNLOCK is happening.

The lock icon is on top of the front scrim, otherwise it wouldn't be visible on a
scrimmed bouncer (activities occluding the keyguard.)
Because of this, the black layer the covers most of the lock screen won't cover the
icon animation. We need to ensure that the icon is invisible while the biometric
unlock animation is running, and only unblock it after the keyguard has finished
fading away.

Test: manually unlock with fingerprint from AOD and LS
Test: press power while unlocking
Fixes: 132198859
Change-Id: Ied501586abe05dc333e4d76e4c045f32070595a7

5 years agoMerge "Clear all notification, message mute states, and unread states when the car...
TreeHugger Robot [Mon, 13 May 2019 18:31:42 +0000 (18:31 +0000)]
Merge "Clear all notification, message mute states, and unread states when the car recovers from the suspension state." into qt-dev

5 years agoMerge "Change bubbles to be off by default" into qt-dev
Mady Mellor [Mon, 13 May 2019 18:18:31 +0000 (18:18 +0000)]
Merge "Change bubbles to be off by default" into qt-dev

5 years agoMerge "[WPA3] Fix typo in AP key comparison method" into qt-dev
TreeHugger Robot [Mon, 13 May 2019 18:10:00 +0000 (18:10 +0000)]
Merge "[WPA3] Fix typo in AP key comparison method" into qt-dev

5 years agoClear all notification, message mute states, and unread states when the car
Jonathan Koo [Fri, 10 May 2019 16:24:08 +0000 (09:24 -0700)]
Clear all notification, message mute states, and unread states when the car
recovers from the suspension state.

bug: 130183435
Test: Manual.
Change-Id: I5ba95d5f22c1ee18c9f2c236f0f078aedd8296b8

5 years agoChange bubbles to be off by default
Mady Mellor [Mon, 6 May 2019 15:50:06 +0000 (08:50 -0700)]
Change bubbles to be off by default

Test: in the other CL
Bug: 131845765
Change-Id: I23e48ace13dbc628f45b41adcf3bffdd5cfdccb6

5 years agoMerge "WM: Fix seamless rotation with gesture navigation" into qt-dev
TreeHugger Robot [Mon, 13 May 2019 15:45:51 +0000 (15:45 +0000)]
Merge "WM: Fix seamless rotation with gesture navigation" into qt-dev

5 years ago[WPA3] Fix typo in AP key comparison method
Hai Shalom [Mon, 13 May 2019 15:35:17 +0000 (08:35 -0700)]
[WPA3] Fix typo in AP key comparison method

Mistakenly used mKey instead of compareTo String variable
to extract compareTo substring.

Bug: 132610950
Test: Connect to various WPA2/WPA3 APs
Change-Id: Ic10f5ed969deace6f1d59811512a2f788256acb6

5 years agoMerge "Add config value for a11y color mode" into qt-dev
Christine Franks [Mon, 13 May 2019 14:47:21 +0000 (14:47 +0000)]
Merge "Add config value for a11y color mode" into qt-dev

5 years agoMerge "Send message to add/remove NAT-T keepalive packet filter." into qt-dev
Aaron Huang [Mon, 13 May 2019 14:37:31 +0000 (14:37 +0000)]
Merge "Send message to add/remove NAT-T keepalive packet filter." into qt-dev

5 years agoMerge changes from topic "cleanupkeepalive" into qt-dev
TreeHugger Robot [Mon, 13 May 2019 14:32:58 +0000 (14:32 +0000)]
Merge changes from topic "cleanupkeepalive" into qt-dev

* changes:
  Fix concurrent modification exception in KeepaliveTracker
  Clean up the keepalive slots when network disconnect
  Release keepalive slot after stopped

5 years agoWM: Fix seamless rotation with gesture navigation
Adrian Roos [Tue, 16 Apr 2019 13:39:23 +0000 (15:39 +0200)]
WM: Fix seamless rotation with gesture navigation

With gesture navigation, the navigation bar will generally move when rotating the
screen.

Fixes: 130052977
Test: Enable gestural navigation, open camera, enable auto-rotate, verify camera rotates seamlessly
Change-Id: I2d73fcadf9338a08ac15ba04842dc8b1221d74b0

5 years agoMerge "Add unittests for BugreportManager API" into qt-dev
Nandana Dutt [Mon, 13 May 2019 11:27:43 +0000 (11:27 +0000)]
Merge "Add unittests for BugreportManager API" into qt-dev

5 years agoSend message to add/remove NAT-T keepalive packet filter.
Aaron Huang [Thu, 2 May 2019 13:14:20 +0000 (21:14 +0800)]
Send message to add/remove NAT-T keepalive packet filter.

Remove definition of TYPE_NATT and TYPE_TCP since the type
can be identified by checking message.obj is an instance of
NattKeepalivePacketData or TcpKeepalivePacketData.
It's more simple and won't have dependency on KeepaliveInfo.

Bug: 33530442
Test: atest FrameworksNetTests
      atest NetworkStackTests

(Clean cherry-pick of aosp/955419)

Change-Id: Ic97ffe9ff5781778efd264460809f5059f0f4230
Merged-In: Ic97ffe9ff5781778efd264460809f5059f0f4230

5 years agoFix concurrent modification exception in KeepaliveTracker
junyulai [Mon, 13 May 2019 06:19:00 +0000 (14:19 +0800)]
Fix concurrent modification exception in KeepaliveTracker

In aosp/951200, the clean up function delete the item in the
hash map that holds the record while iterating it, where the
list used to iterate the records is backed by the hash map,
so changes to the map are reflected in the list and caused
the concurrent modification exception.

Bug: 132341736
Test: 1. atest com.android.server.ConnectivityServiceTest \
         #testNattSocketKeepalives --generate-new-metrics 300
      2. atest FrameworksNetTests --generate-new-metrics 10

(Clean cherry-pick of aosp/959599)

Change-Id: I9cdfe6f6d11c5400c856cc30a33ff4a44ba9d811
Merged-In: I0481a469ee23231e5f0ab738a06b5e09f6cdb680

5 years agoClean up the keepalive slots when network disconnect
Junyu Lai [Thu, 9 May 2019 20:24:32 +0000 (13:24 -0700)]
Clean up the keepalive slots when network disconnect

In general, keepalive slots are released after result of
stopping has returned. However, for network disconnect case,
the service side cannot communicate with network agent since
the async channel is broken.

Clean up keepalive slots right after stop in this case.

Bug: 132341736
Test: 1. atest com.android.server.ConnectivityServiceTest \
         #testNattSocketKeepalives --generate-new-metrics 100
      2. atest FrameworksNetTests --generate-new-metrics 10

Change-Id: Id3e4e159713c0ed7e03f45169e87b73ae6408e4f
(cherry picked from commit a5f6bd16062fba89bcf900aca93aa3514d93f662)
Merged-In: Id3e4e159713c0ed7e03f45169e87b73ae6408e4f
Merged-In: Icb5a1b5bb10617aa5a7b35db6cf48db3dc53b7fd

5 years agoRelease keepalive slot after stopped
Junyu Lai [Tue, 16 Apr 2019 06:00:02 +0000 (23:00 -0700)]
Release keepalive slot after stopped

Currntly, keepalive slot is released when stop() is called. Next
starting keepalive can use the same slot number while previous
keepalive is still stopping. When the previous keepalive is
stopped, the incoming as will be processed by the new keepalive.

This change release keepalive slot after the result of stopping
has returned. Thus, newly created keepalive cannot allocate the
same slot number while lower layer is still processing stop event.

This change also disable flaky assertions that are caused by
test port has been occupied by other process.

Bug: 129512753
Test: 1. atest com.android.server.ConnectivityServiceTest \
         #testNattSocketKeepalives --generate-new-metrics 100
      2. atest FrameworksNetTests --generate-new-metrics 10
      3. simulate the fail case manually.

Change-Id: I790f6bbc5efc3f088034ac45ec379da5f781d0ca
Merged-In: I1991627545519ee5cb408a3df3a006f710f4af7b
(cherry picked from commit 3523a3d02a1f88a3990ab9cc4948c705ecc713c8)

5 years agoMerge "Bump several device admin notifications to high priority" into qt-dev
Rubin Xu [Mon, 13 May 2019 10:30:25 +0000 (10:30 +0000)]
Merge "Bump several device admin notifications to high priority" into qt-dev

5 years agoMerge changes I92f6d977,I06840834 into qt-dev
Junyu Lai [Mon, 13 May 2019 09:44:49 +0000 (09:44 +0000)]
Merge changes I92f6d977,I06840834 into qt-dev

* changes:
  Limit unprivileged keepalives per uid
  Support customization of supported keepalive count per transport

5 years agoMerge "MediaProjectionManagerService: Use the right user for app lookups." into qt-dev
Narayan Kamath [Mon, 13 May 2019 09:35:14 +0000 (09:35 +0000)]
Merge "MediaProjectionManagerService: Use the right user for app lookups." into qt-dev

5 years agoMerge "Preserve active staged sessions." into qt-dev
Dario Freni [Mon, 13 May 2019 07:57:13 +0000 (07:57 +0000)]
Merge "Preserve active staged sessions." into qt-dev

5 years agoMerge "Improve polish for the MediaProjectionPermissionActivity." into qt-dev
Narayan Kamath [Mon, 13 May 2019 07:39:58 +0000 (07:39 +0000)]
Merge "Improve polish for the MediaProjectionPermissionActivity." into qt-dev

5 years agoLimit unprivileged keepalives per uid
junyulai [Tue, 30 Apr 2019 06:42:05 +0000 (14:42 +0800)]
Limit unprivileged keepalives per uid

Public APIs for creating unprivileged NATT socket keepalive
might allow users to exhaust resource if malicious apps try
to create keepalives with fd which is not created by
IpSecService through binder call. Thus, this change add
customizable limitation per uid to prevent resource exhaustion
attack.

Bug: 129371366
Bug: 132307230
Test: atest FrameworksNetTests

Clean cherry-pick of aosp/954040
Merged-In: Ibcb91105e46f7e898b8aa7c2babc3344ef2c6257
Merged-In: Ia667386c1a8949839871a6949d79552d9c8b88f0

Change-Id: I92f6d977b6dfde4e1bf74df6b60c9a0b9e8eec40

5 years agoSupport customization of supported keepalive count per transport
junyulai [Wed, 17 Apr 2019 07:22:46 +0000 (15:22 +0800)]
Support customization of supported keepalive count per transport

This change specifies the required minimum supported keepalives
in SDK, and allows OEMs to customize supported keepalive count
per network through resource overlay.

Bug: 129371366
Test: 1. m -j doc-comment-check-docs
      2. atest FrameworksNetTests

Clean cherry-pick of aosp/946359

Change-Id: I06840834d0ee8121358bf4829fe47ecf9964d395
Merged-In: I0218f3674628c13ead63fc9a873895ba7f113033
Merged-In: Ia667386c1a8949839871a6949d79552d9c8b88f0

5 years agoMerge "Update default home after preferred activity is changed." into qt-dev
TreeHugger Robot [Mon, 13 May 2019 03:42:27 +0000 (03:42 +0000)]
Merge "Update default home after preferred activity is changed." into qt-dev

5 years agoMerge "Fix RelativeLayout rules" into qt-dev
TreeHugger Robot [Mon, 13 May 2019 03:36:47 +0000 (03:36 +0000)]
Merge "Fix RelativeLayout rules" into qt-dev

5 years agoMerge "Add CTS API coverage for APIs which are used by NetworkStack" into qt-dev
TreeHugger Robot [Mon, 13 May 2019 02:41:34 +0000 (02:41 +0000)]
Merge "Add CTS API coverage for APIs which are used by NetworkStack" into qt-dev

5 years agoMerge "Add ApfCapabilities common test cases" into qt-dev
TreeHugger Robot [Mon, 13 May 2019 02:28:03 +0000 (02:28 +0000)]
Merge "Add ApfCapabilities common test cases" into qt-dev

5 years agoMerge "Add LinkProperties common test cases" into qt-dev
TreeHugger Robot [Mon, 13 May 2019 02:23:43 +0000 (02:23 +0000)]
Merge "Add LinkProperties common test cases" into qt-dev

5 years agoMerge "Test updates for I044ac25a19ba5b7fd0ee470ca0a13dc65cbd2679" into qt-dev
TreeHugger Robot [Mon, 13 May 2019 01:55:24 +0000 (01:55 +0000)]
Merge "Test updates for I044ac25a19ba5b7fd0ee470ca0a13dc65cbd2679" into qt-dev

5 years agoAdd ApfCapabilities common test cases
Paul Hu [Sun, 12 May 2019 17:37:59 +0000 (10:37 -0700)]
Add ApfCapabilities common test cases

Bug: 129199900
Test: atest FrameworksNetTests
Test: atest CtsNetTestCases: added tests pass

Change-Id: I737ab11ccd1bf6f92bae4eae21e67d4d6f86a758
Merged-In: Icfd80943212430b2a0e6a4b55f53270cbc3d1693
Merged-In: I737ab11ccd1bf6f92bae4eae21e67d4d6f86a758
(cherry picked from commit ce54fa5cb392c38bfec62b81664fcc25098eb9dc)

5 years agoMerge "Fixed an issue that activity might be invisible after unlocking." into qt-dev
Wei Sheng Shih [Mon, 13 May 2019 01:17:19 +0000 (01:17 +0000)]
Merge "Fixed an issue that activity might be invisible after unlocking." into qt-dev

5 years agoAdd LinkProperties common test cases
Paul Hu [Fri, 10 May 2019 22:28:40 +0000 (15:28 -0700)]
Add LinkProperties common test cases

Bug: 129198747
Test: atest FrameworksNetTests
Test: atest CtsNetTestCases: added tests pass

Change-Id: I03d162ea3c5bc2ccb8f913bbfdf85ebcd194c35a
Merged-In: I8d36177cbf4f39da602331e091a60a40f6eaea33
Merged-In: I03d162ea3c5bc2ccb8f913bbfdf85ebcd194c35a
(cherry picked from commit 385757291c2e822f1338157a2368e319d4048c89)

5 years agoMerge "Import translations. DO NOT MERGE" into qt-dev
TreeHugger Robot [Sun, 12 May 2019 16:31:18 +0000 (16:31 +0000)]
Merge "Import translations. DO NOT MERGE" into qt-dev

5 years agoMerge "Legacy insertImage() should use IS_PENDING." into qt-dev
Jeff Sharkey [Sun, 12 May 2019 14:12:39 +0000 (14:12 +0000)]
Merge "Legacy insertImage() should use IS_PENDING." into qt-dev

5 years agoMerge "Parse Exif OffsetTime in MediaScanner" into qt-dev
Jeff Sharkey [Sun, 12 May 2019 14:12:11 +0000 (14:12 +0000)]
Merge "Parse Exif OffsetTime in MediaScanner" into qt-dev

5 years agoImport translations. DO NOT MERGE
Bill Yi [Sun, 12 May 2019 10:07:25 +0000 (03:07 -0700)]
Import translations. DO NOT MERGE

Auto-generated-cl: translation import

Bug: 64712476
Change-Id: I2e30d2410efdf2a4b45f5e8d4953df4e6d1c9b6f

5 years agoMerge "[InformationElementUtil] Add FT/SAE AKM" into qt-dev
TreeHugger Robot [Sun, 12 May 2019 05:43:32 +0000 (05:43 +0000)]
Merge "[InformationElementUtil] Add FT/SAE AKM" into qt-dev

5 years agoMerge "Import translations. DO NOT MERGE" into qt-dev
TreeHugger Robot [Sun, 12 May 2019 04:29:40 +0000 (04:29 +0000)]
Merge "Import translations. DO NOT MERGE" into qt-dev

5 years agoMerge "Import translations. DO NOT MERGE" into qt-dev
TreeHugger Robot [Sun, 12 May 2019 04:27:41 +0000 (04:27 +0000)]
Merge "Import translations. DO NOT MERGE" into qt-dev

5 years agoLegacy insertImage() should use IS_PENDING.
Jeff Sharkey [Sun, 12 May 2019 02:51:57 +0000 (20:51 -0600)]
Legacy insertImage() should use IS_PENDING.

Also stream known file directly into place instead of doing a lossy
and expensive transcode.

Bug: 131710636
Test: atest --test-mapping packages/providers/MediaProvider
Change-Id: Icbfe4f79725c705a1197296f1fd4518c0179a9c1

5 years agoMerge "[WPA3] Fix connectivity issues with PSK-SAE Transtion mode" into qt-dev
TreeHugger Robot [Sun, 12 May 2019 02:43:06 +0000 (02:43 +0000)]
Merge "[WPA3] Fix connectivity issues with PSK-SAE Transtion mode" into qt-dev

5 years agoParse Exif OffsetTime in MediaScanner
Ken Narita [Fri, 7 Sep 2018 08:06:25 +0000 (17:06 +0900)]
Parse Exif OffsetTime in MediaScanner

MediaScanner parses Exif OffsetTime value to use UTC time
for DATE_TAKEN value.

Bug: 62856173
Change-Id: Iffb7e0ae296b73ce6fb6515246871f0dcfe42bb0

5 years agoImport translations. DO NOT MERGE
Bill Yi [Sat, 11 May 2019 23:48:41 +0000 (16:48 -0700)]
Import translations. DO NOT MERGE

Auto-generated-cl: translation import

Bug: 64712476
Change-Id: I22ecd11b2e010cc3d66d51f62d19a8bc3c1a1a99

5 years agoMerge "Set the correct PiP mode at the end of the PiP animation." into qt-dev
Tracy Zhou [Sat, 11 May 2019 15:56:43 +0000 (15:56 +0000)]
Merge "Set the correct PiP mode at the end of the PiP animation." into qt-dev

5 years agoImport translations. DO NOT MERGE
Bill Yi [Sat, 11 May 2019 14:42:57 +0000 (07:42 -0700)]
Import translations. DO NOT MERGE

Auto-generated-cl: translation import

Bug: 64712476
Change-Id: Id3aa933df80ac51807ff69693287d82d1b2aefe2

5 years agoWorkaround to make CarSystemUi work on the multiple displays.
Yuncheol Heo [Wed, 8 May 2019 21:52:20 +0000 (14:52 -0700)]
Workaround to make CarSystemUi work on the multiple displays.

Bug: 132204986
Change-Id: I04af78bd23e1d4983845751535639587396092f5
Test: Check if the facet buttons are properly selected in the multi
displays.

5 years agoMerge "Add CarPowerChanged, GarageModeInfo atom." into qt-dev
Yuncheol Heo [Sat, 11 May 2019 13:09:50 +0000 (13:09 +0000)]
Merge "Add CarPowerChanged, GarageModeInfo atom." into qt-dev

5 years agoMerge "Implement pending notification indicator" into qt-dev
TreeHugger Robot [Sat, 11 May 2019 07:11:05 +0000 (07:11 +0000)]
Merge "Implement pending notification indicator" into qt-dev

5 years agoSet the correct PiP mode at the end of the PiP animation.
Tracy Zhou [Tue, 7 May 2019 23:32:02 +0000 (16:32 -0700)]
Set the correct PiP mode at the end of the PiP animation.

Previously, we didn't update the PiP at the end of the PiP animation
when the animation type if FADE_IN. That results in map getting stuck
in the PiP even after user puts the PiP window back to fullscreen. This
change takes care of it by covering the FADE_IN case.

Fixes: 129545599
Fixes: 130550078
Fixes: 131812563
Test: atest PinnedStackTests
Change-Id: Ib40b9c6bafaa50f2f0b03cb88ae819bfe75547b5

5 years agoAdd CarPowerChanged, GarageModeInfo atom.
Yuncheol Heo [Thu, 9 May 2019 00:13:42 +0000 (17:13 -0700)]
Add CarPowerChanged, GarageModeInfo atom.

Bug: 131688824
Bug: 131086247
Test: It builds.
Change-Id: Ie67ea04107c6aa2929a1e6b859ddabda8494437e

5 years agoImplement pending notification indicator
Jonathan Koo [Mon, 6 May 2019 15:20:14 +0000 (08:20 -0700)]
Implement pending notification indicator

Bug: 131262206
Test: Manual.

Change-Id: I25a2892b55ea9761823dee1596cbf5d189b95dd7
(cherry picked from commit 61d832588a575a108cc86709edca5a4e8a512aad)

5 years agoMerge "Creating a new private styles/dimens for action bar" into qt-dev
TreeHugger Robot [Sat, 11 May 2019 04:17:40 +0000 (04:17 +0000)]
Merge "Creating a new private styles/dimens for action bar" into qt-dev

5 years agoMerge changes from topics "role-dialer-dialog", "role-sms-dialog" into qt-dev
TreeHugger Robot [Sat, 11 May 2019 03:01:50 +0000 (03:01 +0000)]
Merge changes from topics "role-dialer-dialog", "role-sms-dialog" into qt-dev

* changes:
  Deprecate intent action to the old changing default dialer/SMS dialogs.
  Remove TelecomManager.ACTION_CHANGE_DEFAULT_DIALER for apps targeting Q.
  Remove Telephony.Sms.Intents.ACTION_CHANGE_DEFAULT for apps targeting Q.

5 years agoMerge "Call grantOrUpgradeDefaultRuntimePerms for new usr" into qt-dev
Philip P. Moltmann [Sat, 11 May 2019 02:28:17 +0000 (02:28 +0000)]
Merge "Call grantOrUpgradeDefaultRuntimePerms for new usr" into qt-dev

5 years agoCreating a new private styles/dimens for action bar
John Choi [Wed, 8 May 2019 00:12:04 +0000 (17:12 -0700)]
Creating a new private styles/dimens for action bar

Bug: 130377115
Test: manual
Change-Id: I790c50c883269a87f24b916f0c126a9d691b3f0a

5 years agoMerge changes I50af022a,I82b77ec1 into qt-dev
Kevin Chyn [Sat, 11 May 2019 01:52:47 +0000 (01:52 +0000)]
Merge changes I50af022a,I82b77ec1 into qt-dev

* changes:
  Do not vibrate if last acquire message was NOT_DETECTED
  Persist dialog state across configuration change

5 years agoUpdate default home after preferred activity is changed.
Hai Zhang [Sat, 11 May 2019 01:13:47 +0000 (18:13 -0700)]
Update default home after preferred activity is changed.

Or the update won't find any change for preferred activity.

Bug: 132208447
Test: presubmit
Change-Id: Ic8e0173518efefec033ab39a9e6697f8c862dd60

5 years agoMerge "Use SRGB instead of nullptr when create hardware bitmap." into qt-dev
Peiyong Lin [Sat, 11 May 2019 01:11:27 +0000 (01:11 +0000)]
Merge "Use SRGB instead of nullptr when create hardware bitmap." into qt-dev

5 years agoFix RelativeLayout rules
Ryan Mitchell [Sat, 11 May 2019 00:44:52 +0000 (17:44 -0700)]
Fix RelativeLayout rules

A previous change restricted rules that are added to the rule dependency
graph to resource ids rather than just integers greater that zero.
Restore the previous behavior and also allow for negative resource ids
to work as expected.

Bug: 132447676
Test: loaded maps and view looks as expected
Change-Id: I88d86c77c696d1e494a743fdd2e398283383c64e

5 years agoDeprecate intent action to the old changing default dialer/SMS dialogs.
Hai Zhang [Fri, 3 May 2019 07:31:43 +0000 (15:31 +0800)]
Deprecate intent action to the old changing default dialer/SMS dialogs.

Bug: 124452117
Bug: 131204827
Test: presubmit
Change-Id: Iee636cf2dbcf4bdda5fc487d6883591e9463b0af

5 years agoRemove TelecomManager.ACTION_CHANGE_DEFAULT_DIALER for apps targeting Q.
Hai Zhang [Wed, 1 May 2019 06:16:23 +0000 (14:16 +0800)]
Remove TelecomManager.ACTION_CHANGE_DEFAULT_DIALER for apps targeting Q.

This intent supported starting with startActivity() so we may not be
able to get caller information in the started activity, hence remove
it for apps targeting Q and later here.

Bug: 124452117
Bug: 131204827
Test: presubmit
Change-Id: Ifd05c6797d01df42d92489d5d2e0c55231cbde2d

5 years agoRemove Telephony.Sms.Intents.ACTION_CHANGE_DEFAULT for apps targeting Q.
Hai Zhang [Wed, 1 May 2019 05:46:06 +0000 (13:46 +0800)]
Remove Telephony.Sms.Intents.ACTION_CHANGE_DEFAULT for apps targeting Q.

This intent supported starting with startActivity() so we may not be
able to get caller information in the started activity, hence remove
it for apps targeting Q and later here.

Bug: 124452117
Bug: 131204827
Test: presubmit
Change-Id: I261d6b6ccd42e148789ed03f7b3e8268b2f62480

5 years agoMerge "Grant STATUS_BAR permission to com.android.shell" into qt-dev
TreeHugger Robot [Sat, 11 May 2019 00:46:36 +0000 (00:46 +0000)]
Merge "Grant STATUS_BAR permission to com.android.shell" into qt-dev

5 years agoFix NPE in SyncManager when updating accounts.
Varun Shah [Sat, 11 May 2019 00:16:52 +0000 (17:16 -0700)]
Fix NPE in SyncManager when updating accounts.

On receiving MESSAGE_ACCOUNTS_UPDATED, do not try to sync accounts when
users are removed or stopped (when userId is null).

Bug: 132369930
Test: manual (steps listed on bug)
Change-Id: Ic9f8917e93d5e31a477b86e36d3e82b784657478

5 years agoMerge "DO NOT MERGE: Delete persisted historical app ops on package uninstall" into...
TreeHugger Robot [Sat, 11 May 2019 00:09:22 +0000 (00:09 +0000)]
Merge "DO NOT MERGE: Delete persisted historical app ops on package uninstall" into qt-dev

5 years agoMerge "Loosen the user id check for master mute on automotive" into qt-dev
TreeHugger Robot [Sat, 11 May 2019 00:01:51 +0000 (00:01 +0000)]
Merge "Loosen the user id check for master mute on automotive" into qt-dev

5 years agoMerge "Don't take activity options that contain remote animation" into qt-dev
Jorim Jaggi [Fri, 10 May 2019 23:43:07 +0000 (23:43 +0000)]
Merge "Don't take activity options that contain remote animation" into qt-dev

5 years agoMerge "Add extra comment for implementation." into qt-dev
TreeHugger Robot [Fri, 10 May 2019 23:33:39 +0000 (23:33 +0000)]
Merge "Add extra comment for implementation." into qt-dev

5 years agoMerge "MediaPLayer: remove unused code" into qt-dev
TreeHugger Robot [Fri, 10 May 2019 23:33:28 +0000 (23:33 +0000)]
Merge "MediaPLayer: remove unused code" into qt-dev

5 years agoMerge "Disable dark mode tile when in battery saver" into qt-dev
TreeHugger Robot [Fri, 10 May 2019 23:19:38 +0000 (23:19 +0000)]
Merge "Disable dark mode tile when in battery saver" into qt-dev

5 years agoMerge "Remove keys from adb_keys after period of inactivity" into qt-dev
Michael Groover [Fri, 10 May 2019 22:54:54 +0000 (22:54 +0000)]
Merge "Remove keys from adb_keys after period of inactivity" into qt-dev

5 years agoMerge "Clarify required/optional fields in BubbleMetadata." into qt-dev
TreeHugger Robot [Fri, 10 May 2019 22:22:37 +0000 (22:22 +0000)]
Merge "Clarify required/optional fields in BubbleMetadata." into qt-dev

5 years agoMerge "Do not show work profile encryption notification if already unlocked." into...
TreeHugger Robot [Fri, 10 May 2019 22:13:22 +0000 (22:13 +0000)]
Merge "Do not show work profile encryption notification if already unlocked." into qt-dev

5 years agoCall grantOrUpgradeDefaultRuntimePerms for new usr
Philip P. Moltmann [Fri, 10 May 2019 22:01:32 +0000 (15:01 -0700)]
Call grantOrUpgradeDefaultRuntimePerms for new usr

... instead of always user 0

Bug: 132368462
Test: Installed work profile and made sure that
RESTRICTION_UPGRADE_EXEMPT was set on
android.permission.READ_EXTERNAL_STORAGE for com.google.android.contacts

Change-Id: Ic0489fb832c5f5192f2c2dc68b750fed8326604e

5 years agoDisable dark mode tile when in battery saver
Lucas Dupin [Fri, 10 May 2019 21:45:42 +0000 (14:45 -0700)]
Disable dark mode tile when in battery saver

Test: toggle battery saver, try to toggle dark mode
Test: toggle battery saver, look at dark mode tile
Fixes: 132348329
Change-Id: I265309fb554637ac342c4cb360b03897d0b47b8f

5 years agoMerge "Fix the constant value for hidden BIND flag" into qt-dev
TreeHugger Robot [Fri, 10 May 2019 21:45:42 +0000 (21:45 +0000)]
Merge "Fix the constant value for hidden BIND flag" into qt-dev

5 years agoMerge "Document non-effective mode return of AppOps batch fetch" into qt-dev
TreeHugger Robot [Fri, 10 May 2019 21:25:32 +0000 (21:25 +0000)]
Merge "Document non-effective mode return of AppOps batch fetch" into qt-dev

5 years agoMerge "Make non-framework emergency location notification configurable" into qt-dev
Anil Admal [Fri, 10 May 2019 21:21:36 +0000 (21:21 +0000)]
Merge "Make non-framework emergency location notification configurable" into qt-dev

5 years agoMerge "Notify OverviewProxyService of scrim colors" into qt-dev
TreeHugger Robot [Fri, 10 May 2019 21:16:11 +0000 (21:16 +0000)]
Merge "Notify OverviewProxyService of scrim colors" into qt-dev

5 years agoMerge "Fix APC documentation" into qt-dev
TreeHugger Robot [Fri, 10 May 2019 21:10:49 +0000 (21:10 +0000)]
Merge "Fix APC documentation" into qt-dev

5 years agoClarify ContentResolver docs.
Varun Shah [Fri, 10 May 2019 21:10:08 +0000 (14:10 -0700)]
Clarify ContentResolver docs.

Explain under what conditions #query and #insert may return null.

Bug: 31043947
Test: n/a (docs update only)
Change-Id: I8880f80bfa2efff296a0a07c0bf28e9606d6db65

5 years agoMerge "Put SIM locked text in parenthesis" into qt-dev
TreeHugger Robot [Fri, 10 May 2019 20:49:15 +0000 (20:49 +0000)]
Merge "Put SIM locked text in parenthesis" into qt-dev

5 years agoMerge "Add DefaultContainerService to CleanSpec." into qt-dev
Varun Shah [Fri, 10 May 2019 20:46:02 +0000 (20:46 +0000)]
Merge "Add DefaultContainerService to CleanSpec." into qt-dev

5 years ago[InformationElementUtil] Add FT/SAE AKM
Hai Shalom [Fri, 10 May 2019 20:12:27 +0000 (13:12 -0700)]
[InformationElementUtil] Add FT/SAE AKM

Add FT/SAE AKM to InformationElementUtil class and parse it correctly so
that the phone would be able to associate with APs advertising it.
Added additional unit tests that were missing.

Bug: 132378498
Test: atest InformationElementUtilTest
Change-Id: I470e4e071de36dfe8f79475477c6077ed8bef3cb

5 years ago[WPA3] Fix connectivity issues with PSK-SAE Transtion mode
Hai Shalom [Wed, 8 May 2019 21:39:50 +0000 (14:39 -0700)]
[WPA3] Fix connectivity issues with PSK-SAE Transtion mode

Fix two reported issues regarding PSK-SAE transition mode:
1. When phone supports SAE, creating a manual saved network with PSK
and manually connecting would cause the phone to connect but Settings
does not display any connected AP. Phone would not autoconnect.
2. When phone doesn't support SAE, phone cannot connect to an AP in
PSK-SAE Transition mode because the framework always targets the highest
security.

Bug: 132278271
Test: Connect to WPA2 network
Test: Connect to WPA3 network (w/capable phone)
Test: Connect to WPA2/3 Transition w/SAE capable phone
Test: Connect to WPA2/3 Transition w/SAE not-capable phone
Change-Id: I2e2db7a7583b0a8fabbe927e6ab1d04e3edbc000

5 years agoAdd DefaultContainerService to CleanSpec.
Varun Shah [Fri, 10 May 2019 20:28:35 +0000 (13:28 -0700)]
Add DefaultContainerService to CleanSpec.

Bug: 132438832
Bug: 111838160
Test: builds and flashes.
Change-Id: Id76eb62c569911743097f1ff6136a9fbf9746510

5 years agoCall ScopedLocalFrame in JNI methods
chaviw [Fri, 10 May 2019 20:03:57 +0000 (13:03 -0700)]
Call ScopedLocalFrame in JNI methods

Objects were leaking in InputManagerService JNI since there were calls
from the native process without clearing the local reference.
Call ScopedLocalFrame before extrating the reference so the object
references get removed when the function returns.

Test: No longer leaking IWindow when opening/closing apps
Fixes: 131355264
Change-Id: Ib57398c833ba373b9c092e23bc965ed6d56c9fa5

5 years agoMerge "Start THM outside of the frp block" into qt-dev
William Hester [Fri, 10 May 2019 20:31:04 +0000 (20:31 +0000)]
Merge "Start THM outside of the frp block" into qt-dev

5 years ago[automerger skipped] Stop invoke initAppOps in Camera default constructor.
Daichi Hirono [Fri, 10 May 2019 20:19:57 +0000 (13:19 -0700)]
[automerger skipped] Stop invoke initAppOps in Camera default constructor.
am: 9799956531 -s ours
am skip reason: change_id Id738c4d46a8e3625bc3b1142b11acac9cfb0b603 with SHA1 2dba5c8417 is in history

Change-Id: I1ef23741d979ead55ccfbd9df49dc93fa0dfb9ea

5 years agoMerge "Make getSimCallManager msim aware" into qt-dev
Brad Ebinger [Fri, 10 May 2019 20:17:38 +0000 (20:17 +0000)]
Merge "Make getSimCallManager msim aware" into qt-dev