Commit Graph

4421 Commits

Author SHA1 Message Date
TreeHugger Robot
6f000e189b Merge "Reset cell broadcast config before enabling all channels" into rvc-dev 2020-06-19 22:02:39 +00:00
Jack Yu
88fb45c1a9 Reset cell broadcast config before enabling all channels
Before cell broadcast config service enabling all channels, it
reset all channels that were previously enabled. This will make
sure the full channel config can be pushed down to modem. This
also solved the issue that channel config not sending to modem
when SIM is swapped. Note that a hidden API is added and will
be unhide in the next Android release.

Fix: 155027085
Test: Manual
Merged-In: Id571b990f4e45aea5bbab0dbadce48dda7b2bc56
Change-Id: Id571b990f4e45aea5bbab0dbadce48dda7b2bc56
2020-06-17 15:47:23 -07:00
Sooraj Sasindran
7e4cd920e7 Add hidden API to support allowed networks reason
Add hidden API to support allowed networks type for
specific reason like power.

Bug: 156709797
Test: system test
Change-Id: If4424d7d94ac26ad31725a1658dad5751d0d2629
2020-06-12 18:31:37 -07:00
Brad Ebinger
0b35eb55a8 Merge "Fix MmTelFeatureConnection Memory Leak" into rvc-dev 2020-05-20 19:07:49 +00:00
Brad Ebinger
64e101323b Fix MmTelFeatureConnection Memory Leak
In FeatureConnection, we never cleaned up the ImsFeatureStatusCallback
after it was destroyed, leaving zombie FeatureConnections around.

Bug: 156893040
Test: atest FrameworksTelephonyTests
Change-Id: Idcf8b558c3807a3f9f5094afee532e76ea6f02cb
2020-05-18 17:46:06 -07:00
Malcolm Chen
412a6b5f6e Rename max.active.modems to active_modems.max_count
Bug: 154072245
Test: build
Change-Id: Ie1ce63782994db8092128f81d10040e1a2d684ea
Merged-In: Ie1ce63782994db8092128f81d10040e1a2d684ea
2020-05-09 01:45:01 +00:00
Sarah Chin
86b8a847c7 Remove constants for DisplayInfo logic from DcTracker
Deprecate carrier configs for connected->not connected timer
Replaced DCT events with displayinfo changed listener

Test: atest NetworkTypeControllerTest, DcTrackerTest
Test: manual verify timer and meteredness works as expected
Bug: 154186364
Change-Id: I22a459e79f509f20c6b38386655c4b49315e3be7
2020-04-24 20:21:33 -07:00
Jordan Liu
74918ad98b Merge "Implement equals and hashCode" into rvc-dev 2020-04-20 18:50:02 +00:00
Jordan Liu
00fd9fd017 Implement equals and hashCode
This keeps SmsHeader in sync with cellbroadcastservice.SmsHeader.

Bug: 148482334
Test: builds
Change-Id: I2a3188a603595e4c97acf6413036dcddf35c0b87
2020-04-17 19:10:59 +00:00
Xiangyu/Malcolm Chen
e9dc36d551 Merge "Add a @hide API to indicate 5G and DSDS conflict." into rvc-dev 2020-04-14 22:17:28 +00:00
Malcolm Chen
e92ce14eb7 Add a @hide API to indicate 5G and DSDS conflict.
Bug: 152786064
Test: build and manual
Change-Id: I79a8fda5b70a31acc365ebcbb03b73b20d2443fd
2020-04-14 11:19:48 -07:00
Jack Yu
38de77534a Only setup data when config and sim is ready
SIM needs to be fully loaded before we can setup
data connection because APN slection requires
MCC/MNC on the SIM. Also lots of data related configs
are stored in carrier config. Both needs to be ready
before we can setup a data connection (except for
emergency APN).

Bug: 152816633
Test: Manual + unit tests

Change-Id: I69c7838bdd9751bef4c15e9504519b55afb9fefb
2020-04-07 16:57:59 -07:00
Nazish Tabassum
64056e1262 SIM De-personalization
Added constant support to framework for sim deperso

Test: make
Bug: 69389695
Change-Id: Ia7b9ca82570c1c9a9fed945d687e4bec4e87b3a1
2020-03-31 15:05:16 -07:00
Jack Yu
e3e18663f9 Merge "Get rid of SIM record access in DcTracker" into rvc-dev 2020-03-27 18:44:21 +00:00
Jack Yu
df3001b935 Get rid of SIM record access in DcTracker
DcTracker uses several SIM related signals for different purposes.
Those signals include SIM record loaded/not-loaded, subscription
changed event, and carrier config changed event. Those signals
are slightly different but not that really important to DcTracker.
What DcTracker cares is
1. Whether SIM is inserted or not.
2. Whether configuration changes or not.

By listening to a single carrier config change event can handle
the cases above.

Removed all SIM record related places in DcTracker. SIM record should
not be accessed by anyone outside of UICC controller.

