Steven Moreland | dea3cf9 | 2019-07-16 18:06:55 -0700 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2019 The Android Open Source Project |
| 3 | * |
| 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | * you may not use this file except in compliance with the License. |
| 6 | * You may obtain a copy of the License at |
| 7 | * |
| 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | * |
| 10 | * Unless required by applicable law or agreed to in writing, software |
| 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | * See the License for the specific language governing permissions and |
| 14 | * limitations under the License. |
| 15 | */ |
| 16 | |
Steven Moreland | c709dd8 | 2019-08-05 20:30:14 -0700 | [diff] [blame] | 17 | import IBinderStabilityTestSub; |
| 18 | |
Steven Moreland | dea3cf9 | 2019-07-16 18:06:55 -0700 | [diff] [blame] | 19 | // DO NOT EVER IN A MILLION YEARS WRITE AN INTERFACE LIKE THIS! |
| 20 | // THIS IS ONLY FOR TESTING! |
| 21 | interface IBinderStabilityTest { |
| 22 | // DO NOT EVER IN A MILLION YEARS WRITE AN INTERFACE LIKE THIS! |
| 23 | // THIS IS ONLY FOR TESTING! |
Steven Moreland | c709dd8 | 2019-08-05 20:30:14 -0700 | [diff] [blame] | 24 | void sendBinder(IBinderStabilityTestSub binder); |
Steven Moreland | dea3cf9 | 2019-07-16 18:06:55 -0700 | [diff] [blame] | 25 | |
| 26 | // DO NOT EVER IN A MILLION YEARS WRITE AN INTERFACE LIKE THIS! |
| 27 | // THIS IS ONLY FOR TESTING! |
Steven Moreland | c709dd8 | 2019-08-05 20:30:14 -0700 | [diff] [blame] | 28 | void sendAndCallBinder(IBinderStabilityTestSub binder); |
Steven Moreland | dea3cf9 | 2019-07-16 18:06:55 -0700 | [diff] [blame] | 29 | |
| 30 | // DO NOT EVER IN A MILLION YEARS WRITE AN INTERFACE LIKE THIS! |
| 31 | // THIS IS ONLY FOR TESTING! |
Steven Moreland | c709dd8 | 2019-08-05 20:30:14 -0700 | [diff] [blame] | 32 | IBinderStabilityTestSub returnNoStabilityBinder(); |
Steven Moreland | dea3cf9 | 2019-07-16 18:06:55 -0700 | [diff] [blame] | 33 | |
| 34 | // DO NOT EVER IN A MILLION YEARS WRITE AN INTERFACE LIKE THIS! |
| 35 | // THIS IS ONLY FOR TESTING! |
Steven Moreland | c709dd8 | 2019-08-05 20:30:14 -0700 | [diff] [blame] | 36 | IBinderStabilityTestSub returnLocalStabilityBinder(); |
| 37 | |
| 38 | // DO NOT EVER IN A MILLION YEARS WRITE AN INTERFACE LIKE THIS! |
| 39 | // THIS IS ONLY FOR TESTING! |
| 40 | IBinderStabilityTestSub returnVintfStabilityBinder(); |
| 41 | |
| 42 | // DO NOT EVER IN A MILLION YEARS WRITE AN INTERFACE LIKE THIS! |
| 43 | // THIS IS ONLY FOR TESTING! |
| 44 | IBinderStabilityTestSub returnVendorStabilityBinder(); |
Steven Moreland | dea3cf9 | 2019-07-16 18:06:55 -0700 | [diff] [blame] | 45 | } |
| 46 | // DO NOT EVER IN A MILLION YEARS WRITE AN INTERFACE LIKE THIS! |
| 47 | // THIS IS ONLY FOR TESTING! |
| 48 | // Construct and return a binder with a specific stability |