Commit Graph

10610 Commits

Author SHA1 Message Date
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
3620822595 Merge "move carrierconfig key disable_severe_when_extreme_disabled to res" am: 7be5365dc6 am: e288ec2d24
Change-Id: Id0e12e5c2c60042e8ba8eba55f7267781f55efca
2019-12-19 22:57:17 +00:00
Chen Xu
7be5365dc6 Merge "move carrierconfig key disable_severe_when_extreme_disabled to res" 2019-12-19 22:44:57 +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
Chen Xu
aec1aa8d5d move carrierconfig key disable_severe_when_extreme_disabled to res
Bug: 135956699
Test: Manual
Change-Id: Ib12ff430c5781044ec0b36ac9b930224fc410c95
(cherry picked from commit 49b3b1680d)
Merged-in: Ib12ff430c5781044ec0b36ac9b930224fc410c95
2019-12-19 10:56:03 -08: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
Automerger Merge Worker
f6253ef435 Merge "Revert "Use new UnsupportedAppUsage annotation."" am: edf7ce4f38 am: 019286764f
Change-Id: I48d12a1de59ea56b9423dc4100dfe464f093c083
2019-12-19 11:17:48 +00:00
Austin Wang
edf7ce4f38 Merge "Revert "Use new UnsupportedAppUsage annotation."" 2019-12-19 10:09:11 +00:00
Austin Wang
a63a2c0130 Revert "Use new UnsupportedAppUsage annotation."
This reverts commit a5264903e2.

Reason for revert: Droidcop-triggered revert due to breakage https://android-build.googleplex.com/builds/quarterdeck?branch=git_master&target=sdk_phone_armv7-sdk&lkgb=6083299&lkbb=6085371&fkbb=6083313, bug b/146533269

Change-Id: Ie5b031d7b277cf0e09b0a9776b26bf74f5f69e70
2019-12-19 06:38:19 +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
Daniel Huang
53484a4946 Merge "Add more error codes." 2019-12-18 18:22:08 +00:00
Automerger Merge Worker
c7f44bacbe Merge "Use new UnsupportedAppUsage annotation." am: 1385dca8f6 am: 068a9faf3d
Change-Id: Ibad1c39310722d99f2de6bb0d9fad64caa5dbba1
2019-12-18 16:21:37 +00:00
satayev
1385dca8f6 Merge "Use new UnsupportedAppUsage annotation." 2019-12-18 15:32:40 +00:00
Artur Satayev
a5264903e2 Use new UnsupportedAppUsage annotation.
Existing annotations in libcore/ and frameworks/ will deleted after the migration. This also means that any java library that compiles @UnsupportedAppUsage requires a direct dependency on "unsupportedappusage" java_library.

Bug: 145132366
Test: m && diff unsupportedappusage_index.csv \
      git diff HEAD^ HEAD | grep '^[+-][^+-]' | grep -v '.import'
