Santos Cordon | 3afed57 | 2014-05-21 15:22:12 -0700 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2014 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 | |
Tyler Gunn | ef9f6f9 | 2014-09-12 22:16:17 -0700 | [diff] [blame] | 17 | package com.android.internal.telecom; |
Santos Cordon | 3afed57 | 2014-05-21 15:22:12 -0700 | [diff] [blame] | 18 | |
Santos Cordon | 6c7a388 | 2014-06-25 15:30:08 -0700 | [diff] [blame] | 19 | import android.content.ComponentName; |
Abhijith Shastry | 1e6f834 | 2016-02-29 11:17:52 -0800 | [diff] [blame] | 20 | import android.content.Intent; |
Hall Liu | 057def5 | 2016-05-05 17:17:07 -0700 | [diff] [blame] | 21 | import android.telecom.TelecomAnalytics; |
Tyler Gunn | ef9f6f9 | 2014-09-12 22:16:17 -0700 | [diff] [blame] | 22 | import android.telecom.PhoneAccountHandle; |
Nancy Chen | b2299c1 | 2014-10-29 18:22:11 -0700 | [diff] [blame] | 23 | import android.net.Uri; |
Santos Cordon | 96efb48 | 2014-07-19 14:57:05 -0700 | [diff] [blame] | 24 | import android.os.Bundle; |
Tyler Gunn | ef9f6f9 | 2014-09-12 22:16:17 -0700 | [diff] [blame] | 25 | import android.telecom.PhoneAccount; |
Yorke Lee | 2e02470 | 2014-06-13 09:59:43 -0700 | [diff] [blame] | 26 | |
Santos Cordon | 3afed57 | 2014-05-21 15:22:12 -0700 | [diff] [blame] | 27 | /** |
Tyler Gunn | ef9f6f9 | 2014-09-12 22:16:17 -0700 | [diff] [blame] | 28 | * Interface used to interact with Telecom. Mostly this is used by TelephonyManager for passing |
Santos Cordon | 3afed57 | 2014-05-21 15:22:12 -0700 | [diff] [blame] | 29 | * commands that were previously handled by ITelephony. |
| 30 | * {@hide} |
| 31 | */ |
Tyler Gunn | ef9f6f9 | 2014-09-12 22:16:17 -0700 | [diff] [blame] | 32 | interface ITelecomService { |
Santos Cordon | 3534ede | 2014-05-29 13:07:10 -0700 | [diff] [blame] | 33 | /** |
| 34 | * Brings the in-call screen to the foreground if there is an active call. |
| 35 | * |
| 36 | * @param showDialpad if true, make the dialpad visible initially. |
| 37 | */ |
Svet Ganov | 16a1689 | 2015-04-16 10:32:04 -0700 | [diff] [blame] | 38 | void showInCallScreen(boolean showDialpad, String callingPackage); |
Yorke Lee | 2e02470 | 2014-06-13 09:59:43 -0700 | [diff] [blame] | 39 | |
| 40 | /** |
Tyler Gunn | ef9f6f9 | 2014-09-12 22:16:17 -0700 | [diff] [blame] | 41 | * @see TelecomServiceImpl#getDefaultOutgoingPhoneAccount |
Ihab Awad | 94cf4bf | 2014-07-17 11:21:19 -0700 | [diff] [blame] | 42 | */ |
Svet Ganov | 16a1689 | 2015-04-16 10:32:04 -0700 | [diff] [blame] | 43 | PhoneAccountHandle getDefaultOutgoingPhoneAccount(in String uriScheme, String callingPackage); |
Ihab Awad | 94cf4bf | 2014-07-17 11:21:19 -0700 | [diff] [blame] | 44 | |
| 45 | /** |
Tyler Gunn | ef9f6f9 | 2014-09-12 22:16:17 -0700 | [diff] [blame] | 46 | * @see TelecomServiceImpl#getUserSelectedOutgoingPhoneAccount |
Andrew Lee | 59cac3a | 2014-08-28 16:50:10 -0700 | [diff] [blame] | 47 | */ |
Tyler Gunn | 36c50ed | 2018-11-15 07:29:49 -0800 | [diff] [blame] | 48 | PhoneAccountHandle getUserSelectedOutgoingPhoneAccount(String callingPackage); |
Andrew Lee | d4abbfb | 2014-09-03 14:58:27 -0700 | [diff] [blame] | 49 | |
| 50 | /** |
Tyler Gunn | ef9f6f9 | 2014-09-12 22:16:17 -0700 | [diff] [blame] | 51 | * @see TelecomServiceImpl#setUserSelectedOutgoingPhoneAccount |
Andrew Lee | d4abbfb | 2014-09-03 14:58:27 -0700 | [diff] [blame] | 52 | */ |
| 53 | void setUserSelectedOutgoingPhoneAccount(in PhoneAccountHandle account); |
Andrew Lee | 59cac3a | 2014-08-28 16:50:10 -0700 | [diff] [blame] | 54 | |
| 55 | /** |
Nancy Chen | 210ef03 | 2014-09-15 17:58:42 -0700 | [diff] [blame] | 56 | * @see TelecomServiceImpl#getCallCapablePhoneAccounts |
Ihab Awad | c35ad02 | 2014-06-12 16:29:42 -0700 | [diff] [blame] | 57 | */ |
Santos Cordon | 91371dc | 2015-05-08 13:52:09 -0700 | [diff] [blame] | 58 | List<PhoneAccountHandle> getCallCapablePhoneAccounts( |
| 59 | boolean includeDisabledAccounts, String callingPackage); |
Ihab Awad | c35ad02 | 2014-06-12 16:29:42 -0700 | [diff] [blame] | 60 | |
| 61 | /** |
Tyler Gunn | 8931707 | 2017-04-07 14:57:37 -0700 | [diff] [blame] | 62 | * @see TelecomServiceImpl#getSelfManagedPhoneAccounts |
| 63 | */ |
| 64 | List<PhoneAccountHandle> getSelfManagedPhoneAccounts(String callingPackage); |
| 65 | |
| 66 | /** |
Tyler Gunn | ef9f6f9 | 2014-09-12 22:16:17 -0700 | [diff] [blame] | 67 | * @see TelecomManager#getPhoneAccountsSupportingScheme |
Tyler Gunn | f5b29dc | 2014-09-03 09:09:12 -0700 | [diff] [blame] | 68 | */ |
Svet Ganov | 16a1689 | 2015-04-16 10:32:04 -0700 | [diff] [blame] | 69 | List<PhoneAccountHandle> getPhoneAccountsSupportingScheme(in String uriScheme, |
| 70 | String callingPackage); |
Tyler Gunn | f5b29dc | 2014-09-03 09:09:12 -0700 | [diff] [blame] | 71 | |
| 72 | /** |
Nancy Chen | 513c892 | 2014-09-17 14:47:20 -0700 | [diff] [blame] | 73 | * @see TelecomManager#getPhoneAccountsForPackage |
| 74 | */ |
| 75 | List<PhoneAccountHandle> getPhoneAccountsForPackage(in String packageName); |
| 76 | |
| 77 | /** |
Tyler Gunn | ef9f6f9 | 2014-09-12 22:16:17 -0700 | [diff] [blame] | 78 | * @see TelecomManager#getPhoneAccount |
Ihab Awad | c35ad02 | 2014-06-12 16:29:42 -0700 | [diff] [blame] | 79 | */ |
Evan Charlton | 8c8a062 | 2014-07-20 12:31:00 -0700 | [diff] [blame] | 80 | PhoneAccount getPhoneAccount(in PhoneAccountHandle account); |
Ihab Awad | c35ad02 | 2014-06-12 16:29:42 -0700 | [diff] [blame] | 81 | |
| 82 | /** |
Tyler Gunn | ef9f6f9 | 2014-09-12 22:16:17 -0700 | [diff] [blame] | 83 | * @see TelecomManager#getAllPhoneAccountsCount |
Tyler Gunn | a1ed7d1 | 2014-09-08 09:52:22 -0700 | [diff] [blame] | 84 | */ |
| 85 | int getAllPhoneAccountsCount(); |
| 86 | |
| 87 | /** |
Tyler Gunn | ef9f6f9 | 2014-09-12 22:16:17 -0700 | [diff] [blame] | 88 | * @see TelecomManager#getAllPhoneAccounts |
Tyler Gunn | a1ed7d1 | 2014-09-08 09:52:22 -0700 | [diff] [blame] | 89 | */ |
| 90 | List<PhoneAccount> getAllPhoneAccounts(); |
| 91 | |
| 92 | /** |
Tyler Gunn | ef9f6f9 | 2014-09-12 22:16:17 -0700 | [diff] [blame] | 93 | * @see TelecomManager#getAllPhoneAccountHandles |
Tyler Gunn | a1ed7d1 | 2014-09-08 09:52:22 -0700 | [diff] [blame] | 94 | */ |
| 95 | List<PhoneAccountHandle> getAllPhoneAccountHandles(); |
| 96 | |
| 97 | /** |
Tyler Gunn | ef9f6f9 | 2014-09-12 22:16:17 -0700 | [diff] [blame] | 98 | * @see TelecomServiceImpl#getSimCallManager |
Andrew Lee | 59cac3a | 2014-08-28 16:50:10 -0700 | [diff] [blame] | 99 | */ |
| 100 | PhoneAccountHandle getSimCallManager(); |
| 101 | |
| 102 | /** |
Sailesh Nepal | cf85562 | 2015-07-28 19:22:14 -0700 | [diff] [blame] | 103 | * @see TelecomServiceImpl#getSimCallManagerForUser |
| 104 | */ |
| 105 | PhoneAccountHandle getSimCallManagerForUser(int userId); |
| 106 | |
| 107 | /** |
Tyler Gunn | ef9f6f9 | 2014-09-12 22:16:17 -0700 | [diff] [blame] | 108 | * @see TelecomServiceImpl#registerPhoneAccount |
Ihab Awad | c35ad02 | 2014-06-12 16:29:42 -0700 | [diff] [blame] | 109 | */ |
Evan Charlton | 8c8a062 | 2014-07-20 12:31:00 -0700 | [diff] [blame] | 110 | void registerPhoneAccount(in PhoneAccount metadata); |
Santos Cordon | 6c7a388 | 2014-06-25 15:30:08 -0700 | [diff] [blame] | 111 | |
| 112 | /** |
Tyler Gunn | ef9f6f9 | 2014-09-12 22:16:17 -0700 | [diff] [blame] | 113 | * @see TelecomServiceImpl#unregisterPhoneAccount |
Ihab Awad | 807fe0a | 2014-07-09 12:30:52 -0700 | [diff] [blame] | 114 | */ |
Evan Charlton | 6eb262c | 2014-07-19 18:18:19 -0700 | [diff] [blame] | 115 | void unregisterPhoneAccount(in PhoneAccountHandle account); |
Ihab Awad | 807fe0a | 2014-07-09 12:30:52 -0700 | [diff] [blame] | 116 | |
| 117 | /** |
Tyler Gunn | ef9f6f9 | 2014-09-12 22:16:17 -0700 | [diff] [blame] | 118 | * @see TelecomServiceImpl#clearAccounts |
Ihab Awad | 807fe0a | 2014-07-09 12:30:52 -0700 | [diff] [blame] | 119 | */ |
| 120 | void clearAccounts(String packageName); |
| 121 | |
| 122 | /** |
Nancy Chen | 443e501 | 2014-10-15 15:48:21 -0700 | [diff] [blame] | 123 | * @see TelecomServiceImpl#isVoiceMailNumber |
| 124 | */ |
Svet Ganov | 16a1689 | 2015-04-16 10:32:04 -0700 | [diff] [blame] | 125 | boolean isVoiceMailNumber(in PhoneAccountHandle accountHandle, String number, |
| 126 | String callingPackage); |
Nancy Chen | 443e501 | 2014-10-15 15:48:21 -0700 | [diff] [blame] | 127 | |
| 128 | /** |
Yorke Lee | 49e2d46 | 2015-04-15 16:14:22 -0700 | [diff] [blame] | 129 | * @see TelecomServiceImpl#getVoiceMailNumber |
Nancy Chen | 8c066f7 | 2014-12-03 15:18:08 -0800 | [diff] [blame] | 130 | */ |
Svet Ganov | 16a1689 | 2015-04-16 10:32:04 -0700 | [diff] [blame] | 131 | String getVoiceMailNumber(in PhoneAccountHandle accountHandle, String callingPackage); |
Nancy Chen | 8c066f7 | 2014-12-03 15:18:08 -0800 | [diff] [blame] | 132 | |
| 133 | /** |
Nancy Chen | 5cf2784 | 2015-01-24 23:30:27 -0800 | [diff] [blame] | 134 | * @see TelecomServiceImpl#getLine1Number |
| 135 | */ |
Svet Ganov | 16a1689 | 2015-04-16 10:32:04 -0700 | [diff] [blame] | 136 | String getLine1Number(in PhoneAccountHandle accountHandle, String callingPackage); |
Nancy Chen | 5cf2784 | 2015-01-24 23:30:27 -0800 | [diff] [blame] | 137 | |
| 138 | /** |
Tyler Gunn | ef9f6f9 | 2014-09-12 22:16:17 -0700 | [diff] [blame] | 139 | * @see TelecomServiceImpl#getDefaultPhoneApp |
Santos Cordon | 6c7a388 | 2014-06-25 15:30:08 -0700 | [diff] [blame] | 140 | */ |
| 141 | ComponentName getDefaultPhoneApp(); |
Santos Cordon | 9eb4593 | 2014-06-27 12:28:43 -0700 | [diff] [blame] | 142 | |
Yorke Lee | 1011f48 | 2015-04-23 15:58:27 -0700 | [diff] [blame] | 143 | /** |
| 144 | * @see TelecomServiceImpl#getDefaultDialerPackage |
| 145 | */ |
| 146 | String getDefaultDialerPackage(); |
| 147 | |
| 148 | /** |
| 149 | * @see TelecomServiceImpl#getSystemDialerPackage |
| 150 | */ |
| 151 | String getSystemDialerPackage(); |
| 152 | |
Hall Liu | 0464b9b | 2016-01-12 15:32:58 -0800 | [diff] [blame] | 153 | /** |
| 154 | * @see TelecomServiceImpl#dumpCallAnalytics |
| 155 | */ |
Hall Liu | 057def5 | 2016-05-05 17:17:07 -0700 | [diff] [blame] | 156 | TelecomAnalytics dumpCallAnalytics(); |
Hall Liu | 0464b9b | 2016-01-12 15:32:58 -0800 | [diff] [blame] | 157 | |
Santos Cordon | 9eb4593 | 2014-06-27 12:28:43 -0700 | [diff] [blame] | 158 | // |
| 159 | // Internal system apis relating to call management. |
| 160 | // |
| 161 | |
| 162 | /** |
Tyler Gunn | ef9f6f9 | 2014-09-12 22:16:17 -0700 | [diff] [blame] | 163 | * @see TelecomServiceImpl#silenceRinger |
Santos Cordon | 9eb4593 | 2014-06-27 12:28:43 -0700 | [diff] [blame] | 164 | */ |
Yorke Lee | f1a349b | 2015-04-29 16:16:50 -0700 | [diff] [blame] | 165 | void silenceRinger(String callingPackage); |
Santos Cordon | 9eb4593 | 2014-06-27 12:28:43 -0700 | [diff] [blame] | 166 | |
| 167 | /** |
Tyler Gunn | ef9f6f9 | 2014-09-12 22:16:17 -0700 | [diff] [blame] | 168 | * @see TelecomServiceImpl#isInCall |
Santos Cordon | 9eb4593 | 2014-06-27 12:28:43 -0700 | [diff] [blame] | 169 | */ |
Svet Ganov | 16a1689 | 2015-04-16 10:32:04 -0700 | [diff] [blame] | 170 | boolean isInCall(String callingPackage); |
Santos Cordon | 9eb4593 | 2014-06-27 12:28:43 -0700 | [diff] [blame] | 171 | |
| 172 | /** |
Tyler Gunn | 24e1833 | 2017-02-10 09:42:49 -0800 | [diff] [blame] | 173 | * @see TelecomServiceImpl#isInManagedCall |
| 174 | */ |
| 175 | boolean isInManagedCall(String callingPackage); |
| 176 | |
| 177 | /** |
Tyler Gunn | ef9f6f9 | 2014-09-12 22:16:17 -0700 | [diff] [blame] | 178 | * @see TelecomServiceImpl#isRinging |
Santos Cordon | 9eb4593 | 2014-06-27 12:28:43 -0700 | [diff] [blame] | 179 | */ |
Svet Ganov | 16a1689 | 2015-04-16 10:32:04 -0700 | [diff] [blame] | 180 | boolean isRinging(String callingPackage); |
Santos Cordon | 9eb4593 | 2014-06-27 12:28:43 -0700 | [diff] [blame] | 181 | |
| 182 | /** |
Yorke Lee | 2ae312e | 2014-09-12 17:58:48 -0700 | [diff] [blame] | 183 | * @see TelecomServiceImpl#getCallState |
| 184 | */ |
| 185 | int getCallState(); |
| 186 | |
| 187 | /** |
Tyler Gunn | ef9f6f9 | 2014-09-12 22:16:17 -0700 | [diff] [blame] | 188 | * @see TelecomServiceImpl#endCall |
Santos Cordon | 9eb4593 | 2014-06-27 12:28:43 -0700 | [diff] [blame] | 189 | */ |
Tyler Gunn | c865881 | 2018-02-07 16:08:27 -0800 | [diff] [blame] | 190 | boolean endCall(String callingPackage); |
Santos Cordon | 9eb4593 | 2014-06-27 12:28:43 -0700 | [diff] [blame] | 191 | |
| 192 | /** |
Tyler Gunn | ef9f6f9 | 2014-09-12 22:16:17 -0700 | [diff] [blame] | 193 | * @see TelecomServiceImpl#acceptRingingCall |
Santos Cordon | 9eb4593 | 2014-06-27 12:28:43 -0700 | [diff] [blame] | 194 | */ |
Eugene Susla | cae3d3e | 2017-01-31 11:08:11 -0800 | [diff] [blame] | 195 | void acceptRingingCall(String callingPackage); |
Santos Cordon | 3c4ff9e | 2014-07-02 13:20:40 -0700 | [diff] [blame] | 196 | |
| 197 | /** |
Tyler Gunn | 6676bb5 | 2015-10-23 14:39:49 -0700 | [diff] [blame] | 198 | * @see TelecomServiceImpl#acceptRingingCallWithVideoState(int) |
| 199 | */ |
Eugene Susla | cae3d3e | 2017-01-31 11:08:11 -0800 | [diff] [blame] | 200 | void acceptRingingCallWithVideoState(String callingPackage, int videoState); |
Tyler Gunn | 6676bb5 | 2015-10-23 14:39:49 -0700 | [diff] [blame] | 201 | |
| 202 | /** |
Tyler Gunn | ef9f6f9 | 2014-09-12 22:16:17 -0700 | [diff] [blame] | 203 | * @see TelecomServiceImpl#cancelMissedCallsNotification |
Santos Cordon | 3c4ff9e | 2014-07-02 13:20:40 -0700 | [diff] [blame] | 204 | */ |
Yorke Lee | f1a349b | 2015-04-29 16:16:50 -0700 | [diff] [blame] | 205 | void cancelMissedCallsNotification(String callingPackage); |
Santos Cordon | 0bae09f | 2014-07-07 14:53:10 -0700 | [diff] [blame] | 206 | |
| 207 | /** |
Tyler Gunn | ef9f6f9 | 2014-09-12 22:16:17 -0700 | [diff] [blame] | 208 | * @see TelecomServiceImpl#handleMmi |
Santos Cordon | 0bae09f | 2014-07-07 14:53:10 -0700 | [diff] [blame] | 209 | */ |
Yorke Lee | f1a349b | 2015-04-29 16:16:50 -0700 | [diff] [blame] | 210 | boolean handlePinMmi(String dialString, String callingPackage); |
Sailesh Nepal | 001bbbb | 2014-07-15 14:40:39 -0700 | [diff] [blame] | 211 | |
| 212 | /** |
Nancy Chen | 95e8a67 | 2014-10-16 18:38:21 -0700 | [diff] [blame] | 213 | * @see TelecomServiceImpl#handleMmi |
| 214 | */ |
Yorke Lee | f1a349b | 2015-04-29 16:16:50 -0700 | [diff] [blame] | 215 | boolean handlePinMmiForPhoneAccount(in PhoneAccountHandle accountHandle, String dialString, |
| 216 | String callingPackage); |
Nancy Chen | 95e8a67 | 2014-10-16 18:38:21 -0700 | [diff] [blame] | 217 | |
| 218 | /** |
Nancy Chen | b2299c1 | 2014-10-29 18:22:11 -0700 | [diff] [blame] | 219 | * @see TelecomServiceImpl#getAdnUriForPhoneAccount |
| 220 | */ |
Yorke Lee | f1a349b | 2015-04-29 16:16:50 -0700 | [diff] [blame] | 221 | Uri getAdnUriForPhoneAccount(in PhoneAccountHandle accountHandle, String callingPackage); |
Nancy Chen | b2299c1 | 2014-10-29 18:22:11 -0700 | [diff] [blame] | 222 | |
| 223 | /** |
Tyler Gunn | ef9f6f9 | 2014-09-12 22:16:17 -0700 | [diff] [blame] | 224 | * @see TelecomServiceImpl#isTtySupported |
Sailesh Nepal | 001bbbb | 2014-07-15 14:40:39 -0700 | [diff] [blame] | 225 | */ |
Svet Ganov | 16a1689 | 2015-04-16 10:32:04 -0700 | [diff] [blame] | 226 | boolean isTtySupported(String callingPackage); |
Sailesh Nepal | 001bbbb | 2014-07-15 14:40:39 -0700 | [diff] [blame] | 227 | |
| 228 | /** |
Tyler Gunn | ef9f6f9 | 2014-09-12 22:16:17 -0700 | [diff] [blame] | 229 | * @see TelecomServiceImpl#getCurrentTtyMode |
Sailesh Nepal | 001bbbb | 2014-07-15 14:40:39 -0700 | [diff] [blame] | 230 | */ |
Svet Ganov | 16a1689 | 2015-04-16 10:32:04 -0700 | [diff] [blame] | 231 | int getCurrentTtyMode(String callingPackage); |
Santos Cordon | 96efb48 | 2014-07-19 14:57:05 -0700 | [diff] [blame] | 232 | |
| 233 | /** |
Tyler Gunn | ef9f6f9 | 2014-09-12 22:16:17 -0700 | [diff] [blame] | 234 | * @see TelecomServiceImpl#addNewIncomingCall |
Santos Cordon | 96efb48 | 2014-07-19 14:57:05 -0700 | [diff] [blame] | 235 | */ |
| 236 | void addNewIncomingCall(in PhoneAccountHandle phoneAccount, in Bundle extras); |
Yorke Lee | c3cf982 | 2014-10-02 09:38:39 -0700 | [diff] [blame] | 237 | |
| 238 | /** |
| 239 | * @see TelecomServiceImpl#addNewUnknownCall |
| 240 | */ |
| 241 | void addNewUnknownCall(in PhoneAccountHandle phoneAccount, in Bundle extras); |
Yorke Lee | 3e56ba1 | 2015-04-23 12:32:36 -0700 | [diff] [blame] | 242 | |
| 243 | /** |
| 244 | * @see TelecomServiceImpl#placeCall |
| 245 | */ |
| 246 | void placeCall(in Uri handle, in Bundle extras, String callingPackage); |
Santos Cordon | 91371dc | 2015-05-08 13:52:09 -0700 | [diff] [blame] | 247 | |
| 248 | /** |
| 249 | * @see TelecomServiceImpl#enablePhoneAccount |
| 250 | */ |
Yorke Lee | db6da48 | 2015-06-02 13:55:25 -0700 | [diff] [blame] | 251 | boolean enablePhoneAccount(in PhoneAccountHandle accountHandle, boolean isEnabled); |
| 252 | |
| 253 | /** |
| 254 | * @see TelecomServiceImpl#setDefaultDialer |
| 255 | */ |
| 256 | boolean setDefaultDialer(in String packageName); |
Abhijith Shastry | 5fe3413 | 2016-02-01 16:39:38 -0800 | [diff] [blame] | 257 | |
| 258 | /** |
Abhijith Shastry | 1e6f834 | 2016-02-29 11:17:52 -0800 | [diff] [blame] | 259 | * @see TelecomServiceImpl#createManageBlockedNumbersIntent |
| 260 | **/ |
| 261 | Intent createManageBlockedNumbersIntent(); |
Tyler Gunn | f503543 | 2017-01-09 09:43:12 -0800 | [diff] [blame] | 262 | |
| 263 | /** |
| 264 | * @see TelecomServiceImpl#isIncomingCallPermitted |
| 265 | */ |
| 266 | boolean isIncomingCallPermitted(in PhoneAccountHandle phoneAccountHandle); |
| 267 | |
| 268 | /** |
| 269 | * @see TelecomServiceImpl#isOutgoingCallPermitted |
| 270 | */ |
| 271 | boolean isOutgoingCallPermitted(in PhoneAccountHandle phoneAccountHandle); |
Tyler Gunn | 18dfc36 | 2017-02-06 20:47:04 -0800 | [diff] [blame] | 272 | |
| 273 | /** |
| 274 | * @see TelecomServiceImpl#waitOnHandler |
| 275 | */ |
| 276 | void waitOnHandlers(); |
Sanket Padawe | a8eddd4 | 2017-11-03 11:07:35 -0700 | [diff] [blame] | 277 | |
| 278 | /** |
| 279 | * @see TelecomServiceImpl#acceptHandover |
| 280 | */ |
| 281 | void acceptHandover(in Uri srcAddr, int videoState, in PhoneAccountHandle destAcct); |
Tyler Gunn | 5bd9085 | 2018-09-21 09:37:07 -0700 | [diff] [blame] | 282 | |
| 283 | /** |
| 284 | * @see TelecomServiceImpl#isInEmergencyCall |
| 285 | */ |
| 286 | boolean isInEmergencyCall(); |
Tyler Gunn | c37445c | 2018-09-28 16:16:20 -0700 | [diff] [blame] | 287 | |
Tyler Gunn | 1965bb1 | 2019-01-16 10:42:14 -0800 | [diff] [blame] | 288 | oneway void reportNuisanceCallStatus(in Uri address, boolean isNuisance, String callingPackage); |
| 289 | |
Tyler Gunn | c37445c | 2018-09-28 16:16:20 -0700 | [diff] [blame] | 290 | /** |
| 291 | * @see TelecomServiceImpl#handleCallIntent |
| 292 | */ |
| 293 | void handleCallIntent(in Intent intent); |
Tyler Gunn | 8b68d77 | 2018-11-21 15:11:36 -0800 | [diff] [blame] | 294 | |
sqian | 6dcf887 | 2018-12-07 19:35:02 -0800 | [diff] [blame] | 295 | void setTestDefaultCallRedirectionApp(String packageName); |
| 296 | |
Hall Liu | c47570d | 2018-12-06 17:53:25 -0800 | [diff] [blame] | 297 | void setTestPhoneAcctSuggestionComponent(String flattenedComponentName); |
| 298 | |
Tyler Gunn | 8b68d77 | 2018-11-21 15:11:36 -0800 | [diff] [blame] | 299 | void setTestDefaultCallScreeningApp(String packageName); |
| 300 | |
| 301 | void addOrRemoveTestCallCompanionApp(String packageName, boolean isAdded); |
| 302 | |
| 303 | void setTestAutoModeApp(String packageName); |
Tyler Gunn | 1965bb1 | 2019-01-16 10:42:14 -0800 | [diff] [blame] | 304 | |
Santos Cordon | 3afed57 | 2014-05-21 15:22:12 -0700 | [diff] [blame] | 305 | } |