Commit Graph

13040 Commits

Author SHA1 Message Date
Peter_Liang
baf4f05387 Update the edit shortcut menu (4/n).
1.Popup the permission dialog to warn user when trigger service target.
2.Update strings

Bug: 148989057
Test: manual test
Change-Id: If2d72bb5a98ba5a4c284a5d9a32991ea38fbadd7
2020-03-09 13:37:48 +08:00
Peter_Liang
b6d9e4168e Update the edit shortcut menu (3/n).
1. Enable to uncheck legacy service target item in edit menu mode.
2. Add toast to warng the user when uncheck service.

Bug: 148989057
Bug: 150365947
Test: manual test
Change-Id: Ieb35d3593ed25025dbc37507d0c54e6ba266d2ed
2020-03-08 21:25:44 +08:00
Peter_Liang
1e20bc4147 Update the edit shortcut menu (2/n).
Add checkbox into list item and change the beavior.

Bug: 148989057
Test: manual test
Change-Id: I7782898582c2f9759d4ef466d2864f124d8c83be
2020-03-08 21:25:25 +08:00
TreeHugger Robot
1a023125c9 Merge "Add permissions data validation in AppOpsService" into rvc-dev 2020-03-07 00:50:14 +00:00
Will Brockman
ed05940533 Merge "Statsd log of dismiss all notifications event." into rvc-dev 2020-03-06 21:59:11 +00:00
Eugene Susla
8f562219c8 Merge "Generate @NonNull setter args and @MaySetToNull to opt out" into rvc-dev 2020-03-06 18:53:24 +00:00
Will Brockman
b65faa8e05 Statsd log of dismiss all notifications event.
Using UiEventLogger: DISMISS_ALL_NOTIFICATIONS_PANEL

Bug: 146488473
Test: atest NotificationStackScrollLayoutTest
Change-Id: Ic81190fa52e9e43498d41182b0476bb03645a52d
2020-03-06 13:51:14 -05:00
TreeHugger Robot
8f15e287e9 Merge "Autolaunch if one app in active profile and empty state in the inactive." into rvc-dev 2020-03-06 17:41:44 +00:00
TreeHugger Robot
8a34b90f7a Merge "Enable work tab in share sheet and intent resolver feature flag" into rvc-dev 2020-03-06 17:38:32 +00:00
Zhen Zhang
973ec1172b Merge "Fix Sharesheet nest scrolling issue introduced by using RecyclerView" into rvc-dev 2020-03-06 17:22:11 +00:00
arangelov
85974ed070 Enable work tab in share sheet and intent resolver feature flag
Test: rigorous testing by my team, manual QA and myself
Fixes: 150937704
Change-Id: I025e0b64c7c12ecb8eb0290d8bb8c6f3b4f41dcd
2020-03-06 16:38:52 +00:00
arangelov
4c0513d8c7 Prevent intent resolver from changing height when no app targets
If we select the inactive tab, and there are no resolved targets,
the intent resolver changes its height for a few frames.
This is because first we show and reload the list view as we
switch to the other, and then in onPostListReady we show the
empty state screen for no apps available. There are few frames
between these two events, when the list view has a height of 0.
That's when the ResolverViewPager recalculates its height and
thus reduces the intent resolver height. Then as the empty state
screen is shown, the proper intent resolver height is restored.
The fix is to move the showListView call to onPostListReady.

Test: manual
Fixes: 150888674
Change-Id: I685568e183bbd5708242e1228195ec6b09023272
2020-03-06 15:34:34 +00:00
arangelov
b91d08f1a8 Autolaunch if one app in active profile and empty state in the inactive.
Fixes: 150883045
Test: manual
Change-Id: I2fbc862cc73c5763de9aaff436c01de8dbc83efb
2020-03-06 15:34:21 +00:00
Anna Trostanetski
e9e7d56cd9 Merge "Add support for LoggingOnly changes" into rvc-dev 2020-03-06 14:38:28 +00:00
TreeHugger Robot
ac8a5397bc Merge "Update strings related to intent resolver and share sheet." into rvc-dev 2020-03-06 13:48:02 +00:00
Hugo Benichi
4cf6815168 Merge "vpn: Fix NPE in VpnConfig#toString when no ProxyInfo is set" into rvc-dev 2020-03-06 12:30:17 +00:00
arangelov
78fd360cf6 Update strings related to intent resolver and share sheet.
Test: manual
Fixes: 149749960
Fixes: 149897521
Change-Id: I8a8273bec0e85bc9d21e863ded943e9e28e4dbd4
2020-03-06 11:58:37 +00:00
Hugo Benichi
c8922177c8 vpn: Fix NPE in VpnConfig#toString when no ProxyInfo is set
Bug: 150910582
Test: Compiled bertha_x86_64-userdebug (Chrome OS ARCVM image) for
rvc-dev, flashed eve-arcvm (Pixelbook), connected TouchVpn App, observed
that ARC's VpnTracker does not crash the system server when printing
VpnConfig objects with no ProxyInfo.

