/tools/tradefederation/core/javatests/com/android/tradefed/targetprep/ |
D | ModulePusherTest.java | 290 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 …]
|
D | DynamicSystemPreparerTest.java | 147 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()
|
D | SystemUpdaterDeviceFlasherTest.java | 74 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()
|
D | PushFilePreparerTest.java | 105 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 …]
|
D | DeviceStringPusherTest.java | 100 when(mMockDevice.pushFile(file, "file")).thenReturn(true); in testAlreadyExists() 108 verify(mMockDevice, times(1)).pushFile(file, "file"); in testAlreadyExists()
|
D | PerfettoPreparerTest.java | 88 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/ |
D | ContentProviderTest.java | 70 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/ |
D | ConfigurationYamlParserTest.java | 116 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/ |
D | ConfigUtilTest.java | 67 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/ |
D | AndroidJUnitTestTest.java | 351 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/ |
D | AppIncrementalInstallTest.java | 153 if (!mDevice.pushFile(packageFile, remotePath)) { in installAndTime() 160 if (!mDevice.pushFile(signatureFile, idsigRemotePath)) { in installAndTime()
|
D | AppInstallTest.java | 176 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/ |
D | ConfigUtil.java | 92 if (device.pushFile(configFile, remotePath)) { in pushStatsConfig() 118 if (device.pushFile(configFile, remotePath)) { in pushBinaryStatsConfig()
|
/tools/tradefederation/core/test_framework/com/android/tradefed/targetprep/ |
D | DeviceStringPusher.java | 60 device.pushFile(mOldContents, mFileName); in tearDown()
|
D | PerfettoPreparer.java | 58 } else if (!device.pushFile(mBinaryPerfettoConfigFile, DEVICE_CONFIG_PATH)) { in setUp()
|
D | TestSystemAppInstallSetup.java | 86 device.pushFile(testAppFile, String.format("/system/app/%s", testAppName)); in setUp()
|
D | SystemUpdaterDeviceFlasher.java | 101 if (!device.pushFile(otaPackageFile, "/cache/update.zip", true)) { in installUpdate()
|
D | ArtChrootPreparer.java | 117 if (!device.pushFile(temp, deviceApexImg)) { in activateApex()
|
D | TestFilePushSetup.java | 157 device.pushFile(localFile, remoteFileName); in setUp()
|
/tools/tradefederation/core/javatests/com/android/tradefed/device/contentprovider/ |
D | ContentProviderHandlerTest.java | 194 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/ |
D | INativeDevice.java | 769 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/ |
D | TestDeviceFileFuncTest.java | 72 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()
|
D | NativeDeviceTest.java | 371 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/ |
D | ModulePusher.java | 277 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/ |
D | InstrumentationFileTest.java | 216 return mInstrumentationTest.getDevice().pushFile(file, destinationPath); in pushFileToTestDevice()
|