Commit graph

1263 commits

Author SHA1 Message Date
Treehugger Robot
8a7bc5896f Merge "Update docs that pdu session id default is 0" am: b3b0b11de3 am: 9601a7ff2f am: 32518131cc
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1550320

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Id32fad1b3b1ad74a169c11613395b3cf955f3144
2021-01-14 01:44:18 +00: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
Daniel Bright
1d8f60cbb4 Merge "Partial hal support for secondary link bandwidth" 2021-01-12 23:40:41 +00:00
Shuo Qian
d31e74487a Gate gsm/cdma radio feature only for emergency dial am: 80b03d7bf2 am: 2655aecb1a am: a960203546
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1546408

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Iea24afacc19cf1c5b9eb2ee2a27fc608613a200d
2021-01-12 03:52:33 +00: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
1eb07a6a1c Merge "Fixed incorrect retry timer value type" am: a3cc90b1c3 am: 0d3433a346 am: b29a5a3b7f
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1543612

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I0d546cf99dd321ba68ef6c7d73d0675f43422de8
2021-01-11 20:40:49 +00:00
Treehugger Robot
a3cc90b1c3 Merge "Fixed incorrect retry timer value type" 2021-01-11 18:54:53 +00:00
Daniel Bright
9a484da685 Added javadoc to apn retry \ throttling related methods
Bug: 175092152
Test: N/A
Change-Id: I84c7845343a08d725764cf4a5777f720b8f6d0da
2021-01-08 14:47:17 -08:00
Shuo Qian
7df4eb45f0 Merge "Skip emergency dialing VTS if device doesn't support radio" am: e0a858b1d5 am: d803e12ae5 am: 72319e8de0
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1542844

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Id16aa446a6a2874f9e556e166c71c6821ff371ca
2021-01-08 21:12:38 +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
Daniel Bright
6d42d04745 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
Change-Id: Icfca599607e02a6c3e258c11dc9eb7701b7afd3f
2021-01-07 12:30: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
TreeHugger Robot
4272b7de0e Merge "Revert "Add emergencyDial_1_6 in the HAL to modify the multisim ..."" 2020-12-30 18:26:49 +00:00
Yi-yo Chiang
3ea060eb6d Revert "Add emergencyDial_1_6 in the HAL to modify the multisim ..."
Revert "Add cuttilefish implementation for emergencyDial_1_6"

Revert submission 13164522-emergencyDial_1_6

Reason for revert: Potential culprit of b/176519828

Reverted Changes:
I3680b8d42:Add cuttilefish implementation for emergencyDial_1...
I94319ab34:Add emergencyDial_1_6 in the HAL to modify the mul...

Change-Id: I17e59676b6467b8b51dcb839497883a2c89ee50d
2020-12-30 07:34:58 +00:00
Shuo Qian
02dfb3dcb4 Merge "Add emergencyDial_1_6 in the HAL to modify the multisim logic for pin lock" 2020-12-30 00:08:53 +00:00
Shuo Qian
84b7069ab7 Add emergencyDial_1_6 in the HAL to modify the multisim logic for pin lock
Test: vts
Bug: 171235919
Change-Id: I94319ab345dabae040792b14b2f8bd8bc64839c0
2020-12-28 12:44:55 -08:00
TreeHugger Robot
8ffdb30eee Merge "Update documentation for secondary bandwidth" 2020-12-24 00:20:08 +00:00
Sooraj Sasindran
66dbcee2d3 Update documentation for secondary bandwidth
Update documentation for secondary bandwidth to indicate that
some modems do not support this feature

Test: build
Bug: 162373679
Change-Id: I03d4079e03817fe7c7b52eb18058c49e54302d6b
2020-12-23 22:52:48 +00:00
Daniel Bright
85169ab87a 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
2020-12-21 14:03:28 -08:00
Thiébaud Weksteen
a07d055654 Merge "Add getAllowedNetworkTypesBitmap HAL API" 2020-12-15 12:39:51 +00:00
Amit Mahajan
0ca7a795c4 Merge "Receive forwarded number from Modem" am: d35457c922 am: 131389f6ab am: efe5ac8aa4
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/813457

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I4a4f04086ff23fbd95aeb0a7b274f84737d549c7
2020-12-14 08:52:56 +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
Yomna Nasser
5cc53bacea Add getAllowedNetworkTypesBitmap HAL API
Adds corresponding query API getAllowedNetworkTypesBitmap to
existing setAllowedNetworkTypeBitmap.

Test: atest
Bug: 171791177
Change-Id: Ib8f0075dda41d4876a14f7223a067e34626a4675
2020-12-08 16:39:59 +00:00
Mingming Cai
b2d2b24f59 Merge "Update Hal 1.6 for updated SignalStength" am: 2682ae4273 am: 11a9329702 am: a10d9f0c69
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1517057

Change-Id: Ifca6ff7fcf4b4dc613f2807b8ba14327e39388a6
2020-12-07 20:54:01 +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
77c9e6c183 Merge "Add CQI and CQI Table Index to Hal 1.6" am: a0e7918d8a am: e9fa46f49f am: a0bb74915c
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1489837

Change-Id: I5f420a7f7042be87eb3669575e57429d282da21d
2020-12-04 01:35:02 +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
Hui Wang
73f8af0838 Merge "Add VoNR network feature support information" am: f14d297d7c am: 61a2c1237d am: 391cb96e53
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1498118

Change-Id: Id965643796381aee3443a5d6f1d1c70f8974a6f1
2020-12-03 01:53:10 +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
897077a7da Merge "Add VTS for setSimCardPower_1_6" am: fb4367c319 am: eada45e9a6 am: 1d40099f53
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1493663

Change-Id: I13f7fe78c894f8fd3c2091748006882a796d3e04
2020-12-01 23:59:28 +00:00
Jordan Liu
fb4367c319 Merge "Add VTS for setSimCardPower_1_6" 2020-12-01 22:23:25 +00:00
Mingming Cai
7128d3ac8b Add an empty line to match AOSP
Bug: 170771377
Test: make
Change-Id: I1ec8caca20de9c3c190869229fd2c746900838c3
2020-12-01 14:04:38 -08: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
f2426e8027 Merge "Change setDataThrottling window parameter to a long millisecond." 2020-11-21 07:58:11 +00:00
Daniel Bright
6d3bda89cf Merge "Introduce Radio Hal Device Capabilities" 2020-11-21 02:27:14 +00: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 Nudelman
237cdaf678 Change setDataThrottling window parameter to a long millisecond.
As requested by Android Council review of API.

Test: vts

Change-Id: I1f633856c31623ef95f459b2195743f53b5d85fc
2020-11-19 20:36:32 -08:00
Sarah Chin
e92c13a4d0 Create getSystemSelectionChannel API
Test: atest TelephonyManagerTest
Test: atest VtsHalRadioV1_6TargetTest
Bug: 152813408
Change-Id: I6f3f70b7ff1b876ec98086431ed5c557875fca85
2020-11-19 10:42:23 -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
Daniel Bright
3529f26b3b 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
Change-Id: I867f26bc649005e89ebf7a0b74f6fbeb2f44ac93
2020-11-17 16:59:46 -08:00
Daniel Bright
7674b03f38 Added pdu session id to setupDataCall
The pdu session id needs to be passed to setup data call on handover

Test: Tested that handover still worked with logs.  IWlan -> Cell + Cell -> IWlan
Bug: 161572859
Change-Id: I0e11c8997674cdaad4bb82491d818ca85ee197d1
2020-11-14 16:04:49 -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
Jack Nudelman
62fd344711 HAL changes for ThermalMitigation API.
go/telephony-thermal-mitigation

Bug: 158872959
Test: make, vts

