Home
last modified time | relevance | path

Searched refs:readBytes (Results 1 – 25 of 51) sorted by relevance

123

/frameworks/base/tests/ProtoInputStreamTests/src/com/android/test/protoinputstream/
DProtoInputStreamBytesTest.java79 results[0] = pi.readBytes(fieldId1); in testRead()
82 results[1] = pi.readBytes(fieldId2); in testRead()
85 results[2] = pi.readBytes(fieldId3); in testRead()
88 results[3] = pi.readBytes(fieldId4); in testRead()
139 result = pi.readBytes(fieldId); in testReadCompat()
213 results[0][indices[0]++] = pi.readBytes(fieldId1); in testRepeated()
216 results[1][indices[1]++] = pi.readBytes(fieldId2); in testRepeated()
219 results[2][indices[2]++] = pi.readBytes(fieldId3); in testRepeated()
222 results[3][indices[3]++] = pi.readBytes(fieldId4); in testRepeated()
277 result[index++] = pi.readBytes(fieldId); in testRepeatedCompat()
[all …]
DProtoInputStreamObjectTest.java483 pi.readBytes(fieldId1); in testBadWireType()
487 pi.readBytes(fieldId2); in testBadWireType()
491 pi.readBytes(fieldId3); in testBadWireType()
495 pi.readBytes(fieldId6); in testBadWireType()
DProtoInputStreamIncompleteValueTest.java128 pi.readBytes(fieldId5); in testIncompleteLengthDelimited()
DProtoInputStreamStringTest.java328 pi.readBytes(fieldId1); in testBadReadType()
/frameworks/base/core/java/android/os/incremental/
DV4Signature.java70 byte[] salt = readBytes(buffer); in fromByteArray()
71 byte[] rawRootHash = readBytes(buffer); in fromByteArray()
102 byte[] apkDigest = readBytes(buffer); in fromByteArray()
103 byte[] certificate = readBytes(buffer); in fromByteArray()
104 byte[] additionalData = readBytes(buffer); in fromByteArray()
105 byte[] publicKey = readBytes(buffer); in fromByteArray()
107 byte[] signature = readBytes(buffer); in fromByteArray()
197 final byte[] hashingInfo = readBytes(stream, maxSize); in readFrom()
201 final byte[] signingInfo = readBytes(stream, maxSize); in readFrom()
240 private static byte[] readBytes(InputStream stream, int maxSize) throws IOException { in readBytes() method in V4Signature
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/screenrecord/
DScreenInternalAudioRecorder.java141 int readBytes = 0; in setupSimple()
152 readBytes = Math.min(readShortsInternal, readShortsMic) * 2; in setupSimple()
156 readBytes = mAudioRecord.read(buffer, 0, buffer.length); in setupSimple()
160 if (readBytes < 0) { in setupSimple()
161 Log.e(TAG, "read error " + readBytes + in setupSimple()
166 encode(buffer, readBytes); in setupSimple()
208 private void encode(byte[] buffer, int readBytes) { in encode() argument
210 while (readBytes > 0) { in encode()
220 int bytesToRead = readBytes > bufferSize ? bufferSize : readBytes; in encode()
222 readBytes -= bytesToRead; in encode()
/frameworks/av/drm/common/include/
DReadWriteUtils.h48 static String8 readBytes(const String8& filePath);
56 static int readBytes(const String8& filePath, char** buffer);
/frameworks/base/drm/java/android/drm/
DDrmUtils.java41 /* package */ static byte[] readBytes(String path) throws IOException { in readBytes() method in DrmUtils
43 return readBytes(file); in readBytes()
47 /* package */ static byte[] readBytes(File file) throws IOException { in readBytes() method in DrmUtils
DDrmInfo.java75 mData = DrmUtils.readBytes(path); in DrmInfo()
DDrmRights.java101 mData = DrmUtils.readBytes(rightsFile); in instantiate()
/frameworks/base/core/tests/coretests/src/android/os/
DMemoryFileTest.java59 file.readBytes(testString, 0, 0, testString.length); in testPurge()
81 file.readBytes(buffer, 2000, 0, testString.length); in testRun()
119 file.readBytes(copy, 0, 0, file.length()); in testOutputStreamAdvances()
209 assertEquals(128, file.readBytes(data, 0, 0, 128)); in testCloseRead()
/frameworks/base/core/java/android/os/
DDropBoxManager.java237 int readBytes = 0; in getText() local
239 while (n >= 0 && (readBytes += n) < maxBytes) { in getText()
240 n = is.read(buf, readBytes, maxBytes - readBytes); in getText()
242 return new String(buf, 0, readBytes); in getText()
DMemoryFile.java187 public int readBytes(byte[] buffer, int srcOffset, int destOffset, int count) in readBytes() method in MemoryFile
299 int result = readBytes(buffer, mOffset, offset, count); in read()
/frameworks/base/core/java/android/view/inputmethod/
DInputMethodSubtypeArray.java221 final int readBytes = unzipper.read(result, totalReadBytes, restBytes); in decompress() local
222 if (readBytes < 0) { in decompress()
225 totalReadBytes += readBytes; in decompress()
/frameworks/av/drm/common/
DReadWriteUtils.cpp35 String8 ReadWriteUtils::readBytes(const String8& filePath) { in readBytes() function in ReadWriteUtils
57 int ReadWriteUtils::readBytes(const String8& filePath, char** buffer) { in readBytes() function in ReadWriteUtils
DDrmRights.cpp30 rightsLength = ReadWriteUtils::readBytes(rightsFilePath, &mRightsFromFile); in DrmRights()
/frameworks/base/core/java/com/android/internal/os/
DZygoteServer.java622 int readBytes = in runSelectLoop() local
625 if (readBytes == Zygote.USAP_MANAGEMENT_MESSAGE_BYTES) { in runSelectLoop()
632 + readBytes); in runSelectLoop()
DZygoteConnection.java595 int readBytes = android.system.Os.read(pipeFd, data, dataIndex, 1); in handleParentProc() local
596 if (readBytes < 0) { in handleParentProc()
599 dataIndex += readBytes; in handleParentProc()
/frameworks/base/obex/javax/obex/
DPrivateOutputStream.java127 public synchronized byte[] readBytes(int size) { in readBytes() method in PrivateOutputStream
/frameworks/base/core/java/android/util/proto/
DProtoUtils.java114 sb.append("\nField Bytes : " + proto.readBytes(fieldConstant)); in currentFieldToString()
/frameworks/base/tests/PlatformCompatGating/src/com/android/tests/gating/
DPlatformCompatCommandNotInstalledTest.kt137 inputStream -> inputStream.readBytes() in <lambda>()
/frameworks/base/services/core/java/com/android/server/
DDropBoxManagerService.java782 int readBytes = 0; in dumpProtoLocked() local
784 while (n >= 0 && (readBytes += n) < PROTO_MAX_DATA_BYTES) { in dumpProtoLocked()
785 n = is.read(buf, readBytes, PROTO_MAX_DATA_BYTES - readBytes); in dumpProtoLocked()
788 Arrays.copyOf(buf, readBytes)); in dumpProtoLocked()
DRuntimeService.java147 FileUtils.readBytes(file, DistroVersion.DISTRO_VERSION_FILE_LENGTH); in addDistroVersionDebugInfo()
/frameworks/base/apex/media/framework/java/android/media/
DMediaParser.java1735 data.readBytes(mScratchIvSpace, /* offset= */ 0, mEncryptionVectorSize); in sampleData()
1899 int readBytes = 0; in read() local
1900 readBytes = mDataReader.read(buffer, offset, readLength); in read()
1901 mCurrentPosition += readBytes; in read()
1902 return readBytes; in read()
1932 mByteArray.readBytes(buffer, offset, readLength); in read()
/frameworks/base/graphics/java/android/graphics/
DGraphicsStatsService.java546 void readBytes(byte[] buffer, int count) throws IOException { in readBytes() method in GraphicsStatsService.ActiveBuffer
561 active.readBytes(mData, mAshmemSize); in HistoricalBuffer()

123