/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 | 94 String filePath = fileEntry.getKey(); in logDynamicCodeLoading() local 126 if (fileIsUnder(filePath, appInfo.credentialProtectedDataDir)) { in logDynamicCodeLoading() 128 } else if (fileIsUnder(filePath, appInfo.deviceProtectedDataDir)) { in logDynamicCodeLoading() 131 Slog.e(TAG, "Could not infer CE/DE storage for path " + filePath); in logDynamicCodeLoading() 132 needWrite |= mPackageDynamicCodeLoading.removeFile(packageName, filePath, userId); in logDynamicCodeLoading() 142 hash = mInstaller.hashSecondaryDexFile(filePath, packageName, appInfo.uid, in logDynamicCodeLoading() 145 Slog.e(TAG, "Got InstallerException when hashing file " + filePath in logDynamicCodeLoading() 152 String fileName = new File(filePath).getName(); in logDynamicCodeLoading() 159 Slog.d(TAG, "Got no hash for " + filePath); in logDynamicCodeLoading() 161 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 | 63 public static String getFsveritySignatureFilePath(String filePath) { in getFsveritySignatureFilePath() argument 64 return filePath + FSVERITY_SIGNATURE_FILE_EXTENSION; in getFsveritySignatureFilePath() 68 public static void setUpFsverity(@NonNull String filePath, @NonNull String signaturePath) in setUpFsverity() argument 75 int errno = enableFsverityNative(filePath, pkcs7Signature); in setUpFsverity() 77 throw new IOException("Failed to enable fs-verity on " + filePath + ": " in setUpFsverity() 83 public static boolean hasFsverity(@NonNull String filePath) { in hasFsverity() argument 84 int retval = statxForFsverityNative(filePath); in hasFsverity() 87 + filePath); in hasFsverity() 93 private static native int enableFsverityNative(@NonNull String filePath, in enableFsverityNative() argument 95 private static native int statxForFsverityNative(@NonNull String filePath); in statxForFsverityNative() argument
|
/frameworks/base/services/core/java/com/android/server/audio/ |
D | SoundEffectsHelper.java | 196 String filePath = getResourceFilePath(res); in onLoadSoundEffects() local 197 int sampleId = mSoundPool.load(filePath, 0); in onLoadSoundEffects() 203 logEvent("effect " + filePath + " rejected by SoundPool"); in onLoadSoundEffects() 204 Log.w(TAG, "SoundPool could not load file: " + filePath); in onLoadSoundEffects() 255 String filePath = getResourceFilePath(res); in onPlaySoundEffect() local 256 mediaPlayer.setDataSource(filePath); in onPlaySoundEffect() 307 String filePath = Environment.getProductDirectory() + SOUND_EFFECTS_PATH + res.mFileName; in getResourceFilePath() local 308 if (!new File(filePath).isFile()) { in getResourceFilePath() 309 filePath = Environment.getRootDirectory() + SOUND_EFFECTS_PATH + res.mFileName; in getResourceFilePath() 311 return filePath; in getResourceFilePath() [all …]
|
/frameworks/base/services/tests/PackageManagerServiceTests/host/src/com/android/server/pm/test/ |
D | InvalidNewSystemAppTest.kt | 52 private val filePath = HostUtils.makePathForApk("PackageManagerDummyApp.apk", Partition.PRODUCT) constant 58 device.deleteFile(filePath.parent.toString()) in removeApk() 65 preparer.pushResourceFile(VERSION_ONE, filePath.toString()) in verify() 73 preparer.deleteFile(filePath.toString()) in verify() 74 .pushResourceFile(VERSION_THREE_INVALID, filePath.toString()) in verify()
|
/frameworks/base/core/java/android/app/backup/ |
D | BackupAgent.java | 634 String filePath; in fullBackupFile() local 675 filePath = file.getCanonicalPath(); in fullBackupFile() 681 if (filePath.startsWith(cacheDir) in fullBackupFile() 682 || filePath.startsWith(codeCacheDir) in fullBackupFile() 683 || filePath.startsWith(nbFilesDir) in fullBackupFile() 684 || filePath.startsWith(deviceCacheDir) in fullBackupFile() 685 || filePath.startsWith(deviceCodeCacheDir) in fullBackupFile() 686 || filePath.startsWith(deviceNbFilesDir) in fullBackupFile() 687 || filePath.startsWith(libDir)) { in fullBackupFile() 694 if (filePath.startsWith(dbDir)) { in fullBackupFile() [all …]
|
/frameworks/base/tools/protologtool/src/com/android/protolog/tool/ |
D | ParsingContext.kt | 21 data class ParsingContext(val filePath: String, val lineNumber: Int) { constant in com.android.protolog.tool.ParsingContext 22 constructor(filePath: String, node: Node) 23 : this(filePath, if (node.range.isPresent) node.range.get().begin.line else -1)
|
/frameworks/base/services/core/jni/ |
D | com_android_server_security_VerityUtils.cpp | 40 int enableFsverity(JNIEnv* env, jobject /* clazz */, jstring filePath, jbyteArray signature) { in enableFsverity() argument 41 ScopedUtfChars path(env, filePath); in enableFsverity() 71 int statxForFsverity(JNIEnv *env, jobject /* clazz */, jstring filePath) { in statxForFsverity() argument 72 ScopedUtfChars path(env, filePath); in statxForFsverity()
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | TaskPersister.java | 217 void saveImage(Bitmap image, String filePath) { in saveImage() argument 218 mPersisterQueue.updateLastOrAddItem(new ImageWriteQueueItem(filePath, image), in saveImage() 221 Slog.d(TAG, "saveImage: filePath=" + filePath + " now=" in saveImage() 226 Bitmap getTaskDescriptionIcon(String filePath) { in getTaskDescriptionIcon() argument 228 final Bitmap icon = getImageFromWriteQueue(filePath); in getTaskDescriptionIcon() 232 return restoreImage(filePath); in getTaskDescriptionIcon() 235 private Bitmap getImageFromWriteQueue(String filePath) { in getImageFromWriteQueue() argument 237 queueItem -> queueItem.mFilePath.equals(filePath), ImageWriteQueueItem.class); in getImageFromWriteQueue() 502 private static boolean createParentDirectory(String filePath) { in createParentDirectory() argument 503 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()
|
/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/android/graphics/fonts/ |
D | Font_Builder_Delegate.java | 57 protected String filePath; field in Font_Builder_Delegate 91 /*package*/ static long nBuild(long builderPtr, ByteBuffer buffer, String filePath, int weight, in nBuild() argument 99 font.filePath = filePath; in nBuild()
|
/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/base/services/core/java/com/android/server/pm/ |
D | PackageManagerShellCommandDataLoader.java | 141 static Metadata forLocalFile(String filePath) { in forLocalFile() argument 142 return new Metadata(LOCAL_FILE, filePath); in forLocalFile() 266 static ParcelFileDescriptor getLocalFilePFD(ShellCommand shellCommand, String filePath) { in getLocalFilePFD() argument 267 return shellCommand.openFileForSystem(filePath, "r"); in getLocalFilePFD() 275 static int getLocalFile(ShellCommand shellCommand, String filePath) { in getLocalFile() argument 276 ParcelFileDescriptor pfd = getLocalFilePFD(shellCommand, filePath); in getLocalFile()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/ |
D | LockSettingsStorageTestable.java | 95 private File makeDirs(File baseDir, String filePath) { in makeDirs() argument 96 File path = new File(filePath); in makeDirs() 98 return new File(baseDir, filePath); in makeDirs()
|