/frameworks/av/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_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_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_crc.cpp | 123 uint32 getbits_crc(tmp3Bits *inputStream, /* bit stream structure */ in getbits_crc() argument 128 uint32 bits = getNbits(inputStream, neededBits); in getbits_crc()
|
/frameworks/base/services/core/java/com/android/server/ |
D | PersistentDataBlockService.java | 158 private int getTotalDataSizeLocked(DataInputStream inputStream) throws IOException { in getTotalDataSizeLocked() argument 160 inputStream.skipBytes(DIGEST_SIZE_BYTES); in getTotalDataSizeLocked() 163 int blockId = inputStream.readInt(); in getTotalDataSizeLocked() 165 totalDataSize = inputStream.readInt(); in getTotalDataSizeLocked() 225 DataInputStream inputStream; in computeDigestLocked() local 227 inputStream = new DataInputStream(new FileInputStream(new File(mDataBlockFile))); in computeDigestLocked() 239 IoUtils.closeQuietly(inputStream); in computeDigestLocked() 245 inputStream.read(storedDigest); in computeDigestLocked() 247 inputStream.skipBytes(DIGEST_SIZE_BYTES); in computeDigestLocked() 253 while ((read = inputStream.read(data)) != -1) { in computeDigestLocked() [all …]
|
/frameworks/opt/vcard/tests/src/com/android/vcard/tests/ |
D | VCardParserTests.java | 94 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/data-binding/compiler/src/main/java/android/databinding/tool/util/ |
D | GenerationalClassUtil.java | 96 InputStream inputStream = null; in loadFromDirectory() local 98 inputStream = FileUtils.openInputStream(file); in loadFromDirectory() 99 Serializable item = fromInputStream(inputStream); in loadFromDirectory() 111 IOUtils.closeQuietly(inputStream); in loadFromDirectory() 128 InputStream inputStream = null; in loadFomZipFile() local 130 inputStream = zipFile.getInputStream(entry); in loadFomZipFile() 131 Serializable item = fromInputStream(inputStream); in loadFomZipFile() 143 IOUtils.closeQuietly(inputStream); in loadFomZipFile() 149 private static Serializable fromInputStream(InputStream inputStream) in fromInputStream() argument 151 ObjectInputStream in = new ObjectInputStream(inputStream); in fromInputStream()
|
/frameworks/base/core/java/android/os/ |
D | Process.java | 396 final DataInputStream inputStream; field in Process.ZygoteState 402 private ZygoteState(LocalSocket socket, DataInputStream inputStream, in ZygoteState() argument 405 this.inputStream = inputStream; in ZygoteState() 532 private static String getAbiList(BufferedWriter writer, DataInputStream inputStream) in getAbiList() argument 544 int numBytes = inputStream.readInt(); in getAbiList() 546 inputStream.readFully(bytes); in getAbiList() 573 final DataInputStream inputStream = zygoteState.inputStream; in zygoteSendArgsAndGetResult() local 593 result.pid = inputStream.readInt(); in zygoteSendArgsAndGetResult() 597 result.usingWrapper = inputStream.readBoolean(); in zygoteSendArgsAndGetResult()
|
/frameworks/support/documents-archive/src/android/support/provider/ |
D | DocumentArchive.java | 216 final ParcelFileDescriptor.AutoCloseInputStream inputStream = in createForParcelFileDescriptor() argument 221 while ((bytes = inputStream.read(buffer)) != -1) { in createForParcelFileDescriptor() 376 InputStream inputStream = null; in openDocument() local 379 inputStream = mZipFile.getInputStream(entry); in openDocument() 381 if (inputStream != null) { in openDocument() 382 IoUtils.closeQuietly(inputStream); in openDocument() 389 final InputStream finalInputStream = inputStream; in openDocument() 450 InputStream inputStream = null; in openDocumentThumbnail() local 452 inputStream = mZipFile.getInputStream(entry); in openDocumentThumbnail() 453 final ExifInterface exif = new ExifInterface(inputStream); in openDocumentThumbnail() [all …]
|
/frameworks/data-binding/compiler/src/main/java/android/databinding/tool/reflection/ |
D | SdkUtil.java | 84 InputStream inputStream = null; in ApiChecker() local 87 … inputStream = getClass().getClassLoader().getResourceAsStream("api-versions.xml"); in ApiChecker() 89 inputStream = FileUtils.openInputStream(apiFile); in ApiChecker() 93 mDoc = builder.parse(inputStream); in ApiChecker() 100 IOUtils.closeQuietly(inputStream); in ApiChecker()
|
/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/exif/ |
D | ExifParser.java | 201 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()
|
/frameworks/base/graphics/java/android/graphics/drawable/ |
D | Icon.java | 439 DataInputStream inputStream = new DataInputStream(stream); in createFromStream() local 441 final int version = inputStream.readInt(); in createFromStream() 443 final int type = inputStream.readByte(); in createFromStream() 446 return createWithBitmap(BitmapFactory.decodeStream(inputStream)); in createFromStream() 448 final int length = inputStream.readInt(); in createFromStream() 450 inputStream.read(data, 0 /* offset */, length); in createFromStream() 453 final String packageName = inputStream.readUTF(); in createFromStream() 454 final int resId = inputStream.readInt(); in createFromStream() 457 final String uriOrPath = inputStream.readUTF(); in createFromStream()
|
/frameworks/opt/bitmap/src/com/android/bitmap/util/ |
D | Exif.java | 39 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/ |
D | Exif.java | 34 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/support/documents-archive/tests/src/android/support/provider/ |
D | TestUtils.java | 44 final InputStream inputStream = context.getResources().openRawResource(id); in createFileFromResource() argument 48 while ((bytes = inputStream.read(buffer)) != -1) { in createFileFromResource()
|
/frameworks/base/drm/java/android/drm/ |
D | DrmUtils.java | 45 FileInputStream inputStream = new FileInputStream(file); in readBytes() local 46 BufferedInputStream bufferedStream = new BufferedInputStream(inputStream); in readBytes() 58 quietlyDispose(inputStream); in readBytes()
|
/frameworks/rs/java/tests/VrDemo/src/com/example/android/rs/vr/loaders/ |
D | LoaderRaw.java | 105 FileInputStream inputStream; in buildRSVolume() local 113 inputStream = new FileInputStream(file); in buildRSVolume() 114 MappedByteBuffer mbb = inputStream.getChannel().map(FileChannel.MapMode.READ_ONLY, in buildRSVolume() 118 inputStream.close(); in buildRSVolume()
|
/frameworks/opt/vcard/tests/src/com/android/vcard/tests/testutils/ |
D | VCardVerifier.java | 137 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/base/tests/MusicServiceDemo/src/com/example/android/musicservicedemo/ |
D | Utils.java | 55 InputStream inputStream = httpConnection.getInputStream(); in getBitmapFromURL() local 56 return BitmapFactory.decodeStream(inputStream); in getBitmapFromURL()
|
/frameworks/base/core/tests/BTtraffic/src/com/android/google/experimental/bttraffic/ |
D | BTtraffic.java | 216 private void doListening(InputStream inputStream, OutputStream outputStream) in doListening() argument 221 readBytesIntoBuffer(inputStream, byteBuffer, 4); in doListening() 226 readBytesIntoBuffer(inputStream, byteBuffer, length); in doListening() 233 void readBytesIntoBuffer(InputStream inputStream, ByteBuffer byteBuffer, int numToRead) in readBytesIntoBuffer() argument 242 int count = inputStream.read(byteBuffer.array(), position, remaining); in readBytesIntoBuffer()
|
/frameworks/base/media/mca/filterfw/java/android/filterfw/io/ |
D | GraphReader.java | 42 InputStream inputStream = context.getResources().openRawResource(resourceId); in readGraphResource() local 43 InputStreamReader reader = new InputStreamReader(inputStream); in readGraphResource()
|
/frameworks/base/media/java/android/media/ |
D | ExifInterface.java | 559 ByteOrderAwarenessDataInputStream inputStream = in getValue() local 561 inputStream.setByteOrder(byteOrder); in getValue() 605 values[i] = inputStream.readUnsignedShort(); in getValue() 612 values[i] = inputStream.readUnsignedInt(); in getValue() 619 final long numerator = inputStream.readUnsignedInt(); in getValue() 620 final long denominator = inputStream.readUnsignedInt(); in getValue() 628 values[i] = inputStream.readShort(); in getValue() 635 values[i] = inputStream.readInt(); in getValue() 642 final long numerator = inputStream.readInt(); in getValue() 643 final long denominator = inputStream.readInt(); in getValue() [all …]
|
/frameworks/volley/src/main/java/com/android/volley/toolbox/ |
D | HurlStack.java | 152 InputStream inputStream; in entityFromConnection() local 154 inputStream = connection.getInputStream(); in entityFromConnection() 156 inputStream = connection.getErrorStream(); in entityFromConnection() 158 entity.setContent(inputStream); in entityFromConnection()
|
/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()
|