Change-Id: I3f8dd1d232e2b18dae9e99eb05c92a797a2358b9
2020-03-06 14:20:23 +09:00
Eugene Susla
47ca5d035e Generate @NonNull setter args and @MaySetToNull to opt out
Bug: 143653080
Test: source /usr/local/google/home/eugenesusla/android2/master/frameworks/base/tests/Codegen/runTest.sh
Change-Id: Iba8da34c91fd09e266429ab131add1d53449506b
(cherry picked from commit ab14c55c1f)
2020-03-05 23:54:43 +00:00
David Cheung
2ead966e7b Add permissions data validation in AppOpsService
Added functionality to collect noteOp noteProxyOp startOp operations for permissions data validation, this functionality is for
developers and can be enabled by modifying the flag. This data will be utilized to ensure permissions are
requested only when necessary.

Bug: 150890258

Test: Manually tested on crosshatch to ensure files are
written/formatted properly with the necessary data and does not
interfere with normal behavior

Design Document: https://docs.google.com/document/d/1RRs3cPgCzF5S1TkTD11MBKJedUp2DAUEGtCQXtrk0XQ/edit?usp=sharing

Change-Id: Ia7fba6ec5e47b7ddd13ca964ae5f6c1afa1cc186
2020-03-05 23:04:05 +00:00
arangelov
349af6a99d Make "Always" and "Just once" buttons work properly in tabbed view
Fixes: 149821678
Test: manual

Change-Id: Ib0398d1a967d2b406894d499ccfc38da215ce230
2020-03-05 20:11:03 +00:00
TreeHugger Robot
88a6bcaec8 Merge "Only add vertical resolver_list padding if showing tabs." into rvc-dev 2020-03-05 17:36:08 +00:00
arangelov
2a4d0b1925 Only add vertical resolver_list padding if showing tabs.
Otherwise we show an unnecessary extra padding in single-user mode.

Test: manual
Fixes: 150780076
Change-Id: Ibf5997fd9a13335dc0d7765a68375541235e9570
2020-03-05 15:40:46 +00:00
PETER LIANG
9eefc0aca4 Merge "Update the edit shortcut menu (1/n)." into rvc-dev 2020-03-05 12:30:42 +00:00
Peter_Liang
dfe6f92343 Update the edit shortcut menu (1/n).
1. Add the dialog title
2. Change font family and size for label
3. Move functions into the corresponding files

Bug: 148825350
Test: manual test
Change-Id: Id8858122714cc0b063a7562c5a99218efb1766f7
2020-03-05 12:19:12 +00:00
Lee Chou
6f0c1bc10e Merge "Revert "Revert "Remove exception from OverlayConfig zygote method""" into rvc-dev 2020-03-05 10:35:05 +00:00
Lee Chou
15db04ec6c Revert "Revert "Remove exception from OverlayConfig zygote method""
This reverts commit 920105c38b.

Reason for revert: The real reason for the robolectric freeze has been found

Bug: 150011638#comment55
Bug: 150763929
Change-Id: Ib59acf362e87fa907902e19bac6e3b16cafa77d4
2020-03-05 09:42:49 +00:00
Zhen Zhang
dc9047c513 Fix Sharesheet nest scrolling issue introduced by using RecyclerView
ResolverDrawerLayout did not recognize RecyclerView as a nested
scrollable child. This is causing scrolling on areas other than
RecyclerView in Sharesheet won't trigger scrolling of RecyclerView.
Modified ResolverDrawerLayout to recognize RecyclerView and trigger
scrolling back if RecyclerView has been scrolled.

Bug: 150772409
Test: Built and flashed to crosshatch, dragging the header will first
scroll sharesheet to the top.

