Home
last modified time | relevance | path

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

12345

/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()
510 ancillary_data_lenght -= pVars->inputStream.usedBits; in pvmp3_framedecoder()
515 pVars->inputStream.usedBits += ancillary_data_lenght; in pvmp3_framedecoder()
537 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()
/frameworks/base/services/core/java/com/android/server/
DPersistentDataBlockService.java240 private int getTotalDataSizeLocked(DataInputStream inputStream) throws IOException { in getTotalDataSizeLocked() argument
242 inputStream.skipBytes(DIGEST_SIZE_BYTES); in getTotalDataSizeLocked()
245 int blockId = inputStream.readInt(); in getTotalDataSizeLocked()
247 totalDataSize = inputStream.readInt(); in getTotalDataSizeLocked()
315 DataInputStream inputStream; in computeDigestLocked() local
317 inputStream = new DataInputStream(new FileInputStream(new File(mDataBlockFile))); in computeDigestLocked()
329 IoUtils.closeQuietly(inputStream); in computeDigestLocked()
335 inputStream.read(storedDigest); in computeDigestLocked()
337 inputStream.skipBytes(DIGEST_SIZE_BYTES); in computeDigestLocked()
343 while ((read = inputStream.read(data)) != -1) { in computeDigestLocked()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/backup/restore/
DPerformAdbRestoreTaskTest.java53 InputStream inputStream = mContext.getResources().openRawResource( in parseBackupFileAndReturnTarStream_backupNotEncrypted_returnsNonNull() local
56 inputStream, null); in parseBackupFileAndReturnTarStream_backupNotEncrypted_returnsNonNull()
65 InputStream inputStream = mContext.getResources().openRawResource( in parseBackupFileAndReturnTarStream_backupEncryptedAndPasswordProvided_returnsNonNull() local
68 inputStream, "123"); in parseBackupFileAndReturnTarStream_backupEncryptedAndPasswordProvided_returnsNonNull()
77 InputStream inputStream = mContext.getResources().openRawResource( in parseBackupFileAndReturnTarStream_backupEncryptedAndPasswordNotProvided_returnsNull() local
80 inputStream, null); in parseBackupFileAndReturnTarStream_backupEncryptedAndPasswordNotProvided_returnsNull()
89 InputStream inputStream = mContext.getResources().openRawResource( in parseBackupFileAndReturnTarStream_backupEncryptedAndIncorrectPassword_returnsNull() local
92 inputStream, "1234"); in parseBackupFileAndReturnTarStream_backupEncryptedAndIncorrectPassword_returnsNull()
/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/services/backup/java/com/android/server/backup/encryption/chunk/
DChunk.java20 static Chunk readFromProto(ProtoInputStream inputStream) throws IOException { in readFromProto() argument
23 while (inputStream.nextField() != ProtoInputStream.NO_MORE_FIELDS) { in readFromProto()
24 switch (inputStream.getFieldNumber()) { in readFromProto()
26 result.mHash = inputStream.readBytes(ChunksMetadataProto.Chunk.HASH); in readFromProto()
29 result.mLength = inputStream.readInt(ChunksMetadataProto.Chunk.LENGTH); in readFromProto()
DChunkListingMap.java43 public static ChunkListingMap readFromProto(ProtoInputStream inputStream) throws IOException { in readFromProto() argument
48 while (inputStream.nextField() != ProtoInputStream.NO_MORE_FIELDS) { in readFromProto()
49 if (inputStream.getFieldNumber() == (int) ChunksMetadataProto.ChunkListing.CHUNKS) { in readFromProto()
50 long chunkToken = inputStream.start(ChunksMetadataProto.ChunkListing.CHUNKS); in readFromProto()
51 Chunk chunk = Chunk.readFromProto(inputStream); in readFromProto()
54 inputStream.end(chunkToken); in readFromProto()
/frameworks/base/services/tests/servicestests/src/com/android/server/backup/utils/
DTarBackupReaderTest.java104 InputStream inputStream = mContext.getResources().openRawResource( in readTarHeaders_backupEncrypted_correctlyParsesFileMetadata() local
107 inputStream, "123"); in readTarHeaders_backupEncrypted_correctlyParsesFileMetadata()
121 InputStream inputStream = mContext.getResources().openRawResource( in readTarHeaders_backupNotEncrypted_correctlyParsesFileMetadata() local
124 inputStream, null); in readTarHeaders_backupNotEncrypted_correctlyParsesFileMetadata()
139 InputStream inputStream = mContext.getResources().openRawResource( in readTarHeaders_backupNotEncrypted_correctlyReadsPaxHeader() local
142 inputStream, null); in readTarHeaders_backupNotEncrypted_correctlyReadsPaxHeader()
178 InputStream inputStream = mContext.getResources().openRawResource( in readAppManifest_backupEncrypted_correctlyParsesAppManifest() local
181 inputStream, "123"); in readAppManifest_backupEncrypted_correctlyParsesAppManifest()
199 InputStream inputStream = mContext.getResources().openRawResource( in readAppManifest_backupNotEncrypted_correctlyParsesAppManifest() local
202 inputStream, null); in readAppManifest_backupNotEncrypted_correctlyParsesAppManifest()
[all …]
/frameworks/av/media/libaaudio/examples/loopback/src/
Dloopback.cpp61 AAudioStream *inputStream = nullptr; member
132 framesRead = AAudioStream_read(myData->inputStream, myData->inputShortData, in readFormattedData()
136 framesRead = AAudioStream_read(myData->inputStream, myData->inputFloatData, in readFormattedData()
223 int64_t inputFramesWritten = AAudioStream_getFramesWritten(myData->inputStream); in MyDataCallbackProc()
224 int64_t inputFramesRead = AAudioStream_getFramesRead(myData->inputStream); in MyDataCallbackProc()
394 AAudioStream *inputStream = nullptr; in main() local
554 inputStream = loopbackData.inputStream = recorder.getStream(); in main()
557 int32_t actualCapacity = AAudioStream_getBufferCapacityInFrames(inputStream); in main()
558 (void) AAudioStream_setBufferSizeInFrames(inputStream, actualCapacity); in main()
579 argParser.compareWithStream(inputStream); in main()
[all …]
/frameworks/base/services/robotests/backup/src/com/android/server/backup/encryption/chunking/cdc/
DContentDefinedChunkerTest.java123 ByteArrayInputStream inputStream = new ByteArrayInputStream(input); in chunkify_withLargeChunks_splitsIntoChunksAcrossBoundaries() local
126 mChunker.chunkify(inputStream, (chunk) -> result.add(new String(chunk, UTF_8))); in chunkify_withLargeChunks_splitsIntoChunksAcrossBoundaries()
138 ByteArrayInputStream inputStream = new ByteArrayInputStream(input); in chunkify_withSmallChunks_combinesChunksUntilMinSize() local
141 mChunker.chunkify(inputStream, (chunk) -> result.add(new String(chunk, UTF_8))); in chunkify_withSmallChunks_combinesChunksUntilMinSize()
154 ByteArrayInputStream inputStream = new ByteArrayInputStream(largeInput); in chunkify_doesNotProduceChunksLargerThanMaxSize() local
157 mChunker.chunkify(inputStream, (chunk) -> result.add(new String(chunk, UTF_8))); in chunkify_doesNotProduceChunksLargerThanMaxSize()
200 ByteArrayInputStream inputStream = new ByteArrayInputStream(new byte[] {1}); in chunkify_whenConsumerThrowsException_rethrowsException() local
206 inputStream, in chunkify_whenConsumerThrowsException_rethrowsException()
/frameworks/base/tests/JankBench/app/src/main/java/com/android/benchmark/ui/automation/
DFrameTimingStats.java68 public FrameTimingStats(DataInputStream inputStream) throws IOException { in FrameTimingStats() argument
70 update(inputStream); in FrameTimingStats()
73 public void update(DataInputStream inputStream) throws IOException { in update() argument
75 mStats[i] = inputStream.readLong(); in update()
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/java/core/src/test/java/com/google/protobuf/
DCodedInputStreamTest.java694 CodedInputStream inputStream = rawOutput.toByteString().newCodedInput(); in testReadByteArray() local
696 byte[] result = inputStream.readByteArray(); in testReadByteArray()
698 result = inputStream.readByteArray(); in testReadByteArray()
701 result = inputStream.readByteArray(); in testReadByteArray()
704 result = inputStream.readByteArray(); in testReadByteArray()
730 CodedInputStream inputStream = rawOutput.toByteString().newCodedInput(); in testReadByteBuffer() local
732 ByteBuffer result = inputStream.readByteBuffer(); in testReadByteBuffer()
734 result = inputStream.readByteBuffer(); in testReadByteBuffer()
737 result = inputStream.readByteBuffer(); in testReadByteBuffer()
740 result = inputStream.readByteBuffer(); in testReadByteBuffer()
[all …]
/frameworks/base/services/backup/java/com/android/server/backup/
DKeyValueAdbRestoreEngine.java106 FileInputStream inputStream = null; in sortKeyValueData() local
109 inputStream = new FileInputStream(restoreData); in sortKeyValueData()
111 BackupDataInput reader = new BackupDataInput(inputStream.getFD()); in sortKeyValueData()
115 if (inputStream != null) { in sortKeyValueData()
116 IoUtils.closeQuietly(inputStream); in sortKeyValueData()
/frameworks/base/packages/PackageInstaller/src/com/android/packageinstaller/wear/
DInstallTask.java136 InputStream inputStream = null; in writeToOutputStreamFromAsset() local
140 inputStream = new ParcelFileDescriptor.AutoCloseInputStream(mParcelFileDescriptor); in writeToOutputStreamFromAsset()
142 while ((bytesRead = inputStream.read(inputBuf)) > -1) { in writeToOutputStreamFromAsset()
154 safeClose(inputStream); in writeToOutputStreamFromAsset()
/frameworks/base/services/backup/java/com/android/server/backup/encryption/chunking/cdc/
DContentDefinedChunker.java79 public void chunkify(InputStream inputStream, ChunkConsumer chunkConsumer) in chunkify() argument
87 inputStream.read(mChunkBuffer, /*off=*/ 0, /*len=*/ initialReadLength)) in chunkify()
92 while ((b = inputStream.read()) != -1) { in chunkify()
/frameworks/base/graphics/java/android/graphics/drawable/
DIcon.java494 DataInputStream inputStream = new DataInputStream(stream); in createFromStream() local
496 final int version = inputStream.readInt(); in createFromStream()
498 final int type = inputStream.readByte(); in createFromStream()
501 return createWithBitmap(BitmapFactory.decodeStream(inputStream)); in createFromStream()
503 return createWithAdaptiveBitmap(BitmapFactory.decodeStream(inputStream)); in createFromStream()
505 final int length = inputStream.readInt(); in createFromStream()
507 inputStream.read(data, 0 /* offset */, length); in createFromStream()
510 final String packageName = inputStream.readUTF(); in createFromStream()
511 final int resId = inputStream.readInt(); in createFromStream()
514 final String uriOrPath = inputStream.readUTF(); in createFromStream()
/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()
/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/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/rs/tests/java_api/VrDemo/src/com/example/android/rs/vr/loaders/
DLoaderRaw.java105 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/base/services/backup/java/com/android/server/backup/restore/
DFullRestoreEngineThread.java28 FullRestoreEngineThread(FullRestoreEngine engine, InputStream inputStream) { in FullRestoreEngineThread() argument
31 mEngineStream = inputStream; in FullRestoreEngineThread()

12345