Commit Graph

7628 Commits

Author SHA1 Message Date
Jack Yu
e8600a7632 Added comments for each TD-SCDMA bands
Fix: 149316445
Test: Build
Change-Id: I99b8fecc3f588c7cfda6c90cf6e2da570a4dca0b
2020-02-12 08:27:25 +00:00
Treehugger Robot
75214226c6 Merge "Return null for getSubmitPdu() for encoding failure instead of NPE" 2020-02-12 03:04:03 +00:00
Xiangyu/Malcolm Chen
fd46f62892 Merge changes I7099048c,If6965979
* changes:
  Expose RESULT_RECEIVER_CONTROLLER_KEY as @SystemApi.
  Make Telephony to Setting notification @SystemApi
2020-02-11 20:59:52 +00:00
Brad Ebinger
c71b27c2d5 Merge "Move the UCE APIs to @hide for Android R" 2020-02-11 17:18:20 +00:00
Taesu Lee
934f40aab7 Return null for getSubmitPdu() for encoding failure instead of NPE
It returns null as API description for null message or null destination
instead of NPE.

Bug: 111731144
Test: atest SmsMessageTest

Change-Id: I1dc8537b6d07a43345c266122a1c77e73e58e7e8
Signed-off-by: Taesu Lee <taesu82.lee@samsung.com>
2020-02-11 15:33:13 +09:00
Tyler Gunn
32c29d1ee6 Merge "Hide Adhoc conference call API." 2020-02-11 01:40:54 +00:00
Xiangyu/Malcolm Chen
841859205b Merge "Remove usages of @hide methods in telephony code." 2020-02-11 01:17:25 +00:00
Tyler Gunn
a967af5514 Hide Adhoc conference call API.
Marking the adhoc conference call API as @hide.

Test: make -j update-api
Bug: 148165780
Change-Id: I447ec317c66f0c1b4e7a828635b5dcf8b144e32a
2020-02-10 15:19:07 -08:00
Jiashen Wang
4cb4e19cce Clear calling identity when executing the callback
Callbacks need to be executed within Binder.clearCallingIdentity() since user code executed
in the callback should be with the calling pid/uid of the app, not the system.
Bug: 117795921
Test: Manually tested on eSIM operations

Change-Id: Ie50315e3fd287559ed516a24de09af6707c03d2f
Merged-In: Ie50315e3fd287559ed516a24de09af6707c03d2f
2020-02-08 15:35:50 -08:00
Zoey Chen
e6d7525805 Merge "[Settings] To avoid use APIs in IccCard directly, moving APIs into TelephonyManager." 2020-02-08 04:25:32 +00:00
Zoey Chen
3ba74ca897 Merge "[Settings] Expose @hide #setDataAllowedDuringVoiceCall and #isDataAllowedInVoiceCall as @SystemApi" 2020-02-08 04:25:22 +00:00
Malcolm Chen
c27a3f37b1 Expose RESULT_RECEIVER_CONTROLLER_KEY as @SystemApi.
It's used by a @SystemApi as key of it's return bundule. So we
should expose it. Also it's currently linked to BatteryStats.
RESULT_RECEIVER_CONTROLLER_KEY which makes no sense as they are
functionally independent and BatteryStats.RESULT_RECEIVER_CONTROLLER_KEY
is @hide. So also make it a hardcoded String.

Bug: 148116922
Test: build
Change-Id: I7099048c126e88f75cf5bd7e779ddfe923cc1c02
Merged-In: I7099048c126e88f75cf5bd7e779ddfe923cc1c02
2020-02-07 23:07:30 +00:00
Malcolm Chen
7c5e823965 Make Telephony to Setting notification @SystemApi
They are intents and extras used by Setting to monitor certain SIM
change and to pop up dialogs to users.

Bug: 148097978
Test: build
Change-Id: If6965979b5ab15b53f8e81cad895cc2d3dc29e0e
Merged-In: If6965979b5ab15b53f8e81cad895cc2d3dc29e0e
2020-02-07 23:07:11 +00:00
Xiangyu/Malcolm Chen
146dde2a0c Merge "Remoe usage of CollectionUtils as it's not exposed to mainline modules." 2020-02-07 23:05:08 +00:00
Brad Ebinger
d79eca8801 Move the UCE APIs to @hide for Android R
The UCE APIs are not ready to be released in Android R
due to gaps in the API surface for Presence exchange cases.

