Home
last modified time | relevance | path

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

12345678910>>...19

/frameworks/base/services/tests/servicestests/src/com/android/server/backup/restore/
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()
/frameworks/base/tools/powermodel/test/com/android/powermodel/
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 …]
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()
/frameworks/base/core/tests/coretests/src/android/content/pm/
DLimitedLengthInputStreamTest.java25 import java.io.InputStream;
31 private InputStream mTestStream1;
43 InputStream is = new LimitedLengthInputStream(mTestStream1, -1, TEST_STRING1.length); in testConstructor_NegativeOffset_Failure()
53 InputStream is = new LimitedLengthInputStream(mTestStream1, 0, -1); in testConstructor_NegativeLength_Failure()
63 InputStream is = new LimitedLengthInputStream(null, 0, 1); in testConstructor_NullInputStream_Failure()
73 InputStream is = new LimitedLengthInputStream(mTestStream1, Long.MAX_VALUE - 1, in testConstructor_OffsetLengthOverflow_Fail()
89 InputStream is = new LimitedLengthInputStream(mTestStream1, offset, length); in checkReadBytesWithOffsetAndLength_WithString1()
124 InputStream is = new LimitedLengthInputStream(mTestStream1, 0, TEST_STRING1.length + 10); in testReadBytesWithOffsetAndLength_ZeroOffset_PastEnd_Success()
139 InputStream is = new LimitedLengthInputStream(mTestStream1, offset, length); in checkReadBytes_WithString1()
169 InputStream is = new LimitedLengthInputStream(mTestStream1, offset, length); in checkSingleByteRead_WithString1()
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/resources/
DIconLoader.java23 import java.io.InputStream;
46 public InputStream getIcon() { in getIcon()
49 InputStream stream = getIcon(resourceDir); in getIcon()
77 private InputStream getIcon(String resourceDir) { in getIcon()
79 InputStream stream = getIcon(resourceDir, mDesiredDensity); in getIcon()
103 private InputStream getIcon(String resourceDir, Density density) { in getIcon()
115 InputStream stream = getClass().getResourceAsStream(mCurrentPath.toString()); in getIcon()
/frameworks/base/services/tests/servicestests/src/com/android/server/backup/utils/
DTarBackupReaderTest.java70 import java.io.InputStream;
104 InputStream inputStream = mContext.getResources().openRawResource( in readTarHeaders_backupEncrypted_correctlyParsesFileMetadata()
106 InputStream tarInputStream = PerformAdbRestoreTask.parseBackupFileHeaderAndReturnTarStream( in readTarHeaders_backupEncrypted_correctlyParsesFileMetadata()
121 InputStream inputStream = mContext.getResources().openRawResource( in readTarHeaders_backupNotEncrypted_correctlyParsesFileMetadata()
123 InputStream tarInputStream = PerformAdbRestoreTask.parseBackupFileHeaderAndReturnTarStream( in readTarHeaders_backupNotEncrypted_correctlyParsesFileMetadata()
139 InputStream inputStream = mContext.getResources().openRawResource( in readTarHeaders_backupNotEncrypted_correctlyReadsPaxHeader()
141 InputStream tarInputStream = PerformAdbRestoreTask.parseBackupFileHeaderAndReturnTarStream( in readTarHeaders_backupNotEncrypted_correctlyReadsPaxHeader()
178 InputStream inputStream = mContext.getResources().openRawResource( in readAppManifest_backupEncrypted_correctlyParsesAppManifest()
180 InputStream tarInputStream = PerformAdbRestoreTask.parseBackupFileHeaderAndReturnTarStream( in readAppManifest_backupEncrypted_correctlyParsesAppManifest()
199 InputStream inputStream = mContext.getResources().openRawResource( in readAppManifest_backupNotEncrypted_correctlyParsesAppManifest()
[all …]
/frameworks/base/core/java/android/webkit/
DWebResourceResponse.java23 import java.io.InputStream;
41 private InputStream mInputStream;
63 InputStream data) { in WebResourceResponse()
90 @NonNull String reasonPhrase, Map<String, String> responseHeaders, InputStream data) { in WebResourceResponse()
211 public void setData(InputStream data) { in setData()
226 public InputStream getData() { in getData()
236 String reasonPhrase, Map<String, String> responseHeaders, InputStream data) { in WebResourceResponse()
DPluginData.java21 import java.io.InputStream;
42 private InputStream mStream;
76 InputStream stream, in PluginData()
97 public InputStream getInputStream() { in getInputStream()
/frameworks/opt/vcard/java/com/android/vcard/
DVCardParser.java21 import java.io.InputStream;
43 public abstract void parse(InputStream is) throws IOException, VCardException; in parse()
74 public abstract void parseOne(InputStream is) throws IOException, VCardException; in parseOne()
81 public void parse(InputStream is, VCardInterpreter interpreter) in parse()
/frameworks/base/tools/aapt2/io/
DUtil.h33 bool CopyInputStreamToArchive(IAaptContext* context, InputStream* in, const std::string& out_path,
48 bool Copy(OutputStream* out, InputStream* in);
50 bool Copy(::google::protobuf::io::ZeroCopyOutputStream* out, InputStream* in);
88 explicit ZeroCopyInputAdaptor(io::InputStream* in) : in_(in) { in ZeroCopyInputAdaptor()
123 io::InputStream* in_;
128 explicit ProtoInputStreamReader(io::InputStream* in) : in_(in) { } in ProtoInputStreamReader()
140 io::InputStream* in_;
/frameworks/base/services/backup/java/com/android/server/backup/restore/
DPerformAdbRestoreTask.java39 import java.io.InputStream;
96 InputStream tarInputStream = parseBackupFileHeaderAndReturnTarStream(rawInStream, in run()
136 private static void readFullyOrThrow(InputStream in, byte[] buffer) throws IOException { in readFullyOrThrow()
148 public static InputStream parseBackupFileHeaderAndReturnTarStream( in parseBackupFileHeaderAndReturnTarStream()
149 InputStream rawInputStream, in parseBackupFileHeaderAndReturnTarStream()
154 InputStream preCompressStream = rawInputStream; in parseBackupFileHeaderAndReturnTarStream()
203 private static String readHeaderLine(InputStream in) throws IOException { in readHeaderLine()
215 private static InputStream attemptMasterKeyDecryption(String decryptPassword, String algorithm, in attemptMasterKeyDecryption()
217 int rounds, String userIvHex, String masterKeyBlobHex, InputStream rawInStream, in attemptMasterKeyDecryption()
219 InputStream result = null; in attemptMasterKeyDecryption()
[all …]
/frameworks/base/core/java/com/android/internal/util/
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()
/frameworks/base/tools/powermodel/src/com/android/powermodel/
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()
/frameworks/layoutlib/bridge/tests/src/com/android/layoutlib/bridge/intensive/util/
DTestAssetRepository.java27 import java.io.InputStream;
39 private static InputStream open(String path) throws FileNotFoundException { in open()
54 public InputStream openAsset(String path, int mode) throws IOException { in openAsset()
59 public InputStream openNonAsset(int cookie, String path, int mode) throws IOException { in openNonAsset()
/frameworks/base/graphics/java/android/graphics/
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()
/frameworks/base/services/tests/servicestests/src/com/android/server/display/
DPersistentDataStoreTest.java38 import java.io.InputStream;
76 InputStream is = new ByteArrayInputStream(contents.getBytes(StandardCharsets.UTF_8)); in testLoadingBrightnessConfigurations()
109 InputStream is = new ByteArrayInputStream(contents.getBytes(StandardCharsets.UTF_8)); in testBrightnessConfigWithInvalidCurveIsIgnored()
128 InputStream is = new ByteArrayInputStream(contents.getBytes(StandardCharsets.UTF_8)); in testBrightnessConfigWithInvalidFloatsIsIgnored()
140 InputStream is = new ByteArrayInputStream(contents.getBytes(StandardCharsets.UTF_8)); in testEmptyBrightnessConfigurationsDoesntCrash()
190 private InputStream mReadStream;
196 public InputStream openRead() throws FileNotFoundException { in openRead()
222 public void setReadStream(InputStream is) { in setReadStream()
/frameworks/layoutlib/remote/common/src/com/android/layout/remote/util/
DRemoteInputStreamAdapter.java22 import java.io.InputStream;
28 private InputStream mDelegate;
30 private RemoteInputStreamAdapter(@NotNull InputStream delegate) { in RemoteInputStreamAdapter()
34 public static RemoteInputStream create(@NotNull InputStream is) throws RemoteException { in create()
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/util/
DNinePatchInputStream.java25 import java.io.InputStream;
33 public class NinePatchInputStream extends InputStream {
34 private final InputStream mDelegate;
41 public NinePatchInputStream(@NotNull InputStream stream) { in NinePatchInputStream()
/frameworks/base/services/tests/servicestests/src/com/android/server/integrity/parser/
DRuleIndexingControllerTest.java36 import java.io.InputStream;
47 InputStream inputStream = obtainDefaultIndexingMapForTest(); in verifyIndexRangeSearchIsCorrect()
69 InputStream inputStream = obtainDefaultIndexingMapForTest(); in verifyIndexRangeSearchIsCorrect_multipleAppCertificates()
92 InputStream inputStream = obtainDefaultIndexingMapForTest(); in verifyIndexRangeSearchIsCorrect_keysInFirstAndLastBlock()
114 InputStream inputStream = obtainDefaultIndexingMapForTest(); in verifyIndexRangeSearchIsCorrect_keysMatchWithValues()
146 InputStream inputStream = new ByteArrayInputStream(rule.array()); in verifyIndexRangeSearchIsCorrect_noIndexesAvailable()
166 private static InputStream obtainDefaultIndexingMapForTest() { in obtainDefaultIndexingMapForTest()
/frameworks/base/tests/ProtoInputStreamTests/src/com/android/test/protoinputstream/
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()
/frameworks/base/services/core/java/com/android/server/integrity/model/
DBitInputStream.java20 import java.io.InputStream;
31 private InputStream mInputStream;
35 public BitInputStream(InputStream inputStream) { in BitInputStream()
/frameworks/base/services/core/java/com/android/server/net/watchlist/
DDigestUtils.java22 import java.io.InputStream;
37 try (InputStream stream = new FileInputStream(apkFile)) { in getSha256Hash()
43 public static byte[] getSha256Hash(InputStream stream) in getSha256Hash()
/frameworks/base/mime/java/android/content/type/
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()
/frameworks/base/services/tests/servicestests/src/com/android/server/input/
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()
/frameworks/base/media/java/android/media/
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()

12345678910>>...19