Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(83)

Side by Side Diff: chromeos/binder/util.cc

Issue 1540803002: Switch to standard integer types in chromeos/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more includes Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « chromeos/binder/util.h ('k') | chromeos/binder/writable_transaction_data.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « chromeos/binder/util.h ('k') | chromeos/binder/writable_transaction_data.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698