shill: Disconnect and disable cellular modem when stopping the device.

Also, disconnect the cellular service on Service::Disconnect. A separate patch
wires this up to powering off the device (crosbug.com/25014).

BUG=chromium-os:25116,chromium-os:25013
TEST=unit tests, tested on chromebook with disconnect-service

Change-Id: Id3b8c10fbfd917702738b8a4385d7954c03de204
Reviewed-on: https://gerrit.chromium.org/gerrit/14230
Commit-Ready: Darin Petkov <petkov@chromium.org>
Reviewed-by: Darin Petkov <petkov@chromium.org>
Tested-by: Darin Petkov <petkov@chromium.org>
9 files changed
tree: cb8aecfb71e499df15e36bd4134eb614bdb0e65b
  1. dbus_bindings/
  2. accessor_interface.h
  3. adaptor_interfaces.h
  4. async_connection.cc
  5. async_connection.h
  6. async_connection_unittest.cc
  7. byte_string.cc
  8. byte_string.h
  9. byte_string_unittest.cc
  10. callback_list.cc
  11. callback_list.h
  12. callback_list_unittest.cc
  13. cellular.cc
  14. cellular.h
  15. cellular_capability.cc
  16. cellular_capability.h
  17. cellular_capability_cdma.cc
  18. cellular_capability_cdma.h
  19. cellular_capability_cdma_unittest.cc
  20. cellular_capability_gsm.cc
  21. cellular_capability_gsm.h
  22. cellular_capability_gsm_unittest.cc
  23. cellular_service.cc
  24. cellular_service.h
  25. cellular_service_unittest.cc
  26. cellular_unittest.cc
  27. connection.cc
  28. connection.h
  29. connection_unittest.cc
  30. control_interface.h
  31. crypto_des_cbc.cc
  32. crypto_des_cbc.h
  33. crypto_des_cbc_unittest.cc
  34. crypto_interface.h
  35. crypto_provider.cc
  36. crypto_provider.h
  37. crypto_provider_unittest.cc
  38. crypto_rot47.cc
  39. crypto_rot47.h
  40. crypto_rot47_unittest.cc
  41. dbus_adaptor.cc
  42. dbus_adaptor.h
  43. dbus_adaptor_unittest.cc
  44. dbus_control.cc
  45. dbus_control.h
  46. dbus_properties.cc
  47. dbus_properties.h
  48. dbus_properties_proxy.cc
  49. dbus_properties_proxy.h
  50. dbus_properties_proxy_interface.h
  51. dbus_properties_unittest.cc
  52. default_profile.cc
  53. default_profile.h
  54. default_profile_unittest.cc
  55. device.cc
  56. device.h
  57. device_dbus_adaptor.cc
  58. device_dbus_adaptor.h
  59. device_info.cc
  60. device_info.h
  61. device_info_unittest.cc
  62. device_stub.h
  63. device_unittest.cc
  64. dhcp_config.cc
  65. dhcp_config.h
  66. dhcp_config_unittest.cc
  67. dhcp_provider.cc
  68. dhcp_provider.h
  69. dhcp_provider_unittest.cc
  70. dhcp_proxy_interface.h
  71. dhcpcd_proxy.cc
  72. dhcpcd_proxy.h
  73. dns_client.cc
  74. dns_client.h
  75. dns_client_unittest.cc
  76. endpoint.cc
  77. endpoint.h
  78. ephemeral_profile.cc
  79. ephemeral_profile.h
  80. error.cc
  81. error.h
  82. error_unittest.cc
  83. ethernet.cc
  84. ethernet.h
  85. ethernet_service.cc
  86. ethernet_service.h
  87. event_dispatcher.cc
  88. event_dispatcher.h
  89. glib.cc
  90. glib.h
  91. glib_io_input_handler.cc
  92. glib_io_input_handler.h
  93. glib_io_ready_handler.cc
  94. glib_io_ready_handler.h
  95. HACKING
  96. http_proxy.cc
  97. http_proxy.h
  98. http_proxy_unittest.cc
  99. http_url.cc
  100. http_url.h
  101. http_url_unittest.cc
  102. ieee80211.h
  103. io_handler.h
  104. ip_address.cc
  105. ip_address.h
  106. ip_address_unittest.cc
  107. ipconfig.cc
  108. ipconfig.h
  109. ipconfig_dbus_adaptor.cc
  110. ipconfig_dbus_adaptor.h
  111. ipconfig_unittest.cc
  112. key_file_store.cc
  113. key_file_store.h
  114. key_file_store_unittest.cc
  115. key_value_store.cc
  116. key_value_store.h
  117. LICENSE
  118. Makefile
  119. manager.cc
  120. manager.h
  121. manager_dbus_adaptor.cc
  122. manager_dbus_adaptor.h
  123. manager_unittest.cc
  124. metrics.cc
  125. metrics.h
  126. metrics_unittest.cc
  127. mock_adaptors.cc
  128. mock_adaptors.h
  129. mock_ares.cc
  130. mock_ares.h
  131. mock_async_connection.cc
  132. mock_async_connection.h
  133. mock_callback.cc
  134. mock_callback.h
  135. mock_connection.cc
  136. mock_connection.h
  137. mock_control.cc
  138. mock_control.h
  139. mock_dbus_properties_proxy.cc
  140. mock_dbus_properties_proxy.h
  141. mock_device.cc
  142. mock_device.h
  143. mock_device_info.cc
  144. mock_device_info.h
  145. mock_dhcp_config.cc
  146. mock_dhcp_config.h
  147. mock_dhcp_provider.cc
  148. mock_dhcp_provider.h
  149. mock_dhcp_proxy.cc
  150. mock_dhcp_proxy.h
  151. mock_dns_client.cc
  152. mock_dns_client.h
  153. mock_event_dispatcher.cc
  154. mock_event_dispatcher.h
  155. mock_glib.cc
  156. mock_glib.h
  157. mock_ipconfig.cc
  158. mock_ipconfig.h
  159. mock_manager.cc
  160. mock_manager.h
  161. mock_metrics.cc
  162. mock_metrics.h
  163. mock_modem_cdma_proxy.cc
  164. mock_modem_cdma_proxy.h
  165. mock_modem_gsm_card_proxy.cc
  166. mock_modem_gsm_card_proxy.h
  167. mock_modem_gsm_network_proxy.cc
  168. mock_modem_gsm_network_proxy.h
  169. mock_modem_manager_proxy.cc
  170. mock_modem_manager_proxy.h
  171. mock_modem_proxy.cc
  172. mock_modem_proxy.h
  173. mock_modem_simple_proxy.cc
  174. mock_modem_simple_proxy.h
  175. mock_power_manager_proxy.cc
  176. mock_power_manager_proxy.h
  177. mock_profile.cc
  178. mock_profile.h
  179. mock_property_store.cc
  180. mock_property_store.h
  181. mock_resolver.cc
  182. mock_resolver.h
  183. mock_routing_table.cc
  184. mock_routing_table.h
  185. mock_rtnl_handler.cc
  186. mock_rtnl_handler.h
  187. mock_service.cc
  188. mock_service.h
  189. mock_sockets.cc
  190. mock_sockets.h
  191. mock_store.cc
  192. mock_store.h
  193. mock_supplicant_interface_proxy.cc
  194. mock_supplicant_interface_proxy.h
  195. mock_supplicant_process_proxy.cc
  196. mock_supplicant_process_proxy.h
  197. mock_time.cc
  198. mock_time.h
  199. mock_wifi.cc
  200. mock_wifi.h
  201. mock_wifi_service.cc
  202. mock_wifi_service.h
  203. modem.cc
  204. modem.h
  205. modem_cdma_proxy.cc
  206. modem_cdma_proxy.h
  207. modem_cdma_proxy_interface.h
  208. modem_gsm_card_proxy.cc
  209. modem_gsm_card_proxy.h
  210. modem_gsm_card_proxy_interface.h
  211. modem_gsm_network_proxy.cc
  212. modem_gsm_network_proxy.h
  213. modem_gsm_network_proxy_interface.h
  214. modem_info.cc
  215. modem_info.h
  216. modem_info_unittest.cc
  217. modem_manager.cc
  218. modem_manager.h
  219. modem_manager_proxy.cc
  220. modem_manager_proxy.h
  221. modem_manager_proxy_interface.h
  222. modem_manager_unittest.cc
  223. modem_proxy.cc
  224. modem_proxy.h
  225. modem_proxy_interface.h
  226. modem_simple_proxy.cc
  227. modem_simple_proxy.h
  228. modem_simple_proxy_interface.h
  229. modem_unittest.cc
  230. nice_mock_control.cc
  231. nice_mock_control.h
  232. power_manager_proxy.cc
  233. power_manager_proxy.h
  234. power_manager_proxy_interface.h
  235. profile.cc
  236. profile.h
  237. profile_dbus_adaptor.cc
  238. profile_dbus_adaptor.h
  239. profile_unittest.cc
  240. property_accessor.h
  241. property_accessor_unittest.cc
  242. property_iterator.h
  243. property_store.cc
  244. property_store.h
  245. property_store_unittest.cc
  246. property_store_unittest.h
  247. provider_db_unittest.bfd
  248. proxy_factory.cc
  249. proxy_factory.h
  250. refptr_types.h
  251. resolver.cc
  252. resolver.h
  253. resolver_unittest.cc
  254. routing_table.cc
  255. routing_table.h
  256. routing_table_entry.h
  257. routing_table_unittest.cc
  258. rtnl_handler.cc
  259. rtnl_handler.h
  260. rtnl_handler_unittest.cc
  261. rtnl_listener.cc
  262. rtnl_listener.h
  263. rtnl_listener_unittest.cc
  264. rtnl_message.cc
  265. rtnl_message.h
  266. rtnl_message_unittest.cc
  267. service.cc
  268. service.h
  269. service_dbus_adaptor.cc
  270. service_dbus_adaptor.h
  271. service_sorter.h
  272. service_under_test.cc
  273. service_under_test.h
  274. service_unittest.cc
  275. shill.conf
  276. shill_ares.cc
  277. shill_ares.h
  278. shill_config.cc
  279. shill_config.h
  280. shill_daemon.cc
  281. shill_daemon.h
  282. shill_main.cc
  283. shill_test_config.cc
  284. shill_test_config.h
  285. shill_time.cc
  286. shill_time.h
  287. shill_unittest.cc
  288. sockets.cc
  289. sockets.h
  290. store_interface.h
  291. supplicant_interface_proxy.cc
  292. supplicant_interface_proxy.h
  293. supplicant_interface_proxy_interface.h
  294. supplicant_process_proxy.cc
  295. supplicant_process_proxy.h
  296. supplicant_process_proxy_interface.h
  297. technology.cc
  298. technology.h
  299. TESTING
  300. testrunner.cc
  301. wifi.cc
  302. wifi.h
  303. wifi_endpoint.cc
  304. wifi_endpoint.h
  305. wifi_endpoint_unittest.cc
  306. wifi_service.cc
  307. wifi_service.h
  308. wifi_service_unittest.cc
  309. wifi_unittest.cc
  310. wpa_supplicant.cc
  311. wpa_supplicant.h