blob: 05144cedb8cbee75356312cb4a532969c29b7ae3 [file] [log] [blame]
/*
* Copyright (C) 2023 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;
/** Helper class for functional tests of system settings */
import android.platform.spectatio.exceptions.MissingUiElementException;
import java.util.Date;
public interface IAutoSystemSettingsHelper extends IAppHelper {
/**
* Setup expectation: System setting is open.
*
* Set display language.
*
* @param language - input language.
*/
void setDisplayLanguage(String language);
/**
* Setup expectation: System setting is open.
*
* Get current display language.
*/
String getCurrentLanguage();
/**
* Setup expectation: System setting is open.
*
* Get device model number from UI.
*/
String getDeviceModel();
/**
* Setup expectation: System setting is open.
*
* Get android version from UI.
*/
String getAndroidVersion();
/**
* Setup expectation: System setting is open.
*
* Get android security patch level from UI.
*/
Date getAndroidSecurityPatchLevel();
/**
* Setup expectation: System setting is open.
*
* Get kernel version from UI.
*/
String getKernelVersion();
/**
* Setup expectation: System setting is open.
*
* Get build number from UI.
*/
String getBuildNumber();
/**
* Setup expectation: System setting is open.
*
* Reset network connection [ Wifi & Bluetooth ].
*/
void resetNetwork();
/**
* Setup expectation: System setting is open.
*
* Reset application preferences.
*/
void resetAppPreferences();
/**
* Setup expectation: System setting is open.
*
* <p>Open Storage Menu
*/
void openStorageMenu();
/**
* Setup expectation: Storage setting is open
*
* <p>To verify if App usage in GB
*
* @param option - input storage option.
*/
boolean verifyUsageinGB(String option);
/**
* Setup expectation: System setting is open.
*
* <p>Open Languages & input menu.
*/
void openLanguagesInputMenu();
/**
* Setup expectation: System setting is open.
*
* <p>Click on build number.
*/
void enterDeveloperMode();
/**
* Setup expectation: Click to open developer options.
*
* <p>Click on about.
*/
void openDeveloperOptions();
/**
* Setup expectation: Scroll to developer options and Checks if Developer Options is available
*
* <p>Checks if Developer Options is available
*/
boolean hasDeveloperOptions() throws MissingUiElementException;
/**
* Setup expectation: Location setting is open.
*
* <p>Clicks on view all.
*/
void openViewAll();
}