Commit Graph

13486 Commits

Author SHA1 Message Date
TreeHugger Robot
421a8d9b8a Merge "Support WRAP_CONTENT in InlineSuggestion#inflate" into rvc-dev am: 5e9aed81d0
Change-Id: I4d9228cfb3eb50fec08a722a9b219206c8ad379e
2020-04-27 23:56:03 +00:00
TreeHugger Robot
5e9aed81d0 Merge "Support WRAP_CONTENT in InlineSuggestion#inflate" into rvc-dev 2020-04-27 23:52:59 +00:00
Feng Cao
bd26abbc5b Support WRAP_CONTENT in InlineSuggestion#inflate
Test: atest android.autofillservice.cts.inline
Bug: 154887895

Change-Id: Ie420bd40e8f0fb7d6e6b1e47ed0f41dc3f85b25e
2020-04-27 15:12:14 -07:00
TreeHugger Robot
ae8cd271d5 Merge "Keep the intent resolver button bar stuck to the bottom." into rvc-dev am: 1ef9f259c4
Change-Id: I8a7874b3e4d0eb97a197b7db7fdb908e6806e7bb
2020-04-27 19:57:50 +00:00
TreeHugger Robot
3e0b168209 Merge "Update one-line layout for conversation notifs" into rvc-dev am: 9153a323fd
Change-Id: I205d7a4f054601d19d0d06430a1ead7f01cdfdee
2020-04-27 19:57:26 +00:00
TreeHugger Robot
1ef9f259c4 Merge "Keep the intent resolver button bar stuck to the bottom." into rvc-dev 2020-04-27 19:53:32 +00:00
TreeHugger Robot
9153a323fd Merge "Update one-line layout for conversation notifs" into rvc-dev 2020-04-27 19:53:23 +00:00
Miranda Kephart
3779daf428 Merge "Keep screenshot process bound" into rvc-dev am: c8f22beefe
Change-Id: I46142f80e3e9ab1ada6259c9716ec7fb9171a186
2020-04-27 18:06:31 +00:00
Miranda Kephart
c8f22beefe Merge "Keep screenshot process bound" into rvc-dev 2020-04-27 18:00:43 +00:00
arangelov
27b997491e Keep the intent resolver button bar stuck to the bottom.
Fixes: 154939990
Test: atest ChooserActivityTest
Test: atest ResolverActivityTest
Test: manual
Change-Id: Ia450701650dfca55488ed7bf1f9bebcae5b72c2c
2020-04-27 18:40:47 +01:00
TreeHugger Robot
6a76b2a29e Merge "Implement direct share targets quota based onto app share score in ChooserTarget ranking protorype." into rvc-dev am: 2133dc6e73
Change-Id: I3a0a2781b7537ff56ebc63dad19530c6e28f5a28
2020-04-27 16:28:15 +00:00
TreeHugger Robot
2133dc6e73 Merge "Implement direct share targets quota based onto app share score in ChooserTarget ranking protorype." into rvc-dev 2020-04-27 16:17:27 +00:00
Steve Elliott
936df15c79 Update one-line layout for conversation notifs
Fixes: 152770837
Test: manual, visual
Change-Id: I8433d5e26be4e6fe0c16acc87b29bac334011cbf
2020-04-27 11:49:13 -04:00
Charles Chen
edfff9e687 Merge changes Ida26b961,I1d416b9c into rvc-dev am: 413ce328e5
Change-Id: I2acbd395c60b36242106f8c0f282182dbe54b7ef
2020-04-27 09:12:33 +00:00
Charles Chen
413ce328e5 Merge changes Ida26b961,I1d416b9c into rvc-dev
* changes:
  Fix error in DecorView's ViewConfiguration
  Fix DecorView error about non-visual context
2020-04-27 08:57:58 +00:00
Charles Chen
441efaec07 Fix error in DecorView's ViewConfiguration
In ViewConfiguration, we use isUiContext to verify if a context
is an visual context. However, DecorContext uses Application
context as a base context and return false as intended.
This patch overrides isUiContext to report context#isUiContext
instead.

