/external/archive-patcher/applier/src/test/java/com/google/archivepatcher/applier/gdiff/ |
D | GdiffTest.java | 43 byte[] newBytes = new byte[] { in testExample() 65 ByteArrayOutputStream outputStream = new ByteArrayOutputStream(newBytes.length); in testExample() 67 long outputLength = Gdiff.patch(readInputFile, patchStream, outputStream, newBytes.length); in testExample() 68 Assert.assertEquals(newBytes.length, outputLength); in testExample() 69 Assert.assertArrayEquals(newBytes, outputStream.toByteArray()); in testExample() 85 byte[] newBytes = new byte[] { in testOpcodes() 114 ByteArrayOutputStream outputStream = new ByteArrayOutputStream(newBytes.length); in testOpcodes() 116 long outputLength = Gdiff.patch(readInputFile, patchStream, outputStream, newBytes.length); in testOpcodes() 117 Assert.assertEquals(newBytes.length, outputLength); in testOpcodes() 118 Assert.assertArrayEquals(newBytes, outputStream.toByteArray()); in testOpcodes() [all …]
|
/external/archive-patcher/explainer/src/test/java/com/google/archivepatcher/explainer/ |
D | PatchExplainerTest.java | 177 byte[] newBytes = UnitTestZipArchive.makeTestZip(Collections.singletonList(ENTRY_A1_LEVEL_9)); in testExplainPatch_CompressedBytesChanged_UncompressedUnchanged() 179 save(newBytes, newFile); in testExplainPatch_CompressedBytesChanged_UncompressedUnchanged() 194 byte[] newBytes = UnitTestZipArchive.makeTestZip(Collections.singletonList(ENTRY_A2_LEVEL_9)); in testExplainPatch_CompressedBytesChanged_UncompressedChanged() 196 save(newBytes, newFile); in testExplainPatch_CompressedBytesChanged_UncompressedChanged() 222 byte[] newBytes = UnitTestZipArchive.makeTestZip(Collections.singletonList(ENTRY_A2_LEVEL_9)); in testExplainPatch_CompressedBytesChanged_UncompressedChanged_Limited() 224 save(newBytes, newFile); in testExplainPatch_CompressedBytesChanged_UncompressedChanged_Limited() 249 byte[] newBytes = UnitTestZipArchive.makeTestZip(Collections.singletonList(ENTRY_A1_STORED)); in testExplainPatch_BothEntriesUncompressed_BytesUnchanged() 251 save(newBytes, newFile); in testExplainPatch_BothEntriesUncompressed_BytesUnchanged() 266 byte[] newBytes = UnitTestZipArchive.makeTestZip(Collections.singletonList(ENTRY_A2_STORED)); in testExplainPatch_BothEntriesUncompressed_BytesChanged() 268 save(newBytes, newFile); in testExplainPatch_BothEntriesUncompressed_BytesChanged() [all …]
|
/external/archive-patcher/generator/src/test/java/com/google/archivepatcher/generator/ |
D | PreDiffPlannerTest.java | 307 byte[] newBytes = UnitTestZipArchive.makeTestZip(Collections.singletonList(ENTRY_A_LEVEL_9)); in testGeneratePreDiffPlan_OneCompressedEntry_LengthsChanged() 309 File newFile = storeAndMapArchive(newBytes); in testGeneratePreDiffPlan_OneCompressedEntry_LengthsChanged() 334 byte[] newBytes = in testGeneratePreDiffPlan_OneCompressedEntry_BytesChanged() 337 File newFile = storeAndMapArchive(newBytes); in testGeneratePreDiffPlan_OneCompressedEntry_BytesChanged() 361 byte[] newBytes = UnitTestZipArchive.makeTestZip(Collections.singletonList(ENTRY_A_STORED)); in testGeneratePreDiffPlan_OneUncompressedEntry() 363 File newFile = storeAndMapArchive(newBytes); in testGeneratePreDiffPlan_OneUncompressedEntry() 380 byte[] newBytes = UnitTestZipArchive.makeTestZip(Collections.singletonList(ENTRY_A_STORED)); in testGeneratePreDiffPlan_OneEntry_CompressedToUncompressed() 382 File newFile = storeAndMapArchive(newBytes); in testGeneratePreDiffPlan_OneEntry_CompressedToUncompressed() 403 byte[] newBytes = UnitTestZipArchive.makeTestZip(Collections.singletonList(ENTRY_A_LEVEL_6)); in testGeneratePreDiffPlan_OneEntry_UncompressedToCompressed() 405 File newFile = storeAndMapArchive(newBytes); in testGeneratePreDiffPlan_OneEntry_UncompressedToCompressed() [all …]
|
D | PreDiffExecutorTest.java | 147 byte[] newBytes = UnitTestZipArchive.makeTestZip(Collections.singletonList(ENTRY_LEVEL_9)); in testPrepareForDiffing_OneCompressedEntry_Changed() 148 File newFile = store(newBytes); in testPrepareForDiffing_OneCompressedEntry_Changed() 193 newBytes, 0, (int) newEntry.getFileOffsetOfCompressedData()); in testPrepareForDiffing_OneCompressedEntry_Changed() 197 int newRemainderLength = newBytes.length - newRemainderOffset; in testPrepareForDiffing_OneCompressedEntry_Changed() 198 expectedDeltaFriendlyNewFileBytes.write(newBytes, newRemainderOffset, newRemainderLength); in testPrepareForDiffing_OneCompressedEntry_Changed() 211 byte[] newBytes = UnitTestZipArchive.makeTestZip(Collections.singletonList(ENTRY_LEVEL_9)); 212 File newFile = store(newBytes);
|
/external/mockftpserver/MockFtpServer/src/main/java/org/mockftpserver/fake/filesystem/ |
D | FileEntry.java | 87 byte[] newBytes = (contents != null) ? contents.getBytes() : EMPTY; in setContents() 88 setContentsInternal(newBytes); in setContents() 98 byte[] newBytes = EMPTY; in setContents() 100 newBytes = new byte[contents.length]; in setContents() 101 System.arraycopy(contents, 0, newBytes, 0, contents.length); in setContents() 103 setContentsInternal(newBytes); in setContents()
|
/external/mockftpserver/tags/2.5/src/main/java/org/mockftpserver/fake/filesystem/ |
D | FileEntry.java | 87 byte[] newBytes = (contents != null) ? contents.getBytes() : EMPTY; in setContents() 88 setContentsInternal(newBytes); in setContents() 98 byte[] newBytes = EMPTY; in setContents() 100 newBytes = new byte[contents.length]; in setContents() 101 System.arraycopy(contents, 0, newBytes, 0, contents.length); in setContents() 103 setContentsInternal(newBytes); in setContents()
|
/external/mockftpserver/tags/2.4/src/main/java/org/mockftpserver/fake/filesystem/ |
D | FileEntry.java | 87 byte[] newBytes = (contents != null) ? contents.getBytes() : EMPTY; in setContents() 88 setContentsInternal(newBytes); in setContents() 98 byte[] newBytes = EMPTY; in setContents() 100 newBytes = new byte[contents.length]; in setContents() 101 System.arraycopy(contents, 0, newBytes, 0, contents.length); in setContents() 103 setContentsInternal(newBytes); in setContents()
|
/external/mockftpserver/tags/2.0.2/src/main/java/org/mockftpserver/fake/filesystem/ |
D | FileEntry.java | 87 byte[] newBytes = (contents != null) ? contents.getBytes() : EMPTY; in setContents() 88 setContentsInternal(newBytes); in setContents() 98 byte[] newBytes = EMPTY; in setContents() 100 newBytes = new byte[contents.length]; in setContents() 101 System.arraycopy(contents, 0, newBytes, 0, contents.length); in setContents() 103 setContentsInternal(newBytes); in setContents()
|
/external/mockftpserver/tags/2.0.1/src/main/java/org/mockftpserver/fake/filesystem/ |
D | FileEntry.java | 87 byte[] newBytes = (contents != null) ? contents.getBytes() : EMPTY; in setContents() 88 setContentsInternal(newBytes); in setContents() 98 byte[] newBytes = EMPTY; in setContents() 100 newBytes = new byte[contents.length]; in setContents() 101 System.arraycopy(contents, 0, newBytes, 0, contents.length); in setContents() 103 setContentsInternal(newBytes); in setContents()
|
/external/mockftpserver/tags/2.3/src/main/java/org/mockftpserver/fake/filesystem/ |
D | FileEntry.java | 87 byte[] newBytes = (contents != null) ? contents.getBytes() : EMPTY; in setContents() 88 setContentsInternal(newBytes); in setContents() 98 byte[] newBytes = EMPTY; in setContents() 100 newBytes = new byte[contents.length]; in setContents() 101 System.arraycopy(contents, 0, newBytes, 0, contents.length); in setContents() 103 setContentsInternal(newBytes); in setContents()
|
/external/mockftpserver/tags/2.2/src/main/java/org/mockftpserver/fake/filesystem/ |
D | FileEntry.java | 87 byte[] newBytes = (contents != null) ? contents.getBytes() : EMPTY; in setContents() 88 setContentsInternal(newBytes); in setContents() 98 byte[] newBytes = EMPTY; in setContents() 100 newBytes = new byte[contents.length]; in setContents() 101 System.arraycopy(contents, 0, newBytes, 0, contents.length); in setContents() 103 setContentsInternal(newBytes); in setContents()
|
/external/mockftpserver/tags/2.1/src/main/java/org/mockftpserver/fake/filesystem/ |
D | FileEntry.java | 87 byte[] newBytes = (contents != null) ? contents.getBytes() : EMPTY; in setContents() 88 setContentsInternal(newBytes); in setContents() 98 byte[] newBytes = EMPTY; in setContents() 100 newBytes = new byte[contents.length]; in setContents() 101 System.arraycopy(contents, 0, newBytes, 0, contents.length); in setContents() 103 setContentsInternal(newBytes); in setContents()
|
/external/mockftpserver/tags/2.0/src/main/java/org/mockftpserver/fake/filesystem/ |
D | FileEntry.java | 87 byte[] newBytes = (contents != null) ? contents.getBytes() : EMPTY; in setContents() 88 setContentsInternal(newBytes); in setContents() 98 byte[] newBytes = (contents != null) ? new String(contents).getBytes() : EMPTY; in setContents() 99 setContentsInternal(newBytes); in setContents()
|
/external/mockftpserver/tags/2.0-rc3/MockFtpServer/src/main/java/org/mockftpserver/fake/filesystem/ |
D | FileEntry.java | 87 byte[] newBytes = (contents != null) ? contents.getBytes() : EMPTY; in setContents() 88 setContentsInternal(newBytes); in setContents() 98 byte[] newBytes = (contents != null) ? new String(contents).getBytes() : EMPTY; in setContents() 99 setContentsInternal(newBytes); in setContents()
|
/external/mockftpserver/tags/2.0-rc1/src/main/java/org/mockftpserver/fake/filesystem/ |
D | FileEntry.java | 88 byte[] newBytes = (contents != null) ? contents.getBytes() : EMPTY; in setContents() 89 setContentsInternal(newBytes); in setContents() 99 byte[] newBytes = (contents != null) ? new String(contents).getBytes() : EMPTY; in setContents() 100 setContentsInternal(newBytes); in setContents()
|
/external/mockftpserver/tags/2.0-rc1/MockFtpServer/src/main/java/org/mockftpserver/fake/filesystem/ |
D | FileEntry.java | 87 byte[] newBytes = (contents != null) ? contents.getBytes() : EMPTY; in setContents() 88 setContentsInternal(newBytes); in setContents() 98 byte[] newBytes = (contents != null) ? new String(contents).getBytes() : EMPTY; in setContents() 99 setContentsInternal(newBytes); in setContents()
|
/external/icu/icu4c/source/i18n/ |
D | sortkey.cpp | 102 uint8_t *newBytes = static_cast<uint8_t *>(uprv_malloc(newCapacity)); in reallocate() local 103 if(newBytes == NULL) { return NULL; } in reallocate() 105 uprv_memcpy(newBytes, getBytes(), length); in reallocate() 108 fUnion.fFields.fBytes = newBytes; in reallocate() 111 return newBytes; in reallocate()
|
/external/icu/android_icu4j/src/main/java/android/icu/text/ |
D | UnicodeDecompressor.java | 190 int newBytes = 0; in decompress() local 194 newBytes = fBuffer.length - fBufferLength; in decompress() 197 if(byteBufferLimit - byteBufferStart < newBytes) in decompress() 198 newBytes = byteBufferLimit - byteBufferStart; in decompress() 201 fBuffer, fBufferLength, newBytes); in decompress() 214 bytePos += newBytes; in decompress()
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/ |
D | UnicodeDecompressor.java | 193 int newBytes = 0; in decompress() local 197 newBytes = fBuffer.length - fBufferLength; in decompress() 200 if(byteBufferLimit - byteBufferStart < newBytes) in decompress() 201 newBytes = byteBufferLimit - byteBufferStart; in decompress() 204 fBuffer, fBufferLength, newBytes); in decompress() 217 bytePos += newBytes; in decompress()
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/ |
D | BytesTrieBuilder.java | 167 byte[] newBytes=new byte[newCapacity]; in ensureCapacity() 169 newBytes, newBytes.length-bytesLength, bytesLength); in ensureCapacity() 170 bytes=newBytes; in ensureCapacity()
|
D | BytesTrie.java | 501 byte[] newBytes=new byte[Math.min(2*bytes.length, 2*len)]; 502 System.arraycopy(bytes, 0, newBytes, 0, length); 503 bytes=newBytes;
|
/external/icu/android_icu4j/src/main/java/android/icu/util/ |
D | BytesTrieBuilder.java | 163 byte[] newBytes=new byte[newCapacity]; in ensureCapacity() 165 newBytes, newBytes.length-bytesLength, bytesLength); in ensureCapacity() 166 bytes=newBytes; in ensureCapacity()
|
D | BytesTrie.java | 474 byte[] newBytes=new byte[Math.min(2*bytes.length, 2*len)]; 475 System.arraycopy(bytes, 0, newBytes, 0, length); 476 bytes=newBytes;
|
/external/icu/icu4c/source/common/ |
D | bytestriebuilder.cpp | 385 char *newBytes=static_cast<char *>(uprv_malloc(newCapacity)); in ensureCapacity() local 386 if(newBytes==NULL) { in ensureCapacity() 393 uprv_memcpy(newBytes+(newCapacity-bytesLength), in ensureCapacity() 396 bytes=newBytes; in ensureCapacity()
|
/external/archive-patcher/generator/src/test/java/com/google/archivepatcher/generator/bsdiff/ |
D | BsDiffTest.java | 497 byte[] newBytes = newData.getBytes(Charset.forName("US-ASCII")); in generatePatchAndCheckCtrlEntries() 499 RandomAccessObject newBytesRo = new RandomAccessObject.RandomAccessByteArrayObject(newBytes); in generatePatchAndCheckCtrlEntries() 501 oldBytesRo, newBytesRo, new NaiveMatcher(oldBytes, newBytes), outputStream); in generatePatchAndCheckCtrlEntries()
|