1 /* //device/apps/AndroidTests/src/com.android.unit_tests/IAidlTest.aidl 2 ** 3 ** Copyright 2007, The Android Open Source Project 4 ** 5 ** Licensed under the Apache License, Version 2.0 (the "License"); 6 ** you may not use this file except in compliance with the License. 7 ** You may obtain a copy of the License at 8 ** 9 ** http://www.apache.org/licenses/LICENSE-2.0 10 ** 11 ** Unless required by applicable law or agreed to in writing, software 12 ** distributed under the License is distributed on an "AS IS" BASIS, 13 ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 ** See the License for the specific language governing permissions and 15 ** limitations under the License. 16 */ 17 18 package com.android.unit_tests.os; 19 20 import com.android.unit_tests.os.AidlTest; 21 22 interface IAidlTest { intMethod(int a)23 int intMethod(int a); 24 parcelableIn(in AidlTest.TestParcelable p)25 AidlTest.TestParcelable parcelableIn(in AidlTest.TestParcelable p); parcelableOut(out AidlTest.TestParcelable p)26 AidlTest.TestParcelable parcelableOut(out AidlTest.TestParcelable p); parcelableInOut(inout AidlTest.TestParcelable p)27 AidlTest.TestParcelable parcelableInOut(inout AidlTest.TestParcelable p); 28 listParcelableLonger( inout List<AidlTest.TestParcelable> list, int index)29 AidlTest.TestParcelable listParcelableLonger( 30 inout List<AidlTest.TestParcelable> list, int index); listParcelableShorter( inout List<AidlTest.TestParcelable> list, int index)31 int listParcelableShorter( 32 inout List<AidlTest.TestParcelable> list, int index); 33 booleanArray(in boolean[] a0, out boolean[] a1, inout boolean[] a2)34 boolean[] booleanArray(in boolean[] a0, out boolean[] a1, inout boolean[] a2); charArray(in char[] a0, out char[] a1, inout char[] a2)35 char[] charArray(in char[] a0, out char[] a1, inout char[] a2); intArray(in int[] a0, out int[] a1, inout int[] a2)36 int[] intArray(in int[] a0, out int[] a1, inout int[] a2); longArray(in long[] a0, out long[] a1, inout long[] a2)37 long[] longArray(in long[] a0, out long[] a1, inout long[] a2); floatArray(in float[] a0, out float[] a1, inout float[] a2)38 float[] floatArray(in float[] a0, out float[] a1, inout float[] a2); doubleArray(in double[] a0, out double[] a1, inout double[] a2)39 double[] doubleArray(in double[] a0, out double[] a1, inout double[] a2); stringArray(in String[] a0, out String[] a1, inout String[] a2)40 String[] stringArray(in String[] a0, out String[] a1, inout String[] a2); parcelableArray(in AidlTest.TestParcelable[] a0, out AidlTest.TestParcelable[] a1, inout AidlTest.TestParcelable[] a2)41 AidlTest.TestParcelable[] parcelableArray(in AidlTest.TestParcelable[] a0, 42 out AidlTest.TestParcelable[] a1, 43 inout AidlTest.TestParcelable[] a2); 44 voidSecurityException()45 void voidSecurityException(); intSecurityException()46 int intSecurityException(); 47 } 48