fixes: 153664027
Test: atest DecorContextTest#testIsUiContextFromVisualDecorContext
Change-Id: Ida26b9617c74dc6997fc2c00d97d3420a0978fc7
2020-04-27 16:37:52 +08:00
Charles Chen
6661575791 Fix DecorView error about non-visual context
This error showed because DecorContext uses application context
to get WindowManager. This CL changes to use PhoneWindow to obtain
WindowManager instance. Also refactor ctr to obtain context from
PhoneWindow.

Bug: 152806048
Test: manual - enable strict mode and check the error log not shown.
Test: atest DecorContextTest
Test: atest MemoryTests#testActivityRecreation
Change-Id: I1d416b9cdb015c9bc3553571041f3b14bb9da5da
2020-04-27 16:37:46 +08:00
Song Hu
6f42281c7f Implement direct share targets quota based onto app share score in
ChooserTarget ranking protorype.

Bug: 151112858
Test: atest CtsSharesheetTestCases:android.sharesheet.cts.CtsSharesheetDeviceTest
Change-Id: I740d102d27b29fdf2af591593a619f3b60ef0f89
2020-04-26 22:07:03 -07:00
Jing Ji
47ae64c03f Merge "Fix test failure in testProcessStateByPulling" into rvc-dev am: b344e0ac95
Change-Id: I0e850a76c5c56d3d0eb7790f7726330ce7a9f694
2020-04-24 23:13:17 +00:00
Jing Ji
b344e0ac95 Merge "Fix test failure in testProcessStateByPulling" into rvc-dev 2020-04-24 23:05:08 +00:00
Miranda Kephart
a4c79758fb Keep screenshot process bound
Currently, the screenshot process only remains bound to SysUI
(by ScreenshotHelper) until the screenshot finishes saving. This
makes it vulnerable to getting cached and frozen. Since the process
now includes UI with touch focus for longer than that, this can
cause ANRs in the screenshot process, if it is frozen while it's
supposed to be accepting touch input.

Retaining the binding for the entire lifecycle of the screenshot
UI fixes this problem.

Test: manual -- used the steps in b/153577093 to verify the
freezing behavior and verified that it no longer occurred after
the change
Bug: 153418099
Fix: 153418099

Change-Id: Idca24a69274af3d633e1243b46b602613cb04d50
2020-04-24 15:43:02 -04:00
Antoan Angelov
10f6ce2bbc Merge "Improvements on layout with default intent resolver" into rvc-dev am: ed64206471
Change-Id: I87af6f89df9b5426bdefb82267d95b013e38fcc1
2020-04-24 17:59:32 +00:00
Antoan Angelov
ed64206471 Merge "Improvements on layout with default intent resolver" into rvc-dev 2020-04-24 17:52:59 +00:00
TreeHugger Robot
b960d6c6f1 Merge "Check whether should auto launch after showing empty state screen" into rvc-dev am: 8a5bba3e6a
Change-Id: I634d793ced65dbb14dd47f2a185580c30aee7c36
2020-04-24 17:46:53 +00:00
TreeHugger Robot
8a5bba3e6a Merge "Check whether should auto launch after showing empty state screen" into rvc-dev 2020-04-24 17:44:37 +00:00
arangelov
4e2951b2f4 Improvements on layout with default intent resolver
- nullcheck buttonBarDivider
- only apply padding to non-default layout resolver
- create header for user instead of just once, because
it gets updated after it's first created

Fixes: 154832840
Fixes: 154330193
Test: manual
Change-Id: Ia9f2a1112a406e898dcf66954887ababae48f001
2020-04-24 17:17:28 +01:00
arangelov
4d3be0bf0b Check whether should auto launch after showing empty state screen
Fixes: 154812743
Test: manual
Test: atest ChooserActivityTest
Test: atest ResolverActivityTest
Change-Id: I9f861bb6f7e4b7ff087aa74c554cc4e52f8ce614
2020-04-24 17:17:25 +01:00
Jing Ji
468e6c3909 Fix test failure in testProcessStateByPulling
Added a new flag "--statsd" to dumpsys procstats, it'll dump
the identical protobuf data as the one being sent to statsd;
these data is aggregated/reduced.  The tradtional "--proto"
is still supported in case the full data is needed.

