IPhoneSubInfo.aidl revision 52a08cf683a6d183222d795862cfd135cec5694f
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 Group Identifier Level1 for GSM phones.
43     */
44    String getGroupIdLevel1();
45
46    /**
47     * Retrieves the serial number of the ICC, if applicable.
48     */
49    String getIccSerialNumber();
50
51    /**
52     * Retrieves the phone number string for line 1.
53     */
54    String getLine1Number();
55
56    /**
57     * Retrieves the alpha identifier for line 1.
58     */
59    String getLine1AlphaTag();
60
61    /**
62     * Retrieves MSISDN Number.
63     */
64    String getMsisdn();
65
66    /**
67     * Retrieves the voice mail number.
68     */
69    String getVoiceMailNumber();
70
71    /**
72     * Retrieves the complete voice mail number.
73     */
74    String getCompleteVoiceMailNumber();
75
76    /**
77     * Retrieves the alpha identifier associated with the voice mail number.
78     */
79    String getVoiceMailAlphaTag();
80
81    /**
82     * Returns the IMS private user identity (IMPI) that was loaded from the ISIM.
83     * @return the IMPI, or null if not present or not loaded
84     */
85    String getIsimImpi();
86
87    /**
88     * Returns the IMS home network domain name that was loaded from the ISIM.
89     * @return the IMS domain name, or null if not present or not loaded
90     */
91    String getIsimDomain();
92
93    /**
94     * Returns the IMS public user identities (IMPU) that were loaded from the ISIM.
95     * @return an array of IMPU strings, with one IMPU per string, or null if
96     *      not present or not loaded
97     */
98    String[] getIsimImpu();
99}
100