Commit Graph

11747 Commits

Author SHA1 Message Date
Michele Berionne
898e2b53a7 Handle setAllowedCarriers() with empty list of carriers
Bug: 204136145
Test: unit testing
Change-Id: I9779180ff1c3e926f97e010ca6026c5fb950046d
2022-01-13 22:02:39 +00:00
Jack Yu
e7ca21aa12 Fixed NPE when local or remote port range does not exist
Added null check for local and remote port range.

Bug: 213523984
Bug: 213139361
Test: atest QosBearerSessionTest
Merged-In: I749f369c0daa5c840a77d37828f65e42262d85f5
Change-Id: I749f369c0daa5c840a77d37828f65e42262d85f5
2022-01-10 10:26:31 -08:00
Meng Wang
33c6221c5b ImsServiceEntitlement default values missing
ImsServiceEntitlement.* configs and their default values
were added in S at
commit e600a8e4e8.

Somehow the default values are missing now. Add back.

Bug: 210485357
Change-Id: I98d943394ed308956c5271b8efaa5094d15dc8ca
2021-12-13 19:09:32 +00:00
Gary Jian
eaa09ebfab Make KEY_VONR_SETTING_VISIBILITY_BOOL default to true
Bug: 205809218
Test: make
Change-Id: I02ea3ad61a0dc1cd09f0bd541008de0e46e3d0ab
2021-11-15 19:26:34 +08:00
TreeHugger Robot
ae0f5315ad Merge "Adds new configs to support 5g+4g opportunistic switching." into sc-v2-dev 2021-11-11 19:32:45 +00:00
Jack Nudelman
5914c4592e Adds new configs to support 5g+4g opportunistic switching.
Bug: 186688682
Test: manual testing
Change-Id: Ia78bde63f2471823bb5765cd8022b1aca0074923
Merged-In: Ia78bde63f2471823bb5765cd8022b1aca0074923
2021-11-11 16:00:35 +00:00
Tyler Gunn
a208bcce58 Merge "Add config to detect e-call call based on dialed sim emerg # list." into sc-qpr1-dev am: 8a7e825938
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16150137

Change-Id: Iab11604bff41682864b5da319a3c14e3eef38e17
2021-11-02 16:12:32 +00:00
TreeHugger Robot
328b8f6c87 Merge "Ensure that ScanInfo is cached before callbacks fire" into sc-v2-dev 2021-11-01 17:48:24 +00:00
Tyler Gunn
11dd6452d6 Add config to detect e-call call based on dialed sim emerg # list.
We normally use the combined emergency number list from the emergency
number lists of both sims when placing emergency calls, with the provision
that the routing may be unspecified if a dialed number is an emergency
number on one sim but not the other.

This config allows a carrier to mandate that calls are only treated as
an emergency call on their network based on their own emergency number
list.

Test: TBD
Bug: 203947159
Change-Id: Id5cd4123f1bb7bdd85e564fc6997dfbc50652a5f
2021-10-29 12:48:06 -07:00
Gary Jian
8fd3a38f5a Merge "Added nr advanced calling settings support" into sc-v2-dev 2021-10-28 03:20:09 +00:00
Nathan Harold
f183b69cf5 Ensure that ScanInfo is cached before callbacks fire
Fixes a regression that was introduced in aosp/1312940.

There is a critical section in requestNetworkScan after the scanId
has been generated and before the ScanInfo is added to the cache.
If during this time a callback fires on a separate thread, it will
not yet find the ScanInfo record, and due to strict checking, this
causes a RuntimeException. This CL re-expands the synchronized block
to cover the critical section, and clarifies a little bounds checking.

Note: this change is not ideal. This means that all callbacks for all
scans will be blocked while a request for a new scan is being made,
which was the motivation behind the change that introduced this
regression. But, a narrow performance hit is better than a crash, and
it's not worth the complexity of a bigger fix.

Bug: 200634560
Test: compilation
Merged-In: I4670da109256170121ceb6d8fbad0efda310335f
Change-Id: I4670da109256170121ceb6d8fbad0efda310335f
2021-10-26 19:16:39 +00:00
Gary Jian
6a837e5352 Added nr advanced calling settings support
- Added a telephony provider entry for storing the user's settings.
- Added new vonr_enabled_bool config to determine whether
  VoNR should be enabled for carrier

