Home
last modified time | relevance | path

Searched refs:struct (Results 1 – 22 of 22) sorted by relevance

/packages/modules/NetworkStack/tests/unit/src/android/net/netlink/
DStructNlMsgHdrTest.java51 final StructNlMsgHdr struct = new StructNlMsgHdr(); in makeStructNlMsgHdr() local
52 struct.nlmsg_len = TEST_NLMSG_LEN; in makeStructNlMsgHdr()
53 struct.nlmsg_type = type; in makeStructNlMsgHdr()
54 struct.nlmsg_flags = TEST_NLMSG_FLAGS; in makeStructNlMsgHdr()
55 struct.nlmsg_seq = TEST_NLMSG_SEQ; in makeStructNlMsgHdr()
56 struct.nlmsg_pid = TEST_NLMSG_PID; in makeStructNlMsgHdr()
57 return struct; in makeStructNlMsgHdr()
67 StructNlMsgHdr struct = makeStructNlMsgHdr(NetlinkConstants.RTM_NEWADDR); in testToString() local
68 String s = struct.toString(); in testToString()
75 struct = makeStructNlMsgHdr(NetlinkConstants.SOCK_DIAG_BY_FAMILY); in testToString()
[all …]
/packages/modules/NetworkStack/common/netlinkclient/src/android/net/netlink/
DStructNlAttr.java53 final StructNlAttr struct = new StructNlAttr(); in peek() local
57 struct.nla_len = byteBuffer.getShort(); in peek()
58 struct.nla_type = byteBuffer.getShort(); in peek()
64 if (struct.nla_len < NLA_HEADERLEN) { in peek()
68 return struct; in peek()
72 final StructNlAttr struct = peek(byteBuffer); in parse() local
73 if (struct == null || byteBuffer.remaining() < struct.getAlignedLength()) { in parse()
80 int valueLen = ((int) struct.nla_len) & 0xffff; in parse()
83 struct.nla_value = new byte[valueLen]; in parse()
84 byteBuffer.get(struct.nla_value, 0, valueLen); in parse()
[all …]
DStructNlMsgHdr.java90 final StructNlMsgHdr struct = new StructNlMsgHdr(); in parse() local
91 struct.nlmsg_len = byteBuffer.getInt(); in parse()
92 struct.nlmsg_type = byteBuffer.getShort(); in parse()
93 struct.nlmsg_flags = byteBuffer.getShort(); in parse()
94 struct.nlmsg_seq = byteBuffer.getInt(); in parse()
95 struct.nlmsg_pid = byteBuffer.getInt(); in parse()
97 if (struct.nlmsg_len < STRUCT_SIZE) { in parse()
101 return struct; in parse()
DStructNdaCacheInfo.java46 final StructNdaCacheInfo struct = new StructNdaCacheInfo(); in parse() local
47 struct.ndm_used = byteBuffer.getInt(); in parse()
48 struct.ndm_confirmed = byteBuffer.getInt(); in parse()
49 struct.ndm_updated = byteBuffer.getInt(); in parse()
50 struct.ndm_refcnt = byteBuffer.getInt(); in parse()
51 return struct; in parse()
DStructNdMsg.java111 final StructNdMsg struct = new StructNdMsg(); in parse() local
112 struct.ndm_family = byteBuffer.get(); in parse()
115 struct.ndm_ifindex = byteBuffer.getInt(); in parse()
116 struct.ndm_state = byteBuffer.getShort(); in parse()
117 struct.ndm_flags = byteBuffer.get(); in parse()
118 struct.ndm_type = byteBuffer.get(); in parse()
119 return struct; in parse()
DStructNlMsgErr.java42 final StructNlMsgErr struct = new StructNlMsgErr(); in parse() local
43 struct.error = byteBuffer.getInt(); in parse()
44 struct.msg = StructNlMsgHdr.parse(byteBuffer); in parse()
45 return struct; in parse()
DStructInetDiagMsg.java48 StructInetDiagMsg struct = new StructInetDiagMsg(); in parse() local
49 struct.idiag_uid = byteBuffer.getInt(IDIAG_UID_OFFSET); in parse()
50 return struct; in parse()
/packages/modules/NeuralNetworks/tools/api/
DTypes.t42 extern "C" typedef struct AHardwareBuffer AHardwareBuffer;
53 struct Memory;
113 struct GeneralError {
130 struct ExecutionError {
150 struct Handle {
157 struct Memory {
158 struct Ashmem {
163 struct Fd {
171 struct HardwareBuffer {
177 struct Unknown {
[all …]
DNeuralNetworksTypes.t352 typedef struct ANeuralNetworksMemory ANeuralNetworksMemory;
387 typedef struct ANeuralNetworksModel ANeuralNetworksModel;
428 typedef struct ANeuralNetworksCompilation ANeuralNetworksCompilation;
524 typedef struct ANeuralNetworksExecution ANeuralNetworksExecution;
527 typedef struct ANeuralNetworksSymmPerChannelQuantParams {
567 typedef struct ANeuralNetworksBurst ANeuralNetworksBurst;
623 typedef struct ANeuralNetworksOperandType {
674 typedef struct ANeuralNetworksEvent ANeuralNetworksEvent;
684 typedef struct ANeuralNetworksDevice ANeuralNetworksDevice;
722 typedef struct ANeuralNetworksMemoryDesc ANeuralNetworksMemoryDesc;
/packages/services/Car/tools/hidl_parser/
Dparser.py186 def __init__(self, struct): argument
187 self.name = struct.header.name
188 self.struct = struct
191 return self.struct.__str__()
333 for struct in t[2]:
334 if not isinstance(struct, StructDecl): continue
335 structs[struct.header.name] = struct
/packages/apps/Test/connectivity/sl4n/rapidjson/doc/
Dencoding.md42 struct UTF8;
45 struct UTF16;
48 struct UTF16LE;
51 struct UTF16BE;
54 struct UTF32;
57 struct UTF32LE;
60 struct UTF32BE;
Dsax.md62 struct MyHandler {
302 struct MessageHandler
411 struct CapitalizeFilter {
DDoxyfile.in386 # When TYPEDEF_HIDES_STRUCT tag is enabled, a typedef of a struct, union, or
387 # enum is documented as struct, union, or enum with the name of the typedef. So
388 # typedef struct TypeS {} TypeT, will appear in the documentation as a struct
390 # namespace, or class. And the struct will be named TypeS. This can typically be
484 # (class|struct|union) declarations. If set to NO these declarations will be
/packages/services/Car/tools/emulator/
Dvhal_emulator.py82 import struct
119 msgHdr = struct.pack('!I', msgLen)
158 msgLen, = struct.unpack('!I', b)
/packages/modules/adb/
Dtest_adb.py29 import struct
60 bin_command = struct.unpack("I", command)[0]
61 buf = struct.pack("IIIIII", bin_command, arg0, arg1, len(data), 0,
324 struct.pack(linger_format, l_onoff, l_linger))
328 struct.unpack_from(linger_format, linger))
512 packet = struct.pack("IIIIII", 0, 0, 0, 0, 0, 0)
Dprotocol.txt31 struct message {
/packages/modules/DnsResolver/
Dcbindgen.toml25 [struct]
DREADME-DoT.md14 `DnsTlsTransport` for each server (represented by a `DnsTlsServer` struct) and
52 The query method writes a struct (containing a pointer to the query) to the pipe
/packages/modules/Connectivity/Tethering/bpf_progs/
DAndroid.bp18 // struct definitions shared with JNI
/packages/modules/NeuralNetworks/extensions/
DREADME.md92 typedef struct ExampleTensorParams {
/packages/apps/LegacyCamera/jni/feature_stab/doc/
Ddbreg_API_doxyfile276 # When TYPEDEF_HIDES_STRUCT is enabled, a typedef of a struct, union, or enum
277 # is documented as struct, union, or enum with the name of the typedef. So
278 # typedef struct TypeS {} TypeT, will appear in the documentation as a struct
280 # namespace, or class. And the struct will be named TypeS. This can typically
360 # friend (class|struct|union) declarations.
/packages/apps/LegacyCamera/jni/feature_mos/doc/
Dfeature_mos_API_doxyfile276 # When TYPEDEF_HIDES_STRUCT is enabled, a typedef of a struct, union, or enum
277 # is documented as struct, union, or enum with the name of the typedef. So
278 # typedef struct TypeS {} TypeT, will appear in the documentation as a struct
280 # namespace, or class. And the struct will be named TypeS. This can typically
360 # friend (class|struct|union) declarations.