本文整理汇总了Java中com.android.uiautomator.core.UiObject.isEnabled方法的典型用法代码示例。如果您正苦于以下问题:Java UiObject.isEnabled方法的具体用法?Java UiObject.isEnabled怎么用?Java UiObject.isEnabled使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.android.uiautomator.core.UiObject
的用法示例。
在下文中一共展示了UiObject.isEnabled方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: setSystemTime
import com.android.uiautomator.core.UiObject; //导入方法依赖的package包/类
@Override
public void setSystemTime(Calendar calendar) throws UiObjectNotFoundException, IOException {
ShellCommandUtils
.executeShellCommand("/system/bin/am start -a android.settings.DATE_SETTINGS");
UiObject dateAndTimeToggle = new UiObject(new UiSelector().text("Automatic date & time"));
UiObject setDate = new UiObject(new UiSelector().text("Set date"));
if (!setDate.isEnabled()) {
dateAndTimeToggle.click();
}
new UiObject(
new UiSelector().text("Set time")).click();
AsusNexus72012sdk21TimePickerHelper.setTime(calendar);
AsusNexus72012sdk21TimePickerHelper.clickOK();
}
开发者ID:SeaDroids,项目名称:CIWorkshopProjects,代码行数:19,代码来源:AsusNexus72012sdk21SystemDateTimeViewHelper.java
示例2: setSystemDate
import com.android.uiautomator.core.UiObject; //导入方法依赖的package包/类
@Override
public void setSystemDate(Calendar calendar) throws UiObjectNotFoundException, IOException {
ShellCommandUtils
.executeShellCommand("/system/bin/am start -a android.settings.DATE_SETTINGS");
UiObject dateAndTimeToggle = new UiObject(new UiSelector().text("Automatic date and time"));
UiObject setDate = new UiObject(new UiSelector().text("Set date"));
if (!setDate.isEnabled()) {
dateAndTimeToggle.click();
}
new UiObject(
new UiSelector().text("Set date")).click();
AsusNexus72012sdk21DatePickerHelper.setDate(calendar);
AsusNexus72012sdk21DatePickerHelper.clickOk();
}
开发者ID:SeaDroids,项目名称:CIWorkshopProjects,代码行数:19,代码来源:AsusNexus72012sdk21SystemDateTimeViewHelper.java
示例3: setSystemTime
import com.android.uiautomator.core.UiObject; //导入方法依赖的package包/类
@Override
public void setSystemTime(Calendar calendar) throws UiObjectNotFoundException, IOException {
ShellCommandUtils
.executeShellCommand("/system/bin/am start -a android.settings.DATE_SETTINGS");
UiObject dateAndTimeToggle = new UiObject(new UiSelector().text("Automatic date and time"));
UiObject setDate = new UiObject(new UiSelector().text("Set date"));
if (!setDate.isEnabled()) {
dateAndTimeToggle.click();
}
new UiObject(
new UiSelector().text("Set time")).click();
SamsungGalaxyS5sdk19TimePickerHelper.setTime(calendar);
SamsungGalaxyS5sdk19TimePickerHelper.clickSet();
}
开发者ID:SeaDroids,项目名称:CIWorkshopProjects,代码行数:19,代码来源:SamsungGalaxyS5sdk19SystemDateTimeViewHelper.java
示例4: setSystemDate
import com.android.uiautomator.core.UiObject; //导入方法依赖的package包/类
@Override
public void setSystemDate(Calendar calendar) throws UiObjectNotFoundException, IOException {
ShellCommandUtils
.executeShellCommand("/system/bin/am start -a android.settings.DATE_SETTINGS");
UiObject dateAndTimeToggle = new UiObject(new UiSelector().text("Automatic date and time"));
UiObject setDate = new UiObject(new UiSelector().text("Set date"));
if (!setDate.isEnabled()) {
dateAndTimeToggle.click();
}
new UiObject(
new UiSelector().text("Set date")).click();
SamsungGalaxyS5sdk19DatePickerHelper.setDate(calendar);
SamsungGalaxyS5sdk19DatePickerHelper.clickSet();
}
开发者ID:SeaDroids,项目名称:CIWorkshopProjects,代码行数:19,代码来源:SamsungGalaxyS5sdk19SystemDateTimeViewHelper.java
示例5: resetAutomaticDateAndTime
import com.android.uiautomator.core.UiObject; //导入方法依赖的package包/类
@Override
public void resetAutomaticDateAndTime() throws UiObjectNotFoundException, IOException {
ShellCommandUtils
.executeShellCommand("/system/bin/am start -a android.settings.DATE_SETTINGS");
UiObject dateAndTimeToggle = new UiObject(new UiSelector().text("Automatic date & time"));
UiObject setDate = new UiObject(new UiSelector().text("Set date"));
if (setDate.isEnabled()) {
dateAndTimeToggle.click();
}
}
开发者ID:SeaDroids,项目名称:CIWorkshopProjects,代码行数:13,代码来源:AsusNexus72012sdk21SystemDateTimeViewHelper.java
示例6: resetAutomaticDateAndTime
import com.android.uiautomator.core.UiObject; //导入方法依赖的package包/类
@Override
public void resetAutomaticDateAndTime() throws UiObjectNotFoundException, IOException {
ShellCommandUtils
.executeShellCommand("/system/bin/am start -a android.settings.DATE_SETTINGS");
UiObject dateAndTimeToggle = new UiObject(new UiSelector().text("Automatic date and time"));
UiObject setDate = new UiObject(new UiSelector().text("Set date"));
if (setDate.isEnabled()) {
dateAndTimeToggle.click();
}
}
开发者ID:SeaDroids,项目名称:CIWorkshopProjects,代码行数:13,代码来源:SamsungGalaxyS5sdk19SystemDateTimeViewHelper.java