Commit Graph

477705 Commits

Author SHA1 Message Date
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
Lucas Dupin
2d2b7250f6 Merge "Add media icon to status bar" into rvc-dev 2020-05-19 23:22:03 +00:00
Julian Odell
4946555a8e Merge "Flush buffered data when session connects. Typically this data would have been flushed at the end of the first draw and there would otherwise be an extended delay before the data would be sent to the service." into rvc-dev 2020-05-19 22:22:30 +00:00
Hai Zhang
e0f524be6f Merge "Generating missing permission state inside restorePermissionState()." into rvc-dev 2020-05-19 22:07:02 +00:00
TreeHugger Robot
b82aaa58a5 Merge "Move DividerImeController into its own top-level class" into rvc-dev 2020-05-19 21:53:05 +00:00
Lucas Dupin
5d0422347f Add media icon to status bar
Test: manual
Test: atest PhoneStatusBarPolicyTest
Fixes: 156672238
Change-Id: I915ef61cbfd290e417b98c6f423ae230b2938fa7
2020-05-19 14:15:13 -07:00
Evan Rosky
c48c939343 Move DividerImeController into its own top-level class
First of all, this component is getting rather large so
just organizationally it makes sense to separate it.

Secondly, other pieces will need this injected (DividerView)
to fix some bugs, so it needs to be separated anyways.

Bug: 156775140
Test: just refactor, so check that nothing has changed
Change-Id: I30b9c746ba2cc01c5a38b174c1d06c003683411b
2020-05-19 13:40:48 -07:00
Christine Tsai
d7b08c7690 Merge "Change SimplePredicate InitialValue default to UNKNOWN" into rvc-dev 2020-05-19 20:30:00 +00:00
TreeHugger Robot
a9c6632f54 Merge "Fix typo in TEST_MAPPING" into rvc-dev 2020-05-19 20:10:39 +00:00
TreeHugger Robot
f843c6c05e Merge "Collapse shade when opening controls activities" into rvc-dev 2020-05-19 19:56:47 +00:00
TreeHugger Robot
2fed0a734e Merge "Sending split screen stack change to Launcher whenever it changes, instead of Launcher pulling it" into rvc-dev 2020-05-19 19:45:01 +00:00
Julian Odell
ef928f8a11 Flush buffered data when session connects.
Typically this data would have been flushed at the end of the
   first draw and there would otherwise be an extended delay
   before the data would be sent to the service.

Test: make -j
Test: Manually start WhatsApp - check for lost events
Test: atest CtsContentCaptureServiceTestCases

Bug: 154777879
Change-Id: Ia0a97e24ffcc1c189d5d0cd6b8888678fa48968e
2020-05-19 12:30:57 -07:00
TreeHugger Robot
db48450e84 Merge "Fix parsing sCachedPackageReadCount" into rvc-dev 2020-05-19 18:57:33 +00:00
Winson Chung
719e2c7a3b Merge "Revert "System Bars animation for fixed rotation transform"" into rvc-dev 2020-05-19 18:53:22 +00:00
TreeHugger Robot
ec78cc5b90 Merge "Ignore empty frames in ime-controller." into rvc-dev 2020-05-19 18:46:38 +00:00
Winson Chung
77de74d539 Revert "System Bars animation for fixed rotation transform"
This reverts commit dca5b93bf9.

Reason for revert: b/156868543

Bug: 156868543

Change-Id: Ia59450ef160021494a114715a0035437b28e8d00
2020-05-19 18:45:02 +00:00
Fabian Kozynski
5e6be9e7ae Collapse shade when opening controls activities
The shade is collapsed immediately (no animation) when the controls
management activities are started.

Test: manual
Fixes: 156911968
Change-Id: I93a37187377dcf1e5d007972c1ea34bf5bfeaadd
2020-05-19 14:33:09 -04:00
Anmol Gupta
7a639dce1b Merge "Add proto2 files for client-side IME classes" into rvc-dev 2020-05-19 18:23:46 +00:00
TreeHugger Robot
d1b50a9cca Merge "Dismiss media if paused for more than 10min" into rvc-dev 2020-05-19 18:23:37 +00:00
Sunny Goyal
2148254452 Sending split screen stack change to Launcher whenever it changes,
instead of Launcher pulling it

