Home
last modified time | relevance | path

Searched refs:InputStream (Results 1 – 25 of 441) sorted by relevance

12345678910>>...18

/aosp14/frameworks/base/services/tests/mockingservicestests/src/com/android/server/backup/restore/
H A DPerformAdbRestoreTaskTest.java35 import java.io.InputStream;
53 InputStream inputStream = mContext.getResources().openRawResource( in parseBackupFileAndReturnTarStream_backupNotEncrypted_returnsNonNull()
55 InputStream tarInputStream = PerformAdbRestoreTask.parseBackupFileHeaderAndReturnTarStream( in parseBackupFileAndReturnTarStream_backupNotEncrypted_returnsNonNull()
65 InputStream inputStream = mContext.getResources().openRawResource( in parseBackupFileAndReturnTarStream_backupEncryptedAndPasswordProvided_returnsNonNull()
67 InputStream tarInputStream = PerformAdbRestoreTask.parseBackupFileHeaderAndReturnTarStream( in parseBackupFileAndReturnTarStream_backupEncryptedAndPasswordProvided_returnsNonNull()
77 InputStream inputStream = mContext.getResources().openRawResource( in parseBackupFileAndReturnTarStream_backupEncryptedAndPasswordNotProvided_returnsNull()
79 InputStream tarInputStream = PerformAdbRestoreTask.parseBackupFileHeaderAndReturnTarStream( in parseBackupFileAndReturnTarStream_backupEncryptedAndPasswordNotProvided_returnsNull()
89 InputStream inputStream = mContext.getResources().openRawResource( in parseBackupFileAndReturnTarStream_backupEncryptedAndIncorrectPassword_returnsNull()
91 InputStream tarInputStream = PerformAdbRestoreTask.parseBackupFileHeaderAndReturnTarStream( in parseBackupFileAndReturnTarStream_backupEncryptedAndIncorrectPassword_returnsNull()
/aosp14/frameworks/base/tools/powermodel/test/com/android/powermodel/
H A DCsvParserTest.java20 import java.io.InputStream;
64 final InputStream is = new ByteArrayInputStream(text.getBytes(StandardCharsets.UTF_8)); in testEmpty()
76 final InputStream is = new ByteArrayInputStream(text.getBytes(StandardCharsets.UTF_8)); in testOnlyNewline()
88 final InputStream is = new ByteArrayInputStream(text.getBytes(StandardCharsets.UTF_8)); in testTwoLines()
103 final InputStream is = new ByteArrayInputStream(text.getBytes(StandardCharsets.UTF_8)); in testEscapedEmpty()
116 final InputStream is = new ByteArrayInputStream(text.getBytes(StandardCharsets.UTF_8)); in testEscapedText()
129 final InputStream is = new ByteArrayInputStream(text.getBytes(StandardCharsets.UTF_8)); in testEscapedQuotes()
142 final InputStream is = new ByteArrayInputStream(text.getBytes(StandardCharsets.UTF_8)); in testEscapedCommas()
155 final InputStream is = new ByteArrayInputStream(text.getBytes(StandardCharsets.UTF_8)); in testEscapedQuotesAndCommas()
168 final InputStream is = new ByteArrayInputStream(text.getBytes(StandardCharsets.UTF_8)); in testNoNewline()
[all …]
H A DRawBatteryStatsTest.java20 import java.io.InputStream;
32 private static InputStream makeCsv(String... lines) { in makeCsv()
36 private static InputStream makeCsv(int version, String... lines) { in makeCsv()
48 final InputStream is = makeCsv(); in testVersion()
69 final InputStream is = makeCsv("9,0,i,uid,1000,com.example.app"); in testUid()
80 final InputStream is = makeCsv("9,0,i,gmcd,1,2,3,4,5,6,7"); in testVarargs()
/aosp14/frameworks/base/core/tests/coretests/src/android/content/pm/
H A DLimitedLengthInputStreamTest.java26 import java.io.InputStream;
33 private InputStream mTestStream1;
45 InputStream is = new LimitedLengthInputStream(mTestStream1, -1, TEST_STRING1.length); in testConstructor_NegativeOffset_Failure()
55 InputStream is = new LimitedLengthInputStream(mTestStream1, 0, -1); in testConstructor_NegativeLength_Failure()
65 InputStream is = new LimitedLengthInputStream(null, 0, 1); in testConstructor_NullInputStream_Failure()
75 InputStream is = new LimitedLengthInputStream(mTestStream1, Long.MAX_VALUE - 1, in testConstructor_OffsetLengthOverflow_Fail()
91 InputStream is = new LimitedLengthInputStream(mTestStream1, offset, length); in checkReadBytesWithOffsetAndLength_WithString1()
126 InputStream is = new LimitedLengthInputStream(mTestStream1, 0, TEST_STRING1.length + 10); in testReadBytesWithOffsetAndLength_ZeroOffset_PastEnd_Success()
141 InputStream is = new LimitedLengthInputStream(mTestStream1, offset, length); in checkReadBytes_WithString1()
171 InputStream is = new LimitedLengthInputStream(mTestStream1, offset, length); in checkSingleByteRead_WithString1()
/aosp14/frameworks/base/services/tests/mockingservicestests/src/com/android/server/backup/utils/
H A DTarBackupReaderTest.java70 import java.io.InputStream;
104 InputStream inputStream = mContext.getResources().openRawResource( in readTarHeaders_backupEncrypted_correctlyParsesFileMetadata()
121 InputStream inputStream = mContext.getResources().openRawResource( in readTarHeaders_backupNotEncrypted_correctlyParsesFileMetadata()
139 InputStream inputStream = mContext.getResources().openRawResource( in readTarHeaders_backupNotEncrypted_correctlyReadsPaxHeader()
178 InputStream inputStream = mContext.getResources().openRawResource( in readAppManifest_backupEncrypted_correctlyParsesAppManifest()
199 InputStream inputStream = mContext.getResources().openRawResource( in readAppManifest_backupNotEncrypted_correctlyParsesAppManifest()
220 InputStream inputStream = mContext.getResources().openRawResource( in chooseRestorePolicy_signaturesIsNull_returnsIgnore()
238 InputStream inputStream = mContext.getResources().openRawResource( in chooseRestorePolicy_packageDoesNotExistAndAllowApksAndHasApk_returnsAcceptIfApk()
263 InputStream inputStream = mContext.getResources().openRawResource( in chooseRestorePolicy_packageDoesNotExistAndAllowApksAndDoesNotHaveApk_returnsAcceptIfApkLogsCannotRestore()
291 InputStream inputStream = mContext.getResources().openRawResource( in chooseRestorePolicy_packageDoesNotExistAndDoesNotAllowApks_returnsIgnore()
[all …]
/aosp14/frameworks/base/core/java/android/webkit/
H A DWebResourceResponse.java24 import java.io.InputStream;
42 private InputStream mInputStream;
64 InputStream data) { in WebResourceResponse()
91 @NonNull String reasonPhrase, Map<String, String> responseHeaders, InputStream data) { in WebResourceResponse()
212 public void setData(InputStream data) { in setData()
227 public InputStream getData() { in getData()
237 String reasonPhrase, Map<String, String> responseHeaders, InputStream data) { in WebResourceResponse()
H A DPluginData.java22 import java.io.InputStream;
43 private InputStream mStream;
77 InputStream stream, in PluginData()
98 public InputStream getInputStream() { in getInputStream()
/aosp14/frameworks/base/tools/aapt2/io/
H A DUtil.h32 bool CopyInputStreamToArchive(IAaptContext* context, InputStream* in, std::string_view out_path,
47 bool Copy(OutputStream* out, InputStream* in);
49 bool Copy(::google::protobuf::io::ZeroCopyOutputStream* out, InputStream* in);
87 explicit ZeroCopyInputAdaptor(io::InputStream* in) : in_(in) { in ZeroCopyInputAdaptor()
122 io::InputStream* in_;
127 explicit ProtoInputStreamReader(io::InputStream* in) : in_(in) { } in ProtoInputStreamReader()
138 io::InputStream* in_;
H A DIo.h27 class InputStream {
29 virtual ~InputStream() = default;
62 class KnownSizeInputStream : public InputStream {
/aosp14/frameworks/base/core/java/com/android/internal/util/
H A DSizedInputStream.java22 import java.io.InputStream;
28 public class SizedInputStream extends InputStream {
29 private final InputStream mWrapped;
32 public SizedInputStream(InputStream wrapped, long length) { in SizedInputStream()
/aosp14/frameworks/base/tools/powermodel/src/com/android/powermodel/
H A DBatteryStatsReader.java19 import java.io.InputStream;
38 public static ActivityReport parse(InputStream stream) throws ParseException, IOException { in parse()
47 final InputStream mStream;
54 Parser(InputStream stream) { in Parser()
/aosp14/frameworks/base/services/backup/java/com/android/server/backup/restore/
H A DPerformAdbRestoreTask.java44 import java.io.InputStream;
163 public static InputStream parseBackupFileHeaderAndReturnTarStream( in parseBackupFileHeaderAndReturnTarStream()
164 InputStream rawInputStream, in parseBackupFileHeaderAndReturnTarStream()
169 InputStream preCompressStream = rawInputStream; in parseBackupFileHeaderAndReturnTarStream()
218 private static String readHeaderLine(InputStream in) throws IOException { in readHeaderLine()
230 private static InputStream attemptEncryptionKeyDecryption(String decryptPassword, in attemptEncryptionKeyDecryption()
232 String encryptionKeyBlobHex, InputStream rawInStream, boolean doLog) { in attemptEncryptionKeyDecryption()
233 InputStream result = null; in attemptEncryptionKeyDecryption()
309 private static InputStream decodeAesHeaderAndInitialize(String decryptPassword, in decodeAesHeaderAndInitialize()
312 InputStream rawInStream) { in decodeAesHeaderAndInitialize()
[all …]
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/integrity/parser/
H A DRuleIndexingControllerTest.java38 import java.io.InputStream;
49 InputStream inputStream = obtainDefaultIndexingMapForTest(); in verifyIndexRangeSearchIsCorrect()
72 InputStream inputStream = obtainDefaultIndexingMapForTest(); in verifyIndexRangeSearchIsCorrect_multipleAppCertificates()
96 InputStream inputStream = obtainDefaultIndexingMapForTest(); in verifyIndexRangeSearchIsCorrect_keysInFirstAndLastBlock()
119 InputStream inputStream = obtainDefaultIndexingMapForTest(); in verifyIndexRangeSearchIsCorrect_keysMatchWithValues()
152 InputStream inputStream = new ByteArrayInputStream(rule.array()); in verifyIndexRangeSearchIsCorrect_noIndexesAvailable()
183 InputStream inputStream = new ByteArrayInputStream(rule.array()); in verifyIndexingFileIsCorrupt()
189 private static InputStream obtainDefaultIndexingMapForTest() { in obtainDefaultIndexingMapForTest()
/aosp14/frameworks/base/graphics/java/android/graphics/
H A DMovie.java24 import java.io.InputStream;
60 public static Movie decodeStream(InputStream is) { in decodeStream()
73 private static native Movie nativeDecodeStream(InputStream is); in nativeDecodeStream()
80 InputStream is; in decodeFile()
100 private static Movie decodeTempStream(InputStream is) { in decodeTempStream()
/aosp14/frameworks/base/tests/ProtoInputStreamTests/src/com/android/test/protoinputstream/
H A DProtoInputStreamIncompleteValueTest.java27 import java.io.InputStream;
45 InputStream stream = new ByteArrayInputStream(protobuf); in testIncompleteVarint()
83 InputStream stream = new ByteArrayInputStream(protobuf); in testIncompleteFixed64()
121 InputStream stream = new ByteArrayInputStream(protobuf); in testIncompleteLengthDelimited()
158 InputStream stream = new ByteArrayInputStream(protobuf); in testIncompleteFixed32()
/aosp14/frameworks/base/services/core/java/com/android/server/integrity/model/
H A DBitInputStream.java20 import java.io.InputStream;
31 private InputStream mInputStream;
35 public BitInputStream(InputStream inputStream) { in BitInputStream()
/aosp14/frameworks/base/mime/java/android/content/type/
H A DDefaultMimeMapFactory.java23 import java.io.InputStream;
60 public static MimeMap create(Function<String, InputStream> resourceSupplier) { in create()
77 Function<String, InputStream> resourceSupplier, String resourceName) { in parseTypes()
78 try (InputStream inputStream = Objects.requireNonNull(resourceSupplier.apply(resourceName)); in parseTypes()
/aosp14/frameworks/base/services/core/java/com/android/server/net/watchlist/
H A DDigestUtils.java22 import java.io.InputStream;
37 try (InputStream stream = new FileInputStream(apkFile)) { in getSha256Hash()
43 public static byte[] getSha256Hash(InputStream stream) in getSha256Hash()
/aosp14/frameworks/base/media/java/android/media/
H A DResampleInputStream.java19 import java.io.InputStream;
27 public final class ResampleInputStream extends InputStream
36 private InputStream mInputStream;
59 public ResampleInputStream(InputStream inputStream, int rateIn, int rateOut) { in ResampleInputStream()
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/input/
H A DConfigurationProcessorTest.java32 import java.io.InputStream;
52 InputStream xml = mContext.getResources().openRawResource(res); in testGetInputPortAssociations()
69 InputStream xml = mContext.getResources().openRawResource(res); in testGetInputPortAssociationsBadDisplayport()
83 InputStream xml = mContext.getResources().openRawResource(res); in testGetInputPortAssociationsEmptyConfig()
/aosp14/frameworks/base/core/java/com/android/internal/infra/
H A DRemoteStream.java32 import java.io.InputStream;
97 ThrowingConsumer<ParcelFileDescriptor> ipc, ThrowingFunction<InputStream, R> read) { in receiveBytes() argument
98 return new RemoteStream<R, InputStream>( in receiveBytes()
101 protected InputStream createStream(ParcelFileDescriptor fd) { in receiveBytes()
124 public static byte[] readAll(InputStream inputStream) throws IOException {
/aosp14/frameworks/base/core/tests/coretests/src/android/content/
H A DMemoryFileProviderTest.java26 import java.io.InputStream;
41 InputStream in = resolver.openInputStream(uri); in testRead()
58 InputStream in = resolver.openInputStream(uri); in testClose()
74 InputStream in = resolver.openInputStream(uri); in testFile()
/aosp14/frameworks/base/obex/javax/obex/
H A DObexPacket.java21 import java.io.InputStream;
39 public static ObexPacket read(InputStream is) throws IOException { in read()
51 public static ObexPacket read(int headerId, InputStream is) throws IOException { in read()
/aosp14/frameworks/base/services/robotests/backup/src/com/android/server/backup/testing/
H A DUtils.java20 import java.io.InputStream;
29 public static void transferStreamedData(InputStream in, OutputStream out) throws IOException { in transferStreamedData()
33 public static void transferStreamedData(InputStream in, OutputStream out, int bufferSize) in transferStreamedData()
/aosp14/frameworks/base/packages/WallpaperCropper/src/com/android/photos/
H A DBitmapRegionTileSource.java44 import java.io.InputStream;
71 InputStream is, boolean isShareable) { in newInstance()
108 public static DumbBitmapRegionDecoder newInstance(InputStream is) { in newInstance()
267 InputStream is = mContext.getContentResolver().openInputStream(mUri); in regenerateInputStream()
273 InputStream is = regenerateInputStream(); in loadBitmapRegionDecoder()
291 InputStream is = regenerateInputStream(); in loadPreviewBitmap()
302 InputStream is = null; in readExif()
331 private InputStream regenerateInputStream() { in regenerateInputStream()
332 InputStream is = mRes.openRawResource(mResId); in regenerateInputStream()
337 InputStream is = regenerateInputStream(); in loadBitmapRegionDecoder()
[all …]

12345678910>>...18