Commit Graph

13772 Commits

Author SHA1 Message Date
TreeHugger Robot
93b0f2a943 Merge "Implement direct share targets quota based onto app share score in ChooserTarget ranking protorype." into rvc-dev am: 2133dc6e73 am: 6a76b2a29e am: f560015f24 am: ddb262cc33
Change-Id: I9ca097d1644b9de1d39281569e306ee189bfe0e3
2020-04-27 17:21:46 +00: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
Charles Chen
cc6013812e Merge changes Ida26b961,I1d416b9c into rvc-dev am: 413ce328e5 am: f8bc6fe4fa am: 2ca88b4ce2 am: b88c351a7a
Change-Id: I9a6f82f7274dba074dcf699009bcfff167e1fe76
2020-04-27 10:08:12 +00:00
Charles Chen
2ca88b4ce2 Merge changes Ida26b961,I1d416b9c into rvc-dev am: 413ce328e5 am: f8bc6fe4fa
Change-Id: I6f251b0656c782141f17b2721163d72edd748596
2020-04-27 09:31:18 +00: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
Nick Chalko
c2b6938c2e Merge "Use HdmiProperties class for ro.hdmi.*" 2020-04-26 17:18:44 +00:00
Jing Ji
f57d848081 Merge "Fix test failure in testProcessStateByPulling" into rvc-dev am: b344e0ac95 am: 9ef42068a4 am: 47061a4cd7 am: 36d755b79f
Change-Id: I2ebb573d22bf538b5579a8bcc3710aa4bea3a143
2020-04-24 23:55:04 +00:00
Jing Ji
47061a4cd7 Merge "Fix test failure in testProcessStateByPulling" into rvc-dev am: b344e0ac95 am: 9ef42068a4
Change-Id: I31d85c49c19c1636949569e4a885830e25c41a04
2020-04-24 23:14:36 +00: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
Antoan Angelov
9d57fbb1b1 Merge "Improvements on layout with default intent resolver" into rvc-dev am: ed64206471 am: 10f6ce2bbc am: a32fff978f am: 947e3ddf3c
Change-Id: I6a69d1ebad87dea638dfd1c91f0b16ec9b87c7f1
2020-04-24 18:16:48 +00:00
TreeHugger Robot
ae0293c42c Merge "Check whether should auto launch after showing empty state screen" into rvc-dev am: 8a5bba3e6a am: 1222f8e745 am: 3f9bebdcd9 am: 1feca19e03
Change-Id: I2fe41bbdd75475c72c1ee76df283536a2a85afd3
2020-04-24 18:15:42 +00: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
TreeHugger Robot
3f9bebdcd9 Merge "Check whether should auto launch after showing empty state screen" into rvc-dev am: 8a5bba3e6a am: 1222f8e745
Change-Id: I8846ca6d533a5271eeb11fef53735357b32666bc
2020-04-24 17:53:01 +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
41447be309 Merge "Filter the content of the Bundles used as extras and styling APIs" into rvc-dev am: 4ddfdaf641 am: 5c913aeacc am: 6cce28ebbc am: 009fb7ec44
Change-Id: I4d317f36033a59baf9001f7017ffd3beffc20c2b
2020-04-24 09:49:21 +00:00
TYM Tsai
6cce28ebbc Merge "Filter the content of the Bundles used as extras and styling APIs" into rvc-dev am: 4ddfdaf641 am: 5c913aeacc
Change-Id: Ib19b408a8aab0b7daf65082776ea510cc476dc4a
2020-04-24 09:08:09 +00: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
005f2acff1 Merge changes from topic "rhedjao_a11y_button_rollback" into rvc-dev am: ea2d4bf1fd am: a574c632c5 am: e56a98a820 am: bd5a346909
Change-Id: I64079947e3cf089b6555a9d24aafde794ef380f0
2020-04-24 03:31:45 +00:00
Peter_Liang
c82aeb9953 Rollback chooser menu to version Q behavior for accessibility button (1/n). am: b8bf55c8c0 am: e14bebf669 am: a396085e46 am: 6d90974d37
Change-Id: I818f24d7f4bf6fc9402f0a53edcb9c2fc4e0a1d1
2020-04-24 03:31:30 +00:00
Jason Hsu
e56a98a820 Merge changes from topic "rhedjao_a11y_button_rollback" into rvc-dev am: ea2d4bf1fd am: a574c632c5
Change-Id: I82a8c1d436829e99d1e07209445c187a8e055783
2020-04-24 03:15:45 +00:00
Peter_Liang
a396085e46 Rollback chooser menu to version Q behavior for accessibility button (1/n). am: b8bf55c8c0 am: e14bebf669
Change-Id: Ie59a63998b064a1961d26576791f23b5ca27fe95
2020-04-24 03:15:41 +00:00
Peter_Liang
e14bebf669 Rollback chooser menu to version Q behavior for accessibility button (1/n). am: b8bf55c8c0
Change-Id: I1cd26352784fe16108dd5c9d39eacea0ef53ce49
2020-04-24 03:10:49 +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
Tarundeep Singh
1ef75267f6 Use HdmiProperties class for ro.hdmi.*
Bug: 141581191
Test: m services.core
Change-Id: Ieb32135d30b60ad04d5f3e673391e469c83b7f84
2020-04-23 07:49:47 -07: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
438d96bb49 Merge "Add shadow under tabs when user has scrolled up in sharesheet" into rvc-dev am: 7ae10c0737 am: fcccc485fa am: b4b9b973c2 am: 79a3cb89f0
Change-Id: I2c4a6db32c1e8af57f427720453d54077ddcd0d1
2020-04-22 20:14:06 +00:00
TreeHugger Robot
b4b9b973c2 Merge "Add shadow under tabs when user has scrolled up in sharesheet" into rvc-dev am: 7ae10c0737 am: fcccc485fa
Change-Id: Idf1e01f3c8e01add84a6082d3b13c8f056dae8ad
2020-04-22 19:59:03 +00: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
0ae2c63767 Synchronize direct share expansion between work and personal tabs am: 2b15d71b58 am: 92e8ae9350 am: 9cc99135fb am: 387eef10d6
Change-Id: I1b06b1356d353db1b39d780264623da98703f737
2020-04-22 19:12:43 +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
9cc99135fb Synchronize direct share expansion between work and personal tabs am: 2b15d71b58 am: 92e8ae9350
Change-Id: I6fcad7c7bc8bb6d8a91121cb0d7640d07cdcfc99
2020-04-22 18:36:02 +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
Philip P. Moltmann
fbc913c2ac Merge "Set attributionTag for noteOp(WRITE_SETTINGS) calls" 2020-04-22 14:57:49 +00:00