/tools/test/connectivity/acts/framework/acts/test_utils/bt/pts/ |
D | fuchsia_pts_ics_lib.py | 22 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 …]
|
D | fuchsia_pts_ixit_lib.py | 21 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/ |
D | dex_ir.cc | 164 [](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 …]
|
D | bytecode_encoder.cc | 33 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/platform-compat/build/ |
D | process-compat-config-test.py | 51 …self.merger.merge(io.BytesIO(b'<config><compat-change id="1234" name="TEST_CHANGE" /></config>'), … 56 …self.merger.merge(io.BytesIO(b'<config><compat-change id="1234" name="TEST_CHANGE" /></config>'), … 57 …self.merger.merge(io.BytesIO(b'<config><compat-change id="1235" name="TEST_CHANGE2" /></config>'),… 64 …b'<config><compat-change id="1234" name="TEST_CHANGE"><meta-data definedIn="some.Class" sourcePosi… 65 b'</compat-change></config>'), here()) 67 …b'<config><compat-change id="1235" name="TEST_CHANGE2"><meta-data definedIn="other.Class" sourcePo… 68 b'</compat-change></config>'), here()) 70 self.assert_same_xml(self.xml.getvalue(), b'<config>' 71 …b'<compat-change id="1234" name="TEST_CHANGE"><meta-data definedIn="some.Class" sourcePosition="so… 72 …b'<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/ |
D | InputStreamBerDataValueReader.java | 118 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 …]
|
D | ByteBufferBerDataValueReader.java | 109 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/asuite/aidegen/sdk/ |
D | jdk_table_unittest.py | 109 expected_result = (b'<application>\n' 110 b' <component name="ProjectJdkTable">\n' 111 b' <jdk />\n' 112 b' </component>\n' 113 b'</application>') 126 expected_result = (b'<application>\n' 127 b' <component name="ProjectJdkTable">\n' 128 b' <jdk>\n' 129 b' <name value="test" />\n' 130 b' <type value="JavaSDK" />\n' [all …]
|
/tools/test/connectivity/acts_tests/tests/google/net/ |
D | DhcpServerTest.py | 409 hostname1 = b'testhostname1' 410 hostname2 = b'testhostname2' 613 ('client_id', b'\x01' + self.hwaddr), 615 ('hostname', b'test12-macbookpro'), 642 ('client_id', b'\x01' + self.hwaddr), 644 ('hostname', b'test12-macbookpro'), 658 ('client_id', b'\x01' + self.hwaddr), 661 ('hostname', b'test12-macbookpro'), 677 ('client_id', b'\x01' + self.hwaddr), 679 ('hostname', b'test12-macbookpro'), [all …]
|
/tools/treble/build/sandbox/ |
D | config.py | 476 return {b.name: b.allow_readwrite for b in self._build_config_map.values()} 496 return {b.name : b.overlays for b in self._build_config_map.values()} 505 return {b.name : b.views for b in self._build_config_map.values()}
|
/tools/tradefederation/core/tests/src/com/android/tradefed/util/ |
D | SerializationUtilTest.java | 65 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/dexter/slicer/export/slicer/ |
D | buffer.h | 46 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_);
|
/tools/test/connectivity/acts/framework/tests/controllers/rohdeschwarz_lib/ |
D | contest_test.py | 67 s.sendall(b'AtTestcaseStart') 69 asserts.assert_true(data == b'OK\n', "Received OK response.") 81 protocol.data_received(b'DUT_SWITCH_ON') 93 protocol.data_received(b'DUT_SWITCH_OFF') 104 protocol.data_received(b'AtTestcaseStart name_of_the_testcase') 114 protocol.data_received(b'AtTestplanStart') 124 protocol.data_received(b'AfterTestcase') 134 protocol.data_received(b'AfterTestplan')
|
/tools/tradefederation/core/src/com/android/tradefed/util/ |
D | ShellOutputReceiverStream.java | 41 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()
|
D | FixedByteArrayOutputStream.java | 79 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/connectivity/acts_tests/tests/google/bt/pts/ |
D | GattPtsTest.py | 46 fuchsia_ixit[b'TSPX_bd_addr_iut'] = (b'OCTETSTRING', 50 b'TSPX_iut_device_name_in_adv_packet_for_random_address'] = ( 51 b'IA5STRING', self.dut_bluetooth_local_name.encode()) 61 fuchsia_ixit[b'TSPX_bd_addr_iut'] = (b'OCTETSTRING', 65 b'TSPX_iut_device_name_in_adv_packet_for_random_address'] = ( 66 b'IA5STRING', self.dut_bluetooth_local_name.encode())
|
/tools/test/connectivity/acts/framework/acts/controllers/ |
D | bluetooth_pts_device.py | 395 ics_name, b'BOOLEAN', self.ics[ics_name], 512 addr = (ctypes.c_char_p(addr_str).value).replace(b'\xed', 513 b' ').decode("utf-8") 514 name = (ctypes.c_char_p(name_str).value).replace(b'\xed', 515 b' ').decode("utf-8") 516 cod = (ctypes.c_char_p(cod_str).value).replace(b'\xed', 517 b' ').decode("utf-8") 633 res = b'OK'
|
/tools/tradefederation/core/src/com/android/tradefed/build/ |
D | DeviceBuildDescriptor.java | 99 public static void injectDeviceAttributes(ITestDevice device, IBuildInfo b) in injectDeviceAttributes() argument 101 b.addBuildAttribute(DEVICE_BUILD_ID, device.getBuildId()); in injectDeviceAttributes() 102 b.addBuildAttribute(DEVICE_BUILD_ALIAS, device.getBuildAlias()); in injectDeviceAttributes() 108 b.addBuildAttribute(DEVICE_BUILD_FLAVOR, buildFlavor); in injectDeviceAttributes() 109 b.addBuildAttribute(DEVICE_DESC, generateDeviceDesc(device)); in injectDeviceAttributes() 110 b.addBuildAttribute(DEVICE_PRODUCT, generateDeviceProduct(device)); in injectDeviceAttributes()
|
/tools/test/connectivity/acts/framework/tests/controllers/pdu_lib/synaccess/ |
D | np02b_test.py | 28 VALID_COMMAND_BYTE_STR = b'cmd\n\r' 30 VALID_RESPONSE_BYTE_STR = b'\n\r\r\n\r\n' 32 STATUS_COMMAND_BYTE_STR = b'pshow\n\r' 37 b'Port | Name |Status 1 | Outlet1 | OFF| 2 | Outlet2 | ' 38 b'ON |\n\r\r\n\r\n') 39 INVALID_COMMAND_OUTPUT_BYTE_STR = b'Invalid Command\n\r\r\n\r\n>'
|
/tools/test/connectivity/acts/framework/tests/controllers/sl4a_lib/ |
D | rpc_connection_test.py | 21 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/ |
D | abstract_inst_test.py | 31 mock_connect.return_value.recv.return_value = b'Dummy Instrument\n' 66 test_inst._socket.sendall.assert_called_with(b'TestCommand\n') 93 test_inst._socket.recv.return_value = b'TestResponse\n' 122 mock_connect.return_value.recv.return_value = b'Dummy Instrument\n' 136 test_inst._socket.recv.return_value = b'TestResponse\n' 140 test_inst._socket.sendall.assert_called_with(b'TestCommand;*OPC?\n')
|
/tools/acloud/internal/lib/ |
D | ota_tools.py | 22 from six import b 178 output_file.write(b("lpmake=%s\n" % lpmake_path)) 182 output_file.write(b(line)) 188 output_file.write(b("%s_image=%s\n" % 260 output_file.write(b("%s %s %s\n" % (get_image(split_line[1]), 264 output_file.write(b(line))
|
/tools/apkzlib/src/test/java/com/android/tools/build/apkzlib/zip/ |
D | ZFileTest.java | 1552 StoredEntry b = zf.get("b"); in sortZipContentsWithDeferredCrc32() local 1553 assertNotNull(b); in sortZipContentsWithDeferredCrc32() 1554 assertNotSame(DataDescriptorType.NO_DATA_DESCRIPTOR, b.getDataDescriptorType()); in sortZipContentsWithDeferredCrc32() 1557 > b.getCentralDirectoryHeader().getOffset()); in sortZipContentsWithDeferredCrc32() 1565 b = zf.get("b"); in sortZipContentsWithDeferredCrc32() 1566 assertNotNull(b); in sortZipContentsWithDeferredCrc32() 1567 assertSame(DataDescriptorType.NO_DATA_DESCRIPTOR, b.getDataDescriptorType()); in sortZipContentsWithDeferredCrc32() 1571 < b.getCentralDirectoryHeader().getOffset()); in sortZipContentsWithDeferredCrc32() 1586 StoredEntry b = zf.get("b"); in sortZipContentsWithDeferredCrc32() 1587 assertNotNull(b); in sortZipContentsWithDeferredCrc32() [all …]
|
/tools/metalava/src/test/java/com/android/tools/metalava/ |
D | DriverTest.kt | 170 override fun write(b: ByteArray?, off: Int, len: Int) { in <lambda>() 171 otherStream.write(b, off, len) in <lambda>() 172 super.write(b, off, len) in <lambda>() 175 override fun write(b: ByteArray?) { in <lambda>() 176 otherStream.write(b) in <lambda>() 177 super.write(b) in <lambda>() 180 override fun write(b: Int) { in <lambda>() 181 otherStream.write(b) in <lambda>() 182 super.write(b) in <lambda>()
|
/tools/tradefederation/core/src/com/android/tradefed/log/ |
D | ConsoleReaderOutputStream.java | 110 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()
|