ITelephonyRegistry.aidl revision 485f2095f8ba695b88331c01a2de468b5616a5d7
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;
30
31interface ITelephonyRegistry {
32    void listen(String pkg, IPhoneStateListener callback, int events, boolean notifyNow);
33    void listenForSubscriber(in long subId, String pkg, IPhoneStateListener callback, int events,
34            boolean notifyNow);
35    void notifyCallState(int state, String incomingNumber);
36    void notifyCallStateForSubscriber(in long subId, int state, String incomingNumber);
37    void notifyServiceStateForPhoneId(in int phoneId, in long subId, in ServiceState state);
38    void notifySignalStrength(in SignalStrength signalStrength);
39    void notifySignalStrengthForSubscriber(in long subId, in SignalStrength signalStrength);
40    void notifyMessageWaitingChangedForPhoneId(in int phoneId, in long subId, in boolean mwi);
41    void notifyCallForwardingChanged(boolean cfi);
42    void notifyCallForwardingChangedForSubscriber(in long subId, boolean cfi);
43    void notifyDataActivity(int state);
44    void notifyDataActivityForSubscriber(in long subId, int state);
45    void notifyDataConnection(int state, boolean isDataConnectivityPossible,
46            String reason, String apn, String apnType, in LinkProperties linkProperties,
47            in NetworkCapabilities networkCapabilities, int networkType, boolean roaming);
48    void notifyDataConnectionForSubscriber(long subId, int state, boolean isDataConnectivityPossible,
49            String reason, String apn, String apnType, in LinkProperties linkProperties,
50            in NetworkCapabilities networkCapabilities, int networkType, boolean roaming);
51    void notifyDataConnectionFailed(String reason, String apnType);
52    void notifyDataConnectionFailedForSubscriber(long subId, String reason, String apnType);
53    void notifyCellLocation(in Bundle cellLocation);
54    void notifyCellLocationForSubscriber(in long subId, in Bundle cellLocation);
55    void notifyOtaspChanged(in int otaspMode);
56    void notifyCellInfo(in List<CellInfo> cellInfo);
57    void notifyPreciseCallState(int ringingCallState, int foregroundCallState,
58            int backgroundCallState);
59    void notifyDisconnectCause(int disconnectCause, int preciseDisconnectCause);
60    void notifyPreciseDataConnectionFailed(String reason, String apnType, String apn,
61            String failCause);
62    void notifyCellInfoForSubscriber(in long subId, in List<CellInfo> cellInfo);
63    void notifyDataConnectionRealTimeInfo(in DataConnectionRealTimeInfo dcRtInfo);
64    void notifyVoLteServiceStateChanged(in VoLteServiceState lteState);
65    void notifyOemHookRawEventForSubscriber(in long subId, in byte[] rawData);
66}
67