/external/webp/src/utils/ |
random.h | 41 int diff; local 43 diff = rg->tab_[rg->index1_] - rg->tab_[rg->index2_]; 44 if (diff < 0) diff += (1u << 31); 45 rg->tab_[rg->index1_] = diff; 49 diff = (int)((uint32_t)diff << 1) >> (32 - num_bits); 50 diff = (diff * amp) >> VP8_RANDOM_DITHER_FIX; // restrict range 51 diff += 1 << (num_bits - 1); // shift back to 0.5-cente [all...] |
/cts/tests/tests/uirendering/src/android/uirendering/cts/util/ |
CompareUtils.java | 10 int diff = Math.abs(Color.red(color) - Color.red(expectedColor)) local 13 return diff <= threshold;
|
/ndk/tests/device/test-gnustl-full/unit/ |
setunion_test.cpp | 61 vector<int> diff; local 62 set_union(v1.begin(), v1.end(), v2.begin(), v2.end(), back_inserter(diff)); 63 CPPUNIT_ASSERT( diff.size() == 17 ); 65 CPPUNIT_ASSERT( diff[i] == i ); 74 string diff; local 76 back_inserter(diff), less<char>()); 77 CPPUNIT_ASSERT( diff.size() == 26 ); 79 CPPUNIT_ASSERT( diff[i] == ('A' + i) );
|
/ndk/tests/device/test-stlport/unit/ |
setunion_test.cpp | 61 vector<int> diff; local 62 set_union(v1.begin(), v1.end(), v2.begin(), v2.end(), back_inserter(diff)); 63 CPPUNIT_ASSERT( diff.size() == 17 ); 65 CPPUNIT_ASSERT( diff[i] == i ); 74 string diff; local 76 back_inserter(diff), less<char>()); 77 CPPUNIT_ASSERT( diff.size() == 26 ); 79 CPPUNIT_ASSERT( diff[i] == ('A' + i) );
|
/external/bzip2/ |
bzdiff.1 | 21 .I diff 26 .IR diff "." 34 .IR diff "." 38 .I diff 41 cmp(1), diff(1), bzmore(1), bzless(1), bzgrep(1), bzip2(1) 46 .I diff
|
/external/icu/icu4c/source/common/ |
ucnvbocu.cpp | 212 /* Faster versions of packDiff() for single-byte-encoded diff values. */ 214 /** Is a diff value encodable in a single byte? */ 215 #define DIFF_IS_SINGLE(diff) (BOCU1_REACH_NEG_1<=(diff) && (diff)<=BOCU1_REACH_POS_1) 217 /** Encode a diff value in a single byte. */ 218 #define PACK_SINGLE_DIFF(diff) (BOCU1_MIDDLE+(diff)) 220 /** Is a diff value encodable in two bytes? */ 221 #define DIFF_IS_DOUBLE(diff) (BOCU1_REACH_NEG_2<=(diff) && (diff)<=BOCU1_REACH_POS_2 398 int32_t prev, c, diff; local 651 int32_t prev, c, diff; local 867 int32_t diff, count; local 947 int32_t prev, count, diff, c; local 1169 int32_t prev, count, diff, c; local [all...] |
/external/clang/utils/check_cfc/ |
obj_diff.py | 31 diff can be very slow with large objects and the most interesting changes 35 # Find first diff 46 # Diff to first line of diff plus some lines 48 diff = difflib.unified_diff(a[:first_diff_idx+context], 52 difference = "\n".join(diff) 54 difference += "\n*** Diff truncated ***" 72 diff = compare_object_files(args.objfilea[0], args.objfileb[0]) variable 73 if diff: 76 print(diff) [all...] |
/external/skia/tools/ |
skdiff_html.cpp | 79 static void print_pixel_count(SkFILEWStream* stream, const DiffRecord& diff) { 81 stream->writeDecAsText(static_cast<int>(diff.fFractionDifference * 82 diff.fBase.fBitmap.width() * 83 diff.fBase.fBitmap.height())); 86 stream->writeDecAsText(diff.fWeightedFraction * 87 diff.fBaseWidth * 88 diff.fBaseHeight); 93 static void print_checkbox_cell(SkFILEWStream* stream, const DiffRecord& diff) { 95 stream->writeText(diff.fBase.fFilename.c_str()); 99 static void print_label_cell(SkFILEWStream* stream, const DiffRecord& diff) { 287 DiffRecord* diff = differences[i]; local [all...] |
/external/tcpdump/tests/ |
TESTrun.sh | 4 mkdir -p DIFF 14 if sh ./$i >DIFF/$i.result 17 rm -f DIFF/$i.result 39 rm -f DIFF/$output.diff 48 cat DIFF/$output.diff >> failure-outputs.txt
|
/external/guava/guava-tests/test/com/google/common/cache/ |
CacheStatsTest.java | 64 CacheStats diff = two.minus(one); local 65 assertEquals(76, diff.requestCount()); 66 assertEquals(42, diff.hitCount()); 67 assertEquals(42.0/76, diff.hitRate()); 68 assertEquals(34, diff.missCount()); 69 assertEquals(34.0/76, diff.missRate()); 70 assertEquals(26, diff.loadSuccessCount()); 71 assertEquals(22, diff.loadExceptionCount()); 72 assertEquals(22.0/48, diff.loadExceptionRate()); 73 assertEquals(26 + 22, diff.loadCount()) [all...] |
/external/icu/icu4j/main/classes/charset/src/com/ibm/icu/charset/ |
CharsetBOCU1.java | 205 /* Faster versions of packDiff() for single-byte-encoded diff values. */ 207 /** Is a diff value encodable in a single byte? */ 208 private static boolean DIFF_IS_SINGLE(int diff){ 209 return (BOCU1_REACH_NEG_1<=(diff) && (diff)<=BOCU1_REACH_POS_1); 212 /** Encode a diff value in a single byte. */ 213 private static int PACK_SINGLE_DIFF(int diff){ 214 return (BOCU1_MIDDLE+(diff)); 217 /** Is a diff value encodable in two bytes? */ 218 private static boolean DIFF_IS_DOUBLE(int diff){ 235 int prev, c , diff; field in class:CharsetBOCU1.CharsetEncoderBOCU [all...] |
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/test/ |
double_const.py | 23 diff = abs(x - x2) 24 # If diff is no larger than 3 ULP (wrt x2), then diff/8 is no larger 25 # than 0.375 ULP, so adding diff/8 to x2 should have no effect. 26 if x2 + (diff / 8.) != x2:
|
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/test/ |
double_const.py | 23 diff = abs(x - x2) 24 # If diff is no larger than 3 ULP (wrt x2), then diff/8 is no larger 25 # than 0.375 ULP, so adding diff/8 to x2 should have no effect. 26 if x2 + (diff / 8.) != x2:
|
/external/clang/utils/ABITest/layout/ |
Makefile | 29 test.%.report: test.%.x.diff test.%.y.diff 42 .PRECIOUS: test.%.x.diff 43 test.%.x.diff: test.%.ref.out test.%.x.out 44 -diff $^ > $@ 45 .PRECIOUS: test.%.y.diff 46 test.%.y.diff: test.%.ref.out test.%.y.out 47 -diff $^ > $@
|
/external/libdrm/intel/tests/ |
gen4-3d.batch.sh | 8 # pretty-print a diff showing what happened, and leave the dumped 16 diff -u $REF_FILENAME $NEW_FILENAME
|
gen5-3d.batch.sh | 8 # pretty-print a diff showing what happened, and leave the dumped 16 diff -u $REF_FILENAME $NEW_FILENAME
|
gen6-3d.batch.sh | 8 # pretty-print a diff showing what happened, and leave the dumped 16 diff -u $REF_FILENAME $NEW_FILENAME
|
gen7-2d-copy.batch.sh | 8 # pretty-print a diff showing what happened, and leave the dumped 16 diff -u $REF_FILENAME $NEW_FILENAME
|
gen7-3d.batch.sh | 8 # pretty-print a diff showing what happened, and leave the dumped 16 diff -u $REF_FILENAME $NEW_FILENAME
|
gm45-3d.batch.sh | 8 # pretty-print a diff showing what happened, and leave the dumped 16 diff -u $REF_FILENAME $NEW_FILENAME
|
test-batch.sh | 8 # pretty-print a diff showing what happened, and leave the dumped 16 diff -u $REF_FILENAME $NEW_FILENAME
|
/external/llvm/test/Analysis/BasicAA/ |
2003-09-19-LocalArgument.ll | 13 %Diff = sub i32 %V1, %V2 14 ret i32 %Diff
|
/external/llvm/tools/llvm-diff/ |
DiffLog.cpp | 34 Diff.push_back(DiffRecord(L, R)); 38 Diff.push_back(DiffRecord(L, DiffRecord::second_type(nullptr))); 42 Diff.push_back(DiffRecord(DiffRecord::first_type(nullptr), R)); 45 unsigned DiffLogBuilder::getNumLines() const { return Diff.size(); } 48 return (Diff[I].first ? (Diff[I].second ? DC_match : DC_left) 51 Instruction *DiffLogBuilder::getLeft(unsigned I) const { return Diff[I].first; } 52 Instruction *DiffLogBuilder::getRight(unsigned I) const { return Diff[I].second; }
|
/packages/apps/ContactsCommon/tests/src/com/android/contacts/common/ |
RawContactDeltaTests.java | 45 * correctly build expected "diff" operations. 170 final ArrayList<ContentProviderOperation> diff = Lists.newArrayList(); local 171 source.buildDiff(diff); 173 assertTrue("Created changes when none needed", (diff.size() == 0)); 188 final ArrayList<ContentProviderOperation> diff = Lists.newArrayList(); local 189 source.buildAssert(diff); 190 source.buildDiff(diff); 191 assertEquals("Unexpected operations", 4, diff.size()); 193 final ContentProviderOperation oper = diff.get(0); 197 final ContentProviderOperation oper = diff.get(1) 228 final ArrayList<ContentProviderOperation> diff = Lists.newArrayList(); local 267 final ArrayList<ContentProviderOperation> diff = Lists.newArrayList(); local 300 final ArrayList<ContentProviderOperation> diff = Lists.newArrayList(); local 325 final ArrayList<ContentProviderOperation> diff = Lists.newArrayList(); local 353 final ArrayList<ContentProviderOperation> diff = Lists.newArrayList(); local [all...] |
/art/compiler/linker/x86/ |
relative_patcher_x86_test.cc | 95 uint32_t diff = kTrampolineOffset - (result.second + kCallCode.size()); local 98 static_cast<uint8_t>(diff), static_cast<uint8_t>(diff >> 8), 99 static_cast<uint8_t>(diff >> 16), static_cast<uint8_t>(diff >> 24) 122 uint32_t diff = local 127 0x8b, 0x83, // mov eax, [ebx + diff] 128 static_cast<uint8_t>(diff), static_cast<uint8_t>(diff >> 8), 129 static_cast<uint8_t>(diff >> 16), static_cast<uint8_t>(diff >> 24 [all...] |