Commit graph

55 commits

Author SHA1 Message Date
Sewook Seo
ac59d54a04 Add VTS for measurement type UTRAN ECNO
Bug: 243685647
Test: atest VtsHalRadioTargetTest
Change-Id: Iac89c8b73026d7974726cba57a390da9c04535eb
2022-12-20 04:57:35 +00:00
Pomai Ahlo
25fb3aac3a [ISap hidl2aidl] Compat Support
Add support for ISap in the compat shim.

Test: atest VtsHalRadioTargetTest:PerInstance/SapTest
Bug: 241969533
Change-Id: I9fe5fe194de877bcd2b85ccfa822bd6565e2dc72
2022-12-13 10:38:30 -08:00
Dominik Maier
2dec001d16 Add isNullCipherAndIntegrityEnabled HAL API
Bug: b/237529943
Test: m
Change-Id: Ie4d4f7be78e748f4166ffd371e8acf2c38de8f99
2022-12-13 01:43:47 +00:00
arunvoddu
d9bbd44bf3 HAL changes to PrimaryImei feature
Bug: 184001777
Test: Build successfully
Change-Id: I54c35d9bebd32180583241bfba4d2fd93f85381d
2022-12-02 05:23:11 +00:00
TreeHugger Robot
05631762b5 Merge changes from topic "LocationPrivacy-HAL"
* changes:
  [test_suite] Add Location Privacy HAL
  [AIDL] Add Location Privacy HAL
2022-11-30 18:50:06 +00:00
Terry Huang
1f79db1faa [test_suite] Add Location Privacy HAL
Bug: 244637957
Test: Build test_suite pass

Change-Id: Id874a52d7ab62ae31b2d840cc236543be903191e
2022-11-23 16:41:07 +08:00
Sarah Chin
5d404b4c52 Change NrQos qfi from byte to int
Deprecate byte qfi and replace with int qosFlowIdentifier

Test: build
Bug: 247072632
Change-Id: I38cb276c7d0f0d4fd90d393351e44e4fcf162ae6
2022-11-22 23:30:45 +00:00
Sarah Chin
ed035ca3e1 Merge "Remove LTE_CA from HAL" 2022-11-18 18:40:24 +00:00
Sarah Chin
ef437d900f Remove LTE_CA from HAL
Update IRadio imports to use V2

Test: build
Bug: 240997187
Change-Id: Ie84a98156d8d02a36c3faa654decba6c837c362a
2022-11-18 06:28:57 -08:00
Hunsuk Choi
474ad38f33 Add isN1ModeEnabled and setN1ModeEnabled to IRadioNetwork
Bug: 255450196
Test: atest VtsHalRadioTargetTest
Change-Id: If8a9e1e1d3dccfa4867c9c7d597c09936abeaa5e
2022-11-17 17:01:12 +00:00
Sarah Chin
309090c573 Merge "Remove REQUEST_NOT_SUPPORTED from IRadio" 2022-11-16 20:58:51 +00:00
Sarah Chin
1044308363 Remove REQUEST_NOT_SUPPORTED from IRadio
Existing APIs should not allow REQUEST_NOT_SUPPORTED as a valid
error. VTS will be updated next to enforce this behavior.
Deprecate unused APIs and remove REQUEST_NOT_SUPPORTED. Deprecated APIs
will not be tested through VTS.

Test: atest hal_implementation_test
Bug: 254095902
Change-Id: I75861eaf632f624afd5fbee2acffb1dd5c5dde27
2022-11-16 09:31:36 -08:00
Yomna Nasser
9140b2ca7c Revert "Revert "Add setNullCipherAndIntegrityEnabled to IRadioNetwork""
This reverts commit eee413c667.

A fix was applied in frameworks/opt/Telephony.

Bug: b/237529943
Test: m
Change-Id: I40f1c4a92d492acc3ee6724090676fcd6b9f12e7
2022-11-16 00:09:24 +00:00
Binyi Wu
eee413c667 Revert "Add setNullCipherAndIntegrityEnabled to IRadioNetwork"
Revert "Add setNullCipherAndIntegrityEnabled CTS to IRadioNetwor..."

Revert "Add constants for setNullCipherAndIntegrityEnabled"

Revert "Add RIL interface for setNullCipherAndIntegrityEnabled"

Revert submission 20283075-setNullCipherAndIntegrityEnabled

Reason for revert:
DroidMonitor: Potential culprit for Bug b/259163733 - verifying through ABTD before revert submission. This is part of the standard investigation process, and does not mean your CL will be reverted.

