/external/dbus/dbus/ |
D | dbus-string-util.c | 152 _dbus_assert (_dbus_string_get_length (&encoded) == end); in test_hex_roundtrip() 159 _dbus_string_get_length (&orig), in test_hex_roundtrip() 160 _dbus_string_get_length (&encoded), in test_hex_roundtrip() 161 _dbus_string_get_length (&decoded)); in test_hex_roundtrip() 250 _dbus_assert (_dbus_string_get_length (&str) == j); in _dbus_string_test() 254 _dbus_assert (_dbus_string_get_length (&str) == (j - 1)); in _dbus_string_test() 317 _dbus_assert (_dbus_string_get_length (&str) == i * 2 + 1); in _dbus_string_test() 322 _dbus_assert (_dbus_string_get_length (&str) == i * 2 + 2); in _dbus_string_test() 337 i = _dbus_string_get_length (&str); in _dbus_string_test() 342 _dbus_assert (_dbus_string_get_length (&str) == 0); in _dbus_string_test() [all …]
|
D | dbus-marshal-validate-util.c | 56 v = (*func) (&str, 0, _dbus_string_get_length (&str)); in run_validity_tests() 246 _dbus_string_get_length (&str))) in _dbus_marshal_validate_test() 261 _dbus_string_get_length (&str))) in _dbus_marshal_validate_test() 277 _dbus_string_get_length (&str))) in _dbus_marshal_validate_test() 292 _dbus_string_get_length (&str))) in _dbus_marshal_validate_test() 310 _dbus_string_get_length (&str))) in _dbus_marshal_validate_test() 327 _dbus_string_get_length (&str))) in _dbus_marshal_validate_test() 344 _dbus_string_get_length (&str))) in _dbus_marshal_validate_test() 359 _dbus_string_get_length (&str))) in _dbus_marshal_validate_test() 377 _dbus_string_get_length (&str))) in _dbus_marshal_validate_test() [all …]
|
D | dbus-auth.c | 471 if (_dbus_string_get_length (&cookie) == 0) in sha1_compute_hash() 481 &to_hash, _dbus_string_get_length (&to_hash))) in sha1_compute_hash() 488 &to_hash, _dbus_string_get_length (&to_hash))) in sha1_compute_hash() 495 &to_hash, _dbus_string_get_length (&to_hash))) in sha1_compute_hash() 534 if (_dbus_string_get_length (data) > 0) in sha1_handle_first_client_response() 536 if (_dbus_string_get_length (&auth->identity) > 0) in sha1_handle_first_client_response() 631 &tmp2, _dbus_string_get_length (&tmp2))) in sha1_handle_first_client_response() 651 _dbus_string_get_length (&tmp2))) in sha1_handle_first_client_response() 706 _dbus_string_get_length (data) - i, in sha1_handle_second_client_response() 711 if (_dbus_string_get_length (&client_challenge) == 0 || in sha1_handle_second_client_response() [all …]
|
D | dbus-syntax.c | 63 len = _dbus_string_get_length (&str); in dbus_validate_path() 110 len = _dbus_string_get_length (&str); in dbus_validate_interface() 157 len = _dbus_string_get_length (&str); in dbus_validate_member() 204 len = _dbus_string_get_length (&str); in dbus_validate_error_name() 251 len = _dbus_string_get_length (&str); in dbus_validate_bus_name() 299 _dbus_string_get_length (&str)))) in dbus_validate_utf8()
|
D | dbus-marshal-validate.c | 425 _dbus_string_get_length (&str))) in validate_body_helper() 435 _dbus_string_get_length (&str))) in validate_body_helper() 535 _dbus_string_get_length (&str)); in validate_body_helper() 578 _dbus_string_get_length (&sig)); in validate_body_helper() 718 _dbus_assert (value_pos <= _dbus_string_get_length (value_str) - len); in _dbus_validate_body_with_reason() 795 _dbus_assert (start <= _dbus_string_get_length (str)); in _dbus_validate_path() 797 if (len > _dbus_string_get_length (str) - start) in _dbus_validate_path() 932 _dbus_assert (start <= _dbus_string_get_length (str)); in _dbus_validate_interface() 934 if (len > _dbus_string_get_length (str) - start) in _dbus_validate_interface() 1007 _dbus_assert (start <= _dbus_string_get_length (str)); in _dbus_validate_member() [all …]
|
D | dbus-auth-script.c | 57 while (i < _dbus_string_get_length (quoted)) in append_quoted_string() 175 end = _dbus_string_get_length (str); in split_string() 306 int count = _dbus_string_get_length (tmp); in _dbus_auth_script_run() 309 _dbus_string_get_length (&from_auth))) in _dbus_auth_script_run() 315 if (_dbus_string_get_length (&line) == 0) in _dbus_auth_script_run() 583 buffer, _dbus_string_get_length (buffer))) in _dbus_auth_script_run() 591 _dbus_auth_return_buffer (auth, buffer, _dbus_string_get_length (&to_send)); in _dbus_auth_script_run() 736 _dbus_string_get_length (&expected))) in _dbus_auth_script_run() 739 _dbus_string_get_length (&expected)); in _dbus_auth_script_run() 775 if (_dbus_string_get_length (unused) > 0) in _dbus_auth_script_run() [all …]
|
D | dbus-sysdeps.c | 239 len = _dbus_string_get_length (dirs); in _dbus_split_paths_and_append() 261 if (_dbus_string_get_length (&path) == 0) in _dbus_split_paths_and_append() 361 orig_len = _dbus_string_get_length (str); in _dbus_string_append_int() 399 orig_len = _dbus_string_get_length (str); in _dbus_string_append_uint() 443 _dbus_string_get_length (str) - start); in _dbus_string_parse_int() 482 _dbus_string_get_length (str) - start); in _dbus_string_parse_uint() 584 len = _dbus_string_get_length (str); in _dbus_generate_random_ascii()
|
D | dbus-marshal-byteswap-util.c | 72 _dbus_string_get_length (&signature)); in do_byteswap_test() 74 _dbus_string_get_length (&body)); in do_byteswap_test() 76 _dbus_string_get_length (©)); in do_byteswap_test()
|
D | dbus-message-util.c | 269 if (_dbus_string_get_length (&loader->data) > 0) in check_have_valid_message() 446 if (_dbus_string_get_length (&data) > 0) in dbus_internal_do_not_use_try_message_file() 448 _dbus_string_get_length (&data)); in dbus_internal_do_not_use_try_message_file() 488 len = _dbus_string_get_length (data); in dbus_internal_do_not_use_try_message_data() 514 _dbus_string_get_length (buffer)); in dbus_internal_do_not_use_try_message_data() 528 len = _dbus_string_get_length (data); in dbus_internal_do_not_use_try_message_data() 1087 _dbus_string_get_length (&message->header.data)); in _dbus_message_test() 1089 _dbus_string_get_length (&message->body)); in _dbus_message_test() 1096 _dbus_string_get_length (&message->header.data)); in _dbus_message_test() 1098 _dbus_string_get_length (&message->body)); in _dbus_message_test() [all …]
|
D | dbus-message-factory.c | 207 _dbus_string_get_length (&message->body), in generate_many_bodies_inner() 240 data, _dbus_string_get_length (data))) in generate_from_message() 397 _dbus_assert (_dbus_string_get_length (data) == 0); in generate_special() 853 if ((_dbus_string_get_length (data) + adjust) < DBUS_MINIMUM_HEADER_SIZE) in generate_wrong_length() 872 _dbus_assert (_dbus_string_get_length (data) >= DBUS_MINIMUM_HEADER_SIZE); in generate_wrong_length() 879 _dbus_assert (old_body_len < _dbus_string_get_length (data)); in generate_wrong_length() 921 if (byte_seq == _dbus_string_get_length (data)) in generate_byte_changed() 936 _dbus_assert (byte_seq < _dbus_string_get_length (data)); in generate_byte_changed() 977 _dbus_assert (byte_seq <= _dbus_string_get_length (data)); 979 if (byte_seq == _dbus_string_get_length (data)) [all …]
|
D | dbus-marshal-basic.c | 353 new_len = _dbus_string_get_length (&dstr); in set_string() 396 new_len = _dbus_string_get_length (&dstr); in set_signature() 520 _dbus_assert (pos + 4 <= _dbus_string_get_length (str)); in _dbus_marshal_read_uint32() 668 orig_len = _dbus_string_get_length (str); in marshal_2_octets() 675 *pos_after = insert_at + (_dbus_string_get_length (str) - orig_len); in marshal_2_octets() 676 _dbus_assert (*pos_after <= _dbus_string_get_length (str)); in marshal_2_octets() 697 orig_len = _dbus_string_get_length (str); in marshal_4_octets() 704 *pos_after = insert_at + (_dbus_string_get_length (str) - orig_len); in marshal_4_octets() 705 _dbus_assert (*pos_after <= _dbus_string_get_length (str)); in marshal_4_octets() 725 orig_len = _dbus_string_get_length (str); in marshal_8_octets() [all …]
|
D | dbus-marshal-header.c | 114 unpadded_len = _dbus_string_get_length (&header->data); in correct_header_padding() 119 header->padding = _dbus_string_get_length (&header->data) - unpadded_len; in correct_header_padding() 124 (_dbus_string_get_length (&(header)->data) - (header)->padding) 176 _dbus_assert (_dbus_string_get_length (&header->data) > BYTE_ORDER_OFFSET); in _dbus_header_get_byte_order() 298 padding = _dbus_string_get_length (writer->value_str) - start; in write_basic_field() 331 _dbus_string_get_length (writer->value_str) - start - padding); in write_basic_field() 495 _dbus_string_get_length (&header->data))) in _dbus_header_copy() 545 _dbus_assert (_dbus_string_get_length (&header->data) == 0); in _dbus_header_create() 647 _dbus_string_get_length (&header->data) - header->padding); in _dbus_header_create() 861 _dbus_string_get_length (&_dbus_local_interface_str), in load_and_validate_field() [all …]
|
D | dbus-transport-socket.c | 311 0, _dbus_string_get_length (buffer)); in write_data_from_auth() 550 header_len = _dbus_string_get_length (header); in do_writing() 551 body_len = _dbus_string_get_length (body); in do_writing() 558 if (_dbus_string_get_length (&socket_transport->encoded_outgoing) == 0) in do_writing() 576 total_bytes_to_write = _dbus_string_get_length (&socket_transport->encoded_outgoing); in do_writing() 739 if (_dbus_string_get_length (&socket_transport->encoded_incoming) > 0) in do_reading() 740 bytes_read = _dbus_string_get_length (&socket_transport->encoded_incoming); in do_reading() 746 _dbus_assert (_dbus_string_get_length (&socket_transport->encoded_incoming) == in do_reading() 756 orig_len = _dbus_string_get_length (buffer); in do_reading() 765 _dbus_string_get_length (buffer) - orig_len); in do_reading() [all …]
|
D | dbus-marshal-recursive.c | 1172 orig_len = _dbus_string_get_length (&block->replacement); in replacement_block_replace() 1178 &writer, _dbus_string_get_length (&block->replacement)); in replacement_block_replace() 1185 _dbus_string_get_length (&block->replacement)); in replacement_block_replace() 1198 … _dbus_string_get_length (&block->replacement) - block->padding, in replacement_block_replace() 1204 _dbus_string_get_length (&block->replacement) - block->padding); in replacement_block_replace() 1206 _dbus_string_get_length (&block->replacement) - block->padding); in replacement_block_replace() 1220 _dbus_string_get_length (&block->replacement) - block->padding, in replacement_block_replace() 1286 &writer, _dbus_string_get_length (&block.replacement)); in reader_set_basic_variable_length() 1293 _dbus_string_get_length (&block.replacement)); in reader_set_basic_variable_length() 1380 _dbus_string_get_length (realign_root->value_str) - in _dbus_type_reader_set_basic() [all …]
|
D | dbus-marshal-recursive-util.c | 202 state->saved_sig_len = _dbus_string_get_length (&block->signature) - N_FENCE_BYTES; in data_block_save() 203 state->saved_body_len = _dbus_string_get_length (&block->body) - N_FENCE_BYTES; in data_block_save() 212 … _dbus_string_get_length (&block->signature) - state->saved_sig_len - N_FENCE_BYTES); in data_block_restore() 215 … _dbus_string_get_length (&block->body) - state->saved_body_len - N_FENCE_BYTES); in data_block_restore() 226 offset = _dbus_string_get_length (&block->signature) - N_FENCE_BYTES - 8; in data_block_verify() 232 _dbus_string_get_length (&block->signature) - offset); in data_block_verify() 240 offset = _dbus_string_get_length (&block->body) - N_FENCE_BYTES - 8; in data_block_verify() 246 _dbus_string_get_length (&block->body) - offset); in data_block_verify() 272 … _dbus_string_get_length (&block->signature) - N_FENCE_BYTES - block->initial_offset); in data_block_reset() 275 … _dbus_string_get_length (&block->body) - N_FENCE_BYTES - block->initial_offset); in data_block_reset() [all …]
|
D | dbus-sha.c | 439 inputLen = _dbus_string_get_length (data); in _dbus_sha_update() 500 _dbus_string_get_length (ascii_output))) in _dbus_sha_compute() 598 while (next < _dbus_string_get_length (line)) in decode_compact_string() 621 if (byte_containing_next_bit >= _dbus_string_get_length (decoded)) in decode_compact_string() 648 if (_dbus_string_get_length (decoded) != length_bytes) in decode_compact_string() 651 length_bytes, n_bits, _dbus_string_get_length (decoded)); in decode_compact_string() 675 if (_dbus_string_get_length (&line) == 0) in get_next_expected_result() 694 while (i < _dbus_string_get_length (result)) in get_next_expected_result() 808 if (_dbus_string_get_length (&line) == 0) in process_test_data() 862 _dbus_string_get_length (&line))) in process_test_data()
|
D | dbus-keyring.c | 457 _dbus_string_get_length (&contents))) in _dbus_keyring_reload() 514 len = _dbus_string_get_length (&line); in _dbus_keyring_reload() 549 if (_dbus_string_get_length (&line) != end) in _dbus_keyring_reload() 591 _dbus_string_get_length (&contents))) in _dbus_keyring_reload() 855 if (_dbus_string_get_length (context) == 0) in _dbus_keyring_validate_context() 862 _dbus_string_get_length (context))) in _dbus_keyring_validate_context() 1021 _dbus_string_get_length (hex_key)); in _dbus_keyring_get_hex_key()
|
D | dbus-internals.c | 709 return _dbus_string_hex_encode (&binary, 0, encoded, _dbus_string_get_length (encoded)); in _dbus_uuid_encode() 739 if (_dbus_string_get_length (&contents) != DBUS_UUID_LENGTH_HEX) in _dbus_read_uuid_file_without_creating() 745 _dbus_string_get_length (&contents)); in _dbus_read_uuid_file_without_creating() 763 if (_dbus_string_get_length (&decoded) != DBUS_UUID_LENGTH_BYTES) in _dbus_read_uuid_file_without_creating() 768 _dbus_string_get_length (&decoded), in _dbus_read_uuid_file_without_creating()
|
D | dbus-message.c | 291 _dbus_string_get_length (&message->header.data) + in _dbus_message_add_counter_link() 292 _dbus_string_get_length (&message->body); in _dbus_message_add_counter_link() 388 _dbus_string_get_length (&message->body)); in dbus_message_lock() 391 _dbus_assert (_dbus_string_get_length (&message->body) == 0 || in dbus_message_lock() 447 _dbus_return_val_if_fail (_dbus_string_get_length (&message->body) == 0 || 687 if ((_dbus_string_get_length (&message->header.data) + in dbus_message_cache_or_finalize() 688 _dbus_string_get_length (&message->body)) > in dbus_message_cache_or_finalize() 1533 _dbus_string_get_length (&message->body))) in dbus_message_copy() 2361 _dbus_string_get_length (&message->body)); in dbus_message_iter_init_append() 2430 str, _dbus_string_get_length (str)); in _dbus_message_iter_open_signature() [all …]
|
D | dbus-sysdeps-util-unix.c | 274 bytes = _dbus_string_get_length (&pid); in _dbus_write_pid_to_file_and_pipe() 585 if (_dbus_string_get_length (filename) > 0) in _dbus_path_is_absolute() 1036 sep = _dbus_string_get_length (filename); in _dbus_string_get_dirname() 1064 dirname, _dbus_string_get_length (dirname)); in _dbus_string_get_dirname() 1075 len = _dbus_string_get_length (str); in string_squash_nonprintable() 1154 if (!_dbus_string_copy (&cmdline, 0, str, _dbus_string_get_length (str))) in _dbus_command_for_pid()
|
D | dbus-address.c | 114 orig_len = _dbus_string_get_length (escaped); in _dbus_address_append_escaped() 116 end = p + _dbus_string_get_length (unescaped); in _dbus_address_append_escaped() 313 _dbus_string_get_length (unescaped))) in append_unescaped_value() 379 len = _dbus_string_get_length (&str); in dbus_parse_address() 632 0, _dbus_string_get_length (&escaped), in dbus_address_unescape_value()
|
D | dbus-string.c | 710 #ifndef _dbus_string_get_length 717 _dbus_string_get_length (const DBusString *str) in _dbus_string_get_length() function 845 insert_at = _dbus_string_get_length (str); in align_length_then_lengthen() 1479 tail_length = _dbus_string_get_length (source) - head_length - 1; in _dbus_string_split_on_byte() 1925 _dbus_assert (eol == _dbus_string_get_length (source)); in _dbus_string_pop_line() 2003 _dbus_string_skip_white_reverse (str, _dbus_string_get_length (str), &i); in _dbus_string_chop_white() 2246 _dbus_string_get_length (str) - 1); in _dbus_string_append_byte_as_hex() 2274 _dbus_assert (start <= _dbus_string_get_length (source)); in _dbus_string_hex_encode() 2282 end = p + _dbus_string_get_length (source); in _dbus_string_hex_encode() 2326 _dbus_assert (start <= _dbus_string_get_length (source)); in _dbus_string_hex_decode() [all …]
|
/external/dbus/test/ |
D | break-loader.c | 203 if (_dbus_string_get_length (mutated) == 0) in randomly_shorten_or_lengthen() 206 delta = random_int_in_range (- _dbus_string_get_length (mutated), in randomly_shorten_or_lengthen() 207 _dbus_string_get_length (mutated) * 3); in randomly_shorten_or_lengthen() 215 i = _dbus_string_get_length (mutated); in randomly_shorten_or_lengthen() 219 while (i < _dbus_string_get_length (mutated)) in randomly_shorten_or_lengthen() 243 if (_dbus_string_get_length (mutated) == 0) in randomly_change_one_byte() 246 i = random_int_in_range (0, _dbus_string_get_length (mutated)); in randomly_change_one_byte() 266 if (_dbus_string_get_length (mutated) == 0) in randomly_remove_one_byte() 269 i = random_int_in_range (0, _dbus_string_get_length (mutated)); in randomly_remove_one_byte() 289 i = random_int_in_range (0, _dbus_string_get_length (mutated)); in randomly_add_one_byte() [all …]
|
/external/dbus/bus/ |
D | main.c | 172 if (_dbus_string_get_length (config_file) > 0) in check_two_config_files() 184 if (_dbus_string_get_length (address) > 0) in check_two_addresses() 196 if (_dbus_string_get_length (addr_fd) > 0) in check_two_addr_descriptors() 208 if (_dbus_string_get_length (pid_fd) > 0) in check_two_pid_descriptors() 543 if (_dbus_string_get_length (&config_file) == 0) in main() 553 if (_dbus_string_get_length (&addr_fd) > 0) in main() 558 end != _dbus_string_get_length (&addr_fd) || in main() 575 if (_dbus_string_get_length (&pid_fd) > 0) in main() 580 end != _dbus_string_get_length (&pid_fd) || in main() 602 _dbus_string_get_length(&address) > 0 ? &address : NULL, in main()
|
D | signals.c | 148 if (_dbus_string_get_length (&str) > 0) in match_rule_to_string() 160 if (_dbus_string_get_length (&str) > 0) in match_rule_to_string() 172 if (_dbus_string_get_length (&str) > 0) in match_rule_to_string() 184 if (_dbus_string_get_length (&str) > 0) in match_rule_to_string() 196 if (_dbus_string_get_length (&str) > 0) in match_rule_to_string() 208 if (_dbus_string_get_length (&str) > 0) in match_rule_to_string() 220 if (_dbus_string_get_length (&str) > 0) in match_rule_to_string() 245 if (_dbus_string_get_length (&str) > 0) in match_rule_to_string() 466 length = _dbus_string_get_length (value); in bus_match_rule_set_arg() 563 orig_len = _dbus_string_get_length (value); in find_value() [all …]
|