/base/hiviewdfx/hilog_lite/frameworks/featured/ |
D | hiview_log.c | 210 unsigned int flags; member 313 attr->flags |= SECUREC_FLAG_SIGN_SPACE; in SecDecodeFlags() 316 attr->flags |= SECUREC_FLAG_SIGN; in SecDecodeFlags() 319 attr->flags |= SECUREC_FLAG_LEFT; in SecDecodeFlags() 322 attr->flags |= SECUREC_FLAG_LEADZERO; /* add zero th the front */ in SecDecodeFlags() 325 attr->flags |= SECUREC_FLAG_ALTERNATE; /* output %x with 0x */ in SecDecodeFlags() 338 attr->flags |= SECUREC_FLAG_INTMAX; in SecDecodeSize() 343 attr->flags |= SECUREC_FLAG_LONGLONG | SECUREC_FLAG_LONG_DOUBLE; in SecDecodeSize() 348 attr->flags |= SECUREC_FLAG_LONGLONG; /* long long */ in SecDecodeSize() 350 attr->flags |= SECUREC_FLAG_LONG; /* long int or wchar_t */ in SecDecodeSize() [all …]
|
/base/startup/init/services/loopevent/utils/ |
D | le_utils.h | 26 #define LE_TEST_FLAGS(flags, flag) (((flags) & (flag)) == (flag)) argument 27 #define LE_SET_FLAGS(flags, flag) ((flags) |= (flag)) argument 28 #define LE_CLEAR_FLAGS(flags, flag) ((flags) &= ~(flag)) argument
|
/base/hiviewdfx/hitrace/interfaces/native/innerkits/include/hitrace/ |
D | hitracechainc.h | 88 uint64_t flags : 12; member 98 uint64_t flags : 12; 106 HiTraceIdStruct HiTraceChainBegin(const char* name, int flags); 126 pId->flags = 0; in HiTraceChainInitId() 138 return HiTraceChainIsValid(pId) && ((pId->flags & (uint64_t)flag) != 0); in HiTraceChainIsFlagEnabled() 144 pId->flags |= (uint64_t)flag; in HiTraceChainEnableFlag() 154 return pId->flags; in HiTraceChainGetFlags() 157 static inline void HiTraceChainSetFlags(HiTraceIdStruct* pId, int flags) in HiTraceChainSetFlags() argument 159 if (HiTraceChainIsValid(pId) && (flags >= HITRACE_FLAG_MIN) && (flags < HITRACE_FLAG_MAX)) { in HiTraceChainSetFlags() 160 pId->flags = (uint64_t)flags; in HiTraceChainSetFlags() [all …]
|
/base/startup/init/services/loopevent/socket/ |
D | le_socket.c | 163 int CreateSocket(int flags, const char *server) in CreateSocket() argument 166 int type = flags & 0x0000ff00; in CreateSocket() 167 LE_LOGV("CreateSocket flags %x type %x server %s", flags, type, server); in CreateSocket() 169 if (LE_TEST_FLAGS(flags, TASK_SERVER)) { in CreateSocket() 171 } else if (LE_TEST_FLAGS(flags, TASK_CONNECT)) { in CreateSocket() 175 if (LE_TEST_FLAGS(flags, TASK_SERVER)) { in CreateSocket() 177 (int)LE_TEST_FLAGS(flags, TASK_PUBLIC)); in CreateSocket() 178 } else if (LE_TEST_FLAGS(flags, TASK_CONNECT)) { in CreateSocket() 183 LE_LOGE("Invalid flags 0x%08x for server %s", flags, server); in CreateSocket() 189 int AcceptSocket(int fd, int flags) in AcceptSocket() argument [all …]
|
D | le_socket.h | 28 int CreateSocket(int flags, const char *server); 30 int AcceptSocket(int fd, int flags); 32 int listenSocket(int fd, int flags, const char *server);
|
/base/startup/init/services/utils/ |
D | list.c | 135 #define IS_REVERSE_ORDER(flags) (((flags) & TRAVERSE_REVERSE_ORDER) != 0) argument 136 #define IS_STOP_WHEN_ERROR(flags) (((flags) & TRAVERSE_STOP_WHEN_ERROR) != 0) argument 152 …t OH_ListTraversal(ListNode *head, void *data, ListTraversalProc traversalProc, unsigned int flags) in OH_ListTraversal() argument 161 if (IS_REVERSE_ORDER(flags)) { in OH_ListTraversal() 167 if (IS_REVERSE_ORDER(flags)) { in OH_ListTraversal() 173 if ((ret != 0) && IS_STOP_WHEN_ERROR(flags)) { in OH_ListTraversal()
|
/base/hiviewdfx/hilog/frameworks/libhilog/vsnprintf/ |
D | output_p.inl | 41 unsigned int flags; member 183 attr->flags |= SECUREC_FLAG_SIGN_SPACE; 186 attr->flags |= SECUREC_FLAG_SIGN; 189 attr->flags |= SECUREC_FLAG_LEFT; 192 attr->flags |= SECUREC_FLAG_LEADZERO; /* add zero th the front */ 195 attr->flags |= SECUREC_FLAG_ALTERNATE; /* output %x with 0x */ 208 attr->flags |= SECUREC_FLAG_INTMAX; 213 attr->flags |= SECUREC_FLAG_LONGLONG | SECUREC_FLAG_LONG_DOUBLE; 218 attr->flags |= SECUREC_FLAG_LONGLONG; /* long long */ 220 attr->flags |= SECUREC_FLAG_LONG; /* long int or wchar_t */ [all …]
|
/base/startup/init/services/param/include/ |
D | trigger_checker.h | 38 #define LOGIC_DATA_TEST_FLAG(data, flag) (((data)->flags & flag) == (flag)) 39 #define LOGIC_DATA_SET_FLAG(data, flag) (data)->flags |= (flag) 40 #define LOGIC_DATA_CLEAR_FLAG(data, flag) (data)->flags &= ~(flag) 43 uint32_t flags; member
|
/base/security/code_signature/utils/src/ |
D | pkcs7_data.cpp | 46 uint32_t flags = PKCS7_BINARY | PKCS7_DETACHED | PKCS7_NOATTR | PKCS7_PARTIAL; in InitPKCS7Data() local 49 flags = flags | PKCS7_NOCERTS; in InitPKCS7Data() 53 p7_ = PKCS7_sign(nullptr, nullptr, certs, nullptr, static_cast<int>(flags)); in InitPKCS7Data()
|
/base/startup/init/services/param/manager/ |
D | param_persist.c | 119 PARAM_CLEAR_FLAG(g_persistWorkSpace.flags, WORKSPACE_FLAGS_UPDATE); in BatchSavePersistParam() 126 if (PARAM_TEST_FLAG(g_persistWorkSpace.flags, WORKSPACE_FLAGS_INIT)) { in InitPersistParamWorkSpace() 131 PARAM_SET_FLAG(g_persistWorkSpace.flags, WORKSPACE_FLAGS_INIT); in InitPersistParamWorkSpace() 140 g_persistWorkSpace.flags = 0; in ClosePersistParamWorkSpace() 164 if (!PARAM_TEST_FLAG(g_persistWorkSpace.flags, WORKSPACE_FLAGS_UPDATE)) { in TimerCallbackForSave() 187 if (!PARAM_TEST_FLAG(g_persistWorkSpace.flags, WORKSPACE_FLAGS_LOADED)) { in WritePersistParam() 207 PARAM_SET_FLAG(g_persistWorkSpace.flags, WORKSPACE_FLAGS_UPDATE); in WritePersistParam() 222 if (PARAM_TEST_FLAG(g_persistWorkSpace.flags, WORKSPACE_FLAGS_LOADED)) { in LoadPersistParams() 229 PARAM_SET_FLAG(g_persistWorkSpace.flags, WORKSPACE_FLAGS_LOADED); in LoadPersistParams()
|
/base/customization/enterprise_device_management/services/edm_plugin/src/ |
D | disabled_network_interface_plugin.cpp | 49 if (config.flags.empty()) { in OnGetPolicy() 55 …reply.WriteBool(std::find(config.flags.begin(), config.flags.end(), IF_CFG_DOWN) != config.flags.e… in OnGetPolicy() 69 if (config.flags.empty()) { in OnSetPolicy()
|
/base/hiviewdfx/hilog/frameworks/libhilog/socket/ |
D | socket_server.cpp | 73 int SocketServer::Recv(void *buffer, unsigned int bufferLen, int flags) in Recv() argument 75 return TEMP_FAILURE_RETRY(recv(socketHandler, buffer, bufferLen, flags)); in Recv() 78 int SocketServer::RecvMsg(struct msghdr *hdr, int flags) in RecvMsg() argument 80 return TEMP_FAILURE_RETRY(recvmsg(socketHandler, hdr, flags)); in RecvMsg()
|
/base/security/code_signature/interfaces/innerkits/code_sign_utils/src/ |
D | stat_utils.cpp | 21 int Statx(int dfd, const char *filename, int flags, in Statx() argument 24 return syscall(__NR_statx, dfd, filename, flags, mask, buffer); in Statx()
|
/base/hiviewdfx/hitrace/frameworks/native/ |
D | hitracechainc.c | 144 HiTraceIdStruct HiTraceChainBegin(const char* name, int flags) in HiTraceChainBegin() argument 149 if ((flags < HITRACE_FLAG_MIN) || (flags > HITRACE_FLAG_MAX)) { in HiTraceChainBegin() 161 id.flags = (uint64_t)flags; in HiTraceChainBegin() 168 …O(LOG_CORE, "HiTraceBegin name:%{public}s flags:0x%{public}.2x.", name ? name : "", (int)id.flags); in HiTraceChainBegin() 325 int HiTraceChainGetInfo(uint64_t* chainId, uint32_t* flags, uint64_t* spanId, uint64_t* parentSpanI… in HiTraceChainGetInfo() argument 327 if (!chainId || !flags || !spanId || !parentSpanId) { in HiTraceChainGetInfo() 341 *flags = HiTraceChainGetFlags(&id); in HiTraceChainGetInfo()
|
D | hitraceid.cpp | 30 id_.flags = 0; in HiTraceId() 64 void HiTraceId::SetFlags(int flags) in SetFlags() argument 66 HiTraceChainSetFlags(&id_, flags); in SetFlags()
|
/base/notification/distributed_notification_service/services/ans/src/ |
D | advanced_notification_slot_service.cpp | 392 auto flags = std::make_shared<NotificationFlags>(); in SetRequestBySlotType() local 396 flags->SetSoundEnabled(NotificationConstant::FlagStatus::OPEN); in SetRequestBySlotType() 397 flags->SetVibrationEnabled(NotificationConstant::FlagStatus::OPEN); in SetRequestBySlotType() 400 flags->SetSoundEnabled(NotificationConstant::FlagStatus::OPEN); in SetRequestBySlotType() 401 flags->SetVibrationEnabled(NotificationConstant::FlagStatus::OPEN); in SetRequestBySlotType() 404 flags->SetSoundEnabled(NotificationConstant::FlagStatus::CLOSE); in SetRequestBySlotType() 405 flags->SetVibrationEnabled(NotificationConstant::FlagStatus::CLOSE); in SetRequestBySlotType() 408 flags->SetSoundEnabled(NotificationConstant::FlagStatus::OPEN); in SetRequestBySlotType() 409 flags->SetVibrationEnabled(NotificationConstant::FlagStatus::OPEN); in SetRequestBySlotType() 412 flags->SetSoundEnabled(NotificationConstant::FlagStatus::CLOSE); in SetRequestBySlotType() [all …]
|
/base/startup/init/interfaces/innerkits/fs_manager/ |
D | fstab.c | 37 unsigned int flags; member 42 unsigned long flags; member 65 unsigned int flags = 0; in ConvertFlags() local 72 flags |= fsFlags[i].flags; in ConvertFlags() 77 return flags; in ConvertFlags() 389 unsigned long flags = 0; in ParseDefaultMountFlag() local 394 flags = MOUNT_FLAGS[i].flags; in ParseDefaultMountFlag() 399 return flags; in ParseDefaultMountFlag() 456 unsigned long flags = 0; in GetMountFlags() local 476 flags |= ParseDefaultMountFlag(p); in GetMountFlags() [all …]
|
/base/location/test/location_gnss/source/ |
D | gnss_ability_test.cpp | 958 statusInfo.flags = 973 statusInfo.flags = 1268 GnssAuxiliaryData flags; variable 1273 bool result = gnssAbility->GetCommandFlags(cmd, flags); 1275 EXPECT_EQ(GnssAuxiliaryData::GNSS_AUXILIARY_DATA_EPHEMERIS, flags); 1284 GnssAuxiliaryData flags; variable 1289 bool result = gnssAbility->GetCommandFlags(cmd, flags); 1291 EXPECT_EQ(GnssAuxiliaryData::GNSS_AUXILIARY_DATA_ALMANAC, flags); 1300 GnssAuxiliaryData flags; variable 1305 bool result = gnssAbility->GetCommandFlags(cmd, flags); [all …]
|
/base/startup/init/services/loopevent/task/ |
D | le_task.c | 22 int CheckTaskFlags(const BaseTask *task, uint32_t flags) in CheckTaskFlags() argument 27 return ((task->flags & flags) == flags); in CheckTaskFlags() 45 task->flags = info->flags; in CreateTask() 173 if (((BaseTask *)taskHandle)->flags & TASK_FLAGS_INVALID) { in LE_Send()
|
/base/update/updater/services/package/pkg_package/ |
D | pkg_gzipfile.cpp | 70 header->flags = 0; in GetUpGradeCompInfo() 74 header->flags |= EXTRA_FIELD; in GetUpGradeCompInfo() 80 header->flags |= ORIG_NAME; in GetUpGradeCompInfo() 90 header->flags |= COMMENT; in GetUpGradeCompInfo() 236 void GZipFileEntry::DecodeHeaderCalOffset(uint8_t flags, const PkgBuffer &buffer, size_t &offset, in DecodeHeaderCalOffset() argument 239 if (flags & EXTRA_FIELD) { in DecodeHeaderCalOffset() 243 if (flags & ORIG_NAME) { in DecodeHeaderCalOffset() 247 if (flags & COMMENT) { in DecodeHeaderCalOffset() 252 if (flags & HEADER_CRC) { // Skip CRC in DecodeHeaderCalOffset() 270 uint8_t flags = *(buffer.buffer + offsetof(GZipHeader, flags)); in DecodeHeader() local [all …]
|
/base/startup/init/services/param/liteos/ |
D | param_litedac.c | 32 security->flags[PARAM_SECURITY_DAC] |= LABEL_CHECK_IN_ALL_PROCESS; in InitLocalSecurityLabel() 48 …atic int CheckFilePermission(const ParamSecurityLabel *localLabel, const char *fileName, int flags) in CheckFilePermission() argument 50 UNUSED(flags); in CheckFilePermission()
|
/base/hiviewdfx/hitrace/interfaces/rust/innerkits/hitracechain/src/ |
D | lib.rs | 132 pub fn set_flags(&mut self, flags: i32) { in set_flags() 135 HiTraceChainSetFlagsWrapper(self as *mut HiTraceId, flags); in set_flags() 197 pub fn begin(name: &str, flags: i32) -> HiTraceId { in begin() 201 HiTraceChainBegin(name.as_ptr() as *const c_char, flags) in begin() 316 fn HiTraceChainSetFlagsWrapper(p_id: *mut HiTraceId, flags: c_int); in HiTraceChainSetFlagsWrapper()
|
/base/hiviewdfx/hilog/frameworks/libhilog/socket/include/ |
D | socket_server.h | 36 int Recv(void *buffer, unsigned int bufferLen, int flags = MSG_PEEK); 37 int RecvMsg(struct msghdr *hdr, int flags = 0);
|
/base/startup/init/test/unittest/loopevent/ |
D | loopevent_unittest.cpp | 108 streamInfo.baseInfo.flags = TASK_STREAM | TASK_PIPE | TASK_CONNECT | TASK_TEST; in StreamTaskTest() 121 streamInfo.baseInfo.flags = TASK_STREAM | TASK_TCP | TASK_SERVER; in StreamTaskTest() 128 streamInfo.baseInfo.flags = TASK_STREAM | TASK_TCP | TASK_CONNECT; in StreamTaskTest() 138 info.baseInfo.flags = TASK_STREAM | TASK_PIPE | TASK_SERVER | TASK_TEST; in LeTaskTest() 150 paramStreamInfo.flags = PARAM_TEST_FLAGS; in LeTaskTest() 204 info.flags = WATCHER_ONCE; in ProcessWatcherTask() 213 ((WatcherTask *)handle)->base.flags = WATCHER_ONCE; in ProcessWatcherTask() 221 info.baseInfo.flags = TASK_PIPE | TASK_CONNECT | TASK_TEST; in CreateSocketTest() 314 info.flags = WATCHER_ONCE;
|
/base/startup/appspawn/standard/ |
D | appspawn_service.h | 65 uint32_t flags; member 81 … (clientExt)->property.processName, (clientExt)->property.flags); \ 83 … (clientExt)->client.flags, (clientExt)->client.cloneFlags, (clientExt)->property.hapFlags); \
|