Commit Graph

12592 Commits

Author SHA1 Message Date
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
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
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
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
David Sehr
0e3e2a73c6 Merge "Allow tuning of heaptargetutilization" 2019-12-09 21:24:47 +00:00
David Sehr
a494449297 Allow tuning of heaptargetutilization
Remove a pair of explicit sets of this value.  This allows ART to tune
this parameter to improve GC responsiveness and memory usage.  Tuning
this parameter is a key area of work for OEM-requested high-memory
device configurations.

Bug: 145823510
Test: boot and run with various configurations of the flag.
Change-Id: I19680ff5fa1ebf9dfd4a3f71533d03510f4da414
Merged-In: I19680ff5fa1ebf9dfd4a3f71533d03510f4da414
(cherry picked from commit b2910d3b6f)
2019-12-09 10:49:47 -08:00
Winson
3f46dbd7a0 Overlay, actor, and target app visibility handling
Hooks AppsFilter to support exposing a target and any overlays
targeting it to the actor specified in its overlayable block.

Sacrifices some install-time performance in favor of less memory
usage and easier to follow code by doing a full search/rebuild
on each change.

Benchmarks TBD

Bug: 143096091

Test: atest OverlayReferenceMapperTests

Change-Id: Ic832818b9aa383f1167ca3e69a11b8459fa9db97
2019-12-09 10:46:59 -08:00
David Sehr
5356d34831 Merge "Allow tuning of heaptargetutilization" 2019-12-09 18:34:18 +00:00
Benedict Wong
5501fcae57 Add message template support for checkStringNotEmpty
This change adds the ability for the Preconditions#checkStringNotEmpty()
to take a message template instead of just an error message, allowing
for template reuse.

Test: FrameworksNetTests passing
Change-Id: I6df1c3bff77b227126c35f066ee9112e959d6b1c
2019-12-09 17:55:42 +00:00
Automerger Merge Worker
d6c8280a7d [DO NOT MERGE] Resolver/Chooser - Window inset fixes am: 95ede7fb53
Change-Id: I77a948f5599ee8c3453b758136ea13c62ad95e69
2019-12-09 13:54:13 +00:00
Matt Pietal
95ede7fb53 [DO NOT MERGE] Resolver/Chooser - Window inset fixes
Resolver supports numerous layouts, with optional ViewGroups. Need to
make sure the window inset is applied to the correct view. If there is
a List present, add a footer so that the list scrolls underneath the
navbar.

Test: atest ResolverActivityTest
Bug: 145670872
Change-Id: I94652c5e0068436878a307701b5785f02060b8d6
2019-12-09 07:43:10 -05:00
Rubin Xu
feeeb6538e Merge "Kill off untrusted password reset" 2019-12-09 10:29:24 +00:00
Rhed Jao
6dad25dee6 Accessibility shortcut improvement (5/n)
- Adds support for magnification and multiple shortcut targets assigned
  to accessibility shortcut key in AccessibilityManagerService.
- New extra field in ACTION_CHOOSE_ACCESSIBILITY_BUTTON intent to
  support accessibility shortcut key.

Bug: 136293963
Test: atest AccessibilityShortcutControllerTest
Test: atest AccessibilityUserStateTest
Test: atest AccessibilityShortcutTest
Change-Id: If0a446dfd269e82ec0d09db92e86f859cdae50d8
2019-12-09 15:20:45 +08:00
Jone Chou
1b5ffac398 Enlarge SYSTEM_LAST_KMSG truncated size from 96KB to 192KB
- This is for userdebug build only
- Target to improve ramdump-less debugging for All of Pixel devices
- Max bootloader logs size is 45KB and will be appended to last kernel
  log end
- Totally enlarge last kernel logs size from (96-45)KB to < (192-45)KB
  => extra inserted size: header(521B), truncated signature(14B), footer(43B)
     SYSTEM_LAST_KMSG + header(521B) + truncated signature(14B) + footer(43B) = 196608B(192KB)
     and actual SYSTEM_LAST_KMSG is 196030 < 192KB

Bug: 145574030
Change-Id: I7b5921e1f01433c7aa27e564ab28181d0a4d0b31
2019-12-09 03:10:44 +00:00
Rubin Xu
d952240979 Kill off untrusted password reset
Time has come that we can finally ditch untrusted password reset i.e.
changing lockscreen password without providing the existing password or
an activiated password reset token. In this change, we are:

1. Preventing any DPC / legacy device admin from invoking
DPM.resetPassword(), the primary route to invoke untrusted password
reset. Depending on their target SDK level, resetPassword() will either
throw SecurityException, or fail silently.
2. Still allowing privilleged app holding RESET_PASSWORD permission to
call this API, but it's limited to setting a new passowrd on an
unsecured device.
3. Removing synthetic password caching mechanism in LockSettingsService,
whose sole purpose was to support untrusted password reset.