Change-Id: I914993a6e80305732564e0507ca6a74b1c296439
2020-11-11 15:22:57 -08:00
Sooraj Sasindran
1162d8e903 Provide secondary link capacity estimation
Provide intrface to get secondary link capacity estimation

Bug: 162373679
Test: build
Change-Id: I371f1f8ad820f8b20c972c3310ebe82b3790a577
2020-11-06 10:30:14 -08:00
Daniel Bright
24797eb180 Merge "Allows APN to be unthrottled through an indication" am: 7bfe3131a6 am: 0c8bf2df88 am: f6282fb276 am: 6d034c6c1e
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1479416

Change-Id: I2bddcebc0413aac48cec80b30a16a9b28dd7be92
2020-11-06 06:41:15 +00: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
Sooraj Sasindran
514435aff8 Merge "Rename enableNrDualConnectivity" 2020-11-05 00:50:35 +00:00
Sooraj Sasindran
56d4de8e73 Rename enableNrDualConnectivity
Rename enableNrDualConnectivity to setNrDualConnectivityState

Bug: 162373679
Test: build
Change-Id: Ie8722b82cd235557c47528c2529cbc177e025135
2020-11-04 10:36:24 -08: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
Thiebaud Weksteen
37d9ef2c36 Merge "Add setAllowedNetworkTypeBitmap" 2020-11-03 06:44:53 +00:00
Jordan Liu
db43f1926e Merge "Update CardState HAL and make setSimPower synchronous" 2020-11-02 23:39:04 +00:00
Malcolm Chen
3449e1c24c Skip togglingUiccApplicationsSimPresent if it's eSIM empty profile.
Bug: 169802419
Test: run vts on dsds device.
Change-Id: I2319aa6fe86bfc415b1d1ea0aaefb80f4c7ddff3
2020-11-02 22:23:48 +00:00
Thiébaud Weksteen
ed5c514ed1 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
2020-11-02 15:35:24 +01: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
b156c63366 Merge "Update CardState HAL and make setSimPower synchronous" 2020-10-30 17:57:31 +00: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
Daniel Bright
996a86c5d1 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

Test: N/A
Bug: 161572859
Change-Id: I2771b4773381ba68f482a80e743bdbb05a8e59d1
2020-10-29 21:24:47 -07:00
Jordan Liu
c279cafa28 Update CardState HAL and make setSimPower synchronous
Bug: 171433370
Test: make; make vts
Change-Id: I0d298209a00f5f194547b0d6e368baa44b0c18ec
2020-10-29 19:58:04 +00:00
Jack Yu
990cc41da3 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.

Test: FrameworksTelephonytests
Fix: 159672248
Change-Id: I763afdf34378512c60c0838830cb84875b1c66f0
2020-10-27 21:31:12 -07: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
Sooraj Sasindran
edeee5a914 Ability to configure NR dual connectivity
Provide ability to configure EUTRANR dual
connectivity

Bug: 162373679
Test: build
Change-Id: I628edc2d6157ab2db279c2f32deb57798f2dd9ce
2020-10-25 18:47:50 -07:00
Tim Lin
c146f8615b add new RadioError am: e29df60bdc am: 7f565c6ba8 am: b4c9e82e04 am: 034f6c8f20
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1463522

Change-Id: I8ca0880ca671e50cbeb6d115d863496f6ac05dbe
2020-10-23 05:00:49 +00:00
Tim Lin
e29df60bdc add new RadioError
Support RadioError:RF_HARDWARE_ISSUE and RadioError:NO_RF_CALIBRATION_INFO for
setRadioPowerResponse_1_6().

Bug: 170938075
Test: build. VTS on Cuttlefish.
Change-Id: Iaf582c31f439810db34693c61e58ff1f4dfd19fd
2020-10-23 00:59:16 +00:00
Daniel Bright
f8e858b478 Merge "Add Handover Failure Mode to Radio Hal" 2020-10-22 21:38:58 +00:00
Daniel Bright
64c8da6fa0 Add Handover Failure Mode to Radio Hal
On a handover request failure, the modem can now determine
whether or not to fallback.  There is also the option to revert
to the legacy logic.  Following the legacy logic is the default
behavior.

Test: FrameworkTelephonyTests
Bug: 161572465
Change-Id: Iad778e83ffc264ee25f57f54ff58532d6a8c5cbf
Merged-In: Iad778e83ffc264ee25f57f54ff58532d6a8c5cbf
2020-10-21 13:44:26 -07:00
Hui Wang
1c246b7784 Merge "Add SUCCESS to the response of SAP VTS test cases" 2020-10-21 02:26:51 +00:00
Hui Wang
44006eea19 Add SUCCESS to the response of SAP VTS test cases
Bug: 169106223
Test: atest VtsHalSapV1_0TargetTest
Change-Id: I7392c07914ab693f8d43d059263d950dd0116897
2020-10-20 14:34:20 -07:00
allenwtsu
1c3dcd3289 [SMS] Define new SMS error code in HAL 1.6
Define 3 SMS failure causes.
SIMULTANEOUS_SMS_AND_CALL_NOT_ALLOWD
ACCESS_BARRED
BLOCKED_DUE_TO_CALL

Test: build pass
Bug: 162364146
Change-Id: I3b8b3f238821f2a516f8590f90cba4d603d3783b
Merged-In: I3b8b3f238821f2a516f8590f90cba4d603d3783b
2020-10-16 14:03:03 +08:00
allenwtsu
5bce081dbe [SMS] Define new SMS error code in HAL 1.6
Define 3 SMS failure causes.
SIMULTANEOUS_SMS_AND_CALL_NOT_ALLOWD
ACCESS_BARRED
BLOCKED_DUE_TO_CALL

Test: build pass
Bug: 162364146
Change-Id: I3b8b3f238821f2a516f8590f90cba4d603d3783b
2020-10-13 15:50:18 +08:00
Daniel Bright
c7a52cb2fc Merge "Add Handover Failure Mode to Radio Hal" 2020-09-25 05:32:16 +00:00
Daniel Bright
ea8d801f54 Add Handover Failure Mode to Radio Hal
On a handover request failure, the modem can now determine
whether or not to fallback.  There is also the option to revert
to the legacy logic.  Following the legacy logic is the default
behavior.

Test: FrameworkTelephonyTests
Bug: 161572465
Change-Id: Iad778e83ffc264ee25f57f54ff58532d6a8c5cbf
2020-09-23 13:15:39 -07:00
Dan Shi
7a2d0d1d8c Merge "Fix bad test config for VtsHalRadioV1_4TargetTest" am: 2fbbdd9548 am: 412837cfb7 am: cf6c6193b7 am: 953f5d8041 am: 20472fc522
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1427534

Change-Id: I067361c53339c9e7a3bc7665f765d1bf38213ae6
2020-09-16 01:05:51 +00:00
Dan Shi
ea77824cce Fix bad test config for VtsHalRadioV1_4TargetTest
Bug: none
Test: build
Change-Id: Ie0c4895dd201735cc3a441e2e9bd3ac2290833b0
2020-09-14 15:58:10 -07:00
Xin Li
36dcf1a404 Merge Android R (rvc-dev-plus-aosp-without-vendor@6692709)
Bug: 166295507
Merged-In: I6502829205ede2de914b27e6c2c5c42916af2b39
Change-Id: I7cb06511e43bd1fffd5f80a11dbdf5b1314cfe8e
2020-08-28 13:05:04 -07:00
Shuo Qian
7bceb8da04 Merge "Check emergency dialing result in DSDS or TSTS only if slot is in service or emergency only." into rvc-qpr-dev am: e48f759713 am: eefc950629
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/12411657

