Home
last modified time | relevance | path

Searched refs:g_new (Results 1 – 25 of 67) sorted by relevance

123

/external/bluetooth/glib/gthread/
Dgthread-win32.c100 CRITICAL_SECTION *cs = g_new (CRITICAL_SECTION, 1); in g_mutex_new_win32_cs_impl()
101 gpointer *retval = g_new (gpointer, 1); in g_mutex_new_win32_cs_impl()
146 retval = g_new (HANDLE, 1); in g_mutex_new_win32_impl()
185 GCond *retval = g_new (GCond, 1); in g_cond_new_win32_impl()
401 self = g_new (GThreadData, 1); in g_thread_self_win32_impl()
504 retval = g_new(GThreadData, 1); in g_thread_create_win32_impl()
Dgthread-posix.c162 GMutex *result = (GMutex *) g_new (pthread_mutex_t, 1); in g_mutex_new_posix_impl()
204 GCond *result = (GCond *) g_new (pthread_cond_t, 1); in g_cond_new_posix_impl()
268 GPrivate *result = (GPrivate *) g_new (pthread_key_t, 1); in g_private_new_posix_impl()
/external/bluetooth/glib/gio/win32/
Dgwinhttpfile.c119 file->url.lpszScheme = g_new (wchar_t, ++file->url.dwSchemeLength); in _g_winhttp_file_new()
120 file->url.lpszHostName = g_new (wchar_t, ++file->url.dwHostNameLength); in _g_winhttp_file_new()
121 file->url.lpszUserName = g_new (wchar_t, ++file->url.dwUserNameLength); in _g_winhttp_file_new()
122 file->url.lpszPassword = g_new (wchar_t, ++file->url.dwPasswordLength); in _g_winhttp_file_new()
123 file->url.lpszUrlPath = g_new (wchar_t, ++file->url.dwUrlPathLength); in _g_winhttp_file_new()
124 file->url.lpszExtraInfo = g_new (wchar_t, ++file->url.dwExtraInfoLength); in _g_winhttp_file_new()
203 wuri = g_new (wchar_t, ++len); in g_winhttp_file_get_uri()
378 …wchar_t *tmp = g_new (wchar_t, wcslen (winhttp_file->url.lpszUrlPath) + 1 + wcslen (wnew_path) + 1… in g_winhttp_file_resolve_relative_path()
/external/bluetooth/glib/tests/
Dslice-color.c66 guint **mema = g_new (guint*, n); in touch_mem()
69 memb = g_new (guint*, n); in touch_mem()
72 memc = g_new (guint*, n); in touch_mem()
Dslice-test.c104 ps = g_new (guint8*, number_of_blocks); in test_memchunk_thread()
105 ss = g_new (guint, number_of_blocks); in test_memchunk_thread()
165 ps = g_new (guint8*, number_of_blocks); in test_sliced_mem_thread()
166 ss = g_new (guint, number_of_blocks); in test_sliced_mem_thread()
Dunicode-encoding.c217 utf16_expected = g_new (gunichar2, n_chars + 1); in process()
227 utf16_expected = g_new (gunichar2, n_chars + 1); in process()
Dmainloop-test.c273 sub_channels = g_new (GIOChannel *, 2); in create_adder_thread()
289 test_data = g_new (TestData, 1); in create_adder_thread()
/external/bluetooth/glib/gio/
Dgthemedicon.c120 icon->names = g_new (char *, 2); in g_themed_icon_set_property()
172 themed->names = g_new (char *, dashes + 1 + 1); in g_themed_icon_constructed()
300 names = g_new (char *, len + 1); in g_themed_icon_new_from_names()
418 names = g_new (char*, num_names + 2); in g_themed_icon_prepend_name()
Dgunixvolume.c504 res = g_new (char *, 2); in g_unix_volume_enumerate_identifiers()
510 res = g_new (char *, 1); in g_unix_volume_enumerate_identifiers()
/external/bluetooth/glib/glib/
Dgstrfuncs.c102 new_str = g_new (char, length); in g_strdup()
155 new_str = g_new (gchar, n + 1); in g_strndup()
181 str = g_new (gchar, length + 1); in g_strnfill()
313 concat = g_new (gchar, l); in g_strconcat()
1384 msg = g_new (gchar, 64); in g_strerror()
1548 msg = g_new (gchar, 64); in g_strsignal()
2438 str_array = g_new (gchar*, n + 1); in g_strsplit()
2505 result = g_new (char *, 1); in g_strsplit_set()
2536 result = g_new (gchar *, n_tokens + 1); in g_strsplit_set()
2591 retval = g_new (gchar*, i + 1); in g_strdupv()
[all …]
Dgdir.c97 dir = g_new (GDir, 1); in g_dir_open()
117 dir = g_new (GDir, 1); in g_dir_open()
Dgpattern.c201 pspec = g_new (GPatternSpec, 1); in g_pattern_spec_new()
205 pspec->pattern = g_new (gchar, pspec->pattern_length + 1); in g_pattern_spec_new()
Dgutf8.c861 result = g_new (gunichar, n_chars + 1); in g_utf8_to_ucs4_fast()
983 result = g_new (gunichar, n_chars + 1); in g_utf8_to_ucs4()
1451 result = g_new (gunichar2, n16 + 1); in g_utf8_to_utf16()
1547 result = g_new (gunichar2, n16 + 1); in g_ucs4_to_utf16()
1823 result = g_new (gchar, len + 1); in g_utf8_strreverse()
Dgkeyfile.c670 all_data_dirs = g_new (gchar *, g_strv_length ((gchar **)system_data_dirs) + 2); in g_key_file_load_from_data_dirs()
1128 keys = g_new (gchar *, num_keys + 1); in g_key_file_get_keys()
1209 groups = g_new (gchar *, num_groups); in g_key_file_get_groups()
1540 values = g_new (gchar *, len + 1); in g_key_file_get_string_list()
1681 languages = g_new (gchar *, g_slist_length (list) + 1); in g_key_file_get_locale_string()
1997 bool_values = g_new (gboolean, num_bools); in g_key_file_get_boolean_list()
2210 int_values = g_new (gint, num_ints); in g_key_file_get_integer_list()
2421 double_values = g_new (gdouble, num_doubles); in g_key_file_get_double_list()
3448 string_value = g_new (gchar, strlen (value) + 1); in g_key_file_parse_value_as_string()
3554 value = g_new (gchar, 2 * length); in g_key_file_parse_string_as_value()
Dgutils.c958 base = g_new (gchar, len + 1); in g_path_get_dirname()
977 base = g_new (gchar, len + 1); in g_path_get_dirname()
1003 wdir = g_new (wchar_t, len); in g_get_current_dir()
1028 buffer = g_new (gchar, max_len + 1); in g_get_current_dir()
1035 buffer = g_new (gchar, max_len + 1); in g_get_current_dir()
1119 wvalue = g_new (wchar_t, len); in g_getenv()
1136 wvalue = g_new (wchar_t, len); in g_getenv()
3123 cache->language_names = languages = g_new (gchar *, g_slist_length (list) + 1); in g_get_language_names()
Dgprintf.c333 *string = g_new (gchar, g_printf_string_upper_bound (format, args)); in g_vasprintf()
Dgmem.h64 #define g_new(struct_type, n_structs) \ macro
Dgiounix.c538 channel = (GIOChannel *) g_new (GIOUnixChannel, 1); in g_io_channel_new_file()
576 GIOUnixChannel *unix_channel = g_new (GIOUnixChannel, 1); in g_io_channel_unix_new()
/external/bluetooth/glib/gobject/
Dgobject-query.c160 indent_inc = g_new (gchar, n * strlen (O_SPACE) + 1); in main()
210 indent_inc = g_new (gchar, strlen (O_SPACE) + 1); in main()
Dgtypemodule.c426 module_type_info = g_new (ModuleTypeInfo, 1); in g_type_module_register_type()
492 module_interface_info = g_new (ModuleInterfaceInfo, 1); in g_type_module_add_interface()
Dgobjectnotifyqueue.c105 pspecs = nqueue->n_pspecs > 16 ? free_me = g_new (GParamSpec*, nqueue->n_pspecs) : pspecs_mem; in g_object_notify_queue_thaw()
Dgparam.c897 GParamSpecPool *pool = g_new (GParamSpecPool, 1); in g_param_spec_pool_new()
1068 gchar stack_buffer[32], *buffer = l < 32 ? stack_buffer : g_new (gchar, l + 1); in g_param_spec_pool_lookup()
1288 pspecs = g_new (GParamSpec*, *n_pspecs_p + 1); in g_param_spec_pool_list()
1393 cinfo = g_new (ParamSpecClassInfo, 1); in g_param_type_register_static()
/external/bluetooth/glib/gio/fen/
Dfen-sub.c32 sub = g_new (fen_sub, 1); in fen_sub_new()
/external/bluetooth/bluez/gdbus/
Dmainloop.c125 info = g_new(struct watch_info, 1); in add_watch()
333 dc_data = g_new(struct disconnect_data, 1); in g_dbus_set_disconnect_function()
/external/bluetooth/bluez/audio/
Dgstbluetooth.c59 aux = g_new(guint8, 32); in sbc_typefind()

123