Home
last modified time | relevance | path

Searched refs:b1 (Results 1 – 25 of 28) sorted by relevance

12

/frameworks/base/services/tests/servicestests/src/com/android/server/content/
DSyncManagerTest.java13 Bundle b1 = new Bundle(); in testSyncExtrasEquals_WithNull() local
16 b1.putString(KEY_1, null); in testSyncExtrasEquals_WithNull()
20 SyncManager.syncExtrasEquals(b1, b2, false /* don't care about system extras */)); in testSyncExtrasEquals_WithNull()
24 Bundle b1 = new Bundle(); in testSyncExtrasEqualsBigger_WithNull() local
27 b1.putString(KEY_1, null); in testSyncExtrasEqualsBigger_WithNull()
30 b1.putString(KEY_2, "bla"); in testSyncExtrasEqualsBigger_WithNull()
34 SyncManager.syncExtrasEquals(b1, b2, false /* don't care about system extras */)); in testSyncExtrasEqualsBigger_WithNull()
38 Bundle b1 = new Bundle(); in testSyncExtrasEqualsFails_differentValues() local
41 b1.putString(KEY_1, null); in testSyncExtrasEqualsFails_differentValues()
44 b1.putString(KEY_2, "bla"); in testSyncExtrasEqualsFails_differentValues()
[all …]
DSyncOperationTest.java60 Bundle b1 = new Bundle(); in testToKey() local
68 b1, in testToKey()
76 b1, in testToKey()
84 b1, in testToKey()
92 b1, in testToKey()
112 Bundle b1 = new Bundle(); in testConversionToExtras() local
113 b1.putParcelable("acc", account1); in testConversionToExtras()
114 b1.putString("str", "String"); in testConversionToExtras()
120 b1, in testConversionToExtras()
/frameworks/native/opengl/libagl/
Dmatrix.h111 GLfixed a1, GLfixed b1, in mla2a() argument
125 "%r"(a1), "r"(b1), in mla2a()
134 int64_t(a1)*b1)>>16) + c; in mla2a()
140 GLfixed a1, GLfixed b1, in mla3a() argument
156 "%r"(a1), "r"(b1), 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()
186 int64_t(a1)*b1 + in mla3a()
223 int16_t b1 = (b1b0 >> 16) & 0xffff; in mla3a16()
225 accum += int64_t(a1)*int16_t(b1) >> 16; in mla3a16()
264 int16_t b1 = (b1b0 >> 16) & 0xffff; in mla3a16_btb()
[all …]
Ddxt.cpp102 int b1 = (x >> 16) & 0xff; in swap() local
106 return (uint32_t)((b3 << 24) | (b2 << 16) | (b1 << 8) | b0); in swap()
241 int b1 = blue(color1); in decodeDXT1() local
245 c[1] = (r1 << 11) | ((g1 >> 1) << 6) | (b1 << 1) | 0x1; in decodeDXT1()
261 b2 = avg23(b0, b1); in decodeDXT1()
265 b3 = avg23(b1, b0); in decodeDXT1()
270 b2 = (b0 + b1) >> 1; in decodeDXT1()
371 int b1 = blue(color1); in decodeDXT3() local
375 int b2 = avg23(b0, b1); in decodeDXT3()
379 int b3 = avg23(b1, b0); in decodeDXT3()
[all …]
/frameworks/base/tools/aapt2/util/
DBigBuffer_test.cpp33 char* b1 = buffer.nextBlock<char>(8); in TEST() local
34 EXPECT_NE(nullptr, b1); in TEST()
39 EXPECT_EQ(b1 + 8, b2); in TEST()
52 uint32_t* b1 = buffer.nextBlock<uint32_t>(); in TEST() local
53 ASSERT_NE(nullptr, b1); in TEST()
54 *b1 = 33; in TEST()
58 b1 = buffer2.nextBlock<uint32_t>(); in TEST()
59 ASSERT_NE(nullptr, b1); in TEST()
60 *b1 = 44; in TEST()
DStringPiece.h181 const char* b1 = mData != nullptr ? mData : &nullStr; in compare() local
182 const char* e1 = b1 + 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()
214 const char16_t* b1 = mData != nullptr ? mData : &nullStr; in compare() local
216 return strzcmp16(b1, mLength, b2, rhs.mLength); in compare()
/frameworks/base/core/java/org/apache/http/conn/ssl/
DAndroidDistinguishedNameParser.java322 int b1, b2; in getByte() local
324 b1 = chars[position]; in getByte()
325 if (b1 >= '0' && b1 <= '9') { in getByte()
326 b1 = b1 - '0'; in getByte()
327 } else if (b1 >= 'a' && b1 <= 'f') { in getByte()
328 b1 = b1 - 87; // 87 = 'a' - 10 in getByte()
329 } else if (b1 >= 'A' && b1 <= 'F') { in getByte()
330 b1 = b1 - 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()
98 b1 = base64Alphabet[base64Data[dataIndex]]; in decodeBase64()
106 decodedData[encodedIndex] = (byte) (b1 << 2 | b2 >> 4); in decodeBase64()
112 decodedData[encodedIndex] = (byte) (b1 << 2 | b2 >> 4); in decodeBase64()
117 decodedData[encodedIndex] = (byte) (b1 << 2 | b2 >> 4); in decodeBase64()
/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()
142 if (b1.isEmpty()) { in syncExtrasEquals()
145 for (String key : b1.keySet()) { in syncExtrasEquals()
151 if (!Objects.equals(b1.get(key), b2.get(key))) { in syncExtrasEquals()
/frameworks/base/core/java/android/bluetooth/
DBluetoothGattCharacteristic.java703 private int unsignedBytesToInt(byte b0, byte b1) { in unsignedBytesToInt() argument
704 return (unsignedByteToInt(b0) + (unsignedByteToInt(b1) << 8)); in unsignedBytesToInt()
710 private int unsignedBytesToInt(byte b0, byte b1, byte b2, byte b3) { in unsignedBytesToInt() argument
711 return (unsignedByteToInt(b0) + (unsignedByteToInt(b1) << 8)) in unsignedBytesToInt()
718 private float bytesToFloat(byte b0, byte b1) { in bytesToFloat() argument
720 + ((unsignedByteToInt(b1) & 0x0F) << 8), 12); in bytesToFloat()
721 int exponent = unsignedToSigned(unsignedByteToInt(b1) >> 4, 4); in bytesToFloat()
728 private float bytesToFloat(byte b0, byte b1, byte b2, byte b3) { in bytesToFloat() argument
730 + (unsignedByteToInt(b1) << 8) in bytesToFloat()
/frameworks/base/media/java/android/media/
DThumbnailUtils.java421 Bitmap b1; in transform() local
424 b1 = Bitmap.createBitmap(source, 0, 0, in transform()
427 b1 = source; in transform()
430 if (recycle && b1 != source) { in transform()
434 int dx1 = Math.max(0, b1.getWidth() - targetWidth); in transform()
435 int dy1 = Math.max(0, b1.getHeight() - targetHeight); in transform()
438 b1, in transform()
444 if (b2 != b1) { in transform()
445 if (recycle || b1 != source) { in transform()
446 b1.recycle(); in transform()
/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()
113 for (int i = 0; i < b1.length; i++) { in assertByteArrayEquals()
114 assertEquals(b1[i], b2[i]); in assertByteArrayEquals()
/frameworks/av/media/libstagefright/colorconversion/
DColorConverter.cpp166 signed b1 = (tmp1 + u_b) / 256; in convertCbYCrY() local
178 | (kAdjustedClip[b1] >> 3); in convertCbYCrY()
254 signed b1 = (tmp1 + u_b) / 256; in convertYUV420Planar() local
266 | (kAdjustedClip[b1] >> 3); in convertYUV420Planar()
327 signed b1 = (tmp1 + u_b) / 256; in convertQCOMYUV420SemiPlanar() local
337 ((kAdjustedClip[b1] >> 3) << 11) in convertQCOMYUV420SemiPlanar()
401 signed b1 = (tmp1 + u_b) / 256; in convertYUV420SemiPlanar() local
411 ((kAdjustedClip[b1] >> 3) << 11) in convertYUV420SemiPlanar()
471 signed b1 = (tmp1 + u_b) / 256; in convertTIYUV420PackedSemiPlanar() local
483 | (kAdjustedClip[b1] >> 3); in convertTIYUV420PackedSemiPlanar()
/frameworks/base/core/java/android/net/
DSntpClient.java217 byte b1 = buffer[offset+1]; in read32()
223 int i1 = ((b1 & 0x80) == 0x80 ? (b1 & 0x7F) + 0x80 : b1); in read32()
/frameworks/native/opengl/libs/ETC1/
Detc1.cpp203 int r1, r2, g1, g2, b1, b2; in etc1_decode_block() local
213 b1 = convert5To8(bBase); in etc1_decode_block()
221 b1 = convert4To8(high >> 12); in etc1_decode_block()
229 decode_subblock(pOut, r1, g1, b1, tableA, low, false, flipped); in etc1_decode_block()
379 int r1, g1, b1, r2, g2, b2; // 8 bit base colors for sub-blocks in etc_encodeBaseColors() local
391 b1 = convert5To8(b51); in etc_encodeBaseColors()
417 b1 = convert4To8(b41); in etc_encodeBaseColors()
426 pBaseColors[2] = b1; in etc_encodeBaseColors()
/frameworks/av/media/libeffects/testlibs/
DAudioBiquadFilter.cpp157 const audio_coef_t b1 = mCoefs[1]; in process_normal_mono() local
165 acc = mac_coef_sample(b1, x1, acc); in process_normal_mono()
204 const audio_coef_t b1 = mCoefs[1]; in process_normal_multi() local
218 acc = mac_coef_sample(b1, x1, acc); in process_normal_multi()
/frameworks/base/services/core/java/com/android/server/am/
DNativeCrashListener.java171 int b0, b1, b2, b3; in unpackInt() local
174 b1 = ((int) buf[offset+1]) & 0xFF; in unpackInt()
177 return (b0 << 24) | (b1 << 16) | (b2 << 8) | b3; in unpackInt()
/frameworks/base/core/tests/coretests/src/android/os/
DAidlTest.java289 boolean[] b1 = new boolean[]{false, true}; in testArrays()
291 boolean[] br = mRemote.booleanArray(b0, b1, b2); in testArrays()
296 assertTrue(b1[0]); in testArrays()
297 assertFalse(b1[1]); in testArrays()
DPerformanceCollectorTest.java477 private void assertEqualsBundle(Bundle b1, Bundle b2) { in assertEqualsBundle() argument
478 assertEquals(b1.keySet(), b2.keySet()); in assertEqualsBundle()
479 for (String key : b1.keySet()) { in assertEqualsBundle()
480 assertEquals(b1.get(key), b2.get(key)); in assertEqualsBundle()
/frameworks/base/packages/DocumentsUI/tests/src/com/android/documentsui/dirlist/
DModelTest.java147 BitSet b1 = new BitSet(ITEM_COUNT); in testModelIdIsUnique() local
160 b1.set(Integer.parseInt(docId)); in testModelIdIsUnique()
168 assertEquals(ITEM_COUNT, b1.cardinality()); in testModelIdIsUnique()
/frameworks/base/packages/Osu/src/com/android/hotspot2/utils/
DHTTPResponse.java177 private static boolean equals(byte[] b1, int offset, byte[] pattern) { in equals() argument
179 if (b1[n + offset] != pattern[n]) { in equals()
/frameworks/base/services/core/java/com/android/server/
DAssetAtlasService.java157 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/av/media/libstagefright/codecs/on2/h264dec/source/
Dh264bsd_reconstruct.c1223 i32 *ptrC, *ptrV, *b1; in h264bsdInterpolateMidHalf() local
1247 b1 = table; in h264bsdInterpolateMidHalf()
1272 *b1++ = tmp6; in h264bsdInterpolateMidHalf()
1282 *b1++ = tmp5; in h264bsdInterpolateMidHalf()
1292 *b1++ = tmp4; in h264bsdInterpolateMidHalf()
1302 *b1++ = tmp3; in h264bsdInterpolateMidHalf()
1410 i32 *ptrC, *ptrV, *ptrInt, *b1; in h264bsdInterpolateMidVerQuarter() local
1434 b1 = table; in h264bsdInterpolateMidVerQuarter()
1457 *b1++ = tmp6; in h264bsdInterpolateMidVerQuarter()
1467 *b1++ = tmp5; in h264bsdInterpolateMidVerQuarter()
[all …]
/frameworks/base/graphics/tests/graphicstests/src/android/graphics/
DBitmapTest.java222 int b1 = Color.blue(c1); in testSetPixelsWithNonOpaqueAlpha() local
224 assertTrue("blue", Math.abs(bb - b1) <= tolerance); in testSetPixelsWithNonOpaqueAlpha()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/scanner/
DBackgroundScanScheduler.java253 public int compare(Bucket b1, Bucket b2) {
254 return b1.period - b2.period;

12