1 /* 2 * Copyright (C) 2018 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 android.telephony.cts.embmstestapp; 18 19 import android.os.Parcel; 20 21 interface ICtsGroupCallMiddlewareControl { 22 // Resets the state of the CTS middleware reset()23 void reset(); 24 // Get a list of calls made to the middleware binder. 25 // Looks like List<List<Object>>, where the first Object is always a String corresponding to 26 // the method name. getGroupCallSessionCalls()27 List getGroupCallSessionCalls(); 28 // Force all methods that can return an error to return this error. forceErrorCode(int error)29 void forceErrorCode(int error); 30 // Fire the error callback on the current active call fireErrorOnGroupCall(int errorCode, String message)31 void fireErrorOnGroupCall(int errorCode, String message); 32 // Fire the error callback on the group call session fireErrorOnSession(int errorCode, String message)33 void fireErrorOnSession(int errorCode, String message); 34 // The following fire callbacks on the active group call, using the provided arguments fireGroupCallStateChanged(int state, int reason)35 void fireGroupCallStateChanged(int state, int reason); fireBroadcastSignalStrengthUpdated(int signalStrength)36 void fireBroadcastSignalStrengthUpdated(int signalStrength); 37 // The following fire callbacks on the group call session. fireAvailableSaisUpdated(in List currentSais, in List availableSais)38 void fireAvailableSaisUpdated(in List currentSais, in List availableSais); fireServiceInterfaceAvailable(String interfaceName, int index)39 void fireServiceInterfaceAvailable(String interfaceName, int index); 40 }