• Home
  • Raw
  • Download

Lines Matching refs:fake_device

184   FakeGUdevDevice *fake_device;  in load_fake_devices_from_file()  local
246 fake_device = FAKE_G_UDEV_DEVICE (g_object_new (FAKE_G_UDEV_TYPE_DEVICE, in load_fake_devices_from_file()
248 g_hash_table_insert (devices_by_ptr, g_object_ref (fake_device), NULL); in load_fake_devices_from_file()
259 g_hash_table_insert (fake_device->priv->properties, g_strdup (key), in load_fake_devices_from_file()
264 g_object_ref (fake_device)); in load_fake_devices_from_file()
269 g_object_ref (fake_device)); in load_fake_devices_from_file()
328 FakeGUdevDevice *fake_device; in get_fake_g_udev_device() local
335 fake_device = FAKE_G_UDEV_DEVICE (device); in get_fake_g_udev_device()
338 g_hash_table_lookup_extended (devices_by_ptr, fake_device, NULL, NULL), in get_fake_g_udev_device()
340 return fake_device; in get_fake_g_udev_device()
377 FakeGUdevDevice *fake_device = value; in g_udev_client_query_by_subsystem() local
379 (const gchar *)g_hash_table_lookup (fake_device->priv->properties, in g_udev_client_query_by_subsystem()
382 list = g_list_append (list, G_UDEV_DEVICE (fake_device)); in g_udev_client_query_by_subsystem()
404 FakeGUdevDevice *fake_device; in g_udev_client_query_by_device_file() local
412 (gpointer *)&fake_device)) { in g_udev_client_query_by_device_file()
414 fake_device->priv->client = client; in g_udev_client_query_by_device_file()
415 return g_object_ref (G_UDEV_DEVICE (fake_device)); in g_udev_client_query_by_device_file()
428 FakeGUdevDevice *fake_device; in g_udev_client_query_by_sysfs_path() local
434 (gpointer *)&fake_device)) { in g_udev_client_query_by_sysfs_path()
436 fake_device->priv->client = client; in g_udev_client_query_by_sysfs_path()
437 return g_object_ref (G_UDEV_DEVICE (fake_device)); in g_udev_client_query_by_sysfs_path()
460 FakeGUdevDevice *fake_device = value; in g_udev_client_query_by_subsystem_and_name() local
462 (const gchar *)g_hash_table_lookup (fake_device->priv->properties, in g_udev_client_query_by_subsystem_and_name()
465 (const gchar *)g_hash_table_lookup (fake_device->priv->properties, in g_udev_client_query_by_subsystem_and_name()
470 fake_device->priv->client = client; in g_udev_client_query_by_subsystem_and_name()
471 return g_object_ref (G_UDEV_DEVICE (fake_device)); in g_udev_client_query_by_subsystem_and_name()
496 FakeGUdevDevice * fake_device; in g_udev_device_get_device_file() local
498 fake_device = get_fake_g_udev_device (device); in g_udev_device_get_device_file()
499 if (fake_device) in g_udev_device_get_device_file()
500 return (const gchar *)g_hash_table_lookup (fake_device->priv->properties, in g_udev_device_get_device_file()
512 FakeGUdevDevice * fake_device; in g_udev_device_get_devtype() local
514 fake_device = get_fake_g_udev_device (device); in g_udev_device_get_devtype()
515 if (fake_device) in g_udev_device_get_devtype()
516 return (const gchar *)g_hash_table_lookup (fake_device->priv->properties, in g_udev_device_get_devtype()
528 FakeGUdevDevice * fake_device; in g_udev_device_get_driver() local
530 fake_device = get_fake_g_udev_device (device); in g_udev_device_get_driver()
531 if (fake_device) in g_udev_device_get_driver()
532 return (const gchar *)g_hash_table_lookup (fake_device->priv->properties, in g_udev_device_get_driver()
544 FakeGUdevDevice * fake_device; in g_udev_device_get_name() local
546 fake_device = get_fake_g_udev_device (device); in g_udev_device_get_name()
547 if (fake_device) in g_udev_device_get_name()
548 return (const gchar *)g_hash_table_lookup (fake_device->priv->properties, in g_udev_device_get_name()
560 FakeGUdevDevice * fake_device; in g_udev_device_get_parent() local
562 fake_device = get_fake_g_udev_device (device); in g_udev_device_get_parent()
563 if (fake_device) { in g_udev_device_get_parent()
565 (const gchar *)g_hash_table_lookup (fake_device->priv->properties, in g_udev_device_get_parent()
569 return g_udev_client_query_by_device_file (fake_device->priv->client, in g_udev_device_get_parent()
583 FakeGUdevDevice * fake_device; in g_udev_device_get_property() local
585 fake_device = get_fake_g_udev_device (device); in g_udev_device_get_property()
586 if (fake_device) { in g_udev_device_get_property()
589 (const gchar *)g_hash_table_lookup (fake_device->priv->properties, in g_udev_device_get_property()
626 FakeGUdevDevice * fake_device; in g_udev_device_get_property_keys() local
628 fake_device = get_fake_g_udev_device (device); in g_udev_device_get_property_keys()
629 if (fake_device) { in g_udev_device_get_property_keys()
631 if (fake_device->priv->propkeys) in g_udev_device_get_property_keys()
632 return fake_device->priv->propkeys; in g_udev_device_get_property_keys()
634 GList *keylist = g_hash_table_get_keys (fake_device->priv->properties); in g_udev_device_get_property_keys()
651 fake_device->priv->propkeys = keys; in g_udev_device_get_property_keys()
667 FakeGUdevDevice * fake_device; in g_udev_device_get_subsystem() local
669 fake_device = get_fake_g_udev_device (device); in g_udev_device_get_subsystem()
670 if (fake_device) in g_udev_device_get_subsystem()
671 return (const gchar *)g_hash_table_lookup (fake_device->priv->properties, in g_udev_device_get_subsystem()
687 FakeGUdevDevice * fake_device; in g_udev_device_get_sysfs_attr() local
689 fake_device = get_fake_g_udev_device (device); in g_udev_device_get_sysfs_attr()
690 if (fake_device) { in g_udev_device_get_sysfs_attr()
693 (const gchar *)g_hash_table_lookup (fake_device->priv->properties, in g_udev_device_get_sysfs_attr()
709 FakeGUdevDevice * fake_device; in g_udev_device_get_sysfs_path() local
711 fake_device = get_fake_g_udev_device (device); in g_udev_device_get_sysfs_path()
712 if (fake_device) in g_udev_device_get_sysfs_path()
713 return (const gchar *)g_hash_table_lookup (fake_device->priv->properties, in g_udev_device_get_sysfs_path()