/frameworks/base/core/java/android/content/res/ |
D | AssetManager.java | 347 public final InputStream open(String fileName) throws IOException { in open() argument 348 return open(fileName, ACCESS_STREAMING); in open() 368 public final InputStream open(String fileName, int accessMode) in open() argument 374 long asset = openAsset(fileName, accessMode); in open() 381 throw new FileNotFoundException("Asset file: " + fileName); in open() 384 public final AssetFileDescriptor openFd(String fileName) in openFd() argument 390 ParcelFileDescriptor pfd = openAssetFd(fileName, mOffsets); in openFd() 395 throw new FileNotFoundException("Asset file: " + fileName); in openFd() 422 public final InputStream openNonAsset(String fileName) throws IOException { in openNonAsset() argument 423 return openNonAsset(0, fileName, ACCESS_STREAMING); in openNonAsset() [all …]
|
/frameworks/base/packages/Osu/src/com/android/hotspot2/osu/ |
D | IconCache.java | 118 private FileEntry(OSUInfo osuInfo, String fileName) { in FileEntry() argument 119 mFileName = fileName; in FileEntry() 188 String fileName = iconInfo.get(0).getFileName(); in resolveIcons() local 189 HSIconFileElement iconFileElement = get(key, fileName); in resolveIcons() 191 osuInfo.setIconFileElement(iconFileElement, fileName); in resolveIcons() 192 Log.d(OSUManager.TAG, "Icon cache hit for " + osuInfo + "/" + fileName); in resolveIcons() 195 FileEntry fileEntry = enqueue(key, fileName, osuInfo); in resolveIcons() 198 + osuInfo + "/" + fileName); in resolveIcons() 199 mOsuManager.doIconQuery(osuInfo.getBSSID(), fileName); in resolveIcons() local 202 + osuInfo + "/" + fileName); in resolveIcons() [all …]
|
/frameworks/base/core/jni/ |
D | com_android_internal_content_NativeLibraryHelper.cpp | 173 …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() 214 const size_t fileNameLen = strlen(fileName); in copyFileIfChanged() 224 if (strlcpy(localFileName + nativeLibPath.size() + 1, fileName, sizeof(localFileName) in copyFileIfChanged() 261 ALOGI("Failed uncompressing %s to %s\n", fileName, localTmpFileName); in copyFileIfChanged() 315 fileName[0] = '\0'; in NativeLibrariesIterator() 333 if (mZipFile->getEntryFileName(next, fileName, sizeof(fileName))) { in next() 338 const size_t fileNameLen = strlen(fileName); in next() 344 const char* lastSlash = strrchr(fileName, '/'); in next() [all …]
|
/frameworks/base/tools/aapt/ |
D | ZipFile.h | 80 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/ |
D | misc.cpp | 36 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()
|
D | AssetDir.cpp | 34 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/ |
D | DefaultDatabaseErrorHandler.java | 96 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 SQLiteDatabase.deleteDatabase(new File(fileName)); in deleteDatabaseFile()
|
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/stress/ |
D | MediaRecorderStressTest.java | 162 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/media/libstagefright/tests/ |
D | MediaCodecListOverrides_test.cpp | 90 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/ |
D | SampleProvider.java | 154 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/support/persistence/db/src/main/java/android/arch/persistence/db/ |
D | SupportSQLiteOpenHelper.java | 272 private void deleteDatabaseFile(String fileName) { in deleteDatabaseFile() argument 273 if (fileName.equalsIgnoreCase(":memory:") || fileName.trim().length() == 0) { in deleteDatabaseFile() 276 Log.w(TAG, "deleting the database file: " + fileName); in deleteDatabaseFile() 279 SQLiteDatabase.deleteDatabase(new File(fileName)); in deleteDatabaseFile() 282 final boolean deleted = new File(fileName).delete(); in deleteDatabaseFile() 284 Log.e(TAG, "Could not delete the database file " + fileName); in deleteDatabaseFile()
|
/frameworks/base/core/java/android/security/net/config/ |
D | DirectoryCertificateSource.java | 146 String fileName = hash + "." + index; 147 if (!new File(mDir, fileName).exists()) { 150 if (isCertMarkedAsRemoved(fileName)) { 153 X509Certificate cert = readCertificate(fileName); 173 String fileName = hash + "." + index; 174 if (!new File(mDir, fileName).exists()) { 177 if (isCertMarkedAsRemoved(fileName)) { 180 X509Certificate cert = readCertificate(fileName);
|
/frameworks/native/opengl/tests/gl_perfapp/jni/ |
D | gl_code.cpp | 73 const char* fileName = "/sdcard/glperf.csv"; in Java_com_android_glperf_GLPerfLib_init() local 79 ALOGI("Writing to: %s\n",fileName); in Java_com_android_glperf_GLPerfLib_init() 80 fOut = fopen(fileName, "w"); in Java_com_android_glperf_GLPerfLib_init() 82 ALOGE("Could not open: %s\n", fileName); in Java_com_android_glperf_GLPerfLib_init()
|
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/unit/ |
D | ExifInterfaceTest.java | 196 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/libs/androidfw/include/androidfw/ |
D | AssetManager.h | 133 Asset* open(const char* fileName, AccessMode mode); 142 Asset* openNonAsset(const char* fileName, AccessMode mode, int32_t* outCookie = NULL); 148 Asset* openNonAsset(const int32_t cookie, const char* fileName, AccessMode mode); 170 FileType getFileType(const char* fileName); 209 Asset* openNonAssetInPathLocked(const char* fileName, AccessMode mode, 213 const String8& dirName, const String8& fileName); 216 Asset* openAssetFromFileLocked(const String8& fileName, AccessMode mode);
|
D | misc.h | 43 FileType getFileType(const char* fileName); 45 time_t getFileModDate(const char* fileName);
|
/frameworks/base/core/java/android/webkit/ |
D | Plugin.java | 63 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/ |
D | RunTestCommand.java | 196 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/ |
D | IconInfo.java | 50 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/ |
D | screenrecord.cpp | 493 static FILE* prepareRawOutput(const char* fileName) { in prepareRawOutput() argument 496 if (strcmp(fileName, "-") == 0) { in prepareRawOutput() 503 rawFp = fopen(fileName, "w"); in prepareRawOutput() 532 static status_t recordScreen(const char* fileName) { in recordScreen() argument 644 err = unlink(fileName); in recordScreen() 649 int fd = open(fileName, O_CREAT | O_LARGEFILE | O_TRUNC | O_RDWR, S_IRUSR | S_IWUSR); in recordScreen() 664 rawFp = prepareRawOutput(fileName); in recordScreen() 741 static status_t notifyMediaScanner(const char* fileName) { in notifyMediaScanner() argument 744 fileUrl.append(fileName); in notifyMediaScanner() 995 const char* fileName = argv[optind]; in main() local [all …]
|
/frameworks/support/exifinterface/tests/src/android/support/media/ |
D | ExifInterfaceTest.java | 650 private void printExifTagsAndValues(String fileName, ExifInterface exifInterface) { in printExifTagsAndValues() argument 655 Log.v(TAG, fileName + " Thumbnail size = " + thumbnailBytes.length); in printExifTagsAndValues() 658 Log.e(TAG, fileName + " Corrupted thumbnail!"); in printExifTagsAndValues() 660 Log.v(TAG, fileName + " Thumbnail size: " + bitmap.getWidth() + ", " in printExifTagsAndValues() 664 Log.e(TAG, fileName + " Unexpected result: No thumbnails were found. " in printExifTagsAndValues() 669 Log.e(TAG, fileName + " Unexpected result: A thumbnail was found. " in printExifTagsAndValues() 672 Log.v(TAG, fileName + " No thumbnail"); in printExifTagsAndValues() 677 Log.v(TAG, fileName + " Altitude = " + exifInterface.getAltitude(.0)); in printExifTagsAndValues() 681 Log.v(TAG, fileName + " Latitude = " + latLong[0]); in printExifTagsAndValues() 682 Log.v(TAG, fileName + " Longitude = " + latLong[1]); in printExifTagsAndValues() [all …]
|
/frameworks/base/tools/preload/ |
D | Root.java | 134 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/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/ |
D | IconEvent.java | 9 public IconEvent(long bssid, String fileName, int size, byte[] data) { in IconEvent() argument 11 mFileName = fileName; in IconEvent()
|
/frameworks/opt/telephony/src/java/com/google/android/mms/pdu/ |
D | PduBody.java | 66 byte[] fileName = part.getFilename(); in putPartToMaps() 67 if(null != fileName) { in putPartToMaps() 68 String clc = new String(fileName); in putPartToMaps()
|
/frameworks/support/lifecycle/compiler/ |
D | reset_results.py | 33 def writeToFile(fileName, lines): argument 34 file = open("src/tests/test-data/expected/" + fileName, "w")
|