Change-Id: I98923d5773a6312266327e629886e6e3b4a6ccb7
2020-08-26 17:19:05 +00:00
Shuo Qian
eefc950629 Merge "Check emergency dialing result in DSDS or TSTS only if slot is in service or emergency only." into rvc-qpr-dev am: e48f759713
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/12411657

Change-Id: I1d26d4fa94aaaa25b8951ab5d00bdc2e708ad11b
2020-08-26 17:05:50 +00:00
Shuo Qian
721fecbaaf Check emergency dialing result in DSDS or TSTS only if slot is in service or emergency only.
Test: vts
Bug: 156525817
Change-Id: Ic4c735e6d920fc3df28eda7bc3f0b958782bf42d
Merged-In: Ic4c735e6d920fc3df28eda7bc3f0b958782bf42d
(cherry picked from commit 3381ce1f9a2c3ad06b59288e5ba359aa7a89de4e)
2020-08-26 17:00:44 +00:00
Jayachandran Chinnakkannu
a6db29df2f Merge "Add indication APIs to expose QOS from LTE and NR bearers" am: 0ba3a5e2e5 am: adb91855aa am: 6858cab8e9 am: 74c6dcd8c5 am: b56710c097
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1368896

Change-Id: I95558d8fe5db08b6717c53aac7ea09dafddaf6ca
2020-08-26 02:52:47 +00:00
Jayachandran Chinnakkannu
6858cab8e9 Merge "Add indication APIs to expose QOS from LTE and NR bearers" am: 0ba3a5e2e5 am: adb91855aa
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1368896

Change-Id: I6197583f041cd51a9947e5a687182247173f2a04
2020-08-26 00:33:27 +00:00
Shuo Qian
9eea6d5a73 Check emergency dialing result in DSDS or TSTS only if slot is in service or emergency only.
Test: vts
Bug: 156525817
Change-Id: Ic4c735e6d920fc3df28eda7bc3f0b958782bf42d
2020-08-21 22:19:08 +00:00
Jayachandran Chinnakkannu
0ba3a5e2e5 Merge "Add indication APIs to expose QOS from LTE and NR bearers" 2020-08-17 22:02:52 +00:00
Jayachandran C
9bc276b2c3 Add indication APIs to expose QOS from LTE and NR bearers
Add indication APIs to expose Quality Of Service (QOS) information
from LTE and NR default as well as dedicated bearers. The QOS is
added to the existing SetupDataCallResult structure so that the
baseband can notify whenever there is a change in QoS on a PDN.

The baseband vendor shall notify the {@link Qos} of the default
bearer at the time of setup data call success. The dedicated bearer
QOS shall be notified whenever network establishes or modfies a
dedicated bearer using dataCallListChanged() API. When network tears
down the dedicated bearer, vendor shall update the same with a empty
{@link QosSession} for the particular data call.

Bug: 158315614
Test: make, VTS
Change-Id: I58cd3fd2cf354de8916aeed1292cd7071e79e184
2020-08-14 14:58:20 -07:00
Howard Chen
63d15026a0 Merge "Move HIDL interfaces not included in mainline_system.mk to system_ext" am: 3fec2daf23 am: 4a4e0595b5 am: 53ebabb8ae am: 37bc606245 am: fa11086f8b
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1371698

Change-Id: I64379b54be64fbe0dd0529ffa51fff3e160dde03
2020-08-04 04:21:52 +00:00
Howard Chen
53ebabb8ae Merge "Move HIDL interfaces not included in mainline_system.mk to system_ext" am: 3fec2daf23 am: 4a4e0595b5
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1371698

Change-Id: I8ecf926c8756827bb351668b237add81d6db5a08
2020-08-04 03:07:52 +00:00
Howard Chen
3fec2daf23 Merge "Move HIDL interfaces not included in mainline_system.mk to system_ext" 2020-08-04 02:26:11 +00:00
Howard Chen
a831d6495a Move HIDL interfaces not included in mainline_system.mk to system_ext
Test: aosp_wembley-userdebug
Bug: 161688072
Change-Id: If5f9419697bbd89d35dcd0220b1a80355835a3d1
2020-08-01 16:12:29 +08:00
Sarah Chin
44fde6386b Update language to comply with Android's inclusive language guidance
See https://source.android.com/setup/contribute/respectful-code for
reference

Test: build
Bug: 161896447
Change-Id: I3c0d02e1ee94c575c3a18291d438b464d7396463
Merged-In: I3c0d02e1ee94c575c3a18291d438b464d7396463
2020-07-30 21:24:53 +00:00
Sarah Chin
e442f7f4a7 Update language to comply with Android's inclusive language guidance
See https://source.android.com/setup/contribute/respectful-code for
reference

Test: build
Bug: 161896447
Change-Id: I3c0d02e1ee94c575c3a18291d438b464d7396463
Merged-In: I3c0d02e1ee94c575c3a18291d438b464d7396463
2020-07-30 18:51:17 +00:00
Sarah Chin
5352926251 Update language to comply with Android's inclusive language guidance
See https://source.android.com/setup/contribute/respectful-code for
reference

Test: build
Bug: 161896447
Change-Id: I3c0d02e1ee94c575c3a18291d438b464d7396463
2020-07-29 21:20:24 -07:00
Dan Shi
9eaab747fe Suppress gtest error for tests without any instance am: ba4d532fee am: 73122cd284 am: e5c9b5e722 am: 1a52c0eb25 am: 1a3e0f86eb
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1374050

Change-Id: I6ddea2dcb636e3ba67ad11d53b9fe12c51314c7a
2020-07-29 06:36:31 +00:00
Dan Shi
e5c9b5e722 Suppress gtest error for tests without any instance am: ba4d532fee am: 73122cd284
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1374050

Change-Id: Ie5e956d4613f5e947c36ba4f1048f0c3aa8944ba
2020-07-29 05:45:58 +00:00
Dan Shi
ba4d532fee Suppress gtest error for tests without any instance
Bug: 162052785
Test: m -j vts
Change-Id: I8c1a48e6fbd7c8161137902b5332911fa0d7b8b3
2020-07-28 15:12:32 -07:00
Jayachandran Chinnakkannu
57a7b5d484 Merge "Create IRadio 1.6 folder, empty files and VTS framework" am: ea1a77442f am: c7bcb04a04 am: 63b0e0e7d7 am: a8b5bf1f37 am: e717aac795
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1371046

Change-Id: I885c98b60ccd7e0bfef1e9be883604701a02862b
2020-07-24 02:42:54 +00:00
Jayachandran Chinnakkannu
63b0e0e7d7 Merge "Create IRadio 1.6 folder, empty files and VTS framework" am: ea1a77442f am: c7bcb04a04
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1371046

Change-Id: I7c49b37150701134d851732d410af40695adc7bd
2020-07-24 01:55:47 +00:00
Jayachandran Chinnakkannu
ea1a77442f Merge "Create IRadio 1.6 folder, empty files and VTS framework" 2020-07-24 01:31:34 +00:00
Jayachandran C
262b606c1b Create IRadio 1.6 folder, empty files and VTS framework
Bug: 158315614
Test: build
Change-Id: I5d7f7205933ea1b0e4bd70fa6ae006dacb67954f
2020-07-23 11:10:16 -07:00
Sarah Chin
96f358efda Update VTS tests to use GeranBands P900 and 850 instead
Also call stopNetworkScan to prevent DEVICE_IN_USE error

