Commit graph

1068 commits

Author SHA1 Message Date
Rambo Wang
41ca2fd21e Format all Android.bp files with bpfmt to pass bpfmt buildin hook
bpfmt buildin hook (introduced in aosp/295130) will refuse us to
upload patch if any functional change made in those Android.bp files.

To separate formatting change from functional change, all those
Android.bp files are formatted here with command below:
find hardware/interfaces/radio/ -name Android.bp -exec bpfmt -w {} \;

Bug: 180649021
Test: atest VtsHalRadioV1_0TargetTest VtsHalRadioV1_1TargetTest
VtsHalRadioV1_2TargetTest VtsHalRadioV1_3TargetTest
VtsHalRadioV1_4TargetTest VtsHalRadioV1_5TargetTest

Change-Id: Iab8620bc1bd5035c03b693f836a115d9f688ce1d
2021-02-18 18:50:28 -08:00
Sarah Chin
e52a3943ea Allow getSystemSelectionChannels to return specifiers
Bug: 179929817
Test: VTS
Change-Id: I574e897c0fdb57cad1a3655c34d43f0d080de9ae
Merged-In: I574e897c0fdb57cad1a3655c34d43f0d080de9ae
2021-02-18 15:12:50 -08:00
Thiébaud Weksteen
2ee3e2e814 Document emergency case for setAllowedNetworkTypeBitmap
Test: None
Bug: 163168917
Change-Id: Icb64d2732447ca5a22cd70fbb989f30fe1ed8050
2021-02-09 18:27:45 +00:00
Shuo Qian
0c5fec28d2 Merge "Add emergencyDial_1_6 in the HAL to modify the multisim logic for pin lock" 2021-02-08 23:00:41 +00:00
Zoey Chen
fb3fa529b2 Add dtmSupported into 1.6 HAL for 2G network
Bug: 178328574
Test: make, VTS
Change-Id: Iba230acda8302df90e77d93701d9b0ba74196fc0
Merged-In: Iba230acda8302df90e77d93701d9b0ba74196fc0
2021-02-05 11:46:02 +08:00
Shuo Qian
3f86533c3e Add emergencyDial_1_6 in the HAL to modify the multisim logic for pin lock
Change-Id: Ib604c93513c80c649ceefb84543c55bdc74afbe7
Merged-In: I6d495199af4d2abbf22cf6dded4ee4ecf1407f3a
Test: vts
Bug: 171235919
2021-02-04 22:32:13 +00:00
Linus Nilsson
88139a65c2 Merge "Revert "Add emergencyDial_1_6 in the HAL to modify the multisim ..."" 2021-02-01 23:57:20 +00:00
Shuo Qian
45582eba48 Revert "Add emergencyDial_1_6 in the HAL to modify the multisim ..."
Revert "Add cuttilefish implementation for emergencyDial_1_6"

Revert submission 1548864-cp-edial-1-6

Reason for revert: some build use some vendor ril_service.cpp
Reverted Changes:
I515ea7381:Add cuttilefish implementation for emergencyDial_1...
I94319ab34:Add emergencyDial_1_6 in the HAL to modify the mul...

Change-Id: I83aedc19bb8eade10c330c2bca625495b9e359e9
2021-02-01 23:21:09 +00:00
Daniel Bright
00337a76b7 Merge "Partial hal support for secondary link bandwidth" 2021-02-01 22:48:44 +00:00
Daniel Bright
c1f7f98109 Partial hal support for secondary link bandwidth
* Added modemReducedFeatureSet1 flag to HalDeviceCapabilities
* Applied flag to secondary link bandwidth getters in carrier bandwidth

Test: cts
Bug: 173806995
Merged-In: Icfca599607e02a6c3e258c11dc9eb7701b7afd3f
Change-Id: Icfca599607e02a6c3e258c11dc9eb7701b7afd3f
2021-01-29 11:28:34 -08:00
Shuo Qian
dd17b2ed53 Add emergencyDial_1_6 in the HAL to modify the multisim logic for pin lock
Test: vts
Bug: 171235919
Change-Id: I94319ab345dabae040792b14b2f8bd8bc64839c0
2021-01-29 18:08:36 +00:00
Daniel Bright
31f2eb3791 Merge "Add S-NSSAI" 2021-01-27 18:48:54 +00:00
Daniel Bright
8e3a2bfdcd Add S-NSSAI
* Added support for S-NSSAI within HAL
* Created struct SliceInfo that represents a S-NSSAI as defined
  in 3GPP TS 24.501.
