Searched refs:uiAutomation (Results 1 – 10 of 10) sorted by relevance
38 final UiAutomation uiAutomation = instrumentation.getUiAutomation(); in setUp() local40 uiAutomation.executeShellCommand("dumpsys battery unplug"); in setUp()41 uiAutomation.executeShellCommand("dumpsys batterystats enable pretend-screen-off"); in setUp()42 uiAutomation.executeShellCommand("dumpsys batterystats --reset"); in setUp()51 final UiAutomation uiAutomation = instrumentation.getUiAutomation(); in tearDown() local53 uiAutomation.executeShellCommand("dumpsys battery reset"); in tearDown()54 uiAutomation.executeShellCommand("dumpsys batterystats disable pretend-screen-off"); in tearDown()
203 final UiAutomation uiAutomation = getInstrumentation().getUiAutomation(); in getWifiSsid() local205 uiAutomation.adoptShellPermissionIdentity(); in getWifiSsid()210 uiAutomation.dropShellPermissionIdentity(); in getWifiSsid()221 final UiAutomation uiAutomation = getInstrumentation().getUiAutomation(); in setWifiMeteredStatus() local223 uiAutomation.adoptShellPermissionIdentity(); in setWifiMeteredStatus()256 uiAutomation.dropShellPermissionIdentity(); in setWifiMeteredStatus()443 final UiAutomation uiAutomation = getInstrumentation().getUiAutomation();445 uiAutomation.adoptShellPermissionIdentity();448 uiAutomation.dropShellPermissionIdentity();453 final UiAutomation uiAutomation = getInstrumentation().getUiAutomation();[all …]
101 final UiAutomation uiAutomation = in adoptShellPermissionIdentity() local103 uiAutomation.adoptShellPermissionIdentity(); in adoptShellPermissionIdentity()107 final UiAutomation uiAutomation = in dropShellPermissionIdentity() local109 uiAutomation.dropShellPermissionIdentity(); in dropShellPermissionIdentity()
177 UiAutomation uiAutomation = InstrumentationRegistry.getInstrumentation().getUiAutomation(); in executeShellCommandInternal() local179 uiAutomation.executeShellCommand(cmd).getFileDescriptor())) { in executeShellCommandInternal()
596 public static String executeShellCommand(String command, UiAutomation uiAutomation) in executeShellCommand() argument601 return executeShellCommandInternal(command, uiAutomation); in executeShellCommand()611 public static String executeShellCommandInternal(String command, UiAutomation uiAutomation) in executeShellCommandInternal() argument614 ParcelFileDescriptor pfd = uiAutomation.executeShellCommand(command.toString()); in executeShellCommandInternal()
134 final UiAutomation uiAutomation = InstrumentationRegistry.getInstrumentation() in saveResourceToFile() local139 final ParcelFileDescriptor[] fileDescriptors = uiAutomation.executeShellCommandRw( in saveResourceToFile()
84 inst.uiAutomation.adoptShellPermissionIdentity(MANAGE_TEST_NETWORKS) in setUp()89 inst.uiAutomation.dropShellPermissionIdentity() in setUp()
65 private val automation by lazy { InstrumentationRegistry.getInstrumentation().uiAutomation } in <lambda>()
102 instrumentation.uiAutomation.executeShellCommand( in <lambda>()
1167 UiAutomation uiAutomation = InstrumentationRegistry.getInstrumentation().getUiAutomation(); in executeShellCommandInternal() local1169 uiAutomation.executeShellCommand(cmd).getFileDescriptor())) { in executeShellCommandInternal()