Bug: 149051280
Test: atest CtsTelephonyTestCases
Change-Id: I2f9cb828c07d7246981424c51d479164512b22a5
2020-02-07 11:01:24 -08:00
zoey chen
6e4648c718 [Settings] Expose @hide #setDataAllowedDuringVoiceCall and #isDataAllowedInVoiceCall as @SystemApi
Bug: 146107006
Test: make
Change-Id: Ib0e6bfa01db9cfabae7ebcce4548dc885e589144
Merged-In: Ib0e6bfa01db9cfabae7ebcce4548dc885e589144
2020-02-07 11:07:59 +08:00
Jack Yu
4d5d4fb7ba Merge changes from topics "area_info_refactor", "dbgf_test"
* changes:
  Added device-based geo-fencing debug info support
  Refactored cell broadcast area info support
2020-02-06 17:17:49 +00:00
zoey chen
183d505f90 [Settings] To avoid use APIs in IccCard directly, moving APIs into TelephonyManager.
IccCard#changeIccLockPassword
IccCard#setIccLockEnabled
IccCard#getIccLockEnabled
Bug: 146983487
Test: manual

Change-Id: I1a3c3b15063ea00d0ca59bd5395f2bca8cdfe391
Merged-In: I1a3c3b15063ea00d0ca59bd5395f2bca8cdfe391
2020-02-06 20:32:10 +08:00
Aaron Huang
0daef81444 Merge "Use Context.NETWORK_POLICY_SERVICE to get network policy service" 2020-02-06 08:51:30 +00:00
Shuo Qian
a4335f0840 Merge "Make hidden API isDataCapable for Telephony" 2020-02-06 04:07:37 +00:00
Malcolm Chen
be998a7b68 Remoe usage of CollectionUtils as it's not exposed to mainline modules.
Bug: 140908357
Test: build
Change-Id: I5f56747be8bc4702e58b7fe27c21f7959bdd76de
Merged-In: I5f56747be8bc4702e58b7fe27c21f7959bdd76de
2020-02-06 03:34:13 +00:00
Malcolm Chen
26898e0f5d Remove usages of @hide methods in telephony code.
Replace them with public alternatives.

Bug: 140908357
Test: build
Change-Id: Ib40da3702c64c36613555d61451442eeaf1f2f35
Merged-In: Ib40da3702c64c36613555d61451442eeaf1f2f35
2020-02-06 03:32:37 +00:00
Xiangyu/Malcolm Chen
53ae130d31 Merge "Move ACTION_CARRIER_* intent and extras from TelephonyIntents to TelephonyManager." 2020-02-05 23:31:51 +00:00
Jiashen Wang
e37c8d26c2 Merge "Add isEuiccSupportedCountry system API to EuiccManager" 2020-02-05 22:14:06 +00:00
Radhika Agrawal
5867fb23e9 Merge "Add rtp silence detection and inactivity detection to call quality" 2020-02-05 21:37:10 +00:00
radhika
c3cc7d0324 Add rtp silence detection and inactivity detection to call quality
Test: builds
Bug: b/143307441
Change-Id: Idc9b2077f73a05542ab531e67b41545022ec25a1
Merged-In: Idc9b2077f73a05542ab531e67b41545022ec25a1
2020-02-05 18:53:31 +00:00
Jack Yu
6bc3f1847e Added device-based geo-fencing debug info support
Added debug information support for DBGF. Follow the steps below
to see the debug info.

1. Dial *#*#CMAS#*#* in the dialer to enable cell broadcast testing
   mode on a debug build.
2. Go to emergency alert settings->emergency alert history
3. On the right-upper corner, choose "show all messages".
4. Long press on the message and select show message details.

Test: Manual
Bug: 144152683
Merged-In: I791a8a482705ff2fd53f77a56c02969f020f888d
Change-Id: I791a8a482705ff2fd53f77a56c02969f020f888d
(cherry picked from commit b670fbd0fe)
2020-02-04 20:56:14 -08:00
sqian
3ba4afa5d5 Make hidden API isDataCapable for Telephony
Rename isDataCapable to isDataConnectionEnabled as a System API for
 System UI.

