Commit graph

10 commits

Author SHA1 Message Date
KH Shi
ad57868c48 Merge changes from topic "tetheroffload-aidl-cherry-pick" into tm-mainline-prod am: d1de52c170
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/21368718

Change-Id: I8bf1dc8abc369e78a5dee87973c90848b31326f4
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-02-22 10:11:32 +00:00
KH Shi
8196cbad1f Fix tethering build after ag/21363239
This commit fixes tethering apex build errors after ag/21363239:
- Remove unsupported field in Android.bp: "frozen: false"
- Add owner field to Android.bp to bypass compilation check of using
  unfrozen AIDL interfaces: owner: "google"

Bug: b/205762647
Test: build and install tethering apex:
      banchan com.google.android.tethering module_x86_64
      UNBUNDLED_BUILD_SDKS_FROM_SOURCE=true m apps_only dist
      adb install out/dist/com.google.android.tethering.apex
Change-Id: Iea77f2117834c1317b3ab16f71881a6b2e299474
2023-02-10 12:07:40 +00:00
KH Shi
5babeec8a6 Follow-up commit of aosp/2329897
This commit resolves comments addressed in aosp/2329897.
- Remove EX_UNSUPPORTED_OPERATION return from setDataWarningAndLimit()
- Update some comments
- Change some errors into assertions
- Correct the sequence of the arguments in EXPECT_EQ(), expected
  argument goes before the actual argument
- Print error or error message if API call fails

Bug: b/205762647
Test: atest VtsHalTetheroffloadTargetTest
Change-Id: Ied83dac5c33e06f6ad4ced18fbee785047b24c38
(cherry picked from commit 562cbfeea2)
Merged-In: Ied83dac5c33e06f6ad4ced18fbee785047b24c38
2023-02-10 12:07:29 +00:00
Devin Moore
3e1765473e Add tetheroffload VTS to general-tests
Also add it to TEST_MAPPING so it's run in presubmits.

Test: na
Bug: 205762647
Change-Id: I9c43ffcff5ccf0fcabcab08101ebc454c7fe3317
(cherry picked from commit b9b0aa4878)
Merged-In: I9c43ffcff5ccf0fcabcab08101ebc454c7fe3317
2023-02-10 12:07:12 +00:00
KH Shi
7c4ed9ded3 Convert Tetheroffload HIDL to AIDL.
This patch converts Tetheroffload HIDL to AIDL and adds an empty
example implementation.
There are some changes in AIDL HAL:
1. Combine IOffloadConfig and IOffloadControl into IOffload
2. Use AIDL builtin errors exception code with message as return

Bug: b/205762647
Test: m android.hardware.tetheroffload-update-api
      m android.hardware.tetheroffload-V1-ndk
      m android.hardware.tetheroffload-service.example
      atest VtsHalTetheroffloadTargetTest
Change-Id: I9859ff3df608c058786b4e2b91cb6cd5f38e653a
(cherry picked from commit d97a308637)
Merged-In: I9859ff3df608c058786b4e2b91cb6cd5f38e653a
2023-02-10 10:04:31 +00:00
Xiang Wang
dd0edc6337 Fix the hidden main function in VTS tests
Otherwise gtest will inherit the one from libgtest_main which
will not start thread pool to handle binder call for callbacks

Bug: b/205762943
Test: atest VtsHalThermalTargetTest VtsHalPowerTargetTest VtsHalTetheroffloadTargetTest
Change-Id: Ib9e5d265b8f5081dd20568a98d01e9190177440a
2023-02-08 16:48:57 -08:00
KH Shi
d0d4fe20c1 Merge "Follow-up commit of aosp/2329897" 2023-02-04 03:23:34 +00:00
KH Shi
562cbfeea2 Follow-up commit of aosp/2329897
This commit resolves comments addressed in aosp/2329897.
- Remove EX_UNSUPPORTED_OPERATION return from setDataWarningAndLimit()
- Update some comments
- Change some errors into assertions
- Correct the sequence of the arguments in EXPECT_EQ(), expected
  argument goes before the actual argument
- Print error or error message if API call fails

Bug: b/205762647
Test: atest VtsHalTetheroffloadTargetTest
Change-Id: Ied83dac5c33e06f6ad4ced18fbee785047b24c38
2023-02-02 20:10:13 +08:00
Devin Moore
b9b0aa4878 Add tetheroffload VTS to general-tests
Also add it to TEST_MAPPING so it's run in presubmits.

Test: na
Bug: 205762647
Change-Id: I9c43ffcff5ccf0fcabcab08101ebc454c7fe3317
2023-01-18 20:58:12 +00:00
KH Shi
d97a308637 Convert Tetheroffload HIDL to AIDL.
This patch converts Tetheroffload HIDL to AIDL and adds an empty
example implementation.
There are some changes in AIDL HAL:
1. Combine IOffloadConfig and IOffloadControl into IOffload
2. Use AIDL builtin errors exception code with message as return

Bug: b/205762647
Test: m android.hardware.tetheroffload-update-api
      m android.hardware.tetheroffload-V1-ndk
      m android.hardware.tetheroffload-service.example
      atest VtsHalTetheroffloadTargetTest
Change-Id: I9859ff3df608c058786b4e2b91cb6cd5f38e653a
2023-01-17 22:44:55 +08:00