Commit Graph

13513 Commits

Author SHA1 Message Date
PETER LIANG
f2aae1f829 Merge "Replace the switch item with the text for multiple shortcut menu." into rvc-dev am: c463e56a80
Change-Id: Idb809129577af1d0d75eaacf6e9bc8a3acdf2676
2020-04-29 04:11:37 +00:00
Treehugger Robot
d0ec55625d Merge "Make me an owner of accessibility frameworks" am: 5a0d2aa4ba am: 20bee3e6de
Change-Id: I4a695d7feaefae2640bf7f1a25bc46a144ae3582
2020-04-29 04:10:33 +00:00
PETER LIANG
c463e56a80 Merge "Replace the switch item with the text for multiple shortcut menu." into rvc-dev 2020-04-29 04:08:36 +00:00
Treehugger Robot
5a0d2aa4ba Merge "Make me an owner of accessibility frameworks" 2020-04-29 03:37:54 +00:00
Isaac Chen
c27232bf33 Merge "Enable System User Home for CSI" 2020-04-29 02:19:12 +00:00
Jeffrey Huang
d414cb4a07 Merge "Update process_state_changed logging" into rvc-dev am: 144788b5bb
Change-Id: I391161333f2731e08433bd0acd49c7ebff752559
2020-04-28 23:12:01 +00:00
Jeffrey Huang
144788b5bb Merge "Update process_state_changed logging" into rvc-dev 2020-04-28 22:56:29 +00:00
Qasid Ahmad Sadiq
dbcc760b00 Make me an owner of accessibility frameworks
Test: Relying on treehugger. No functional changes.
Change-Id: Idbe16f9e2443ab897c7a0c5583d6088d16c4f0fd
2020-04-28 14:42:00 -07:00
Jeffrey Huang
419197630e Update process_state_changed logging
Log only the parent state to avoid unnecessary process states from being
sent to statsd. This may not work for all cases, but the edge cases can
be revisited later.

Bug: 135965535
Bug: 135375287
Test: manually tested using chrome
Change-Id: I87b79f5d21f186f227a5a50bbe83b56a9105348c
2020-04-28 13:48:06 -07:00
TreeHugger Robot
cb95c883dd Merge "Fix a bug in InlinePresentationStyleUtils#bundleEquals" into rvc-dev am: bc000662c3
Change-Id: Ief40a2292f73d0e24a52afb98497298a938a31f3
2020-04-28 20:25:58 +00:00
TreeHugger Robot
bc000662c3 Merge "Fix a bug in InlinePresentationStyleUtils#bundleEquals" into rvc-dev 2020-04-28 20:17:02 +00:00
TreeHugger Robot
d933374a1b Merge "Don't pass initial intents to the inactive profile." into rvc-dev am: 04ccfdfae7
Change-Id: Idc3e98bd0ab3ca9f253077153322c03874a751e8
2020-04-28 19:25:22 +00:00
TreeHugger Robot
04ccfdfae7 Merge "Don't pass initial intents to the inactive profile." into rvc-dev 2020-04-28 19:19:17 +00:00
TreeHugger Robot
e515104eae Merge "Move conversation app name into header" into rvc-dev am: 821b7f21b0
Change-Id: I7c7e57735c952fe00fc42f5db3201f9597ce2b28
2020-04-28 19:14:55 +00:00
TreeHugger Robot
821b7f21b0 Merge "Move conversation app name into header" into rvc-dev 2020-04-28 18:51:35 +00:00
Feng Cao
ca8cf2776d Fix a bug in InlinePresentationStyleUtils#bundleEquals
* before the fix, the method would return false if the two bundles both
  contains a nested bundle for the same key, and the nested bundles are
  equal. i.e. the test case
  InlinePresentationStyleUtilsTest#testBundleEquals_nestedBundle_equal
  would fail.

Test: atest InlinePresentationStyleUtilsTest
Bug: 154957669

Change-Id: Ia2cf682619fa245d846972a8683d03333551df78
2020-04-28 11:27:59 -07:00
arangelov
acc8243564 Don't pass initial intents to the inactive profile.
Otherwise the initial intents will be shown in the other
profile as share targets. This would cause a crash when
the user selects the app, as the activity cannot
be resolved.

Fixes: 155088755
Test: manual
Test: atest ChooserActivityTest
Test: atest ResolverActivityTest
Change-Id: I0604c15c35ecddf163460286b84c27daf6ca9a5b
2020-04-28 18:52:54 +01:00
TreeHugger Robot
23011d007b Merge "Only perform autolaunch if list has completely rebuilt" into rvc-dev am: 8862ee3891
Change-Id: Ia0eeaa6393a4cdcfec2bc8a640300c88cdecdd96
2020-04-28 14:03:00 +00:00
TreeHugger Robot
8862ee3891 Merge "Only perform autolaunch if list has completely rebuilt" into rvc-dev 2020-04-28 13:59:33 +00:00
arangelov
1b11cc1a17 Only perform autolaunch if list has completely rebuilt
Previously we would check for autolaunch the first time
onPostListReady is called, but that is too early in the case
when we start the async task for sorting the targets. In
that case onPostListReady is called twice - once before
task is launched, and once after task is finished.

We fix this by passing the rebuildListCompleted parameter to
the onPostListReady callback and use it to check for autolaunch.

Test: atest ChooserActivity
Test: atest ResolverActivity
Test: manual
Fixes: 154728817
Change-Id: Ib1b049af00d791898b908bdb65971c07c558f3ac
2020-04-28 12:59:18 +01:00
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
Steve Elliott
f7ef4efeda Move conversation app name into header
Bug: 154511267
Test: visual, manual, atest
Change-Id: I929569a5e3f39df69258f1ec5ee58057c95d2387
2020-04-27 15:40:18 -04: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
Peter_Liang
c47e9bfa28 Replace the switch item with the text for multiple shortcut menu.
Bug: 155036209
Test: manual test
Change-Id: I09bf88dc36244aeb2a37ab6390cb3e2b46358dfb
2020-04-27 16:18:42 +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