Change-Id: I4a0fee09d02ed2193155c4cbb18550df9071cd2e
2020-03-05 01:17:13 +00:00
Antoan Angelov
9c3ed4de9f Merge "Fix sharesheet height expansion." into rvc-dev 2020-03-04 13:49:47 +00:00
Yogisha Dixit
1399825fe7 Merge "Store ambient display suppression state in memory." into rvc-dev 2020-03-04 12:56:20 +00:00
Antoan Angelov
f6b536594b Merge "Show a spinner when waiting for the work profile to turn on." into rvc-dev 2020-03-03 21:34:02 +00:00
Feng Cao
c9611acb62 Merge "Notify autofill with the IME start/finish input view events" into rvc-dev 2020-03-03 18:36:11 +00:00
arangelov
2dd9f7b64d Show a spinner when waiting for the work profile to turn on.
This covers the usecase when we show the share sheet or
intent resolver on a device with a work profile, and
the work profile is turned off. In that case, when
sharing from the personal profile, we show an empty
state screen with the option to turn on the work profile.
When we tap that button, we now show a spinner, as there
is a delay until the profile is actually enabled.

Fixes: 149821684
Test: manual

Change-Id: Id90b21a61b10ecce8172bddc42fdeec5fb61c5fe
2020-03-03 18:29:33 +00:00
Winson Chiu
f5f588e032 Merge changes I815bb92e,I1777f84c into rvc-dev
* changes:
  Adjust AndroidPackage String interning
  Add package parsing v1 vs v2 benchmark
2020-03-03 18:06:37 +00:00
arangelov
c4dbdbd2e6 Fix sharesheet height expansion.
This CL does the following things:
- Add an isIntentResolver check for cases when we want
logic to only apply to ResolverActivity, but not
ChooserActivity.
- Gracefully handle the sticky content preview loading.
Preload it if it will ever be shown, in order to avoid
sudden changes in the share sheet height.
- Don't recalculate the share sheet height when changing
tabs.
- Recalculate the share sheet height if the number
of recycler view children has changed in the cases
when we last calculated it when it wasn't populated yet

Test: manual
Bug: 149817068
Bug: 148156663
Bug: 149823253
Bug: 149732754

Change-Id: If74fc36bd3b8bfa5aa1d91c042fa99e4d19899c9
2020-03-03 17:37:50 +00:00
atrost
fd87a60be8 Add support for LoggingOnly changes
Throw an exception if someone tries to add an
override for a logging only change. Incorporate the restriction in the
OverrideValidator.

Test: change one change to be logging only, flash device, adb shell
dumpsys platform_compat
Test: atest com.android.server.compat.CompatConfigTest
Test: atest com.android.server.compat.OverrideValidatorImplTest
Bug: 148009004

Change-Id: I379c63f8b5c54500d9066be9363a186efd55d200
2020-03-03 15:20:06 +00:00
Jorim Jaggi
57157ac5d8 Fix WindowInsetsController lifecycle
Provide a recording insets controller before the window gets
created, and replay the commands once a view gets attached. This
allows the client to use the controller in Activity.onCreate.

Test: WindowInsetsControllerTests
Bug: 118118435
Change-Id: I1a825ecc4367c02b27f2d08cd5442325315d4f89
2020-03-03 15:12:15 +01:00
Lee Chou
920105c38b Revert "Remove exception from OverlayConfig zygote method"
Commit ag/9740370 caused problem with robotests b/149806146
The fix ag/10373855 froze targets like run_host_tests
This revert will unfreeze run_host_tests but robotests will break

Bug: 150011638
Test: m RunSettingsRoboTests0
Change-Id: Ibe954e9d0dc1542477ba7156da5799479631cfb0
2020-03-03 17:11:49 +08:00
Feng Cao
7c85eb79a7 Notify autofill with the IME start/finish input view events
* autofill will cache the inline suggestions response until it receives
  a start input view event from IME
* the data flow from IMS point of view is:
  IMS#startViews and IMS#doStartInput (before calling onStartInputView)
  ->
  [async] InlineSuggestionsRequestCallback#onInputMethodStartInputView()
  --- process boundary ---
  ->
  IMMS.InlineSuggestionsRequestCallbackDecorator
     #onInputMethodStartInputView()
  ->
  InlineSuggestionSession.InlineSuggestionsRequestCallbackImpl
     #onInputMethodStartInputView()
* similar data flow for  IMS#finishViews()
* this CL should not block IME's UI thread because it's only issuing a
  new async IPC from IMS start/finish input view call that's running on
  the UI thread.
