Home
last modified time | relevance | path

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

123

/frameworks/native/libs/ui/tests/
DBufferHubBuffer_test.cpp97 std::unique_ptr<BufferHubBuffer> b2; member in android::__anon098392b00111::BufferHubBufferStateTransitionTest
114 b2 = BufferHubBuffer::import(token); in CreateTwoClientsOfABuffer()
115 ASSERT_THAT(b2, NotNull()); in CreateTwoClientsOfABuffer()
117 b2ClientMask = b2->clientStateMask(); in CreateTwoClientsOfABuffer()
130 auto b2 = BufferHubBuffer::create(kWidth, kHeight, kLayerCount, kFormat, kUsage, in TEST_F() local
133 EXPECT_THAT(b2, IsNull()); in TEST_F()
166 std::unique_ptr<BufferHubBuffer> b2 = BufferHubBuffer::import(token); in TEST_F() local
168 ASSERT_THAT(b2, NotNull()); in TEST_F()
169 EXPECT_TRUE(b2->isValid()); in TEST_F()
171 EXPECT_TRUE(cmpAHardwareBufferDesc(b1->desc(), b2->desc())); in TEST_F()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/content/
DSyncManagerTest.java37 Bundle b2 = new Bundle(); in testSyncExtrasEquals_WithNull() local
40 b2.putString(KEY_1, null); in testSyncExtrasEquals_WithNull()
43 SyncManager.syncExtrasEquals(b1, b2, false /* don't care about system extras */)); in testSyncExtrasEquals_WithNull()
48 Bundle b2 = new Bundle(); in testSyncExtrasEqualsBigger_WithNull() local
51 b2.putString(KEY_1, null); in testSyncExtrasEqualsBigger_WithNull()
54 b2.putString(KEY_2, "bla"); in testSyncExtrasEqualsBigger_WithNull()
57 SyncManager.syncExtrasEquals(b1, b2, false /* don't care about system extras */)); in testSyncExtrasEqualsBigger_WithNull()
62 Bundle b2 = new Bundle(); in testSyncExtrasEqualsFails_differentValues() local
65 b2.putString(KEY_1, null); in testSyncExtrasEqualsFails_differentValues()
68 b2.putString(KEY_2, "ble"); // different key in testSyncExtrasEqualsFails_differentValues()
[all …]
DSyncOperationTest.java55 Bundle b2 = new Bundle(); in testToKey() local
56 b2.putBoolean("b2", true); in testToKey()
98 b2, in testToKey()
/frameworks/native/opengl/libagl/
Dmatrix.h117 GLfixed a2, GLfixed b2, in mla3a() argument
133 "%r"(a2), "r"(b2), in mla3a()
143 int64_t(a2)*b2)>>16) + c; in mla3a()
153 GLfixed a2, int32_t b2, in mla3a16() argument
168 "r"(a2), "r"(b2), in mla3a16()
182 accum += int64_t(a2)*int16_t(b2) >> 16; in mla3a16()
221 int16_t b2 = xxb2 & 0xffff; in mla3a16_btb()
224 accum += int64_t(a2)*int16_t(b2) >> 16; in mla3a16_btb()
262 int16_t b2 = (b2xx >> 16) & 0xffff; in mla3a16_btt()
265 accum += int64_t(a2)*int16_t(b2) >> 16; in mla3a16_btt()
[all …]
Ddxt.cpp103 int b2 = (x >> 8) & 0xff; in swap() local
106 return (uint32_t)((b3 << 24) | (b2 << 16) | (b1 << 8) | b0); in swap()
251 int r2, g2, b2, r3, g3, b3, a3; in decodeDXT1() local
261 b2 = avg23(b0, b1); in decodeDXT1()
270 b2 = (b0 + b1) >> 1; in decodeDXT1()
276 (b2 << 1) | 0x1; in decodeDXT1()
280 c[2] = (r2 << 11) | (g2 << 5) | b2; in decodeDXT1()
375 int b2 = avg23(b0, b1); in decodeDXT3() local
383 c[2] = rgb565SepTo888(r2, g2, b2); in decodeDXT3()
532 int b2 = avg23(b0, b1); in decodeDXT5() local
[all …]
/frameworks/ml/nn/runtime/test/specs/V1_2/
Ddepthwise_conv2d_dilation.mod.py49 b2 = Parameter("op3", "TENSOR_FLOAT32", "{4}", [0,0,0,0]) variable
51 Model().Operation("DEPTHWISE_CONV_2D", i2, f2, b2, 0, 0, 0, 0, 1, 1, 2, 0, layout, 2, 2).To(o2)
57 b2: ("TENSOR_INT32", 0.005, 0),
104 b2 = Parameter("op3", "TENSOR_FLOAT32", "{4}", [0,0,0,0]) variable
106 Model().Operation("DEPTHWISE_CONV_2D", i2, f2, b2, 2, 1, 1, 2, 0, layout, 2, 2).To(o2)
112 b2: ("TENSOR_INT32", 0.005, 0),
131 b2 = Parameter("op3", "TENSOR_FLOAT32", "{1}", [0]) variable
133 Model().Operation("DEPTHWISE_CONV_2D", i2, f2, b2, 1, 2, 2, 1, 0, layout, 3, 3).To(o2)
139 b2: ("TENSOR_INT32", 0.0625, 0),
Dconv2d_dilation.mod.py44 b2 = Parameter("op3", "TENSOR_FLOAT32", "{1}", [0]) variable
46 Model().Operation("CONV_2D", i2, f2, b2, 0, 0, 0, 0, 1, 1, 0, layout, 3, 3).To(o2)
52 b2: ("TENSOR_INT32", 0.0625, 0),
95 b2 = Parameter("op3", "TENSOR_FLOAT32", "{1}", [0]) variable
97 Model().Operation("CONV_2D", i2, f2, b2, 2, 1, 1, 0, layout, 3, 3).To(o2)
103 b2: ("TENSOR_INT32", 0.0625, 0),
Dgrouped_conv2d.mod.py71 b2 = Parameter("op3", "TENSOR_FLOAT32", "{2}", [500, -1000]) # bias variable
73 Model("large").Operation("GROUPED_CONV_2D", i2, w2, b2, 1, 1, 1, 2, 0, layout).To(o2)
79 b2: ("TENSOR_INT32", 0.25, 0),
87b2: ("TENSOR_INT32", 0.0, 0, SymmPerChannelQuantParams(channelDim=0, scales=[0.5, 0.625], hide=Tru…
Daxis_aligned_bbox_transform.mod.py72 b2 = Input("batchSplit", "TENSOR_INT32", "{5}") variable
75 model2 = Model().Operation("AXIS_ALIGNED_BBOX_TRANSFORM", r2, d2, b2, i2).To(o2)
100 b2: [0, 2, 5, 5, 6],
Ddepthwise_conv2d_v1_2.mod.py61 b2 = Parameter("op3", "TENSOR_FLOAT32", "{4}", [1, 2, 3, 4]) variable
63 Model().Operation("DEPTHWISE_CONV_2D", i2, f2, b2, 2, 1, 1, 2, 0, layout).To(o2)
69 b2: ("TENSOR_INT32", 0.25, 0),
75b2: ("TENSOR_INT32", 0.0, 0, SymmPerChannelQuantParams(channelDim=0, scales=[0.25, 0.125, 0.25, 0.…
Ddepthwise_conv2d_per_channel.mod.py37 b2 = Parameter("op3", "TENSOR_INT32", "{4}", [4, 4, 4, 4]) variable
39 Model("different").Operation("DEPTHWISE_CONV_2D", i2, f2, b2, 0, 0, 0, 0, 1, 1, 2, 0).To(o2)
/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/ml/nn/runtime/test/specs/V1_3/
Ddepthwise_conv2d_quant8_signed.mod.py50 b2 = Parameter("op3", "TENSOR_FLOAT32", "{4}", [0,0,0,0]) variable
52 Model().Operation("DEPTHWISE_CONV_2D", i2, f2, b2, 0, 0, 0, 0, 1, 1, 2, 0, layout, 2, 2).To(o2)
58 b2: ("TENSOR_INT32", 0.0625, 0),
107 b2 = Parameter("op3", "TENSOR_FLOAT32", "{4}", [0,0,0,0]) variable
109 Model().Operation("DEPTHWISE_CONV_2D", i2, f2, b2, 2, 1, 1, 2, 0, layout, 2, 2).To(o2)
115 b2: ("TENSOR_INT32", 0.05, 0),
136 b2 = Parameter("op3", "TENSOR_FLOAT32", "{1}", [0]) variable
138 Model().Operation("DEPTHWISE_CONV_2D", i2, f2, b2, 1, 2, 2, 1, 0, layout, 3, 3).To(o2)
144 b2: ("TENSOR_INT32", 0.0625, 0),
185 b2 = Parameter("op3", "TENSOR_INT32", "{4}", [4, 4, 4, 4]) variable
[all …]
Daxis_aligned_bbox_transform_quant8_signed.mod.py73 b2 = Input("batchSplit", "TENSOR_INT32", "{5}") variable
76 model2 = Model().Operation("AXIS_ALIGNED_BBOX_TRANSFORM", r2, d2, b2, i2).To(o2)
101 b2: [0, 2, 5, 5, 6],
Dgrouped_conv2d_quant8_signed.mod.py71 b2 = Parameter("op3", "TENSOR_FLOAT32", "{2}", [500, -1000]) # bias variable
73 Model("large").Operation("GROUPED_CONV_2D", i2, w2, b2, 1, 1, 1, 2, 0, layout).To(o2)
79 b2: ("TENSOR_INT32", 0.25, 0),
87b2: ("TENSOR_INT32", 0.0, 0, SymmPerChannelQuantParams(channelDim=0, scales=[0.5, 0.625], hide=Tru…
Dconv2d_quant8_signed.mod.py44 b2 = Parameter("op3", "TENSOR_FLOAT32", "{1}", [0]) variable
46 Model().Operation("CONV_2D", i2, f2, b2, 0, 0, 0, 0, 1, 1, 0, layout, 3, 3).To(o2)
52 b2: ("TENSOR_INT32", 0.0625, 0),
95 b2 = Parameter("op3", "TENSOR_FLOAT32", "{1}", [0]) variable
97 Model().Operation("CONV_2D", i2, f2, b2, 2, 1, 1, 0, layout, 3, 3).To(o2)
103 b2: ("TENSOR_INT32", 0.0625, 0),
167 b2 = Parameter("op3", "TENSOR_INT32", "{3}", [4, 4, 4]) variable
169 Model("layouts").Operation("CONV_2D", i2, f2, b2, 0, 0, 0, 0, 1, 1, 0, layout).To(o2)
240 b2 = Parameter("op3", "TENSOR_FLOAT32", "{1}", [-200]) variable
242 Model().Operation("CONV_2D", i2, f2, b2, 1, 1, 1, 1, layout).To(o2)
[all …]
/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/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.java138 public static boolean syncExtrasEquals(Bundle b1, Bundle b2) { in syncExtrasEquals() argument
139 if (b1.size() != b2.size()) { in syncExtrasEquals()
146 if (!b2.containsKey(key)) { in syncExtrasEquals()
151 if (!Objects.equals(b1.get(key), b2.get(key))) { in syncExtrasEquals()
/frameworks/base/tools/aapt2/util/
DBigBuffer_test.cpp38 char* b2 = buffer.NextBlock<char>(4); in TEST() local
39 EXPECT_THAT(b2, NotNull()); in TEST()
41 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/av/media/libstagefright/colorconversion/
DColorConverter.cpp298 signed b2 = (tmp2 + u_b) / 256; in convertCbYCrY() local
310 | (kAdjustedClip[b2] >> 3); in convertCbYCrY()
448 signed r2, signed g2, signed b2) { in getWriteToDst() argument
458 | (kAdjustedClip[b2] >> 3); in getWriteToDst()
470 signed r2, signed g2, signed b2) { in getWriteToDst() argument
481 | (kAdjustedClip[b2] << 16) in getWriteToDst()
490 signed r2, signed g2, signed b2) { in getWriteToDst() argument
499 (kAdjustedClip[b2]) in getWriteToDst()
564 signed b2 = (tmp2 + 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/libs/androidfw/include/androidfw/
DStringPiece.h195 const char* b2 = rhs.data_ != nullptr ? rhs.data_ : &nullStr; in compare() local
196 const char* e2 = b2 + rhs.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()
235 const char16_t* b2 = rhs.data_ != nullptr ? rhs.data_ : &nullStr; in compare() local
236 return strzcmp16(b1, length_, b2, rhs.length_); in compare()
/frameworks/base/core/java/android/net/
DSntpClient.java253 byte b2 = buffer[offset+2]; in read32()
259 int i2 = ((b2 & 0x80) == 0x80 ? (b2 & 0x7F) + 0x80 : b2); in read32()

123