IPhoneSubInfo.aidl revision 80c32a37b63ceff885199e22a8505ac557c86d35
1/*
2 * Copyright (C) 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
17package com.android.internal.telephony;
18
19/**
20 * Interface used to retrieve various phone-related subscriber information.
21 *
22 */
23interface IPhoneSubInfo {
24
25    /**
26     * Retrieves the unique device ID, e.g., IMEI for GSM phones.
27     */
28    String getDeviceId();
29
30    /**
31     * Retrieves the software version number for the device, e.g., IMEI/SV
32     * for GSM phones.
33     */
34    String getDeviceSvn();
35
36    /**
37     * Retrieves the unique sbuscriber ID, e.g., IMSI for GSM phones.
38     */
39    String getSubscriberId();
40
41    /**
42     * Retrieves the serial number of the ICC, if applicable.
43     */
44    String getIccSerialNumber();
45
46    /**
47     * Retrieves the phone number string for line 1.
48     */
49    String getLine1Number();
50
51    /**
52     * Retrieves the alpha identifier for line 1.
53     */
54    String getLine1AlphaTag();
55
56    /**
57     * Retrieves MSISDN Number.
58     */
59    String getMsisdn();
60
61    /**
62     * Retrieves the voice mail number.
63     */
64    String getVoiceMailNumber();
65
66    /**
67     * Retrieves the complete voice mail number.
68     */
69    String getCompleteVoiceMailNumber();
70
71    /**
72     * Retrieves the alpha identifier associated with the voice mail number.
73     */
74    String getVoiceMailAlphaTag();
75
76    /**
77     * Returns the IMS private user identity (IMPI) that was loaded from the ISIM.
78     * @return the IMPI, or null if not present or not loaded
79     */
80    String getIsimImpi();
81
82    /**
83     * Returns the IMS home network domain name that was loaded from the ISIM.
84     * @return the IMS domain name, or null if not present or not loaded
85     */
86    String getIsimDomain();
87
88    /**
89     * Returns the IMS public user identities (IMPU) that were loaded from the ISIM.
90     * @return an array of IMPU strings, with one IMPU per string, or null if
91     *      not present or not loaded
92     */
93    String[] getIsimImpu();
94}
95