Home
last modified time | relevance | path

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

/frameworks/base/telephony/java/com/android/internal/telephony/cdma/sms/
DBearerData.java1090 private static boolean decodeMessageId(BearerData bData, BitwiseInputStream inStream) in decodeMessageId() argument
1094 int paramBits = inStream.read(8) * 8; in decodeMessageId()
1098 bData.messageType = inStream.read(4); in decodeMessageId()
1099 bData.messageId = inStream.read(8) << 8; in decodeMessageId()
1100 bData.messageId |= inStream.read(8); in decodeMessageId()
1101 bData.hasUserDataHeader = (inStream.read(1) == 1); in decodeMessageId()
1102 inStream.skip(3); in decodeMessageId()
1109 inStream.skip(paramBits); in decodeMessageId()
1114 BearerData bData, BitwiseInputStream inStream, int subparamId) in decodeReserved() argument
1118 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.java208 DataInputStream inStream = null; in openFileOnMountedObb() local
210 inStream = new DataInputStream(new FileInputStream(inFile)); in openFileOnMountedObb()
219 return inStream; in openFileOnMountedObb()
393 DataInputStream inStream = null; in doValidateIntContents() local
396 inStream = new DataInputStream(new FileInputStream(inFile)); in doValidateIntContents()
399 if (inStream.readInt() != i) { in doValidateIntContents()
403 if (inStream != null) { in doValidateIntContents()
404 inStream.close(); in doValidateIntContents()
459 DataInputStream inStream = null; in doValidateZeroLongFile() local
462 inStream = new DataInputStream(new FileInputStream(inFile)); in doValidateZeroLongFile()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/
DFactoryResetProtectionPolicyTest.java102 ByteArrayInputStream inStream = new ByteArrayInputStream(outStream.toByteArray()); in testSerializationAndDeserialization() local
104 parser.setInput(new InputStreamReader(inStream)); in testSerializationAndDeserialization()
113 ByteArrayInputStream inStream = new ByteArrayInputStream(outStream.toByteArray()); in testInvalidXmlSerializationAndDeserialization() local
116 parser.setInput(new InputStreamReader(inStream)); in testInvalidXmlSerializationAndDeserialization()
DSystemUpdatePolicyTest.java485 ByteArrayInputStream inStream = new ByteArrayInputStream(outStream.toByteArray()); in testSerialization() local
487 parser.setInput(new InputStreamReader(inStream)); in testSerialization()
/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/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.h93 sp<StreamInHalInterface> *inStream) = 0;
/frameworks/av/media/libaudiohal/impl/
DDeviceHalHidl.h87 sp<StreamInHalInterface> *inStream);
DDeviceHalHidl.cpp282 sp<StreamInHalInterface> *inStream) { in openInputStream() argument
339 *inStream = new StreamInHalHidl(result); in openInputStream()
/frameworks/base/core/tests/coretests/src/com/android/internal/util/
DFastDataTest.java372 final ByteArrayInputStream inStream = new ByteArrayInputStream(outStream.toByteArray()); in doBounce() local
373 final FastDataInput inData = new FastDataInput(inStream, BOUNCE_SIZE); in doBounce()
/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/opt/telephony/src/java/com/android/internal/telephony/
DCarrierKeyDownloadManager.java610 InputStream inStream = new ByteArrayInputStream(certificate); in getKeyInformation() local
612 X509Certificate cert = (X509Certificate) cf.generateCertificate(inStream); in getKeyInformation()
/frameworks/av/media/libstagefright/
DNuMediaExtractor.cpp867 std::istringstream inStream(std::string(static_cast<const char*>(data), size)); in getAudioPresentations() local
868 return deserializeAudioPresentations(&inStream, presentations); in getAudioPresentations()
/frameworks/base/core/jni/
Dandroid_hardware_camera2_DngCreator.cpp404 JniInputStream(JNIEnv* env, jobject inStream);
425 JniInputStream::JniInputStream(JNIEnv* env, jobject inStream) : mInStream(inStream), mEnv(env) { in JniInputStream() argument
2561 jobject inStream, jint width, jint height, jlong offset) { in DngCreator_nativeWriteInputStream() argument
2603 sp<JniInputStream> in = new JniInputStream(env, inStream); in DngCreator_nativeWriteInputStream()
/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/av/services/audioflinger/
DAudioFlinger.cpp3187 sp<StreamInHalInterface> inStream; in openInput_l() local
3190 outputDevice, outputDeviceAddress, &inStream); in openInput_l()
3193 inStream.get(), in openInput_l()
3211 inStream.clear(); in openInput_l()
3214 outputDevice, outputDeviceAddress, &inStream); in openInput_l()
3218 if (status == NO_ERROR && inStream != 0) { in openInput_l()
3219 AudioStreamIn *inputStream = new AudioStreamIn(inHwDev, inStream, flags); in openInput_l()
/frameworks/base/services/core/java/com/android/server/pm/
DPackageManagerShellCommand.java2076 try (InputStream inStream = new AutoCloseInputStream(callback.mProfileReadFd)) { in runSnapshotProfile() argument
2082 Streams.copy(inStream, outStream); in runSnapshotProfile()
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DShortcutManagerTest1.java8763 ByteArrayInputStream inStream = new ByteArrayInputStream(outStream.toByteArray()); in testShareTargetInfo_saveToXml() local
8765 parser.setInput(new InputStreamReader(inStream)); in testShareTargetInfo_saveToXml()