Commit Graph

27093 Commits

Author SHA1 Message Date
Santiago Seifert
dda7e6a9c7 Merge "Make MediaParser.SeekMap a final class" 2019-12-11 10:35:26 +00:00
Marcus Hagerott
458bb5a793 Merge "Add methods for the contacts provider local account" 2019-12-11 02:20:33 +00:00
Rhed Jao
d85e2b467c Merge "Accessibility shortcut improvement (5/n)" 2019-12-11 02:17:29 +00:00
Automerger Merge Worker
8ce8f6dfb0 Merge "expose datafail cause used in telephony-sdk annotation class" am: 20e05a4660 am: 65f7a4ac6b am: fd536b0cfc
Change-Id: Ieeb034846fb04325268b78bf7908a6527ef3937a
2019-12-10 22:27:42 +00:00
Automerger Merge Worker
0dc6acb831 Merge "Remove usage of IccCardConstants hidden APIs" am: b181ba61e2 am: b09b13cf38 am: 19f573a89b
Change-Id: Ic061e0647d108df6fd4837b89555febd5f85b48f
2019-12-10 22:26:47 +00:00
Chen Xu
20e05a4660 Merge "expose datafail cause used in telephony-sdk annotation class" 2019-12-10 21:39:35 +00:00
Jayachandran Chinnakkannu
b181ba61e2 Merge "Remove usage of IccCardConstants hidden APIs" 2019-12-10 21:31:17 +00:00
Automerger Merge Worker
b53b85cc2f Merge "IKE API: Add getters for SessionParams, ConfigRequests" am: 48384c744f am: 3601d279b5 am: c01c6a8d62
Change-Id: I3565c6580b16fe9d92881555b9121600f64bceb8
2019-12-10 21:04:42 +00:00
Wei Wang
c3fabdcad3 Merge "Expose FUSED_PROVIDER to test API." 2019-12-10 21:03:03 +00:00
Yan Yan
48384c744f Merge "IKE API: Add getters for SessionParams, ConfigRequests" 2019-12-10 20:52:15 +00:00
Anton Hansson
0bfdf24771 Merge "Hide integrity @IntDefs" 2019-12-10 20:26:54 +00:00
Anton Hansson
55d61c97b1 Merge "Whitelist new lint errors" 2019-12-10 20:26:20 +00:00
Shuo Qian
8763091019 Merge "Integrate Signal Threshold for 5G" 2019-12-10 18:03:32 +00:00
Marcus Hagerott
66dc2a0ae8 Add methods for the contacts provider local account
Test: added CTS tests and built frameworks/base

Bug: 145690939

Change-Id: I09cdad87543053e58888e58de4d9ca88efb1792d
2019-12-10 09:50:45 -08:00
Santiago Seifert
14167948ed Make MediaParser.SeekMap a final class
This will allow future extensiblity.

Bug: 132153067
Bug: 134057371
Test: Pending.
Change-Id: Ib86f80aa84db7835add8eb7148873ad7d54b9ad9
2019-12-10 17:47:39 +00:00
Anton Hansson
370add0c6a Merge "Expose SdkExtension in the system SDK" 2019-12-10 17:43:38 +00:00
Jean-Michel Trivi
21cd5413e0 Audio routing by strategy SystemApi
Routing is done per AudioProductStrategy. For instance routing
media is done by using the AudioProductStrategy that supports
the AudioAttributes with USAGE_MEDIA.
  Routing is for a connected device, AudioDeviceInfo, or for on a
device that is not currently connected, uniquely specified by
its role, type and address.
  Preferred routing can be set, removed, queried (get).
  When audioserver crashes, AudioService restores the preferred
routing operating on the audio policy engine.

Bug: 144440677
Test: atest AudioServiceHostTest#PreferredDeviceRoutingTest

Change-Id: I0647608088fe2906e78b71341615975a56747c2f
2019-12-10 09:23:24 -08:00
Anton Hansson
57b6af0417 Hide integrity @IntDefs
Typedefs aren't meant to be exposed in the stubs.

Bug: 145982314
Test: m
Change-Id: I95a5040e2a83c21b736c1b79cf0f492076dfe67a
2019-12-10 17:03:34 +00:00
Charles Munger
d8e9c3a887 Merge "Deprecate AlteredCharSequence" am: ea4916dac7 am: cb90a87d2e
am: ee6451246e

