From d12c75f531d1d37d54fdad8007925e031b772117 Mon Sep 17 00:00:00 2001 From: David Anekstein Date: Wed, 27 Jul 2022 16:32:01 -0400 Subject: [PATCH] trusty/test/binder: Add package support for modules that have AIDL interfaces Bug: 240461931 Change-Id: Ia88303a4b806be860cac5a324d55d0ab87dce189 --- .../{ => com/android/trusty/binder/test}/ByteEnum.aidl | 2 ++ .../android/trusty/binder/test}/ITestService.aidl | 7 ++++--- .../{ => com/android/trusty/binder/test}/IntEnum.aidl | 2 ++ .../{ => com/android/trusty/binder/test}/LongEnum.aidl | 2 ++ trusty/test/binder/aidl/rules.mk | 10 ++++++---- 5 files changed, 16 insertions(+), 7 deletions(-) rename trusty/test/binder/aidl/{ => com/android/trusty/binder/test}/ByteEnum.aidl (94%) rename trusty/test/binder/aidl/{ => com/android/trusty/binder/test}/ITestService.aidl (93%) rename trusty/test/binder/aidl/{ => com/android/trusty/binder/test}/IntEnum.aidl (94%) rename trusty/test/binder/aidl/{ => com/android/trusty/binder/test}/LongEnum.aidl (94%) diff --git a/trusty/test/binder/aidl/ByteEnum.aidl b/trusty/test/binder/aidl/com/android/trusty/binder/test/ByteEnum.aidl similarity index 94% rename from trusty/test/binder/aidl/ByteEnum.aidl rename to trusty/test/binder/aidl/com/android/trusty/binder/test/ByteEnum.aidl index d3a13ac86..9c712c0e9 100644 --- a/trusty/test/binder/aidl/ByteEnum.aidl +++ b/trusty/test/binder/aidl/com/android/trusty/binder/test/ByteEnum.aidl @@ -14,6 +14,8 @@ * limitations under the License. */ +package com.android.trusty.binder.test; + /* * Hello, world! */ diff --git a/trusty/test/binder/aidl/ITestService.aidl b/trusty/test/binder/aidl/com/android/trusty/binder/test/ITestService.aidl similarity index 93% rename from trusty/test/binder/aidl/ITestService.aidl rename to trusty/test/binder/aidl/com/android/trusty/binder/test/ITestService.aidl index c6a99c84a..cfbb246c4 100644 --- a/trusty/test/binder/aidl/ITestService.aidl +++ b/trusty/test/binder/aidl/com/android/trusty/binder/test/ITestService.aidl @@ -14,10 +14,11 @@ * limitations under the License. */ +package com.android.trusty.binder.test; -import ByteEnum; -import IntEnum; -import LongEnum; +import com.android.trusty.binder.test.ByteEnum; +import com.android.trusty.binder.test.IntEnum; +import com.android.trusty.binder.test.LongEnum; interface ITestService { const @utf8InCpp String PORT = "com.android.trusty.binder.test.service"; diff --git a/trusty/test/binder/aidl/IntEnum.aidl b/trusty/test/binder/aidl/com/android/trusty/binder/test/IntEnum.aidl similarity index 94% rename from trusty/test/binder/aidl/IntEnum.aidl rename to trusty/test/binder/aidl/com/android/trusty/binder/test/IntEnum.aidl index 120e44f8e..4055b2568 100644 --- a/trusty/test/binder/aidl/IntEnum.aidl +++ b/trusty/test/binder/aidl/com/android/trusty/binder/test/IntEnum.aidl @@ -14,6 +14,8 @@ * limitations under the License. */ +package com.android.trusty.binder.test; + @JavaDerive(toString=true) @Backing(type="int") enum IntEnum { diff --git a/trusty/test/binder/aidl/LongEnum.aidl b/trusty/test/binder/aidl/com/android/trusty/binder/test/LongEnum.aidl similarity index 94% rename from trusty/test/binder/aidl/LongEnum.aidl rename to trusty/test/binder/aidl/com/android/trusty/binder/test/LongEnum.aidl index 0e9e933a8..20c64af0d 100644 --- a/trusty/test/binder/aidl/LongEnum.aidl +++ b/trusty/test/binder/aidl/com/android/trusty/binder/test/LongEnum.aidl @@ -14,6 +14,8 @@ * limitations under the License. */ +package com.android.trusty.binder.test; + @Backing(type="long") enum LongEnum { FOO = 100000000000, diff --git a/trusty/test/binder/aidl/rules.mk b/trusty/test/binder/aidl/rules.mk index 6154abb18..546a37074 100644 --- a/trusty/test/binder/aidl/rules.mk +++ b/trusty/test/binder/aidl/rules.mk @@ -17,10 +17,12 @@ LOCAL_DIR := $(GET_LOCAL_DIR) MODULE := $(LOCAL_DIR) +MODULE_AIDL_PACKAGE := com/android/trusty/binder/test + MODULE_AIDLS := \ - $(LOCAL_DIR)/ByteEnum.aidl \ - $(LOCAL_DIR)/IntEnum.aidl \ - $(LOCAL_DIR)/ITestService.aidl \ - $(LOCAL_DIR)/LongEnum.aidl \ + $(LOCAL_DIR)/$(MODULE_AIDL_PACKAGE)/ByteEnum.aidl \ + $(LOCAL_DIR)/$(MODULE_AIDL_PACKAGE)/IntEnum.aidl \ + $(LOCAL_DIR)/$(MODULE_AIDL_PACKAGE)/ITestService.aidl \ + $(LOCAL_DIR)/$(MODULE_AIDL_PACKAGE)/LongEnum.aidl \ include make/aidl.mk