Searched refs:fileName (Results 1 - 25 of 33) sorted by relevance

12

/dalvik/libdex/
H A DOptInvocation.h30 char* dexOptGenerateCacheFileName(const char* fileName,
H A DCmdUtils.c107 UnzipToFileResult dexOpenAndMap(const char* fileName, const char* tempFileName, argument
111 int len = strlen(fileName);
125 if (strcasecmp(fileName + len -3, "dex") != 0) {
140 result = dexUnzipToFile(fileName, tempFileName, quiet);
144 fileName = tempFileName;
163 fd = open(fileName, O_RDONLY);
167 fileName, strerror(errno));
173 fprintf(stderr, "ERROR: Unable to map '%s'\n", fileName);
188 fileName);
H A DCmdUtils.h63 UnzipToFileResult dexOpenAndMap(const char* fileName, const char* tempFileName,
H A DOptInvocation.c45 char* dexOptGenerateCacheFileName(const char* fileName, const char* subFileName) argument
58 if (fileName[0] != '/') {
70 strncat(absoluteFile, fileName, kBufLen);
104 LOGV("Cache file for '%s' '%s' is '%s'\n", fileName, subFileName, nameBuf);
H A DZipArchive.h93 int dexZipOpenArchive(const char* fileName, ZipArchive* pArchive);
H A DZipArchive.c336 int dexZipOpenArchive(const char* fileName, ZipArchive* pArchive) argument
340 LOGV("Opening as zip '%s' %p\n", fileName, pArchive);
344 fd = open(fileName, O_RDONLY, 0);
347 LOGV("Unable to open '%s': %s\n", fileName, strerror(err));
351 return dexZipPrepArchive(fd, fileName, pArchive);
/dalvik/vm/
H A DJarFile.c35 * Attempt to open a file whose name is similar to <fileName>,
43 static int openAlternateSuffix(const char *fileName, const char *suffix, argument
47 size_t fileNameLen = strlen(fileName);
61 memcpy(buf, fileName, fileNameLen + 1);
82 * to the jar file at the absolute path "fileName".
84 DexCacheStatus dvmDexCacheStatus(const char *fileName) argument
96 if (dvmClassPathContains(gDvm.bootClassPath, fileName)) {
106 if (dexZipOpenArchive(fileName, &archive) != 0) {
117 LOGV("dvmDexCacheStatus: Checking cache for %s\n", fileName);
118 cachedName = dexOptGenerateCacheFileName(fileName, kDexInJarNam
186 dvmJarFileOpen(const char* fileName, const char* odexOutputName, JarFile** ppJarFile, bool isBootstrap) argument
[all...]
H A DRawDexFile.c25 int dvmRawDexFileOpen(const char* fileName, const char* odexOutputName, argument
H A DJarFile.h39 int dvmJarFileOpen(const char* fileName, const char* odexOutputName,
67 * to the jar file at the absolute path "fileName".
69 DexCacheStatus dvmDexCacheStatus(const char *fileName);
H A DRawDexFile.h39 int dvmRawDexFileOpen(const char* fileName, const char* odexOutputName,
H A DNative.h66 bool dvmLoadNativeCode(const char* fileName, Object* classLoader,
H A DAllocTracker.c304 const char* fileName = dvmGetMethodSourceFile(method); local
305 if (fileName == NULL)
306 fileName = "";
307 return fileName;
/dalvik/dexlist/
H A DDexList.c91 void dumpMethod(DexFile* pDexFile, const char* fileName, argument
120 if (fileName == NULL || fileName[0] == 0) {
121 fileName = "(none)";
142 fileName, firstLine);
157 const char* fileName; local
170 fileName = NULL;
172 fileName = dexStringById(pDexFile, pClassDef->sourceFileIdx);
182 dumpMethod(pDexFile, fileName, &pClassData->directMethods[i], i);
186 dumpMethod(pDexFile, fileName,
197 process(const char* fileName) argument
[all...]
/dalvik/dx/src/com/android/dx/util/
H A DFileUtils.java38 * @param fileName {@code non-null;} name of the file to read
41 public static byte[] readFile(String fileName) { argument
42 File file = new File(fileName);
/dalvik/vm/analysis/
H A DDexPrepare.h89 int dvmOpenCachedDexFile(const char* fileName, const char* cachedFile,
111 * "fileName" is only used for debug output.
114 const char* fileName, u4 modWhen, u4 crc, bool isBootstrap);
120 const char* fileName, u4 modWhen, u4 crc, bool isBootstrap);
H A DDexPrepare.c82 int dvmOpenCachedDexFile(const char* fileName, const char* cacheFileName, argument
205 fileName, cacheFileName);
281 * "fileName" is only used for debug output. "modWhen" and "crc" are stored
298 const char* fileName, u4 modWhen, u4 crc, bool isBootstrap)
300 const char* lastPart = strrchr(fileName, '/');
304 lastPart = fileName;
315 LOGW("Rejecting recursive optimization attempt on '%s'\n", fileName);
379 argv[curArg++] = (char*)fileName;
410 argv[curArg++] = cpe->fileName;
475 const char* fileName, u
297 dvmOptimizeDexFile(int fd, off_t dexOffset, long dexLength, const char* fileName, u4 modWhen, u4 crc, bool isBootstrap) argument
474 dvmContinueOptimization(int fd, off_t dexOffset, long dexLength, const char* fileName, u4 modWhen, u4 crc, bool isBootstrap) argument
[all...]
/dalvik/vm/hprof/
H A DHprof.c79 hprofContextInit(headCtx, strdup(tailCtx->fileName), tailCtx->fd, true,
82 LOGI("hprof: dumping heap strings to \"%s\".\n", tailCtx->fileName);
134 outFd = open(tailCtx->fileName, O_WRONLY|O_CREAT, 0644);
136 LOGE("can't open %s: %s\n", headCtx->fileName, strerror(errno));
182 free(ctx->fileName);
H A DHprof.h136 * If directToDdms is set, "fileName" and "fd" will be ignored.
137 * Otherwise, "fileName" must be valid, though if "fd" >= 0 it will
141 char *fileName; member in struct:hprof_context_t
191 void hprofContextInit(hprof_context_t *ctx, char *fileName, int fd,
260 int hprofDumpHeap(const char* fileName, int fd, bool directToDdms);
H A DHprofOutput.c62 * This will take ownership of "fileName".
65 hprofContextInit(hprof_context_t *ctx, char *fileName, int fd, argument
83 ctx->fileName = fileName;
/dalvik/vm/native/
H A Ddalvik_system_DexFile.c28 char* fileName; member in struct:DexOrJar
42 LOGV("Freeing DexOrJar '%s'\n", pDexOrJar->fileName);
48 free(pDexOrJar->fileName);
78 u4 hash = dvmComputeUtf8Hash(pDexOrJar->fileName);
182 pDexOrJar->fileName = sourceName;
217 LOGV("Closing DEX file %p (%s)\n", pDexOrJar, pDexOrJar->fileName);
231 u4 hash = dvmComputeUtf8Hash(pDexOrJar->fileName);
235 pDexOrJar->fileName);
238 LOGV("+++ freeing DexFile '%s' resources\n", pDexOrJar->fileName);
241 LOGV("+++ NOT freeing DexFile '%s' resources\n", pDexOrJar->fileName);
[all...]
H A Djava_lang_Runtime.c75 char* fileName = NULL; local
81 fileName = dvmCreateCstrFromString(fileNameObj);
83 success = dvmLoadNativeCode(fileName, classLoader, &reason);
91 free(fileName);
H A Ddalvik_system_VMDebug.c640 * static void dumpHprofData(String fileName, FileDescriptor fd)
651 char* fileName; local
663 fileName = dvmCreateCstrFromString(fileNameStr);
664 if (fileName == NULL) {
670 fileName = strdup("[fd]");
680 result = hprofDumpHeap(fileName, fd, false);
681 free(fileName);
/dalvik/dx/src/junit/runner/
H A DTestCaseClassLoader.java115 String fileName= className.replace('.', '/')+".class";
117 data= loadJarData(path, fileName);
119 data= loadFileData(path, fileName);
133 private byte[] loadFileData(String path, String fileName) { argument
134 File file= new File(path, fileName);
158 private byte[] loadJarData(String path, String fileName) { argument
169 ZipEntry entry= zipFile.getEntry(fileName);
/dalvik/vm/alloc/
H A DHeapDebug.c378 void dvmDumpHeapToFile(const char *fileName)
383 fp = fopen(fileName, "w+");
385 LOGE("Can't open %s for writing: %s\n", fileName, strerror(errno));
388 LOGW("Dumping heap to %s...\n", fileName);
397 LOGW("Dumped heap to %s.\n", fileName);
/dalvik/vm/oo/
H A DClass.h46 char* fileName; member in struct:ClassPathEntry

Completed in 279 milliseconds

12