Commit graph

1373 commits

Author SHA1 Message Date
Nathan Harold
630637627f Merge "Update UsageSetting Cache before comparison in VTS" 2022-02-07 21:59:57 +00:00
Roopa Sattiraju
7a79c11c44 Merge "Adding bluetooth apex" 2022-02-05 05:56:15 +00:00
Roopa Sattiraju
e01400a7e4 Adding bluetooth apex
Bluetooth uses ISAP interfaces which are radio 1.0 HIDL implementation.
ISAP is not migrated to AIDL and would need to be migrated only if adding
any new interfaces to ISAP. Since the usage is only in 1.0 and 1.1 and 1.2
would be backward compatible, adding bluetooth apex only to radio 1.0.


Bug: 206121418
Test: Compile
Change-Id: I4f387fb0a36518cbef99084421a90a5d2f5c26c2
2022-02-05 00:38:40 +00:00
Nathan Harold
374bec341f Update UsageSetting Cache before comparison in VTS
The final step of the RadioNewtorkTest#setUsageSetting
is to restore the original value to the modem in case it was
changed. After doing that, the locally cached value in the
VTS layer needs to be updated before comparing it with the
originally queried value to ensure that the modem was
restored to its initial state.

Bug: 211819471
Test: m VtsHalRadioTargetTest
Change-Id: Ibdd584d91b16bb779a0cefa2f45d2704cdcf7288
2022-02-04 14:41:00 -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
a2932530f3 Merge "Make TrafficDescriptor nonnull in DataProfileInfo" 2022-01-31 21:22:42 +00:00
Sarah Chin
363bb087bb Make TrafficDescriptor nonnull in DataProfileInfo
Test: build
Bug: 215717256
Change-Id: I02a5d5fbcc0a3ae22431fcc8615ac68d6df7b628
2022-01-31 11:22:38 -08:00
Sarah Chin
52de0adbd1 Add all prior VTS tests
Test: atest VtsHalRadioTargetTest
Bug: 210712359
Change-Id: Ib7ace442ee2bf8d203df9899d8e8331b26af74ad
Merged-In: Ib7ace442ee2bf8d203df9899d8e8331b26af74ad
2022-01-28 22:07:24 -08:00
Treehugger Robot
350d762bcc Merge "VTS for UsageSetting" 2022-01-29 05:57:39 +00:00
Sarah Chin
02ab7331ac Merge "Allow null DataProfileInfo for IA APN to clear" 2022-01-29 01:46:13 +00:00
Nathan Harold
ccc496b7bf VTS for UsageSetting
Add tests to check that usage setting can be
retrived and set as well as ensuring that invalid
values cannot be set.

Bug: 205595503
Test: make VtsHalRadioTargetTest
Merged-In: I26a68d4b6be4810fab9302b58a3be7f65fc82c83
Change-Id: I26a68d4b6be4810fab9302b58a3be7f65fc82c83
(cherry picked from commit 244423c76b)
2022-01-28 17:10:34 -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
Treehugger Robot
32a10e4c95 Merge "Add owners for IRadio VTS" 2022-01-28 20:45:36 +00:00
Sarah Chin
1755f21ff2 Add owners for IRadio VTS
Test: build
Bug: 210712359
Change-Id: I9a6cafa49de5f84647de624c69781314ceada7a1
2022-01-28 10:51:59 -08:00
Nathan Harold
e9ec9545fc Merge "VTS: Check for "ro.board.first_api_level" in GetBarringInfo()" 2022-01-14 18:22:49 +00: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
Sneh Bansal
c338f29b6d VTS: Check for "ro.board.first_api_level" in GetBarringInfo()
Some GRF targets launched with S release do not support getBarringInfo()
API.

Check "ro.board.first_api_level" also to return from the test-case
when the response is REQUEST_NOT_SUPPORTED.

Bug: 212384410
Change-Id: I890f54f80ff3aca3dcb2c51f20db087d453c2927
2022-01-13 22:57:22 +05:30
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
91997ac089 Finish IRadio 1.6/IRadioConfig 1.3 AIDL VTS
Implement IRadioConfig VTS and helper methods
Verify that VtsHalRadioTargetTest passes

