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 /** Car Sms Helper Interface */ 20 public interface IAutoCarSmsMessengerHelper extends IAppHelper, Scrollable { 21 22 /** 23 * Setup expectations: bluetooth off 24 * 25 * <p>This method is used checking if the error is displayed when bluetooth is off 26 */ isSmsBluetoothErrorDisplayed()27 boolean isSmsBluetoothErrorDisplayed(); 28 29 /** 30 * Setup expectations: bluetooth on and phone is paired, SMS app is open 31 * 32 * <p>This method is used checking unread text badge is displayed 33 */ isUnreadSmsDisplayed()34 boolean isUnreadSmsDisplayed(); 35 36 /** 37 * Setup expectations: bluetooth on and phone is paired, SMS app is open 38 * 39 * <p>This method is used checking if sms text is displaye 40 */ isSmsPreviewDisplayed(String text)41 boolean isSmsPreviewDisplayed(String text); 42 43 /** 44 * Setup expectations: bluetooth on and phone is paired, SMS app is open 45 * 46 * <p>This method is used checking if sms timestamp is displayed 47 */ isSmsTimeStampDisplayed()48 boolean isSmsTimeStampDisplayed(); 49 50 /** 51 * Setup expectations: bluetooth on and phone is paired, SMS app is open 52 * 53 * <p>This method is used checking if sms timestamp is displayed 54 */ isNoMessagesDisplayed()55 boolean isNoMessagesDisplayed(); 56 57 /** 58 * Setup expectations: bluetooth on and phone is paired, SMS app is open,HU is in driving mode 59 * 60 * <p>This method is used to tap on sms text received to play it aloud 61 */ tapToReadAloud()62 void tapToReadAloud(); 63 64 /** 65 * Setup expectations: None 66 * 67 * <p>This method is used to verify microphone Transcription plate in status bar. 68 */ isAssistantSMSTranscriptionPlateDisplayed()69 boolean isAssistantSMSTranscriptionPlateDisplayed(); 70 } 71