/external/dbus/dbus/ |
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-string-util.c | 172 _dbus_assert (_dbus_string_get_length (&encoded) == end); in test_hex_roundtrip() 179 _dbus_string_get_length (&orig), in test_hex_roundtrip() 180 _dbus_string_get_length (&encoded), in test_hex_roundtrip() 181 _dbus_string_get_length (&decoded)); in test_hex_roundtrip() 307 _dbus_assert (_dbus_string_get_length (&str) == j); in _dbus_string_test() 311 _dbus_assert (_dbus_string_get_length (&str) == (j - 1)); in _dbus_string_test() 374 _dbus_assert (_dbus_string_get_length (&str) == i * 2 + 1); in _dbus_string_test() 379 _dbus_assert (_dbus_string_get_length (&str) == i * 2 + 2); in _dbus_string_test() 394 i = _dbus_string_get_length (&str); in _dbus_string_test() 399 _dbus_assert (_dbus_string_get_length (&str) == 0); in _dbus_string_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-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-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 | 208 if (_dbus_string_get_length (&loader->data) > 0) in check_have_valid_message() 385 if (_dbus_string_get_length (&data) > 0) in dbus_internal_do_not_use_try_message_file() 387 _dbus_string_get_length (&data)); in dbus_internal_do_not_use_try_message_file() 427 len = _dbus_string_get_length (data); in dbus_internal_do_not_use_try_message_data() 453 _dbus_string_get_length (buffer)); in dbus_internal_do_not_use_try_message_data() 467 len = _dbus_string_get_length (data); in dbus_internal_do_not_use_try_message_data() 1023 _dbus_string_get_length (&message->header.data)); in _dbus_message_test() 1025 _dbus_string_get_length (&message->body)); in _dbus_message_test() 1032 _dbus_string_get_length (&message->header.data)); in _dbus_message_test() 1034 _dbus_string_get_length (&message->body)); in _dbus_message_test() [all …]
|
D | dbus-sysdeps.c | 275 len = _dbus_string_get_length (dirs); in _dbus_split_paths_and_append() 297 if (_dbus_string_get_length (&path) == 0) in _dbus_split_paths_and_append() 397 orig_len = _dbus_string_get_length (str); in _dbus_string_append_int() 435 orig_len = _dbus_string_get_length (str); in _dbus_string_append_uint() 473 orig_len = _dbus_string_get_length (str); in _dbus_string_append_double() 518 _dbus_string_get_length (str) - start); in _dbus_string_parse_int() 557 _dbus_string_get_length (str) - start); in _dbus_string_parse_uint() 767 _dbus_string_get_length (str) - start); in _dbus_string_parse_double() 876 len = _dbus_string_get_length (str); in _dbus_generate_random_ascii()
|
D | dbus-message-factory.c | 203 _dbus_string_get_length (&message->body), in generate_many_bodies_inner() 236 data, _dbus_string_get_length (data))) in generate_from_message() 393 _dbus_assert (_dbus_string_get_length (data) == 0); in generate_special() 846 if ((_dbus_string_get_length (data) + adjust) < DBUS_MINIMUM_HEADER_SIZE) in generate_wrong_length() 865 _dbus_assert (_dbus_string_get_length (data) >= DBUS_MINIMUM_HEADER_SIZE); in generate_wrong_length() 872 _dbus_assert (old_body_len < _dbus_string_get_length (data)); in generate_wrong_length() 914 if (byte_seq == _dbus_string_get_length (data)) in generate_byte_changed() 929 _dbus_assert (byte_seq < _dbus_string_get_length (data)); in generate_byte_changed() 967 _dbus_assert (byte_seq <= _dbus_string_get_length (data)); in find_next_typecode() 969 if (byte_seq == _dbus_string_get_length (data)) in find_next_typecode() [all …]
|
D | dbus-marshal-basic.c | 310 new_len = _dbus_string_get_length (&dstr); in set_string() 353 new_len = _dbus_string_get_length (&dstr); in set_signature() 477 _dbus_assert (pos + 4 <= _dbus_string_get_length (str)); in _dbus_marshal_read_uint32() 625 orig_len = _dbus_string_get_length (str); in marshal_2_octets() 632 *pos_after = insert_at + (_dbus_string_get_length (str) - orig_len); in marshal_2_octets() 633 _dbus_assert (*pos_after <= _dbus_string_get_length (str)); in marshal_2_octets() 654 orig_len = _dbus_string_get_length (str); in marshal_4_octets() 661 *pos_after = insert_at + (_dbus_string_get_length (str) - orig_len); in marshal_4_octets() 662 _dbus_assert (*pos_after <= _dbus_string_get_length (str)); in marshal_4_octets() 682 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) 284 padding = _dbus_string_get_length (writer->value_str) - start; in write_basic_field() 317 _dbus_string_get_length (writer->value_str) - start - padding); in write_basic_field() 485 _dbus_string_get_length (&header->data))) in _dbus_header_copy() 532 _dbus_assert (_dbus_string_get_length (&header->data) == 0); in _dbus_header_create() 634 _dbus_string_get_length (&header->data) - header->padding); in _dbus_header_create() 848 _dbus_string_get_length (&_dbus_local_interface_str), in load_and_validate_field() 877 _dbus_string_get_length (&_dbus_local_path_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 | 1160 orig_len = _dbus_string_get_length (&block->replacement); in replacement_block_replace() 1166 &writer, _dbus_string_get_length (&block->replacement)); in replacement_block_replace() 1173 _dbus_string_get_length (&block->replacement)); in replacement_block_replace() 1186 … _dbus_string_get_length (&block->replacement) - block->padding, in replacement_block_replace() 1192 _dbus_string_get_length (&block->replacement) - block->padding); in replacement_block_replace() 1194 _dbus_string_get_length (&block->replacement) - block->padding); in replacement_block_replace() 1208 _dbus_string_get_length (&block->replacement) - block->padding, in replacement_block_replace() 1274 &writer, _dbus_string_get_length (&block.replacement)); in reader_set_basic_variable_length() 1281 _dbus_string_get_length (&block.replacement)); in reader_set_basic_variable_length() 1368 _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-internals.c | 644 return _dbus_string_hex_encode (&binary, 0, encoded, _dbus_string_get_length (encoded)); in _dbus_uuid_encode() 674 if (_dbus_string_get_length (&contents) != DBUS_UUID_LENGTH_HEX) in _dbus_read_uuid_file_without_creating() 680 _dbus_string_get_length (&contents)); in _dbus_read_uuid_file_without_creating() 698 if (_dbus_string_get_length (&decoded) != DBUS_UUID_LENGTH_BYTES) in _dbus_read_uuid_file_without_creating() 703 _dbus_string_get_length (&decoded), in _dbus_read_uuid_file_without_creating()
|
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 | 459 _dbus_string_get_length (&contents))) in _dbus_keyring_reload() 516 len = _dbus_string_get_length (&line); in _dbus_keyring_reload() 551 if (_dbus_string_get_length (&line) != end) in _dbus_keyring_reload() 593 _dbus_string_get_length (&contents))) in _dbus_keyring_reload() 850 if (_dbus_string_get_length (context) == 0) in _dbus_keyring_validate_context() 857 _dbus_string_get_length (context))) in _dbus_keyring_validate_context() 1016 _dbus_string_get_length (hex_key)); in _dbus_keyring_get_hex_key()
|
D | dbus-message.c | 236 _dbus_string_get_length (&message->header.data) + in _dbus_message_add_counter_link() 237 _dbus_string_get_length (&message->body); in _dbus_message_add_counter_link() 334 _dbus_string_get_length (&message->body)); in dbus_message_lock() 337 _dbus_assert (_dbus_string_get_length (&message->body) == 0 || in dbus_message_lock() 393 _dbus_return_val_if_fail (_dbus_string_get_length (&message->body) == 0 || 628 if ((_dbus_string_get_length (&message->header.data) + in dbus_message_cache_or_finalize() 629 _dbus_string_get_length (&message->body)) > in dbus_message_cache_or_finalize() 1465 _dbus_string_get_length (&message->body))) in dbus_message_copy() 2289 _dbus_string_get_length (&message->body)); in dbus_message_iter_init_append() 2358 str, _dbus_string_get_length (str)); in _dbus_message_iter_open_signature() [all …]
|
D | dbus-sysdeps-util-unix.c | 271 bytes = _dbus_string_get_length (&pid); in _dbus_write_pid_to_file_and_pipe() 513 if (_dbus_string_get_length (filename) > 0) in _dbus_path_is_absolute() 991 sep = _dbus_string_get_length (filename); in _dbus_string_get_dirname() 1019 dirname, _dbus_string_get_length (dirname)); in _dbus_string_get_dirname() 1030 len = _dbus_string_get_length (str); in string_squash_nonprintable() 1109 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-file-win.c | 61 start = _dbus_string_get_length (buffer); in _dbus_file_read() 163 orig_len = _dbus_string_get_length (str); in _dbus_file_get_contents() 285 bytes_to_write = _dbus_string_get_length (str); in _dbus_string_save_to_file()
|
D | dbus-sysdeps-util-win.c | 210 bytes = _dbus_string_get_length (&pid); in _dbus_write_pid_to_file_and_pipe() 689 if (_dbus_string_get_length (filename) > 0) in _dbus_path_is_absolute() 721 sep = _dbus_string_get_length (filename); in _dbus_string_get_dirname() 737 dirname, _dbus_string_get_length (dirname)); in _dbus_string_get_dirname() 764 dirname, _dbus_string_get_length (dirname)); in _dbus_string_get_dirname() 767 dirname, _dbus_string_get_length (dirname)); in _dbus_string_get_dirname()
|
/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 | 122 if (_dbus_string_get_length (config_file) > 0) in check_two_config_files() 134 if (_dbus_string_get_length (address) > 0) in check_two_addresses() 146 if (_dbus_string_get_length (addr_fd) > 0) in check_two_addr_descriptors() 158 if (_dbus_string_get_length (pid_fd) > 0) in check_two_pid_descriptors() 435 if (_dbus_string_get_length (&config_file) == 0) in main() 445 if (_dbus_string_get_length (&addr_fd) > 0) in main() 450 end != _dbus_string_get_length (&addr_fd) || in main() 467 if (_dbus_string_get_length (&pid_fd) > 0) in main() 472 end != _dbus_string_get_length (&pid_fd) || in main() 494 _dbus_string_get_length(&address) > 0 ? &address : NULL, in main()
|
D | signals.c | 145 if (_dbus_string_get_length (&str) > 0) in match_rule_to_string() 157 if (_dbus_string_get_length (&str) > 0) in match_rule_to_string() 169 if (_dbus_string_get_length (&str) > 0) in match_rule_to_string() 181 if (_dbus_string_get_length (&str) > 0) in match_rule_to_string() 193 if (_dbus_string_get_length (&str) > 0) in match_rule_to_string() 216 if (_dbus_string_get_length (&str) > 0) in match_rule_to_string() 416 length = _dbus_string_get_length (value); in bus_match_rule_set_arg() 510 orig_len = _dbus_string_get_length (value); in find_value() 665 pos < _dbus_string_get_length (rule_text)) in tokenize_rule() 673 if (_dbus_string_get_length (&key) == 0) in tokenize_rule() [all …]
|