Commit Graph

11597 Commits

Author SHA1 Message Date
zoey chen
c647fa10a9 [TelephonyMainline] Make getMergedSubscriberIdsFromGroup as System API and rename it
Bug: 145584030
Test: make
Merged-In: I6c077f3bee6bfd4d5b215aca4e9b19b719772b29
Change-Id: I6c077f3bee6bfd4d5b215aca4e9b19b719772b29
2020-08-27 15:57:57 -07:00
Josh Hou
1f17c75beb Merge "Allow call forwarding number with prefixes to be dialed while on IMS roaming" 2020-08-26 16:32:53 +00:00
Tyler Gunn
f12f3415d0 Merge "Add default constructor to NR cell classes" 2020-08-19 14:54:39 +00:00
Meng Wang
f3c71997ee Add KEY_VOICE_OVER_WIFI_ENTITLEMENT_ID
Bug: 164250692
Test: make
Change-Id: I917085cf6f962c7f5cc7088e2e5298597f661514
Merged-In: I917085cf6f962c7f5cc7088e2e5298597f661514
2020-08-18 02:22:11 +00:00
Brad Ebinger
a8acd5c0c3 Merge "Remove IMS call logs that may leak PII" 2020-08-14 17:18:47 +00:00
Sneh Bansal
3737f3a44a Add default constructor to NR cell classes
The default constructor is missing in CellInfoNr and CellIdentityNr
classes. All the other CellInfo* and CellIdentity* classes have it.

Also, add setCellIdentity(CellIdentityNr) method to CellInfoNr.

Bug: 147260058
Test: m
Change-Id: Iefa1ec346bcef612f020f79cbc858649105cd406
2020-08-14 12:08:02 +05:30
Brad Ebinger
3678f55652 Remove IMS call logs that may leak PII
Bug: 160389340
Test: Check logs for PII
Change-Id: I203b37d8e643c59d69aa26097d223fc4b3f8e332
Merged-In: I203b37d8e643c59d69aa26097d223fc4b3f8e332
2020-08-13 17:46:45 +00:00
Sooraj Sasindran
922e9bfd95 Merge changes from topic "move-inflate-ss-to-cc"
* changes:
  Remove config_inflateSignalStrength
  Move config_inflateSignalStrength to CC
2020-08-11 00:03:09 +00:00
Josh Hou
6aac86eed5 Allow call forwarding number with prefixes to be dialed while on IMS roaming
If the carrier supports call forwarding number prefixes to be allowed
while on IMS roaming, then the number should be dialed and forwarded successfully

Bug: 153413483
Test: Verify the call using *72 <number to be forwarded to> is dialed and forwarded successully
Change-Id: Ia93dec2ebb11aa3ab8f48975a9b6f02089d1482b
Merged-In: I6cd1e60e0dbb634581c97552dad244383ff4e3f9
2020-08-06 16:55:48 +08:00
Peter Wang
8ba18c0508 Merge "[Telephony Mainline] Rename getActiveAndHiddenSubscriptionIdList and guard with permission" 2020-07-31 08:43:44 +00:00
Treehugger Robot
e5e46c6dfd Merge "Update toString in ImsReasonInfo" 2020-07-31 04:38:03 +00:00
Tyler Gunn
a005cb30ed Merge "Update language to comply with Android's inclusive language guidance" 2020-07-30 20:42:55 +00:00
Amruth Ramachandran
22d5710f02 Update toString in ImsReasonInfo
Added map of int code to string for log readability

Bug: 162505455
Test: Verified with device test
Change-Id: I7aa3cf31737e2e44aa4d63eac643a5d283d8a06f
2020-07-30 16:44:02 +00:00
Treehugger Robot
1a1dcba955 Merge "Fix description of indices for messages in the ICC." 2020-07-30 02:45:56 +00:00
Shuo Qian
4717b01367 Change the range checking for ssrsrq
Test: Telephony tests
Bug: 159761054
Change-Id: I383f3b5c7b4e89fa7e9cd3be6e77c3d99552b99c
Merged-In: I383f3b5c7b4e89fa7e9cd3be6e77c3d99552b99c
(cherry picked from commit 71818ce490)
2020-07-29 19:06:23 +00:00
Tyler Gunn
460360d6b8 Update language to comply with Android's inclusive language guidance
See https://source.android.com/setup/contribute/respectful-code for reference

