| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "chromeos/audio/audio_device.h" | 5 #include "chromeos/audio/audio_device.h" |
| 6 | 6 |
| 7 #include "base/format_macros.h" | 7 #include "base/format_macros.h" |
| 8 #include "base/strings/string_number_conversions.h" | 8 #include "base/strings/string_number_conversions.h" |
| 9 #include "base/strings/stringprintf.h" | 9 #include "base/strings/stringprintf.h" |
| 10 #include "base/strings/utf_string_conversions.h" | 10 #include "base/strings/utf_string_conversions.h" |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 101 active = node.active; | 101 active = node.active; |
| 102 plugged_time = node.plugged_time; | 102 plugged_time = node.plugged_time; |
| 103 } | 103 } |
| 104 | 104 |
| 105 std::string AudioDevice::ToString() const { | 105 std::string AudioDevice::ToString() const { |
| 106 std::string result; | 106 std::string result; |
| 107 base::StringAppendF(&result, | 107 base::StringAppendF(&result, |
| 108 "is_input = %s ", | 108 "is_input = %s ", |
| 109 is_input ? "true" : "false"); | 109 is_input ? "true" : "false"); |
| 110 base::StringAppendF(&result, | 110 base::StringAppendF(&result, |
| 111 "id = 0x%"PRIx64" ", | 111 "id = 0x%" PRIx64 " ", |
| 112 id); | 112 id); |
| 113 base::StringAppendF(&result, | 113 base::StringAppendF(&result, |
| 114 "display_name = %s ", | 114 "display_name = %s ", |
| 115 display_name.c_str()); | 115 display_name.c_str()); |
| 116 base::StringAppendF(&result, | 116 base::StringAppendF(&result, |
| 117 "type = %s ", | 117 "type = %s ", |
| 118 GetTypeString(type).c_str()); | 118 GetTypeString(type).c_str()); |
| 119 base::StringAppendF(&result, | 119 base::StringAppendF(&result, |
| 120 "active = %s ", | 120 "active = %s ", |
| 121 active ? "true" : "false"); | 121 active ? "true" : "false"); |
| 122 base::StringAppendF(&result, | 122 base::StringAppendF(&result, |
| 123 "plugged_time= %s ", | 123 "plugged_time= %s ", |
| 124 base::Uint64ToString(plugged_time).c_str()); | 124 base::Uint64ToString(plugged_time).c_str()); |
| 125 | 125 |
| 126 return result; | 126 return result; |
| 127 } | 127 } |
| 128 | 128 |
| 129 } // namespace chromeos | 129 } // namespace chromeos |
| OLD | NEW |