diff options
Diffstat (limited to 'tests/android')
-rw-r--r-- | tests/android/aidl/tests/DeprecatedEnum.aidl | 25 | ||||
-rw-r--r-- | tests/android/aidl/tests/DeprecatedParcelable.aidl | 20 | ||||
-rw-r--r-- | tests/android/aidl/tests/IDeprecated.aidl | 20 | ||||
-rw-r--r-- | tests/android/aidl/tests/ITestService.aidl | 6 |
4 files changed, 71 insertions, 0 deletions
diff --git a/tests/android/aidl/tests/DeprecatedEnum.aidl b/tests/android/aidl/tests/DeprecatedEnum.aidl new file mode 100644 index 00000000..465a6004 --- /dev/null +++ b/tests/android/aidl/tests/DeprecatedEnum.aidl @@ -0,0 +1,25 @@ +/* + * Copyright (C) 2021 The Android Open Source Project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package android.aidl.tests; + +/** @deprecated test */ +@Backing(type="int") +enum DeprecatedEnum { + A, + B, + C, +} diff --git a/tests/android/aidl/tests/DeprecatedParcelable.aidl b/tests/android/aidl/tests/DeprecatedParcelable.aidl new file mode 100644 index 00000000..42737c43 --- /dev/null +++ b/tests/android/aidl/tests/DeprecatedParcelable.aidl @@ -0,0 +1,20 @@ +/* + * Copyright (C) 2021 The Android Open Source Project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package android.aidl.tests; + +/** @deprecated test */ +parcelable DeprecatedParcelable {} diff --git a/tests/android/aidl/tests/IDeprecated.aidl b/tests/android/aidl/tests/IDeprecated.aidl new file mode 100644 index 00000000..f143b692 --- /dev/null +++ b/tests/android/aidl/tests/IDeprecated.aidl @@ -0,0 +1,20 @@ +/* + * Copyright (C) 2021 The Android Open Source Project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package android.aidl.tests; + +/** @deprecated test */ +interface IDeprecated {} diff --git a/tests/android/aidl/tests/ITestService.aidl b/tests/android/aidl/tests/ITestService.aidl index 1520f3d3..1914a4c7 100644 --- a/tests/android/aidl/tests/ITestService.aidl +++ b/tests/android/aidl/tests/ITestService.aidl @@ -63,6 +63,12 @@ interface ITestService { // methods to be added and removed. int UnimplementedMethod(int arg); + /** + * @deprecated to make sure we have something in system/tools/aidl which does a compile check + * of deprecated and make sure this is reflected in goldens + */ + void Deprecated(); + oneway void TestOneway(); // Test that primitives work as parameters and return types. |