Test: Presubmit
Bug: 161896447
Change-Id: I4142f4819f5ed3e2ffddf471b90923985e72523a
2020-07-29 10:23:07 -07:00
Treehugger Robot
2d78a290d4 Merge "Fix Docs for KEY_CARRIER_SUPPORTS_SS_OVER_UT_BOOL" 2020-07-28 18:02:50 +00:00
Treehugger Robot
8ebbe3c038 Merge "Expose adhoc conference calling API as public." 2020-07-28 17:08:47 +00:00
Nathan Harold
abe015171f Merge "Update Docstrings for #requestLocationUpdate()" 2020-07-28 17:01:47 +00:00
Grace Jia
8587ee5cd5 Expose adhoc conference calling API as public.
Bug: 159944852
Test: make
Change-Id: I2cf39a6fd8a02ca4f2d0c83c484ab12bb13f74c3
2020-07-27 11:18:36 -07:00
Mattias Nilsson
59c5560509 Remove config_inflateSignalStrength
This resource has moved to CarrierConfig to support dual
sim devices and MVNOs.

Bug: 148483577
Test: Manual
Merged-In: I494cb93a2c72ff3df2ef45ad737c5606132e32d1
Change-Id: I494cb93a2c72ff3df2ef45ad737c5606132e32d1
2020-07-27 17:30:43 +00:00
Mattias Nilsson
f8c6f34832 Move config_inflateSignalStrength to CC
Sim based customizations should not be resources because
of two reasons:
1. The MCC/MNC value in AssetManager for Dual sim devices is undefined
2. There is no support for MVNOs.

For dual sim devices there is only one value for MCC/MNC in
AssetManager and that value is updated from multiple places without
deciding if it should be the default voice sim card, the default
data sim card or whatnot.
  This means that when frameworks is trying to decide what resource
to use there is no guarantee that the resource that arrives is for
the particular subscription we are asking for.

MVNOs cannot be separated through only MCC/MNC but need more
parameters like service provider, imsi, GID1 etc. MVNO support
is available in CarrierConfig.

When we now have support for ADCP updates of customizations and
start using carrier id this is better placed in CarrierConfig,
we then get support for MVNOs at the same time.

Bug: 148483577
Test: Customize for sim card x and not for sim card y, insert both
sim cards in a dual sim device and see the difference.

Merged-In: I067d55b9ae5e1346dd3b3cd50a0097b05b100055
Change-Id: I067d55b9ae5e1346dd3b3cd50a0097b05b100055
2020-07-27 17:30:27 +00:00
Brad Ebinger
31313d6566 Fix Docs for KEY_CARRIER_SUPPORTS_SS_OVER_UT_BOOL
Fixes: KEY_CARRIER_SUPPORTS_SS_OVER_UT_BOOL
Test: Docs only change, m
Change-Id: Ifcbf147f3734a33250f46ddfc56c72cdbd4d3626
2020-07-27 10:19:01 -07:00
Nathan Harold
cbdebc8d55 Update Docstrings for #requestLocationUpdate()
Address API Council feedback for CellLocation#requestLocationUpdate

-Update the summary string to indicate the functionality
 for pre-SDK31 behavior.
-Clarify that this API is only useful in power-saving modes.
-Remove justification for deprecation leaving a simple link to
 a superior alternative.

Bug: 161207204
Test: make offline-sdk-docs && make (docstring only change)
Change-Id: Ib931906323fe1ec2c730271cefd0d46aee60d963
2020-07-27 10:08:53 -07:00
Treehugger Robot
4becee9740 Merge "Disable DUN APN while roaming for certain carriers" 2020-07-24 17:12:50 +00:00
Sarah Chin
f39b4cbec1 Expose NR State string method for use in RadioInfo
Test: build
Bug: 160825855
Change-Id: Ie709cad1c94ad204c46a559d316f45da16c3541c
Merged-In: Ie709cad1c94ad204c46a559d316f45da16c3541c
2020-07-23 09:45:26 -07:00
Jack Yu
c42d38c3ea Fixed unreadble debug messages
Fix: 158875554
Test: Manual
Change-Id: I8aa45474521e4ef5e2368ab25c6c39445e9f779c
Merged-In: I8aa45474521e4ef5e2368ab25c6c39445e9f779c
2020-07-23 09:45:05 -07:00
Jack Yu
cc8d4f6860 Disable DUN APN while roaming for certain carriers
Some carriers would like to use default APN for
tethering while the device is roaming. Added a new
carrier config to disable DUN APN while the device
is roaming.

