/frameworks/base/core/tests/coretests/src/android/database/sqlite/ |
SQLiteCursorTest.java | 91 Cursor c1 = mDatabase.rawQuery("select * from " + testTable, null); local 92 assertEquals(N, c1.getCount()); 93 c1.close();
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/ |
CurrencyTest.java | 60 Currency c1 = Currency.getInstance(new Locale("en", "CA")); local 63 c1 == c0); 74 c1 = Currency.getInstance(new Locale("ja", "JP")); 77 c1 == c0); 311 Currency c1 = Currency.getInstance("TND"); local 312 c1.getDefaultFractionDigits(); 313 assertEquals(" Currency.getInstance(\"" + c1 314 + "\") returned incorrect number of digits. ", 3, c1
|
GregorianCalendarTest.java | 150 Calendar c1 = new GregorianCalendar(TimeZone.getTimeZone("GMT")); local 151 c1.set(Calendar.YEAR, 1999); 152 c1.set(Calendar.MONTH, Calendar.JUNE); 153 c1.set(Calendar.DAY_OF_MONTH, 2); 154 c1.set(Calendar.HOUR, 15); 155 c1.set(Calendar.MINUTE, 34); 156 c1.set(Calendar.SECOND, 16); 157 assertEquals(34, c1.get(Calendar.MINUTE)); 158 c1.setTimeZone(new SimpleTimeZone(60000, "ONE MINUTE")); 159 assertEquals(35, c1.get(Calendar.MINUTE)) [all...] |
/libcore/luni/src/test/java/tests/security/spec/ |
EllipticCurveTest.java | 560 EllipticCurve c2 = null, c1 = new EllipticCurve(new ECFieldFp( local 563 assertTrue(c1.equals(c1)); 566 c1 = new EllipticCurve(new ECFieldFp(BigInteger.valueOf(23L)), 570 assertTrue(c1.equals(c2) && c2.equals(c1)); 573 c1 = new EllipticCurve(new ECFieldFp(BigInteger.valueOf(23L)), 577 assertTrue(c1.equals(c2) && c2.equals(c1)); 580 c1 = new EllipticCurve(new ECFieldFp(BigInteger.valueOf(23L)) [all...] |
/cts/tests/tests/content/src/android/content/res/cts/ |
ColorStateListTest.java | 42 final ColorStateList c1 = c.withAlpha(alpha); local 43 assertNotSame(Color.RED, c1.getDefaultColor()); 45 assertEquals(alpha, c1.getDefaultColor() >>> 24); 46 assertEquals(Color.RED & 0x00FF0000, c1.getDefaultColor() & 0x00FF0000);
|
/cts/tests/tests/graphics/src/android/graphics/cts/ |
CameraTest.java | 131 Canvas c1 = new Canvas(); local 132 mCamera.applyToCanvas(c1); 139 assertTrue(c1.getMatrix().equals(c2.getMatrix()));
|
/cts/tests/tests/widget/src/android/widget/cts/ |
AlphabetIndexerTest.java | 42 Cursor c1 = createCursor("Country", COUNTRIES_LIST); local 44 AlphabetIndexer indexer = new AlphabetIndexer(c1, SORTED_COLUMN_INDEX, ALPHABET);
|
/development/perftests/panorama/feature_stab/db_vlvm/ |
db_utilities_poly.cpp | 97 double c0,c1,c2,c3; local 123 c1=d/a; 131 k0=min4_c0*c3c3through4_min_c2-c1*c1; 132 k1=c1*c3+min4_c0; 145 mn=lz*c3through4-c1/2.0; 169 double c0,c1,c2,c3; local 195 c1=d/a; 203 k0=min4_c0*c3c3through4_min_c2-c1*c1; [all...] |
/external/android-clat/ |
config.c | 208 uint32_t c1 = ip_checksum_add(0, ipv4_local_subnet, sizeof(*ipv4_local_subnet)); local 212 uint16_t delta = ip_checksum_adjust(middlebytes, c1, c2);
|
/external/chromium_org/base/ |
callback_unittest.cc | 78 Callback<void(int)> c1; local 86 EXPECT_TRUE(c1.is_null());
|
/external/chromium_org/third_party/boringssl/src/crypto/bn/ |
mul.c | 316 int n = n2 / 2, c1, c2; local 338 c1 = bn_cmp_part_words(a, &(a[n]), tna, n - tna); 341 switch (c1 * 3 + c2) { 404 /* t[32] holds (a[0]-a[1])*(b[1]-b[0]), c1 is the sign 408 c1 = (int)(bn_add_words(t, r, &(r[n2]), n2)); 412 c1 -= (int)(bn_sub_words(&(t[n2]), t, &(t[n2]), n2)); 415 c1 += (int)(bn_add_words(&(t[n2]), &(t[n2]), t, n2)); 421 * c1 holds the carry bits */ 422 c1 += (int)(bn_add_words(&(r[n]), &(r[n]), &(t[n2]), n2)); 423 if (c1) { 448 int c1, c2, neg; local 723 int zero, c1; local [all...] |
prime.c | 172 int i, j, c1 = 0; local 214 if (!BN_GENCB_call(cb, BN_GENCB_GENERATED, c1++)) { 248 if (!BN_GENCB_call(cb, i, c1 - 1)) { [all...] |
/external/chromium_org/third_party/icu/source/common/ |
ucmndata.c | 105 int32_t c1=(uint8_t)*s1++; local 107 cmp=c1-c2; 108 if(cmp!=0 || c1==0) { /* different or done */
|
uinvchar.c | 453 UChar32 c1, c2; local 472 c1=c; 474 c1=-1; 482 if((c1-=c2)!=0) { 483 return c1; 498 UChar32 c1, c2; local 517 c1=0; 518 } else if((c1=asciiFromEbcdic[c])!=0 && UCHAR_IS_INVARIANT(c1)) { 519 /* c1 is set * 542 int32_t c1, c2; local [all...] |
unormcmp.cpp | 63 * get one code unit c1 from s1 (-1 if end of source) 69 * if(c1==c2) { 73 * // c1!=c2 74 * try to decompose/case-fold c1/c2, and continue if one does; 76 * // still c1!=c2 and neither decomposes/case-folds, return result 77 * return c1-c2; 170 UChar32 c1, c2, cp1, cp2; local 211 c1=c2=-1; 220 if(c1<0) { 223 if(s1==limit1 || ((c1=*s1)==0 && (limit1==NULL || (options&_STRNCMP_STYLE)))) [all...] |
/external/chromium_org/third_party/icu/source/test/intltest/ |
aliastst.cpp | 66 Calendar* c1 = Calendar::createInstance(oldLoc, status); local 70 const char* l1 = c1->getLocaleID(ULOC_VALID_LOCALE, status); 78 if(!(c1==c2)){ 79 errln("CalendarTest: c1!=c2. newLoc= "+UnicodeString(newLoc.getName()) +" oldLoc= "+UnicodeString(oldLoc.getName())); 82 delete c1; 112 errln("TestDateFormat: c1!=c2. newLoc= "+UnicodeString(newLoc.getName()) +" oldLoc= "+UnicodeString(oldLoc.getName())); 133 Collator* c1 = Collator::createInstance(oldLoc, status); local 136 Locale l1 = c1->getLocale(ULOC_VALID_LOCALE, status); 145 if(!(c1==c2)){ 146 errln("CollationTest: c1!=c2. newLoc= "+UnicodeString(newLoc.getName()) +" oldLoc= "+UnicodeString(oldLoc.getName())) [all...] |
/external/chromium_org/third_party/libphonenumber/src/phonenumbers/utf/ |
rune.c | 68 int c, c1, c2, c3; local 95 c1 = *(uchar*)(str+1) ^ Tx; 96 if(c1 & Testx) 101 l = ((c << Bitx) | c1) & Rune2; 121 l = ((((c << Bitx) | c1) << Bitx) | c2) & Rune3; 139 l = ((((((c << Bitx) | c1) << Bitx) | c2) << Bitx) | c3) & Rune4; 169 int c, c1, c2, c3; local 186 c1 = *(uchar*)(str+1) ^ Tx; 187 if(c1 & Testx) 192 l = ((c << Bitx) | c1) & Rune2 [all...] |
/external/chromium_org/third_party/libvpx/source/libvpx/vp8/common/mips/dspr2/ |
idctllm_dspr2.c | 47 int a1, b1, c1, d1; local 67 c1 = temp1 - temp2; 83 op[4] = b1 + c1; 84 op[8] = b1 - c1; 99 c1 = temp1 - temp2; 115 op[6] = b1 + c1; 116 op[10] = b1 - c1; 137 c1 = temp1 - temp2; 153 op[1] = (b1 + c1 + 4) >> 3; 154 op[2] = (b1 - c1 + 4) >> 3 285 int a1, b1, c1, d1; local [all...] |
/external/chromium_org/third_party/libvpx/source/libvpx/vp8/encoder/ |
encodemv.c | 269 const int c1 = events [mv_max + j]; /* positive */ local 271 const int c = c1 + c2; 274 sign_ct [0] += c1;
|
ssim.c | 81 int64_t c1, c2; local 84 c1 = (cc1*count*count)>>12; 87 ssim_n = (2*sum_s*sum_r+ c1)*((int64_t) 2*count*sum_sxr- 90 ssim_d = (sum_s*sum_s +sum_r*sum_r+c1)* 119 int64_t c1, c2; local 122 c1 = cc1*16; 126 ssim_n1 = (2*sum_s*sum_r+ c1); 130 ssim_d1 =((int64_t)sum_s*sum_s +(int64_t)sum_r*sum_r+c1);
|
/external/chromium_org/third_party/mesa/src/src/mesa/swrast/ |
s_zoom.c | 54 GLint c0, c1, r0, r1; local 60 * Compute destination columns: [c0, c1) 63 c1 = imageX + (GLint) ((spanX + width - imageX) * ctx->Pixel.ZoomX); 64 if (c1 < c0) { 66 GLint tmp = c1; 67 c1 = c0; 71 c1 = CLAMP(c1, fb->_Xmin, fb->_Xmax); 72 if (c0 == c1) { 94 *x1 = c1; [all...] |
/external/chromium_org/third_party/re2/util/ |
rune.cc | 51 int c, c1, c2, c3; local 68 c1 = *(unsigned char*)(str+1) ^ Tx; 69 if(c1 & Testx) 74 l = ((c << Bitx) | c1) & Rune2; 89 l = ((((c << Bitx) | c1) << Bitx) | c2) & Rune3; 104 l = ((((((c << Bitx) | c1) << Bitx) | c2) << Bitx) | c3) & Rune4; 233 long c1; local 241 c1 = *(unsigned char*)s; 242 if(c1 < Runeself) { /* one byte rune */ 243 if(c1 == 0 [all...] |
/external/chromium_org/third_party/skia/tests/ |
GpuColorFilterTest.cpp | 61 const SkColor c1 = SkColorSetARGB(200, 200, 200, 200); local 63 const GrColor gr_c1 = SkColor2GrColor(c1); 74 { kR, gr_white, c1, SkXfermode::kClear_Mode, kRGBA, gr_black }, 77 { kRGBA, gr_c2, c1, SkXfermode::kSrc_Mode, kRGBA, gr_c1 }, 78 { kA, gr_c1, c1, SkXfermode::kSrc_Mode, kRGBA, gr_c1 },
|
/external/chromium_org/third_party/skia/tools/ |
skdiff.cpp | 143 static inline bool colors_match_thresholded(SkPMColor c0, SkPMColor c1, const int threshold) { 144 int da = SkGetPackedA32(c0) - SkGetPackedA32(c1); 145 int dr = SkGetPackedR32(c0) - SkGetPackedR32(c1); 146 int dg = SkGetPackedG32(c0) - SkGetPackedG32(c1); 147 int db = SkGetPackedB32(c0) - SkGetPackedB32(c1); 180 SkPMColor c1 = *dr->fComparison.fBitmap.getAddr32(x, y); local 181 SkPMColor outputDifference = diffFunction(c0, c1); 182 uint32_t thisA = SkAbs32(SkGetPackedA32(c0) - SkGetPackedA32(c1)); 183 uint32_t thisR = SkAbs32(SkGetPackedR32(c0) - SkGetPackedR32(c1)); 184 uint32_t thisG = SkAbs32(SkGetPackedG32(c0) - SkGetPackedG32(c1)); [all...] |
/external/chromium_org/third_party/smhasher/src/ |
MurmurHash3.cpp | 102 const uint32_t c1 = 0xcc9e2d51; local 114 k1 *= c1; 135 k1 *= c1; k1 = ROTL32(k1,15); k1 *= c2; h1 ^= k1; 161 const uint32_t c1 = 0x239b961b; local 178 k1 *= c1; k1 = ROTL32(k1,15); k1 *= c2; h1 ^= k1; 190 k4 *= c4; k4 = ROTL32(k4,18); k4 *= c1; h4 ^= k4; 210 k4 *= c4; k4 = ROTL32(k4,18); k4 *= c1; h4 ^= k4; 228 k1 *= c1; k1 = ROTL32(k1,15); k1 *= c2; h1 ^= k1; 264 const uint64_t c1 = BIG_CONSTANT(0x87c37b91114253d5); local 277 k1 *= c1; k1 = ROTL64(k1,31); k1 *= c2; h1 ^= k1 [all...] |