Bug: 155816922
Test: Verified with Launcher changes
Change-Id: I45920f8730740c819c63878857c3b5acbe12097a
2020-05-19 18:14:04 +00:00
TreeHugger Robot
f13d436c2e Merge "Add logging to NotifBindPipeline" into rvc-dev 2020-05-19 17:50:30 +00:00
tsaichristine
70a7ee5f60 Change SimplePredicate InitialValue default to UNKNOWN
Previous default for InitialValue was FALSE. Currently, no predicates
configure this field.

Added unit tests to test the initial condition changes in Value and
Count metrics.
- ValueMetricE2eTest.TestInitialConditionChanges
- CountMetricE2eTest.TestInitialConditionChanges

Bug: b/156541904
Test: m statsd_test && adb sync data && adb shell data/nativetest/statsd_test/statsd_test
Change-Id: I242bcb0b60455355e699636aae7e620fabc310ef
2020-05-19 10:39:46 -07:00
TreeHugger Robot
c0ce3444eb Merge "Fix race condition on cancelling alarms" into rvc-dev 2020-05-19 17:37:32 +00:00
TreeHugger Robot
f6f2273cb0 Merge "Carry over bugfixes from MediaProvider." into rvc-dev 2020-05-19 17:22:25 +00:00
TreeHugger Robot
470910085b Merge "fix RuntimeException when inflating default layout for AdapterView-based widgets" into rvc-dev 2020-05-19 17:13:04 +00:00
Lucas Dupin
5b27cbc0eb Dismiss media if paused for more than 10min
Test: manual
Fixes: 153897770
Change-Id: I2aeba1b53c3b70408d3ff95b4b987f13fc889210
2020-05-19 09:59:38 -07:00
TreeHugger Robot
0606dd5670 Merge "Add test for MediaControlPanel" into rvc-dev 2020-05-19 16:49:44 +00:00
TreeHugger Robot
b86ab6ef33 Merge "Controls UI - Haptics updates" into rvc-dev 2020-05-19 16:47:54 +00:00
TreeHugger Robot
fa01d2ad12 Merge "Flip ENABLE_DYNAMIC_PERMISSIONS." into rvc-dev 2020-05-19 16:42:36 +00:00
Winson
46220780ba Fix parsing sCachedPackageReadCount
This was moved to PackageCacher, but the old and unused counter
was not removed.

Bug: 154310064

Test: manual device reboots and logs cached count >0

Change-Id: I32fdb4b8fccd281fe61c64f231cb0ba154934679
2020-05-19 09:37:36 -07:00
Songchun Fan
a543dfde92 Merge "[rvc-dev] explicitly set android:exported to false" into rvc-dev 2020-05-19 15:58:05 +00:00
Jeff Sharkey
0fd3e39760 Carry over bugfixes from MediaProvider.
A few months ago MediaProvider forked SQLiteQueryBuilder and we
fixed bugs in how the new insert(), update(), and delete() methods
were executed, but those fixes never made their way back upstream.

This CL is a clean cherry-pick of existing logic.

Bug: 155149941
Test: atest android.database.sqlite.cts.SQLiteQueryBuilderTest
Change-Id: I00d2ee88539b12d27a2ed99fff0546d1e3543b0e
2020-05-19 09:37:13 -06:00
TreeHugger Robot
92be13d838 Merge "Prevent recursive calls to proximity sensor." into rvc-dev 2020-05-19 15:24:46 +00:00
Jeff Sharkey
60e1469c58 Flip ENABLE_DYNAMIC_PERMISSIONS.
Now that the underlying deadlock should be resolved, we can attempt
to enable the dynamic permissions checking.

Bug: 115619667
Test: atest android.appsecurity.cts.ExternalStorageHostTest
Change-Id: If68f08a8e4ffb7518f923108236e2635ea2b8bcd
2020-05-19 09:15:51 -06:00
TreeHugger Robot
fe4bd76a58 Merge "Controls UI - Detail dialog fix" into rvc-dev 2020-05-19 15:09:40 +00:00
Wale Ogunwale
02c67b119e Merge "Avoid wm<->am deadlock when checking uri permission" into rvc-dev 2020-05-19 15:00:53 +00:00
Wale Ogunwale
d638cd6164 Avoid wm<->am deadlock when checking uri permission
Bug: 115619667
Test: N/A
Change-Id: I43a868b261eb1546464c401b6ec1417870fa6f9c
2020-05-19 15:00:34 +00:00
Silvia Vinyes
197709093a Merge "Fix app compaction bug and add tests." into rvc-dev 2020-05-19 14:17:07 +00:00
Matt Pietal
095dfedb75 Controls UI - Haptics updates
Make on/off ticks longer and more pronounced

