Home
last modified time | relevance | path

Searched refs:newData (Results 1 – 25 of 52) sorted by relevance

123

/external/archive-patcher/generator/src/main/java/com/google/archivepatcher/generator/bsdiff/
DBsDiffPatchWriter.java52 RandomAccessObject newData, in writeEntry() argument
66 newData.seek(newPosition); in writeEntry()
72 outputStream.write(newData.readUnsignedByte() - oldData.readUnsignedByte()); in writeEntry()
78 newData.seek(newPosition + diffLength); in writeEntry()
82 outputStream.write(newData.readByte()); in writeEntry()
100 RandomAccessObject newData, in generatePatchWithMatcher() argument
110 while (newPosition < newData.length()) { in generatePatchWithMatcher()
119 newPosition = (int) newData.length(); in generatePatchWithMatcher()
126 if (newPosition < newData.length()) { in generatePatchWithMatcher()
131 newData.seek(newPosition - i); in generatePatchWithMatcher()
[all …]
DBsDiff.java48 final RandomAccessObject newData, in lengthOfMatch() argument
51 final int max = Math.min((int) oldData.length() - oldStart, (int) newData.length() - newStart); in lengthOfMatch()
56 newData.seek(newStart); in lengthOfMatch()
58 if (oldData.readByte() != newData.readByte()) { in lengthOfMatch()
71 final RandomAccessObject newData, in searchForMatchBaseCase() argument
81 lengthOfMatch(oldData, groupArrayOldDataRangeStartA, newData, newStart); in searchForMatchBaseCase()
85 lengthOfMatch(oldData, groupArrayOldDataRangeStartB, newData, newStart); in searchForMatchBaseCase()
110 final RandomAccessObject newData, in searchForMatch() argument
117 groupArray, oldData, newData, newStart, oldDataRangeStartA, oldDataRangeStartB); in searchForMatch()
129 newData, in searchForMatch()
[all …]
DBsDiffMatcher.java75 RandomAccessObject newData, in BsDiffMatcher() argument
79 mNewData = newData; in BsDiffMatcher()
88 RandomAccessObject newData = mNewData; in next() local
108 while (mNewPos < newData.length()) { in next()
113 BsDiff.searchForMatch(mGroupArray, oldData, newData, mNewPos, 0, (int) oldData.length()); in next()
124 newData.seek(newIndex); in next()
126 if (oldData.readByte() == newData.readByte()) { in next()
154 newData.seek(mNewPos); in next()
156 if (oldData.readByte() == newData.readByte()) { in next()
/external/archive-patcher/applier/src/test/java/com/google/archivepatcher/applier/bsdiff/
DBsPatchTest.java84 ByteArrayOutputStream newData = new ByteArrayOutputStream(); in testTransformBytes() local
85 BsPatch.transformBytes(patchInput.length, patchInputStream, oldData, newData, buffer1, buffer2); in testTransformBytes()
86 byte[] actual = newData.toByteArray(); in testTransformBytes()
111 ByteArrayOutputStream newData = new ByteArrayOutputStream(); in testTransformBytes_Error_JunkPatch() local
114 patchInput.length, patchInputStream, oldData, newData, buffer1, buffer2); in testTransformBytes_Error_JunkPatch()
130 ByteArrayOutputStream newData = new ByteArrayOutputStream(); in testTransformBytes_Error_JunkPatch_Underflow() local
133 patchInput.length + 1, patchInputStream, oldData, newData, buffer1, buffer2); in testTransformBytes_Error_JunkPatch_Underflow()
169 ByteArrayOutputStream newData = new ByteArrayOutputStream(); in testApplyPatch_BadSignature() local
171 BsPatch.applyPatch(new RandomAccessFile(oldFile, "r"), newData, patchIn); in testApplyPatch_BadSignature()
192 ByteArrayOutputStream newData = new ByteArrayOutputStream(); in testApplyPatch_NewLengthMismatch() local
[all …]
/external/fonttools/Lib/fontTools/ttLib/tables/
DM_E_T_A_.py77 dummy, newData = sstruct.unpack2(METAHeaderFormat, data, self)
80 glyphRecord, newData = sstruct.unpack2(METAGlyphRecordFormat, newData, GlyphRecord())
82 [glyphRecord.offset] = struct.unpack(">H", newData[:2])
83 newData = newData[2:]
85 [glyphRecord.offset] = struct.unpack(">H", newData[:4])
86 newData = newData[4:]
90 newData = data[glyphRecord.offset:]
92 stringRec, newData = sstruct.unpack2(METAStringRecordFormat, newData, StringRecord())
94 [stringRec.offset] = struct.unpack(">H", newData[:2])
95 newData = newData[2:]
[all …]
DD_S_I_G_.py45 dummy, newData = sstruct.unpack2(DSIG_HeaderFormat, data, self)
50 sigrec, newData = sstruct.unpack2(DSIG_SignatureFormat, newData, SignatureRecord())
54 dummy, newData = sstruct.unpack2(DSIG_SignatureBlockFormat, data[sigrec.ulOffset:], sigrec)
57 sigrec.pkcs7 = newData[:sigrec.cbSignature]
DG_M_A_P_.py78 dummy, newData = sstruct.unpack2(GMAPFormat, data, self)
79 self.psFontName = tostr(newData[:self.fontNameLength])
81 newData = data[self.recordsOffset:]
84 gmapRecord, newData = sstruct.unpack2(GMAPRecordFormat1, newData, GMAPRecord())
/external/archive-patcher/applier/src/main/java/com/google/archivepatcher/applier/bsdiff/
DBsPatch.java74 RandomAccessFile oldData, OutputStream newData, InputStream patchData) in applyPatch() argument
76 applyPatch(oldData, newData, patchData, null); in applyPatch()
92 RandomAccessFile oldData, OutputStream newData, InputStream patchData, Long expectedNewSize) in applyPatch() argument
95 newData = new BufferedOutputStream(newData, OUTPUT_STREAM_BUFFER_SIZE); in applyPatch()
97 applyPatchInternal(oldData, newData, patchData, expectedNewSize); in applyPatch()
99 newData.flush(); in applyPatch()
106 final OutputStream newData, in applyPatchInternal() argument
208 transformBytes((int) diffSegmentLength, patchData, oldData, newData, buffer1, buffer2); in applyPatchInternal() local
211 pipe(patchData, newData, buffer1, (int) copySegmentLength); in applyPatchInternal()
244 final OutputStream newData, in transformBytes() argument
[all …]
/external/icu/icu4j/tools/build/src/com/ibm/icu/dev/tool/docs/
DReportAPI.java47 APIData newData; field in ReportAPI
137 ReportAPI(APIData oldData, APIData newData) { in ReportAPI() argument
139 this.newData = newData; in ReportAPI()
142 removed.removeAll(newData.set); in ReportAPI()
144 added = (TreeSet<APIInfo>)newData.set.clone(); in ReportAPI()
203 tempAdded.addAll(newData.set); in ReportAPI()
289 String title = "ICU4J API Comparison: " + oldData.name + " with " + newData.name; in writeReport()
320 pw.println("<h2>Withdrawn, Deprecated, or Obsoleted in " + newData.name + "</h2>"); in writeReport()
322 pw.println("<h2>Deprecated or Obsoleted in " + newData.name + "</h2>"); in writeReport()
332 pw.println("<h2>Changed in " + newData.name + " (old, new)</h2>"); in writeReport()
[all …]
/external/skqp/src/core/
DSkCachedData.h41 virtual void onDataChange(void* oldData, void* newData) {} in onDataChange() argument
71 void setData(void* newData) { in setData() argument
72 if (newData != fData) { in setData()
74 this->onDataChange(fData, newData); in setData()
75 fData = newData; in setData()
/external/skia/src/core/
DSkCachedData.h41 virtual void onDataChange(void* oldData, void* newData) {} in onDataChange() argument
71 void setData(void* newData) { in setData() argument
72 if (newData != fData) { in setData()
74 this->onDataChange(fData, newData); in setData()
75 fData = newData; in setData()
/external/cldr/tools/java/org/unicode/cldr/icu/
DLDML2ICUBinaryWriter.java437 String newData = ""; in stripRules() local
459 while (newData.length() > 0 in stripRules()
460 … && (isNewLine(newData.charAt(newData.length() - 1)) || isUWhiteSpace(newData.charAt(newData in stripRules()
462 if (newData.length() == 1) { in stripRules()
463 newData = ""; in stripRules()
465 newData = newData.substring(0, newData.length() - 2); in stripRules()
545 newData += curChar; in stripRules()
548 newData += curChar2; in stripRules()
555 if (newData.length() > data.length()) { in stripRules()
558 return newData; in stripRules()
DCompareIcuOutput.java82 IcuData newData = loadDataFromTextfiles(dir2, locale); in compareTextFiles() local
84 if (analyseMatches(oldData, newData, messages)) { in compareTextFiles()
116 private static boolean analyseMatches(IcuData oldData, IcuData newData, StringBuffer buffer) { in analyseMatches() argument
119 missing.removeAll(newData.keySet()); in analyseMatches()
125 Set<String> extra = new TreeSet<String>(newData.keySet()); in analyseMatches()
129 printAllInSet(newData, extra, buffer); in analyseMatches()
133 common.retainAll(newData.keySet()); in analyseMatches()
137 List<String[]> newValues = newData.get(rbPath); in analyseMatches()
/external/skqp/tools/viewer/
DStatsLayer.cpp32 TimerData& newData = fTimers.push_back(); in addTimer() local
33 memset(newData.fTimes, 0, sizeof(newData.fTimes)); in addTimer()
34 newData.fLabel = label; in addTimer()
35 newData.fColor = color; in addTimer()
36 newData.fLabelColor = labelColor ? labelColor : color; in addTimer()
/external/skia/tools/viewer/
DStatsLayer.cpp33 TimerData& newData = fTimers.push_back(); in addTimer() local
34 memset(newData.fTimes, 0, sizeof(newData.fTimes)); in addTimer()
35 newData.fLabel = label; in addTimer()
36 newData.fColor = color; in addTimer()
37 newData.fLabelColor = labelColor ? labelColor : color; in addTimer()
/external/antlr/runtime/Java/src/main/java/org/antlr/runtime/misc/
DIntArray.java82 int[] newData = new int[newSize]; in ensureCapacity() local
83 System.arraycopy(data, 0, newData, 0, data.length); in ensureCapacity()
84 data = newData; in ensureCapacity()
/external/icu/icu4c/source/test/perf/usetperf/
Dbitset.cpp57 int32_t* newData = (int32_t*) uprv_malloc(newLen * BYTES_PER_WORD); in ensureCapacity() local
58 uprv_memcpy(newData, data, len * BYTES_PER_WORD); in ensureCapacity()
60 data = newData; in ensureCapacity()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/
DMutableCodePointTrie.java458 int[] newData = new int[capacity]; in allocDataBlock() local
459 for (int j = 0; j < dataLength; ++j) { newData[j] = data[j]; } in allocDataBlock()
460 data = newData; in allocDataBlock()
1032 int fastILimit, int[] newData, int dataNullIndex, MixedBlocks mixedBlocks) { in compactData() argument
1041 mixedBlocks.init(newData.length, blockLength); in compactData()
1042 mixedBlocks.extend(newData, 0, 0, newDataLength); in compactData()
1052 mixedBlocks.init(newData.length, blockLength); in compactData()
1053 mixedBlocks.extend(newData, 0, 0, newDataLength); in compactData()
1059 int n = mixedBlocks.findAllSameBlock(newData, value); in compactData()
1069 n = findAllSameBlock(newData, n + 1, newDataLength, value, blockLength); in compactData()
[all …]
/external/icu/android_icu4j/src/main/java/android/icu/util/
DMutableCodePointTrie.java451 int[] newData = new int[capacity]; in allocDataBlock() local
452 for (int j = 0; j < dataLength; ++j) { newData[j] = data[j]; } in allocDataBlock()
453 data = newData; in allocDataBlock()
1025 int fastILimit, int[] newData, int dataNullIndex, MixedBlocks mixedBlocks) { in compactData() argument
1034 mixedBlocks.init(newData.length, blockLength); in compactData()
1035 mixedBlocks.extend(newData, 0, 0, newDataLength); in compactData()
1045 mixedBlocks.init(newData.length, blockLength); in compactData()
1046 mixedBlocks.extend(newData, 0, 0, newDataLength); in compactData()
1052 int n = mixedBlocks.findAllSameBlock(newData, value); in compactData()
1062 n = findAllSameBlock(newData, n + 1, newDataLength, value, blockLength); in compactData()
[all …]
/external/archive-patcher/generator/src/test/java/com/google/archivepatcher/generator/bsdiff/
DBsDiffTest.java243 byte[] newData = readTestData("BsDiffInternalTestNew.txt"); in generatePatchTest()
246 BsDiffPatchWriter.generatePatch(oldData, newData, out); in generatePatchTest()
257 byte[] newData = readTestData("minimalBlobB.bin"); in generatePatchOnRealCompiledBinaryTest()
260 BsDiffPatchWriter.generatePatch(oldData, newData, out); in generatePatchOnRealCompiledBinaryTest()
420 NaiveMatcher(byte[] oldData, byte[] newData) { in NaiveMatcher() argument
422 mNewData = newData; in NaiveMatcher()
494 String oldData, String newData, CtrlEntry[] expected) throws Exception { in generatePatchAndCheckCtrlEntries() argument
497 byte[] newBytes = newData.getBytes(Charset.forName("US-ASCII")); in generatePatchAndCheckCtrlEntries()
/external/icu/icu4j/tools/misc/src/com/ibm/icu/dev/tool/layout/
DOpenTypeTableWriter.java94 short[] newData = new short[data.length + 512]; in writeData() local
96 System.arraycopy(data, 0, newData, 0, data.length); in writeData()
98 data = newData; in writeData()
/external/icu/icu4c/source/common/
Dumutablecptrie.cpp97 int32_t fastILimit, uint32_t *newData, int32_t newDataCapacity,
416 uint32_t *newData = (uint32_t *)uprv_malloc(capacity * 4); in allocDataBlock() local
417 if (newData == nullptr) { in allocDataBlock()
420 uprv_memcpy(newData, data, (size_t)dataLength * 4); in allocDataBlock()
422 data = newData; in allocDataBlock()
1078 int32_t fastILimit, uint32_t *newData, int32_t newDataCapacity, in compactData() argument
1094 …printBlock(newData + newDataLength, UCPTRIE_FAST_DATA_BLOCK_LENGTH, 0, newDataLength, 0, initialVa… in compactData()
1104 mixedBlocks.extend(newData, 0, 0, newDataLength); in compactData()
1118 mixedBlocks.extend(newData, 0, 0, newDataLength); in compactData()
1124 int32_t n = mixedBlocks.findAllSameBlock(newData, value); in compactData()
[all …]
/external/icu/android_icu4j/src/main/java/android/icu/text/
DDictionaryBreakEngine.java113 int[] newData = new int[data.length * 2]; in grow() local
114 System.arraycopy(data, 0, newData, 0, data.length); in grow()
115 data = newData; in grow()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DDictionaryBreakEngine.java112 int[] newData = new int[data.length * 2]; in grow() local
113 System.arraycopy(data, 0, newData, 0, data.length); in grow()
114 data = newData; in grow()
/external/icu/icu4j/main/classes/localespi/src/com/ibm/icu/impl/jdkadapter/
DSimpleDateFormatICU.java307 private String[] copySymbols(String[] newData, String[] curData, boolean alignEnd) { in copySymbols() argument
308 if (newData.length >= curData.length) { in copySymbols()
309 return newData; in copySymbols()
311 int startOffset = alignEnd ? curData.length - newData.length : 0; in copySymbols()
312 System.arraycopy(newData, 0, curData, startOffset, newData.length); in copySymbols()

123