Commit Graph

13596 Commits

Author SHA1 Message Date
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
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
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
TreeHugger Robot
f9a02be500 Merge "Fix crash in IntentForwarderActivity" into rvc-dev 2020-04-21 18:52:54 +00:00
TreeHugger Robot
a75e298179 Merge "Keeing the device in gesture nav while user setup is pending" into rvc-dev am: 9bc5f9efc2
Change-Id: I8a18e54612a6d9bd965e657e1196bb2c15d98a1a
2020-04-21 18:49:39 +00:00
TreeHugger Robot
9bc5f9efc2 Merge "Keeing the device in gesture nav while user setup is pending" into rvc-dev 2020-04-21 18:25:41 +00:00
Miranda Kephart
b041c1a837 Merge "Add screenshots logging" into rvc-dev am: 44cc1e274b
Change-Id: I399d940c094ceab6c9996449505499bff71493a8
2020-04-21 17:08:15 +00:00
kholoud mohamed
149e0fe89e Fix crash in IntentForwarderActivity
The crash was caused by trying to resolve an instant
app which is not allowed on the main thread, fixed it by
resolving on a background thread.

Fixes: 146141583
Test: atest IntentForwarderActivityTest
Test: atest ResolverActivityTest
Test: atest ChooserActivityTest
Change-Id: I250d682cf90870c7360eb66529be8c91fac266b1
2020-04-21 18:06:03 +01:00
Miranda Kephart
44cc1e274b Merge "Add screenshots logging" into rvc-dev 2020-04-21 16:58:54 +00:00
arangelov
5ecac7a945 Hide "Always" and "Just once" buttons for empty state screens
This change does the following things:
- Groups the button bar and divider in a view with the system
background, so that when they get invisible, the background is not
transparent
- Sets the invisibility of the button bar and divider to invisible
so that the height of the intent resolver is preserved
- Removes the bottom padding for the empty state screen for
the intent resolver to reduce the blank space under it caused
by the now blank button bar

Fixes: 154326163
Test: manual
Change-Id: Iaea4da3f2250f51f9d1d627c1965f42014914084
2020-04-20 21:25:30 +01:00
Mark Renouf
19be640d6f Merge "Scroll Capture Framework" into rvc-dev am: 03f9a814a5
Change-Id: Ie9cc6da06f1d900a3750750df9f70fa4a9868d52
2020-04-20 19:23:54 +00:00
Mark Renouf
03f9a814a5 Merge "Scroll Capture Framework" into rvc-dev 2020-04-20 19:20:13 +00:00
TreeHugger Robot
17588e48ee Merge "Use startActivityAsCaller instead of startActivity." into rvc-dev am: 1161f28ddb
Change-Id: Idb65dcfa29e475cacb20d0c77784d74b6936a1d4
2020-04-20 17:43:04 +00:00
TreeHugger Robot
1161f28ddb Merge "Use startActivityAsCaller instead of startActivity." into rvc-dev 2020-04-20 17:36:59 +00:00
TreeHugger Robot
a440ea524a Merge "Fix comparison of UserHandle objects" into rvc-dev am: 6699c412bb
Change-Id: I468cd61e3c30676ffc5bdd330055e8a28b94f014
2020-04-20 16:55:39 +00:00
TreeHugger Robot
6699c412bb Merge "Fix comparison of UserHandle objects" into rvc-dev 2020-04-20 16:41:37 +00:00
arangelov
e7b713474b Use startActivityAsCaller instead of startActivity.
Also make canForward return null for ACTION_CHOOSER.

Fixes: 154225763
Test: manual
Test: atest IntentForwarderActivityTest
Change-Id: If035607a751af857a39f42e45633a35b44e3e83e
2020-04-20 17:04:07 +01:00
arangelov
47906054fc Fix comparison of UserHandle objects
Fixes: 154442613
Test: none
Change-Id: If650e9d6a0034ef4d428852cb08fa456e1f4a247
2020-04-20 16:14:26 +01:00
Mark Renouf
a927929d99 Scroll Capture Framework
This is an implementation of long screenshots supporting
interactive, incremental capture of scrolling content using
a cooperative API between the app process and the system.

Design goals:

 - Provide for tile based incremental screenshots of scrolling content
 - Support existing apps without developer action
 - Provide support for non View-based Apps & UI toolkits

Bug: 148131831
Test: atest \
      FrameworksCoreTests:android.view.ScrollCaptureClientTest \
      FrameworksCoreTests:android.view.ScrollCaptureTargetResolverTest \
      FrameworksCoreTests:com.android.internal.view.ViewGroupScrollCaptureTest \
      FrameworksCoreTests:android.view.ScrollViewCaptureHelperTest \
      WmTests:com.android.server.wm.DisplayContentTest

Merged-In: I6c66a623faba274c35b8fa857d3a72030a763aea
Change-Id: I6c66a623faba274c35b8fa857d3a72030a763aea
2020-04-20 15:07:59 +00:00
Jing Ji
872d122967 Merge "Set a default wtf handler for system_server at initialization" into rvc-dev am: 35c6b8f0ab
Change-Id: Iec5d3f8aed88e1b32f96ea6998854fde32c21179
2020-04-20 06:10:58 +00:00
Jing Ji
35c6b8f0ab Merge "Set a default wtf handler for system_server at initialization" into rvc-dev 2020-04-20 05:57:25 +00:00
Song Hu
ac011c0c99 Merge "Fix sharesheet prototype to support CtsSharesheetDeviceTest" into rvc-dev am: ab1145d2f1
Change-Id: If6380afa3ce6edcc600394b8fa15709aaa087ece
2020-04-18 17:02:57 +00:00
Song Hu
ab1145d2f1 Merge "Fix sharesheet prototype to support CtsSharesheetDeviceTest" into rvc-dev 2020-04-18 16:44:32 +00:00
Hui Yu
40c8596a10 Merge "Move noteAppWidgetTapped call into AppWidgetHostView." into rvc-dev am: 4db77a9749
Change-Id: I8e077d378335a92cf414354069380ff4b3d6ac97
2020-04-18 04:35:52 +00:00
Hui Yu
4db77a9749 Merge "Move noteAppWidgetTapped call into AppWidgetHostView." into rvc-dev 2020-04-18 04:03:52 +00:00
Jing Ji
6674e0d654 Set a default wtf handler for system_server at initialization
In case the ActivityManagerService hasn't started yet.

