Lines Matching defs:msgFlags
66 AppSpawnMsgFlags *msgFlags = (AppSpawnMsgFlags *)GetAppSpawnMsgInfo(message, type);
67 APPSPAWN_CHECK(msgFlags != NULL, return 0, "No tlv %{public}u in msg", type);
70 APPSPAWN_CHECK(blockIndex < msgFlags->count, return 0,
71 "Invalid index %{public}d max: %{public}d", index, msgFlags->count);
72 return CHECK_FLAGS_BY_INDEX(msgFlags->flags[blockIndex], bitIndex);
75 static inline int SetSpawnMsgFlags(AppSpawnMsgFlags *msgFlags, uint32_t index)
79 APPSPAWN_CHECK(blockIndex < msgFlags->count, return APPSPAWN_ARG_INVALID,
80 "Invalid index %{public}u blockIndex %{public}u %{public}u ", index, blockIndex, msgFlags->count);
81 msgFlags->flags[blockIndex] |= (1 << bitIndex);
89 AppSpawnMsgFlags *msgFlags = (AppSpawnMsgFlags *)GetAppSpawnMsgInfo(message, type);
90 APPSPAWN_CHECK(msgFlags != NULL, return APPSPAWN_ARG_INVALID, "No tlv %{public}d in msg", type);
91 return SetSpawnMsgFlags(msgFlags, index);
348 static inline void DumpMsgFlags(const char *info, const AppSpawnMsgFlags *msgFlags)
350 for (uint32_t i = 0; i < msgFlags->count; i++) {
351 APPSPAPWN_DUMP("%{public}s flags: 0x%{public}x", info, msgFlags->flags[i]);
376 AppSpawnMsgFlags *msgFlags = (AppSpawnMsgFlags *)GetAppSpawnMsgInfo(message, TLV_MSG_FLAGS);
377 APPSPAWN_ONLY_EXPER(msgFlags != NULL, DumpMsgFlags("App flags", msgFlags));
378 msgFlags = (AppSpawnMsgFlags *)GetAppSpawnMsgInfo(message, TLV_PERMISSION);
379 APPSPAWN_ONLY_EXPER(msgFlags != NULL, DumpMsgFlags("App permission bits", msgFlags));