Home
last modified time | relevance | path

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

/aosp_15_r20/tools/tradefederation/core/device_build_interfaces/com/android/tradefed/device/contentprovider/
DContentProviderHandler.java186 public boolean deleteFile(String deviceFilePath) throws DeviceNotAvailableException { in deleteFile() argument
187 String contentUri = createEscapedContentUri(deviceFilePath); in deleteFile()
198 deviceFilePath, deleteResult.getStderr()); in deleteFile()
211 public boolean pullDir(String deviceFilePath, File localDir) in pullDir() argument
213 return pullDirInternal(deviceFilePath, localDir, getEffectiveUserId()); in pullDir()
225 public boolean pullFile(String deviceFilePath, File localFile) in pullFile() argument
227 return pullFileInternal(deviceFilePath, localFile, getEffectiveUserId()); in pullFile()
239 public boolean pushFile(File fileToPush, String deviceFilePath) in pushFile() argument
250 boolean res = pushFileInternal(fileToPush, deviceFilePath, userId); in pushFile()
257 res = pushFileInternal(fileToPush, deviceFilePath, userId); in pushFile()
[all …]
/aosp_15_r20/tools/tradefederation/core/javatests/com/android/tradefed/device/
DTestDeviceFileFuncTest.java67 String deviceFilePath = null; in testPushPull_Basic() local
71 deviceFilePath = String.format("%s/%s", mInternalStorage, "testPushPull_Basic.txt"); in testPushPull_Basic()
72 mTestDevice.pushFile(testFile, deviceFilePath); in testPushPull_Basic()
73 returnedFile = mTestDevice.pullFile(deviceFilePath); in testPushPull_Basic()
79 if (deviceFilePath != null) { in testPushPull_Basic()
80 mTestDevice.deleteFile(deviceFilePath); in testPushPull_Basic()
90 String deviceFilePath = null; in testPushPull_ExtStorage() local
94 deviceFilePath = in testPushPull_ExtStorage()
96 mTestDevice.pushFile(testFile, deviceFilePath); in testPushPull_ExtStorage()
97 returnedFile = mTestDevice.pullFile(deviceFilePath); in testPushPull_ExtStorage()
[all …]
DTestDeviceFuncTest.java221 String deviceFilePath = null; in testPushPull_normal() local
227 deviceFilePath = String.format("%s/%s", externalStorePath, "tmp_testPushPull.txt"); in testPushPull_normal()
229 mTestDevice.deleteFile(deviceFilePath); in testPushPull_normal()
231 String.format("%s exists", deviceFilePath), in testPushPull_normal()
232 mTestDevice.doesFileExist(deviceFilePath)); in testPushPull_normal()
234 assertTrue(mTestDevice.pushFile(tmpFile, deviceFilePath)); in testPushPull_normal()
235 assertTrue(mTestDevice.doesFileExist(deviceFilePath)); in testPushPull_normal()
237 assertTrue(mTestDevice.pullFile(deviceFilePath, tmpDestFile)); in testPushPull_normal()
244 if (deviceFilePath != null) { in testPushPull_normal()
245 mTestDevice.deleteFile(deviceFilePath); in testPushPull_normal()
[all …]
DNativeDeviceTest.java294 String deviceFilePath = NativeDevice.SD_CARD; in testPushDir_withUserId() local
298 mTestDevice.pushDir(testDir, deviceFilePath, testUserId); in testPushDir_withUserId()
302 .pushDir(Mockito.eq(testDir), Mockito.eq(deviceFilePath), Mockito.any()); in testPushDir_withUserId()
318 String deviceFilePath = NativeDevice.SD_CARD; in testPushDir_withoutUserId() local
322 mTestDevice.pushDir(testDir, deviceFilePath); in testPushDir_withoutUserId()
326 .pushDir(Mockito.eq(testDir), Mockito.eq(deviceFilePath), Mockito.any()); in testPushDir_withoutUserId()
418 String deviceFilePath = NativeDevice.SD_CARD; in testPullDir_withUserId() local
422 mTestDevice.pullDir(deviceFilePath, dir, testUserId); in testPullDir_withUserId()
425 verify(mMockContentProviderHandler).pullDir(deviceFilePath, dir); in testPullDir_withUserId()
441 String deviceFilePath = NativeDevice.SD_CARD; in testPullDir_withoutUserId() local
[all …]
DTestDeviceTest.java5722 public boolean doesFileExist(String deviceFilePath, int userId) in testGetHeapDump()
6693 public void deleteFile(String deviceFilePath) in testGetBugreportz()
6695 assertEquals("/data/0/com.android.shell/bugreports/*", deviceFilePath); in testGetBugreportz()
/aosp_15_r20/tools/tradefederation/core/device_build_interfaces/com/android/tradefed/device/
DINativeDevice.java752 public boolean pullDir(String deviceFilePath, File localDir) in pullDir() argument
765 public boolean pullDir(String deviceFilePath, File localDir, int userId) in pullDir() argument
777 public boolean pushFile(File localFile, String deviceFilePath) in pushFile() argument
790 public boolean pushFile(File localFile, String deviceFilePath, int userId) in pushFile() argument
806 final String deviceFilePath, in pushFile() argument
819 public boolean pushString(String contents, String deviceFilePath) in pushString() argument
831 public boolean pushDir(File localDir, String deviceFilePath) in pushDir() argument
844 public boolean pushDir(File localDir, String deviceFilePath, int userId) in pushDir() argument
858 public boolean pushDir(File localDir, String deviceFilePath, Set<String> excludedDirectories) in pushDir() argument
881 public boolean syncFiles(File localFileDir, String deviceFilePath) in syncFiles() argument
[all …]
DITestDevice.java1139 public boolean doesFileExist(String deviceFilePath, int userId) in doesFileExist() argument
/aosp_15_r20/tools/tradefederation/core/src/com/android/tradefed/device/
DNativeDevice.java1703 public boolean doesFileExist(String deviceFilePath) throws DeviceNotAvailableException { in doesFileExist() argument
1704 return doesFileExist(deviceFilePath, getCurrentUserCompatible(deviceFilePath)); in doesFileExist()
1709 public boolean doesFileExist(String deviceFilePath, int userId) in doesFileExist() argument
1714 if (isSdcardOrEmulated(deviceFilePath) && userId != 0) { in doesFileExist()
1717 CLog.d("Delegating check to ContentProvider doesFileExist(%s)", deviceFilePath); in doesFileExist()
1718 return handler.doesFileExist(deviceFilePath); in doesFileExist()
1721 CLog.d("Using 'ls' to check doesFileExist(%s)", deviceFilePath); in doesFileExist()
1722 CommandResult result = executeShellV2Command(String.format("ls '%s'", deviceFilePath)); in doesFileExist()
1729 deviceFilePath, result.getStdout(), result.getStderr()); in doesFileExist()
1753 public void deleteFile(String deviceFilePath) throws DeviceNotAvailableException { in deleteFile() argument
[all …]
DTestDevice.java1498 public boolean doesFileExist(String deviceFilePath) throws DeviceNotAvailableException { in doesFileExist() argument
1500 if (deviceFilePath.startsWith(SD_CARD)) { in doesFileExist()
1506 return doesFileExist(deviceFilePath, currentUser); in doesFileExist()
1511 public boolean doesFileExist(String deviceFilePath, int userId) in doesFileExist() argument
1513 if (deviceFilePath.startsWith(SD_CARD)) { in doesFileExist()
1514 deviceFilePath = in doesFileExist()
1515 deviceFilePath.replaceFirst( in doesFileExist()
1518 return super.doesFileExist(deviceFilePath, userId); in doesFileExist()
/aosp_15_r20/hardware/interfaces/gnss/common/utils/default/
H A DDeviceFileReader.cpp25 std::string deviceFilePath = ""; in getDataFromDeviceFile() local
27 deviceFilePath = ReplayUtils::getFixedLocationPath(); in getDataFromDeviceFile()
29 deviceFilePath = ReplayUtils::getGnssPath(); in getDataFromDeviceFile()
36 if ((gnss_fd = open(deviceFilePath.c_str(), O_RDWR | O_NONBLOCK)) == -1) { in getDataFromDeviceFile()
/aosp_15_r20/tools/tradefederation/core/test_framework/com/android/tradefed/testtype/
DGTest.java502 ITestDevice device, String deviceFilePath, Set<String> excludeDirectories) in getExecutableFiles() argument
504 String cmd = String.format("find -L %s -type f -perm -u+r,u+x", deviceFilePath); in getExecutableFiles()
/aosp_15_r20/cts/hostsidetests/security/src/android/security/cts/
H A DSELinuxHostTest.java205 Map<ITestDevice, File> cache, String deviceFilePath, in getDeviceFile() argument
207 if (!device.doesFileExist(deviceFilePath)){ in getDeviceFile()
208 throw new Exception("File not found on the device: " + deviceFilePath); in getDeviceFile()
218 device.pullFile(deviceFilePath, file); in getDeviceFile()
/aosp_15_r20/tools/tradefederation/core/src/com/android/tradefed/device/cloud/
DGceManager.java1033 String deviceFilePath = match.group(2); in getNestedDeviceSshBugreportz() local
1045 deviceFilePath); in getNestedDeviceSshBugreportz()
1048 remoteSshCommandExec(gceAvd, options, runUtil, adbTool, "pull", deviceFilePath); in getNestedDeviceSshBugreportz()
1051 String remoteFilePath = "./" + new File(deviceFilePath).getName(); in getNestedDeviceSshBugreportz()
/aosp_15_r20/cts/hostsidetests/securitybulletin/src/android/security/cts/
H A DAdbUtils.java310 public static void pushResource(String fullResourceName, String deviceFilePath, in pushResource() argument
315 device.pushFile(resFile, deviceFilePath); in pushResource()
/aosp_15_r20/libcore/luni/src/test/java/libcore/java/nio/file/
H A DFiles2Test.java345 Path deviceFilePath = Paths.get("/dev/null"); in test_isRegularFile() local
346 assertTrue(Files.exists(deviceFilePath)); in test_isRegularFile()
347 assertFalse(Files.isRegularFile(deviceFilePath)); in test_isRegularFile()
/aosp_15_r20/tools/tradefederation/prebuilts/filegroups/tradefed/
Dtradefed-tests.jarIncludeFilterTest.jar META-INF/ META-INF/LICENSE META-INF/MANIFEST.MF ...
Dtradefed.jarFileMd5$FileChecksum$1.class FileMd5.java package FileMd5$FileChecksum$1 extends com. ...
/aosp_15_r20/prebuilts/module_sdk/art/current/test-exports/java/
Dcore-tests.jarMETA-INF/ META-INF/MANIFEST.MF META-INF/maven/ META- ...
/aosp_15_r20/prebuilts/module_sdk/art/1/test-exports/java/
Dcore-tests.jarMETA-INF/ META-INF/MANIFEST.MF META-INF/maven/ META- ...