Test: run vts VtsHalRadioV1_4Target, VtsHalRadioV1_5Target
Bug: 159582104
Change-Id: If27cb00fe9eb5cf3ce2e73107ed6463c1ebb7cfd
Merged-In: If27cb00fe9eb5cf3ce2e73107ed6463c1ebb7cfd
2020-07-22 16:00:42 -07:00
Shuo Qian
32a90a06f4 Merge "Change range of SS-RSRQ per 3gpp" 2020-07-15 17:43:24 +00:00
Shuo Qian
a639d459a8 Merge "Change range of SS-RSRQ per 3gpp" 2020-07-15 17:43:09 +00:00
sqian
b09dd7ab44 Change range of SS-RSRQ per 3gpp
Bug: 159761054
Test: VTS
Merged-In: I377ef00015876b706ffeb20d9255c1b1ebf66c15
(cherry picked from commit cd3fd87d47)
Change-Id: I7f9526e7073188c1a4c553da9c38d7892c55078d
2020-07-15 00:46:43 +00:00
Shuo Qian
f4f6ef3a75 Change range of SS-RSRQ per 3gpp
Bug: 159761054
Test: VTS
Merged-In: I377ef00015876b706ffeb20d9255c1b1ebf66c15
(cherry picked from commit 074d9041e0)
Change-Id: I1b1335ecffde2d625cb099d7631e9115f6582b6c
2020-07-15 00:41:53 +00:00
Shuo Qian
cd3fd87d47 Change range of SS-RSRQ per 3gpp
Bug: 159761054
Test: VTS
Change-Id: I377ef00015876b706ffeb20d9255c1b1ebf66c15
2020-07-13 13:52:22 -07:00
Shuo Qian
25db0b9353 Change range of SS-RSRQ per 3gpp am: 074d9041e0 am: 4ddea05849
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/12109456

Change-Id: I71e148bf3937edd4bee17b6aecce9e9c28aabad3
2020-07-09 22:57:22 +00:00
Shuo Qian
f884fadddd Change range of SS-RSRQ per 3gpp am: 074d9041e0
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/12109456

Change-Id: Ia206b023cd4c36467bd9c154d936c1899440f175
2020-07-09 22:45:42 +00:00
Shuo Qian
074d9041e0 Change range of SS-RSRQ per 3gpp
Bug: 159761054
Test: VTS
Change-Id: I377ef00015876b706ffeb20d9255c1b1ebf66c15
2020-07-08 17:56:49 +00:00
Jooyung Han
d610435ac4 update hidl .bp
HIDL libs are not necessarily part of VNDK now. Because some are
used by VNDK libs, they are still VNDK. But rest are now just
vendor-available.

.hidl_for_test files are also removed because they are used to exclude
test-purpose hidl libs from VNDK libs.

Instead, .hidl_for_system_ext files are added to tests/lazy to
distinguish them from others which are installed /system.

Bug: 143933769
Test: update-makefiles.sh && m com.android.vndk.current
Merged-In: Ia81312dda340b6b5cbdd7a3c21e1d323bda39a4a
Change-Id: Ia81312dda340b6b5cbdd7a3c21e1d323bda39a4a
(cherry picked from commit b0907a6bb8)
2020-07-07 16:22:36 +09:00
Jooyung Han
d18cba85fe update hidl .bp
HIDL libs are not necessarily part of VNDK now. Because some are
used by VNDK libs, they are still VNDK. But rest are now just
vendor-available.

.hidl_for_test files are also removed because they are used to exclude
test-purpose hidl libs from VNDK libs.

Instead, .hidl_for_system_ext files are added to tests/lazy to
distinguish them from others which are installed /system.

Bug: 143933769
Test: update-makefiles.sh && m com.android.vndk.current
Merged-In: Ia81312dda340b6b5cbdd7a3c21e1d323bda39a4a
Change-Id: Ia81312dda340b6b5cbdd7a3c21e1d323bda39a4a
(cherry picked from commit b0907a6bb8)
2020-07-02 12:26:37 +09:00
TreeHugger Robot
dabaad71f7 Merge "Update VTS tests to use GeranBands P900 and 850 instead" into rvc-dev 2020-06-29 21:00:53 +00:00
Sarah Chin
5836f407aa Update VTS tests to use GeranBands P900 and 850 instead
Also call stopNetworkScan to prevent DEVICE_IN_USE error

Test: run vts VtsHalRadioV1_4Target, VtsHalRadioV1_5Target
Bug: 159582104
Change-Id: If27cb00fe9eb5cf3ce2e73107ed6463c1ebb7cfd
2020-06-29 11:58:00 -07:00
Jordan Liu
efab6b568f Override gtest timeout and add logging
Note that this just increases the gtest time to match our
highest wait times. Each test still has wait times fitted for the
expected length of that test.

Bug: 159289514
Test: atest VtsHalRadioV1_0TargetTest
Change-Id: I0825305258bae20ea6e13e9b9a65ce30b7153611
Merged-In: I0825305258bae20ea6e13e9b9a65ce30b7153611
2020-06-29 11:43:00 -07:00
TreeHugger Robot
00f17b9616 Merge "Override gtest timeout and add logging" into rvc-dev 2020-06-26 23:52:06 +00:00
Jordan Liu
fffbdfa1eb Override gtest timeout and add logging
Note that this just increases the gtest time to match our
highest wait times. Each test still has wait times fitted for the
expected length of that test.

Bug: 159289514
Test: atest VtsHalRadioV1_0TargetTest
Change-Id: I0825305258bae20ea6e13e9b9a65ce30b7153611
2020-06-26 22:51:58 +00:00
Nathan Harold
25d2378734 Allow Unsupported BarringInfo in RVC for Radio 1.5
Allow devices launching with IRadio 1.5 this year to
not support BarringInfo.

Bug: 159582898
Test: atest VtsHalRadioV1_5TargetTest -- -t getBarringInfo
Change-Id: I05b749fa3cfb3648148fd2666d7eb6f43f3c45d2
2020-06-24 15:23:39 -07:00
Sarah Chin
27c9426eb1 Merge "Fix the failed case for the VtsHalRadioV1_5TargetTest.PerInstance/RadioHidlTest_v1_5#sendCdmaSmsExpectMore/0_slot1" into rvc-dev 2020-06-17 02:04:22 +00:00
yan.cao
62ffe870a2 Fix the failed case for the VtsHalRadioV1_5TargetTest.PerInstance/RadioHidlTest_v1_5#sendCdmaSmsExpectMore/0_slot1
Sendcdmasexpectmoreresponse to the request sendcdmasexpectmore
did not accept the return parameter responseinfo, which caused
the VTS system to wait for a response until it exceeded 60 seconds,
and the VTS determined No test results.
so we can add parameters to receive the parameters of
sendcdmasexpectmoreresponse,and then make subsequent judgment.

Bug: 158542706
Test: run vts -m VtsHalRadioV1_5TargetTest
Change-Id: I1d6214f58850d707520b80634cb93d0e0cc712bb
Merged-In: I1d6214f58850d707520b80634cb93d0e0cc712bb
2020-06-16 15:14:11 -07:00
Treehugger Robot
6d4d3a20da Merge "Fix the failed case for the VtsHalRadioV1_5TargetTest.PerInstance/RadioHidlTest_v1_5# sendCdmaSmsExpectMore/0_slot1" 2020-06-16 22:13:04 +00:00
Jordan Liu
9ed871fc20 Fix bad merge of aosp/1220298
Bug: 158872011
Test: atest
Change-Id: Ife92d607df5442febab86ed61c3edc24d904b36b
2020-06-12 14:43:22 -07:00
yan.cao
268ddbf5a2 Fix the failed case for the
VtsHalRadioV1_5TargetTest.PerInstance/RadioHidlTest_v1_5#
sendCdmaSmsExpectMore/0_slot1

