Commit Graph

477882 Commits

Author SHA1 Message Date
Fabian Kozynski
c4452824a0 Merge "Fix width of GA popup menu." into rvc-dev 2020-05-21 15:42:46 +00:00
Matt Pietal
c828071246 Merge "Controls UI - Fix dropdown layer list" into rvc-dev 2020-05-21 15:40:59 +00:00
TreeHugger Robot
d70e938de0 Merge "Don't save touch location as a resting position." into rvc-dev 2020-05-21 15:38:34 +00:00
TreeHugger Robot
86b5fa9c1f Merge "Tint the pointer white at all times." into rvc-dev 2020-05-21 14:58:14 +00:00
Robert Luo
82c49a95cd Merge "Add data collection and metrics for Media Output Switcher - 1/n" into rvc-dev 2020-05-21 14:56:53 +00:00
Fabian Kozynski
67056f7a5a Fix width of GA popup menu.
* Take into account padding when measuring width. Remove from max and
min and then add back.
* Find the maximum width for all entries, instead of just the first one.

Test: manual, English and Greek
Fixes: 156775638
Change-Id: Ie6754af18ce44ef33217a1d96aa4c460bb449d87
2020-05-21 09:56:19 -04:00
Matt Pietal
fb67b52119 Controls UI - Fix dropdown layer list
Remove bottom layer, not needed in this case. This will prevent the
icon from hovering over the window and not obeying animations.

Fixes: 156662716
Fixes: 156924481
Test: manual. show/hide power menu, and scroll it up
Change-Id: If7c66e68ad582143d2ecd29e0c5938070996a9f9
2020-05-21 09:53:26 -04:00
TreeHugger Robot
a04008425f Merge "Drop prebuilt files to android source tree." into rvc-dev 2020-05-21 12:57:34 +00:00
Alex Johnston
fa6cf17648 Merge "setAutoTimeRequired disabled on managed profile" into rvc-dev 2020-05-21 10:08:51 +00:00
Fiona Campbell
6fd144dd1b Merge "Convert BrightnessUtils to use brightness as float" into rvc-dev 2020-05-21 09:42:36 +00:00
Daniel Rosenberg
3f15f4018e Merge "Check property for sdcardfs use" into rvc-dev 2020-05-21 08:31:23 +00:00
Mayank Garg
6a468598f0 Merge "Added more events to user switch journey" into rvc-dev 2020-05-21 08:22:01 +00:00
Chalard Jean
4f94389c6d Merge "Address nit from aosp/1301317" into rvc-dev 2020-05-21 06:44:30 +00:00
Chalard Jean
9941ef7930 Merge "Fix a bug where VPNs start out suspended on cellular" into rvc-dev 2020-05-21 06:43:56 +00:00
Chalard Jean
acdacbfe65 Merge "Fix a bug where a spurious capabilities callback is sent." into rvc-dev 2020-05-21 06:43:43 +00:00
Goven Liu
b74db23313 Revert "[Wi-Fi] Add proto fields for Openroaming network."
This reverts commit d64e9452e4.

Reason for revert:
Those two metrics are added for Openroaming service, but they can not be used finally, so remove them.

Bug: 146669261
Test: No, just remove proto fields.
Change-Id: I601927c443b13a5d2d52e60ad4c910204156a102
2020-05-21 05:51:09 +00:00
Treehugger Robot
cbb1fd0a7b Address nit from aosp/1301317
Test: atest ConnectivityServiceTest#testVpnSetUnderlyingNetworks
Bug: 150570873
Original-Change: https://android-review.googlesource.com/1307374
Merged-In: If5e5439b22f05e08a293fd83da4d54f6a4363ca5
Change-Id: If5e5439b22f05e08a293fd83da4d54f6a4363ca5
2020-05-21 05:12:41 +00:00
Chalard Jean
8e53c79556 Fix a bug where VPNs start out suspended on cellular
As NetworkAgent is in a transition where all agents need
to include the NOT_SUSPENDED capability as part of their
migration to the system API, ConnectivityService adds it
forcefully to all agents that don't have the CELLULAR
transport. This doesn't include VPNs when VPNs have some
cellular network as their underlying network.

The best way to solve this is to make sure the VPN
capabilities reflect those of the underlying networks as
far as the NOT_SUSPENDED capability is concerned. This
is how they work for other similar capabilities.

