Commit Graph

1536 Commits

Author SHA1 Message Date
Hunsuk Choi
059583563d Specify the version of imported android.hardware.radio
To resolve the broken build due to the multiple versions of aidl_interface android.hardware.radio co-existed, including V1 an V2.

Bug: 243344927
Bug: 248994335
Test: build
Change-Id: I39a6af55e3573366d4cbeaf56467c567a9b48113
2022-09-29 06:52:16 +00:00
Alex Buynytskyy
221eb8e0c0 Make new fields backward compatible.
ERROR: hardware/interfaces/radio/aidl/aidl_api/android.hardware.radio.network/3/android/hardware/radio/network/EmergencyRegResult.aidl:43.9-13: Field 'mcc' does not have a useful defau
lt in some backends. Please either provide a default value for this field or mark the field as @nullable. This value or a null value will be used automatically when an old version of t
his parcelable is sent to a process which understands a new version of this parcelable. In order to make sure your code continues to be backwards compatible, make sure the default or n
ull value does not cause a semantic change to this parcelable.
ERROR: hardware/interfaces/radio/aidl/aidl_api/android.hardware.radio.network/3/android/hardware/radio/network/EmergencyRegResult.aidl:44.9-13: Field 'mnc' does not have a useful defau
lt in some backends. Please either provide a default value for this field or mark the field as @nullable. This value or a null value will be used automatically when an old version of t
his parcelable is sent to a process which understands a new version of this parcelable. In order to make sure your code continues to be backwards compatible, make sure the default or n
ull value does not cause a semantic change to this parcelable.

Bug: 243966946
Test: time ./build/make/finalize-step-1.sh
Change-Id: I1a10dbee525d34407d44f5fa6c1159bd8d308265
2022-09-28 16:55:19 +00:00
Hunsuk Choi
62759d8e04 Merge "Update VTS for IRadioNetwork V2" 2022-09-24 00:37:53 +00:00
Hunsuk Choi
a4f8ebb6d1 Merge "Add mcc and mnc to EmergencyRegResult" 2022-09-23 17:29:46 +00:00
Hunsuk Choi
fbd5421ab3 Add mcc and mnc to EmergencyRegResult
Indicating the identity of PLMN.

Test: Functional test on test device.
Bug: 243344927

Change-Id: I385d2099893d3b68c2520b8fb7a732c05dfdf366
2022-09-23 01:04:41 +00:00
Hunsuk Choi
52ee5c0ef4 Move OWNERS from radio/aidl/vts to radio/aidl am: 7fb051700a am: a15b6acee4 am: 45ff461ddd am: 4aba045763 am: ba17f74ffe
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2224518

Change-Id: Idf7126f74b0dc35a483d26d0807e258d4ff84c08
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-22 02:50:27 +00:00
Hunsuk Choi
255990f3b3 Update VTS for IRadioNetwork V2
Bug: 243344927
Bug: 232285403
Test: atest

Change-Id: Icd3f593c5f0547a8443df34c0dc3167e90c2f8c6
2022-09-22 00:16:32 +00:00
Hunsuk Choi
7fb051700a Move OWNERS from radio/aidl/vts to radio/aidl
Test: build
Bug: 210712359
Change-Id: Iceabd7663a3c9a7170b3bcf9c1baacaa1dd9564c
2022-09-21 16:33:33 +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
5cd0668991 Merge "Support Measurement type EC/NO in Radio HAL" 2022-09-05 01:20:59 +00:00
Sewook Seo
3939060c2b Support Measurement type EC/NO in Radio HAL
Adding a new measurement type(EC/NO) in Radio HAL.

Bug: 243685647
Test: build
Change-Id: I0b8cdb4416233389331f60dc278776b8074f05ab
2022-08-27 22:27:39 +00:00
Treehugger Robot
e9d562dac1 Merge "[Bluetooth apex] Use new apex name" am: 2412da0826 am: a326b313f7 am: 67d8a557e8 am: 606f24d35a am: 24465662af
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2192236

Change-Id: I8a35425fdecb6b17449008b7a08bf4bdc2080daf
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-25 05:50:37 +00:00
William Escande
2591c3d0cf [Bluetooth apex] Use new apex name
The Bluetooth apex name is now called com.android.btservices

