Home
last modified time | relevance | path

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

12

/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.java220 ByteArrayInputStream inStream = new ByteArrayInputStream(data); in fromByteArray() local
222 while (inStream.available() > 0) { in fromByteArray()
231 int id = inStream.read(); in fromByteArray()
232 int length = inStream.read(); in fromByteArray()
238 concatRef.refNumber = inStream.read(); in fromByteArray()
239 concatRef.msgCount = inStream.read(); in fromByteArray()
240 concatRef.seqNumber = inStream.read(); in fromByteArray()
249 concatRef.refNumber = (inStream.read() << 8) | inStream.read(); in fromByteArray()
250 concatRef.msgCount = inStream.read(); in fromByteArray()
251 concatRef.seqNumber = inStream.read(); in fromByteArray()
[all …]
/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/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/modules/Permission/PermissionController/tests/mocking/src/com/android/permissioncontroller/tests/mocking/permission/service/
DPermissionChangeStorageImplTest.kt99 val inStream = ByteArrayInputStream(outStream.toByteArray()) in serialize_dataCanBeParsed() constant
100 assertThat(storage.parse(inStream)).containsExactly(mapChange) in serialize_dataCanBeParsed()
109 val inStream = ByteArrayInputStream(outStream.toByteArray()) in serialize_roundsTimeDownToDate() constant
110 assertThat(storage.parse(inStream)).containsExactly(mapChange) in serialize_roundsTimeDownToDate()
127 val inStream = ByteArrayInputStream(outStream.toByteArray()) in serialize_exactTimeDataCanBeParsed() constant
128 assertThat(storage.parse(inStream)).containsExactly(mapChange) in serialize_exactTimeDataCanBeParsed()
145 val inStream = ByteArrayInputStream(outStream.toByteArray()) in serialize_afterStoresExactTimeChangedToTrue_canBeParsed() constant
146 assertThat(storage.parse(inStream)).containsExactly(mapChange) in serialize_afterStoresExactTimeChangedToTrue_canBeParsed()
173 val inStream = ByteArrayInputStream(outStream.toByteArray()) in serialize_afterStoresExactTimeChangedToFalse_roundsTimeDownToDate() constant
174 assertThat(storage.parse(inStream)).containsExactly(mapChange) in serialize_afterStoresExactTimeChangedToFalse_roundsTimeDownToDate()
/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/modules/Permission/PermissionController/tests/mocking/src/com/android/permissioncontroller/tests/mocking/permission/service/v33/
DPermissionDecisionStorageImplTest.kt100 val inStream = ByteArrayInputStream(outStream.toByteArray()) in serialize_dataCanBeParsed() constant
101 assertThat(storage.parse(inStream)).containsExactly(mapLocationGrant, parkingLocationGrant) in serialize_dataCanBeParsed()
111 val inStream = ByteArrayInputStream(outStream.toByteArray()) in serialize_roundsTimeDownToDate() constant
112 assertThat(storage.parse(inStream)).containsExactly(mapLocationGrant) in serialize_roundsTimeDownToDate()
/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/modules/Bluetooth/android/app/src/com/android/bluetooth/map/
DBluetoothMapSmsPdu.java828 ByteArrayInputStream inStream = new ByteArrayInputStream(data); in getTableFromByteArray() local
831 while (inStream.available() > 0) { in getTableFromByteArray()
832 int id = inStream.read(); in getTableFromByteArray()
833 int length = inStream.read(); in getTableFromByteArray()
836 tableValue[1] = inStream.read(); in getTableFromByteArray()
839 tableValue[0] = inStream.read(); in getTableFromByteArray()
842 inStream.skip(length); in getTableFromByteArray()
/packages/modules/IntentResolver/java/src/com/android/intentresolver/icon/
DComposeIcon.kt87 ?.let { inStream -> BitmapIcon(BitmapFactory.decodeStream(inStream)) } in Icon() method
/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/modules/Bluetooth/android/pandora/server/src/
DL2cap.kt70 suspend fun receive(inStream: InputStream): ByteArray { in receive()
73 inStream.read(buf, 0, BUFFER_SIZE) // blocking in receive()
/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/services/Mms/src/com/android/mms/service/
DMmsService.java1106 ParcelFileDescriptor.AutoCloseInputStream inStream = null; in readPduBytesFromContentUri()
1110 inStream = new ParcelFileDescriptor.AutoCloseInputStream(pduFd); in readPduBytesFromContentUri()
1111 int bytesRead = inStream.read(pduData, 0, pduData.length); in readPduBytesFromContentUri()
1120 if (inStream != null) { in readPduBytesFromContentUri()
1122 inStream.close(); in readPduBytesFromContentUri()
/packages/apps/Car/DebuggingRestrictionController/libs/
Dhttpcore-4.4.13.jarMETA-INF/MANIFEST.MF META-INF/ org/ org/apache/ org/ ...
/packages/apps/Car/DebuggingRestrictionController/gradle/wrapper/
Dgradle-wrapper.jarMETA-INF/ META-INF/MANIFEST.MF org/ org/gradle/ org/ ...
/packages/modules/Bluetooth/android/leaudio/gradle/wrapper/
Dgradle-wrapper.jarMETA-INF/ META-INF/MANIFEST.MF org/ org/gradle/ org/ ...
/packages/inputmethods/LatinIME/gradle/wrapper/
Dgradle-wrapper.jarMETA-INF/ META-INF/MANIFEST.MF org/ org/gradle/ org/ ...
/packages/modules/Bluetooth/android/ChannelSoundingTestApp/gradle/wrapper/
Dgradle-wrapper.jarMETA-INF/ META-INF/MANIFEST.MF org/ org/gradle/ org/ ...
/packages/apps/Car/Launcher/gradle/wrapper/
Dgradle-wrapper.jarMETA-INF/ META-INF/MANIFEST.MF org/ org/gradle/ org/ ...
/packages/apps/ManagedProvisioning/studio-dev/ManagedProvisioningGradleProject/gradle/wrapper/
Dgradle-wrapper.jarMETA-INF/ META-INF/MANIFEST.MF org/ org/gradle/ org/ ...
/packages/services/Telephony/testapps/TestSliceApp/gradle/wrapper/
Dgradle-wrapper.jarMETA-INF/ META-INF/MANIFEST.MF org/ org/gradle/ org/ ...
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/sap/
DSapServer.java114 Handler serviceHandler, Context context, InputStream inStream, OutputStream outStream) { in SapServer() argument
119 mRfcommIn = new BufferedInputStream(inStream); in SapServer()
/packages/providers/MediaProvider/tools/photopicker-gradle/gradle/wrapper/
Dgradle-wrapper.jarMETA-INF/ META-INF/MANIFEST.MF org/ org/gradle/ org/ ...

12