| 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 |  | 
|  | 17 | // DO NOT EVER IN A MILLION YEARS WRITE AN INTERFACE LIKE THIS! | 
|  | 18 | // THIS IS ONLY FOR TESTING! | 
|  | 19 | interface IBinderStabilityTest { | 
|  | 20 | // DO NOT EVER IN A MILLION YEARS WRITE AN INTERFACE LIKE THIS! | 
|  | 21 | // THIS IS ONLY FOR TESTING! | 
| Steven Moreland | 43564fd | 2019-08-08 17:27:12 -0700 | [diff] [blame] | 22 | void sendBinder(IBinder binder); | 
| Steven Moreland | dea3cf9 | 2019-07-16 18:06:55 -0700 | [diff] [blame] | 23 |  | 
|  | 24 | // DO NOT EVER IN A MILLION YEARS WRITE AN INTERFACE LIKE THIS! | 
|  | 25 | // THIS IS ONLY FOR TESTING! | 
| Steven Moreland | 43564fd | 2019-08-08 17:27:12 -0700 | [diff] [blame] | 26 | void sendAndCallBinder(IBinder binder); | 
| Steven Moreland | dea3cf9 | 2019-07-16 18:06:55 -0700 | [diff] [blame] | 27 |  | 
|  | 28 | // DO NOT EVER IN A MILLION YEARS WRITE AN INTERFACE LIKE THIS! | 
|  | 29 | // THIS IS ONLY FOR TESTING! | 
| Steven Moreland | 43564fd | 2019-08-08 17:27:12 -0700 | [diff] [blame] | 30 | IBinder returnNoStabilityBinder(); | 
| Steven Moreland | dea3cf9 | 2019-07-16 18:06:55 -0700 | [diff] [blame] | 31 |  | 
|  | 32 | // DO NOT EVER IN A MILLION YEARS WRITE AN INTERFACE LIKE THIS! | 
|  | 33 | // THIS IS ONLY FOR TESTING! | 
| Steven Moreland | 43564fd | 2019-08-08 17:27:12 -0700 | [diff] [blame] | 34 | IBinder returnLocalStabilityBinder(); | 
| Steven Moreland | c709dd8 | 2019-08-05 20:30:14 -0700 | [diff] [blame] | 35 |  | 
|  | 36 | // DO NOT EVER IN A MILLION YEARS WRITE AN INTERFACE LIKE THIS! | 
|  | 37 | // THIS IS ONLY FOR TESTING! | 
| Steven Moreland | 43564fd | 2019-08-08 17:27:12 -0700 | [diff] [blame] | 38 | IBinder returnVintfStabilityBinder(); | 
| Steven Moreland | c709dd8 | 2019-08-05 20:30:14 -0700 | [diff] [blame] | 39 |  | 
|  | 40 | // DO NOT EVER IN A MILLION YEARS WRITE AN INTERFACE LIKE THIS! | 
|  | 41 | // THIS IS ONLY FOR TESTING! | 
| Steven Moreland | 43564fd | 2019-08-08 17:27:12 -0700 | [diff] [blame] | 42 | IBinder returnVendorStabilityBinder(); | 
| Steven Moreland | dea3cf9 | 2019-07-16 18:06:55 -0700 | [diff] [blame] | 43 | } | 
|  | 44 | // DO NOT EVER IN A MILLION YEARS WRITE AN INTERFACE LIKE THIS! | 
|  | 45 | // THIS IS ONLY FOR TESTING! | 
|  | 46 | // Construct and return a binder with a specific stability |