Home
last modified time | relevance | path

Searched refs:pushFile (Results 1 – 25 of 46) sorted by relevance

12

/tools/tradefederation/core/javatests/com/android/tradefed/targetprep/
DModulePusherTest.java290 when(mMockDevice.pushFile(renamedApex, APEX_PATH_ON_DEVICE)).thenReturn(true); in testInstallModulesSuccess()
291 when(mMockDevice.pushFile(renamedApk, APK_PATH_ON_DEVICE)).thenReturn(true); in testInstallModulesSuccess()
303 verify(mMockDevice, times(1)).pushFile(renamedApex, APEX_PATH_ON_DEVICE); in testInstallModulesSuccess()
304 verify(mMockDevice, times(1)).pushFile(renamedApk, APK_PATH_ON_DEVICE); in testInstallModulesSuccess()
317 when(mMockDevice.pushFile(renamedApex, APEX_PATH_ON_DEVICE)).thenReturn(true); in testInstallModulesSuccessViaReboot()
318 when(mMockDevice.pushFile(renamedApk, APK_PATH_ON_DEVICE)).thenReturn(true); in testInstallModulesSuccessViaReboot()
330 verify(mMockDevice, times(1)).pushFile(renamedApex, APEX_PATH_ON_DEVICE); in testInstallModulesSuccessViaReboot()
331 verify(mMockDevice, times(1)).pushFile(renamedApk, APK_PATH_ON_DEVICE); in testInstallModulesSuccessViaReboot()
344 when(mMockDevice.pushFile(renamedApex, APEX_PATH_ON_DEVICE)).thenReturn(true); in testInstallModulesSuccessWithApks()
364 verify(mMockDevice, times(1)).pushFile(renamedApex, APEX_PATH_ON_DEVICE); in testInstallModulesSuccessWithApks()
[all …]
DDynamicSystemPreparerTest.java147 mMockDevice.pushFile( in testSetUp_imageDir()
167 mMockDevice.pushFile( in testSetUp_imageZip()
197 mMockDevice.pushFile( in testSetUp_installationFail()
217 mMockDevice.pushFile( in testSetUp_rebootFail()
239 mMockDevice.pushFile( in testSetUp_noDsuRunningAfterRebootFail()
281 .pushFile(Mockito.any(), Mockito.any(), Mockito.eq(true)); in testImageSetup()
285 Mockito.verify(mMockDevice).pushFile(Mockito.any(), eq("/sdcard/system.zip"), eq(true)); in testImageSetup()
DSystemUpdaterDeviceFlasherTest.java74 when(mMockDevice.pushFile(fakeImage, "/cache/update.zip", true)).thenReturn(true); in testFlash()
84 .pushFile(Mockito.eq(fakeImage), Mockito.eq("/cache/update.zip"), Mockito.eq(true)); in testFlash()
115 .pushFile(Mockito.any(), Mockito.eq("/cache/update.zip")); in testFlashSameBuild()
DPushFilePreparerTest.java105 when(mMockDevice.pushFile((File) Mockito.any(), Mockito.eq("/noexist/"))) in testRemoteNoExist()
132 when(mMockDevice.pushFile(Mockito.eq(testFile), Mockito.eq("/data/local/tmp/"))) in testPushFile_RemoteIsDir()
154 when(mMockDevice.pushFile( in testPushFile_duplicateKey()
157 when(mMockDevice.pushFile( in testPushFile_duplicateKey()
236 when(mMockDevice.pushFile( in testRemotePush_override()
267 when(mMockDevice.pushFile( in testPushFileAndPush_override()
285 when(mMockDevice.pushFile((File) Mockito.any(), Mockito.eq("/noexist/"))) in testWarnOnFailure()
538 when(mMockDevice.pushFile( in testPush_moduleName_files()
567 when(mMockDevice.pushFile( in testPush_moduleName_files_abi_32bit()
596 when(mMockDevice.pushFile( in testPush_moduleName_files_abi_64bit()
[all …]
DDeviceStringPusherTest.java100 when(mMockDevice.pushFile(file, "file")).thenReturn(true); in testAlreadyExists()
108 verify(mMockDevice, times(1)).pushFile(file, "file"); in testAlreadyExists()
DPerfettoPreparerTest.java88 when(mMockDevice.pushFile((File) Mockito.any(), Mockito.eq(DEVICE_CONFIG_PATH))) in testLocalPerfettoBinaryValid()
/tools/tradefederation/core/util_apps/ContentProvider/hostsidetests/src/com/android/tradefed/contentprovider/
DContentProviderTest.java70 boolean res = mHandler.pushFile(tmpFile, "/sdcard/" + tmpFile.getName()); in testPushFile_encode()
87 boolean res = mHandler.pushFile(tmpFile, "/sdcard/" + tmpFile.getName()); in testPushFile_encode_plus()
101 boolean res = mHandler.pushFile(tmpFile, devicePath); in testPushFile()
116 boolean res = mHandler.pushFile(tmpFile, devicePath); in testDeleteFile()
133 mHandler.pushFile(tmpFile, "/sdcard/" + tmpFile.getName()); in testPullFile()
163 mHandler.pushFile(tmpFile, "/sdcard/" + subDirPath + "/" + tmpFile.getName()); in testPullDir()
/tools/tradefederation/core/javatests/com/android/tradefed/config/yaml/
DConfigurationYamlParserTest.java116 ITargetPreparer pushFile = config.getTargetPreparers().get(defaultPreparers + 3); in testParseConfig() local
117 assertTrue(pushFile instanceof PushFilePreparer); in testParseConfig()
118 assertThat(((PushFilePreparer) pushFile).getPushSpecs(null)) in testParseConfig()
158 ITargetPreparer pushFile = config.getTargetPreparers().get(3); in testParseModule() local
159 assertTrue(pushFile instanceof PushFilePreparer); in testParseModule()
160 assertThat(((PushFilePreparer) pushFile).getPushSpecs(null)) in testParseModule()
/tools/tradefederation/core/javatests/com/android/tradefed/util/statsd/
DConfigUtilTest.java67 when(mTestDevice.pushFile(any(File.class), anyString())).thenReturn(true); in testPushDeviceConfig()
82 verify(mTestDevice, times(1)).pushFile(any(File.class), anyString()); in testPushDeviceConfig()
91 when(mTestDevice.pushFile(any(File.class), anyString())).thenReturn(true); in testPushInvalidDeviceConfig()
117 when(mTestDevice.pushFile(any(File.class), anyString())).thenReturn(true); in testPushBinaryDeviceConfig()
125 verify(mTestDevice, times(1)).pushFile(eq(mConfigFile), anyString()); in testPushBinaryDeviceConfig()
/tools/tradefederation/core/javatests/com/android/tradefed/testtype/
DAndroidJUnitTestTest.java351 when(mMockTestDevice.pushFile(Mockito.<File>any(), Mockito.<String>any(), Mockito.eq(true))) in testRun_includeFile()
375 when(mMockTestDevice.pushFile(Mockito.<File>any(), Mockito.<String>any(), Mockito.eq(true))) in testRun_includeFileWithChown()
399 when(mMockTestDevice.pushFile(Mockito.<File>any(), Mockito.<String>any(), Mockito.eq(true))) in testRun_excludeFile()
425 when(mMockTestDevice.pushFile(Mockito.<File>any(), Mockito.<String>any(), Mockito.eq(true))) in testRun_testFileAndFilters()
441 .pushFile(Mockito.<File>any(), Mockito.<String>any(), Mockito.eq(true)); in testRun_testFileAndFilters()
463 when(mMockTestDevice.pushFile(Mockito.<File>any(), Mockito.<String>any(), Mockito.eq(true))) in testRun_testFileAndFilters_fails()
498 when(mMockTestDevice.pushFile(Mockito.<File>any(), Mockito.<String>any(), Mockito.eq(true))) in testRun_setTestFileOptions()
513 .pushFile(Mockito.<File>any(), Mockito.<String>any(), Mockito.eq(true)); in testRun_setTestFileOptions()
/tools/tradefederation/contrib/src/com/android/performance/tests/
DAppIncrementalInstallTest.java153 if (!mDevice.pushFile(packageFile, remotePath)) { in installAndTime()
160 if (!mDevice.pushFile(signatureFile, idsigRemotePath)) { in installAndTime()
DAppInstallTest.java176 if (!mDevice.pushFile(packageFile, remotePath)) { in installAndTime()
185 if (!mDevice.pushFile(dexMetadataFile, dmRemotePath)) { in installAndTime()
/tools/tradefederation/core/test_framework/com/android/tradefed/util/statsd/
DConfigUtil.java92 if (device.pushFile(configFile, remotePath)) { in pushStatsConfig()
118 if (device.pushFile(configFile, remotePath)) { in pushBinaryStatsConfig()
/tools/tradefederation/core/test_framework/com/android/tradefed/targetprep/
DDeviceStringPusher.java60 device.pushFile(mOldContents, mFileName); in tearDown()
DPerfettoPreparer.java58 } else if (!device.pushFile(mBinaryPerfettoConfigFile, DEVICE_CONFIG_PATH)) { in setUp()
DTestSystemAppInstallSetup.java86 device.pushFile(testAppFile, String.format("/system/app/%s", testAppName)); in setUp()
DSystemUpdaterDeviceFlasher.java101 if (!device.pushFile(otaPackageFile, "/cache/update.zip", true)) { in installUpdate()
DArtChrootPreparer.java117 if (!device.pushFile(temp, deviceApexImg)) { in activateApex()
DTestFilePushSetup.java157 device.pushFile(localFile, remoteFileName); in setUp()
/tools/tradefederation/core/javatests/com/android/tradefed/device/contentprovider/
DContentProviderHandlerTest.java194 assertTrue(mProvider.pushFile(toPush, devicePath)); in testPushFile()
206 assertFalse(mProvider.pushFile(toPush, devicePath)); in testPushFile_notExists()
221 assertFalse(mProvider.pushFile(toPush, devicePath)); in testPushFile_directory()
/tools/tradefederation/core/device_build_interfaces/com/android/tradefed/device/
DINativeDevice.java769 public boolean pushFile(File localFile, String deviceFilePath) in pushFile() method
782 public boolean pushFile(File localFile, String deviceFilePath, int userId) in pushFile() method
796 public boolean pushFile( in pushFile() method
/tools/tradefederation/core/javatests/com/android/tradefed/device/
DTestDeviceFileFuncTest.java72 mTestDevice.pushFile(testFile, deviceFilePath); in testPushPull_Basic()
96 mTestDevice.pushFile(testFile, deviceFilePath); in testPushPull_ExtStorage()
193 boolean didPushFile = mTestDevice.pushFile(new File(filename), remotePath); in testPush_NoExist()
DNativeDeviceTest.java371 public boolean pushFile(File localFile, String remoteFilePath) in testPushDir_childDir()
403 public boolean pushFile(File localFile, String remoteFilePath) in testPushDir_childDir_filtered()
2187 mTestDevice.pushFile(tmpFile, remotePath, testUserId); in testPushFile_withUserId()
2190 verify(mMockContentProviderHandler).pushFile(tmpFile, remotePath); in testPushFile_withUserId()
2210 mTestDevice.pushFile(tmpFile, remotePath); in testPushFile_withoutUserId()
2213 verify(mMockContentProviderHandler).pushFile(tmpFile, remotePath); in testPushFile_withoutUserId()
2231 boolean res = mTestDevice.pushFile(tmpFile, fakeRemotePath); in testPushFile()
2234 .pushFile( in testPushFile()
2258 .pushFile( in testPushFile_fails()
2263 boolean res = mTestDevice.pushFile(tmpFile, fakeRemotePath); in testPushFile_fails()
[all …]
/tools/tradefederation/core/src/com/android/tradefed/targetprep/
DModulePusher.java277 pushFile(toPush, device, packageName, apiLevel, versionCodes.get(packageName))); in pushModulesToDevice()
297 ModuleInfo pushFile( in pushFile() method in ModulePusher
538 : device.pushFile(localFile, filePathOnDevice); in pushPackageToDevice()
/tools/tradefederation/core/test_framework/com/android/tradefed/testtype/
DInstrumentationFileTest.java216 return mInstrumentationTest.getDevice().pushFile(file, destinationPath); in pushFileToTestDevice()

12