Align the ProcStats's proto message definition with the statsd.

Fixed various other issues with ProcStats's dumping.

Bug: 148542701
Test: atest ProcStatsValidationTests
Change-Id: I5a22603bfbc97bfac93179289df839710364677d
2020-04-24 05:01:22 -07:00
TYM Tsai
b315a18f85 Merge "Filter the content of the Bundles used as extras and styling APIs" into rvc-dev am: 4ddfdaf641
Change-Id: I3bb6ca81b2f5198836d527e2038eaee45ac8eb51
2020-04-24 08:57:28 +00:00
TYM Tsai
4ddfdaf641 Merge "Filter the content of the Bundles used as extras and styling APIs" into rvc-dev 2020-04-24 08:42:56 +00:00
Jason Hsu
7be170311e Merge changes from topic "rhedjao_a11y_button_rollback" into rvc-dev am: ea2d4bf1fd
Change-Id: I962254161d27de3544d4c08f2a97e31f38f4d8f2
2020-04-24 03:10:20 +00:00
Peter_Liang
08f96b0c6d Rollback chooser menu to version Q behavior for accessibility button (1/n). am: b8bf55c8c0
Change-Id: I552d04e631d965e57fcb0a43d6cc99fd4412ea05
2020-04-24 03:10:10 +00:00
Jason Hsu
ea2d4bf1fd Merge changes from topic "rhedjao_a11y_button_rollback" into rvc-dev
* changes:
  Rollback chooser menu to version Q behavior for accessibility button (2/n).
  Rollback chooser menu to version Q behavior for accessibility button (1/n).
2020-04-24 03:07:39 +00:00
Peter_Liang
0589ab0ae3 Rollback chooser menu to version Q behavior for accessibility button (2/n).
Allow separate Activities to handle the multiple-target case for the hardware and software shortcuts. Migrate from an extra to an explicit class so the Intent dispatch will launch the correct Activity for the particular shortcut.

Bug: 151294664
Test: manual test
Change-Id: I54bb1d3ab91e2757c465e8763786d0234f6d4ea8
2020-04-23 16:25:17 +00:00
Peter_Liang
b8bf55c8c0 Rollback chooser menu to version Q behavior for accessibility button (1/n).
1. Replace ACCESSIBILITY_BUTTON_TARGET_COMPONENT key with
ACCESSIBILITY_BUTTON_TARGETS key.
2. Rollback to version Q widgets.

Bug: 151294664
Test: manual test
Change-Id: Ibaa3b058418476e58291bfb95a1935dbf5c70e25
2020-04-23 18:44:37 +08:00
TreeHugger Robot
0cf28b690f Merge "Add shadow under tabs when user has scrolled up in sharesheet" into rvc-dev am: 7ae10c0737
Change-Id: Iaf16e00b8fded123ff910ff155554f52afd218bf
2020-04-22 19:54:48 +00:00
TreeHugger Robot
7ae10c0737 Merge "Add shadow under tabs when user has scrolled up in sharesheet" into rvc-dev 2020-04-22 19:52:49 +00:00
arangelov
de5ebdcacb Add shadow under tabs when user has scrolled up in sharesheet
Fixes: 154522493
Test: manual
Change-Id: I4353dea41982e7497c341c19e7b177bf176b30af
2020-04-22 18:41:03 +00:00
arangelov
b3e5d0677d Synchronize direct share expansion between work and personal tabs am: 2b15d71b58
Change-Id: I86ee62026cbb51aa67c334591e4103c83b782956
2020-04-22 18:16:43 +00:00
arangelov
2b15d71b58 Synchronize direct share expansion between work and personal tabs
For example, if share sheet is fully expanded in personal profile,
when we go to the work tab, the direct share targets should
also be expanded there.

