Home
last modified time | relevance | path

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

123

/frameworks/libs/binary_translation/tools/nogrod/
Dbuffer_tests.cc35 Buffer b1(std::move(v)); in TEST() local
36 EXPECT_EQ(b1.size(), 5U); in TEST()
37 EXPECT_EQ(b1.data()[0], 30); in TEST()
38 EXPECT_EQ(b1.data()[1], 31); in TEST()
39 EXPECT_EQ(b1.data()[2], 32); in TEST()
40 EXPECT_EQ(b1.data()[3], 33); in TEST()
41 EXPECT_EQ(b1.data()[4], 34); in TEST()
56 Buffer b1 = std::move(b1_to_move); in TEST() local
57 EXPECT_EQ(b1.size(), 5U); in TEST()
58 EXPECT_EQ(b1.data()[0], 30); in TEST()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/content/
DSyncManagerTest.java91 Bundle b1 = new Bundle(); in testSyncExtrasEquals_WithNull() local
94 b1.putString(KEY_1, null); in testSyncExtrasEquals_WithNull()
98 SyncManager.syncExtrasEquals(b1, b2, false /* don't care about system extras */)); in testSyncExtrasEquals_WithNull()
102 Bundle b1 = new Bundle(); in testSyncExtrasEqualsBigger_WithNull() local
105 b1.putString(KEY_1, null); in testSyncExtrasEqualsBigger_WithNull()
108 b1.putString(KEY_2, "bla"); in testSyncExtrasEqualsBigger_WithNull()
112 SyncManager.syncExtrasEquals(b1, b2, false /* don't care about system extras */)); in testSyncExtrasEqualsBigger_WithNull()
116 Bundle b1 = new Bundle(); in testSyncExtrasEqualsFails_WithNull() local
117 b1.putBoolean(ContentResolver.SYNC_EXTRAS_MANUAL, true); in testSyncExtrasEqualsFails_WithNull()
118 b1.putBoolean(ContentResolver.SYNC_EXTRAS_EXPEDITED, true); in testSyncExtrasEqualsFails_WithNull()
[all …]
DSyncOperationTest.java55 Bundle b1 = new Bundle(); in testToKey() local
63 b1, in testToKey()
72 b1, in testToKey()
81 b1, in testToKey()
90 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()
161 Bundle b1 = new Bundle(); in testScheduleAsEjIsInExtras() local
[all …]
/frameworks/base/libs/androidfw/tests/
DBigBuffer_test.cpp36 char* b1 = buffer.NextBlock<char>(8); in TEST() local
37 EXPECT_THAT(b1, NotNull()); in TEST()
42 EXPECT_EQ(b1 + 8, b2); in TEST()
55 uint32_t* b1 = buffer.NextBlock<uint32_t>(); in TEST() local
56 ASSERT_THAT(b1, NotNull()); in TEST()
57 *b1 = 33; in TEST()
61 b1 = buffer2.NextBlock<uint32_t>(); in TEST()
62 ASSERT_THAT(b1, NotNull()); in TEST()
63 *b1 = 44; in TEST()
/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/base/services/usb/java/com/android/server/usb/descriptors/
DByteStream.java135 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/
DWuQuantizer.java190 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/packages/SystemUI/tests/src/com/android/systemui/log/table/
DTableLogBufferFactoryTest.kt42 val b1 = underTest.create(NAME_1, SIZE) in create_alwaysCreatesNewInstance() constant
47 assertThat(b1).isNotSameInstanceAs(b1_copy) in create_alwaysCreatesNewInstance()
48 assertThat(b1).isNotSameInstanceAs(b2) in create_alwaysCreatesNewInstance()
54 val b1 = underTest.getOrCreate(NAME_1, SIZE) in getOrCreate_reusesInstance() constant
59 assertThat(b1).isSameInstanceAs(b1_copy) in getOrCreate_reusesInstance()
61 assertThat(b1).isNotSameInstanceAs(b2) in getOrCreate_reusesInstance()
/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()
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/
DPeriodicSync.java139 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/core/tests/coretests/src/com/android/internal/util/
DBitUtilsTest.java50 byte b1 = 1; in testUnsignedByteWideningConversions()
53 assertEquals(1, uint8(b1)); in testUnsignedByteWideningConversions()
76 byte b1 = 1; in testUnsignedShortComposition()
85 assertEquals(0x0a01, uint16(b10, b1)); in testUnsignedShortComposition()
87 assertEquals(0x01ff, uint16(b1, b255)); 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/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/base/packages/SystemUI/tests/src/com/android/systemui/qs/
DFgsManagerControllerTest.java137 Binder b1 = new Binder(); in testNumPackages() local
140 mIForegroundServiceObserver.onForegroundStateChanged(b1, "pkg1", 0, true); in testNumPackages()
144 mIForegroundServiceObserver.onForegroundStateChanged(b1, "pkg1", 0, false); in testNumPackages()
182 Binder b1 = new Binder(); in testNumPackages_FgsAndJobs() local
187 mIForegroundServiceObserver.onForegroundStateChanged(b1, "pkg1", 0, true); in testNumPackages_FgsAndJobs()
199 mIForegroundServiceObserver.onForegroundStateChanged(b1, "pkg1", 0, false); in testNumPackages_FgsAndJobs()
210 Binder b1 = new Binder(); in testNumPackagesDoesNotChangeWhenSecondFgsIsStarted() local
213 mIForegroundServiceObserver.onForegroundStateChanged(b1, "pkg1", 0, true); in testNumPackagesDoesNotChangeWhenSecondFgsIsStarted()
217 mIForegroundServiceObserver.onForegroundStateChanged(b1, "pkg1", 0, false); in testNumPackagesDoesNotChangeWhenSecondFgsIsStarted()
232 Binder b1 = new Binder(); in testNumPackagesListener() local
[all …]
/frameworks/native/libs/binder/tests/
DbinderParcelUnitTest.cpp169 sp<IBinder> b1 = sp<BBinder>::make(); in TEST() local
173 p1.writeStrongBinder(b1); in TEST()
183 p1.writeStrongBinder(b1); // reset with binder data in TEST()
196 sp<IBinder> b1 = sp<BBinder>::make(); in TEST() local
198 p1.writeStrongBinder(b1); in TEST()
208 sp<IBinder> b1 = sp<BBinder>::make(); in TEST() local
213 p1.writeStrongBinder(b1); in TEST()
222 ASSERT_EQ(b1, p1.readStrongBinder()); in TEST()
233 sp<IBinder> b1 = sp<BBinder>::make(); in TEST() local
238 p1.writeStrongBinder(b1); in TEST()
[all …]
/frameworks/base/media/java/android/media/
DThumbnailUtils.java534 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/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/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
390 b1 = convert5To8(b51); in etc_encodeBaseColors()
413 b1 = convert4To8(b41); in etc_encodeBaseColors()
422 pBaseColors[2] = b1; in etc_encodeBaseColors()
/frameworks/av/media/libstagefright/colorconversion/
DColorConverter.cpp808 signed b1 = (tmp1 + u_b) / 256; in convertCbYCrY() local
820 | (kAdjustedClip[b1] >> 3); in convertCbYCrY()
1124 signed r1, signed g1, signed b1, in getWriteToDst()
1129 | (((uint8_t *)kAdjustedClip)[b1] >> 3); in getWriteToDst()
1146 signed r1, signed g1, signed b1, in getWriteToDst() argument
1151 | (((uint8_t *)kAdjustedClip)[b1] << 16) in getWriteToDst()
1166 signed r1, signed g1, signed b1, in getWriteToDst() argument
1169 (((uint8_t *)kAdjustedClip)[b1]) in getWriteToDst()
1186 signed r1, signed g1, signed b1, in getWriteToDst() argument
1191 | (((uint16_t *)kAdjustedClip)[b1] << 20) in getWriteToDst()
[all …]
/frameworks/base/services/core/java/com/android/server/am/
DNativeCrashListener.java174 int b0, b1, b2, b3; in unpackInt() local
177 b1 = ((int) buf[offset+1]) & 0xFF; in unpackInt()
180 return (b0 << 24) | (b1 << 16) | (b2 << 8) | b3; in unpackInt()
/frameworks/base/services/tests/servicestests/assets/KeyStoreRecoveryControllerTest/pem/
Dvalid-cert.pem67 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/native/services/surfaceflinger/CompositionEngine/include/compositionengine/
DDisplaySurface.h52 enum class CompositionType : uint8_t { Unknown = 0, Gpu = 0b1, Hwc = 0b10, Mixed = Gpu | Hwc };
/frameworks/base/core/tests/coretests/src/android/os/
DAidlTest.java317 boolean[] b1 = new boolean[]{false, true}; in testArrays()
319 boolean[] br = mRemote.booleanArray(b0, b1, b2); in testArrays()
324 assertTrue(b1[0]); in testArrays()
325 assertFalse(b1[1]); in testArrays()
DPerformanceCollectorTest.java508 private void assertEqualsBundle(Bundle b1, Bundle b2) { in assertEqualsBundle() argument
509 assertEquals(b1.keySet(), b2.keySet()); in assertEqualsBundle()
510 for (String key : b1.keySet()) { in assertEqualsBundle()
511 assertEquals(b1.get(key), b2.get(key)); in assertEqualsBundle()
/frameworks/base/services/core/java/com/android/server/wm/
DSafeActivityOptions.java264 final Bundle b1 = options1.toBundle(); in mergeActivityOptions() local
266 b1.putAll(b2); in mergeActivityOptions()
267 return ActivityOptions.fromBundle(b1); in mergeActivityOptions()
/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()

123