/foundation/communication/netmanager_base/services/netmanagernative/bpf/include/netfirewall/ |
H A D | netfirewall_match.h | 49 * @brief swap tuple ports at egress direction
51 * @param tuple struct match_tuple
53 static __always_inline void swap_tuple_ports(struct match_tuple *tuple)
in swap_tuple_ports() argument 55 __be16 tmp = tuple->sport;
in swap_tuple_ports() 56 tuple->sport = tuple->dport;
in swap_tuple_ports() 57 tuple->dport = tmp;
in swap_tuple_ports() 61 * @brief swap tuple addrs at egress direction
63 * @param tuple struct match_tuple
65 static __always_inline void swap_tuple_addrs(struct match_tuple *tuple)
in swap_tuple_addrs() argument 86 get_match_tuple(struct __sk_buff *skb, struct match_tuple *tuple, enum stream_dir dir) get_match_tuple() argument 147 match_addrs(struct match_tuple *tuple, struct bitmap *key) match_addrs() argument 209 match_ports(struct match_tuple *tuple, struct bitmap *key) match_ports() argument 240 match_protocol(struct match_tuple *tuple, struct bitmap *key) match_protocol() argument 266 match_appuid(struct match_tuple *tuple, struct bitmap *key) match_appuid() argument 292 match_uid(struct match_tuple *tuple, struct bitmap *key) match_uid() argument 318 match_action_key(struct match_tuple *tuple, struct bitmap *key) match_action_key() argument 350 MatchDomain(const struct match_tuple *tuple) MatchDomain() argument 379 match_action(struct match_tuple *tuple, struct bitmap *key) match_action() argument [all...] |
H A D | netfirewall.h | 31 * @param tuple match tuple of skb meta data 36 static __always_inline int send_sock_tcp_reset(struct match_tuple *tuple, struct __sk_buff *skb, enum stream_dir dir) in send_sock_tcp_reset() argument 38 if (!skb || !tuple) { in send_sock_tcp_reset() 41 if (tuple->protocol == IPPROTO_TCP) { in send_sock_tcp_reset() 51 * @brief Get the packet rst on tuple 53 * @param tuple struct match_tuple 56 static __always_inline bool get_packet_rst_flag(struct match_tuple *tuple) in get_packet_rst_flag() argument 58 if (!tuple) { in get_packet_rst_flag() 62 if (tuple in get_packet_rst_flag() 106 struct match_tuple tuple = { 0 }; netfirewall_policy_ingress() local 146 MatchDnsQuery(const struct match_tuple *tuple) MatchDnsQuery() argument 165 struct match_tuple tuple = { 0 }; netfirewall_policy_egress() local [all...] |
H A D | netfirewall_event.h | 47 memcpy(&(e->tuple), data, len);
in output_to_user() 60 * @param tuple struct match_tuple
62 static __always_inline void log_intercept(struct match_tuple *tuple)
in log_intercept() argument 64 if (!tuple) {
in log_intercept() 69 .dir = tuple->dir,
in log_intercept() 70 .family = tuple->family,
in log_intercept() 71 .protocol = tuple->protocol,
in log_intercept() 72 .sport = tuple->sport,
in log_intercept() 73 .dport = tuple->dport,
in log_intercept() 74 .appuid = tuple in log_intercept() 93 log_tuple(struct match_tuple *tuple) log_tuple() argument [all...] |
/foundation/bundlemanager/bundle_framework/interfaces/kits/js/zip/napi/common/ |
H A D | common_func.h | 52 static std::tuple<bool, int64_t, void *, size_t> GetAdler32Arg(napi_env env, const NapiFuncArg &funcArg); 53 static std::tuple<bool, unsigned long, unsigned long, int64_t> GetAdler32CombineArg( 55 static std::tuple<bool, int64_t, void *, size_t> GetCrc64Arg(napi_env env, const NapiFuncArg &funcArg); 56 static std::tuple<bool, z_stream, HasZStreamMember> GetZstreamArg(napi_env env, napi_value zstream); 57 static std::tuple<bool, z_stream, int32_t> GetInflateInitArg(napi_env env, const NapiFuncArg &funcArg); 58 static std::tuple<bool, z_stream, int32_t> GetDeflateInitArg(napi_env env, const NapiFuncArg &funcArg); 59 static std::tuple<bool, z_stream, int32_t, int32_t, int32_t, int32_t, int32_t> GetDeflateInit2Arg( 61 static std::tuple<bool, int32_t> GetDeflateArg(napi_env env, const NapiFuncArg &funcArg); 62 static std::tuple<bool, void *, size_t, void *, int64_t> GetCompressArg(napi_env env, const NapiFuncArg &funcArg); 63 static std::tuple<boo [all...] |
H A D | napi_value.h | 21 #include <tuple> 46 std::tuple<bool, std::unique_ptr<char[]>, size_t> ToUTF8String() const; 47 std::tuple<bool, std::unique_ptr<char[]>, size_t> ToUTF8String(std::string_view defaultValue) const; 48 std::tuple<bool, std::unique_ptr<char[]>, size_t> ToUTF16String() const; 49 std::tuple<bool, void *> ToPointer() const; 50 std::tuple<bool, bool> ToBool() const; 51 std::tuple<bool, bool> ToBool(bool defaultValue) const; 52 std::tuple<bool, int32_t> ToInt32() const; 53 std::tuple<bool, int32_t> ToInt32(int32_t defaultValue) const; 54 std::tuple<boo [all...] |
/foundation/graphic/graphic_2d/interfaces/kits/napi/graphic/webgl/common/napi/ |
H A D | n_val.h | 54 std::tuple<bool, std::unique_ptr<char[]>, size_t> ToUTF8String() const; 56 std::tuple<bool, std::unique_ptr<char[]>, size_t> ToUTF16String() const; 58 std::tuple<bool, void *> ToPointer() const; 60 std::tuple<bool, bool> ToBool() const; 62 std::tuple<bool, double> ToDouble() const; 64 std::tuple<bool, GLfloat> ToFloat() const; 66 std::tuple<bool, int32_t> ToInt32() const; 68 std::tuple<bool, uint32_t> ToUint32() const; 70 std::tuple<bool, int64_t> ToInt64() const; 72 std::tuple<boo [all...] |
/foundation/filemanagement/file_api/interfaces/kits/js/src/common/napi/ |
H A D | n_val.h | 43 std::tuple<bool, std::unique_ptr<char[]>, size_t> ToUTF8String() const; 44 std::tuple<bool, std::unique_ptr<char[]>, size_t> ToUTF8String(std::string_view defaultValue) const; 45 std::tuple<bool, std::unique_ptr<char[]>, size_t> ToUTF16String() const; 46 std::tuple<bool, std::unique_ptr<char[]>, size_t> ToUTF8StringPath() const; 47 std::tuple<bool, void *> ToPointer() const; 48 std::tuple<bool, bool> ToBool() const; 49 std::tuple<bool, bool> ToBool(bool defaultValue) const; 50 std::tuple<bool, int32_t> ToInt32() const; 51 std::tuple<bool, int32_t> ToInt32(int32_t defaultValue) const; 52 std::tuple<boo [all...] |
/foundation/multimedia/media_foundation/engine/scene/player/internal/ |
H A D | state.h | 22 #include <tuple> 75 virtual std::tuple<ErrorCode, Action> Enter(Intent intent); 77 std::tuple<ErrorCode, Action> Execute(Intent intent, const Plugin::Any& param); 80 virtual std::tuple<ErrorCode, Action> SetSource(const Plugin::Any& param); 81 virtual std::tuple<ErrorCode, Action> Prepare(); 82 virtual std::tuple<ErrorCode, Action> Play(); 83 virtual std::tuple<ErrorCode, Action> Stop(); 84 virtual std::tuple<ErrorCode, Action> Reset(); 85 virtual std::tuple<ErrorCode, Action> Pause(); 86 virtual std::tuple<ErrorCod [all...] |
H A D | state.cpp | 79 std::tuple<ErrorCode, Action> State::Enter(Intent intent) in Enter() 89 std::tuple<ErrorCode, Action> State::Execute(Intent intent, const Plugin::Any& param) in Execute() 101 std::tuple<ErrorCode, Action> State::SetSource(const Plugin::Any& param) in SetSource() 106 std::tuple<ErrorCode, Action> State::Prepare() in Prepare() 110 std::tuple<ErrorCode, Action> State::Play() in Play() 114 std::tuple<ErrorCode, Action> State::Stop() in Stop() 119 std::tuple<ErrorCode, Action> State::Reset() in Reset() 124 std::tuple<ErrorCode, Action> State::Pause() in Pause() 128 std::tuple<ErrorCode, Action> State::Resume() in Resume() 132 std::tuple<ErrorCod in Resume() [all...] |
H A D | playing_state.h | 35 std::tuple<ErrorCode, Action> Enter(Intent intent) override 47 std::tuple<ErrorCode, Action> Play() override 52 std::tuple<ErrorCode, Action> Seek(const Plugin::Any& param) override 55 std::tuple<ErrorCode, Action> err {ErrorCode::ERROR_INVALID_PARAMETER_TYPE, Action::ACTION_BUTT}; 62 std::tuple<ErrorCode, Action> Pause() override 67 std::tuple<ErrorCode, Action> Stop() override 72 std::tuple<ErrorCode, Action> OnComplete() override
|
H A D | pause_state.h | 35 std::tuple<ErrorCode, Action> Enter(Intent) override 42 std::tuple<ErrorCode, Action> Play() override 48 std::tuple<ErrorCode, Action> Seek(const Plugin::Any& param) override 51 std::tuple<ErrorCode, Action> err {ErrorCode::ERROR_INVALID_PARAMETER_TYPE, Action::ACTION_BUTT}; 58 std::tuple<ErrorCode, Action> Pause() override 64 std::tuple<ErrorCode, Action> Resume() override 70 std::tuple<ErrorCode, Action> Stop() override
|
H A D | ready_state.h | 35 std::tuple<ErrorCode, Action> Enter(Intent intent) override 46 std::tuple<ErrorCode, Action> Seek(const Plugin::Any& param) override 49 std::tuple<ErrorCode, Action> err {ErrorCode::ERROR_INVALID_PARAMETER_TYPE, Action::ACTION_BUTT}; 56 std::tuple<ErrorCode, Action> Play() override 62 std::tuple<ErrorCode, Action> Stop() override
|
/foundation/multimedia/media_foundation/engine/scene/recorder/internal/ |
H A D | state.cpp | 28 std::tuple<ErrorCode, Action> State::Enter(Intent intent) in Enter() 40 std::tuple<ErrorCode, Action> State::Execute(Intent intent, const Plugin::Any& param) in Execute() 55 std::tuple<ErrorCode, Action> State::SetVideoSource(const Plugin::Any& param) in SetVideoSource() 61 std::tuple<ErrorCode, Action> State::SetAudioSource(const Plugin::Any& param) in SetAudioSource() 67 std::tuple<ErrorCode, Action> State::Configure(const Plugin::Any ¶m) in Configure() 73 std::tuple<ErrorCode, Action> State::SetOutputFormat(const Plugin::Any& param) in SetOutputFormat() 79 std::tuple<ErrorCode, Action> State::SetObs() in SetObs() 84 std::tuple<ErrorCode, Action> State::GetSurface() in GetSurface() 89 std::tuple<ErrorCode, Action> State::Prepare() in Prepare() 94 std::tuple<ErrorCod [all...] |
H A D | state.h | 22 #include <tuple> 76 virtual std::tuple<ErrorCode, Action> Enter(Intent intent); 78 std::tuple<ErrorCode, Action> Execute(Intent intent, const Plugin::Any& param); 82 virtual std::tuple<ErrorCode, Action> SetVideoSource(const Plugin::Any& param); 83 virtual std::tuple<ErrorCode, Action> SetAudioSource(const Plugin::Any& param); 84 virtual std::tuple<ErrorCode, Action> Configure(const Plugin::Any& param); 85 virtual std::tuple<ErrorCode, Action> SetOutputFormat(const Plugin::Any& param); 86 virtual std::tuple<ErrorCode, Action> SetObs(); 87 virtual std::tuple<ErrorCode, Action> GetSurface(); 88 virtual std::tuple<ErrorCod [all...] |
H A D | recording_setting_state.h | 36 std::tuple<ErrorCode, Action> SetVideoSource(const Plugin::Any& param) override 43 std::tuple<ErrorCode, Action> SetAudioSource(const Plugin::Any& param) override 50 std::tuple<ErrorCode, Action> Configure(const Plugin::Any& param) override 57 std::tuple<ErrorCode, Action> SetOutputFormat(const Plugin::Any& param) override 64 std::tuple<ErrorCode, Action> Prepare() override 74 std::tuple<ErrorCode, Action> Start() override 79 std::tuple<ErrorCode, Action> Stop(const Plugin::Any& param) override 86 std::tuple<ErrorCode, Action> OnReady() override
|
H A D | recording_state.h | 35 std::tuple<ErrorCode, Action> Enter(Intent intent) override 47 std::tuple<ErrorCode, Action> Start() override 52 std::tuple<ErrorCode, Action> Resume() override 57 std::tuple<ErrorCode, Action> Pause() override 62 std::tuple<ErrorCode, Action> Stop(const Plugin::Any& param) override 69 std::tuple<ErrorCode, Action> OnComplete() override
|
H A D | pause_state.h | 34 std::tuple<ErrorCode, Action> Enter(Intent) override 41 std::tuple<ErrorCode, Action> Start() override 47 std::tuple<ErrorCode, Action> Pause() override 53 std::tuple<ErrorCode, Action> Resume() override 59 std::tuple<ErrorCode, Action> Stop(const Plugin::Any& param) override
|
/foundation/filemanagement/file_api/utils/filemgmt_libn/include/ |
H A D | n_val.h | 21 #include <tuple> 46 std::tuple<bool, std::unique_ptr<char[]>, size_t> ToUTF8String() const; 47 std::tuple<bool, std::unique_ptr<char[]>, size_t> ToUTF8String(std::string defaultValue) const; 48 std::tuple<bool, std::unique_ptr<char[]>, size_t> ToUTF16String() const; 49 std::tuple<bool, std::unique_ptr<char[]>, size_t> ToUTF8StringPath() const; 50 std::tuple<bool, void *> ToPointer() const; 51 std::tuple<bool, bool> ToBool() const; 52 std::tuple<bool, bool> ToBool(bool defaultValue) const; 53 std::tuple<bool, int32_t> ToInt32() const; 54 std::tuple<boo [all...] |
/foundation/arkui/ace_engine/frameworks/bridge/common/utils/ |
H A D | function_traits.h | 19 #include <tuple> 28 using ArgumentPack = std::tuple<Args...>; 38 auto CallMemberFunction(C* instance, F func, T&& tuple, std::index_sequence<I...>) in CallMemberFunction() argument 40 return (instance->*func)(std::get<I>(std::forward<T>(tuple))...); in CallMemberFunction() 50 auto CallStaticMemberFunction(F func, T&& tuple, std::index_sequence<I...>) in CallStaticMemberFunction() argument 52 return func(std::get<I>(std::forward<T>(tuple))...); in CallStaticMemberFunction() 62 T* ConstructFromTuple(Tuple&& tuple, std::index_sequence<Is...>) in ConstructFromTuple() argument 64 return new T { std::get<Is>(std::forward<Tuple>(tuple))... }; in ConstructFromTuple() 68 T* ConstructFromTuple(Tuple&& tuple) in ConstructFromTuple() argument 71 std::forward<Tuple>(tuple), st in ConstructFromTuple() [all...] |
/foundation/filemanagement/file_api/interfaces/kits/cj/src/ |
H A D | file_fs_impl.h | 61 static std::tuple<int32_t, sptr<StatImpl>> Stat(int32_t file); 62 static std::tuple<int32_t, sptr<StatImpl>> Stat(std::string file); 63 static std::tuple<int32_t, sptr<StreamImpl>> CreateStream(std::string path, std::string mode); 64 static std::tuple<int32_t, sptr<StreamImpl>> FdopenStream(int32_t, std::string mode); 65 static std::tuple<int32_t, sptr<StatImpl>> Lstat(std::string path); 66 static std::tuple<int32_t, sptr<RandomAccessFileImpl>> CreateRandomAccessFileSync(std::string file, 68 static std::tuple<int32_t, sptr<RandomAccessFileImpl>> CreateRandomAccessFileSync(sptr<FileEntity> entity, 79 static std::tuple<int32_t, bool> Access(std::string path); 84 static std::tuple<int32_t, sptr<ReadIteratorImpl>> ReadLines(char* file, std::string encoding); 87 static std::tuple<int32_ [all...] |
H A D | stream_impl.h | 28 std::tuple<int, std::unique_ptr<char[]>, void *, size_t, int64_t> GetWriteArg(const std::string& buffer, int64_t length, 30 std::tuple<int, std::unique_ptr<char[]>, size_t, int64_t> GetReadArg(size_t bufLen, int64_t length, int64_t offset); 40 std::tuple<int, int64_t> ReadCur(uint8_t* buffer, size_t buLen, int64_t length); 42 std::tuple<int, int64_t> Read(uint8_t* buffer, size_t buLen, int64_t length, int64_t offset); 44 std::tuple<int, int64_t> WriteCur(const std::string& buffer, int64_t length, const std::string& encode); 46 std::tuple<int, int64_t> Write(const std::string& buffer, int64_t length, int64_t offset,
|
/foundation/filemanagement/app_file_service/frameworks/native/backup_ext/include/ |
H A D | untar_file.h | 42 std::tuple<int, EndFileInfo, ErrFileInfo> UnPacket( 44 std::tuple<int, EndFileInfo, ErrFileInfo> IncrementalUnPacket( 59 std::tuple<int, EndFileInfo, ErrFileInfo> ParseTarFile(const std::string &rootPath); 66 std::tuple<int, EndFileInfo, ErrFileInfo> ParseIncrementalTarFile(const std::string &rootPath); 128 std::tuple<int, bool, ErrFileInfo> ParseFileByTypeFlag(char typeFlag, FileStatInfo &info); 136 std::tuple<int, bool, ErrFileInfo> ParseIncrementalFileByTypeFlag(char typeFlag, FileStatInfo &info); 148 std::tuple<int, ErrFileInfo> ReadLongName(FileStatInfo &info); 159 int DealParseTarFileResult(const std::tuple<int, bool, ErrFileInfo> &result, 171 int DealIncreParseTarFileResult(const std::tuple<int, bool, ErrFileInfo> &result,
|
/foundation/filemanagement/file_api/interfaces/kits/js/src/common/file_helper/ |
H A D | hash_file.h | 20 #include <tuple> 26 static std::tuple<int, std::string> HashWithMD5(const std::string &fpath); 27 static std::tuple<int, std::string> HashWithSHA1(const std::string &fpath); 28 static std::tuple<int, std::string> HashWithSHA256(const std::string &fpath);
|
/foundation/filemanagement/file_api/interfaces/kits/js/src/mod_fileio/ |
H A D | common_func.h | 40 static std::tuple<bool, void *, size_t, int64_t, int64_t> GetReadArg(napi_env env, 43 static std::tuple<bool, void *, int64_t, bool, int64_t> GetReadArgV9(napi_env env, 46 static std::tuple<bool, std::unique_ptr<char[]>, void *, size_t, int64_t> GetWriteArg(napi_env env, 49 static std::tuple<bool, std::unique_ptr<char[]>, void *, int64_t, bool, int64_t> GetWriteArgV9(napi_env env, 51 static std::tuple<bool, std::unique_ptr<char[]>, std::unique_ptr<char[]>> GetCopyPathArg(napi_env env,
|
/foundation/ability/ability_runtime/services/abilitymgr/include/rdb/ |
H A D | parser_util.h | 20 #include <tuple> 29 void GetResidentProcessRawData(std::vector<std::tuple<std::string, std::string, std::string>> &list); 33 const std::string &filePath, std::vector<std::tuple<std::string, std::string, std::string>> &list); 37 nlohmann::json &jsonBuf, std::vector<std::tuple<std::string, std::string, std::string>> &list);
|