Home
last modified time | relevance | path

Searched refs:fileName (Results 1 – 25 of 148) sorted by relevance

123456

/frameworks/av/drm/mediadrm/plugins/clearkey/hidl/
DDeviceFiles.cpp73 bool DeviceFiles::StoreFileWithHash(const std::string& fileName, in StoreFileWithHash() argument
88 return StoreFileRaw(fileName, serializedHashFile); in StoreFileWithHash()
91 bool DeviceFiles::StoreFileRaw(const std::string& fileName, const std::string& serializedHashFile) { in StoreFileRaw() argument
93 memFile.setFileName(fileName); in StoreFileRaw()
96 size_t len = mFileHandle.Write(fileName, memFile); in StoreFileRaw()
99 ALOGE("StoreFileRaw: Failed to write %s", fileName.c_str()); in StoreFileRaw()
104 ALOGD("StoreFileRaw: wrote %zu bytes to %s", serializedHashFile.size(), fileName.c_str()); in StoreFileRaw()
170 bool DeviceFiles::RetrieveHashedFile(const std::string& fileName, OfflineFile* deSerializedFile) { in RetrieveHashedFile() argument
176 if (!FileExists(fileName)) { in RetrieveHashedFile()
177 ALOGE("RetrieveHashedFile: %s does not exist", fileName.c_str()); in RetrieveHashedFile()
[all …]
DMemoryFileSystem.cpp26 bool MemoryFileSystem::FileExists(const std::string& fileName) const { in FileExists()
27 auto result = mMemoryFileSystem.find(fileName); in FileExists()
31 ssize_t MemoryFileSystem::GetFileSize(const std::string& fileName) const { in GetFileSize()
32 auto result = mMemoryFileSystem.find(fileName); in GetFileSize()
36 ALOGE("Failed to get size for %s", fileName.c_str()); in GetFileSize()
72 bool MemoryFileSystem::RemoveFile(const std::string& fileName) { in RemoveFile() argument
73 auto result = mMemoryFileSystem.find(fileName); in RemoveFile()
78 ALOGE("Cannot find license to remove: %s", fileName.c_str()); in RemoveFile()
/frameworks/base/core/jni/
Dcom_android_internal_content_NativeLibraryHelper.cpp174 …ileIfChanged(JNIEnv *env, void* arg, ZipFileRO* zipFile, ZipEntryRO zipEntry, const char* fileName) in copyFileIfChanged() argument
198 fileName); in copyFileIfChanged()
204 " apk.\n", fileName); in copyFileIfChanged()
212 const size_t fileNameLen = strlen(fileName); in copyFileIfChanged()
222 if (strlcpy(localFileName + nativeLibPath.size() + 1, fileName, sizeof(localFileName) in copyFileIfChanged()
257 ALOGE("Failed uncompressing %s to %s\n", fileName, localTmpFileName); in copyFileIfChanged()
311 fileName[0] = '\0'; in NativeLibrariesIterator()
329 if (mZipFile->getEntryFileName(next, fileName, sizeof(fileName))) { in next()
334 const size_t fileNameLen = strlen(fileName); in next()
340 const char* lastSlash = strrchr(fileName, '/'); in next()
[all …]
/frameworks/base/core/java/android/content/res/
DAssetManager.java800 public @NonNull InputStream open(@NonNull String fileName) throws IOException { in open() argument
801 return open(fileName, ACCESS_STREAMING); in open()
820 public @NonNull InputStream open(@NonNull String fileName, int accessMode) throws IOException { in open() argument
821 Preconditions.checkNotNull(fileName, "fileName"); in open()
824 final long asset = nativeOpenAsset(mObject, fileName, accessMode); in open()
826 throw new FileNotFoundException("Asset file: " + fileName); in open()
844 public @NonNull AssetFileDescriptor openFd(@NonNull String fileName) throws IOException { in openFd() argument
845 Preconditions.checkNotNull(fileName, "fileName"); in openFd()
848 final ParcelFileDescriptor pfd = nativeOpenAssetFd(mObject, fileName, mOffsets); in openFd()
850 throw new FileNotFoundException("Asset file: " + fileName); in openFd()
[all …]
/frameworks/base/tools/aapt/
DZipFile.h80 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/libs/androidfw/
Dmisc.cpp36 FileType getFileType(const char* fileName) in getFileType() argument
40 if (stat(fileName, &sb) < 0) { in getFileType()
45 errno, fileName); in getFileType()
75 time_t getFileModDate(const char* fileName) in getFileModDate() argument
79 if (stat(fileName, &sb) < 0) in getFileModDate()
DAssetDir.cpp34 const String8& fileName) in findEntry() argument
38 tmpInfo.setFileName(fileName); in findEntry()
50 cmp = strcmp(pVector->itemAt(cur).getFileName(), fileName); in findEntry()
/frameworks/av/media/libmedia/xsd/vts/
DValidateMediaProfiles.cpp52 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/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/stress/
DMediaRecorderStressTest.java162 public void removeRecordedVideo(String fileName){ in removeRecordedVideo() argument
163 File video = new File(fileName); in removeRecordedVideo()
164 Log.v(TAG, "remove recorded video " + fileName); in removeRecordedVideo()
209 String fileName = String.format("%s/temp%d%s", in recordVideoAndPlayback() local
211 Log.v(TAG, fileName); in recordVideoAndPlayback()
233 mRecorder.setOutputFile(fileName); in recordVideoAndPlayback()
251 mp.setDataSource(fileName); in recordVideoAndPlayback()
257 validateRecordedVideo(fileName); in recordVideoAndPlayback()
259 removeRecordedVideo(fileName); in recordVideoAndPlayback()
313 String fileName = String.format("%s/temp%d_%d%s", in testStressTimeLapse() local
[all …]
/frameworks/base/core/java/android/database/
DDefaultDatabaseErrorHandler.java97 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/hidl/include/
DDeviceFiles.h53 ssize_t GetFileSize(const std::string& fileName) const;
54 bool RemoveFile(const std::string& fileName);
56 bool RetrieveHashedFile(const std::string& fileName, OfflineFile* deSerializedFile);
57 bool StoreFileRaw(const std::string& fileName, const std::string& serializedFile);
58 bool StoreFileWithHash(const std::string& fileName, const std::string& serializedFile);
DMemoryFileSystem.h27 std::string fileName; // excludes path member
34 void setFileName(const std::string& name) { fileName = name; } in setFileName()
43 bool FileExists(const std::string& fileName) const;
44 ssize_t GetFileSize(const std::string& fileName) const;
48 bool RemoveFile(const std::string& fileName);
/frameworks/av/media/tests/benchmark/MediaBenchmarkTest/src/main/cpp/
DNativeEncoder.cpp41 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/layoutlib/bridge/src/android/content/res/
DAssetManager_Delegate.java59 public static InputStream open(AssetManager mgr, String fileName) throws IOException { in open() argument
60 return mgr.open_Original(fileName); in open()
64 public static InputStream open(AssetManager mgr, String fileName, int accessMode) in open() argument
67 return mgr.open_Original(fileName, accessMode); in open()
69 return ((BridgeAssetManager) mgr).getAssetRepository().openAsset(fileName, accessMode); in open()
/frameworks/av/media/libstagefright/tests/
DMediaCodecListOverrides_test.cpp90 void exportTestResultsToXML(const char *fileName) { in exportTestResultsToXML() argument
103 exportResultsToXML(fileName, gR, eR, dR); in exportTestResultsToXML()
136 const char *fileName = "/sdcard/mediacodec_list_overrides_test.xml"; in TEST_F() local
137 remove(fileName); in TEST_F()
139 exportTestResultsToXML(fileName); in TEST_F()
143 FILE *f = fopen(fileName, "rb"); in TEST_F()
161 remove(fileName); in TEST_F()
/frameworks/opt/photoviewer/sample/src/com/example/photoviewersample/
DSampleProvider.java154 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/core/java/android/security/net/config/
DDirectoryCertificateSource.java143 String fileName = hash + "." + index;
144 if (!new File(mDir, fileName).exists()) {
147 if (isCertMarkedAsRemoved(fileName)) {
150 X509Certificate cert = readCertificate(fileName);
170 String fileName = hash + "." + index;
171 if (!new File(mDir, fileName).exists()) {
174 if (isCertMarkedAsRemoved(fileName)) {
177 X509Certificate cert = readCertificate(fileName);
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/unit/
DExifInterfaceTest.java196 private void printExifTagsAndValues(String fileName, ExifInterface exifInterface) { in printExifTagsAndValues() argument
201 Log.v(TAG, fileName + " Thumbnail size = " + thumbnailBytes.length); in printExifTagsAndValues()
204 Log.e(TAG, fileName + " Corrupted thumbnail!"); in printExifTagsAndValues()
206 Log.v(TAG, fileName + " Thumbnail size: " + bitmap.getWidth() + ", " in printExifTagsAndValues()
210 Log.e(TAG, fileName + " Unexpected result: No thumbnails were found. " in printExifTagsAndValues()
215 Log.e(TAG, fileName + " Unexpected result: A thumbnail was found. " in printExifTagsAndValues()
218 Log.v(TAG, fileName + " No thumbnail"); in printExifTagsAndValues()
223 Log.v(TAG, fileName + " Altitude = " + exifInterface.getAltitude(.0)); in printExifTagsAndValues()
227 Log.v(TAG, fileName + " Latitude = " + latLong[0]); in printExifTagsAndValues()
228 Log.v(TAG, fileName + " Longitude = " + latLong[1]); in printExifTagsAndValues()
[all …]
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/license/
DLicenseHtmlGeneratorFromXml.java209 String fileName = readText(parser).trim(); in parse() local
210 if (!TextUtils.isEmpty(fileName)) { in parse()
213 fileName, k -> new HashSet<>()); in parse()
272 for (String fileName : fileNameList) { in generateHtml()
273 for (String contentId : fileNameToContentIdMap.get(fileName)) { in generateHtml()
284 contentIdAndFileNamesList.get(id).mFileNameList.add(fileName); in generateHtml()
285 writer.format("<li><a href=\"#id%d\">%s</a></li>\n", id, fileName); in generateHtml()
297 for (String fileName : contentIdAndFileNames.mFileNameList) { in generateHtml()
298 writer.format("%s <br/>\n", fileName); in generateHtml()
/frameworks/native/opengl/tests/gl_perfapp/jni/
Dgl_code.cpp78 const char* fileName = "/sdcard/glperf.csv"; in Java_com_android_glperf_GLPerfLib_init() local
84 ALOGI("Writing to: %s\n",fileName); in Java_com_android_glperf_GLPerfLib_init()
85 fOut = fopen(fileName, "w"); in Java_com_android_glperf_GLPerfLib_init()
87 ALOGE("Could not open: %s\n", fileName); in Java_com_android_glperf_GLPerfLib_init()
/frameworks/base/libs/androidfw/include/androidfw/
DAssetManager.h151 Asset* open(const char* fileName, AccessMode mode);
160 Asset* openNonAsset(const char* fileName, AccessMode mode, int32_t* outCookie = NULL);
166 Asset* openNonAsset(const int32_t cookie, const char* fileName, AccessMode mode);
188 FileType getFileType(const char* fileName);
232 Asset* openNonAssetInPathLocked(const char* fileName, AccessMode mode,
236 const String8& dirName, const String8& fileName);
239 Asset* openAssetFromFileLocked(const String8& fileName, AccessMode mode);
/frameworks/base/core/java/android/webkit/
DPlugin.java63 String fileName, in Plugin() argument
67 mFileName = fileName; in Plugin()
148 public void setFileName(String fileName) { in setFileName() argument
149 mFileName = fileName; in setFileName()
/frameworks/base/cmds/uiautomator/cmds/uiautomator/src/com/android/commands/uiautomator/
DRunTestCommand.java196 for (String fileName : jarFileNames) { in addTestClassesFromJars()
197 fileName = fileName.trim(); in addTestClassesFromJars()
198 if (fileName.isEmpty()) continue; in addTestClassesFromJars()
200 DexFile dexFile = new DexFile(fileName); in addTestClassesFromJars()
209 Log.w(LOGTAG, String.format("Could not read %s: %s", fileName, e.getMessage())); in addTestClassesFromJars()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/anqp/
DIconInfo.java50 public IconInfo(int width, int height, String language, String iconType, String fileName) { in IconInfo() argument
55 mFileName = fileName; in IconInfo()
77 String fileName = in parse() local
80 return new IconInfo(width, height, language, iconType, fileName); in parse()
/frameworks/av/cmds/screenrecord/
Dscreenrecord.cpp544 static FILE* prepareRawOutput(const char* fileName) { in prepareRawOutput() argument
547 if (strcmp(fileName, "-") == 0) { in prepareRawOutput()
554 rawFp = fopen(fileName, "w"); in prepareRawOutput()
587 static status_t recordScreen(const char* fileName) { in recordScreen() argument
708 err = unlink(fileName); in recordScreen()
713 int fd = open(fileName, O_CREAT | O_LARGEFILE | O_TRUNC | O_RDWR, S_IRUSR | S_IWUSR); in recordScreen()
734 rawFp = prepareRawOutput(fileName); in recordScreen()
812 static status_t notifyMediaScanner(const char* fileName) { in notifyMediaScanner() argument
815 fileUrl.append(fileName); in notifyMediaScanner()
1085 const char* fileName = argv[optind]; in main() local
[all …]

123456