Commit Graph

13 Commits

Author SHA1 Message Date
Jooyung Han
3c7f6052ef Add tetheroffload HAL APEX am: d254e37e32
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2749882

Change-Id: I7cacb9c989b61d10243a93febdd16dfa99c5f261
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-14 04:06:03 +00:00
Jooyung Han
d254e37e32 Add tetheroffload HAL APEX
This is used by Cuttlefish as of now.

Bug: 300011461
Test: VtsHalTetheroffloadTargetTest
Change-Id: I3cd83d4011636e1ebfca5d20ed4ff7c527d5a63f
2023-09-13 13:11:37 +09:00
Devin Moore
bc279868ec Freeze android.hardware.tetheroffload
Removed the "owner" field in the aidl_interface module so it is frozen
with the rest of the interfaces in the future.

Test: m android.hardware.tetheroffload-freeze-api
Bug: 279471180
Change-Id: I15bbeb74a58211cc7037ba60c1a38c02bd742984
2023-04-25 16:45:28 +00:00
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