Home
last modified time | relevance | path

Searched refs:writeBytes (Results 1 – 25 of 30) sorted by relevance

12

/frameworks/base/core/java/android/os/incremental/
DV4Signature.java174 writeBytes(buffer, hashingInfo.salt); in getSigningData()
175 writeBytes(buffer, hashingInfo.rawRootHash); in getSigningData()
176 writeBytes(buffer, signingInfo.apkDigest); in getSigningData()
177 writeBytes(buffer, signingInfo.certificate); in getSigningData()
178 writeBytes(buffer, signingInfo.additionalData); in getSigningData()
201 writeBytes(stream, this.hashingInfo); in writeTo()
202 writeBytes(stream, this.signingInfo); in writeTo()
258 private static void writeBytes(OutputStream stream, byte[] bytes) throws IOException { in writeBytes() method in V4Signature
267 private static void writeBytes(ByteBuffer buffer, byte[] bytes) { in writeBytes() method in V4Signature
/frameworks/base/core/tests/coretests/src/android/os/
DMemoryFileTest.java55 newFile.writeBytes(testString, 0, 0, testString.length); in testPurge()
80 file.writeBytes(testString, 0, 2000, testString.length); in testRun()
129 file.writeBytes(testString, 0, 0, testString.length); in readIndexOutOfBoundsException()
174 file.writeBytes(testString, 0, 0, testString.length); in testReadEOF()
196 file.writeBytes(data, 0, 0, 128); in testCloseClose()
224 file.writeBytes(data, 0, 0, 128); in testCloseWrite()
236 file.writeBytes(data, 0, 0, 128); in testCloseAllowPurging()
254 file.writeBytes(testString, 0, 0, testString.length); in testCloseLeak()
/frameworks/base/packages/BackupEncryption/test/robolectric/src/com/android/server/backup/encryption/chunking/
DRawBackupWriterTest.java52 mWriter.writeBytes(TEST_BYTES); in writeBytes_writesToOutputStream()
67 mWriter.writeBytes(TEST_BYTES); in getBytesWritten_returnsTotalSum()
68 mWriter.writeBytes(TEST_BYTES); in getBytesWritten_returnsTotalSum()
DDiffScriptBackupWriterTest.java58 mBackupWriter.writeBytes(TEST_BYTES); in writeBytes_writesBytesToWriter()
75 mBackupWriter.writeBytes(TEST_BYTES); in getBytesWritten_returnsTotalSum()
76 mBackupWriter.writeBytes(TEST_BYTES); in getBytesWritten_returnsTotalSum()
DInlineLengthsEncryptedChunkEncoderTest.java67 .writeBytes( in writeChunkToWriter_writesLengthThenNonceThenData()
70 inOrder.verify(mMockBackupWriter).writeBytes(TEST_NONCE); in writeChunkToWriter_writesLengthThenNonceThenData()
71 inOrder.verify(mMockBackupWriter).writeBytes(TEST_DATA); in writeChunkToWriter_writesLengthThenNonceThenData()
DLengthlessEncryptedChunkEncoderTest.java65 inOrder.verify(mMockBackupWriter).writeBytes(TEST_NONCE); in writeChunkToWriter_writesNonceThenData()
66 inOrder.verify(mMockBackupWriter).writeBytes(TEST_DATA); in writeChunkToWriter_writesNonceThenData()
/frameworks/base/packages/BackupEncryption/src/com/android/server/backup/encryption/chunking/
DLengthlessEncryptedChunkEncoder.java38 writer.writeBytes(chunk.nonce()); in writeChunkToWriter()
39 writer.writeBytes(chunk.encryptedBytes()); in writeChunkToWriter()
DBackupWriter.java24 void writeBytes(byte[] bytes) throws IOException; in writeBytes() method
DRawBackupWriter.java33 public void writeBytes(byte[] bytes) throws IOException { in writeBytes() method in RawBackupWriter
DDiffScriptBackupWriter.java52 public void writeBytes(byte[] bytes) throws IOException { in writeBytes() method in DiffScriptBackupWriter
DInlineLengthsEncryptedChunkEncoder.java42 writer.writeBytes(toByteArray(length)); in writeChunkToWriter()
DBackupFileBuilder.java180 mBackupWriter.writeBytes(ChunksMetadataProto.ChunksMetadata.toByteArray(metadata)); in finish()
181 mBackupWriter.writeBytes(toByteArray(startOfMetadata)); in finish()
/frameworks/base/apct-tests/perftests/core/src/android/database/
DSQLiteDatabaseIoPerfTest.java144 private void sendResults(String testName, long writeBytes) { in sendResults() argument
145 Log.i(TAG, testName + " write_bytes: " + writeBytes); in sendResults()
147 status.putLong("write_bytes", writeBytes); in sendResults()
/frameworks/base/core/tests/utiltests/src/android/util/
DAtomicFileTest.java209 writeBytes(mBaseFile, BASE_BYTES); in testAtomicFile()
212 writeBytes(mNewFile, EXISTING_NEW_BYTES); in testAtomicFile()
215 writeBytes(mLegacyBackupFile, LEGACY_BACKUP_BYTES); in testAtomicFile()
260 private static void writeBytes(@NonNull File file, @NonNull byte[] bytes) throws IOException { in writeBytes() method in AtomicFileTest
/frameworks/base/core/java/android/os/
DMemoryFile.java209 public void writeBytes(byte[] buffer, int srcOffset, int destOffset, int count) in writeBytes() method in MemoryFile
323 writeBytes(buffer, offset, mOffset, count); in write()
DParcelFileDescriptor.java615 file.writeBytes(data, 0, 0, data.length); in fromData()
/frameworks/base/obex/javax/obex/
DPrivateInputStream.java147 public synchronized void writeBytes(byte[] body, int start) { in writeBytes() method in PrivateInputStream
DClientSession.java569 privateInput.writeBytes(body, 1); in sendRequest()
DServerOperation.java273 mPrivateInput.writeBytes(body, 1); in handleObexPacket()
/frameworks/base/tests/SoundTriggerTests/src/android/hardware/soundtrigger/stubhal/
DGenericSoundModelTest.java166 out.writeBytes("trig " + model.getUuid().toString() + "\r\n"); in testTriggerGenericSoundModel()
243 out.writeBytes("trig " + modelInfo.model.getUuid() + "\r\n"); in testFuzzGenericSoundModel()
/frameworks/base/core/tests/BTtraffic/src/com/android/google/experimental/bttraffic/
DBTtraffic.java306 writeBytes(outputStream, bytes.length); in doSending()
321 private static void writeBytes(OutputStream outputStream, int value) throws IOException { in writeBytes() method in BTtraffic.SenderRunnable
/frameworks/base/core/tests/coretests/src/android/database/
DNewDatabasePerformanceTests.java104 Long writeBytes = getIoStats().get("write_bytes"); in tearDown() local
105 if (writeBytes != null && sInitialWriteBytes != null) { in tearDown()
106 long testWriteBytes = writeBytes - mSetupWriteBytes; in tearDown()
107 long totalWriteBytes = (writeBytes - sInitialWriteBytes); in tearDown()
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/
DSettingsBackupAgent.java1024 pos = writeBytes(result, pos, value); in extractRelevantValues()
1265 writeBytes(sizeAndString, INTEGER_BYTE_COUNT, stringBytes); in toByteArray()
1301 private static int writeBytes(byte[] out, int pos, byte[] value) { in writeBytes() method in SettingsBackupAgent
/frameworks/base/packages/DynamicSystemInstallationService/src/com/android/dynsystem/
DInstallationAsyncTask.java483 memoryFile.writeBytes(bytes, 0, 0, numBytesRead); in installImage()
/frameworks/base/core/java/android/util/proto/
DProtoOutputStream.java1896 public void writeBytes(long fieldId, @Nullable byte[] val) { in writeBytes() method in ProtoOutputStream

12