/cts/tests/tests/mediastress/src/android/mediastress/cts/ |
D | CodecTest.java | 81 public static int getDuration(String filePath) { in getDuration() argument 82 Log.v(TAG, "getDuration - " + filePath); in getDuration() 85 mp.setDataSource(filePath); in getDuration() 97 public static boolean getCurrentPosition(String filePath) { in getCurrentPosition() argument 98 Log.v(TAG, "GetCurrentPosition - " + filePath); in getCurrentPosition() 104 mp.setDataSource(filePath); in getCurrentPosition() 127 public static boolean seekTo(String filePath) { in seekTo() argument 128 Log.v(TAG, "seekTo " + filePath); in seekTo() 132 mp.setDataSource(filePath); in seekTo() 151 public static boolean setLooping(String filePath) { in setLooping() argument [all …]
|
/cts/tools/release-parser/src/com/android/cts/releaseparser/ |
D | DepCsvPrinter.java | 223 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 …]
|
D | DepPrinter.java | 212 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/ |
D | NativeImageReaderTest.java | 73 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
|
D | NativeStillCaptureTest.java | 55 String filePath, Surface previewSurface, String overrideCameraId); in testStillCaptureNative() argument
|
/cts/tests/tests/security/src/android/security/cts/ |
D | AndroidFutureTest.java | 42 String filePath = "/data/system/" + System.currentTimeMillis(); in testAndroidFutureReadThrowable() local 43 String argAfterNewLine = "%h" + filePath.replaceFirst("^/+", ""); in testAndroidFutureReadThrowable() 46 assertFalse(filePath + " should not be created", new File(filePath).exists()); in testAndroidFutureReadThrowable()
|
D | ParcelableExceptionTest.java | 37 String filePath = "/data/system/" + System.currentTimeMillis(); in test_CVE_2017_0871() local 38 File file = new File(filePath); in test_CVE_2017_0871() 39 Bundle bundle = createBundle("java.io.FileOutputStream", filePath); in test_CVE_2017_0871()
|
/cts/hostsidetests/appsecurity/test-apps/ApkVerityTestApp/jni/ |
D | android_appsecurity_cts_apkveritytestapp_InstalledFilesCheck.cpp | 35 JNIEnv *env, jobject /*thiz*/, jstring filePath) { in Java_android_appsecurity_cts_apkveritytestapp_InstalledFilesCheck_hasFsverityNative() argument 36 ScopedUtfChars path(env, filePath); in Java_android_appsecurity_cts_apkveritytestapp_InstalledFilesCheck_hasFsverityNative()
|
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/ |
D | IconTest.java | 187 String filePath = file.toURI().getPath(); in testFileIcon_getType() local 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() local 215 assertEquals(filePath, icon.getUri().getPath()); in testAdaptiveFileIcon_getType() 219 assertEquals(filePath, icon.getUri().getPath()); in testAdaptiveFileIcon_getType()
|
/cts/tests/tests/content/src/android/content/cts/ |
D | ImageCaptureActivity.java | 90 Uri filePath = clipData.getItemAt(0).getUri(); in getFileFromIntent() local 91 if (filePath == null) { in getFileFromIntent() 97 return new File(filePath.getPath()); in getFileFromIntent()
|
D | ReadableFileReceiverActivity.java | 92 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/ |
D | DeviceInfoTest.java | 49 private String readFile(String filePath) throws IOException { in readFile() argument 51 new FileInputStream(filePath), "UTF-8"); in readFile()
|
/cts/hostsidetests/scopedstorage/host/src/android/scopedstorage/cts/host/ |
D | LegacyStorageHostTest.java | 75 private void createFileAsShell(String filePath) throws Exception { in createFileAsShell() argument 76 executeShellCommand("touch %s", filePath); in createFileAsShell() 77 assertThat(getDevice().doesFileExist(filePath)).isTrue(); in createFileAsShell()
|
/cts/hostsidetests/edi/src/android/edi/cts/ |
D | LibraryDeviceInfo.java | 78 private String getSha1(String filePath) { in getSha1() argument 81 String out = mDevice.executeShellCommand("sha1sum " + filePath); in getSha1()
|
/cts/hostsidetests/scopedstorage/ScopedStorageTestHelper/src/android/scopedstorage/cts/ |
D | ScopedStorageTestHelper.java | 192 final String filePath = getIntent().getStringExtra(INTENT_EXTRA_PATH); in sendMetadata() local 194 intent.putExtra(queryType, getExifMetadata(new File(filePath))); in sendMetadata() 249 final String filePath = getIntent().getStringExtra(INTENT_EXTRA_PATH); in accessFile() local 250 final File file = new File(filePath); in accessFile() 315 final String filePath = getIntent().getStringExtra(INTENT_EXTRA_PATH); in checkDatabaseRowExists() local 317 getFileRowIdFromDatabase(getContentResolver(), new File(filePath)) != -1; in checkDatabaseRowExists()
|
/cts/hostsidetests/os/src/android/os/cts/ |
D | ProcfsHostTests.java | 121 String filePath = "/proc/" + mTestAppPid + "/task/" + tid + "/stat"; in testProcTidStat() local 123 readAndCheckFile(filePath, "cat ", PID_TID_STAT_PATTERN); in testProcTidStat() 127 if (mDevice.doesFileExist(filePath)) { in testProcTidStat()
|
/cts/tests/camera/utils/src/android/hardware/camera2/cts/ |
D | CameraTestUtils.java | 2061 String filePath) { in validateImage() argument 2079 validateJpegData(data, width, height, filePath); in validateImage() 2082 validateP010Data(data, width, height, format, image.getTimestamp(), filePath); in validateImage() 2086 validateYuvData(data, width, height, format, image.getTimestamp(), filePath); in validateImage() 2089 validateRaw16Data(data, width, height, format, image.getTimestamp(), filePath); in validateImage() 2092 validateDepth16Data(data, width, height, format, image.getTimestamp(), filePath); in validateImage() 2095 … validateDepthPointCloudData(data, width, height, format, image.getTimestamp(), filePath); in validateImage() 2098 validateRawPrivateData(data, width, height, image.getTimestamp(), filePath); in validateImage() 2101 validateY8Data(data, width, height, format, image.getTimestamp(), filePath); in validateImage() 2104 validateHeicData(data, width, height, filePath); in validateImage() [all …]
|
/cts/tests/tests/systemui/src/android/systemui/cts/ |
D | LightBarTestBase.java | 77 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/libs/install/src/android/cts/install/lib/host/ |
D | InstallUtilsHost.java | 159 public void waitForFileDeleted(String filePath, Duration timeout) throws Exception { in waitForFileDeleted() argument 162 if (!mTest.getDevice().doesFileExist(filePath)) { in waitForFileDeleted() 170 throw new AssertionError("Timed out waiting for " + filePath + " to be deleted"); in waitForFileDeleted()
|
/cts/hostsidetests/security/src/android/security/cts/ |
D | KernelConfigTest.java | 219 private boolean doesFileExist(String filePath) throws Exception { in doesFileExist() argument 220 String lsGrep = mDevice.executeShellCommand(String.format("ls \"%s\"", filePath)); in doesFileExist() 221 return lsGrep.trim().equals(filePath); in doesFileExist()
|
/cts/hostsidetests/devicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/ |
D | CurrentApiHelper.java | 125 private static Document parseXmlFile(String filePath) throws Exception { in parseXmlFile() argument 126 File apiFile = new File(filePath); in parseXmlFile()
|
/cts/tests/tests/provider/src/android/provider/cts/ |
D | ProviderTestUtils.java | 473 String filePath; in getRawFile() local 477 filePath = c.getString(0); in getRawFile() 479 if (filePath != null) { in getRawFile() 480 return new File(filePath); in getRawFile()
|
/cts/tests/tests/graphics/jni/ |
D | VulkanPreTransformTestHelpers.h | 86 VkTestResult loadShaderFromFile(const char* filePath, VkShaderModule* const outShader);
|
/cts/tests/tests/speech/src/android/speech/tts/cts/ |
D | TextToSpeechWrapper.java | 368 public static boolean isSoundFile(String filePath) { in isSoundFile() argument 374 mp.setDataSource(filePath); in isSoundFile()
|
/cts/tests/app/src/android/app/cts/ |
D | DownloadManagerTestBase.java | 263 protected static String readFromRawFile(String filePath) throws Exception { in readFromRawFile() argument 264 Log.d(TAG, "Reading form file: " + filePath); in readFromRawFile() 266 ParcelFileDescriptor.open(new File(filePath), ParcelFileDescriptor.MODE_READ_ONLY)); in readFromRawFile()
|