Fix: 158546796
Test: DcTrackerTest
Merged-in: I2e633fd764f86b196a6ee0c29af2b97733e82c66
Change-Id: I2e633fd764f86b196a6ee0c29af2b97733e82c66
(cherry picked from commit db897af77d)
2020-07-22 15:13:22 -07:00
SongFerngWang
a88f75d097 Add carrier config for NR timer reset
KEY_NR_TIMERS_RESET_IF_NON_ENDC_AND_RRC_IDLE_BOOL:
Whetherdevice reset all of NR timers when device camped on a
network that haven't 5G capability and RRC currently in IDLE state.

Bug: 160365713
Test: build pass.
Change-Id: I9802b8712798054a85307e549fb665bc85166311
Merged-In: I9802b8712798054a85307e549fb665bc85166311
2020-07-20 12:59:30 +08:00
Taesu Lee
24115e8823 Fix description of indices for messages in the ICC.
Bug: 161478651
Test: build

Signed-off-by: Taesu Lee <taesu82.lee@samsung.com>
Change-Id: I66adaf4e4cd392c837c3719bd1f36a426938933e
2020-07-17 14:46:44 +09:00
Nathan Harold
83cbf59a70 Merge "Migrate LTE_CA flag to NRI from DSRI" 2020-07-16 16:59:34 +00:00
Peter Wang
c061cdf467 [Telephony Mainline] Rename getActiveAndHiddenSubscriptionIdList and
guard with permission

Bug: 150878235
Fix: 150878235
Test: Build
Change-Id: I7f3b1f5170e032336d9b39b322c49e2b92573586
Merged-In: I7f3b1f5170e032336d9b39b322c49e2b92573586
2020-07-16 02:01:06 -07:00
Peter Wang
548f34b47d Add a null check for EuiccProfileInfo access rules at creation
Bug: 158780604
Fix: 158780604
Test: Build
Change-Id: I6432499309115c7ca29f4704e0f5cfc871eb4d00
Merged-In: I6432499309115c7ca29f4704e0f5cfc871eb4d00
2020-07-15 17:34:27 -07:00
Shuo Qian
431b6f353e Change the range of SS-RSRQ per 3GPP TS 38.133 section 10
Test: Doc changes; unit tests
Bug: 159761054
Change-Id: I46ff439d43f64ff21ba5072a8533c60d2557bbb2
Merged-In: I46ff439d43f64ff21ba5072a8533c60d2557bbb2
(cherry picked from commit 26e679e8e4)
2020-07-15 00:27:57 +00:00
Nathan Harold
65530b7549 Merge "Remove Kernel Command Line Support for CDMA Config" 2020-07-14 16:24:19 +00:00
Treehugger Robot
1b87c970c8 Merge "Fix some style issues" 2020-07-14 10:45:39 +00:00
Taesu Lee
1ec60185f8 Suppress showing "Invalid Validity Period-1" for sending messages
Show the error log when only wrong value is set actually for sending
instead.
And it includes some cleanup.

Bug: 161156510
Test: MO SMS and check log

Signed-off-by: Taesu Lee <taesu82.lee@samsung.com>
Change-Id: I2b58b431c59c52dd05cfa54ac34551550cd614d2
2020-07-14 16:05:44 +09:00
Taesu Lee
2238af8e30 Fix some style issues
Test: build

Signed-off-by: Taesu Lee <taesu82.lee@samsung.com>
Change-Id: I119d6351057d91a11c9bb58ea6b469807f469c38
2020-07-14 12:13:24 +09:00
Nathan Harold
c7ecbd8f1e Remove Kernel Command Line Support for CDMA Config
Remove support for the kernel-command-line-based CDMA
modem config flag. Devices must now use the system property,
which is also set at OS compile time and is available before
telephony. Since there's no drawback, and kernel command line
flags are not the right place for this, good riddance.

