Home
last modified time | relevance | path

Searched refs:n_values (Results 1 – 7 of 7) sorted by relevance

/external/bluetooth/glib/gobject/
Dgvaluearray.c69 g_return_val_if_fail (index < value_array->n_values, NULL); in g_value_array_get_nth()
76 guint n_values, in value_array_grow() argument
79 g_return_if_fail (n_values >= value_array->n_values); in value_array_grow()
81 value_array->n_values = n_values; in value_array_grow()
82 if (value_array->n_values > value_array->n_prealloced) in value_array_grow()
86 … value_array->n_prealloced = (value_array->n_values + GROUP_N_VALUES - 1) & ~(GROUP_N_VALUES - 1); in value_array_grow()
89 i = value_array->n_values; in value_array_grow()
99 if (value_array->n_prealloced >= value_array->n_values + GROUP_N_VALUES) in value_array_shrink()
101 … value_array->n_prealloced = (value_array->n_values + GROUP_N_VALUES - 1) & ~(GROUP_N_VALUES - 1); in value_array_shrink()
122 value_array->n_values = 0; in g_value_array_new()
[all …]
Dgenums.c340 class->n_values = 0; in g_enum_class_init()
353 class->n_values++; in g_enum_class_init()
365 class->n_values = 0; in g_flags_class_init()
375 class->n_values++; in g_flags_class_init()
397 if (enum_class->n_values) in g_enum_get_value_by_name()
426 if (flags_class->n_values) in g_flags_get_value_by_name()
455 if (enum_class->n_values) in g_enum_get_value_by_nick()
484 if (flags_class->n_values) in g_flags_get_value_by_nick()
512 if (enum_class->n_values) in g_enum_get_value()
540 if (flags_class->n_values) in g_flags_get_first_value()
Dgparamspecs.c833 while (value_array->n_values < fixed_n_elements) in value_array_ensure_size()
838 while (value_array->n_values > fixed_n_elements) in value_array_ensure_size()
840 g_value_array_remove (value_array, value_array->n_values - 1); in value_array_ensure_size()
900 for (i = 0; i < value_array->n_values; i++) in param_value_array_validate()
934 if (value_array1->n_values != value_array2->n_values) in param_value_array_values_cmp()
935 return value_array1->n_values < value_array2->n_values ? -1 : 1; in param_value_array_values_cmp()
941 …return value_array1->n_values < value_array2->n_values ? -1 : value_array1->n_values > value_array… in param_value_array_values_cmp()
947 for (i = 0; i < value_array1->n_values; i++) in param_value_array_values_cmp()
Dgenums.h164 guint n_values; member
184 guint n_values; member
Dgvaluearray.h45 guint n_values; member
/external/bluetooth/glib/glib/
Dgslice.h86 gint64* g_slice_get_config_state (GSliceConfig ckey, gint64 address, guint *n_values);
Dgslice.c255 guint *n_values) in g_slice_get_config_state() argument
258 g_return_val_if_fail (n_values != NULL, NULL); in g_slice_get_config_state()
259 *n_values = 0; in g_slice_get_config_state()
267 *n_values = i; in g_slice_get_config_state()
268 return g_memdup (array, sizeof (array[0]) * *n_values); in g_slice_get_config_state()