/frameworks/base/media/libstagefright/codecs/mp3dec/src/ |
D | pvmp3_seek_synch.cpp | 140 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 …]
|
D | pvmp3_get_side_info.cpp | 114 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 …]
|
D | pvmp3_decode_header.cpp | 115 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()
|
D | pvmp3_framedecoder.cpp | 173 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 …]
|
D | pvmp3_crc.cpp | 123 uint32 getbits_crc(tmp3Bits *inputStream, /* bit stream structure */ in getbits_crc() argument 128 uint32 bits = getNbits(inputStream, neededBits); in getbits_crc()
|
D | pvmp3_decode_header.h | 89 ERROR_CODE pvmp3_decode_header(tmp3Bits *inputStream,
|
D | pvmp3_seek_synch.h | 94 ERROR_CODE pvmp3_header_sync(tmp3Bits *inputStream);
|
D | pvmp3_get_side_info.h | 89 ERROR_CODE pvmp3_get_side_info(tmp3Bits *inputStream,
|
D | pvmp3_crc.h | 84 uint32 getbits_crc(tmp3Bits *inputStream,
|
D | s_tmp3dec_file.h | 96 tmp3Bits inputStream; member
|
/frameworks/base/media/libstagefright/codecs/aacdec/ |
D | pvmp4audiodecoderconfig.cpp | 195 pVars->inputStream.pBuffer = pExt->pInputBuffer; in PVMP4AudioDecoderConfig() 197 pVars->inputStream.inputBufferCurrentLength = in PVMP4AudioDecoderConfig() 200 pVars->inputStream.availableBits = in PVMP4AudioDecoderConfig() 207 pVars->inputStream.usedBits = initialUsedBits; in PVMP4AudioDecoderConfig() 209 if (initialUsedBits <= pVars->inputStream.availableBits) in PVMP4AudioDecoderConfig() 223 byte_align(&pVars->inputStream); in PVMP4AudioDecoderConfig() 261 if (pVars->inputStream.usedBits > pVars->inputStream.availableBits) in PVMP4AudioDecoderConfig() 264 pVars->inputStream.usedBits = pVars->inputStream.availableBits; in PVMP4AudioDecoderConfig() 276 pVars->inputStream.usedBits >> INBUF_ARRAY_INDEX_SHIFT; in PVMP4AudioDecoderConfig() 278 pExt->remainderBits = pVars->inputStream.usedBits & INBUF_BIT_MODULO_MASK; in PVMP4AudioDecoderConfig()
|
D | pvmp4audiodecoderframe.cpp | 564 pVars->inputStream.pBuffer = pExt->pInputBuffer; in PVMP4AudioDecodeFrame() 566 pVars->inputStream.inputBufferCurrentLength = (UInt)pExt->inputBufferCurrentLength; in PVMP4AudioDecodeFrame() 568 pVars->inputStream.availableBits = in PVMP4AudioDecodeFrame() 575 pVars->inputStream.usedBits = initialUsedBits; in PVMP4AudioDecodeFrame() 577 if (initialUsedBits > pVars->inputStream.availableBits) in PVMP4AudioDecodeFrame() 593 byte_align(&pVars->inputStream); in PVMP4AudioDecodeFrame() 612 id_syn_ele = (Int)getbits(LEN_SE_ID, &pVars->inputStream) ; in PVMP4AudioDecodeFrame() 617 byte_align(&pVars->inputStream); in PVMP4AudioDecodeFrame() 620 pVars->inputStream.usedBits >> INBUF_ARRAY_INDEX_SHIFT; in PVMP4AudioDecodeFrame() 622 pExt->remainderBits = pVars->inputStream.usedBits & INBUF_BIT_MODULO_MASK; in PVMP4AudioDecodeFrame() [all …]
|
D | get_adts_header.cpp | 386 &(pVars->inputStream), in get_adts_header() 396 &(pVars->inputStream), in get_adts_header() 404 &(pVars->inputStream)); in get_adts_header() 590 &(pVars->inputStream)); in get_adts_header() 665 &(pVars->inputStream)); in get_adts_header()
|
D | pvmp4setaudioconfig.cpp | 191 pVars->inputStream.pBuffer = pExt->pInputBuffer; in PVMP4SetAudioConfig() 193 pVars->inputStream.availableBits = 0; in PVMP4SetAudioConfig() 195 pVars->inputStream.usedBits = 0; in PVMP4SetAudioConfig()
|
D | get_audio_specific_config.cpp | 321 pInputStream = &(pVars->inputStream); in get_audio_specific_config() 512 pVars->inputStream.usedBits -= LEN_SYNC_EXTENSION_TYPE; in get_audio_specific_config() 525 pVars->inputStream.usedBits -= LEN_SYNC_EXTENSION_TYPE; in get_audio_specific_config()
|
D | s_tdec_int_file.h | 156 BITS inputStream; member
|
D | get_adif_header.cpp | 302 BITS *pInputStream = &pVars->inputStream; in get_adif_header()
|
/frameworks/base/core/tests/coretests/src/android/pim/vcard/test_utils/ |
D | VCardVerifier.java | 141 … InputStream inputStream = mAndroidTestCase.getContext().getResources().openRawResource(resId); in setInputResourceId() local 142 if (inputStream == null) { in setInputResourceId() 145 setInputStream(inputStream); in setInputResourceId() 148 private void setInputStream(InputStream inputStream) { in setInputStream() argument 154 mInputStream = inputStream; in setInputStream()
|
/frameworks/base/packages/DefaultContainerService/src/com/android/defcontainer/ |
D | DefaultContainerService.java | 309 public static boolean copyToFile(InputStream inputStream, FileOutputStream out) { in copyToFile() argument 313 while ((bytesRead = inputStream.read(buffer)) >= 0) { in copyToFile() 324 InputStream inputStream = null; in copyToFile() local 326 inputStream = new FileInputStream(srcFile); in copyToFile() 327 return copyToFile(inputStream, out); in copyToFile() 331 try { if (inputStream != null) inputStream.close(); } catch (IOException e) {} in copyToFile()
|
/frameworks/base/media/java/android/media/ |
D | AmrInputStream.java | 59 public AmrInputStream(InputStream inputStream) { in AmrInputStream() argument 60 mInputStream = inputStream; in AmrInputStream()
|
D | ResampleInputStream.java | 62 public ResampleInputStream(InputStream inputStream, int rateIn, int rateOut) { in ResampleInputStream() argument 68 mInputStream = inputStream; in ResampleInputStream()
|
/frameworks/base/core/java/android/pim/ |
D | ContactsAsyncHelper.java | 186 InputStream inputStream = null; in handleMessage() local 188 inputStream = Contacts.openContactPhotoInputStream( in handleMessage() 194 if (inputStream != null) { in handleMessage() 195 args.result = Drawable.createFromStream(inputStream, args.uri.toString()); in handleMessage()
|
/frameworks/base/sax/tests/saxtests/src/android/sax/ |
D | SafeSaxTest.java | 172 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/core/java/com/android/internal/content/ |
D | NativeLibraryHelper.java | 275 InputStream inputStream = zipFile.getInputStream(entry); in copyNativeBinaryLI() local 281 if (!FileUtils.copyToFile(inputStream, tempFile) in copyNativeBinaryLI() 293 inputStream.close(); in copyNativeBinaryLI()
|
/frameworks/base/core/java/android/os/ |
D | FileUtils.java | 131 public static boolean copyToFile(InputStream inputStream, File destFile) { in copyToFile() argument 140 while ((bytesRead = inputStream.read(buffer)) >= 0) { in copyToFile()
|