Home
last modified time | relevance | path

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

12345678910

/packages/modules/Connectivity/networksecurity/tests/unit/src/com/android/server/net/ct/
DCompatibilityVersionTest.java99 try (InputStream inputStream = asStream(logList)) { in testCompatibilityVersion_installSuccessful_keepsStatusDetails()
121 try (InputStream inputStream = asStream(logList)) { in testCompatibilityVersion_installSuccessful()
150 try (InputStream inputStream = asStream(makeLogList(/* version= */ "123"))) { in testCompatibilityVersion_deleteSuccessfully()
162 try (InputStream inputStream = new ByteArrayInputStream(("not_a_valid_list".getBytes()))) { in testCompatibilityVersion_invalidLogList()
183 try (InputStream inputStream = asStream(newLogList)) { in testCompatibilityVersion_incompleteVersionExists_replacesOldVersion()
195 try (InputStream inputStream = asStream(existingLogList)) { in testCompatibilityVersion_versionAlreadyExists_installFails()
200 try (InputStream inputStream = asStream(makeLogList(existingVersion, "i_am_ignored"))) { in testCompatibilityVersion_versionAlreadyExists_installFails()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/audio/
DCarAudioFadeConfigurationHelperUnitTest.java50 try (InputStream inputStream = mContext.getResources().openRawResource( in constructor()
69 try (InputStream inputStream = mContext.getResources().openRawResource( in constructor_withoutConfigs_fails()
82 try (InputStream inputStream = mContext.getResources().openRawResource( in constructor_configWithNoName_fails()
95 try (InputStream inputStream = mContext.getResources().openRawResource( in constructor_configWithEmptyName_fails()
/packages/modules/AdServices/adservices/tests/unittest/service-core/measurement/src/com/android/adservices/service/measurement/aggregation/
DAggregateEncryptionKeyFetcherTest.java164 InputStream inputStream = new ByteArrayInputStream( in testInvalidResponseBodyJson() local
182 InputStream inputStream = new ByteArrayInputStream( in testMissingCacheControlHeader() local
199 InputStream inputStream = new ByteArrayInputStream( in testMissingAgeHeader() local
235 InputStream inputStream = new ByteArrayInputStream( in testBrokenAgeHeader() local
272 InputStream inputStream = new ByteArrayInputStream( in testCachedAgeGreaterThanMaxAge() local
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/topics/classifier/
DModelManager.java299 FileInputStream inputStream = in retrieveModel() local
346 InputStream inputStream = null; // InputStream.nullInputStream() is not available on S-. in retrieveLabels() local
366 @NonNull ImmutableList.Builder<Integer> labels, @NonNull InputStream inputStream) { in getLabelsList()
404 InputStream inputStream = null; in retrieveAppClassificationTopics() local
428 @NonNull InputStream inputStream) { in getAppsTopicMap()
503 InputStream inputStream = null; in retrieveClassifierAssetsMetadata() local
528 @NonNull InputStream inputStream) { in getAssetsMetadataMap()
631 InputStream inputStream = null; // InputStream.nullInputStream() is not available on S-. in retrieveClassifierInputConfig() local
648 private ClassifierInputConfig getClassifierInputConfig(@NonNull InputStream inputStream) { in getClassifierInputConfig()
711 InputStream inputStream = null; in readDownloadedFile() local
/packages/modules/Wifi/service/java/com/android/server/wifi/entitlement/http/
DStreamUtils.java36 public static String inputStreamToString(@Nullable InputStream inputStream) throws IOException { in inputStreamToString()
52 public static String inputStreamToStringSafe(@Nullable InputStream inputStream) { in inputStreamToStringSafe()
61 public static String inputStreamToGunzipString(InputStream inputStream) throws IOException { in inputStreamToGunzipString()
/packages/modules/Permission/SafetyCenter/Config/tests/java/com/android/safetycenter/config/
DParserConfigOverlayTest.kt40 val inputStream = context.resources.openRawResource(R.raw.config_valid_not_overlayable) in <lambda>() constant
74 val inputStream = context.resources.openRawResource(R.raw.config_valid_overlayable) in <lambda>() constant
105 val inputStream = in <lambda>() constant
DParserConfigValidTest.kt38 val inputStream = context.resources.openRawResource(R.raw.config_valid) in validConfig_matchesExpected() constant
DParserConfigInvalidTest.kt48 val inputStream = context.resources.openRawResource(params.configResourceId) in toString() constant
/packages/apps/UniversalMediaPlayer/java/com/android/pump/util/
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()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/asset/
DStreamableAsset.java108 InputStream inputStream = openInputStream(); in decodeBitmap() local
135 InputStream inputStream = openInputStream(); in decodeBitmap() local
291 InputStream inputStream = openInputStream(); in calculateRawDimensions() local
317 InputStream inputStream = null; in openBitmapRegionDecoder() local
340 private void closeInputStream(InputStream inputStream, String errorMessage) { in closeInputStream()
363 void onInputStreamOpened(@Nullable InputStream inputStream); in onInputStreamOpened()
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/map/
DBluetoothMapSmsPduTest.java127 InputStream inputStream = new ByteArrayInputStream(encodedMessageSms); in getSubmitPdus_withTypeGSM_whenMsgCountIsMoreThanOne() local
152 InputStream inputStream = new ByteArrayInputStream(encodedMessageSms); in getSubmitPdus_withTypeCDMA() local
177 InputStream inputStream = new ByteArrayInputStream(encodedMessageSms); in getDeliverPdus_withTypeGSM() local
204 InputStream inputStream = new ByteArrayInputStream(encodedMessageSms); in getDeliverPdus_withTypeCDMA() local
DBluetoothMapbMessageEmailTest.java54 InputStream inputStream = new ByteArrayInputStream(encodedMessageEmail); in encodeToByteArray_thenCreateByParsing() local
71 InputStream inputStream = new ByteArrayInputStream(encodedMessageEmail); in encodeToByteArray_withEmptyBody_thenCreateByParsing() local
DBluetoothMapbMessageSmsTest.java90 InputStream inputStream = new ByteArrayInputStream(encodedMessageSms); in encodeToByteArray_thenAddByParsing() local
107 InputStream inputStream = new ByteArrayInputStream(encodedMessageSms); in encodeToByteArray_withEmptyMessage_thenAddByParsing() local
/packages/apps/Dialer/java/com/android/dialer/shortcuts/
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()
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/avrcpcontroller/bip/
DBipImage.java34 public BipImage(String imageHandle, InputStream inputStream) { in BipImage()
44 private void parse(InputStream inputStream) { in parse()
/packages/modules/OnDevicePersonalization/common/java/com/android/odp/module/common/
DFileUtils.java71 public static long writeToFile(String fileName, InputStream inputStream) throws IOException { in writeToFile()
91 try (BufferedInputStream inputStream = new BufferedInputStream(new FileInputStream(file))) { in readFileAsByteArray()
105 InputStream inputStream = new ParcelFileDescriptor.AutoCloseInputStream(fd); in readFileDescriptorAsByteArray() local
/packages/apps/Messaging/src/com/android/messaging/util/
DUriUtil.java200 public static Uri persistContentToScratchSpace(final InputStream inputStream) { in persistContentToScratchSpace()
213 InputStream inputStream = null; in persistContentToScratchSpace() local
264 final InputStream inputStream, final File outputDir, final String contentType) { in persistContent()
288 InputStream inputStream = null; in persistContent() local
318 final Context context, final InputStream inputStream, final Uri targetUri) { in copyContent()
DImageUtils.java268 public static int getOrientation(final InputStream inputStream) { in getOrientation()
305 InputStream inputStream = contentResolver.openInputStream(contentUri); in isGif() local
319 public static boolean isGif(InputStream inputStream) { in isGif()
569 InputStream inputStream = null; in ensureImageSizeSet() local
685 try (final InputStream inputStream = cr.openInputStream(mUri)) { in recodeImage()
891 final InputStream inputStream = cr.openInputStream(imageUri); in decodeImageBounds() local
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/testutils/
DCertUtils.java45 InputStream inputStream = in createCertFromPemFile() local
55 InputStream inputStream = in createRsaPrivateKeyFromKeyFile() local
/packages/modules/AdServices/adservices/tests/unittest/service-core/topics/src/com/android/adservices/service/topics/classifier/
DModelManagerTest.java301 InputStream inputStream = SdkLevel.isAtLeastT() ? FileInputStream.nullInputStream() : null; in testRetrieveLabels_downloaded_emptyListReturnedOnException() local
758 InputStream inputStream = SdkLevel.isAtLeastT() ? FileInputStream.nullInputStream() : null; in testRetrieveClassifierInputConfig_downloaded_emptyConfigReturnedOnException() local
782 InputStream inputStream = in testRetrieveClassifierInputConfig_emptyConfigReturnedOnInvalidConfigField() local
813 InputStream inputStream = in testRetrieveClassifierInputConfig_emptyConfigReturnedOnInvalidConfigFormat() local
/packages/apps/DocumentsUI/tests/functional/com/android/documentsui/archives/
DArchiveHandleTest.java377 InputStream inputStream = archiveHandle.getInputStream( in closeInputStream_zipFile_shouldBeSuccess() local
412 InputStream inputStream = archiveHandle.getInputStream( in getInputStream_zipFile_shouldHaveTheSameContent() local
498 InputStream inputStream = archiveHandle.getInputStream( in getInputStream_sevenZFile_shouldHaveTheSameContent() local
517 InputStream inputStream = archiveHandle.getInputStream( in getInputStream_tarGzFile_shouldHaveTheSameContent() local
577 InputStream inputStream = archiveHandle.getInputStream( in getInputStream_tarBrotliFile_shouldHaveTheSameContent() local
DArchiveFileTestRule.java122 try (InputStream inputStream = InstrumentationRegistry.getInstrumentation() in dumpAssetFile()
164 public static String getStringFromInputStream(InputStream inputStream) throws IOException { in getStringFromInputStream()
DWriteableArchiveTest.java262 final InputStream inputStream = zip.getInputStream(entry); in testAddFile() local
291 final InputStream inputStream = zip.getInputStream(entry); in testAddFile_empty() local
/packages/modules/ConfigInfrastructure/framework/java/android/os/flagging/
DAconfigdProtoStreamer.java162 InputStream inputStream = sendBytesOverSocket(requestBytes, systemSocket); in sendBytesAndParseResponse() local
196 DataInputStream inputStream = new DataInputStream(socket.getInputStream()); in sendBytesOverSocket() local
205 private void parseAconfigdResponse(InputStream inputStream, long responseMessageToken) in parseAconfigdResponse()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/hotspot2/
DPasspointXmlUtilsTest.java219 final ByteArrayInputStream inputStream = in serializeAndDeserializePasspointConfiguration() local
273 final ByteArrayInputStream inputStream = in deserializePasspointConfigurationWithUnknownTag() local

12345678910