Reverted Changes:
Idad17af0a:Add setNullCipherAndIntegrityEnabled CTS to IRadio...
Ia72f7bdd6:Add constants for setNullCipherAndIntegrityEnabled...
I5ea99cb06:Add setNullCipherAndIntegrityEnabled to IRadioNetw...
I53403d9f7:Add RIL interface for setNullCipherAndIntegrityEna...

Change-Id: I67bcd9497a5885be59543de790af522a27b75380
2022-11-15 02:19:25 +00:00
Yomna Nasser
50081b287b Add setNullCipherAndIntegrityEnabled to IRadioNetwork
Expose control of allowing/disallowing null encryption & null
integrity modes to Android.

Bug: b/237529943
Test: m
Change-Id: I5ea99cb0637e8d508d74846b3e99bf8a7f5d559a
2022-11-10 23:15:35 +00:00
Hunsuk Choi
1a5f1ccfce Update libradiocompat for IRadioIms in CF
Bug: 216387835
Bug: 250912118
Test: atest VtsHalRadioTargetTest
Change-Id: I0761c7e3111a3f5a008a9b55ef3c068f3fe0702c
2022-11-09 05:52:42 +00:00
Hunsuk Choi
b768d1b9da Revert "Update libradiocompat for IRadioIms in CF"
Revert submission 20106610-ims-hal-cf

Reason for revert: Test failure with v2/android-app-compat-engprod/g3compat/g3-app-compat-main
Reverted Changes:
I2376f08c4:Update libradiocompat for IRadioIms in CF
Ib2cc006d5:Implement IRadioIms in CF

Change-Id: Id1062e908e067dd3ec01f3ecf43021368d5dc91e
2022-11-02 02:30:55 +00:00
Hunsuk Choi
9ea1ce13a6 Update libradiocompat for IRadioIms in CF
Bug: 216387835
Bug: 250912118
Test: atest VtsHalRadioTargetTest
Change-Id: I2376f08c4272ce1d882535be92150a3e33212e04
2022-10-28 10:15:50 +00:00
Hunsuk Choi
98d695ab00 Update IRadioNetwork and VTS for emergency domain selection
1. Add resetScan parameter to cancelEmergencyNetworkScan
It indicates the way how the next triggerEmergencyNetworkScan shall work.
If true, modem will start the new scan from the beginning.
Otherwise, it will proceed as an existing search.

2. Allow RadioError:REQUEST_NOT_SUPPORTED to make requests optional

Bug: 243344927
Test: atest VtsHalRadioTargetTest
Change-Id: I0eaf905d73a7910b7bbd651add4b8a3bb6a23dc6
2022-10-26 07:49:36 +00:00
Sewook Seo
f8b2031064 Revert "Radio HAL : Support N3IWF"
Revert "Update IRadioNetworkImpl of MockModem"

Revert "N3IWF HAL support: update NetworkResponse"

Revert submission 20057104-hal_support_n3iwf

Reason for revert: <N3IWF development will be done in private branch>
Reverted Changes:
Ie7784ffa3:Update IRadioNetworkImpl of MockModem
Iad6a6cc2e:N3IWF HAL support: update NetworkResponse
I2b5506d84:Radio HAL : Support N3IWF cuttlefish work
I8b4b055be:Radio HAL : Support N3IWF

Change-Id: I767ed13a8cd63bcbb28d4804e72cf3f01cd3584b
2022-10-21 00:43:46 +00:00
Sewook Seo
0e966f3ef3 Radio HAL : Support N3IWF
Introduce a new RadioTechnologyFamily type (NON_3GPP)
Include Radio tech family in RegStateResult to differentiate NR & N3IWF.
Add getRegistrationState to differentiate response between NR &
N3IWF.
Add unthrottleDataProfile to differentiate unthrottle event between NR & N3IWF

Bug: 249129495
Test: update-api, Android build, atest VtsHalRadioTargetTest
Change-Id: I8b4b055be140afd26b453fa8d50c999ad4c19bec
2022-10-06 22:28:00 +00:00
Hunsuk Choi
60d28d2c24 Upgrade the version of IRadioNetwork to V2
Bug: 243344927
Bug: 232285403
Test: build and flash
Change-Id: I4cc204c9237f017126a52cb12da5891671f248d6
2022-09-16 08:06:09 +00:00
Treehugger Robot
fe65055051 Merge "Don't use C-style cast." am: d08759dc42
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2178554

Change-Id: If6bda47a289661afd84d40201d9beaa56f07d245
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-09 06:16:31 +00:00
Tomasz Wasilczyk
b542add5c7 Don't use C-style cast.
I thought Type{valueOfOtherPrimitiveType} is a fancy way of doing static
cast. It's not. In fact, it's the same as (Type)valueOfOtherType.

