ITelephonyRegistry.aidl revision 071743f0cbbfab36150db6ec945452579d02e8dd
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
19import android.content.Intent;
20import android.net.LinkProperties;
21import android.net.NetworkCapabilities;
22import android.os.Bundle;
23import android.telephony.CellInfo;
24import android.telephony.DataConnectionRealTimeInfo;
25import android.telephony.ServiceState;
26import android.telephony.SignalStrength;
27import android.telephony.CellInfo;
28import android.telephony.VoLteServiceState;
29import com.android.internal.telephony.IPhoneStateListener;
30import com.android.internal.telephony.IOnSubscriptionsChangedListener;
31
32interface ITelephonyRegistry {
33    void addOnSubscriptionsChangedListener(String pkg,
34            IOnSubscriptionsChangedListener callback);
35    void removeOnSubscriptionsChangedListener(String pkg,
36            IOnSubscriptionsChangedListener callback);
37    void listen(String pkg, IPhoneStateListener callback, int events, boolean notifyNow);
38    void listenForSubscriber(in int subId, String pkg, IPhoneStateListener callback, int events,
39            boolean notifyNow);
40    void notifyCallState(int state, String incomingNumber);
41    void notifyCallStateForSubscriber(in int subId, int state, String incomingNumber);
42    void notifyServiceStateForPhoneId(in int phoneId, in int subId, in ServiceState state);
43    void notifySignalStrength(in SignalStrength signalStrength);
44    void notifySignalStrengthForSubscriber(in int subId, in SignalStrength signalStrength);
45    void notifyMessageWaitingChangedForPhoneId(in int phoneId, in int subId, in boolean mwi);
46    void notifyCallForwardingChanged(boolean cfi);
47    void notifyCallForwardingChangedForSubscriber(in int subId, boolean cfi);
48    void notifyDataActivity(int state);
49    void notifyDataActivityForSubscriber(in int subId, int state);
50    void notifyDataConnection(int state, boolean isDataConnectivityPossible,
51            String reason, String apn, String apnType, in LinkProperties linkProperties,
52            in NetworkCapabilities networkCapabilities, int networkType, boolean roaming);
53    void notifyDataConnectionForSubscriber(int subId, int state, boolean isDataConnectivityPossible,
54            String reason, String apn, String apnType, in LinkProperties linkProperties,
55            in NetworkCapabilities networkCapabilities, int networkType, boolean roaming);
56    void notifyDataConnectionFailed(String reason, String apnType);
57    void notifyDataConnectionFailedForSubscriber(int subId, String reason, String apnType);
58    void notifyCellLocation(in Bundle cellLocation);
59    void notifyCellLocationForSubscriber(in int subId, in Bundle cellLocation);
60    void notifyOtaspChanged(in int otaspMode);
61    void notifyCellInfo(in List<CellInfo> cellInfo);
62    void notifyPreciseCallState(int ringingCallState, int foregroundCallState,
63            int backgroundCallState);
64    void notifyDisconnectCause(int disconnectCause, int preciseDisconnectCause);
65    void notifyPreciseDataConnectionFailed(String reason, String apnType, String apn,
66            String failCause);
67    void notifyCellInfoForSubscriber(in int subId, in List<CellInfo> cellInfo);
68    void notifyDataConnectionRealTimeInfo(in DataConnectionRealTimeInfo dcRtInfo);
69    void notifyVoLteServiceStateChanged(in VoLteServiceState lteState);
70    void notifyOemHookRawEventForSubscriber(in int subId, in byte[] rawData);
71    void notifySubscriptionInfoChanged();
72}
73