Home
last modified time | relevance | path

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

12

/frameworks/av/media/libstagefright/codecs/mp3dec/src/
Dpvmp3_seek_synch.cpp140 pVars->inputStream.pBuffer = pExt->pInputBuffer; in pvmp3_frame_synch()
141 pVars->inputStream.usedBits = (pExt->inputBufferUsedLength << 3); // in bits in pvmp3_frame_synch()
144 pVars->inputStream.inputBufferCurrentLength = (pExt->inputBufferCurrentLength); // in bits in pvmp3_frame_synch()
146 err = pvmp3_header_sync(&pVars->inputStream); in pvmp3_frame_synch()
153 uint32 temp = getNbits(&pVars->inputStream, 21); in pvmp3_frame_synch()
155 pVars->inputStream.usedBits -= 21 + SYNC_WORD_LNGTH; in pvmp3_frame_synch()
193 if (numBytes > (int32)pVars->inputStream.inputBufferCurrentLength) in pvmp3_frame_synch()
199 else if (numBytes == (int32)pVars->inputStream.inputBufferCurrentLength) in pvmp3_frame_synch()
202 pExt->inputBufferUsedLength = pVars->inputStream.usedBits >> 3; in pvmp3_frame_synch()
208 int32 offset = pVars->inputStream.usedBits + ((numBytes) << 3); in pvmp3_frame_synch()
[all …]
Dpvmp3_get_side_info.cpp114 ERROR_CODE pvmp3_get_side_info(tmp3Bits *inputStream, in pvmp3_get_side_info() argument
128 tmp = getbits_crc(inputStream, 14, crc, info->error_protection); in pvmp3_get_side_info()
134 tmp = getbits_crc(inputStream, 12, crc, info->error_protection); in pvmp3_get_side_info()
142 tmp = getbits_crc(inputStream, 4, crc, info->error_protection); in pvmp3_get_side_info()
153 … si->ch[ch].gran[gr].part2_3_length = getbits_crc(inputStream, 12, crc, info->error_protection); in pvmp3_get_side_info()
154 tmp = getbits_crc(inputStream, 22, crc, info->error_protection); in pvmp3_get_side_info()
163 tmp = getbits_crc(inputStream, 22, crc, info->error_protection); in pvmp3_get_side_info()
195 tmp = getbits_crc(inputStream, 22, crc, info->error_protection); in pvmp3_get_side_info()
207 tmp = getbits_crc(inputStream, 3, crc, info->error_protection); in pvmp3_get_side_info()
216 si->main_data_begin = getbits_crc(inputStream, 8, crc, info->error_protection); in pvmp3_get_side_info()
[all …]
Dpvmp3_decode_header.cpp115 ERROR_CODE pvmp3_decode_header(tmp3Bits *inputStream, in pvmp3_decode_header() argument
128 if (inputStream->inputBufferCurrentLength < ((SYNC_WORD_LNGTH + 21) >> 3)) in pvmp3_decode_header()
136 temp = getUpTo17bits(inputStream, SYNC_WORD_LNGTH); in pvmp3_decode_header()
139 err = pvmp3_header_sync(inputStream); in pvmp3_decode_header()
147 temp = getNbits(inputStream, 21); // to avoid multiple bitstream accesses in pvmp3_decode_header()
Dpvmp3_framedecoder.cpp173 pVars->inputStream.pBuffer = pExt->pInputBuffer; in pvmp3_framedecoder()
176 pVars->inputStream.usedBits = pExt->inputBufferUsedLength << 3; in pvmp3_framedecoder()
177 pVars->inputStream.inputBufferCurrentLength = pExt->inputBufferCurrentLength; in pvmp3_framedecoder()
180 errorCode = pvmp3_decode_header(&pVars->inputStream, in pvmp3_framedecoder()
225 sent_crc = getUpTo17bits(&pVars->inputStream, 16); in pvmp3_framedecoder()
242 errorCode = pvmp3_get_side_info(&pVars->inputStream, in pvmp3_framedecoder()
282 if ((uint32)pVars->predicted_frame_size > pVars->inputStream.inputBufferCurrentLength) in pvmp3_framedecoder()
506 ancillary_data_lenght -= pVars->inputStream.usedBits; in pvmp3_framedecoder()
511 pVars->inputStream.usedBits += ancillary_data_lenght; in pvmp3_framedecoder()
533 pExt->inputBufferUsedLength = pVars->inputStream.usedBits >> 3; in pvmp3_framedecoder()
[all …]
Dpvmp3_crc.cpp123 uint32 getbits_crc(tmp3Bits *inputStream, /* bit stream structure */ in getbits_crc() argument
128 uint32 bits = getNbits(inputStream, neededBits); in getbits_crc()
Dpvmp3_decode_header.h89 ERROR_CODE pvmp3_decode_header(tmp3Bits *inputStream,
Dpvmp3_seek_synch.h94 ERROR_CODE pvmp3_header_sync(tmp3Bits *inputStream);
Dpvmp3_get_side_info.h89 ERROR_CODE pvmp3_get_side_info(tmp3Bits *inputStream,
/frameworks/base/services/core/java/com/android/server/
DPersistentDataBlockService.java124 private int getTotalDataSizeLocked(DataInputStream inputStream) throws IOException { in getTotalDataSizeLocked() argument
126 int blockId = inputStream.readInt(); in getTotalDataSizeLocked()
128 totalDataSize = inputStream.readInt(); in getTotalDataSizeLocked()
194 DataInputStream inputStream;
196 inputStream = new DataInputStream(new FileInputStream(new File(mDataBlockFile)));
204 int totalDataSize = getTotalDataSizeLocked(inputStream);
211 int read = inputStream.read(data, 0, totalDataSize);
225 inputStream.close();
282 DataInputStream inputStream;
284 inputStream = new DataInputStream(new FileInputStream(new File(mDataBlockFile)));
[all …]
/frameworks/opt/vcard/tests/src/com/android/vcard/tests/
DVCardParserTests.java94 InputStream inputStream = getContext().getResources().openRawResource(R.raw.v21_simple_1); in testSimple() local
104 parser.parse(inputStream); in testSimple()
107 inputStream.close(); in testSimple()
112 InputStream inputStream = getContext().getResources().openRawResource(R.raw.v21_nest); in testNest() local
132 parser.parse(inputStream); in testNest()
135 inputStream.close(); in testNest()
146 …InputStream inputStream = getContext().getResources().openRawResource(R.raw.v30_ios_613_multiline); in testIosMultiline() local
164 parser.parse(inputStream); in testIosMultiline()
167 inputStream.close(); in testIosMultiline()
177 InputStream inputStream = in testParseOne() local
[all …]
/frameworks/base/core/java/android/os/
DProcess.java374 final DataInputStream inputStream; field in Process.ZygoteState
380 private ZygoteState(LocalSocket socket, DataInputStream inputStream, in ZygoteState() argument
383 this.inputStream = inputStream; in ZygoteState()
510 private static String getAbiList(BufferedWriter writer, DataInputStream inputStream) in getAbiList() argument
522 int numBytes = inputStream.readInt(); in getAbiList()
524 inputStream.readFully(bytes); in getAbiList()
551 final DataInputStream inputStream = zygoteState.inputStream; in zygoteSendArgsAndGetResult() local
571 result.pid = inputStream.readInt(); in zygoteSendArgsAndGetResult()
575 result.usingWrapper = inputStream.readBoolean(); in zygoteSendArgsAndGetResult()
/frameworks/base/core/java/android/view/inputmethod/
DInputMethodSubtypeArray.java238 ByteArrayInputStream inputStream = null; in decompress() local
241 inputStream = new ByteArrayInputStream(data); in decompress()
242 unzipper = new GZIPInputStream(inputStream); in decompress()
269 if (inputStream != null) { in decompress()
270 inputStream.close(); in decompress()
/frameworks/opt/bitmap/src/com/android/bitmap/util/
DExif.java39 public static int getOrientation(final InputStream inputStream, final long byteSize) { in getOrientation() argument
40 if (inputStream == null) { in getOrientation()
71 final InputStreamBuffer jpeg = new InputStreamBuffer(inputStream, lookAhead, false); in getOrientation()
/frameworks/opt/photoviewer/src/com/android/ex/photo/util/
DExif.java34 public static int getOrientation(final InputStream inputStream, final long byteSize) { in getOrientation() argument
35 if (inputStream == null) { in getOrientation()
66 final InputStreamBuffer jpeg = new InputStreamBuffer(inputStream, lookAhead, false); in getOrientation()
/frameworks/base/tests/MusicServiceDemo/src/com/example/android/musicservicedemo/
DUtils.java55 InputStream inputStream = httpConnection.getInputStream(); in getBitmapFromURL() local
56 return BitmapFactory.decodeStream(inputStream); in getBitmapFromURL()
/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/exif/
DExifParser.java201 private ExifParser(InputStream inputStream, int options, ExifInterface iRef) in ExifParser() argument
203 if (inputStream == null) { in ExifParser()
210 mContainExifData = seekTiffData(inputStream); in ExifParser()
211 mTiffStream = new CountedDataInputStream(inputStream); in ExifParser()
239 protected static ExifParser parse(InputStream inputStream, int options, ExifInterface iRef) in parse() argument
241 return new ExifParser(inputStream, options, iRef); in parse()
252 protected static ExifParser parse(InputStream inputStream, ExifInterface iRef) in parse() argument
254 return new ExifParser(inputStream, OPTION_IFD_0 | OPTION_IFD_1 in parse()
752 private boolean seekTiffData(InputStream inputStream) throws IOException, in seekTiffData() argument
754 CountedDataInputStream dataStream = new CountedDataInputStream(inputStream); in seekTiffData()
DExifReader.java44 protected ExifData read(InputStream inputStream) throws ExifInvalidFormatException, in read() argument
46 ExifParser parser = ExifParser.parse(inputStream, mInterface); in read()
/frameworks/base/drm/java/android/drm/
DDrmUtils.java45 FileInputStream inputStream = new FileInputStream(file); in readBytes() local
46 BufferedInputStream bufferedStream = new BufferedInputStream(inputStream); in readBytes()
58 quietlyDispose(inputStream); in readBytes()
/frameworks/base/media/mca/filterfw/java/android/filterfw/io/
DGraphReader.java42 InputStream inputStream = context.getResources().openRawResource(resourceId); in readGraphResource() local
43 InputStreamReader reader = new InputStreamReader(inputStream); in readGraphResource()
/frameworks/opt/vcard/tests/src/com/android/vcard/tests/testutils/
DVCardVerifier.java137 final InputStream inputStream = in setInputResourceId() local
139 if (inputStream == null) { in setInputResourceId()
142 setInputStream(inputStream); in setInputResourceId()
145 private void setInputStream(InputStream inputStream) { in setInputStream() argument
151 mInputStream = inputStream; in setInputStream()
/frameworks/ex/framesequence/jni/
DStream.h68 JavaInputStream(JNIEnv* env, jobject inputStream, jbyteArray byteArray) : in JavaInputStream() argument
70 mInputStream(inputStream), in JavaInputStream()
/frameworks/volley/src/com/android/volley/toolbox/
DHurlStack.java135 InputStream inputStream; in entityFromConnection() local
137 inputStream = connection.getInputStream(); in entityFromConnection()
139 inputStream = connection.getErrorStream(); in entityFromConnection()
141 entity.setContent(inputStream); in entityFromConnection()
/frameworks/base/media/java/android/media/
DAmrInputStream.java56 public AmrInputStream(InputStream inputStream) { in AmrInputStream() argument
57 mInputStream = inputStream; in AmrInputStream()
DResampleInputStream.java59 public ResampleInputStream(InputStream inputStream, int rateIn, int rateOut) { in ResampleInputStream() argument
65 mInputStream = inputStream; in ResampleInputStream()
/frameworks/base/sax/tests/saxtests/src/android/sax/
DSafeSaxTest.java172 private static void pureSaxTest(InputStream inputStream) throws IOException, SAXException { in pureSaxTest() argument
175 Xml.parse(inputStream, Xml.Encoding.UTF_8, new YouTubeContentHandler(videoAdapter)); in pureSaxTest()
180 private static void saxyModelTest(InputStream inputStream) throws IOException, SAXException { in saxyModelTest() argument
183 Xml.parse(inputStream, Xml.Encoding.UTF_8, newContentHandler(videoAdapter)); in saxyModelTest()
188 private static void saxyModelTest(InputStream inputStream, ContentHandler contentHandler) in saxyModelTest() argument
191 Xml.parse(inputStream, Xml.Encoding.UTF_8, contentHandler); in saxyModelTest()

12