/frameworks/av/drm/mediadrm/plugins/clearkey/common/ |
D | DeviceFiles.cpp | 78 bool DeviceFiles::StoreFileWithHash(const std::string& fileName, in StoreFileWithHash() argument 93 return StoreFileRaw(fileName, serializedHashFile); in StoreFileWithHash() 96 bool DeviceFiles::StoreFileRaw(const std::string& fileName, const std::string& serializedHashFile) { in StoreFileRaw() argument 98 memFile.setFileName(fileName); in StoreFileRaw() 101 size_t len = mFileHandle.Write(fileName, memFile); in StoreFileRaw() 104 ALOGE("StoreFileRaw: Failed to write %s", fileName.c_str()); in StoreFileRaw() 109 ALOGD("StoreFileRaw: wrote %zu bytes to %s", serializedHashFile.size(), fileName.c_str()); in StoreFileRaw() 173 bool DeviceFiles::RetrieveHashedFile(const std::string& fileName, OfflineFile* deSerializedFile) { in RetrieveHashedFile() argument 179 if (!FileExists(fileName)) { in RetrieveHashedFile() 180 ALOGE("RetrieveHashedFile: %s does not exist", fileName.c_str()); in RetrieveHashedFile() [all …]
|
D | MemoryFileSystem.cpp | 33 bool MemoryFileSystem::FileExists(const std::string& fileName) const { in FileExists() 34 auto result = mMemoryFileSystem.find(fileName); in FileExists() 38 ssize_t MemoryFileSystem::GetFileSize(const std::string& fileName) const { in GetFileSize() 39 auto result = mMemoryFileSystem.find(fileName); in GetFileSize() 43 ALOGE("Failed to get size for %s", fileName.c_str()); in GetFileSize() 79 bool MemoryFileSystem::RemoveFile(const std::string& fileName) { in RemoveFile() argument 80 auto result = mMemoryFileSystem.find(fileName); in RemoveFile() 85 ALOGE("Cannot find license to remove: %s", fileName.c_str()); in RemoveFile()
|
/frameworks/base/services/people/java/com/android/server/people/data/ |
D | AbstractProtoDiskReadWriter.java | 88 void delete(@NonNull String fileName) { in delete() argument 90 mScheduledFileDataMap.remove(fileName); in delete() 92 final File file = getFile(fileName); in delete() 102 void writeTo(@NonNull String fileName, @NonNull T data) { in writeTo() argument 103 final File file = getFile(fileName); in writeTo() 128 T read(@NonNull String fileName) { in read() argument 130 pathname -> pathname.isFile() && pathname.getName().equals(fileName)); in read() 146 synchronized void scheduleSave(@NonNull String fileName, @NonNull T data) { in scheduleSave() argument 147 mScheduledFileDataMap.put(fileName, data); in scheduleSave() 168 void saveImmediately(@NonNull String fileName, @NonNull T data) { in saveImmediately() argument [all …]
|
/frameworks/base/libs/androidfw/ |
D | ApkParsing.cpp | 36 const char* ValidLibraryPathLastSlash(const char* fileName, bool suppress64Bit, bool debuggable) { in ValidLibraryPathLastSlash() argument 38 const size_t fileNameLen = strlen(fileName); in ValidLibraryPathLastSlash() 44 const char* lastSlash = strrchr(fileName, '/'); in ValidLibraryPathLastSlash() 60 if (strncmp(fileName, APK_LIB.data(), APK_LIB_LEN) != 0) { in ValidLibraryPathLastSlash() 65 if (memchr(fileName + APK_LIB_LEN, '/', fileNameLen - APK_LIB_LEN) != lastSlash) { in ValidLibraryPathLastSlash() 71 if (strncmp(fileName + fileNameLen - LIB_SUFFIX_LEN, LIB_SUFFIX.data(), LIB_SUFFIX_LEN) != 0 in ValidLibraryPathLastSlash() 79 fileName + APK_LIB_LEN, lastSlash - fileName - APK_LIB_LEN)) != abis.end()) { in ValidLibraryPathLastSlash()
|
D | misc.cpp | 41 FileType getFileType(const char* fileName) in getFileType() argument 45 if (stat(fileName, &sb) < 0) { in getFileType() 49 PLOG(ERROR) << "getFileType(): stat(" << fileName << ") failed"; in getFileType() 79 time_t getFileModDate(const char* fileName) { in getFileModDate() argument 81 if (stat(fileName, &sb) < 0) { in getFileModDate()
|
/frameworks/base/tools/app_metadata_bundles/src/test/java/com/android/asllib/marshallable/ |
D | SystemAppSafetyLabelTest.java | 60 private void hrToOdExpectException(String fileName) { in hrToOdExpectException() argument 62 new SystemAppSafetyLabelFactory(), SYSTEM_APP_SAFETY_LABEL_HR_PATH, fileName); in hrToOdExpectException() 65 private void odToHrExpectException(String fileName) { in odToHrExpectException() argument 67 new SystemAppSafetyLabelFactory(), SYSTEM_APP_SAFETY_LABEL_OD_PATH, fileName); in odToHrExpectException() 70 private void testHrToOdSystemAppSafetyLabel(String fileName) throws Exception { in testHrToOdSystemAppSafetyLabel() argument 76 fileName); in testHrToOdSystemAppSafetyLabel() local 79 private void testOdToHrSystemAppSafetyLabel(String fileName) throws Exception { in testOdToHrSystemAppSafetyLabel() argument 85 fileName); in testOdToHrSystemAppSafetyLabel() local
|
D | ThirdPartyVerificationTest.java | 60 private void hrToOdExpectException(String fileName) { in hrToOdExpectException() argument 62 new ThirdPartyVerificationFactory(), THIRD_PARTY_VERIFICATION_HR_PATH, fileName); in hrToOdExpectException() 65 private void odToHrExpectException(String fileName) { in odToHrExpectException() argument 67 new ThirdPartyVerificationFactory(), THIRD_PARTY_VERIFICATION_OD_PATH, fileName); in odToHrExpectException() 70 private void testHrToOdThirdPartyVerification(String fileName) throws Exception { in testHrToOdThirdPartyVerification() argument 76 fileName); in testHrToOdThirdPartyVerification() local 79 private void testOdToHrThirdPartyVerification(String fileName) throws Exception { in testOdToHrThirdPartyVerification() argument 85 fileName); in testOdToHrThirdPartyVerification() local
|
D | AndroidSafetyLabelTest.java | 85 private void hrToOdExpectException(String fileName) { in hrToOdExpectException() argument 87 new AndroidSafetyLabelFactory(), ANDROID_SAFETY_LABEL_HR_PATH, fileName); in hrToOdExpectException() 90 private void odToHrExpectException(String fileName) { in odToHrExpectException() argument 92 new AndroidSafetyLabelFactory(), ANDROID_SAFETY_LABEL_OD_PATH, fileName); in odToHrExpectException() 95 private void testHrToOdAndroidSafetyLabel(String fileName) throws Exception { in testHrToOdAndroidSafetyLabel() argument 101 fileName); in testHrToOdAndroidSafetyLabel() local 104 private void testOdToHrAndroidSafetyLabel(String fileName) throws Exception { in testOdToHrAndroidSafetyLabel() argument 110 fileName); in testOdToHrAndroidSafetyLabel() local
|
D | SafetyLabelsTest.java | 83 private void hrToOdExpectException(String fileName) { in hrToOdExpectException() argument 84 TestUtils.hrToOdExpectException(new SafetyLabelsFactory(), SAFETY_LABELS_HR_PATH, fileName); in hrToOdExpectException() 87 private void odToHrExpectException(String fileName) { in odToHrExpectException() argument 88 TestUtils.odToHrExpectException(new SafetyLabelsFactory(), SAFETY_LABELS_OD_PATH, fileName); in odToHrExpectException() 91 private void testHrToOdSafetyLabels(String fileName) throws Exception { in testHrToOdSafetyLabels() argument 97 fileName); in testHrToOdSafetyLabels() local 100 private void testOdToHrSafetyLabels(String fileName) throws Exception { in testOdToHrSafetyLabels() argument 106 fileName); in testOdToHrSafetyLabels() local
|
/frameworks/base/core/jni/ |
D | com_android_internal_content_NativeLibraryHelper.cpp | 134 …ileIfChanged(JNIEnv *env, void* arg, ZipFileRO* zipFile, ZipEntryRO zipEntry, const char* fileName) in copyFileIfChanged() argument 160 bool forceExtractCurrentFile = debuggable && strcmp(fileName, "wrap.sh") == 0; in copyFileIfChanged() 166 fileName); in copyFileIfChanged() 172 "from apk.\n", fileName, kPageSize); in copyFileIfChanged() 181 fileName, zipFile->getZipFileName(), offset); in copyFileIfChanged() 195 const size_t fileNameLen = strlen(fileName); in copyFileIfChanged() 205 if (strlcpy(localFileName + nativeLibPath.size() + 1, fileName, sizeof(localFileName) in copyFileIfChanged() 250 ALOGE("Failed uncompressing %s to %s\n", fileName, localTmpFileName); in copyFileIfChanged() 301 ALOGD("Punching extracted elf file %s on fs:%" PRIu64 "", fileName, in copyFileIfChanged() 304 ALOGW("Failed to punch extracted elf file :%s from apk : %s", fileName, in copyFileIfChanged() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/settings/ |
D | UserFileManagerImpl.kt | 61 fun createFile(fileName: String, userId: Int): File { in <lambda>() 63 File(fileName) in <lambda>() 65 File(getFilePrefix(userId) + fileName) in <lambda>() 69 fun createLegacyFile(context: Context, dir: String, fileName: String, userId: Int): File? { in <lambda>() 78 fileName in <lambda>() 114 override fun getFile(fileName: String, userId: Int): File { in <lambda>() 115 val file = File(context.filesDir, createFile(fileName, userId).path) in <lambda>() 116 createLegacyFile(context, FILES, fileName, userId)?.run { migrate(file, this) } in <lambda>() 125 fileName: String, in <lambda>() 129 val file = createFile(fileName, userId) in <lambda>() [all …]
|
/frameworks/base/tools/aapt/ |
D | ZipFile.h | 80 status_t add(const char* fileName, int compressionMethod, in add() argument 83 return add(fileName, fileName, compressionMethod, ppEntry); in add() 85 status_t add(const char* fileName, const char* storageName, in add() argument 88 return addCommon(fileName, NULL, 0, storageName, in add() 98 status_t addGzip(const char* fileName, const char* storageName, in addGzip() argument 101 return addCommon(fileName, NULL, 0, storageName, in addGzip() 157 ZipEntry* getEntryByName(const char* fileName) const; 224 status_t addCommon(const char* fileName, const void* data, size_t size,
|
/frameworks/base/tools/protologtool/src/com/android/protolog/tool/ |
D | ProtoLogCallProcessorImpl.kt | 43 fileName: String in <lambda>() 45 val context = ParsingContext(fileName, expr) in <lambda>() 76 fun process(code: CompilationUnit, logCallVisitor: ProtoLogCallVisitor?, fileName: String): in <lambda>() 78 return process(code, logCallVisitor, null, fileName) in <lambda>() 85 fileName: String in <lambda>() 87 CodeUtils.checkWildcardStaticImported(code, protoLogClassName, fileName) in <lambda>() 88 CodeUtils.checkWildcardStaticImported(code, protoLogGroupClassName, fileName) in <lambda>() 100 val context = ParsingContext(fileName, call) in <lambda>() 115 staticGroupImports, fileName) in <lambda>()
|
/frameworks/av/media/libmedia/xsd/vts/ |
D | ValidateMediaProfiles.cpp | 52 std::string fileName = "media_profiles" + variant + ".xml"; in TEST() local 60 xmlSearchDirs[0] + fileName, in TEST() 61 xmlSearchDirs[1] + fileName, in TEST() 62 xmlSearchDirs[2] + fileName, in TEST() 69 << "Cannot read from " << fileName in TEST()
|
/frameworks/base/core/java/android/database/ |
D | DefaultDatabaseErrorHandler.java | 97 private void deleteDatabaseFile(String fileName) { in deleteDatabaseFile() argument 98 if (fileName.equalsIgnoreCase(":memory:") || fileName.trim().length() == 0) { in deleteDatabaseFile() 101 Log.e(TAG, "deleting the database file: " + fileName); in deleteDatabaseFile() 103 SQLiteDatabase.deleteDatabase(new File(fileName), /*removeCheckFile=*/ false); in deleteDatabaseFile()
|
/frameworks/av/drm/mediadrm/plugins/clearkey/common/include/clearkeydrm/ |
D | DeviceFiles.h | 58 ssize_t GetFileSize(const std::string& fileName) const; 59 bool RemoveFile(const std::string& fileName); 62 const std::string& fileName, 64 bool StoreFileRaw(const std::string& fileName, const std::string& serializedFile); 65 bool StoreFileWithHash(const std::string& fileName, const std::string& serializedFile);
|
D | MemoryFileSystem.h | 33 std::string fileName; // excludes path member 40 void setFileName(const std::string& name) { fileName = name; } in setFileName() 50 bool FileExists(const std::string& fileName) const; 51 ssize_t GetFileSize(const std::string& fileName) const; 55 bool RemoveFile(const std::string& fileName);
|
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/settings/ |
D | FakeUserFileManager.kt | 26 override fun getFile(fileName: String, userId: Int): File { in getFile() 30 override fun getSharedPreferences(fileName: String, mode: Int, userId: Int): SharedPreferences { in getSharedPreferences() 31 val key = SharedPrefKey(fileName, mode, userId) in getSharedPreferences() 35 private data class SharedPrefKey(val fileName: String, val mode: Int, val userId: Int) constant in com.android.systemui.settings.FakeUserFileManager.SharedPrefKey
|
/frameworks/av/media/tests/benchmark/MediaBenchmarkTest/src/main/cpp/ |
D | NativeEncoder.cpp | 41 const char *fileName = env->GetStringUTFChars(jFileName, nullptr); in Java_com_android_media_benchmark_library_Native_Encode() local 42 string inputFile = string(filePath) + string(fileName); in Java_com_android_media_benchmark_library_Native_Encode() 50 ALOGE("%s - File failed to open for reading!", fileName); in Java_com_android_media_benchmark_library_Native_Encode() 51 env->ReleaseStringUTFChars(jFileName, fileName); in Java_com_android_media_benchmark_library_Native_Encode() 87 inputReference = string(fileName) + "_" + to_string(jWidth) + "x" + to_string(jHeight) + in Java_com_android_media_benchmark_library_Native_Encode() 93 inputReference = string(fileName) + "_" + to_string(jSampleRate) + "hz_" + in Java_com_android_media_benchmark_library_Native_Encode() 106 env->ReleaseStringUTFChars(jFileName, fileName); in Java_com_android_media_benchmark_library_Native_Encode()
|
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/stress/ |
D | MediaRecorderStressTest.java | 163 public void removeRecordedVideo(String fileName){ in removeRecordedVideo() argument 164 File video = new File(fileName); in removeRecordedVideo() 165 Log.v(TAG, "remove recorded video " + fileName); in removeRecordedVideo() 210 String fileName = String.format("%s/temp%d%s", in recordVideoAndPlayback() local 212 Log.v(TAG, fileName); in recordVideoAndPlayback() 234 mRecorder.setOutputFile(fileName); in recordVideoAndPlayback() 252 mp.setDataSource(fileName); in recordVideoAndPlayback() 258 validateRecordedVideo(fileName); in recordVideoAndPlayback() 260 removeRecordedVideo(fileName); in recordVideoAndPlayback() 314 String fileName = String.format("%s/temp%d_%d%s", in testStressTimeLapse() local [all …]
|
/frameworks/base/tools/app_metadata_bundles/src/test/java/com/android/asllib/testutils/ |
D | TestUtils.java | 135 AslMarshallableFactory<T> factory, String hrFolderPath, String fileName) { in hrToOdExpectException() argument 140 TestUtils.getElementsFromResource(Paths.get(hrFolderPath, fileName))); in hrToOdExpectException() 146 AslMarshallableFactory<T> factory, String odFolderPath, String fileName) { in odToHrExpectException() argument 151 TestUtils.getElementsFromResource(Paths.get(odFolderPath, fileName))); in odToHrExpectException() 161 String fileName) in testHrToOd() argument 163 testFormatToFormat(doc, factory, hrFolderPath, odFolderPath, fileName, true); in testHrToOd() 172 String fileName) in testOdToHr() argument 174 testFormatToFormat(doc, factory, odFolderPath, hrFolderPath, fileName, false); in testOdToHr() 183 String fileName, in testFormatToFormat() argument 190 Paths.get(inFolderPath, fileName))) in testFormatToFormat() [all …]
|
/frameworks/av/media/libstagefright/tests/ |
D | MediaCodecListOverrides_test.cpp | 89 void exportTestResultsToXML(const char *fileName) { in exportTestResultsToXML() argument 102 exportResultsToXML(fileName, gR, eR, dR); in exportTestResultsToXML() 135 const char *fileName = "/sdcard/mediacodec_list_overrides_test.xml"; in TEST_F() local 136 remove(fileName); in TEST_F() 138 exportTestResultsToXML(fileName); in TEST_F() 142 FILE *f = fopen(fileName, "rb"); in TEST_F() 160 remove(fileName); in TEST_F()
|
/frameworks/opt/photoviewer/sample/src/com/example/photoviewersample/ |
D | SampleProvider.java | 154 String fileName; in openAssetFile() local 157 fileName = "blah.png"; in openAssetFile() 160 fileName = "johannson.png"; in openAssetFile() 163 fileName = "planets.png"; in openAssetFile() 166 fileName = "galaxy.png"; in openAssetFile() 169 fileName = null; in openAssetFile() 173 return getContext().getAssets().openFd(fileName); in openAssetFile()
|
/frameworks/base/tests/InputMethodStressTest/src/com/android/inputmethod/stresstest/ |
D | ScreenCaptureRule.java | 59 String fileName = "screenshot-" + time + ".png"; in failed() local 60 capture(fileName); in failed() 64 public void capture(String fileName) { in capture() argument 67 String.format("screencap %s/%s", mOutDir, fileName)); in capture()
|
/frameworks/base/services/core/java/com/android/server/biometrics/sensors/face/ |
D | FaceUtils.java | 56 private static FaceUtils getInstance(int sensorId, @Nullable String fileName) { in getInstance() argument 63 if (fileName == null) { in getInstance() 64 fileName = "settings_face_" + sensorId + ".xml"; in getInstance() 66 sInstances.put(sensorId, new FaceUtils(fileName)); in getInstance() 83 private FaceUtils(String fileName) { in FaceUtils() argument 85 mFileName = fileName; in FaceUtils()
|