Commit Graph

26183 Commits

Author SHA1 Message Date
Automerger Merge Worker
a98d79fb32 Merge "Make getDefaultCarrierServicePackageName for Mainline" am: 071d78b1ef am: 58fd0fd58d
Change-Id: I9150a6d9c2252ae3d7931c0a2bf13b1262bcac4b
2019-12-20 18:46:25 +00:00
Shuo Qian
071d78b1ef Merge "Make getDefaultCarrierServicePackageName for Mainline" 2019-12-20 18:23:12 +00:00
TreeHugger Robot
a251173a1c Merge "Revert "[DO NOT MERGE] Revert submission 9950791-pick-precise-dataconn"" into qt-qpr1-dev-plus-aosp 2019-12-20 17:55:45 +00:00
Automerger Merge Worker
53a2538510 Merge "Expose NumberFormatter and NumberRangeFormatter APIs" am: e82d740d6c am: 81b019eda9
Change-Id: Ifa9582914f23e655d1308da9881a2e9bf09551a7
2019-12-20 17:23:33 +00:00
vichang
e82d740d6c Merge "Expose NumberFormatter and NumberRangeFormatter APIs" 2019-12-20 17:13:21 +00:00
Automerger Merge Worker
08074c62b0 Merge "[Tether13] Move TetheringManager into framework" am: 2410d67357 am: 25cc1f47c5
Change-Id: I9ec25eb984e3b534ddcc9313836a319b21526998
2019-12-20 14:00:29 +00:00
Mark Chien
2410d67357 Merge "[Tether13] Move TetheringManager into framework" 2019-12-20 13:43:46 +00:00
Automerger Merge Worker
adf0d39cb3 Update API surface for ICU 65.1 am: 9da8b8e3da am: 755d19c121
Change-Id: If1020f3d8cec26e5364b2ce3c1d46960aa0c6319
2019-12-20 12:16:31 +00:00
Nikita Iashchenko
755d19c121 Update API surface for ICU 65.1
am: 9da8b8e3da

Change-Id: Idf168de98045b8db65acf1e79c82fe74b51a3cf8
2019-12-20 04:03:55 -08:00
Nikita Iashchenko
ad2026640c Merge changes from topic "icu65.1-upgrade"
* changes:
  Regenerate LocaleDataTables.cpp
  Update API surface for ICU 65.1
2019-12-20 11:14:44 +00:00
Automerger Merge Worker
b70662d510 Merge "Provide APIs to get preferred payment service information" am: c0c28a2671 am: e7bfadcb7d
Change-Id: I6594c36891f2f4f644ee1d154989465459752ef0
2019-12-20 03:25:38 +00:00
Treehugger Robot
c0c28a2671 Merge "Provide APIs to get preferred payment service information" 2019-12-20 03:05:13 +00:00
Nathan Harold
dcbe98371e Revert "[DO NOT MERGE] Revert submission 9950791-pick-precise-dataconn"
This reverts commit d80dc8fed4.

Bug: 143082463
Test: compilation

Merged-In: Ib6a769f5a0cae923ca47a842733bd28755a90ed5
Change-Id: I455788f72fc6dec23c0d0d24a1ca8ee9c2f637c9
2019-12-19 17:37:54 -08:00
Noah Zimmt
2115c17ced Merge "[DO NOT MERGE] Revert submission 9950791-pick-precise-dataconn" into qt-qpr1-dev-plus-aosp 2019-12-20 00:45:42 +00:00
Noah Zimmt
d80dc8fed4 [DO NOT MERGE] Revert submission 9950791-pick-precise-dataconn
Reason for revert: Droidcop-triggered revert due to breakage https://android-build.googleplex.com/builds/quarterdeck?branch=git_qt-qpr1-dev-plus-aosp&target=aosp_cf_x86_phone-userdebug&lkgb=6087936&lkbb=6087980&fkbb=6087980, b/146588413
Reverted Changes:
I8445808a0: Expose PreciseDataConnectionState to Public API
Ib6a769f5a: Expose PreciseDataConnectionState to Public API

