/external/harfbuzz_ng/test/api/ |
D | test-common.c | 57 g_assert (HB_DIRECTION_IS_HORIZONTAL (HB_DIRECTION_LTR)); in test_types_direction() 58 g_assert (HB_DIRECTION_IS_HORIZONTAL (HB_DIRECTION_RTL)); in test_types_direction() 59 g_assert (!HB_DIRECTION_IS_HORIZONTAL (HB_DIRECTION_TTB)); in test_types_direction() 60 g_assert (!HB_DIRECTION_IS_HORIZONTAL (HB_DIRECTION_BTT)); in test_types_direction() 61 g_assert (!HB_DIRECTION_IS_HORIZONTAL (HB_DIRECTION_INVALID)); in test_types_direction() 63 g_assert (!HB_DIRECTION_IS_VERTICAL (HB_DIRECTION_LTR)); in test_types_direction() 64 g_assert (!HB_DIRECTION_IS_VERTICAL (HB_DIRECTION_RTL)); in test_types_direction() 65 g_assert (HB_DIRECTION_IS_VERTICAL (HB_DIRECTION_TTB)); in test_types_direction() 66 g_assert (HB_DIRECTION_IS_VERTICAL (HB_DIRECTION_BTT)); in test_types_direction() 67 g_assert (!HB_DIRECTION_IS_VERTICAL (HB_DIRECTION_INVALID)); in test_types_direction() [all …]
|
D | test-set.c | 39 g_assert (!hb_set_has (s, 13)); in test_empty() 40 g_assert (!hb_set_next (s, &next)); in test_empty() 42 g_assert (hb_set_is_empty (s)); in test_empty() 52 g_assert (hb_set_next (s, &next)); in test_not_empty() 74 g_assert (hb_set_has (s, 13)); in test_set_basic() 81 g_assert (!hb_set_has (s, 13)); in test_set_basic() 86 g_assert (hb_set_has (s, 13)); in test_set_basic() 93 g_assert (!hb_set_has (s, 13)); in test_set_basic() 108 g_assert (!hb_set_is_equal (s, o)); in test_set_algebra() 110 g_assert (hb_set_is_equal (s, o)); in test_set_algebra() [all …]
|
D | test-unicode.c | 58 g_assert (data->value == MAGIC0 || data->value == MAGIC1); in free_up() 59 g_assert (!data->freed); in free_up() 70 g_assert (hb_unicode_funcs_get_parent (ufuncs) != NULL); in simple_get_script() 72 g_assert (!data->freed); in simple_get_script() 87 g_assert (hb_unicode_funcs_get_parent (ufuncs) != NULL); in a_is_for_arabic_get_script() 89 g_assert (!data->freed); in a_is_for_arabic_get_script() 486 g_assert (hb_unicode_funcs_is_immutable (uf)); in test_unicode_properties() 487 g_assert (hb_unicode_funcs_get_parent (uf)); in test_unicode_properties() 549 g_assert (!hb_unicode_funcs_is_immutable (uf)); in test_unicode_properties_nil() 560 g_assert (uf); in test_unicode_properties_empty() [all …]
|
D | test-object.c | 198 g_assert (!data->freed); in free_up0() 207 g_assert (!data->freed); in free_up1() 222 g_assert (NULL == t->klass->get_user_data (t->object, &t->key)); in free_deadlock_test() 245 g_assert (obj); in test_object() 247 g_assert (obj == o->reference (obj)); in test_object() 251 g_assert (!o->is_immutable (obj)); in test_object() 253 g_assert (o->set_user_data (obj, &key[0], &data[0], free_up0, TRUE)); in test_object() 254 g_assert (o->get_user_data (obj, &key[0]) == &data[0]); in test_object() 258 g_assert (o->is_immutable (obj)); in test_object() 262 g_assert (o->set_user_data (obj, &key[1], &data[1], free_up1, TRUE)); in test_object() [all …]
|
D | test-version.c | 45 g_assert (0 == strcmp (HB_VERSION_STRING, s)); in test_version() 47 g_assert (0 == strcmp (HB_VERSION_STRING, hb_version_string ())); in test_version() 49 g_assert (HB_VERSION_ATLEAST (major, minor, micro)); in test_version() 51 g_assert (HB_VERSION_ATLEAST (major-1, minor, micro)); in test_version() 53 g_assert (HB_VERSION_ATLEAST (major, minor-1, micro)); in test_version() 55 g_assert (HB_VERSION_ATLEAST (major, minor, micro-1)); in test_version() 56 g_assert (!HB_VERSION_ATLEAST (major+1, minor, micro)); in test_version() 57 g_assert (!HB_VERSION_ATLEAST (major, minor+1, micro)); in test_version() 58 g_assert (!HB_VERSION_ATLEAST (major, minor, micro+1)); in test_version() 59 g_assert (!HB_VERSION_ATLEAST (major, minor, micro+1)); in test_version() [all …]
|
D | test-blob.c | 53 g_assert (hb_blob_is_immutable (hb_blob_get_empty ())); in test_blob_empty() 54 g_assert (hb_blob_get_empty () != NULL); in test_blob_empty() 55 g_assert (hb_blob_get_empty () == hb_blob_create (NULL, 0, HB_MEMORY_MODE_READONLY, NULL, NULL)); in test_blob_empty() 58 g_assert (blob == hb_blob_get_empty ()); in test_blob_empty() 64 g_assert (data == NULL); in test_blob_empty() 67 g_assert (data == NULL); in test_blob_empty() 71 g_assert (data_writable == NULL); in test_blob_empty() 74 g_assert (data_writable == NULL); in test_blob_empty() 126 g_assert (pagesize != (uintptr_t) -1); in get_pagesize() 175 g_assert (data != (char *) -1); in fixture_init() [all …]
|
D | test-font.c | 38 g_assert (hb_face_get_empty ()); in test_face_empty() 39 g_assert (hb_face_get_empty () == hb_face_create (hb_blob_get_empty (), 0)); in test_face_empty() 40 g_assert (hb_face_get_empty () == hb_face_create (NULL, 0)); in test_face_empty() 42 …g_assert (hb_face_reference_table (hb_face_get_empty (), HB_TAG ('h','e','a','d')) == hb_blob_get_… in test_face_empty() 57 g_assert (hb_face_reference_table (face, HB_TAG ('h','e','a','d')) == hb_blob_get_empty ()); in test_face_create() 70 g_assert (!*freed); in free_up() 94 g_assert (!freed); in test_face_createfortables() 96 g_assert (hb_face_reference_table (face, HB_TAG ('h','e','a','d')) == hb_blob_get_empty ()); in test_face_createfortables() 99 g_assert (blob != hb_blob_get_empty ()); in test_face_createfortables() 103 g_assert (0 == memcmp (data, test_data, sizeof (test_data))); in test_face_createfortables() [all …]
|
D | test-buffer.c | 109 g_assert (hb_buffer_get_unicode_funcs (b) == hb_unicode_funcs_get_default ()); in test_buffer_properties() 110 g_assert (hb_buffer_get_direction (b) == HB_DIRECTION_INVALID); in test_buffer_properties() 111 g_assert (hb_buffer_get_script (b) == HB_SCRIPT_INVALID); in test_buffer_properties() 112 g_assert (hb_buffer_get_language (b) == NULL); in test_buffer_properties() 113 g_assert (hb_buffer_get_flags (b) == HB_BUFFER_FLAG_DEFAULT); in test_buffer_properties() 120 g_assert (hb_buffer_get_unicode_funcs (b) == ufuncs); in test_buffer_properties() 123 g_assert (hb_buffer_get_direction (b) == HB_DIRECTION_RTL); in test_buffer_properties() 126 g_assert (hb_buffer_get_script (b) == HB_SCRIPT_ARABIC); in test_buffer_properties() 129 g_assert (hb_buffer_get_language (b) == hb_language_from_string ("Fa", -1)); in test_buffer_properties() 132 g_assert (hb_buffer_get_flags (b) == HB_BUFFER_FLAG_BOT); in test_buffer_properties() [all …]
|
D | test-ot-tag.c | 151 g_assert (lang == hb_ot_tag_to_language (tag)); in test_language_two_way() 173 g_assert (lang == hb_ot_tag_to_language (tag)); in test_tag_to_language()
|
D | test-shape.c | 151 g_assert (!strcmp (shapers[i - 1], "fallback")); in test_shape_list()
|
D | hb-test.h | 136 g_assert (0 == strncmp (path, "test_", 5)); in hb_test_normalize_path()
|
/external/qemu/qom/ |
D | object.c | 96 g_assert(info->name != NULL); in type_register_internal() 154 g_assert(type->parent_type != NULL); in type_get_parent() 249 g_assert(parent->class_size <= ti->class_size); in type_initialize() 318 g_assert(type != NULL); in object_initialize_with_type() 321 g_assert(type->instance_size >= sizeof(Object)); in object_initialize_with_type() 322 g_assert(type->abstract == false); in object_initialize_with_type() 323 g_assert(size >= type->instance_size); in object_initialize_with_type() 414 g_assert(obj->ref == 0); in object_finalize() 424 g_assert(type != NULL); in object_new_with_type() 706 g_assert(obj->ref > 0); in object_unref() [all …]
|
/external/qemu/qobject/ |
D | json-parser.c | 281 g_assert(ctxt->tokens.pos < ctxt->tokens.count); in parser_context_pop_token() 295 g_assert(ctxt->tokens.pos < ctxt->tokens.count); in parser_context_peek_token() 320 g_assert(ctxt->tokens.pos < ctxt->tokens.count); in tokens_append_from_iter()
|
/external/harfbuzz_ng/util/ |
D | helper-cairo.cc | 480 g_assert (hb_glyph[i].cluster > hb_glyph[i+1].cluster); in helper_cairo_line_from_buffer() 495 g_assert (hb_glyph[i].cluster > hb_glyph[i-1].cluster); in helper_cairo_line_from_buffer()
|
/external/qemu/distrib/mini-glib/include/ |
D | glib.h | 65 #define g_assert(condition) do { \ macro
|
/external/qemu/util/ |
D | cutils.c | 484 g_assert(n <= 0x3fff); in uleb128_encode_small()
|