* Added slice info to setupDataCall and SetupDataCallResult

Bug: 169960538
Test: made ims phone call
Change-Id: I8d2c55bece07c599cb7d1ac0d16ad85c0acdeae5
Merged-In: I8d2c55bece07c599cb7d1ac0d16ad85c0acdeae5
2021-01-26 14:29:28 -08:00
Daniel Bright
44653cea41 Introduce Radio Hal Device Capabilities
* Asks the device what set of capabilities are supported on the device
  with respect to the Radio Hal
* The capabilities struct is left empty and will be filled
  in once the first set of radio hal capabilities are nailed down later
  in Android S

Test: Added cts, ran cts, and std tests
Bug: 163085807
Merged-In: I867f26bc649005e89ebf7a0b74f6fbeb2f44ac93
Change-Id: I837d82592e8ddfef5b1ff5eb0dd983a0d13383ed
2021-01-21 14:28:51 -08:00
Shuo Qian
89d91f8064 Merge "Add REQUEST_NOT_SUPPORTED in case 5G RAN is not supported in the device" 2021-01-19 19:29:37 +00:00
sqian
763b144799 Add REQUEST_NOT_SUPPORTED in case 5G RAN is not supported in the device
Test: vts
Bug: 177215423
Change-Id: I35f09c0b8e22eb9464c0ca1c11225f62d1916286
2021-01-15 22:07:19 +00:00
Zoey Chen
e47a5164d8 [Telephony] Implement PhysicalChannelConfig in HAL 1.6
Bug: 169206279
Test: make and VtsHalRadioV1_6Target
Change-Id: I4352ea928a76197aae01b887960eaed05698e3eb
Merged-In: I4352ea928a76197aae01b887960eaed05698e3eb
2021-01-15 16:08:38 +08:00
Treehugger Robot
b3b0b11de3 Merge "Update docs that pdu session id default is 0" 2021-01-13 23:28:38 +00:00
Daniel Bright
a786319a56 Update docs that pdu session id default is 0
Bug: 177387230
Test: N/A
Change-Id: I07eab03934cc0890236a12cfeec5802a75da4abd
2021-01-13 13:18:52 -08:00
Shuo Qian
80b03d7bf2 Gate gsm/cdma radio feature only for emergency dial
Test: vts
Bug: 176862267
Change-Id: I73a6920a94f2f703dc6ae19ad9a511673c9d035d
2021-01-11 22:39:09 +00:00
Treehugger Robot
a3cc90b1c3 Merge "Fixed incorrect retry timer value type" 2021-01-11 18:54:53 +00:00
Shuo Qian
e0a858b1d5 Merge "Skip emergency dialing VTS if device doesn't support radio" 2021-01-08 19:24:47 +00:00
Jack Yu
fd8ff812b3 Fixed incorrect retry timer value type
Since negative values indicates network did not suggest
data retry timer, the type should be signed instead of
unsigned.

Test: Manual
Fix: 159672248
Change-Id: Ibda126c7db6b7e1fef9323d4b2aace37ca13ebc1
2021-01-07 23:21:46 -08:00
Shuo Qian
628a335326 Skip emergency dialing VTS if device doesn't support radio
Test: vts
Bug: 176862267
Change-Id: I9e72ba5cf6cb118cd68f753355f4119d33fe0019
2021-01-07 18:56:25 +00:00
Thiébaud Weksteen
a07d055654 Merge "Add getAllowedNetworkTypesBitmap HAL API" 2020-12-15 12:39:51 +00:00
Yomna Nasser
e8bfa9c4e1 Add getAllowedNetworkTypesBitmap HAL API
Adds corresponding query API getAllowedNetworkTypesBitmap to
existing setAllowedNetworkTypeBitmap.

Test: atest
Bug: 171791177
Change-Id: Ib8f0075dda41d4876a14f7223a067e34626a4675
Merged-In: Ib8f0075dda41d4876a14f7223a067e34626a4675
2020-12-11 21:18:31 +00:00
Shinsuke Ishioka
ede1e95b6c Receive forwarded number from Modem
Adds forwarded number to Call information