Bug: 241599082
Test: make -k100 tidy-hardware-interfaces-radio
Change-Id: I85ddbe54601b9111030013be85226b90f3d2fe6f
2022-08-08 19:04:26 +00:00
Gary Jian
97347c1fa6 Merge "Fix type conversion from aidl::AccessNetworks to hidl::RadioAccessNetworks" am: b9fbe11dfe am: 96d037bf93 am: 4315111833
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2026284

Change-Id: Ic7bf25de751e9db4cc646d7411ae5c5f7478fe43
2022-03-18 04:46:47 +00:00
Gary Jian
b611de7c3a Fix type conversion from aidl::AccessNetworks to hidl::RadioAccessNetworks
aidl::AccessNetworks and hidl::RadioAccessNetworks has a different enum

Bug: 223770908
Test: manual
Change-Id: Idd20d77c0090567a4e88334061ecd44415500000
2022-03-17 10:48:30 +08:00
Tomasz Wasilczyk
896b7ab730 Expose response methods for services using compat library
Bug: 211819471
Test: it builds
Change-Id: I1fecf05fa8c5c862f18cbc6c974bb9d6a6d39892
2022-02-07 10:13:01 -08:00
Sarah Chin
f746a91d93 Final API changes for IRadio
Remove CarrierRestrictions#priority
Move USSD from messaging -> voice
Rename DataProfileInfo#TYPE_THREE_GPP/2 -> TYPE_3GPP2
Remove neighboring CID APIs

Test: atest VtsHalRadioTargetTest
Bug: 199433581
Bug: 216688606
Change-Id: I621d99b8024f92709bcb675b667bcba678eede9b
Merged-In: I621d99b8024f92709bcb675b667bcba678eede9b
2022-01-31 13:29:03 -08:00
Sarah Chin
02ab7331ac Merge "Allow null DataProfileInfo for IA APN to clear" 2022-01-29 01:46:13 +00:00
Sarah Chin
ca421a6c70 Final API changes for IRadio
Remove CarrierRestrictions#priority
Move USSD from messaging -> voice
Rename DataProfileInfo#TYPE_THREE_GPP/2 -> TYPE_3GPP2
Remove neighboring CID APIs

Test: atest VtsHalRadioTargetTest
Bug: 199433581
Bug: 216688606
Change-Id: I621d99b8024f92709bcb675b667bcba678eede9b
2022-01-28 15:56:10 -08:00
Sarah Chin
4ae4e1723f Allow null DataProfileInfo for IA APN to clear
Test: build
Bug: 216357727
Change-Id: If003316192f579a3970ac48eaf50cb714cf757e6
Merged-In: If003316192f579a3970ac48eaf50cb714cf757e6
2022-01-28 15:15:23 -08:00
Sarah Chin
fbc5d731ca Allow null DataProfileInfo for IA APN to clear
Test: build
Bug: 216357727
Change-Id: If003316192f579a3970ac48eaf50cb714cf757e6
2022-01-28 10:48:10 -08:00
Sooraj Sasindran
d561cc3391 add slicingConfigChanged api
add slicing config changed api to be sent
by modem whenever there is a slice config change

Test: build, vts tracked using bug 214043323
Bug: 194332512
Change-Id: I86e8ab8ac5aa782b099434f1a04ce314631b7f4e
2022-01-13 11:40:54 -08:00
Sarah Chin
fd593414cd Merge changes Ic82ffd2f,I29632003
* changes:
  Finish IRadio 1.6/IRadioConfig 1.3 AIDL VTS
  Convert hidl_bitfield and bitfield to int
2022-01-06 21:52:35 +00:00
Tomasz Wasilczyk
e807d37229 Port ID is always 0 for HIDL HAL.
Bug: 203699028
Test: Build and boot Cuttlefish
Change-Id: Ie948537d63a68e1c9e6c99422b4868e86dee9de9
2022-01-06 03:25:49 +00:00
Tomasz Wasilczyk
9c922979d2 Fix minor TODOs in HIDL-AIDL translation shim
Bug: 203699028
Bug: 210498497
Test: build and boot Cuttlefish
Change-Id: I82dd52f313b5768cfccf0d6a7705b28dfcff24fa
2022-01-06 03:25:37 +00:00
Sarah Chin
c9d3b7b9d6 Convert hidl_bitfield and bitfield to int
The previous API surface replaced bitfields of enums with the enum,
which only allows one value at a time. Instead of using the enum,
replace with int instead.

