Home
last modified time | relevance | path

Searched refs:Value (Results 1 – 25 of 100) sorted by relevance

1234

/device/google/cuttlefish/host/libs/config/
Dcustom_actions.cpp50 const Json::Value& dictionary) { in GetCustomActionInstanceIDFromJson()
57 const Json::Value& dictionary) { in GetCustomShellActionConfigFromJson()
60 Json::Value button_entry = dictionary[kCustomActionButton]; in GetCustomShellActionConfigFromJson()
69 const Json::Value& dictionary) { in GetCustomActionServerConfigFromJson()
72 for (const Json::Value& button_entry : dictionary[kCustomActionButtons]) { in GetCustomActionServerConfigFromJson()
83 const Json::Value& dictionary) { in GetCustomDeviceStateActionConfigFromJson()
87 Json::Value button_entry = dictionary[kCustomActionButton]; in GetCustomDeviceStateActionConfigFromJson()
91 for (const Json::Value& device_state_entry : in GetCustomDeviceStateActionConfigFromJson()
109 Json::Value ToJson(const CustomActionInstanceID& custom_action) { in ToJson()
110 Json::Value json; in ToJson()
[all …]
Dcuttlefish_config.cpp88 const Json::Value& json_fragments = (*dictionary_)[kFragments]; in LoadFragment()
96 Json::Value& json_fragments = (*dictionary_)[kFragments]; in SaveFragment()
162 Json::Value hals_json_obj(Json::arrayValue); in set_secure_hals()
241 Json::Value json(Json::objectValue); in set_host_tools_version()
343 Json::Value args_json_obj(Json::arrayValue); in set_casimir_args()
353 for (const Json::Value& arg : (*dictionary_)[kCasimirArgs]) { in casimir_args()
410 Json::Value args_json_obj(Json::arrayValue); in set_netsim_args()
418 for (const Json::Value& arg : (*dictionary_)[kNetsimArgs]) { in netsim_args()
472 Json::Value args_json_obj(Json::arrayValue); in set_extra_kernel_cmdline()
480 for (const Json::Value& arg : (*dictionary_)[kExtraKernelCmdline]) { in extra_kernel_cmdline()
[all …]
Dfetcher_config.cpp112 FetcherConfig::FetcherConfig() : dictionary_(new Json::Value()) { in FetcherConfig()
160 Json::Value flags_json(Json::arrayValue); in RecordFlags()
162 Json::Value flag_json; in RecordFlags()
178 CvdFile JsonToCvdFile(const std::string& file_path, const Json::Value& json) { in JsonToCvdFile()
195 Json::Value CvdFileToJson(const CvdFile& cvd_file) { in CvdFileToJson()
196 Json::Value json; in CvdFileToJson()
207 Json::Value files_json(Json::objectValue); in add_cvd_file()
/device/google/cuttlefish/host/frontend/webrtc_operator/
Dclient_handler.cpp56 void ClientWSHandler::SendDeviceMessage(const Json::Value& device_message) { in SendDeviceMessage()
57 Json::Value message; in SendDeviceMessage()
64 const Json::Value& message) { in handleMessage()
74 void ClientWSHandler::handleConnectionRequest(const Json::Value& message) { in handleConnectionRequest()
103 Json::Value device_info_reply; in handleConnectionRequest()
111 void ClientWSHandler::handleForward(const Json::Value& message) { in handleForward()
149 void SendDeviceMessage(const Json::Value& message) override { in SendDeviceMessage()
160 std::vector<Json::Value> PollMessages() { in PollMessages()
161 std::vector<Json::Value> ret; in PollMessages()
180 std::vector<Json::Value> messages_;
[all …]
Dclient_handler.h34 virtual void SendDeviceMessage(const Json::Value& message) = 0;
44 void SendDeviceMessage(const Json::Value& message) override;
50 const Json::Value& message) override;
53 void handleConnectionRequest(const Json::Value& message);
54 void handleForward(const Json::Value& message);
96 const Json::Value&) = 0;
100 void Reply(const Json::Value& json);
114 const Json::Value&) override;
125 const Json::Value&) override;
134 const Json::Value&) override;
Ddevice_handler.h39 Json::Value device_info() const { return device_info_; } in device_info()
42 void SendClientMessage(size_t client_id, const Json::Value& message);
49 const Json::Value& message) override;
52 void HandleRegistrationRequest(const Json::Value& message);
53 void HandleForward(const Json::Value& message);
56 Json::Value device_info_;
Dserver_config.cpp31 Json::Value ServerConfig::ToJson() const { in ToJson()
32 Json::Value ice_servers(Json::ValueType::arrayValue); in ToJson()
34 Json::Value server; in ToJson()
35 Json::Value urls(Json::ValueType::arrayValue); in ToJson()
40 Json::Value server_config; in ToJson()
Ddevice_handler.cpp42 const Json::Value& message) { in handleMessage()
52 void DeviceHandler::HandleRegistrationRequest(const Json::Value& message) { in HandleRegistrationRequest()
78 void DeviceHandler::HandleForward(const Json::Value& message) { in HandleForward()
107 const Json::Value& client_message) { in SendClientMessage()
108 Json::Value msg; in SendClientMessage()
116 Json::Value msg; in SendClientDisconnectMessage()
/device/google/cuttlefish/common/libs/utils/
Djson.h29 Result<Json::Value> ParseJson(std::string_view input);
31 Result<Json::Value> LoadFromFile(SharedFD json_fd);
32 Result<Json::Value> LoadFromFile(const std::string& path_to_file);
35 T As(const Json::Value& v);
38 inline int As(const Json::Value& v) { in As()
43 inline std::string As(const Json::Value& v) { in As()
48 inline bool As(const Json::Value& v) { in As()
53 Result<T> GetValue(const Json::Value& root, in GetValue()
55 const Json::Value* traversal = &root; in GetValue()
66 const Json::Value& array, const std::vector<std::string>& selectors) { in GetArrayValues()
[all …]
Djson.cpp26 Result<Json::Value> ParseJson(std::string_view input) { in ParseJson()
27 Json::Value root; in ParseJson()
37 Result<Json::Value> LoadFromFile(SharedFD json_fd) { in LoadFromFile()
43 Json::Value json_value = CF_EXPECTF( in LoadFromFile()
48 Result<Json::Value> LoadFromFile(const std::string& path_to_file) { in LoadFromFile()
/device/google/cuttlefish/host/frontend/webrtc/libcommon/
Dutils.cpp29 Result<void> ValidateField(const Json::Value& obj, const std::string& type, in ValidateField()
52 Json::Value ToArray(const std::vector<T>& vec, in ToArray()
53 std::function<Json::Value(const T&)> to_json) { in ToArray()
54 Json::Value arr(Json::ValueType::arrayValue); in ToArray()
64 const Json::Value& obj, const std::string& type, in ValidateJsonObject()
79 ParseSessionDescription(const std::string& type, const Json::Value& message, in ParseSessionDescription()
91 const std::string& type, const Json::Value& message) { in ParseIceCandidate()
113 const Json::Value& message) { in ParseError()
120 ParseIceServersMessage(const Json::Value& message) { in ParseIceServersMessage()
152 Json::Value GenerateIceServersMessage( in GenerateIceServersMessage()
[all …]
Dutils.h35 const Json::Value& obj, const std::string& type,
41 ParseSessionDescription(const std::string& type, const Json::Value& message,
46 const std::string& type, const Json::Value& message);
50 const Json::Value& message);
56 ParseIceServersMessage(const Json::Value& message);
59 Json::Value GenerateIceServersMessage(
/device/google/cuttlefish/host/commands/modem_simulator/
Dstk_service.cpp82 unsol_command += text ? text->Value() : ""; in HandleReportStkServiceIsRunning()
132 if (menu_id_attr && menu_id_attr->Value() == menu_id) { in HandleSendEnvelope()
144 std::string cmd_str = select_item_cmd->Value(); in HandleSendEnvelope()
152 std::string text_value = text ? text->Value() : ""; in HandleSendEnvelope()
209 if (menu_id_attr && menu_id_attr->Value() == *iter) { in GetCurrentSelectItem()
210 auto menu_id_str = menu_id_attr->Value(); in GetCurrentSelectItem()
254 unsol_command += text->Value(); in OnUnsolicitedCommandForTR()
265 unsol_command += text->Value(); in OnUnsolicitedCommandForTR()
274 if (attr && attr->Value() == menu_id) { in OnUnsolicitedCommandForTR()
275 std::string attr_value = attr->Value(); in OnUnsolicitedCommandForTR()
[all …]
/device/google/cuttlefish/host/frontend/webrtc/libdevice/
Dstreamer.cpp80 bool ParseMessage(const uint8_t* data, size_t length, Json::Value* msg_out) { in ParseMessage()
147 void SendMessageToClient(int client_id, const Json::Value& msg);
157 void HandleConfigMessage(const Json::Value& msg);
158 void HandleClientMessage(const Json::Value& server_message);
406 Json::Value register_obj; in OnOpen()
415 Json::Value device_info; in OnOpen()
416 Json::Value displays(Json::ValueType::arrayValue); in OnOpen()
420 Json::Value display; in OnOpen()
432 Json::Value touchpads(Json::ValueType::arrayValue); in OnOpen()
434 Json::Value touchpad; in OnOpen()
[all …]
Dconnection_observer.h50 Json::Value id, Json::Value slot,
51 Json::Value x, Json::Value y,
63 std::function<bool(const Json::Value)> control_message_sender) = 0;
75 virtual void OnCameraControlMsg(const Json::Value& msg) = 0;
76 virtual void OnDisplayControlMsg(const Json::Value& msg) = 0;
86 std::function<bool(const Json::Value&)> lights_message_sender) = 0;
/device/google/cuttlefish/host/libs/web/http_client/
Dhttp_client.cc147 Result<HttpResponse<Json::Value>> PostToJson( in PostToJson()
153 Result<HttpResponse<Json::Value>> PostToJson( in PostToJson()
154 const std::string& url, const Json::Value& data_to_write, in PostToJson()
184 Result<HttpResponse<Json::Value>> DownloadToJson( in DownloadToJson()
189 Result<HttpResponse<Json::Value>> DeleteToJson( in DeleteToJson()
223 Result<HttpResponse<Json::Value>> DownloadToJson( in DownloadToJson()
231 Json::Value error_json; in DownloadToJson()
235 return HttpResponse<Json::Value>{error_json, response.http_code}; in DownloadToJson()
237 return HttpResponse<Json::Value>{*result, response.http_code}; in DownloadToJson()
341 Result<HttpResponse<Json::Value>> PostToJson( in PostToJson()
[all …]
Dhttp_client.h82 virtual Result<HttpResponse<Json::Value>> PostToJson(
85 virtual Result<HttpResponse<Json::Value>> PostToJson(
86 const std::string& url, const Json::Value& data,
88 virtual Result<HttpResponse<Json::Value>> DownloadToJson(
90 virtual Result<HttpResponse<Json::Value>> DeleteToJson(
/device/google/cuttlefish/host/commands/assemble_cvd/
Dalloc.cc64 Json::Value resource_config; in AllocateNetworkInterfaces()
65 Json::Value request_list; in AllocateNetworkInterfaces()
66 Json::Value req; in AllocateNetworkInterfaces()
102 Json::Value resp_list = resp["response_list"]; in AllocateNetworkInterfaces()
103 Json::Value mtap_resp; in AllocateNetworkInterfaces()
104 Json::Value wtap_resp; in AllocateNetworkInterfaces()
105 Json::Value wifiap_resp; in AllocateNetworkInterfaces()
106 Json::Value etap_resp; in AllocateNetworkInterfaces()
107 for (Json::Value::ArrayIndex i = 0; i != resp_list.size(); ++i) { in AllocateNetworkInterfaces()
/device/google/cuttlefish/host/libs/allocd/test/
Dclient.cpp53 Json::Value req; in main()
69 Json::Value config; in main()
70 Json::Value request_list; in main()
73 Json::Value req; in main()
102 Json::Value req; in main()
129 Json::Value req; in main()
151 Json::Value req; in main()
/device/google/cuttlefish/host/frontend/webrtc/
Dkernel_log_events_handler.cpp74 Json::Value message; in ReadLoop()
79 Json::Value message; in ReadLoop()
84 Json::Value message; in ReadLoop()
90 Json::Value message; in ReadLoop()
100 std::function<void(const Json::Value&)> subscriber) { in AddSubscriber()
116 void KernelLogEventsHandler::DeliverEvent(const Json::Value& event) { in DeliverEvent()
Dconnection_observer.cpp88 Json::Value id, Json::Value slot, in OnMultiTouchEvent()
89 Json::Value x, Json::Value y, bool down, in OnMultiTouchEvent()
128 std::function<bool(const Json::Value)> control_message_sender) override { in OnControlChannelOpen()
231 std::function<bool(const Json::Value &)> lights_message_sender) override { in OnLightsChannelOpen()
290 void OnCameraControlMsg(const Json::Value &msg) override { in OnCameraControlMsg()
299 void OnDisplayControlMsg(const Json::Value &msg) override { in OnDisplayControlMsg()
/device/google/cuttlefish/host/commands/secure_env/
Djson_serializable.cpp33 JsonSerializable(Json::Value& json);
41 Json::Value& json_;
44 JsonSerializable::JsonSerializable(Json::Value& json) : json_(json) {} in JsonSerializable()
88 Json::Value json) { in WriteProtectedJsonToFile()
118 Json::Value ReadProtectedJsonFromFile( in ReadProtectedJsonFromFile()
139 Json::Value json; in ReadProtectedJsonFromFile()
Dgatekeeper_storage.h37 virtual bool Allocate(const Json::Value& key, uint16_t size) = 0;
38 virtual bool HasKey(const Json::Value& key) const = 0;
40 virtual std::unique_ptr<TPM2B_MAX_NV_BUFFER> Read(const Json::Value& key)
42 virtual bool Write(const Json::Value& key, const TPM2B_MAX_NV_BUFFER& data)
/device/generic/goldfish-opengl/system/hwc3/
DLruCache.h20 template <typename Key, typename Value>
25 Value* get(const Key& key) { in get()
37 void set(const Key& key, Value&& value) { in set()
51 std::forward<Value>(value), in set()
74 Value value;
/device/google/cuttlefish/host/commands/openwrt_control_server/
Dmain.cpp134 Json::Value LuciRpcData(const std::string& method, in LuciRpcData()
136 Json::Value data; in LuciRpcData()
138 Json::Value params_json_obj(Json::arrayValue); in LuciRpcData()
146 Json::Value LuciRpcData(int id, const std::string& method, in LuciRpcData()
148 Json::Value data = LuciRpcData(method, params); in LuciRpcData()
170 Result<Json::Value> RequestLuciRpc(const std::string& subpath, in RequestLuciRpc()

1234