From 33e87b8a76d6b5096f19da0a992d233fed370716 Mon Sep 17 00:00:00 2001 From: Steven Moreland Date: Tue, 22 Nov 2016 15:34:39 -0800 Subject: [PATCH] Remove HIDL_GENERATED from things written by hand. find . -name "*.h" -exec sed -i 's/HIDL_GENERATED_\(.*\)_H_/\U\1_H/g' {} + They now match what would be generated by -Lc++-impl. This prevents confusion over whether or not the files are autogenerated. Test: pass Change-Id: I2c9d7887f6d6bdaa19a5c4bfcf02ee3d1dbc81d1 --- boot/1.0/default/BootControl.h | 6 +++--- nfc/1.0/default/Nfc.h | 6 +++--- tests/bar/1.0/default/Bar.h | 6 +++--- tests/bar/1.0/default/ImportTypes.h | 6 +++--- tests/foo/1.0/default/Foo.h | 6 +++--- tests/foo/1.0/default/FooCallback.h | 6 +++--- tests/inheritance/1.0/default/Child.h | 6 +++--- tests/inheritance/1.0/default/Fetcher.h | 6 +++--- tests/inheritance/1.0/default/Grandparent.h | 6 +++--- tests/inheritance/1.0/default/Parent.h | 6 +++--- tests/libhwbinder/1.0/default/Benchmark.h | 6 +++--- tests/pointer/1.0/default/Graph.h | 6 +++--- tests/pointer/1.0/default/Pointer.h | 6 +++--- 13 files changed, 39 insertions(+), 39 deletions(-) diff --git a/boot/1.0/default/BootControl.h b/boot/1.0/default/BootControl.h index 73af4f4f11..be8a81441e 100644 --- a/boot/1.0/default/BootControl.h +++ b/boot/1.0/default/BootControl.h @@ -1,5 +1,5 @@ -#ifndef HIDL_GENERATED_android_hardware_boot_V1_0_BootControl_H_ -#define HIDL_GENERATED_android_hardware_boot_V1_0_BootControl_H_ +#ifndef ANDROID_HARDWARE_BOOT_V1_0_BOOTCONTROL_H +#define ANDROID_HARDWARE_BOOT_V1_0_BOOTCONTROL_H #include #include @@ -43,4 +43,4 @@ extern "C" IBootControl* HIDL_FETCH_IBootControl(const char* name); } // namespace hardware } // namespace android -#endif // HIDL_GENERATED_android_hardware_boot_V1_0_BootControl_H_ +#endif // ANDROID_HARDWARE_BOOT_V1_0_BOOTCONTROL_H diff --git a/nfc/1.0/default/Nfc.h b/nfc/1.0/default/Nfc.h index e596495c36..5257636b69 100644 --- a/nfc/1.0/default/Nfc.h +++ b/nfc/1.0/default/Nfc.h @@ -1,5 +1,5 @@ -#ifndef HIDL_GENERATED_android_hardware_nfc_V1_0_Nfc_H_ -#define HIDL_GENERATED_android_hardware_nfc_V1_0_Nfc_H_ +#ifndef ANDROID_HARDWARE_NFC_V1_0_NFC_H +#define ANDROID_HARDWARE_NFC_V1_0_NFC_H #include #include @@ -56,4 +56,4 @@ extern "C" INfc* HIDL_FETCH_INfc(const char* name); } // namespace hardware } // namespace android -#endif // HIDL_GENERATED_android_hardware_nfc_V1_0_Nfc_H_ +#endif // ANDROID_HARDWARE_NFC_V1_0_NFC_H diff --git a/tests/bar/1.0/default/Bar.h b/tests/bar/1.0/default/Bar.h index 29eedec29c..d23c1e161f 100644 --- a/tests/bar/1.0/default/Bar.h +++ b/tests/bar/1.0/default/Bar.h @@ -1,5 +1,5 @@ -#ifndef HIDL_GENERATED_android_hardware_tests_bar_V1_0_Bar_H_ -#define HIDL_GENERATED_android_hardware_tests_bar_V1_0_Bar_H_ +#ifndef ANDROID_HARDWARE_TESTS_BAR_V1_0_BAR_H +#define ANDROID_HARDWARE_TESTS_BAR_V1_0_BAR_H #include #include @@ -79,4 +79,4 @@ extern "C" IBar* HIDL_FETCH_IBar(const char* name); } // namespace hardware } // namespace android -#endif // HIDL_GENERATED_android_hardware_tests_bar_V1_0_Bar_H_ +#endif // ANDROID_HARDWARE_TESTS_BAR_V1_0_BAR_H diff --git a/tests/bar/1.0/default/ImportTypes.h b/tests/bar/1.0/default/ImportTypes.h index b43be70bfd..59c7bea389 100644 --- a/tests/bar/1.0/default/ImportTypes.h +++ b/tests/bar/1.0/default/ImportTypes.h @@ -1,5 +1,5 @@ -#ifndef HIDL_GENERATED_android_hardware_tests_bar_V1_0_ImportTypes_H_ -#define HIDL_GENERATED_android_hardware_tests_bar_V1_0_ImportTypes_H_ +#ifndef ANDROID_HARDWARE_TESTS_BAR_V1_0_IMPORTTYPES_H +#define ANDROID_HARDWARE_TESTS_BAR_V1_0_IMPORTTYPES_H #include #include @@ -33,4 +33,4 @@ extern "C" IImportTypes* HIDL_FETCH_IImportTypes(const char* name); } // namespace hardware } // namespace android -#endif // HIDL_GENERATED_android_hardware_tests_bar_V1_0_ImportTypes_H_ +#endif // ANDROID_HARDWARE_TESTS_BAR_V1_0_IMPORTTYPES_H diff --git a/tests/foo/1.0/default/Foo.h b/tests/foo/1.0/default/Foo.h index 703c2103b6..84629db2dd 100644 --- a/tests/foo/1.0/default/Foo.h +++ b/tests/foo/1.0/default/Foo.h @@ -1,5 +1,5 @@ -#ifndef HIDL_GENERATED_android_hardware_tests_foo_V1_0_Foo_H_ -#define HIDL_GENERATED_android_hardware_tests_foo_V1_0_Foo_H_ +#ifndef ANDROID_HARDWARE_TESTS_FOO_V1_0_FOO_H +#define ANDROID_HARDWARE_TESTS_FOO_V1_0_FOO_H #include #include @@ -71,4 +71,4 @@ extern "C" IFoo* HIDL_FETCH_IFoo(const char* name); } // namespace hardware } // namespace android -#endif // HIDL_GENERATED_android_hardware_tests_foo_V1_0_Foo_H_ +#endif // ANDROID_HARDWARE_TESTS_FOO_V1_0_FOO_H diff --git a/tests/foo/1.0/default/FooCallback.h b/tests/foo/1.0/default/FooCallback.h index 00233b534d..3164a9da18 100644 --- a/tests/foo/1.0/default/FooCallback.h +++ b/tests/foo/1.0/default/FooCallback.h @@ -1,5 +1,5 @@ -#ifndef HIDL_GENERATED_android_hardware_tests_foo_V1_0_FooCallback_H_ -#define HIDL_GENERATED_android_hardware_tests_foo_V1_0_FooCallback_H_ +#ifndef ANDROID_HARDWARE_TESTS_FOO_V1_0_FOOCALLBACK_H +#define ANDROID_HARDWARE_TESTS_FOO_V1_0_FOOCALLBACK_H #include #include @@ -43,4 +43,4 @@ extern "C" IFooCallback* HIDL_FETCH_IFooCallback(const char* name); } // namespace hardware } // namespace android -#endif // HIDL_GENERATED_android_hardware_tests_foo_V1_0_FooCallback_H_ +#endif // ANDROID_HARDWARE_TESTS_FOO_V1_0_FOOCALLBACK_H diff --git a/tests/inheritance/1.0/default/Child.h b/tests/inheritance/1.0/default/Child.h index 0d34e83736..268dfeba84 100644 --- a/tests/inheritance/1.0/default/Child.h +++ b/tests/inheritance/1.0/default/Child.h @@ -1,5 +1,5 @@ -#ifndef HIDL_GENERATED_android_hardware_tests_inheritance_V1_0_Child_H_ -#define HIDL_GENERATED_android_hardware_tests_inheritance_V1_0_Child_H_ +#ifndef ANDROID_HARDWARE_TESTS_INHERITANCE_V1_0_CHILD_H +#define ANDROID_HARDWARE_TESTS_INHERITANCE_V1_0_CHILD_H #include #include @@ -41,4 +41,4 @@ extern "C" IChild* HIDL_FETCH_IChild(const char* name); } // namespace hardware } // namespace android -#endif // HIDL_GENERATED_android_hardware_tests_inheritance_V1_0_Child_H_ +#endif // ANDROID_HARDWARE_TESTS_INHERITANCE_V1_0_CHILD_H diff --git a/tests/inheritance/1.0/default/Fetcher.h b/tests/inheritance/1.0/default/Fetcher.h index d38985329e..da9b15357c 100644 --- a/tests/inheritance/1.0/default/Fetcher.h +++ b/tests/inheritance/1.0/default/Fetcher.h @@ -1,5 +1,5 @@ -#ifndef HIDL_GENERATED_android_hardware_tests_inheritance_V1_0_Fetcher_H_ -#define HIDL_GENERATED_android_hardware_tests_inheritance_V1_0_Fetcher_H_ +#ifndef ANDROID_HARDWARE_TESTS_INHERITANCE_V1_0_FETCHER_H +#define ANDROID_HARDWARE_TESTS_INHERITANCE_V1_0_FETCHER_H #include "Child.h" #include @@ -42,4 +42,4 @@ extern "C" IFetcher* HIDL_FETCH_IFetcher(const char* name); } // namespace hardware } // namespace android -#endif // HIDL_GENERATED_android_hardware_tests_inheritance_V1_0_Fetcher_H_ +#endif // ANDROID_HARDWARE_TESTS_INHERITANCE_V1_0_FETCHER_H diff --git a/tests/inheritance/1.0/default/Grandparent.h b/tests/inheritance/1.0/default/Grandparent.h index e1113bf904..5458b01a1c 100644 --- a/tests/inheritance/1.0/default/Grandparent.h +++ b/tests/inheritance/1.0/default/Grandparent.h @@ -1,5 +1,5 @@ -#ifndef HIDL_GENERATED_android_hardware_tests_inheritance_V1_0_Grandparent_H_ -#define HIDL_GENERATED_android_hardware_tests_inheritance_V1_0_Grandparent_H_ +#ifndef ANDROID_HARDWARE_TESTS_INHERITANCE_V1_0_GRANDPARENT_H +#define ANDROID_HARDWARE_TESTS_INHERITANCE_V1_0_GRANDPARENT_H #include #include @@ -34,4 +34,4 @@ extern "C" IGrandparent* HIDL_FETCH_IGrandparent(const char* name); } // namespace hardware } // namespace android -#endif // HIDL_GENERATED_android_hardware_tests_inheritance_V1_0_Grandparent_H_ +#endif // ANDROID_HARDWARE_TESTS_INHERITANCE_V1_0_GRANDPARENT_H diff --git a/tests/inheritance/1.0/default/Parent.h b/tests/inheritance/1.0/default/Parent.h index 2e07fdcff4..48085fdb0b 100644 --- a/tests/inheritance/1.0/default/Parent.h +++ b/tests/inheritance/1.0/default/Parent.h @@ -1,5 +1,5 @@ -#ifndef HIDL_GENERATED_android_hardware_tests_inheritance_V1_0_Parent_H_ -#define HIDL_GENERATED_android_hardware_tests_inheritance_V1_0_Parent_H_ +#ifndef ANDROID_HARDWARE_TESTS_INHERITANCE_V1_0_PARENT_H +#define ANDROID_HARDWARE_TESTS_INHERITANCE_V1_0_PARENT_H #include #include @@ -37,4 +37,4 @@ extern "C" IParent* HIDL_FETCH_IParent(const char* name); } // namespace hardware } // namespace android -#endif // HIDL_GENERATED_android_hardware_tests_inheritance_V1_0_Parent_H_ +#endif // ANDROID_HARDWARE_TESTS_INHERITANCE_V1_0_PARENT_H diff --git a/tests/libhwbinder/1.0/default/Benchmark.h b/tests/libhwbinder/1.0/default/Benchmark.h index 454fdf293f..74b374556e 100644 --- a/tests/libhwbinder/1.0/default/Benchmark.h +++ b/tests/libhwbinder/1.0/default/Benchmark.h @@ -1,5 +1,5 @@ -#ifndef HIDL_GENERATED_android_hardware_benchmark_V1_0_Benchmark_H_ -#define HIDL_GENERATED_android_hardware_benchmark_V1_0_Benchmark_H_ +#ifndef ANDROID_HARDWARE_BENCHMARK_V1_0_BENCHMARK_H +#define ANDROID_HARDWARE_BENCHMARK_V1_0_BENCHMARK_H #include #include @@ -28,4 +28,4 @@ extern "C" IBenchmark* HIDL_FETCH_IBenchmark(const char* name); } // namespace hardware } // namespace android -#endif // HIDL_GENERATED_android_hardware_benchmark_V1_0_Benchmark_H_ +#endif // ANDROID_HARDWARE_BENCHMARK_V1_0_BENCHMARK_H diff --git a/tests/pointer/1.0/default/Graph.h b/tests/pointer/1.0/default/Graph.h index cbd5a8adcf..03bd163a2c 100644 --- a/tests/pointer/1.0/default/Graph.h +++ b/tests/pointer/1.0/default/Graph.h @@ -1,5 +1,5 @@ -#ifndef HIDL_GENERATED_android_hardware_tests_pointer_V1_0_Graph_H_ -#define HIDL_GENERATED_android_hardware_tests_pointer_V1_0_Graph_H_ +#ifndef ANDROID_HARDWARE_TESTS_POINTER_V1_0_GRAPH_H +#define ANDROID_HARDWARE_TESTS_POINTER_V1_0_GRAPH_H #include #include @@ -44,4 +44,4 @@ extern "C" IGraph* HIDL_FETCH_IGraph(const char* name); } // namespace hardware } // namespace android -#endif // HIDL_GENERATED_android_hardware_tests_pointer_V1_0_Graph_H_ +#endif // ANDROID_HARDWARE_TESTS_POINTER_V1_0_GRAPH_H diff --git a/tests/pointer/1.0/default/Pointer.h b/tests/pointer/1.0/default/Pointer.h index 41d96fdbc0..87b0f56f0c 100644 --- a/tests/pointer/1.0/default/Pointer.h +++ b/tests/pointer/1.0/default/Pointer.h @@ -1,5 +1,5 @@ -#ifndef HIDL_GENERATED_android_hardware_tests_pointer_V1_0_Pointer_H_ -#define HIDL_GENERATED_android_hardware_tests_pointer_V1_0_Pointer_H_ +#ifndef ANDROID_HARDWARE_TESTS_POINTER_V1_0_POINTER_H +#define ANDROID_HARDWARE_TESTS_POINTER_V1_0_POINTER_H #include #include @@ -345,4 +345,4 @@ extern "C" IPointer* HIDL_FETCH_IPointer(const char* name); #undef PUSH_ERROR_IF -#endif // HIDL_GENERATED_android_hardware_tests_pointer_V1_0_Pointer_H_ +#endif // ANDROID_HARDWARE_TESTS_POINTER_V1_0_POINTER_H