Sendcdmasexpectmoreresponse to the request sendcdmasexpectmore
did not accept the return parameter responseinfo, which caused
the VTS system to wait for a response until it exceeded 60 seconds,
and the VTS determined No test results.
so we can add parameters to receive the parameters of
sendcdmasexpectmoreresponse,and then make subsequent judgment.

Bug: 158542706
Test: run vts -m VtsHalRadioV1_5TargetTest
Change-Id: I1d6214f58850d707520b80634cb93d0e0cc712bb
2020-06-09 18:12:46 +08:00
Dan Shi
b2dd35aaf2 Disable framework for some VTS tests
The test doesn't need framework. It seems that the test can be flaky
when framework was stop/started earlier.

Bug: 154445273
Test: atest -a VtsHalBluetoothV1_0TargetTest \
  VtsHalSapV1_0TargetTest \
  VtsHalAudioV4_0TargetTest

Change-Id: I60f62923cfb826c5e33e9885ea08efdbe4c8f57e
2020-05-29 15:40:38 -07:00
Shuo Qian
41084e7ef4 Merge "Skip voice call VTS for devices that don't support voice call with new Util" 2020-05-16 02:52:07 +00:00
Shuo Qian
f2ed9ffcb9 Skip voice call VTS for devices that don't support voice call with new Util
Bug: 154867827
Test: VtsHalRadio1_4Target
Change-Id: I888d4d4ffbff5d24bfe2b9b3cb878eb5f1e1762f
Merged-In: I888d4d4ffbff5d24bfe2b9b3cb878eb5f1e1762f
(cherry picked from commit 4e866a3020)
2020-05-16 01:29:07 +00:00
Shuo Qian
4e866a3020 Skip voice call VTS for devices that don't support voice call with new Util
Bug: 154867827
Test: VtsHalRadio1_4Target
Change-Id: I888d4d4ffbff5d24bfe2b9b3cb878eb5f1e1762f
2020-05-13 01:30:01 +00:00
Steven Moreland
0b4b27183c Radio tests: root before multi-sim preparation.
These tests assumed that they were rooted before running, and due to
a combination of b/152655658 and b/154638140, these appeared to work
when a device already happened to be rooted and the test failures showed
up as problems with the test rather than as problems with the target
preparer.

This is the same workaround being used elsewhere.

Fixes: 154445273 # specifically about VtsHalSapV1_0TargetTest
Test: atest VtsHalSapV1_0TargetTest # passes 100%

The following tests, I confirm MultiSimTargetPreparer works, although my
test device has no SIM so I cannot get fully useful results.
Test: atest VtsHalRadioV1_0TargetTest # slot2 cases can now pass
Test: atest VtsHalRadioV1_1TargetTest # slot2 cases can now pass
Test: atest VtsHalRadioV1_2TargetTest # slot2 cases can now pass
Test: atest VtsHalRadioV1_3TargetTest # fully passes
Test: atest VtsHalRadioV1_4TargetTest # fully passes

Change-Id: Id62cb2e1b7a95552b560ab1d4ff2f63c0a7569a3
2020-05-06 14:17:05 -07:00
Nazanin Bakhshi
401a246feb Merge "Remove requirement for VtsHalRadioV1_3 tests for sim to be present" 2020-04-16 20:30:12 +00:00
Nazanin
77185c3ba5 Remove requirement for VtsHalRadioV1_3 tests for sim to be present
Bug: 153293861
Bug: 154245603
Test: run vts -m VtsHalRadioV1_3Target
Change-Id: Idb1067e757d4abadb2142627b88f775a685d0c02
Merged-In: Idb1067e757d4abadb2142627b88f775a685d0c02
2020-04-16 12:38:24 -07:00
Sarah Chin
61a4657ed9 Update HAL Bands
Test: mm cf_x86_phone-userdebug
Test: atest VtsHalRadioV1_5Target
Bug: 151842542
Change-Id: I3d2b1328693b18cd4a51da6795228ef3b5d2b473
Merged-In: I3d2b1328693b18cd4a51da6795228ef3b5d2b473
2020-04-14 18:10:13 -07:00
Nazanin
6d586607cd Remove requirement for VtsHalRadioV1_3 tests for sim to be present
Bug: 153293861
Test: run vts -m VtsHalRadioV1_3Target
Change-Id: Idb1067e757d4abadb2142627b88f775a685d0c02
2020-04-09 13:26:41 -07:00
Dan Shi
aad51fa000 Rename vts-core to vts
Bug: 151896491
Test: local build
Exempt-From-Owner-Approval: This CL update suite name vts-core to vts as
the suite name is updated. This CL won't change test logic or behavior.

Change-Id: I562b4dc50765e953800a814a8fd84a01c1b9352b
Merged-In: I562b4dc50765e953800a814a8fd84a01c1b9352b
2020-04-07 16:37:40 -07:00
Dan Shi
ba894f81db Rename vts-core to vts
Bug: 151896491
Test: local build
Exempt-From-Owner-Approval: This CL update suite name vts-core to vts as
the suite name is updated. This CL won't change test logic or behavior.

Change-Id: I562b4dc50765e953800a814a8fd84a01c1b9352b
Merged-In: I562b4dc50765e953800a814a8fd84a01c1b9352b
2020-04-07 15:17:02 -07:00
Malcolm Chen
1c4905c2ee Skip enableModem vts if in single SIM mode.
Due to modem issue, enableModem only works in dual-SIM mode.
And we only use that in dual-SIM mode. So skipping testing in
in single SIM mode.

Bug: 152557383
Test: vts
Change-Id: I41f200317eaf9be0613f92e5bff9a3ee8a98ef15
Merged-In: I41f200317eaf9be0613f92e5bff9a3ee8a98ef15
2020-04-03 14:01:23 -07:00
Xiangyu/Malcolm Chen
03725802fe Merge "Skip enableModem vts if in single SIM mode." into rvc-dev 2020-04-03 20:59:24 +00:00
Malcolm Chen
b4de0a94a2 Skip enableModem vts if in single SIM mode.
Due to modem issue, enableModem only works in dual-SIM mode.
And we only use that in dual-SIM mode. So skipping testing in
in single SIM mode.

Bug: 152557383
Test: vts
Change-Id: I41f200317eaf9be0613f92e5bff9a3ee8a98ef15
2020-04-03 18:30:30 +00:00
Shuo Qian
fb98e4f092 Starting from Android 11, VTS will use "DISABLE_" prefix to disable tests instead of the .xml file. We need to migrate these things.
Test: Treehugger; GoogleTest knowledge; VTS team confirmation
Bug: 152813990
Change-Id: I92616557ae44c2a421ee687d0420f7b7901ba5a9
Merged-In: I92616557ae44c2a421ee687d0420f7b7901ba5a9
(cherry picked from commit 872ffc262f)
2020-04-01 04:39:47 +00:00
Shuo Qian
872ffc262f Starting from Android 11, VTS will use "DISABLE_" prefix to disable tests instead of the .xml file. We need to migrate these things.
Test: Treehugger; GoogleTest knowledge; VTS team confirmation
Bug: 152813990
Change-Id: I92616557ae44c2a421ee687d0420f7b7901ba5a9
2020-04-01 02:32:11 +00:00
Sarah Chin
2aa757432a Update HAL Bands
Test: mm cf_x86_phone-userdebug
Test: atest VtsHalRadioV1_5Target
Bug: 151842542
Change-Id: I3d2b1328693b18cd4a51da6795228ef3b5d2b473
2020-03-26 14:57:35 -07:00
Nazish Tabassum
770b353705 Documentation for enum PersoSubstate
Documentation for Additional personalization categories.
        - SIM_SPN
        - SIM_SP_EHPLMN
        - SIM_ICCID
        - SIM_IMPI
        - SIM_NS_SP