Note: These CLs are correctly applied in master already.
      The revert should merge to qt-qpr1-dev-plus-aosp only
Change-Id: If98f8ba5f20073bade40f7b167ed185c2e4c0e1b
2019-12-20 00:43:41 +00:00
Automerger Merge Worker
d9faf626f6 Merge "Make Gps.KEY_PREFIX and Gps.KEY_PERSIST_LPP_MODE_BOOL Public" am: 2e321705a7 am: cd23bc8211
Change-Id: I0d11cc0db63df563f78265efdfee716aa82a6905
2019-12-20 00:27:23 +00:00
Automerger Merge Worker
0b11673991 Merge "Add an API to tell whenever device supports userspace reboot" am: 670352e807 am: d1c0e074c0
Change-Id: I5e51be225c3063e250facec51cf4976c3004acc4
2019-12-20 00:26:24 +00:00
Shuo Qian
ec428aa436 Make getDefaultCarrierServicePackageName for Mainline
Make this API system to resolve mainline concern. It is ok to make it
system API as it is not a key in CarrierConfigManager. We can add
permission check on the other side.

Test: built
Bug: 146583148
Change-Id: I7c4297d659635622ba4523abf2ce32e21f961ad0
2019-12-20 00:15:52 +00:00
Treehugger Robot
2e321705a7 Merge "Make Gps.KEY_PREFIX and Gps.KEY_PERSIST_LPP_MODE_BOOL Public" 2019-12-19 23:55:34 +00:00
Nikita Ioffe
670352e807 Merge "Add an API to tell whenever device supports userspace reboot" 2019-12-19 23:44:06 +00:00
Nathan Harold
be34c7019a Merge "Expose PreciseDataConnectionState to Public API" into qt-qpr1-dev-plus-aosp 2019-12-19 23:40:18 +00:00
Automerger Merge Worker
4ae6995e92 Merge "Introduce telecom api to launch emeregency dialer." am: c55310438b am: 52432f5737
Change-Id: Ibb17c03a6c43bd654f36705cdac093b94fea9c16
2019-12-19 22:48:28 +00:00
Fan Zhang
c55310438b Merge "Introduce telecom api to launch emeregency dialer." 2019-12-19 22:07:42 +00:00
Nathan Harold
c95b4e5421 Expose PreciseDataConnectionState to Public API
1) Remove Unused Parameters for onDataConnectionState:
The data connection state broadcast includes a number of
parameters that are never used anywhere. To prepare for
updated code that relies on PreciseDataConnectionState,
remove the unused parameters that were internal-only and
included in the broadcast.

-LinkProperties
-NetworkCapabilities
-DataRoaming
-DataAllowed
-Interface name

2) Add Disconnecting State for Data Connections

Add a disconnecting state to correct a mismatch
between the internal and externally visible enums.

This will allow apps to know when connections are
in the process of being torn down, which in the case
of radio link issues could be as much as 15 seconds.

3) Expose PreciseDataConnection for Carrier Apps

Exposes the PSL for PreciseDataConnectionState along
with existing fields in the PreciseDataConnectionState
class.

-Make PreciseDataConnectionState public along with some
 of its fields.
-Expose onPreciseDataConnectionStateChanged.
-Add onPreciseDataConnectionStatesChanged to provide PDCS
 for all APNs in one cohesive batch.

4) Cache PreciseDataConnectionState by APN Type

In telephony registry, multiple different APN types
are all piped through the same cache entry, so every
time any APN changes relative to the previous type,
it triggers an update. This also means that when
a registrant requests the data connection state, only
the most recent type's state is updated.

This change caches entries in TelephonyRegistry based
on the APN's type (specifically the type among types
which triggered the change).

Bug: 143083105
Test: make update-api && make offline-sdk-docs
      (no functional change in this CL).
Test: atest FrameworksTelephonyTests

