Searched refs:length (Results 1 - 25 of 327) sorted by relevance

1234567891011>>

/system/connectivity/dhcp_client/
H A Ddhcp_options_parser.cc34 uint8_t length,
36 if (length != sizeof(uint8_t)) {
37 LOG(ERROR) << "Invalid option length field";
46 uint8_t length,
48 if (length != sizeof(uint16_t)) {
49 LOG(ERROR) << "Invalid option length field";
58 uint8_t length,
60 if (length != sizeof(uint32_t)) {
61 LOG(ERROR) << "Invalid option length field";
70 uint8_t length,
33 GetOption(const uint8_t* buffer, uint8_t length, void* value) argument
45 GetOption(const uint8_t* buffer, uint8_t length, void* value) argument
57 GetOption(const uint8_t* buffer, uint8_t length, void* value) argument
69 GetOption(const uint8_t* buffer, uint8_t length, void* value) argument
86 GetOption(const uint8_t* buffer, uint8_t length, void* value) argument
105 GetOption(const uint8_t* buffer, uint8_t length, void* value) argument
124 GetOption(const uint8_t* buffer, uint8_t length, void* value) argument
146 GetOption(const uint8_t* buffer, uint8_t length, void* value) argument
166 GetOption(const uint8_t* buffer, uint8_t length, void* value) argument
174 option_string->assign(reinterpret_cast<const char*>(buffer), length); local
178 GetOption(const uint8_t* buffer, uint8_t length, void* value) argument
[all...]
H A Ddhcp_options_parser.h27 uint8_t length,
36 uint8_t length,
44 uint8_t length,
52 uint8_t length,
60 uint8_t length,
68 uint8_t length,
76 uint8_t length,
84 uint8_t length,
92 uint8_t length,
100 uint8_t length,
[all...]
H A Ddhcp_options_writer.cc45 uint8_t length = sizeof(uint8_t); local
48 buffer->Append(ByteString(reinterpret_cast<const char*>(&length),
52 return length + 2;
58 uint8_t length = sizeof(uint16_t); local
62 buffer->Append(ByteString(reinterpret_cast<const char*>(&length),
66 return length + 2;
72 uint8_t length = sizeof(uint32_t); local
76 buffer->Append(ByteString(reinterpret_cast<const char*>(&length),
80 return length + 2;
91 uint8_t length local
109 uint8_t length = value.size() * sizeof(uint16_t); local
130 uint8_t length = value.size() * sizeof(uint32_t); local
151 uint8_t length = value.size() * sizeof(uint32_t) * 2; local
170 uint8_t length = sizeof(uint8_t); local
189 uint8_t length = value.size(); local
202 uint8_t length = value.GetLength(); local
[all...]
H A Ddhcp_options_writer_unittest.cc55 int length = options_writer_->WriteUInt8Option(&option, local
58 EXPECT_NE(-1, length);
61 length));
74 int length = options_writer_->WriteUInt16Option(&option, local
77 EXPECT_NE(-1, length);
80 length));
93 int length = options_writer_->WriteUInt32Option(&option, local
96 EXPECT_NE(-1, length);
99 length));
112 int length local
132 int length = options_writer_->WriteUInt16ListOption(&option, local
153 int length = options_writer_->WriteUInt32ListOption(&option, local
175 int length = local
194 int length = options_writer_->WriteStringOption(&option, local
213 int length = options_writer_->WriteBoolOption(&option, local
231 int length = options_writer_->WriteBoolOption(&option, local
250 int length = options_writer_->WriteByteArrayOption(&option, local
268 int length = options_writer_->WriteStringOption(&option, local
[all...]
/system/bt/hci/src/
H A Dbtsnoop_mem.c38 size_t length = 0; local
43 length = data[2] + 3;
48 length = data[1] + 2;
54 length = (data[2] | (data[3] << 8)) + 4;
60 length = data[2] + 3;
64 if (length)
65 (*data_callback)(type, data, length);
/system/core/include/cutils/
H A Duevent.h28 ssize_t uevent_kernel_multicast_recv(int socket, void *buffer, size_t length);
29 ssize_t uevent_kernel_multicast_uid_recv(int socket, void *buffer, size_t length, uid_t *uid);
30 ssize_t uevent_kernel_recv(int socket, void *buffer, size_t length, bool require_group, uid_t *uid);
/system/core/adb/
H A Dcommandline.h30 virtual void OnStdout(const char* buffer, int length) = 0;
33 virtual void OnStderr(const char* buffer, int length) = 0;
43 static void OnStream(std::string* string, FILE* stream, const char* buffer, int length) { argument
45 string->append(buffer, length);
47 fwrite(buffer, 1, length, stream);
67 void OnStdout(const char* buffer, int length) { argument
68 OnStream(stdout_str_, stdout, buffer, length);
71 void OnStderr(const char* buffer, int length) { argument
72 OnStream(stderr_str_, stderr, buffer, length);
/system/bt/embdrv/sbc/encoder/include/
H A Dsbc_if.h37 increasing by length until track is finished.
40 length - any
45 int SBC_write(unsigned char *pcm_in, int length, unsigned char *sbc_out);
/system/bt/osi/include/
H A Dringbuffer.h45 // Attempts to insert up to |length| bytes of data at |p| into the buffer
46 // Return actual number of bytes added. Can be less than |length| if buffer
48 size_t ringbuffer_insert(ringbuffer_t *rb, const uint8_t *p, size_t length);
50 // Peek |length| number of bytes from the ringbuffer, starting at |offset|,
52 // than |length| if there is less than |length| data available. |offset| must
54 size_t ringbuffer_peek(const ringbuffer_t *rb, off_t offset, uint8_t *p, size_t length);
57 size_t ringbuffer_pop(ringbuffer_t *rb, uint8_t *p, size_t length);
59 // Deletes |length| bytes from the ringbuffer starting from the head
61 size_t ringbuffer_delete(ringbuffer_t *rb, size_t length);
[all...]
/system/security/keystore/include/keystore/
H A Dkeystore_get.h30 * length. The third argument is a pointer to an array that will be malloc()
33 ssize_t keystore_get(const char *key, size_t length, uint8_t** value);
/system/bt/osi/src/
H A Dbuffer.c32 size_t length; member in struct:buffer_t
43 buffer->length = size;
50 return buffer_new_slice(buf, buf->length);
56 assert(slice_size <= buf->length);
62 ret->length = slice_size;
86 return buf->root->data + buf->root->length - buf->length;
91 return buf->length;
H A Dringbuffer.c59 size_t ringbuffer_insert(ringbuffer_t *rb, const uint8_t *p, size_t length) { argument
63 if (length > ringbuffer_available(rb))
64 length = ringbuffer_available(rb);
66 for (size_t i = 0; i != length; ++i) {
72 rb->available -= length;
73 return length;
76 size_t ringbuffer_delete(ringbuffer_t *rb, size_t length) { argument
79 if (length > ringbuffer_size(rb))
80 length = ringbuffer_size(rb);
82 rb->head += length;
90 ringbuffer_peek(const ringbuffer_t *rb, off_t offset, uint8_t *p, size_t length) argument
108 ringbuffer_pop(ringbuffer_t *rb, uint8_t *p, size_t length) argument
[all...]
/system/connectivity/shill/net/
H A Dbyte_string.h37 explicit ByteString(size_t length) : data_(length) {} argument
39 ByteString(const unsigned char* data, size_t length) argument
40 : data_(data, data + length) {}
42 ByteString(const char* data, size_t length) argument
43 : data_(data, data + length) {}
45 ByteString(const signed char* data, size_t length) argument
46 : data_(data, data + length) {}
51 data.length() +
61 // Returns a ByteString containing |length| byte
[all...]
/system/core/libziparchive/
H A Dentry_name_utils-inl.h23 // Check if |length| bytes at |entry_name| constitute a valid entry name.
25 inline bool IsValidEntryName(const uint8_t* entry_name, const size_t length) { argument
26 for (size_t i = 0; i < length; ++i) {
42 if (i == length) {
/system/core/toolbox/
H A Dioctl.c44 fprintf(stderr, "%s [-l <length>] [-a <argsize>] [-rdh] <device> <ioctlnr>\n"
45 " -l <length> Length of io buffer\n"
68 int length = -1; local
87 length = xstrtoi(optarg, "length");
129 length = 4;
132 if(length < 0) {
133 length = (argc - optind) * arg_size;
135 if(length) {
136 ioctl_args = calloc(1, length);
[all...]
/system/gatekeeper/
H A Dgatekeeper_messages.cpp36 return sizeof(buf.length) + buf.length;
40 memcpy(*buffer, &to_append->length, sizeof(to_append->length));
41 *buffer += sizeof(to_append->length);
42 if (to_append->length != 0) {
43 memcpy(*buffer, to_append->buffer.get(), to_append->length);
44 *buffer += to_append->length;
50 if (*buffer + sizeof(target->length) > end) return ERROR_INVALID;
52 memcpy(&target->length, *buffe
[all...]
/system/connectivity/shill/
H A Deap_protocol.h29 uint16_t length; variable
48 uint16_t length; // including code and identifier; network byte order variable
/system/bt/btif/src/
H A Dbtif_debug_btsnoop.c39 // Maximum line length in bugreport (should be multiple of 4 for base64 output)
45 static size_t btsnoop_calculate_packet_length(uint16_t type, const uint8_t *data, size_t length);
47 static void btsnoop_cb(const uint16_t type, const uint8_t *data, const size_t length) { argument
50 size_t included_length = btsnoop_calculate_packet_length(type, data, length);
58 ringbuffer_delete(buffer, header.length - 1);
66 header.length = included_length + 1; // +1 for type byte
67 header.packet_length = length + 1; // +1 for type byte.
75 static size_t btsnoop_calculate_packet_length(uint16_t type, const uint8_t *data, size_t length) { argument
86 // Calculate packet length to be included
90 return length;
150 const size_t length = BLOCK_SIZE - zs.avail_out; local
[all...]
/system/core/fastboot/
H A Dsocket.cpp51 ssize_t Socket::ReceiveAll(void* data, size_t length, int timeout_ms) { argument
54 while (total < length) {
55 ssize_t bytes = Receive(reinterpret_cast<char*>(data) + total, length - total, timeout_ms);
114 bool Send(const void* data, size_t length) override;
116 ssize_t Receive(void* data, size_t length, int timeout_ms) override;
135 bool UdpSocket::Send(const void* data, size_t length) { argument
136 return TEMP_FAILURE_RETRY(sendto(sock_, reinterpret_cast<const char*>(data), length, 0,
138 static_cast<ssize_t>(length);
144 total_length += buffer.length;
151 ssize_t UdpSocket::Receive(void* data, size_t length, in argument
182 Send(const void* data, size_t length) argument
230 Receive(void* data, size_t length, int timeout_ms) argument
[all...]
/system/update_engine/common/
H A Dhash_calculator.cc38 bool HashCalculator::Update(const void* data, size_t length) { argument
42 "length param may be truncated in SHA256_Update");
43 TEST_AND_RETURN_FALSE(SHA256_Update(&ctx_, data, length) == 1);
47 off_t HashCalculator::UpdateFile(const string& name, off_t length) { argument
56 while (length < 0 || bytes_processed < length) {
58 if (length >= 0 && bytes_to_read > length - bytes_processed) {
59 bytes_to_read = length - bytes_processed;
90 size_t length,
89 RawHashOfBytes(const void* data, size_t length, brillo::Blob* out_hash) argument
104 RawHashOfFile(const string& name, off_t length, brillo::Blob* out_hash) argument
118 HashOfBytes(const void* data, size_t length) argument
[all...]
H A Dhash_calculator.h43 // Update will read |length| bytes of |data|.
45 bool Update(const void* data, size_t length);
47 // Updates the hash with up to |length| bytes of data from |file|. If |length|
50 off_t UpdateFile(const std::string& name, off_t length);
79 size_t length,
83 static off_t RawHashOfFile(const std::string& name, off_t length,
87 static std::string HashOfBytes(const void* data, size_t length);
/system/core/libcutils/
H A Duevent.c32 ssize_t uevent_kernel_multicast_recv(int socket, void *buffer, size_t length) argument
35 return uevent_kernel_multicast_uid_recv(socket, buffer, length, &uid);
47 ssize_t uevent_kernel_multicast_uid_recv(int socket, void *buffer, size_t length, uid_t *uid) argument
49 return uevent_kernel_recv(socket, buffer, length, true, uid);
52 ssize_t uevent_kernel_recv(int socket, void *buffer, size_t length, bool require_group, uid_t *uid) argument
54 struct iovec iov = { buffer, length };
99 bzero(buffer, length);
/system/extras/verity/
H A DBootSignature.java58 * length INTEGER
70 private ASN1Integer length; field in class:BootSignature
79 * @param length Length of the image, included in the signed data
81 public BootSignature(String target, int length) { argument
84 this.length = new ASN1Integer(length);
115 length = (ASN1Integer) attrs.getObjectAt(1);
123 attrs.add(length);
157 byte[] signable = Arrays.copyOf(image, image.length + attrs.length);
[all...]
/system/bt/tools/scripts/
H A Dbtsnooz.py98 length, delta_time_ms, type = struct.unpack_from('=HIb', decompressed, offset)
99 offset += 7 + length - 1
105 length, delta_time_ms, type = struct.unpack_from('=HIb', decompressed, offset)
108 sys.stdout.write(struct.pack('>II', length, length))
112 sys.stdout.write(decompressed[offset : offset + length - 1])
113 offset += length - 1
125 length, packet_length, delta_time_ms, snooz_type = struct.unpack_from('=HHIb', decompressed, offset)
126 offset += 9 + length - 1
132 length, packet_lengt
[all...]
/system/gatekeeper/tests/
H A Dgatekeeper_messages_test.cpp37 result->length = size;
56 msg.Serialize(serialized_msg.buffer.get(), serialized_msg.buffer.get() + serialized_msg.length);
60 + serialized_msg.length);
67 ASSERT_EQ((uint32_t) password_size, deserialized_password->length);
69 ASSERT_EQ((uint32_t) 0, deserialized_msg.enrolled_password.length);
71 ASSERT_EQ((uint32_t) 0, deserialized_msg.password_handle.length);
85 msg.Serialize(serialized_msg.buffer.get(), serialized_msg.buffer.get() + serialized_msg.length);
89 + serialized_msg.length);
96 ASSERT_EQ((uint32_t) password_size, deserialized_password->length);
98 ASSERT_EQ((uint32_t) 0, deserialized_msg.enrolled_password.length);
[all...]

Completed in 7596 milliseconds

1234567891011>>