Change-Id: I990dc63ec32cd6ec7c6f783179a887dcac4c264d
2019-12-10 08:35:53 -08:00
Anton Hansson
f0e0cdacec Merge "Expose SdkExtension in the system SDK" 2019-12-10 16:32:47 +00:00
Charles Munger
ea4916dac7 Merge "Deprecate AlteredCharSequence" 2019-12-10 16:20:40 +00:00
Anton Hansson
3e8f84f82f Whitelist new lint errors
These typedefs were incorrectly made public since the linter
wasn't catching the errors.

Bug: 145982314
Test: m
Change-Id: Id89b15ba34df01584d3d5afe9d4112fad9613dbc
2019-12-10 15:59:47 +00:00
Santiago Seifert
3e59f30c2d Merge "MediaFormat: Add ENCODER_DELAY and ENCODER_PADDING" 2019-12-10 13:24:26 +00:00
Santiago Seifert
8095a83b37 MediaFormat: Add ENCODER_DELAY and ENCODER_PADDING
Note that these two already exist in NdkMediaFormat.

Bug: 132153067
Bug: 134057371
Test: Not applicable.
Change-Id: I602bd16e3cda302e538097a9a2ba3487f34fa0f9
2019-12-10 11:32:46 +00:00
Chen Xu
3c963e27b4 expose datafail cause used in telephony-sdk annotation class
1. expose one hidden dataFailCause used in telephony-sdk annotation
class
2. remove unused hidden dataFailCause referened in telephny-sdk
annotation

Bug: 140908357
Test: Build
Change-Id: Ia7ca9a2a354937946ba57017f4bd03fe880aeb6d
2019-12-09 21:18:59 -08:00
Shuo Qian
c1f935e3c0 Integrate Signal Threshold for 5G
1) Introduce default values for 5G Signal thresholds
2) Introduce parameter to control in 5G NR Signal Strength Level
3) Introduce SignalThresholdInfo to support Framework and HAL

Test: Treehugger
Bug: 135717625
Change-Id: I8a716e9fe445349a56bb33b6b8f581febb21552b
Merged-In: I8a716e9fe445349a56bb33b6b8f581febb21552b
(cherry picked from commit 7d7b2f1a44)
2019-12-09 15:24:39 -08:00
Shuo Qian
781ebde542 Merge "Integrate Signal Threshold for 5G" 2019-12-09 23:21:53 +00:00
Chong Zhang
94a2b1590c Merge "Add memfd_create to android.system.Os" am: 560f980bb0 am: 64bd53d503
am: 3fd00d0154

Change-Id: I39238834ca46407e973181de3446ba11ab9b144a
2019-12-09 14:24:26 -08:00
Chong Zhang
560f980bb0 Merge "Add memfd_create to android.system.Os" 2019-12-09 22:06:08 +00:00
Rahul Sabnis
31625bfe43 Merge "Resolve BluetoothA2dp hidden APIs to resolve dependencies" am: 67eae9d7ba am: 5ae6e7adc1
am: b0ff23dde3

Change-Id: Ifbb103349e9f44d976008d00ad332dbbf43fef96
2019-12-09 11:48:06 -08:00
Anton Hansson
b52bd1cbbe Expose SdkExtension in the system SDK
Also tweak the javadoc a little bit.

Bug: 137191822
Bug: 143937447
Test: treehugger
Change-Id: Iae1b025685344c2ffe4ed1089850b447c82a6b83
Merged-In: Iae1b025685344c2ffe4ed1089850b447c82a6b83
2019-12-09 17:21:24 +00:00
Anton Hansson
dc1e99bbca Expose SdkExtension in the system SDK
Also tweak the javadoc a little bit.

Bug: 137191822
Bug: 143937447
Test: treehugger
Change-Id: Iae1b025685344c2ffe4ed1089850b447c82a6b83
2019-12-09 17:16:03 +00:00
Roshan Pius
3f9ba67fa7 Merge changes from topics "suggestion_no_uid_package", "wifi_key_value_list_parser", "wifi_power_profile", "wifi_service_manager_getService", "wifi_westworld"
* changes:
  statsd: Allow wifi mainline module to log its metrics
  wifi-services-srcs: Stop using KeyValueListParser from android.internal
  WifiNetworkSuggestion: Don't store packageName/uid
  WifiAwareManager: Add requestMacAddresses @hide API
  UserManager: Add StringDef for all restrictionKey values
  WifiActivityEnergyInfo: Use time values for energy calculation
