/tools/tradefederation/core/tests/src/com/android/tradefed/result/ |
D | DeviceFileReporterTest.java | 89 EasyMock.expect(mDevice.pullFile(EasyMock.eq(filename))) in testSimple() 115 EasyMock.expect(mDevice.pullFile(EasyMock.eq(filename))) in testTrim() 141 EasyMock.expect(mDevice.pullFile(EasyMock.eq(filename))) in testLine_containingSpace() 143 EasyMock.expect(mDevice.pullFile(EasyMock.eq(filename1))) in testLine_containingSpace() 145 EasyMock.expect(mDevice.pullFile(EasyMock.eq(filename2))) in testLine_containingSpace() 180 EasyMock.expect(mDevice.pullFile(EasyMock.eq(filename))).andReturn( in testLineEnding_LF() 208 EasyMock.expect(mDevice.pullFile(EasyMock.eq(filename))).andReturn( in testLineEnding_CRLF() 258 EasyMock.expect(mDevice.pullFile(EasyMock.eq(pngFilename))) in testRepeat_skip() 265 EasyMock.expect(mDevice.pullFile(EasyMock.eq(xmlFilename))) in testRepeat_skip() 316 EasyMock.expect(mDevice.pullFile(EasyMock.eq(pngFilename))) in testRepeat_noSkip() [all …]
|
/tools/tradefederation/core/tests/src/com/android/tradefed/device/ |
D | NativeDeviceTest.java | 402 public boolean pullFile(String remoteFilePath, File localFile) in testPullDir() 471 public boolean pullFile(String remoteFilePath, File localFile) in testPullDir_pullFail() 1203 public File pullFile(String remoteFilePath) throws DeviceNotAvailableException { in testGetBugreport_deviceUnavail_fallback() 1251 public boolean pullFile(String remoteFilePath, File localFile) in testGetBugreportz() 1333 public File pullFile(String remoteFilePath) throws DeviceNotAvailableException { in testGetBugreportz_fallBack_validation() 2101 boolean res = mTestDevice.pullFile(fakeRemotePath, tmpFile); in testPullFile() 2104 .pullFile( in testPullFile() 2128 .pullFile( in testPullFile_fails() 2133 boolean res = mTestDevice.pullFile(fakeRemotePath, tmpFile); in testPullFile_fails() 2136 .pullFile( in testPullFile_fails() [all …]
|
D | TestDeviceFuncTest.java | 224 assertTrue(mTestDevice.pullFile(deviceFilePath, tmpDestFile)); in testPushPull_normal() 264 assertTrue(mTestDevice.pullFile(deviceFilePath, tmpDestFile)); in testPushPull_extStorageVariable() 295 assertNull(mTestDevice.pullFile(deviceFilePath)); in testPull_noexist() 320 assertFalse(mTestDevice.pullFile(deviceFilePath, tmpFile)); in testPull_nopermissions()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/device/metric/ |
D | PerfettoPullerMetricCollectorTest.java | 79 Mockito.when(mMockDevice.pullFile(Mockito.eq("/data/trace.pb"))) in testNoProcessingFlow() 99 Mockito.when(mMockDevice.pullFile(Mockito.eq("/data/trace.pb"))) in testProcessingFlow() 134 Mockito.when(mMockDevice.pullFile(Mockito.eq("/data/trace.pb"))) in testCompressedProcessingFlow() 148 Mockito.verify(mMockDevice, times(0)).pullFile(Mockito.eq("/data/trace.pb")); in testCompressedProcessingFlow() 170 Mockito.when(mMockDevice.pullFile(Mockito.eq("/data/trace.pb"))) in testScriptFailureStatus() 207 Mockito.when(mMockDevice.pullFile(Mockito.eq("/data/trace.pb"))) in testBinaryArgs() 241 Mockito.when(mMockDevice.pullFile(Mockito.eq("/data/trace.pb"))) in testTraceProcessorArgsDefaults() 291 Mockito.when(mMockDevice.pullFile(Mockito.eq("/data/trace.pb"))) in testTraceProcessorAdditionalArgs()
|
D | FilePullerDeviceMetricCollectorTest.java | 87 Mockito.when(mMockDevice.pullFile(Mockito.eq("/data/coverage"))) in testPullMatchingKey() 111 Mockito.when(mMockDevice.pullFile(Mockito.eq("/data/coverage1"))) in testPullMultipleMatchingKeyInMetrics() 113 Mockito.when(mMockDevice.pullFile(Mockito.eq("/data/coverage2"))) in testPullMultipleMatchingKeyInMetrics() 138 Mockito.when(mMockDevice.pullFile(Mockito.eq("/data/coverage"))) in testPullMatchingKeyPattern() 159 Mockito.when(mMockDevice.pullFile(Mockito.eq("/data/coverage"))) in testMetricFileProcessingFlow() 189 Mockito.verify(mMockDevice, Mockito.times(0)).pullFile(Mockito.eq("/data/coverage")); in testPatternNotMatching()
|
D | AtraceCollectorTest.java | 75 EasyMock.expect(mMockDevice.pullFile((String) EasyMock.anyObject())) in setUp() 236 EasyMock.expect(mMockDevice.pullFile(EasyMock.eq(M_DEFAULT_LOG_PATH))) in testStopsAtraceDuringTearDown() 263 EasyMock.expect(mMockDevice.pullFile(EasyMock.eq(M_DEFAULT_LOG_PATH))) in testPreserveFileOnDeviceOption() 282 EasyMock.expect(mMockDevice.pullFile((String) EasyMock.anyObject())) in testLogPullFail() 298 EasyMock.expect(mMockDevice.pullFile((String) EasyMock.anyObject())) in testUploadsLogWithCompression() 322 EasyMock.expect(mMockDevice.pullFile((String) EasyMock.anyObject())) in testUploadsLogWithoutCompression() 352 EasyMock.expect(device.pullFile((String) EasyMock.anyObject())) in testMultipleDeviceBehavior()
|
D | IncidentReportCollectorTest.java | 128 when(mMockTestDevice.pullFile(Mockito.eq(FAKE_REPORT_PATH.toString()))) in testPullWithIncidentPrefix() 158 verify(mMockTestDevice, never()).pullFile(any(String.class)); in testIgnoreOtherFilesProcessed() 168 when(mMockTestDevice.pullFile(Mockito.eq(FAKE_REPORT_PATH.toString()))) in testIgnoreAndLogFailures() 174 verify(mMockTestDevice).pullFile(FAKE_REPORT_PATH.toString()); in testIgnoreAndLogFailures()
|
D | TraceCmdCollectorTest.java | 159 EasyMock.expect(mMockDevice.pullFile(EasyMock.eq(mDefaultLogPath))) in testStopsTraceCmdDuringTearDown() 178 EasyMock.expect(mMockDevice.pullFile((String) EasyMock.anyObject())) in testUploadslogWithRawKernelBuffer()
|
D | FilePullerLogCollectorTest.java | 108 EasyMock.expect(mMockDevice.pullFile("/data/local/tmp/log1.txt")) in testPullAndLog() 172 EasyMock.expect(mMockDevice.pullFile("/data/local/tmp/log1.txt")) in testPostProcessFiles()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/ |
D | ClangCodeCoverageListenerTest.java | 152 doReturn(createTar(ImmutableMap.of())).when(mMockDevice).pullFile(anyString()); in coverageFlushEnabled_flushCalled() 177 doReturn(tarGz).when(mMockDevice).pullFile(anyString()); in testRun_logsCoverageFile() 214 doReturn(tarGz).when(mMockDevice).pullFile(anyString()); in testOtherFileTypes_ignored() 241 doReturn(createTar(ImmutableMap.of())).when(mMockDevice).pullFile(anyString()); in testNoClangMeasurements_noLogFile() 267 doReturn(tarGz).when(mMockDevice).pullFile(anyString()); in testProfileToolInConfiguration_notFromBuild() 293 doReturn(tarGz).when(mMockDevice).pullFile(anyString()); in testProfileToolNotFound_throwsException() 324 doReturn(tarGz).when(mMockDevice).pullFile(anyString()); in testProfileToolFailed_throwsException()
|
D | NativeCodeCoverageListenerTest.java | 110 doReturn(tar).when(mMockDevice).pullFile(anyString()); in test_logsCoverageZip() 142 doReturn(createTar(ImmutableMap.of())).when(mMockDevice).pullFile(anyString()); in testNoCoverageFiles_logsEmptyZip() 172 doReturn(createTar(ImmutableMap.of())).when(mMockDevice).pullFile(anyString()); in testCoverageFlushAllProcesses_flushAllCommandCalled() 197 doReturn(createTar(ImmutableMap.of())).when(mMockDevice).pullFile(anyString()); in testCoverageFlushSpecificProcesses_flushCommandCalled() 250 doReturn(tar).when(mMockDevice).pullFile(anyString()); in testNoCollectOnTestEnd_noCoverageMeasurements()
|
D | JavaCodeCoverageListenerTest.java | 158 doReturn(null).when(mMockDevice).pullFile(DEVICE_PATH); in testFailure_unableToPullFile() 185 inOrder.verify(mMockDevice).pullFile(anyString()); in testRunEnded_rootDisabled_enablesRootBeforePullingFiles() 215 inOrder.verify(mMockDevice).pullFile(anyString()); in testRunEnded_rootDisabled_disablesRootAfterPullingFiles() 262 doReturn(coverageFile1).doReturn(coverageFile2).when(mMockDevice).pullFile(DEVICE_PATH); in testMerge_producesSingleMeasurement() 332 doReturn(coverageFile).when(mMockDevice).pullFile(devicePath); in mockCoverageFileOnDevice()
|
/tools/tradefederation/core/src/com/android/tradefed/device/ |
D | NativeDevice.java | 1089 public boolean pullFile(final String remoteFilePath, final File localFile) in pullFile() method in NativeDevice 1095 return handler.pullFile(remoteFilePath, localFile); in pullFile() 1107 syncService.pullFile(interpolatePathVariables(remoteFilePath), in pullFile() 1130 public File pullFile(String remoteFilePath) throws DeviceNotAvailableException { in pullFile() method in NativeDevice 1135 if (pullFile(remoteFilePath, localFile)) { in pullFile() 1155 File temp = pullFile(remoteFilePath); in pullFileContents() 1177 return pullFile(fullPath); in pullFileFromExternal() 1659 if (!pullFile(fullPath, localFile)) { in pullDir() 2417 File pulledZip = pullFile(BUGREPORTZ_TMP_PATH + name); in bugreportzFallback() 2555 pullFile(remoteFilePath, zipFile); in getBugreportzInternal() [all …]
|
D | TestDevice.java | 658 File tmpScreenshot = pullFile(tmpDevicePath); in getScreenshot() 1875 File dumpFile = pullFile(devicePath); in dumpAndPullHeap()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/rust/ |
D | RustBinaryTestTest.java | 348 EasyMock.expect(mMockITestDevice.pullFile(coverageTarPath)).andReturn(tmpFile1); in testNativeCoverageAllProcesses() 350 EasyMock.expect(mMockITestDevice.pullFile(coverageTarPath)).andReturn(tmpFile2); in testNativeCoverageAllProcesses() 449 EasyMock.expect(mMockITestDevice.pullFile(coverageTarPath)).andReturn(tmpFile1); in testNativeCoverageSpecificProcesses() 451 EasyMock.expect(mMockITestDevice.pullFile(coverageTarPath)).andReturn(tmpFile2); in testNativeCoverageSpecificProcesses()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/device/contentprovider/ |
D | ContentProviderHandlerTest.java | 209 mProvider.pullFile(devicePath, pullTo); in testPullFile_verifyShellCommand() 235 mProvider.pullFile(devicePath, pullTo); in testPullFile_createLocalFileIfNotExist() 250 assertTrue(mProvider.pullFile(devicePath, pullTo)); in testPullFile_success()
|
/tools/tradefederation/contrib/src/com/android/media/tests/ |
D | Camera2StressTest.java | 124 if (!getDevice().pullFile(remoteFile.getFullPath(), screenshot)) { in postScreenshotOnFailure() 147 getDevice().pullFile(RESULT_FILE, outputFile); in parseLog()
|
/tools/tradefederation/core/device_build_interfaces/com/android/tradefed/device/ |
D | INativeDevice.java | 598 public boolean pullFile(String remoteFilePath, File localFile) in pullFile() method 611 public File pullFile(String remoteFilePath) throws DeviceNotAvailableException; in pullFile() method
|
/tools/tradefederation/core/tests/src/com/android/tradefed/targetprep/ |
D | DeviceSetupTest.java | 1103 EasyMock.expect(mMockDevice.pullFile("/data/local.prop")).andReturn(f).once(); in test_restore_properties_previous_exists() 1121 EasyMock.expect(mMockDevice.pullFile("/data/local.prop")).andReturn(null).once(); in test_restore_properties_previous_doesnt_exists()
|
D | DeviceStringPusherTest.java | 88 EasyMock.expect(mMockDevice.pullFile("file")).andReturn(file).once(); in testAlreadyExists()
|
/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/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()
|
D | NativeCodeCoverageListener.java | 129 coverageTar = mDevice.pullFile(COVERAGE_TAR_PATH); in logCoverageMeasurements()
|
/tools/tradefederation/core/src/com/android/tradefed/result/ |
D | DeviceFileReporter.java | 182 file = mDevice.pullFile(filename); in run()
|