Bug: 243054261
Test: Build
Change-Id: Ib63646722cbef948b5198fc5f2a9b5ac2ca52ae3
2022-08-22 11:27:58 -07:00
Treehugger Robot
585a947488 Merge "Don't use C-style cast." am: d08759dc42 am: fe65055051 am: eeaec2158f am: 6a4a51ec4c am: 1b8a58b6dd
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2178554

Change-Id: Id8c530e4641d1dde572af1010d483f6400382872
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-09 07:31:10 +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
Sarah Chin
e5e0792e97 VTS setSystemSelectionChannels maintain current state
Test: atest VtsHalRadioTargetTest
Bug: 231271472
Change-Id: If261f548da102963130b8cd669eb6392c9270f9a
Merged-In: If261f548da102963130b8cd669eb6392c9270f9a
2022-07-20 00:16:45 -07:00
Jooyung Han
d81d6a12be Remove AIDL-libs from VNDK
Some are still in VNDK because they are used in other VNDK libs.

Bug: 234181591
Test: m
Merged-In: If999df9c78a20df931177da11742b1c5de19bc08
Change-Id: If999df9c78a20df931177da11742b1c5de19bc08
2022-06-14 16:42:42 +09:00
Jooyung Han
c0b24f4f13 Remove AIDL-libs from VNDK
Some are still in VNDK because they are used in other VNDK libs.

Ignore-AOSP-First: some libs are still in internal master only.

Bug: 234181591
Test: m
Merged-In: If999df9c78a20df931177da11742b1c5de19bc08
Change-Id: If999df9c78a20df931177da11742b1c5de19bc08
(cherry picked from commit 5527adfd7f)
2022-06-14 14:08:59 +09:00
Jooyung Han
5527adfd7f Remove AIDL-libs from VNDK
Some are still in VNDK because they are used in other VNDK libs.

Ignore-AOSP-First: some libs are still in internal master only.

Bug: 234181591
Test: m
Change-Id: If999df9c78a20df931177da11742b1c5de19bc08
2022-06-02 17:43:19 +09:00
TreeHugger Robot
a0dda0e270 Merge "Updated comment regarding the TP - Message Reference" 2022-05-25 15:04:50 +00:00
Sarah Chin
71e9bff98b VTS setSystemSelectionChannels maintain current state am: 479ec9e172 am: 5b5c734e14 am: 410ca0553b am: 44663d3d1f
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/18474552

Change-Id: I8ff258c911e97a46a6df59403965ee659eb1be3d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-19 09:20:56 +00:00
Sarah Chin
479ec9e172 VTS setSystemSelectionChannels maintain current state
Test: atest VtsHalRadioTargetTest
Bug: 231271472
Change-Id: If261f548da102963130b8cd669eb6392c9270f9a
2022-05-18 16:38:29 -07:00
Ramya Manoharan
bc62e71f6c Updated comment regarding the TP - Message Reference
TP - Message Refenence value in pdu must not be modified by modem
Test: refactoring CL. Existing unit tests still pass.
Bug: 228299168

Change-Id: Ibf197f26eae610031dc06cd8336c2744dc1ae6c0
2022-05-17 10:54:59 +00:00
Devin Moore
e8b22c1da1 Add changes to Radio V1 AIDL interfaces
During the API freeze some of the sub-interfaces of radio were frozen
without the latest change adding "@Javaderive(toString=true)".
Instead of creating V2 with these changes, we are updating V1 to include
these changes instead. The change will not break anyone downstream, and
any devices built with the previous V1 will continue to work. The hashes
of the original V1 interfaces are still included in the .hash files, so
VTS will allow both.

