| /* |
| * Copyright (C) 2019 The Android Open Source Project |
| * |
| * Licensed under the Apache License, Version 2.0 (the "License"); |
| * you may not use this file except in compliance with the License. |
| * You may obtain a copy of the License at |
| * |
| * http://www.apache.org/licenses/LICENSE-2.0 |
| * |
| * Unless required by applicable law or agreed to in writing, software |
| * distributed under the License is distributed on an "AS IS" BASIS, |
| * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| * See the License for the specific language governing permissions and |
| * limitations under the License. |
| */ |
| |
| package android.platform.helpers; |
| |
| import java.util.List; |
| |
| public interface IAutoHomeHelper extends IAppHelper { |
| |
| /** |
| * Setup expectations: Should be on home screen. |
| * |
| * <p>Checks if exists a media widget. |
| */ |
| boolean hasMediaWidget(); |
| |
| /** |
| * Setup expectations: Should be on home screen. |
| * |
| * <p>Checks if exists a assistant widget. |
| */ |
| boolean hasAssistantWidget(); |
| |
| /** |
| * Setup expectations: Should be on home screen. |
| * |
| * <p>Checks if exists a bluetooth widget. |
| */ |
| boolean hasBluetoothButton(); |
| |
| /** |
| * Setup expectations: Should be on home screen. |
| * |
| * <p>Checks if exists a network widget. |
| */ |
| boolean hasNetworkButton(); |
| |
| /** |
| * Setup expectations: Should be on home screen. |
| * |
| * <p>Checks if exists a Brightness widget. |
| */ |
| boolean hasDisplayBrightness(); |
| |
| /** |
| * Setup expectations: Verifying the Guest label displayed in profile icon in status bar |
| * |
| * <p>Get the text of the Guest profile |
| */ |
| String getUserProfileName(); |
| |
| /** Opens Media Widget from home screen. */ |
| void openMediaWidget(); |
| |
| /** |
| * Setup expectations: Should be on home screen. |
| * |
| * <p>Checks if exists a brightness palette. |
| */ |
| boolean hasDisplayBrightessPalette(); |
| |
| /** |
| * Setup expectations: Should be on home screen. |
| * |
| * <p>Checks if exists a adaptive brightness. |
| */ |
| boolean hasAdaptiveBrightness(); |
| |
| /** Click on brightness button. */ |
| void openBrightnessPalette(); |
| |
| /** Get temperature from home screen */ |
| List<String> getTemperature(); |
| } |