1 /* 2 * Copyright (C) 2019 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.externalimsservice; 18 19 import android.telephony.ims.ImsReasonInfo; 20 import android.telephony.ims.stub.ImsFeatureConfiguration; 21 22 /** 23 * Interface for Testing an external ImsService implementation. Since it is not in the same process, 24 * it can not be passed locally. 25 */ 26 interface ITestExternalImsService { waitForLatchCountdown(int latchIndex)27 boolean waitForLatchCountdown(int latchIndex); setFeatureConfig(in ImsFeatureConfiguration f)28 void setFeatureConfig(in ImsFeatureConfiguration f); isRcsFeatureCreated()29 boolean isRcsFeatureCreated(); isMmTelFeatureCreated()30 boolean isMmTelFeatureCreated(); resetState()31 void resetState(); isTelephonyBound()32 boolean isTelephonyBound(); onDeregistered(in ImsReasonInfo reason)33 void onDeregistered(in ImsReasonInfo reason); onRegistering(int registrationTech)34 void onRegistering(int registrationTech); onRegistered(int registrationTech)35 void onRegistered(int registrationTech); addCapabilities(long capabilities)36 void addCapabilities(long capabilities); 37 } 38