Home
last modified time | relevance | path

Searched refs:filePath (Results 1 – 25 of 54) sorted by relevance

123

/cts/tests/tests/mediastress/src/android/mediastress/cts/
DCodecTest.java86 public static int getDuration(String filePath) { in getDuration() argument
87 Log.v(TAG, "getDuration - " + filePath); in getDuration()
90 mp.setDataSource(filePath); in getDuration()
102 public static boolean getCurrentPosition(String filePath) { in getCurrentPosition() argument
103 Log.v(TAG, "GetCurrentPosition - " + filePath); in getCurrentPosition()
109 mp.setDataSource(filePath); in getCurrentPosition()
132 public static boolean seekTo(String filePath) { in seekTo() argument
133 Log.v(TAG, "seekTo " + filePath); in seekTo()
137 mp.setDataSource(filePath); in seekTo()
156 public static boolean setLooping(String filePath) { in setLooping() argument
[all …]
/cts/tests/tests/mediaediting/src/android/media/mediaediting/cts/
DExportTestResult.java37 @Nullable private String filePath; field in ExportTestResult.Builder
59 public Builder setFilePath(@Nullable String filePath) { in setFilePath() argument
60 this.filePath = filePath; in setFilePath()
125 exportResult, filePath, elapsedTimeMs, ssim, fallbackDetails, analysisException); in build()
133 @Nullable public final String filePath; field in ExportTestResult
168 .putOpt("filePath", filePath) in asJsonObject()
185 @Nullable String filePath, in ExportTestResult() argument
191 this.filePath = filePath; in ExportTestResult()
DVideoDecodingWrapper.java85 Context context, String filePath, int comparisonInterval, int maxImagesAllowed) in VideoDecodingWrapper() argument
91 if (filePath.contains(ASSET_FILE_SCHEME)) { in VideoDecodingWrapper()
93 context.getAssets().openFd(filePath.replace(ASSET_FILE_SCHEME, "")); in VideoDecodingWrapper()
97 mediaExtractor.setDataSource(filePath); in VideoDecodingWrapper()
DFileUtil.java43 Context context, @Nullable String filePath, @C.ColorTransfer int expectedColorTransfer) { in assertFileHasColorTransfer() argument
47 MetadataRetriever.retrieveMetadata(context, MediaItem.fromUri("file://" + filePath)) in assertFileHasColorTransfer()
DMediaEditingUtil.java264 public static Format getMuxedWidthHeight(String filePath) throws IOException { in getMuxedWidthHeight() argument
266 mediaExtractor.setDataSource(filePath); in getMuxedWidthHeight()
291 public static int getMuxedOutputProfile(String filePath) throws IOException { in getMuxedOutputProfile() argument
293 mediaExtractor.setDataSource(filePath); in getMuxedOutputProfile()
DTransformReverseTransformIdentityTest.java228 Format muxedOutputFormat = MediaEditingUtil.getMuxedWidthHeight(transformationResult.filePath); in transformTest()
243 MediaItem.fromUri(transformationResult.filePath)).setEffects(reverseVideoEffects) in transformTest()
250 muxedOutputFormat = MediaEditingUtil.getMuxedWidthHeight(reverseTransformationResult.filePath); in transformTest()
256 reverseTransformationResult.filePath); in transformTest()
/cts/tools/cts-api-coverage/src/com/android/cts/apimap/
DFileUtils.java36 Path filePath = Paths.get(inputFile); in getJarFile() local
38 if (Files.exists(filePath)) { in getJarFile()
39 return filePath; in getJarFile()
56 "%s/%s/%s.jar", filePath.getParent(), jarDir, moduleName)); in getJarFile()
73 Path filePath = Paths.get(inputFile); in getJarFilesFromFile() local
74 List<String> lines = Files.readAllLines(filePath); in getJarFilesFromFile()
/cts/tools/release-parser/src/com/android/cts/releaseparser/
DDepPrinter.java212 String filePath = dep; in printDep() local
218 filePath = "VENDOR/lib/egl/" + dep.substring(0, idx); in printDep()
220 filePath = "VENDOR/lib64/egl/" + dep.substring(0, idx); in printDep()
222 depEntry = mTreeEntryMap.tailMap(filePath, false).firstEntry().getValue(); in printDep()
248 filePath = String.format("SYSTEM/lib/%s", dep); in printDep()
250 filePath = String.format("SYSTEM/lib64/%s", dep); in printDep()
253 depEntry = mRelContent.getEntries().get(filePath); in printDep()
258 filePath = String.format("VENDOR/lib/%s", dep); in printDep()
260 filePath = String.format("VENDOR/lib64/%s", dep); in printDep()
262 depEntry = mRelContent.getEntries().get(filePath); in printDep()
[all …]
DDepCsvPrinter.java223 String filePath = dep; in printDep() local
229 filePath = "VENDOR/lib/egl/" + dep.substring(0, idx); in printDep()
231 filePath = "VENDOR/lib64/egl/" + dep.substring(0, idx); in printDep()
233 depEntry = mTreeEntryMap.tailMap(filePath, false).firstEntry().getValue(); in printDep()
258 filePath = String.format("SYSTEM/lib/%s", dep); in printDep()
260 filePath = String.format("SYSTEM/lib64/%s", dep); in printDep()
263 depEntry = mRelContent.getEntries().get(filePath); in printDep()
268 filePath = String.format("VENDOR/lib/%s", dep); in printDep()
270 filePath = String.format("VENDOR/lib64/%s", dep); in printDep()
272 depEntry = mRelContent.getEntries().get(filePath); in printDep()
[all …]
/cts/tests/camera/src/android/hardware/camera2/cts/
DNativeImageReaderTest.java73 private static native boolean testJpegNative(String filePath, String overrideCameraId); in testJpegNative() argument
74 private static native boolean testY8Native(String filePath, String overrideCameraId); in testY8Native() argument
75 private static native boolean testHeicNative(String filePath, String overrideCameraId); in testHeicNative() argument
76 private static native boolean testDepthJpegNative(String filePath, String overrideCameraId); in testDepthJpegNative() argument
DNativeStillCaptureTest.java55 String filePath, Surface previewSurface, String overrideCameraId); in testStillCaptureNative() argument
/cts/tests/tests/security/src/android/security/cts/
DAndroidFutureTest.java43 String filePath = "/data/system/" + System.currentTimeMillis(); in testAndroidFutureReadThrowable() local
44 String argAfterNewLine = "%h" + filePath.replaceFirst("^/+", ""); in testAndroidFutureReadThrowable()
47 assertFalse(filePath + " should not be created", new File(filePath).exists()); in testAndroidFutureReadThrowable()
DParcelableExceptionTest.java46 String filePath = "/data/system/" + System.currentTimeMillis(); in test_CVE_2017_0871() local
47 File file = new File(filePath); in test_CVE_2017_0871()
48 Bundle bundle = createBundle("java.io.FileOutputStream", filePath); in test_CVE_2017_0871()
/cts/tests/tests/media/decoder/src/android/media/decoder/cts/
DDecoderSetup.java35 String filePath = WorkDir.getMediaDirString() + fileName; in createMediaExtractor() local
36 Preconditions.assertTestFileExists(filePath); in createMediaExtractor()
38 mediaExtractor.setDataSource(filePath); in createMediaExtractor()
/cts/hostsidetests/appsecurity/test-apps/ApkVerityTestApp/jni/
Dandroid_appsecurity_cts_apkveritytestapp_InstalledFilesCheck.cpp37 JNIEnv *env, jobject /*thiz*/, jstring filePath) { in Java_android_appsecurity_cts_apkveritytestapp_InstalledFilesCheck_hasFsverityNative() argument
38 ScopedUtfChars path(env, filePath); in Java_android_appsecurity_cts_apkveritytestapp_InstalledFilesCheck_hasFsverityNative()
/cts/tests/tests/content/src/android/content/cts/
DImageCaptureActivity.java90 Uri filePath = clipData.getItemAt(0).getUri(); in getFileFromIntent() local
91 if (filePath == null) { in getFileFromIntent()
97 return new File(filePath.getPath()); in getFileFromIntent()
DReadableFileReceiverActivity.java92 Uri filePath = clipData.getItemAt(i).getUri(); in getFilesFromIntent() local
93 if (filePath == null) { in getFilesFromIntent()
98 result.add(new File(filePath.getPath())); in getFilesFromIntent()
/cts/common/device-side/device-info/tests/src/com/android/compatibility/common/deviceinfo/
DDeviceInfoTest.java49 private String readFile(String filePath) throws IOException { in readFile() argument
51 new FileInputStream(filePath), "UTF-8"); in readFile()
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/
DIconTest.java196 String filePath = file.toURI().getPath(); in testFileIcon_getType() local
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() local
224 assertEquals(filePath, icon.getUri().getPath()); in testAdaptiveFileIcon_getType()
228 assertEquals(filePath, icon.getUri().getPath()); in testAdaptiveFileIcon_getType()
/cts/hostsidetests/edi/src/android/edi/cts/
DLibraryDeviceInfo.java78 private String getSha1(String filePath) { in getSha1() argument
81 String out = mDevice.executeShellCommand("sha1sum " + filePath); in getSha1()
/cts/hostsidetests/scopedstorage/host/src/android/scopedstorage/cts/host/
DLegacyStorageHostTest.java77 private void createFileAsShell(String filePath) throws Exception { in createFileAsShell() argument
78 executeShellCommand("touch %s", filePath); in createFileAsShell()
79 assertThat(getDevice().doesFileExist(filePath)).isTrue(); in createFileAsShell()
/cts/hostsidetests/os/src/android/os/cts/
DProcfsHostTests.java122 String filePath = "/proc/" + mTestAppPid + "/task/" + tid + "/stat"; in testProcTidStat() local
124 readAndCheckFile(filePath, "cat ", PID_TID_STAT_PATTERN); in testProcTidStat()
128 if (mDevice.doesFileExist(filePath)) { in testProcTidStat()
/cts/tests/tests/systemui/src/android/systemui/cts/
DLightBarTestBase.java72 Path filePath = DUMP_PATH.resolve(name + ".png"); in dumpBitmap() local
73 Log.e(TAG, "Dumping failed bitmap to " + filePath); in dumpBitmap()
76 fileStream = new FileOutputStream(filePath.toFile()); in dumpBitmap()
/cts/libs/install/src/android/cts/install/lib/host/
DInstallUtilsHost.java173 public void waitForFileDeleted(String filePath, Duration timeout) throws Exception { in waitForFileDeleted() argument
176 if (!getTestInfo().getDevice().doesFileExist(filePath)) { in waitForFileDeleted()
184 throw new AssertionError("Timed out waiting for " + filePath + " to be deleted"); in waitForFileDeleted()
/cts/tests/camera/utils/src/android/hardware/camera2/cts/
DCameraTestUtils.java2631 String filePath) { in validateImage() argument
2632 validateImage(image, width, height, format, filePath, /*colorSpace*/ null); in validateImage()
2649 String filePath, ColorSpace colorSpace) { in validateImage() argument
2671 validateJpegData(data, width, height, filePath, colorSpace); in validateImage()
2674 validateJpegData(data, width, height, filePath, null /*colorSpace*/, in validateImage()
2678 validateP010Data(data, width, height, format, image.getTimestamp(), filePath); in validateImage()
2682 validateYuvData(data, width, height, format, image.getTimestamp(), filePath); in validateImage()
2685 validateRaw16Data(data, width, height, format, image.getTimestamp(), filePath); in validateImage()
2688 validateDepth16Data(data, width, height, format, image.getTimestamp(), filePath); in validateImage()
2691 … validateDepthPointCloudData(data, width, height, format, image.getTimestamp(), filePath); in validateImage()
[all …]

123