Home
last modified time | relevance | path

Searched refs:ARRAY_LENGTH (Results 1 – 25 of 42) sorted by relevance

12

/external/harfbuzz_ng/src/
Dhb-buffer-serialize.cc140 p += MAX (0, snprintf (p, ARRAY_LENGTH (b) - (p - b), "%u", info[i].codepoint)); in _hb_buffer_serialize_glyphs_json()
143 p += MAX (0, snprintf (p, ARRAY_LENGTH (b) - (p - b), ",\"cl\":%u", info[i].cluster)); in _hb_buffer_serialize_glyphs_json()
148 p += MAX (0, snprintf (p, ARRAY_LENGTH (b) - (p - b), ",\"dx\":%d,\"dy\":%d", in _hb_buffer_serialize_glyphs_json()
150 p += MAX (0, snprintf (p, ARRAY_LENGTH (b) - (p - b), ",\"ax\":%d,\"ay\":%d", in _hb_buffer_serialize_glyphs_json()
157 …p += MAX (0, snprintf (p, ARRAY_LENGTH (b) - (p - b), ",\"fl\":%u", info[i].mask & HB_GLYPH_FLAG_D… in _hb_buffer_serialize_glyphs_json()
164 p += MAX (0, snprintf (p, ARRAY_LENGTH (b) - (p - b), ",\"xb\":%d,\"yb\":%d", in _hb_buffer_serialize_glyphs_json()
166 p += MAX (0, snprintf (p, ARRAY_LENGTH (b) - (p - b), ",\"w\":%d,\"h\":%d", in _hb_buffer_serialize_glyphs_json()
218 p += MAX (0, snprintf (p, ARRAY_LENGTH (b) - (p - b), "%u", info[i].codepoint)); in _hb_buffer_serialize_glyphs_text()
221 p += MAX (0, snprintf (p, ARRAY_LENGTH (b) - (p - b), "=%u", info[i].cluster)); in _hb_buffer_serialize_glyphs_text()
227 p += MAX (0, snprintf (p, ARRAY_LENGTH (b) - (p - b), "@%d,%d", pos[i].x_offset, pos[i].y_offset)); in _hb_buffer_serialize_glyphs_text()
[all …]
Dhb-icu.cc197 U16_APPEND (utf16, len, ARRAY_LENGTH (utf16), a, err); in hb_icu_unicode_compose()
199 U16_APPEND (utf16, len, ARRAY_LENGTH (utf16), b, err); in hb_icu_unicode_compose()
203 …len = unorm2_normalize (unorm2_getNFCInstance (&icu_err), utf16, len, normalized, ARRAY_LENGTH (no… in hb_icu_unicode_compose()
229 ARRAY_LENGTH (decomposed), &icu_err); in hb_icu_unicode_decompose()
260 U16_APPEND (utf16, len, ARRAY_LENGTH (utf16), ab, err); in hb_icu_unicode_decompose()
264 …len = unorm2_normalize (unorm2_getNFDInstance (&icu_err), utf16, len, normalized, ARRAY_LENGTH (no… in hb_icu_unicode_decompose()
284 …unorm2_normalize (unorm2_getNFCInstance (&icu_err), normalized, len, recomposed, ARRAY_LENGTH (rec… in hb_icu_unicode_decompose()
300 …alize (unorm2_getNFCInstance (&icu_err), normalized, len, recomposed, ARRAY_LENGTH (recomposed), &… in hb_icu_unicode_decompose()
328 U16_APPEND (utf16, len, ARRAY_LENGTH (utf16), u, err); in hb_icu_unicode_decompose_compatibility()
334 …len = unorm2_normalize (unorm2_getNFKDInstance (&icu_err), utf16, len, normalized, ARRAY_LENGTH (n… in hb_icu_unicode_decompose_compatibility()
Dhb-common.cc140 for (unsigned int i = 0; i < ARRAY_LENGTH (direction_strings); i++) in hb_direction_from_string()
161 < ARRAY_LENGTH (direction_strings))) in hb_direction_to_string()
656 unsigned int len = MIN (ARRAY_LENGTH (buf) - 1, (unsigned int) (end - *pp)); in parse_uint()
680 unsigned int len = MIN (ARRAY_LENGTH (buf) - 1, (unsigned int) (end - *pp)); in parse_uint32()
755 unsigned int len = MIN (ARRAY_LENGTH (buf) - 1, (unsigned int) (end - *pp)); in parse_float()
962 len += MAX (0, snprintf (s + len, ARRAY_LENGTH (s) - len, "%u", feature->start)); in hb_feature_to_string()
966 len += MAX (0, snprintf (s + len, ARRAY_LENGTH (s) - len, "%u", feature->end)); in hb_feature_to_string()
973 len += MAX (0, snprintf (s + len, ARRAY_LENGTH (s) - len, "%u", feature->value)); in hb_feature_to_string()
975 assert (len < ARRAY_LENGTH (s)); in hb_feature_to_string()
1043 len += MAX (0, snprintf (s + len, ARRAY_LENGTH (s) - len, "%g", variation->value)); in hb_variation_to_string()
[all …]
Dhb-private.hh240 #undef ARRAY_LENGTH
242 static inline unsigned int ARRAY_LENGTH (const Type (&)[n]) { return n; } in ARRAY_LENGTH() function
388 allocated = ARRAY_LENGTH (static_array); in init()
760 len = MIN (ARRAY_LENGTH (buf) - 1, len); in hb_codepoint_parse()
812 for (unsigned int i = 0; i < ARRAY_LENGTH (v); i++) in process()
825 for (unsigned int i = 0; i < ARRAY_LENGTH (v); i++) in operator ~()
Dhb-ot-shape-complex-arabic-fallback.hh118 …for (unsigned int first_glyph_idx = 0; first_glyph_idx < ARRAY_LENGTH (first_glyphs); first_glyph_… in arabic_fallback_synthesize_lookup_ligature()
136 …for (unsigned int second_glyph_idx = 0; second_glyph_idx < ARRAY_LENGTH (ligature_table[0].ligatur… in arabic_fallback_synthesize_lookup_ligature()
276 for (unsigned int i = 0; i < ARRAY_LENGTH(arabic_fallback_features) ; i++) in arabic_fallback_plan_init_unicode()
Dhb-ot-tag.cc976 ARRAY_LENGTH (ot_languages), sizeof (LangTag), in hb_ot_tag_from_language()
987 for (i = 0; i < ARRAY_LENGTH (ot_languages_zh); i++) in hb_ot_tag_from_language()
1043 for (i = 0; i < ARRAY_LENGTH (ot_languages); i++) in hb_ot_tag_to_language()
1075 for (unsigned int i = 1; i < ARRAY_LENGTH (ot_languages); i++) in test_langs_sorted()
Dhb-ot-shape-complex-use.cc139 for (unsigned int i = 0; i < ARRAY_LENGTH (basic_features); i++) in collect_features_use()
145 for (unsigned int i = 0; i < ARRAY_LENGTH (arabic_features); i++) in collect_features_use()
150 for (unsigned int i = 0; i < ARRAY_LENGTH (other_features); i++) in collect_features_use()
Dhb-ot-math-table.hh66 unsigned int count = ARRAY_LENGTH (mathValueRecords); in sanitize_math_value_records()
302 unsigned int count = ARRAY_LENGTH (mathKern); in sanitize()
316 if (unlikely (idx >= ARRAY_LENGTH (mathKern))) return 0; in get_kerning()
Dhb-glib.cc166 if (likely ((unsigned int) script < ARRAY_LENGTH (glib_script_to_script))) in hb_glib_script_to_script()
182 unsigned int count = ARRAY_LENGTH (glib_script_to_script); in hb_glib_script_from_script()
Dhb-string-array.hh72 assert (i < ARRAY_LENGTH (HB_STRING_ARRAY_OFFS_NAME) - 1); in HB_STRING_ARRAY_NAME()
Dhb-shaper.cc83 for (unsigned int j = i; j < ARRAY_LENGTH (all_shapers); j++) in _hb_shapers_get()
Dhb-ot-map.cc99 len = ARRAY_LENGTH (lookup_indices); in add_lookups()
121 } while (len == ARRAY_LENGTH (lookup_indices)); in add_lookups()
Dhb-ot-shape-complex-myanmar.cc103 for (unsigned int i = 0; i < ARRAY_LENGTH (basic_features); i++) in collect_features_myanmar()
109 for (unsigned int i = 0; i < ARRAY_LENGTH (other_features); i++) in collect_features_myanmar()
Dhb-ot-layout.cc630 len = ARRAY_LENGTH (lookup_indices); in _hb_ot_layout_collect_lookups_lookups()
641 } while (len == ARRAY_LENGTH (lookup_indices)); in _hb_ot_layout_collect_lookups_lookups()
672 len = ARRAY_LENGTH (feature_indices); in _hb_ot_layout_collect_lookups_features()
687 } while (len == ARRAY_LENGTH (feature_indices)); in _hb_ot_layout_collect_lookups_features()
/external/wayland/tests/
Dlist-test.c93 assert(i < ARRAY_LENGTH(reference)); in TEST()
97 assert(i == ARRAY_LENGTH(reference)); in TEST()
101 assert(i < ARRAY_LENGTH(reference)); in TEST()
102 assert(e->i == reference[ARRAY_LENGTH(reference) - i - 1]); in TEST()
105 assert(i == ARRAY_LENGTH(reference)); in TEST()
143 assert(validate_list(&list, reference1, ARRAY_LENGTH(reference1))); in TEST()
146 assert(validate_list(&list, reference2, ARRAY_LENGTH(reference2))); in TEST()
165 assert(validate_list(&list, reference1, ARRAY_LENGTH(reference1))); in TEST()
175 assert(validate_list(&other, reference2, ARRAY_LENGTH(reference2))); in TEST()
178 assert(validate_list(&list, reference3, ARRAY_LENGTH(reference3))); in TEST()
Dmessage-test.c49 for (i = 0; i < ARRAY_LENGTH(messages); ++i) { in TEST()
86 for (i = 0; i < ARRAY_LENGTH(messages); ++i) { in TEST()
Dqueue-test.c40 #define ARRAY_LENGTH(a) (sizeof (a) / sizeof (a)[0]) macro
325 for (i = 0; i < ARRAY_LENGTH(dummy_interfaces); i++) in TEST()
/external/apache-harmony/jdwp/src/test/java/org/apache/harmony/jpda/tests/jdwp/ArrayReference/
DSetValues003Debuggee.java29 static final int ARRAY_LENGTH = 1; field in SetValues003Debuggee
56 arrayField = new DebuggeeSubClass[ARRAY_LENGTH]; in run()
57 superClassArrayField = new DebuggeeSuperClass[ARRAY_LENGTH]; in run()
58 interfaceArrayField = new DebuggeeInterface[ARRAY_LENGTH]; in run()
DSetValues003Test.java35 private static final int VALID_INDEX = SetValues003Debuggee.ARRAY_LENGTH - 1;
36 private static final int INVALID_INDEX = SetValues003Debuggee.ARRAY_LENGTH;
/external/icu/icu4c/source/test/intltest/
Dtstnorm.cpp27 #define ARRAY_LENGTH(array) UPRV_LENGTHOF(array) macro
171 for (i = 0; i < ARRAY_LENGTH(canonTests); i++) { in TestPrevious()
177 for (i = 0; i < ARRAY_LENGTH(canonTests); i++) { in TestPrevious()
187 iterateTest(norm, canonTests, ARRAY_LENGTH(canonTests), 1); in TestDecomp()
188 staticTest(UNORM_NFD, 0, canonTests, ARRAY_LENGTH(canonTests), 1); in TestDecomp()
195 iterateTest(norm, compatTests, ARRAY_LENGTH(compatTests), 1); in TestCompatDecomp()
198 compatTests, ARRAY_LENGTH(compatTests), 1); in TestCompatDecomp()
205 iterateTest(norm, canonTests, ARRAY_LENGTH(canonTests), 2); in TestCanonCompose()
208 ARRAY_LENGTH(canonTests), 2); in TestCanonCompose()
215 iterateTest(norm, compatTests, ARRAY_LENGTH(compatTests), 2); in TestCompatCompose()
[all …]
/external/valgrind/none/tests/solaris/
Dstack_prot.c4 #define ARRAY_LENGTH(array) (sizeof((array)) / sizeof(0[(array)])) macro
27 items = fread(map, sizeof(map[0]), ARRAY_LENGTH(map), fi); in main()
28 if (items != ARRAY_LENGTH(map)) { in main()
/external/cmockery/cmockery_0_1_2/src/
Dcmockery.c48 #define ARRAY_LENGTH(x) (sizeof(x) / sizeof((x)[0])) macro
195 ARRAY_LENGTH(exception_signals)];
1309 for (i = 0; i < ARRAY_LENGTH(guards); i++) { in _test_free()
1415 for (i = 0; i < ARRAY_LENGTH(exception_codes); i++) { in exception_filter()
1502 for (i = 0; i < ARRAY_LENGTH(exception_signals); i++) { in _run_test()
1542 for (i = 0; i < ARRAY_LENGTH(exception_signals); i++) { in _run_test()
/external/icu/icu4c/source/test/letest/
Dtestdata.cpp631 le_int32 testCount = ARRAY_LENGTH(testInputs);
/external/wayland/cursor/
Dwayland-cursor.c41 #define ARRAY_LENGTH(a) (sizeof (a) / sizeof (a)[0]) macro
268 theme->cursor_count = ARRAY_LENGTH(cursor_metadata); in load_default_theme()
/external/harfbuzz_ng/util/
Doptions.cc495 for (unsigned int i = 1; i < ARRAY_LENGTH (supported_font_funcs); i++) in add_options()
706 for (unsigned int i = 0; i < ARRAY_LENGTH (supported_font_funcs); i++) in get_font()
715 for (unsigned int i = 0; i < ARRAY_LENGTH (supported_font_funcs); i++) in get_font()

12