Test: Manual test + unit tests
Bug: 146168348
Change-Id: Iad45933ea77eb460625a891071535cbeaf8ac3b0
2020-03-22 02:41:25 -07:00
Philip P. Moltmann
830833053d Pipe through attributeTag for one SMS permission check
Bug: 136595429
Test: TH
Change-Id: I346ac2d3acad0e0d18b298f89f0b96324fc52333
2020-03-20 10:46:07 -07:00
TreeHugger Robot
0b6c81800f Merge changes from topic "sms-attributeTag-rvc-dev" into rvc-dev
* changes:
  Set attribution tag in TelephonyManager#sendVisualVoicemailSmsForSubscriber
  Merge "Pipe through attributeTag for one self-permission check" am: 9ed7e7f1b1 am: 1bf1d39fa4 am: 6094f4258e am: 7fd121e139 am: b54512bca9
2020-03-20 02:09:28 +00:00
Philip P. Moltmann
f35af1fc36 Merge "Pipe through attributeTag for one self-permission check" am: 9ed7e7f1b1 am: 1bf1d39fa4 am: 6094f4258e am: 7fd121e139 am: b54512bca9
Bug: 136595429
Change-Id: I60bc87fac0070e6d3a749ae5fc8346d9f4f55da8
(cherry picked from commit 24b15eef74)
2020-03-19 16:19:49 -07:00
Sarah Chin
152161ad00 Add constants foor NR_NSA, NR_NSA_MMWAVE
Used for LCE estimates

Test: build
Bug: 149864873
Change-Id: I0faed300c3a2640ef6675ed7497575fe4f364b2c
2020-03-18 19:10:41 -07:00
Shuo Qian
e171bca393 Merge "API Council Feedback - Override EmergencyNumberDB File API" into rvc-dev 2020-03-09 23:17:44 +00:00
Brad Ebinger
6b06c64627 API fix: Rename and clarify ProvisioningManager constants
Fixes: 148515237
Test: atest CtsTelephonyTestCases; atest FrameworksTelephonyTests
Change-Id: I633ad3270f8b7d047c3522a420746b668000d078
2020-03-06 15:49:34 -08:00
Shuo Qian
75c49ab334 API Council Feedback - Override EmergencyNumberDB File API
Use ParcelFileDescriptor; Introduce Reset API

Test: atest TelephonyHostTest#testEmergencyNumberDb
Bug: 147805285
Change-Id: I7a7733c02874c0f17fef8c91b9e543c8e803f504
Merged-In: I7a7733c02874c0f17fef8c91b9e543c8e803f504
2020-03-06 22:56:25 +00:00
Jack Yu
0b9a12c2c4 Removed permission check
Removed permission check for getNetworkCountryIso and made it public.
This API was added since the first version of Android. Removed the
permission check for backward compatibility reason.

Test: Telephony sanity tests
Bug: 149872821
Change-Id: I68833fdf6f078d69bc8c2e5f01cf4e058d6d7093
2020-02-24 11:35:58 -08:00
Sarah Chin
5023ffd225 Carrier config for 5G up/down bandwidth and LTE for NSA
Add default values for 5g upstream/downstream bandwidth
Update default values on NR frequency changed
Config to use LTE values for upstream and 5G for downstream on NSA
Resource overlay for modem predictive/instantaneous bandwidth estimates

Test: atest FrameworksTelephonyTests
Bug: 149032132
Bug: 149032474
Bug: 149032786
Change-Id: I70e95e98c871ba3fdc2e94de9504eafe247619c9
2020-02-19 16:53:42 -08:00
Sarah Chin
dcc3ba7bba Merge changes from topics "revert-10153355-dev_cap-JUKVIAUYRW", "revert-9919494-device_cap-HJIMIMXSXL"
* changes:
  Revert "Modify PhoneCapabilities for device capabilities"
  Revert "PhoneCapability cleanup"
2020-02-20 00:06:18 +00:00
Automerger Merge Worker
0a04056d35 Merge "IMS: Add support for IMS Explicit call transfer" am: 12f7f43ec8 am: 4c0cd62311 am: f65d00890f
Change-Id: Ic8231acd8330c91998f0cb479a7a6fbe3ea5bda1
2020-02-19 23:19:00 +00:00
Automerger Merge Worker
2a68279332 Merge "[SP15] Remove unused getVtDataUsage in TelephonyMananger" am: 7e0dbc53e3 am: 5f0be54993 am: a61f378be4
Change-Id: I4cb5598176ccce3d7d9f5dcdc47a8ed9210f00ed
2020-02-19 23:05:23 +00:00
Sarah Chin
a9667afd6d Revert "Modify PhoneCapabilities for device capabilities"
Reason for revert: Change not supported by modem
This reverts commit b1264fe56b.

