1515
1616#pragma once
1717
18- #include < cstdint>
18+ #include < stdint.h>
19+
1920#include < string>
2021#include < utility>
2122#include < vector>
@@ -32,7 +33,7 @@ namespace cuttlefish {
3233namespace confui {
3334// When you update this, please update all the utility functions
3435// in conf.cpp: e.g. ToString, etc
35- enum class ConfUiCmd : std:: uint32_t {
36+ enum class ConfUiCmd : uint32_t {
3637 kUnknown = 100 ,
3738 kStart = 111 , // start rendering, send confirmation msg, & wait respond
3839 kStop = 112 , // start rendering, send confirmation msg, & wait respond
@@ -49,7 +50,7 @@ constexpr const ssize_t kMaxMessageLength = packet::kMaxPayloadLength;
4950std::string ToString (const ConfUiCmd& cmd);
5051std::string ToDebugString (const ConfUiCmd& cmd, const bool is_verbose);
5152ConfUiCmd ToCmd (const std::string& cmd_str);
52- ConfUiCmd ToCmd (std:: uint32_t i);
53+ ConfUiCmd ToCmd (uint32_t i);
5354
5455std::string ToString (const teeui::UIOption ui_opt);
5556std::optional<teeui::UIOption> ToUiOption (const std::string&);
@@ -136,8 +137,8 @@ class ConfUiCliResponseMessage : public ConfUiMessage {
136137 public:
137138 ConfUiCliResponseMessage (const std::string& session_id,
138139 const UserResponse::type& response,
139- const std::vector<std:: uint8_t >& sign = {},
140- const std::vector<std:: uint8_t >& msg = {})
140+ const std::vector<uint8_t >& sign = {},
141+ const std::vector<uint8_t >& msg = {})
141142 : ConfUiMessage(session_id),
142143 response_ (response),
143144 sign_(sign),
@@ -152,16 +153,16 @@ class ConfUiCliResponseMessage : public ConfUiMessage {
152153
153154 private:
154155 UserResponse::type response_; // plain format
155- std::vector<std:: uint8_t > sign_; // signed format
156+ std::vector<uint8_t > sign_; // signed format
156157 // second argument to pass via resultCB of promptUserConfirmation
157- std::vector<std:: uint8_t > message_;
158+ std::vector<uint8_t > message_;
158159};
159160
160161class ConfUiStartMessage : public ConfUiMessage {
161162 public:
162163 ConfUiStartMessage (const std::string session_id,
163164 const std::string& prompt_text = " " ,
164- const std::vector<std:: uint8_t >& extra_data = {},
165+ const std::vector<uint8_t >& extra_data = {},
165166 const std::string& locale = " C" ,
166167 const std::vector<teeui::UIOption> ui_opts = {})
167168 : ConfUiMessage(session_id),
@@ -173,14 +174,14 @@ class ConfUiStartMessage : public ConfUiMessage {
173174 std::string ToString () const override ;
174175 ConfUiCmd GetType () const override { return ConfUiCmd::kStart ; }
175176 std::string GetPromptText () const { return prompt_text_; }
176- std::vector<std:: uint8_t > GetExtraData () const { return extra_data_; }
177+ std::vector<uint8_t > GetExtraData () const { return extra_data_; }
177178 std::string GetLocale () const { return locale_; }
178179 std::vector<teeui::UIOption> GetUiOpts () const { return ui_opts_; }
179180 bool SendOver (SharedFD fd) override ;
180181
181182 private:
182183 std::string prompt_text_;
183- std::vector<std:: uint8_t > extra_data_;
184+ std::vector<uint8_t > extra_data_;
184185 std::string locale_;
185186 std::vector<teeui::UIOption> ui_opts_;
186187
0 commit comments