Home
last modified time | relevance | path

Searched refs:b2 (Results 1 – 25 of 36) sorted by relevance

12

/frameworks/base/services/tests/servicestests/src/com/android/server/content/
DSyncManagerTest.java37 Bundle b2 = new Bundle(); in testSyncExtrasEquals_WithNull() local
40 b2.putString(KEY_1, null); in testSyncExtrasEquals_WithNull()
43 SyncManager.syncExtrasEquals(b1, b2, false /* don't care about system extras */)); in testSyncExtrasEquals_WithNull()
48 Bundle b2 = new Bundle(); in testSyncExtrasEqualsBigger_WithNull() local
51 b2.putString(KEY_1, null); in testSyncExtrasEqualsBigger_WithNull()
54 b2.putString(KEY_2, "bla"); in testSyncExtrasEqualsBigger_WithNull()
57 SyncManager.syncExtrasEquals(b1, b2, false /* don't care about system extras */)); in testSyncExtrasEqualsBigger_WithNull()
62 Bundle b2 = new Bundle(); in testSyncExtrasEqualsFails_differentValues() local
65 b2.putString(KEY_1, null); in testSyncExtrasEqualsFails_differentValues()
68 b2.putString(KEY_2, "ble"); // different key in testSyncExtrasEqualsFails_differentValues()
[all …]
DSyncOperationTest.java54 Bundle b2 = new Bundle(); in testToKey() local
55 b2.putBoolean("b2", true); in testToKey()
93 b2, in testToKey()
/frameworks/native/opengl/libagl/
Dmatrix.h141 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 …]
Ddxt.cpp103 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/
DAndroidDistinguishedNameParser.java322 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/
DBase64.java75 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/services/usb/java/com/android/server/usb/descriptors/
DByteStream.java154 int b2 = getUnsignedByte(); in unpackUsbTriple() local
155 return (b2 << 16) | (b1 << 8) | b0; in unpackUsbTriple()
170 int b2 = getUnsignedByte(); in unpackUsbInt() local
172 return (b3 << 24) | (b2 << 16) | (b1 << 8) | b0; in unpackUsbInt()
/frameworks/av/media/libstagefright/colorconversion/
DColorConverter.cpp205 signed b2 = (tmp2 + u_b) / 256; in convertCbYCrY() local
217 | (kAdjustedClip[b2] >> 3); in convertCbYCrY()
280 signed r2, signed g2, signed b2) { in writeToDst() argument
293 | (kAdjustedClip[b2] >> 3); in writeToDst()
313 | (kAdjustedClip[b2] << 16) in writeToDst()
328 (kAdjustedClip[b2]) in writeToDst()
399 signed b2 = (tmp2 + u_b) / 256; in convertYUV420Planar() local
405 kAdjustedClip, uncropped, r1, g1, b1, r2, g2, b2); in convertYUV420Planar()
460 signed b2 = (tmp2 + u_b) / 256; in convertQCOMYUV420SemiPlanar() local
470 ((kAdjustedClip[b2] >> 3) << 11) in convertQCOMYUV420SemiPlanar()
[all …]
/frameworks/base/core/java/android/hardware/
DGeomagneticField.java309 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/
DPeriodicSync.java138 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/base/tools/aapt2/util/
DBigBuffer_test.cpp38 char* b2 = buffer.NextBlock<char>(4); in TEST() local
39 EXPECT_THAT(b2, NotNull()); in TEST()
41 EXPECT_EQ(b1 + 8, b2); in TEST()
/frameworks/base/nfc-extras/tests/src/com/android/nfc_extras/tests/
DBasicNfcEeTest.java111 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/base/core/java/android/net/
DSntpClient.java222 byte b2 = buffer[offset+2]; in read32()
228 int i2 = ((b2 & 0x80) == 0x80 ? (b2 & 0x7F) + 0x80 : b2); in read32()
/frameworks/base/libs/androidfw/include/androidfw/
DStringPiece.h187 const char* b2 = rhs.data_ != nullptr ? rhs.data_ : &nullStr; in compare() local
188 const char* e2 = b2 + rhs.length_; in compare()
190 while (b1 < e1 && b2 < e2) { in compare()
191 const int d = static_cast<int>(*b1++) - static_cast<int>(*b2++); in compare()
227 const char16_t* b2 = rhs.data_ != nullptr ? rhs.data_ : &nullStr; in compare() local
228 return strzcmp16(b1, length_, b2, rhs.length_); in compare()
/frameworks/rs/tests/java_api/ScriptGroupTest/src/com/android/rs/sgtest/
DFilters.java380 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/
DThumbnailUtils.java374 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/
Detc1.cpp203 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/
DAudioBiquadFilter.cpp158 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/tests/net/java/com/android/internal/util/
DBitUtilsTest.java100 static byte[] bytes(int b1, int b2, int b3, int b4) { in bytes() argument
101 return new byte[] {b(b1), b(b2), b(b3), b(b4)}; in bytes()
/frameworks/base/core/java/android/bluetooth/
DBluetoothGattCharacteristic.java718 private int unsignedBytesToInt(byte b0, byte b1, byte b2, byte b3) { in unsignedBytesToInt() argument
720 + (unsignedByteToInt(b2) << 16) + (unsignedByteToInt(b3) << 24); in unsignedBytesToInt()
736 private float bytesToFloat(byte b0, byte b1, byte b2, byte b3) { in bytesToFloat() argument
739 + (unsignedByteToInt(b2) << 16), 24); in bytesToFloat()
/frameworks/base/core/tests/coretests/src/android/os/
DAidlTest.java290 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()
/frameworks/base/services/core/java/com/android/server/am/
DNativeCrashListener.java166 int b0, b1, b2, b3; in unpackInt() local
170 b2 = ((int) buf[offset+2]) & 0xFF; in unpackInt()
172 return (b0 << 24) | (b1 << 16) | (b2 << 8) | b3; in unpackInt()
/frameworks/rs/tests/java_api/SampleTest/src/com/android/rs/sample/
DSampleRSActivity.java148 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/layoutlib/bridge/src/com/android/layoutlib/bridge/android/
DBridgeWindow.java53 boolean b, MergedConfiguration mergedConfig, Rect rect7, boolean b2, boolean b3, int i0) in resized() argument
/frameworks/av/media/libstagefright/include/media/stagefright/
DColorConverter.h90 signed r2, signed g2, signed b2);

12