Home
last modified time | relevance | path

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

12

/frameworks/base/core/java/android/content/res/
DAssetManager.java272 public final InputStream open(String fileName) throws IOException { in open() argument
273 return open(fileName, ACCESS_STREAMING); in open()
293 public final InputStream open(String fileName, int accessMode) in open() argument
299 int asset = openAsset(fileName, accessMode); in open()
305 throw new FileNotFoundException("Asset file: " + fileName); in open()
308 public final AssetFileDescriptor openFd(String fileName) in openFd() argument
314 ParcelFileDescriptor pfd = openAssetFd(fileName, mOffsets); in openFd()
319 throw new FileNotFoundException("Asset file: " + fileName); in openFd()
346 public final InputStream openNonAsset(String fileName) throws IOException { in openNonAsset() argument
347 return openNonAsset(0, fileName, ACCESS_STREAMING); in openNonAsset()
[all …]
/frameworks/base/core/java/com/android/internal/http/multipart/
DFilePartSource.java55 private String fileName = null; field in FilePartSource
74 this.fileName = file.getName(); in FilePartSource()
87 public FilePartSource(String fileName, File file) in FilePartSource() argument
90 if (fileName != null) { in FilePartSource()
91 this.fileName = fileName; in FilePartSource()
114 return (fileName == null) ? "noname" : fileName; in getFileName()
DByteArrayPartSource.java47 private String fileName; field in ByteArrayPartSource
58 public ByteArrayPartSource(String fileName, byte[] bytes) { in ByteArrayPartSource() argument
60 this.fileName = fileName; in ByteArrayPartSource()
76 return fileName; in getFileName()
DFilePart.java158 public FilePart(String name, String fileName, File file) in FilePart() argument
160 this(name, new FilePartSource(fileName, file), null, null); in FilePart()
177 public FilePart(String name, String fileName, File file, String contentType, String charset) in FilePart() argument
179 this(name, new FilePartSource(fileName, file), contentType, charset); in FilePart()
/frameworks/base/core/java/android/server/data/
DStackTraceElementData.java30 final String fileName; field in StackTraceElementData
37 String fileName = element.getFileName(); in StackTraceElementData() local
38 this.fileName = fileName == null ? "[unknown source]" : fileName; in StackTraceElementData()
51 this.fileName = in.readUTF(); in StackTraceElementData()
60 out.writeUTF(fileName); in write()
70 return fileName; in getFileName()
/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,
DCommand.cpp39 ZipFile* openReadOnly(const char* fileName) in openReadOnly() argument
45 result = zip->open(fileName, ZipFile::kOpenReadOnly); in openReadOnly()
48 fprintf(stderr, "ERROR: '%s' not found\n", fileName); in openReadOnly()
50 fprintf(stderr, "ERROR: '%s' access denied\n", fileName); in openReadOnly()
53 fileName); in openReadOnly()
67 ZipFile* openReadWrite(const char* fileName, bool okayToCreate) in openReadWrite() argument
78 result = zip->open(fileName, flags); in openReadWrite()
994 const char* fileName = bundle->getFileSpecEntry(i); in doAdd() local
996 if (strcasecmp(String8(fileName).getPathExtension().string(), ".gz") == 0) { in doAdd()
997 printf(" '%s'... (from gzip)\n", fileName); in doAdd()
[all …]
/frameworks/base/include/utils/
DAssetManager.h125 Asset* open(const char* fileName, AccessMode mode);
135 Asset* openNonAsset(const char* fileName, AccessMode mode);
141 Asset* openNonAsset(void* cookie, const char* fileName, AccessMode mode);
173 FileType getFileType(const char* fileName);
207 Asset* openInPathLocked(const char* fileName, AccessMode mode,
209 Asset* openNonAssetInPathLocked(const char* fileName, AccessMode mode,
211 Asset* openInLocaleVendorLocked(const char* fileName, AccessMode mode,
217 const String8& dirName, const String8& fileName);
220 Asset* openAssetFromFileLocked(const String8& fileName, AccessMode mode);
Dmisc.h78 FileType getFileType(const char* fileName);
80 time_t getFileModDate(const char* fileName);
/frameworks/base/libs/utils/
Dmisc.cpp119 FileType getFileType(const char* fileName) in getFileType() argument
123 if (stat(fileName, &sb) < 0) { in getFileType()
128 errno, fileName); in getFileType()
156 time_t getFileModDate(const char* fileName) in getFileModDate() argument
160 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()
DAssetManager.cpp259 Asset* AssetManager::open(const char* fileName, AccessMode mode) in open() argument
270 assetName.appendPath(fileName); in open()
296 Asset* AssetManager::openNonAsset(const char* fileName, AccessMode mode) in openNonAsset() argument
313 LOGV("Looking for non-asset '%s' in '%s'\n", fileName, mAssetPaths.itemAt(i).path.string()); in openNonAsset()
315 fileName, mode, mAssetPaths.itemAt(i)); in openNonAsset()
324 Asset* AssetManager::openNonAsset(void* cookie, const char* fileName, AccessMode mode) in openNonAsset() argument
337 LOGV("Looking for non-asset '%s' in '%s'\n", fileName, in openNonAsset()
340 fileName, mode, mAssetPaths.itemAt(which)); in openNonAsset()
355 FileType AssetManager::getFileType(const char* fileName) in getFileType() argument
364 pAsset = open(fileName, Asset::ACCESS_STREAMING); in getFileType()
[all …]
DZipFileCRO.cpp36 const char* fileName) { in ZipFileCRO_findEntryByName() argument
38 return (ZipEntryCRO)zip->findEntryByName(fileName); in ZipFileCRO_findEntryByName()
DAsset.cpp117 /*static*/ Asset* Asset::createFromFile(const char* fileName, AccessMode mode) in createFromFile() argument
124 fd = open(fileName, O_RDONLY | O_BINARY); in createFromFile()
142 result = pAsset->openChunk(fileName, fd, 0, length); in createFromFile()
159 /*static*/ Asset* Asset::createFromCompressedFile(const char* fileName, in createFromCompressedFile() argument
171 fd = open(fileName, O_RDONLY | O_BINARY); in createFromCompressedFile()
195 LOGD("File '%s' is not in gzip format\n", fileName); in createFromCompressedFile()
355 status_t _FileAsset::openChunk(const char* fileName, int fd, off_t offset, size_t length) in openChunk() argument
393 mFileName = fileName != NULL ? strdup(fileName) : NULL; in openChunk()
/frameworks/base/test-runner/junit/runner/
DTestCaseClassLoader.java114 String fileName= className.replace('.', '/')+".class"; in lookupClassData() local
116 data= loadJarData(path, fileName); in lookupClassData()
118 data= loadFileData(path, fileName); in lookupClassData()
132 private byte[] loadFileData(String path, String fileName) { in loadFileData() argument
133 File file= new File(path, fileName); in loadFileData()
157 private byte[] loadJarData(String path, String fileName) { in loadJarData() argument
168 ZipEntry entry= zipFile.getEntry(fileName); in loadJarData()
/frameworks/base/core/java/android/webkit/
DPlugin.java52 String fileName, in Plugin() argument
56 mFileName = fileName; in Plugin()
129 public void setFileName(String fileName) { in setFileName() argument
130 mFileName = fileName; in setFileName()
/frameworks/base/tools/preload/
DRoot.java135 void toFile(String fileName) throws IOException { in toFile() argument
136 FileOutputStream out = new FileOutputStream(fileName); in toFile()
152 static Root fromFile(String fileName) in fromFile() argument
154 FileInputStream fin = new FileInputStream(fileName); in fromFile()
/frameworks/base/tests/CoreTests/android/core/
DZipFileTest.java104 static void scanZip(String fileName) throws IOException { in scanZip() argument
105 ZipFile zipFile = new ZipFile(fileName); in scanZip()
127 static void read2(String fileName) throws IOException { in read2() argument
135 zipFile = new ZipFile(fileName); in read2()
/frameworks/base/awt/org/apache/harmony/awt/gl/font/
DFontProperty.java33 String fileName = null; field in FontProperty
81 return this.fileName; in getFileName()
DAndroidFontProperty.java45 this.fileName = _fileName; in AndroidFontProperty()
74 ",fileName="+ fileName + //$NON-NLS-1$ in toString()
/frameworks/base/media/java/android/media/
DExifInterface.java297 private native boolean appendThumbnailNative(String fileName, in appendThumbnailNative() argument
300 private native void saveAttributesNative(String fileName, in saveAttributesNative() argument
303 private native String getAttributesNative(String fileName); in getAttributesNative() argument
305 private native void commitChangesNative(String fileName); in commitChangesNative() argument
307 private native byte[] getThumbnailNative(String fileName); in getThumbnailNative() argument
/frameworks/base/core/java/android/ddm/
DDdmHandleProfiling.java93 String fileName = getString(in, len); in handleMPRS() local
95 Log.v("ddm-heap", "Method profiling start: filename='" + fileName in handleMPRS()
99 Debug.startMethodTracing(fileName, bufferSize, flags); in handleMPRS()
DDdmHandleHeap.java158 String fileName = getString(in, len); in handleHPDU() local
160 Log.d("ddm-heap", "Heap dump: file='" + fileName + "'"); in handleHPDU()
163 Debug.dumpHprofData(fileName); in handleHPDU()
/frameworks/base/core/java/com/google/android/mms/pdu/
DPduBody.java66 byte[] fileName = part.getFilename(); in putPartToMaps()
67 if(null != fileName) { in putPartToMaps()
68 String clc = new String(fileName); in putPartToMaps()
/frameworks/base/core/jni/
Dandroid_util_AssetManager.cpp122 jstring fileName, jint mode) in android_content_AssetManager_openAsset() argument
131 if (fileName == NULL || am == NULL) { in android_content_AssetManager_openAsset()
142 const char* fileName8 = env->GetStringUTFChars(fileName, NULL); in android_content_AssetManager_openAsset()
147 env->ReleaseStringUTFChars(fileName, fileName8); in android_content_AssetManager_openAsset()
150 env->ReleaseStringUTFChars(fileName, fileName8); in android_content_AssetManager_openAsset()
190 jstring fileName, jlongArray outOffsets) in android_content_AssetManager_openAssetFd() argument
199 if (fileName == NULL || am == NULL) { in android_content_AssetManager_openAssetFd()
204 const char* fileName8 = env->GetStringUTFChars(fileName, NULL); in android_content_AssetManager_openAssetFd()
209 env->ReleaseStringUTFChars(fileName, fileName8); in android_content_AssetManager_openAssetFd()
212 env->ReleaseStringUTFChars(fileName, fileName8); in android_content_AssetManager_openAssetFd()
[all …]

12