Commit Graph

12472 Commits

Author SHA1 Message Date
Alison Cichowlas
a0540b61eb Merge "Sharesheet - App stacking." 2019-12-17 17:50:01 +00:00
Alison Cichowlas
19ee292575 Sharesheet - App stacking.
When an app offers more than one activity to handle Send intents,
"stack" these into a single target in the All Apps list.

Tapping this target gives a disambiguation dialog to allow the
user to choose the specific action they want.

Long-pressing this app still brings up the app pinning dialog, but
app pinning allows you to pin any of the actions.

Test: atest ChooserActivityTest
Test: manual - press/longpress targets in A-Z list
Change-Id: Ida56344c3451da80d7cbe61bac8ca2117497e59a
2019-12-17 11:09:21 -05:00
Luke Huang
1414c61d29 Add new configuration loading path for apex module
Add some additional loading paths which is used for libs permission
xml providing from apex module.

Bug: 145474221
Bug: 139397529
Test: build
Test: manual test with Cronet
Change-Id: I02541eb2d4808d69ab8cb2d6a48cf8aaa39c86dc
2019-12-17 19:37:54 +08:00
Winson Chung
5de9140f92 Merge "Remove a few hard coded references to SystemUI in fw/base/services" 2019-12-17 05:41:48 +00:00
Songchun Fan
13068a57ce Enable basic incremental installation
1. Skip extractNativeLibs
2. Skip native library configurations
2. Skip SELinux restorecon

Test: manual
Change-Id: I71c86325e08ceea0c05426263fd5b09413cec6be
2019-12-16 21:53:04 +00:00
Xiangyu/Malcolm Chen
30e1d6bd76 Merge "Mainline: remove usage of hidden DEFAULT_PHONE_INDEX" 2019-12-16 19:36:24 +00:00
Automerger Merge Worker
1fb2a8e90c Merge "Move RCS UCE out of Telephony Mainline" am: 07ba9c6fff am: 5a05ae1270 am: e3ba3689d9
Change-Id: Ied2a947b67ab365b73f454de1423caba23e89f49
2019-12-16 18:33:34 +00:00
Automerger Merge Worker
e3ba3689d9 Merge "Move RCS UCE out of Telephony Mainline" am: 07ba9c6fff am: 5a05ae1270
Change-Id: I57e27f7314692bbaa882216405deca80ded92ad1
2019-12-16 18:18:36 +00:00
Tiger Huang
3a70dd663e Merge "Window Manager Flag Migration (7/n)" 2019-12-16 14:52:28 +00:00
Tiger Huang
4a7835ffb6 Window Manager Flag Migration (7/n)
Introduce new APIs in Window/WindowManager.LayoutParams for developers
to decide which types of insets at which side a window should avoid:

    setFitWindowInsetsTypes(@InsetsType int types)
    setFitWindowInsetsSides(@InsetsSide int sides)
    setFitIgnoreVisibility(boolean ignore)

The existing logic in DisplayPolicy.layoutWindowLw uses combinations of
window types, window flags, and system UI flags to decide what frames a
window should have, which is very complex, difficult to maintain, and
should be replaced with the new APIs.

Bug: 118118435
Test: atest InsetsSourceProviderTest InsetsStateControllerTest
            InsetsPolicyTest WindowStateTests CommandQueueTest
            RegisterStatusBarResultTest InsetsFlagsTest
            LightBarControllerTest RegisterStatusBarResultTest
            ViewRootImplTest DisplayPolicyLayoutTests
            DisplayPolicyInsetsTests DisplayPolicyTests
            TaskSnapshotSurfaceTest
