/external/libxaac/test/ |
ixheaacd_fileifc.c | 36 FileWrapperPtr FileWrapper_Open(char fileName[]) { 50 if ((transport->fileCtxt = it_fopen((void *)fileName, 1, 0)) == NULL) { 51 transport->inputFile = fopen(fileName, "rb"); 60 transport->inputFile = fopen(fileName, "rb"); 75 transport->inputFile = fopen(fileName, "rb");
|
/packages/apps/UnifiedEmail/src/com/android/mail/utils/ |
MimeType.java | 103 * Extract and return filename's extension, converted to lower case, and not including the "." 105 * @return extension, or null if not found (or null/empty filename) 107 private static String getFilenameExtension(String fileName) { 109 if (!TextUtils.isEmpty(fileName)) { 110 int lastDot = fileName.lastIndexOf('.'); 111 if ((lastDot > 0) && (lastDot < fileName.length() - 1)) { 112 extension = fileName.substring(lastDot + 1).toLowerCase();
|
/external/libphonenumber/libphonenumber/src/com/google/i18n/phonenumbers/ |
MetadataManager.java | 115 String fileName = filePrefix + "_" + key; 116 List<PhoneMetadata> metadataList = getMetadataFromSingleFileName(fileName, metadataLoader); 118 logger.log(Level.WARNING, "more than one metadata in file " + fileName); 127 static SingleFileMetadataMaps load(String fileName, MetadataLoader metadataLoader) { 128 List<PhoneMetadata> metadataList = getMetadataFromSingleFileName(fileName, metadataLoader); 173 AtomicReference<SingleFileMetadataMaps> ref, String fileName, MetadataLoader metadataLoader) { 178 maps = SingleFileMetadataMaps.load(fileName, metadataLoader); 183 private static List<PhoneMetadata> getMetadataFromSingleFileName(String fileName, 185 InputStream source = metadataLoader.loadMetadata(fileName); 188 throw new IllegalStateException("missing metadata: " + fileName); [all...] |
/build/make/tools/zipalign/ |
ZipFile.h | 73 * of "fileName". 80 status_t add(const char* fileName, int compressionMethod, 83 return add(fileName, fileName, compressionMethod, ppEntry); 85 status_t add(const char* fileName, const char* storageName, 88 return addCommon(fileName, NULL, 0, storageName, 151 ZipEntry* getEntryByName(const char* fileName) const; 218 status_t addCommon(const char* fileName, const void* data, size_t size,
|
/cts/tests/tests/media/src/android/media/cts/ |
ExifInterfaceTest.java | 182 private void printExifTagsAndValues(String fileName, ExifInterface exifInterface) { 187 Log.v(TAG, fileName + " Thumbnail size = " + thumbnailBytes.length); 190 Log.e(TAG, fileName + " Corrupted thumbnail!"); 192 Log.v(TAG, fileName + " Thumbnail size: " + bitmap.getWidth() + ", " 196 Log.e(TAG, fileName + " Unexpected result: No thumbnails were found. " 201 Log.e(TAG, fileName + " Unexpected result: A thumbnail was found. " 204 Log.v(TAG, fileName + " No thumbnail"); 209 Log.v(TAG, fileName + " Altitude = " + exifInterface.getAltitude(.0)); 213 Log.v(TAG, fileName + " Latitude = " + latLong[0]); 214 Log.v(TAG, fileName + " Longitude = " + latLong[1]) [all...] |
DecodeAccuracyTest.java | 140 private String fileName; 174 public DecodeAccuracyTest(String testname, String fileName) { 175 this.fileName = fileName; 180 runTest(new GLSurfaceViewFactory(), new VideoFormat(fileName)); 185 runTest(new GLSurfaceViewFactory(), getLargerHeightVideoFormat(new VideoFormat(fileName))); 190 runTest(new GLSurfaceViewFactory(), getLargerWidthVideoFormat(new VideoFormat(fileName))); 195 runTest(new SurfaceViewFactory(), new VideoFormat(fileName)); 200 runTest(new SurfaceViewFactory(), getLargerHeightVideoFormat(new VideoFormat(fileName))); 205 runTest(new SurfaceViewFactory(), getLargerWidthVideoFormat(new VideoFormat(fileName))); [all...] |
/developers/build/prebuilts/gradle/PermissionRequest/Application/src/main/java/com/example/android/permissionrequest/ |
SimpleWebServer.java | 179 * Loads all the content of {@code fileName}. 181 * @param fileName The name of the file. 185 private byte[] loadContent(String fileName) throws IOException { 189 input = mAssets.open(fileName); 207 * Detects the MIME type from the {@code fileName}. 209 * @param fileName The name of the file. 212 private String detectMimeType(String fileName) { 213 if (TextUtils.isEmpty(fileName)) { 215 } else if (fileName.endsWith(".html")) { 217 } else if (fileName.endsWith(".js")) [all...] |
/developers/samples/android/content/webview/PermissionRequest/Application/src/main/java/com/example/android/permissionrequest/ |
SimpleWebServer.java | 179 * Loads all the content of {@code fileName}. 181 * @param fileName The name of the file. 185 private byte[] loadContent(String fileName) throws IOException { 189 input = mAssets.open(fileName); 207 * Detects the MIME type from the {@code fileName}. 209 * @param fileName The name of the file. 212 private String detectMimeType(String fileName) { 213 if (TextUtils.isEmpty(fileName)) { 215 } else if (fileName.endsWith(".html")) { 217 } else if (fileName.endsWith(".js")) [all...] |
/development/samples/browseable/PermissionRequest/src/com.example.android.permissionrequest/ |
SimpleWebServer.java | 179 * Loads all the content of {@code fileName}. 181 * @param fileName The name of the file. 185 private byte[] loadContent(String fileName) throws IOException { 189 input = mAssets.open(fileName); 207 * Detects the MIME type from the {@code fileName}. 209 * @param fileName The name of the file. 212 private String detectMimeType(String fileName) { 213 if (TextUtils.isEmpty(fileName)) { 215 } else if (fileName.endsWith(".html")) { 217 } else if (fileName.endsWith(".js")) [all...] |
/external/antlr/antlr-3.4/tool/src/main/java/org/antlr/codegen/ |
CTarget.java | 52 String fileName = generator.getRecognizerFileName(grammar.name, grammar.type); 53 generator.write(outputFileST, fileName); 67 String fileName = generator.getRecognizerFileName(grammar.name, grammar.type); 68 fileName = fileName.substring(0, fileName.length() - 2) + extName; 70 generator.write(headerFileST, fileName);
|
/frameworks/av/media/libstagefright/tests/ |
MediaCodecListOverrides_test.cpp | 90 void exportTestResultsToXML(const char *fileName) { 103 exportResultsToXML(fileName, gR, eR, dR); 136 const char *fileName = "/sdcard/mediacodec_list_overrides_test.xml"; 137 remove(fileName); 139 exportTestResultsToXML(fileName); 143 FILE *f = fopen(fileName, "rb"); 161 remove(fileName);
|
/frameworks/opt/photoviewer/sample/src/com/example/photoviewersample/ |
SampleProvider.java | 154 String fileName; 157 fileName = "blah.png"; 160 fileName = "johannson.png"; 163 fileName = "planets.png"; 166 fileName = "galaxy.png"; 169 fileName = null; 173 return getContext().getAssets().openFd(fileName);
|
/frameworks/support/persistence/db/src/main/java/androidx/sqlite/db/ |
SupportSQLiteOpenHelper.java | 273 private void deleteDatabaseFile(String fileName) { 274 if (fileName.equalsIgnoreCase(":memory:") || fileName.trim().length() == 0) { 277 Log.w(TAG, "deleting the database file: " + fileName); 280 SQLiteDatabase.deleteDatabase(new File(fileName)); 283 final boolean deleted = new File(fileName).delete(); 285 Log.e(TAG, "Could not delete the database file " + fileName);
|
/libcore/luni/src/test/java/libcore/java/io/ |
OldRandomAccessFileTest.java | 33 public String fileName; 54 File tmpFile = new File(fileName); 108 File tmpFile = new File(fileName); 111 raf = new java.io.RandomAccessFile(fileName, "r"); 122 raf = new java.io.RandomAccessFile(fileName, "rwd"); 128 raf = new java.io.RandomAccessFile(fileName, "rws"); 134 raf = new java.io.RandomAccessFile(fileName, "rw"); 142 raf = new java.io.RandomAccessFile(fileName, "i"); 149 raf = new java.io.RandomAccessFile(fileName, "r"); 171 RandomAccessFile raf = new java.io.RandomAccessFile(fileName, "rw") [all...] |
/libcore/dalvik/src/main/java/dalvik/system/ |
DexFile.java | 79 * Opens a DEX file from a given filename. 86 public DexFile(String fileName) throws IOException { 87 this(fileName, null, null); 93 * @param fileName 94 * the filename of the DEX file 100 DexFile(String fileName, ClassLoader loader, DexPathList.Element[] elements) throws IOException { 101 mCookie = openDexFile(fileName, null, 0, loader, elements); 103 mFileName = fileName; 104 //System.out.println("DEX FILE cookie is " + mCookie + " fileName=" + fileName); [all...] |
/sdk/eclipse/plugins/com.android.ide.eclipse.tests/unittests/com/android/ide/eclipse/adt/internal/editors/draw9patch/graphics/ |
GraphicsUtilitiesTest.java | 38 String fileName = DIR + "no-patched.png"; 40 getClass().getResourceAsStream(fileName)); 78 String fileName = DIR + "no-patched.png"; 80 getClass().getResourceAsStream(fileName)); 99 String fileName = DIR + "no-patched.png"; 101 getClass().getResourceAsStream(fileName)); 133 String fileName = DIR + "no-patched.png"; 135 getClass().getResourceAsStream(fileName)); 207 String fileName = DIR + "no-patched.png"; 209 getClass().getResourceAsStream(fileName)); [all...] |
/frameworks/base/core/java/android/content/res/ |
AssetManager.java | 715 * @param fileName The name of the asset to open. This name can be hierarchical. 720 public @NonNull InputStream open(@NonNull String fileName) throws IOException { 721 return open(fileName, ACCESS_STREAMING); 730 * @param fileName The name of the asset to open. This name can be hierarchical. 740 public @NonNull InputStream open(@NonNull String fileName, int accessMode) throws IOException { 741 Preconditions.checkNotNull(fileName, "fileName"); 744 final long asset = nativeOpenAsset(mObject, fileName, accessMode); 746 throw new FileNotFoundException("Asset file: " + fileName); 761 * @param fileName The name of the asset to open. This name can be hierarchical [all...] |
/art/tools/checker/file_format/checker/ |
struct.py | 22 def __init__(self, fileName): 23 self.fileName = fileName 50 Logger.fail("Test case does not have a name", self.fileName, self.startLineNo) 55 def fileName(self): 56 return self.parent.fileName 65 new_assertion.fileName, new_assertion.lineNo) 92 def fileName(self): 93 return self.parent.fileName 99 Logger.fail("CHECK-NOT lines cannot define variables", self.fileName, self.lineNo [all...] |
/external/apache-xml/src/main/java/org/apache/xml/serializer/ |
OutputPropertiesFactory.java | 254 String fileName = null; 264 fileName = PROP_FILE_XML; 265 m_xml_properties = loadPropertiesFile(fileName, null); 277 fileName = PROP_FILE_HTML; 279 loadPropertiesFile(fileName, m_xml_properties); 288 fileName = PROP_FILE_TEXT; 290 loadPropertiesFile(fileName, m_xml_properties); 307 fileName = PROP_FILE_UNKNOWN; 309 loadPropertiesFile(fileName, m_xml_properties); 325 new Object[] { fileName, method }) [all...] |
/libcore/luni/src/test/java/libcore/libcore/io/ |
ClassPathURLStreamHandlerTest.java | 69 String fileName = jarFile.getPath(); 70 ClassPathURLStreamHandler streamHandler = new ClassPathURLStreamHandler(fileName); 75 String fileName = jarFile.getPath(); 76 ClassPathURLStreamHandler streamHandler = new ClassPathURLStreamHandler(fileName); 108 String fileName = jarFile.getPath(); 111 assertEquals("jar:file:" + fileName + "!/" + expectedJarRelativeURI, 120 String fileName = jarFile.getPath(); 121 ClassPathURLStreamHandler streamHandler = new ClassPathURLStreamHandler(fileName); 136 String fileName = jarFile.getPath(); 137 ClassPathURLStreamHandler streamHandler = new ClassPathURLStreamHandler(fileName); [all...] |
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/ |
BluetoothOppSendFileInfo.java | 82 public BluetoothOppSendFileInfo(String fileName, String type, long length, 84 mFileName = fileName; 106 String fileName = null; 133 fileName = metadataCursor.getString(indexName); 139 Log.d(TAG, "fileName = " + fileName + " length = " + length); 146 if (fileName == null) { 148 fileName = uri.getLastPathSegment(); 149 if (D) Log.d(TAG, "fileName from URI :" + fileName); [all...] |
/cts/common/device-side/util/src/com/android/compatibility/common/util/ |
BitmapUtils.java | 95 private static void logIfBitmapSolidColor(String fileName, Bitmap bitmap) { 105 Log.w(TAG, String.format("%s entire bitmap color is %x", fileName, firstColor)); 108 public static void saveBitmap(Bitmap bitmap, String directoryName, String fileName) { 111 Log.d(TAG, "Saving file: " + fileName + " in directory: " + directoryName); 118 logIfBitmapSolidColor(fileName, bitmap); 120 File file = new File(directoryName, fileName);
|
/frameworks/support/jetifier/jetifier/processor/src/main/kotlin/com/android/tools/build/jetifier/processor/transform/ |
TransformationContext.kt | 96 fun reportNoPackageMappingFoundFailure(tag: String, packageName: String, fileName: String) { 99 Log.e(tag, "No mapping for package '%s' in '%s'", packageName, fileName) 101 Log.w(tag, "No mapping for package '%s' in '%s'", packageName, fileName)
|
/packages/apps/TV/tuner/src/com/android/tv/tuner/source/ |
TsStreamWriter.java | 224 String fileName = file.getName(); 225 int lastSeparator = fileName.lastIndexOf(SEPARATOR); 226 if (!fileName.endsWith(".ts") || lastSeparator == -1) { 230 return Integer.parseInt(fileName.substring(lastSeparator + 1, fileName.length() - 3)); 233 Log.e(TAG, fileName + " is not a valid file name.");
|
/packages/apps/UnifiedEmail/src/org/apache/commons/io/output/ |
LockableFileWriter.java | 66 * @param fileName the file to write to, not null 70 public LockableFileWriter(String fileName) throws IOException { 71 this(fileName, false, null); 77 * @param fileName file to write to, not null 82 public LockableFileWriter(String fileName, boolean append) throws IOException { 83 this(fileName, append, null); 89 * @param fileName the file to write to, not null 95 public LockableFileWriter(String fileName, boolean append, String lockDir) throws IOException { 96 this(new File(fileName), append, lockDir);
|