Cherry-picking TelephonyManager part of ag/10063635

Test: RILTest; Treehugger; cts
Bug: 147017757
Merged-In: I96b45575eb7f030f3dcb9539c06f8ec25539e2e9
Merged-In: I19ac83f5865e8763cd9414c41d4609f79d0db164
(cherry picked from commit 291415806f)

Change-Id: I96b45575eb7f030f3dcb9539c06f8ec25539e2e9
2020-02-04 18:36:00 -08:00
Jack Yu
d588c33c71 Added area info support in cell broadcast service
Added a broadcast for area info changed event, and
also a get method in cell broadcast service to
retrieve the area info.

Test: Cell broadcast sanity tests
Bug: 141318859

Merged-In: I5995e3c5099a1e49cb0c54d33da1dbfcc94d4037
Change-Id: I5995e3c5099a1e49cb0c54d33da1dbfcc94d4037
(cherry picked from commit afaa71d418)
2020-02-04 17:03:01 -08:00
Jack Yu
087568092a Renamed SUB_ID to SUBSCRIPTION_ID
In order to be consistent with other existing APIs.

Test: Build
Bug: 146563563

Merged-In: Iac8d9abe3b011485ffe8220d94f25f99d022014b
Change-Id: Iac8d9abe3b011485ffe8220d94f25f99d022014b
(cherry picked from commit e94a7a4f97)
2020-02-04 16:20:44 -08:00
Malcolm Chen
d1a3b37bb9 Move ACTION_CARRIER_* intent and extras from TelephonyIntents to
TelephonyManager.

The purpose is to expose them as @SystemApi as they are used externally.

Bug: 140908357
Test: unittest
Change-Id: I3dabcb853ebbd648b20d97b446db11476780be25
Merged-In: I3dabcb853ebbd648b20d97b446db11476780be25
2020-02-04 23:28:22 +00:00
Alex Lin
f22d8eac6f Merge "Add public API for EuiccService log dump" 2020-02-04 22:26:53 +00:00
Jack Yu
eba90e264a Added data coding scheme and location check time support
AT&T requires showing data coding scheme, location check
time, whether shown to the user or not in the test menu.
Expanded database to support this.

Bug: 144152683
Test: Manully sending fake messages and verified database
Merged-In: Ib5b78802e7548da9f92492aae4c94ed3488b5e3d
Change-Id: Ib5b78802e7548da9f92492aae4c94ed3488b5e3d
(cherry picked from commit 641db9a36a)
2020-02-04 10:39:52 -08:00
Chalard Jean
f734372173 Merge "Add setSubscriptionOverride() to system API" 2020-02-04 07:07:57 +00:00
Betty Chang
442a1ca027 Merge "[Mainline] Move the setAlwaysAllowMmsData from SubscriptionManager to TelephonyManager" 2020-02-04 02:44:15 +00:00
Jordan Liu
5a7efe50ec Merge "Create new context with new resources" 2020-02-03 21:39:30 +00:00
Jordan Liu
0e161088fd Create new context with new resources
The old implementation of this function had the unintended side effect
of modifying the default configuration for the context which the caller
passed in. This CL avoids that by creating a new context with the new
configuration.

Test: atest SubscriptionControllerTest#testGetResourcesForSubId
Bug: 146481715
Change-Id: I6539817caa67e1100e50018fa0186993a1f56ccb
Merged-In: I6539817caa67e1100e50018fa0186993a1f56ccb
2020-02-03 20:52:09 +00:00
changbetty
0ae6355421 [Mainline] Move the setAlwaysAllowMmsData from SubscriptionManager to TelephonyManager
Bug: 146309719
Test: make
Change-Id: Ibb68cd4e6a6ba49c56b313380ddf16734813459b
Merged-In: Ibb68cd4e6a6ba49c56b313380ddf16734813459b
2020-02-03 19:47:22 +08:00
Aaron Huang
2108944c13 Use Context.NETWORK_POLICY_SERVICE to get network policy service
INetworkPolicyManager is a raw AIDL file which won't expose
as system API. Let's communicate with network policy service
through NetworkPolicyManager instead. Context.NETWORK_POLICY_SERVICE
is @SystemApi.

