Home
last modified time | relevance | path

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

12

/frameworks/base/telephony/java/com/android/internal/telephony/cdma/sms/
DBearerData.java1089 private static boolean decodeMessageId(BearerData bData, BitwiseInputStream inStream) in decodeMessageId() argument
1093 int paramBits = inStream.read(8) * 8; in decodeMessageId()
1097 bData.messageType = inStream.read(4); in decodeMessageId()
1098 bData.messageId = inStream.read(8) << 8; in decodeMessageId()
1099 bData.messageId |= inStream.read(8); in decodeMessageId()
1100 bData.hasUserDataHeader = (inStream.read(1) == 1); in decodeMessageId()
1101 inStream.skip(3); in decodeMessageId()
1108 inStream.skip(paramBits); in decodeMessageId()
1113 BearerData bData, BitwiseInputStream inStream, int subparamId) in decodeReserved() argument
1117 int subparamLen = inStream.read(8); // SUBPARAM_LEN in decodeReserved()
[all …]
/frameworks/base/core/tests/utiltests/src/com/android/internal/util/
DBitwiseStreamsTest.java41 BitwiseInputStream inStream = new BitwiseInputStream(outBuf); in testOne() local
43 inStream.skip(offset); in testOne()
44 for (int i = 0; i < inBufDup.length; i++) inBufDup[i] = (byte)inStream.read(8); in testOne()
55 BitwiseInputStream inStream = new BitwiseInputStream(outStream.toByteArray()); in testTwo() local
56 inStream.skip(offset); in testTwo()
58 for (int i = 0; i < inBufDup.length; i++) inBufDup[i] = (byte)inStream.read(8); in testTwo()
69 BitwiseInputStream inStream = new BitwiseInputStream(outStream.toByteArray()); in testThree() local
70 inStream.skip(offset); in testThree()
72 for (int i = 0; i < inBufDup.length; i++) inBufDup[i] = (byte)inStream.read(8); in testThree()
86 BitwiseInputStream inStream = new BitwiseInputStream(outStream.toByteArray()); in testFour() local
[all …]
/frameworks/base/telephony/java/com/android/internal/telephony/
DSmsHeader.java222 ByteArrayInputStream inStream = new ByteArrayInputStream(data); in fromByteArray() local
224 while (inStream.available() > 0) { in fromByteArray()
233 int id = inStream.read(); in fromByteArray()
234 int length = inStream.read(); in fromByteArray()
240 concatRef.refNumber = inStream.read(); in fromByteArray()
241 concatRef.msgCount = inStream.read(); in fromByteArray()
242 concatRef.seqNumber = inStream.read(); in fromByteArray()
251 concatRef.refNumber = (inStream.read() << 8) | inStream.read(); in fromByteArray()
252 concatRef.msgCount = inStream.read(); in fromByteArray()
253 concatRef.seqNumber = inStream.read(); in fromByteArray()
[all …]
/frameworks/base/core/tests/coretests/src/android/os/storage/
DStorageManagerBaseTest.java165 DataInputStream inStream = null; in openFileOnMountedObb() local
167 inStream = new DataInputStream(new FileInputStream(inFile)); in openFileOnMountedObb()
176 return inStream; in openFileOnMountedObb()
352 DataInputStream inStream = null; in doValidateIntContents() local
355 inStream = new DataInputStream(new FileInputStream(inFile)); in doValidateIntContents()
358 if (inStream.readInt() != i) { in doValidateIntContents()
362 if (inStream != null) { in doValidateIntContents()
363 inStream.close(); in doValidateIntContents()
418 DataInputStream inStream = null; in doValidateZeroLongFile() local
421 inStream = new DataInputStream(new FileInputStream(inFile)); in doValidateZeroLongFile()
[all …]
/frameworks/base/obex/javax/obex/
DClientOperation.java691 public synchronized boolean continueOperation(boolean sendEmpty, boolean inStream) in continueOperation() argument
698 if ((inStream) && (!mOperationDone)) { in continueOperation()
713 } else if ((!inStream) && (!mOperationDone)) { in continueOperation()
736 if ((!inStream) && (!mOperationDone)) { in continueOperation()
743 } else if ((inStream) && (!mOperationDone)) { in continueOperation()
761 public void streamClosed(boolean inStream) throws IOException { in streamClosed() argument
763 if ((!inStream) && (!mOperationDone)) { in streamClosed()
792 } else if ((inStream) && (mOperationDone)) { in streamClosed()
797 if ((inStream) && (!mOperationDone)) { in streamClosed()
817 } else if ((!inStream) && (!mOperationDone)) { in streamClosed()
DBaseStream.java67 boolean continueOperation(boolean sendEmpty, boolean inStream) throws IOException; in continueOperation() argument
75 void streamClosed(boolean inStream) throws IOException; in streamClosed() argument
DServerOperation.java341 public synchronized boolean continueOperation(boolean sendEmpty, boolean inStream) in continueOperation() argument
854 public void streamClosed(boolean inStream) throws IOException { in streamClosed() argument
/frameworks/base/core/java/android/webkit/
DCacheManager.java86 InputStream inStream; field in CacheManager.CacheResult
219 return inStream; in getInputStream()
243 this.inStream = stream; in setInputStream()
/frameworks/base/core/java/android/security/keystore/recovery/
DX509CertificateParsingUtils.java72 private static X509Certificate decodeCert(InputStream inStream) throws CertificateException { in decodeCert() argument
80 return (X509Certificate) certFactory.generateCertificate(inStream); in decodeCert()
/frameworks/base/telephony/java/com/android/internal/telephony/cdma/
DSmsMessage.java688 BitwiseInputStream inStream = new BitwiseInputStream(mUserData); in preprocessCdmaFdeaWap() local
691 if (inStream.read(8) != 0x00) { in preprocessCdmaFdeaWap()
697 if (inStream.read(8) != 0x03) { in preprocessCdmaFdeaWap()
703 mBearerData.messageType = inStream.read(4); in preprocessCdmaFdeaWap()
706 int msgId = inStream.read(8) << 8; in preprocessCdmaFdeaWap()
707 msgId |= inStream.read(8); in preprocessCdmaFdeaWap()
712 mBearerData.hasUserDataHeader = (inStream.read(1) == 1); in preprocessCdmaFdeaWap()
719 inStream.skip(3); in preprocessCdmaFdeaWap()
722 if (inStream.read(8) != 0x01) { in preprocessCdmaFdeaWap()
728 int userDataLen = inStream.read(8) * 8; in preprocessCdmaFdeaWap()
[all …]
/frameworks/av/media/libaudiohal/impl/
DDeviceHalLocal.cpp136 sp<StreamInHalInterface> *inStream) { in openInputStream() argument
146 *inStream = new StreamInHalLocal(halStream, this); in openInputStream()
148 ALOGV("open_input_stream status %d stream %p", openResult, inStream); in openInputStream()
DDeviceHalLocal.h84 sp<StreamInHalInterface> *inStream);
DDeviceHalHidl.h91 sp<StreamInHalInterface> *inStream);
DDeviceHalHidl.cpp269 sp<StreamInHalInterface> *inStream) { in openInputStream() argument
304 *inStream = new StreamInHalHidl(result); in openInputStream()
/frameworks/base/core/java/android/gesture/
DGesture.java288 final DataInputStream inStream = new DataInputStream(
292 gesture = deserialize(inStream);
296 GestureUtils.closeStream(inStream);
/frameworks/base/services/core/java/com/android/server/locksettings/recoverablekeystore/certificate/
DCertUtils.java100 static X509Certificate decodeCert(InputStream inStream) throws CertParsingException { in decodeCert() argument
109 return (X509Certificate) certFactory.generateCertificate(inStream); in decodeCert()
/frameworks/av/media/libaudiohal/include/media/audiohal/
DDeviceHalInterface.h90 sp<StreamInHalInterface> *inStream) = 0;
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/performance/
DMediaPlayerPerformance.java308 InputStream inStream = p.getInputStream(); in writeProcmemInfo() local
309 InputStreamReader inReader = new InputStreamReader(inStream); in writeProcmemInfo()
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/
DSystemUpdatePolicyTest.java480 ByteArrayInputStream inStream = new ByteArrayInputStream(outStream.toByteArray()); in testSerialization() local
482 parser.setInput(new InputStreamReader(inStream)); in testSerialization()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DCarrierKeyDownloadManager.java562 InputStream inStream = new ByteArrayInputStream(certificate); in getKeyInformation() local
564 X509Certificate cert = (X509Certificate) cf.generateCertificate(inStream); in getKeyInformation()
/frameworks/av/media/libstagefright/
DNuMediaExtractor.cpp820 std::istringstream inStream(std::string(static_cast<const char*>(data), size)); in getAudioPresentations() local
821 return deserializeAudioPresentations(&inStream, presentations); in getAudioPresentations()
/frameworks/base/core/jni/
Dandroid_hardware_camera2_DngCreator.cpp387 JniInputStream(JNIEnv* env, jobject inStream);
408 JniInputStream::JniInputStream(JNIEnv* env, jobject inStream) : mInStream(inStream), mEnv(env) { in JniInputStream() argument
2518 jobject inStream, jint width, jint height, jlong offset) { in DngCreator_nativeWriteInputStream() argument
2572 sp<JniInputStream> in = new JniInputStream(env, inStream); in DngCreator_nativeWriteInputStream()
/frameworks/av/services/audioflinger/
DAudioFlinger.cpp2759 sp<StreamInHalInterface> inStream; in openInput_l() local
2762 outputDevice, outputDeviceAddress, &inStream); in openInput_l()
2765 inStream.get(), in openInput_l()
2783 inStream.clear(); in openInput_l()
2786 outputDevice, outputDeviceAddress, &inStream); in openInput_l()
2790 if (status == NO_ERROR && inStream != 0) { in openInput_l()
2791 AudioStreamIn *inputStream = new AudioStreamIn(inHwDev, inStream, flags); in openInput_l()
/frameworks/base/packages/WallpaperCropper/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()
/frameworks/base/services/core/java/com/android/server/pm/
DPackageManagerShellCommand.java1742 try (InputStream inStream = new AutoCloseInputStream(callback.mProfileReadFd)) { in runSnapshotProfile() argument
1748 Streams.copy(inStream, outStream); in runSnapshotProfile()

12