Home
last modified time | relevance | path

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

12

/frameworks/base/core/tests/coretests/src/android/content/pm/
DMacAuthenticatedInputStreamTest.java75 assertTrue(Arrays.equals(TEST_STRING_1, Streams.readFully(is))); in testString1Authenticate_Success()
86 assertTrue(Arrays.equals(TEST_STRING_1, Streams.readFully(is))); in testString1Authenticate_WrongTag_Failure()
97 assertTrue(Arrays.equals(TEST_STRING_1, Streams.readFully(is))); in testString1Authenticate_NullTag_Failure()
/frameworks/base/core/java/com/android/internal/os/
DInstallerConnection.java220 private boolean readFully(byte[] buffer, int len) { in readFully() method in InstallerConnection
222 Streams.readFully(mIn, buffer, 0, len); in readFully()
237 if (!readFully(buf, 2)) { in readReply()
248 if (!readFully(buf, len)) { in readReply()
DBatteryStatsHelper.java201 byte[] data = readFully(fin); in statsFromFile()
725 public static byte[] readFully(FileInputStream stream) throws java.io.IOException { in readFully() method in BatteryStatsHelper
726 return readFully(stream, stream.available()); in readFully()
729 public static byte[] readFully(FileInputStream stream, int avail) throws java.io.IOException { in readFully() method in BatteryStatsHelper
767 byte[] data = readFully(fis, MemoryFile.getSize(pfd.getFileDescriptor())); in getStats()
DAtomicFile.java150 public byte[] readFully() throws IOException { in readFully() method in AtomicFile
/frameworks/base/wifi/java/android/net/wifi/p2p/nsd/
DWifiP2pDnsSdServiceResponse.java246 dis.readFully(data); in readDnsName()
271 dis.readFully(data); in readTxtData()
DWifiP2pServiceResponse.java245 dis.readFully(data); in newInstance()
/frameworks/base/tests/BandwidthTests/src/com/android/tests/bandwidthenforcement/
DBandwidthEnforcementTestService.java99 final String content = Streams.readFully( in testUrlConnection()
123 final String content = Streams.readFully( in testUrlConnectionv6()
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/
DSettingsBackupAgent.java726 in.readFully(buffer, 0, nBytes); in onRestoreFile()
733 in.readFully(buffer, 0, nBytes); in onRestoreFile()
741 in.readFully(buffer, 0, nBytes); in onRestoreFile()
750 in.readFully(buffer, 0, nBytes); in onRestoreFile()
757 in.readFully(buffer, 0, nBytes); in onRestoreFile()
772 in.readFully(buffer, 0, nBytes); in onRestoreFile()
780 in.readFully(buffer, 0, nBytes); in onRestoreFile()
790 in.readFully(buffer, 0, nBytes); in onRestoreFile()
800 in.readFully(buffer, 0, nBytes); in onRestoreFile()
/frameworks/support/v4/java/android/support/v4/util/
DAtomicFile.java175 public byte[] readFully() throws IOException { in readFully() method in AtomicFile
/frameworks/base/services/core/java/com/android/server/location/
DGpsXtraDownloader.java127 return Streams.readFully(connection.getInputStream()); in doDownload()
/frameworks/base/core/java/android/util/
DAtomicFile.java220 public byte[] readFully() throws IOException { in readFully() method in AtomicFile
/frameworks/base/core/tests/coretests/src/android/os/
DFileBridgeTest.java74 MoreAsserts.assertEquals(expected, Streams.readFully(new FileInputStream(file))); in assertContents()
/frameworks/base/core/java/android/util/apk/
DZipUtils.java125 zip.readFully(buf.array(), buf.arrayOffset(), buf.capacity()); in findZipEndOfCentralDirectoryRecord()
DApkSignatureSchemeV2Verifier.java879 apk.readFully(footer.array(), footer.arrayOffset(), footer.capacity()); in findApkSigningBlock()
901 apk.readFully(apkSigBlock.array(), apkSigBlock.arrayOffset(), apkSigBlock.capacity()); in findApkSigningBlock()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DWifiCertManager.java125 stream.readFully(bytes); in readConfigFile()
/frameworks/support/tests/java/android/support/v4/content/
DFileProviderTest.java321 MoreAsserts.assertEquals(expected, readFully(in)); in assertContentsEquals()
370 private static byte[] readFully(InputStream in) throws IOException { in readFully() method in FileProviderTest
/frameworks/base/core/java/android/util/jar/
DStrictJarManifest.java87 read(Streams.readFully(is)); in StrictJarManifest()
DStrictJarFile.java259 metaEntries.put(entry.getName(), Streams.readFully(getInputStream(entry))); in getMetaEntries()
/frameworks/base/core/java/android/os/
DRecoverySystem.java187 raf.readFully(footer); in verifyPackage()
198 raf.readFully(eocd); in verifyPackage()
DProcess.java546 inputStream.readFully(bytes); in getAbiList()
/frameworks/base/services/core/java/com/android/server/connectivity/
DPacManager.java202 return new String(Streams.readFully(urlConnection.getInputStream())); in get()
/frameworks/base/packages/DocumentsUI/tests/src/com/android/documentsui/
DDocumentsProviderHelper.java149 buf = Streams.readFully(in); in readDocument()
/frameworks/base/services/core/java/com/android/server/
DLockSettingsStorage.java302 raf.readFully(stored, 0, stored.length); in readFile()
/frameworks/base/services/core/java/com/android/server/display/
DColorFade.java194 return new String(Streams.readFully(new InputStreamReader(stream))); in readFile()
/frameworks/base/core/tests/coretests/src/android/app/
DDownloadManagerBaseTest.java279 final byte[] body = Streams.readFully(new FileInputStream(bodyFile)); in buildResponse()

12