/external/antlr/runtime/CSharp3/Sources/Antlr3.Runtime/ |
D | ANTLRFileStream.cs | 50 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/runtime/CSharp2/Sources/Antlr3.Runtime/Antlr.Runtime/ |
D | ANTLRFileStream.cs | 67 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/runtime/Java/src/main/java/org/antlr/runtime/ |
D | ANTLRFileStream.java | 39 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/ |
D | DefaultName.cpp | 7 static UString GetDefaultName3(const UString &fileName, in GetDefaultName3() argument 11 const unsigned fileNameLen = fileName.Len(); in GetDefaultName3() 16 if (fileName[dotPos] == '.') in GetDefaultName3() 17 if (extension.IsEqualTo_NoCase(fileName.Ptr(dotPos + 1))) in GetDefaultName3() 18 return fileName.Left(dotPos) + addSubExtension; in GetDefaultName3() 21 int dotPos = fileName.ReverseFind_Dot(); in GetDefaultName3() 23 return fileName.Left(dotPos) + addSubExtension; in GetDefaultName3() 26 return fileName + L'~'; in GetDefaultName3() 28 return fileName + addSubExtension; in GetDefaultName3() 31 UString GetDefaultName2(const UString &fileName, in GetDefaultName2() argument [all …]
|
/external/llvm-project/mlir/lib/Transforms/ |
D | LocationSnapshot.cpp | 24 static void generateLocationsFromIR(raw_ostream &os, StringRef fileName, in generateLocationsFromIR() argument 38 Identifier file = builder.getIdentifier(fileName); in generateLocationsFromIR() 65 static LogicalResult generateLocationsFromIR(StringRef fileName, Operation *op, in generateLocationsFromIR() argument 69 SmallString<32> filepath(fileName); in generateLocationsFromIR() 95 void mlir::generateLocationsFromIR(raw_ostream &os, StringRef fileName, in generateLocationsFromIR() argument 97 ::generateLocationsFromIR(os, fileName, op, flags, /*tag=*/StringRef()); in generateLocationsFromIR() 102 LogicalResult mlir::generateLocationsFromIR(StringRef fileName, Operation *op, in generateLocationsFromIR() argument 104 return ::generateLocationsFromIR(fileName, op, flags, /*tag=*/StringRef()); in generateLocationsFromIR() 111 void mlir::generateLocationsFromIR(raw_ostream &os, StringRef fileName, in generateLocationsFromIR() argument 114 ::generateLocationsFromIR(os, fileName, op, flags, tag); in generateLocationsFromIR() [all …]
|
/external/icu/android_icu4j/libcore_bridge/src/java/com/android/i18n/timezone/ |
D | TimeZoneDataFiles.java | 48 public static String[] getTimeZoneFilePaths(String fileName) { in getTimeZoneFilePaths() argument 50 getDataTimeZoneFile(fileName), in getTimeZoneFilePaths() 51 getTimeZoneModuleTzFile(fileName), in getTimeZoneFilePaths() 63 public static String getDataTimeZoneFile(String fileName) { in getDataTimeZoneFile() argument 64 return getDataTimeZoneRootDir() + "current/" + fileName; in getDataTimeZoneFile() 67 public static String getTimeZoneModuleTzFile(String fileName) { in getTimeZoneModuleTzFile() argument 68 return getTimeZoneModuleFile("tz/" + fileName); in getTimeZoneModuleTzFile() 88 public static String getTimeZoneModuleFile(String fileName) { in getTimeZoneModuleFile() argument 89 return System.getenv(ANDROID_TZDATA_ROOT_ENV) + "/etc/" + fileName; in getTimeZoneModuleFile() 92 public static String getSystemTzFile(String fileName) { in getSystemTzFile() argument [all …]
|
/external/exoplayer/tree/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/flac/ |
D | FlacExtractorSeekTest.java | 64 String fileName = TEST_FILE_SEEK_TABLE; in seeking_seekTable_handlesSeekToZero() local 65 Uri fileUri = TestUtil.buildAssetUri(fileName); in seeking_seekTable_handlesSeekToZero() 76 fileName, trackOutput, targetSeekTimeUs, extractedFrameIndex); in seeking_seekTable_handlesSeekToZero() 81 String fileName = TEST_FILE_SEEK_TABLE; in seeking_seekTable_handlesSeekToEoF() local 82 Uri fileUri = TestUtil.buildAssetUri(fileName); in seeking_seekTable_handlesSeekToEoF() 93 fileName, trackOutput, targetSeekTimeUs, extractedFrameIndex); in seeking_seekTable_handlesSeekToEoF() 98 String fileName = TEST_FILE_SEEK_TABLE; in seeking_seekTable_handlesSeekingBackward() local 99 Uri fileUri = TestUtil.buildAssetUri(fileName); in seeking_seekTable_handlesSeekingBackward() 112 fileName, trackOutput, targetSeekTimeUs, extractedFrameIndex); in seeking_seekTable_handlesSeekingBackward() 117 String fileName = TEST_FILE_SEEK_TABLE; in seeking_seekTable_handlesSeekingForward() local [all …]
|
/external/exoplayer/tree/extensions/flac/src/androidTest/java/com/google/android/exoplayer2/ext/flac/ |
D | FlacExtractorSeekTest.java | 64 String fileName = TEST_FILE_SEEK_TABLE; in seeking_seekTable_handlesSeekToZero() local 65 Uri fileUri = TestUtil.buildAssetUri(fileName); in seeking_seekTable_handlesSeekToZero() 76 fileName, trackOutput, targetSeekTimeUs, extractedFrameIndex); in seeking_seekTable_handlesSeekToZero() 81 String fileName = TEST_FILE_SEEK_TABLE; in seeking_seekTable_handlesSeekToEoF() local 82 Uri fileUri = TestUtil.buildAssetUri(fileName); in seeking_seekTable_handlesSeekToEoF() 93 fileName, trackOutput, targetSeekTimeUs, extractedFrameIndex); in seeking_seekTable_handlesSeekToEoF() 98 String fileName = TEST_FILE_SEEK_TABLE; in seeking_seekTable_handlesSeekingBackward() local 99 Uri fileUri = TestUtil.buildAssetUri(fileName); in seeking_seekTable_handlesSeekingBackward() 112 fileName, trackOutput, targetSeekTimeUs, extractedFrameIndex); in seeking_seekTable_handlesSeekingBackward() 117 String fileName = TEST_FILE_SEEK_TABLE; in seeking_seekTable_handlesSeekingForward() local [all …]
|
/external/exoplayer/tree/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/amr/ |
D | AmrExtractorSeekTest.java | 60 String fileName = NARROW_BAND_AMR_FILE; in amrExtractorReads_returnSeekableSeekMap_forNarrowBandAmr() local 61 Uri fileUri = TestUtil.buildAssetUri(fileName); in amrExtractorReads_returnSeekableSeekMap_forNarrowBandAmr() 64 createAmrExtractor(), ApplicationProvider.getApplicationContext(), fileName) in amrExtractorReads_returnSeekableSeekMap_forNarrowBandAmr() 80 String fileName = NARROW_BAND_AMR_FILE; in seeking_handlesSeekingToPositionInFile_extractsCorrectFrame_forNarrowBandAmr() local 81 Uri fileUri = TestUtil.buildAssetUri(fileName); in seeking_handlesSeekingToPositionInFile_extractsCorrectFrame_forNarrowBandAmr() 84 createAmrExtractor(), ApplicationProvider.getApplicationContext(), fileName) in seeking_handlesSeekingToPositionInFile_extractsCorrectFrame_forNarrowBandAmr() 106 String fileName = NARROW_BAND_AMR_FILE; in seeking_handlesSeekToEoF_extractsLastFrame_forNarrowBandAmr() local 107 Uri fileUri = TestUtil.buildAssetUri(fileName); in seeking_handlesSeekToEoF_extractsLastFrame_forNarrowBandAmr() 110 createAmrExtractor(), ApplicationProvider.getApplicationContext(), fileName) in seeking_handlesSeekToEoF_extractsLastFrame_forNarrowBandAmr() 133 String fileName = NARROW_BAND_AMR_FILE; in seeking_handlesSeekingBackward_extractsCorrectFrames_forNarrowBandAmr() local [all …]
|
/external/exoplayer/tree/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/mp3/ |
D | IndexSeekerTest.java | 81 String fileName = TEST_FILE_NO_SEEK_TABLE; in seeking_handlesSeekToZero() local 82 Uri fileUri = TestUtil.buildAssetUri(fileName); in seeking_handlesSeekToZero() 93 fileName, trackOutput, targetSeekTimeUs, extractedFrameIndex); in seeking_handlesSeekToZero() 94 assertFirstFrameAfterSeekHasCorrectData(fileName, trackOutput, extractedFrameIndex); in seeking_handlesSeekToZero() 99 String fileName = TEST_FILE_NO_SEEK_TABLE; in seeking_handlesSeekToEof() local 100 Uri fileUri = TestUtil.buildAssetUri(fileName); in seeking_handlesSeekToEof() 111 fileName, trackOutput, targetSeekTimeUs, extractedFrameIndex); in seeking_handlesSeekToEof() 112 assertFirstFrameAfterSeekHasCorrectData(fileName, trackOutput, extractedFrameIndex); in seeking_handlesSeekToEof() 117 String fileName = TEST_FILE_NO_SEEK_TABLE; in seeking_handlesSeekingBackward() local 118 Uri fileUri = TestUtil.buildAssetUri(fileName); in seeking_handlesSeekingBackward() [all …]
|
D | ConstantBitrateSeekerTest.java | 72 String fileName = CONSTANT_FRAME_SIZE_TEST_FILE; in seeking_handlesSeekToZero() local 73 Uri fileUri = TestUtil.buildAssetUri(fileName); in seeking_handlesSeekToZero() 84 fileName, trackOutput, targetSeekTimeUs, extractedFrameIndex); in seeking_handlesSeekToZero() 89 String fileName = CONSTANT_FRAME_SIZE_TEST_FILE; in seeking_handlesSeekToEoF() local 90 Uri fileUri = TestUtil.buildAssetUri(fileName); in seeking_handlesSeekToEoF() 101 fileName, trackOutput, targetSeekTimeUs, extractedFrameIndex); in seeking_handlesSeekToEoF() 106 String fileName = CONSTANT_FRAME_SIZE_TEST_FILE; in seeking_handlesSeekingBackward() local 107 Uri fileUri = TestUtil.buildAssetUri(fileName); in seeking_handlesSeekingBackward() 120 fileName, trackOutput, targetSeekTimeUs, extractedFrameIndex); in seeking_handlesSeekingBackward() 125 String fileName = CONSTANT_FRAME_SIZE_TEST_FILE; in seeking_handlesSeekingForward() local [all …]
|
/external/cldr/tools/java/org/unicode/cldr/util/ |
D | FileProcessor.java | 39 public FileProcessor process(Class<?> classLocation, String fileName) { in process() argument 41 System.err.println("# Reading config file " + fileName); in process() 42 BufferedReader in = FileReaders.openFile(classLocation, fileName); in process() 43 return process(in, fileName); in process() 45 …) new IllegalArgumentException(lineCount + ":\t" + 0 + " - while reading" + fileName).initCause(e); in process() 50 public FileProcessor process(String fileName) { in process() argument 52 FileInputStream fileStream = new FileInputStream(fileName); in process() 55 return process(bufferedReader, fileName); in process() 61 public FileProcessor process(String directory, String fileName) { in process() argument 63 FileInputStream fileStream = new FileInputStream(directory + File.separator + fileName); in process() [all …]
|
/external/ImageMagick/Magick++/fuzz/ |
D | main.cc | 20 bool load(wstring fileName) in load() argument 28 file = ifstream(fileName, ios::in | ios::binary | ios::ate); in load() 42 encoderFormat.set(fileName, wstring(PathFindExtension(fileName.c_str()))); in load() 73 fileName; in wmain() local 84 fileName = wstring(fullPath) + L".input"; in wmain() 87 fileName = wstring(argv[1]); in wmain() 97 if (!debugger.load(fileName)) in wmain() 99 wcerr << L"Unable to load " << fileName; in wmain()
|
/external/zstd/tests/fuzz/ |
D | regression_driver.c | 46 char const *fileName = files->fileNames[i]; in main() local 47 DEBUGLOG(3, "Running %s", fileName); in main() 48 size_t const fileSize = UTIL_getFileSize(fileName); in main() 56 if (!UTIL_isRegularFile(fileName)) { in main() 60 FUZZ_ASSERT_MSG(fileSize <= kMaxFileSize, fileName); in main() 65 FUZZ_ASSERT_MSG(buffer, fileName); in main() 69 file = fopen(fileName, "rb"); in main() 70 FUZZ_ASSERT_MSG(file, fileName); in main() 73 FUZZ_ASSERT_MSG(readSize == fileSize, fileName); in main()
|
/external/apache-http/android/src/com/android/internal/http/multipart/ |
D | FilePartSource.java | 55 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()
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/platform/ |
D | AndroidDataFiles.java | 41 public static String getTimeZoneModuleIcuFile(String fileName) { in getTimeZoneModuleIcuFile() argument 42 return getTimeZoneModuleFile("icu/" + fileName); in getTimeZoneModuleIcuFile() 45 private static String getTimeZoneModuleFile(String fileName) { in getTimeZoneModuleFile() argument 46 return System.getenv(ANDROID_TZDATA_ROOT_ENV) + "/etc/" + fileName; in getTimeZoneModuleFile() 50 public static String getI18nModuleIcuFile(String fileName) { in getI18nModuleIcuFile() argument 51 return getI18nModuleFile("icu/" + fileName); in getI18nModuleIcuFile() 54 private static String getI18nModuleFile(String fileName) { in getI18nModuleFile() argument 55 return System.getenv(ANDROID_I18N_ROOT_ENV) + "/etc/" + fileName; in getI18nModuleFile()
|
/external/icu/android_icu4j/src/main/java/android/icu/platform/ |
D | AndroidDataFiles.java | 43 public static String getTimeZoneModuleIcuFile(String fileName) { in getTimeZoneModuleIcuFile() argument 44 return getTimeZoneModuleFile("icu/" + fileName); in getTimeZoneModuleIcuFile() 47 private static String getTimeZoneModuleFile(String fileName) { in getTimeZoneModuleFile() argument 48 return System.getenv(ANDROID_TZDATA_ROOT_ENV) + "/etc/" + fileName; in getTimeZoneModuleFile() 52 public static String getI18nModuleIcuFile(String fileName) { in getI18nModuleIcuFile() argument 53 return getI18nModuleFile("icu/" + fileName); in getI18nModuleIcuFile() 56 private static String getI18nModuleFile(String fileName) { in getI18nModuleFile() argument 57 return System.getenv(ANDROID_I18N_ROOT_ENV) + "/etc/" + fileName; in getI18nModuleFile()
|
/external/zstd/examples/ |
D | common.h | 180 static size_t loadFile_orDie(const char* fileName, void* buffer, size_t bufferSize) in loadFile_orDie() argument 182 size_t const fileSize = fsize_orDie(fileName); in loadFile_orDie() 185 FILE* const inFile = fopen_orDie(fileName, "rb"); in loadFile_orDie() 188 fprintf(stderr, "fread: %s : %s \n", fileName, strerror(errno)); in loadFile_orDie() 204 static void* mallocAndLoadFile_orDie(const char* fileName, size_t* bufferSize) { in mallocAndLoadFile_orDie() argument 205 size_t const fileSize = fsize_orDie(fileName); in mallocAndLoadFile_orDie() 208 loadFile_orDie(fileName, buffer, *bufferSize); in mallocAndLoadFile_orDie() 220 static void saveFile_orDie(const char* fileName, const void* buff, size_t buffSize) in saveFile_orDie() argument 222 FILE* const oFile = fopen_orDie(fileName, "wb"); in saveFile_orDie() 225 fprintf(stderr, "fwrite: %s : %s \n", fileName, strerror(errno)); in saveFile_orDie() [all …]
|
/external/exoplayer/tree/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/ts/ |
D | AdtsExtractorSeekTest.java | 58 String fileName = TEST_FILE; in adtsExtractorReads_returnSeekableSeekMap() local 59 Uri fileUri = TestUtil.buildAssetUri(fileName); in adtsExtractorReads_returnSeekableSeekMap() 62 createAdtsExtractor(), ApplicationProvider.getApplicationContext(), fileName) in adtsExtractorReads_returnSeekableSeekMap() 77 String fileName = TEST_FILE; in seeking_handlesSeekingToPositionInFile_extractsCorrectSample() local 78 Uri fileUri = TestUtil.buildAssetUri(fileName); in seeking_handlesSeekingToPositionInFile_extractsCorrectSample() 81 createAdtsExtractor(), ApplicationProvider.getApplicationContext(), fileName) in seeking_handlesSeekingToPositionInFile_extractsCorrectSample() 103 String fileName = TEST_FILE; in seeking_handlesSeekToEoF_extractsLastSample() local 104 Uri fileUri = TestUtil.buildAssetUri(fileName); in seeking_handlesSeekToEoF_extractsLastSample() 107 createAdtsExtractor(), ApplicationProvider.getApplicationContext(), fileName) in seeking_handlesSeekToEoF_extractsLastSample() 129 String fileName = TEST_FILE; in seeking_handlesSeekingBackward_extractsCorrectSamples() local [all …]
|
/external/fonttools/Lib/fontTools/misc/ |
D | cliTools.py | 32 dirName, fileName = os.path.split(input) 33 fileName, ext = os.path.splitext(fileName) 36 fileName = numberAddedRE.split(fileName)[0] 39 output = os.path.join(dirName, fileName + extension) 44 dirName, fileName + "#" + repr(n) + extension)
|
/external/skqp/tools/lua/ |
D | bbh_filter.lua | 23 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/ |
D | Story.java | 27 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/python/cpython2/Demo/parser/ |
D | test_parser.py | 10 def testChunk(t, fileName): argument 12 print '----', fileName, 22 print 'parser module raised exception on input file', fileName + ':' 28 print 'parser module failed on input file', fileName 33 def testFile(fileName): argument 34 t = open(fileName).read() 35 testChunk(t, fileName)
|
/external/antlr/runtime/C/src/ |
D | antlr3filestream.c | 50 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/gunit/src/main/java/org/antlr/gunit/swingui/model/ |
D | TestCaseInputFile.java | 40 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()
|