/frameworks/base/services/tests/servicestests/src/com/android/server/content/ |
D | SyncManagerTest.java | 37 Bundle b1 = new Bundle(); in testSyncExtrasEquals_WithNull() local 40 b1.putString(KEY_1, null); in testSyncExtrasEquals_WithNull() 44 SyncManager.syncExtrasEquals(b1, b2, false /* don't care about system extras */)); in testSyncExtrasEquals_WithNull() 48 Bundle b1 = new Bundle(); in testSyncExtrasEqualsBigger_WithNull() local 51 b1.putString(KEY_1, null); in testSyncExtrasEqualsBigger_WithNull() 54 b1.putString(KEY_2, "bla"); in testSyncExtrasEqualsBigger_WithNull() 58 SyncManager.syncExtrasEquals(b1, b2, false /* don't care about system extras */)); in testSyncExtrasEqualsBigger_WithNull() 62 Bundle b1 = new Bundle(); in testSyncExtrasEqualsFails_WithNull() local 63 b1.putBoolean(ContentResolver.SYNC_EXTRAS_MANUAL, true); in testSyncExtrasEqualsFails_WithNull() 64 b1.putBoolean(ContentResolver.SYNC_EXTRAS_EXPEDITED, true); in testSyncExtrasEqualsFails_WithNull() [all …]
|
D | SyncOperationTest.java | 54 Bundle b1 = new Bundle(); in testToKey() local 62 b1, in testToKey() 71 b1, in testToKey() 80 b1, in testToKey() 89 b1, in testToKey() 111 Bundle b1 = new Bundle(); in testConversionToExtras() local 112 b1.putParcelable("acc", account1); in testConversionToExtras() 113 b1.putString("str", "String"); in testConversionToExtras() 119 b1, in testConversionToExtras() 160 Bundle b1 = new Bundle(); in testScheduleAsEjIsInExtras() local [all …]
|
/frameworks/base/tools/aapt2/util/ |
D | BigBuffer_test.cpp | 35 char* b1 = buffer.NextBlock<char>(8); in TEST() local 36 EXPECT_THAT(b1, NotNull()); in TEST() 41 EXPECT_EQ(b1 + 8, b2); in TEST() 54 uint32_t* b1 = buffer.NextBlock<uint32_t>(); in TEST() local 55 ASSERT_THAT(b1, NotNull()); in TEST() 56 *b1 = 33; in TEST() 60 b1 = buffer2.NextBlock<uint32_t>(); in TEST() 61 ASSERT_THAT(b1, NotNull()); in TEST() 62 *b1 = 44; in TEST()
|
/frameworks/base/core/java/org/apache/http/conn/ssl/ |
D | AndroidDistinguishedNameParser.java | 322 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/base/services/usb/java/com/android/server/usb/descriptors/ |
D | ByteStream.java | 135 int b1 = getUnsignedByte(); in unpackUsbShort() local 136 return (b1 << 8) | b0; in unpackUsbShort() 153 int b1 = getUnsignedByte(); in unpackUsbTriple() local 155 return (b2 << 16) | (b1 << 8) | b0; in unpackUsbTriple() 169 int b1 = getUnsignedByte(); in unpackUsbInt() local 172 return (b3 << 24) | (b2 << 16) | (b1 << 8) | b0; in unpackUsbInt()
|
/frameworks/base/core/java/com/android/internal/graphics/palette/ |
D | WuQuantizer.java | 190 firstBox.b1 = MAX_INDEX; in createBoxes() 246 mMoments[getIndex(cube.r1, cube.g1, cube.b1)] in variance() 248 - mMoments[getIndex(cube.r1, cube.g0, cube.b1)] in variance() 250 - mMoments[getIndex(cube.r0, cube.g1, cube.b1)] in variance() 252 + mMoments[getIndex(cube.r0, cube.g0, cube.b1)] in variance() 272 maximize(one, Direction.BLUE, one.b0 + 1, one.b1, wholeR, wholeG, wholeB, wholeW); in cut() 290 two.b1 = one.b1; in cut() 306 one.b1 = maxBResult.mCutLocation; in cut() 309 two.b0 = one.b1; in cut() 315 one.vol = (one.r1 - one.r0) * (one.g1 - one.g0) * (one.b1 - one.b0); in cut() [all …]
|
/frameworks/base/core/tests/coretests/src/android/app/appsearch/external/util/ |
D | BundleUtilTest.java | 106 Bundle b1 = new Bundle(); in testDeepEquals_nestedNotEquals() local 107 b1.putParcelableArrayList("key", listOne); in testDeepEquals_nestedNotEquals() 113 assertThat(b1).isNotEqualTo(b1Clone); in testDeepEquals_nestedNotEquals() 114 assertThat(BundleUtil.deepEquals(b1, b1Clone)).isTrue(); in testDeepEquals_nestedNotEquals() 115 assertThat(BundleUtil.deepEquals(b1, b2)).isFalse(); in testDeepEquals_nestedNotEquals() 137 Bundle b1 = new Bundle(); in testDeepEquals_sparseArray() local 138 b1.putSparseParcelableArray("array1", array1); in testDeepEquals_sparseArray() 144 assertThat(b1).isNotEqualTo(b1Clone); in testDeepEquals_sparseArray() 145 assertThat(BundleUtil.deepEquals(b1, b1Clone)).isTrue(); in testDeepEquals_sparseArray() 146 assertThat(BundleUtil.deepEquals(b1, b2)).isFalse(); in testDeepEquals_sparseArray() [all …]
|
/frameworks/base/telephony/common/com/google/android/mms/pdu/ |
D | Base64.java | 78 byte b1 = 0, b2 = 0, b3 = 0, b4 = 0, marker0 = 0, marker1 = 0; in decodeBase64() 101 b1 = base64Alphabet[base64Data[dataIndex]]; in decodeBase64() 109 decodedData[encodedIndex] = (byte) (b1 << 2 | b2 >> 4); in decodeBase64() 115 decodedData[encodedIndex] = (byte) (b1 << 2 | b2 >> 4); in decodeBase64() 120 decodedData[encodedIndex] = (byte) (b1 << 2 | b2 >> 4); in decodeBase64()
|
/frameworks/base/core/java/android/content/ |
D | PeriodicSync.java | 139 public static boolean syncExtrasEquals(Bundle b1, Bundle b2) { in syncExtrasEquals() argument 140 if (b1.size() != b2.size()) { in syncExtrasEquals() 143 if (b1.isEmpty()) { in syncExtrasEquals() 146 for (String key : b1.keySet()) { in syncExtrasEquals() 152 if (!Objects.equals(b1.get(key), b2.get(key))) { in syncExtrasEquals()
|
/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() 113 for (int i = 0; i < b1.length; i++) { in assertByteArrayEquals() 114 assertEquals(b1[i], b2[i]); in assertByteArrayEquals()
|
/frameworks/base/core/java/android/bluetooth/ |
D | BluetoothGattCharacteristic.java | 723 private int unsignedBytesToInt(byte b0, byte b1) { in unsignedBytesToInt() argument 724 return (unsignedByteToInt(b0) + (unsignedByteToInt(b1) << 8)); in unsignedBytesToInt() 730 private int unsignedBytesToInt(byte b0, byte b1, byte b2, byte b3) { in unsignedBytesToInt() argument 731 return (unsignedByteToInt(b0) + (unsignedByteToInt(b1) << 8)) in unsignedBytesToInt() 738 private float bytesToFloat(byte b0, byte b1) { in bytesToFloat() argument 740 + ((unsignedByteToInt(b1) & 0x0F) << 8), 12); in bytesToFloat() 741 int exponent = unsignedToSigned(unsignedByteToInt(b1) >> 4, 4); in bytesToFloat() 748 private float bytesToFloat(byte b0, byte b1, byte b2, byte b3) { in bytesToFloat() argument 750 + (unsignedByteToInt(b1) << 8) in bytesToFloat()
|
/frameworks/base/media/java/android/media/ |
D | ThumbnailUtils.java | 534 Bitmap b1; in transform() local 537 b1 = Bitmap.createBitmap(source, 0, 0, in transform() 540 b1 = source; in transform() 543 if (recycle && b1 != source) { in transform() 547 int dx1 = Math.max(0, b1.getWidth() - targetWidth); in transform() 548 int dy1 = Math.max(0, b1.getHeight() - targetHeight); in transform() 551 b1, in transform() 557 if (b2 != b1) { in transform() 558 if (recycle || b1 != source) { in transform() 559 b1.recycle(); in transform()
|
/frameworks/av/media/libstagefright/colorconversion/ |
D | ColorConverter.cpp | 293 signed b1 = (tmp1 + u_b) / 256; in convertCbYCrY() local 305 | (kAdjustedClip[b1] >> 3); in convertCbYCrY() 447 signed r1, signed g1, signed b1, in getWriteToDst() 452 | (kAdjustedClip[b1] >> 3); in getWriteToDst() 469 signed r1, signed g1, signed b1, in getWriteToDst() argument 474 | (kAdjustedClip[b1] << 16) in getWriteToDst() 489 signed r1, signed g1, signed b1, in getWriteToDst() argument 492 (kAdjustedClip[b1]) in getWriteToDst() 559 signed b1 = (tmp1 + u_b) / 256; in convertYUV420Planar() local 569 writeToDst(dst_ptr + x * dst.mBpp, uncropped, r1, g1, b1, r2, g2, b2); in convertYUV420Planar() [all …]
|
/frameworks/base/core/java/android/net/ |
D | SntpClient.java | 252 byte b1 = buffer[offset+1]; in read32() 258 int i1 = ((b1 & 0x80) == 0x80 ? (b1 & 0x7F) + 0x80 : b1); in read32()
|
/frameworks/base/libs/androidfw/include/androidfw/ |
D | StringPiece.h | 193 const char* b1 = data_ != nullptr ? data_ : &nullStr; in compare() local 194 const char* e1 = b1 + length_; in compare() 198 while (b1 < e1 && b2 < e2) { in compare() 199 const int d = static_cast<int>(*b1++) - static_cast<int>(*b2++); in compare() 234 const char16_t* b1 = data_ != nullptr ? data_ : &nullStr; in compare() local 236 return strzcmp16(b1, length_, b2, rhs.length_); in compare()
|
/frameworks/native/opengl/libs/ETC1/ |
D | etc1.cpp | 203 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 390 b1 = convert5To8(b51); in etc_encodeBaseColors() 413 b1 = convert4To8(b41); in etc_encodeBaseColors() 422 pBaseColors[2] = b1; in etc_encodeBaseColors()
|
/frameworks/av/media/libeffects/testlibs/ |
D | AudioBiquadFilter.cpp | 157 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/libs/net/common/framework/com/android/net/module/util/ |
D | NetworkStackConstants.java | 218 private static Inet4Address makeInet4Address(byte b1, byte b2, byte b3, byte b4) { in makeInet4Address() argument 220 return (Inet4Address) InetAddress.getByAddress(new byte[] { b1, b2, b3, b4 }); in makeInet4Address()
|
/frameworks/base/services/core/java/com/android/server/am/ |
D | NativeCrashListener.java | 169 int b0, b1, b2, b3; in unpackInt() local 172 b1 = ((int) buf[offset+1]) & 0xFF; in unpackInt() 175 return (b0 << 24) | (b1 << 16) | (b2 << 8) | b3; in unpackInt()
|
/frameworks/base/services/tests/servicestests/assets/KeyStoreRecoveryControllerTest/pem/ |
D | valid-cert.pem | 67 09:c1:6f:d3:93:35:b1:e2:cf:60:85:bb:a0:58:af: 96 65:b1:be:e2:65:e7:59:e4:da:2c:49:c6:be:2b:e5: 126 b1:a9:70:ad:18:ab:57:89:56:b0:cf:4c:3a:15:44: 128 1d:1a:b1:3c:0d:ea:87:5d:64:7e:ae:58:48:55:3b: 160 e3:f5:26:6b:d7:0d:4b:d4:f3:c9:a3:e2:a3:b1:16:af:56:fc: 164 9b:87:be:84:8b:1d:d2:fb:6b:93:b1:b8:f8:eb:69:e4:e0:4d: 167 2b:bf:35:41:9e:8c:fe:b1:b8:53:81:b3:c7:3d:c0:97:39:4a: 183 45:9b:4e:ac:50:7b:dc:1e:3a:3c:2b:09:db:ab:23:b1:0c:68:
|
/frameworks/base/core/tests/coretests/src/android/os/ |
D | AidlTest.java | 288 boolean[] b1 = new boolean[]{false, true}; in testArrays() 290 boolean[] br = mRemote.booleanArray(b0, b1, b2); in testArrays() 295 assertTrue(b1[0]); in testArrays() 296 assertFalse(b1[1]); in testArrays()
|
D | PerformanceCollectorTest.java | 478 private void assertEqualsBundle(Bundle b1, Bundle b2) { in assertEqualsBundle() argument 479 assertEquals(b1.keySet(), b2.keySet()); in assertEqualsBundle() 480 for (String key : b1.keySet()) { in assertEqualsBundle() 481 assertEquals(b1.get(key), b2.get(key)); in assertEqualsBundle()
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | SafeActivityOptions.java | 202 final Bundle b1 = options1.toBundle(); in mergeActivityOptions() local 204 b1.putAll(b2); in mergeActivityOptions() 205 return ActivityOptions.fromBundle(b1); in mergeActivityOptions()
|
/frameworks/base/core/tests/coretests/src/android/app/servertransaction/ |
D | TransactionParcelTests.java | 452 IUiAutomationConnection iUiAutomationConnection, int i, boolean b, boolean b1, in bindApplication() argument 493 int i, String s, Bundle bundle, boolean b, boolean b1, int i1, int i2) in scheduleRegisteredReceiver() argument 566 Debug.MemoryInfo memoryInfo, boolean b, boolean b1, boolean b2, boolean b3, in dumpMemInfo() argument 572 Debug.MemoryInfo memoryInfo, boolean b, boolean b1, boolean b2, in dumpMemInfoProto() argument
|
/frameworks/base/services/tests/shortcutmanagerutils/src/com/android/server/pm/shortcutmanagertest/ |
D | ShortcutManagerTestUtils.java | 1094 public static void assertBundlesEqual(BaseBundle b1, BaseBundle b2) { in assertBundlesEqual() argument 1095 if (b1 == null && b2 == null) { in assertBundlesEqual() 1098 assertNotNull("b1 is null but b2 is not", b1); in assertBundlesEqual() 1102 assertEquals(set(b1.keySet()), set(b2.keySet())); in assertBundlesEqual() 1104 for (String key : b1.keySet()) { in assertBundlesEqual() 1105 final Object v1 = b1.get(key); in assertBundlesEqual() 1117 + " b1=" + b1 + " b2=" + b2, v1 != null && v2 != null); in assertBundlesEqual()
|