Commit Graph

477671 Commits

Author SHA1 Message Date
Roberto Perez
555acefb22 Make assistant button display the icon of the role holder application
Bug: 152335571
Test: Manual on emulator
Change-Id: Ife996a5f3fa4e7dcc403c2ec52758d56ea67a786
2020-05-20 17:18:04 -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
Songchun Fan
a543dfde92 Merge "[rvc-dev] explicitly set android:exported to false" into rvc-dev 2020-05-19 15:58:05 +00: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
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
TreeHugger Robot
0d23267a9c Merge "Change AtomicFile to use rename-into-place." into rvc-dev 2020-05-19 06:52:52 +00:00
TreeHugger Robot
1d867453ca Merge "add conversation flags to channel atom" into rvc-dev 2020-05-19 06:51:54 +00:00
Suprabh Shukla
54f0b9e24c Merge "Fix unsuspend from dialog on secondary users" into rvc-dev 2020-05-19 06:39:48 +00:00
Kyunglyul Hyun
5ff55ec278 Log info on system route provider
This CL logs provider info and session info of the system route provider
for debugging purpose.

Set DEBUG = true to gather logs for a while.

Bug: 156723680
Test: manually checking log
Change-Id: I4b020e951ff3b5bd7350cc733c822c702526e260
2020-05-19 15:36:40 +09:00
Kyunglyul Hyun
c9d20f317d Merge "Send last discovery preference to provider service" into rvc-dev 2020-05-19 06:32:57 +00:00
Robert Snoeberger
45be3fb63b Add test for MediaControlPanel
Bug: 153170704
Test: atest tests/src/com/android/systemui/media/MediaControlPanelTest.kt
Change-Id: I6a163a4d0973e2d3ca5087964435de8fd4ed0bb1
2020-05-19 02:10:33 -04:00
TreeHugger Robot
29ab886b04 Merge "Update string for 3.5mm and usb audio device" into rvc-dev 2020-05-19 05:33:48 +00:00
Chen Xu
b44d6d6d48 Merge "allow CBR to write SMS database" into rvc-dev 2020-05-19 04:41:50 +00:00
Mehdi Alizadeh
799b92b2d5 Merge "Adds back inset scale value to main config.xml" into rvc-dev 2020-05-19 03:31:52 +00:00
Philip P. Moltmann
088ef5e3ff Merge "Check dump permission for "dumpsys permissionmgr"" into rvc-dev 2020-05-19 02:54:21 +00:00
Henry Fang
d026dffb65 Merge "Added 1st atom for Tuner Metrics" into rvc-dev 2020-05-19 02:44:27 +00:00
Chris Li
eafbb325eb Merge "Use getOrCreateRootHomeTask in ActivityStartController" into rvc-dev 2020-05-19 02:35:26 +00:00
TreeHugger Robot
240e8f5544 Merge "Define BytesTransferByTagAndMetered atom" into rvc-dev 2020-05-19 02:23:30 +00:00
JW Wang
33285aff67 Merge "Add logs for debugging flaky test" into rvc-dev 2020-05-19 02:03:59 +00:00
TreeHugger Robot
58657c7c10 Merge "Report resizeTask failure as boolean result" into rvc-dev 2020-05-19 01:39:54 +00:00
TreeHugger Robot
e0fb2c72ce Merge "Adds test to verify cached shortcuts don't count against the limit" into rvc-dev 2020-05-19 01:13:21 +00:00
Gopalakrishnan Nallasamy
7f42b75525 Merge "MediaMuxer:Maintain proper state after stop()" into rvc-dev 2020-05-19 00:33:30 +00:00
Hai Zhang
b1a7706716 Change AtomicFile to use rename-into-place.
The previous implementation of backing up beforehand doesn't handle
the case where the file is created for the first time, and might leave
a corrupted file in case of failure.

This new implementation creates a new file for writing data into, and
renames it into the place of the original file after writing
finished.

Fixes: 151959443
Test: atest android.util.AtomicFileTest
Change-Id: I5c4c438526a2aecdd2af18f71e16b41a05817c61
Merged-In: I5c4c438526a2aecdd2af18f71e16b41a05817c61
2020-05-19 00:27:32 +00:00
Songchun Fan
e1d440b217 [rvc-dev] explicitly set android:exported to false
Test: atest PackageManagerShellCommandIncrementalTest
BUG: 156898751
Merged-In: Ic65980466f9ff9b66556e5893e5d11f10d4779a4
Change-Id: I703838d5329d917e0861db14fe7fad83847c47bc
2020-05-18 17:00:32 -07:00
Mehdi Alizadeh
dd9f8b3bf1 Adds test to verify cached shortcuts don't count against the limit
Bug: 148560891
Test: atest ShortcutManagerTest1
Change-Id: I2bf22294839c691166bbf0295d6b15ebd4c959a1
2020-05-18 23:56:54 +00:00
Mehdi Alizadeh
771557666d Adds back inset scale value to main config.xml
Bug: 152364314
Test: Manual
Change-Id: I6ba7c935e86bdc463c15094171d12edd834b0228
2020-05-18 23:52:10 +00:00
Silvia Vinyes
acee2d53b4 Fix app compaction bug and add tests.
Fixing b/154317004
App Compaction has a heuristic that ensures the delta in memory between
two full compactions is high enough. The map that keeps track of previous
compactions is missing some entries.

There is a map that keeps entries with previously compacted processes.
When trying to compact again one of those processes, the old entry is
removed and a new one inserted. When a compaction was not made because
of additional conditions / heuristics, the entry is removed but no new
entry is inserted again - as no new compaction occurred. We need to make
sure old entries are kept if the current compaction is not successful and
if it is successful, the map order should reflect it was the most recent
insertion.


Test: atest CachedAppOptimizerTest
Bug: 154317004

Change-Id: I0d4a364928fee162289098c4d4ea0005781bccfd
2020-05-18 23:14:40 +00:00
Beverly Tai
a1ad29da2d Merge "Revert "Don't readd pending notifs to NEM's allNotifs list"" into rvc-dev 2020-05-18 23:13:36 +00:00
Beverly Tai
1b87943cad Revert "Don't readd pending notifs to NEM's allNotifs list"
This reverts commit cb5e62cc50.

Reason for revert: cause of regression b/156874301
Fixes: 156874301
Change-Id: If88f1d508180ae7b2e40f11386d5a6b66b639750
2020-05-18 23:13:23 +00:00
Mike Digman
aa96eb5733 Merge "Add pinned target indicator to Sharesheet, update visuals" into rvc-dev 2020-05-18 23:12:15 +00:00
TreeHugger Robot
b8ec05c9f0 Merge "Fix UCE docs" into rvc-dev 2020-05-18 23:04:41 +00:00
Nicholas Ambur
de1f26432c Merge "fix calling SoundTriggerMiddleware in safeMode" into rvc-dev 2020-05-18 22:52:09 +00:00
Chris Li
f95a776459 Use getOrCreateRootHomeTask in ActivityStartController
Allow #getOrCreateRootHomeTask() to take argument onTop for the position
to create the home stack at.

Also don't allow untrusted secondary display to have system decorations.

Bug: 153624902
Test: atest CtsWindowManagerDeviceTestCases:MultiDisplaySystemDecorationTests
Change-Id: I12d0cfcf2436da3619abd314febddb05610e57f2
2020-05-18 15:52:08 -07:00