Home
last modified time | relevance | path

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

1234

/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 …]
DSQLiteDatabaseTest.java83 mDatabaseFilePath = getContext().getDatabasePath(DATABASE_FILE_NAME).getPath(); in setUp()
116 db = SQLiteDatabase.openOrCreateDatabase(dbFile.getPath(), factory); in testOpenDatabase()
134 File journalFile = new File(dbFile.getPath() + "-journal"); in testDeleteDatabase()
135 File shmFile = new File(dbFile.getPath() + "-shm"); in testDeleteDatabase()
136 File walFile = new File(dbFile.getPath() + "-wal"); in testDeleteDatabase()
137 File mjFile1 = new File(dbFile.getPath() + "-mj00000000"); in testDeleteDatabase()
138 File mjFile2 = new File(dbFile.getPath() + "-mj00000001"); in testDeleteDatabase()
139 File innocentFile = new File(dbFile.getPath() + "-innocent"); in testDeleteDatabase()
319 database = SQLiteDatabase.openOrCreateDatabase(databaseFile.getPath(), null); in testAccessPageSize()
538 assertEquals(mDatabaseFilePath, mDatabase.getPath()); in testGetPath()
[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/speech/src/android/speech/tts/cts/
DTextToSpeechServiceTest.java63 UTTERANCE, createParams("mocktofile"), sampleFile.getPath()); in testSynthesizeToFile()
69 TextToSpeechWrapper.isSoundFile(sampleFile.getPath())); in testSynthesizeToFile()
106 tts.synthesizeToFile(invalid, createParams("mockToFile"), sampleFile.getPath())); in testMaxSpeechInputLength()
108 tts.synthesizeToFile(valid, createParams("mockToFile"), sampleFile.getPath())); in testMaxSpeechInputLength()
171 assertFalse(TextToSpeechWrapper.isSoundFile(sampleFile.getPath())); in testMediaPlayerFails()
175 assertFalse(TextToSpeechWrapper.isSoundFile(sampleFile.getPath())); in testMediaPlayerFails()
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/
DIconTest.java92 verifyIconValidity(Icon.createWithFilePath(file.getPath())); in testFileIcon()
157 String filePath = file.toURI().getPath(); in testFileIcon_getType()
159 Icon icon = Icon.createWithFilePath(file.getPath()); in testFileIcon_getType()
161 assertEquals(filePath, icon.getUri().getPath()); in testFileIcon_getType()
165 assertEquals(filePath, icon.getUri().getPath()); in testFileIcon_getType()
169 assertEquals(filePath, icon.getUri().getPath()); in testFileIcon_getType()
/cts/tests/app/DownloadManagerApi28Test/src/android/app/cts/
DDownloadManagerApi28Test.java132 Environment.DIRECTORY_DOWNLOADS), "file1.txt").getPath(), in testAddCompletedDownload_publicDirs()
134 Environment.DIRECTORY_DOCUMENTS), "file2.txt").getPath(), in testAddCompletedDownload_publicDirs()
178 assertSuccessfulDownload(downloadId, new File(downloadLocation.getPath())); in testDownloadManager_mediaStoreEntry()
207 Environment.DIRECTORY_DOWNLOADS), "file1.mp3").getPath(), in testAddCompletedDownload_mediaStoreEntry()
209 Environment.DIRECTORY_MUSIC), "file2.mp3").getPath(), in testAddCompletedDownload_mediaStoreEntry()
213 final File file = new File(Uri.parse(downloadLocation).getPath()); in testAddCompletedDownload_mediaStoreEntry()
/cts/tests/tests/os/src/android/os/storage/cts/
DStorageManagerTest.java124 mStorageManager.isObbMounted(outFile.getPath())); in doAttemptMountNonObb()
127 mStorageManager.getMountedObbPath(outFile.getPath())); in doAttemptMountNonObb()
144 mStorageManager.isObbMounted(outFile.getPath())); in doAttemptMountObbWrongPackage()
147 mStorageManager.getMountedObbPath(outFile.getPath())); in doAttemptMountObbWrongPackage()
170 final String mountPath1 = checkMountedPath(oo1.getPath()); in doMountAndUnmountTwoObbs()
177 final String mountPath2 = checkMountedPath(oo2.getPath()); in doMountAndUnmountTwoObbs()
219 final String path = volume.getPath(); in testGetPrimaryVolume()
765 public String getPath() { in getPath() method in StorageManagerTest.ObbObserver
837 assertTrue("mountObb call on " + file.getPath() + " should succeed", in mountObb()
838 mStorageManager.mountObb(file.getPath(), null, observer)); in mountObb()
[all …]
/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/tests/tests/net/src/android/net/cts/
DUriTest.java59 assertNull(u.getPath()); in testBuildUpon()
93 assertNull(Uri.parse("foo:bob%20lee").getPath()); in testStringUri()
124 assertEquals("/path", uri.getPath()); in testStringUri()
129 assertEquals("\\.example.com/path", uri.getPath()); in testStringUri()
136 assertEquals("/foo", uri.getPath()); in testStringUri()
145 assertEquals("/", uri.getPath()); in testStringUri()
155 assertEquals("/foo", uri.getPath()); in testStringUri()
321 assertEquals("/a/b/c", withC.getPath()); in testPathOperations()
360 assertNull(uri.getPath()); in testOpaqueUri()
478 assertEquals(path, uri.getPath()); in compareHierarchical()
/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.java599 assertEquals(DATA_PATH, intentFilter.getDataPath(0).getPath()); in testWriteToXml()
663 assertEquals("test", mIntentFilter.getDataPath(0).getPath()); in testReadFromXml()
664 assertEquals("test", mIntentFilter.getDataPath(1).getPath()); in testReadFromXml()
665 assertEquals("test", mIntentFilter.getDataPath(2).getPath()); in testReadFromXml()
678 assertEquals(DATA_PATH + i, actual.getPath()); in testDataPaths()
681 assertEquals(p.getPath(), mIntentFilter.getDataPath(i).getPath()); in testDataPaths()
698 assertEquals(DATA_PATH + i, actual.getPath()); in testDataPaths()
701 assertEquals(p.getPath(), mIntentFilter.getDataPath(i).getPath()); in testDataPaths()
717 assertEquals(DATA_PATH + i, actual.getPath()); in testDataPaths()
721 assertEquals(p.getPath(), mIntentFilter.getDataPath(i).getPath()); in testDataPaths()
[all …]
/cts/hostsidetests/security/src/android/security/cts/
DFileSystemPermissionTest.java121 sepolicy.getPath())); in testDevHwRandomPermissions()
133 sepolicy.getPath())); in testDevHwRandomPermissions()
179 cmd.add(searchpolicy.getPath()); in execSearchPolicy()
181 cmd.add(libsepolwrap.getPath()); in execSearchPolicy()
/cts/tests/app/DownloadManagerLegacyTest/src/android/app/cts/
DDownloadManagerLegacyTest.java46 Environment.DIRECTORY_DOWNLOADS), "file1.txt").getPath(), in testAddCompletedDownload()
80 "text/plain", file.getPath(), fileContents.getBytes().length, true); in testAddCompletedDownload_invalidPublicDir()
96 Environment.DIRECTORY_DOWNLOADS), "file1.mp3").getPath(), in testAddCompletedDownload_mediaStoreEntry()
/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/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/hostsidetests/compilation/src/android/compilation/cts/
DAdbRootDependentCompilationTest.java70 public String getPath() { in getPath() method in AdbRootDependentCompilationTest.ProfileLocation
169 doesFileExist(ProfileLocation.REF.getPath())); in testCompile_curProfile()
191 executePull(clientPath, copyOnHost.getPath()); in readFileOnClient()
212 String clientPath = profileLocation.getPath(); in compileWithProfilesAndCheckFilter()
263 String targetPath = location.getPath(); in writeProfile()
/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/tests/accessibilityservice/src/android/accessibilityservice/cts/utils/
DGestureUtils.java66 float[] p = stroke.getPath().approximate(0.3f); in lastPointOf()
104 prototype.getPath(), timeMs, prototype.getDuration(), prototype.willContinue()); in startingAt()
/cts/tests/tests/security/src/android/security/cts/
DBinderExploitTest.java182 Os.mkfifo(fifo.getPath(), 0600); in makePipes()
184 return dir.getPath(); in makePipes()
/cts/tests/tests/location/src/android/location/cts/
DMmsPduProvider.java71 File file = new File(getContext().getCacheDir(), uri.getPath()); in openFile()

1234