/tools/tradefederation/core/tests/src/com/android/tradefed/targetprep/ |
D | InstallApexModuleTargetPreparerTest.java | 228 EasyMock.expect(mMockDevice.executeShellV2Command("ls " + APEX_DATA_DIR)).andReturn(res); in testSetupSuccess_removeExistingStagedApexSuccess() 229 EasyMock.expect(mMockDevice.executeShellV2Command("ls " + SESSION_DATA_DIR)).andReturn(res); in testSetupSuccess_removeExistingStagedApexSuccess() 230 EasyMock.expect(mMockDevice.executeShellV2Command("ls " + STAGING_DATA_DIR)).andReturn(res); in testSetupSuccess_removeExistingStagedApexSuccess() 255 EasyMock.expect(mMockDevice.executeShellV2Command("ls " + APEX_DATA_DIR)).andReturn(res); in testSetupSuccess_noDataUnderApexDataDirs() 256 EasyMock.expect(mMockDevice.executeShellV2Command("ls " + SESSION_DATA_DIR)).andReturn(res); in testSetupSuccess_noDataUnderApexDataDirs() 257 EasyMock.expect(mMockDevice.executeShellV2Command("ls " + STAGING_DATA_DIR)).andReturn(res); in testSetupSuccess_noDataUnderApexDataDirs() 285 EasyMock.expect(mMockDevice.executeShellV2Command("ls " + APEX_DATA_DIR)).andReturn(res); in testSetupSuccess_getActivatedPackageSuccess() 286 EasyMock.expect(mMockDevice.executeShellV2Command("ls " + SESSION_DATA_DIR)).andReturn(res); in testSetupSuccess_getActivatedPackageSuccess() 287 EasyMock.expect(mMockDevice.executeShellV2Command("ls " + STAGING_DATA_DIR)).andReturn(res); in testSetupSuccess_getActivatedPackageSuccess() 318 EasyMock.expect(mMockDevice.executeShellV2Command("ls " + APEX_DATA_DIR)).andReturn(res); in testSetupSuccess_withAbsoluteTestFileName() [all …]
|
D | DisableSELinuxTargetPreparerTest.java | 61 EasyMock.expect(mMockDevice.executeShellV2Command(GETENFORCE)).andReturn(result).once(); in testSetUpSuccess_permissive() 74 EasyMock.expect(mMockDevice.executeShellV2Command(GETENFORCE)).andReturn(result).once(); in testSetUpSuccess_enforced_rootBefore() 76 EasyMock.expect(mMockDevice.executeShellV2Command(SETENFORCE + "0")) in testSetUpSuccess_enforced_rootBefore() 79 EasyMock.expect(mMockDevice.executeShellV2Command(SETENFORCE + "1")) in testSetUpSuccess_enforced_rootBefore() 94 EasyMock.expect(mMockDevice.executeShellV2Command(GETENFORCE)).andReturn(result).once(); in testSetUpSuccess_enforced_notRootBefore() 99 EasyMock.expect(mMockDevice.executeShellV2Command(SETENFORCE + "0")) in testSetUpSuccess_enforced_notRootBefore() 102 EasyMock.expect(mMockDevice.executeShellV2Command(SETENFORCE + "1")) in testSetUpSuccess_enforced_notRootBefore() 116 EasyMock.expect(mMockDevice.executeShellV2Command(GETENFORCE)).andReturn(result).once(); in testSetUp_rootFail() 134 EasyMock.expect(mMockDevice.executeShellV2Command(GETENFORCE)).andReturn(result).once(); in testSetUp_disableSELinuxFail() 137 EasyMock.expect(mMockDevice.executeShellV2Command(SETENFORCE + "0")) in testSetUp_disableSELinuxFail()
|
D | RunCommandTargetPreparerTest.java | 77 EasyMock.expect(mMockDevice.executeShellV2Command(EasyMock.eq(command))).andReturn(res); in testSetUp() 97 mMockDevice.executeShellV2Command( in testSetUp_withTimeout() 134 EasyMock.expect(mMockDevice.executeShellV2Command(EasyMock.eq(command))).andReturn(result); in testTearDown()
|
D | DynamicSystemPreparerTest.java | 118 Mockito.when(mMockDevice.executeShellV2Command("gsi_tool enable")).thenReturn(res); in testSetUp()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/device/contentprovider/ |
D | ContentProviderHandlerTest.java | 70 .executeShellV2Command( in testSetUp_install() 78 .executeShellV2Command( in testSetUp_install() 109 .executeShellV2Command( in testDeleteFile() 127 .executeShellV2Command( in testDeleteFile_fail() 144 .executeShellV2Command( in testError() 161 .executeShellV2Command( in testPushFile() 214 .executeShellV2Command(shellCommandCaptor.capture(), any(OutputStream.class)); in testPullFile_verifyShellCommand() 401 .executeShellV2Command(anyString(), any(OutputStream.class)); in mockPullFileSuccess()
|
/tools/tradefederation/core/device_build_interfaces/com/android/tradefed/device/ |
D | INativeDevice.java | 324 public CommandResult executeShellV2Command(String command) throws DeviceNotAvailableException; in executeShellV2Command() method 336 public CommandResult executeShellV2Command(String command, File pipeAsInput) in executeShellV2Command() method 349 public CommandResult executeShellV2Command(String command, OutputStream pipeToOutput) in executeShellV2Command() method 364 public CommandResult executeShellV2Command( in executeShellV2Command() method 383 public CommandResult executeShellV2Command( in executeShellV2Command() method 407 public CommandResult executeShellV2Command( in executeShellV2Command() method
|
/tools/tradefederation/core/src/com/android/tradefed/device/ |
D | NativeDevice.java | 479 CommandResult result = executeShellV2Command(cmd); in getProperty() 534 CommandResult result = executeShellV2Command(setPropCmd); in setProperty() 815 public CommandResult executeShellV2Command(String cmd) throws DeviceNotAvailableException { in executeShellV2Command() method in NativeDevice 816 return executeShellV2Command(cmd, getCommandTimeout(), TimeUnit.MILLISECONDS); in executeShellV2Command() 821 public CommandResult executeShellV2Command(String cmd, File pipeAsInput) in executeShellV2Command() method in NativeDevice 823 return executeShellV2Command( in executeShellV2Command() 834 public CommandResult executeShellV2Command(String cmd, OutputStream pipeToOutput) in executeShellV2Command() method in NativeDevice 836 return executeShellV2Command( in executeShellV2Command() 847 public CommandResult executeShellV2Command( in executeShellV2Command() method in NativeDevice 850 return executeShellV2Command( in executeShellV2Command() [all …]
|
D | TestDevice.java | 455 executeShellV2Command( in allowLegacyStorageForApps() 471 executeShellV2Command("appops write-settings"); in allowLegacyStorageForApps() 650 executeShellV2Command( in getScreenshot() 1885 CommandResult res = executeShellV2Command("dumpsys SurfaceFlinger | grep 'color modes:'"); in listDisplayIds()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/util/statsd/ |
D | ConfigUtilTest.java | 70 when(mTestDevice.executeShellV2Command(matches(STATS_CONFIG_UPDATE_MATCHER))) in testPushDeviceConfig() 83 verify(mTestDevice, times(1)).executeShellV2Command(matches(STATS_CONFIG_UPDATE_MATCHER)); in testPushDeviceConfig() 94 when(mTestDevice.executeShellV2Command(matches(STATS_CONFIG_UPDATE_MATCHER))) in testPushInvalidDeviceConfig() 120 when(mTestDevice.executeShellV2Command(matches(STATS_CONFIG_UPDATE_MATCHER))) in testPushBinaryDeviceConfig() 126 verify(mTestDevice, times(1)).executeShellV2Command(matches(STATS_CONFIG_UPDATE_MATCHER)); in testPushBinaryDeviceConfig()
|
/tools/tradefederation/core/device_build_interfaces/com/android/tradefed/device/contentprovider/ |
D | ContentProviderHandler.java | 129 mDevice.executeShellV2Command( in setUp() 141 mDevice.executeShellV2Command(String.format("cmd appops get %s", PACKAGE_NAME)); in setUp() 173 CommandResult deleteResult = mDevice.executeShellV2Command(deleteCommand); in deleteFile() 235 CommandResult pushResult = mDevice.executeShellV2Command(pushCommand, fileToPush); in pushFile() 401 CommandResult pullResult = mDevice.executeShellV2Command(pullCommand, localFileStream); in pullFileInternal()
|
/tools/tradefederation/core/test_framework/com/android/tradefed/targetprep/ |
D | DisableSELinuxTargetPreparer.java | 42 CommandResult result = device.executeShellV2Command("getenforce"); in setUp() 57 result = device.executeShellV2Command("setenforce 0"); in setUp() 78 device.executeShellV2Command("setenforce 1"); in tearDown()
|
D | DynamicSystemPreparer.java | 110 CommandResult result = device.executeShellV2Command("gsi_tool enable"); in setUp()
|
/tools/tradefederation/core/src/com/android/tradefed/targetprep/ |
D | RunCommandTargetPreparer.java | 88 device.executeShellV2Command(cmd, mRunCmdTimeout, TimeUnit.MILLISECONDS, 0); in setUp() 90 result = device.executeShellV2Command(cmd); in setUp() 131 CommandResult result = getDevice(testInfo).executeShellV2Command(cmd); in tearDown()
|
D | InstallApexModuleTargetPreparer.java | 598 if (!device.executeShellV2Command("ls " + APEX_DATA_DIR).getStdout().isEmpty()) { in cleanUpStagedAndActiveSession() 602 if (!device.executeShellV2Command("ls " + STAGING_DATA_DIR).getStdout().isEmpty()) { in cleanUpStagedAndActiveSession() 606 if (!device.executeShellV2Command("ls " + SESSION_DATA_DIR).getStdout().isEmpty()) { in cleanUpStagedAndActiveSession()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/device/ |
D | TestDeviceTest.java | 4791 doReturn(setLegacy).when(spy).executeShellV2Command(Mockito.contains("cmd appops set")); in testPushFile_contentProvider() 4795 doReturn(getLegacy).when(spy).executeShellV2Command(Mockito.contains("cmd appops get")); in testPushFile_contentProvider() 4801 .executeShellV2Command(Mockito.contains("content write"), (File) Mockito.any()); in testPushFile_contentProvider() 4849 doReturn(setLegacy).when(spy).executeShellV2Command(Mockito.contains("cmd appops set")); in testPushFile_contentProvider_notFound() 4853 doReturn(getLegacy).when(spy).executeShellV2Command(Mockito.contains("cmd appops get")); in testPushFile_contentProvider_notFound() 4862 .executeShellV2Command(Mockito.contains("content write"), (File) Mockito.any()); in testPushFile_contentProvider_notFound()
|
D | NativeDeviceTest.java | 2970 assertNotNull(mTestDevice.executeShellV2Command("some command")); in testExecuteShellV2Command() 2992 mTestDevice.executeShellV2Command("some command", 200L, TimeUnit.MILLISECONDS, 1); in testExecuteShellV2Command_timeout() 3018 mTestDevice.executeShellV2Command("some command", 200L, TimeUnit.MILLISECONDS, 1); in testExecuteShellV2Command_fail()
|
/tools/test/graphicsbenchmark/functional_tests/hostside/src/com/android/game/qualification/test/ |
D | TestUtils.java | 29 CommandResult result = device.executeShellV2Command( in isGameCoreCertified()
|
/tools/tradefederation/core/src/com/android/tradefed/device/cloud/ |
D | NestedDeviceStateMonitor.java | 62 res = mDevice.executeShellV2Command("dumpsys package"); in nestedWaitForDeviceOnline()
|
/tools/tradefederation/core/test_framework/com/android/tradefed/testtype/binary/ |
D | ExecutableTargetTest.java | 69 mDevice.executeShellV2Command( in runBinary()
|
/tools/tradefederation/core/test_framework/com/android/tradefed/util/statsd/ |
D | ConfigUtil.java | 123 device.executeShellV2Command( in updateConfig()
|