/frameworks/base/services/tests/servicestests/src/com/android/server/content/ |
D | SyncManagerTest.java | 14 Bundle b2 = new Bundle(); in testSyncExtrasEquals_WithNull() local 17 b2.putString(KEY_1, null); in testSyncExtrasEquals_WithNull() 20 SyncManager.syncExtrasEquals(b1, b2, false /* don't care about system extras */)); in testSyncExtrasEquals_WithNull() 25 Bundle b2 = new Bundle(); in testSyncExtrasEqualsBigger_WithNull() local 28 b2.putString(KEY_1, null); in testSyncExtrasEqualsBigger_WithNull() 31 b2.putString(KEY_2, "bla"); in testSyncExtrasEqualsBigger_WithNull() 34 SyncManager.syncExtrasEquals(b1, b2, false /* don't care about system extras */)); in testSyncExtrasEqualsBigger_WithNull() 39 Bundle b2 = new Bundle(); in testSyncExtrasEqualsFails_differentValues() local 42 b2.putString(KEY_1, null); in testSyncExtrasEqualsFails_differentValues() 45 b2.putString(KEY_2, "ble"); // different key in testSyncExtrasEqualsFails_differentValues() [all …]
|
D | SyncOperationTest.java | 61 Bundle b2 = new Bundle(); in testToKey() local 62 b2.putBoolean("b2", true); in testToKey() 100 b2, in testToKey()
|
/frameworks/native/opengl/libagl/ |
D | matrix.h | 141 GLfixed a2, GLfixed b2, in mla3a() argument 157 "%r"(a2), "r"(b2), in mla3a() 178 …: [a0] "r" (a0),[b0] "r" (b0),[a1] "r" (a1),[b1] "r" (b1),[a2] "r" (a2),[b2] "r" (b2),[c] "r" (c) in mla3a() 187 int64_t(a2)*b2)>>16) + c; in mla3a() 197 GLfixed a2, int32_t b2, in mla3a16() argument 212 "r"(a2), "r"(b2), in mla3a16() 226 accum += int64_t(a2)*int16_t(b2) >> 16; in mla3a16() 265 int16_t b2 = xxb2 & 0xffff; in mla3a16_btb() 268 accum += int64_t(a2)*int16_t(b2) >> 16; in mla3a16_btb() 306 int16_t b2 = (b2xx >> 16) & 0xffff; in mla3a16_btt() [all …]
|
D | dxt.cpp | 103 int b2 = (x >> 8) & 0xff; in swap() local 106 return (uint32_t)((b3 << 24) | (b2 << 16) | (b1 << 8) | b0); in swap() 251 int r2, g2, b2, r3, g3, b3, a3; in decodeDXT1() local 261 b2 = avg23(b0, b1); in decodeDXT1() 270 b2 = (b0 + b1) >> 1; in decodeDXT1() 276 (b2 << 1) | 0x1; in decodeDXT1() 280 c[2] = (r2 << 11) | (g2 << 5) | b2; in decodeDXT1() 375 int b2 = avg23(b0, b1); in decodeDXT3() local 383 c[2] = rgb565SepTo888(r2, g2, b2); in decodeDXT3() 532 int b2 = avg23(b0, b1); in decodeDXT5() local [all …]
|
/frameworks/base/core/java/org/apache/http/conn/ssl/ |
D | AndroidDistinguishedNameParser.java | 322 int b1, b2; in getByte() local 335 b2 = chars[position + 1]; in getByte() 336 if (b2 >= '0' && b2 <= '9') { in getByte() 337 b2 = b2 - '0'; in getByte() 338 } else if (b2 >= 'a' && b2 <= 'f') { in getByte() 339 b2 = b2 - 87; // 87 = 'a' - 10 in getByte() 340 } else if (b2 >= 'A' && b2 <= 'F') { in getByte() 341 b2 = b2 - 55; // 55 = 'A' - 10 in getByte() 346 return (b1 << 4) + b2; in getByte()
|
/frameworks/opt/telephony/src/java/com/google/android/mms/pdu/ |
D | Base64.java | 75 byte b1 = 0, b2 = 0, b3 = 0, b4 = 0, marker0 = 0, marker1 = 0; in decodeBase64() 99 b2 = base64Alphabet[base64Data[dataIndex + 1]]; in decodeBase64() 106 decodedData[encodedIndex] = (byte) (b1 << 2 | b2 >> 4); in decodeBase64() 108 (byte) (((b2 & 0xf) << 4) | ((b3 >> 2) & 0xf)); in decodeBase64() 112 decodedData[encodedIndex] = (byte) (b1 << 2 | b2 >> 4); in decodeBase64() 117 decodedData[encodedIndex] = (byte) (b1 << 2 | b2 >> 4); in decodeBase64() 119 (byte) (((b2 & 0xf) << 4) | ((b3 >> 2) & 0xf)); in decodeBase64()
|
/frameworks/base/core/java/android/hardware/ |
D | GeomagneticField.java | 309 float b2 = EARTH_SEMI_MINOR_AXIS_KM * EARTH_SEMI_MINOR_AXIS_KM; in computeGeocentricCoordinates() local 315 (float) Math.sqrt(a2 * clat * clat + b2 * slat * slat); in computeGeocentricCoordinates() 317 mGcLatitudeRad = (float) Math.atan(tlat * (latRad * altitudeKm + b2) in computeGeocentricCoordinates() 324 b2 * slat * slat) in computeGeocentricCoordinates() 325 + (a2 * a2 * clat * clat + b2 * b2 * slat * slat) in computeGeocentricCoordinates() 326 / (a2 * clat * clat + b2 * slat * slat); in computeGeocentricCoordinates()
|
/frameworks/base/core/java/android/content/ |
D | PeriodicSync.java | 138 public static boolean syncExtrasEquals(Bundle b1, Bundle b2) { in syncExtrasEquals() argument 139 if (b1.size() != b2.size()) { in syncExtrasEquals() 146 if (!b2.containsKey(key)) { in syncExtrasEquals() 151 if (!Objects.equals(b1.get(key), b2.get(key))) { in syncExtrasEquals()
|
/frameworks/av/media/libstagefright/colorconversion/ |
D | ColorConverter.cpp | 171 signed b2 = (tmp2 + u_b) / 256; in convertCbYCrY() local 183 | (kAdjustedClip[b2] >> 3); in convertCbYCrY() 259 signed b2 = (tmp2 + u_b) / 256; in convertYUV420Planar() local 271 | (kAdjustedClip[b2] >> 3); in convertYUV420Planar() 332 signed b2 = (tmp2 + u_b) / 256; in convertQCOMYUV420SemiPlanar() local 342 ((kAdjustedClip[b2] >> 3) << 11) in convertQCOMYUV420SemiPlanar() 406 signed b2 = (tmp2 + u_b) / 256; in convertYUV420SemiPlanar() local 416 ((kAdjustedClip[b2] >> 3) << 11) in convertYUV420SemiPlanar() 476 signed b2 = (tmp2 + u_b) / 256; in convertTIYUV420PackedSemiPlanar() local 488 | (kAdjustedClip[b2] >> 3); in convertTIYUV420PackedSemiPlanar()
|
/frameworks/base/tools/aapt2/util/ |
D | BigBuffer_test.cpp | 36 char* b2 = buffer.nextBlock<char>(4); in TEST() local 37 EXPECT_NE(nullptr, b2); in TEST() 39 EXPECT_EQ(b1 + 8, b2); in TEST()
|
D | StringPiece.h | 183 const char* b2 = rhs.mData != nullptr ? rhs.mData : &nullStr; in compare() local 184 const char* e2 = b2 + rhs.mLength; in compare() 186 while (b1 < e1 && b2 < e2) { in compare() 187 const int d = static_cast<int>(*b1++) - static_cast<int>(*b2++); in compare() 215 const char16_t* b2 = rhs.mData != nullptr ? rhs.mData : &nullStr; in compare() local 216 return strzcmp16(b1, mLength, b2, rhs.mLength); in compare()
|
/frameworks/base/core/java/android/net/ |
D | SntpClient.java | 218 byte b2 = buffer[offset+2]; in read32() 224 int i2 = ((b2 & 0x80) == 0x80 ? (b2 & 0x7F) + 0x80 : b2); in read32()
|
/frameworks/base/nfc-extras/tests/src/com/android/nfc_extras/tests/ |
D | BasicNfcEeTest.java | 111 private static void assertByteArrayEquals(byte[] b1, byte[] b2) { in assertByteArrayEquals() argument 112 assertEquals(b1.length, b2.length); in assertByteArrayEquals() 114 assertEquals(b1[i], b2[i]); in assertByteArrayEquals()
|
/frameworks/rs/java/tests/ScriptGroupTest/src/com/android/rs/sgtest/ |
D | Filters.java | 380 ScriptGroup.Builder2 b2 = new ScriptGroup.Builder2(mRS); in createTest() local 383 mFilters[i].prepInit(b2); in createTest() 386 ScriptGroup.Input in = b2.addInput(); in createTest() 388 ScriptGroup.Closure c = b2.addKernel(s_uc2f.getKernelID_uc4tof4(), in createTest() 392 c = mFilters[i].asyncLaunch(b2, c.getReturn(), connect); in createTest() 395 c = b2.addKernel(s_f2uc.getKernelID_f4touc4(), in createTest() 401 mGroup2 = b2.create(name, c.getReturn()); in createTest()
|
/frameworks/base/media/java/android/media/ |
D | ThumbnailUtils.java | 374 Bitmap b2 = Bitmap.createBitmap(targetWidth, targetHeight, in transform() local 376 Canvas c = new Canvas(b2); in transform() 397 return b2; in transform() 437 Bitmap b2 = Bitmap.createBitmap( in transform() local 444 if (b2 != b1) { in transform() 450 return b2; in transform()
|
/frameworks/native/opengl/libs/ETC1/ |
D | etc1.cpp | 203 int r1, r2, g1, g2, b1, b2; in etc1_decode_block() local 214 b2 = convertDiff(bBase, high >> 8); in etc1_decode_block() 222 b2 = convert4To8(high >> 8); in etc1_decode_block() 230 decode_subblock(pOut, r2, g2, b2, tableB, low, true, flipped); in etc1_decode_block() 379 int r1, g1, b1, r2, g2, b2; // 8 bit base colors for sub-blocks in etc_encodeBaseColors() local 402 b2 = convert5To8(b51 + db); in etc_encodeBaseColors() 420 b2 = convert4To8(b42); in etc_encodeBaseColors() 429 pBaseColors[5] = b2; in etc_encodeBaseColors()
|
/frameworks/av/media/libeffects/testlibs/ |
D | AudioBiquadFilter.cpp | 158 const audio_coef_t b2 = mCoefs[2]; in process_normal_mono() local 166 acc = mac_coef_sample(b2, x2, acc); in process_normal_mono() 205 const audio_coef_t b2 = mCoefs[2]; in process_normal_multi() local 219 acc = mac_coef_sample(b2, x2, acc); in process_normal_multi()
|
/frameworks/base/core/java/android/bluetooth/ |
D | BluetoothGattCharacteristic.java | 710 private int unsignedBytesToInt(byte b0, byte b1, byte b2, byte b3) { in unsignedBytesToInt() argument 712 + (unsignedByteToInt(b2) << 16) + (unsignedByteToInt(b3) << 24); in unsignedBytesToInt() 728 private float bytesToFloat(byte b0, byte b1, byte b2, byte b3) { in bytesToFloat() argument 731 + (unsignedByteToInt(b2) << 16), 24); in bytesToFloat()
|
/frameworks/base/core/tests/coretests/src/android/os/ |
D | AidlTest.java | 290 boolean[] b2 = new boolean[]{true, false, true}; in testArrays() 291 boolean[] br = mRemote.booleanArray(b0, b1, b2); in testArrays() 299 assertTrue(b2[0]); in testArrays() 300 assertFalse(b2[1]); in testArrays() 301 assertTrue(b2[2]); in testArrays()
|
D | PerformanceCollectorTest.java | 477 private void assertEqualsBundle(Bundle b1, Bundle b2) { in assertEqualsBundle() argument 478 assertEquals(b1.keySet(), b2.keySet()); in assertEqualsBundle() 480 assertEquals(b1.get(key), b2.get(key)); in assertEqualsBundle()
|
/frameworks/rs/java/tests/SampleTest/src/com/android/rs/sample/ |
D | SampleRSActivity.java | 148 Bitmap b2 = Bitmap.createBitmap(b.getWidth(), b.getHeight(), b.getConfig()); in loadBitmap() local 149 Canvas c = new Canvas(b2); in loadBitmap() 152 return b2; in loadBitmap()
|
/frameworks/base/services/core/java/com/android/server/am/ |
D | NativeCrashListener.java | 171 int b0, b1, b2, b3; in unpackInt() local 175 b2 = ((int) buf[offset+2]) & 0xFF; in unpackInt() 177 return (b0 << 24) | (b1 << 16) | (b2 << 8) | b3; in unpackInt()
|
/frameworks/base/services/core/java/com/android/server/ |
D | AssetAtlasService.java | 157 public int compare(Bitmap b1, Bitmap b2) { in AssetAtlasService() 158 if (b1.getWidth() == b2.getWidth()) { in AssetAtlasService() 159 return b2.getHeight() - b1.getHeight(); in AssetAtlasService() 161 return b2.getWidth() - b1.getWidth(); in AssetAtlasService()
|
/frameworks/base/core/tests/coretests/src/android/net/ |
D | IpPrefixTest.java | 65 byte[] b2 = {1, 2, 3, 4, 5}; in testConstructor() 66 p = new IpPrefix(b2, 29); in testConstructor()
|
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/android/ |
D | BridgeWindow.java | 53 boolean b, Configuration configuration, Rect rect7, boolean b2, boolean b3) in resized() argument
|