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