Home
last modified time | relevance | path

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

12345678910

/packages/services/Car/tests/carservice_test/src/com/android/car/audio/
DCarAudioFadeConfigurationHelperTest.java50 try (InputStream inputStream = mContext.getResources().openRawResource( in constructor()
69 try (InputStream inputStream = mContext.getResources().openRawResource( in constructor_withNoConfigs_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/src/com/android/adservices/service/measurement/aggregation/
DAggregateEncryptionKeyFetcherTest.java186 InputStream inputStream = new ByteArrayInputStream( in testInvalidResponseBodyJson() local
212 InputStream inputStream = new ByteArrayInputStream( in testMissingCacheControlHeader() local
229 InputStream inputStream = new ByteArrayInputStream( in testMissingAgeHeader() local
261 InputStream inputStream = new ByteArrayInputStream( in testBrokenAgeHeader() local
294 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.kt39 val inputStream = context.resources.openRawResource(R.raw.config_valid_not_overlayable) in <lambda>() constant
73 val inputStream = context.resources.openRawResource(R.raw.config_valid_overlayable) in <lambda>() constant
104 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()
359 void onInputStreamOpened(@Nullable InputStream inputStream); in onInputStreamOpened()
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/map/
DBluetoothMapSmsPduTest.java124 InputStream inputStream = new ByteArrayInputStream(encodedMessageSms); in getSubmitPdus_withTypeGSM_whenMsgCountIsMoreThanOne() local
151 InputStream inputStream = new ByteArrayInputStream(encodedMessageSms); in getSubmitPdus_withTypeCDMA() local
178 InputStream inputStream = new ByteArrayInputStream(encodedMessageSms); in getDeliverPdus_withTypeGSM() local
207 InputStream inputStream = new ByteArrayInputStream(encodedMessageSms); in getDeliverPdus_withTypeCDMA() local
DBluetoothMapbMessageEmailTest.java53 InputStream inputStream = new ByteArrayInputStream(encodedMessageEmail); in encodeToByteArray_thenCreateByParsing() local
70 InputStream inputStream = new ByteArrayInputStream(encodedMessageEmail); in encodeToByteArray_withEmptyBody_thenCreateByParsing() local
DBluetoothMapbMessageSmsTest.java85 InputStream inputStream = new ByteArrayInputStream(encodedMessageSms); in encodeToByteArray_thenAddByParsing() local
102 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/HealthFitness/service/java/com/android/server/healthconnect/exportimport/
DCompressor.java41 FileInputStream inputStream = new FileInputStream(source); in compress() local
63 ZipInputStream inputStream = new ZipInputStream(new FileInputStream(zip)); in decompress() 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/src/com/android/adservices/service/topics/classifier/
DModelManagerTest.java313 InputStream inputStream = SdkLevel.isAtLeastT() ? FileInputStream.nullInputStream() : null; in testRetrieveLabels_downloaded_emptyListReturnedOnException() local
755 InputStream inputStream = SdkLevel.isAtLeastT() ? FileInputStream.nullInputStream() : null; in testRetrieveClassifierInputConfig_downloaded_emptyConfigReturnedOnException() local
779 InputStream inputStream = in testRetrieveClassifierInputConfig_emptyConfigReturnedOnInvalidConfigField() local
810 InputStream inputStream = in testRetrieveClassifierInputConfig_emptyConfigReturnedOnInvalidConfigFormat() local
/packages/modules/OnDevicePersonalization/federatedcompute/src/com/android/federatedcompute/services/common/
DFileUtils.java73 try (BufferedInputStream inputStream = new BufferedInputStream(new FileInputStream(file))) { in readFileAsByteArray()
87 InputStream inputStream = new ParcelFileDescriptor.AutoCloseInputStream(fd); in readFileDescriptorAsByteArray() local
/packages/apps/DocumentsUI/tests/functional/com/android/documentsui/archives/
DArchiveHandleTest.java338 InputStream inputStream = archiveHandle.getInputStream( in closeInputStream_zipFile_shouldBeSuccess() local
373 InputStream inputStream = archiveHandle.getInputStream( in getInputStream_zipFile_shouldHaveTheSameContent() local
459 InputStream inputStream = archiveHandle.getInputStream( in getInputStream_sevenZFile_shouldHaveTheSameContent() local
478 InputStream inputStream = archiveHandle.getInputStream( in getInputStream_tarGzFile_shouldHaveTheSameContent() local
538 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/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
/packages/apps/Messaging/src/com/android/messaging/datamodel/media/
DImageRequest.java156 final InputStream inputStream = getInputStreamForResource(); in loadBitmapInternal() local
193 final InputStream inputStream = getInputStreamForResource(); in loadBitmapInternal() local

12345678910