Home
last modified time | relevance | path

Searched refs:inStream (Results 1 – 15 of 15) sorted by relevance

/packages/modules/CellBroadcastService/src/com/android/cellbroadcastservice/
DBearerData.java182 private static boolean decodeMessageId(BearerData bData, BitwiseInputStream inStream) in decodeMessageId() argument
186 int paramBits = inStream.read(8) * 8; in decodeMessageId()
190 inStream.skip(4); // skip messageType in decodeMessageId()
191 bData.messageId = inStream.read(8) << 8; in decodeMessageId()
192 bData.messageId |= inStream.read(8); in decodeMessageId()
193 bData.hasUserDataHeader = (inStream.read(1) == 1); in decodeMessageId()
194 inStream.skip(3); in decodeMessageId()
201 inStream.skip(paramBits); in decodeMessageId()
205 private static boolean decodeReserved(BitwiseInputStream inStream, int subparamId) in decodeReserved() argument
208 int subparamLen = inStream.read(8); // SUBPARAM_LEN in decodeReserved()
[all …]
DSmsHeader.java138 ByteArrayInputStream inStream = new ByteArrayInputStream(data); in fromByteArray() local
140 while (inStream.available() > 0) { in fromByteArray()
149 int id = inStream.read(); in fromByteArray()
150 int length = inStream.read(); in fromByteArray()
156 concatRef.refNumber = inStream.read(); in fromByteArray()
157 concatRef.msgCount = inStream.read(); in fromByteArray()
158 concatRef.seqNumber = inStream.read(); in fromByteArray()
167 concatRef.refNumber = (inStream.read() << 8) | inStream.read(); in fromByteArray()
168 concatRef.msgCount = inStream.read(); in fromByteArray()
169 concatRef.seqNumber = inStream.read(); in fromByteArray()
[all …]
/packages/apps/Gallery2/jni_jpegstream/src/
Djpeg_hook.cpp91 int32_t bytesRead = src->inStream->read(src->inStream->getBufferSize(), 0); in Mgr_fill_input_buffer_fcn()
97 bytesRead = src->inStream->forceReadEOI(); in Mgr_fill_input_buffer_fcn()
103 src->mgr.next_input_byte = reinterpret_cast<JOCTET*>(src->inStream->getBufferPtr()); in Mgr_fill_input_buffer_fcn()
132 int64_t actual = src->inStream->skip(skip); in Mgr_skip_input_data_fcn()
138 actual = src->inStream->skip(skip); in Mgr_skip_input_data_fcn()
156 int32_t MakeSrc(j_decompress_ptr cinfo, JNIEnv *env, jobject inStream){ in MakeSrc() argument
178 s->inStream = new InputStreamWrapper(); in MakeSrc()
179 if(s->inStream->init(env, inStream)) { in MakeSrc()
187 s->inStream->updateEnv(env); in UpdateSrcEnv()
193 if (s->inStream != NULL) { in CleanSrc()
[all …]
Djpeg_hook.h60 InputStreamWrapper *inStream; member
64 int32_t MakeSrc(j_decompress_ptr cinfo, JNIEnv *env, jobject inStream);
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/makedict/
DDictDecoder.java145 FileInputStream inStream = null; in getDictionaryBuffer() local
148 inStream = new FileInputStream(file); in getDictionaryBuffer()
149 buffer = inStream.getChannel().map(FileChannel.MapMode.READ_ONLY, in getDictionaryBuffer()
152 if (inStream != null) { in getDictionaryBuffer()
153 inStream.close(); in getDictionaryBuffer()
174 FileInputStream inStream = null; in getDictionaryBuffer() local
176 inStream = new FileInputStream(file); in getDictionaryBuffer()
178 inStream.read(array); in getDictionaryBuffer()
181 if (inStream != null) { in getDictionaryBuffer()
182 inStream.close(); in getDictionaryBuffer()
/packages/apps/Messaging/src/android/support/v7/mms/
DSendRequest.java105 ParcelFileDescriptor.AutoCloseInputStream inStream = null; in readPduFromContentUri()
109 inStream = new ParcelFileDescriptor.AutoCloseInputStream(pduFd); in readPduFromContentUri()
112 final int bytesRead = inStream.read(readBuf, 0, maxSize+1); in readPduFromContentUri()
129 if (inStream != null) { in readPduFromContentUri()
131 inStream.close(); in readPduFromContentUri()
/packages/apps/Bluetooth/src/com/android/bluetooth/map/
DBluetoothMapSmsPdu.java762 ByteArrayInputStream inStream = new ByteArrayInputStream(data); in getTableFromByteArray() local
766 while (inStream.available() > 0) { in getTableFromByteArray()
767 int id = inStream.read(); in getTableFromByteArray()
768 int length = inStream.read(); in getTableFromByteArray()
771 tableValue[1] = inStream.read(); in getTableFromByteArray()
774 tableValue[0] = inStream.read(); in getTableFromByteArray()
777 inStream.skip(length); in getTableFromByteArray()
/packages/apps/DocumentsUI/src/com/android/documentsui/clipping/
DClipStorageReader.java48 FileInputStream inStream = new FileInputStream(file); in ClipStorageReader() local
49 mScanner = new Scanner(inStream); in ClipStorageReader()
60 FileLock lock = inStream.getChannel().lock(0L, Long.MAX_VALUE, true); in ClipStorageReader()
/packages/apps/Dialer/java/com/android/dialer/callcomposer/camera/exif/
DExifInterface.java103 private void readExif(InputStream inStream) throws IOException { in readExif() argument
104 if (inStream == null) { in readExif()
109 d = new ExifReader(this).read(inStream); in readExif()
/packages/services/Mms/src/com/android/mms/service/
DMmsService.java901 ParcelFileDescriptor.AutoCloseInputStream inStream = null; in readPduBytesFromContentUri()
905 inStream = new ParcelFileDescriptor.AutoCloseInputStream(pduFd); in readPduBytesFromContentUri()
906 int bytesRead = inStream.read(pduData, 0, pduData.length); in readPduBytesFromContentUri()
915 if (inStream != null) { in readPduBytesFromContentUri()
917 inStream.close(); in readPduBytesFromContentUri()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/tools/
DSaveImage.java251 InputStream inStream = null; in getExifData() local
253 inStream = mContext.getContentResolver().openInputStream(source); in getExifData()
254 exif.readExif(inStream); in getExifData()
260 Utils.closeSilently(inStream); in getExifData()
/packages/apps/Bluetooth/src/com/android/bluetooth/sap/
DSapServer.java107 public SapServer(Handler serviceHandler, Context context, InputStream inStream, in SapServer() argument
113 mRfcommIn = new BufferedInputStream(inStream); in SapServer()
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/exif/
DExifInterface.java735 public void readExif(InputStream inStream) throws IOException { in readExif() argument
736 if (inStream == null) { in readExif()
741 d = new ExifReader(this).read(inStream); in readExif()
/packages/apps/Messaging/src/com/android/messaging/util/exif/
DExifInterface.java735 public void readExif(InputStream inStream) throws IOException { in readExif() argument
736 if (inStream == null) { in readExif()
741 d = new ExifReader(this).read(inStream); in readExif()
/packages/apps/Camera2/src/com/android/camera/exif/
DExifInterface.java738 public void readExif(InputStream inStream) throws IOException { in readExif() argument
739 if (inStream == null) { in readExif()
744 d = new ExifReader(this).read(inStream); in readExif()