Home
last modified time | relevance | path

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

12345678910>>...22

/external/libgdx/gdx/src/com/badlogic/gdx/assets/
DAssetManager.java127 public synchronized <T> T get (String fileName) { in get() argument
128 Class<T> type = assetTypes.get(fileName); in get()
129 if (type == null) throw new GdxRuntimeException("Asset not loaded: " + fileName); in get()
131 if (assetsByType == null) throw new GdxRuntimeException("Asset not loaded: " + fileName); in get()
132 RefCountedContainer assetContainer = assetsByType.get(fileName); in get()
133 if (assetContainer == null) throw new GdxRuntimeException("Asset not loaded: " + fileName); in get()
135 if (asset == null) throw new GdxRuntimeException("Asset not loaded: " + fileName); in get()
142 public synchronized <T> T get (String fileName, Class<T> type) { in get() argument
144 if (assetsByType == null) throw new GdxRuntimeException("Asset not loaded: " + fileName); in get()
145 RefCountedContainer assetContainer = assetsByType.get(fileName); in get()
[all …]
DAssetLoadingTask.java64 …dependencies = asyncLoader.getDependencies(assetDesc.fileName, resolve(loader, assetDesc), assetDe… in call()
67 manager.injectDependencies(assetDesc.fileName, dependencies); in call()
70 … asyncLoader.loadAsync(manager, assetDesc.fileName, resolve(loader, assetDesc), assetDesc.params); in call()
74 asyncLoader.loadAsync(manager, assetDesc.fileName, resolve(loader, assetDesc), assetDesc.params); in call()
99 …dependencies = syncLoader.getDependencies(assetDesc.fileName, resolve(loader, assetDesc), assetDes… in handleSyncLoader()
101 …asset = syncLoader.load(manager, assetDesc.fileName, resolve(loader, assetDesc), assetDesc.params); in handleSyncLoader()
105 manager.injectDependencies(assetDesc.fileName, dependencies); in handleSyncLoader()
107 …asset = syncLoader.load(manager, assetDesc.fileName, resolve(loader, assetDesc), assetDesc.params); in handleSyncLoader()
121 … throw new GdxRuntimeException("Couldn't load dependencies of asset: " + assetDesc.fileName, e); in handleAsyncLoader()
125 …asset = asyncLoader.loadSync(manager, assetDesc.fileName, resolve(loader, assetDesc), assetDesc.pa… in handleAsyncLoader()
[all …]
DAssetDescriptor.java25 public final String fileName; field in AssetDescriptor
31 public AssetDescriptor (String fileName, Class<T> assetType) { in AssetDescriptor() argument
32 this(fileName, assetType, null); in AssetDescriptor()
40 public AssetDescriptor (String fileName, Class<T> assetType, AssetLoaderParameters<T> params) { in AssetDescriptor() argument
41 this.fileName = fileName.replaceAll("\\\\", "/"); in AssetDescriptor()
48 this.fileName = file.path().replaceAll("\\\\", "/"); in AssetDescriptor()
57 buffer.append(fileName); in toString()
/external/libgdx/tests/gdx-tests/src/com/badlogic/gdx/tests/utils/
DAssetsFileGenerator.java41 String fileName = file.toString().replace("\\", "/").replace(base, ""); in traverse() local
42 if (fileName.endsWith(".png") || fileName.endsWith(".jpg") || fileName.endsWith(".jpeg")) { in traverse()
43 list.append("i:" + fileName + "\n"); in traverse()
44 System.out.println(fileName); in traverse()
45 } else if (fileName.endsWith(".glsl") || fileName.endsWith(".fnt") || fileName.endsWith(".pack") in traverse()
46 || fileName.endsWith(".obj") || file.extension().equals("") || fileName.endsWith("txt")) { in traverse()
47 list.append("t:" + fileName + "\n"); in traverse()
48 System.out.println(fileName); in traverse()
50 … if (fileName.endsWith(".mp3") || fileName.endsWith(".ogg") || fileName.endsWith(".wav")) continue; in traverse()
51 list.append("b:" + fileName + "\n"); in traverse()
[all …]
/external/antlr/antlr-3.4/runtime/CSharp3/Sources/Antlr3.Runtime/
DANTLRFileStream.cs50 protected string fileName; field in Antlr.Runtime.ANTLRFileStream
52 public ANTLRFileStream( string fileName ) in ANTLRFileStream() argument
53 : this( fileName, null ) in ANTLRFileStream()
57 public ANTLRFileStream( string fileName, Encoding encoding ) in ANTLRFileStream() argument
59 this.fileName = fileName; in ANTLRFileStream()
60 Load( fileName, encoding ); in ANTLRFileStream()
63 public virtual void Load( string fileName, Encoding encoding ) in Load() argument
65 if ( fileName == null ) in Load()
72 text = File.ReadAllText(fileName); in Load()
74 text = File.ReadAllText(fileName, encoding); in Load()
[all …]
/external/antlr/antlr-3.4/runtime/CSharp2/Sources/Antlr3.Runtime/Antlr.Runtime/
DANTLRFileStream.cs67 public ANTLRFileStream(string fileName) : in ANTLRFileStream() argument
68 this(fileName, Encoding.Default) in ANTLRFileStream()
76 public ANTLRFileStream(string fileName, Encoding encoding) in ANTLRFileStream() argument
78 this.fileName = fileName; in ANTLRFileStream()
79 Load(fileName, encoding); in ANTLRFileStream()
87 get { return fileName; }
101 public virtual void Load(string fileName, Encoding encoding) in Load() argument
103 if (fileName == null) in Load()
109 FileInfo f = new FileInfo(fileName); in Load()
113 fr = new StreamReader(fileName, encoding); in Load()
[all …]
/external/antlr/antlr-3.4/runtime/Java/src/main/java/org/antlr/runtime/
DANTLRFileStream.java39 protected String fileName; field in ANTLRFileStream
41 public ANTLRFileStream(String fileName) throws IOException { in ANTLRFileStream() argument
42 this(fileName, null); in ANTLRFileStream()
45 public ANTLRFileStream(String fileName, String encoding) throws IOException { in ANTLRFileStream() argument
46 this.fileName = fileName; in ANTLRFileStream()
47 load(fileName, encoding); in ANTLRFileStream()
50 public void load(String fileName, String encoding) in load() argument
53 if ( fileName==null ) { in load()
56 File f = new File(fileName); in load()
59 FileInputStream fis = new FileInputStream(fileName); in load()
[all …]
/external/lzma/CPP/7zip/UI/Common/
DDefaultName.cpp7 static UString GetDefaultName3(const UString &fileName, in GetDefaultName3() argument
11 int fileNameLength = fileName.Len(); in GetDefaultName3()
15 if (fileName[dotPos] == '.') in GetDefaultName3()
16 if (extension.IsEqualToNoCase(fileName.Ptr(dotPos + 1))) in GetDefaultName3()
17 return fileName.Left(dotPos) + addSubExtension; in GetDefaultName3()
19 int dotPos = fileName.ReverseFind(L'.'); in GetDefaultName3()
21 return fileName.Left(dotPos) + addSubExtension; in GetDefaultName3()
24 return fileName + L"~"; in GetDefaultName3()
26 return fileName + addSubExtension; in GetDefaultName3()
29 UString GetDefaultName2(const UString &fileName, in GetDefaultName2() argument
[all …]
/external/apache-http/android/src/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()
/external/skia/tools/lua/
Dbbh_filter.lua23 fileName = '',
54 function sk_scrape_startcanvas(c, fileName) end
56 function sk_scrape_endcanvas(c, fileName)
57 globalInfo[fileName] = currentInfo
58 globalInfo[fileName].fileName = fileName
121 if not visitedFiles[t.fileName] then
122 visitedFiles[t.fileName] = true
123 io.write ("{\nname = \"", t.fileName, "\", \nverbs = {\n")
124 for verb,count in pairs(globalInfo[t.fileName].verbs) do
/external/okhttp/okhttp-hpacktests/src/test/java/com/squareup/okhttp/internal/spdy/hpackjson/
DStory.java27 private transient String fileName; field in Story
35 void setFileName(String fileName) { in setFileName() argument
36 this.fileName = fileName; in setFileName()
51 story.fileName = this.fileName; in clone()
64 return fileName; in toString()
/external/antlr/antlr-3.4/runtime/C/src/
Dantlr3filestream.c50 static pANTLR3_INPUT_STREAM antlr3CreateFileStream (pANTLR3_UINT8 fileName);
54 antlr3FileStreamNew(pANTLR3_UINT8 fileName, ANTLR3_UINT32 encoding) in antlr3FileStreamNew() argument
63 input = antlr3CreateFileStream(fileName); in antlr3FileStreamNew()
81 input->istream->streamName = input->strFactory->newStr8(input->strFactory, fileName); in antlr3FileStreamNew()
82 input->fileName = input->istream->streamName; in antlr3FileStreamNew()
120 input->fileName = input->istream->streamName; in antlr3StringStreamNew()
308 antlr3CreateFileStream(pANTLR3_UINT8 fileName) in antlr3CreateFileStream() argument
315 if (fileName == NULL) in antlr3CreateFileStream()
332 status = antlr3read8Bit(input, fileName); in antlr3CreateFileStream()
353 antlr3read8Bit(pANTLR3_INPUT_STREAM input, pANTLR3_UINT8 fileName) in antlr3read8Bit() argument
[all …]
/external/antlr/antlr-3.4/gunit/src/main/java/org/antlr/gunit/swingui/model/
DTestCaseInputFile.java40 private String fileName; field in TestCaseInputFile
43 this.fileName = file; in TestCaseInputFile()
47 return "FILE:" + fileName; in getLabel()
51 this.fileName = script; in setScript()
56 return fileName; in toString()
60 return this.fileName; in getScript()
/external/antlr/antlr-3.4/runtime/JavaScript/src/org/antlr/runtime/
DANTLRFileStream.js10 org.antlr.runtime.ANTLRFileStream = function(fileName, encoding) { argument
11 this.fileName = fileName;
24 var data = this[method](fileName, encoding);
36 return this.fileName;
46 loadFileUsingJava: function(fileName, encoding) { argument
48 var f = new java.io.File(fileName),
/external/apache-harmony/support/src/test/java/tests/util/
DSerializationTester.java114 public static boolean assertCompabilitySame(Object obj, String fileName) in assertCompabilitySame() argument
116 return obj == readObject(obj, fileName); in assertCompabilitySame()
128 public static boolean assertCompabilityEquals(Object obj, String fileName) in assertCompabilityEquals() argument
130 return obj.equals(readObject(obj, fileName)); in assertCompabilityEquals()
141 public static Object readObject(Object obj, String fileName) in readObject() argument
146 fileName); in readObject()
149 writeObject(obj, new File(fileName).getName()); in readObject()
182 public static void writeObject(Object obj, String fileName) in writeObject() argument
196 output = new FileOutputStream(fileName); in writeObject()
/external/antlr/antlr-3.4/tool/src/main/java/org/antlr/tool/
DBuildDependencyGenerator.java123 String fileName = grammar.name + suffix + headerExtST.render(); in getGeneratedFileList() local
124 files.add(new File(outputDir, fileName)); in getGeneratedFileList()
171 String fileName = groomQualifiedFileName(libdir, g.fileName); in getDependenciesFileList() local
172 files.add(new File(fileName)); in getDependenciesFileList()
207 dependenciesST.add("grammarFileName", grammar.fileName); in getDependencies()
213 String fileName = "org/antlr/tool/templates/depend.stg"; in loadDependencyTemplates()
214 templates = new STGroupFile(fileName); in loadDependencyTemplates()
225 public String groomQualifiedFileName(String outputDir, String fileName) { in groomQualifiedFileName() argument
227 return fileName; in groomQualifiedFileName()
232 return escSpaces + File.separator + fileName; in groomQualifiedFileName()
[all …]
/external/lzma/CPP/Windows/
DFileIO.cpp305 IsDeviceFile = IsDevicePath(fileName); \
306 CalcDeviceSize(fileName);
311 bool CInFile::Open(CFSTR fileName, DWORD shareMode, DWORD creationDisposition, DWORD flagsAndAttrib… in Open() argument
313 bool res = Create(fileName, GENERIC_READ, shareMode, creationDisposition, flagsAndAttributes); in Open()
318 bool CInFile::OpenShared(CFSTR fileName, bool shareForWrite) in OpenShared() argument
319 { return Open(fileName, FILE_SHARE_READ | (shareForWrite ? FILE_SHARE_WRITE : 0), OPEN_EXISTING, FI… in OpenShared()
321 bool CInFile::Open(CFSTR fileName) in Open() argument
322 { return OpenShared(fileName, false); } in Open()
374 bool COutFile::Open(CFSTR fileName, DWORD shareMode, DWORD creationDisposition, DWORD flagsAndAttri… in Open() argument
375 …{ return CFileBase::Create(fileName, GENERIC_WRITE, shareMode, creationDisposition, flagsAndAttrib… in Open()
[all …]
/external/jmonkeyengine/engine/src/niftygui/com/jme3/niftygui/
DSoundHandleJme.java45 private String fileName; field in SoundHandleJme
61 public SoundHandleJme(AudioRenderer ar, AssetManager am, String fileName){ in SoundHandleJme() argument
66 if (fileName == null) in SoundHandleJme()
69 this.fileName = fileName; in SoundHandleJme()
73 if (fileName != null){ in play()
78 node = new AudioNode(am, fileName, true); in play()
/external/deqp/framework/common/
DtcuImageIO.cpp55 void loadImage (TextureLevel& dst, const tcu::Archive& archive, const char* fileName) in loadImage() argument
57 string ext = de::FilePath(fileName).getFileExtension(); in loadImage()
60 loadPNG(dst, archive, fileName); in loadImage()
62 throw InternalError("Unrecognized image file extension", fileName, __FILE__, __LINE__); in loadImage()
82 void loadPNG (TextureLevel& dst, const tcu::Archive& archive, const char* fileName) in loadPNG() argument
84 de::UniquePtr<Resource> resource(archive.getResource(fileName)); in loadPNG()
98 throw InternalError("An error occured when loading PNG", fileName, __FILE__, __LINE__); in loadPNG()
118 throw InternalError("Unsupported PNG depth or color type", fileName, __FILE__, __LINE__); in loadPNG()
155 void savePNG (const ConstPixelBufferAccess& src, const char* fileName) in savePNG() argument
157 FILE* fp = fopen(fileName, "wb"); in savePNG()
[all …]
/external/jcommander/src/main/java/com/beust/jcommander/defaultprovider/
DPropertyFileDefaultProvider.java41 public PropertyFileDefaultProvider(String fileName) { in PropertyFileDefaultProvider() argument
42 init(fileName); in PropertyFileDefaultProvider()
45 private void init(String fileName) { in init() argument
48 URL url = ClassLoader.getSystemResource(fileName); in init()
52 throw new ParameterException("Could not find property file: " + fileName in init()
57 throw new ParameterException("Could not open property file: " + fileName); in init()
/external/libphonenumber/libphonenumber/src/com/google/i18n/phonenumbers/
DMultiFileMetadataSourceImpl.java101 String fileName = filePrefix + "_" + in loadMetadataFromFile() local
103 InputStream source = metadataLoader.loadMetadata(fileName); in loadMetadataFromFile()
105 logger.log(Level.SEVERE, "missing metadata: " + fileName); in loadMetadataFromFile()
106 throw new IllegalStateException("missing metadata: " + fileName); in loadMetadataFromFile()
114 logger.log(Level.SEVERE, "empty metadata: " + fileName); in loadMetadataFromFile()
115 throw new IllegalStateException("empty metadata: " + fileName); in loadMetadataFromFile()
118 logger.log(Level.WARNING, "invalid metadata (too many entries): " + fileName); in loadMetadataFromFile()
127 logger.log(Level.SEVERE, "cannot load/parse metadata: " + fileName, e); in loadMetadataFromFile()
128 throw new RuntimeException("cannot load/parse metadata: " + fileName, e); in loadMetadataFromFile()
/external/dexmaker/src/dx/java/com/android/dx/util/
DFileUtils.java41 public static byte[] readFile(String fileName) { in readFile() argument
42 File file = new File(fileName); in readFile()
96 public static boolean hasArchiveSuffix(String fileName) { in hasArchiveSuffix() argument
97 return fileName.endsWith(".zip") in hasArchiveSuffix()
98 || fileName.endsWith(".jar") in hasArchiveSuffix()
99 || fileName.endsWith(".apk"); in hasArchiveSuffix()
/external/icu/icu4c/source/samples/layout/
DUnicodeReader.cpp26 const UChar *UnicodeReader::readFile(const char *fileName, GUISupport *guiSupport, int32_t &charCou… in readFile() argument
38 f = fopen(fileName, "rb"); in readFile()
41 sprintf(errorMessage,"Couldn't open %s: %s \n", fileName, strerror(errno)); in readFile()
74 …rintf(errorMessage, "Couldn't detect the encoding of %s: (%2.2X, %2.2X, %2.2X, %2.2X)\n", fileName, in readFile()
86 … sprintf(errorMessage,"Couldn't get memory for reading %s: %s \n", fileName, strerror(errno)); in readFile()
94 sprintf(errorMessage,"Couldn't read %s: %s \n", fileName, strerror(errno)); in readFile()
109 … sprintf(errorMessage,"Couldn't get memory for reading %s: %s \n", fileName, strerror(errno)); in readFile()
/external/snakeyaml/src/test/java/org/yaml/snakeyaml/extensions/compactnotation/
DCompactConstructorErrorsTest.java42 private Object load(String fileName) { in load() argument
46 String doc = Util.getLocalResource("compactnotation/" + fileName); in load()
52 private void failLoad(String fileName, String failure) { in failLoad() argument
53 load(fileName); in failLoad()
57 private void check(String fileName, String failure, String message) { in check() argument
58 check(fileName, failure, message, true); in check()
61 private void check(String fileName, String failure, String message, boolean exactMatch) { in check() argument
63 failLoad(fileName, failure); in check()

12345678910>>...22