Home | History | Annotate | Download | only in helpers
      1 /*
      2  * Copyright (C) 2016 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.helpers;
     18 
     19 public interface IAutoDialHelper extends IAppHelper {
     20     /**
     21      * Setup expectations: The app is open and the drawer is open
     22      *
     23      * This method is used to dial the phonenumber on dialpad
     24      *
     25      * @param phoneNumber  phone number to dial.
     26      */
     27     void dialANumber(String phoneNumber);
     28 
     29     /**
     30      * Setup expectations: The app is open and there is an ongoing call.
     31      *
     32      * This method is used to end call.
     33      */
     34     void endCall();
     35 
     36     /**
     37      * Setup expectations: The app is open and the drawer is open.
     38      *
     39      * This method is used to open call history details.
     40      */
     41     void openCallHistory();
     42 
     43     /**
     44      * Setup expectations: The app is open and the drawer is open.
     45      *
     46      * This method is used to open missed call details.
     47      */
     48     void openMissedCall();
     49 
     50     /**
     51      * Setup expectations: The app is open and in "Dial a number" drawer option
     52      *
     53      * This method is used to delete the number entered on dialpad using backspace
     54      */
     55     void deleteDialedNumber();
     56 
     57     /**
     58      * Setup expectations: The app is open and in "Dial a number" drawer option
     59      *
     60      * This method is used to get the number entered on dialpad
     61      */
     62     String getDialedNumber();
     63 
     64     /**
     65      * Setup expectations: The app is open and there is an ongoing call.
     66      *
     67      * This method is used to get the name of the contact for the ongoing call
     68      */
     69     String getDialedContactName();
     70 
     71     /**
     72      * Setup expectations: The app is open and phonenumber is entered on the dialpad
     73      *
     74      * This method is used to make a call
     75      *
     76      */
     77     void makeCall();
     78 
     79     /**
     80      * Setup expectations: The app is open
     81      *
     82      * This method is used to dial a number from call history, missed call[s], recent
     83      * call[s] list
     84      *
     85      * @param phoneNumber  phoneNumber to be dialed
     86      */
     87     void dialNumberFromList(String phoneNumber);
     88 
     89     /**
     90      * Setup expectations: The app is open and there is an ongoing call
     91      *
     92      * This method is used to enter number on the in-call dialpad
     93      */
     94     void inCallDialPad(String phoneNumber);
     95 
     96     /**
     97      * Setup expectations: The app is open and there is an ongoing call
     98      *
     99      * This method is used to mute the ongoing call
    100      */
    101     void muteCall();
    102 
    103     /**
    104      * Setup expectations: The app is open and there is an ongoing call
    105      *
    106      * This method is used to unmute the ongoing call
    107      */
    108     void unmuteCall();
    109 }
    110