/cts/tests/tests/transition/src/android/transition/cts/ |
D | ArcMotionTest.java | 38 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 …]
|
D | PatternPathMotionTest.java | 45 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/ |
D | SQLiteWalTest.java | 107 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/hostsidetests/scopedstorage/src/android/scopedstorage/cts/ |
D | AppCloningDeviceTest.java | 57 assertThat(createFileAs(APP_B_NO_PERMS, file.getPath())).isTrue(); in testInsertFilesInDirectoryViaMediaProvider() 59 assertThat(listAs(APP_B_NO_PERMS, dir.getPath())).contains(file.getName()); in testInsertFilesInDirectoryViaMediaProvider() 70 assertThat(createFileAs(APP_B_NO_PERMS, file.getPath())).isTrue(); in testInsertFilesInDirectoryViaMediaProviderWithPathSpecified() 73 assertThat(listAs(APP_B_NO_PERMS, dir.getPath())).contains(file.getName()); in testInsertFilesInDirectoryViaMediaProviderWithPathSpecified() 83 assertThat(listAs(APP_B_NO_PERMS, dir.getPath())).contains(expectedFile.getName()); in testGetFilesInDirectoryViaMediaProviderRespectsUserId() 85 assertThat(listAs(APP_B_NO_PERMS, dir.getPath())).doesNotContain(notExpectedFile.getName()); in testGetFilesInDirectoryViaMediaProviderRespectsUserId()
|
D | ScopedStorageTest.java | 260 assertThat(createFileAs(APP_B_NO_PERMS, otherAppImage.getPath())).isTrue(); in testManageExternalStorageCanReadRedactedContents() 276 final File otherAppExternalDataDir = new File(getExternalFilesDir().getPath().replace( in testManageExternalStorageCantReadWriteOtherAppExternalDir() 289 otherAppExternalDataFile.getPath())).isTrue(); in testManageExternalStorageCantReadWriteOtherAppExternalDir() 328 assertThat(createFileAs(APP_B_NO_PERMS, otherAppPdf.getPath())).isTrue(); in testManageExternalStorageCanDeleteOtherAppsContents() 329 assertThat(createFileAs(APP_B_NO_PERMS, otherAppImage.getPath())).isTrue(); in testManageExternalStorageCanDeleteOtherAppsContents() 330 assertThat(createFileAs(APP_B_NO_PERMS, otherAppMusic.getPath())).isTrue(); in testManageExternalStorageCanDeleteOtherAppsContents() 358 assertThat(createFileAs(APP_B_NO_PERMS, otherAppImage.getPath())).isTrue(); in testAccess_OnlyImageFile() 359 assertThat(createFileAs(APP_B_NO_PERMS, otherAppVideo.getPath())).isTrue(); in testAccess_OnlyImageFile() 360 assertThat(createFileAs(APP_B_NO_PERMS, otherAppAudio.getPath())).isTrue(); in testAccess_OnlyImageFile() 385 assertThat(createFileAs(APP_B_NO_PERMS, otherAppImage.getPath())).isTrue(); in testAccess_OnlyVideoFile() [all …]
|
/cts/tests/tests/telephony/current/src/android/telephony/embms/cts/ |
D | MbmsDownloadFlowTest.java | 91 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/framework/base/windowmanager/src/android/server/wm/animations/ |
D | DisplayShapeTests.java | 69 final Path path = shape.getPath(); in testNonNull() 96 mDisplay.getShape().getPath().isRect(null)); in testDisplayShapeConfig() 111 final RectF boundsFromDisplay = getBoundsFromPath(fromDisplay.getPath()); in testDisplayShapeFromWindowInsets() 113 final RectF boundsFromView = getBoundsFromPath(fromInsets.getPath()); in testDisplayShapeFromWindowInsets() 127 assertTrue(shape.getPath().isRect(null)); in testDisplayShapeOnVirtualDisplay() 132 final RectF actualRect = getBoundsFromPath(shape.getPath()); in testDisplayShapeOnVirtualDisplay()
|
/cts/tests/tests/os/src/android/os/storage/cts/ |
D | StorageManagerCrossProfileSDCardTest.java | 78 storageVolumes.stream().filter(sv -> sv.getPath() != null && sv.getPath().contains( in testGetStorageVolumeSDCardWorkProfile() 82 + storageVolumes.stream().filter(sv -> sv.getPath() != null).map( in testGetStorageVolumeSDCardWorkProfile() 83 StorageVolume::getPath).collect(joining("\n"))) in testGetStorageVolumeSDCardWorkProfile()
|
D | StorageManagerTest.java | 168 mStorageManager.isObbMounted(outFile.getPath())); in doAttemptMountNonObb() 171 mStorageManager.getMountedObbPath(outFile.getPath())); in doAttemptMountNonObb() 189 mStorageManager.isObbMounted(outFile.getPath())); in doAttemptMountObbWrongPackage() 192 mStorageManager.getMountedObbPath(outFile.getPath())); in doAttemptMountObbWrongPackage() 216 final String mountPath1 = checkMountedPath(oo1.getPath()); in doMountAndUnmountTwoObbs() 223 final String mountPath2 = checkMountedPath(oo2.getPath()); in doMountAndUnmountTwoObbs() 270 final String path = volume.getPath(); in testGetPrimaryVolume() 334 Log.d("StorageManagerTest", "child: " + childVolume.getPath()); in testGetStorageVolume() 348 sv != null && sv.getPath() != null && sv.getPath().contains(volumeName) in testGetStorageVolumeUSB() 351 + storageVolumes.stream().map(StorageVolume::getPath) in testGetStorageVolumeUSB() [all …]
|
D | StorageManagerCrossProfileUSBTest.java | 78 storageVolumes.stream().filter(sv->sv.getPath().contains(mVolumeName)).findFirst(); in testGetStorageVolumeUSBWorkProfile() 81 + storageVolumes.stream().map(StorageVolume::getPath).collect(joining("\n"))) in testGetStorageVolumeUSBWorkProfile()
|
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/ |
D | IconTest.java | 108 verifyIconValidity(Icon.createWithFilePath(file.getPath())); in testFileIcon() 196 String filePath = file.toURI().getPath(); in testFileIcon_getType() 198 Icon icon = Icon.createWithFilePath(file.getPath()); in testFileIcon_getType() 200 assertEquals(filePath, icon.getUri().getPath()); in testFileIcon_getType() 204 assertEquals(filePath, icon.getUri().getPath()); in testFileIcon_getType() 208 assertEquals(filePath, icon.getUri().getPath()); in testFileIcon_getType() 220 String filePath = file.toURI().getPath(); in testAdaptiveFileIcon_getType() 224 assertEquals(filePath, icon.getUri().getPath()); in testAdaptiveFileIcon_getType() 228 assertEquals(filePath, icon.getUri().getPath()); in testAdaptiveFileIcon_getType()
|
/cts/tests/tests/gesture/src/android/gesture/cts/ |
D | GestureStrokeTest.java | 45 assertNull(emptyStroke.getPath()); in testGetPath_empty() 53 Path emptyPath = emptyStroke.getPath(); in testGetPath_singlePoint() 63 Path linePath = lineStroke.getPath(); in testGetPath_line()
|
/cts/tools/vm-tests-tf/build/src/util/build/ |
D | BuildStep.java | 45 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/hostsidetests/videoencodingminimum/src/android/videoqualityfloor/cts/ |
D | CtsVideoQualityFloorHostTest.java | 166 LogUtil.CLog.e("Unable to establish temp directory " + sHostWorkDir.getPath()); in setupTestEnv() 190 getDevice().pushDir(new File(sHostWorkDir.getPath() + "/json/"), deviceJsonDir)); in setupTestEnv() 192 getDevice().pushDir(new File(sHostWorkDir.getPath() + "/samples/"), in setupTestEnv() 223 LogUtil.CLog.e("Unable to establish output host directory : " + outHostPath.getPath()); in testEncoding() 228 + " to " + outHostPath.getPath(), getDevice().pullDir(outDevPath, outHostPath)); in testEncoding() 232 String jsonPath = sHostWorkDir.getPath() + "/json/" + mJsonName; in testEncoding() 263 new FileReader(sHostWorkDir.getPath() + "/" + outputVmafPath))) { in testEncoding() 307 LogUtil.CLog.i("Do we already have a copy of file " + destination.getPath()); in downloadFile() 309 LogUtil.CLog.i("Skipping re-download of file " + destination.getPath()); in downloadFile() 313 String cmd = "wget -O " + destination.getPath() + " " + url; in downloadFile()
|
/cts/tests/tests/content/src/android/content/cts/ |
D | ReadableFileReceiverActivity.java | 70 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()
|
/cts/hostsidetests/scopedstorage/general/src/android/scopedstorage/cts/general/ |
D | ScopedStorageDeviceTest.java | 454 getExternalFilesDir().getPath().replace(THIS_PACKAGE_NAME, "no.such.package")); in testCreateFileInOtherAppExternalDir() 465 getExternalFilesDir().getPath().replace(THIS_PACKAGE_NAME, "com.android.shell")); in testCreateFileInOtherAppExternalDir() 492 assertThat(deleteFileAs(APP_A_HAS_RES, videoFile.getPath())).isFalse(); in testReadWriteFilesInOtherAppExternalDir() 564 externalFilesDir.getPath().replace(THIS_PACKAGE_NAME, "no.such.package")); in testCreateAndDeleteEmptyDir() 566 externalFilesDir.getPath().replace(THIS_PACKAGE_NAME, "com.android.shell")); in testCreateAndDeleteEmptyDir() 577 assertThat(createFileAs(APP_B_NO_PERMS, mediaFile.getPath())).isTrue(); in testCantAccessOtherAppsContents() 578 assertThat(createFileAs(APP_B_NO_PERMS, nonMediaFile.getPath())).isTrue(); in testCantAccessOtherAppsContents() 590 deleteFileAsNoThrow(APP_B_NO_PERMS, nonMediaFile.getPath()); in testCantAccessOtherAppsContents() 591 deleteFileAsNoThrow(APP_B_NO_PERMS, mediaFile.getPath()); in testCantAccessOtherAppsContents() 603 assertThat(createFileAs(APP_B_NO_PERMS, mediaFile.getPath())).isTrue(); in testCantDeleteOtherAppsContents() [all …]
|
/cts/hostsidetests/mediapc/videoencodingquality/src/ |
D | CtsVideoEncodingQualityHostTest.java | 315 LogUtil.CLog.e("Unable to establish temp directory " + sHostWorkDir.getPath()); in setupTestEnv() 339 getDevice().pushDir(new File(sHostWorkDir.getPath() + "/json/"), deviceJsonDir)); in setupTestEnv() 341 getDevice().pushDir(new File(sHostWorkDir.getPath() + "/samples/"), in setupTestEnv() 398 LogUtil.CLog.e("Unable to establish output host directory : " + outHostPath.getPath()); in testEncoding() 403 + " to " + outHostPath.getPath(), getDevice().pullDir(outDevPath, outHostPath)); in testEncoding() 407 String jsonPath = sHostWorkDir.getPath() + "/json/" + mJsonName; in testEncoding() 418 try (FileWriter writer = new FileWriter(outHostPath.getPath() + "/" + "all_vmafs.txt")) { in testEncoding() 441 new FileReader(sHostWorkDir.getPath() + "/" + outputVmafPath))) { in testEncoding() 511 LogUtil.CLog.i("Do we already have a copy of file " + destination.getPath()); in downloadFile() 513 LogUtil.CLog.i("Skipping re-download of file " + destination.getPath()); in downloadFile() [all …]
|
/cts/tests/app/DownloadManagerApi28Test/src/android/app/cts/ |
D | DownloadManagerApi28Test.java | 159 Environment.DIRECTORY_DOWNLOADS), "file1.txt").getPath(), in testAddCompletedDownload_publicDirs() 161 Environment.DIRECTORY_DOCUMENTS), "file2.txt").getPath(), in testAddCompletedDownload_publicDirs() 206 assertSuccessfulDownload(downloadId, new File(downloadLocation.getPath())); in testDownloadManager_mediaStoreEntry() 235 Environment.DIRECTORY_DOWNLOADS), "file1.mp3").getPath(), in testAddCompletedDownload_mediaStoreEntry() 237 Environment.DIRECTORY_MUSIC), "file2.mp3").getPath(), in testAddCompletedDownload_mediaStoreEntry() 241 final File file = new File(Uri.parse(downloadLocation).getPath()); in testAddCompletedDownload_mediaStoreEntry()
|
/cts/tests/tests/os/src/android/os/cts/ |
D | StatFsTest.java | 30 StatFs stat = new StatFs(path.getPath()); in testStatFs() 47 stat.restat(path.getPath()); in testStatFs()
|
D | PatternMatcherTest.java | 70 assertEquals(expected1, mPatternMatcher.getPath()); in testGetPath() 75 assertEquals(expected2, mPatternMatcher.getPath()); in testGetPath()
|
/cts/common/device-side/bedstead/harrier/src/main/java/com/android/bedstead/harrier/ |
D | BedsteadRunResultsProvider.java | 45 if (uri.getPath().equals("/numTests")) { in query() 48 int target = Integer.parseInt(uri.getPath().substring(1)); in query()
|
/cts/tests/tests/slice/src/android/slice/cts/ |
D | SliceMetricsTest.java | 71 .addTaggedData(MetricsEvent.FIELD_SUBSLICE_PATH, SUB_SLICE_URI.getPath())); in testLogOnTouch() 77 logMaker.addTaggedData(MetricsEvent.FIELD_SLICE_PATH, BASE_URI.getPath()); in getLogMaker()
|
/cts/tests/tests/speech/src/android/speech/tts/cts/ |
D | TextToSpeechServiceTest.java | 110 UTTERANCE, createParams("mocktofile"), sampleFile.getPath()); in testSynthesizeToFile() 180 sampleFile.getPath())); in testMaxSpeechInputLength() 182 tts.synthesizeToFile(valid, createParams("mockToFile"), sampleFile.getPath())); in testMaxSpeechInputLength() 245 assertFalse(TextToSpeechWrapper.isSoundFile(sampleFile.getPath())); in testMediaPlayerFails() 249 assertFalse(TextToSpeechWrapper.isSoundFile(sampleFile.getPath())); in testMediaPlayerFails() 353 TextToSpeechWrapper.isSoundFile(file.getPath())); in verifySynthesisFile()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/sixdof/Utils/ |
D | ReportExporter.java | 62 storagePath = Environment.getExternalStorageDirectory().getPath(); in doInBackground() 88 return mContext.getString(R.string.report_saved, reportFile.getPath()); in doInBackground()
|
/cts/hostsidetests/compilation/src/android/compilation/cts/ |
D | AdbRootDependentCompilationTest.java | 77 public String getPath(String packageName) { in getPath() method in AdbRootDependentCompilationTest.ProfileLocation 160 mDevice.doesFileExist(ProfileLocation.REF.getPath(APPLICATION_PACKAGE))); in testCompile_curProfile() 292 mDevice.executeShellV2Command("rm -f " + ProfileLocation.REF.getPath(packageName)); in resetProfileState() 293 mDevice.executeShellV2Command("truncate -s 0 " + ProfileLocation.CUR.getPath(packageName)); in resetProfileState() 315 String targetPath = location.getPath(packageName); in writeSystemManagedProfile()
|