Commit Graph

542466 Commits

Author SHA1 Message Date
Taran Singh
218e017d93 Merge "Don't allow pinned window to be IME target" into rvc-dev 2020-06-17 15:25:07 +00:00
TreeHugger Robot
4c3e345502 Merge "Statsd log for app notification bans." into rvc-dev 2020-06-17 15:25:01 +00:00
Antoan Angelov
57d9e08518 Merge "Re-setup viewpager on configuration change for RTL languages" into rvc-dev am: acfac74964 am: 909af45cf0
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11894160

Change-Id: I115a0bb111d1943da50c6bf529953a05b7f03609
2020-06-17 15:23:45 +00:00
Antoan Angelov
48babc1ffe Merge "Disable side swiping on RTL languages" into rvc-dev am: 46b4296beb am: e0624684c9
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11880480

Change-Id: I04c0aef0904d2b5656912ca0ebd24c5a1a5ce157
2020-06-17 15:22:39 +00:00
Treehugger Robot
23bead5d03 Merge "Preserve interrupted state across waiting for future" am: 3a91c75184 am: f6574a21c2 am: faa8d92090 am: 02e592f7f8
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1340128

Change-Id: Idbfbd2e573ee7f745b2a424d75682101d912da21
2020-06-17 15:22:18 +00:00
TreeHugger Robot
70e3f56147 Merge "Treat RouteInfo with different interfaces as different routes" into rvc-dev 2020-06-17 15:22:03 +00:00
Antoan Angelov
909af45cf0 Merge "Re-setup viewpager on configuration change for RTL languages" into rvc-dev am: acfac74964
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11894160

Change-Id: I94e13a55fc5923ed0272524e2746bd1f2acc2144
2020-06-17 15:11:43 +00:00
Antoan Angelov
e0624684c9 Merge "Disable side swiping on RTL languages" into rvc-dev am: 46b4296beb
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11880480

Change-Id: I073bad6ae93865dac49ff8715cf7e969cd5f11a7
2020-06-17 15:10:55 +00:00
Treehugger Robot
02e592f7f8 Merge "Preserve interrupted state across waiting for future" am: 3a91c75184 am: f6574a21c2 am: faa8d92090
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1340128

Change-Id: I80751b85f8444ae8bcf7d01522957663a4658a95
2020-06-17 15:06:31 +00:00
Antoan Angelov
acfac74964 Merge "Re-setup viewpager on configuration change for RTL languages" into rvc-dev 2020-06-17 15:00:51 +00:00
Antoan Angelov
46b4296beb Merge "Disable side swiping on RTL languages" into rvc-dev 2020-06-17 14:59:51 +00:00
Treehugger Robot
faa8d92090 Merge "Preserve interrupted state across waiting for future" am: 3a91c75184 am: f6574a21c2
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1340128

Change-Id: Ica523ae5269ba5e2a339653024870fefa581ad64
2020-06-17 14:53:00 +00:00
TreeHugger Robot
4d3b81c34b Merge "Revert "Add logs that indicate why a surface is invalid"" into rvc-dev am: d82080094e am: 0b235515ce am: 3d61c943b8
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11874469

Change-Id: I7911d3ebd066ad9b0647bdd626545330f5ae8d66
2020-06-17 14:45:40 +00:00
Dave Mankoff
3358ad6070 Ensure that velocity tracker is never null.
Fixes: 153823196
Test: atest SystemUITests
Change-Id: I1177fbba5ddc3f3b8e6ffd5a1ea627daeaff471f
2020-06-17 10:43:24 -04:00
Treehugger Robot
f6574a21c2 Merge "Preserve interrupted state across waiting for future" am: 3a91c75184
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1340128

Change-Id: Ida3616549a4d42d381ac414c2e82a638e38c17a2
2020-06-17 14:34:44 +00:00
TreeHugger Robot
3d61c943b8 Merge "Revert "Add logs that indicate why a surface is invalid"" into rvc-dev am: d82080094e am: 0b235515ce
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11874469

Change-Id: Ia68ee7a6a29ecab20ffe97471398a3c93c58b6b1
2020-06-17 14:34:16 +00:00
Riddle Hsu
3ae8aab87f Finish fixed rotation while the task has done transition
Assume an activity A is started in portrait and it starts another
landscape activity B immediately in the same task. If fixed rotation
applies for this case, the starting window will transfer across
different orientations that may look flickering. And because the
transformed activity is the B, the transition finished event of A
cannot match B that causes the display stays in old orientation.

This change makes the case use normal rotation animation to avoid the
flickering, and still handles the case that the transition is done
but the notified record is the first activity to avoid other similar
cases to miss the orientation update.