Bug: 154697212
Test: pixel 4, haptics
Change-Id: I36d48b2e88a471f9347f3f5dbd81780977480158
2020-05-19 10:10:48 -04:00
Dave Mankoff
dddcae9a95 Prevent recursive calls to proximity sensor.
This CL contains two main changes:

1) If a caller asks an instance of ProximitySensor to alert its
listeners recursively, the call will be ignored.

2) The DozeSensors and DozeTriggers both use the same instance of
a ProximitySensor so that they can share each other's prox calls.

Also, a DelayableExecutor is now passed into ProximityCheck where
once we used a Handler in order to make testing easier.

Fixes: 152821688
Test: atest SystemUITests
Change-Id: I8be62222c4e2b586218696b1d8b6ac158ebeffb5
Merged-In: I8be62222c4e2b586218696b1d8b6ac158ebeffb5
2020-05-19 10:04:19 -04:00
Matt Pietal
458bf2c3a7 Controls UI - Detail dialog fix
Address an error when kotlin was getting a null value for a non-null
parameter.

Bug: 156626956
Test: Use detail panel

Change-Id: I87bdeafdbefa1664fd5fe9a300f020f3b837f823
2020-05-19 09:55:13 -04:00
Miranda Kephart
ec4e1edb6d Merge "Increase screenshot button tap targets to 48dp" into rvc-dev 2020-05-19 13:50:43 +00:00
Fabian Kozynski
5c82912ab7 Merge "Deflake test in AppOpsControllerTest" into rvc-dev 2020-05-19 13:17:29 +00:00
TreeHugger Robot
9cbcb69d59 Merge "Fix returning an occluded activity below boundary" into rvc-dev 2020-05-19 11:03:56 +00:00
Tony Huang
44cb762e2b Merge "Set correct bounds when offset and expanded" into rvc-dev 2020-05-19 09:15:28 +00:00
Stanislav Zholnin
eec8ee430c Fix race condition on cancelling alarms
There was a race condition in which pulling alarms can be cancellled
after they are initialized, causing bucket boundary pulls to fail.

Test: manually verifified alarm consistently cancelled before being set
Test: manually verified alarms were properly cancelled on statsd crash
Fix: 156855909
Change-Id: I913b6f3e3d03269fb9283199f8b9d666a298e145
2020-05-19 01:30:14 -07:00
Louis Chang
62cdfe75f6 Fix returning an occluded activity below boundary
WindowContainer#getActivity() was returning null if there was no
matching activity or hit the boundary. Since we were unable to
tell the difference between the two cases, we would continue looking
for a matching activity from higher level window containers.

Take below hierarchy for example, #getActivity() returns null if
the boundary was TopActivity. So, we were kept looking for the matching
activity from Task#2 and returns BottomActivity.

RootTask
  - Task#1
     - TopActivity
  - Task#2
     - BottomActivity

Bug: 156014697
Test: start activity from recents in split-secondary
Change-Id: Ic344e8c1c47e9fa05c4de60be8c6b30f75cdb0bc
2020-05-19 16:23:15 +08:00
Kyunglyul Hyun
e54c3c811d Merge "Log info on system route provider" into rvc-dev 2020-05-19 08:11:34 +00:00
Fiona Campbell
4736a08273 Merge "Fix brightness curve when user sets slider to min." into rvc-dev 2020-05-19 07:50:42 +00:00
Tony Huang
5ebe019b41 Set correct bounds when offset and expanded
This bug occured when offset during pip window expanding animation.
curBounds value is still not expand bounds values, fix it by reset
curBounds if it should be expanded status.

Fix: 154647477
Test: Move pip widnow near and above IME then touch it.
Change-Id: I3d0215b96643c7d33d8d922d41ac12cd6291270e
2020-05-19 15:33:42 +08:00