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!
sendBinder(IBinder binder)22     void sendBinder(IBinder binder);
23 
24     // DO NOT EVER IN A MILLION YEARS WRITE AN INTERFACE LIKE THIS!
25     // THIS IS ONLY FOR TESTING!
sendAndCallBinder(IBinder binder)26     void sendAndCallBinder(IBinder binder);
27 
28     // DO NOT EVER IN A MILLION YEARS WRITE AN INTERFACE LIKE THIS!
29     // THIS IS ONLY FOR TESTING!
returnNoStabilityBinder()30     IBinder returnNoStabilityBinder();
31 
32     // DO NOT EVER IN A MILLION YEARS WRITE AN INTERFACE LIKE THIS!
33     // THIS IS ONLY FOR TESTING!
returnLocalStabilityBinder()34     IBinder returnLocalStabilityBinder();
35 
36     // DO NOT EVER IN A MILLION YEARS WRITE AN INTERFACE LIKE THIS!
37     // THIS IS ONLY FOR TESTING!
returnVintfStabilityBinder()38     IBinder returnVintfStabilityBinder();
39 
40     // DO NOT EVER IN A MILLION YEARS WRITE AN INTERFACE LIKE THIS!
41     // THIS IS ONLY FOR TESTING!
returnVendorStabilityBinder()42     IBinder returnVendorStabilityBinder();
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
47