Home
last modified time | relevance | path

Searched refs:getPath (Results 1 – 25 of 108) sorted by relevance

12345

/cts/tests/tests/transition/src/android/transition/cts/
DArcMotionTest.java38 Path path = arcMotion.getPath(0, 100, 100, 0); in test90Quadrants()
42 path = arcMotion.getPath(100, 0, 0, -100); in test90Quadrants()
46 path = arcMotion.getPath(0, -100, -100, 0); in test90Quadrants()
50 path = arcMotion.getPath(-100, 0, 0, 100); in test90Quadrants()
63 path = arcMotion.getPath(0, 120, 160, 0); in test345Triangles()
67 path = arcMotion.getPath(0, 160, 120, 0); in test345Triangles()
71 path = arcMotion.getPath(-120, 0, 0, 160); in test345Triangles()
75 path = arcMotion.getPath(-160, 0, 0, 120); in test345Triangles()
79 path = arcMotion.getPath(0, -120, -160, 0); in test345Triangles()
83 path = arcMotion.getPath(0, -160, -120, 0); in test345Triangles()
[all …]
DPatternPathMotionTest.java45 assertPathMatches(expected, pathMotion.getPath(0, 0, 100, 100)); in testStraightPath()
59 assertPathMatches(expected, pathMotion.getPath(0, 0, 0, 100)); in testCurve()
/cts/tests/tests/database/src/android/database/sqlite/cts/
DSQLiteWalTest.java107 assertTrue((new File(db.getPath())).exists()); in prepareDatabase()
108 assertTrue((new File(db.getPath() + SHM_SUFFIX)).exists()); in prepareDatabase()
109 assertTrue((new File(db.getPath() + WAL_SUFFIX)).exists()); in prepareDatabase()
111 assertTrue((new File(db.getPath())).length() > 0); in prepareDatabase()
112 assertTrue((new File(db.getPath() + SHM_SUFFIX)).length() > 0); in prepareDatabase()
113 assertTrue((new File(db.getPath() + WAL_SUFFIX)).length() > 0); in prepareDatabase()
135 assertEquals(0, (new File(db.getPath() + WAL_SUFFIX)).length()); in testWalTruncate()
150 assertTrue((new File(db.getPath() + WAL_SUFFIX)).length() > 0); in testWalNoTruncate()
164 assertTrue((new File(db.getPath() + WAL_SUFFIX)).length() > 0); in testWalTruncateDisabled()
175 backupFile(db.getPath()); in doOperation()
[all …]
/cts/tests/tests/telephony/current/src/android/telephony/embms/cts/
DMbmsDownloadFlowTest.java91 String file2RelativePath = CtsDownloadService.FILE_INFO_2.getUri().getPath().substring( in testFileInSubdirectoryDownloadFlow()
92 CtsDownloadService.SOURCE_URI_2.getPath().length()); in testFileInSubdirectoryDownloadFlow()
93 assertTrue("got path: " + fileUri.getPath() + ", should end with: " + file2RelativePath, in testFileInSubdirectoryDownloadFlow()
94 fileUri.getPath().endsWith(file2RelativePath)); in testFileInSubdirectoryDownloadFlow()
124 String relativePath = fileInfo.getUri().getPath().substring( in testMultiFileDownloadFlow()
125 CtsDownloadService.SOURCE_URI_3.getPath().length()); in testMultiFileDownloadFlow()
126 assertTrue("got path: " + fileUri.getPath() + ", should end with: " + relativePath, in testMultiFileDownloadFlow()
127 fileUri.getPath().endsWith(relativePath)); in testMultiFileDownloadFlow()
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/
DIconTest.java99 verifyIconValidity(Icon.createWithFilePath(file.getPath())); in testFileIcon()
187 String filePath = file.toURI().getPath(); in testFileIcon_getType()
189 Icon icon = Icon.createWithFilePath(file.getPath()); in testFileIcon_getType()
191 assertEquals(filePath, icon.getUri().getPath()); in testFileIcon_getType()
195 assertEquals(filePath, icon.getUri().getPath()); in testFileIcon_getType()
199 assertEquals(filePath, icon.getUri().getPath()); in testFileIcon_getType()
211 String filePath = file.toURI().getPath(); in testAdaptiveFileIcon_getType()
215 assertEquals(filePath, icon.getUri().getPath()); in testAdaptiveFileIcon_getType()
219 assertEquals(filePath, icon.getUri().getPath()); in testAdaptiveFileIcon_getType()
/cts/tests/tests/gesture/src/android/gesture/cts/
DGestureStrokeTest.java45 assertNull(emptyStroke.getPath()); in testGetPath_empty()
53 Path emptyPath = emptyStroke.getPath(); in testGetPath_singlePoint()
63 Path linePath = lineStroke.getPath(); in testGetPath_line()
/cts/hostsidetests/videoencodingminimum/src/android/videoqualityfloor/cts/
DCtsVideoQualityFloorHostTest.java145 LogUtil.CLog.d("Unable to establish temp directory " + destination.getPath()); in testEncoding()
193 LogUtil.CLog.d("runCmd() cmd=" + cmd + " cwd=" + cwd.getPath()); in runCmd()
229 LogUtil.CLog.d("Do we already have a copy of file " + destination.getPath()); in downloadFile()
231 LogUtil.CLog.d("Skipping re-download of file " + destination.getPath()); in downloadFile()
236 String cmd = "wget -O " + destination.getPath() + " " + url; in downloadFile()
/cts/hostsidetests/scopedstorage/device/src/android/scopedstorage/cts/device/
DScopedStorageDeviceTest.java433 getExternalFilesDir().getPath().replace(THIS_PACKAGE_NAME, "no.such.package")); in testCreateFileInOtherAppExternalDir()
444 getExternalFilesDir().getPath().replace(THIS_PACKAGE_NAME, "com.android.shell")); in testCreateFileInOtherAppExternalDir()
471 assertThat(deleteFileAs(APP_A_HAS_RES, videoFile.getPath())).isFalse(); in testReadWriteFilesInOtherAppExternalDir()
543 externalFilesDir.getPath().replace(THIS_PACKAGE_NAME, "no.such.package")); in testCreateAndDeleteEmptyDir()
545 externalFilesDir.getPath().replace(THIS_PACKAGE_NAME, "com.android.shell")); in testCreateAndDeleteEmptyDir()
556 assertThat(createFileAs(APP_B_NO_PERMS, mediaFile.getPath())).isTrue(); in testCantAccessOtherAppsContents()
557 assertThat(createFileAs(APP_B_NO_PERMS, nonMediaFile.getPath())).isTrue(); in testCantAccessOtherAppsContents()
569 deleteFileAsNoThrow(APP_B_NO_PERMS, nonMediaFile.getPath()); in testCantAccessOtherAppsContents()
570 deleteFileAsNoThrow(APP_B_NO_PERMS, mediaFile.getPath()); in testCantAccessOtherAppsContents()
582 assertThat(createFileAs(APP_B_NO_PERMS, mediaFile.getPath())).isTrue(); in testCantDeleteOtherAppsContents()
[all …]
/cts/tests/app/DownloadManagerApi28Test/src/android/app/cts/
DDownloadManagerApi28Test.java134 Environment.DIRECTORY_DOWNLOADS), "file1.txt").getPath(), in testAddCompletedDownload_publicDirs()
136 Environment.DIRECTORY_DOCUMENTS), "file2.txt").getPath(), in testAddCompletedDownload_publicDirs()
181 assertSuccessfulDownload(downloadId, new File(downloadLocation.getPath())); in testDownloadManager_mediaStoreEntry()
210 Environment.DIRECTORY_DOWNLOADS), "file1.mp3").getPath(), in testAddCompletedDownload_mediaStoreEntry()
212 Environment.DIRECTORY_MUSIC), "file2.mp3").getPath(), in testAddCompletedDownload_mediaStoreEntry()
216 final File file = new File(Uri.parse(downloadLocation).getPath()); in testAddCompletedDownload_mediaStoreEntry()
/cts/tools/vm-tests-tf/build/src/util/build/
DBuildStep.java45 String getPath() { in getPath() method in BuildStep.BuildFile
125 return (outputFile == o.outputFile ? 0 : outputFile.getPath().compareTo( in compareTo()
126 o.outputFile.getPath())); in compareTo()
/cts/tests/tests/content/src/android/content/cts/
DReadableFileReceiverActivity.java70 Log.e(TAG, "File contents of " + file.getPath() in readFilesFromClipDataUri()
98 result.add(new File(filePath.getPath())); in getFilesFromIntent()
114 Log.e(TAG, "Error while reading file " + file.getPath() + "."); in testFileContents()
DIntentFilterTest.java1046 assertEquals(DATA_PATH, intentFilter.getDataPath(0).getPath()); in testWriteToXml()
1115 assertEquals("test", mIntentFilter.getDataPath(0).getPath()); in testReadFromXml()
1116 assertEquals("test", mIntentFilter.getDataPath(1).getPath()); in testReadFromXml()
1117 assertEquals("test", mIntentFilter.getDataPath(2).getPath()); in testReadFromXml()
1130 assertEquals(DATA_PATH + i, actual.getPath()); in testDataPaths()
1133 assertEquals(p.getPath(), mIntentFilter.getDataPath(i).getPath()); in testDataPaths()
1149 assertEquals(DATA_PATH + i, actual.getPath()); in testDataPaths()
1152 assertEquals(p.getPath(), mIntentFilter.getDataPath(i).getPath()); in testDataPaths()
1169 assertEquals(DATA_PATH + i, actual.getPath()); in testDataPaths()
1172 assertEquals(p.getPath(), mIntentFilter.getDataPath(i).getPath()); in testDataPaths()
[all …]
/cts/tests/tests/os/src/android/os/storage/cts/
DStorageManagerTest.java137 mStorageManager.isObbMounted(outFile.getPath())); in doAttemptMountNonObb()
140 mStorageManager.getMountedObbPath(outFile.getPath())); in doAttemptMountNonObb()
157 mStorageManager.isObbMounted(outFile.getPath())); in doAttemptMountObbWrongPackage()
160 mStorageManager.getMountedObbPath(outFile.getPath())); in doAttemptMountObbWrongPackage()
183 final String mountPath1 = checkMountedPath(oo1.getPath()); in doMountAndUnmountTwoObbs()
190 final String mountPath2 = checkMountedPath(oo2.getPath()); in doMountAndUnmountTwoObbs()
235 final String path = volume.getPath(); in testGetPrimaryVolume()
883 public String getPath() { in getPath() method in StorageManagerTest.ObbObserver
955 assertTrue("mountObb call on " + file.getPath() + " should succeed", in mountObb()
956 mStorageManager.mountObb(file.getPath(), null, observer)); in mountObb()
[all …]
/cts/tests/tests/os/src/android/os/cts/
DStatFsTest.java27 StatFs stat = new StatFs(path.getPath()); in testStatFs()
44 stat.restat(path.getPath()); in testStatFs()
DPatternMatcherTest.java68 assertEquals(expected1, mPatternMatcher.getPath()); in testGetPath()
73 assertEquals(expected2, mPatternMatcher.getPath()); in testGetPath()
/cts/tests/tests/speech/src/android/speech/tts/cts/
DTextToSpeechServiceTest.java70 UTTERANCE, createParams("mocktofile"), sampleFile.getPath()); in testSynthesizeToFile()
139 tts.synthesizeToFile(invalid, createParams("mockToFile"), sampleFile.getPath())); in testMaxSpeechInputLength()
141 tts.synthesizeToFile(valid, createParams("mockToFile"), sampleFile.getPath())); in testMaxSpeechInputLength()
204 assertFalse(TextToSpeechWrapper.isSoundFile(sampleFile.getPath())); in testMediaPlayerFails()
208 assertFalse(TextToSpeechWrapper.isSoundFile(sampleFile.getPath())); in testMediaPlayerFails()
310 TextToSpeechWrapper.isSoundFile(file.getPath())); in verifySynthesisFile()
/cts/hostsidetests/compilation/src/android/compilation/cts/
DAdbRootDependentCompilationTest.java69 public String getPath() { in getPath() method in AdbRootDependentCompilationTest.ProfileLocation
182 doesFileExist(ProfileLocation.REF.getPath())); in testCompile_curProfile()
205 executePull(clientPath, copyOnHost.getPath()); in readFileOnClient()
258 executeSuShellAdbCommand(0, "rm", "-f", ProfileLocation.REF.getPath()); in resetProfileState()
259 executeSuShellAdbCommand(0, "truncate", "-s", "0", ProfileLocation.CUR.getPath()); in resetProfileState()
280 String targetPath = location.getPath(); in writeProfile()
/cts/hostsidetests/scopedstorage/src/android/scopedstorage/cts/
DScopedStorageTest.java205 final File otherAppExternalDataDir = new File(getExternalFilesDir().getPath().replace( in testManageExternalStorageCantReadWriteOtherAppExternalDir()
217 assertThat(deleteFileAs(APP_A_HAS_RES, otherAppExternalDataFile.getPath())).isTrue(); in testManageExternalStorageCantReadWriteOtherAppExternalDir()
234 assertThat(createFileAs(APP_B_NO_PERMS, otherAppPdf.getPath())).isTrue(); in testManageExternalStorageCanDeleteOtherAppsContents()
235 assertThat(createFileAs(APP_B_NO_PERMS, otherAppImage.getPath())).isTrue(); in testManageExternalStorageCanDeleteOtherAppsContents()
236 assertThat(createFileAs(APP_B_NO_PERMS, otherAppMusic.getPath())).isTrue(); in testManageExternalStorageCanDeleteOtherAppsContents()
266 assertThat(createFileAs(APP_B_NO_PERMS, otherAppPdf.getPath())).isTrue(); in testAccess_file()
267 assertThat(createFileAs(APP_B_NO_PERMS, otherAppImage.getPath())).isTrue(); in testAccess_file()
299 final File otherAppExternalDataDir = new File(getExternalFilesDir().getPath().replace( in testAccess_directory()
364 assertThat(createFileAs(APP_B_NO_PERMS, otherAppPdf.getPath())).isTrue(); in testManageExternalStorageCanRenameOtherAppsContents()
712 final File otherAppExternalDataDir = new File(getExternalFilesDir().getPath().replace( in testNoIsolatedStorageCantReadWriteOtherAppExternalDir()
[all …]
/cts/tests/tests/slice/src/android/slice/cts/
DSliceMetricsTest.java71 .addTaggedData(MetricsEvent.FIELD_SUBSLICE_PATH, SUB_SLICE_URI.getPath())); in testLogOnTouch()
77 logMaker.addTaggedData(MetricsEvent.FIELD_SLICE_PATH, BASE_URI.getPath()); in getLogMaker()
DSliceProvider.java63 if (uri.getPath().equals("/")) { in onGetSliceDescendants()
75 switch (sliceUri.getPath()) { in onBindSlice()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/sixdof/Utils/
DReportExporter.java62 storagePath = Environment.getExternalStorageDirectory().getPath(); in doInBackground()
88 return mContext.getString(R.string.report_saved, reportFile.getPath()); in doInBackground()
/cts/tools/cts-tradefed/tests/src/com/android/compatibility/common/tradefed/presubmit/
DApkPackageNameCheck.java97 String path = f.getPath(); in testApkPackageNames()
113 String path = f.getPath(); in testApkPackageNames()
/cts/hostsidetests/scopedstorage/legacy/src/android/scopedstorage/cts/legacy/
DLegacyStorageTest.java264 Os.open(existingFile.getPath(), OsConstants.O_RDONLY, /*mode*/ 0); in testCantAccessExternalStorage()
317 fd = Os.open(existingFile.getPath(), OsConstants.O_RDONLY, /*mode*/ 0); in testReadOnlyExternalStorage_hasR()
325 fd = Os.open(existingFile.getPath(), OsConstants.O_WRONLY, /*mode*/ 0); in testReadOnlyExternalStorage_hasR()
515 executeShellCommand("rm -r " + directoryOldPath.getPath()); in testRenameDirectoryAndUpdateDB_hasW()
837 assertThat(createFileAs(APP_B_NO_PERMS, otherAppVideoFile.getPath())).isTrue(); in testLegacySystemGalleryCanRenameImagesAndVideosWithoutDbUpdates()
866 assertThat(createFileAs(APP_B_NO_PERMS, otherAppVideoFile.getPath())).isTrue(); in testLegacySystemGalleryWithoutWESCannotRename()
886 assertThat(createFileAs(APP_B_NO_PERMS, otherAppVideoFile.getPath())).isTrue(); in testLegacyWESCanRenameImagesAndVideosWithDbUpdates_hasW()
1063 getContentResolver().openFile(Uri.parse(CONTENT_PROVIDER_URL + file.getPath()), "w", null); in createFileInExternalDir()
1068 getContentResolver().delete(Uri.parse(CONTENT_PROVIDER_URL + file.getPath()), null, null); in deleteFileInExternalDir()
/cts/tests/tests/security/src/android/security/cts/
DBinderExploitTest.java181 Os.mkfifo(fifo.getPath(), 0600); in makePipes()
183 return dir.getPath(); in makePipes()
/cts/tests/tests/telephony/current/src/android/telephony/cts/
DMmsPduProvider.java71 File file = new File(getContext().getCacheDir(), uri.getPath()); in openFile()

12345