Bug: 202150953
Test: manual
Change-Id: Ie56a7de3fdb978353af77bafb55b0e37c22b58a4
Merged-In: Ie56a7de3fdb978353af77bafb55b0e37c22b58a4
2021-10-25 17:26:51 +08:00
Jack Yu
5e7b8533ef Supported minimum aggregated bandwidth and roaming for 5G+
1. Added minimum bandwidth support. 5G+ icon is only
   shown when the aggregated bandwidth is above the threshold.
2. Allowed carrier to disable 5G+ while roaming.

Bug: 198831438
Bug: 201455505
Test: atest NetworkTypeControllerTest
Change-Id: I1f40de5ee559a6d703806e74d305267bde295dcc
2021-10-20 08:33:01 +00:00
Rambo Wang
5fe9ded12e Limit the uniqueness of SignalMeasurementType instead of RAN in
SignalStrengthUpdateRequest

Support different SignalMeasurementType with same type of RAN
is valid user case. For example, client may be interested to
measure both RSRP and RSRQ for EUTRAN.

Throw IAE if the SignalThresholdInfo collection is empty. This
is behavior specified in the public interface.

Bug: 198318496
Test: atest SignalStrengthUpdateRequestTest
Merged-In: I87ea5e356189f61fc58dff80456aff35ea2a8e55
Change-Id: I87ea5e356189f61fc58dff80456aff35ea2a8e55
(cherry picked from commit 924964767c)
2021-09-21 10:13:11 -07:00
Sooraj Sasindran
21cb293e88 Merge "Add NR to global mode" into sc-qpr1-dev 2021-09-20 18:15:23 +00:00
Sooraj Sasindran
147a3b2d26 Add NR to global mode
add NR to global mode

Bug: 199325502
Test: Verified on Pixel 4 and confirmed no regression
Change-Id: Iffcd61678ced05a4d281961f875190e5682bf89e
2021-09-18 01:33:36 +00:00
Calvin Pan
f7e9afbea4 Check the timeout only the reason is CF_REASON_NO_REPLY
The timeout in call forwarding is only valid for CF_REASON_NO_REPLY
reason, so only check if reason is CF_REASON_NO_REPLY

Bug: 194112447
Test: enable/disable call forwarding
Change-Id: I290d5fa64f0a32ddcaf1f16c51b99f52e8e38913
2021-09-13 10:16:54 +00:00
Sooraj Sasindran
5dbec20ded VoNR toggle
Allow user to enable or disable voice over NR.

Bug: 190668235
Test: verified using settings UI
Change-Id: I655dc93c0b213e1b85b29b9a168f99072ca82186
2021-09-03 16:15:29 +00:00
Jack Nudelman
5d57ddce8c Merge "Enable specification of 5G network info and carrier configs for ONS changes" into sc-qpr1-dev 2021-09-02 20:01:25 +00:00
Jack Nudelman
4da7aabf2e Enable specification of 5G network info and carrier configs for ONS changes
Bug: 191878731
Bug: 186688084
Test: Will test locally once partner device and infrastructure is ready.

Change-Id: I7c866741dd86c3d675ea7c4dfe50d0992ab145f1
Merged-In: I7c866741dd86c3d675ea7c4dfe50d0992ab145f1
2021-09-01 18:25:51 +00:00
Hui Wang
3cf475553e Check if the slot info is null to avoid exception
Bug: 198298029
Test: manual
Change-Id: Id5ad70e24ee2ddbb0e4910257e298c33709044a0
2021-08-31 20:39:18 +00:00
Brad Ebinger
4e51482aaf Remove SipDelegates in ImsService if Phone process crashes
If the phone process crashes, have the ImsService detect this
condition and destroy all SipDelegates. This allows the AM
app to properly recover when telephony comes back up

