Home
last modified time | relevance | path

Searched refs:inputStream (Results 1 – 25 of 71) sorted by relevance

123

/external/antlr/antlr-3.4/runtime/CSharp2/Sources/Antlr3.Runtime.Tests/
DANTLRxxxxStreamFixture.cs78 ANTLRInputStream inputStream = new ANTLRInputStream(grammarStream, Encoding.Unicode); in TestSizeOnEmptyANTLRInputStream()
79 Assert.AreEqual(0, inputStream.Count); in TestSizeOnEmptyANTLRInputStream()
89 ANTLRInputStream inputStream = new ANTLRInputStream(grammarStream, Encoding.Unicode); in TestSizeOnANTLRInputStream()
90 Assert.AreEqual(grammarStr.Length, inputStream.Count); in TestSizeOnANTLRInputStream()
100 ANTLRInputStream inputStream = new ANTLRInputStream(grammarStream, Encoding.Unicode); in TestConsumeAndIndexOnANTLRInputStream()
101 Assert.AreEqual(0, inputStream.Index); in TestConsumeAndIndexOnANTLRInputStream()
103 inputStream.Consume(); in TestConsumeAndIndexOnANTLRInputStream()
104 Assert.AreEqual(1, inputStream.Index); in TestConsumeAndIndexOnANTLRInputStream()
106 inputStream.Consume(); in TestConsumeAndIndexOnANTLRInputStream()
107 Assert.AreEqual(2, inputStream.Index); in TestConsumeAndIndexOnANTLRInputStream()
[all …]
/external/jmonkeyengine/engine/src/blender/com/jme3/scene/plugins/blender/file/
DDnaBlockData.java64 …public DnaBlockData(BlenderInputStream inputStream, BlenderContext blenderContext) throws BlenderF… in DnaBlockData() argument
68 identifier = inputStream.readByte() << 24 | inputStream.readByte() << 16 in DnaBlockData()
69 | inputStream.readByte() << 8 | inputStream.readByte(); in DnaBlockData()
76 identifier = inputStream.readByte() << 24 | inputStream.readByte() << 16 in DnaBlockData()
77 | inputStream.readByte() << 8 | inputStream.readByte(); in DnaBlockData()
81 int amount = inputStream.readInt(); in DnaBlockData()
87 names[i] = inputStream.readString(); in DnaBlockData()
91 inputStream.alignPosition(4); in DnaBlockData()
92 identifier = inputStream.readByte() << 24 | inputStream.readByte() << 16 in DnaBlockData()
93 | inputStream.readByte() << 8 | inputStream.readByte(); in DnaBlockData()
[all …]
DFileBlockHeader.java86 …public FileBlockHeader(BlenderInputStream inputStream, BlenderContext blenderContext) throws Blend… in FileBlockHeader() argument
87 inputStream.alignPosition(4); in FileBlockHeader()
88 code = inputStream.readByte() << 24 | inputStream.readByte() << 16 in FileBlockHeader()
89 | inputStream.readByte() << 8 | inputStream.readByte(); in FileBlockHeader()
90 size = inputStream.readInt(); in FileBlockHeader()
91 oldMemoryAddress = inputStream.readPointer(); in FileBlockHeader()
92 sdnaIndex = inputStream.readInt(); in FileBlockHeader()
93 count = inputStream.readInt(); in FileBlockHeader()
94 blockPosition = inputStream.getPosition(); in FileBlockHeader()
96 blenderContext.setBlockData(new DnaBlockData(inputStream, blenderContext)); in FileBlockHeader()
[all …]
DPointer.java75 public void fill(BlenderInputStream inputStream) { in fill() argument
76 oldMemoryAddress = inputStream.readPointer(); in fill()
87 public List<Structure> fetchData(BlenderInputStream inputStream) throws BlenderFileException { in fetchData() argument
94 …int pointersAmount = dataFileBlock.getSize() / inputStream.getPointerSize() * dataFileBlock.getCou… in fetchData()
96inputStream.setPosition(dataFileBlock.getBlockPosition() + inputStream.getPointerSize() * i); in fetchData()
97 long oldMemoryAddress = inputStream.readPointer(); in fetchData()
102 structures = p.fetchData(inputStream); in fetchData()
104 structures.addAll(p.fetchData(inputStream)); in fetchData()
109 inputStream.setPosition(dataFileBlock.getBlockPosition()); in fetchData()
113 structure.fill(inputStream); in fetchData()
DBlenderInputStream.java71 protected InputStream inputStream; field in BlenderInputStream
82 …public BlenderInputStream(InputStream inputStream, AssetManager assetManager) throws BlenderFileEx… in BlenderInputStream() argument
84 this.inputStream = inputStream; in BlenderInputStream()
87 size = inputStream.available(); in BlenderInputStream()
97 if (inputStream instanceof BufferedInputStream) { in BlenderInputStream()
98 bufferedInputStream = (BufferedInputStream) inputStream; in BlenderInputStream()
100 bufferedInputStream = new BufferedInputStream(inputStream); in BlenderInputStream()
126 private void readStreamToCache(InputStream inputStream) throws IOException { in readStreamToCache() argument
127 int data = inputStream.read(); in readStreamToCache()
137 data = inputStream.read(); in readStreamToCache()
[all …]
DStructure.java90 …public Structure(BlenderInputStream inputStream, String[] names, String[] types, BlenderContext bl… in Structure() argument
91 int nameIndex = inputStream.readShort(); in Structure()
94 int fieldsAmount = inputStream.readShort(); in Structure()
101 int typeIndex = inputStream.readShort(); in Structure()
102 nameIndex = inputStream.readShort(); in Structure()
117 public void fill(BlenderInputStream inputStream) throws BlenderFileException { in fill() argument
118 int position = inputStream.getPosition(); in fill()
119 inputStream.setPosition(position - 8 - inputStream.getPointerSize()); in fill()
120 this.oldMemoryAddress = Long.valueOf(inputStream.readPointer()); in fill()
121 inputStream.setPosition(position); in fill()
[all …]
/external/jmonkeyengine/engine/src/blender/com/jme3/scene/plugins/blender/textures/
DImageLoader.java64 public Image loadImage(BlenderInputStream inputStream, int startPosition, boolean flipY) { in loadImage() argument
66 inputStream.setPosition(startPosition); in loadImage()
67 Image result = this.loadImage(inputStream, ImageType.AWT, flipY); in loadImage()
70 inputStream.setPosition(startPosition); in loadImage()
71 result = this.loadImage(inputStream, ImageType.TGA, flipY); in loadImage()
75 inputStream.setPosition(startPosition); in loadImage()
76 result = this.loadImage(inputStream, ImageType.DDS, flipY); in loadImage()
97 public Image loadImage(InputStream inputStream, ImageType imageType, boolean flipY) { in loadImage() argument
102 result = this.load(inputStream, flipY); in loadImage()
109 result = ddsLoader.load(inputStream); in loadImage()
[all …]
/external/smack/src/org/jivesoftware/smackx/filetransfer/
DIncomingFileTransfer.java51 private InputStream inputStream; field in IncomingFileTransfer
68 if (inputStream != null) { in recieveFile()
73 inputStream = negotiateStream(); in recieveFile()
80 return inputStream; in recieveFile()
124 inputStream = negotiateStream(); in recieveFile()
135 writeToStream(inputStream, outputStream); in recieveFile()
151 if (inputStream != null) { in recieveFile()
153 inputStream.close(); in recieveFile()
191 InputStream inputStream; in negotiateStream() local
193 inputStream = streamNegotiatorTask.get(15, TimeUnit.SECONDS); in negotiateStream()
[all …]
/external/mp4parser/isoparser/src/main/java/com/googlecode/mp4parser/authoring/tracks/
DAACTrackImpl.java76 private BufferedInputStream inputStream; field in AACTrackImpl
83 public AACTrackImpl(InputStream inputStream, String lang) throws IOException { in AACTrackImpl() argument
85 parse(inputStream); in AACTrackImpl()
88 public AACTrackImpl(InputStream inputStream) throws IOException { in AACTrackImpl() argument
89 parse(inputStream); in AACTrackImpl()
92 private void parse(InputStream inputStream) throws IOException { in parse() argument
93 this.inputStream = new BufferedInputStream(inputStream); in parse()
217 inputStream.mark(100); in readVariables()
218 if (100 != inputStream.read(data, 0, 100)) { in readVariables()
221 inputStream.reset(); // Rewind in readVariables()
[all …]
DH264TrackImpl.java58 public H264TrackImpl(InputStream inputStream, String lang, long timescale) throws IOException { in H264TrackImpl() argument
67 parse(inputStream); in H264TrackImpl()
70 public H264TrackImpl(InputStream inputStream, String lang) throws IOException { in H264TrackImpl() argument
72 parse(inputStream); in H264TrackImpl()
75 public H264TrackImpl(InputStream inputStream) throws IOException { in H264TrackImpl() argument
76 parse(inputStream); in H264TrackImpl()
79 private void parse(InputStream inputStream) throws IOException { in parse() argument
80 this.reader = new ReaderWrapper(inputStream); in parse()
514 private InputStream inputStream; field in H264TrackImpl.ReaderWrapper
520 private ReaderWrapper(InputStream inputStream) { in ReaderWrapper() argument
[all …]
DAC3TrackImpl.java35 private InputStream inputStream; field in AC3TrackImpl
51 inputStream = fin; in parse()
133 inputStream.mark(100); in readVariables()
134 if (100 != inputStream.read(data, 0, 100)) { in readVariables()
137 inputStream.reset(); // Rewind in readVariables()
261 inputStream.mark(5); in readSamples()
262 while (-1 != inputStream.read(header)) { in readSamples()
266 inputStream.reset(); in readSamples()
268 inputStream.read(data); in readSamples()
271 inputStream.mark(5); in readSamples()
DEC3TrackImpl.java35 private BufferedInputStream inputStream; field in EC3TrackImpl
50 inputStream = new BufferedInputStream(fin); in parse()
53 inputStream.mark(10000); in parse()
66 long skipped = inputStream.skip(bsi.frameSize); in parse()
71 inputStream.reset(); in parse()
171 inputStream.mark(200); in readVariables()
172 if (200 != inputStream.read(data, 0, 200)) { in readVariables()
175 inputStream.reset(); // Rewind in readVariables()
398 read = inputStream.read(data); in readSamples()
/external/jmonkeyengine/engine/src/core-plugins/com/jme3/export/binary/
DByteUtils.java58 public static byte[] getByteContent(InputStream inputStream) in getByteContent() argument
67 while ((byteCount = inputStream.read(buffer)) > 0) { in getByteContent()
119 public static short readShort(InputStream inputStream) throws IOException { in readShort() argument
123 inputStream.read(byteArray); in readShort()
181 public static int readInt(InputStream inputStream) throws IOException { in readInt() argument
185 inputStream.read(byteArray); in readInt()
257 public static long readLong(InputStream inputStream) throws IOException { in readLong() argument
261 inputStream.read(byteArray); in readLong()
320 public static double readDouble(InputStream inputStream) throws IOException { in readDouble() argument
324 inputStream.read(byteArray); in readDouble()
[all …]
/external/jmonkeyengine/engine/src/blender/com/jme3/scene/plugins/blender/
DBlenderLoader.java181 …BlenderInputStream inputStream = new BlenderInputStream(assetInfo.openStream(), assetInfo.getManag… in setup() local
187 blenderContext.setBlenderVersion(inputStream.getVersionNumber()); in setup()
189 blenderContext.setInputStream(inputStream); in setup()
193 …blenderContext.putHelper(ArmatureHelper.class, new ArmatureHelper(inputStream.getVersionNumber(), … in setup()
194 …blenderContext.putHelper(TextureHelper.class, new TextureHelper(inputStream.getVersionNumber(), bl… in setup()
195 …blenderContext.putHelper(MeshHelper.class, new MeshHelper(inputStream.getVersionNumber(), blenderK… in setup()
196 …blenderContext.putHelper(ObjectHelper.class, new ObjectHelper(inputStream.getVersionNumber(), blen… in setup()
197 …blenderContext.putHelper(CurvesHelper.class, new CurvesHelper(inputStream.getVersionNumber(), blen… in setup()
198 …blenderContext.putHelper(LightHelper.class, new LightHelper(inputStream.getVersionNumber(), blende… in setup()
199 …blenderContext.putHelper(CameraHelper.class, new CameraHelper(inputStream.getVersionNumber(), blen… in setup()
[all …]
/external/proguard/src/proguard/io/
DFileDataEntry.java36 private InputStream inputStream; field in FileDataEntry
68 if (inputStream == null) in getInputStream()
70 inputStream = new BufferedInputStream(new FileInputStream(file)); in getInputStream()
73 return inputStream; in getInputStream()
79 inputStream.close(); in closeInputStream()
80 inputStream = null; in closeInputStream()
DDataEntryCopier.java65 InputStream inputStream = dataEntry.getInputStream(); in read() local
68 copyData(inputStream, outputStream); in read()
86 protected void copyData(InputStream inputStream, in copyData() argument
92 int count = inputStream.read(buffer); in copyData()
/external/jmonkeyengine/engine/src/core-plugins/com/jme3/audio/plugins/
DWAVLoader.java126 private AudioData load(InputStream inputStream, boolean stream) throws IOException{ in load() argument
127 this.in = new LittleEndien(inputStream); in load()
177 InputStream inputStream = null; in load() local
179 inputStream = info.openStream(); in load()
180 data = load(inputStream, ((AudioKey)info.getKey()).isStream()); in load()
182 inputStream = null; in load()
186 if (inputStream != null){ in load()
187 inputStream.close(); in load()
/external/nist-sip/java/gov/nist/javax/sip/parser/
DPipelinedMsgParser.java181 private String readLine(InputStream inputStream) throws IOException { in readLine() argument
185 int i = inputStream.read(); in readLine()
213 Pipeline inputStream = this.rawInputStream; in run() local
231 line1 = readLine(inputStream); in run()
255 line2 = readLine(inputStream); in run()
321 int readlength = inputStream.read(message_body, in run()
352 inputStream.close(); in run()
/external/smali/dexlib/src/main/java/org/jf/dexlib/
DDexFile.java288 InputStream inputStream = null; in DexFile() local
308 inputStream = new BufferedInputStream(zipFile.getInputStream(zipEntry)); in DexFile()
310 inputStream.mark(8); in DexFile()
312 magic[i] = (byte)inputStream.read(); in DexFile()
314 inputStream.reset(); in DexFile()
325 inputStream = new FileInputStream(file); in DexFile()
348 byte[] odexHeaderBytes = FileUtils.readStream(inputStream, 40); in DexFile()
358 FileUtils.readStream(inputStream, odexHeader.dexOffset - 40); in DexFile()
361 in = new ByteArrayInput(FileUtils.readStream(inputStream, odexHeader.dexLength)); in DexFile()
364 FileUtils.readStream(inputStream, dependencySkip); in DexFile()
[all …]
/external/smack/src/org/jivesoftware/smackx/bytestreams/ibb/
DInBandBytestreamSession.java67 private IBBInputStream inputStream; field in InBandBytestreamSession
99 this.inputStream = new IQIBBInputStream(); in InBandBytestreamSession()
103 this.inputStream = new MessageIBBInputStream(); in InBandBytestreamSession()
111 return this.inputStream; in getInputStream()
119 return this.inputStream.readTimeout; in getReadTimeout()
126 this.inputStream.readTimeout = timeout; in setReadTimeout()
168 this.inputStream.closeInternal(); in closeByPeer()
169 this.inputStream.cleanup(); in closeByPeer()
190 this.inputStream.closeInternal(); in closeByLocal()
195 this.inputStream.closeInternal(); in closeByLocal()
[all …]
/external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/
DAssetManagerTest.java75 InputStream inputStream; in assetsInputStreams() local
78 inputStream = assetManager.open(testPath); in assetsInputStreams()
79 fileContents = Strings.fromStream(inputStream); in assetsInputStreams()
83 inputStream = assetManager.open(testPath); in assetsInputStreams()
84 fileContents = Strings.fromStream(inputStream); in assetsInputStreams()
/external/libxml2/
DparserInternals.c1414 xmlParserInputPtr inputStream; in xmlNewIOInputStream() local
1419 inputStream = xmlNewInputStream(ctxt); in xmlNewIOInputStream()
1420 if (inputStream == NULL) { in xmlNewIOInputStream()
1423 inputStream->filename = NULL; in xmlNewIOInputStream()
1424 inputStream->buf = input; in xmlNewIOInputStream()
1425 inputStream->base = inputStream->buf->buffer->content; in xmlNewIOInputStream()
1426 inputStream->cur = inputStream->buf->buffer->content; in xmlNewIOInputStream()
1427 inputStream->end = &inputStream->base[inputStream->buf->buffer->use]; in xmlNewIOInputStream()
1432 return(inputStream); in xmlNewIOInputStream()
1541 xmlParserInputPtr inputStream; in xmlNewInputFromFile() local
[all …]
/external/webkit/Source/WebKit/android/WebCoreSupport/
DUrlInterceptResponse.cpp40 JavaInputStreamWrapper(JNIEnv* env, jobject inputStream) in JavaInputStreamWrapper() argument
41 : m_inputStream(env->NewGlobalRef(inputStream)) in JavaInputStreamWrapper()
91 …jfieldID inputStream = env->GetFieldID(javaResponse.get(), "mInputStream", "Ljava/io/InputStream;"… in UrlInterceptResponse() local
92 LOG_ALWAYS_FATAL_IF(!inputStream); in UrlInterceptResponse()
94 ScopedLocalRef<jobject> stream(env, env->GetObjectField(response, inputStream)); in UrlInterceptResponse()
/external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/
DShadowDrawable.java34 private InputStream inputStream; field in ShadowDrawable
132 return inputStream; in getInputStream()
135 public void setInputStream(InputStream inputStream) { in setInputStream() argument
136 this.inputStream = inputStream; in setInputStream()
/external/skia/tools/
Drender_pdfs_main.cpp123 SkFILEStream inputStream; in render_pdf() local
124 inputStream.setPath(inputPath.c_str()); in render_pdf()
125 if (!inputStream.isValid()) { in render_pdf()
132 picture(SkNEW_ARGS(SkPicture, (&inputStream, &success))); in render_pdf()

123