Home
last modified time | relevance | path

Searched refs:inputStream (Results 1 – 25 of 42) 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,
Dpvmp3_crc.h84 uint32 getbits_crc(tmp3Bits *inputStream,
Ds_tmp3dec_file.h96 tmp3Bits inputStream; member
/frameworks/opt/vcard/tests/src/com/android/vcard/tests/
DVCardParserTests.java93 InputStream inputStream = getContext().getResources().openRawResource(R.raw.v21_simple_1); in testSimple() local
103 parser.parse(inputStream); in testSimple()
106 inputStream.close(); in testSimple()
111 InputStream inputStream = getContext().getResources().openRawResource(R.raw.v21_nest); in testNest() local
131 parser.parse(inputStream); in testNest()
134 inputStream.close(); in testNest()
144 InputStream inputStream = in testParseOne() local
180 parser.parse(inputStream); in testParseOne()
183 inputStream.close(); in testParseOne()
186 inputStream = getContext().getResources().openRawResource(R.raw.v21_multiple_entry); in testParseOne()
[all …]
/frameworks/opt/photoviewer/src/com/android/ex/photo/util/
DImageUtils.java103 InputStream inputStream = null; in createLocalBitmap() local
107 inputStream = openInputStream(resolver, uri); in createLocalBitmap()
108 if (bounds == null || inputStream == null) { in createLocalBitmap()
114 final Bitmap decodedBitmap = decodeStream(inputStream, null, opts); in createLocalBitmap()
133 if (inputStream != null) { in createLocalBitmap()
134 inputStream.close(); in createLocalBitmap()
229 InputStream inputStream = null; in getImageBounds() local
233 inputStream = openInputStream(resolver, uri); in getImageBounds()
234 if (inputStream == null) { in getImageBounds()
237 decodeStream(inputStream, null, opts); in getImageBounds()
[all …]
/frameworks/base/tests/DumpRenderTree2/src/com/android/dumprendertree2/forwarder/
DAdbUtils.java61 public static boolean configureConnection(InputStream inputStream, OutputStream outputStream, in configureConnection() argument
68 int read = inputStream.read(buf); in configureConnection()
DConnectionHandler.java46 public SocketPipeThread(InputStream inputStream, OutputStream outputStream) { in SocketPipeThread() argument
47 mInputStream = inputStream; in SocketPipeThread()
/frameworks/base/drm/java/android/drm/
DDrmUtils.java46 FileInputStream inputStream = new FileInputStream(file); in readBytes() local
47 BufferedInputStream bufferedStream = new BufferedInputStream(inputStream); in readBytes()
59 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/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.java58 public AmrInputStream(InputStream inputStream) { in AmrInputStream() argument
59 mInputStream = inputStream; in AmrInputStream()
DResampleInputStream.java61 public ResampleInputStream(InputStream inputStream, int rateIn, int rateOut) { in ResampleInputStream() argument
67 mInputStream = inputStream; in ResampleInputStream()
/frameworks/base/tests/DumpRenderTree2/src/com/android/dumprendertree2/
DFileFilter.java78 InputStream inputStream = null; in loadTestExpectations() local
140 if (inputStream != null) { in loadTestExpectations()
141 inputStream.close(); in loadTestExpectations()
DFsUtils.java262 public static void closeInputStream(InputStream inputStream) { in closeInputStream() argument
264 if (inputStream != null) { in closeInputStream()
265 inputStream.close(); in closeInputStream()
/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()
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/
DVideoEditorHelper.java129 FileInputStream inputStream = null; in getBitmap() local
139 inputStream = new FileInputStream(flPtr); in getBitmap()
140 final Bitmap srcBitmap = BitmapFactory.decodeStream(inputStream); in getBitmap()
144 inputStream.close(); in getBitmap()
/frameworks/base/tests/CanvasCompare/src/com/android/test/hwuicompare/
DAutomaticActivity.java157 FileInputStream inputStream = new FileInputStream(inputFile); in beginTest() local
161 while (inputStream.read(buffer) != -1) { in beginTest()
165 inputStream.close(); in beginTest()

12