Bug: 195148134
Test: manually crash phone process and then send RCS message
Test: atest FrameworksTelephonyTests:SipTransportImplBaseTest
Change-Id: I7866273d801df4d2b20e58f5d5ad50fd0ac4303d
2021-08-03 22:22:21 +00:00
Amruth Ramachandran
4afa9546f9 Merge "[PhysicalChannelConfig] UL's frequency should not be same with DL's" into sc-dev 2021-07-27 13:47:33 +00:00
Zoey Chen
e5225ba858 [PhysicalChannelConfig] UL's frequency should not be same with DL's
Bug: 194042135
Test: atset PhysicalChannelConfigTest
Change-Id: I1225a1429ff77b33c54af0dfce60a8739494e47a
Merged-In: I1225a1429ff77b33c54af0dfce60a8739494e47a
2021-07-27 00:43:16 +00:00
Mingming Cai
9ee4e9bbe9 Fix CQI range in CellSignalStrengthNr
bug: 194634718
Test: make
Change-Id: I784f2930999871b6bb90f4e17a2ba694da35126a
2021-07-26 16:55:31 -07:00
SongFerngWang
7ac38075c7 Modify KEY_LTE_ENDC_USING_USER_DATA_FOR_RRC_DETECTION_BOOL's description
Some Carriers define the 5G icon's Idle state in ENDC LTE is no
internet data connection. The config's description is not clear,
so adding more information.
Bug: 193848289
Test: build pass

Change-Id: Ie6e8dcd98743746bac1be78c653fb27f214777f9
2021-07-22 23:20:32 +08:00
Rambo Wang
588ec9f398 Clear binder identity in callback of IMS IPC interfaces
The binder identity does get cleared when goes from client process
into phone process. When it comes back from phone to client, the
binder identity should also be cleared.

Bug: 193923945
Test: atest android.telephony.cts.TelephonyManagerTest
Test: atest ImsServiceTest RcsFeatureControllerTest ImsMmTelManagerTest
Merged-In: I34225e32111879e155c9f7865f0045430d171467
Change-Id: I34225e32111879e155c9f7865f0045430d171467
(cherry picked from commit c18002c465)
2021-07-19 14:54:58 -07:00
Brad Ebinger
c3e6fc7a05 Merge "Gate CDMA Supplementary Services on a CarrierConfig item" into sc-dev 2021-07-16 18:04:16 +00:00
Brad Ebinger
783f66f0bd Gate CDMA Supplementary Services on a CarrierConfig item
Introduce the KEY_SUPPORT_SS_OVER_CDMA_BOOL carrier config, which
allows Supplementary Services to be changed via carrier USSD codes.

This is disabled by default because the current USSD codes are not
configurable per carrier, so it can not be widely enabled.

Bug: 191057045
Test: manual, configuration changes
Change-Id: I3aeb1793c0df4f52764fef5fd09db47efe841dc2
2021-07-15 16:09:56 -07:00
Brad Ebinger
2186a56187 Catch ServiceSpecificExceptions properly when getting reg state/ transport type
We were not catching ServiceSpecificExceptions that were thrown,
causing unclear exceptions. Instead, return the default value when
the ImsService is unavailable.

Bug: 192930411
Test: atest CtsTelephonyTestCases
Change-Id: I3d50b19047bc287ce6200e75bb59cf98bf8bfef0
2021-07-12 13:57:34 -07:00
TreeHugger Robot
30debe6591 Merge "Add carrier config for using user data to detect RRC state" into sc-dev 2021-07-02 22:05:39 +00:00
SongFerngWang
af6fd22efb Add carrier config for using user data to detect RRC state
This configuration allows the framework to use user data
communication to detect RRC state.

Bug: 191321871
Test: build pass and no phone crash.
atest NetworkTypeControllerTest  (pass)

Change-Id: Ieffabd25a74faf2038b2e08e956fa16c9efdd3ca
2021-07-03 02:01:15 +08:00
TreeHugger Robot
c2a780dbd6 Merge "Update documentation outlining results during voice calls." into sc-dev 2021-06-30 16:11:27 +00:00
Jack Nudelman
bc9ef4c8da Update documentation outlining results during voice calls.
Test: Just comment change, test not necessary
Bug: 192446339

Change-Id: I7fe0efdaa0b28f8d8a4389d7249f20d06ab258d0
2021-06-30 13:54:01 +00:00
James Lin
5f1dd57e55 Merge "[UCE] Set the default value of the list subscribe to false" into sc-dev 2021-06-30 05:55:10 +00:00
Zoey Chen
fc3e38324f Merge "[Telephony] Add description about location permission" into sc-dev 2021-06-30 01:23:39 +00:00
James.cf Lin
5b001197d8 [UCE] Set the default value of the list subscribe to false
Set the default value of the list subscribe to false because there are not many carriers support the list subscription

