Home
last modified time | relevance | path

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

12345678910

/tools/test/connectivity/acts_tests/acts_contrib/test_utils/bt/pts/
Dfuchsia_pts_ics_lib.py22 b'TSPC_ALL': b'FALSE',
23 b'TSPC_A2DP_0_1': b'FALSE',
24 b'TSPC_A2DP_0_2': b'FALSE',
25 b'TSPC_A2DP_0_3': b'FALSE',
26 b'TSPC_A2DP_1_1': b'TRUE',
27 b'TSPC_A2DP_1_2': b'TRUE',
28 b'TSPC_A2DP_2_1': b'TRUE',
29 b'TSPC_A2DP_2a_1': b'FALSE',
30 b'TSPC_A2DP_2a_2': b'TRUE',
31 b'TSPC_A2DP_2a_3': b'FALSE',
[all …]
Dfuchsia_pts_ixit_lib.py21 b'TSPX_security_enabled': (b'BOOLEAN', b'FALSE'),
22 b'TSPX_bd_addr_iut': (b'OCTETSTRING', b'000000000000'),
23 b'TSPX_SRC_class_of_device': (b'OCTETSTRING', b'080418'),
24 b'TSPX_SNK_class_of_device': (b'OCTETSTRING', b'04041C'),
25 b'TSPX_pin_code': (b'IA5STRING', b'0000'),
26 b'TSPX_delete_link_key': (b'BOOLEAN', b'FALSE'),
27 b'TSPX_time_guard': (b'INTEGER', b'300000'),
28 b'TSPX_use_implicit_send': (b'BOOLEAN', b'TRUE'),
29 b'TSPX_media_directory':
30 (b'IA5STRING', b'C:\Program Files\Bluetooth SIG\Bluetooth PTS\\bin\\audio'),
[all …]
/tools/dexter/slicer/
Ddex_ir.cc172 [](const EncodedField* a, const EncodedField* b) { in SortEncodedFields() argument
173 SLICER_CHECK(a->decl->index != b->decl->index || a == b); in SortEncodedFields()
174 return a->decl->index < b->decl->index; in SortEncodedFields()
181 [](const EncodedMethod* a, const EncodedMethod* b) { in SortEncodedMethods() argument
182 SLICER_CHECK(a->decl->index != b->decl->index || a == b); in SortEncodedMethods()
183 return a->decl->index < b->decl->index; in SortEncodedMethods()
206 IndexItems(strings, [](const own<String>& a, const own<String>& b) { in Normalize() argument
209 return dex::Utf8Cmp(a->c_str(), b->c_str()) < 0; in Normalize()
212 IndexItems(types, [](const own<Type>& a, const own<Type>& b) { in Normalize() argument
214 return a->descriptor->index < b->descriptor->index; in Normalize()
[all …]
/tools/platform-compat/build/
Dprocess-compat-config-test.py72 …self.merger.merge(io.BytesIO(b'<config><compat-change id="1234" name="TEST_CHANGE" /></config>'), …
77 …self.merger.merge(io.BytesIO(b'<config><compat-change id="1234" name="TEST_CHANGE" /></config>'), …
78 …self.merger.merge(io.BytesIO(b'<config><compat-change id="1235" name="TEST_CHANGE2" /></config>'),…
85b'<config><compat-change id="1234" name="TEST_CHANGE"><meta-data definedIn="some.Class" sourcePosi…
86 b'</compat-change></config>'), here())
88b'<config><compat-change id="1235" name="TEST_CHANGE2"><meta-data definedIn="other.Class" sourcePo…
89 b'</compat-change></config>'), here())
91 self.assert_same_xml(self.xml.getvalue(), b'<config>'
92b'<compat-change id="1234" name="TEST_CHANGE"><meta-data definedIn="some.Class" sourcePosition="so…
93b'<compat-change id="1235" name="TEST_CHANGE2"><meta-data definedIn="other.Class" sourcePosition="…
[all …]
/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/dexter/slicer/export/slicer/
Dcommon.h46 #define SLICER_CHECK_EQ(a, b) SLICER_CHECK_OP(a, b, ==, "EQ") argument
47 #define SLICER_CHECK_NE(a, b) SLICER_CHECK_OP(a, b, !=, "NE") argument
48 #define SLICER_CHECK_LT(a, b) SLICER_CHECK_OP(a, b, <, "LT") argument
49 #define SLICER_CHECK_LE(a, b) SLICER_CHECK_OP(a, b, <=, "LE") argument
50 #define SLICER_CHECK_GT(a, b) SLICER_CHECK_OP(a, b, >, "GT") argument
51 #define SLICER_CHECK_GE(a, b) SLICER_CHECK_OP(a, b, >=, "GE") argument
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.h70 #define SLICER_SG_MACRO_CONCAT2(a, b) a ## b argument
71 #define SLICER_SG_MACRO_CONCAT(a, b) SLICER_SG_MACRO_CONCAT2(a, b) argument
/tools/security/fuzzing/llm/xz_fuzzer/
Dxz_decoder_fuzzer.cpp26 struct xz_buf b; in LLVMFuzzerTestOneInput() local
32 b.in = in_buffer.data(); in LLVMFuzzerTestOneInput()
33 b.in_pos = 0; in LLVMFuzzerTestOneInput()
34 b.in_size = in_buffer_size; in LLVMFuzzerTestOneInput()
38 b.out = out_buffer.data(); in LLVMFuzzerTestOneInput()
39 b.out_pos = 0; in LLVMFuzzerTestOneInput()
40 b.out_size = out_buffer_size; in LLVMFuzzerTestOneInput()
43 xz_ret result = xz_dec_run(s, &b); in LLVMFuzzerTestOneInput()
/tools/tradefederation/core/src/com/android/tradefed/util/
DShellOutputReceiverStream.java50 public void write(int b) { in write() argument
54 final byte converted = (byte) (b & 0xFF); in write()
59 public void write(byte[] b) { in write() argument
60 write(b, 0, b.length); in write()
64 public void write(byte[] b, int off, int len) { in write() argument
68 mReceiver.addOutput(b, off, len); in write()
71 mFileOutput.write(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()
/tools/test/mobly_extensions/tools/
Ddevice_flags_test.py34 self.ad.adb.shell.return_value = b'foo'
45 self.ad.adb.shell.return_value = b'false'
56 self.ad.adb.shell.return_value = b'false'
67 self.ad.adb.shell.return_value = b'null'
74 self.ad.adb.shell.return_value = b'true'
81 self.ad.adb.shell.return_value = b'false'
88 self.ad.adb.shell.return_value = b'foo'
99 self.ad.adb.shell.return_value = b'true'
106 self.ad.adb.shell.return_value = b'true'
113 self.ad.adb.shell.return_value = b'foo'
/tools/asuite/aidegen/sdk/
Djdk_table_unittest.py111 expected_result = (b'<application>\n'
112 b' <component name="ProjectJdkTable">\n'
113 b' <jdk />\n'
114 b' </component>\n'
115 b'</application>')
128 expected_result = (b'<application>\n'
129 b' <component name="ProjectJdkTable">\n'
130 b' <jdk>\n'
131 b' <name value="test" />\n'
132 b' <type value="JavaSDK" />\n'
[all …]
/tools/security/gdb/gdb_json_printer/test_examples/
Dobjects2.cpp28 uint16_t b = 2; member in Foo1
29 virtual int get() override { return b; } in get()
45 uint16_t b = 2; member in Foo4
46 virtual int get() override { return b; } in get()
78 Foo2 b; in main() local
81 b.c += 1; in main()
Dbasic_types.cpp25 int8_t b = -2; in main() local
40 a += b; in main()
42 std::cout << a + b + c + d + e + f + g + h + i + j << std::endl; in main()
47 const int8_t b = -2; in main() local
62 std::cout << a + b + c + d + e + f + g + h + i + j << std::endl; in main()
/tools/tradefederation/core/javatests/com/android/tradefed/util/
DSerializationUtilTest.java65 BuildInfo b = new BuildInfo(); in testSerialize_Deserialize() local
66 File tmpSerialized = SerializationUtil.serialize(b); in testSerialize_Deserialize()
71 assertTrue(b.equals(test)); in testSerialize_Deserialize()
81 BuildInfo b = new BuildInfo(); in testSerialize_Deserialize_noDelete() local
82 File tmpSerialized = SerializationUtil.serialize(b); in testSerialize_Deserialize_noDelete()
88 assertTrue(b.equals(test)); in testSerialize_Deserialize_noDelete()
112 BuildInfo b = new BuildInfo(); in testSerialize_Deserialize_corrupted() local
113 File tmpSerialized = SerializationUtil.serialize(b); in testSerialize_Deserialize_corrupted()
/tools/external_updater/
Dtest_fileutils.py38 b = temp_dir / "external" / "b"
40 b.mkdir(parents=True)
42 [a, b],
44 [str(a), str(b), "/does/not/exist"]
60 b = working_dir / "b"
61 b.mkdir()
64 [a, working_dir, b],
/tools/tradefederation/core/src/com/android/tradefed/build/
DDeviceBuildDescriptor.java107 public static void injectDeviceAttributes(ITestDevice device, IBuildInfo b) in injectDeviceAttributes() argument
109 b.addBuildAttribute(DEVICE_BUILD_ID, device.getBuildId()); in injectDeviceAttributes()
110 b.addBuildAttribute(DEVICE_BUILD_ALIAS, device.getBuildAlias()); in injectDeviceAttributes()
116 b.addBuildAttribute(DEVICE_BUILD_FLAVOR, buildFlavor); in injectDeviceAttributes()
117 b.addBuildAttribute(DEVICE_DESC, generateDeviceDesc(device)); in injectDeviceAttributes()
118 b.addBuildAttribute(DEVICE_PRODUCT, generateDeviceProduct(device)); in injectDeviceAttributes()
/tools/tradefederation/core/javatests/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()
/tools/acloud/internal/lib/
Demulator_console_test.py133 self._mock_connection.send.assert_called_with(b"ping\n")
143 self._mock_connection.recv.side_effect = [b"1", b"1"]
145 self._mock_connection.recv.side_effect = [b"12"]
148 self._mock_connection.recv.side_effect = [b"1", b""]
159 self._mock_connection.recv.side_effect = [b"I am alive!\r\nOK\r\n"]
162 self._mock_connection.recv.side_effect = [b""]
171 self._mock_connection.recv.side_effect = [b"bye bye\r\n"]
/tools/test/connectivity/acts/framework/acts/controllers/buds_lib/dev_utils/proto/gen/
Dapollo_qa_pb2.py17 DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x0f\x61pollo_qa.proto\x12$apollo.lib…
24 DESCRIPTOR._serialized_options = b'\n\035com.google.android.bisto.nanoB\010ApolloQA'
26 _APOLLOQATRACE.fields_by_name['data']._serialized_options = b'\020\001\222?\002\020\005'
28 _APOLLOQAGETVERRESPONSE.fields_by_name['build_label']._serialized_options = b'\222?\002\010 '
30 …_APOLLOQAFACTORYINFORESPONSE.fields_by_name['crystal_trim']._serialized_options = b'\222?\0028\020'
/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/test/connectivity/acts/framework/tests/controllers/pdu_lib/synaccess/
Dnp02b_test.py27 VALID_COMMAND_BYTE_STR = b'cmd\n\r'
29 VALID_RESPONSE_BYTE_STR = b'\n\r\r\n\r\n'
31 STATUS_COMMAND_BYTE_STR = b'pshow\n\r'
36 b'Port | Name |Status 1 | Outlet1 | OFF| 2 | Outlet2 | '
37 b'ON |\n\r\r\n\r\n')
38 INVALID_COMMAND_OUTPUT_BYTE_STR = b'Invalid Command\n\r\r\n\r\n>'
/tools/tradefederation/core/src/com/android/tradefed/command/console/
DConsoleReaderOutputStream.java47 public synchronized void write(byte[] b, int off, int len) throws IOException { in write() argument
50 String str = unfinishedLine + new String(b, off, len); in write()
62 public synchronized void write(int b) throws IOException { in write() argument
63 char[] str = new char[] {(char) (b & 0xff)}; in write()

12345678910