/tools/tradefederation/core/javatests/com/android/tradefed/result/ |
D | DeviceFileReporterTest.java | 95 when(mDevice.pullFile(Mockito.eq(filename))) in testSimple() 119 when(mDevice.pullFile(Mockito.eq(filename))) in testTrim() 144 when(mDevice.pullFile(Mockito.eq(filename))) in testLine_containingSpace() 146 when(mDevice.pullFile(Mockito.eq(filename1))) in testLine_containingSpace() 148 when(mDevice.pullFile(Mockito.eq(filename2))) in testLine_containingSpace() 190 when(mDevice.pullFile(Mockito.eq(filename))) in testLineEnding_LF() 222 when(mDevice.pullFile(Mockito.eq(filename))) in testLineEnding_CRLF() 274 when(mDevice.pullFile(Mockito.eq(pngFilename))) in testRepeat_skip() 276 when(mDevice.pullFile(Mockito.eq(xmlFilename))) in testRepeat_skip() 329 when(mDevice.pullFile(Mockito.eq(pngFilename))) in testRepeat_noSkip() [all …]
|
/tools/tradefederation/core/javatests/com/android/tradefed/device/metric/ |
D | ShowmapPullerMetricCollectorTest.java | 109 mMockDevice.pullFile( in test16ColumnHeaders() 160 mMockDevice.pullFile( in test17ColumnHeaders() 206 mMockDevice.pullFile( in testOneObjectTwiceFlow() 252 mMockDevice.pullFile( in testTwoObjectOnceFlow() 299 mMockDevice.pullFile( in testThreeObjectOnceFlow() 356 mMockDevice.pullFile( in testTwoProcessesFlow() 417 Mockito.when(mMockDevice.pullFile(Mockito.eq("/sdcard/test_results/showmap.txt"))) in testNoProcessMatchFlow() 467 Mockito.when(mMockDevice.pullFile(Mockito.eq("/sdcard/test_results/showmap.txt"))) in testNoProcessFlow() 519 Mockito.when(mMockDevice.pullFile(Mockito.eq("/sdcard/test_results/showmap.txt"))) in testErrorFlow() 540 Mockito.when(mMockDevice.pullFile(Mockito.eq("/sdcard/test_results/showmap.txt"))) in testEmptyFileFlow() [all …]
|
D | FilePullerDeviceMetricCollectorTest.java | 95 Mockito.when(mMockDevice.pullFile(Mockito.eq("/data/coverage"), Mockito.eq(0))) in testPullMatchingKey() 119 Mockito.when(mMockDevice.pullFile(Mockito.eq("/data/coverage1"), Mockito.eq(0))) in testPullMultipleMatchingKeyInMetrics() 121 Mockito.when(mMockDevice.pullFile(Mockito.eq("/data/coverage2"), Mockito.eq(0))) in testPullMultipleMatchingKeyInMetrics() 146 Mockito.when(mMockDevice.pullFile(Mockito.eq("/data/coverage"), Mockito.eq(0))) in testPullMatchingKeyPattern() 168 Mockito.when(mMockDevice.pullFile(Mockito.eq("/data/coverage"), Mockito.eq(0))) in testMetricFileProcessingFlow() 198 Mockito.verify(mMockDevice, Mockito.times(0)).pullFile(Mockito.eq("/data/coverage")); in testPatternNotMatching()
|
D | PerfettoPullerMetricCollectorTest.java | 83 Mockito.when(mMockDevice.pullFile(Mockito.eq("/data/trace.pb"), Mockito.eq(0))) in testNoProcessingFlow() 102 Mockito.when(mMockDevice.pullFile(Mockito.eq("/data/trace.pb"), Mockito.eq(0))) in testProcessingFlow() 142 Mockito.when(mMockDevice.pullFile(Mockito.eq("/data/trace.pb"), Mockito.eq(0))) in testProcessingFlowWithFileSizeMetric() 182 Mockito.when(mMockDevice.pullFile(Mockito.eq("/data/trace.pb"), Mockito.eq(0))) in testCompressedProcessingFlow() 198 Mockito.verify(mMockDevice, times(0)).pullFile(Mockito.eq("/data/trace.pb")); in testCompressedProcessingFlow() 220 Mockito.when(mMockDevice.pullFile(Mockito.eq("/data/trace.pb"), Mockito.eq(0))) in testScriptFailureStatus() 259 Mockito.when(mMockDevice.pullFile(Mockito.eq("/data/trace.pb"), Mockito.eq(0))) in testBinaryArgs() 295 Mockito.when(mMockDevice.pullFile(Mockito.eq("/data/trace.pb"), Mockito.eq(0))) in testTraceProcessorArgsDefaults() 347 Mockito.when(mMockDevice.pullFile(Mockito.eq("/data/trace.pb"), Mockito.eq(0))) in testTraceProcessorAdditionalArgs() 384 Mockito.when(mMockDevice.pullFile(Mockito.eq("/data/trace.pb"), Mockito.eq(0))) in testTraceProcessorRunTimeAndStatus_success() [all …]
|
D | AtraceCollectorTest.java | 78 when(mMockDevice.pullFile((String) Mockito.any())).thenReturn(new File(M_TRACE_PATH_NAME)); in setUp() 212 when(mMockDevice.pullFile(Mockito.eq(M_DEFAULT_LOG_PATH))) in testStopsAtraceDuringTearDown() 224 verify(mMockDevice, times(1)).pullFile(Mockito.eq(M_DEFAULT_LOG_PATH)); in testStopsAtraceDuringTearDown() 238 when(mMockDevice.pullFile(Mockito.eq(M_DEFAULT_LOG_PATH))) in testPreserveFileOnDeviceOption() 251 verify(mMockDevice, times(1)).pullFile(Mockito.eq(M_DEFAULT_LOG_PATH)); in testPreserveFileOnDeviceOption() 263 when(mMockDevice.pullFile((String) Mockito.any())).thenReturn(null); in testLogPullFail() 267 verify(mMockDevice, times(1)).pullFile((String) Mockito.any()); in testLogPullFail() 279 when(mMockDevice.pullFile((String) Mockito.any())).thenReturn(new File("/tmp/potato")); in testUploadsLogWithCompression() 301 when(mMockDevice.pullFile((String) Mockito.any())).thenReturn(new File("/tmp/potato")); in testUploadsLogWithoutCompression() 328 when(device.pullFile((String) Mockito.any())).thenReturn(new File("/tmp/potato")); in testMultipleDeviceBehavior() [all …]
|
D | TraceCmdCollectorTest.java | 141 when(mMockDevice.pullFile(Mockito.eq(mDefaultLogPath))).thenReturn(new File("/tmp/potato")); in testStopsTraceCmdDuringTearDown() 155 verify(mMockDevice, times(1)).pullFile(Mockito.eq(mDefaultLogPath)); in testStopsTraceCmdDuringTearDown() 167 when(mMockDevice.pullFile((String) Mockito.any())).thenReturn(new File("/tmp/potato")); in testUploadslogWithRawKernelBuffer()
|
D | GcovCodeCoverageCollectorTest.java | 137 doReturn(tar).when(mMockDevice).pullFile(anyString()); in test_logsCoverageZip() 169 doReturn(createTar(ImmutableMap.of())).when(mMockDevice).pullFile(anyString()); in testNoCoverageFiles_logsEmptyZip() 196 doReturn(createTar(ImmutableMap.of())).when(mMockDevice).pullFile(anyString()); in testCoverageFlushAllProcesses_flushAllCommandCalled() 217 doReturn(createTar(ImmutableMap.of())).when(mMockDevice).pullFile(anyString()); in testCoverageFlushSpecificProcesses_flushCommandCalled() 271 doReturn(tar).when(mMockDevice).pullFile(anyString()); in testNoCollectOnTestEnd_noCoverageMeasurements()
|
D | BluetoothHciSnoopLogCollectorTest.java | 122 when(mMockDevice.pullFile(Mockito.eq(pullPatternPath), Mockito.eq(0))) in testPullFileAndLog() 139 verify(mMockDevice).pullFile(Mockito.eq(pullPatternPath), Mockito.anyInt()); in testPullFileAndLog()
|
D | JavaCodeCoverageCollectorTest.java | 228 doReturn(null).when(mMockDevice).pullFile(DEVICE_PATH); in testFailure_unableToPullFile() 256 inOrder.verify(mMockDevice).pullFile(anyString()); in testRunEnded_rootDisabled_enablesRootBeforePullingFiles() 294 inOrder.verify(mMockDevice).pullFile(anyString()); in testRunEnded_rootDisabled_disablesRootAfterPullingFiles() 518 doReturn(coverageFile).when(mMockDevice).pullFile(devicePath); in mockCoverageFileOnDevice()
|
D | FilePullerLogCollectorTest.java | 120 when(mMockDevice.pullFile(Mockito.eq("/data/local/tmp/log1.txt"), Mockito.eq(0))) in testPullAndLog() 190 when(mMockDevice.pullFile(Mockito.eq("/data/local/tmp/log1.txt"), Mockito.eq(0))) in testPostProcessFiles()
|
/tools/tradefederation/core/javatests/com/android/tradefed/testtype/ |
D | ArtRunTestTest.java | 222 when(mMockITestDevice.pullFile(remoteStdoutFilePath, localStdoutFile)).thenReturn(true); in doTestRunSingleTest() 240 when(mMockITestDevice.pullFile(remoteStderrFilePath, localStderrFile)).thenReturn(true); in doTestRunSingleTest() 345 when(mMockITestDevice.pullFile(remoteStdoutFilePath, localStdoutFile)).thenReturn(true); in testRunSingleTest_nonZeroExitCode() 363 when(mMockITestDevice.pullFile(remoteStderrFilePath, localStderrFile)).thenReturn(true); in testRunSingleTest_nonZeroExitCode() 445 when(mMockITestDevice.pullFile(remoteStdoutFilePath, localStdoutFile)).thenReturn(true); in testRunSingleTest_unexpectedStandardOutput() 463 when(mMockITestDevice.pullFile(remoteStderrFilePath, localStderrFile)).thenReturn(true); in testRunSingleTest_unexpectedStandardOutput() 554 when(mMockITestDevice.pullFile(remoteStdoutFilePath, localStdoutFile)).thenReturn(true); in testRunSingleTest_unexpectedStandardError() 572 when(mMockITestDevice.pullFile(remoteStderrFilePath, localStderrFile)).thenReturn(true); in testRunSingleTest_unexpectedStandardError() 663 when(mMockITestDevice.pullFile(remoteStdoutFilePath, localStdoutFile)).thenReturn(true); in testRunSingleTest_multipleErrors() 681 when(mMockITestDevice.pullFile(remoteStderrFilePath, localStderrFile)).thenReturn(true); in testRunSingleTest_multipleErrors()
|
/tools/tradefederation/core/javatests/com/android/tradefed/device/ |
D | TestDeviceFileFuncTest.java | 73 returnedFile = mTestDevice.pullFile(deviceFilePath); in testPushPull_Basic() 97 returnedFile = mTestDevice.pullFile(deviceFilePath); in testPushPull_ExtStorage() 121 returnedFile = mTestDevice.pullFile(deviceFilePath); in testPushPull_FromString() 163 assertNull(mTestDevice.pullFile(deviceFilePath)); in testPull_NoExist() 173 assertNull(mTestDevice.pullFile(deviceFilePath)); in testPull_NoExistExtStorage() 181 File returned = mTestDevice.pullFile(filePath); in testPull_NoPermissions()
|
D | NativeDeviceTest.java | 2052 boolean res = mTestDevice.pullFile(fakeRemotePath, tmpFile); in testPullFile() 2055 .pullFile( in testPullFile() 2079 .pullFile( in testPullFile_fails() 2084 boolean res = mTestDevice.pullFile(fakeRemotePath, tmpFile); in testPullFile_fails() 2087 .pullFile( in testPullFile_fails() 2107 public boolean pullFile(String remoteFilePath, File localFile, int userId) in testPullFile_returnFileSuccess() 2112 File res = mTestDevice.pullFile(fakeRemotePath); in testPullFile_returnFileSuccess() 2129 public boolean pullFile(String remoteFilePath, File localFile, int userId) in testPullFile_returnNull() 2134 File res = mTestDevice.pullFile(fakeRemotePath); in testPullFile_returnNull() 2152 public boolean pullFile(String remoteFilePath, File localFile, int userId) in testPullFileContents_returnFileSuccess() [all …]
|
D | TestDeviceFuncTest.java | 237 assertTrue(mTestDevice.pullFile(deviceFilePath, tmpDestFile)); in testPushPull_normal() 278 assertTrue(mTestDevice.pullFile(deviceFilePath, tmpDestFile)); in testPushPull_extStorageVariable() 310 assertNull(mTestDevice.pullFile(deviceFilePath)); in testPull_noexist() 336 assertFalse(mTestDevice.pullFile(deviceFilePath, tmpFile)); in testPull_nopermissions()
|
/tools/tradefederation/core/javatests/com/android/tradefed/targetprep/ |
D | DeviceStringPusherTest.java | 98 when(mMockDevice.pullFile("file")).thenReturn(file); in testAlreadyExists() 106 verify(mMockDevice, times(1)).pullFile("file"); in testAlreadyExists()
|
/tools/tradefederation/core/device_build_interfaces/com/android/tradefed/device/ |
D | INativeDevice.java | 671 public boolean pullFile(String remoteFilePath, File localFile) in pullFile() method 685 public boolean pullFile(String remoteFilePath, File localFile, int userId) in pullFile() method 698 public File pullFile(String remoteFilePath) throws DeviceNotAvailableException; in pullFile() method 711 public File pullFile(String remoteFilePath, int userId) throws DeviceNotAvailableException; in pullFile() method
|
/tools/tradefederation/contrib/src/com/android/media/tests/ |
D | Camera2StressTest.java | 126 if (!getDevice().pullFile(remoteFile.getFullPath(), screenshot)) { in postScreenshotOnFailure() 149 getDevice().pullFile(RESULT_FILE, outputFile); in parseLog()
|
/tools/tradefederation/core/test_framework/com/android/tradefed/targetprep/ |
D | DeviceStringPusher.java | 46 mOldContents = device.pullFile(mFileName); in setUp()
|
/tools/tradefederation/core/src/com/android/tradefed/targetprep/ |
D | RecoveryLogPreparer.java | 59 File recoveryLog = device.pullFile(RECOVERY_LOG); in setUp()
|
/tools/tradefederation/core/src/com/android/tradefed/util/ |
D | CircularAtraceUtil.java | 95 File temp = device.pullFile(DEVICE_FILE); in endTrace()
|
/tools/tradefederation/core/test_framework/com/android/tradefed/testtype/ |
D | CodeCoverageTest.java | 79 coverageFile = getDevice().pullFile(mCoverageFile); in run()
|
/tools/tradefederation/core/javatests/com/android/tradefed/device/contentprovider/ |
D | ContentProviderHandlerTest.java | 235 mProvider.pullFile(devicePath, pullTo); in testPullFile_verifyShellCommand() 265 assertTrue(mProvider.pullFile(devicePath, pullTo)); in testPullFile_createLocalFileIfNotExist()
|
/tools/tradefederation/core/src/com/android/tradefed/result/ |
D | DeviceFileReporter.java | 182 file = mDevice.pullFile(filename); in run()
|
/tools/tradefederation/core/util_apps/ContentProvider/hostsidetests/src/com/android/tradefed/contentprovider/ |
D | ContentProviderTest.java | 143 boolean res = mHandler.pullFile("/sdcard/" + tmpFile.getName(), tmpPullFile); in testPullFile()
|
/tools/tradefederation/core/src/com/android/tradefed/device/metric/ |
D | GcovCodeCoverageCollector.java | 155 coverageTar = device.pullFile(COVERAGE_TAR_PATH); in logCoverageMeasurements()
|