Bug: 210712359
Test: atest VtsHalRadioTargetTest
Change-Id: Ic82ffd2feacc107e9b291ef3aab861d0c1496489
Merged-In: Ic82ffd2feacc107e9b291ef3aab861d0c1496489
2022-01-05 14:29:35 -08: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
Chen Xu
93cb928676 Merge "HAL doc: iccOpenLogicalChannel for MEP-A" 2022-01-05 22:14:08 +00:00
Sarah Chin
a371db6531 Merge "VTS for IRadio AIDL" 2022-01-05 21:02:29 +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
Chen Xu
4b55679d39 HAL doc: iccOpenLogicalChannel for MEP-A
Bug: 206348634
Test: Build
Change-Id: I6d3bb5adb6d08add642468936abbab90edaed983
2022-01-05 06:34:57 +00:00
Chen Xu
7aca942e8a HAL docuement: clarify iccSlotStatus when sim state absent or error.
Bug: 206348634
Test: Build
Change-Id: Iceb33ea876ce675d286806971c76f704e415edc2
2022-01-04 16:57:55 -08: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
Nathan Harold
ead01a029d Add UsageSetting to IRadioNetwork
Add usage setting to IRadioNetwork(Response) and the associated
enum.

Expose the cellular usage setting to Android to be able to query and
set the modem to operate in a data-centric mode or a voice-centric
mode.
This facilitates "companion" subscriptions that might be data-only and
allows voice-centric devices to operate in data-centric mode on networks
that do not support voice service.

Bug: 210023167
Test: compilation
Merged-In: I61b559589a51d139374dc52599201b6412d93da5
Change-Id: I61b559589a51d139374dc52599201b6412d93da5
(cherry picked from commit 3e777942d8)
2021-12-29 09:43:02 -08:00
Sarah Chin
02d2df7135 Merge "Add new fields to DataProfile" 2021-12-28 23:06:10 +00:00
Sarah Chin
d2a4119e2a VTS for IRadio AIDL
Test: build
Bug: 1932997
Change-Id: Ia2fa0df840ff26b4e58d9e44567909815fb5edf5
Merged-In: I4ee665519bfd2fc818fb68beee1f158b10e46176
2021-12-23 17:33:03 -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
Sarah Chin
c7b6c928a0 Add new fields to DataProfile
Test: build
Bug: 198822816
Change-Id: I6c756d42616149a2eed0ba705ffaaeb17d7a014f
Merged-In: I6c756d42616149a2eed0ba705ffaaeb17d7a014f
2021-12-23 17:30:09 -08:00
Sarah Chin
3a16f8fe50 Merge "Revert "VTS for IRadio AIDL"" 2021-12-24 01:20:09 +00:00
Sarah Chin
128849dcff Revert "VTS for IRadio AIDL"
This reverts commit 90c6bf5616.

Reason for revert: broken build due to ag/16428798 not merged into AOSP

Change-Id: Id418e4de248968db17f7ddc711c2137d41ffd0d7
2021-12-24 00:26:08 +00:00
Sarah Chin
eec392805b Merge "VTS for IRadio AIDL" 2021-12-23 23:54:42 +00:00
Sarah Chin
90c6bf5616 VTS for IRadio AIDL
Test: build
Bug: 210712359
Change-Id: I4ee665519bfd2fc818fb68beee1f158b10e46176
Merged-In: I4ee665519bfd2fc818fb68beee1f158b10e46176
2021-12-23 14:35:33 -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
Treehugger Robot
a15bdb9413 Merge changes I670f78af,Ie2dce95b,Ic44227c9,I5770ee41,I82d27049, ...
* changes:
  Implement RadioModem for AIDL-HIDL Telephony HAL translator
  Implement RadioVoice for AIDL-HIDL Telephony HAL translator
  Implement RadioNetwork for AIDL-HIDL Telephony HAL translator
  Implement RadioData for AIDL-HIDL Telephony HAL translator
  Implement RadioSim for AIDL-HIDL Telephony HAL translator
  Implement RadioMessaging for AIDL-HIDL Telephony HAL translator
  Initial implementation of HIDL-AIDL Telephony HAL translator
2021-12-08 20:52:51 +00:00
Seongho Kim
a0b33745b5 Gate gsm/cdma radio feature only for emergency dial
Test: vts
Bug: 207920538
Signed-off-by: Seongho Kim <sh_tiger.kim@samsung.com>
Change-Id: I388bc51e58b5680b5b5c806d88a338822af0c8a7
2021-12-07 03:10:52 +00: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
Tomasz Wasilczyk
70ac7bfb86 Implement RadioNetwork for AIDL-HIDL Telephony HAL translator
Bug: 203699028
Test: Boot and grep logcat against radiocompat
Change-Id: Ic44227c9e2cd38ead97d3f3dda2e028052876568
2021-12-02 09:55:14 -08:00