Home
last modified time | relevance | path

Searched refs:BRILLO_EXPORT (Results 1 – 25 of 88) sorted by relevance

1234

/external/libbrillo/brillo/http/
Dhttp_request.h26 BRILLO_EXPORT extern const char kOptions[];
27 BRILLO_EXPORT extern const char kGet[];
28 BRILLO_EXPORT extern const char kHead[];
29 BRILLO_EXPORT extern const char kPost[];
30 BRILLO_EXPORT extern const char kPut[];
31 BRILLO_EXPORT extern const char kPatch[]; // Non-standard HTTP/1.1 verb
32 BRILLO_EXPORT extern const char kDelete[];
33 BRILLO_EXPORT extern const char kTrace[];
34 BRILLO_EXPORT extern const char kConnect[];
35 BRILLO_EXPORT extern const char kCopy[]; // Non-standard HTTP/1.1 verb
[all …]
Dhttp_utils.h57 BRILLO_EXPORT std::unique_ptr<Response> SendRequestAndBlock(
69 BRILLO_EXPORT std::unique_ptr<Response> SendRequestWithNoDataAndBlock(
81 BRILLO_EXPORT RequestID SendRequest(
96 BRILLO_EXPORT RequestID SendRequest(
110 BRILLO_EXPORT RequestID SendRequestWithNoData(
121 BRILLO_EXPORT std::unique_ptr<Response> GetAndBlock(
130 BRILLO_EXPORT RequestID Get(
140 BRILLO_EXPORT std::unique_ptr<Response> HeadAndBlock(
148 BRILLO_EXPORT RequestID Head(
157 BRILLO_EXPORT std::unique_ptr<Response> PostBinaryAndBlock(
[all …]
Dhttp_form_data.h22 BRILLO_EXPORT extern const char kFormData[];
23 BRILLO_EXPORT extern const char kFile[];
33 class BRILLO_EXPORT FormField {
95 class BRILLO_EXPORT TextFormField : public FormField {
117 class BRILLO_EXPORT FileFormField : public FormField {
151 class BRILLO_EXPORT MultiPartFormField : public FormField {
198 class BRILLO_EXPORT FormData final {
/external/libbrillo/brillo/
Dmime_utils.h21 BRILLO_EXPORT extern const char kApplication[]; // application
22 BRILLO_EXPORT extern const char kAudio[]; // audio
23 BRILLO_EXPORT extern const char kImage[]; // image
24 BRILLO_EXPORT extern const char kMessage[]; // message
25 BRILLO_EXPORT extern const char kMultipart[]; // multipart
26 BRILLO_EXPORT extern const char kText[]; // test
27 BRILLO_EXPORT extern const char kVideo[]; // video
32 BRILLO_EXPORT extern const char kCharset[]; // charset=...
37 BRILLO_EXPORT extern const char kJpeg[]; // image/jpeg
38 BRILLO_EXPORT extern const char kPng[]; // image/png
[all …]
Dcryptohome.h17 BRILLO_EXPORT extern const char kGuestUserName[];
21 BRILLO_EXPORT base::FilePath GetUserPathPrefix();
25 BRILLO_EXPORT base::FilePath GetRootPathPrefix();
29 BRILLO_EXPORT base::FilePath GetUserPath(const std::string& username);
34 BRILLO_EXPORT base::FilePath GetHashedUserPath(
39 BRILLO_EXPORT base::FilePath GetRootPath(const std::string& username);
42 BRILLO_EXPORT base::FilePath GetDaemonPath(const std::string& username,
47 BRILLO_EXPORT base::FilePath GetDaemonPathForHiddenUserHome(
52 BRILLO_EXPORT bool IsSanitizedUserName(const std::string& sanitized);
56 BRILLO_EXPORT std::string SanitizeUserName(const std::string& username);
[all …]
Dtype_name_undecorate.h41 extern template BRILLO_EXPORT const char* GetTypeTag<int8_t>();
42 extern template BRILLO_EXPORT const char* GetTypeTag<uint8_t>();
43 extern template BRILLO_EXPORT const char* GetTypeTag<int16_t>();
44 extern template BRILLO_EXPORT const char* GetTypeTag<uint16_t>();
45 extern template BRILLO_EXPORT const char* GetTypeTag<int32_t>();
46 extern template BRILLO_EXPORT const char* GetTypeTag<uint32_t>();
47 extern template BRILLO_EXPORT const char* GetTypeTag<int64_t>();
48 extern template BRILLO_EXPORT const char* GetTypeTag<uint64_t>();
49 extern template BRILLO_EXPORT const char* GetTypeTag<bool>();
50 extern template BRILLO_EXPORT const char* GetTypeTag<double>();
[all …]
Dfile_utils.h26 BRILLO_EXPORT bool TouchFile(const base::FilePath& path,
35 BRILLO_EXPORT bool TouchFile(const base::FilePath& path);
48 BRILLO_EXPORT base::ScopedFD OpenSafely(const base::FilePath& path,
64 BRILLO_EXPORT base::ScopedFD OpenAtSafely(int parent_fd,
79 BRILLO_EXPORT base::ScopedFD OpenFifoSafely(const base::FilePath& path,
90 BRILLO_EXPORT base::ScopedFD MkdirRecursively(const base::FilePath& full_path,
101 BRILLO_EXPORT bool WriteStringToFile(const base::FilePath& path,
103 BRILLO_EXPORT bool WriteToFile(const base::FilePath& path,
107 BRILLO_EXPORT bool WriteBlobToFile(const base::FilePath& path, const T& blob) { in WriteBlobToFile()
119 BRILLO_EXPORT bool SyncFileOrDirectory(const base::FilePath& path,
[all …]
Durl_utils.h22 BRILLO_EXPORT std::string Combine(
25 BRILLO_EXPORT std::string CombineMultiple(
33 BRILLO_EXPORT std::string TrimOffQueryString(std::string* url);
44 BRILLO_EXPORT std::string GetQueryString(const std::string& url,
48 BRILLO_EXPORT data_encoding::WebParamList GetQueryStringParameters(
52 BRILLO_EXPORT std::string GetQueryStringValue(
55 BRILLO_EXPORT std::string GetQueryStringValue(
65 BRILLO_EXPORT std::string RemoveQueryString(
70 BRILLO_EXPORT std::string AppendQueryParam(
75 BRILLO_EXPORT std::string AppendQueryParams(
[all …]
Dsyslog_logging.h27 BRILLO_EXPORT void InitLog(int init_flags);
29 BRILLO_EXPORT int GetLogFlags();
31 BRILLO_EXPORT void SetLogFlags(int log_flags);
37 BRILLO_EXPORT void OpenLog(const char* ident, bool log_pid);
42 BRILLO_EXPORT void LogToString(bool enabled);
44 BRILLO_EXPORT std::string GetLog();
46 BRILLO_EXPORT void ClearLog();
49 BRILLO_EXPORT bool FindLog(const char* string);
Dsecure_blob.h24 BRILLO_EXPORT std::string BlobToString(const Blob& blob);
25 BRILLO_EXPORT Blob BlobFromString(const std::string& bytes);
28 BRILLO_EXPORT Blob CombineBlobs(const std::initializer_list<Blob>& blobs);
32 class BRILLO_EXPORT SecureBlob : public Blob {
68 BRILLO_EXPORT BRILLO_DISABLE_ASAN void* SecureMemset(void* v, int c, size_t n);
73 BRILLO_EXPORT int SecureMemcmp(const void* s1, const void* s2, size_t n);
80 BRILLO_EXPORT SecureBlob SecureBlobToSecureHex(const SecureBlob& blob);
81 BRILLO_EXPORT SecureBlob SecureHexToSecureBlob(const SecureBlob& hex);
Ddata_encoding.h23 BRILLO_EXPORT std::string UrlEncode(const char* data, bool encodeSpaceAsPlus);
31 BRILLO_EXPORT std::string UrlDecode(const char* data);
35 BRILLO_EXPORT std::string WebParamsEncode(const WebParamList& params,
45 BRILLO_EXPORT WebParamList WebParamsDecode(const std::string& data);
48 BRILLO_EXPORT std::string Base64Encode(const void* data, size_t size);
52 BRILLO_EXPORT std::string Base64EncodeWrapLines(const void* data, size_t size);
55 BRILLO_EXPORT bool Base64Decode(const std::string& input, brillo::Blob* output);
Dflag_helper.h90 class BRILLO_EXPORT BoolFlag final : public Flag {
107 class BRILLO_EXPORT Int32Flag final : public Flag {
122 class BRILLO_EXPORT UInt32Flag final : public Flag {
137 class BRILLO_EXPORT Int64Flag final : public Flag {
152 class BRILLO_EXPORT UInt64Flag final : public Flag {
167 class BRILLO_EXPORT DoubleFlag final : public Flag {
182 class BRILLO_EXPORT StringFlag final : public Flag {
237 class BRILLO_EXPORT FlagHelper final {
Dvalue_conversion.h61 BRILLO_EXPORT bool FromValue(const base::Value& in_value,
63 BRILLO_EXPORT bool FromValue(const base::Value& in_value,
107 BRILLO_EXPORT std::unique_ptr<base::Value> ToValue(int value);
108 BRILLO_EXPORT std::unique_ptr<base::Value> ToValue(bool value);
109 BRILLO_EXPORT std::unique_ptr<base::Value> ToValue(double value);
110 BRILLO_EXPORT std::unique_ptr<base::Value> ToValue(const std::string& value);
113 BRILLO_EXPORT std::unique_ptr<base::Value> ToValue(const char* value);
Dproto_file_io.h18 BRILLO_EXPORT bool ReadTextProtobuf(const base::FilePath& proto_file,
21 BRILLO_EXPORT bool ReadTextProtobuf(int fd,
24 BRILLO_EXPORT bool WriteTextProtobuf(int fd,
/external/libbrillo/brillo/files/
Dsafe_fd.h67 BRILLO_EXPORT static bool IsError(SafeFD::Error err);
72 BRILLO_EXPORT static constexpr size_t kDefaultMaxRead = 100 << 20;
73 BRILLO_EXPORT static constexpr size_t kDefaultMaxPathDepth = 256;
75 BRILLO_EXPORT static constexpr size_t kDefaultFilePermissions = 0640;
77 BRILLO_EXPORT static constexpr size_t kDefaultDirPermissions = 0750;
80 BRILLO_EXPORT static SafeFDResult Root() WARN_UNUSED_RESULT;
81 BRILLO_EXPORT static void SetRootPathForTesting(const char* new_root_path);
84 BRILLO_EXPORT SafeFD() = default;
87 BRILLO_EXPORT SafeFD(SafeFD&&) = default;
88 BRILLO_EXPORT SafeFD& operator=(SafeFD&&) = default;
[all …]
Dfile_util.h20 BRILLO_EXPORT base::FilePath GetFDPath(int fd);
33 BRILLO_EXPORT SafeFD::SafeFDResult OpenOrRemakeDir(
52 BRILLO_EXPORT SafeFD::SafeFDResult OpenOrRemakeFile(
/external/libbrillo/brillo/errors/
Derror_codes.h18 BRILLO_EXPORT extern const char kDomain[];
22 BRILLO_EXPORT extern const char kDomain[];
23 BRILLO_EXPORT extern const char kParseError[];
24 BRILLO_EXPORT extern const char kObjectExpected[];
28 BRILLO_EXPORT extern const char kDomain[];
32 BRILLO_EXPORT extern const char kDomain[];
36 BRILLO_EXPORT void AddSystemError(ErrorPtr* error,
/external/libbrillo/brillo/streams/
Dstream_errors.h15 BRILLO_EXPORT extern const char kDomain[];
17 BRILLO_EXPORT extern const char kStreamClosed[];
18 BRILLO_EXPORT extern const char kOperationNotSupported[];
19 BRILLO_EXPORT extern const char kPartialData[];
20 BRILLO_EXPORT extern const char kInvalidParameter[];
21 BRILLO_EXPORT extern const char kTimeout[];
Dstream_utils.h16 BRILLO_EXPORT bool ErrorStreamClosed(
20 BRILLO_EXPORT bool ErrorOperationNotSupported(
24 BRILLO_EXPORT bool ErrorReadPastEndOfStream(
28 BRILLO_EXPORT bool ErrorOperationTimeout(
39 BRILLO_EXPORT bool CheckInt64Overflow(
52 BRILLO_EXPORT bool CalculateStreamPosition(
92 BRILLO_EXPORT void CopyData(StreamPtr in_stream,
104 BRILLO_EXPORT void CopyData(StreamPtr in_stream,
Dmemory_containers.h28 class BRILLO_EXPORT DataContainerInterface {
69 class BRILLO_EXPORT ContiguousBufferBase : public DataContainerInterface {
105 class BRILLO_EXPORT ContiguousReadOnlyBufferBase : public ContiguousBufferBase {
126 class BRILLO_EXPORT ReadOnlyBuffer : public ContiguousReadOnlyBufferBase {
232 class BRILLO_EXPORT ByteBuffer : public VectorPtr<uint8_t> {
242 class BRILLO_EXPORT StringPtr : public ContiguousBufferBase {
260 class BRILLO_EXPORT ReadOnlyStringRef : public ContiguousReadOnlyBufferBase {
275 class BRILLO_EXPORT ReadOnlyStringCopy : public ReadOnlyStringRef {
/external/libbrillo/brillo/dbus/
Ddata_serialization.h190 BRILLO_EXPORT void AppendValueToWriter(::dbus::MessageWriter* writer,
192 BRILLO_EXPORT bool PopValueFromReader(::dbus::MessageReader* reader,
209 BRILLO_EXPORT void AppendValueToWriter(::dbus::MessageWriter* writer,
211 BRILLO_EXPORT bool PopValueFromReader(::dbus::MessageReader* reader,
226 BRILLO_EXPORT void AppendValueToWriter(::dbus::MessageWriter* writer,
228 BRILLO_EXPORT bool PopValueFromReader(::dbus::MessageReader* reader,
243 BRILLO_EXPORT void AppendValueToWriter(::dbus::MessageWriter* writer,
245 BRILLO_EXPORT bool PopValueFromReader(::dbus::MessageReader* reader,
262 BRILLO_EXPORT void AppendValueToWriter(::dbus::MessageWriter* writer,
264 BRILLO_EXPORT bool PopValueFromReader(::dbus::MessageReader* reader,
[all …]
Dutils.h21 BRILLO_EXPORT std::unique_ptr<::dbus::Response> CreateDBusErrorResponse(
31 BRILLO_EXPORT std::unique_ptr<::dbus::Response> GetDBusError(
36 BRILLO_EXPORT void AddDBusError(brillo::ErrorPtr* error,
/external/libbrillo/brillo/strings/
Dstring_utils.h22 BRILLO_EXPORT std::vector<std::string> Split(const std::string& str,
40 BRILLO_EXPORT std::pair<std::string, std::string> SplitAtFirst(
55 BRILLO_EXPORT bool SplitAtFirst(const std::string& str,
116 BRILLO_EXPORT std::string ToString(double value);
118 BRILLO_EXPORT std::string ToString(bool value);
123 BRILLO_EXPORT std::string GetBytesAsString(const std::vector<uint8_t>& buf);
126 BRILLO_EXPORT std::vector<uint8_t> GetStringAsBytes(const std::string& str);
/external/libbrillo/policy/
Dresilient_policy_util.h19 BRILLO_EXPORT std::map<int, base::FilePath> GetSortedResilientPolicyFilePaths(
25 BRILLO_EXPORT base::FilePath GetResilientPolicyFilePathForIndex(
33 BRILLO_EXPORT bool ParseResilientPolicyFilePath(
/external/libbrillo/brillo/namespaces/
Dmount_namespace.h16 class BRILLO_EXPORT MountNamespaceInterface {
26 class BRILLO_EXPORT UnownedMountNamespace : public MountNamespaceInterface {
43 class BRILLO_EXPORT MountNamespace : public MountNamespaceInterface {

1234