1 /* 2 * Copyright (C) 2017 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.platform.test.helpers; 18 19 import android.app.Instrumentation; 20 21 public abstract class AbstractContactsHelper extends AbstractStandardAppHelper { 22 AbstractContactsHelper(Instrumentation instr)23 public AbstractContactsHelper(Instrumentation instr) { 24 super(instr); 25 } 26 27 /** 28 * Setup expectation: Contacts app is open 29 * 30 * Scroll to contact name and click 31 */ selectContact(String contactName)32 public abstract void selectContact(String contactName); 33 34 /** 35 * Setup expectation: Contact is open 36 * 37 * Click the call button 38 */ call()39 public abstract void call(); 40 41 /** 42 * Setup expectation: Contact is open 43 * 44 * Click text button, send text message from quick reply list 45 */ sendText(String quickReplyText)46 public abstract void sendText(String quickReplyText); 47 } 48