Bug: 153704326
Bug: 153598920
Test: Manual - induce wtf logs in early-booted services
Change-Id: I2b444cf70d9126963084ab15f9cd17fe5b464529
2020-04-17 12:48:08 -07:00
Sunny Goyal
38412951a9 Keeing the device in gesture nav while user setup is pending
> Sending different insets to the app during user setup
> Keeping the back butotn visible and not handling edge swipe
> Fixing bug where EdgeBackGestureHandler is not updated with correct
  edge scale when user switches

Bug: 150004073
Bug: 148492421
Test: Manual
Change-Id: I112465a634de2c85d613c071b66f8c099c2c78e3
2020-04-17 11:35:41 -07:00
Song Hu
36ba1b1037 Fix sharesheet prototype to support CtsSharesheetDeviceTest
Bug: 153904514
Test: atest CtsSharesheetTestCases:android.sharesheet.cts.CtsSharesheetDeviceTest

Change-Id: I8cff9855586070589401f5f8248556d01814d324
2020-04-17 11:17:40 -07:00
Miranda Kephart
7b2c313da7 Add screenshots logging
Bug: 150710005
Test: manual
Change-Id: I54a37eb0a62234c6c53fc0f3c80e18e9ee269f12
2020-04-17 13:28:23 -04:00
TreeHugger Robot
c414b32ae2 Merge "Reset placeholder count when rebuilding resolver list." into rvc-dev am: 4ae2732361
Change-Id: Ic7588581f1a0139dfc896552437bed21564702fb
2020-04-17 12:42:15 +00:00
TreeHugger Robot
4ae2732361 Merge "Reset placeholder count when rebuilding resolver list." into rvc-dev 2020-04-17 12:39:49 +00:00
PETER LIANG
0b9114738a Merge changes from topic "redesign shortcut chooser" into rvc-dev am: 7682deac2d
Change-Id: Icd79449661df2a0713838f408dbefb07bf5e9998
2020-04-17 12:34:41 +00:00
PETER LIANG
7682deac2d Merge changes from topic "redesign shortcut chooser" into rvc-dev
* changes:
  Redesign for AccessibilityShortcutChooserActivity (3/n).
  Redesign for AccessibilityShortcutChooserActivity (2/n).
  Redesign for AccessibilityShortcutChooserActivity (1/n).
2020-04-17 12:19:58 +00:00
Peter_Liang
fbd4bf7b34 Redesign for AccessibilityShortcutChooserActivity (3/n).
1. Migrate the functions related to permision dialog into AccessibilityTargetHelper file.
2. Remove redundant codes.

Bug: 147655054
Test: manual test
Change-Id: Ie052bd7c4159552a78193464602e3d1d9471554b
2020-04-17 15:34:32 +08:00
Peter_Liang
7d9af05e13 Redesign for AccessibilityShortcutChooserActivity (2/n).
Refactor and replace it with new components and functions.

Bug: 147655054
Test: manual test
Change-Id: I12ef647ef0524d2d2cada63c46341c0fddb828da
2020-04-17 15:34:30 +08:00
Peter_Liang
fbad548bf0 Redesign for AccessibilityShortcutChooserActivity (1/n).
Analyzes the common attributes and functions in AccessibilityShortcutChooserActivity in advance and separate them into respective new component target related to Accessibility service, Accessibility activity or white listing feature.

Bug: 147655054
Test: manual test
Change-Id: I123d30cc4d2ada97eda6010e75cfca70e9fa4503
2020-04-17 15:10:45 +08:00
TreeHugger Robot
b1460eb686 Merge "Add stats puller for aggregated procstats" into rvc-dev am: 5c9429661e
Change-Id: I4b278e26670d93356fd9ef14cb37d4e22953ff90
2020-04-16 20:18:21 +00:00
TreeHugger Robot
16ec3b2c46 Merge "Show other profile tab if 0 apps in current profile and >1 in the other." into rvc-dev am: 2dda126b01
Change-Id: Ib35d6903f21be73ee049a30083eafba9fd7fefef
2020-04-16 20:17:23 +00:00
TreeHugger Robot
5c9429661e Merge "Add stats puller for aggregated procstats" into rvc-dev 2020-04-16 20:07:53 +00:00
TreeHugger Robot
2dda126b01 Merge "Show other profile tab if 0 apps in current profile and >1 in the other." into rvc-dev 2020-04-16 20:03:45 +00:00
arangelov
61c7d2f4b6 Reset placeholder count when rebuilding resolver list.
Fixes: 148589435
Test: manual
Change-Id: I150ba1c14648fc5939a519b0b3583e0e12dd16f4
2020-04-16 20:15:58 +01:00
Richard Gaywood
f11ee97981 Merge "Implement procsstats data agggregation" into rvc-dev am: 89e6a4a4b5
Change-Id: I924fea2825a76df569828330204615c4fcca72a3
2020-04-16 19:06:26 +00:00