Searched defs:NELEM (Results 1 - 8 of 8) sorted by path

/frameworks/minikin/tests/
H A DWordBreakerTests.cpp28 #ifndef NELEM
29 #define NELEM(x) ((sizeof(x) / sizeof((x)[0]))) macro
42 breaker.setText(buf, NELEM(buf));
49 EXPECT_EQ((ssize_t)NELEM(buf), breaker.next()); // end
60 breaker.setText(buf, NELEM(buf));
66 EXPECT_EQ((ssize_t)NELEM(buf), breaker.next()); // end
76 breaker.setText(buf, NELEM(buf));
83 EXPECT_EQ((ssize_t)NELEM(buf), breaker.next()); // end of string
85 EXPECT_EQ((ssize_t)NELEM(buf), breaker.wordEnd());
93 breaker.setText(buf, NELEM(bu
[all...]
/frameworks/native/cmds/atrace/
H A Datrace.cpp47 #define NELEM(x) ((int) (sizeof(x) / sizeof((x)[0]))) macro
188 static bool g_categoryEnables[NELEM(k_categories)] = {};
573 for (int i = 0; i < NELEM(k_categories); i++) {
672 for (int i = 0; i < NELEM(k_categories); i++) {
732 for (int i = 0; i < NELEM(k_categories); i++) {
741 for (int i = 0; i < NELEM(k_categories); i++) {
764 for (int i = 0; i < NELEM(k_categories); i++) {
961 for (int i = 0; i < NELEM(k_categories); i++) {
/frameworks/native/opengl/libagl/
H A Degl.cpp49 #undef NELEM macro
50 #define NELEM(x) (sizeof(x)/sizeof(*(x))) macro
1041 { config_0_attribute_list, NELEM(config_0_attribute_list) },
1042 { config_1_attribute_list, NELEM(config_1_attribute_list) },
1043 { config_2_attribute_list, NELEM(config_2_attribute_list) },
1044 { config_3_attribute_list, NELEM(config_3_attribute_list) },
1045 { config_4_attribute_list, NELEM(config_4_attribute_list) },
1046 { config_5_attribute_list, NELEM(config_5_attribute_list) },
1047 { config_6_attribute_list, NELEM(config_6_attribute_list) },
1048 { config_7_attribute_list, NELEM(config_7_attribute_lis
[all...]
/frameworks/native/opengl/libs/
H A Dhooks.h39 #undef NELEM macro
40 #define NELEM(x) (sizeof(x)/sizeof(*(x))) macro
/frameworks/support/v8/renderscript/jni/
H A Dandroid_renderscript_RenderScript.cpp36 #define NELEM(m) (sizeof(m) / sizeof((m)[0])) macro
600 in_allocs, NELEM(in_allocs), nullptr,
604 in_allocs, NELEM(in_allocs), nullptr,
640 in_allocs, NELEM(in_allocs), nullptr,
644 in_allocs, NELEM(in_allocs), nullptr,
683 in_allocs, NELEM(in_allocs), nullptr,
687 in_allocs, NELEM(in_allocs), nullptr,
726 in_allocs, NELEM(in_allocs), nullptr,
730 in_allocs, NELEM(in_allocs), nullptr,
759 in_allocs, NELEM(in_alloc
[all...]
/frameworks/webview/chromium/loader/
H A Dloader.cpp37 #define NELEM(x) ((int) (sizeof(x) / sizeof((x)[0]))) macro
213 env->RegisterNatives(clazz, kJniMethods, NELEM(kJniMethods));
/frameworks/webview/chromium/plat_support/
H A Ddraw_gl_functor.cpp33 #define NELEM(x) ((int) (sizeof(x) / sizeof((x)[0]))) macro
69 COMPILE_ASSERT(NELEM(aw_info.transform) == NELEM(gl_info->transform),
71 for (int i = 0; i < NELEM(aw_info.transform); ++i) {
150 int res = env->RegisterNatives(clazz, kJniMethods, NELEM(kJniMethods));
H A Dgraphics_utils.cpp34 #define NELEM(x) ((int) (sizeof(x) / sizeof((x)[0]))) macro
122 int res = env->RegisterNatives(clazz, kJniMethods, NELEM(kJniMethods));

Completed in 185 milliseconds