Home
last modified time | relevance | path

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

12345678910>>...15

/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/services/tests/servicestests/src/com/android/server/backup/utils/
DTarBackupReaderTest.java64 import java.io.InputStream;
95 InputStream inputStream = mContext.getResources().openRawResource( in readTarHeaders_backupEncrypted_correctlyParsesFileMetadata()
97 InputStream tarInputStream = PerformAdbRestoreTask.parseBackupFileHeaderAndReturnTarStream( in readTarHeaders_backupEncrypted_correctlyParsesFileMetadata()
112 InputStream inputStream = mContext.getResources().openRawResource( in readTarHeaders_backupNotEncrypted_correctlyParsesFileMetadata()
114 InputStream tarInputStream = PerformAdbRestoreTask.parseBackupFileHeaderAndReturnTarStream( in readTarHeaders_backupNotEncrypted_correctlyParsesFileMetadata()
130 InputStream inputStream = mContext.getResources().openRawResource( in readTarHeaders_backupNotEncrypted_correctlyReadsPaxHeader()
132 InputStream tarInputStream = PerformAdbRestoreTask.parseBackupFileHeaderAndReturnTarStream( in readTarHeaders_backupNotEncrypted_correctlyReadsPaxHeader()
168 InputStream inputStream = mContext.getResources().openRawResource( in readAppManifest_backupEncrypted_correctlyParsesAppManifest()
170 InputStream tarInputStream = PerformAdbRestoreTask.parseBackupFileHeaderAndReturnTarStream( in readAppManifest_backupEncrypted_correctlyParsesAppManifest()
189 InputStream inputStream = mContext.getResources().openRawResource( in readAppManifest_backupNotEncrypted_correctlyParsesAppManifest()
[all …]
/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/core/java/android/webkit/
DWebResourceResponse.java19 import java.io.InputStream;
37 private InputStream mInputStream;
51 InputStream data) { in WebResourceResponse()
74 String reasonPhrase, Map<String, String> responseHeaders, InputStream data) { in WebResourceResponse()
194 public void setData(InputStream data) { in setData()
209 public InputStream getData() { in getData()
219 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.java21 import java.io.InputStream;
66 InputStream inStream;
184 public InputStream getInputStream() { in getInputStream()
206 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()
DProcFileReader.java21 import java.io.InputStream;
35 private final InputStream mStream;
43 public ProcFileReader(InputStream stream) throws IOException { in ProcFileReader()
47 public ProcFileReader(InputStream stream, int bufferSize) throws IOException { in ProcFileReader()
/frameworks/base/graphics/java/android/graphics/
DMovie.java20 import java.io.InputStream;
51 public static Movie decodeStream(InputStream is) { in decodeStream()
64 private static native Movie nativeDecodeStream(InputStream is); in nativeDecodeStream()
71 InputStream is; in decodeFile()
91 private static Movie decodeTempStream(InputStream is) { in decodeTempStream()
DBitmapFactory.java31 import java.io.InputStream;
477 InputStream stream = null; in decodeFile()
519 InputStream is, Rect pad, Options opts) { in decodeResourceStream()
561 InputStream is = null; in decodeResource()
707 public static Bitmap decodeStream(InputStream is, Rect outPadding, Options opts) { in decodeStream()
742 private static Bitmap decodeStreamInternal(InputStream is, Rect outPadding, Options opts) { in decodeStreamInternal()
760 public static Bitmap decodeStream(InputStream is) { in decodeStream()
825 private static native Bitmap nativeDecodeStream(InputStream is, byte[] storage, in nativeDecodeStream()
DBitmapRegionDecoder.java23 import java.io.InputStream;
113 public static BitmapRegionDecoder newInstance(InputStream is, in newInstance()
146 InputStream stream = null; in newInstance()
275 InputStream is, byte[] storage, boolean isShareable); in nativeNewInstance()
/frameworks/layoutlib/bridge/tests/src/com/android/layoutlib/bridge/intensive/util/
DTestAssetRepository.java25 import java.io.InputStream;
31 private static InputStream open(String path) throws FileNotFoundException { in open()
46 public InputStream openAsset(String path, int mode) throws IOException { in openAsset()
51 public InputStream openNonAsset(int cookie, String path, int mode) throws IOException { in openNonAsset()
/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/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()
DAssetTest.java24 import java.io.InputStream;
35 public static void verifyTextAsset(InputStream is) throws IOException { in verifyTextAsset()
64 InputStream is = mAssets.open("text.txt"); in testReadToEnd()
/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/base/packages/WallpaperCropper/src/com/android/photos/
DBitmapRegionTileSource.java44 import java.io.InputStream;
71 InputStream is, boolean isShareable) { in newInstance()
108 public static DumbBitmapRegionDecoder newInstance(InputStream is) { in newInstance()
266 private InputStream regenerateInputStream() throws FileNotFoundException { in regenerateInputStream()
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()
[all …]
/frameworks/opt/bluetooth/src/android/bluetooth/client/map/
DBluetoothMapFolderListing.java25 import java.io.InputStream;
34 public BluetoothMapFolderListing(InputStream in) { in BluetoothMapFolderListing()
40 public void parse(InputStream in) { in parse()
DBluetoothMapMessagesListing.java26 import java.io.InputStream;
36 public BluetoothMapMessagesListing(InputStream in) { in BluetoothMapMessagesListing()
42 public void parse(InputStream in) { in parse()
/frameworks/layoutlib/create/tests/com/android/tools/layoutlib/create/
DAsmAnalyzerTest.java27 import java.io.InputStream;
68 Map<String, InputStream> filesFound = new TreeMap<>(); in testParseZip()
100 Map<String, InputStream> filesFound = new TreeMap<>(); in testFindClass()
119 Map<String, InputStream> filesFound = new TreeMap<>(); in testFindGlobs()
182 Map<String, InputStream> filesFound = new TreeMap<>(); in testFindClassesDerivingFrom()
208 Map<String, InputStream> filesFound = new TreeMap<>(); in testDependencyVisitor()

12345678910>>...15