Home
last modified time | relevance | path

Searched refs:inStream (Results 1 – 25 of 25) 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.java44 BitwiseInputStream inStream = new BitwiseInputStream(outBuf); in testOne() local
46 inStream.skip(offset); in testOne()
47 for (int i = 0; i < inBufDup.length; i++) inBufDup[i] = (byte)inStream.read(8); in testOne()
59 BitwiseInputStream inStream = new BitwiseInputStream(outStream.toByteArray()); in testTwo() local
60 inStream.skip(offset); in testTwo()
62 for (int i = 0; i < inBufDup.length; i++) inBufDup[i] = (byte)inStream.read(8); in testTwo()
74 BitwiseInputStream inStream = new BitwiseInputStream(outStream.toByteArray()); in testThree() local
75 inStream.skip(offset); in testThree()
77 for (int i = 0; i < inBufDup.length; i++) inBufDup[i] = (byte)inStream.read(8); in testThree()
92 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/av/services/audioflinger/datapath/
DAudioStreamIn.cpp83 sp<StreamInHalInterface> inStream; in open() local
94 &inStream); in open()
96 " channelMask %#x, status %d", inStream.get(), config->sample_rate, config->format, in open()
100 stream = inStream; in open()
/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.h106 sp<StreamInHalInterface> *inStream) = 0;
/frameworks/base/core/tests/coretests/src/com/android/internal/util/
DFastDataTest.java455 final ByteArrayInputStream inStream = new ByteArrayInputStream(outStream.toByteArray()); in doBounce() local
456 final FastDataInput inData = createFastDataInput(inStream, BOUNCE_SIZE); in doBounce()
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/performance/
DMediaPlayerPerformance.java305 InputStream inStream = p.getInputStream(); in writeProcmemInfo() local
306 InputStreamReader inReader = new InputStreamReader(inStream); in writeProcmemInfo()
/frameworks/av/media/libaudiohal/impl/
DDeviceHalHidl.h84 sp<StreamInHalInterface>* inStream) override;
DDeviceHalHidl.cpp324 sp<StreamInHalInterface> *inStream) { in openInputStream() argument
381 *inStream = new StreamInHalHidl(result); in openInputStream()
388 mStreams.insert({handle, *inStream}); in openInputStream()
DDeviceHalAidl.h130 sp<StreamInHalInterface>* inStream) override;
DDeviceHalAidl.cpp511 sp<StreamInHalInterface>* inStream) { in openInputStream() argument
515 if (inStream == nullptr || config == nullptr) { in openInputStream()
561 *inStream = sp<StreamInHalAidl>::make(*config, std::move(context), aidlPatch.latenciesMs[0], in openInputStream()
565 mMapper.addStream(*inStream, mixPortConfig.id, aidlPatch.id); in openInputStream()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DCarrierKeyDownloadManager.java802 InputStream inStream = new ByteArrayInputStream(certificate); in getKeyInformation() local
804 X509Certificate cert = (X509Certificate) cf.generateCertificate(inStream); in getKeyInformation()
/frameworks/av/media/libstagefright/
DNuMediaExtractor.cpp874 std::istringstream inStream(std::string(static_cast<const char*>(data), size)); in getAudioPresentations() local
875 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
2566 jobject inStream, jint width, jint height, jlong offset) { in DngCreator_nativeWriteInputStream() argument
2608 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/base/services/core/java/com/android/server/pm/
DPackageManagerShellCommand.java4107 try (InputStream inStream = new AutoCloseInputStream(fd)) { in getArchivedPackage() argument
4109 Streams.readFully(inStream, bytes); in getArchivedPackage()
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DShortcutManagerTest1.java8731 ByteArrayInputStream inStream = new ByteArrayInputStream(outStream.toByteArray()); in testShareTargetInfo_saveToXml() local
8733 parser.setInput(new InputStreamReader(inStream)); in testShareTargetInfo_saveToXml()