Bug: 137939224
Test: atest com.android.server.locksettings
Test: atest com.android.server.devicepolicy.DevicePolicyManagerTest
Change-Id: Ie3e5e277984b6fc2f1d378880363028752bad775
2019-12-08 22:01:01 +00:00
Winson
655a5b9ca3 Revert Revert PackageParser#Package fixes
To separate the changes from the massive commit that reverted the revert,
this commit includes any rebase/merge fixes since the original commit.

Change-Id: I556881a44068d38e6816f445d138f4b4e48d2df0
2019-12-06 18:05:28 -08:00
David Sehr
b2910d3b6f Allow tuning of heaptargetutilization
Remove a pair of explicit sets of this value.  This allows ART to tune
this parameter to improve GC responsiveness and memory usage.  Tuning
this parameter is a key area of work for OEM-requested high-memory
device configurations.

Bug: 145823510
Test: boot and run with various configurations of the flag.
Change-Id: I19680ff5fa1ebf9dfd4a3f71533d03510f4da414
2019-12-06 13:58:57 -08:00
Winson
14ff71712c Revert "Revert "Deprecate PackageParser#Package""
This reverts commit 8e18a0ab89.

Exempt-From-Owner-Approval: Revert to re-add approved change

Change-Id: I5b5195470f365a2347cbf444cc0494d119e42ffc
2019-12-06 12:24:05 -08:00
Jeffrey Huang
77db950964 Merge "Rename writeToProto to be dumpDebug" 2019-12-06 18:53:15 +00:00
TreeHugger Robot
dd07c25872 Merge "Fixing window dump timing out on wallpaper service" 2019-12-05 21:15:42 +00:00
Jeffrey Huang
cb78285b81 Rename writeToProto to be dumpDebug
We want to eventually migrate some of these APIs to be @SystemApi for mainline modules.
The #dumpDebug name is more appropriate than #writeToProto.

Bug: 142279786
Test: Manual
Change-Id: I60793e91cedf6b720d4ecef6a8484f4fed4ff30f
2019-12-05 11:28:11 -08:00
David Su
76210c4275 Merge "AsyncChannel: Migrate Slog to Log to enable Jarjaring" 2019-12-05 18:22:03 +00:00
Anna Trostanetski
5ec4ac7d81 Merge "Add descriptions to compat changes." am: b38db5afe0 am: d54f52b9ea
am: 76ba40cc64

Change-Id: I970da1371374bb8893e833d4c8d7629613214888
2019-12-05 04:39:49 -08:00
Anna Trostanetski
76ba40cc64 Merge "Add descriptions to compat changes." am: b38db5afe0
am: d54f52b9ea

Change-Id: I72ebf645c756df7aab326669f5ac5e5edbbcc640
2019-12-05 04:36:25 -08:00
Anna Trostanetski
b38db5afe0 Merge "Add descriptions to compat changes." 2019-12-05 12:22:27 +00:00
David Su
6cfef54b71 AsyncChannel: Migrate Slog to Log to enable Jarjaring
AsyncChannel & AsyncService both use Slog, which is
@hide, so jarjar'ing them would still lead to @hide API
usages.
Migrate to Log, which is public, so that AsyncChannel &
AsyncService can be jarjar'ed.

Bug: 145409537
Test: compiles
Change-Id: Ic0b9e8d66d575925cb1972e20721dd53c85307e6
2019-12-04 18:00:03 -08:00
David Su
a0bead651f Merge changes from topics "android-os-connectivity-wifiactivityenergyinfo", "requestactivityinfo"
* changes:
  Move WifiActivityEnergyInfo to android.os.connectivity
  BatteryStats: Move WifiActivityEnergyInfo to android.os.connectivity
  Statsd: Move WifiActivityEnergyInfo to android.os.connectivity
  Formalize WifiManager#requestActivityInfo as @SystemApi
  BatteryStats: Formalize WifiManager#requestActivityInfo
  Statsd: Formalize WifiManager#requestActivityInfo
2019-12-05 01:19:27 +00:00
Peter Wang
cead28dcee Merge "[Telephony Mainline] Expose hidden APIs and consts" am: 415143daf5
am: cfffdedc87

Change-Id: I26b52ec69d769591243c65caaec8066f1744d7a7
2019-12-04 15:55:20 -08:00
Peter Wang
415143daf5 Merge "[Telephony Mainline] Expose hidden APIs and consts" 2019-12-04 23:39:50 +00:00
Chen Xu
c2c774a606 Merge "expose APIs for mainline telephony-sdk" 2019-12-04 18:02:28 +00:00
atrost
23886e7b2c Add descriptions to compat changes.
Capture the comment above a definition of a compat change and make it
the description.
Next: make sure existing changes use supported format (only /**
comments, only above the annotations), and use in developer UI.

Bug: 144927670
Test: atest com.android.server.compat.CompatConfigTest
Change-Id: Ib23f341baa171599654c351693e4b0ddf4b2515c
2019-12-04 17:17:16 +00:00
Fabian Kozynski
fc94a3523c Merge "Remove all Privacy chip classes." 2019-12-04 16:34:58 +00:00
TreeHugger Robot
b11f93129c Merge "Persist PiP size to be restored on re-entry" 2019-12-03 21:44:59 +00:00