Change-Id: I06ddc9d0d2887ba4ded7bb8adbf9c9c0da4bf7b4
2019-12-16 17:08:21 +08:00
TreeHugger Robot
70b6079730 Merge "Add a whitelist to control packages eligible for rollback (1/n)" 2019-12-16 01:33:33 +00:00
Antoan Angelov
9dba368079 Merge "Call rebuildList() from sharesheet's handlePackagesChanged()." 2019-12-14 17:49:35 +00:00
TreeHugger Robot
39d4fd7077 Merge "Fix "atest ResolverActivityTest" UPDATE_APP_OPS_STATS failure." 2019-12-14 16:06:03 +00:00
Malcolm Chen
cf5a2d0ff1 Mainline: remove usage of hidden DEFAULT_PHONE_INDEX
Bug: 140908357
Test: build
Change-Id: Iccee59265dee12da46e3cb09e84e9fcf0f30ead4
2019-12-13 17:25:01 -08:00
Brad Ebinger
000bec9fbe Move RCS UCE out of Telephony Mainline
Telephony Mainline does not interact with UCE,
therefore it should not be included as mainline.

Test: build taimen; build coral; manual test uce
Change-Id: I743228939e648689ff9e73d9af2ffb7b90feb3b2
2019-12-13 22:17:30 +00:00
Winson Chung
f2b41770d4 Remove a few hard coded references to SystemUI in fw/base/services
Bug: 143775123
Test: atest ScreenshotHelperTest
Test: atest AlarmManagerTest
Change-Id: I2fefe2968e23bc2d06aa52266c2eeeb90f4733ee
2019-12-13 13:59:31 -08:00
Paul McLean
c613c7760f Fix "atest ResolverActivityTest" UPDATE_APP_OPS_STATS failure.
Bug: 146215372
Test: run atest ResolverActivityTest. Scan results.
Change-Id: I81311c4963b0946d34f6c610f73b603e7b821d1b
2019-12-13 11:39:10 -07:00
arangelov
42ab116a0f Call rebuildList() from sharesheet's handlePackagesChanged().
Before, rebuildList() was not called for ChooserActivity.
Now we call it via ChooserActivity.onHandlePackagesChanged() which
calls ResolverActivity.onHandlePackagesChanged().

Fixes: 145998549
Test: manually reproduced the steps in the bug
Test: atest com.android.internal.app.ResolverActivityTest
Test: atest com.android.internal.app.ChooserActivityTest
Change-Id: I66ac1bf694a3241952e0e160e688cd4d9b1b477e
2019-12-13 18:19:32 +00:00
Antoan Angelov
ab83704911 Merge "Move content preview outside of the ViewPager (work tab part 2)" 2019-12-13 18:07:01 +00:00
arangelov
a3912cf2f0 Move content preview outside of the ViewPager (work tab part 2)
This is needed so that we show the content preview independently
from the tabs.

Test: manually performed text and picture sharing on a 1-user device
Test: manually performed text and picture sharing on a device with
work profile on both profiles
Test: atest com.android.internal.app.ResolverActivityTest
Test: atest com.android.internal.app.ChooserActivityTest
Test: atest com.android.internal.app.ResolverListControllerTest
Bug: 142537267
Bug: 142538125

Change-Id: Ib7d8b704007643f46765fbf8abfe97bb814604cd
2019-12-13 14:34:45 +00:00
TreeHugger Robot
6b861a1b06 Merge "Set mAfterCompute to null on destroy to prevent leak." 2019-12-13 04:57:47 +00:00
TreeHugger Robot
3de47e4a86 Merge "BatteryStatsManager: Move constants from @hide BatteryStats" 2019-12-13 04:14:53 +00:00
Roshan Pius
9e1e0fc381 BatteryStatsManager: Move constants from @hide BatteryStats
Exposed the @hide constants from BatteryStats used in
BatteryStatsManager as @SystemApi.

