Home
last modified time | relevance | path

Searched refs:pushString (Results 1 – 19 of 19) sorted by relevance

/tools/tradefederation/core/javatests/com/android/tradefed/targetprep/
DDeviceStringPusherTest.java65 when(mMockDevice.pushString("hi", "file")).thenReturn(false); in testFail()
71 verify(mMockDevice, times(1)).pushString("hi", "file"); in testFail()
81 when(mMockDevice.pushString("hi", "file")).thenReturn(true); in testDoesntExist()
87 verify(mMockDevice, times(1)).pushString("hi", "file"); in testDoesntExist()
99 when(mMockDevice.pushString("hi", "file")).thenReturn(true); in testAlreadyExists()
107 verify(mMockDevice, times(1)).pushString("hi", "file"); in testAlreadyExists()
DDefaultTestsZipInstallerTest.java127 when(mMockDevice.pushString((String) Mockito.any(), (String) Mockito.any())) in testCantTouchFilesystem()
157 when(mMockDevice.pushString((String) Mockito.any(), (String) Mockito.any())) in testPushTestsZipOntoData()
198 when(mMockDevice.pushString((String) Mockito.any(), (String) Mockito.any())) in testPushTestsZipOntoData_retry()
DDeviceSetupTest.java1537 when(mMockDevice.pushString(setPropCapture.capture(), Mockito.contains("local.prop"))) in doSetupExpectations()
/tools/tradefederation/core/javatests/com/android/tradefed/util/
DGCSBucketUtilFuncTest.java73 mBucket.pushString(FILE_CONTENT, path); in testStringUploadThenDownLoad()
81 mBucket.pushString(FILE_CONTENT, Paths.get(mRemoteRoot, file)); in testDownloadMultiple()
153 mBucket.pushString(FILE_CONTENT, Paths.get(mRemoteRoot, file)); in testLs_folder()
167 mBucket.pushString(FILE_CONTENT, path); in testLs_file()
177 mBucket.pushString(FILE_CONTENT, path); in testIsFile()
184 mBucket.pushString(FILE_CONTENT, path); in testIsFile_folder()
196 mBucket.pushString(FILE_CONTENT, path); in testStat()
205 mBucket.pushString(FILE_CONTENT, path); in testmd5Hash()
/tools/tradefederation/core/javatests/com/android/tradefed/device/
DTestDeviceFileFuncTest.java120 mTestDevice.pushString(testString, deviceFilePath); in testPushPull_FromString()
144 mTestDevice.pushString(testString, deviceFilePath); in testPushPull_PullContents()
302 mTestDevice.pushString(generateRandomString(10 * 1024), remotePath); in testDoesFileExist_Basic()
322 mTestDevice.pushString(generateRandomString(10 * 1024), remotePath); in testDeleteFile_Basic()
346 mTestDevice.pushString(generateRandomString(10 * 1024), remotePath); in testDeleteFile_ExtStorage()
463 mTestDevice.pushString(generateRandomString(10 * 1024), remotePath); in testGetChildren_NotDirectory()
DTestDeviceShellFuncTest.java69 mTestDevice.pushString(contents, devicePath); in testExecuteShellCommand_basic()
110 mTestDevice.pushString(contents, devicePath); in testExecuteShellCommandV2_basic()
DTestDeviceFuncTest.java328 assertTrue(mTestDevice.pushString("test data", deviceFilePath)); in testPull_nopermissions()
905 assertTrue(mTestDevice.pushString(content, path)); in testPullFileContents()
/tools/tradefederation/core/test_framework/com/android/tradefed/targetprep/
DDeviceStringPusher.java48 if (!device.pushString(mFileContent, mFileName)) { in setUp()
/tools/tradefederation/contrib/src/com/android/tradefed/targetprep/
DSetPackagesRecentlyUsed.java70 testInfo.getDevice().pushString(builder.toString(), PACKAGE_USAGE_FILE); in setUp()
/tools/tradefederation/core/src/com/android/tradefed/targetprep/
DDefaultTestsZipInstaller.java172 boolean yayTurtle = device.pushString("I like turtles", turtlePath); in doDeleteData()
DDeviceSetup.java986 boolean result = device.pushString(sb.toString(), "/data/local.prop"); in changeSystemProps()
/tools/tradefederation/core/test_framework/com/android/tradefed/testtype/
DGoogleBenchmarkTest.java488 testDevice.pushString(String.format("#!/bin/bash\n%s", cmd), tmpFileDevice); in executeCommandByScript()
DGTest.java276 testDevice.pushString(String.format("#!/bin/bash\n%s", cmd), tmpFileDevice); in executeCommandByScript()
/tools/tradefederation/core/javatests/com/android/tradefed/testtype/
DGoogleBenchmarkTestTest.java600 when(mMockITestDevice.pushString(Mockito.<String>any(), eq(deviceScriptPath))) in testCommandTooLong()
609 when(mMockITestDevice.pushString(Mockito.<String>any(), eq(deviceScriptPath))) in testCommandTooLong()
DGTestTest.java344 when(mMockITestDevice.pushString(Mockito.<String>any(), Mockito.eq(deviceScriptPath))) in testCommandTooLong()
/tools/tradefederation/core/device_build_interfaces/com/android/tradefed/device/
DINativeDevice.java811 public boolean pushString(String contents, String deviceFilePath) in pushString() method
/tools/tradefederation/core/src/com/android/tradefed/util/
DGCSBucketUtil.java551 public CommandResult pushString(String contents, Path bucketPath) throws IOException { in pushString() method in GCSBucketUtil
/tools/tradefederation/contrib/src/com/android/monkey/
DMonkeyBase.java322 device.pushString(allowlist.toString(), DEVICE_ALLOWLIST_PATH); in runMonkey()
/tools/tradefederation/core/src/com/android/tradefed/device/
DNativeDevice.java1652 public boolean pushString(final String contents, final String remoteFilePath) in pushString() method in NativeDevice