Fixes: 158112625
Test: DisplayContentTests#testFinishFixedRotationNoAppTransitioningTask

Change-Id: I559b0881463e379c17e35b7cfd96948feb36bf4b
2020-06-17 22:27:07 +08:00
Hasini Gunasinghe
7c336a66d9 Add KeystoreKeyEventReported atom for keystore logging.
This is for migrating keystore logging to use statsd.

Test: Adding tests for logging is yet to be decided.
Change-Id: I66fbc2b8ed98a34f243387f8550b6523b13cb9a2
Bug: 157664923
2020-06-17 14:17:55 +00:00
TreeHugger Robot
0b235515ce Merge "Revert "Add logs that indicate why a surface is invalid"" into rvc-dev am: d82080094e
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11874469

Change-Id: I744413842bbc74724268c1fe58187a74f4d90461
2020-06-17 14:15:17 +00:00
TreeHugger Robot
5ba867dc68 Merge "Controls UI - Properly sort, and set default on seed" into rvc-dev am: f21036b4e7 am: 8ce6beda23 am: cdc761b15a
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11851787

Change-Id: Iba8d7c8b89d1efb6df4637191f36bb9f129cdaf1
2020-06-17 14:08:36 +00:00
Treehugger Robot
3a91c75184 Merge "Preserve interrupted state across waiting for future" 2020-06-17 14:08:13 +00:00
TreeHugger Robot
d82080094e Merge "Revert "Add logs that indicate why a surface is invalid"" into rvc-dev 2020-06-17 14:00:34 +00:00
Will Brockman
7575e053b2 Statsd log for app notification bans.
I accidentally omitted logging for the event of banning/unbanning
notifications for the entire app, when I added notification
channel ban logging in ag/10450892.

Change-Id: Ibf2be1367bf41ad2b431cfcd2fef820ff270fed9
Test: atest PreferencesHelperTest
Bug: 156398451
2020-06-17 13:59:26 +00:00
TreeHugger Robot
cdc761b15a Merge "Controls UI - Properly sort, and set default on seed" into rvc-dev am: f21036b4e7 am: 8ce6beda23
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11851787

Change-Id: I2b731f57cdd6583db2579ab9aec7bcfc02e31f52
2020-06-17 13:53:14 +00:00
Treehugger Robot
939ed077fe Merge "Treat RouteInfo with different interfaces as different routes" am: 4156ab6937 am: 4c3d479c7d am: 4f52c1aa0d am: b9b3c10631
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1331916

Change-Id: Idbf543c750fbfc634eb68fa3ff2a0f497521c2d9
2020-06-17 13:45:07 +00:00
TreeHugger Robot
8ce6beda23 Merge "Controls UI - Properly sort, and set default on seed" into rvc-dev am: f21036b4e7
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11851787

Change-Id: I9ac3608af845f6d5a02523ff8e787e6053300181
2020-06-17 13:38:38 +00:00
Treehugger Robot
2f2dab0158 Treat RouteInfo with different interfaces as different routes
On Android different interfaces usually use different routing tables.
As a result, a change in interface should not be treated as route
update, but rather a remove and an add.

This change fixes a bug in VPN seamless handover where routes
failed to be updated when a new tunnel interface replaces the existing
one within the same network.

Bug: 158696878
Test: atest com.android.cts.net.HostsideVpnTests
Test: atest NetworkStackTests
Test: atest CtsNetTestCases
Test: atest FrameworksNetTests
Original-Change: https://android-review.googlesource.com/1331916
Merged-In: I57987233d42a0253eaee2e1ca5f28728c2354620
Change-Id: I57987233d42a0253eaee2e1ca5f28728c2354620
2020-06-17 13:34:11 +00:00
Treehugger Robot
b9b3c10631 Merge "Treat RouteInfo with different interfaces as different routes" am: 4156ab6937 am: 4c3d479c7d am: 4f52c1aa0d
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1331916

Change-Id: Ia1d52507ad6d04586b9d1df3fc182982639d1218
2020-06-17 13:32:51 +00:00
TreeHugger Robot
f21036b4e7 Merge "Controls UI - Properly sort, and set default on seed" into rvc-dev 2020-06-17 13:27:11 +00:00
Jaewan Kim
d555ba85dc MediaSessionService: Fix NPE when startup
Bug: 158050954
Test: Manually tested that the issue is gone after following command
      $ adb shell
      $ settings secure put media_button_receiver ",10"
      $ reboot
