Home
last modified time | relevance | path

Searched refs:b (Results 1 – 25 of 107) sorted by relevance

12345

/tools/dexter/slicer/
Ddex_ir.cc164 [](const EncodedField* a, const EncodedField* b) { in SortEncodedFields() argument
165 SLICER_CHECK(a->decl->index != b->decl->index || a == b); in SortEncodedFields()
166 return a->decl->index < b->decl->index; in SortEncodedFields()
173 [](const EncodedMethod* a, const EncodedMethod* b) { in SortEncodedMethods() argument
174 SLICER_CHECK(a->decl->index != b->decl->index || a == b); in SortEncodedMethods()
175 return a->decl->index < b->decl->index; in SortEncodedMethods()
198 IndexItems(strings, [](const own<String>& a, const own<String>& b) { in Normalize() argument
201 return dex::Utf8Cmp(a->c_str(), b->c_str()) < 0; in Normalize()
204 IndexItems(types, [](const own<Type>& a, const own<Type>& b) { in Normalize() argument
206 return a->descriptor->index < b->descriptor->index; in Normalize()
[all …]
Dbytecode_encoder.cc33 static dex::u2 Pack_8_8(dex::u4 a, dex::u4 b) { in Pack_8_8() argument
36 dex::u2 fb = (b & 0xff); in Pack_8_8()
37 SLICER_CHECK(fb == b); in Pack_8_8()
42 static dex::u2 Pack_4_4_8(dex::u4 a, dex::u4 b, dex::u4 c) { in Pack_4_4_8() argument
45 dex::u2 fb = (b & 0xf); in Pack_4_4_8()
46 SLICER_CHECK(fb == b); in Pack_4_4_8()
53 static dex::u2 Pack_4_4_4_4(dex::u4 a, dex::u4 b, dex::u4 c, dex::u4 d) { in Pack_4_4_4_4() argument
56 dex::u2 fb = (b & 0xf); in Pack_4_4_4_4()
57 SLICER_CHECK(fb == b); in Pack_4_4_4_4()
/tools/apksig/src/main/java/com/android/apksig/internal/asn1/ber/
DInputStreamBerDataValueReader.java118 int b; in readHighTagNumber() local
121 b = in.read(); in readHighTagNumber()
122 if (b == -1) { in readHighTagNumber()
129 result |= b & 0x7f; in readHighTagNumber()
130 } while ((b & 0x80) != 0); in readHighTagNumber()
148 int b = in.read(); in readLongFormLength() local
149 if (b == -1) { in readLongFormLength()
156 result |= b & 0xff; in readLongFormLength()
182 int b = in.read(); in skipPrimitiveIndefiniteLengthContents() local
183 if (b == -1) { in skipPrimitiveIndefiniteLengthContents()
[all …]
DByteBufferBerDataValueReader.java109 int b; in readHighTagNumber() local
115 b = mBuf.get(); in readHighTagNumber()
120 result |= b & 0x7f; in readHighTagNumber()
121 } while ((b & 0x80) != 0); in readHighTagNumber()
141 int b = mBuf.get(); in readLongFormLength() local
146 result |= b & 0xff; in readLongFormLength()
170 int b = mBuf.get(); in skipPrimitiveIndefiniteLengthContents() local
175 if (b == 0) { in skipPrimitiveIndefiniteLengthContents()
/tools/tradefederation/core/src/com/android/tradefed/util/
DShellOutputReceiverStream.java41 public void write(int b) { in write() argument
45 final byte converted = (byte) (b & 0xFF); in write()
50 public void write(byte[] b) { in write() argument
51 write(b, 0, b.length); in write()
55 public void write(byte[] b, int off, int len) { in write() argument
59 mReceiver.addOutput(b, off, len); in write()
DFixedByteArrayOutputStream.java79 public void write(byte[] b, int off, int len) throws IOException { in write() argument
80 if (b == null) { in write()
85 System.arraycopy(b, off + len - mBuffer.length, mBuffer, 0, mBuffer.length); in write()
93 System.arraycopy(b, off, mBuffer, mWritePos, len); in write()
96 System.arraycopy(b, off, mBuffer, mWritePos, freeSpace); in write()
98 System.arraycopy(b, off + freeSpace, mBuffer, 0, len - freeSpace); in write()
DByteArrayList.java141 public boolean add(byte b) { in add() argument
143 mStorage[mCurBytes] = b; in add()
256 public byte set(int idx, byte b) { in set() argument
261 mStorage[idx] = b; in set()
DStreamUtil.java371 int b = 0x0f & (bytes[i] >> 4); in bytesToHexString() local
372 sb.append(HEX_CHARS[b]); in bytesToHexString()
373 b = 0x0f & bytes[i]; in bytesToHexString()
374 sb.append(HEX_CHARS[b]); in bytesToHexString()
/tools/tradefederation/core/tests/src/com/android/tradefed/util/
DSerializationUtilTest.java54 BuildInfo b = new BuildInfo(); in testSerialize_Deserialize() local
55 File tmpSerialized = SerializationUtil.serialize(b); in testSerialize_Deserialize()
60 assertTrue(b.equals(test)); in testSerialize_Deserialize()
70 BuildInfo b = new BuildInfo(); in testSerialize_Deserialize_noDelete() local
71 File tmpSerialized = SerializationUtil.serialize(b); in testSerialize_Deserialize_noDelete()
77 assertTrue(b.equals(test)); in testSerialize_Deserialize_noDelete()
101 BuildInfo b = new BuildInfo(); in testSerialize_Deserialize_corrupted() local
102 File tmpSerialized = SerializationUtil.serialize(b); in testSerialize_Deserialize_corrupted()
/tools/dexter/slicer/export/slicer/
Dbuffer.h46 Buffer(Buffer&& b) { in Buffer() argument
47 std::swap(buff_, b.buff_); in Buffer()
48 std::swap(size_, b.size_); in Buffer()
49 std::swap(capacity_, b.capacity_); in Buffer()
52 Buffer& operator=(Buffer&& b) {
54 std::swap(buff_, b.buff_);
55 std::swap(size_, b.size_);
56 std::swap(capacity_, b.capacity_);
Dscopeguard.h68 #define SLICER_SG_MACRO_CONCAT2(a, b) a ## b argument
69 #define SLICER_SG_MACRO_CONCAT(a, b) SLICER_SG_MACRO_CONCAT2(a, b) argument
/tools/test/connectivity/acts/tests/google/net/
DDhcpServerTest.py411 hostname1 = b'testhostname1'
412 hostname2 = b'testhostname2'
615 ('client_id', b'\x01' + self.hwaddr),
617 ('hostname', b'test12-macbookpro'),
644 ('client_id', b'\x01' + self.hwaddr),
646 ('hostname', b'test12-macbookpro'),
660 ('client_id', b'\x01' + self.hwaddr),
663 ('hostname', b'test12-macbookpro'),
679 ('client_id', b'\x01' + self.hwaddr),
681 ('hostname', b'test12-macbookpro'),
[all …]
/tools/test/connectivity/acts/framework/tests/controllers/gnssinst_lib/
Dabstract_inst_test.py31 mock_connect.return_value.recv.return_value = b'Dummy Instrument\n'
37 mock_connect.return_value.sendall.assert_called_with(b'*IDN?;*OPC?\n')
69 test_inst._socket.sendall.assert_called_with(b'TestCommand\n')
96 test_inst._socket.recv.return_value = b'TestResponse\n'
125 mock_connect.return_value.recv.return_value = b'Dummy Instrument\n'
139 test_inst._socket.recv.return_value = b'TestResponse\n'
143 test_inst._socket.sendall.assert_called_with(b'TestCommand;*OPC?\n')
/tools/tradefederation/core/src/com/android/tradefed/build/
DDeviceBuildDescriptor.java98 public static void injectDeviceAttributes(ITestDevice device, IBuildInfo b) in injectDeviceAttributes() argument
100 b.addBuildAttribute(DEVICE_BUILD_ID, device.getBuildId()); in injectDeviceAttributes()
101 b.addBuildAttribute(DEVICE_BUILD_ALIAS, device.getBuildAlias()); in injectDeviceAttributes()
104 b.addBuildAttribute(DEVICE_BUILD_FLAVOR, buildFlavor); in injectDeviceAttributes()
105 b.addBuildAttribute(DEVICE_DESC, generateDeviceDesc(device)); in injectDeviceAttributes()
106 b.addBuildAttribute(DEVICE_PRODUCT, generateDeviceProduct(device)); in injectDeviceAttributes()
/tools/test/connectivity/acts/framework/tests/controllers/sl4a_lib/
Drpc_connection_test.py21 MOCK_RESP = b'{"id": 0, "result": 123, "error": null, "status": 1, "uid": 1}'
22 MOCK_RESP_UNKNOWN_UID = b'{"id": 0, "result": 123, "error": null, "status": 0}'
23 MOCK_RESP_WITH_ERROR = b'{"id": 0, "error": 1, "status": 1, "uid": 1}'
119 connection = self.mock_rpc_connection(b'')
136 [b'{"cmd": "test", "uid": -1}\n', b'{"uid": -1, "cmd": "test"}\n'])
/tools/tradefederation/core/src/com/android/tradefed/log/
DConsoleReaderOutputStream.java110 public synchronized void write(byte[] b, int off, int len) throws IOException { in write() argument
111 final boolean shufflePrompt = mInAsyncMode && (b[off + len - 1] == '\n'); in write()
123 mConsoleReader.printString(new String(b, off, len)); in write()
135 public synchronized void write(int b) throws IOException { in write() argument
136 char[] str = new char[] {(char)(b & 0xff)}; in write()
/tools/tradefederation/core/tests/src/com/android/tradefed/build/
DDeviceBuildDescriptorFuncTest.java29 BuildInfo b = new BuildInfo(); in testDeviceBuildDescriptor() local
30 DeviceBuildDescriptor.injectDeviceAttributes(getDevice(), b); in testDeviceBuildDescriptor() local
31 assertTrue(DeviceBuildDescriptor.describesDeviceBuild(b)); in testDeviceBuildDescriptor()
32 DeviceBuildDescriptor d2 = new DeviceBuildDescriptor(b); in testDeviceBuildDescriptor()
DDeviceBuildDescriptorTest.java31 BuildInfo b = new BuildInfo(); in testDeviceBuildDescriptor() local
39 DeviceBuildDescriptor.injectDeviceAttributes(d, b); in testDeviceBuildDescriptor()
40 DeviceBuildDescriptor db = new DeviceBuildDescriptor(b); in testDeviceBuildDescriptor()
/tools/test/connectivity/acts/framework/acts/test_utils/bt/
Dbt_metrics_utils.py41 lambda a, b : a + b)
47 lambda a, b : a + b)
Dbt_contacts_utils.py58 vcard_regex = re.compile(b"^BEGIN:VCARD((\n*?.*?)*?)END:VCARD",
60 fullname_regex = re.compile(b"^FN:(.*)", re.MULTILINE)
61 email_regex = re.compile(b"^EMAIL;PREF:(.*)", re.MULTILINE)
62 tel_regex = re.compile(b"^TEL;(.*):(.*)", re.MULTILINE)
96 tel_regex = re.compile(b"^TEL;(.*):(.*)", re.MULTILINE)
/tools/apksig/src/main/java/com/android/apksig/internal/util/
DVerityTreeBuilder.java210 ByteBuffer b = buffer.duplicate(); in slice() local
211 b.position(0); // to ensure position <= limit invariant. in slice()
212 b.limit(end); in slice()
213 b.position(begin); in slice()
214 return b.slice(); in slice()
/tools/apksig/src/apksigner/java/com/android/apksigner/
DPasswordRetriever.java370 int b; in readEncodedPassword() local
371 while ((b = in.read()) != -1) { in readEncodedPassword()
372 if (b == '\n') { in readEncodedPassword()
374 } else if (b == '\r') { in readEncodedPassword()
385 result.write(b); in readEncodedPassword()
DHexEncoding.java37 byte b = data[offset + i]; in encode()
38 result.append(HEX_DIGITS[(b >>> 4) & 0x0f]); in encode()
39 result.append(HEX_DIGITS[b & 0x0f]); in encode()
/tools/apksig/src/test/java/com/android/apksig/internal/util/
DHexEncoding.java44 byte b = data[offset + i]; in encode()
45 result.append(HEX_DIGITS[(b >>> 4) & 0x0f]); in encode()
46 result.append(HEX_DIGITS[b & 0x0f]); in encode()
/tools/tradefederation/core/src/com/android/tradefed/device/cloud/
DGceManager.java212 protected List<String> buildGceCmd(File reportFile, IBuildInfo b) { in buildGceCmd() argument
231 if (b.getBuildAttributes().containsKey("build_target")) { in buildGceCmd()
233 gceArgs.add(b.getBuildAttributes().get("build_target")); in buildGceCmd()
235 gceArgs.add(b.getBuildFlavor()); in buildGceCmd()
238 gceArgs.add(b.getBuildBranch()); in buildGceCmd()
240 gceArgs.add(b.getBuildId()); in buildGceCmd()

12345