Bug: 149522248
Bug: 143238237
Change-Id: I17315f5b99ad7c5a5a6d88ed21a825301fa8e5e5
2020-02-19 20:42:46 +00:00
Tyler Gunn
12f7f43ec8 Merge "IMS: Add support for IMS Explicit call transfer" 2020-02-19 18:55:20 +00:00
Automerger Merge Worker
4ee54d4f92 Merge "Use month in the range 1-12 for 3GPP2 SMS Time Stamp instead" am: 223696559f am: fe80efe1d1 am: 163015b675
Change-Id: I8d1844e8cc707fc40e008c0c3540709ada31d875
2020-02-19 06:06:30 +00:00
Junyu Lai
7e0dbc53e3 Merge "[SP15] Remove unused getVtDataUsage in TelephonyMananger" 2020-02-19 01:10:38 +00:00
Taesu Lee
c8ec731663 Use month in the range 1-12 for 3GPP2 SMS Time Stamp instead
Zero-based month is not needed anymore since android.text.format.Time is
replaced with LocalDateTime. For the safety, just rename "month" to
"monthOrdinal" in the range 1-12.

Bug: 146021623
Test: atest CdmaSmsTest

Change-Id: I0eb5bad9b3701217a6e4f44bfcd76013576d79d5
Signed-off-by: Taesu Lee <taesu82.lee@samsung.com>
2020-02-17 17:55:25 +09:00
junyulai
9cd0ea1767 [SP15] Remove unused getVtDataUsage in TelephonyMananger
Test: atest FrameworkTelephonyTests
Bug: 143923500
Change-Id: I31b7041dc2591b354200da5637496f071fc4aa9f
2020-02-14 16:31:41 +08:00
Ravi Paluri
f4b38e7ff1 IMS: Add support for IMS Explicit call transfer
Test: Manual
Bug: 62170207
Change-Id: I06a256adb0e1910d40809c91bcdd42c56a142842
2020-02-14 11:02:09 +05:30
Rambo Wang
c970b3f89e Merge "Introduce a new RIL request constant to support getBarringInfo." 2020-02-14 03:14:37 +00:00
Meng Wang
9c99325b87 Revert "System API used by telephony to bind to WapPushManager app."
This reverts commit e6a40697e1.

Reason for revert: API review comments

Bug: 148179277
Change-Id: I729e1c27492b25cfcdb4244e294672ba34a7e7ea
2020-02-10 14:42:41 -08:00
Jayachandran Chinnakkannu
dea1e8afd9 Merge "Make DEFAULT_PREFERRED_NETWORK_MODE @hide for now" 2020-02-06 23:07:30 +00:00
Rambo Wang
284118f9e0 Introduce a new RIL request constant to support getBarringInfo.
Bug: 148981484
Test: make
Change-Id: I05e0abe29f6d8c5796c777fd83d76e398e35b6b1
2020-02-06 18:52:06 +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
Jayachandran C
8c3919f906 Make DEFAULT_PREFERRED_NETWORK_MODE @hide for now
This API also needs to expose the possible values which would need more
work hence we will drop this for now and re-work for next release

This CL also fixes a bug to use correct RIL constant

Bug: 148514283
Bug: 148484234
Test: Verified that the eSIM works on DSDS
      atest packages/services/Telephony/tests/
      atest frameworks/opt/telephony/tests/telephonytests/

Change-Id: Ifd7b17cc2445c9cbe4c6ba688838a1b07eb13599
2020-02-05 15:37:05 -08: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
Shuo Qian
4b779449d7 Remove hidden setRadioIndicationUpdateMode in TelephonyManager
We need to remove the previous hacky hidden API
 setRadioIndicationUpdateMode and its implementation in Telephony.
 This is an hidden API that affects power cost. We should remove it
 to prevent potential users to use it unexpectedly (e.g. in reflection)

Test: Manual by making a call
Bug: 148544396
Change-Id: I0bce99b5363392bbaf9cf76dad8c1b47a138fd19
2020-02-04 17:50:09 -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
Jack Yu
de1fa3078c Merge "Move GsmSmsCbMessage to CBReceiver test app" 2020-02-04 17:04:11 +00:00
Jordan Liu
4583717145 Move GsmSmsCbMessage to CBReceiver test app
After removing platform handling of cell broadcasts (in favor of
CellBroadcastService module) the GsmSmsCbMessage class is only used by
CellBroadcastReceiver test app, so move the class there.

Bug: 135956699
Test: manual
Merged-In: Ia1d19356c34f9a13638c10d1c1b9e53c6b69fddd
Change-Id: Ia1d19356c34f9a13638c10d1c1b9e53c6b69fddd
(cherry picked from commit 803c885513)
2020-02-03 22:45:46 -08: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
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
Meng Wang
1dbea2f840 Fix import of Rlog - generated by formatting tool
Test: make
Change-Id: Ibe36c6d0fe8bfb6277d7b9034af8dbf45ce2f716
2020-01-30 12:25:08 -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