Change-Id: I0d7df2d349140c09282d029df80c2cf2060c5405
2020-06-17 13:25:29 +00:00
Treehugger Robot
4f52c1aa0d Merge "Treat RouteInfo with different interfaces as different routes" am: 4156ab6937 am: 4c3d479c7d
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1331916

Change-Id: I2f4d88aa74588e8ed27c5d0abcb9a6919f26f27d
2020-06-17 13:21:06 +00:00
Treehugger Robot
4c3d479c7d Merge "Treat RouteInfo with different interfaces as different routes" am: 4156ab6937
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1331916

Change-Id: Ibe919ea7c2096094fdb48fc91881d9f19678ac50
2020-06-17 13:07:42 +00:00
arangelov
581a3c5800 Also check inactive profile targets in onHandlePackagesChanged
Before we would only check the active tab for available
targets and finish the activity if there are none.
However, with the work tab, there can be cases where
the active tab has no targets, but the inactive tab does.

Fixes: 159202588
Test: manual
Change-Id: Ie03ebd1b022362681df432ec29299df86dceb490
2020-06-17 12:57:57 +00:00
arangelov
5f416b9452 Re-setup viewpager on configuration change for RTL languages
Otherwise rotating the device while showing a tab with RTL
shows blank tab content. This could be due to ViewPager
bugs when handling RTL.

Fixes: 158862939
Test: manually rotating the device with RTL layout
Test: manually rotating the device with LTR layout
Change-Id: Iba4c71cf88747d6fbbc36d19b5102460e8aa7cec
2020-06-17 12:57:47 +00:00
Treehugger Robot
4156ab6937 Merge "Treat RouteInfo with different interfaces as different routes" 2020-06-17 12:51:08 +00:00
Martijn Coenen
ab0c7403d6 Increase timeout waiting for ExternalStorageService to bind.
We've observed occasions where it can take a long time for the
system_server main thread to come around to handling the bind of the
service, for example because it's handling long-running jobs:

06-04 08:19:27.544  1000  1532  1532 W Looper  : Slow dispatch took
2044ms main h=com.android.server.job.JobSchedulerService$JobHandler
c=null m=1

Delays like this can cause us to fail binding to the external storage
service for a user, and reset the whole storage stack, leading to
unexpected results, especially if we timed out for trying to mount user
10, while user 0 has already been successfully mounted.

Increase the timeout to 20 seconds; this gives us a lot more time to
complete the bind. At the same time, we want to avoid risking holding
the vold lock for too and/or any deadlocks.

Add a WTF for when we do hit the timeout, to get a better grasp on how
common this is.

Bug: 158452122
Test: Boot device
Change-Id: Ia8f6f121448f6b5e484fd3e8cca845fdd89afc23
2020-06-17 14:46:51 +02:00
hyeeun.jun@samsung.com
f8a1cec8d5 Fix Deadlock Issue On AppFuseBridge
There are two locks used by AppFuseBridge.
First is it's object lock, and the second is a mutex lock in app fuse library.
There are two oppsite routines to get those locks.

  (Thread A) Got Java lock -> Try to get Native lock
  (Thread B)        Got Native lock -> Try to get Java lock

The order must be followed to obtain two locks.
If not, the dead lock will be caused.
Therefore we change the routine to get the mutex lock first, and the object lock later.

Signed-off-by: hyeeun.jun@samsung.com <hyeeun.jun@samsung.com>
Bug: https://issuetracker.google.com/issues/145707568
Bug: 157535024
Test: atest --test-mapping apex/blobstore

Change-Id: I1f05cc98953d8452147370dd04c223d54c0e5362
2020-06-17 13:45:13 +01:00
Bill Yi
e26e62e470 Import translations. DO NOT MERGE
Auto-generated-cl: translation import
Change-Id: Ic5a54b4a4c965d8acacb8569079d8fddea53ccca
2020-06-17 05:26:04 -07:00
Jorim Jaggi
e1f741becf Revert "Add logs that indicate why a surface is invalid"
This reverts commit 0fd6748bf6.

Bug: 159056748
Change-Id: I850c0d29e07c74143868c6c63cef63649a449c9e
2020-06-17 14:12:50 +02:00
Khaled Abdelmohsen
549ce7a482 Modify source stamp format
Modify source stamp verifier to account for APK signature schemes V1,
V2, and V3. The verifier would verify the signature schemes found in the
APK.

If the APK is signed using a signature scheme that does not have a
corresponding verified source stamp signed digest, the source stamp is
considered unverified.