Bug: 69389695
Change-Id: I011c4e67b4189e5db21883f3ac19bee5ea2af250
Merged-in: I011c4e67b4189e5db21883f3ac19bee5ea2af250
2020-03-20 22:49:04 +00:00
Nazish Tabassum
20c6369609 Documentation for enum PersoSubstate
Documentation for Additional personalization categories.
        - SIM_SPN
        - SIM_SP_EHPLMN
        - SIM_ICCID
        - SIM_IMPI
        - SIM_NS_SP

Bug: 69389695
Test: TH
Change-Id: I011c4e67b4189e5db21883f3ac19bee5ea2af250
(cherry picked from commit 0b7f4669ca26249165bba61eb4c65a02fe67edc7)
2020-03-20 15:43:41 -07:00
Sarah Chin
c940a17900 Convert VtsHalRadioV1_5TargetTest to parameterized gtest
Test: make cf_x86_phone-userdebug, mm
Test: atest VtsHalRadioV1_5Target
Bug: 148816663
Change-Id: I708cc7335f539379d4e676dc0a6541a6c98d43bb
Merged-In: I708cc7335f539379d4e676dc0a6541a6c98d43bb
2020-03-19 18:40:37 -07:00
Treehugger Robot
6e568e84f8 Merge "Remove setSystemSelectionChannels vts test." 2020-03-17 19:45:52 +00:00
Malcolm Chen
96f01bb75d Remove setSystemSelectionChannels vts test.
This HAL API was not enforced in IRadio 1.3. The vts was disabled.
Now we have new API setSystemSelectionChannels_1_5 in IRadio 1.5 and
corresponding vts test. We no longer need this old disabled vts.

Bug: 146062695
Test: vts
Change-Id: Ie81cb38c4848118318b9df5eef799469ff362f16
Merged-In: Ie81cb38c4848118318b9df5eef799469ff362f16
2020-03-16 12:18:45 -07:00
Rambo Wang
218ea408e3 Update Barring HAL Structures to nest single-use unions/structs
Bug: 148102466
Test: compilation for both cuttlefish and sargo
Merged-In: I8a8e734011909b038c0d735c2bfde7ea773b71e6
Change-Id: I8a8e734011909b038c0d735c2bfde7ea773b71e6
(cherry picked from commit 24c3416b4f)
2020-03-11 18:16:25 -07:00
Nathan Harold
666a2d3d83 Add a VTS test for BarringInfo
Add a VTS that verifies polled BarringInfo
is sanely constructed.

Bug: 148646258
Test: make VtsHalRadioV1_5TargetTest
Merged-In: Idf8d110efe8fa2289fbcc8ed7f0959f0bd51999e
Change-Id: Idf8d110efe8fa2289fbcc8ed7f0959f0bd51999e
(cherry picked from commit 72083ba9cd)
2020-03-11 13:11:55 -07:00
Rambo Wang
8d4a73b149 Add CellIdentity to getBarringInfoResponse
Add CellIdentity to getBarringInfoResponse to make
the req/resp method match the existing indication.
The CellIdentity is used to prevent races where
barring is attributed to the wrong cell based on the
timing of separate polled or unsolicited inputs to
the framework.

Because the CellIdentity is already in IRadioIndication
the information to provide CID with BarringInfo is already
present and available. This just makes the unsol and the
polled APIs match.

Matching indication is IRadioIndication@1.5::barringInfoChanged

Bug: 148992393
Test: make && VtsHalRadioV1_5TargetTest
Merged-In: I74e6ab9ca9e0dd49846af774fd73773ff3737df7
Change-Id: I74e6ab9ca9e0dd49846af774fd73773ff3737df7
(cherry picked from commit 6894f89fd8)
2020-03-11 13:11:55 -07:00
Brad Ebinger
a4ed40b15b Clarify new setRadioPower documentation
There were some questions on how the new IRadio 1.5 setRadioPower
command should be implemented based on vendor feedback. This CL
clarifies this behavior.

Test: manual
Bug: 143683647
Change-Id: If08741f0ea156a5c2656a47e46f7e1f98bf54ec4
Merged-In: If08741f0ea156a5c2656a47e46f7e1f98bf54ec4
2020-03-09 14:03:08 -07:00
Sarah Chin
ca2610164c Update 1.5 IRadio interface with missing structs/functions
Structs: AppStatus, CardStatus
Responses: getDataCallListResponse_1_5, getIccCardStatusResponse_1_5
Indications: dataCallListChanged_1_5
Update VTS tests to use 1.5 CardStatus

Test: build cf_x86_phone-userdebug
Bug: 150246280
Change-Id: Ib26c6df804d99f2487e2bfa7b302a98fa25f55e1
Merged-In: Ib26c6df804d99f2487e2bfa7b302a98fa25f55e1
2020-03-09 11:03:49 -07:00
Hsiaoan Hsu
6e8b33a127 VTS: Fix IRadio.nvResetConfig
- IRadio.nvResetConfig:
IRadio.nvResetConfig with ResetNvType ERASE cause radio restart.
The subsuquent test cases fail with RADIO_NOT_AVAILABLE.
Fix to use ResetNvType FACTORY_RESET which does not restart the radio.

Test: run vts -m VtsHalRadioV1_0Target
Bug: 147831226
Change-Id: I45e5cbcf9144c3ace987ac8e047e40fbee403734
2020-03-09 12:12:33 +08:00
Jordan Liu
d3b99f52cf Merge "Add more info on control key param" 2020-03-02 23:07:33 +00:00
Sarah Chin
dafc9a99e9 Update 1.5 IRadio interface with missing structs/functions
Structs: AppStatus, CardStatus
Responses: getDataCallListResponse_1_5, getIccCardStatusResponse_1_5
Indications: dataCallListChanged_1_5
Update VTS tests to use 1.5 CardStatus

Test: build cf_x86_phone-userdebug
Bug: 150246280
Change-Id: Ib26c6df804d99f2487e2bfa7b302a98fa25f55e1
2020-02-28 20:42:19 -08:00
Jordan Liu
76b2cf3501 Add more info on control key param
Bug: 149957303
Test: no change to behavior
Change-Id: Id9d0e0e9cb2eb1eda83d7b5f1bd72be63216d976
(cherry picked from commit 8c2a986ee9)
2020-02-27 18:09:42 +00:00
Jordan Liu
ad21dc5d89 Add more info on control key param
Bug: 149957303
Test: no change to behavior
Change-Id: Id9d0e0e9cb2eb1eda83d7b5f1bd72be63216d976
Merged-In: Id9d0e0e9cb2eb1eda83d7b5f1bd72be63216d976
2020-02-27 18:09:09 +00:00
Sarah Chin
9cb1de5994 Merge "Convert VtsHalRadioV1_5TargetTest to parameterized gtest" into rvc-dev 2020-02-27 16:49:20 +00:00
Sarah Chin
3d6fafbf00 Convert VtsHalRadioV1_5TargetTest to parameterized gtest
Test: make cf_x86_phone-userdebug, mm
Test: atest VtsHalRadioV1_5Target
Bug: 148816663
Change-Id: I708cc7335f539379d4e676dc0a6541a6c98d43bb
2020-02-25 13:33:09 -08:00
Brad Ebinger
92747ce5d1 Clarify new setRadioPower documentation
There were some questions on how the new IRadio 1.5 setRadioPower
command should be implemented based on vendor feedback. This CL
clarifies this behavior.

Test: manual
Bug: 143683674
Bug: 147496715
Merged-In: If08741f0ea156a5c2656a47e46f7e1f98bf54ec4
Change-Id: If08741f0ea156a5c2656a47e46f7e1f98bf54ec4
(cherry picked from commit 0eac27ccf3)
2020-02-25 01:16:15 +00:00
Sarah Chin
98c2c53f8c Revert "Set up IRadioConfig 1.3 skeleton"
This reverts commit b071f8ae53.