Bug: 138306002
Test: atest FrameworksNetTests
      atest FrameworksTelephonyTests

Change-Id: I41bc1cce08f81e2d822250f2d620bff7afe4329b
Merged-In: I41bc1cce08f81e2d822250f2d620bff7afe4329b
2020-02-03 19:27:37 +08:00
Aaron Huang
79f52ea525 Add setSubscriptionOverride() to system API
Add new API setSubscriptionOverride() in NetworkPolicyManager
and rename constants OVERRIDE_* to SUBSCRIPTION_OVERRIDE_*.
Make them @SystemApi for mainline support.

Bug: 138306002
Test: atest FrameworksNetTests
      atest FrameworksTelephonyTests

Change-Id: I56c777aa66d6f455695f133f9889979c13cd1bc8
Merged-In: I56c777aa66d6f455695f133f9889979c13cd1bc8
2020-02-03 19:26:42 +08:00
Alex Lin
d0c492f00f Add public API for EuiccService log dump
Add public APi to EuiccService which allows the connected LPA to dump
out the logs when a bug report is triggered.
Bug: 62881779
Test: manually tested by extracting bug report to see if the logs are
present and atest EuiccServiceTest

Change-Id: I0869b95d12ab87a5e2a255015549191040d9daa7
Merged-In: I0869b95d12ab87a5e2a255015549191040d9daa7
2020-01-31 14:05:58 -08:00
Mingming Cai
62eb925376 Merge "Comments for getNetworkRegistrationInfo with multiple domains" 2020-01-31 20:49:24 +00:00
Shuo Qian
5aa9de8cf1 Merge "Create the ID for each gating key. Modify the names and descriptions per Compat team requirement." 2020-01-31 20:08:33 +00:00
Shi Lu
ec5c5b57ef Merge "API Review: ServiceState.isSearching documentation" 2020-01-31 18:30:59 +00:00
sqian
7801d982bd Create the ID for each gating key.
Modify the names and descriptions per Compat team requirement.

Test: Treehugger
Bug: 148534348
Bug: 148535736
Bug: 147600208
Change-Id: Id9d0366714aa4ecb240d2b9e726d35a474879325
Merged-In: Id9d0366714aa4ecb240d2b9e726d35a474879325
(cherry picked from commit b32797b202
2020-01-30 17:59:02 -08:00
Mingming Cai
a42253be8c Comments for getNetworkRegistrationInfo with multiple domains
Bug: 147917681
Test: make
Change-Id: Icba1814ceba1ef87c1c2710fe5fef65e00a1cec1
2020-01-30 17:25:28 -08:00
Meng Wang
2b1b1bb22d Merge "Fix import of Rlog - generated by formatting tool" 2020-01-31 00:59:09 +00:00
Rambo Wang
c6c0ca613b Add Nullability Annotations and verification to CellIdentity
Bug: 148177166
Test: atest FrameworksTelephonyTests
Change-Id: Ie98db2ce393a76644a4773045eafc28ce6f4a4cb
Merged-In: Ie98db2ce393a76644a4773045eafc28ce6f4a4cb
(cherry picked from commit 33f62a071c)
2020-01-31 00:10:29 +00:00
Meng Wang
e3387ef9c4 Fix import of Rlog - generated by formatting tool
Test: make
Merged-In: Ibe36c6d0fe8bfb6277d7b9034af8dbf45ce2f716
Change-Id: Ibe36c6d0fe8bfb6277d7b9034af8dbf45ce2f716
2020-01-30 12:38:32 -08:00
sqian
de188ac200 Support Call Forwarding and Call Waiting APIs for voice call.
Allows system apps to get/set call forwarding configuration including
 reason, status, number and timeout.

Allows system apps to get/set the status for call waiting function;
Call waiting function enables the waiting for the incoming call when
 it reaches the user who is busy to make another call and allows users
 to decide whether to switch to the incoming call.

Test: Cts; Treehugger; https://paste.googleplex.com/5810435984982016
Bug: 147920077
Change-Id: Iadeea607749c67209df8cb1313f8b134df0a5c4a
Merged-In: Iadeea607749c67209df8cb1313f8b134df0a5c4a
(cherry picked from commit ce96e26c27)
2020-01-29 14:59:27 -08:00