aboutsummaryrefslogtreecommitdiff
path: root/aidl_to_ndk.cpp
diff options
context:
space:
mode:
authorSteven Moreland <smoreland@google.com>2019-11-21 12:33:24 -0800
committerSteven Moreland <smoreland@google.com>2019-11-22 18:06:26 +0000
commitb8df37dd6d6ce57bd023ce6fc3de5f75fd305d68 (patch)
treecd8c6b0f0397424afdfa636d2083667dcb6945f8 /aidl_to_ndk.cpp
parent828fa935c608ba5244029c050b0cc4e63459887e (diff)
downloadaidl-b8df37dd6d6ce57bd023ce6fc3de5f75fd305d68.tar.gz
Remove bad/unnecessary uses of 'Base'.
'BASE' refers to an interface name w/o the leading 'I'. This doesn't make sense to use with parcelables. However, it is needed for IMPLEMENT/DECLARE_META_INTERFACE which implicitly adds an 'I' to interface names. Fixes: 144762871 Test: hidl2aidl_test (which generates many of these cases) Change-Id: Id63e447209d22681cf015447b37020f6bd8d67a7
Diffstat (limited to 'aidl_to_ndk.cpp')
-rw-r--r--aidl_to_ndk.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/aidl_to_ndk.cpp b/aidl_to_ndk.cpp
index bc8c18a7..c5bb0210 100644
--- a/aidl_to_ndk.cpp
+++ b/aidl_to_ndk.cpp
@@ -136,7 +136,7 @@ TypeInfo InterfaceTypeInfo(const AidlInterface& type) {
}
TypeInfo ParcelableTypeInfo(const AidlParcelable& type) {
- const std::string clazz = NdkFullClassName(type, cpp::ClassNames::BASE);
+ const std::string clazz = NdkFullClassName(type, cpp::ClassNames::RAW);
return TypeInfo{
.raw =
@@ -164,7 +164,7 @@ TypeInfo ParcelableTypeInfo(const AidlParcelable& type) {
}
TypeInfo EnumDeclarationTypeInfo(const AidlEnumDeclaration& enum_decl) {
- const std::string clazz = NdkFullClassName(enum_decl, cpp::ClassNames::BASE);
+ const std::string clazz = NdkFullClassName(enum_decl, cpp::ClassNames::RAW);
static map<std::string, std::string> kAParcelTypeNameMap = {
{"byte", "Byte"},