Home
last modified time | relevance | path

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

123

/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/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),
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],
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…
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)
Dconv2d_per_channel.mod.py35 b2 = Parameter("op3", "TENSOR_INT32", "{3}", [4, 4, 4]) variable
37 Model("layouts").Operation("CONV_2D", i2, f2, b2, 0, 0, 0, 0, 1, 1, 0, layout).To(o2)
Dtranspose_conv2d.mod.py71 b2 = Parameter("op3", "TENSOR_FLOAT32", "{1}", [-1000]) # bias variable
74 Model().Operation("TRANSPOSE_CONV_2D", i2, w2, b2, s2, 1, 3, 3, 1, layout).To(o2)
80 b2: ("TENSOR_INT32", 0.5, 0),
88 b2: ("TENSOR_INT32", 0.0, 0, SymmPerChannelQuantParams(channelDim=0, scales=[0.5], hide=True)),
/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.java309 float b2 = EARTH_SEMI_MINOR_AXIS_KM * EARTH_SEMI_MINOR_AXIS_KM; in computeGeocentricCoordinates() local
315 (float) Math.sqrt(a2 * clat * clat + b2 * slat * slat); in computeGeocentricCoordinates()
317 mGcLatitudeRad = (float) Math.atan(tlat * (latRad * altitudeKm + b2) in computeGeocentricCoordinates()
324 b2 * slat * slat) in computeGeocentricCoordinates()
325 + (a2 * a2 * clat * clat + b2 * b2 * slat * slat) in computeGeocentricCoordinates()
326 / (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/base/core/java/android/net/
DSntpClient.java243 byte b2 = buffer[offset+2]; in read32()
249 int i2 = ((b2 & 0x80) == 0x80 ? (b2 & 0x7F) + 0x80 : b2); in read32()
/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/tests/net/java/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/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()

123