Commit Graph

27473 Commits

Author SHA1 Message Date
Xiangyu/Malcolm Chen
d413128092 Merge "Expose setUiccApplicationsEnabled as @SystemApi for eSIM to call upon slot mapping change." 2019-12-26 21:20:14 +00:00
Shuo Qian
4a0eafa3d1 Merge "Improve LTE signal bar level with flexible RSRQ and RSSNR threshold" 2019-12-26 20:01:55 +00:00
Malcolm Chen
b44763419b Expose setUiccApplicationsEnabled as @SystemApi for eSIM to call upon slot
mapping change.

Because currently we rely on eSIM module to do handle some slot mapping
change and single to dual SIM config change, eSIM needs to also make
sure uicc applications are enabled for certain scenarios. So we expose
the SubscriptionManager#setUiccApplicationsEnabled as @SystemApi

Bug: 141018421
Test: unittest
Change-Id: I9844e71260ea009afd0928a0f4be4426e7d12358
2019-12-26 11:42:52 -08:00
TreeHugger Robot
032c3aa77e Merge "[DPP R2] Update ACTION_PROCESS_WIFI_EASY_CONNECT_URI intent" 2019-12-26 19:19:54 +00:00
Tomita, Ryounosuke X
be117207cf Improve LTE signal bar level with flexible RSRQ and RSSNR threshold
Current AOSP LTE signal bar has following limitation:
- For Threshold type, "RSRP & RSSNR" or "RSRP only" are selectable,
  but "RSRP & RSRQ" is unavailable.
- For threshold value, RSRP is flexible by carrier config,
  but RSSNR is hard-coded.
- The signal strength reporting criteria apply to only the RSRP.

This change allows following customizations by new carrier config:
- Threshold type can select "RSRP & RSRQ" too.
- Threshold value of RSRQ and RSSNR can be flexible.
- RSRQ and RSSNR thresholds can set signal strength reporting criteria.

Test: auto - Confirmed that run
FrameworksTelephonyTests#testSignalStrength and it has no problem.
Test: auto - Confirmed that run
FrameworksTelephonyTests#SignalThresholdInfoTest and it has no problem.
Bug: 133400544

Change-Id: I37d0dc5ff41169b0309cfaabaa0f2595894b3749
2019-12-26 10:05:10 -08:00
Shuo Qian
9cb64903d4 Merge "Make PreciseDataConnectionState constructor System API" 2019-12-26 17:21:52 +00:00
Shuo Qian
ac4c8da309 Make PreciseDataConnectionState constructor System API
TelephonyRegistry is using the deprecated constructor of
 PreciseDataConnectionState; it should use the other constructor of
PreciseDataConnectionState, which is not deprecated; Also need to make
that constructor System API for Mainline.

Test: make update-api (no functional change in this CL).
Test: atest FrameworksTelephonyTests

Bug: 146793835
Change-Id: I83f98aa8b818f654d497867cd16e8afa987114fc
2019-12-26 17:21:30 +00:00
Hai Shalom
7cd8e71494 [DPP R2] Update ACTION_PROCESS_WIFI_EASY_CONNECT_URI intent
Update ACTION_PROCESS_WIFI_EASY_CONNECT_URI intent to include
additional information in case of a failure. The intent will
return an extra field with result code for R1 and R2 devices,
and additional details for R2 devices: SSID, channe list,
and band list.