* there should not be performance impact on IMEs if autofill inline
  integration is not active

Test: manual verification, atest EditorInfoTest
Test: atest android.autofillservice.cts.inline, with two failing cases:
 InlineAugmentedLoginActivityTest#testAugmentedAutoFill_twoDatasetThenFilledSecond
 and InlineAugmentedLoginActivityTest#testAugmentedAutoFill_oneDatasetThenFilled
 due to the test itself being broken, I'll fix the test in a separate patch
Bug: 149522488
Bug: 149442582
Change-Id: I2faa3577b9f95a122f26a6d7fa7822a769a51e34
2020-03-02 21:18:16 -08:00
TreeHugger Robot
78160dc4c0 Merge "Uses SurfacePackage instead of SurfaceControl on inline suggestion" into rvc-dev 2020-03-03 02:56:24 +00:00
TreeHugger Robot
214663924c Merge "Allow mutable overlays to be enabled by default" into rvc-dev 2020-03-03 01:51:23 +00:00
Ryan Mitchell
8c4aab3af6 Allow mutable overlays to be enabled by default
When an overlay is not specified as immutable through OverlayConfig,
enabling the overlay using the OverlayConfig `enable` attribute makes
the overlay enabled by default.

When an overlay is scanned by the OverlayManagerService for the first
time, the default-enabled state will be applied to the overlay. If the
configured default-enabled state changes in a subsequent boot, the
default-enabled state will not be applied to the overlay.

This means OTAs cannot change a mutable overlay from default-enabled
to default-disabled (or vice-versa) and except the configured enabled
state to take effect.

When the device is factory reset, then the configured enabled state
will be applied. If a package is removed from the device in one OTA
and added back to the device in a future OTA, the configured enabled
state will be applied. If an overlay changes its target package or
target overlayable, then the configured enabled state will be applied.
If an immutable overlay becomes mutable, then the configured enabled
state will be applied.

Bug: 149499802
Test: atest OverlayManagerServiceImplRebootTests
Change-Id: I24f86591ac811ef2b836da36ef5574a82628b151
2020-03-02 23:46:07 +00:00
TreeHugger Robot
f5324f74f5 Merge "Revert "Notification statsd logs: Notification panel."" into rvc-dev 2020-03-02 19:39:25 +00:00
TreeHugger Robot
48eec146dc Merge "Fix intent resolver height calculation" into rvc-dev 2020-03-02 19:06:26 +00:00
Yogisha Dixit
65f26b780c Store ambient display suppression state in memory.
We were previously using a secure setting, which means that the
suppression state would be persisted across reboots.

Test: atest SystemUITests, atest FrameworksServicesTests:PowerManagerServiceTest
Change-Id: I3016bdabc67c15b8759a78ce92f4d9262b1380a3
Bug: 147587449
(cherry picked from commit 05f9538c2e)
2020-03-02 14:21:05 +00:00
Will Brockman
3cc20a4ed8 Revert "Notification statsd logs: Notification panel."
This reverts commit 626f043a30.

Reason for revert: Frequent sysui crashes - https://buganizer.corp.google.com/issues/150566246

Bug: 150566246
Bug: 146488473
Change-Id: I124127553d8b69201d990c12da1e49218292b5ff
2020-03-02 14:17:45 +00:00
TYM Tsai
b1f42dd78a Uses SurfacePackage instead of SurfaceControl on inline suggestion
The InlineContentView uses the SurfacePackage instead of the SurfaceControl
for accessibility and UiAutomation supporting.

Bug: 149194105
Test: manual
Change-Id: Ib10f37a58dde7dc09d0ea16d1a121088dab4738e
2020-03-02 20:51:46 +08:00
SongFerngWang
53515a0ea6 CellularBatteryStats: Address API council feedback
Bug: 144925883
Test: Build pass, device boots up
atest TelephonyMetricsTest

Change-Id: Iac5904a3397a42aa5f015cb53bb63318f5c377a4
Merged-In: Iac5904a3397a42aa5f015cb53bb63318f5c377a4
(cherry picked from commit 84dc30fede)
2020-03-02 05:15:08 +00:00
Will Brockman
9eda5f5e32 Merge "Notification statsd logs: Notification panel." into rvc-dev 2020-03-01 17:51:04 +00:00
TreeHugger Robot
0fe12dad61 Merge "Several improvements and bug fixes to the inline autofill flow" into rvc-dev 2020-02-29 01:35:19 +00:00