Home
last modified time | relevance | path

Searched refs:g_variant_new_string (Results 1 – 25 of 43) sorted by relevance

12

/third_party/glib/gio/tests/
Dgdbus-example-server.c184 ret = g_variant_new_string ("DeLorean"); in handle_get_property()
190 ret = g_variant_new_string (_global_title); in handle_get_property()
203 ret = g_variant_new_string ("There's no home like home"); in handle_get_property()
207 ret = g_variant_new_string (swap_a_and_b ? "Tock" : "Tick"); in handle_get_property()
211 ret = g_variant_new_string (swap_a_and_b ? "Tick" : "Tock"); in handle_get_property()
242 g_variant_new_string (_global_title)); in handle_set_property()
300 g_variant_new_string (swap_a_and_b ? "Tock" : "Tick")); in on_timeout_cb()
304 g_variant_new_string (swap_a_and_b ? "Tick" : "Tock")); in on_timeout_cb()
Dactions.c72 g_action_activate (G_ACTION (action), g_variant_new_string ("xxx")); in test_basic()
88 g_action_activate (G_ACTION (action), g_variant_new_string ("Hello world")); in test_basic()
209 …simple = g_simple_action_new_stateful ("bar", G_VARIANT_TYPE_STRING, g_variant_new_string ("hihi")… in test_simple_group()
234 g_action_group_change_action_state (G_ACTION_GROUP (group), "bar", g_variant_new_string ("boo")); in test_simple_group()
266 action = g_simple_action_new_stateful ("foo", NULL, g_variant_new_string ("hihi")); in test_stateful()
284 g_simple_action_set_state (action, g_variant_new_string ("hello")); in test_stateful()
311 …action = g_simple_action_new_stateful ("foo", G_VARIANT_TYPE_STRING, g_variant_new_string ("hihi")… in test_default_activate()
312 g_action_activate (G_ACTION (action), g_variant_new_string ("bye")); in test_default_activate()
395 g_variant_new_string ("param")); in test_entries()
576 new_state = g_variant_new_string (g_variant_get_string (parameter, NULL)); in activate_radio()
Dgdbus-export.c171 ret = g_variant_new_string (s); in foo_get_property()
920 g_variant_new_string ("But Writable you are!")), in test_dispatch_thread_func()
1638 …g_dbus_method_invocation_return_value (invocation, g_variant_new ("(v)", g_variant_new_string (pro… in test_async_method_call()
1761 …ync_case (c, NULL, "Set", "(ssv)", "org.example.WrongInterface", "zzz", g_variant_new_string ("")); in test_async_properties()
1762 …ync_case (c, NULL, "Set", "(ssv)", "org.example.Foo", "NoSuchProperty", g_variant_new_string ("")); in test_async_properties()
1763 …test_async_case (c, NULL, "Set", "(ssv)", "org.example.Foo", "NotWritable", g_variant_new_string (… in test_async_properties()
1771 test_async_case (c, NULL, "Set", "(ssv)", "org.example.Foo2", "zzz", g_variant_new_string ("")); in test_async_properties()
1777 …test_async_case (c, "()", "Set", "(ssv)", "org.example.Foo", "PropertyUno", g_variant_new_string (… in test_async_properties()
1778 …test_async_case (c, "()", "Set", "(ssv)", "org.example.Foo", "NotReadable", g_variant_new_string (… in test_async_properties()
Dgdbus-example-export.c192 ret = g_variant_new_string (myobj->name ? myobj->name : ""); in handle_get_property()
250 "Name", g_variant_new_string (myobj->name ? myobj->name : "")); in send_property_change()
Dg-icon.c285 data = g_variant_new_string ("network-server%"); in test_g_icon_serialize()
293 data = g_variant_new_string ("/path/to/somewhere.png"); in test_g_icon_serialize()
303 data = g_variant_new_string ("/path/to/somewhere with whitespace.png"); in test_g_icon_serialize()
318 data = g_variant_new_string ("sftp:///path/to/somewhere.png"); in test_g_icon_serialize()
Dgdbus-testserver.c701 …es, g_strdup ("PropertyThatWillBeInvalidated"), g_variant_ref_sink (g_variant_new_string (value))); in handle_method_call()
856 …g_hash_table_insert (properties, g_strdup ("s"), g_variant_ref_sink (g_variant_new_string ("a stri… in main()
869 …g_hash_table_insert (properties, g_strdup ("foo"), g_variant_ref_sink (g_variant_new_string ("a fr… in main()
870 …, g_strdup ("PropertyThatWillBeInvalidated"), g_variant_ref_sink (g_variant_new_string ("InitialVa… in main()
Dgdbus-proxy.c607 g_dbus_proxy_set_cached_property (proxy, "y", g_variant_new_string ("error_me_out!")); in test_expected_interface()
609 g_dbus_proxy_set_cached_property (proxy, "does-not-exist", g_variant_new_string ("something")); in test_expected_interface()
629 value = g_variant_ref_sink (g_variant_new_string ("error_me_out!")); in test_expected_interface()
Dgmenumodel.c344 …h_table_insert (attributes, g_strdup ("label"), g_variant_ref_sink (g_variant_new_string (label))); in random_menu_change()
1254 g_menu_item_set_attribute_value (item, "string", g_variant_new_string ("bla")); in test_attributes()
1259 g_menu_item_set_attribute_value (item, "test-123", g_variant_new_string ("test-123")); in test_attributes()
1303 g_menu_item_set_attribute_value (item, "string", g_variant_new_string ("bla")); in test_attribute_iter()
1308 g_menu_item_set_attribute_value (item, "test-123", g_variant_new_string ("test-123")); in test_attribute_iter()
Dgdbus-serialization.c537 …g_dbus_message_set_header (message, G_DBUS_MESSAGE_HEADER_FIELD_MEMBER, g_variant_new_string ("Mem… in get_and_check_serialization()
748 value = g_variant_new_string ("buried"); in test_message_serialize_complex()
763 value = g_variant_new_string ("hello"); in test_message_serialize_complex()
Dgsettings.c1550 return g_variant_new_string ("true"); in bool_to_string()
1552 return g_variant_new_string ("false"); in bool_to_string()
2708 g_action_activate (string, g_variant_new_string ("hihi")); in test_actions()
2713 g_action_change_state (string, g_variant_new_string ("kthxbye")); in test_actions()
2893 *result = g_variant_new_string (str); in string_map_func()
/third_party/glib/gio/
Dgnotification.c703 g_variant_builder_add (&builder, "{sv}", "label", g_variant_new_string (button->label)); in g_notification_serialize_button()
704 g_variant_builder_add (&builder, "{sv}", "action", g_variant_new_string (button->action_name)); in g_notification_serialize_button()
722 nick = g_variant_new_string (value->value_nick); in g_notification_get_priority_nick()
743 g_variant_builder_add (&builder, "{sv}", "title", g_variant_new_string (notification->title)); in g_notification_serialize()
746 g_variant_builder_add (&builder, "{sv}", "body", g_variant_new_string (notification->body)); in g_notification_serialize()
764 g_variant_new_string (notification->default_action)); in g_notification_serialize()
Dgfdonotificationbackend.c302 g_variant_new_string (g_application_get_application_id (app))); in call_notify()
321 g_variant_new_string (icon_names[0])); in call_notify()
Dgaction.c506 *target_value = g_variant_ref_sink (g_variant_new_string (target + 2)); in g_action_parse_detailed_name()
Dgsettings-mapping.c369 return g_variant_new_string (g_value_get_string (value)); in g_settings_set_mapping()
396 return g_variant_new_string (enumval->value_nick); in g_settings_set_mapping()
Dgnextstepsettingsbackend.m325 return g_variant_new_string (string);
357 name = g_variant_new_string ([key UTF8String]);
Dgmenu.c909 value = g_variant_new_string (label); in g_menu_item_set_label()
1014 action_value = g_variant_new_string (action); in g_menu_item_set_action_and_target_value()
Dgopenuriportal.c299 g_variant_builder_add (&opt_builder, "{sv}", "handle_token", g_variant_new_string (token)); in g_openuri_portal_open_uri_async()
Dgapplication-tool.c303 … g_variant_builder_add (&builder, "{sv}", "desktop-startup-id", g_variant_new_string (startup_id)); in app_get_platform_data()
Dgdbusutils.c608 ret = g_variant_ref_sink (g_variant_new_string (s)); in g_dbus_gvalue_to_gvariant()
/third_party/glib/glib/tests/
Dlogging.c591 …g_variant_builder_add (&builder, "{sv}", "MESSAGE_ID", g_variant_new_string ("06d4df59e6c24647bfe6… in create_variant_fields()
592 …g_variant_builder_add (&builder, "{sv}", "MESSAGE", g_variant_new_string ("This is a debug message… in create_variant_fields()
593 …g_variant_builder_add (&builder, "{sv}", "MY_APPLICATION_CUSTOM_FIELD", g_variant_new_string ("som… in create_variant_fields()
Dgvariant.c2540 result = g_variant_new_string (tree->data.string); in tree_instance_get_gvariant()
2827 v = g_variant_new_string ("foo"); in test_string()
3004 g_variant_new_string ("Test case")); in test_varargs()
3006 g_variant_new_dict_entry (g_variant_new_string ("temperature"), in test_varargs()
3864 val = g_variant_new_string (str); in test_parses()
3898 value = g_variant_new_string (orig); in test_parses()
3915 value = g_variant_new_string (orig); in test_parses()
4469 a = untrusted (g_variant_new_string ("abc")); in test_compare()
4470 b = g_variant_new_string ("abd"); in test_compare()
4537 a = untrusted (g_variant_new_string ("abc")); in test_equal()
[all …]
Dtesting.c43 v2 = g_variant_new_string ("hello"); in test_assertions_bad_cmpvariant_types()
58 v1 = g_variant_new_string ("goodbye"); in test_assertions_bad_cmpvariant_values()
59 v2 = g_variant_new_string ("hello"); in test_assertions_bad_cmpvariant_values()
/third_party/gstreamer/gstplugins_base/gst-libs/gst/tag/
Dmklicensestables.c614 g_variant_new_dict_entry (g_variant_new_string (lang), in create_translation_dict()
615 g_variant_new_string (trans))); in create_translation_dict()
666 g_variant_new_dict_entry (g_variant_new_string (en), trans)); in write_translations_dictionary()
686 g_variant_new_dict_entry (g_variant_new_string (en), trans)); in write_translations_dictionary()
/third_party/libsoup/tests/
Dxmlrpc-server-test.c190 soup_xmlrpc_message_set_response (msg, g_variant_new_string ("pong"), NULL); in do_ping()
/third_party/glib/glib/
Dgvariant.c1259 g_variant_new_string (const gchar *string) in g_variant_new_string() function
1569 strings[i] = g_variant_ref_sink (g_variant_new_string (strv[i])); in g_variant_new_strv()
4796 value = g_variant_new_string (ptr); in g_variant_valist_new_nnp()
4799 value = g_variant_new_string ("[Invalid UTF-8]"); in g_variant_valist_new_nnp()
5855 return g_variant_new_string (g_variant_get_string (value, NULL)); in g_variant_deep_copy()

12