| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
package com.android.ims; |
| 18 |
|
| 19 |
import android.compat.annotation.UnsupportedAppUsage; |
| 20 |
import android.os.Build; |
| 21 |
import android.os.Handler; |
| 22 |
import android.os.Message; |
| 23 |
import android.telephony.ims.ImsCallForwardInfo; |
| 24 |
import android.telephony.ims.ImsSsInfo; |
| 25 |
import android.telephony.ims.stub.ImsUtImplBase; |
| 26 |
|
| 27 |
|
| 28 |
|
| 29 |
|
| 30 |
|
| 31 |
|
| 32 |
|
| 33 |
|
| 34 |
public interface ImsUtInterface { |
| 35 |
|
| 36 |
|
| 37 |
|
| 38 |
|
| 39 |
public static final int ACTION_DEACTIVATION = 0; |
| 40 |
public static final int ACTION_ACTIVATION = 1; |
| 41 |
public static final int ACTION_REGISTRATION = 3; |
| 42 |
public static final int ACTION_ERASURE = 4; |
| 43 |
public static final int ACTION_INTERROGATION = 5; |
| 44 |
|
| 45 |
|
| 46 |
|
| 47 |
|
| 48 |
|
| 49 |
|
| 50 |
|
| 51 |
public static final int OIR_DEFAULT = 0; |
| 52 |
public static final int OIR_PRESENTATION_RESTRICTED = 1; |
| 53 |
public static final int OIR_PRESENTATION_NOT_RESTRICTED = 2; |
| 54 |
|
| 55 |
|
| 56 |
|
| 57 |
|
| 58 |
|
| 59 |
|
| 60 |
|
| 61 |
|
| 62 |
|
| 63 |
public static final int CDIV_CF_UNCONDITIONAL = ImsCallForwardInfo.CDIV_CF_REASON_UNCONDITIONAL; |
| 64 |
public static final int CDIV_CF_BUSY = ImsCallForwardInfo.CDIV_CF_REASON_BUSY; |
| 65 |
public static final int CDIV_CF_NO_REPLY = ImsCallForwardInfo.CDIV_CF_REASON_NO_REPLY; |
| 66 |
public static final int CDIV_CF_NOT_REACHABLE = ImsCallForwardInfo.CDIV_CF_REASON_NOT_REACHABLE; |
| 67 |
|
| 68 |
public static final int CDIV_CF_ALL = ImsCallForwardInfo.CDIV_CF_REASON_ALL; |
| 69 |
|
| 70 |
public static final int CDIV_CF_ALL_CONDITIONAL = |
| 71 |
ImsCallForwardInfo.CDIV_CF_REASON_ALL_CONDITIONAL; |
| 72 |
|
| 73 |
|
| 74 |
|
| 75 |
public static final int CDIV_CF_NOT_LOGGED_IN = ImsCallForwardInfo.CDIV_CF_REASON_NOT_LOGGED_IN; |
| 76 |
|
| 77 |
|
| 78 |
|
| 79 |
|
| 80 |
|
| 81 |
public static final int CB_BAIC = ImsUtImplBase.CALL_BARRING_ALL_INCOMING; |
| 82 |
|
| 83 |
public static final int CB_BAOC = ImsUtImplBase.CALL_BARRING_ALL_OUTGOING; |
| 84 |
|
| 85 |
public static final int CB_BOIC = ImsUtImplBase.CALL_BARRING_OUTGOING_INTL; |
| 86 |
|
| 87 |
public static final int CB_BOIC_EXHC = ImsUtImplBase.CALL_BARRING_OUTGOING_INTL_EXCL_HOME; |
| 88 |
|
| 89 |
public static final int CB_BIC_WR = ImsUtImplBase.CALL_BLOCKING_INCOMING_WHEN_ROAMING; |
| 90 |
|
| 91 |
public static final int CB_BIC_ACR = ImsUtImplBase.CALL_BARRING_ANONYMOUS_INCOMING; |
| 92 |
|
| 93 |
public static final int CB_BA_ALL = ImsUtImplBase.CALL_BARRING_ALL; |
| 94 |
|
| 95 |
public static final int CB_BA_MO = ImsUtImplBase.CALL_BARRING_OUTGOING_ALL_SERVICES; |
| 96 |
|
| 97 |
public static final int CB_BA_MT = ImsUtImplBase.CALL_BARRING_INCOMING_ALL_SERVICES; |
| 98 |
|
| 99 |
public static final int CB_BS_MT = ImsUtImplBase.CALL_BARRING_SPECIFIC_INCOMING_CALLS; |
| 100 |
|
| 101 |
|
| 102 |
|
| 103 |
|
| 104 |
public static final int INVALID = ImsUtImplBase.INVALID_RESULT; |
| 105 |
|
| 106 |
|
| 107 |
|
| 108 |
|
| 109 |
|
| 110 |
|
| 111 |
|
| 112 |
|
| 113 |
|
| 114 |
|
| 115 |
|
| 116 |
public void queryCallBarring(int cbType, Message result); |
| 117 |
|
| 118 |
|
| 119 |
|
| 120 |
|
| 121 |
|
| 122 |
public void queryCallBarring(int cbType, Message result, int serviceClass); |
| 123 |
|
| 124 |
|
| 125 |
|
| 126 |
|
| 127 |
|
| 128 |
@UnsupportedAppUsage(maxTargetSdk = Build.VERSION_CODES.R, trackingBug = 170729553) |
| 129 |
public void queryCallForward(int condition, String number, Message result); |
| 130 |
|
| 131 |
|
| 132 |
|
| 133 |
|
| 134 |
|
| 135 |
public void queryCallWaiting(Message result); |
| 136 |
|
| 137 |
|
| 138 |
|
| 139 |
|
| 140 |
public void queryCLIR(Message result); |
| 141 |
|
| 142 |
|
| 143 |
|
| 144 |
|
| 145 |
public void queryCLIP(Message result); |
| 146 |
|
| 147 |
|
| 148 |
|
| 149 |
|
| 150 |
public void queryCOLR(Message result); |
| 151 |
|
| 152 |
|
| 153 |
|
| 154 |
|
| 155 |
public void queryCOLP(Message result); |
| 156 |
|
| 157 |
|
| 158 |
|
| 159 |
|
| 160 |
public void updateCallBarring(int cbType, int action, |
| 161 |
Message result, String[] barrList); |
| 162 |
|
| 163 |
|
| 164 |
|
| 165 |
|
| 166 |
public void updateCallBarring(int cbType, int action, Message result, |
| 167 |
String[] barrList, int serviceClass); |
| 168 |
|
| 169 |
|
| 170 |
|
| 171 |
|
| 172 |
public void updateCallBarring(int cbType, int action, Message result, |
| 173 |
String[] barrList, int serviceClass, String password); |
| 174 |
|
| 175 |
|
| 176 |
|
| 177 |
|
| 178 |
public void updateCallForward(int action, int condition, String number, |
| 179 |
int serviceClass, int timeSeconds, Message result); |
| 180 |
|
| 181 |
|
| 182 |
|
| 183 |
|
| 184 |
public void updateCallWaiting(boolean enable, int serviceClass, Message result); |
| 185 |
|
| 186 |
|
| 187 |
|
| 188 |
|
| 189 |
public void updateCLIR(int clirMode, Message result); |
| 190 |
|
| 191 |
|
| 192 |
|
| 193 |
|
| 194 |
public void updateCLIP(boolean enable, Message result); |
| 195 |
|
| 196 |
|
| 197 |
|
| 198 |
|
| 199 |
public void updateCOLR(int presentation, Message result); |
| 200 |
|
| 201 |
|
| 202 |
|
| 203 |
|
| 204 |
public void updateCOLP(boolean enable, Message result); |
| 205 |
|
| 206 |
|
| 207 |
|
| 208 |
|
| 209 |
|
| 210 |
|
| 211 |
|
| 212 |
public void registerForSuppServiceIndication(Handler handler, int event, Object object); |
| 213 |
|
| 214 |
|
| 215 |
|
| 216 |
|
| 217 |
|
| 218 |
public void unregisterForSuppServiceIndication(Handler handler); |
| 219 |
} |