OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/binder/util.h" | 5 #include "chromeos/binder/util.h" |
6 | 6 |
7 #include <linux/android/binder.h> | 7 #include <linux/android/binder.h> |
| 8 #include <stdint.h> |
8 | 9 |
9 #include "base/logging.h" | 10 #include "base/logging.h" |
10 | 11 |
11 namespace binder { | 12 namespace binder { |
12 | 13 |
13 const char* CommandToString(uint32 command) { | 14 const char* CommandToString(uint32_t command) { |
14 switch (command) { | 15 switch (command) { |
15 case BR_ERROR: | 16 case BR_ERROR: |
16 return "BR_ERROR"; | 17 return "BR_ERROR"; |
17 case BR_OK: | 18 case BR_OK: |
18 return "BR_OK"; | 19 return "BR_OK"; |
19 case BR_TRANSACTION: | 20 case BR_TRANSACTION: |
20 return "BR_TRANSACTION"; | 21 return "BR_TRANSACTION"; |
21 case BR_REPLY: | 22 case BR_REPLY: |
22 return "BR_REPLY"; | 23 return "BR_REPLY"; |
23 case BR_ACQUIRE_RESULT: | 24 case BR_ACQUIRE_RESULT: |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
81 case BC_CLEAR_DEATH_NOTIFICATION: | 82 case BC_CLEAR_DEATH_NOTIFICATION: |
82 return "BC_CLEAR_DEATH_NOTIFICATION"; | 83 return "BC_CLEAR_DEATH_NOTIFICATION"; |
83 case BC_DEAD_BINDER_DONE: | 84 case BC_DEAD_BINDER_DONE: |
84 return "BC_DEAD_BINDER_DONE"; | 85 return "BC_DEAD_BINDER_DONE"; |
85 } | 86 } |
86 LOG(ERROR) << "Unknown command: " << command; | 87 LOG(ERROR) << "Unknown command: " << command; |
87 return "UNKNOWN"; | 88 return "UNKNOWN"; |
88 } | 89 } |
89 | 90 |
90 } // namespace binder | 91 } // namespace binder |
OLD | NEW |