Fixes: 154523836
Test: manual
Test: atest ChooserActivityTest
Change-Id: I9346d7485f7498fc038c86bf5f8550c8ea6d0b48
2020-04-22 18:09:00 +00:00
Antoan Angelov
80295814cb Merge "Hide "Always" and "Just once" buttons for empty state screens" into rvc-dev am: 3a507cbf8c
Change-Id: Id6523fe83010dca0b1fd7d0b92350fe60faa81e1
2020-04-22 13:24:01 +00:00
Antoan Angelov
bf47ff06ac Merge "Restore share sheet height when toggling dark mode" into rvc-dev am: 2f5e2df152
Change-Id: Ic5c604fa42ea96ad3f6a72ce9246573c9bb86b4b
2020-04-22 13:23:27 +00:00
Antoan Angelov
3a507cbf8c Merge "Hide "Always" and "Just once" buttons for empty state screens" into rvc-dev 2020-04-22 13:10:20 +00:00
Antoan Angelov
2f5e2df152 Merge "Restore share sheet height when toggling dark mode" into rvc-dev 2020-04-22 13:08:13 +00:00
arangelov
9d8941457d Restore share sheet height when toggling dark mode
This CL does the following changes:
- Save and restore the resolver drawer layout height.
This is necessary because when we toggle darkmode,
we don't go through handleLayoutChange, thus we don't
recalculate the height the standard way.
- Disables saving state for the viewpager.
This is necessary, because the content is
incorrectly restored afterwards. It's better to
reload it instead.
- Saves and restores the last selected tab. This is
necessary because with the viewpager state saving
disabled, it defaults to the first tab.

I considered updating the configChanges attribute in
the manifest to include dark mode toggling, but it
gave unsatisfactory result - the share sheet only
partially became dark.

Test: manual
Test: atest ChooserActivityTest
Test: atest ResolverActivityTest
Fixes: 154526324
Change-Id: I99e159ea7ca413f8acbc0429a43ce5aba32a1b28
2020-04-22 13:47:00 +01:00
TYM Tsai
850c8129e6 Filter the content of the Bundles used as extras and styling APIs
Adds filter to prevent passing binder objects in the extras and styling
APIs for inline suggestions. Avoids these to be used to send over remote
objects for Autofill provider and IME to communicate through private APIs
bypassing the OS.

Bug: 152316540
Test: atest CtsAutoFillServiceTestCases
Test: atest InlineSuggestionsRequestTest
Change-Id: I00940a845ed0e2546cbe09fa36e2439869c2f783
2020-04-22 14:41:07 +08:00
Dmitri Plotnikov
ac51802720 Merge "Removing BatteryStatsImpl lock that causes a deadlock" into rvc-dev am: afe0f89d59
Change-Id: Ic04a4abbbc9494ab8e380020e67fc0ac9a681be2
2020-04-21 23:51:16 +00:00
Dmitri Plotnikov
afe0f89d59 Merge "Removing BatteryStatsImpl lock that causes a deadlock" into rvc-dev 2020-04-21 23:36:39 +00:00
Dmitri Plotnikov
55edd0c81c Removing BatteryStatsImpl lock that causes a deadlock
Please see the original change I0d6b4a7b12b234939cb6eb3a32658b28f61dff4f,
where the additional locks were first introduced, but the original lock
was not consistently removed.

Bug: 153826721
Bug: 153813215
Test: Disable and reenable WiFi.

Change-Id: I0e68889e9dfe22495d64b16a495a83434b816304
2020-04-21 14:08:17 -07:00
TreeHugger Robot
25d9d08a8a Merge "Fix crash in IntentForwarderActivity" into rvc-dev am: f9a02be500
Change-Id: Ia0f9de5e647cc678a3cdf847911c8062546150dd
2020-04-21 19:06:30 +00:00