Update 1.6 HAL:
- Added Call
- Added getCurrentCalls_1_6
- Added getCurrentCallsResponse_1_6

Test: Build pass.
Bug: 29063067

Change-Id: I8e43439e5638b7820d156d8fc6fe963cf1edf6f0
2020-12-07 11:46:46 +09:00
Mingming Cai
2682ae4273 Merge "Update Hal 1.6 for updated SignalStength" 2020-12-05 02:15:08 +00:00
Treehugger Robot
c8bf0854a4 Merge "Change setDataThrottling window parameter to a long millisecond." 2020-12-04 21:25:08 +00:00
Mingming Cai
20a2f420fb Update Hal 1.6 for updated SignalStength
Update Hal IRadio, IRadioResponse, and IRadioIndiction
for the updated SignalSterength.
Move radio_responce#getSignalStrengthResponse_1_4 to the right block

Bug: 174775680
Test: atest VtsHalRadioV1_6TargetTest
Change-Id: If61ff4f72b44ac5482acd1823153633d5f9bfce9
2020-12-03 13:05:29 -08:00
Jack Nudelman
3f76554417 Change setDataThrottling window parameter to a long millisecond.
As requested by Android Council review of API.

Test: vts

Change-Id: I1f633856c31623ef95f459b2195743f53b5d85fc
Merged-In: I1f633856c31623ef95f459b2195743f53b5d85fc
2020-12-03 19:41:36 +00:00
Mingming Cai
da0d98305d Add CQI and CQI Table Index to Hal 1.6
LteSignalStrength, NrSignalStrength, LteSignalStrength, NrSignalStrength,
CellInfo, and NetworkScanResult are updated accordingly.

Bug: 170771377
Test: make VtsHalRadioV1_6Target, aosp_cf_x86_64_phone-userdebug
Change-Id: If966d5e0c6f505c64cf523c032f6e282c2d24424
2020-12-02 17:17:45 -08:00
Hui Wang
fb202506bb Add VoNR network feature support information
Define data structures for VoNR network feature support information,
and update RegStateResult to allow the information to be reported
through the response of getVoiceRegistrationStateResponse and
getDataRegistrationStateResponse.

Bug: 167991878
Test: make, VTS
Change-Id: I098bd1b6c86cd38be6fbc086b8ebd7b1bb2408fa
2020-12-02 20:10:39 +00:00
Jordan Liu
fb4367c319 Merge "Add VTS for setSimCardPower_1_6" 2020-12-01 22:23:25 +00:00
Sarah Chin
f69abcf78e Create getSystemSelectionChannel API
Test: atest TelephonyManagerTest
Test: atest VtsHalRadioV1_6TargetTest
Bug: 152813408
Change-Id: I6f3f70b7ff1b876ec98086431ed5c557875fca85
Merged-In: I6f3f70b7ff1b876ec98086431ed5c557875fca85
2020-11-30 14:40:01 -08:00
Jordan Liu
8ca952efb9 Add VTS for setSimCardPower_1_6
Bug: 171433370
Test: make vts
Change-Id: I94e265d31c4077f0c06bc9bb47471e1a838f48d4
2020-11-24 13:13:17 -08:00
Jack Nudelman
5cd9414268 HAL changes for ThermalMitigation API.
go/telephony-thermal-mitigation

Bug: 158872959
Test: make, vts

Change-Id: I914993a6e80305732564e0507ca6a74b1c296439
Merged-In: I914993a6e80305732564e0507ca6a74b1c296439
2020-11-21 00:49:48 +00:00
Daniel Bright
3c72fbafce Added pdu session id to setupDataCall
The pdu session id needs to be passed to setup data call on handover

(clean cherry-pick)

Test: Tested that handover still worked with logs.  IWlan -> Cell + Cell -> IWlan
Bug: 161572859
Merged-In: I0e11c8997674cdaad4bb82491d818ca85ee197d1
Change-Id: I0e11c8997674cdaad4bb82491d818ca85ee197d1
2020-11-20 12:22:08 -08:00
Jack Yu
78843c1e4f Added global retry support
The retry timer suggested by the network will persist
accross network requests. Also changed the retry timer
to a 64-bit value to be consistent with types used in
Android time APIs.

(clean cherry-pick)