Bug: 146009681
Test: Compiles
Change-Id: If1c798181b4c160453c7775bd6bb779b9e81a6ee
2019-12-12 14:47:12 -08:00
Nicholas Ambur
e0b8b8cd03 Merge "add SoundTrigger HAL 2.3 per model parameter apis" 2019-12-12 21:37:01 +00:00
Peter Wang
7319176298 Merge "[Telephony Mainline] Expose MAX_NETWORK_TYPE constant" 2019-12-12 21:03:13 +00:00
George Hodulik
a0d177f827 Set mAfterCompute to null on destroy to prevent leak.
Bug: 144050113
Test: Set strictmode and reproed bug, then tried again with local build and there was no leak.
Change-Id: I328757dcac4ad9773cf1f2aa5517bb3040fe0986
2019-12-12 15:58:09 -05:00
Automerger Merge Worker
d3a8facea2 [DO NOT MERGE] Resolver/Chooser - Fix 'no apps available' inset am: 7b63d6ec1b
Change-Id: I64b89b27e67c3c9cd5f35fe690fe66d5eb19e439
2019-12-12 17:56:48 +00:00
Matt Pietal
7b63d6ec1b [DO NOT MERGE] Resolver/Chooser - Fix 'no apps available' inset
When zero apps match a filter, the empty view is set to visible and
shown. There is harm in making sure the inset always get applied to
the empty view so that when resolver determines it needs to be
visible, it is set to be shown.

Test: atest ResolverActivityTest, ChooserActivityTest
Bug: 146133961
Change-Id: I7412df84f8f482219635ccd73dff8e4a21355a18
2019-12-12 10:44:27 -05:00
Automerger Merge Worker
b988967879 Merge "Pipe disabled compat changes to runtime through zygote." am: f33c3a8c9d am: c06f69d2b4
Change-Id: I189518f7abee2013a57c8b76c69e02145ef4238a
2019-12-12 14:22:35 +00:00
Anna Trostanetski
0f15f727f8 Merge "Pipe disabled compat changes to runtime through zygote." 2019-12-12 11:35:51 +00:00
TreeHugger Robot
b43fe24ad6 Merge "Removing remnants of menu key" 2019-12-12 05:50:46 +00:00
Nicholas Ambur
a0be6be387 add SoundTrigger HAL 2.3 per model parameter apis
add support for model parameter control APIs with THRESHOLD_FACTOR
as the first supported parameter

Bug: 141929369
Test: Tested manually with test app and confirmed with GTS test
gts-tradefed run gts-dev -m GtsAssistIntentTestCases
Change-Id: I06874fcf2ae2ef8796e7c52c4475252e8a026e2c
2019-12-11 19:16:48 -08:00
Ram Muthiah
637138dd94 Revert "Overlay, actor, and target app visibility handling"
This reverts commit 3f46dbd7a0.

Bug: 146018363
Test: Treehugger
2019-12-11 17:37:37 -08:00
Peter Wang
15e3ae071a [Telephony Mainline] Expose MAX_NETWORK_TYPE constant
Test: Build
Bug: 140908357
Change-Id: I40cbcdfb8e77b3e01968d008f4359790c4264539
2019-12-11 14:10:35 -08:00
atrost
e44e134776 Pipe disabled compat changes to runtime through zygote.
Test: Java in process API still work correctly - tested locally with test app + adb overrides.
Test: atest com.android.internal.os
Test: atest com.android.server.am
Bug: 145743810
Change-Id: I6645a7ec767400cd579207f0eed1e6e7136c8a6f
Merged-In: I6645a7ec767400cd579207f0eed1e6e7136c8a6f
2019-12-11 18:44:20 +00:00
atrost
5ae996f892 Pipe disabled compat changes to runtime through zygote.
Test: Java in process API still work correctly - tested locally with test app + adb overrides.
Test: atest com.android.internal.os
Test: atest com.android.server.am
Bug: 145743810
Change-Id: I6645a7ec767400cd579207f0eed1e6e7136c8a6f
2019-12-11 18:41:35 +00:00
arangelov
38a6fce59b Add infrastructure for sharesheet work tab (part 1)
This CL consists of the following changes:
- Create a ViewPager to show work and personal pages
- Create a custom WrapHeightViewPager to accommodate
the behaviour of the existing intent resolver
- Create PagerAdapters to use in the ViewPager for
both intent resolver and chooser
- Modify ResolverListController to work with userIds

