Home
last modified time | relevance | path

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

1234

/frameworks/base/core/java/android/content/res/
DAssetManager.java289 public final InputStream open(String fileName) throws IOException { in open() argument
290 return open(fileName, ACCESS_STREAMING); in open()
310 public final InputStream open(String fileName, int accessMode) in open() argument
316 int asset = openAsset(fileName, accessMode); in open()
323 throw new FileNotFoundException("Asset file: " + fileName); in open()
326 public final AssetFileDescriptor openFd(String fileName) in openFd() argument
332 ParcelFileDescriptor pfd = openAssetFd(fileName, mOffsets); in openFd()
337 throw new FileNotFoundException("Asset file: " + fileName); in openFd()
364 public final InputStream openNonAsset(String fileName) throws IOException { in openNonAsset() argument
365 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/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/
DVideoEditorHelper.java314 public void validateExport(VideoEditor videoEditor, String fileName, in validateExport() argument
316 File tempFile = new File(fileName); in validateExport()
318 final MediaVideoItem mvi = createMediaItem(videoEditor, "m1", fileName, in validateExport()
321 Log.i(TAG, "VideoCodec for file = " + fileName + in validateExport()
324 assertEquals("Export: Video Codec Mismatch for file = " + fileName + in validateExport()
328 Log.i(TAG, "Height for file = " + fileName + "\tExpected Height = " + in validateExport()
330 assertEquals("Export height Mismatch for file " + fileName + in validateExport()
337 assertTrue("Timeline Duration Mismatch for file " + fileName + in validateExport()
345 assertTrue("Timeline Duration Mismatch for file " + fileName + in validateExport()
362 public void validateExport(VideoEditor videoEditor, String fileName, in validateExport() argument
[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/core/jni/
Dcom_android_internal_content_NativeLibraryHelper.cpp146 sumFiles(JNIEnv* env, void* arg, ZipFileRO* zipFile, ZipEntryRO zipEntry, const char* fileName) in sumFiles() argument
166 …ileIfChanged(JNIEnv *env, void* arg, ZipFileRO* zipFile, ZipEntryRO zipEntry, const char* fileName) in copyFileIfChanged() argument
186 const size_t fileNameLen = strlen(fileName); in copyFileIfChanged()
196 if (strlcpy(localFileName + nativeLibPath.size() + 1, fileName, sizeof(localFileName) in copyFileIfChanged()
230 ALOGI("Failed uncompressing %s to %s\n", fileName, localTmpFileName); in copyFileIfChanged()
285 char fileName[PATH_MAX]; in iterateOverNativeFiles() local
295 if (zipFile.getEntryFileName(entry, fileName, sizeof(fileName))) { in iterateOverNativeFiles()
300 if (strncmp(fileName, APK_LIB, APK_LIB_LEN)) { in iterateOverNativeFiles()
305 const size_t fileNameLen = strlen(fileName); in iterateOverNativeFiles()
311 const char* lastSlash = strrchr(fileName, '/'); in iterateOverNativeFiles()
[all …]
/frameworks/base/core/java/android/database/
DDefaultDatabaseErrorHandler.java96 private void deleteDatabaseFile(String fileName) { in deleteDatabaseFile() argument
97 if (fileName.equalsIgnoreCase(":memory:") || fileName.trim().length() == 0) { in deleteDatabaseFile()
100 Log.e(TAG, "deleting the database file: " + fileName); in deleteDatabaseFile()
102 new File(fileName).delete(); 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/base/include/androidfw/
DAssetManager.h146 Asset* open(const char* fileName, AccessMode mode);
156 Asset* openNonAsset(const char* fileName, AccessMode mode);
162 Asset* openNonAsset(void* cookie, const char* fileName, AccessMode mode);
194 FileType getFileType(const char* fileName);
229 Asset* openInPathLocked(const char* fileName, AccessMode mode,
231 Asset* openNonAssetInPathLocked(const char* fileName, AccessMode mode,
233 Asset* openInLocaleVendorLocked(const char* fileName, AccessMode mode,
239 const String8& dirName, const String8& fileName);
242 Asset* openAssetFromFileLocked(const String8& fileName, AccessMode mode);
/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/native/libs/utils/
Dmisc.cpp44 FileType getFileType(const char* fileName) in getFileType() argument
48 if (stat(fileName, &sb) < 0) { in getFileType()
53 errno, fileName); in getFileType()
81 time_t getFileModDate(const char* fileName) in getFileModDate() argument
85 if (stat(fileName, &sb) < 0) in getFileModDate()
/frameworks/native/opengl/tests/gl_perfapp/jni/
Dgl_code.cpp75 const char* fileName = "/sdcard/glperf.csv"; in Java_com_android_glperf_GLPerfLib_init() local
81 ALOGI("Writing to: %s\n",fileName); in Java_com_android_glperf_GLPerfLib_init()
82 fOut = fopen(fileName, "w"); in Java_com_android_glperf_GLPerfLib_init()
84 ALOGE("Could not open: %s\n", fileName); in Java_com_android_glperf_GLPerfLib_init()
/frameworks/base/test-runner/src/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/libs/androidfw/
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.cpp511 Asset* AssetManager::open(const char* fileName, AccessMode mode) in open() argument
522 assetName.appendPath(fileName); in open()
548 Asset* AssetManager::openNonAsset(const char* fileName, AccessMode mode) in openNonAsset() argument
565 … ALOGV("Looking for non-asset '%s' in '%s'\n", fileName, mAssetPaths.itemAt(i).path.string()); in openNonAsset()
567 fileName, mode, mAssetPaths.itemAt(i)); in openNonAsset()
576 Asset* AssetManager::openNonAsset(void* cookie, const char* fileName, AccessMode mode) in openNonAsset() argument
589 ALOGV("Looking for non-asset '%s' in '%s'\n", fileName, in openNonAsset()
592 fileName, mode, mAssetPaths.itemAt(which)); in openNonAsset()
607 FileType AssetManager::getFileType(const char* fileName) in getFileType() argument
616 pAsset = open(fileName, Asset::ACCESS_STREAMING); in getFileType()
[all …]
/frameworks/base/tests/RenderScriptTests/ModelViewer/src/com/android/modelviewer/
DA3DSelector.java61 String fileName = mCurrentSubList[i].getName(); in populateList() local
63 fileName = "/" + fileName; in populateList()
65 names.add(fileName); in populateList()
/frameworks/base/core/java/android/webkit/
DPlugin.java64 String fileName, in Plugin() argument
68 mFileName = fileName; in Plugin()
149 public void setFileName(String fileName) { in setFileName() argument
150 mFileName = fileName; in setFileName()
/frameworks/base/tests/RenderScriptTests/SceneGraph/src/com/android/testapp/
DFileSelector.java61 String fileName = mCurrentSubList[i].getName(); in populateList() local
63 fileName = "/" + fileName; in populateList()
65 names.add(fileName); in populateList()
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/
DFontLoader.java263 String fileName = trimXmlWhitespaces(mBuilder.toString()); in endElement() local
264 Font font = getFont(fileName); in endElement()
266 if (fileName.endsWith(FONT_SUFFIX_REGULAR)) { in endElement()
268 } else if (fileName.endsWith(FONT_SUFFIX_BOLD)) { in endElement()
270 } else if (fileName.endsWith(FONT_SUFFIX_ITALIC)) { in endElement()
272 } else if (fileName.endsWith(FONT_SUFFIX_BOLDITALIC)) { in endElement()
274 } else if (fileName.endsWith(FONT_SUFFIX_NONE)) { in endElement()
282 private Font getFont(String fileName) { in getFont() argument
284 File file = new File(mOsFontsLocation, fileName); in getFont()
/frameworks/testing/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/compile/libbcc/tests/
Dbccarm48 fileName = ""
53 fileName = arg
55 remoteFileName = setupArm(fileName)
/frameworks/native/include/utils/
Dmisc.h49 FileType getFileType(const char* fileName);
51 time_t getFileModDate(const char* fileName);
/frameworks/base/tools/preload/
DRoot.java134 void toFile(String fileName) throws IOException { in toFile() argument
135 FileOutputStream out = new FileOutputStream(fileName); in toFile()
151 static Root fromFile(String fileName) in fromFile() argument
153 FileInputStream fin = new FileInputStream(fileName); in fromFile()
/frameworks/av/libvideoeditor/osal/src/
DM4PSW_DebugTrace.c76 M4OSA_Char* fileName, in M4OSA_DEBUG_traceFunction() argument
82 M4OSA_DebugTrace(line, fileName, level, stringCondition, message, returnedError); in M4OSA_DEBUG_traceFunction()

1234