Home
last modified time | relevance | path

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

12

/frameworks/base/services/tests/servicestests/src/com/android/server/content/
DSyncManagerTest.java37 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 …]
DSyncOperationTest.java54 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/
DBigBuffer_test.cpp35 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/
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.kt35 val b1 = underTest.create(NAME_1, SIZE) in create - always creates new instance() constant
40 assertThat(b1).isNotSameInstanceAs(b1_copy) in create - always creates new instance()
41 assertThat(b1).isNotSameInstanceAs(b2) in create - always creates new instance()
47 val b1 = underTest.getOrCreate(NAME_1, SIZE) in getOrCreate - reuses instance() constant
52 assertThat(b1).isSameInstanceAs(b1_copy) in getOrCreate - reuses instance()
54 assertThat(b1).isNotSameInstanceAs(b2) in getOrCreate - reuses instance()
/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.java132 Binder b1 = new Binder(); in testNumPackages() local
135 mIForegroundServiceObserver.onForegroundStateChanged(b1, "pkg1", 0, true); in testNumPackages()
139 mIForegroundServiceObserver.onForegroundStateChanged(b1, "pkg1", 0, false); in testNumPackages()
168 Binder b1 = new Binder(); in testNumPackages_FgsAndJobs() local
173 mIForegroundServiceObserver.onForegroundStateChanged(b1, "pkg1", 0, true); in testNumPackages_FgsAndJobs()
185 mIForegroundServiceObserver.onForegroundStateChanged(b1, "pkg1", 0, false); in testNumPackages_FgsAndJobs()
196 Binder b1 = new Binder(); in testNumPackagesDoesNotChangeWhenSecondFgsIsStarted() local
199 mIForegroundServiceObserver.onForegroundStateChanged(b1, "pkg1", 0, true); in testNumPackagesDoesNotChangeWhenSecondFgsIsStarted()
203 mIForegroundServiceObserver.onForegroundStateChanged(b1, "pkg1", 0, false); in testNumPackagesDoesNotChangeWhenSecondFgsIsStarted()
218 Binder b1 = new Binder(); in testNumPackagesListener() local
[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/base/libs/androidfw/include/androidfw/
DStringPiece.h193 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/av/media/libstagefright/colorconversion/
DColorConverter.cpp514 signed b1 = (tmp1 + u_b) / 256; in convertCbYCrY() local
526 | (kAdjustedClip[b1] >> 3); in convertCbYCrY()
696 signed r1, signed g1, signed b1, in getWriteToDst()
701 | (((uint8_t *)kAdjustedClip)[b1] >> 3); in getWriteToDst()
718 signed r1, signed g1, signed b1, in getWriteToDst() argument
723 | (((uint8_t *)kAdjustedClip)[b1] << 16) in getWriteToDst()
738 signed r1, signed g1, signed b1, in getWriteToDst() argument
741 (((uint8_t *)kAdjustedClip)[b1]) in getWriteToDst()
758 signed r1, signed g1, signed b1, in getWriteToDst() argument
763 | (((uint16_t *)kAdjustedClip)[b1] << 20) in getWriteToDst()
[all …]
/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/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/libs/net/common/framework/com/android/net/module/util/
DNetworkStackConstants.java239 private static Inet4Address makeInet4Address(byte b1, byte b2, byte b3, byte b4) { in makeInet4Address() argument
241 return (Inet4Address) InetAddress.getByAddress(new byte[] { b1, b2, b3, b4 }); in makeInet4Address()
/frameworks/native/services/surfaceflinger/Scheduler/include/scheduler/
DFeatures.h26 kPresentFences = 0b1,
/frameworks/base/services/core/java/com/android/server/am/
DNativeCrashListener.java169 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/
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/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.java478 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/native/services/surfaceflinger/CompositionEngine/include/compositionengine/
DDisplaySurface.h52 enum class CompositionType : uint8_t { Unknown = 0, Gpu = 0b1, Hwc = 0b10, Mixed = Gpu | Hwc };
/frameworks/base/services/core/java/com/android/server/wm/
DSafeActivityOptions.java256 final Bundle b1 = options1.toBundle(); in mergeActivityOptions() local
258 b1.putAll(b2); in mergeActivityOptions()
259 return ActivityOptions.fromBundle(b1); in mergeActivityOptions()

12