/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/ |
D | CodecTest.java | 96 public static int getDuration(String filePath) { in getDuration() argument 97 Log.v(TAG, "getDuration - " + filePath); in getDuration() 100 mp.setDataSource(filePath); in getDuration() 112 public static boolean getCurrentPosition(String filePath){ in getCurrentPosition() argument 113 Log.v(TAG, "GetCurrentPosition - " + filePath); in getCurrentPosition() 119 mp.setDataSource(filePath); in getCurrentPosition() 137 if (filePath.equals(MediaNames.SHORTMP3)){ in getCurrentPosition() 147 public static boolean seekTo(String filePath){ in seekTo() argument 148 Log.v(TAG, "seekTo " + filePath); in seekTo() 152 mp.setDataSource(filePath); in seekTo() [all …]
|
/frameworks/base/core/tests/coretests/src/android/os/storage/ |
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 testMountSingleEncryptedObb() local 92 mountObb(filePath, OBB_FILE_3_PASSWORD, OnObbStateChangeListener.MOUNTED); in testMountSingleEncryptedObb() 93 verifyObb3Contents(filePath); in testMountSingleEncryptedObb() 94 unmountObb(filePath, DONT_FORCE); in testMountSingleEncryptedObb() 103 String filePath = file.getAbsolutePath(); in testMountSingleEncryptedObbInvalidPassword() local 104 mountObb(filePath, OBB_FILE_1_PASSWORD, OnObbStateChangeListener.ERROR_COULD_NOT_MOUNT); in testMountSingleEncryptedObbInvalidPassword() [all …]
|
D | StorageManagerBaseTest.java | 446 protected String doWaitForPath(String filePath) { in doWaitForPath() argument 450 assertTrue("OBB " + filePath + " is not currently mounted!", mSm.isObbMounted(filePath)); in doWaitForPath() 456 fail("Timed out waiting to get path of OBB file " + filePath); in doWaitForPath() 461 path = mSm.getMountedObbPath(filePath); in doWaitForPath() 474 protected void verifyObb1Contents(String filePath) { in verifyObb1Contents() argument 476 path = doWaitForPath(filePath); in verifyObb1Contents()
|
/frameworks/av/drm/common/ |
D | ReadWriteUtils.cpp | 35 String8 ReadWriteUtils::readBytes(const String8& filePath) { in readBytes() argument 37 file = fopen(filePath.string(), "r"); in readBytes() 57 int ReadWriteUtils::readBytes(const String8& filePath, char** buffer) { in readBytes() argument 59 file = fopen(filePath.string(), "r"); in readBytes() 78 void ReadWriteUtils::writeToFile(const String8& filePath, const String8& data) { in writeToFile() argument 80 file = fopen(filePath.string(), "w+"); in writeToFile() 88 ALOGE("Failed to write the data to: %s", filePath.string()); in writeToFile() 95 void ReadWriteUtils::appendToFile(const String8& filePath, const String8& data) { in appendToFile() argument 97 file = fopen(filePath.string(), "a+"); in appendToFile() 104 ALOGE("Failed to write the data to: %s", filePath.string()); in appendToFile()
|
/frameworks/base/services/core/java/com/android/server/net/ |
D | DelayedDiskWrite.java | 40 public void write(final String filePath, final Writer w) { in write() argument 41 write(filePath, w, true); in write() 44 public void write(final String filePath, final Writer w, final boolean open) { in write() argument 45 if (TextUtils.isEmpty(filePath)) { in write() 61 doWrite(filePath, w, open); in write() 66 private void doWrite(String filePath, Writer w, boolean open) { in doWrite() argument 71 new FileOutputStream(filePath))); in doWrite() 75 loge("Error writing data file " + filePath); in doWrite()
|
D | IpConfigStore.java | 181 public void writeIpAndProxyConfigurationsToFile(String filePath, in writeIpAndProxyConfigurationsToFile() argument 183 mWriter.write(filePath, out -> { in writeIpAndProxyConfigurationsToFile() 191 public void writeIpConfigurations(String filePath, in writeIpConfigurations() argument 193 mWriter.write(filePath, out -> { in writeIpConfigurations() 201 public static ArrayMap<String, IpConfiguration> readIpConfigurations(String filePath) { in readIpConfigurations() argument 204 bufferedInputStream = new BufferedInputStream(new FileInputStream(filePath)); in readIpConfigurations() 216 public static SparseArray<IpConfiguration> readIpAndProxyConfigurations(String filePath) { in readIpAndProxyConfigurations() argument 219 bufferedInputStream = new BufferedInputStream(new FileInputStream(filePath)); in readIpAndProxyConfigurations()
|
/frameworks/base/core/java/android/content/res/ |
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
|
/frameworks/minikin/tests/util/ |
D | FontTestUtils.h | 51 std::shared_ptr<FontCollection> buildFontCollection(const std::string& filePath); 57 std::shared_ptr<FontFamily> buildFontFamily(const std::string& filePath); 62 std::shared_ptr<FontFamily> buildFontFamily(const std::string& filePath, const std::string& lang, 68 inline std::shared_ptr<FontFamily> buildFontFamily(const std::string& filePath, in buildFontFamily() argument 70 return buildFontFamily(filePath, lang, false /* isCustomFallback */); in buildFontFamily()
|
D | FontTestUtils.cpp | 121 std::shared_ptr<FontCollection> buildFontCollection(const std::string& filePath) { in buildFontCollection() argument 122 return std::make_shared<FontCollection>(buildFontFamily(filePath)); in buildFontCollection() 125 std::shared_ptr<FontFamily> buildFontFamily(const std::string& filePath) { in buildFontFamily() argument 126 auto font = std::make_shared<FreeTypeMinikinFontForTest>(getTestFontPath(filePath)); in buildFontFamily() 132 std::shared_ptr<FontFamily> buildFontFamily(const std::string& filePath, const std::string& lang, in buildFontFamily() argument 134 auto font = std::make_shared<FreeTypeMinikinFontForTest>(getTestFontPath(filePath)); in buildFontFamily()
|
D | FileUtils.cpp | 26 std::vector<uint8_t> readWholeFile(const std::string& filePath) { in readWholeFile() argument 27 FILE* fp = fopen(filePath.c_str(), "r"); in readWholeFile()
|
/frameworks/base/services/core/java/com/android/server/pm/dex/ |
D | DynamicCodeLogger.java | 93 String filePath = fileEntry.getKey(); in logDynamicCodeLoading() local 125 if (fileIsUnder(filePath, appInfo.credentialProtectedDataDir)) { in logDynamicCodeLoading() 127 } else if (fileIsUnder(filePath, appInfo.deviceProtectedDataDir)) { in logDynamicCodeLoading() 130 Slog.e(TAG, "Could not infer CE/DE storage for path " + filePath); in logDynamicCodeLoading() 131 needWrite |= mPackageDynamicCodeLoading.removeFile(packageName, filePath, userId); in logDynamicCodeLoading() 141 hash = mInstaller.hashSecondaryDexFile(filePath, packageName, appInfo.uid, in logDynamicCodeLoading() 144 Slog.e(TAG, "Got InstallerException when hashing file " + filePath in logDynamicCodeLoading() 151 String fileName = new File(filePath).getName(); in logDynamicCodeLoading() 158 Slog.d(TAG, "Got no hash for " + filePath); in logDynamicCodeLoading() 160 needWrite |= mPackageDynamicCodeLoading.removeFile(packageName, filePath, userId); in logDynamicCodeLoading() [all …]
|
/frameworks/av/drm/common/include/ |
D | ReadWriteUtils.h | 48 static String8 readBytes(const String8& filePath); 56 static int readBytes(const String8& filePath, char** buffer); 63 static void writeToFile(const String8& filePath, const String8& data); 70 static void appendToFile(const String8& filePath, const String8& data);
|
/frameworks/base/services/core/java/com/android/server/security/ |
D | VerityUtils.java | 73 public static String getFsveritySignatureFilePath(String filePath) { in getFsveritySignatureFilePath() argument 74 return filePath + FSVERITY_SIGNATURE_FILE_EXTENSION; in getFsveritySignatureFilePath() 78 public static void setUpFsverity(@NonNull String filePath, String signaturePath) in setUpFsverity() argument 89 final byte[] actualMeasurement = generateFsverityMetadata(filePath, signaturePath, in setUpFsverity() 91 try (RandomAccessFile raf = new RandomAccessFile(filePath, "rw")) { in setUpFsverity() 112 int errno = enableFsverityNative(filePath); in setUpFsverity() 114 throw new IOException("Failed to enable fs-verity on " + filePath + ": " in setUpFsverity() 120 public static boolean hasFsverity(@NonNull String filePath) { in hasFsverity() argument 124 int errno = measureFsverityNative(filePath); in hasFsverity() 127 Slog.e(TAG, "Failed to measure fs-verity, errno " + errno + ": " + filePath); in hasFsverity() [all …]
|
/frameworks/base/core/java/android/app/backup/ |
D | BackupAgent.java | 609 String filePath; in fullBackupFile() local 650 filePath = file.getCanonicalPath(); in fullBackupFile() 656 if (filePath.startsWith(cacheDir) in fullBackupFile() 657 || filePath.startsWith(codeCacheDir) in fullBackupFile() 658 || filePath.startsWith(nbFilesDir) in fullBackupFile() 659 || filePath.startsWith(deviceCacheDir) in fullBackupFile() 660 || filePath.startsWith(deviceCodeCacheDir) in fullBackupFile() 661 || filePath.startsWith(deviceNbFilesDir) in fullBackupFile() 662 || filePath.startsWith(libDir)) { in fullBackupFile() 669 if (filePath.startsWith(dbDir)) { in fullBackupFile() [all …]
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | TaskPersister.java | 218 void saveImage(Bitmap image, String filePath) { in saveImage() argument 219 mPersisterQueue.updateLastOrAddItem(new ImageWriteQueueItem(filePath, image), in saveImage() 222 Slog.d(TAG, "saveImage: filePath=" + filePath + " now=" in saveImage() 227 Bitmap getTaskDescriptionIcon(String filePath) { in getTaskDescriptionIcon() argument 229 final Bitmap icon = getImageFromWriteQueue(filePath); in getTaskDescriptionIcon() 233 return restoreImage(filePath); in getTaskDescriptionIcon() 236 private Bitmap getImageFromWriteQueue(String filePath) { in getImageFromWriteQueue() argument 238 queueItem -> queueItem.mFilePath.equals(filePath), ImageWriteQueueItem.class); in getImageFromWriteQueue() 503 private static boolean createParentDirectory(String filePath) { in createParentDirectory() argument 504 File parentDir = new File(filePath).getParentFile(); in createParentDirectory() [all …]
|
/frameworks/base/core/jni/ |
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()
|
D | com_android_internal_content_NativeLibraryHelper.cpp | 105 isFileDifferent(const char* filePath, uint32_t fileSize, time_t modifiedTime, in isFileDifferent() argument 108 if (lstat64(filePath, st) < 0) { in isFileDifferent() 110 ALOGV("Couldn't stat %s, copying: %s\n", filePath, strerror(errno)); in isFileDifferent() 128 int fd = TEMP_FAILURE_RETRY(open(filePath, O_RDONLY | O_CLOEXEC)); in isFileDifferent() 130 ALOGV("Couldn't open file %s: %s", filePath, strerror(errno)); in isFileDifferent() 144 ALOGV("%s: crc = %lx, zipCrc = %" PRIu32 "\n", filePath, crc, zipCrc); in isFileDifferent() 550 ScopedUtfChars filePath(env, apkPath); in com_android_internal_content_NativeLibraryHelper_openApk() local 551 ZipFileRO* zipFile = ZipFileRO::open(filePath.c_str()); in com_android_internal_content_NativeLibraryHelper_openApk()
|
/frameworks/av/media/mtp/ |
D | MtpStorage.cpp | 34 MtpStorage::MtpStorage(MtpStorageID id, const char* filePath, in MtpStorage() argument 37 mFilePath(filePath), in MtpStorage() 43 ALOGV("MtpStorage id: %d path: %s\n", id, filePath); in MtpStorage()
|
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/ |
D | ParserFactory.java | 47 public static XmlPullParser create(@NonNull String filePath) in create() argument 49 return create(filePath, false); in create() 53 public static XmlPullParser create(@NonNull String filePath, boolean isLayout) in create() argument 55 XmlPullParser parser = sParserFactory.createXmlParserForFile(filePath); in create()
|
/frameworks/layoutlib/bridge/src/android/graphics/fonts/ |
D | Font_Builder_Delegate.java | 58 protected String filePath; field in Font_Builder_Delegate 105 /*package*/ static long nBuild(long builderPtr, ByteBuffer buffer, String filePath, int weight, in nBuild() argument 113 font.filePath = filePath; in nBuild()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/ |
D | LockSettingsStorageTestable.java | 64 private File makeDirs(File baseDir, String filePath) { in makeDirs() argument 65 File path = new File(filePath); in makeDirs() 67 return new File(baseDir, filePath); in makeDirs()
|
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/helpers/ |
D | CameraTestUtils.java | 1336 String filePath) { in validateImage() argument 1351 validateJpegData(data, width, height, filePath); in validateImage() 1355 validateYuvData(data, width, height, format, image.getTimestamp(), filePath); in validateImage() 1358 validateRaw16Data(data, width, height, format, image.getTimestamp(), filePath); in validateImage() 1361 validateDepth16Data(data, width, height, format, image.getTimestamp(), filePath); in validateImage() 1364 … validateDepthPointCloudData(data, width, height, format, image.getTimestamp(), filePath); in validateImage() 1367 validateRawPrivateData(data, width, height, image.getTimestamp(), filePath); in validateImage() 1370 validateDepthJpegData(data, width, height, format, image.getTimestamp(), filePath); in validateImage() 1429 private static void validateJpegData(byte[] jpegData, int width, int height, String filePath) { in validateJpegData() argument 1442 if (DEBUG && filePath != null) { in validateJpegData() [all …]
|
/frameworks/base/telephony/java/android/telephony/mbms/ |
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()
|
/frameworks/rs/rsov/compiler/spirit/ |
D | word_stream.cpp | 41 InputWordStream *InputWordStream::Create(const char *filePath) { in Create() argument 42 return InputWordStream::Create(readFile<uint32_t>(filePath)); in Create()
|
/frameworks/base/services/core/jni/ |
D | com_android_server_security_VerityUtils.cpp | 141 int enableFsverity(JNIEnv* env, jobject /* clazz */, jstring filePath) { in enableFsverity() argument 142 const char* path = env->GetStringUTFChars(filePath, nullptr); in enableFsverity() 153 int measureFsverity(JNIEnv* env, jobject /* clazz */, jstring filePath) { in measureFsverity() argument 160 const char* path = env->GetStringUTFChars(filePath, nullptr); in measureFsverity()
|