Merged-In: Ib6a769f5a0cae923ca47a842733bd28755a90ed5
Change-Id: Ib6a769f5a0cae923ca47a842733bd28755a90ed5
(cherry picked from commit 4d340f12c9)
2019-12-19 13:40:02 -08:00
Fan Zhang
2b2458e094 Introduce telecom api to launch emeregency dialer.
Test: manual
Bug: 136194151
Change-Id: I5c9732062e5123539343843fb9a9ae3ca7111890
Merged-In: I5c9732062e5123539343843fb9a9ae3ca7111890
2019-12-19 20:50:31 +00:00
Nikita Iashchenko
9da8b8e3da Update API surface for ICU 65.1
Bug: 144415049
Test: m update-api
Change-Id: If64e5a3b46df0875844795c80cce6b76df13ad73
2019-12-19 19:36:27 +00:00
Automerger Merge Worker
7fabca1b35 Merge "Expose ModemActivitiyInfo to system API" am: 5910f6dd65 am: 340397814a
Change-Id: I5ec18c82caa066e2aced3432756cd0811ff4a9cb
2019-12-19 18:42:52 +00:00
Chen Xu
5910f6dd65 Merge "Expose ModemActivitiyInfo to system API" 2019-12-19 18:01:46 +00:00
Nikita Ioffe
717dbbf1a4 Add an API to tell whenever device supports userspace reboot
If device doesn't support userspace reboot then call to
PowerManager.reboot("userspace") will throw an
UnsupportedOperationException.

For the case of upgrading devices, Treble enforces that previous vendor
image should work with the new system image. Since userspace reboot
requires services to be stopped and restarted cleanly, which upgrading
devices might not be able to comply with, we need to have an API to
distinguish between devices that support userspace reboot and the ones
that do not.

Test: atest PowerManagerTest
Test: atest CtsUserspaceRebootHostSideTestCases
Bug: 138605273
Bug: 135984674
Change-Id: I8303f43ab29499eb2995f0256854c787055d9560
2019-12-19 17:26:19 +00:00
markchien
6d06f6d51a [Tether13] Move TetheringManager into framework
Move tethering out of ConnectivityService. All client would
use TetheringManager to talk with TetheringService directly.

Bug: 144320246
Test: -build, flash, boot
      -atest TetheringTests

Change-Id: Ib051bea724a256f9c4572b566e46ae7b9c4abe6e
Merged-In: Ib051bea724a256f9c4572b566e46ae7b9c4abe6e
2019-12-19 20:53:06 +08:00
Automerger Merge Worker
ae6c84fcb2 Merge "Add LinkProperties methods to system APIs" am: 4dba00e007 am: 8d2b81869c
Change-Id: Ie0a102ceb853c9f61d3e1deb369938a48edcdcac
2019-12-19 08:22:11 +00:00
Aaron Huang
4dba00e007 Merge "Add LinkProperties methods to system APIs" 2019-12-19 08:01:58 +00:00
Automerger Merge Worker
29c577d086 Merge "Create new Carrier configuration for separate MMTEL/RCS features" am: 8283939cec am: 8d2ebed0cb
Change-Id: I71829e3233215ca50030780718bb67fc0936ea6d
2019-12-19 02:28:18 +00:00
Brad Ebinger
8283939cec Merge "Create new Carrier configuration for separate MMTEL/RCS features" 2019-12-19 02:02:57 +00:00
Automerger Merge Worker
63ccc52096 Merge "Expose ACTION_NETWORK_SET_TIME as system API" am: d3adef0662 am: 2bebf8f83b
Change-Id: I9dd2456ce684fd3c5ce3c3f4c07e7e5d96393d98
2019-12-19 00:47:33 +00:00
Jayachandran Chinnakkannu
d3adef0662 Merge "Expose ACTION_NETWORK_SET_TIME as system API" 2019-12-19 00:24:57 +00:00
Automerger Merge Worker
7e749b24bf Merge "Add post-call screen API." am: f5b6267d93 am: 1ad17b6ded
Change-Id: Iae4072e134946cc76b0c3474e6c8856513a9c9f3
2019-12-18 21:44:52 +00:00
Automerger Merge Worker
208fcd6196 Merge "Expose Circle and Polygon as SystemApi" am: ac2b27aed1 am: 66cd02ff4e
Change-Id: Ibaec635c2b76e8aa8a4152841b4888830ad9e7db
2019-12-18 21:44:19 +00:00
Grace Jia
91cec6ee8f Add post-call screen API.
Test: manual
Bug: 135929421
Change-Id: I63043646bb96b8543849c617ce1ccd41a558f24d
2019-12-18 21:07:40 +00:00
Jordan Liu
ac2b27aed1 Merge "Expose Circle and Polygon as SystemApi" 2019-12-18 20:56:22 +00:00
Brad Ebinger
2499aa4b81 Create new Carrier configuration for separate MMTEL/RCS features
Bug: 111305845
Test: atest FrameworksTelephonyTests; atest CtsTelephonyTestCases
Merged-In: Ia16f82b9cfb9e873d2c26850dfbfd451638ad30c
Change-Id: Ia16f82b9cfb9e873d2c26850dfbfd451638ad30c
2019-12-18 11:02:09 -08:00
Chen Xu
9663781a86 Expose ModemActivitiyInfo to system API
ModemActivityInfo is used for batteryStatusService which is part of
system service. To prepare telephony to be an mainline module, we
should expose ModemActivityInfo to systemAPI

