Home
last modified time | relevance | path

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

12

/frameworks/base/telephony/java/com/android/internal/telephony/cdma/
DBearerData.java994 private static boolean decodeMessageId(BearerData bData, BitwiseInputStream inStream) in decodeMessageId() argument
998 int paramBits = inStream.read(8) * 8; in decodeMessageId()
1002 bData.messageType = inStream.read(4); in decodeMessageId()
1003 bData.messageId = inStream.read(8) << 8; in decodeMessageId()
1004 bData.messageId |= inStream.read(8); in decodeMessageId()
1005 bData.hasUserDataHeader = (inStream.read(1) == 1); in decodeMessageId()
1006 inStream.skip(3); in decodeMessageId()
1013 inStream.skip(paramBits); in decodeMessageId()
1018 BearerData bData, BitwiseInputStream inStream, int subparamId) in decodeReserved() argument
1022 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.java133 ByteArrayInputStream inStream = new ByteArrayInputStream(data); in fromByteArray() local
135 while (inStream.available() > 0) { in fromByteArray()
144 int id = inStream.read(); in fromByteArray()
145 int length = inStream.read(); in fromByteArray()
151 concatRef.refNumber = inStream.read(); in fromByteArray()
152 concatRef.msgCount = inStream.read(); in fromByteArray()
153 concatRef.seqNumber = inStream.read(); in fromByteArray()
162 concatRef.refNumber = (inStream.read() << 8) | inStream.read(); in fromByteArray()
163 concatRef.msgCount = inStream.read(); in fromByteArray()
164 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.java81 InputStream inStream; field in CacheManager.CacheResult
214 return inStream; in getInputStream()
238 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/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.cpp271 sp<StreamInHalInterface> *inStream) { in openInputStream() argument
306 *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/opt/telephony/src/java/com/android/internal/telephony/
DCarrierKeyDownloadManager.java474 ByteArrayInputStream inStream = new ByteArrayInputStream(cert.getBytes()); in parseJsonAndPersistKey() local
475 Reader fReader = new BufferedReader(new InputStreamReader(inStream)); in parseJsonAndPersistKey()
577 InputStream inStream = new ByteArrayInputStream(certificate); in getKeyInformation() local
579 X509Certificate cert = (X509Certificate) cf.generateCertificate(inStream); in getKeyInformation()
/frameworks/av/media/libaudiohal/include/media/audiohal/
DDeviceHalInterface.h89 sp<StreamInHalInterface> *inStream) = 0;
/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/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/av/media/libstagefright/
DNuMediaExtractor.cpp819 std::istringstream inStream(std::string(static_cast<const char*>(data), size)); in getAudioPresentations() local
820 return deserializeAudioPresentations(&inStream, presentations); in getAudioPresentations()
/frameworks/av/services/audioflinger/
DAudioFlinger.cpp2624 sp<StreamInHalInterface> inStream; in openInput_l() local
2627 outputDevice, outputDeviceAddress, &inStream); in openInput_l()
2630 inStream.get(), in openInput_l()
2648 inStream.clear(); in openInput_l()
2651 outputDevice, outputDeviceAddress, &inStream); in openInput_l()
2655 if (status == NO_ERROR && inStream != 0) { in openInput_l()
2656 AudioStreamIn *inputStream = new AudioStreamIn(inHwDev, inStream, flags); in openInput_l()
/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/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.java1580 try (InputStream inStream = new AutoCloseInputStream(callback.mProfileReadFd)) { in runSnapshotProfile() argument
1586 Streams.copy(inStream, outStream); in runSnapshotProfile()
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DShortcutManagerTest1.java8127 ByteArrayInputStream inStream = new ByteArrayInputStream(outStream.toByteArray()); in testShareTargetInfo_saveToXml() local
8129 parser.setInput(new InputStreamReader(inStream)); in testShareTargetInfo_saveToXml()

12