Santos Cordon | e3d76ab | 2014-01-28 17:25:20 -0800 | [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 | |
| 17 | package com.android.telecomm; |
| 18 | |
Sailesh Nepal | 9d58de5 | 2014-07-18 14:53:19 -0700 | [diff] [blame] | 19 | import android.app.PendingIntent; |
Santos Cordon | e3d76ab | 2014-01-28 17:25:20 -0800 | [diff] [blame] | 20 | import android.content.ComponentName; |
| 21 | import android.content.Context; |
| 22 | import android.content.Intent; |
| 23 | import android.content.ServiceConnection; |
Santos Cordon | fdfcafa | 2014-06-26 14:49:05 -0700 | [diff] [blame] | 24 | |
| 25 | import android.content.res.Resources; |
Sailesh Nepal | 84fa5f8 | 2014-04-02 11:01:11 -0700 | [diff] [blame] | 26 | import android.net.Uri; |
Santos Cordon | e3d76ab | 2014-01-28 17:25:20 -0800 | [diff] [blame] | 27 | import android.os.IBinder; |
| 28 | import android.os.RemoteException; |
Amith Yamasani | 60e7584 | 2014-05-23 10:09:14 -0700 | [diff] [blame] | 29 | import android.os.UserHandle; |
Sailesh Nepal | 6aca10a | 2014-03-24 16:11:02 -0700 | [diff] [blame] | 30 | import android.telecomm.CallAudioState; |
Sailesh Nepal | 8c85dee | 2014-04-07 22:21:40 -0700 | [diff] [blame] | 31 | import android.telecomm.CallCapabilities; |
Sailesh Nepal | e8ecb98 | 2014-07-11 17:19:42 -0700 | [diff] [blame] | 32 | import android.telecomm.CallPropertyPresentation; |
Sailesh Nepal | 8c85dee | 2014-04-07 22:21:40 -0700 | [diff] [blame] | 33 | import android.telecomm.CallState; |
| 34 | import android.telecomm.InCallCall; |
Sailesh Nepal | a439e1b | 2014-03-11 18:19:58 -0700 | [diff] [blame] | 35 | |
| 36 | import com.android.internal.telecomm.IInCallService; |
Sailesh Nepal | 810735e | 2014-03-18 18:15:46 -0700 | [diff] [blame] | 37 | import com.google.common.collect.ImmutableCollection; |
Santos Cordon | e3d76ab | 2014-01-28 17:25:20 -0800 | [diff] [blame] | 38 | |
Santos Cordon | a161070 | 2014-06-04 20:22:56 -0700 | [diff] [blame] | 39 | import java.util.ArrayList; |
| 40 | import java.util.List; |
Santos Cordon | a161070 | 2014-06-04 20:22:56 -0700 | [diff] [blame] | 41 | |
Santos Cordon | e3d76ab | 2014-01-28 17:25:20 -0800 | [diff] [blame] | 42 | /** |
| 43 | * Binds to {@link IInCallService} and provides the service to {@link CallsManager} through which it |
| 44 | * can send updates to the in-call app. This class is created and owned by CallsManager and retains |
Sailesh Nepal | e59bb19 | 2014-04-01 18:33:59 -0700 | [diff] [blame] | 45 | * a binding to the {@link IInCallService} (implemented by the in-call app). |
Santos Cordon | e3d76ab | 2014-01-28 17:25:20 -0800 | [diff] [blame] | 46 | */ |
Sailesh Nepal | 810735e | 2014-03-18 18:15:46 -0700 | [diff] [blame] | 47 | public final class InCallController extends CallsManagerListenerBase { |
Santos Cordon | e3d76ab | 2014-01-28 17:25:20 -0800 | [diff] [blame] | 48 | /** |
| 49 | * Used to bind to the in-call app and triggers the start of communication between |
Sailesh Nepal | e59bb19 | 2014-04-01 18:33:59 -0700 | [diff] [blame] | 50 | * this class and in-call app. |
Santos Cordon | e3d76ab | 2014-01-28 17:25:20 -0800 | [diff] [blame] | 51 | */ |
| 52 | private class InCallServiceConnection implements ServiceConnection { |
| 53 | /** {@inheritDoc} */ |
| 54 | @Override public void onServiceConnected(ComponentName name, IBinder service) { |
| 55 | onConnected(service); |
| 56 | } |
| 57 | |
| 58 | /** {@inheritDoc} */ |
| 59 | @Override public void onServiceDisconnected(ComponentName name) { |
| 60 | onDisconnected(); |
| 61 | } |
| 62 | } |
| 63 | |
Sailesh Nepal | e8ecb98 | 2014-07-11 17:19:42 -0700 | [diff] [blame] | 64 | private final Call.Listener mCallListener = new Call.ListenerBase() { |
| 65 | @Override |
| 66 | public void onCallCapabilitiesChanged(Call call) { |
| 67 | updateCall(call); |
| 68 | } |
| 69 | |
| 70 | @Override |
| 71 | public void onCannedSmsResponsesLoaded(Call call) { |
| 72 | updateCall(call); |
| 73 | } |
| 74 | |
| 75 | @Override |
| 76 | public void onCallVideoProviderChanged(Call call) { |
| 77 | updateCall(call); |
| 78 | } |
| 79 | |
| 80 | @Override |
| 81 | public void onStatusHintsChanged(Call call) { |
| 82 | updateCall(call); |
| 83 | } |
| 84 | |
| 85 | @Override |
| 86 | public void onHandleChanged(Call call) { |
| 87 | updateCall(call); |
| 88 | } |
| 89 | |
| 90 | @Override |
| 91 | public void onCallerDisplayNameChanged(Call call) { |
| 92 | updateCall(call); |
| 93 | } |
Andrew Lee | 4a79660 | 2014-07-11 17:23:03 -0700 | [diff] [blame] | 94 | |
| 95 | @Override |
| 96 | public void onVideoStateChanged(Call call) { |
| 97 | updateCall(call); |
| 98 | } |
Sailesh Nepal | 9d58de5 | 2014-07-18 14:53:19 -0700 | [diff] [blame] | 99 | |
| 100 | @Override |
| 101 | public void onStartActivityFromInCall(Call call, PendingIntent intent) { |
| 102 | if (mInCallService != null) { |
| 103 | Log.i(this, "Calling startActivity, intent: %s", intent); |
| 104 | try { |
| 105 | mInCallService.startActivity(mCallIdMapper.getCallId(call), intent); |
| 106 | } catch (RemoteException ignored) { |
| 107 | } |
| 108 | } |
| 109 | } |
Sailesh Nepal | e8ecb98 | 2014-07-11 17:19:42 -0700 | [diff] [blame] | 110 | }; |
| 111 | |
Santos Cordon | e3d76ab | 2014-01-28 17:25:20 -0800 | [diff] [blame] | 112 | /** Maintains a binding connection to the in-call app. */ |
| 113 | private final InCallServiceConnection mConnection = new InCallServiceConnection(); |
| 114 | |
Santos Cordon | e3d76ab | 2014-01-28 17:25:20 -0800 | [diff] [blame] | 115 | /** The in-call app implementation, see {@link IInCallService}. */ |
| 116 | private IInCallService mInCallService; |
| 117 | |
Sailesh Nepal | e59bb19 | 2014-04-01 18:33:59 -0700 | [diff] [blame] | 118 | private final CallIdMapper mCallIdMapper = new CallIdMapper("InCall"); |
| 119 | |
Santos Cordon | e3d76ab | 2014-01-28 17:25:20 -0800 | [diff] [blame] | 120 | IInCallService getService() { |
| 121 | return mInCallService; |
| 122 | } |
| 123 | |
Sailesh Nepal | 810735e | 2014-03-18 18:15:46 -0700 | [diff] [blame] | 124 | @Override |
| 125 | public void onCallAdded(Call call) { |
| 126 | if (mInCallService == null) { |
| 127 | bind(); |
| 128 | } else { |
| 129 | Log.i(this, "Adding call: %s", call); |
Ihab Awad | ff7493a | 2014-06-10 13:47:44 -0700 | [diff] [blame] | 130 | if (mCallIdMapper.getCallId(call) == null) { |
| 131 | mCallIdMapper.addCall(call); |
Sailesh Nepal | e8ecb98 | 2014-07-11 17:19:42 -0700 | [diff] [blame] | 132 | call.addListener(mCallListener); |
Ihab Awad | ff7493a | 2014-06-10 13:47:44 -0700 | [diff] [blame] | 133 | try { |
| 134 | mInCallService.addCall(toInCallCall(call)); |
| 135 | } catch (RemoteException ignored) { |
| 136 | } |
Santos Cordon | e3d76ab | 2014-01-28 17:25:20 -0800 | [diff] [blame] | 137 | } |
Santos Cordon | 049b7b6 | 2014-01-30 05:34:26 -0800 | [diff] [blame] | 138 | } |
| 139 | } |
| 140 | |
Sailesh Nepal | 810735e | 2014-03-18 18:15:46 -0700 | [diff] [blame] | 141 | @Override |
| 142 | public void onCallRemoved(Call call) { |
| 143 | if (CallsManager.getInstance().getCalls().isEmpty()) { |
| 144 | // TODO(sail): Wait for all messages to be delivered to the service before unbinding. |
| 145 | unbind(); |
Santos Cordon | 049b7b6 | 2014-01-30 05:34:26 -0800 | [diff] [blame] | 146 | } |
Sailesh Nepal | e8ecb98 | 2014-07-11 17:19:42 -0700 | [diff] [blame] | 147 | call.removeListener(mCallListener); |
Sailesh Nepal | e59bb19 | 2014-04-01 18:33:59 -0700 | [diff] [blame] | 148 | mCallIdMapper.removeCall(call); |
Santos Cordon | 049b7b6 | 2014-01-30 05:34:26 -0800 | [diff] [blame] | 149 | } |
| 150 | |
Sailesh Nepal | 810735e | 2014-03-18 18:15:46 -0700 | [diff] [blame] | 151 | @Override |
| 152 | public void onCallStateChanged(Call call, CallState oldState, CallState newState) { |
Sailesh Nepal | 8c85dee | 2014-04-07 22:21:40 -0700 | [diff] [blame] | 153 | updateCall(call); |
Yorke Lee | cdf3ebd | 2014-03-12 18:31:41 -0700 | [diff] [blame] | 154 | } |
| 155 | |
Sailesh Nepal | 6aca10a | 2014-03-24 16:11:02 -0700 | [diff] [blame] | 156 | @Override |
Sailesh Nepal | c92c436 | 2014-07-04 18:33:21 -0700 | [diff] [blame] | 157 | public void onConnectionServiceChanged( |
Sailesh Nepal | 8c85dee | 2014-04-07 22:21:40 -0700 | [diff] [blame] | 158 | Call call, |
Sailesh Nepal | c92c436 | 2014-07-04 18:33:21 -0700 | [diff] [blame] | 159 | ConnectionServiceWrapper oldService, |
| 160 | ConnectionServiceWrapper newService) { |
Sailesh Nepal | 8c85dee | 2014-04-07 22:21:40 -0700 | [diff] [blame] | 161 | updateCall(call); |
| 162 | } |
| 163 | |
| 164 | @Override |
Sailesh Nepal | 6aca10a | 2014-03-24 16:11:02 -0700 | [diff] [blame] | 165 | public void onAudioStateChanged(CallAudioState oldAudioState, CallAudioState newAudioState) { |
| 166 | if (mInCallService != null) { |
| 167 | Log.i(this, "Calling onAudioStateChanged, audioState: %s -> %s", oldAudioState, |
| 168 | newAudioState); |
| 169 | try { |
| 170 | mInCallService.onAudioStateChanged(newAudioState); |
Santos Cordon | f3671a6 | 2014-05-29 21:51:53 -0700 | [diff] [blame] | 171 | } catch (RemoteException ignored) { |
Sailesh Nepal | 6aca10a | 2014-03-24 16:11:02 -0700 | [diff] [blame] | 172 | } |
| 173 | } |
| 174 | } |
| 175 | |
Evan Charlton | 352105c | 2014-06-03 14:10:54 -0700 | [diff] [blame] | 176 | void onPostDialWait(Call call, String remaining) { |
| 177 | if (mInCallService != null) { |
| 178 | Log.i(this, "Calling onPostDialWait, remaining = %s", remaining); |
| 179 | try { |
| 180 | mInCallService.setPostDialWait(mCallIdMapper.getCallId(call), remaining); |
| 181 | } catch (RemoteException ignored) { |
| 182 | } |
| 183 | } |
| 184 | } |
| 185 | |
Santos Cordon | a161070 | 2014-06-04 20:22:56 -0700 | [diff] [blame] | 186 | @Override |
Santos Cordon | a161070 | 2014-06-04 20:22:56 -0700 | [diff] [blame] | 187 | public void onIsConferencedChanged(Call call) { |
| 188 | Log.v(this, "onIsConferencedChanged %s", call); |
| 189 | updateCall(call); |
| 190 | } |
| 191 | |
Santos Cordon | f3671a6 | 2014-05-29 21:51:53 -0700 | [diff] [blame] | 192 | void bringToForeground(boolean showDialpad) { |
| 193 | if (mInCallService != null) { |
| 194 | try { |
| 195 | mInCallService.bringToForeground(showDialpad); |
| 196 | } catch (RemoteException ignored) { |
| 197 | } |
| 198 | } else { |
| 199 | Log.w(this, "Asking to bring unbound in-call UI to foreground."); |
| 200 | } |
| 201 | } |
| 202 | |
Santos Cordon | e3d76ab | 2014-01-28 17:25:20 -0800 | [diff] [blame] | 203 | /** |
| 204 | * Unbinds an existing bound connection to the in-call app. |
Santos Cordon | e3d76ab | 2014-01-28 17:25:20 -0800 | [diff] [blame] | 205 | */ |
Sailesh Nepal | 810735e | 2014-03-18 18:15:46 -0700 | [diff] [blame] | 206 | private void unbind() { |
Santos Cordon | e3d76ab | 2014-01-28 17:25:20 -0800 | [diff] [blame] | 207 | ThreadUtil.checkOnMainThread(); |
| 208 | if (mInCallService != null) { |
Sailesh Nepal | f1c191d | 2014-03-07 18:17:39 -0800 | [diff] [blame] | 209 | Log.i(this, "Unbinding from InCallService"); |
Santos Cordon | 049b7b6 | 2014-01-30 05:34:26 -0800 | [diff] [blame] | 210 | TelecommApp.getInstance().unbindService(mConnection); |
Santos Cordon | e3d76ab | 2014-01-28 17:25:20 -0800 | [diff] [blame] | 211 | mInCallService = null; |
| 212 | } |
| 213 | } |
| 214 | |
| 215 | /** |
Santos Cordon | 049b7b6 | 2014-01-30 05:34:26 -0800 | [diff] [blame] | 216 | * Binds to the in-call app if not already connected by binding directly to the saved |
| 217 | * component name of the {@link IInCallService} implementation. |
| 218 | */ |
| 219 | private void bind() { |
| 220 | ThreadUtil.checkOnMainThread(); |
| 221 | if (mInCallService == null) { |
Santos Cordon | fdfcafa | 2014-06-26 14:49:05 -0700 | [diff] [blame] | 222 | Context context = TelecommApp.getInstance(); |
| 223 | Resources resources = context.getResources(); |
| 224 | ComponentName component = new ComponentName( |
| 225 | resources.getString(R.string.ui_default_package), |
| 226 | resources.getString(R.string.incall_default_class)); |
Sailesh Nepal | f1c191d | 2014-03-07 18:17:39 -0800 | [diff] [blame] | 227 | Log.i(this, "Attempting to bind to InCallService: %s", component); |
Santos Cordon | 049b7b6 | 2014-01-30 05:34:26 -0800 | [diff] [blame] | 228 | |
| 229 | Intent serviceIntent = new Intent(IInCallService.class.getName()); |
| 230 | serviceIntent.setComponent(component); |
| 231 | |
Amith Yamasani | 60e7584 | 2014-05-23 10:09:14 -0700 | [diff] [blame] | 232 | if (!context.bindServiceAsUser(serviceIntent, mConnection, Context.BIND_AUTO_CREATE, |
| 233 | UserHandle.CURRENT)) { |
Sailesh Nepal | f1c191d | 2014-03-07 18:17:39 -0800 | [diff] [blame] | 234 | Log.w(this, "Could not connect to the in-call app (%s)", component); |
Santos Cordon | 049b7b6 | 2014-01-30 05:34:26 -0800 | [diff] [blame] | 235 | |
| 236 | // TODO(santoscordon): Implement retry or fall-back-to-default logic. |
| 237 | } |
| 238 | } |
| 239 | } |
| 240 | |
| 241 | /** |
Santos Cordon | e3d76ab | 2014-01-28 17:25:20 -0800 | [diff] [blame] | 242 | * Persists the {@link IInCallService} instance and starts the communication between |
Sailesh Nepal | e59bb19 | 2014-04-01 18:33:59 -0700 | [diff] [blame] | 243 | * this class and in-call app by sending the first update to in-call app. This method is |
Santos Cordon | e3d76ab | 2014-01-28 17:25:20 -0800 | [diff] [blame] | 244 | * called after a successful binding connection is established. |
| 245 | * |
| 246 | * @param service The {@link IInCallService} implementation. |
| 247 | */ |
| 248 | private void onConnected(IBinder service) { |
| 249 | ThreadUtil.checkOnMainThread(); |
| 250 | mInCallService = IInCallService.Stub.asInterface(service); |
| 251 | |
| 252 | try { |
Sailesh Nepal | e59bb19 | 2014-04-01 18:33:59 -0700 | [diff] [blame] | 253 | mInCallService.setInCallAdapter(new InCallAdapter(CallsManager.getInstance(), |
| 254 | mCallIdMapper)); |
Santos Cordon | e3d76ab | 2014-01-28 17:25:20 -0800 | [diff] [blame] | 255 | } catch (RemoteException e) { |
Sailesh Nepal | f1c191d | 2014-03-07 18:17:39 -0800 | [diff] [blame] | 256 | Log.e(this, e, "Failed to set the in-call adapter."); |
Santos Cordon | e3d76ab | 2014-01-28 17:25:20 -0800 | [diff] [blame] | 257 | mInCallService = null; |
Sailesh Nepal | 810735e | 2014-03-18 18:15:46 -0700 | [diff] [blame] | 258 | return; |
Santos Cordon | e3d76ab | 2014-01-28 17:25:20 -0800 | [diff] [blame] | 259 | } |
| 260 | |
Santos Cordon | 049b7b6 | 2014-01-30 05:34:26 -0800 | [diff] [blame] | 261 | // Upon successful connection, send the state of the world to the in-call app. |
Sailesh Nepal | 810735e | 2014-03-18 18:15:46 -0700 | [diff] [blame] | 262 | ImmutableCollection<Call> calls = CallsManager.getInstance().getCalls(); |
| 263 | if (!calls.isEmpty()) { |
| 264 | for (Call call : calls) { |
| 265 | onCallAdded(call); |
| 266 | } |
Sailesh Nepal | 6aca10a | 2014-03-24 16:11:02 -0700 | [diff] [blame] | 267 | onAudioStateChanged(null, CallsManager.getInstance().getAudioState()); |
Sailesh Nepal | 810735e | 2014-03-18 18:15:46 -0700 | [diff] [blame] | 268 | } else { |
| 269 | unbind(); |
Santos Cordon | 049b7b6 | 2014-01-30 05:34:26 -0800 | [diff] [blame] | 270 | } |
Santos Cordon | e3d76ab | 2014-01-28 17:25:20 -0800 | [diff] [blame] | 271 | } |
| 272 | |
| 273 | /** |
| 274 | * Cleans up the instance of in-call app after the service has been unbound. |
| 275 | */ |
| 276 | private void onDisconnected() { |
| 277 | ThreadUtil.checkOnMainThread(); |
| 278 | mInCallService = null; |
| 279 | } |
Sailesh Nepal | 8c85dee | 2014-04-07 22:21:40 -0700 | [diff] [blame] | 280 | |
| 281 | private void updateCall(Call call) { |
| 282 | if (mInCallService != null) { |
| 283 | try { |
Santos Cordon | a161070 | 2014-06-04 20:22:56 -0700 | [diff] [blame] | 284 | InCallCall inCallCall = toInCallCall(call); |
| 285 | Log.v(this, "updateCall %s ==> %s", call, inCallCall); |
| 286 | mInCallService.updateCall(inCallCall); |
Santos Cordon | f3671a6 | 2014-05-29 21:51:53 -0700 | [diff] [blame] | 287 | } catch (RemoteException ignored) { |
Sailesh Nepal | 8c85dee | 2014-04-07 22:21:40 -0700 | [diff] [blame] | 288 | } |
| 289 | } |
| 290 | } |
| 291 | |
| 292 | private InCallCall toInCallCall(Call call) { |
| 293 | String callId = mCallIdMapper.getCallId(call); |
Sailesh Nepal | 8c85dee | 2014-04-07 22:21:40 -0700 | [diff] [blame] | 294 | |
Sailesh Nepal | e20bc97 | 2014-07-09 21:22:36 -0700 | [diff] [blame] | 295 | int capabilities = call.getCallCapabilities(); |
| 296 | if (!CallsManager.getInstance().isAddCallCapable(call)) { |
| 297 | capabilities &= ~CallCapabilities.ADD_CALL; |
Santos Cordon | 10838c2 | 2014-06-11 17:36:04 -0700 | [diff] [blame] | 298 | } |
Sailesh Nepal | e20bc97 | 2014-07-09 21:22:36 -0700 | [diff] [blame] | 299 | if (call.isEmergencyCall()) { |
| 300 | capabilities &= ~CallCapabilities.MUTE; |
Santos Cordon | a161070 | 2014-06-04 20:22:56 -0700 | [diff] [blame] | 301 | } |
Sailesh Nepal | e20bc97 | 2014-07-09 21:22:36 -0700 | [diff] [blame] | 302 | |
Sailesh Nepal | 8c85dee | 2014-04-07 22:21:40 -0700 | [diff] [blame] | 303 | CallState state = call.getState(); |
| 304 | if (state == CallState.ABORTED) { |
| 305 | state = CallState.DISCONNECTED; |
| 306 | } |
Santos Cordon | a161070 | 2014-06-04 20:22:56 -0700 | [diff] [blame] | 307 | |
| 308 | String parentCallId = null; |
| 309 | Call parentCall = call.getParentCall(); |
| 310 | if (parentCall != null) { |
| 311 | parentCallId = mCallIdMapper.getCallId(parentCall); |
| 312 | } |
| 313 | |
| 314 | long connectTimeMillis = call.getConnectTimeMillis(); |
| 315 | List<Call> childCalls = call.getChildCalls(); |
| 316 | List<String> childCallIds = new ArrayList<>(); |
| 317 | if (!childCalls.isEmpty()) { |
| 318 | connectTimeMillis = Long.MAX_VALUE; |
| 319 | for (Call child : childCalls) { |
| 320 | connectTimeMillis = Math.min(child.getConnectTimeMillis(), connectTimeMillis); |
| 321 | childCallIds.add(mCallIdMapper.getCallId(child)); |
| 322 | } |
| 323 | } |
| 324 | |
Ihab Awad | ff7493a | 2014-06-10 13:47:44 -0700 | [diff] [blame] | 325 | if (call.isRespondViaSmsCapable()) { |
| 326 | capabilities |= CallCapabilities.RESPOND_VIA_TEXT; |
| 327 | } |
| 328 | |
Sailesh Nepal | e8ecb98 | 2014-07-11 17:19:42 -0700 | [diff] [blame] | 329 | Uri handle = call.getHandlePresentation() == CallPropertyPresentation.ALLOWED ? |
| 330 | call.getHandle() : null; |
| 331 | String callerDisplayName = call.getCallerDisplayNamePresentation() == |
| 332 | CallPropertyPresentation.ALLOWED ? call.getCallerDisplayName() : null; |
| 333 | |
Ihab Awad | 0fea3f2 | 2014-06-03 18:45:05 -0700 | [diff] [blame] | 334 | return new InCallCall(callId, state, call.getDisconnectCause(), call.getDisconnectMessage(), |
Sailesh Nepal | e8ecb98 | 2014-07-11 17:19:42 -0700 | [diff] [blame] | 335 | call.getCannedSmsResponses(), capabilities, connectTimeMillis, handle, |
| 336 | call.getHandlePresentation(), callerDisplayName, |
| 337 | call.getCallerDisplayNamePresentation(), call.getGatewayInfo(), |
Sailesh Nepal | 905dfba | 2014-07-14 08:20:41 -0700 | [diff] [blame] | 338 | call.getPhoneAccount(), call.getCallVideoProvider(), parentCallId, childCallIds, |
Andrew Lee | 4a79660 | 2014-07-11 17:23:03 -0700 | [diff] [blame] | 339 | call.getStatusHints() , call.getVideoState()); |
Sailesh Nepal | 8c85dee | 2014-04-07 22:21:40 -0700 | [diff] [blame] | 340 | } |
Santos Cordon | e3d76ab | 2014-01-28 17:25:20 -0800 | [diff] [blame] | 341 | } |