Test: FrameworksTelephonytests
Fix: 159672248
Merged-In: I763afdf34378512c60c0838830cb84875b1c66f0
Change-Id: I763afdf34378512c60c0838830cb84875b1c66f0
2020-11-18 21:32:22 -08:00
Sooraj Sasindran
43e5220d23 Provide secondary link capacity estimation
Provide intrface to get secondary link capacity estimation

Bug: 162373679
Test: build
merged-In: I371f1f8ad820f8b20c972c3310ebe82b3790a577
Change-Id: I371f1f8ad820f8b20c972c3310ebe82b3790a577
2020-11-11 22:20:27 -08:00
Sooraj Sasindran
e9525fdd5f Rename enableNrDualConnectivity
Rename enableNrDualConnectivity to setNrDualConnectivityState

Bug: 162373679
Test: build
Merged-In: Ie8722b82cd235557c47528c2529cbc177e025135
Change-Id: Ie8722b82cd235557c47528c2529cbc177e025135
2020-11-11 22:20:08 -08:00
Daniel Bright
7bfe3131a6 Merge "Allows APN to be unthrottled through an indication" 2020-11-06 05:04:14 +00:00
Thiébaud Weksteen
2df6ba0ac2 Merge "Add setAllowedNetworkTypeBitmap" 2020-11-05 19:32:59 +00:00
Daniel Bright
95db21de18 Allows APN to be unthrottled through an indication
* Exposed new radio indication that can unthrottle an APN

Test: N/a
Bug: 167434852
Change-Id: Ic7f0aac140049feac08902458d797388a807bab0
2020-11-05 05:07:24 +00:00
Thiébaud Weksteen
5ae16f33f3 Add setAllowedNetworkTypeBitmap
There are currently two methods that cover the network family types:
setPreferredNetworkType and setPreferredNetworkTypeBitmap. They both
serve a similar purpose and have been previously interpreted as a
suggestion to the modem on the type of networks requested by the OS.

This change introduces a new method (setAllowedNetworkTypeBitmap) which
will coexist with these methods. This new method must be interpreted as
a strict set of Radio Access Technology (RAT) that should be accepted by
the modem.

For instance, one may first use setAllowedNetworkTypeBitmap to exclude
2G technology from the list of usable RAT. Then, they may use
setPreferredNetworkType to describe their preference for 4G.

Test: mm
Bug: 171791177
Change-Id: I7f5fdf9bf5a80c47e9ad838b740b2d6e40ffea60
Merged-In: I7f5fdf9bf5a80c47e9ad838b740b2d6e40ffea60
2020-11-04 10:46:08 +01:00
Malcolm Chen
f72c5c861e Skip togglingUiccApplicationsSimPresent if it's eSIM empty profile.
Bug: 169802419
Test: run vts on dsds device.
Change-Id: I2319aa6fe86bfc415b1d1ea0aaefb80f4c7ddff3
Merged-In: I2319aa6fe86bfc415b1d1ea0aaefb80f4c7ddff3
2020-11-03 14:07:29 -08:00
Jordan Liu
db43f1926e Merge "Update CardState HAL and make setSimPower synchronous" 2020-11-02 23:39:04 +00:00
Daniel Bright
15cc34ae2c Add HAL for pdu session id support
* Add in HAL support for AOSP allocating pdu session ids from modem
* Add in HAL support that notifies modem when a handover has begun and was cannceled
(clean cherry pick)

Test: N/A
Bug: 161572859
Change-Id: I2771b4773381ba68f482a80e743bdbb05a8e59d1
Merged-In: I2771b4773381ba68f482a80e743bdbb05a8e59d1
2020-10-30 12:26:08 -07:00
Jordan Liu
e4f5f02726 Update CardState HAL and make setSimPower synchronous
Bug: 171433370
Test: make; make vts
Change-Id: I0d298209a00f5f194547b0d6e368baa44b0c18ec
Merged-In: I0d298209a00f5f194547b0d6e368baa44b0c18ec
2020-10-30 17:42:48 +00:00
Sooraj Sasindran
a9d461b931 Ability to configure NR dual connectivity
Provide ability to configure EUTRANR dual
connectivity

Bug: 162373679
Test: build
Merged-In: I628edc2d6157ab2db279c2f32deb57798f2dd9ce
Change-Id: I628edc2d6157ab2db279c2f32deb57798f2dd9ce
2020-10-26 00:02:31 -07:00