Reason for revert: Change will not be supported by vendor, so HAL for RadioConfig is no longer necessary.

Change-Id: I33bf652c6aa2f8516ee6ec1c462a1a575d2a5d27
Merged-In: I2eb83fd2356134ef45a782d99174fdd65f8c5a13
2020-02-24 16:55:00 -08:00
Sarah Chin
6ba3da0d23 Revert "PhoneCapabilities changes for device capabilities"
This reverts commit e1d1b0b92c.

Reason for revert: Change not supported by vendor

Change-Id: I5e2cdf0797124e0a1d272ca4b0525d2425954c3f
Merged-In: I9b268f41614149b5cd55caf3d730b25bb1f885e9
2020-02-24 16:20:36 -08:00
Sarah Chin
7fac7578ca Revert "Update PhoneCapability to use 1.5 UTRAN bands"
This reverts commit f0cfc3ef60.

Reason for revert: Change not supported by vendor

Change-Id: Ie148208a890834b0cd05b0ae4d6190e1a0b5dede
Merged-In: Ief5c5325f51a9bb3921bd2eb6e0ea8c9e7111581
2020-02-24 16:10:46 -08:00
Sarah Chin
2f8f6c328b HAL changes for 1.5 setLinkCapacityReportingCriteria
Add to IRadio, IRadioResponse, and VTS

Test: make cf_x86_phone-userdebug && mm
Bug: 149112073
Change-Id: I330d5be6bf531c93439f8f1d55718f71ec46c1c3
Merged-In: I330d5be6bf531c93439f8f1d55718f71ec46c1c3
2020-02-20 17:05:39 -08:00
Sarah Chin
3639471c93 Revert "Set up IRadioConfig 1.3 skeleton"
This reverts commit 83e3ca82e6.

Reason for revert: Change will not be supported by modem, so HAL for RadioConfig is no longer necessary.

Change-Id: I2eb83fd2356134ef45a782d99174fdd65f8c5a13
2020-02-19 12:09:40 -08:00
Sarah Chin
80a755fa0b Revert "PhoneCapabilities changes for device capabilities"
Reston for revert: Change not supported by modem
This reverts commit 322c4cc286.

Change-Id: I9b268f41614149b5cd55caf3d730b25bb1f885e9
2020-02-19 12:09:30 -08:00
Sarah Chin
af09f9de94 Revert "Update PhoneCapability to use 1.5 UTRAN bands"
Revert "PhoneCapability cleanup"

Revert "Test PhoneCapability API"

Revert "PhoneCapability cleanup"

Revert submission 10153355-dev_cap

Reason for revert: Change not supported by modem
Reverted Changes:
Id86ad81d8: Update PhoneCapability to use 1.5 UTRAN bands
Ia44398852: Test PhoneCapability API
I2510de0ab: PhoneCapability cleanup
I29dfb51bf: PhoneCapability cleanup

Change-Id: Ief5c5325f51a9bb3921bd2eb6e0ea8c9e7111581
2020-02-19 12:08:30 -08:00
Sarah Chin
e5bc15c47b Merge "HAL changes for 1.5 setLinkCapacityReportingCriteria" 2020-02-12 20:38:26 +00:00
Sarah Chin
fec7c4e0a0 HAL changes for 1.5 setLinkCapacityReportingCriteria
Add to IRadio, IRadioResponse, and VTS

Test: make cf_x86_phone-userdebug && mm
Bug: 149112073
Change-Id: I330d5be6bf531c93439f8f1d55718f71ec46c1c3
2020-02-11 15:10:50 -08:00
Nathan Harold
72083ba9cd Add a VTS test for BarringInfo
Add a VTS that verifies polled BarringInfo
is sanely constructed.

Bug: 148646258
Test: make VtsHalRadioV1_5TargetTest
Change-Id: Idf8d110efe8fa2289fbcc8ed7f0959f0bd51999e
2020-02-06 17:16:07 -08:00
Rambo Wang
6894f89fd8 Add CellIdentity to getBarringInfoResponse
Add CellIdentity to getBarringInfoResponse to make
the req/resp method match the existing indication.
The CellIdentity is used to prevent races where
barring is attributed to the wrong cell based on the
timing of separate polled or unsolicited inputs to
the framework.

Because the CellIdentity is already in IRadioIndication
the information to provide CID with BarringInfo is already
present and available. This just makes the unsol and the
polled APIs match.

Matching indication is IRadioIndication@1.5::barringInfoChanged

Bug: 148992393
Test: make && VtsHalRadioV1_5TargetTest
Change-Id: I74e6ab9ca9e0dd49846af774fd73773ff3737df7
2020-02-06 17:06:10 -08:00
Xiangyu/Malcolm Chen
be7f9af3bb Merge "Remove setSystemSelectionChannels vts test." 2020-02-04 19:08:40 +00:00
Treehugger Robot
f107b4231e Merge "Cleanup IRadio/IRadioConfig HAL" 2020-02-04 17:42:39 +00:00
Rambo Wang
24c3416b4f Update Barring HAL Structures to nest single-use unions/structs
Bug: 148102466
Test: compilation for both cuttlefish and sargo
Change-Id: I8a8e734011909b038c0d735c2bfde7ea773b71e6
2020-02-03 13:44:47 -08:00
Sarah Chin
f90eddff52 Cleanup IRadio/IRadioConfig HAL
Removed unused import statements.
Consistent between internal and AOSP.
More accurate names for ModemFeatures.

Test: make
Change-Id: Icbfe35d472ab3f7fd6cd50b4888e3c478dd29fd2
Merged-In: Icbfe35d472ab3f7fd6cd50b4888e3c478dd29fd2
2020-02-03 20:33:33 +00:00
Sarah Chin
d9939b5878 Merge "Cleanup IRadio/IRadioConfig HAL" 2020-02-03 20:33:23 +00:00
Malcolm Chen
3dfa605907 Remove setSystemSelectionChannels vts test.
This HAL API was not enforced in IRadio 1.3. The vts was disabled.
Now we have new API setSystemSelectionChannels_1_5 in IRadio 1.5 and
corresponding vts test. We no longer need this old disabled vts.

Bug: 146062695
Test: vts
Change-Id: Ie81cb38c4848118318b9df5eef799469ff362f16
2020-01-31 11:46:38 -08:00
Automerger Merge Worker
b76fb4877e Merge "Fix issues for Japan model." am: 66d9a93a71 am: 7fea784ede am: 2c91f575a8
Change-Id: If011be1090c3873a04bf6fbda4345c6bc5d28100
2020-01-31 16:26:44 +00:00
Jordan Liu
66d9a93a71 Merge "Fix issues for Japan model." 2020-01-29 22:28:15 +00:00
Sarah Chin
fc16668e86 Cleanup IRadio/IRadioConfig HAL
Removed unused import statements.
Consistent between internal and AOSP.
More accurate names for ModemFeatures.

Test: make
Change-Id: Icbfe35d472ab3f7fd6cd50b4888e3c478dd29fd2
2020-01-29 13:26:16 -08:00
jicheol.shin
e22a7bddfb Fix issues for Japan model.
1. Docomo, Softbank, KDDI, and another Japan Operator request this.
   - During operation, the mobile device confirms the presence of the ICC and performs ICC outlier detection. If ICC disconnection is detected during operation, turn off the power within 5 seconds after detection, and perform power reset operation.

2.  "setSimCardPower power down"
   - After "setSimCardPower power down", SIM set power down. and ME is wating for "remove sim card" event, but phsically detect pin is still connected, so "remove" event never be sent, and ME can't reboot.

