1 /*
2 ** Copyright 2007, 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 package com.android.internal.telephony;
18 
19 import android.os.IBinder;
20 
21 /**
22  * A request to open or close a logical channel to the ICC card.
23  *
24  * @hide
25  */
26 @JavaDerive(toString=true, equals=true)
27 parcelable IccLogicalChannelRequest {
28 
29     /** Subscription id. */
30     int subId = -1;
31 
32     /** Physical slot index of the ICC card. */
33     int slotIndex = -1;
34 
35     /** The unique index referring to a port belonging to the ICC card slot. */
36     int portIndex = 0;
37 
38     /** Package name for the calling app, used only when open channel. */
39     @nullable String callingPackage;
40 
41     /** Application id, used only when open channel. */
42     @nullable String aid;
43 
44     /** The P2 parameter described in ISO 7816-4, used only when open channel. */
45     int p2 = 0;
46 
47     /** Channel number */
48     int channel = -1;
49 
50     /** A IBinder object for server side to check if the request client is still living. */
51     @nullable IBinder binder;
52 }
53