Home
last modified time | relevance | path

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

12

/frameworks/base/services/tests/servicestests/src/com/android/server/content/
DSyncManagerTest.java92 Bundle b2 = new Bundle(); in testSyncExtrasEquals_WithNull() local
95 b2.putString(KEY_1, null); in testSyncExtrasEquals_WithNull()
98 SyncManager.syncExtrasEquals(b1, b2, false /* don't care about system extras */)); in testSyncExtrasEquals_WithNull()
103 Bundle b2 = new Bundle(); in testSyncExtrasEqualsBigger_WithNull() local
106 b2.putString(KEY_1, null); in testSyncExtrasEqualsBigger_WithNull()
109 b2.putString(KEY_2, "bla"); in testSyncExtrasEqualsBigger_WithNull()
112 SyncManager.syncExtrasEquals(b1, b2, false /* don't care about system extras */)); in testSyncExtrasEqualsBigger_WithNull()
120 Bundle b2 = new Bundle(); in testSyncExtrasEqualsFails_WithNull() local
121 b2.putBoolean(ContentResolver.SYNC_EXTRAS_MANUAL, true); in testSyncExtrasEqualsFails_WithNull()
122 b2.putBoolean(ContentResolver.SYNC_EXTRAS_EXPEDITED, true); in testSyncExtrasEqualsFails_WithNull()
[all …]
DSyncOperationTest.java56 Bundle b2 = new Bundle(); in testToKey() local
57 b2.putBoolean("b2", true); in testToKey()
99 b2, in testToKey()
/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/base/telephony/common/com/google/android/mms/pdu/
DBase64.java78 byte b1 = 0, b2 = 0, b3 = 0, b4 = 0, marker0 = 0, marker1 = 0; in decodeBase64()
102 b2 = base64Alphabet[base64Data[dataIndex + 1]]; in decodeBase64()
109 decodedData[encodedIndex] = (byte) (b1 << 2 | b2 >> 4); in decodeBase64()
111 (byte) (((b2 & 0xf) << 4) | ((b3 >> 2) & 0xf)); in decodeBase64()
115 decodedData[encodedIndex] = (byte) (b1 << 2 | b2 >> 4); in decodeBase64()
120 decodedData[encodedIndex] = (byte) (b1 << 2 | b2 >> 4); in decodeBase64()
122 (byte) (((b2 & 0xf) << 4) | ((b3 >> 2) & 0xf)); in decodeBase64()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/log/table/
DTableLogBufferFactoryTest.kt44 val b2 = underTest.create(NAME_2, SIZE) in create_alwaysCreatesNewInstance() constant
48 assertThat(b1).isNotSameInstanceAs(b2) in create_alwaysCreatesNewInstance()
49 assertThat(b2).isNotSameInstanceAs(b2_copy) in create_alwaysCreatesNewInstance()
56 val b2 = underTest.getOrCreate(NAME_2, SIZE) in getOrCreate_reusesInstance() constant
60 assertThat(b2).isSameInstanceAs(b2_copy) in getOrCreate_reusesInstance()
61 assertThat(b1).isNotSameInstanceAs(b2) in getOrCreate_reusesInstance()
/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/base/packages/SystemUI/tests/src/com/android/systemui/qs/
DFgsManagerControllerTest.java138 Binder b2 = new Binder(); in testNumPackages() local
142 mIForegroundServiceObserver.onForegroundStateChanged(b2, "pkg2", 0, true); in testNumPackages()
146 mIForegroundServiceObserver.onForegroundStateChanged(b2, "pkg2", 0, false); in testNumPackages()
183 Binder b2 = new Binder(); in testNumPackages_FgsAndJobs() local
189 mIForegroundServiceObserver.onForegroundStateChanged(b2, "pkg2", 0, true); in testNumPackages_FgsAndJobs()
195 mIForegroundServiceObserver.onForegroundStateChanged(b2, "pkg2", 0, false); in testNumPackages_FgsAndJobs()
211 Binder b2 = new Binder(); in testNumPackagesDoesNotChangeWhenSecondFgsIsStarted() local
215 mIForegroundServiceObserver.onForegroundStateChanged(b2, "pkg1", 0, true); in testNumPackagesDoesNotChangeWhenSecondFgsIsStarted()
219 mIForegroundServiceObserver.onForegroundStateChanged(b2, "pkg1", 0, false); in testNumPackagesDoesNotChangeWhenSecondFgsIsStarted()
233 Binder b2 = new Binder(); in testNumPackagesListener() local
[all …]
/frameworks/base/core/java/android/hardware/
DGeomagneticField.java313 float b2 = EARTH_SEMI_MINOR_AXIS_KM * EARTH_SEMI_MINOR_AXIS_KM; in computeGeocentricCoordinates() local
319 (float) Math.sqrt(a2 * clat * clat + b2 * slat * slat); in computeGeocentricCoordinates()
321 mGcLatitudeRad = (float) Math.atan(tlat * (latRad * altitudeKm + b2) in computeGeocentricCoordinates()
328 b2 * slat * slat) in computeGeocentricCoordinates()
329 + (a2 * a2 * clat * clat + b2 * b2 * slat * slat) in computeGeocentricCoordinates()
330 / (a2 * clat * clat + b2 * slat * slat); in computeGeocentricCoordinates()
/frameworks/base/core/java/android/content/
DPeriodicSync.java139 public static boolean syncExtrasEquals(Bundle b1, Bundle b2) { in syncExtrasEquals() argument
140 if (b1.size() != b2.size()) { in syncExtrasEquals()
147 if (!b2.containsKey(key)) { in syncExtrasEquals()
152 if (!Objects.equals(b1.get(key), b2.get(key))) { in syncExtrasEquals()
/frameworks/base/libs/androidfw/tests/
DBigBuffer_test.cpp39 char* b2 = buffer.NextBlock<char>(4); in TEST() local
40 EXPECT_THAT(b2, NotNull()); in TEST()
42 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/tests/coretests/src/com/android/internal/util/
DBitUtilsTest.java77 byte b2 = 2; in testUnsignedShortComposition()
86 assertEquals(0x8002, uint16(b128, b2)); in testUnsignedShortComposition()
180 static byte[] bytes(int b1, int b2, int b3, int b4) { in bytes() argument
181 return new byte[] {b(b1), b(b2), b(b3), b(b4)}; in bytes()
/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/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
401 b2 = convert5To8(b51 + db); in etc_encodeBaseColors()
416 b2 = convert4To8(b42); in etc_encodeBaseColors()
425 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/native/libs/binder/tests/
DbinderParcelUnitTest.cpp209 sp<IBinder> b2 = sp<BBinder>::make(); in TEST() local
216 p2.writeStrongBinder(b2); in TEST()
224 ASSERT_EQ(b2, p1.readStrongBinder()); in TEST()
229 ASSERT_EQ(b2, p2.readStrongBinder()); in TEST()
234 sp<IBinder> b2 = sp<BBinder>::make(); in TEST() local
241 p2.writeStrongBinder(b2); in TEST()
254 ASSERT_EQ(b2, p2.readStrongBinder()); in TEST()
/frameworks/base/media/java/android/media/
DThumbnailUtils.java487 Bitmap b2 = Bitmap.createBitmap(targetWidth, targetHeight, in transform() local
489 Canvas c = new Canvas(b2); in transform()
510 return b2; in transform()
550 Bitmap b2 = Bitmap.createBitmap( in transform() local
557 if (b2 != b1) { in transform()
563 return b2; in transform()
/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/base/services/core/java/com/android/server/am/
DNativeCrashListener.java174 int b0, b1, b2, b3; in unpackInt() local
178 b2 = ((int) buf[offset+2]) & 0xFF; in unpackInt()
180 return (b0 << 24) | (b1 << 16) | (b2 << 8) | b3; in unpackInt()
/frameworks/av/media/libstagefright/colorconversion/
DColorConverter.cpp813 signed b2 = (tmp2 + u_b) / 256; in convertCbYCrY() local
825 | (kAdjustedClip[b2] >> 3); in convertCbYCrY()
1125 signed r2, signed g2, signed b2) { in getWriteToDst() argument
1135 | (((uint8_t *)kAdjustedClip)[b2] >> 3); in getWriteToDst()
1147 signed r2, signed g2, signed b2) { in getWriteToDst() argument
1158 | (((uint8_t *)kAdjustedClip)[b2] << 16) in getWriteToDst()
1167 signed r2, signed g2, signed b2) { in getWriteToDst() argument
1176 (((uint8_t *)kAdjustedClip)[b2]) in getWriteToDst()
1187 signed r2, signed g2, signed b2) { in getWriteToDst() argument
1198 | (((uint16_t *)kAdjustedClip)[b2] << 20) in getWriteToDst()
[all …]
/frameworks/base/core/tests/coretests/src/android/os/
DAidlTest.java318 boolean[] b2 = new boolean[]{true, false, true}; in testArrays()
319 boolean[] br = mRemote.booleanArray(b0, b1, b2); in testArrays()
327 assertTrue(b2[0]); in testArrays()
328 assertFalse(b2[1]); in testArrays()
329 assertTrue(b2[2]); in testArrays()
DPerformanceCollectorTest.java508 private void assertEqualsBundle(Bundle b1, Bundle b2) { in assertEqualsBundle() argument
509 assertEquals(b1.keySet(), b2.keySet()); in assertEqualsBundle()
511 assertEquals(b1.get(key), b2.get(key)); in assertEqualsBundle()
/frameworks/base/services/tests/servicestests/assets/KeyStoreRecoveryControllerTest/pem/
Dvalid-cert.pem79 1b:8e:d2:cc:c7:3e:b2:13:53:b9:82:ed:ab:6d:63:
81 96:04:d7:bf:b2:bb:61:2e:7b:de:13:77:4d:06:3f:
95 b7:2e:99:b2:de:0b:ca:1e:9a:3c:c1:dc:a5:3c:06:
105 b6:49:95:b2:aa:d7:9b:b6:0b:13:a0:6f:ce:6f:27:
109 7a:fc:18:6d:54:47:31:59:b2:f4:36:aa:ce:c3:fc:
118 f6:bf:7c:2e:25:20:a5:b4:c7:b4:a6:48:62:b2:67:
148 01:9f:2d:35:d6:f7:ae:3e:99:53:70:d7:b2:2d:e2:a1:59:19:
/frameworks/av/services/camera/libcameraservice/aidl/
DAidlUtils.cpp310 bool areBindersEqual(const ndk::SpAIBinder& b1, const ndk::SpAIBinder& b2) { in areBindersEqual() argument
311 return !AIBinder_lt(b1.get(), b2.get()) && !AIBinder_lt(b2.get(), b1.get()); in areBindersEqual()
/frameworks/base/services/tests/shortcutmanagerutils/src/com/android/server/pm/shortcutmanagertest/
DShortcutManagerTestUtils.java1094 public static void assertBundlesEqual(BaseBundle b1, BaseBundle b2) { in assertBundlesEqual() argument
1095 if (b1 == null && b2 == null) { in assertBundlesEqual()
1099 assertNotNull("b2 is null but b1 is not", b2); in assertBundlesEqual()
1102 assertEquals(set(b1.keySet()), set(b2.keySet())); in assertBundlesEqual()
1106 final Object v2 = b2.get(key); in assertBundlesEqual()
1117 + " b1=" + b1 + " b2=" + b2, v1 != null && v2 != null); in assertBundlesEqual()

12