Home
last modified time | relevance | path

Searched refs:observer_ops (Results 1 – 6 of 6) sorted by relevance

/external/adhd/cras/src/server/
Dcras_control_rclient.c202 struct cras_observer_ops observer_ops; in register_for_notification() local
205 cras_observer_get_ops(client->observer, &observer_ops); in register_for_notification()
209 observer_ops.output_volume_changed = in register_for_notification()
213 observer_ops.output_mute_changed = in register_for_notification()
217 observer_ops.capture_gain_changed = in register_for_notification()
221 observer_ops.capture_mute_changed = in register_for_notification()
225 observer_ops.nodes_changed = in register_for_notification()
229 observer_ops.active_node_changed = in register_for_notification()
233 observer_ops.output_node_volume_changed = in register_for_notification()
237 observer_ops.node_left_right_swapped_changed = in register_for_notification()
[all …]
Dcras_dbus_control.c1484 struct cras_observer_ops observer_ops; in cras_dbus_control_start() local
1498 memset(&observer_ops, 0, sizeof(observer_ops)); in cras_dbus_control_start()
1499 observer_ops.output_volume_changed = signal_output_volume; in cras_dbus_control_start()
1500 observer_ops.output_mute_changed = signal_output_mute; in cras_dbus_control_start()
1501 observer_ops.capture_gain_changed = signal_capture_gain; in cras_dbus_control_start()
1502 observer_ops.capture_mute_changed = signal_capture_mute; in cras_dbus_control_start()
1503 observer_ops.num_active_streams_changed = in cras_dbus_control_start()
1505 observer_ops.num_input_streams_with_permission_changed = in cras_dbus_control_start()
1507 observer_ops.nodes_changed = signal_nodes_changed; in cras_dbus_control_start()
1508 observer_ops.active_node_changed = signal_active_node_changed; in cras_dbus_control_start()
[all …]
Dcras_bt_battery_provider.c236 struct cras_observer_ops observer_ops; in cras_bt_on_battery_provider_registered() local
252 memset(&observer_ops, 0, sizeof(observer_ops)); in cras_bt_on_battery_provider_registered()
253 observer_ops.bt_battery_changed = on_bt_battery_changed; in cras_bt_on_battery_provider_registered()
254 provider->observer = cras_observer_add(&observer_ops, provider); in cras_bt_on_battery_provider_registered()
Dcras_iodev_list.c1060 struct cras_observer_ops observer_ops; in cras_iodev_list_init() local
1062 memset(&observer_ops, 0, sizeof(observer_ops)); in cras_iodev_list_init()
1063 observer_ops.output_volume_changed = sys_vol_change; in cras_iodev_list_init()
1064 observer_ops.output_mute_changed = sys_mute_change; in cras_iodev_list_init()
1065 observer_ops.capture_mute_changed = sys_cap_mute_change; in cras_iodev_list_init()
1066 observer_ops.suspend_changed = sys_suspend_change; in cras_iodev_list_init()
1067 list_observer = cras_observer_add(&observer_ops, NULL); in cras_iodev_list_init()
/external/adhd/cras/src/libcras/
Dcras_client.c246 struct cras_observer_ops observer_ops; member
1852 if (client->observer_ops.output_volume_changed) in handle_message_from_server()
1853 client->observer_ops.output_volume_changed( in handle_message_from_server()
1860 if (client->observer_ops.output_mute_changed) in handle_message_from_server()
1861 client->observer_ops.output_mute_changed( in handle_message_from_server()
1869 if (client->observer_ops.capture_gain_changed) in handle_message_from_server()
1870 client->observer_ops.capture_gain_changed( in handle_message_from_server()
1877 if (client->observer_ops.capture_mute_changed) in handle_message_from_server()
1878 client->observer_ops.capture_mute_changed( in handle_message_from_server()
1884 if (client->observer_ops.nodes_changed) in handle_message_from_server()
[all …]
/external/adhd/cras/src/tests/
Diodev_list_unittest.cc32 static struct cras_observer_ops* observer_ops; variable
332 observer_ops->suspend_changed(NULL, 1); in TEST_F()
355 observer_ops->suspend_changed(NULL, 0); in TEST_F()
468 observer_ops->suspend_changed(NULL, 1); in TEST_F()
470 observer_ops->suspend_changed(NULL, 0); in TEST_F()
484 observer_ops->suspend_changed(NULL, 1); in TEST_F()
486 observer_ops->suspend_changed(NULL, 0); in TEST_F()
1039 observer_ops->output_mute_changed(NULL, 0, 1, 0); in TEST_F()
1077 observer_ops->output_mute_changed(NULL, 0, 0, 0); in TEST_F()
1816 observer_ops->suspend_changed(NULL, 1); in TEST_F()
[all …]