Home
last modified time | relevance | path

Searched refs:fileName (Results 1 – 25 of 145) 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/opt/gamesdk/src/tuningfork/tools/validation/src/test/java/com/google/tuningfork/validation/
DTestdataHelper.java42 public File createFile(String fileName, String content) throws IOException { in createFile() argument
43 File file = tempFolder.newFile(fileName); in createFile()
48 public File getFile(String fileName) throws IOException { in getFile() argument
49 byte[] byteContent = readBytes(fileName); in getFile()
52 File file = tempFolder.newFile(fileName); in getFile()
57 public static InputStream openStream(String fileName) { in openStream() argument
58 InputStream is = TestdataHelper.class.getResourceAsStream(FOLDER + fileName); in openStream()
59 checkArgument(is != null, "Testdata file '%s' not found.", fileName); in openStream()
63 public static byte[] readBytes(String fileName) { in readBytes() argument
64 try (InputStream inputStream = openStream(fileName)) { in readBytes()
[all …]
/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 …]
DApkAssets.java153 public @NonNull XmlResourceParser openXml(@NonNull String fileName) throws IOException { in openXml() argument
154 Preconditions.checkNotNull(fileName, "fileName"); in openXml()
156 long nativeXmlPtr = nativeOpenXml(mNativePtr, fileName); in openXml()
211 private static native long nativeOpenXml(long ptr, @NonNull String fileName) throws IOException; in nativeOpenXml() argument
/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/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/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/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/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/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/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/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/packages/SettingsLib/src/com/android/settingslib/license/
DLicenseHtmlGeneratorFromXml.java207 String fileName = readText(parser).trim(); in parse() local
208 if (!TextUtils.isEmpty(fileName)) { in parse()
209 fileNameToContentIdMap.put(fileName, contentId); in parse()
261 for (String fileName : fileNameList) { in generateHtml()
262 String contentId = fileNameToContentIdMap.get(fileName); in generateHtml()
273 contentIdAndFileNamesList.get(id).mFileNameList.add(fileName); in generateHtml()
274 writer.format("<li><a href=\"#id%d\">%s</a></li>\n", id, fileName); in generateHtml()
285 for (String fileName : contentIdAndFileNames.mFileNameList) { in generateHtml()
286 writer.format("%s <br/>\n", fileName); in generateHtml()
/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/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/opt/gamesdk/third_party/protobuf-3.0.0/objectivec/google/protobuf/
DSourceContext.pbobjc.m50 @dynamic fileName;
54 NSString *fileName;
64 .name = "fileName",
68 .offset = (uint32_t)offsetof(GPBSourceContext__storage_, fileName),

123456