Remove D-Bus dependency from Service

Here are the main changes:
1. Update service to use ServiceAdaptorInterface instead of using
   D-Bus adaptor directly.
2. Update D-Bus object registration for Service and Config to be
   synchronous, to remove unnecessary complexity. This also
   eliminates the need for Manager::CreateService handler to be
   asynchronous.
3. Update Service APIs to use the internal Error instead of brillo::Error.
4. Use MockServiceAdaptor for testing, fake version is not needed
   since the adaptor properties for Service are not being used in test.

Bug: 24194427
TEST=Start AP service on both Brillo and Chrome OS devices
TEST=Run unittests on both Brillo and Chrome OS

Change-Id: Ib94a4b91ef402415470e0131afdeeef5105817e4
13 files changed
tree: 4b52276abb3cb19ffa29f57176e235541e0a43be
  1. dbus/
  2. dbus_bindings/
  3. dbus_permissions/
  4. init/
  5. Android.mk
  6. apmanager.gyp
  7. apmanager.rc
  8. config.cc
  9. config.h
  10. config_adaptor_interface.h
  11. config_unittest.cc
  12. control_interface.h
  13. daemon.cc
  14. daemon.h
  15. device.cc
  16. device.h
  17. device_adaptor_interface.h
  18. device_info.cc
  19. device_info.h
  20. device_info_unittest.cc
  21. device_unittest.cc
  22. dhcp_server.cc
  23. dhcp_server.h
  24. dhcp_server_factory.cc
  25. dhcp_server_factory.h
  26. dhcp_server_unittest.cc
  27. error.cc
  28. error.h
  29. error_unittest.cc
  30. event_dispatcher.cc
  31. event_dispatcher.h
  32. fake_config_adaptor.cc
  33. fake_config_adaptor.h
  34. fake_device_adaptor.cc
  35. fake_device_adaptor.h
  36. file_writer.cc
  37. file_writer.h
  38. firewall_manager.cc
  39. firewall_manager.h
  40. firewall_proxy_interface.h
  41. hostapd_monitor.cc
  42. hostapd_monitor.h
  43. hostapd_monitor_unittest.cc
  44. libapmanager-client-test.pc.in
  45. libapmanager-client.pc.in
  46. main.cc
  47. manager.cc
  48. manager.h
  49. manager_unittest.cc
  50. mock_config.cc
  51. mock_config.h
  52. mock_control.cc
  53. mock_control.h
  54. mock_device.cc
  55. mock_device.h
  56. mock_dhcp_server.cc
  57. mock_dhcp_server.h
  58. mock_dhcp_server_factory.cc
  59. mock_dhcp_server_factory.h
  60. mock_event_dispatcher.cc
  61. mock_event_dispatcher.h
  62. mock_file_writer.cc
  63. mock_file_writer.h
  64. mock_hostapd_monitor.cc
  65. mock_hostapd_monitor.h
  66. mock_manager.cc
  67. mock_manager.h
  68. mock_process_factory.cc
  69. mock_process_factory.h
  70. mock_service.cc
  71. mock_service.h
  72. mock_service_adaptor.cc
  73. mock_service_adaptor.h
  74. MODULE_LICENSE_APACHE2
  75. NOTICE
  76. OWNERS
  77. PRESUBMIT.cfg
  78. process_factory.cc
  79. process_factory.h
  80. rpc_interface.h
  81. run_all_tests.cc
  82. service.cc
  83. service.h
  84. service_adaptor_interface.h
  85. service_unittest.cc
  86. shill_manager.cc
  87. shill_manager.h
  88. shill_proxy_interface.h
  89. shill_stub_proxy.cc
  90. shill_stub_proxy.h
  91. testrunner.cc