2019-12-09 17:08:30 +00: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
Betty Chang
a52bbd3624 Merge "[Telephony Mainline] Add SimInfo.CONTENT_URI instead SubscriptionManager.CONTENT_URI for mainline" 2019-12-09 02:25:57 +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
Jeff Sharkey
679025e6a9 Merge "Initial support for subtitles and lyrics." 2019-12-07 16:15:29 +00:00
Jeff Sharkey
8002eb3292 Merge "Adjust policy for "stale" volumes outside module." 2019-12-07 03:47:46 +00:00
Shuo Qian
7d7b2f1a44 Integrate Signal Threshold for 5G
1) Introduce default values for 5G Signal thresholds
2) Introduce parameter to control in 5G NR Signal Strength Level
3) Introduce SignalThresholdInfo to support Framework and HAL

Test: Treehugger
Bug: 135717625
Change-Id: I8a716e9fe445349a56bb33b6b8f581febb21552b
2019-12-06 18:21:41 -08:00
Jeff Sharkey
257b6bff6c Initial support for subtitles and lyrics.
Ideally audio and video files would embed information like subtitles
and lyrics directly into the container format, but alas the world
hasn't completely moved to Matroska yet.

Thus we're willing to recognize these side-car files and let them be
visible to apps that have gained the "Audio" or "Video" permissions.

Bug: 132359020, 143549606
Test: atest --test-mapping packages/providers/MediaProvider
Change-Id: I07513c48e245a00c0288a4b0fbee322cb02f49a9
2019-12-06 19:13:39 -07:00
Rahul Sabnis
625e1c3ef4 Resolve BluetoothA2dp hidden APIs to resolve dependencies
Bug: 143240341
Test: Manual
Change-Id: Ib55e0fb106fa7b91ef4d3559da12ea2c048f1ae5
2019-12-06 16:58:05 -08:00
Jeff Sharkey
5e374476c4 Adjust policy for "stale" volumes outside module.
We're not ready to commit to VolumeRecord in an API surface, so the
next best choice we have is to place the logic in MediaStore, which
is outside the Mainline module boundary.

This also has the benefit of giving partners control over exactly
what policy they want to use for expiring stale volumes.

Bug: 137890034
Test: atest --test-mapping packages/providers/MediaProvider
Change-Id: I677e4bfa6d08e32775e02c323debbaa90acf632b
2019-12-06 17:52:16 -07:00
Jordan Liu
9fd7c05eb9 Merge "Expose some SystemApis and edit framework-cellbroadcast-shared-srcs" 2019-12-07 00:06:23 +00:00
Jayachandran C
316302c001 Remove usage of IccCardConstants hidden APIs
Expose the string IccCardConstants as system APIs
Use TelephonyManger.SIM_STATE_XXX for remaining

Bug: 145767148
Test: Build
Change-Id: I5711d783be8c8414b8f9d7baa80cb4224bd771aa
2019-12-06 16:06:12 -08:00
Jeff Sharkey
0676821097 Merge "More robust DRM support, including tests." 2019-12-06 23:46:18 +00:00
Makoto Onuki
63dbf254b5 Merge "Add SystemApi to handle "adb shell cmd"" 2019-12-06 23:07:56 +00:00
Jeff Sharkey
530deca4be More robust DRM support, including tests.
Based on guidance from the DRM team, we should pass DRM files
directly to MediaMetadataRetriever, which can be used to obtain both
the underlying MIME type and the typical metadata to be indexed.

To help ensure this works correctly and doesn't regress, borrow
strategy from CTS which creates new Forward Locked media items for
testing, and verify that we scan them correctly.

Allow MediaMetadataRetriever to override the MIME type obtained
from a file extension, but only when the primary type agrees with
the extension.  This is the same policy we apply to XMP metadata.

Bug: 141146658
Test: atest --test-mapping packages/providers/MediaProvider
Change-Id: I494a539a81ed39411a3b59c4433b6520967962c2
2019-12-06 14:44:21 -07:00
TreeHugger Robot
f59c623dcf Merge "Update location broadcast behavior" 2019-12-06 21:13:21 +00:00
sqian
22f5749ccc Make getPackagesWithPriviligesForAllActiveSubscriptions system API
Test: build
Bug: 145550382
Change-Id: Ia7efb9e4b22b24f3c87c7cd631548c7254b28926
Merged-In: Ia7efb9e4b22b24f3c87c7cd631548c7254b28926
(cherry picked from commit 6f27c5769d)
2019-12-06 12:07:57 -08:00