1 /*
2  * Copyright (C) 2023 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 /**
20  * Interface Helper class for manipulating a mobile phone device. Unlike other helpers in this
21  * directory, this helper is meant to run on mobile phone devices, rather than auto devices
22  */
23 public interface IAutoPhoneHelper extends IAppHelper {
24 
25     /**
26      * Assumes mobile device has dialer pad open.
27      *
28      * <p>Press the call button on screen
29      */
pressCallButton()30     void pressCallButton();
31 
32     /**
33      * Assumes mobile device has dialer app open.
34      *
35      * <p>Press the dial pad icon
36      */
pressDialpadIcon()37     void pressDialpadIcon();
38 
39     /**
40      * Assumes mobile device is on home screen, and phone icon is present.
41      *
42      * <p>Press the phone icon
43      */
pressPhoneIcon()44     void pressPhoneIcon();
45 
46     /**
47      * Assumes dial pad is open.
48      *
49      * <p>Enter a number into the dial pad
50      */
enterNumberOnDialpad(String numberToEnter)51     void enterNumberOnDialpad(String numberToEnter);
52 
53     /**
54      * Assumes dial pad is open. Dials a number one digit at a time using the number buttons on the
55      * dial pad
56      */
dialNumberOnDialpad(String phoneNumber)57     void dialNumberOnDialpad(String phoneNumber);
58 }
59