Home
last modified time | relevance | path

Searched defs:bytes (Results 1 – 25 of 402) sorted by relevance

12345678910>>...17

/packages/modules/NetworkStack/tests/unit/src/android/net/dhcp6/
DDhcp6PacketTest.kt44 val bytes = HexDump.hexStringToByteArray(solicitHex) in testDecodeDhcp6SolicitPacket() constant
62 val bytes = HexDump.hexStringToByteArray(solicitHex) in testDecodeDhcp6SolicitPacket_incorrectOptionLength() constant
81 val bytes = HexDump.hexStringToByteArray(solicitHex) in testDecodeDhcp6SolicitPacket_lastTruncatedOption() constant
100 val bytes = HexDump.hexStringToByteArray(solicitHex) in testDecodeDhcp6SolicitPacket_middleTruncatedOption() constant
121 val bytes = HexDump.hexStringToByteArray(advertiseHex) in testDecodeDhcp6AdvertisePacket() constant
143 val bytes = HexDump.hexStringToByteArray(advertiseHex) in testDecodeDhcp6SolicitPacket_unsupportedOption() constant
172 val bytes = HexDump.hexStringToByteArray(replyHex) in testDecodeDhcp6ReplyPacket() constant
202 val bytes = HexDump.hexStringToByteArray(replyHex) in testGetMinimalPreferredValidLifetime() constant
230 val bytes = HexDump.hexStringToByteArray(replyHex) in testStatusCodeOptionWithStatusMessage() constant
258 val bytes = HexDump.hexStringToByteArray(replyHex) in testStatusCodeOptionWithoutStatusMessage() constant
[all …]
/packages/modules/Bluetooth/android/pandora/test/a2dp/packets/
Davdtp.py16 def parse_all(cls, span: bytes) -> "Packet":
239 def parse(span: bytes) -> Tuple["SeidInformation", bytes]:
250 def serialize(self, payload: bytes = None) -> bytes:
283 def parse(span: bytes) -> Tuple["ServiceCapability", bytes]:
345 def serialize(self, payload: bytes = None) -> bytes:
368 def parse(fields: dict, span: bytes) -> Tuple["MediaTransportCapability", bytes]:
373 def serialize(self, payload: bytes = None) -> bytes:
389 def parse(fields: dict, span: bytes) -> Tuple["ReportingCapability", bytes]:
394 def serialize(self, payload: bytes = None) -> bytes:
413 def parse(fields: dict, span: bytes) -> Tuple["RecoveryCapability", bytes]:
[all …]
/packages/modules/Nfc/libnfc-nci/tools/casimir/scripts/
Drf_packets.py15 def parse_all(cls, span: bytes) -> 'Packet':
146 def parse(span: bytes) -> Tuple['RfPacket', bytes]:
199 def serialize(self, payload: bytes = None) -> bytes:
227 def parse(fields: dict, span: bytes) -> Tuple['PollCommand', bytes]:
234 def serialize(self, payload: bytes = None) -> bytes:
254 def parse(fields: dict, span: bytes) -> Tuple['NfcAPollResponse', bytes]:
272 def serialize(self, payload: bytes = None) -> bytes:
300 def parse(fields: dict, span: bytes) -> Tuple['T4ATSelectCommand', bytes]:
309 def serialize(self, payload: bytes = None) -> bytes:
331 def parse(fields: dict, span: bytes) -> Tuple['T4ATSelectResponse', bytes]:
[all …]
/packages/modules/Bluetooth/system/gd/hci/acl_manager/
Dclassic_impl_test.cc64 auto bytes = std::make_shared<std::vector<uint8_t>>(); in Serialize() local
71 T CreateCommandView(std::shared_ptr<std::vector<uint8_t>> bytes) { in CreateCommandView()
76 T CreateAclCommandView(std::shared_ptr<std::vector<uint8_t>> bytes) { in CreateAclCommandView()
81 T CreateConnectionManagementCommandView(std::shared_ptr<std::vector<uint8_t>> bytes) { in CreateConnectionManagementCommandView()
86 T CreateSecurityCommandView(std::shared_ptr<std::vector<uint8_t>> bytes) { in CreateSecurityCommandView()
91 T CreateEventView(std::shared_ptr<std::vector<uint8_t>> bytes) { in CreateEventView()
100 auto bytes = Serialize<hci::CommandCompleteBuilder>(std::move(builder)); in ReturnCommandComplete() local
110 auto bytes = Serialize<hci::CommandStatusBuilder>(std::move(builder)); in ReturnCommandStatus() local
197 auto bytes = std::make_shared<std::vector<uint8_t>>(); in HciDownEndDequeue() local
246 auto bytes = Serialize<ConnectionCompleteBuilder>(std::move(command)); in TEST_F() local
/packages/modules/Uwb/service/java/com/android/server/uwb/util/
DDataTypeConversionUtil.java99 public static short byteArrayToI16(byte[] bytes) { in byteArrayToI16()
109 public static int byteArrayToI32(byte[] bytes) { in byteArrayToI32()
119 public static int arbitraryByteArrayToI32(byte[] bytes) { in arbitraryByteArrayToI32()
148 public static long macAddressByteArrayToLong(byte[] bytes) { in macAddressByteArrayToLong()
169 public static byte[] convertShortMacAddressBytesToExtended(byte[] bytes) { in convertShortMacAddressBytesToExtended()
181 private static boolean isExtendedMSBZeroedOut(byte[] bytes) { in isExtendedMSBZeroedOut()
DHex.java51 public static String encode(byte[] bytes) { in encode()
56 public static String encodeUpper(byte[] bytes) { in encodeUpper()
95 private static String doEncode(byte[] bytes, char[] alphabet) { in doEncode()
/packages/modules/Bluetooth/android/pandora/mmi2grpc/mmi2grpc/
Dgap.py51 def test_started(self, test: str, description: str, pts_addr: bytes):
70 def TSC_MMI_iut_send_hci_connect_request(self, test: str, pts_addr: bytes, **kwargs):
141 def TSC_MMI_iut_enter_handle_for_insufficient_authentication(self, pts_addr: bytes, **kwargs):
163 def TSC_MMI_the_security_id_is(self, pts_addr: bytes, passkey: str, **kwargs):
176 def TSC_MMI_iut_send_le_connect_request(self, test: str, pts_addr: bytes, **kwargs):
223 def TSC_MMI_enter_security_id(self, pts_addr: bytes, **kwargs):
241 def TSC_MMI_iut_send_att_service_request(self, pts_addr: bytes, handle: str, **kwargs):
367 def TSC_MMI_iut_start_general_inquiry_found(self, pts_addr: bytes, **kwargs):
382 def TSC_MMI_iut_send_att_read_by_type_request_name_request(self, pts_addr: bytes, **kwargs):
394 def TSC_MMI_iut_confirm_device_discovery(self, test: str, pts_addr: bytes, **kwargs):
[all …]
Dhid.py35 def TSC_MMI_iut_enable_connection(self, pts_addr: bytes, **kwargs):
47 def TSC_MMI_iut_release_connection(self, pts_addr: bytes, **kwargs):
69 def TSC_MMI_iut_disable_connection(self, pts_addr: bytes, **kwargs):
105 def TSC_HID_MMI_iut_accept_control_channel(self, pts_addr: bytes, **kwargs):
147 def TSC_MMI_host_send_output_report(self, pts_addr: bytes, **kwargs):
171 def TSC_MMI_rf_shield_iut_or_tester(self, pts_addr: bytes, **kwargs):
190 def TSC_MMI_iut_auto_connection(self, pts_addr: bytes, **kwargs):
Dhfp.py62 def test_started(self, test: str, pts_addr: bytes, **kwargs):
69 def TSC_delete_pairing_iut(self, pts_addr: bytes, **kwargs):
79 def TSC_iut_enable_slc(self, test: str, pts_addr: bytes, **kwargs):
110 def TSC_iut_connect(self, pts_addr: bytes, **kwargs):
138 def TSC_iut_disable_slc(self, test: str, pts_addr: bytes, **kwargs):
227 def TSC_iut_disable_audio(self, test: str, pts_addr: bytes, **kwargs):
254 def TSC_iut_enable_audio(self, test: str, pts_addr: bytes, **kwargs):
272 def TSC_iut_disable_audio_slc_down_ok(self, pts_addr: bytes, **kwargs):
402 def TSC_disable_ag_cellular_network_expect_notification(self, pts_addr: bytes, **kwargs):
591 def TSC_prepare_iut_for_vra(self, pts_addr: bytes, test: str, **kwargs):
[all …]
Dopp.py41 def TSC_OBEX_MMI_iut_accept_connect_OPP(self, pts_addr: bytes, **kwargs):
86 def TSC_OBEX_MMI_iut_accept_slc_connect_l2cap(self, pts_addr: bytes, **kwargs):
119 def TSC_OBEX_MMI_iut_initiate_slc_connect_rfcomm(self, pts_addr: bytes, **kwargs):
129 def TSC_OBEX_MMI_iut_initiate_slc_connect_l2cap(self, pts_addr: bytes, **kwargs):
/packages/modules/Nfc/NfcNci/testutils/
Dparse_log.py200 def parse_file(data: bytes) -> list[PollingLoopEntry | PartialApduEntry]:
264 def find_apdu_transactions(data: bytes, ts: int) -> list[PartialApduEntry]:
292 def parse_apdu_command(data: bytes):
319 def parse_apdu_response(data: bytes):
347 def add_polling_data(data: bytes, ts: int) -> list[PollingLoopEntry]:
385 def calculate_timestamp(data: bytes) -> int:
408 def inflate(data: bytes) -> bytes:
/packages/modules/Bluetooth/framework/java/android/bluetooth/
DUidTraffic.java57 public void setRxBytes(long bytes) { in setRxBytes()
62 public void setTxBytes(long bytes) { in setTxBytes()
67 public void addRxBytes(long bytes) { in addRxBytes()
72 public void addTxBytes(long bytes) { in addTxBytes()
/packages/modules/AdServices/adservices/libraries/cobalt/java/com/android/cobalt/data/
DConverters.java113 public static HashCode bytesToHashCode(byte[] bytes) { in bytesToHashCode()
135 public static SystemProfile bytesToSystemProfile(byte[] bytes) { in bytesToSystemProfile()
161 public static AggregateValue bytesToAggregateValue(byte[] bytes) { in bytesToAggregateValue()
188 public static UnencryptedObservationBatch bytesToUnencryptedObservationBatch(byte[] bytes) { in bytesToUnencryptedObservationBatch()
/packages/modules/Bluetooth/tools/rootcanal/py/
Dbluetooth.py38 def parse(span: bytes) -> Tuple['Address', bytes]:
42 def parse_all(span: bytes) -> 'Address':
70 def parse(span: bytes) -> Tuple['Address', bytes]:
74 def parse_all(span: bytes) -> 'Address':
/packages/modules/Bluetooth/system/blueberry/utils/
Dbluetooth.py27 def parse(span: bytes) -> Tuple['Address', bytes]:
31 def parse_all(span: bytes) -> 'Address':
60 def parse(span: bytes) -> Tuple['ClassOfDevice', bytes]:
64 def parse_all(span: bytes) -> 'ClassOfDevice':
/packages/modules/Connectivity/nearby/service/java/com/android/server/nearby/util/
DHex.java35 public static String bytesToStringLowercase(byte[] bytes) { in bytesToStringLowercase()
49 public static String bytesToStringUppercase(byte[] bytes) { in bytesToStringUppercase()
54 public static String bytesToStringUppercase(byte[] bytes, boolean zeroTerminated) { in bytesToStringUppercase()
/packages/modules/GeoTZ/s2storage/src/write/java/com/android/storage/io/write/
DTypedOutputStream.java97 public void writeBytes(byte[] bytes) throws IOException { in writeBytes()
104 public void writeBytes(byte[] bytes, int off, int len) throws IOException { in writeBytes()
111 public void writeTinyByteArray(byte[] bytes) throws IOException { in writeTinyByteArray()
119 public void writeByteArray(byte[] bytes) throws IOException { in writeByteArray()
/packages/modules/Connectivity/service/src/com/android/server/net/
DL2capPacketForwarder.java70 int read(byte[] bytes, int off, int len) throws IOException; in read()
76 void write(byte[] bytes, int off, int len) throws IOException; in write()
109 public int read(byte[] bytes, int off, int len) throws IOException { in read()
122 public void write(byte[] bytes, int off, int len) throws IOException { in write()
171 public int read(byte[] bytes, int off, int len) throws IOException { in read()
184 public void write(byte[] bytes, int off, int len) throws IOException { in write()
187 Os.write(mFd.getFileDescriptor(), bytes, off, len); in write() local
/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivity/mdns/
DMdnsPacketTest.kt44 val bytes = HexDump.hexStringToByteArray(packetHex) in makeFlags() constant
81 val bytes = HexDump.hexStringToByteArray(packetWithErrorHex) in testParseQueryWithLabelLoop_ThrowsParseException() constant
/packages/apps/CertInstaller/src/com/android/certinstaller/
DUtil.java45 static <T> T fromBytes(byte[] bytes) { in fromBytes()
57 static String toMd5(byte[] bytes) { in toMd5()
70 private static String toHexString(byte[] bytes, String separator) { in toHexString()
/packages/apps/Dialer/java/com/android/voicemail/impl/imap/
DVoicemailPayload.java22 private final byte[] bytes; field in VoicemailPayload
24 public VoicemailPayload(String mimeType, byte[] bytes) { in VoicemailPayload()
/packages/modules/Bluetooth/pandora/server/bumble_experimental/
Dasha.py65 def on_volume_write(connection: Connection, value: bytes) -> None:
70 def on_audio_control_point_write(connection: Connection, value: bytes) -> None:
152 def on_data(data: bytes) -> None:
235 def on_data(asha_connection: BumbleConnection, data: bytes) -> None:
/packages/modules/Connectivity/staticlibs/device/com/android/net/module/util/netlink/xfrm/
DStructXfrmLifetimeCur.java45 public final BigInteger bytes; field in StructXfrmLifetimeCur
56 public StructXfrmLifetimeCur( in StructXfrmLifetimeCur()
/packages/modules/NetworkStack/src/android/net/apf/
DApfV61GeneratorBase.java41 public ApfV61GeneratorBase(byte[] bytes, int version, int ramSize, int clampSize) in ApfV61GeneratorBase()
109 public final Type addCountAndDropIfBytesAtR0NotEqual(byte[] bytes, in addCountAndDropIfBytesAtR0NotEqual()
115 public final Type addCountAndPassIfBytesAtR0NotEqual(byte[] bytes, in addCountAndPassIfBytesAtR0NotEqual()
329 public Type addCountAndPassIfBytesAtOffsetNotEqual(int offset, byte[] bytes, in addCountAndPassIfBytesAtOffsetNotEqual()
335 public Type addCountAndDropIfBytesAtOffsetNotEqual(int offset, byte[] bytes, in addCountAndDropIfBytesAtOffsetNotEqual()
341 public Type addCountAndPassIfBytesAtOffsetEqual(int offset, byte[] bytes, in addCountAndPassIfBytesAtOffsetEqual()
347 public Type addCountAndDropIfBytesAtOffsetEqual(int offset, byte[] bytes, in addCountAndDropIfBytesAtOffsetEqual()
353 public Type addJumpIfBytesAtOffsetNotEqual(int offset, @NonNull byte[] bytes, short tgt) in addJumpIfBytesAtOffsetNotEqual()
/packages/apps/SettingsIntelligence/src/com/android/settings/intelligence/search/
DResultPayloadUtils.java38 public static <T> T unmarshall(byte[] bytes, Parcelable.Creator<T> creator) { in unmarshall()
46 private static Parcel unmarshall(byte[] bytes) { in unmarshall()

12345678910>>...17