Change-Id: I087bb1cecbe59f1cf0c2e770c735d7a433722c6f
2019-12-18 12:07:36 +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
Automerger Merge Worker
aa4870096c Merge "Add IntDef annotation to SIM state constants." am: 7339d1743c am: 6ad53af775
Change-Id: I5420117382f9a3e487fc26b56eecde199ba704a2
2019-12-17 23:14:14 +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
Treehugger Robot
7339d1743c Merge "Add IntDef annotation to SIM state constants." 2019-12-17 22:16:55 +00:00
Automerger Merge Worker
ebf4a71ef1 Merge "IMS-VT: Add config to control holding a video call" am: fc72e79558 am: 0336989eb8
Change-Id: Icd4ccb99623f3a7d56e682bb1686e963d0765aae
2019-12-17 21:27:33 +00:00
Tyler Gunn
fc72e79558 Merge "IMS-VT: Add config to control holding a video call" 2019-12-17 21:11:54 +00:00
Patrick Huang
a5e2fee8a3 Add IntDef annotation to SIM state constants.
Bug: 141227564
Test: Test build on device. Test calling affected TelephonyManager methods.
Change-Id: Ife159922b8b0fdf84ea376f32ac1d9156c9802d3
Merged-In: Ife159922b8b0fdf84ea376f32ac1d9156c9802d3
2019-12-17 12:38:25 -08:00
Automerger Merge Worker
f47a64b59d Merge "[Telephony Mainline] Expose MAX_NETWORK_TYPE constant" am: 23019528ec am: a4c3162339
Change-Id: I263fbd69be70ccf48b0e16d00985e716060f6bfa
2019-12-17 19:20:16 +00:00
Automerger Merge Worker
9d3d79199b Merge "Mainline Network Policy constants public" am: 56fcc024bc am: 242454626f
Change-Id: Id518fa8327bc2c15717d662a7f3f39cca8ec84a2
2019-12-17 19:18:53 +00:00
Peter Wang
23019528ec Merge "[Telephony Mainline] Expose MAX_NETWORK_TYPE constant" 2019-12-17 19:10:24 +00:00
Treehugger Robot
56fcc024bc Merge "Mainline Network Policy constants public" 2019-12-17 18:59:04 +00:00
Automerger Merge Worker
e69e206ba9 Merge "Introduce Radio Shutdown System APIs for Mainline" am: c107c3a958 am: 684df48afc
Change-Id: I74283f4f9414a3b768f2307197b5cc8987394fb2
2019-12-17 18:39:39 +00:00
Shuo Qian
c107c3a958 Merge "Introduce Radio Shutdown System APIs for Mainline" 2019-12-17 18:17:34 +00:00
Jayachandran C
e477e36fc0 Expose ACTION_NETWORK_SET_TIME as system API
This CL also uses android.telephony prefix

Bug: 146388552
Test: Build
Change-Id: I5afb7ef87ace11c7f97e2f6a75a409ecee537a18
2019-12-17 09:18:05 -08:00
Automerger Merge Worker
f0225870a7 Merge "Change APIs related to carrier actions." am: b430d57705 am: 0ef137bb81
Change-Id: I5b21f2461a85f1832c4b73f3f6cf7d8946e7fdb6
2019-12-17 07:28:23 +00:00
Treehugger Robot
b430d57705 Merge "Change APIs related to carrier actions." 2019-12-17 07:06:36 +00:00
Automerger Merge Worker
b53b1f67d6 Merge "[Telephony Mainline] Add SimInfo.CONTENT_URI instead SubscriptionManager.CONTENT_URI for mainline" am: e74c1f1278 am: fe520a7567
Change-Id: I03f3023ad48b2663c58234ede2deefd0ea80a881
2019-12-17 03:23:37 +00:00
Malcolm Chen
b7c6ee3856 Define a telephony database column for uicc applications enabled or not.
Bug: 141018421
Test: unittest
Change-Id: I5d4f1ec1bc3832c471fd43f3024cd79383d8d3d6
Merged-In: I5d4f1ec1bc3832c471fd43f3024cd79383d8d3d6
2019-12-16 19:07:11 -08:00
Betty Chang
e74c1f1278 Merge "[Telephony Mainline] Add SimInfo.CONTENT_URI instead SubscriptionManager.CONTENT_URI for mainline" 2019-12-17 02:53:41 +00:00
Mengjun Leng
db15271ae7 Telephony: Get SIM card capacity count of SMS
Add an API to get the capacity of the stored SMS on ICC card.

Bug:37289947
Change-Id: Ic9383b3605ce450b3dc32ccc0c283789c12fabf7
2019-12-17 10:44:36 +08:00
Automerger Merge Worker
61f1ecb238 Merge "Fix for Telephony Manager API javadoc inconsistencies" am: 59b88e0e6a am: 8a13455417
Change-Id: Iceb31e933b30363ce89a57305ad70fd5cabfa6fb
2019-12-17 01:17:14 +00:00
Treehugger Robot
59b88e0e6a Merge "Fix for Telephony Manager API javadoc inconsistencies" 2019-12-17 00:53:08 +00:00