Bug: 190683278
Test: atest RcsUceAdapterTest
Change-Id: I146637fda050a74f593c1b221364c18a03d2da5e
2021-06-29 21:01:06 +00:00
Zoey Chen
6d33beea88 [Telephony] Add description about location permission
- Hold ACCESS_FINE_LOCATION: full service state
    - Hold ACCESS_COARSE_LOCATION: set cellIdentity is null
    - No local permission: set cellIdentity, mOperatorAlphaLong, mOperatorAlphaShort
        and mOperatorNumeric are null

Bug: 165014401
Test: make
Change-Id: I9ada08a530d9b8bc8483edfad783ff3b7434faa3
2021-06-29 16:11:13 +08:00
Jayachandran Chinnakkannu
98a11ef7b1 Merge "QOS: Check for portRange validity before filter matching" into sc-dev 2021-06-29 06:12:27 +00:00
Jayachandran C
bd4bd964f4 QOS: Check for portRange validity before filter matching
Bug: 191810683
Test: Manual
      atest com.android.internal.telephony.dataconnection.QosCallbackTrackerTest
Change-Id: Iaad16f7efe4bfaea3abd296547b5c53426a29854
2021-06-28 19:19:34 -07:00
James.cf Lin
78733ad48f [UCE] Fix NPE in the RcsContactUceCapability
When get the RcsContactPresenceTuple from the RcsContactUceCapability, it should check whether the servier ID is null or not

Bug: 191836903
Test: atest RcsContactUceCapabilityTest
Change-Id: I987c6f1fbcabfe64688f1d71210c83b6c4d8d9e0
2021-06-29 04:06:23 +08:00
Jack Yu
9138a21e70 Made same APN retry maximum counter configurable
The default counter was hardcoded as 3. Made this counter
configurable through carrier config. For infinite retry
the counter could be configured as 2147483647 (i.e. INT_MAX)

Test: atest RetryManagerTest
Fix: 190482957
Change-Id: I1bac995ea208bac9bd9e1b61432135dc4385d036
2021-06-10 21:48:54 +00:00
Jack Yu
d3602b12ee Added service temporarily unavailable support
Added a mechanism for underlying data service to report
service temporarily unavailable. In this case, frameworks
uses the configured retry timer to retry establishing data
connection again.

Fix: 184122463
Test: atest DataConnectionTest
Change-Id: I57705b720b6438d8f9f0076f83decc1c17782f6b
2021-06-08 10:56:09 -07:00
Amit Mahajan
7423e085c5 Merge "Add configurable RSRP boost for 5G NR SA." into sc-dev 2021-06-07 17:00:00 +00:00
Amit Mahajan
ae5f04d42a Add configurable RSRP boost for 5G NR SA.
Test: atest CellSignalStrengthNrTest
Bug: 187679048
Change-Id: Ic6becca786e5f039194ffb48ca572ff1ab7ce305
2021-06-04 11:07:07 -07:00
Sarah Chin
327f915971 Merge "Add function to get APN types as ints from bitmask" into sc-dev 2021-06-04 15:39:14 +00:00
Jayachandran Chinnakkannu
65b0d73c81 Merge "Override equals and hashCode methods for EpsBearerQosSessionAttributes and NrQosSessionAttributes" into sc-dev 2021-06-03 19:35:44 +00:00
Jayachandran C
3d749d67ae Override equals and hashCode methods for EpsBearerQosSessionAttributes and NrQosSessionAttributes
Added equals and hashCode methods to simplify CTS tests

Bug: 183239573
Bug: 184396753
Test: atest android.telephony.cts
Change-Id: I545d940b3e77b40ef13e7ca0e5e7169b97e17f1e
2021-06-03 00:40:55 -07:00
Sarah Chin
6ca27717b2 Add function to get APN types as ints from bitmask
Bug: 181889657
Test: atest DataConnectionTest
Change-Id: I473b6bc3341bc3782b9c53eeca58c2ede18b6702
2021-06-02 15:13:51 -07:00
allenwtsu
0970883d14 [RCS]Add OMA cpm filetransfer feature tag
Bug: 181732613
Test: by manual
Change-Id: I00d71866ac90f9be8ffdc08817b203edfcfbf7fa
2021-06-01 16:42:27 +08:00