This also happens to contain a drive-by fix for an issue
with a spurious capabilities callback is triggered when
a VPN connects and it has any underlying network (which
means almost always, because it will take the default
network if it doesn't declare any). Fixing this was
necessary to have a cogent test of this issue, but it
could be moved to another patch or it could stay unfixed
with some minor ajustment to the tests if judged too
dangerous to include in R at this point.

Test: New tests in this patch. Also manually tested with
      tcpdump as described in b/150570873.
Bug: 150570873
Original-Change: https://android-review.googlesource.com/1301317
Merged-In: I3e4ff990c0d4825b21c7679be29a482a2d1324ec
Change-Id: I3e4ff990c0d4825b21c7679be29a482a2d1324ec
2020-05-21 05:10:37 +00:00
Chalard Jean
fe5e23f8a4 Fix a bug where a spurious capabilities callback is sent.
When a VPN connects and it has any underlying network (which
means almost always, because it will take the default network
if it doesn't declare any), it has default capabilities and
will only take the capabilities of its underlying network
as part of an update happening after making the network
available but before the rematch can take place. This in turn
causes the capabilities callback sent as part of the rematch
to be spuriously sent.

Test: FrameworksNetTests. Also tested together with a
      followup that adds tests with drive-by coverage for this.
Bug: 150570873
Original-Change: https://android-review.googlesource.com/1305393
Merged-In: Id7d8bba486bada1a7ba5b0f152d2aa02e407f249
Change-Id: Id7d8bba486bada1a7ba5b0f152d2aa02e407f249
2020-05-21 05:09:15 +00:00
Joshua Tsuji
c81cc482dd Don't save touch location as a resting position.
When you drag bubbles out of the magnetic target, it springs towards your touch position to 'catch up', since it was stuck in the target away from the touch. However, unlike all other springs, this one should not save its end position as the stack resting position, since it's not a valid resting position.

This one was hard to repro - you have to drag bubbles into the target, then quickly pull them out, back in, and release them before they catch up to your finger. If you do though, you'll end up with bubbles that come back in the middle of the screen.

Test: mash on the dismiss target a bunch
Bug: 155495386
Change-Id: I8ded5337a72fb52a851e7640d2b0fddb8453648a
2020-05-21 00:17:10 -04:00
TreeHugger Robot
92d678d8ad Merge "Null-check the dragged-out bubble." into rvc-dev 2020-05-21 03:52:31 +00:00
TreeHugger Robot
1b9895eb46 Merge "Remove temp READ_PHONE_STATE fix" into rvc-dev 2020-05-21 03:35:36 +00:00
Hongwei Wang
047a550900 Merge "Ignores entering PiP animation on seamless rotation" into rvc-dev 2020-05-21 03:12:56 +00:00
TreeHugger Robot
8ced9207cc Merge "Add SystemPartitionParseTest to postsubmit" into rvc-dev 2020-05-21 03:12:31 +00:00
Jaewan Kim
c3d57f029b Keep media sessions for stopping user until the stopping is completed am: f281109786
Change-Id: I7bd5edbb0046fa47e0090211c78045a2a67d08a9
2020-05-21 02:55:15 +00:00
Joshua Tsuji
dd082b65ef Tint the pointer white at all times.
Currently Bubble backgrounds are also white at all times (we think for background protection reasons?), so it makes sense to align these. If we reopen b/153367093 with a fix that allows for dark-backgrounded bubbles in dark mode, I'll apply the same fix here.

Test: manual
Fixes: 130834403
Change-Id: I92a81b8c224cbb2ac580bdfc4e40bdd2744d353e
2020-05-20 22:33:39 -04:00
Joshua Tsuji
7db91c32aa Null-check the dragged-out bubble.
Test: atest SystemUITests
Fixes: 157163804
Change-Id: Ib47130d61875fc86dfbb723d6c595bc3767ee132
2020-05-20 22:28:59 -04:00
TreeHugger Robot
e63ef53db5 Merge "Prevent conflicting animations from starting." into rvc-dev 2020-05-21 02:03:23 +00:00
TreeHugger Robot
2b24206ecd Merge "Prevent NPE in PulseExpansionHandler" into rvc-dev 2020-05-21 01:57:11 +00:00
Wale Ogunwale
6b937bab20 Merge "Revert "Avoid wm<->am deadlock when checking uri permission"" into rvc-dev 2020-05-21 01:45:08 +00:00
TreeHugger Robot
6b98402100 Merge "Add tests for AtomicFile compatibility behaviors." into rvc-dev 2020-05-21 01:36:58 +00:00
Matt Casey
fe3df2ad27 Merge "Ensure screenshot edit action gets permissions for current user" into rvc-dev 2020-05-21 01:22:15 +00:00
Sudheer Shanka
69a37e8e1a Merge "Update queryBlobsForUser() impl to handle special user ids." into rvc-dev 2020-05-21 01:02:19 +00:00
Hongwei Wang
f4e4bab403 Ignores entering PiP animation on seamless rotation
- Added onFixedRotationStarted/onFixedRotationFinished callback in
  DisplayWindowListener
- onFixedRotationStarted shall be called before onTaskAppeared for PiP
- When onTaskAppeared is received in PipTaskOrganizer, we defer the
  entering PiP transition if fixed rotation is ongoing
- When onFixedRotationFinished is received in PipTaskOrganizer and the
  entering PiP transition is deferred, schedule an immediate
  transition to PiP to make sure all the expected callbacks from
  PipTaskOrganizer are still being sent

Video: http://go/recall/-/aaaaaabFQoRHlzixHdtY/bb8HjJvMZKtpN8YTPKZXmj
Bug: 153861223
Test: manually enter PiP from Play Movies / YT fullscreen
Test: atest ActivityRecordTests \
            RecentsAnimationControllerTest \
            ActivityTaskManagerServiceTests \
            PinnedStackTests
Change-Id: I0dea905d610e2387af56b611be5f93518cc9a153
2020-05-20 17:34:17 -07:00
Josh Tsuji
e7b00f678c Merge "Remove Bubbles from the WM, only after all bubbles finish animating out." into rvc-dev 2020-05-21 00:25:11 +00:00
Wale Ogunwale
f435516c9c Revert "Avoid wm<->am deadlock when checking uri permission"
This reverts commit d638cd6164.

Bug: 157106728
Bug: 115619667
Reason for revert:

Looked into this some with the Camera test case in b/157106728. The wait()/notify strategy isn't going to work here because we have a 3-lock system vs. 2. We have the WM, UGM, and AM locks involved. Both the WM and UGM lock are held in the call to ActivityManagerInternal#checkContentProviderUriPermission and in the subsequence call that ActivityManagerService#checkContentProviderUriPermission AMS calls back into WMS and UGMS for various reasons which requires their locks...wait()/notify strategy allows us to break out of 1 lock, but things get really messed up if we try to use that strategy to break out of 2 locks.

Change-Id: Ic0f30f6c1b24334105a00790488d2758390e85a1
2020-05-21 00:21:08 +00:00
TreeHugger Robot
1de6b7ed73 Merge "Promote frequently sharing apps as per monthly stats fetched from UsageStatsManager, in case PeopleService does not store enough sharing events when users just swicth to Sharesheet ranking in PeopleService.     Bug: 156320324 Test: atest com.android.server.people.prediction.ShareTargetPredictorTest Test: atest com.android.server.people.prediction.SharesheetModelScorerTest Test: atest com.android.server.people.data.UsageStatsQueryHelperTest" into rvc-dev 2020-05-21 00:15:04 +00:00
TreeHugger Robot
d220792d6b Merge "camera2: Add some more docs to getConcurrentCameraIds" into rvc-dev 2020-05-21 00:15:00 +00:00
TreeHugger Robot
2a5f86f78c Merge "MultiFingerMultiTap: reset the expiration clock when fingers go up." into rvc-dev 2020-05-21 00:06:47 +00:00
Chavi Weingarten
5ffe066041 Merge "Clear calling identity when requesting syncInputTransaction" into rvc-dev 2020-05-21 00:01:15 +00:00
Jacky Kao
226aaf6aeb Merge "Bubble's change could notify to A11y framework" into rvc-dev 2020-05-20 23:43:34 +00:00
Nate Myren
02954118d1 Remove temp READ_PHONE_STATE fix
The fix has propagated through droidfood, and is uneeded.

Bug: 156448914
Test: build
Change-Id: I0421217e1590cd17f9efd0dea031bb1aec98cb14
2020-05-20 16:42:39 -07:00
TreeHugger Robot
df2f706d52 Merge "Increases the shortcut limit to 15 per activity" into rvc-dev 2020-05-20 23:42:24 +00:00
Hai Zhang
c45618242b Add tests for AtomicFile compatibility behaviors.
Bug: 151959443
Bug: 157092639
Test: atest android.util.AtomicFileTest
Change-Id: I84e4f7d482e516ee091170a31d6c2e61c65d8812
2020-05-20 16:33:39 -07:00
TreeHugger Robot
5c77ec2e12 Merge "Maintain compatibility by deleting target directory before renaming into it." into rvc-dev 2020-05-20 23:20:42 +00:00
TreeHugger Robot
129b3ffbbb Merge "Revert "Remove usages of Slog.wtf"" into rvc-dev 2020-05-20 23:08:05 +00:00
TreeHugger Robot
ffea5f8f44 Merge "Fixes order of arguments when fetching uninstalled app info" into rvc-dev 2020-05-20 23:08:05 +00:00
TreeHugger Robot
beac47b12e Merge "Properly keep compatibility with openRead() during a write." into rvc-dev 2020-05-20 22:46:01 +00:00
Joshua Tsuji
04ab640572 Prevent conflicting animations from starting.
This will prevent the stack from becoming separated and confused in some situations. The root cause was that the BubbleStackView returned false by default in its touch handler, which allowed the bubble views to grab touch events they shouldn't have and start animations. However, those bubbles trying to start the animations should have been prevented by the active controller logic, but it wasn't due to a missing check. Might as well fix both causes!

Also, cancel the path animator before starting a new one just in case.

Fixes: 155499044
Test: manual
Change-Id: Idbdb68dfe3cccc69ae3709faad8d3b7078b354a9
2020-05-20 18:45:04 -04:00
Jayant Chowdhary
9c8fe18534 camera2: Add some more docs to getConcurrentCameraIds
- specifying the order of camera open and session configuration.
- explaining the use of CONTROL_ZOOM_RATIO with concurrent operation of cameras.

Bug: 151891611

Test: make doc-comment-check-docs

Change-Id: I3ee3f114f7295570aa6af5dbe35bb32db555811b
Signed-off-by: Jayant Chowdhary <jchowdhary@google.com>
2020-05-20 15:43:47 -07:00