1. remove getConsumedPower API as we are missing modem support, API
today only report 0
2. isValid API is introduced to cover modem issues before. Do not
expose this for now.

Bug: 140908357
Test: Build
Change-Id: I6e1b0daa2e0ce23b9fd55f0dd7037631b93eb7a5
(cherry picked from commit 7322e4a7ce)
Merged-in: I6e1b0daa2e0ce23b9fd55f0dd7037631b93eb7a5
2019-12-18 10:45:00 -08:00
Shuo Qian
6fe660ea86 Make Gps.KEY_PREFIX and Gps.KEY_PERSIST_LPP_MODE_BOOL Public
Test: build
Bug: 146445404
Change-Id: Ifb1efcb6fb0b870b8dc8caf07103e41e593b1a5f
2019-12-18 18:44:03 +00:00
Daniel Huang
53484a4946 Merge "Add more error codes." 2019-12-18 18:22:08 +00:00
danielwbhuang
7e4b4629d0 Add more error codes.
1. Add error codes for setPreferredOpportunisticDataSubscription and updateAvailableNetworks
2. Use Compatibility Framework to remap them.

Test: run atest.
1.atest TelephonyManagerTest#testPreferredOpportunisticDataSubscription
2.atest TelephonyManagerTest#testUpdateAvailableNetworks

Bug: 130595455
Merged-In: I6f386bfcf75236e30141fab89e2b62ee3a8cb59e
Change-Id: I6f386bfcf75236e30141fab89e2b62ee3a8cb59e
2019-12-18 06:13:51 +00:00
Automerger Merge Worker
fe71eb644a Merge "Define a telephony database column for uicc applications enabled or not." am: fbfe850906 am: b790d2e3ea
Change-Id: Ia27cc3fa37ebc15fe71a1e45b0bda01d199e2def
2019-12-18 00:22:06 +00:00
Xiangyu/Malcolm Chen
fbfe850906 Merge "Define a telephony database column for uicc applications enabled or not." 2019-12-17 23:56:41 +00:00
Automerger Merge Worker
f368715dc8 Merge "Telephony: Get SIM card capacity count of SMS" am: 1017905980 am: f8772763e3
Change-Id: I85299e0f38f7ea3fe657f265a9799f73aaecb045
2019-12-17 23:52:22 +00:00
Tyler Gunn
1017905980 Merge "Telephony: Get SIM card capacity count of SMS" 2019-12-17 23:31:15 +00:00
Jordan Liu
8cd7a4cb4a Expose Circle and Polygon as SystemApi
Bug: 145956003
Test: manual
Change-Id: I1af173a6e3772fad8bde2ac93177af894178b18c
2019-12-17 14:59:01 -08:00