/aosp14/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/ |
H A D | CodecTest.java | 91 mp.setDataSource(filePath); in getDuration() 110 mp.setDataSource(filePath); in getCurrentPosition() 139 Log.v(TAG, "seekTo " + filePath); in seekTo() 143 mp.setDataSource(filePath); in seekTo() 170 mp.setDataSource(filePath); in setLooping() 207 mp.setDataSource(filePath); in pause() 232 mp.setDataSource(filePath); in prepareStopRelease() 241 mp.setDataSource(filePath); in preparePauseRelease() 335 mp.setDataSource(filePath); in videoSeekTo() 382 mp.setDataSource(filePath); in seekToEnd() [all …]
|
/aosp14/frameworks/base/core/tests/coretests/src/android/os/storage/ |
H A D | StorageManagerIntegrationTest.java | 39 String filePath = file.getAbsolutePath(); in testMountSingleObb() local 40 mountObb(filePath); in testMountSingleObb() 41 verifyObb1Contents(filePath); in testMountSingleObb() 42 unmountObb(filePath, DONT_FORCE); in testMountSingleObb() 91 String filePath = file.getAbsolutePath(); in testMountUnsignedObb() local 106 String filePath = file.getAbsolutePath(); in testMountBadPackageNameObb() local 116 String filePath = file.getAbsolutePath(); in testRemountObb() local 117 mountObb(filePath); in testRemountObb() 118 verifyObb1Contents(filePath); in testRemountObb() 120 verifyObb1Contents(filePath); in testRemountObb() [all …]
|
H A D | StorageManagerBaseTest.java | 487 protected String doWaitForPath(String filePath) { in doWaitForPath() argument 491 assertTrue("OBB " + filePath + " is not currently mounted!", mSm.isObbMounted(filePath)); in doWaitForPath() 497 fail("Timed out waiting to get path of OBB file " + filePath); in doWaitForPath() 502 path = mSm.getMountedObbPath(filePath); in doWaitForPath() 515 protected void verifyObb1Contents(String filePath) { in verifyObb1Contents() argument 517 path = doWaitForPath(filePath); in verifyObb1Contents()
|
/aosp14/frameworks/base/core/java/com/android/internal/security/ |
H A D | VerityUtils.java | 71 public static String getFsveritySignatureFilePath(String filePath) { in getFsveritySignatureFilePath() argument 72 return filePath + FSVERITY_SIGNATURE_FILE_EXTENSION; in getFsveritySignatureFilePath() 77 int errno = enableFsverityNative(filePath); in setUpFsverity() 94 public static boolean hasFsverity(@NonNull String filePath) { in hasFsverity() argument 95 int retval = statxForFsverityNative(filePath); in hasFsverity() 98 + filePath); in hasFsverity() 197 public static byte[] getFsverityDigest(@NonNull String filePath) { in getFsverityDigest() argument 199 int retval = measureFsverityNative(filePath, result); in getFsverityDigest() 222 private static native int enableFsverityNative(@NonNull String filePath); in enableFsverityNative() argument 224 private static native int measureFsverityNative(@NonNull String filePath, in measureFsverityNative() argument [all …]
|
/aosp14/frameworks/base/core/java/android/content/res/ |
H A D | ObbScanner.java | 38 public static ObbInfo getObbInfo(String filePath) throws IOException { in getObbInfo() argument 39 if (filePath == null) { in getObbInfo() 43 final File obbFile = new File(filePath); in getObbInfo() 45 throw new IllegalArgumentException("OBB file does not exist: " + filePath); in getObbInfo() 61 private native static void getObbInfo_native(String filePath, ObbInfo obbInfo) in getObbInfo_native() argument
|
/aosp14/frameworks/base/services/core/java/com/android/server/ |
H A D | ResourcePressureUtil.java | 43 private static String readResourcePsiState(String filePath) { in readResourcePsiState() argument 46 if (new File(filePath).exists()) { in readResourcePsiState() 47 contents.append("----- Output from " + filePath + " -----\n"); in readResourcePsiState() 48 contents.append(IoUtils.readFileAsString(filePath)); in readResourcePsiState() 49 contents.append("----- End output from " + filePath + " -----\n"); in readResourcePsiState() 52 Slog.e(TAG, " could not read " + filePath, e); in readResourcePsiState()
|
/aosp14/frameworks/base/packages/SystemUI/scripts/token_alignment/ |
H A D | index.ts | 155 const filePath = `${repoPath}/${locaFilePath}`; 157 const doc = await FileIO.loadXML(filePath); 165 await FileIO.saveFile(DOM.XMLDocToString(doc), filePath); 198 const filePath = `${repoPath}/${locaFilePath}`; 199 const doc = await FileIO.loadXML(filePath); 206 await FileIO.saveFile(DOM.XMLDocToString(doc), filePath); 231 const filePath = `${repoPath}/${locaFilePath}`; 232 const fileContent = await FileIO.loadFileAsText(filePath); 234 await FileIO.saveFile(str, filePath);
|
/aosp14/frameworks/base/services/core/java/com/android/server/pm/dex/ |
H A D | DynamicCodeLogger.java | 109 String filePath = fileEntry.getKey(); in logDynamicCodeLoading() local 141 if (fileIsUnder(filePath, appInfo.credentialProtectedDataDir)) { in logDynamicCodeLoading() 143 } else if (fileIsUnder(filePath, appInfo.deviceProtectedDataDir)) { in logDynamicCodeLoading() 146 Slog.e(TAG, "Could not infer CE/DE storage for path " + filePath); in logDynamicCodeLoading() 147 needWrite |= mPackageDynamicCodeLoading.removeFile(packageName, filePath, userId); in logDynamicCodeLoading() 157 hash = mInstaller.hashSecondaryDexFile(filePath, packageName, appInfo.uid, in logDynamicCodeLoading() 160 Slog.e(TAG, "Got InstallerException when hashing file " + filePath in logDynamicCodeLoading() 167 String fileName = new File(filePath).getName(); in logDynamicCodeLoading() 174 Slog.d(TAG, "Got no hash for " + filePath); in logDynamicCodeLoading() 203 private boolean fileIsUnder(String filePath, String directoryPath) { in fileIsUnder() argument [all …]
|
/aosp14/frameworks/base/core/jni/ |
H A D | com_android_internal_security_VerityUtils.cpp | 59 int enableFsverity(JNIEnv *env, jobject clazz, jstring filePath) { in enableFsverity() argument 60 ScopedUtfChars path(env, filePath); in enableFsverity() 70 int statxForFsverity(JNIEnv *env, jobject /* clazz */, jstring filePath) { in statxForFsverity() argument 71 ScopedUtfChars path(env, filePath); in statxForFsverity() 100 int measureFsverity(JNIEnv *env, jobject /* clazz */, jstring filePath, jbyteArray digest) { in measureFsverity() argument 108 ScopedUtfChars path(env, filePath); in measureFsverity()
|
H A D | com_android_internal_content_F2fsUtils.cpp | 48 ScopedUtfChars filePath(env, path); in com_android_internal_content_F2fsUtils_nativeReleaseCompressedBlocks() local 50 android::base::unique_fd fd(open(filePath.c_str(), O_RDONLY | O_CLOEXEC, 0)); in com_android_internal_content_F2fsUtils_nativeReleaseCompressedBlocks() 52 ALOGW("Failed to open file: %s (%d)\n", filePath.c_str(), errno); in com_android_internal_content_F2fsUtils_nativeReleaseCompressedBlocks() 59 ALOGW("Failed to get flags for file: %s (%d)\n", filePath.c_str(), errno); in com_android_internal_content_F2fsUtils_nativeReleaseCompressedBlocks()
|
H A D | android_content_res_ObbScanner.cpp | 44 const char* filePath = env->GetStringUTFChars(file, NULL); in android_content_res_ObbScanner_getObbInfo() local 47 if (!obb->readFrom(filePath)) { in android_content_res_ObbScanner_getObbInfo() 48 env->ReleaseStringUTFChars(file, filePath); in android_content_res_ObbScanner_getObbInfo() 53 env->ReleaseStringUTFChars(file, filePath); in android_content_res_ObbScanner_getObbInfo()
|
H A D | com_android_internal_content_NativeLibraryHelper.cpp | 62 isFileDifferent(const char* filePath, uint32_t fileSize, time_t modifiedTime, in isFileDifferent() argument 65 if (lstat64(filePath, st) < 0) { in isFileDifferent() 67 ALOGV("Couldn't stat %s, copying: %s\n", filePath, strerror(errno)); in isFileDifferent() 85 int fd = TEMP_FAILURE_RETRY(open(filePath, O_RDONLY | O_CLOEXEC)); in isFileDifferent() 87 ALOGV("Couldn't open file %s: %s", filePath, strerror(errno)); in isFileDifferent() 101 ALOGV("%s: crc = %lx, zipCrc = %" PRIu32 "\n", filePath, crc, zipCrc); in isFileDifferent() 493 ScopedUtfChars filePath(env, apkPath); in com_android_internal_content_NativeLibraryHelper_openApk() local 494 ZipFileRO* zipFile = ZipFileRO::open(filePath.c_str()); in com_android_internal_content_NativeLibraryHelper_openApk()
|
/aosp14/frameworks/base/services/tests/PackageManagerServiceTests/host/src/com/android/server/pm/test/ |
H A D | InvalidNewSystemAppTest.kt | 53 private val filePath = HostUtils.makePathForApk("PackageManagerTestApp.apk", Partition.PRODUCT) regex 59 preparer.deleteFile(filePath.parent.toString()) 66 preparer.pushResourceFile(VERSION_ONE, filePath.toString()) 74 preparer.deleteFile(filePath.toString()) 75 .pushResourceFile(VERSION_THREE_INVALID, filePath.toString())
|
H A D | FactoryPackageTest.kt | 37 private val filePath = regex 44 device.deleteFile(filePath.parent.toString()) 51 preparer.pushResourceFile(VERSION_ONE, filePath.toString())
|
/aosp14/frameworks/base/services/core/java/com/android/server/audio/ |
H A D | SoundEffectsHelper.java | 215 String filePath = getResourceFilePath(res); in onLoadSoundEffects() local 216 int sampleId = mSoundPool.load(filePath, 0); in onLoadSoundEffects() 223 Log.w(TAG, "SoundPool could not load file: " + filePath); in onLoadSoundEffects() 275 String filePath = getResourceFilePath(res); in onPlaySoundEffect() local 276 mediaPlayer.setDataSource(filePath); in onPlaySoundEffect() 328 if (!new File(filePath).isFile()) { in getResourceFilePath() 331 return filePath; in getResourceFilePath() 539 String filePath; in onLoadComplete() local 541 filePath = getResourceFilePath(res); in onLoadComplete() 543 filePath = "with unknown sample ID " + sampleId; in onLoadComplete() [all …]
|
/aosp14/frameworks/base/tools/protologtool/src/com/android/protolog/tool/ |
H A D | ParsingContext.kt | 21 data class ParsingContext(val filePath: String, val lineNumber: Int) { 22 constructor(filePath: String, node: Node) 23 : this(filePath, if (node.range.isPresent) node.range.get().begin.line else -1)
|
/aosp14/frameworks/base/services/core/java/com/android/server/wm/ |
H A D | TaskPersister.java | 220 void saveImage(Bitmap image, String filePath) { in saveImage() argument 224 Slog.d(TAG, "saveImage: filePath=" + filePath + " now=" in saveImage() 229 Bitmap getTaskDescriptionIcon(String filePath) { in getTaskDescriptionIcon() argument 231 final Bitmap icon = getImageFromWriteQueue(filePath); in getTaskDescriptionIcon() 235 return restoreImage(filePath); in getTaskDescriptionIcon() 238 private Bitmap getImageFromWriteQueue(String filePath) { in getImageFromWriteQueue() argument 511 File parentDir = new File(filePath).getParentFile(); in createParentDirectory() 600 ImageWriteQueueItem(String filePath, Bitmap image) { in ImageWriteQueueItem() argument 601 mFilePath = filePath; in ImageWriteQueueItem() 607 final String filePath = mFilePath; in process() local [all …]
|
/aosp14/frameworks/base/core/java/android/app/backup/ |
H A D | BackupAgent.java | 708 String filePath; in fullBackupFile() local 749 filePath = file.getCanonicalPath(); in fullBackupFile() 755 if (filePath.startsWith(cacheDir) in fullBackupFile() 756 || filePath.startsWith(codeCacheDir) in fullBackupFile() 757 || filePath.startsWith(nbFilesDir) in fullBackupFile() 761 || filePath.startsWith(libDir)) { in fullBackupFile() 768 if (filePath.startsWith(dbDir)) { in fullBackupFile() 771 } else if (filePath.startsWith(spDir)) { in fullBackupFile() 774 } else if (filePath.startsWith(filesDir)) { in fullBackupFile() 777 } else if (filePath.startsWith(rootDir)) { in fullBackupFile() [all …]
|
/aosp14/frameworks/base/core/java/android/util/ |
H A D | PackageUtils.java | 194 public static @Nullable byte[] computeSha256DigestForLargeFileAsBytes(@NonNull String filePath, in computeSha256DigestForLargeFileAsBytes() argument 205 File f = new File(filePath); in computeSha256DigestForLargeFileAsBytes() 221 public static @Nullable String computeSha256DigestForLargeFile(@NonNull String filePath, in computeSha256DigestForLargeFile() argument 223 return computeSha256DigestForLargeFile(filePath, fileBuffer, null); in computeSha256DigestForLargeFile() 236 public static @Nullable String computeSha256DigestForLargeFile(@NonNull String filePath, in computeSha256DigestForLargeFile() argument 238 byte[] resultBytes = computeSha256DigestForLargeFileAsBytes(filePath, fileBuffer); in computeSha256DigestForLargeFile()
|
/aosp14/frameworks/base/services/core/java/com/android/server/pm/ |
H A D | ApkChecksums.java | 393 final String filePath = file.getAbsolutePath(); in getAvailableApkChecksums() local 408 split, filePath, types); in getAvailableApkChecksums() 542 final String filePath = file.getAbsolutePath(); in needToWait() local 543 if (!IncrementalManager.isIncrementalPath(filePath)) { in needToWait() 552 IncrementalStorage storage = manager.openStorage(filePath); in needToWait() 558 return !storage.isFileFullyLoaded(filePath); in needToWait() 572 final String filePath = file.getAbsolutePath(); in getRequiredApkChecksums() local 578 filePath, /*salt=*/null, in getRequiredApkChecksums() 640 private static boolean containsFile(File dir, String filePath) { in containsFile() argument 644 return FileUtils.contains(dir.getAbsolutePath(), filePath); in containsFile() [all …]
|
H A D | PackageManagerShellCommandDataLoader.java | 155 public static Metadata forLocalFile(String filePath) { in forLocalFile() argument 156 return new Metadata(LOCAL_FILE, filePath, nextGlobalSalt().toString()); in forLocalFile() 327 static ParcelFileDescriptor getLocalFilePFD(ShellCommand shellCommand, String filePath) { in getLocalFilePFD() argument 328 return shellCommand.openFileForSystem(filePath, "r"); in getLocalFilePFD() 336 static int getLocalFile(ShellCommand shellCommand, String filePath) { in getLocalFile() argument 337 ParcelFileDescriptor pfd = getLocalFilePFD(shellCommand, filePath); in getLocalFile()
|
/aosp14/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/helpers/ |
H A D | CameraTestUtils.java | 1336 String filePath) { in validateImage() argument 1442 if (DEBUG && filePath != null) { in validateJpegData() 1450 long ts, String filePath) { in validateYuvData() argument 1458 if (DEBUG && filePath != null) { in validateYuvData() 1466 long ts, String filePath) { in validateRaw16Data() argument 1473 if (DEBUG && filePath != null) { in validateRaw16Data() 1483 long ts, String filePath) { in validateRawPrivateData() argument 1493 if (DEBUG && filePath != null) { in validateRawPrivateData() 1503 long ts, String filePath) { in validateDepth16Data() argument 1521 long ts, String filePath) { in validateDepthPointCloudData() argument [all …]
|
/aosp14/frameworks/base/telephony/java/android/telephony/mbms/ |
H A D | MbmsTempFileProvider.java | 108 String filePath; in getUriForFile() local 110 filePath = file.getCanonicalPath(); in getUriForFile() 135 pathFragment = filePath.substring(tempFileDirPath.length()); in getUriForFile() 137 pathFragment = filePath.substring(tempFileDirPath.length() + 1); in getUriForFile()
|
/aosp14/frameworks/base/core/java/com/android/internal/content/ |
H A D | F2fsUtils.java | 134 final String filePath; in isCompressionAllowed() local 136 filePath = file.getCanonicalPath(); in isCompressionAllowed() 143 if (IncrementalManager.isIncrementalPath(filePath)) { in isCompressionAllowed() 149 if (!isChild(sDataDirectory, filePath)) { in isCompressionAllowed()
|
/aosp14/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/power/ |
H A D | MediaPlayerPowerTest.java | 49 public void audioPlayback(String filePath) { in audioPlayback() argument 52 mp.setDataSource(filePath); in audioPlayback()
|