Home
last modified time | relevance | path

Searched refs:readFully (Results 1 – 25 of 54) sorted by relevance

123

/frameworks/base/core/tests/coretests/src/android/content/pm/
DMacAuthenticatedInputStreamTest.java78 assertTrue(Arrays.equals(TEST_STRING_1, Streams.readFully(is))); in testString1Authenticate_Success()
89 assertTrue(Arrays.equals(TEST_STRING_1, Streams.readFully(is))); in testString1Authenticate_WrongTag_Failure()
100 assertTrue(Arrays.equals(TEST_STRING_1, Streams.readFully(is))); in testString1Authenticate_NullTag_Failure()
/frameworks/base/core/java/com/android/internal/util/
DFastDataInput.java96 public void readFully(byte[] b) throws IOException { in readFully() method in FastDataInput
97 readFully(b, 0, b.length); in readFully()
101 public void readFully(byte[] b, int off, int len) throws IOException { in readFully() method in FastDataInput
139 readFully(tmp, 0, len); in readUTF()
DBinaryXmlPullParser.java118 mIn.readFully(magic); in setInput()
242 mIn.readFully(res); in consumeToken()
/frameworks/base/services/core/java/com/android/server/locksettings/
DAesEncryptionUtil.java51 cipherStream.readFully(iv); in decrypt()
59 cipherStream.readFully(rawCipherText); in decrypt()
/frameworks/base/packages/DynamicSystemInstallationService/src/com/android/dynsystem/
DKeyRevocationList.java135 return fromJsonString(readFully(stream)); in fromUrl()
139 private static String readFully(InputStream in) throws IOException { in readFully() method in KeyRevocationList
/frameworks/base/core/java/android/os/incremental/
DV4Signature.java216 private static void readFully(InputStream stream, byte[] buffer) throws IOException { in readFully() method in V4Signature
230 readFully(stream, buffer); in readIntLE()
248 readFully(stream, bytes); in readBytes()
/frameworks/base/packages/BackupEncryption/src/com/android/server/backup/encryption/tasks/
DBackupFileDecryptorTask.java156 input.readFully(encryptedChunkBuffer, 0, length); in decryptFileWithExplicitStarts()
198 input.readFully(plaintextChunk); in decryptFileWithInlineLengths()
365 input.readFully(chunksMetadataBytes); in getChunksMetadata()
/frameworks/base/wifi/tests/src/android/net/wifi/
DSoftApConfToXmlMigrationUtilTest.java142 private static byte[] readFully(InputStream stream) throws IOException { in readFully() method in SoftApConfToXmlMigrationUtilTest
193 byte[] xmlBytes = readFully(xmlStream); in testConversion()
/frameworks/base/tests/BandwidthTests/src/com/android/tests/bandwidthenforcement/
DBandwidthEnforcementTestService.java102 final String content = Streams.readFully( in testUrlConnection()
126 final String content = Streams.readFully( in testUrlConnectionv6()
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/
DSettingsBackupAgent.java447 in.readFully(buffer, 0, nBytes); in onRestoreFile()
456 in.readFully(buffer, 0, nBytes); in onRestoreFile()
471 in.readFully(buffer, 0, nBytes); in onRestoreFile()
482 in.readFully(buffer, 0, nBytes); in onRestoreFile()
491 in.readFully(supplicant_buffer, 0, supplicant_size); in onRestoreFile()
497 in.readFully(ipconfig_buffer, 0, nBytes); in onRestoreFile()
506 in.readFully(buffer, 0, nBytes); in onRestoreFile()
516 in.readFully(buffer, 0, nBytes); in onRestoreFile()
526 in.readFully(buffer, 0, nBytes); in onRestoreFile()
535 in.readFully(buffer, 0, nBytes); in onRestoreFile()
/frameworks/layoutlib/bridge/tests/src/com/android/layoutlib/bridge/intensive/util/
DModuleClassLoader.java52 byte[] b = Streams.readFully(getResourceAsStream(myModuleRoot + path)); in findClass()
/frameworks/base/cmds/incidentd/src/
DFdBuffer.h52 status_t readFully(int fd);
/frameworks/base/core/java/com/android/internal/os/
DBatteryStatsHelper.java189 byte[] data = readFully(fin); in statsFromFile()
535 public static byte[] readFully(FileInputStream stream) throws java.io.IOException { in readFully() method in BatteryStatsHelper
536 return readFully(stream, stream.available()); in readFully()
539 public static byte[] readFully(FileInputStream stream, int avail) throws java.io.IOException { in readFully() method in BatteryStatsHelper
691 byte[] data = readFully(fis, MemoryFile.getSize(pfd.getFileDescriptor())); in getStats()
DBatteryStatsHistory.java347 raw = file.readFully(); in readFileToParcel()
390 raw = file.readFully(); in writeToParcel()
/frameworks/base/core/tests/coretests/src/com/android/internal/util/
DFastDataTest.java79 assertThrows(EOFException.class, () -> in.readFully(tmp)); in testEndOfFile_Bytes_Small()
84 assertThrows(EOFException.class, () -> in.readFully(tmp)); in testEndOfFile_Bytes_Small()
308 in.readFully(tmp, 8, 32); in testBounce_Bytes()
/frameworks/base/core/java/android/util/apk/
DZipUtils.java125 zip.readFully(buf.array(), buf.arrayOffset(), buf.capacity()); in findZipEndOfCentralDirectoryRecord()
DSourceStampVerifier.java421 return Streams.readFully(apkJar.getInputStream(zipEntry)); in getSourceStampCertificateDigest()
429 return Streams.readFully(apkJar.getInputStream(zipEntry)); in getManifestBytes()
/frameworks/base/core/tests/coretests/src/android/os/
DFileBridgeTest.java76 MoreAsserts.assertEquals(expected, Streams.readFully(new FileInputStream(file))); in assertContents()
/frameworks/base/packages/BackupEncryption/src/com/android/server/backup/encryption/chunking/
DProtoStore.java110 byte[] data = protoStore.readFully(); in loadProto()
/frameworks/base/services/people/java/com/android/server/people/data/
DUserData.java174 in.readFully(conversationsPayload, 0, conversationsPayloadSize); in restore()
/frameworks/base/services/core/java/com/android/server/testharness/
DTestHarnessModeService.java433 is.readFully(adbKeys); in fromBytes()
436 is.readFully(adbTempKeys); in fromBytes()
/frameworks/base/services/backup/java/com/android/server/backup/
DBackupPasswordManager.java302 dataInputStream.readFully(salt); in deserialize()
/frameworks/base/core/java/android/util/
DAtomicFile.java290 public byte[] readFully() throws IOException { in readFully() method in AtomicFile
/frameworks/base/packages/SettingsProvider/test/src/com/android/providers/settings/
DDeviceConfigServiceTest.java166 Streams.readFully(is); in executeShellCommand()
/frameworks/base/core/java/android/util/jar/
DStrictJarManifest.java93 read(Streams.readFully(is)); in StrictJarManifest()

123