Home
last modified time | relevance | path

Searched refs:StreamUtils (Results 1 – 10 of 10) sorted by relevance

/aosp12/frameworks/libs/service_entitlement/tests/src/com/android/libraries/entitlement/utils/
H A DStreamUtilsTest.java44 String resultString = StreamUtils.inputStreamToString(inputStream); in inputStreamToString()
51 assertThrows(IOException.class, () -> StreamUtils.inputStreamToString(null)); in inputStreamToString_nullInputStream_shouldThrowException()
59 assertThrows(IOException.class, () -> StreamUtils.inputStreamToString(inputStream)); in inputStreamToString_readThrowsIOException_shouldThrowException()
67 String resultString = StreamUtils.inputStreamToStringSafe(inputStream); in inputStreamToStringSafe()
74 String resultString = StreamUtils.inputStreamToStringSafe(null); in inputStreamToStringSafe_nullInputStream_shouldReturnEmpty()
84 String resultString = StreamUtils.inputStreamToStringSafe(inputStream); in inputStreamToStringSafe_readThrowsIOException_shouldReturnEmpty()
/aosp12/frameworks/base/packages/BackupEncryption/test/robolectric/src/com/android/server/backup/encryption/
H A DStreamUtilsTest.java52 StreamUtils.copyStream(mSource, mDestination, mSourceData.length); in copyStream_copiesAllBytesIfAsked()
58 StreamUtils.copyStream(mSource, mDestination, mSourceData.length - 10); in copyStream_stopsShortIfAsked()
64 StreamUtils.copyStream(mSource, mDestination, mSourceData.length + 10); in copyStream_stopsShortIfAskedToCopyMoreThanAvailable()
/aosp12/frameworks/base/packages/BackupEncryption/src/com/android/server/backup/encryption/tasks/
H A DEncryptedFullBackupDataProcessor.java27 import com.android.server.backup.encryption.StreamUtils;
125 StreamUtils.copyStream(mInputStream, mOutputStream, numBytes); in pushData()
169 StreamUtils.closeQuietly(mInputStream); in closeStreams()
170 StreamUtils.closeQuietly(mOutputStream); in closeStreams()
H A DEncryptedFullRestoreTask.java27 import com.android.server.backup.encryption.StreamUtils;
133 StreamUtils.closeQuietly(mDecryptedFileInputStream); in finish()
H A DEncryptedFullBackupTask.java23 import com.android.server.backup.encryption.StreamUtils;
182 StreamUtils.closeQuietly(mInputStream); in call()
/aosp12/frameworks/libs/service_entitlement/java/com/android/libraries/entitlement/utils/
H A DStreamUtils.java29 public final class StreamUtils { class
32 private StreamUtils() {} in StreamUtils() method in StreamUtils
/aosp12/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/jpegstream/
H A DStreamUtils.java21 public class StreamUtils { class
23 private StreamUtils() { in StreamUtils() method in StreamUtils
/aosp12/frameworks/libs/service_entitlement/java/com/android/libraries/entitlement/http/
H A DHttpClient.java38 import com.android.libraries.entitlement.utils.StreamUtils;
81 StreamUtils.inputStreamToStringSafe(mConnection.getErrorStream()), in request()
155 return StreamUtils.inputStreamToStringSafe(in); in readResponse()
/aosp12/frameworks/base/packages/BackupEncryption/src/com/android/server/backup/encryption/
H A DStreamUtils.java25 public class StreamUtils { class
/aosp12/packages/apps/Gallery2/
H A Dproguard.flags87 -keep class com.android.gallery3d.jpegstream.StreamUtils { *; }