Debian Codegraph @

core/java/com/android/internal/telephony/ITelephonyRegistry.aidl

raw
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
17 package com.android.internal.telephony;
18
19 import android.content.Intent;
20 import android.net.LinkProperties;
21 import android.net.NetworkCapabilities;
22 import android.telephony.BarringInfo;
23 import android.telephony.CallQuality;
24 import android.telephony.CellIdentity;
25 import android.telephony.CellInfo;
26 import android.telephony.LinkCapacityEstimate;
27 import android.telephony.TelephonyDisplayInfo;
28 import android.telephony.ims.ImsReasonInfo;
29 import android.telephony.PhoneCapability;
30 import android.telephony.PhysicalChannelConfig;
31 import android.telephony.PreciseDataConnectionState;
32 import android.telephony.ServiceState;
33 import android.telephony.SignalStrength;
34 import android.telephony.emergency.EmergencyNumber;
35 import com.android.internal.telephony.ICarrierConfigChangeListener;
36 import com.android.internal.telephony.ICarrierPrivilegesCallback;
37 import com.android.internal.telephony.IPhoneStateListener;
38 import com.android.internal.telephony.IOnSubscriptionsChangedListener;
39
40 interface ITelephonyRegistry {
41 void addOnSubscriptionsChangedListener(String pkg, String featureId,
42 IOnSubscriptionsChangedListener callback);
43 void addOnOpportunisticSubscriptionsChangedListener(String pkg, String featureId,
44 IOnSubscriptionsChangedListener callback);
45 void removeOnSubscriptionsChangedListener(String pkg,
46 IOnSubscriptionsChangedListener callback);
47
48 void listenWithEventList(in boolean renounceFineLocationAccess,
49 in boolean renounceCoarseLocationAccess, in int subId, String pkg, String featureId,
50 IPhoneStateListener callback, in int[] events, boolean notifyNow);
51 @UnsupportedAppUsage(maxTargetSdk = 30, trackingBug = 170729553)
52 void notifyCallStateForAllSubs(int state, String incomingNumber);
53 void notifyCallState(in int phoneId, in int subId, int state, String incomingNumber);
54 void notifyServiceStateForPhoneId(in int phoneId, in int subId, in ServiceState state);
55 void notifySignalStrengthForPhoneId(in int phoneId, in int subId,
56 in SignalStrength signalStrength);
57 void notifyMessageWaitingChangedForPhoneId(in int phoneId, in int subId, in boolean mwi);
58 @UnsupportedAppUsage(maxTargetSdk = 28)
59 void notifyCallForwardingChanged(boolean cfi);
60 void notifyCallForwardingChangedForSubscriber(in int subId, boolean cfi);
61 @UnsupportedAppUsage(maxTargetSdk = 28)
62 void notifyDataActivity(int state);
63 void notifyDataActivityForSubscriber(in int subId, int state);
64 void notifyDataConnectionForSubscriber(
65 int phoneId, int subId, in PreciseDataConnectionState preciseState);
66 // Uses CellIdentity which is Parcelable here; will convert to CellLocation in client.
67 void notifyCellLocationForSubscriber(in int subId, in CellIdentity cellLocation);
68 @UnsupportedAppUsage
69 void notifyCellInfo(in List<CellInfo> cellInfo);
70 void notifyPreciseCallState(int phoneId, int subId, int ringingCallState,
71 int foregroundCallState, int backgroundCallState);
72 void notifyDisconnectCause(int phoneId, int subId, int disconnectCause,
73 int preciseDisconnectCause);
74 void notifyCellInfoForSubscriber(in int subId, in List<CellInfo> cellInfo);
75 void notifySrvccStateChanged(in int subId, in int lteState);
76 void notifySimActivationStateChangedForPhoneId(in int phoneId, in int subId,
77 int activationState, int activationType);
78 void notifyOemHookRawEventForSubscriber(in int phoneId, in int subId, in byte[] rawData);
79 void notifySubscriptionInfoChanged();
80 void notifyOpportunisticSubscriptionInfoChanged();
81 void notifyCarrierNetworkChange(in boolean active);
82 void notifyCarrierNetworkChangeWithSubId(in int subId, in boolean active);
83 void notifyUserMobileDataStateChangedForPhoneId(in int phoneId, in int subId, in boolean state);
84 void notifyDisplayInfoChanged(int slotIndex, int subId, in TelephonyDisplayInfo telephonyDisplayInfo);
85 void notifyPhoneCapabilityChanged(in PhoneCapability capability);
86 void notifyActiveDataSubIdChanged(int activeDataSubId);
87 void notifyRadioPowerStateChanged(in int phoneId, in int subId, in int state);
88 void notifyEmergencyNumberList(in int phoneId, in int subId);
89 void notifyOutgoingEmergencyCall(in int phoneId, in int subId,
90 in EmergencyNumber emergencyNumber);
91 void notifyOutgoingEmergencySms(in int phoneId, in int subId,
92 in EmergencyNumber emergencyNumber);
93 void notifyCallQualityChanged(in CallQuality callQuality, int phoneId, int subId,
94 int callNetworkType);
95 void notifyImsDisconnectCause(int subId, in ImsReasonInfo imsReasonInfo);
96 void notifyRegistrationFailed(int slotIndex, int subId, in CellIdentity cellIdentity,
97 String chosenPlmn, int domain, int causeCode, int additionalCauseCode);
98 void notifyBarringInfoChanged(int slotIndex, int subId, in BarringInfo barringInfo);
99 void notifyPhysicalChannelConfigForSubscriber(in int phoneId, in int subId,
100 in List<PhysicalChannelConfig> configs);
101 void notifyDataEnabled(in int phoneId, int subId, boolean enabled, int reason);
102 void notifyAllowedNetworkTypesChanged(in int phoneId, in int subId, in int reason, in long allowedNetworkType);
103 void notifyLinkCapacityEstimateChanged(in int phoneId, in int subId,
104 in List<LinkCapacityEstimate> linkCapacityEstimateList);
105
106 void addCarrierPrivilegesCallback(
107 int phoneId, ICarrierPrivilegesCallback callback, String pkg, String featureId);
108 void removeCarrierPrivilegesCallback(ICarrierPrivilegesCallback callback, String pkg);
109 void notifyCarrierPrivilegesChanged(
110 int phoneId, in List<String> privilegedPackageNames, in int[] privilegedUids);
111 void notifyCarrierServiceChanged(int phoneId, in String packageName, int uid);
112
113 void addCarrierConfigChangeListener(ICarrierConfigChangeListener listener,
114 String pkg, String featureId);
115 void removeCarrierConfigChangeListener(ICarrierConfigChangeListener listener, String pkg);
116 void notifyCarrierConfigChanged(int phoneId, int subId, int carrierId, int specificCarrierId);
117 }