Bug: 158196850
Test: atest FrameworksCoreTests:SourceStampVerifierTest
Change-Id: I07e3606a346b598d192771945335770ce964726e
2020-06-17 12:40:58 +01:00
Kyunglyul Hyun
f9ad0f6e3c Refresh mFilteredRoutes when routes are changed
When a route changes its features, the returned getRoutes() can be
changed.

Bug: 159142641
Test: run support v7 demos manually to check onRouteAdded callback is
invoked

Change-Id: Icea855d631a566fd9129f98306e3ea8af4920764
2020-06-17 20:29:04 +09:00
Rubin Xu
c3dec3448d Treat RouteInfo with different interfaces as different routes
On Android different interfaces usually use different routing tables.
As a result, a change in interface should not be treated as route
update, but rather a remove and an add.

This change fixes a bug in VPN seamless handover where routes
failed to be updated when a new tunnel interface replaces the existing
one within the same network.

Bug: 158696878
Test: atest com.android.cts.net.HostsideVpnTests
Test: atest NetworkStackTests
Test: atest CtsNetTestCases
Test: atest FrameworksNetTests
Change-Id: I57987233d42a0253eaee2e1ca5f28728c2354620
2020-06-17 12:01:41 +01:00
shafik
44f3ca5679 Allow MediaProvider to request REGISTER_STATS_PULL_ATOM
MediaProvider needs the permission to register a StatsPullCallback in
statsd to pull the external storage metrics.

Test: build
Bug: 149669087
Change-Id: I4f7e09c2e514e2290d1cd5ac765bb115e7ade9ef
2020-06-17 11:34:01 +01:00
arangelov
9a960b740e Disable side swiping on RTL languages
The internal ViewPager seems to not handle RTL well. This CL
disables side swiping in that case.

Fixes: 159110029
Test: manually confirmed side swiping does not happen on RTL
languages
Test: manually side swiped on non-RTL languages

Change-Id: I30272426d1d1ef4f17ec656630cee01505f66c59
2020-06-17 10:15:38 +00:00
Matthew Mintz
79f2d95c88 Add app label to AOSP sound picker.
Bug: 156435592
Test: built and observed label in chooser
Change-Id: Ie0e00f03fa7cc4962fc32512f3f4ccb08b1b2d29
2020-06-17 10:02:23 +00:00
arangelov
1b21b1cf12 Show disclosure for organization-owned work profile
Fixes: 149073538
Test: manual
Test: atest QSSecurityFooterTest
Change-Id: I5b848a2464d5b4cd394c47a211253411aa1ff930
2020-06-17 09:55:51 +00:00
TreeHugger Robot
9d6548d104 Merge "CEC: Prevent overwriting volume control Settings" into rvc-dev am: 58fd58dea7 am: e250de1539 am: 67a7772237
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11859734

Change-Id: I1b7fa6f6ee7edb12f815d7011d42d0315ef26732
2020-06-17 09:47:47 +00:00
Aaron Huang
78838867c0 [automerger skipped] Merge "Add unit test for NetworkStatsSubscriptionsMonitor" am: ad9a0e7713 am: 4535e1ddca -s ours am: cf15e30f81 -s ours am: 7b30d4ce1f -s ours
am skip reason: Change-Id I4ef3f1ab2e5ea1322133edd80db3ccd0022e9c91 with SHA-1 e4e86e1cad is in history

Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1298476

Change-Id: I03cc7680a5a57f16862792351ddae20acd66167a
2020-06-17 09:47:28 +00:00
Joanne Chung
f4d947bdc6 Notify the registered AutofillCallback for inline.
AutofillInlineSuggestionsRequestSession controls the inline
communication with the IME, we can centralize the UI show and hide
notification here. Use a variable mPreviousHasNonPinSuggestionShow to
save the previous status, when the display status change, e.g. from
no suggestion to has suggestions we can notify inline ui shown event.

Bug: 157762527
Test: atest android.autofillservice.cts.inline
Test: atest CtsAutoFillServiceTestCases:DatasetFilteringDropdownTest
Test: atest CtsAutoFillServiceTestCases:InlineFilteringTest
Test: atest CtsAutoFillServiceTestCases:LoginActivityTest
Test: Manual. Write a test app and register AutofillCallback, make
sure the callback is called as expected.

Change-Id: I8ee38008874c4a6f110635e8e4107a4eef72ed14
2020-06-17 17:43:14 +08:00
TreeHugger Robot
67a7772237 Merge "CEC: Prevent overwriting volume control Settings" into rvc-dev am: 58fd58dea7 am: e250de1539
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11859734

Change-Id: Ice793a489a6ca996ce25817e31dc04aa290b6bfd
2020-06-17 09:35:02 +00:00