Bug: 139381558
Test: Manual test
Change-Id: Ib25db37279289acbb3841f4b4862d8cbeb4efdd2
2019-12-26 09:18:13 -08:00
TreeHugger Robot
1e4c5237df Merge "Add minimal post processing API to framework" 2019-12-25 13:14:51 +00:00
Automerger Merge Worker
3fc99ac92f Merge "Make MatchAllNetworkSpecifier constructor @SystemApi" am: 9dd0968ca1 am: 011eb06659 am: 14d9520d80
Change-Id: Ic2dd94ea3f120b457ade378b87a5c93ee0543155
2019-12-25 09:32:45 +00:00
Automerger Merge Worker
14d9520d80 Merge "Make MatchAllNetworkSpecifier constructor @SystemApi" am: 9dd0968ca1 am: 011eb06659
Change-Id: I8d0be2c9deff0f48842f8a3bb3c4a685ffe2e095
2019-12-25 09:15:35 +00:00
Aaron Huang
9dd0968ca1 Merge "Make MatchAllNetworkSpecifier constructor @SystemApi" 2019-12-25 08:07:00 +00:00
Betty Chang
c9b6967e7e Merge "[Telephony Mainline] Add new SystemApi method and SystemApi annotation for mainline" 2019-12-24 12:05:02 +00:00
TreeHugger Robot
4c3a915c36 Merge "Add styling related fields to Inline presentation spec." 2019-12-24 01:54:31 +00:00
Feng Cao
7a0f002f5a Add styling related fields to Inline presentation spec.
Test: manual
Bug: 146454892

Change-Id: Id8f08ad0ee69e5c9c24fe038a06cbae3a3bc2c57
2019-12-23 15:53:58 -08:00
Ben Lin
eefcd54641 Merge "Add #onPictureInPictureRequested to Activity and ATM" 2019-12-23 22:08:59 +00:00
Michael Groover
8142ee3e61 Merge "Make DPM#checkDeviceIdentifierAccess a SystemApi" 2019-12-23 21:26:09 +00:00
TreeHugger Robot
3f7ef32b9f Merge "New API for query trust of a fs-verity certificate" 2019-12-23 20:18:40 +00:00
Automerger Merge Worker
9908f0473e Merge "Refactor AudioPlaybackConfiguration to reduce usages of hidden APIs" am: dcb8aa7cba am: 21984f9031 am: 98b09fda03
Change-Id: I5c67a499fb6d5028cd09bf95c6bcca91018b17ec
2019-12-23 18:48:10 +00:00
Automerger Merge Worker
98b09fda03 Merge "Refactor AudioPlaybackConfiguration to reduce usages of hidden APIs" am: dcb8aa7cba am: 21984f9031
Change-Id: I1e0e5b57ff169354c33ac4c22bc5db83d87f19a3
2019-12-23 18:30:25 +00:00
Treehugger Robot
dcb8aa7cba Merge "Refactor AudioPlaybackConfiguration to reduce usages of hidden APIs" 2019-12-23 18:03:35 +00:00
Victor Hsieh
20fe1f6f22 New API for query trust of a fs-verity certificate
The corresponding service is also added.

The API can be used by a store to know whether their certificate is
trusted on the device. As optimization, they only need to download
.fsv_sig signature file if it will be used.

The API can also be used to gradually switch to stronger key. The store
can query with their certificates in priority order and download the best
signature.

Test: Passed new GTS working in progress
Bug: 142573505
Change-Id: Ic788cd04aeaed35ad62113fe9e7535b8fa63b5ee
2019-12-23 09:21:19 -08:00
Galia Peycheva
056b3ee745 Add minimal post processing API to framework
This API allows applications to instruct the connected display to do minimal
post processing on the produced image or video frames. This will switch the
display to a low latency mode (ALLM, Game mode or some other custom
implementation thereof), reducing lag in the final images. Thus, minimal post
processing would greatly enhance performance for gaming and video
conferencing applications. It would not, however, suit applications that
prioritise image quality over performance.

This CL adds 2 public method:
 - Window.setPreferMinimalPostProcessing()
(this can also be set in WindowManager.LayoutParams.preferMinimalPostProcessing)
If minimal post processing is preferred, the connected display will be requested
to go into low latency mode, which reduces image processing, resulting in better
performance for gaming applications. If the Display sink is connected via HDMI,
the device will begin to send infoframes with Auto Low Latency Mode enabled and
Game Content Type. This will switch the connected display to a lower latency
mode (if available).
For more information, see HDMI 2.1 specification.

If the Display sink has an internal connection or uses some other protocol than
HDMI, effects may be similar but implementation-defined.

 - Display.isMinimalPostProcessingPreferred()
Returns true if the connected display supports either Low Latency Mode (ALLM or
some other custom low latency implementation) or Game content type.

Bug: 135116095

Test: make -> flash on ATV OTT device -> open an activity which requests minimal
post processing -> check SurfaceControl logs -> verify correct signals are
passed to native