Test: manually performed text and picture sharing on a 1-user device
Test: manually performed text and picture sharing on a device with
work profile on both profiles
Test: manually compared UX between a device with my changes and a
previous version of the share sheet
Test: atest com.android.internal.app.ResolverActivityTest
Test: atest com.android.internal.app.ChooserActivityTest
Test: atest com.android.internal.app.ResolverListControllerTest
Bug: 142537267
Bug: 142538125
Change-Id: I4487b86e2a7566a3e14b36d3e0eb13a30d00349c
2019-12-11 12:59:37 +00:00
JW Wang
f0a70b1891 Add a whitelist to control packages eligible for rollback (1/n)
The list will be used by RollbackManager to determine whether to enable
for given packages.

Bug: 144680850
Test: N/A. We will add tests when the feature is completed in RollbackManager.
Change-Id: I2d07449dbc652375f3d83e1649e32e546c12c262
2019-12-11 17:20:40 +08:00
Rhed Jao
d85e2b467c Merge "Accessibility shortcut improvement (5/n)" 2019-12-11 02:17:29 +00:00
Alexander Dorokhine
2b3dff4a40 Merge changes I6aaa0b56,I5bb9b8b4
* changes:
  Add a basic unit test and TEST_MAPPING for AndroidFuture.
  Fix completeExceptionally() wrapping in AndroidFuture.
2019-12-10 22:49:36 +00:00
Alexander Dorokhine
cbf4fb03b1 Add a basic unit test and TEST_MAPPING for AndroidFuture.
Test: presubmit
Bug: 145838772
Change-Id: I6aaa0b56ccfdfbcfd089a645d277ac24b55e2fe3
2019-12-10 13:36:23 -08:00
Alexander Dorokhine
7c2fdc44d2 Fix completeExceptionally() wrapping in AndroidFuture.
writeToParcel() called get(), which obtained the exception wrapped in ExecutionException.
ExecutionException is not handled by Parcel's exception parcelling mechanism, causing it
to throw out of completeExceptionally without sending any data, leading to hangs.

Bug: 145838772
Test: presubmit
Change-Id: I5bb9b8b441264195039c9a2abe6a617af4ec8316
2019-12-10 13:27:54 -08:00
Paul Mclean
ee13435bb2 Merge "Disable "use always" button in the UsbResoveActivity for USB capture device and non-record-permission apps." 2019-12-10 18:30:27 +00:00
Paul McLean
3a30e55be2 Disable "use always" button in the UsbResoveActivity for USB capture
device and non-record-permission apps.

Bug: 145857629
Test: install UsbAccess and UsbPersistentPermissionsTestApp,
connect USB audio capture device. Select the app to resolve to
notice that the "use always" checkbox is disabled.
Tested also after granting RECORD PERMISSION, "use always" is enabled.
Tested with non-audio USB device, "use always" is enabled.

Change-Id: I04eabaab3e36a5904e4447a0a7e0d40e169d8bee
2019-12-10 10:04:19 -07:00
Benedict Wong
259e5fee70 Merge "Add message template support for checkStringNotEmpty" am: 0d0bfc92e8 am: 1c28a1aa35
am: 270dc6ab35

Change-Id: I210058d65ed329265bb5b2bb5371f0b8098eb4b3
2019-12-09 16:25:54 -08:00
Benedict Wong
270dc6ab35 Merge "Add message template support for checkStringNotEmpty" am: 0d0bfc92e8
am: 1c28a1aa35

Change-Id: Ie62535304ba68db625aa075c28273b5aff84b228
2019-12-09 16:19:58 -08:00
Benedict Wong
0d0bfc92e8 Merge "Add message template support for checkStringNotEmpty" 2019-12-09 23:59:30 +00:00
Winson Chiu
26fea7259f Merge "Overlay, actor, and target app visibility handling" 2019-12-09 23:50:31 +00:00
Winson Chiu
f0ff68f625 Merge changes from topic "androidpackage"
* changes:
  Critical fixes for AndroidPackage migration
  Revert Revert PackageParser#Package fixes
  Revert "Revert "Deprecate PackageParser#Package""
2019-12-09 21:46:13 +00:00
David Sehr
f74eb32c12 Merge "Allow tuning of heaptargetutilization" am: 0e3e2a73c6
am: e673072feb

Change-Id: Ia7114c1d9fbee42ce27372947702c580bfd3159c
2019-12-09 13:40:46 -08:00