/frameworks/base/tests/ProtoInputStreamTests/src/com/android/test/protoinputstream/ |
D | ProtoInputStreamBytesTest.java | 79 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 …]
|
D | ProtoInputStreamObjectTest.java | 483 pi.readBytes(fieldId1); in testBadWireType() 487 pi.readBytes(fieldId2); in testBadWireType() 491 pi.readBytes(fieldId3); in testBadWireType() 495 pi.readBytes(fieldId6); in testBadWireType()
|
D | ProtoInputStreamIncompleteValueTest.java | 128 pi.readBytes(fieldId5); in testIncompleteLengthDelimited()
|
/frameworks/base/core/java/android/os/incremental/ |
D | V4Signature.java | 71 byte[] salt = readBytes(buffer); in fromByteArray() 72 byte[] rawRootHash = readBytes(buffer); in fromByteArray() 109 byte[] apkDigest = readBytes(buffer); in fromByteBuffer() 110 byte[] certificate = readBytes(buffer); in fromByteBuffer() 111 byte[] additionalData = readBytes(buffer); in fromByteBuffer() 112 byte[] publicKey = readBytes(buffer); in fromByteBuffer() 114 byte[] signature = readBytes(buffer); in fromByteBuffer() 134 byte[] signingInfo = readBytes(buffer); in fromByteBuffer() 263 final byte[] hashingInfo = readBytes(stream, maxSize); in readFrom() 267 final byte[] signingInfo = readBytes(stream, maxSize); in readFrom() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/screenrecord/ |
D | ScreenInternalAudioRecorder.java | 139 int readBytes = 0; in setupSimple() 175 readBytes = minShorts * 2; in setupSimple() 191 readBytes = mAudioRecord.read(buffer, 0, buffer.length); in setupSimple() 195 if (readBytes < 0) { in setupSimple() 196 Log.e(TAG, "read error " + readBytes + in setupSimple() 201 encode(buffer, readBytes); in setupSimple() 234 private void encode(byte[] buffer, int readBytes) { in encode() argument 236 while (readBytes > 0) { in encode() 246 int bytesToRead = readBytes > bufferSize ? bufferSize : readBytes; in encode() 248 readBytes -= bytesToRead; in encode()
|
/frameworks/av/drm/common/include/ |
D | ReadWriteUtils.h | 48 static String8 readBytes(const String8& filePath); 56 static int readBytes(const String8& filePath, char** buffer);
|
/frameworks/base/drm/java/android/drm/ |
D | DrmUtils.java | 41 /* 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
|
D | DrmInfo.java | 75 mData = DrmUtils.readBytes(path); in DrmInfo()
|
D | DrmRights.java | 101 mData = DrmUtils.readBytes(rightsFile); in instantiate()
|
/frameworks/base/core/java/android/os/ |
D | DropBoxManager.java | 239 int readBytes = 0; in getText() local 241 while (n >= 0 && (readBytes += n) < maxBytes) { in getText() 242 n = is.read(buf, readBytes, maxBytes - readBytes); in getText() 244 return new String(buf, 0, readBytes); in getText()
|
D | MemoryFile.java | 187 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/tests/coretests/src/android/os/ |
D | MemoryFileTest.java | 75 file.readBytes(testString, 0, 0, testString.length); in testPurge() 98 file.readBytes(buffer, 2000, 0, testString.length); in testRun() 137 file.readBytes(copy, 0, 0, file.length()); in testOutputStreamAdvances() 234 assertEquals(128, file.readBytes(data, 0, 0, 128)); in testCloseRead()
|
/frameworks/base/core/java/android/view/inputmethod/ |
D | InputMethodSubtypeArray.java | 253 final int readBytes = unzipper.read(result, totalReadBytes, restBytes); in decompress() local 254 if (readBytes < 0) { in decompress() 257 totalReadBytes += readBytes; in decompress()
|
/frameworks/av/drm/common/ |
D | ReadWriteUtils.cpp | 35 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
|
D | DrmRights.cpp | 30 rightsLength = ReadWriteUtils::readBytes(rightsFilePath, &mRightsFromFile); in DrmRights()
|
/frameworks/base/packages/SettingsLib/DataStore/tests/src/com/android/settingslib/datastore/ |
D | BackupRestoreFileArchiverTest.kt | 132 assertThat(fileStorage.restoreFile.readBytes()).isEqualTo(data) in restoreEntity_forwardCompatibility() 157 assertThat(file.readBytes()).isEqualTo(data) in restoreEntity() 235 .readBytes() in toBackupRestoreEntity_backup()
|
D | BackupCodecTest.kt | 65 val result = codec.decode(inputStream).use { it.readBytes() } in encode_decode()
|
/frameworks/libs/systemui/toruslib/torus-utils/src/main/java/com/google/android/torus/utils/extensions/ |
D | AssetManagerExt.kt | 53 val byteArray = inputStream.readBytes() in readAsset()
|
/frameworks/base/core/java/com/android/internal/os/ |
D | ZygoteServer.java | 591 int readBytes = in runSelectLoop() local 594 if (readBytes == Zygote.USAP_MANAGEMENT_MESSAGE_BYTES) { in runSelectLoop() 601 + readBytes); in runSelectLoop()
|
D | ZygoteConnection.java | 598 int readBytes = android.system.Os.read(pipeFd, data, dataIndex, 1); in handleParentProc() local 599 if (readBytes < 0) { in handleParentProc() 602 dataIndex += readBytes; in handleParentProc()
|
/frameworks/base/core/tests/coretests/src/android/tracing/perfetto/ |
D | DataSourceTest.java | 133 final byte[] rawProtoFromFile = reader.readBytes(TraceType.PERFETTO, Tag.ALL); in canTraceData() 425 final byte[] rawProtoFromFile = reader.readBytes(TraceType.PERFETTO, Tag.ALL); in multipleTraceInstances() 589 final byte[] rawProtoFromFile = reader.readBytes(TraceType.PERFETTO, Tag.ALL); in canUseDataSourceInstanceToCreateTlsState() 648 final byte[] rawProtoFromFile = reader.readBytes(TraceType.PERFETTO, Tag.ALL); in canUseDataSourceInstanceToCreateIncrementalState() 692 final byte[] rawProtoFromFile = reader.readBytes(TraceType.PERFETTO, Tag.ALL); in canTraceOnFlush()
|
/frameworks/base/tests/PlatformCompatGating/src/com/android/tests/gating/ |
D | PlatformCompatCommandNotInstalledTest.kt | 137 inputStream -> inputStream.readBytes() in <lambda>()
|
/frameworks/base/core/java/android/util/proto/ |
D | ProtoUtils.java | 116 sb.append(Arrays.toString(proto.readBytes(fieldConstant))); in currentFieldToString()
|
/frameworks/base/services/core/java/com/android/server/ |
D | DropBoxManagerService.java | 859 int readBytes = 0; in dumpProtoLocked() local 861 while (n >= 0 && (readBytes += n) < PROTO_MAX_DATA_BYTES) { in dumpProtoLocked() 862 n = is.read(buf, readBytes, PROTO_MAX_DATA_BYTES - readBytes); in dumpProtoLocked() 865 Arrays.copyOf(buf, readBytes)); in dumpProtoLocked()
|
/frameworks/base/graphics/java/android/graphics/ |
D | GraphicsStatsService.java | 546 void readBytes(byte[] buffer, int count) throws IOException { in readBytes() method in GraphicsStatsService.ActiveBuffer 561 active.readBytes(mData, mAshmemSize); in HistoricalBuffer()
|