Change-Id: I5508bb9e5c138b0f2b42d8f8fab10e1915ba3cb6
2019-12-23 17:27:55 +01:00
Automerger Merge Worker
d56dcd2f71 Merge "Add OPUS encoding to the framework" am: 7252ee13be am: dfe9af14d3 am: 5a1fd6750b
Change-Id: Iad78f4366d0c2311a472aadcf0cf07227d3d71e7
2019-12-23 10:41:28 +00:00
Automerger Merge Worker
5a1fd6750b Merge "Add OPUS encoding to the framework" am: 7252ee13be am: dfe9af14d3
Change-Id: Id49eb5581d46a855bd89f2c6485f2b5d5962d5e7
2019-12-23 10:24:45 +00:00
Kevin Rocard
7252ee13be Merge "Add OPUS encoding to the framework" 2019-12-23 09:32:43 +00:00
Zoey Chen
cb874f07bd Merge "[TelephonyMainline] Make getMergedSubscriberIdsFromGroup as System API and rename it" 2019-12-23 05:59:20 +00:00
Joanne Chung
3468ae5320 Merge "TextLinks API updates." 2019-12-23 02:11:45 +00:00
Automerger Merge Worker
45b1f5ad60 Merge "Exposing voice connection status system APIs as public API" am: 96e8628049 am: 55cc8b27b8 am: 04e221f3f9
Change-Id: Icd243058227e34171c3c6f72de6d3eaf1fee9d6c
2019-12-21 03:02:41 +00:00
Automerger Merge Worker
04e221f3f9 Merge "Exposing voice connection status system APIs as public API" am: 96e8628049 am: 55cc8b27b8
Change-Id: Ic43b8d82f5caeca0a7339d77f4f53bebc408d871
2019-12-21 02:51:34 +00:00
Shi Lu
96e8628049 Merge "Exposing voice connection status system APIs as public API" 2019-12-21 02:31:36 +00:00
Etan Cohen
348606fb9e Merge "[WIFI] Remove System APIs overlays added as part of Wi-Fi mainline" 2019-12-21 00:44:37 +00:00
George Mount
c9cf8c1e40 Merge "Add public access to debug layout bounds flag." 2019-12-20 23:28:32 +00:00
George Mount
658db3c23f Add public access to debug layout bounds flag.
Jetpack compose UI wants to respond to the developer setting
that shows the layout bounds of Views to show layout bounds
of it sub-elements. This API gives access to that value.

Bug: 146676765
Test: New CTS test
Change-Id: I1c45f9e6f0ab1192f231ad34df88e392214fa061
2019-12-20 23:27:57 +00:00
Jing Ji
c7fe838a0f Merge "Add API to allow app to report ANR by its own" 2019-12-20 22:54:56 +00:00
Rahul Sabnis
eeef865a2a Refactor AudioPlaybackConfiguration to reduce usages of hidden APIs
Bug: 141947725
Test: Manual
Change-Id: Ia95776cda3408c321d94494cb25b9cd85cb8662a
2019-12-20 14:48:57 -08:00
Meng Wang
f28391eb28 Merge "Use Parcelable CellIdentity instead of CellLocation in AIDL." 2019-12-20 22:46:08 +00:00
Automerger Merge Worker
51d8375f20 Merge "Make PreciseCallState Constructor System API" am: c037935d74 am: 682ba08d42 am: 3b947c64b6
Change-Id: Ia58cd49fd4bbd2c7ebb6eadfb153506603cc924a
2019-12-20 22:42:15 +00:00
jorgegil@google.com
06bc3233c7 Add #onPictureInPictureRequested to Activity and ATM
Allows vendors to signal that an activity should enter
picture-in-picture if possible.
Additionally, removes the need for an Activity to go
through onPause to enter picture-in-picture. Apps can
now override this new API and enter PIP from there
instead of relying on #onUserLeaveHint.

