ITelephonyRegistry.aidl revision fb40dd4d00bd3361b2535bc866e6c21eadc52558
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 listenUsingSubId(in long subId, String pkg, IPhoneStateListener callback, int events,
34            boolean notifyNow);
35    void notifyCallState(int state, String incomingNumber);
36    void notifyCallStateUsingSubId(in long subId, int state, String incomingNumber);
37    void notifyServiceState(in ServiceState state);
38    void notifyServiceStateUsingSubId(in long subId, in ServiceState state);
39    void notifySignalStrength(in SignalStrength signalStrength);
40    void notifySignalStrengthUsingSubId(in long subId, in SignalStrength signalStrength);
41    void notifyMessageWaitingChanged(boolean mwi);
42    void notifyMessageWaitingChangedUsingSubId(in long subId, boolean mwi);
43    void notifyCallForwardingChanged(boolean cfi);
44    void notifyCallForwardingChangedUsingSubId(in long subId, boolean cfi);
45    void notifyDataActivity(int state);
46    void notifyDataActivityUsingSubId(in long subId, int state);
47    void notifyDataConnection(int state, boolean isDataConnectivityPossible,
48            String reason, String apn, String apnType, in LinkProperties linkProperties,
49            in NetworkCapabilities networkCapabilities, int networkType, boolean roaming);
50    void notifyDataConnectionUsingSubId(long subId, int state, boolean isDataConnectivityPossible,
51            String reason, String apn, String apnType, in LinkProperties linkProperties,
52            in NetworkCapabilities networkCapabilities, int networkType, boolean roaming);
53    void notifyDataConnectionFailed(String reason, String apnType);
54    void notifyDataConnectionFailedUsingSubId(long subId, String reason, String apnType);
55    void notifyCellLocation(in Bundle cellLocation);
56    void notifyCellLocationUsingSubId(in long subId, in Bundle cellLocation);
57    void notifyOtaspChanged(in int otaspMode);
58    void notifyCellInfo(in List<CellInfo> cellInfo);
59    void notifyPreciseCallState(int ringingCallState, int foregroundCallState,
60            int backgroundCallState);
61    void notifyDisconnectCause(int disconnectCause, int preciseDisconnectCause);
62    void notifyPreciseDataConnectionFailed(String reason, String apnType, String apn,
63            String failCause);
64    void notifyCellInfoUsingSubId(in long subId, in List<CellInfo> cellInfo);
65    void notifyDataConnectionRealTimeInfo(in DataConnectionRealTimeInfo dcRtInfo);
66    void notifyVoLteServiceStateChanged(in VoLteServiceState lteState);
67}
68