/external/dbus/dbus/ |
dbus-credentials-util.c | 100 _dbus_assert (_dbus_credentials_include (creds, DBUS_CREDENTIAL_UNIX_USER_ID)); 101 _dbus_assert (_dbus_credentials_include (creds, DBUS_CREDENTIAL_UNIX_PROCESS_ID)); 102 _dbus_assert (_dbus_credentials_include (creds, DBUS_CREDENTIAL_WINDOWS_SID)); 104 _dbus_assert (_dbus_credentials_get_unix_uid (creds) == 12); 105 _dbus_assert (_dbus_credentials_get_unix_pid (creds) == 511); 106 _dbus_assert (strcmp (_dbus_credentials_get_windows_sid (creds), SAMPLE_SID) == 0); 108 _dbus_assert (!_dbus_credentials_are_empty (creds)); 109 _dbus_assert (!_dbus_credentials_are_anonymous (creds)); 116 _dbus_assert (_dbus_credentials_include (creds2, DBUS_CREDENTIAL_UNIX_USER_ID)); 117 _dbus_assert (_dbus_credentials_include (creds2, DBUS_CREDENTIAL_UNIX_PROCESS_ID)) [all...] |
dbus-misc.c | 200 _dbus_assert (major == DBUS_MAJOR_VERSION); 201 _dbus_assert (minor == DBUS_MINOR_VERSION); 202 _dbus_assert (micro == DBUS_MICRO_VERSION); 207 _dbus_assert (MAKE_VERSION (1, 0, 0) > MAKE_VERSION (0, 0, 0)); 208 _dbus_assert (MAKE_VERSION (1, 1, 0) > MAKE_VERSION (1, 0, 0)); 209 _dbus_assert (MAKE_VERSION (1, 1, 1) > MAKE_VERSION (1, 1, 0)); 211 _dbus_assert (MAKE_VERSION (2, 0, 0) > MAKE_VERSION (1, 1, 1)); 212 _dbus_assert (MAKE_VERSION (2, 1, 0) > MAKE_VERSION (1, 1, 1)); 213 _dbus_assert (MAKE_VERSION (2, 1, 1) > MAKE_VERSION (1, 1, 1)); 216 _dbus_assert (MAKE_VERSION (major, minor, micro) == DBUS_VERSION) [all...] |
dbus-signature.c | 387 _dbus_assert (sizeof (DBusSignatureIter) >= sizeof (DBusSignatureRealIter)); 390 _dbus_assert (dbus_signature_validate (sig, NULL)); 391 _dbus_assert (!dbus_signature_validate_single (sig, NULL)); 393 _dbus_assert (dbus_signature_iter_get_current_type (&iter) == DBUS_TYPE_INVALID); 396 _dbus_assert (dbus_signature_validate (sig, NULL)); 397 _dbus_assert (dbus_signature_validate_single (sig, NULL)); 399 _dbus_assert (dbus_signature_iter_get_current_type (&iter) == DBUS_TYPE_STRING); 402 _dbus_assert (dbus_signature_validate (sig, NULL)); 404 _dbus_assert (dbus_signature_iter_get_current_type (&iter) == DBUS_TYPE_STRING); 406 _dbus_assert (boolres) [all...] |
dbus-string-util.c | 55 _dbus_assert (c_str != NULL); 73 _dbus_assert (*ap == '\0'); 74 _dbus_assert (*bp == '\0'); 97 _dbus_assert (start <= real->len); 98 _dbus_assert (start >= 0); 99 _dbus_assert (found != NULL); 172 _dbus_assert (_dbus_string_get_length (&encoded) == end); 307 _dbus_assert (_dbus_string_get_length (&str) == j); 311 _dbus_assert (_dbus_string_get_length (&str) == (j - 1)); 329 _dbus_assert (_dbus_string_equal_substring (&str, 0, 1, &other, 0)) [all...] |
dbus-string-private.h | 76 #define DBUS_GENERIC_STRING_PREAMBLE(real) _dbus_assert ((real) != NULL); _dbus_assert (!(real)->invalid); _dbus_assert ((real)->len >= 0); _dbus_assert ((real)->allocated >= 0); _dbus_assert ((real)->max_length >= 0); _dbus_assert ((real)->len <= ((real)->allocated - _DBUS_STRING_ALLOCATION_PADDING)); _dbus_assert ((real)->len <= (real)->max_length) 86 _dbus_assert (!(real)->constant); \ 87 _dbus_assert (!(real)->locked) 98 _dbus_assert (!(real)->constant [all...] |
dbus-object-tree.c | 131 _dbus_assert (tree->refcount > 0); 145 _dbus_assert (tree->refcount > 0); 174 _dbus_assert (!(return_deepest_match && create_if_not_found)); 294 _dbus_assert (child_pos < new_n_subtrees && 359 _dbus_assert (exact_match != NULL); 400 _dbus_assert (tree != NULL); 401 _dbus_assert (vtable->message_function != NULL); 402 _dbus_assert (path != NULL); 453 _dbus_assert (path != NULL); 469 _dbus_assert (subtree != NULL) [all...] |
dbus-dataslot.c | 79 _dbus_assert (allocator->lock_loc == NULL); 92 _dbus_assert (slot < allocator->n_allocated_slots); 93 _dbus_assert (allocator->allocated_slots[slot].slot_id == slot); 100 _dbus_assert (*slot_id_p < 0); 117 _dbus_assert (slot < allocator->n_allocated_slots); 137 _dbus_assert (slot >= 0); 138 _dbus_assert (slot < allocator->n_allocated_slots); 139 _dbus_assert (*slot_id_p < 0); 140 _dbus_assert (allocator->allocated_slots[slot].slot_id == slot); 141 _dbus_assert (allocator->allocated_slots[slot].refcount == 1) [all...] |
dbus-string.c | 86 _dbus_assert (real->len <= real->allocated - _DBUS_STRING_ALLOCATION_PADDING); 104 _dbus_assert (real->align_offset < 8); 105 _dbus_assert (_DBUS_ALIGN_ADDRESS (real->str, 8) == real->str); 137 _dbus_assert (str != NULL); 139 _dbus_assert (sizeof (DBusString) == sizeof (DBusRealString)); 213 _dbus_assert (value != NULL); 236 _dbus_assert (str != NULL); 237 _dbus_assert (len == 0 || value != NULL); 238 _dbus_assert (len <= _DBUS_STRING_MAX_MAX_LENGTH); 239 _dbus_assert (len >= 0) [all...] |
dbus-hash.c | 314 _dbus_assert (DBUS_SMALL_HASH_TABLE == _DBUS_N_ELEMENTS (table->static_buckets)); 325 _dbus_assert (table->mask < table->n_buckets); 475 _dbus_assert (table != NULL); 476 _dbus_assert (bucket != NULL); 477 _dbus_assert (*bucket != NULL); 478 _dbus_assert (entry != NULL); 490 _dbus_assert (prev != NULL); 536 _dbus_assert (sizeof (DBusHashIter) == sizeof (DBusRealHashIter)); 561 _dbus_assert (sizeof (DBusHashIter) == sizeof (DBusRealHashIter)); 568 _dbus_assert (real->n_entries_on_init >= real->table->n_entries) [all...] |
dbus-marshal-header.c | 97 _dbus_assert (header->padding <= MAX_POSSIBLE_HEADER_PADDING); 111 _dbus_assert (header->padding == 7); 203 _dbus_assert (_dbus_type_reader_get_current_type (&sub) == DBUS_TYPE_BYTE); 212 _dbus_assert (_dbus_type_reader_get_current_type (&sub) == DBUS_TYPE_VARIANT); 233 _dbus_assert (field <= DBUS_HEADER_FIELD_LAST); 256 _dbus_assert (field <= DBUS_HEADER_FIELD_LAST); 342 _dbus_assert (_dbus_type_reader_get_current_type (&sub) == DBUS_TYPE_BYTE); 347 _dbus_assert (((int) v_BYTE) == field); 355 _dbus_assert (_dbus_type_reader_get_current_type (&variant) == type); 375 _dbus_assert (type != DBUS_MESSAGE_TYPE_INVALID) [all...] |
dbus-message-util.c | 166 _dbus_assert(errno == 0 && e && !*e); 1008 _dbus_assert (dbus_message_has_destination (message, "org.freedesktop.DBus.TestService")); 1009 _dbus_assert (dbus_message_is_method_call (message, "Foo.TestInterface", 1011 _dbus_assert (strcmp (dbus_message_get_path (message), 1019 _dbus_assert (dbus_message_has_sender (message, "org.foo.bar1")); 1037 _dbus_assert (!dbus_message_has_sender (message, "org.foo.bar1")); 1038 _dbus_assert (dbus_message_get_serial (message) == 1234); 1039 _dbus_assert (dbus_message_get_reply_serial (message) == 5678); 1040 _dbus_assert (dbus_message_has_destination (message, "org.freedesktop.DBus.TestService")); 1042 _dbus_assert (dbus_message_get_no_reply (message) == FALSE) [all...] |
dbus-list.c | 733 _dbus_assert (list != dest); 839 _dbus_assert (link->prev == link); 840 _dbus_assert (*list == link); 848 _dbus_assert (link->prev->next == link); 849 _dbus_assert (link->next->prev == link); 854 _dbus_assert (length == _dbus_list_get_length (list)); 857 _dbus_assert (_dbus_list_length_is_one (list)); 859 _dbus_assert (!_dbus_list_length_is_one (list)); 1006 _dbus_assert (_dbus_list_get_length (&list1) == i); 1007 _dbus_assert (_dbus_list_get_length (&list2) == i) [all...] |
dbus-pending-call.c | 99 _dbus_assert (timeout_milliseconds >= 0 || timeout_milliseconds == -1); 172 _dbus_assert (pending->reply == NULL); 173 _dbus_assert (pending->reply_serial == dbus_message_get_reply_serial (message)); 187 _dbus_assert (!pending->completed); 212 _dbus_assert (connection == pending->connection); 231 _dbus_assert (pending != NULL); 247 _dbus_assert (pending != NULL); 262 _dbus_assert (pending != NULL); 276 _dbus_assert (pending != NULL); 291 _dbus_assert (pending != NULL) [all...] |
dbus-threads.c | 91 _dbus_assert (location_p != NULL); 333 _dbus_assert (thread_init_generation != _dbus_current_generation); 341 _dbus_assert (*mp == _DBUS_DUMMY_MUTEX); 356 _dbus_assert (*cp == _DBUS_DUMMY_CONDVAR); 441 _dbus_assert (_DBUS_N_ELEMENTS (global_locks) == 553 _dbus_assert (functions != NULL); 558 _dbus_assert (functions->mask & DBUS_THREAD_FUNCTIONS_CONDVAR_NEW_MASK); 559 _dbus_assert (functions->mask & DBUS_THREAD_FUNCTIONS_CONDVAR_FREE_MASK); 560 _dbus_assert (functions->mask & DBUS_THREAD_FUNCTIONS_CONDVAR_WAIT_MASK); 561 _dbus_assert (functions->mask & DBUS_THREAD_FUNCTIONS_CONDVAR_WAIT_TIMEOUT_MASK) [all...] |
dbus-mempool.c | 153 _dbus_assert (element_size >= (int) sizeof (void*)); 154 _dbus_assert (element_size >= (int) sizeof (DBusFreedElement)); 172 _dbus_assert ((pool->block_size % 282 _dbus_assert ((pool->block_size % 306 _dbus_assert (saved_counter == _dbus_get_fail_alloc_counter ()); 362 _dbus_assert (pool->allocated_elements > 0); 366 _dbus_assert (pool->blocks == NULL); 386 _dbus_assert (pool->allocated_elements > 0); 423 _dbus_assert (to_free[j] != NULL); /* in a real app of course this is wrong */ 460 _dbus_assert (to_free[j] != NULL); /* in a real app of course this is wrong * [all...] |
dbus-marshal-validate.c | 75 _dbus_assert (type_str != NULL); 76 _dbus_assert (type_pos < _DBUS_INT32_MAX - len); 77 _dbus_assert (len >= 0); 78 _dbus_assert (type_pos >= 0); 283 _dbus_assert (last != DBUS_TYPE_ARRAY); 284 _dbus_assert (last != DBUS_STRUCT_BEGIN_CHAR); 285 _dbus_assert (last != DBUS_DICT_ENTRY_BEGIN_CHAR); 390 _dbus_assert (p <= end); 542 _dbus_assert (p < end); 611 _dbus_assert (_dbus_type_reader_get_current_type (&sub) != DBUS_TYPE_INVALID) [all...] |
dbus-marshal-basic.c | 52 _dbus_assert (_DBUS_ALIGN_ADDRESS (data, 2) == data); 65 _dbus_assert (_DBUS_ALIGN_ADDRESS (data, 4) == data); 78 _dbus_assert (_DBUS_ALIGN_ADDRESS (data, 8) == data); 148 _dbus_assert (_DBUS_ALIGN_ADDRESS (data, 8) == data); 149 _dbus_assert (sizeof (r) == 8); 177 _dbus_assert (_DBUS_ALIGN_ADDRESS (data, 2) == data); 198 _dbus_assert (_DBUS_ALIGN_ADDRESS (data, 4) == data); 215 _dbus_assert (byte_order == DBUS_LITTLE_ENDIAN || 231 _dbus_assert (byte_order == DBUS_LITTLE_ENDIAN || 247 _dbus_assert (byte_order == DBUS_LITTLE_ENDIAN | [all...] |
dbus-sysdeps-pthread.c | 118 _dbus_assert (pmutex->count == 0); 148 _dbus_assert (pmutex->count == 0); 164 _dbus_assert (pmutex->count > 0); 171 _dbus_assert (pmutex->count == 0); 183 _dbus_assert (pmutex->count > 0); 244 _dbus_assert (pmutex->count > 0); 245 _dbus_assert (pthread_equal (pmutex->holder, pthread_self ())); 250 _dbus_assert (pmutex->count == 0); 267 _dbus_assert (pmutex->count > 0); 268 _dbus_assert (pthread_equal (pmutex->holder, pthread_self ())); [all...] |
dbus-errors.c | 192 _dbus_assert (sizeof (DBusError) == sizeof (DBusRealError)); 253 _dbus_assert (error->name == NULL); 254 _dbus_assert (error->message == NULL); 306 _dbus_assert ((error->name != NULL && error->message != NULL) || 330 _dbus_assert ((error->name != NULL && error->message != NULL) || 368 _dbus_assert (error->name == NULL); 369 _dbus_assert (error->message == NULL);
|
dbus-message-factory.c | 48 _dbus_assert (iter->depth < _DBUS_MESSAGE_DATA_MAX_NESTING); 49 _dbus_assert (iter->sequence_nos[iter->depth] >= 0); 55 _dbus_assert (iter->sequence_nos[iter->depth] >= 0); 63 _dbus_assert (sequence >= 0); 71 _dbus_assert (iter->depth >= 0); 254 _dbus_assert (message != NULL); 349 _dbus_assert (levels < 256); 393 _dbus_assert (_dbus_string_get_length (data) == 0); 830 _dbus_assert (len_seq < _DBUS_N_ELEMENTS (lengths)); 865 _dbus_assert (_dbus_string_get_length (data) >= DBUS_MINIMUM_HEADER_SIZE) [all...] |
dbus-server.c | 175 _dbus_assert (!server->have_server_lock); 177 _dbus_assert (server->disconnected); 304 _dbus_assert (watch != NULL); 435 _dbus_assert (server != NULL); 436 _dbus_assert (server->refcount.value > 0); 443 _dbus_assert (server->refcount.value > 0); 461 _dbus_assert (server != NULL); 462 _dbus_assert (server->refcount.value > 0); 469 _dbus_assert (server->refcount.value > 0); 477 _dbus_assert (server->disconnected) [all...] |
/external/dbus/bus/ |
signals.c | 65 _dbus_assert (rule->matches_go_to != NULL); 74 _dbus_assert (rule->refcount > 0); 84 _dbus_assert (rule->refcount > 0); 207 _dbus_assert (rule->args != NULL); 269 _dbus_assert (interface != NULL); 288 _dbus_assert (member != NULL); 307 _dbus_assert (sender != NULL); 326 _dbus_assert (destination != NULL); 345 _dbus_assert (path != NULL); 367 _dbus_assert (value != NULL) [all...] |
expirelist.c | 95 _dbus_assert (list->items == NULL); 267 _dbus_assert (link->data != NULL); 346 _dbus_assert (loop != NULL); 352 _dbus_assert (list != NULL); 383 _dbus_assert (item->expire_count == 0); 385 _dbus_assert (next_interval == 1); 390 _dbus_assert (item->expire_count == 1); 392 _dbus_assert (next_interval == -1); 397 _dbus_assert (item->expire_count == 1); 399 _dbus_assert (next_interval == 1000 + EXPIRE_AFTER) [all...] |
connection.c | 144 _dbus_assert (current_count >= 0); 148 _dbus_assert (current_count >= 0); 165 _dbus_assert (adjustment > 0 || 180 _dbus_assert (d != NULL); 283 _dbus_assert (d->connections->n_incomplete >= 0); 284 _dbus_assert (d->connections->n_completed >= 0); 387 _dbus_assert (d != NULL); 398 _dbus_assert (d->services_owned == NULL); 399 _dbus_assert (d->n_services_owned == 0); 401 _dbus_assert (d->transaction_messages == NULL) [all...] |
/external/dbus/test/name-test/ |
test-threads-init.c | 77 _dbus_assert (mutex1 != NULL); 78 _dbus_assert (mutex2 != NULL); 82 _dbus_assert (mutex1 == mutex2); 86 _dbus_assert (mutex1 != mutex2); 95 _dbus_assert (condvar1 != NULL); 96 _dbus_assert (condvar2 != NULL); 100 _dbus_assert (condvar1 == condvar2); 104 _dbus_assert (condvar1 != condvar2);
|