Test: build
Bug: 210712359
Change-Id: I2963200311494718ae89af8deade0b1dd41354f8
Merged-In: I2963200311494718ae89af8deade0b1dd41354f8
2022-01-05 14:28:57 -08:00
Tomasz Wasilczyk
bf3f93bbf4 Merge changes Iac870a24,I74afe105,I7db17475,I1e0cd95f
* changes:
  Move Radio HAL compat shim logs to radio buffer
  Set HAL response functions after framework sets all of theirs.
  Use most recent available HAL methods.
  Use AIDL callbacks directly.
2022-01-05 22:22:35 +00:00
Tomasz Wasilczyk
6155d5f969 Move Radio HAL compat shim logs to radio buffer
Test: adb logcat -b radio | grep -i radiocompat
Change-Id: Iac870a24d619db8a86ce91029f25c50ef862a268
Merged-In: Iac870a24d619db8a86ce91029f25c50ef862a268
2022-01-05 12:38:46 -08:00
Tomasz Wasilczyk
963a56f74e Set HAL response functions after framework sets all of theirs.
Bug: 207695009
Test: Build with ag/16322062 and a handful of patches from b/207695009,
      try to use telephony stack
Change-Id: I74afe105a22a24efa0c38de20c75beffc58b144f
Merged-In: I74afe105a22a24efa0c38de20c75beffc58b144f
2022-01-05 12:38:39 -08:00
Tomasz Wasilczyk
571542b4be Use most recent available HAL methods.
Bug: 207695009
Test: Build with ag/16322062 and a handful of patches from b/207695009,
      try to use telephony stack
Change-Id: I7db1747550493a634290a968e3f5bbada66f322f
Merged-In: I7db1747550493a634290a968e3f5bbada66f322f
2022-01-05 12:38:30 -08:00
Tomasz Wasilczyk
60638572b2 Use AIDL callbacks directly.
Bug: 210498497
Test: build cuttlefish with ag/16322062, watch logs
Change-Id: I1e0cd95f5f9a911564d14be2d8bbb328572de8c8
Merged-In: I1e0cd95f5f9a911564d14be2d8bbb328572de8c8
2022-01-05 12:38:20 -08:00
Sarah Chin
932926691a Merge changes from topic "usage-setting-hal"
* changes:
  UsageSetting Compat Stubs
  Add UsageSetting to IRadioNetwork
2022-01-05 20:06:19 +00:00
Sarah Chin
3d7d0d2926 Merge "Add TrafficDescriptor to DataProfileInfo" 2022-01-04 17:27:40 +00:00
Nathan Harold
5dad8ffb50 UsageSetting Compat Stubs
Bug: 210023167
Test: make android.hardware.radio-library.compat
Merged-In: Iea5e016878f375608a167ad0fdc232fd2e743fa6
Change-Id: Iea5e016878f375608a167ad0fdc232fd2e743fa6
(cherry picked from commit 055c02fcfb)
2021-12-29 09:43:13 -08:00
Sarah Chin
e98dd0e943 Add TrafficDescriptor to DataProfileInfo
Test: build
Bug: 208651109
Change-Id: Ic5e5edab9be1087044e1a303735a59a4cef8ee89
Merged-In: Ic5e5edab9be1087044e1a303735a59a4cef8ee89
2021-12-23 17:30:36 -08:00
Tomasz Wasilczyk
0675bafd42 Add OWNERS file for AIDL-HIDL compat shim layer
Bug: 203699028
Test: N/A
Change-Id: I02650c8d1f0af58df7094a7316d65599bf0512f1
2021-12-20 12:33:30 -08:00
Gary Jian
2ea9241a0e Improve getModemActivityInfo API
Add optional fields to allow modem to report activity information
of different technologies

Bug: 202413770
Test: m android.hardware.radio.modem-update-api

Change-Id: I3bb76c030222868ce881487fb17692a476c5f846
2021-12-10 12:16:45 +08:00
Tomasz Wasilczyk
dcbae487dd Implement RadioModem for AIDL-HIDL Telephony HAL translator
Bug: 203699028
Test: Boot and grep logcat against radiocompat
Change-Id: I670f78af2cd7a0ce0b49dfc802fd363f47d9b6a6
2021-12-02 09:55:33 -08:00
Tomasz Wasilczyk
6e084181d1 Implement RadioVoice for AIDL-HIDL Telephony HAL translator
Bug: 203699028
Test: Boot and grep logcat against radiocompat
Change-Id: Ie2dce95ba1a468c10d92a74bfdca03d2a8d744b0
2021-12-02 09:55:23 -08:00