3. Japan model can not "setSimCardPower power up"
After "setSimCardPower power down", Japan model prepare for rebooting.
so so VTS requests "setSimCardPower power up", they can't do this.

Signed-off-by: Jicheol Shin <jicheol.shin@lge.com>

Test: VTS
Test: runc vts -m VtsHalRadioV1_1Target -t VtsHalRadioV1_1Target#RadioHidlTest_v1_1.setSimCardPower_1_1(slot1)_32bit
Test: runc vts -m VtsHalRadioV1_1Target -t VtsHalRadioV1_1Target#RadioHidlTest_v1_1.setSimCardPower_1_1(slot1)_64bit
Bug ID : 147969063
Change-Id: I524a16d04a7783f605913fd3ead15d3c1fbbc78b
2020-01-29 20:14:18 +00:00
Sarah Chin
0b0871ee6b Manual network selection by RAN type
Support updated API for setNetworkSelectionModeManual

Bug: 68116277
Test: atest FrameworksTelephonyTests
Change-Id: I7076da1734d2d020adef568188cb4f4b4914f379
Merged-In: I7076da1734d2d020adef568188cb4f4b4914f379
2020-01-29 10:04:07 -08:00
Jack Yu
478603456f Fixed the comment and time name
To match the API in LinkAddress.

Test: Telephony sanity tests
Bug: 135717900
Change-Id: I06559044c8015bc577d9e4ca489a4924f69093b2
Merged-In: I06559044c8015bc577d9e4ca489a4924f69093b2
2020-01-27 18:05:11 -08:00
Jack Yu
295d9d42c4 Added multi-band support
One cell could have multiple bands assigned.
One frequency could be shared by multiple bands
because they have overlapping.

Test: Telephony sanity tests.
Bug: 131061889
Change-Id: I6018b9df8b8bd0745c3736df764f4569bea28baa
Merged-In: I6018b9df8b8bd0745c3736df764f4569bea28baa
2020-01-27 17:52:48 -08:00
Sarah Chin
f0cfc3ef60 Update PhoneCapability to use 1.5 UTRAN bands
Test: build
Bug: 143238191
Change-Id: Id86ad81d837c983e2d34633fdebdfc308e219a3d
Merged-In: Id86ad81d837c983e2d34633fdebdfc308e219a3d
2020-01-27 17:44:12 -08:00
Sarah Chin
308569a879 Support IPv6 MTU in IRadio 1.5
Change mtu->mtuV4 and add mtuV6 for DataProfileInfo and
SetupDataCallResult

Test: mm and build
Bug: 146668814
Change-Id: I33320281730fdb91d2b07d11cd24a95d0834c9dd
Merged-In: I33320281730fdb91d2b07d11cd24a95d0834c9dd
2020-01-27 15:36:15 -08:00
Jack Yu
e7dcbfc135 Added NR band support
Added band info in cell identity.

Test: Telephony sanity tests
Bug: 131061889
Change-Id: I5205aa70db0d83fd049c5f25b0b427ab7484727b
Merged-In: I5205aa70db0d83fd049c5f25b0b427ab7484727b
2020-01-27 15:28:06 -08:00
Nathan Harold
8f0d8b1840 Add Multi-PLMN and CSG support
Non-functional changes:
-Clarify that the MCC+MNC in the CellIdentity should be used to
 report the Primary PLMN only; (this PLMN is globally unique, and
 can be used to construct a CGI/ECGI whereas other PLMN-IDs cannot).
-Add clarification for the reporting of multi-PLMN 5G networks.

Functional changes:
-Add a list of PLMNs for MOCN Networks. This allows cells that are
 shared by multiple operators to be properly reported.
-Add support for Closed Subscriber Group reporting to allow
 identification of small-cell deployments.

Bug: 135921133
Test: make VtsHalRadioV1_5Target
      && make aosp_cf_x86_64_phone-userdebug
Change-Id: Ibb0682de8ae9c4421e79086773c977a4e76ac4f1
Merged-In: Ibb0682de8ae9c4421e79086773c977a4e76ac4f1
2020-01-26 11:18:59 -08:00
Nathan Harold
caee79f174 Add Support for RPLMN to Voice and Data RegState
-Define RegistrationFailCause as an enum
-Combine voice and data reg state into a single struct
-Define a safe-union for AN-specific registration info

Bug: 73629308
Test: make && make VtsHalRadioV1_5TargetTest
      && make cf_x86_64_phone-userdebug

Change-Id: I43df3cffd4c55f2c5df8eaf0235772e5930dced5
Merged-In: I43df3cffd4c55f2c5df8eaf0235772e5930dced5
2020-01-25 00:39:23 -08:00
Sarah Chin
e1d1b0b92c PhoneCapabilities changes for device capabilities
Change PhoneCapability structure to contain static capabilities for:
* the entire device
* each modem/radio
* each SIM slot

Created SimSlotCapability and SlotType to hold information about
device SIM slot capabilities (separate from SimSlotStatus).

Created ModemFeatures to express modem capabilities as a bitfield
of concurrently supportable modem features.

PhoneCapability has fields for UE categories, bands, access networks,
and modem switching linger time. It also contains a lists of logical
modem UUIDs, SIM slot capabilities, and all possible concurrently
supportable modem features.

TelephonyManager will have an API that returns
* the PhoneCapability for the device
* active set of ModemFeatures

Apps with CARRIER_PRIVILEGE can use these APIs to access all
capabilities of a device (eg. 5G capable, DSDS capable, etc.) and
use them to make decisions based on what the device can support.

Test: atest FrameworksTelephonyTests
Bug: 143238237
Bug: 143238191
Change-Id: I424ef176086d2308a4bf53b2c79407eabafb3178
Merged-In: I424ef176086d2308a4bf53b2c79407eabafb3178
2020-01-25 00:39:04 -08:00
Jack Yu
5b971bfa50 Added TD-SCDMA bands for network scanning
Added TD-SCDMA bands defined in 3GPP TS 25.102.

Test: Telephony sanity tests
Bug: 144939345
Change-Id: Ib1881ed41e6427edd294bb7af6f914baeb40d8f2
Merged-In: Ib1881ed41e6427edd294bb7af6f914baeb40d8f2
2020-01-24 19:37:58 -08:00
Nazish Tabassum
c448718602 CDMA MO SMS follow on DC feature
Add new API in @1.5 IRadio and IRadioResponse interfaces
to send MO CDMA SMS with expectMore option

Bug: 72613248
Change-Id: I9aec3a58b531c17ec55db290d0e82bc7d34afa84
Merged-In: I9aec3a58b531c17ec55db290d0e82bc7d34afa84
2020-01-25 01:51:11 +00:00
Robert Greenwalt
d674835f1d Merge commit '20a6e2f6d7d9557a79c53045bf7fbd0ba5927bd2' into manual_merge_inter
Bug: None
Test: compiles
Change-Id: I2e82ed89848f610f3c702e9cd487aad538e7ecb4
2020-01-23 20:01:12 -08:00
Jack Yu
5910241fe9 Fixed the comment and time name
To match the API in LinkAddress.

Test: Telephony sanity tests
Bug: 135717900
Change-Id: I06559044c8015bc577d9e4ca489a4924f69093b2
2020-01-23 15:00:01 -08:00
Nazish Tabassum
ba2f83002d CDMA MO SMS follow on DC feature
Add new API in @1.5 IRadio and IRadioResponse interfaces
to send MO CDMA SMS with expectMore option

Test: make
Bug: 72613248
Change-Id: I9aec3a58b531c17ec55db290d0e82bc7d34afa84
2020-01-23 14:56:22 -08:00