These APIs were marked @UnsupportedAppUsage; however, the
API to read the command line had zero usage, and the API to
retrieve the CDMA capability had a single app usage with a
very small installed base, so presumably it's legacy hardware.

Bug: 138225216
Test: compilation (no functional change)
Change-Id: Iac7a23056553465e1d05299df7323daf89fbfd66
2020-07-13 10:08:25 -07:00
Treehugger Robot
a19cd20f01 Merge "Ignore invalid time stamp in SMS PDUs" 2020-07-13 08:10:24 +00:00
Jeff Sharkey
d8d6992c07 Fix a Sms7BitEncodingTranslator threading issue, since translate() method can easily race when called by multiple threads.
Bug: 160733170
Test: Sanity; Telephony unit tests; hard to reproduce
Change-Id: If8347a27a79351e84060c9a35e1cc9efd468f7a0
Merged-In: If8347a27a79351e84060c9a35e1cc9efd468f7a0
(cherry picked from commit 131781145d)
2020-07-10 20:16:02 +00:00
Nathan Harold
277f52a0f4 Merge "Deprecate CellLocation#requestLocationUpdate" 2020-07-10 19:16:01 +00:00
Nathan Harold
a0895c8580 Merge "Remove FIXME that getApnSetting should be NonNull" 2020-07-10 18:00:11 +00:00
Treehugger Robot
b599edc541 Merge "Delete newFromCMT() and newFromCDS() from SmsMessage" 2020-07-10 06:48:53 +00:00
Nathan Harold
a8c853354e Migrate LTE_CA flag to NRI from DSRI
Migrate the isUsingCarrierAggregation flag from
DataSpecificRegistrationInfo to NetworkRegistrationInfo.

This does a few things:
-Allows LTE_CA to be properly reported even in IWLAN legacy
 mode.
-Removes one additional layer of drilling up/down to store
 and retrieve the boolean flag.
-Simplifies the ratcheting logic.

Bug: 156676862
Test: atest FrameworksTelephonyTests
Change-Id: Ia7d9344e590efe0dcf2c7ba6d44d925f72d1e626
2020-07-09 20:38:31 -07:00
Sooraj Sasindran
dc52bd51d8 Merge "Add hidden API to support allowed networks reason" 2020-07-09 22:40:37 +00:00
Taesu Lee
c483107ac7 Delete newFromCMT() and newFromCDS() from SmsMessage
Bug: 160847655
Test: build

Signed-off-by: Taesu Lee <taesu82.lee@samsung.com>
Change-Id: Ie451a24ef6b6c03ee8668fb055d83c7cc4175cdb
2020-07-09 19:23:27 +09:00
Sooraj Sasindran
23eda90058 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
Merged-In: If4424d7d94ac26ad31725a1658dad5751d0d2629
Change-Id: If4424d7d94ac26ad31725a1658dad5751d0d2629
2020-07-08 23:23:05 -07:00
Nathan Harold
bf3fff073f Deprecate CellLocation#requestLocationUpdate
Remove this method, which is undesirable, has unfortunate
side effects, and which is a worse way of getting the current
location than other methods such as TelephonyManager#getAllCellInfo()
(since KK) and TelephonyManager#requestCellInfoUpdate() (since QT/11).

Bug: 152648516
Test: make update-api && make (docstring-only change)
Change-Id: I3c7d345abcdd8c35cf539d33166ddf76ba987b1c
2020-07-06 13:54:42 -07:00
Nathan Harold
0459eb7cdc Remove Support for Deprecated Location Updating
Remove support for location update control that impacts
the services state tracker. This functionality hasn't been
needed in many years, and it has the ability to:
-consume additional battery
-cause ServiceState to be reported incorrectly
-cause the phone to not know about changes to
 the service state (current cell, technology, etc).

Bug: 152648516
Test: compilation - code removal only
Change-Id: I1bf880c037b5c005bdd61a0ff6f5c4000ec2f9be
2020-07-06 13:54:20 -07:00