Home
last modified time | relevance | path

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

/cts/tests/tests/mediastress/src/android/mediastress/cts/
DCodecTest.java80 public static int getDuration(String filePath) { in getDuration() argument
81 Log.v(TAG, "getDuration - " + filePath); in getDuration()
84 mp.setDataSource(filePath); in getDuration()
96 public static boolean getCurrentPosition(String filePath) { in getCurrentPosition() argument
97 Log.v(TAG, "GetCurrentPosition - " + filePath); in getCurrentPosition()
103 mp.setDataSource(filePath); in getCurrentPosition()
126 public static boolean seekTo(String filePath) { in seekTo() argument
127 Log.v(TAG, "seekTo " + filePath); in seekTo()
131 mp.setDataSource(filePath); in seekTo()
150 public static boolean setLooping(String filePath) { in setLooping() argument
[all …]
/cts/tools/release-parser/src/com/android/cts/releaseparser/
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 …]
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 …]
/cts/tests/camera/src/android/hardware/camera2/cts/
DNativeImageReaderTest.java61 private static native boolean testJpegNative(String filePath); in testJpegNative() argument
62 private static native boolean testY8Native(String filePath); in testY8Native() argument
63 private static native boolean testHeicNative(String filePath); in testHeicNative() argument
64 private static native boolean testDepthJpegNative(String filePath); in testDepthJpegNative() argument
DNativeStillCaptureTest.java51 String filePath, Surface previewSurface); in testStillCaptureNative() argument
DDngCreatorTest.java275 String filePath = mDebugFileNameBase + "/camera_thumb_" + deviceId + "_" + in testSingleImageThumbnail() local
278 fileStream = new FileOutputStream(filePath); in testSingleImageThumbnail()
283 Log.v(TAG, "Test DNG file for camera " + deviceId + " saved to " + filePath); in testSingleImageThumbnail()
289 ExifInterface exifInterface = new ExifInterface(filePath); in testSingleImageThumbnail()
331 File dngFile = new File(filePath); in testSingleImageThumbnail()
/cts/tests/tests/security/src/android/security/cts/
DParcelableExceptionTest.java38 String filePath = "/data/system/" + System.currentTimeMillis(); in test_CVE_2017_0871() local
39 File file = new File(filePath); in test_CVE_2017_0871()
40 Bundle bundle = createBundle("java.io.FileOutputStream", filePath); in test_CVE_2017_0871()
/cts/tests/tests/net/src/android/net/cts/
DNetworkWatchlistTest.java118 private void saveResourceToFile(String res, String filePath) throws IOException { in saveResourceToFile() argument
120 ParcelFileDescriptor stdin = pipeFromStdin(filePath); in saveResourceToFile()
125 private ParcelFileDescriptor pipeFromStdin(String filePath) { in pipeFromStdin() argument
128 return runRwCommand("cp /proc/self/fd/0 " + filePath)[1]; in pipeFromStdin()
/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/camera/utils/src/android/hardware/camera2/cts/
DCameraTestUtils.java1554 String filePath) { in validateImage() argument
1572 validateJpegData(data, width, height, filePath); in validateImage()
1576 validateYuvData(data, width, height, format, image.getTimestamp(), filePath); in validateImage()
1579 validateRaw16Data(data, width, height, format, image.getTimestamp(), filePath); in validateImage()
1582 validateDepth16Data(data, width, height, format, image.getTimestamp(), filePath); in validateImage()
1585 … validateDepthPointCloudData(data, width, height, format, image.getTimestamp(), filePath); in validateImage()
1588 validateRawPrivateData(data, width, height, image.getTimestamp(), filePath); in validateImage()
1591 validateY8Data(data, width, height, format, image.getTimestamp(), filePath); in validateImage()
1594 validateHeicData(data, width, height, filePath); in validateImage()
1653 private static void validateJpegData(byte[] jpegData, int width, int height, String filePath) { in validateJpegData() argument
[all …]
/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/tests/tests/graphics/src/android/graphics/drawable/cts/
DIconTest.java157 String filePath = file.toURI().getPath(); in testFileIcon_getType() local
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/hostsidetests/security/src/android/cts/security/
DKernelConfigTest.java197 private boolean doesFileExist(String filePath) throws Exception { in doesFileExist() argument
198 String lsGrep = mDevice.executeShellCommand(String.format("ls \"%s\"", filePath)); in doesFileExist()
199 return lsGrep.trim().equals(filePath); in doesFileExist()
/cts/tests/tests/systemui/src/android/systemui/cts/
DLightBarTestBase.java77 Path filePath = DUMP_PATH.resolve(name + ".png"); in dumpBitmap() local
78 Log.e(TAG, "Dumping failed bitmap to " + filePath); in dumpBitmap()
81 fileStream = new FileOutputStream(filePath.toFile()); in dumpBitmap()
/cts/hostsidetests/devicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/
DCurrentApiHelper.java125 private static Document parseXmlFile(String filePath) throws Exception { in parseXmlFile() argument
126 File apiFile = new File(filePath); in parseXmlFile()
/cts/tests/tests/graphics/jni/
DVulkanPreTransformTestHelpers.h85 VkTestResult loadShaderFromFile(const char* filePath, VkShaderModule* const outShader);
DVulkanPreTransformTestHelpers.cpp538 VkTestResult Renderer::loadShaderFromFile(const char* filePath, VkShaderModule* const outShader) { in loadShaderFromFile() argument
539 ASSERT(filePath); in loadShaderFromFile()
541 AAsset* file = AAssetManager_open(mAssetManager, filePath, AASSET_MODE_BUFFER); in loadShaderFromFile()
/cts/tests/app/src/android/app/cts/
DDownloadManagerTestBase.java155 protected static String readFromRawFile(String filePath) throws Exception { in readFromRawFile() argument
156 Log.d(TAG, "Reading form file: " + filePath); in readFromRawFile()
157 return runShellCommand("cat " + filePath); in readFromRawFile()
/cts/tests/tests/speech/src/android/speech/tts/cts/
DTextToSpeechWrapper.java368 public static boolean isSoundFile(String filePath) { in isSoundFile() argument
374 mp.setDataSource(filePath); in isSoundFile()
/cts/tests/tests/media/src/android/media/cts/
DImageReaderDecoderTest.java607 Image image, int width, int height, int format, String filePath) { in validateImage() argument
610 Log.v(TAG, "Image " + filePath + " Info:"); in validateImage()
627 if (VERBOSE && filePath != null) { in validateImage()
628 dumpFile(filePath, data); in validateImage()
DMediaRecorderTest.java1114 for (String filePath : recordFileList) { in testRecordExceedFileSizeLimit()
1115 checkOutputFileSize(filePath, fileSize, tolerance); in testRecordExceedFileSizeLimit()
/cts/tools/utils/
DbuildCts.py34 def ReadFileLines(filePath): argument
36 f = open(filePath, 'r');