Home
last modified time | relevance | path

Searched defs:inputStream (Results 1 – 25 of 251) sorted by relevance

1234567891011

/aosp12/frameworks/base/services/tests/servicestests/src/com/android/server/integrity/parser/
H A DBinaryFileOperationsTest.java56 BitInputStream inputStream = new BitInputStream(new ByteArrayInputStream(stringBytes)); in testGetStringValue() local
70 BitInputStream inputStream = new BitInputStream(new ByteArrayInputStream(ruleBytes)); in testGetHashedStringValue() local
82 BitInputStream inputStream = new BitInputStream(new ByteArrayInputStream(ruleBytes)); in testGetStringValue_withSizeAndHashingInfo() local
94 BitInputStream inputStream = new BitInputStream(new ByteArrayInputStream(ruleBytes)); in testGetIntValue() local
103 BitInputStream inputStream = new BitInputStream(new ByteArrayInputStream(ruleBytes)); in testGetBooleanValue_true() local
112 BitInputStream inputStream = new BitInputStream(new ByteArrayInputStream(ruleBytes)); in testGetBooleanValue_false() local
H A DRuleIndexingControllerTest.java49 InputStream inputStream = obtainDefaultIndexingMapForTest(); in verifyIndexRangeSearchIsCorrect() local
71 InputStream inputStream = obtainDefaultIndexingMapForTest(); in verifyIndexRangeSearchIsCorrect_multipleAppCertificates() local
94 InputStream inputStream = obtainDefaultIndexingMapForTest(); in verifyIndexRangeSearchIsCorrect_keysInFirstAndLastBlock() local
116 InputStream inputStream = obtainDefaultIndexingMapForTest(); in verifyIndexRangeSearchIsCorrect_keysMatchWithValues() local
148 InputStream inputStream = new ByteArrayInputStream(rule.array()); in verifyIndexRangeSearchIsCorrect_noIndexesAvailable() local
178 InputStream inputStream = new ByteArrayInputStream(rule.array()); in verifyIndexingFileIsCorrupt() local
/aosp12/frameworks/base/services/tests/servicestests/src/com/android/server/backup/utils/
H A DTarBackupReaderTest.java104 InputStream inputStream = mContext.getResources().openRawResource( in readTarHeaders_backupEncrypted_correctlyParsesFileMetadata() local
121 InputStream inputStream = mContext.getResources().openRawResource( in readTarHeaders_backupNotEncrypted_correctlyParsesFileMetadata() local
139 InputStream inputStream = mContext.getResources().openRawResource( in readTarHeaders_backupNotEncrypted_correctlyReadsPaxHeader() local
178 InputStream inputStream = mContext.getResources().openRawResource( in readAppManifest_backupEncrypted_correctlyParsesAppManifest() local
199 InputStream inputStream = mContext.getResources().openRawResource( in readAppManifest_backupNotEncrypted_correctlyParsesAppManifest() local
220 InputStream inputStream = mContext.getResources().openRawResource( in chooseRestorePolicy_signaturesIsNull_returnsIgnore() local
238 InputStream inputStream = mContext.getResources().openRawResource( in chooseRestorePolicy_packageDoesNotExistAndAllowApksAndHasApk_returnsAcceptIfApk() local
263 InputStream inputStream = mContext.getResources().openRawResource( in chooseRestorePolicy_packageDoesNotExistAndAllowApksAndDoesNotHaveApk_returnsAcceptIfApkLogsCannotRestore() local
291 InputStream inputStream = mContext.getResources().openRawResource( in chooseRestorePolicy_packageDoesNotExistAndDoesNotAllowApks_returnsIgnore() local
312 InputStream inputStream = mContext.getResources().openRawResource( in chooseRestorePolicy_doesNotAllowsBackup_returnsIgnore() local
[all …]
/aosp12/frameworks/base/services/tests/servicestests/src/com/android/server/backup/restore/
H A DPerformAdbRestoreTaskTest.java53 InputStream inputStream = mContext.getResources().openRawResource( in parseBackupFileAndReturnTarStream_backupNotEncrypted_returnsNonNull() local
65 InputStream inputStream = mContext.getResources().openRawResource( in parseBackupFileAndReturnTarStream_backupEncryptedAndPasswordProvided_returnsNonNull() local
77 InputStream inputStream = mContext.getResources().openRawResource( in parseBackupFileAndReturnTarStream_backupEncryptedAndPasswordNotProvided_returnsNull() local
89 InputStream inputStream = mContext.getResources().openRawResource( in parseBackupFileAndReturnTarStream_backupEncryptedAndIncorrectPassword_returnsNull() local
/aosp12/frameworks/libs/service_entitlement/tests/src/com/android/libraries/entitlement/utils/
H A DStreamUtilsTest.java42 InputStream inputStream = new ByteArrayInputStream(expectedString.getBytes(UTF_8)); in inputStreamToString() local
56 InputStream inputStream = mock(InputStream.class); in inputStreamToString_readThrowsIOException_shouldThrowException() local
65 InputStream inputStream = new ByteArrayInputStream(expectedString.getBytes(UTF_8)); in inputStreamToStringSafe() local
81 InputStream inputStream = mock(InputStream.class); in inputStreamToStringSafe_readThrowsIOException_shouldReturnEmpty() local
/aosp12/packages/apps/UniversalMediaPlayer/java/com/android/pump/util/
H A DIoUtils.java40 InputStream inputStream = new FileInputStream(file); in readFromFile() local
50 InputStream inputStream = assetFileDescriptor.createInputStream(); in readFromAssetFileDescriptor() local
58 public static @NonNull byte[] readFromStream(@NonNull InputStream inputStream) in readFromStream()
/aosp12/frameworks/opt/vcard/tests/src/com/android/vcard/tests/
H A DVCardParserTests.java94 InputStream inputStream = getContext().getResources().openRawResource(R.raw.v21_simple_1); in testSimple() local
112 InputStream inputStream = getContext().getResources().openRawResource(R.raw.v21_nest); in testNest() local
146 …InputStream inputStream = getContext().getResources().openRawResource(R.raw.v30_ios_613_multiline); in testIosMultiline() local
177 InputStream inputStream = in testParseOne() local
/aosp12/frameworks/base/packages/BackupEncryption/test/robolectric/src/com/android/server/backup/encryption/chunking/cdc/
H A DContentDefinedChunkerTest.java123 ByteArrayInputStream inputStream = new ByteArrayInputStream(input); in chunkify_withLargeChunks_splitsIntoChunksAcrossBoundaries() local
138 ByteArrayInputStream inputStream = new ByteArrayInputStream(input); in chunkify_withSmallChunks_combinesChunksUntilMinSize() local
154 ByteArrayInputStream inputStream = new ByteArrayInputStream(largeInput); in chunkify_doesNotProduceChunksLargerThanMaxSize() local
200 ByteArrayInputStream inputStream = new ByteArrayInputStream(new byte[] {1}); in chunkify_whenConsumerThrowsException_rethrowsException() local
/aosp12/frameworks/libs/service_entitlement/java/com/android/libraries/entitlement/utils/
H A DStreamUtils.java35 public static String inputStreamToString(@Nullable InputStream inputStream) throws IOException { in inputStreamToString()
51 public static String inputStreamToStringSafe(@Nullable InputStream inputStream) { in inputStreamToStringSafe()
/aosp12/packages/apps/Dialer/java/com/android/dialer/shortcuts/
H A DIconFactory.java87 InputStream inputStream = in create() local
98 @NonNull String displayName, @NonNull String lookupKey, @Nullable InputStream inputStream) { in createAdaptiveIcon()
122 @NonNull String displayName, @NonNull String lookupKey, @Nullable InputStream inputStream) { in createFlatIcon()
/aosp12/packages/apps/Bluetooth/src/com/android/bluetooth/avrcpcontroller/bip/
H A DBipImage.java34 public BipImage(String imageHandle, InputStream inputStream) { in BipImage()
44 private void parse(InputStream inputStream) { in parse()
/aosp12/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/testutils/
H A DCertUtils.java45 InputStream inputStream = in createCertFromPemFile() local
55 InputStream inputStream = in createRsaPrivateKeyFromKeyFile() local
/aosp12/packages/apps/Messaging/src/com/android/messaging/util/
H A DUriUtil.java199 public static Uri persistContentToScratchSpace(final InputStream inputStream) { in persistContentToScratchSpace()
212 InputStream inputStream = null; in persistContentToScratchSpace() local
245 final InputStream inputStream, final File outputDir, final String contentType) { in persistContent()
269 InputStream inputStream = null; in persistContent() local
298 final Context context, final InputStream inputStream, final Uri targetUri) { in copyContent()
/aosp12/packages/apps/WallpaperPicker2/src/com/android/wallpaper/asset/
H A DStreamableAsset.java111 protected void onPostExecute(InputStream inputStream) { in fetchInputStream()
166 InputStream inputStream = openInputStream(); in calculateRawDimensions() local
192 InputStream inputStream = null; in openBitmapRegionDecoder() local
215 private void closeInputStream(InputStream inputStream, String errorMessage) { in closeInputStream()
234 void onInputStreamOpened(@Nullable InputStream inputStream); in onInputStreamOpened()
275 InputStream inputStream = openInputStream(); in doInBackground() local
/aosp12/system/timezone/distro/core/src/test/com/android/timezone/distro/
H A DTimeZoneDistroTest.java76 TestInputStream inputStream = new TestInputStream(new ByteArrayInputStream(bytes)); in testGetDistroVersion_closesStream() local
92 TestInputStream inputStream = new TestInputStream(new ByteArrayInputStream(bytes)); in testExtractTo_closesStream() local
111 TestInputStream inputStream = in testExtractZipSafely_goodZip() local
144 TestInputStream inputStream = new TestInputStream( in doExtractZipFails() local
/aosp12/packages/apps/RemoteProvisioner/src/com/android/remoteprovisioner/
H A DServerInterface.java80 BufferedInputStream inputStream = new BufferedInputStream(con.getInputStream()); in requestSignedCertificates() local
132 BufferedInputStream inputStream = new BufferedInputStream(con.getInputStream()); in fetchGeek() local
/aosp12/frameworks/base/tests/JankBench/app/src/main/java/com/android/benchmark/ui/automation/
H A DFrameTimingStats.java68 public FrameTimingStats(DataInputStream inputStream) throws IOException { in FrameTimingStats()
73 public void update(DataInputStream inputStream) throws IOException { in update()
/aosp12/frameworks/av/media/libstagefright/tests/writer/
H A DWriterUtility.cpp25 int32_t sendBuffersToWriter(ifstream &inputStream, vector<BufferInfo> &bufferInfo, in sendBuffersToWriter()
83 int32_t writeHeaderBuffers(ifstream &inputStream, vector<BufferInfo> &bufferInfo, in writeHeaderBuffers()
/aosp12/frameworks/base/packages/BackupEncryption/test/robolectric/src/com/android/server/backup/encryption/testing/
H A DDiffScriptProcessor.java136 private static Optional<String> readCommand(InputStream inputStream) throws IOException { in readCommand()
169 private static long copyBytes(InputStream inputStream, OutputStream outputStream, long n) in copyBytes()
186 InputStream inputStream, OutputStream outputStream, byte[] buffer, int size) in copyBlock()
/aosp12/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/hotspot2/
H A DPasspointXmlUtilsTest.java214 final ByteArrayInputStream inputStream = in serializeAndDeserializePasspointConfiguration() local
256 final ByteArrayInputStream inputStream = in deserializePasspointConfigurationWithUnknownTag() local
/aosp12/frameworks/base/packages/BackupEncryption/src/com/android/server/backup/encryption/tasks/
H A DEncryptedFullBackupTask.java86 InputStream inputStream) in newInstance()
120 InputStream inputStream, in EncryptedFullBackupTask()
/aosp12/packages/apps/DocumentsUI/tests/functional/com/android/documentsui/archives/
H A DArchiveHandleTest.java343 InputStream inputStream = archiveHandle.getInputStream( in closeInputStream_zipFile_shouldBeSuccess() local
378 InputStream inputStream = archiveHandle.getInputStream( in getInputStream_zipFile_shouldHaveTheSameContent() local
464 InputStream inputStream = archiveHandle.getInputStream( in getInputStream_sevenZFile_shouldHaveTheSameContent() local
483 InputStream inputStream = archiveHandle.getInputStream( in getInputStream_tarGzFile_shouldHaveTheSameContent() local
543 InputStream inputStream = archiveHandle.getInputStream( in getInputStream_tarBrotliFile_shouldHaveTheSameContent() local
H A DArchiveFileTestRule.java122 try (InputStream inputStream = InstrumentationRegistry.getInstrumentation() in dumpAssetFile()
164 public static String getStringFromInputStream(InputStream inputStream) throws IOException { in getStringFromInputStream()
/aosp12/frameworks/av/media/codecs/mp3dec/src/
H A Dpvmp3_decode_header.cpp115 ERROR_CODE pvmp3_decode_header(tmp3Bits *inputStream, in pvmp3_decode_header()
H A Dpvmp3_getbits.h107 static inline bool bitsAvailable(tmp3Bits *inputStream, uint32 neededBits) in bitsAvailable()

1234567891011