Home
last modified time | relevance | path

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

12345678910>>...17

/frameworks/base/services/tests/servicestests/src/com/android/server/backup/restore/
DPerformAdbRestoreTaskTest.java34 import java.io.InputStream;
52 InputStream inputStream = mContext.getResources().openRawResource( in parseBackupFileAndReturnTarStream_backupNotEncrypted_returnsNonNull()
54 InputStream tarInputStream = PerformAdbRestoreTask.parseBackupFileHeaderAndReturnTarStream( in parseBackupFileAndReturnTarStream_backupNotEncrypted_returnsNonNull()
64 InputStream inputStream = mContext.getResources().openRawResource( in parseBackupFileAndReturnTarStream_backupEncryptedAndPasswordProvided_returnsNonNull()
66 InputStream tarInputStream = PerformAdbRestoreTask.parseBackupFileHeaderAndReturnTarStream( in parseBackupFileAndReturnTarStream_backupEncryptedAndPasswordProvided_returnsNonNull()
76 InputStream inputStream = mContext.getResources().openRawResource( in parseBackupFileAndReturnTarStream_backupEncryptedAndPasswordNotProvided_returnsNull()
78 InputStream tarInputStream = PerformAdbRestoreTask.parseBackupFileHeaderAndReturnTarStream( in parseBackupFileAndReturnTarStream_backupEncryptedAndPasswordNotProvided_returnsNull()
88 InputStream inputStream = mContext.getResources().openRawResource( in parseBackupFileAndReturnTarStream_backupEncryptedAndIncorrectPassword_returnsNull()
90 InputStream tarInputStream = PerformAdbRestoreTask.parseBackupFileHeaderAndReturnTarStream( in parseBackupFileAndReturnTarStream_backupEncryptedAndIncorrectPassword_returnsNull()
/frameworks/base/core/tests/coretests/src/android/content/pm/
DLimitedLengthInputStreamTest.java24 import java.io.InputStream;
30 private InputStream mTestStream1;
42 InputStream is = new LimitedLengthInputStream(mTestStream1, -1, TEST_STRING1.length); in testConstructor_NegativeOffset_Failure()
52 InputStream is = new LimitedLengthInputStream(mTestStream1, 0, -1); in testConstructor_NegativeLength_Failure()
62 InputStream is = new LimitedLengthInputStream(null, 0, 1); in testConstructor_NullInputStream_Failure()
72 InputStream is = new LimitedLengthInputStream(mTestStream1, Long.MAX_VALUE - 1, in testConstructor_OffsetLengthOverflow_Fail()
88 InputStream is = new LimitedLengthInputStream(mTestStream1, offset, length); in checkReadBytesWithOffsetAndLength_WithString1()
123 InputStream is = new LimitedLengthInputStream(mTestStream1, 0, TEST_STRING1.length + 10); in testReadBytesWithOffsetAndLength_ZeroOffset_PastEnd_Success()
138 InputStream is = new LimitedLengthInputStream(mTestStream1, offset, length); in checkReadBytes_WithString1()
168 InputStream is = new LimitedLengthInputStream(mTestStream1, offset, length); in checkSingleByteRead_WithString1()
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/
DIconLoader.java22 import java.io.InputStream;
44 public InputStream getIcon() { in getIcon()
47 InputStream stream = getIcon(resourceDir); in getIcon()
75 private InputStream getIcon(String resourceDir) { in getIcon()
77 InputStream stream = getIcon(resourceDir, mDesiredDensity); in getIcon()
101 private InputStream getIcon(String resourceDir, Density density) { in getIcon()
113 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;
102 InputStream inputStream = mContext.getResources().openRawResource( in readTarHeaders_backupEncrypted_correctlyParsesFileMetadata()
104 InputStream tarInputStream = PerformAdbRestoreTask.parseBackupFileHeaderAndReturnTarStream( in readTarHeaders_backupEncrypted_correctlyParsesFileMetadata()
119 InputStream inputStream = mContext.getResources().openRawResource( in readTarHeaders_backupNotEncrypted_correctlyParsesFileMetadata()
121 InputStream tarInputStream = PerformAdbRestoreTask.parseBackupFileHeaderAndReturnTarStream( in readTarHeaders_backupNotEncrypted_correctlyParsesFileMetadata()
137 InputStream inputStream = mContext.getResources().openRawResource( in readTarHeaders_backupNotEncrypted_correctlyReadsPaxHeader()
139 InputStream tarInputStream = PerformAdbRestoreTask.parseBackupFileHeaderAndReturnTarStream( in readTarHeaders_backupNotEncrypted_correctlyReadsPaxHeader()
176 InputStream inputStream = mContext.getResources().openRawResource( in readAppManifest_backupEncrypted_correctlyParsesAppManifest()
178 InputStream tarInputStream = PerformAdbRestoreTask.parseBackupFileHeaderAndReturnTarStream( in readAppManifest_backupEncrypted_correctlyParsesAppManifest()
197 InputStream inputStream = mContext.getResources().openRawResource( in readAppManifest_backupNotEncrypted_correctlyParsesAppManifest()
[all …]
/frameworks/base/core/java/android/webkit/
DWebResourceResponse.java22 import java.io.InputStream;
38 private InputStream mInputStream;
52 InputStream data) { in WebResourceResponse()
75 @NonNull String reasonPhrase, Map<String, String> responseHeaders, InputStream data) { in WebResourceResponse()
195 public void setData(InputStream data) { in setData()
210 public InputStream getData() { in getData()
220 String reasonPhrase, Map<String, String> responseHeaders, InputStream data) { in WebResourceResponse()
DPluginData.java19 import java.io.InputStream;
40 private InputStream mStream;
73 InputStream stream, in PluginData()
93 public InputStream getInputStream() { in getInputStream()
DCacheManager.java23 import java.io.InputStream;
67 InputStream inStream;
185 public InputStream getInputStream() { in getInputStream()
207 public void setInputStream(InputStream stream) { in setInputStream()
/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()
DVCardParser_V30.java21 import java.io.InputStream;
86 public void parse(InputStream is) throws IOException, VCardException { in parse()
91 public void parseOne(InputStream is) throws IOException, VCardException { in parseOne()
DVCardParser_V40.java21 import java.io.InputStream;
74 public void parse(InputStream is) throws IOException, VCardException { in parse()
79 public void parseOne(InputStream is) throws IOException, VCardException { in parseOne()
/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/graphics/java/android/graphics/
DMovie.java22 import java.io.InputStream;
55 public static Movie decodeStream(InputStream is) { in decodeStream()
68 private static native Movie nativeDecodeStream(InputStream is); in nativeDecodeStream()
75 InputStream is; in decodeFile()
95 private static Movie decodeTempStream(InputStream is) { in decodeTempStream()
DBitmapFactory.java33 import java.io.InputStream;
482 InputStream stream = null; in decodeFile()
525 @Nullable InputStream is, @Nullable Rect pad, @Nullable Options opts) { in decodeResourceStream()
567 InputStream is = null; in decodeResource()
714 public static Bitmap decodeStream(@Nullable InputStream is, @Nullable Rect outPadding, in decodeStream()
750 private static Bitmap decodeStreamInternal(@NonNull InputStream is, in decodeStreamInternal()
769 public static Bitmap decodeStream(InputStream is) { in decodeStream()
834 private static native Bitmap nativeDecodeStream(InputStream is, byte[] storage, in nativeDecodeStream()
/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/services/tests/servicestests/src/com/android/server/display/
DPersistentDataStoreTest.java38 import java.io.InputStream;
78 InputStream is = new ByteArrayInputStream(contents.getBytes(StandardCharsets.UTF_8)); in testLoadingBrightnessConfigurations()
111 InputStream is = new ByteArrayInputStream(contents.getBytes(StandardCharsets.UTF_8)); in testBrightnessConfigWithInvalidCurveIsIgnored()
130 InputStream is = new ByteArrayInputStream(contents.getBytes(StandardCharsets.UTF_8)); in testBrightnessConfigWithInvalidFloatsIsIgnored()
142 InputStream is = new ByteArrayInputStream(contents.getBytes(StandardCharsets.UTF_8)); in testEmptyBrightnessConfigurationsDoesntCrash()
192 private InputStream mReadStream;
198 public InputStream openRead() throws FileNotFoundException { in openRead()
224 public void setReadStream(InputStream is) { in setReadStream()
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/
DParserFactory.java32 import java.io.InputStream;
59 InputStream stream = new FileInputStream(f); in create()
63 public static XmlPullParser create(@NonNull InputStream stream, @Nullable String name) in create()
69 private static XmlPullParser create(@NonNull InputStream stream, @Nullable String name, in create()
98 private static InputStream readAndClose(@NonNull InputStream stream, @Nullable String name, in readAndClose()
/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/base/tools/aapt2/io/
DUtil.h32 bool CopyInputStreamToArchive(IAaptContext* context, InputStream* in, const std::string& 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_;
DIo.h27 class InputStream {
29 virtual ~InputStream() = default;
62 class KnownSizeInputStream : public InputStream {
/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/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()
/frameworks/base/core/tests/coretests/src/android/content/
DMemoryFileProviderTest.java25 import java.io.InputStream;
40 InputStream in = resolver.openInputStream(uri); in testRead()
57 InputStream in = resolver.openInputStream(uri); in testClose()
73 InputStream in = resolver.openInputStream(uri); in testFile()
/frameworks/layoutlib/bridge/src/android/content/res/
DAssetManager_Delegate.java24 import java.io.InputStream;
36 public static InputStream open(AssetManager mgr, String fileName) throws IOException { in open()
41 public static InputStream open(AssetManager mgr, String fileName, int accessMode) in open()
/frameworks/base/obex/javax/obex/
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()
/frameworks/layoutlib/remote/server/src/com/android/layoutlib/bridge/remote/server/adapters/
DRemoteAssetRepositoryAdapter.java25 import java.io.InputStream;
41 public InputStream openAsset(String path, int mode) throws IOException, RemoteException { in openAsset()
46 public InputStream openNonAsset(int cookie, String path, int mode) in openNonAsset()

12345678910>>...17