/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/ |
D | GoogleBenchmarkTestTest.java | 101 EasyMock.expect(mMockITestDevice.executeShellCommand(EasyMock.contains("chmod"))) in testRun() 103 mMockITestDevice.executeShellCommand(EasyMock.contains(test1), EasyMock.same(mMockReceiver), in testRun() 105 mMockITestDevice.executeShellCommand(EasyMock.contains(test2), EasyMock.same(mMockReceiver), in testRun() 108 mMockITestDevice.executeShellCommand( in testRun() 112 mMockITestDevice.executeShellCommand( in testRun() 117 mMockITestDevice.executeShellCommand( in testRun() 121 mMockITestDevice.executeShellCommand( in testRun() 183 EasyMock.expect(mMockITestDevice.executeShellCommand(EasyMock.contains("chmod"))) in testRun_withModuleName() 185 mMockITestDevice.executeShellCommand(EasyMock.contains(test1), EasyMock.same(mMockReceiver), in testRun_withModuleName() 187 mMockITestDevice.executeShellCommand(EasyMock.contains(test2), EasyMock.same(mMockReceiver), in testRun_withModuleName() [all …]
|
D | GTestTest.java | 136 EasyMock.expect(mMockITestDevice.executeShellCommand("ls -l " + testPath1)) in testRun() 139 EasyMock.expect(mMockITestDevice.executeShellCommand("ls -l " + testPath2)) in testRun() 143 mMockITestDevice.executeShellCommand(EasyMock.contains(test1), in testRun() 146 mMockITestDevice.executeShellCommand(EasyMock.contains(test2), in testRun() 168 mMockITestDevice.executeShellCommand(EasyMock.contains(modulePath), in testRun_moduleName() 172 EasyMock.expect(mMockITestDevice.executeShellCommand("ls -l " + modulePath)) in testRun_moduleName() 198 EasyMock.expect(mMockITestDevice.executeShellCommand("ls -l " + test1Path)) in testRun_nested() 205 mMockITestDevice.executeShellCommand(EasyMock.contains(test1Path), in testRun_nested() 230 EasyMock.expect(mMockITestDevice.executeShellCommand("ls -l " + testPath)) in doTestFilter() 234 mMockITestDevice.executeShellCommand(EasyMock.contains(filterString), in doTestFilter() [all …]
|
D | DeviceBatteryLevelCheckerTest.java | 92 EasyMock.expect(mFakeTestDevice.executeShellCommand("svc power stayon false")) in testLow() 94 EasyMock.expect(mFakeTestDevice.executeShellCommand( in testLow() 108 EasyMock.expect(mFakeTestDevice.executeShellCommand("svc power stayon false")) in testLow_becomeHigh() 110 EasyMock.expect(mFakeTestDevice.executeShellCommand( in testLow_becomeHigh() 135 EasyMock.expect(mFakeTestDevice.executeShellCommand("svc power stayon false")) in testLow_becomeNull() 137 EasyMock.expect(mFakeTestDevice.executeShellCommand( in testLow_becomeNull()
|
D | NativeStressTestTest.java | 67 EasyMock.expect(mMockDevice.executeShellCommand(EasyMock.contains("chmod"))).andReturn(""); in setUp() 87 mMockDevice.executeShellCommand(EasyMock.contains("-s 0 -e 99"), (IShellOutputReceiver) in testRun() 101 mMockDevice.executeShellCommand(EasyMock.contains("-s 0 -e 99"), (IShellOutputReceiver) in testRun_twoRuns() 104 mMockDevice.executeShellCommand(EasyMock.contains("-s 100 -e 199"), (IShellOutputReceiver) in testRun_twoRuns() 118 mMockDevice.executeShellCommand(EasyMock.contains("-s 0 -e 99"), (IShellOutputReceiver) in testRun_deviceNotAvailable()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/targetprep/ |
D | DeviceSetupFuncTest.java | 68 getDevice().executeShellCommand("setprop ro.audio.silent 0"); in testSetup() 70 assertTrue(getDevice().executeShellCommand("getprop ro.audio.silent").contains("1")); in testSetup() 71 assertTrue(getDevice().executeShellCommand("getprop ro.monkey").contains("1")); in testSetup() 72 assertTrue(getDevice().executeShellCommand("getprop ro.test_harness").contains("1")); in testSetup() 74 assertTrue(getDevice().executeShellCommand("id").contains("root")); in testSetup()
|
D | DefaultTestsZipInstallerTest.java | 106 EasyMock.expect(mMockDevice.executeShellCommand("stop")).andReturn(""); in testCantTouchFilesystem() 107 EasyMock.expect(mMockDevice.executeShellCommand("stop installd")).andReturn(""); in testCantTouchFilesystem() 138 EasyMock.expect(mMockDevice.executeShellCommand("stop")).andReturn(""); in testPushTestsZipOntoData() 139 EasyMock.expect(mMockDevice.executeShellCommand("stop installd")).andReturn(""); in testPushTestsZipOntoData() 147 EasyMock.expect(mMockDevice.executeShellCommand(EasyMock.contains("rm -r data/app"))) in testPushTestsZipOntoData() 157 mMockDevice.executeShellCommand(EasyMock.startsWith("chown system.system " in testPushTestsZipOntoData() 160 mMockDevice.executeShellCommand(EasyMock.startsWith("chown system.system " in testPushTestsZipOntoData() 182 EasyMock.expect(mMockDevice.executeShellCommand("stop")).andReturn(""); in testPushTestsZipOntoData_retry() 183 EasyMock.expect(mMockDevice.executeShellCommand("stop installd")).andReturn(""); in testPushTestsZipOntoData_retry() 191 EasyMock.expect(mMockDevice.executeShellCommand(EasyMock.contains("rm -r data/app"))) in testPushTestsZipOntoData_retry()
|
D | StopServicesSetupTest.java | 48 EasyMock.expect(mMockDevice.executeShellCommand("stop")).andReturn(null); in testNoop() 73 EasyMock.expect(mMockDevice.executeShellCommand("stop")).andReturn(null); in testStopServices() 74 EasyMock.expect(mMockDevice.executeShellCommand("stop service1")).andReturn(null); in testStopServices() 75 EasyMock.expect(mMockDevice.executeShellCommand("stop service2")).andReturn(null); in testStopServices()
|
D | RestartSystemServerTargetPreparerTest.java | 47 EasyMock.expect(mMockDevice.executeShellCommand("setprop dev.bootcomplete 0")) in testSetUp_bootComplete() 50 mMockDevice.executeShellCommand( in testSetUp_bootComplete() 65 EasyMock.expect(mMockDevice.executeShellCommand("setprop dev.bootcomplete 0")) in testSetUp_bootNotComplete() 68 mMockDevice.executeShellCommand( in testSetUp_bootNotComplete() 86 EasyMock.expect(mMockDevice.executeShellCommand("setprop dev.bootcomplete 0")) in testTearDown_restart() 89 mMockDevice.executeShellCommand( in testTearDown_restart()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/util/ |
D | AppVersionFetcherTest.java | 47 EasyMock.expect(mMockDevice.executeShellCommand(VERSION_CODE_CMD)) in testFetchVersionCode_valid() 58 EasyMock.expect(mMockDevice.executeShellCommand(VERSION_NAME_CMD)) in testFetchVersionName_valid() 69 EasyMock.expect(mMockDevice.executeShellCommand(VERSION_CODE_CMD)) in testFetchVersionCode_validMultipleLines() 82 EasyMock.expect(mMockDevice.executeShellCommand(VERSION_NAME_CMD)) in testFetchVersionName_validMultipleLines() 93 EasyMock.expect(mMockDevice.executeShellCommand(VERSION_CODE_CMD)) in testFetchVersionCode_invalidResponse() 108 EasyMock.expect(mMockDevice.executeShellCommand(VERSION_NAME_CMD)) in testFetchVersionName_invalidResponse()
|
D | BluetoothUtilsTest.java | 84 when(mMockDevice.executeShellCommand(Mockito.anyString())).thenReturn(""); in testEnableBtsnoopLogging() 93 when(mMockDevice.executeShellCommand(Mockito.anyString())).thenReturn(""); in testEnableBtsnoopLoggingFailed() 104 when(mMockDevice.executeShellCommand(Mockito.anyString())).thenReturn(""); in testDisableBtsnoopLogging() 113 when(mMockDevice.executeShellCommand(Mockito.anyString())).thenReturn(""); in testDisableBtsnoopLoggingFailed() 122 when(mMockDevice.executeShellCommand(Mockito.anyString())) in testGetBtSnoopLogFilePath() 131 when(mMockDevice.executeShellCommand(Mockito.anyString())) in testGetBtSnoopLogFilePathFailed()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/suite/checker/ |
D | SystemServerStatusCheckerTest.java | 45 EasyMock.expect(mMockDevice.executeShellCommand(EasyMock.eq("pidof system_server"))) in testPidRemainUnchanged() 57 EasyMock.expect(mMockDevice.executeShellCommand(EasyMock.eq("pidof system_server"))) in testPidChanged() 59 EasyMock.expect(mMockDevice.executeShellCommand(EasyMock.eq("pidof system_server"))) in testPidChanged() 70 EasyMock.expect(mMockDevice.executeShellCommand(EasyMock.eq("pidof system_server"))) in testFailToGetPid() 84 EasyMock.expect(mMockDevice.executeShellCommand(EasyMock.eq("pidof system_server"))) in testPid_null()
|
/tools/tradefederation/core/prod-tests/src/com/android/performance/tests/ |
D | HermeticMemoryTest.java | 96 String preMemInfo = mTestDevice.executeShellCommand(PROC_MEMINFO); in run() 109 mTestDevice.executeShellCommand(DROP_CACHE); in run() 113 mTestDevice.executeShellCommand(String.format(AM_START, mComponentName)); in run() 116 String postMemInfo = mTestDevice.executeShellCommand(PROC_MEMINFO); in run() 118 String dumpsysMemInfo = mTestDevice.executeShellCommand( in run() 120 String mapsInfo = mTestDevice.executeShellCommand( in run() 122 String sMapsInfo = mTestDevice.executeShellCommand( in run() 124 String statusInfo = mTestDevice.executeShellCommand( in run() 260 String memAvailable[] = mTestDevice.executeShellCommand(MEM_AVAILABLE).split(SEPARATOR); in calculateFreeMem() 263 String cachedProcesses = mTestDevice.executeShellCommand(CACHED_PROCESSES); in calculateFreeMem() [all …]
|
D | EmmcPerformanceTest.java | 257 output = mTestDevice.executeShellCommand(command).split("\n"); in runDdIteration() 288 output = mTestDevice.executeShellCommand(command); in runRandomIteration() 330 mTestDevice.executeShellCommand("echo 3 > /proc/sys/vm/drop_caches"); in dropCache() 357 mTestDevice.executeShellCommand("umount /sdcard"); in setUp() 358 mTestDevice.executeShellCommand("umount /data"); in setUp() 359 mTestDevice.executeShellCommand("umount /cache"); in setUp() 361 mTestDevice.executeShellCommand( in setUp() 363 mTestDevice.executeShellCommand( in setUp() 385 String output = mTestDevice.executeShellCommand("vdc dump | grep cache"); in discoverCacheInfo() 403 String output = mTestDevice.executeShellCommand("df cache"); in discoverCacheInfo() [all …]
|
/tools/tradefederation/core/tests/src/com/android/tradefed/device/ |
D | TestDeviceFuncTest.java | 143 final String output = mTestDevice.executeShellCommand("ls"); in assertSimpleShellCommand() 211 mTestDevice.executeShellCommand(String.format("rm %s", deviceFilePath)); in testPushPull_normal() 226 mTestDevice.executeShellCommand(String.format("rm %s", deviceFilePath)); in testPushPull_normal() 251 mTestDevice.executeShellCommand(String.format("rm %s", deviceFilePath)); in testPushPull_extStorageVariable() 269 mTestDevice.executeShellCommand(String.format("rm %s", deviceFilePath)); in testPushPull_extStorageVariable() 388 mTestDevice.executeShellCommand(String.format("rm %s/testdir", extStore)); in testListSymlinkDir() 389 mTestDevice.executeShellCommand(String.format("rm %s/testdir2/foo.txt", extStore)); in testListSymlinkDir() 390 mTestDevice.executeShellCommand(String.format("rmdir %s/testdir2", extStore)); in testListSymlinkDir() 394 mTestDevice.executeShellCommand(String.format("mkdir %s/testdir2", in testListSymlinkDir() 396 assertEquals("", mTestDevice.executeShellCommand( in testListSymlinkDir() [all …]
|
D | MockTestDeviceHelper.java | 53 mockDevice.executeShellCommand(EasyMock.eq(expectedCommand), in injectShellResponse() 56 mockDevice.executeShellCommand(EasyMock.<String>anyObject(), in injectShellResponse() 98 mockDevice.executeShellCommand(EasyMock.eq(expectedCommand), in injectShellResponse() 102 mockDevice.executeShellCommand(EasyMock.<String> anyObject(), in injectShellResponse()
|
D | TestDeviceTest.java | 410 mMockIDevice.executeShellCommand((String)EasyMock.anyObject(), in testClearErrorDialogs() 453 mMockIDevice.executeShellCommand((String) EasyMock.anyObject(), in testRecoverDevice_ThrowException() 477 mMockIDevice.executeShellCommand(EasyMock.eq(testCommand), EasyMock.eq(mMockReceiver), in testExecuteShellCommand_receiver() 480 mTestDevice.executeShellCommand(testCommand, mMockReceiver); in testExecuteShellCommand_receiver() 494 assertEquals(expectedOutput, mTestDevice.executeShellCommand(testCommand)); in testExecuteShellCommand() 506 mMockIDevice.executeShellCommand(EasyMock.eq(testCommand), EasyMock.eq(mMockReceiver), in testExecuteShellCommand_recoveryFail() 514 mRecoveryTestDevice.executeShellCommand(testCommand, mMockReceiver); in testExecuteShellCommand_recoveryFail() 531 mMockIDevice.executeShellCommand(EasyMock.eq(testCommand), EasyMock.eq(mMockReceiver), in testExecuteShellCommand_recoveryUntilOnline() 536 mMockIDevice.executeShellCommand(EasyMock.eq(testCommand), EasyMock.eq(mMockReceiver), in testExecuteShellCommand_recoveryUntilOnline() 539 mRecoveryTestDevice.executeShellCommand(testCommand, mMockReceiver); in testExecuteShellCommand_recoveryUntilOnline() [all …]
|
/tools/tradefederation/core/src/com/android/tradefed/targetprep/ |
D | DeviceCleaner.java | 85 device.executeShellCommand("stop"); in tearDown() 126 device.executeShellCommand("stop"); in clean() 133 String output = device.executeShellCommand("dumpsys power"); in turnScreenOff() 139 device.executeShellCommand("input keyevent 26"); in turnScreenOff() 143 output = device.executeShellCommand("dumpsys power"); in turnScreenOff()
|
D | CpuThrottlingWaiter.java | 77 String freq = device.executeShellCommand( in setUp() 91 String result = device.executeShellCommand( in setUp() 119 String result = device.executeShellCommand("ls -1 -d /sys/devices/system/cpu/cpu*/cpufreq"); in getCpuMaxFreqs() 126 result = device.executeShellCommand( in getCpuMaxFreqs()
|
/tools/tradefederation/core/src/com/android/tradefed/device/ |
D | TestDevice.java | 508 String systemStatusOutput = executeShellCommand("dumpsys activity processes"); in getErrorDialogCount() 525 executeShellCommand(DISMISS_DIALOG_CMD); in doClearDialogs() 558 String output = executeShellCommand(DISMISS_KEYGUARD_WM_CMD); in disableKeyguard() 563 executeShellCommand(DISMISS_KEYGUARD_CMD); in disableKeyguard() 572 executeShellCommand("dumpsys activity activities | grep -A3 KeyguardController:"); in getKeyguardState() 587 executeShellCommand(TEST_INPUT_CMD, receiver); in isDeviceInputReady() 631 String output = executeShellCommand("pm path android"); in doAdbFrameworkReboot() 640 executeShellCommand(command); in doAdbFrameworkReboot() 703 getIDevice().executeShellCommand("dumpsys package p", receiver); 751 String output = executeShellCommand(LIST_PACKAGES_CMD); [all …]
|
/tools/tradefederation/contrib/src/com/android/tradefed/targetprep/ |
D | AddWhitelistPackage.java | 43 device.executeShellCommand( in setUp() 47 CLog.d(device.executeShellCommand("dumpsys deviceidle whitelist")); in setUp() 54 device.executeShellCommand( in tearDown()
|
/tools/tradefederation/core/prod-tests/src/com/android/framework/tests/ |
D | PackageManagerOTATestUtils.java | 70 mDevice.executeShellCommand("chmod 644 /data/local.prop"); in wipeDevice() 86 mDevice.executeShellCommand(cmd); in removeSystemApp() 191 String res = mDevice.executeShellCommand(cmd); in packageHasPermission() 218 String res = mDevice.executeShellCommand(cmd); in packageHasFlag() 255 mDevice.executeShellCommand("stop"); in stopSystem() 265 mDevice.executeShellCommand("setprop dev.bootcomplete 0"); in startSystem() 266 mDevice.executeShellCommand("start"); in startSystem()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/result/ |
D | DeviceFileReporterTest.java | 82 EasyMock.expect(mDevice.executeShellCommand(EasyMock.eq("ls /data/tombstones/*"))) in testSimple() 107 EasyMock.expect(mDevice.executeShellCommand(EasyMock.eq("ls /data/tombstones/*"))) in testTrim() 133 EasyMock.expect(mDevice.executeShellCommand((String)EasyMock.anyObject())) in testLineEnding_LF() 160 EasyMock.expect(mDevice.executeShellCommand((String)EasyMock.anyObject())) in testLineEnding_CRLF() 212 EasyMock.expect(mDevice.executeShellCommand((String)EasyMock.anyObject())) in testRepeat_skip() 219 EasyMock.expect(mDevice.executeShellCommand((String)EasyMock.anyObject())) in testRepeat_skip() 269 EasyMock.expect(mDevice.executeShellCommand((String)EasyMock.anyObject())) in testRepeat_noSkip() 277 EasyMock.expect(mDevice.executeShellCommand((String)EasyMock.anyObject())) in testRepeat_noSkip() 307 EasyMock.expect(mDevice.executeShellCommand((String)EasyMock.anyObject())) in testNoExist() 324 EasyMock.expect(mDevice.executeShellCommand((String)EasyMock.anyObject())) in testTwoFiles() [all …]
|
/tools/tradefederation/core/tests/src/com/android/tradefed/device/metric/ |
D | ProcessMaxMemoryCollectorTest.java | 76 when(mDevice.executeShellCommand(Mockito.eq("dumpsys meminfo --checkin system_server"))) in testCollector() 84 verify(mDevice).executeShellCommand(Mockito.eq("dumpsys meminfo --checkin system_server")); in testCollector() 94 when(mDevice.executeShellCommand(Mockito.eq("dumpsys meminfo --checkin system_server"))) in testCollectorNoProcess() 102 verify(mDevice).executeShellCommand(Mockito.eq("dumpsys meminfo --checkin system_server")); in testCollectorNoProcess()
|
D | TraceCmdCollectorTest.java | 85 mMockDevice.executeShellCommand( in testStartsAtraceAndTraceCmdOptions() 93 mMockDevice.executeShellCommand( in testStartsAtraceAndTraceCmdOptions() 117 mMockDevice.executeShellCommand( in testStartsAtraceAndTraceCmdFails() 124 mMockDevice.executeShellCommand( in testStartsAtraceAndTraceCmdFails() 150 mMockDevice.executeShellCommand( in testStopsTraceCmdDuringTearDown()
|
/tools/tradefederation/core/prod-tests/tests/src/com/android/monkey/ |
D | MonkeyBaseTest.java | 68 EasyMock.expect(mockDevice.executeShellCommand("cat /proc/uptime")).andReturn( in testUptime() 82 EasyMock.expect(mockDevice.executeShellCommand("cat /proc/uptime")).andReturn( in testUptime_fail() 84 EasyMock.expect(mockDevice.executeShellCommand("cat /proc/uptime")).andReturn( in testUptime_fail()
|