Steps taken:
m android.hardware.radio.config-freeze-api
rm aidl_api/android.hardware.radio.config/2/.hash
cp -r aidl_api/android.hardware.radio.config/2/*
    aidl_api/android.hardware.radio.config/1/
rm -rf aidl_api/android.hardware.radio.config/2/
vim Android.bp # remove the newly created version 2
system/tools/aidl/build/hash_gen.sh aidl_api/android.hardware.radio.config/1/
    latest-version aidl_api/android.hardware.radio.config/1/.hash

Test: atest hal_implementation_test
Bug: 225941299
Change-Id: Id14cfffd326bd664acb678f15f4129d85ce251b2
Merged-In: Id14cfffd326bd664acb678f15f4129d85ce251b2
2022-05-12 15:52:53 +00:00
Devin Moore
317f1117f8 Add changes to Radio V1 AIDL interfaces
During the API freeze some of the sub-interfaces of radio were frozen
without the latest change adding "@Javaderive(toString=true)".
Instead of creating V2 with these changes, we are updating V1 to include
these changes instead. The change will not break anyone downstream, and
any devices built with the previous V1 will continue to work. The hashes
of the original V1 interfaces are still included in the .hash files, so
VTS will allow both.

Steps taken:
m android.hardware.radio.config-freeze-api
rm aidl_api/android.hardware.radio.config/2/.hash
cp -r aidl_api/android.hardware.radio.config/2/*
    aidl_api/android.hardware.radio.config/1/
rm -rf aidl_api/android.hardware.radio.config/2/
vim Android.bp # remove the newly created version 2
system/tools/aidl/build/hash_gen.sh aidl_api/android.hardware.radio.config/1/
    latest-version aidl_api/android.hardware.radio.config/1/.hash

Test: atest hal_implementation_test
Bug: 225941299
Change-Id: Id14cfffd326bd664acb678f15f4129d85ce251b2
2022-05-11 22:16:01 +00:00
Rambo Wang
64b9f3fdb6 Add VTS test case to cover multiple RANs per request
Test IRadioNetwork.setSignalStrengthReportingCriteria should
support multiple RANs per request.

Bug: 206857183
Test: atest VtsHalRadioTargetTest
Merged-In: I9d48029b4c2f5c36c7f48c9712c17dbdcf890dc4
Change-Id: I9d48029b4c2f5c36c7f48c9712c17dbdcf890dc4
(cherry picked from commit 926d66ed00)
2022-05-02 11:33:14 -07:00
Jiyong Park
8065d19402 Freeze AIDL APIs for TM am: 70f5837e1f am: 9f7c8a1e57
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/17753326

Change-Id: Ic29d57a4d099e472e2c88ba9cac77d7657aa958a
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-20 16:47:16 +00:00
TreeHugger Robot
bb1bbc41b1 Merge "Emergency Call domain selection HAL API changes." 2022-04-15 23:33:44 +00:00
Jiyong Park
70f5837e1f Freeze AIDL APIs for TM
Bug: 225941299
Test: m
Change-Id: I61eb51c0334eb99489c6f1570110d7e18c350c99
2022-04-16 07:03:24 +09:00
Mahesh Telang
c02436d8bc Emergency Call domain selection HAL API changes.
Emergency Call domain selection HAL API changes.

Test: Functional test on test device.
Bug: 228118865
Change-Id: I01f5440f8a38dee4b79ecaa39bd9f04ce3bccfac
2022-04-15 14:32:40 -07:00
Tim Lin
118816d298 check all active ports
Bug: 226018537
Test: run vts -m VtsHalRadioTargetTest

Change-Id: Ie3d8f7387ebb2846ea772d4f879039a127282c9a
Merged-In: Ie3d8f7387ebb2846ea772d4f879039a127282c9a
2022-04-13 00:28:45 +00:00
TreeHugger Robot
94d3d26d5f Merge "[TCU Host] Enable telephony on Seahawk" 2022-04-13 00:12:00 +00:00
Tim Lin
3c4b22cef2 check all active ports
Bug: 226018537
Test: run vts -m VtsHalRadioTargetTest
Change-Id: Ie3d8f7387ebb2846ea772d4f879039a127282c9a
2022-04-12 21:24:03 +08:00
Tim Lin
148303775a wait for response before running next TC
All TCs store RadioResponseInfo in a shared variable and
read it to verify the result. So there is race condition
problem if we don't wait for responses.

Bug: 228593077
Test: run vts -m VtsHalRadioTargetTest
Change-Id: I45e60f324926588c55abd0a719fd55352767a3eb
Merged-In: I45e60f324926588c55abd0a719fd55352767a3eb
2022-04-11 10:03:50 +08:00
Tim Lin
1a55fff64b set SIM slots mapping based on current mapping
If we set the SIM slots mapping arbitrarily on single SIM enabled
device, the SIM state could become absent and cause other TCs fail.

Bug: 227693614
Test: run vts -m VtsHalRadioTargetTest
Change-Id: I2c8d3a162e1dca5a0bd6cfe93a1cc269f4c25188
Merged-In: I2c8d3a162e1dca5a0bd6cfe93a1cc269f4c25188
2022-04-11 10:03:31 +08:00
Tim Lin
9597360e20 fix infinite loop in enableModem TC
Bug: 227585563
Test: run vts -m VtsHalRadioTargetTest
Change-Id: I879faa5ecef026865d17ad1a23e52cb9f8f70454
Merged-In: I879faa5ecef026865d17ad1a23e52cb9f8f70454
2022-04-11 10:03:01 +08:00
Rambo Wang
8431b21a7b Merge "Add VTS test case to cover multiple RANs per request" into tm-dev 2022-04-09 01:05:07 +00:00
Rambo Wang
926d66ed00 Add VTS test case to cover multiple RANs per request
Test IRadioNetwork.setSignalStrengthReportingCriteria should
support multiple RANs per request.

Bug: 206857183
Test: atest VtsHalRadioTargetTest
Change-Id: I9d48029b4c2f5c36c7f48c9712c17dbdcf890dc4
2022-04-08 11:40:44 -07:00
Tim Lin
4370ecf4e7 wait for response before running next TC
All TCs store RadioResponseInfo in a shared variable and
read it to verify the result. So there is race condition
problem if we don't wait for responses.

Bug: 228593077
Test: run vts -m VtsHalRadioTargetTest
Change-Id: I45e60f324926588c55abd0a719fd55352767a3eb
2022-04-08 22:54:51 +08:00
Tim Lin
c19a0bb019 set SIM slots mapping based on current mapping
If we set the SIM slots mapping arbitrarily on single SIM enabled
device, the SIM state could become absent and cause other TCs fail.

Bug: 227693614
Test: run vts -m VtsHalRadioTargetTest
Change-Id: I2c8d3a162e1dca5a0bd6cfe93a1cc269f4c25188
2022-04-08 22:30:47 +08:00
Tim Lin
62cf454638 fix infinite loop in enableModem TC
Bug: 227585563
Test: run vts -m VtsHalRadioTargetTest
Change-Id: I879faa5ecef026865d17ad1a23e52cb9f8f70454
2022-04-07 09:35:15 +08:00
Sarah Chin
354140fd8c DeactivateDataCall remove network on all errors
Remove network on all errors instead of only RADIO_NOT_AVAIALBLE.

Test: atest DataNetworkTest
Bug: 219998284
Change-Id: I9e36829c627c7fa1286174e536ef5ff561e8b142
Merged-In: I9e36829c627c7fa1286174e536ef5ff561e8b142
2022-04-05 16:11:55 -07:00
Serik Beketayev
a429c26008 [TCU Host] Enable telephony on Seahawk
Enabling telephony on Seahawk. Creating rilproxy
service that binds to radiocompat service and publishes
its APIs over RPC. radiocompat service is a translator
service from HIDL to AIDL.

Bug: 186760449
Test: m -j tcu-host-rilproxy && aae flash
Change-Id: I71bbafb15e8e7a2d3f68666a0564a4aa5fc3f0cb
2022-04-05 16:08:17 -07:00
Sarah Chin
992f730a90 Update documentation for data call list APIs
Test: build
Bug: 221174412
Change-Id: Ibab472f979815cdbec3ce64d7855c7a21fdbec01
Merged-In: Ibab472f979815cdbec3ce64d7855c7a21fdbec01
2022-04-05 15:53:21 -07:00
Treehugger Robot
1f31b6e68b Merge "Enable host support for IRadio AIDL" am: d9c19eda92 am: fc1b5d8c73 am: b349f550fa
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2056267

Change-Id: I00a9f6a21fcbf0e9ca05abe261338a23cd9636b3
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-05 22:37:48 +00:00
Treehugger Robot
d9c19eda92 Merge "Enable host support for IRadio AIDL" 2022-04-05 21:34:47 +00:00
Sarah Chin
57556fbde4 Enable host support for IRadio AIDL
Test: build
Bug: 227504826
Change-Id: Id444cd20944de3679b27667f2419d25f5c040f65
2022-04-05 12:01:35 -07:00
Jiyong Park
6965d70cec Freeze AIDL APIs for TM am: 703e97920e
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/17314883

Change-Id: Id3c165d4bf00ef348488ebf20da7bec66278287c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-02 00:47:11 +00:00
Jiyong Park
7faedf81a0 Merge changes from topic "aidl_freeze_tm" into tm-dev
* changes:
  Implement getInterfaceHash/Version for SoundTrigger
  Add -Wno-missing-permission-annotation for soundtrigger3
  V3 is the latest version of keymaster HAL interface
  Freeze AIDL APIs for TM
2022-04-02 00:15:20 +00:00