Bug: 143365086
Test: atest FrameworksCoreTests:android.app.activity.ActivityThreadTest
Test: atest CtsWindowManagerDeviceTestCases:PinnedStackTests
Test: atest WmTests:ActivityTaskManagerServiceTests
Change-Id: Ib7ae9d1a7055ceed73e9643982033de9d4ad7350
2019-12-20 14:38:25 -08:00
Automerger Merge Worker
3b947c64b6 Merge "Make PreciseCallState Constructor System API" am: c037935d74 am: 682ba08d42
Change-Id: Ie532ededfe550f601e01c2e573cfded5a9d16deb
2019-12-20 22:30:11 +00:00
Etan Cohen
7a0cb4b617 [WIFI] Remove System APIs overlays added as part of Wi-Fi mainline
The removed 4 overlays are unnecessarily shared between connectivity
and Wi-Fi: there's no reason or requirement to assume they are
identical.

Having them as System API would necessitate a formal API - getters.

Therefore, remove them as System API. Duplicate them within the Wi-Fi
mainline module.

Bug: 144764992
Test: atest android.net.wifi
Test: atest ConnectivityServiceTest
Test: atest com.android.server.wifi
Change-Id: Ic5d1076cab5210eef17c2672d06e2566449939c2
2019-12-20 14:14:23 -08:00
Treehugger Robot
c037935d74 Merge "Make PreciseCallState Constructor System API" 2019-12-20 22:08:13 +00:00
Jeff Sharkey
bb09ee38bc Merge "Adjustments after moving MediaStore inside APEX." 2019-12-20 21:02:55 +00:00
Jeff Sharkey
1fec28066f Adjustments after moving MediaStore inside APEX.
The "core_platform" SDK technically includes non-stable APIs, so we
need to shift to "core_current" instead.

While we're here, tidy up some older @removed APIs that never shipped
and replace HexEncoding with a local implementation.

Since MediaProvider itself is free to use @hide APIs from its own
framework code in MediaStore.java, we can include all sources
from "framework-mediaprovider-sources" directly.

Also since the "framework-annotations" filegroup in Android.bp is
a very limited subset of leaf source code, it can't directly
reference Intent, so adjust the javadoc so we can drop the "import."

Bug: 144247087
Test: atest --test-mapping packages/providers/MediaProvider
Change-Id: I198d84a755b5e270a19b41328f6a6e152112c40a
2019-12-20 13:52:40 -07:00
Shuo Qian
c12886376a Make PreciseCallState Constructor System API
We would make the constructor of PreciseCallState system API, to resolve
the mainline concern from TelephonyRegistry.

Also clean up unused imports.

Test: built
Bug: 146585782
Change-Id: I0bbca065f86fe352a06c63bdd1b25d34e77a9265
2019-12-20 12:12:57 -08:00
TreeHugger Robot
6f28d5e616 Merge "Migrating Incremental* APIs to PackageManager APIs." 2019-12-20 19:44:43 +00:00
Kevin Rocard
3ae06329dc Add OPUS encoding to the framework
Audio offload support was added to AudioTrack in Q,
but only a few encoding were exposed (MP3 & AAC).

This patch adds only Opus support.
For R we probably want to expose all format that the framework supports.

Bug: 146540917
Test: AudioTrackOffloadTest AudioFormatTest
Change-Id: I2ca57d45081668f76f8d9e153f66d1fd41209685
Signed-off-by: Kevin Rocard <krocard@google.com>
2019-12-20 19:30:18 +00:00
Hai Shalom
74e7cae65f Merge "[DPP R2] Added support for DPP R2 events" 2019-12-20 19:25:15 +00:00
Automerger Merge Worker
1ed7c27601 Merge "Make getDefaultCarrierServicePackageName for Mainline" am: 071d78b1ef am: 58fd0fd58d am: a98d79fb32
Change-Id: I131df66112ca72502e9db7afa5faadb6322e5eab
2019-12-20 18:58:46 +00:00
Meng Wang
d75f97d21e Use Parcelable CellIdentity instead of CellLocation in AIDL.
Currently CellLocation is passed over AIDL by manually
marshalling/unmarshalling to/from Bundle, and type info
is not preserved in the process.

Bug: 146092124
Test: make
Change-Id: I6225f100953a2ad354acaa261a774989926393ce
2019-12-20 10:50:09 -08:00