Home
last modified time | relevance | path

Searched refs:baseInfo (Results 1 – 25 of 33) sorted by relevance

12

/base/security/access_token/services/tokensyncmanager/src/command/
Dsync_remote_hap_token_command.cpp40 hapTokenInfo_.baseInfo.apl = APL_NORMAL; in SyncRemoteHapTokenCommand()
41 hapTokenInfo_.baseInfo.appID = ""; in SyncRemoteHapTokenCommand()
42 hapTokenInfo_.baseInfo.bundleName = ""; in SyncRemoteHapTokenCommand()
43 hapTokenInfo_.baseInfo.deviceID = ""; in SyncRemoteHapTokenCommand()
44 hapTokenInfo_.baseInfo.instIndex = 0; in SyncRemoteHapTokenCommand()
45 hapTokenInfo_.baseInfo.dlpType = 0; in SyncRemoteHapTokenCommand()
46 hapTokenInfo_.baseInfo.tokenAttr = 0; in SyncRemoteHapTokenCommand()
47 hapTokenInfo_.baseInfo.tokenID = 0; in SyncRemoteHapTokenCommand()
48 hapTokenInfo_.baseInfo.userID = 0; in SyncRemoteHapTokenCommand()
49 hapTokenInfo_.baseInfo.ver = DEFAULT_TOKEN_VERSION; in SyncRemoteHapTokenCommand()
[all …]
Dbase_remote_command.cpp90 nlohmann::json DcapsJson = nlohmann::json(tokenInfo.baseInfo.dcap); in ToNativeTokenInfoJson()
91 nlohmann::json NativeAclsJson = nlohmann::json(tokenInfo.baseInfo.nativeAcls); in ToNativeTokenInfoJson()
93 {"processName", tokenInfo.baseInfo.processName}, in ToNativeTokenInfoJson()
94 {"apl", tokenInfo.baseInfo.apl}, in ToNativeTokenInfoJson()
95 {"version", tokenInfo.baseInfo.ver}, in ToNativeTokenInfoJson()
96 {"tokenId", tokenInfo.baseInfo.tokenID}, in ToNativeTokenInfoJson()
97 {"tokenAttr", tokenInfo.baseInfo.tokenAttr}, in ToNativeTokenInfoJson()
137 {"version", tokenInfo.baseInfo.ver}, in ToHapTokenInfosJson()
138 {"tokenID", tokenInfo.baseInfo.tokenID}, in ToHapTokenInfosJson()
139 {"tokenAttr", tokenInfo.baseInfo.tokenAttr}, in ToHapTokenInfosJson()
[all …]
/base/security/access_token/test/fuzztest/access_token/setremotenativetokeninfo_fuzzer/
Dsetremotenativetokeninfo_fuzzer.cpp40 .baseInfo.apl = APL_NORMAL, in SetRemoteNativeTokenInfoFuzzTest()
41 .baseInfo.ver = 1, in SetRemoteNativeTokenInfoFuzzTest()
42 .baseInfo.processName = testName, in SetRemoteNativeTokenInfoFuzzTest()
43 .baseInfo.dcap = {testName, testName}, in SetRemoteNativeTokenInfoFuzzTest()
44 .baseInfo.tokenID = TOKENID, in SetRemoteNativeTokenInfoFuzzTest()
45 .baseInfo.tokenAttr = 0, in SetRemoteNativeTokenInfoFuzzTest()
46 .baseInfo.nativeAcls = {testName}, in SetRemoteNativeTokenInfoFuzzTest()
/base/security/access_token/interfaces/innerkits/accesstoken/test/unittest/src/
Dremote_token_kit_test.cpp212 HapTokenInfo baseInfo = { variable
234 .baseInfo = baseInfo,
249 ASSERT_EQ(resultInfo.apl, remoteTokenInfo.baseInfo.apl);
250 ASSERT_EQ(resultInfo.ver, remoteTokenInfo.baseInfo.ver);
251 ASSERT_EQ(resultInfo.userID, remoteTokenInfo.baseInfo.userID);
252 ASSERT_EQ(resultInfo.bundleName, remoteTokenInfo.baseInfo.bundleName);
253 ASSERT_EQ(resultInfo.instIndex, remoteTokenInfo.baseInfo.instIndex);
254 ASSERT_EQ(resultInfo.appID, remoteTokenInfo.baseInfo.appID);
255 ASSERT_EQ(resultInfo.deviceID, remoteTokenInfo.baseInfo.deviceID);
256 … ASSERT_NE(resultInfo.tokenID, remoteTokenInfo.baseInfo.tokenID); // tokenID already is map tokenID
[all …]
/base/hiviewdfx/hiview/plugins/eventservice/
Devent_json_parser.cpp173 auto baseInfo = GetDefinedBaseInfoByDomainName(domain, name); in EventJsonParser() local
174 if (baseInfo.type == INVALID_EVENT_TYPE) { in EventJsonParser()
179 if (!CheckBaseInfoValidity(baseInfo, eventJson)) { in EventJsonParser()
223 bool EventJsonParser::CheckBaseInfoValidity(const BaseInfo& baseInfo, Json::Value& eventJson) const in EventJsonParser() argument
225 if (!CheckTypeValidity(baseInfo, eventJson)) { in EventJsonParser()
228 if (!baseInfo.level.empty()) { in EventJsonParser()
229 eventJson[LEVEL_] = baseInfo.level; in EventJsonParser()
231 if (!baseInfo.tag.empty()) { in EventJsonParser()
232 eventJson[TAG_] = baseInfo.tag; in EventJsonParser()
242 bool EventJsonParser::CheckTypeValidity(const BaseInfo& baseInfo, const Json::Value& eventJson) con… in EventJsonParser() argument
[all …]
/base/security/access_token/test/fuzztest/access_token/setremotehaptokeninfo_fuzzer/
Dsetremotehaptokeninfo_fuzzer.cpp38 HapTokenInfo baseInfo = { in SetRemoteHapTokenInfoFuzzTest() local
58 .baseInfo = baseInfo, in SetRemoteHapTokenInfoFuzzTest()
/base/startup/init/services/param/linux/
Dparam_msgadp.c52 info.baseInfo.flags = TASK_STREAM | TASK_PIPE | TASK_SERVER; in ParamServerCreate()
54 info.baseInfo.close = streamInfo->close; in ParamServerCreate()
66 info.baseInfo.userDataSize = userDataSize; in ParamStreamCreate()
67 info.baseInfo.flags = TASK_STREAM | TASK_PIPE | TASK_CONNECT; in ParamStreamCreate()
69 info.baseInfo.flags |= TASK_TEST; in ParamStreamCreate()
71 info.baseInfo.close = streamInfo->close; in ParamStreamCreate()
/base/security/access_token/frameworks/test/unittest/
Daccesstoken_parcel_test.cpp261 hapTokenInfoSync.hapTokenInfoForSyncParams.baseInfo = hapTokenInfo;
339 NativeTokenInfo baseInfo; variable
340 baseInfo.apl = APL_NORMAL,
341 baseInfo.ver = 1,
342 baseInfo.processName = "native_token_test0",
343 baseInfo.tokenID = 0x28100000, // 0x28100000 tokenid
344 baseInfo.tokenAttr = 0,
345 baseInfo.dcap = {"AT_CAP", "ST_CAP"};
346 baseInfo.nativeAcls = {"ohos.permission.LOCATION"};
350 baseInfoParcel.nativeTokenInfoParams = baseInfo;
[all …]
/base/startup/init/services/loopevent/timer/
Dle_timer.c78 LE_BaseInfo baseInfo = {}; in LE_CreateTimer() local
79 baseInfo.flags = TASK_TIME; in LE_CreateTimer()
80 baseInfo.userDataSize = sizeof(uint64_t); in LE_CreateTimer()
81 baseInfo.close = NULL; in LE_CreateTimer()
85 TimerTask *task = (TimerTask *)CreateTask(loopHandle, fd, &baseInfo, sizeof(TimerTask)); in LE_CreateTimer()
/base/startup/init/interfaces/innerkits/control_fd/
Dcontrol_fd_service.c124 info.baseInfo.flags = TASK_STREAM | TASK_PIPE | TASK_CONNECT; in CmdOnIncommingConnect()
126 info.baseInfo.flags = TASK_STREAM | TASK_PIPE | TASK_CONNECT | TASK_TEST; in CmdOnIncommingConnect()
128 info.baseInfo.close = OnClose; in CmdOnIncommingConnect()
129 info.baseInfo.userDataSize = sizeof(CmdTask); in CmdOnIncommingConnect()
153 info.baseInfo.flags = TASK_STREAM | TASK_SERVER | TASK_PIPE; in CmdServiceInit()
156 info.baseInfo.close = NULL; in CmdServiceInit()
Dcontrol_fd_client.c104 info.baseInfo.flags = TASK_STREAM | TASK_PIPE | TASK_CONNECT; in CmdAgentCreate()
106 info.baseInfo.userDataSize = sizeof(CmdAgent); in CmdAgentCreate()
107 info.baseInfo.close = CmdOnClose; in CmdAgentCreate()
/base/security/access_token/services/accesstokenmanager/main/cpp/src/token/
Daccesstoken_info_manager.cpp612 hapSync.baseInfo = infoPtr->GetHapInfoBasic(); in GetHapTokenSync()
642 nativeTokenInnerPtr->TranslateToNativeTokenInfo(token.baseInfo); in GetAllNativeTokenInfo()
648 LABEL, "token %{public}u permSet is invalid.", token.baseInfo.tokenID); in GetAllNativeTokenInfo()
671 infoPtr->SetTokenBaseInfo(hapSync.baseInfo); in UpdateRemoteHapTokenInfo()
680 hapSync.baseInfo, hapSync.permStateList); in CreateRemoteHapTokenInfo()
699 …lidator::IsDeviceIdValid(deviceID) || !DataValidator::IsDeviceIdValid(hapSync.baseInfo.deviceID)) { in IsRemoteHapTokenValid()
701 } else if (!DataValidator::IsUserIdValid(hapSync.baseInfo.userID)) { in IsRemoteHapTokenValid()
703 } else if (!DataValidator::IsBundleNameValid(hapSync.baseInfo.bundleName)) { in IsRemoteHapTokenValid()
705 } else if (!DataValidator::IsAplNumValid(hapSync.baseInfo.apl)) { in IsRemoteHapTokenValid()
707 } else if (!DataValidator::IsTokenIDValid(hapSync.baseInfo.tokenID)) { in IsRemoteHapTokenValid()
[all …]
/base/startup/init/test/unittest/init/
Dloopevent_unittest.cpp110 streamInfo.baseInfo.flags = TASK_STREAM | TASK_PIPE | TASK_CONNECT | TASK_TEST; in StreamTaskTest()
125 streamInfo.baseInfo.flags = TASK_STREAM | TASK_PIPE | TASK_SERVER; in StreamTaskTest()
139 streamInfo.baseInfo.flags = TASK_STREAM | TASK_TCP | TASK_SERVER; in StreamTaskTest()
146 streamInfo.baseInfo.flags = TASK_STREAM | TASK_TCP | TASK_CONNECT; in StreamTaskTest()
156 info.baseInfo.flags = TASK_STREAM | TASK_PIPE | TASK_SERVER | TASK_TEST; in LeTaskTest()
158 info.baseInfo.close = OnClose; in LeTaskTest()
239 info.baseInfo.flags = TASK_PIPE | TASK_CONNECT | TASK_TEST; in CreateSocketTest()
241 info.baseInfo.close = OnClose; in CreateSocketTest()
268 streamInfo.baseInfo.flags = TASK_PIPE | TASK_CONNECT;
/base/startup/init/services/loopevent/task/
Dle_streamtask.c166 fd = CreateSocket(info->baseInfo.flags, info->server); in LE_CreateStreamServer()
171 StreamServerTask *task = (StreamServerTask *)CreateTask(loopHandle, fd, &info->baseInfo, in LE_CreateStreamServer()
191 int fd = CreateSocket(info->baseInfo.flags, info->server); in LE_CreateStreamClient()
194 …StreamClientTask *task = (StreamClientTask *)CreateTask(loopHandle, fd, &info->baseInfo, sizeof(St… in LE_CreateStreamClient()
219 if ((info->baseInfo.flags & TASK_TEST) != TASK_TEST) { in LE_AcceptStreamClient()
220 fd = AcceptSocket(GetSocketFd(server), info->baseInfo.flags); in LE_AcceptStreamClient()
224 loopHandle, fd, &info->baseInfo, sizeof(StreamConnectTask)); in LE_AcceptStreamClient()
235 if ((info->baseInfo.flags & TASK_TEST) != TASK_TEST) { in LE_AcceptStreamClient()
Dle_watchtask.c57 …LE_BaseInfo baseInfo = {TASK_WATCHER | (info->flags & WATCHER_ONCE), info->close, sizeof(uint64_t)… in LE_StartWatcher() local
58 …WatcherTask *task = (WatcherTask *)CreateTask(loopHandle, info->fd, &baseInfo, sizeof(WatcherTask)… in LE_StartWatcher()
Dle_asynctask.c104 LE_BaseInfo baseInfo = {TASK_EVENT | TASK_ASYNC_EVENT, NULL}; in LE_CreateAsyncTask() local
105 …AsyncEventTask *task = (AsyncEventTask *)CreateTask(loopHandle, fd, &baseInfo, sizeof(AsyncEventTa… in LE_CreateAsyncTask()
/base/security/access_token/frameworks/accesstoken/src/
Dnative_token_info_for_sync_parcel.cpp29 baseInfoParcel.nativeTokenInfoParams = this->nativeTokenInfoForSyncParams.baseInfo; in Marshalling()
54 …nativeTokenInfoForSyncParcel->nativeTokenInfoForSyncParams.baseInfo = baseInfoParcel->nativeTokenI… in Unmarshalling()
Dhap_token_info_for_sync_parcel.cpp29 baseInfoParcel.hapTokenInfoParams = this->hapTokenInfoForSyncParams.baseInfo; in Marshalling()
54 …hapTokenInfoForSyncParcel->hapTokenInfoForSyncParams.baseInfo = baseInfoParcel->hapTokenInfoParams; in Unmarshalling()
/base/hiviewdfx/hiview/plugins/eventservice/include/
Devent_json_parser.h61 bool CheckBaseInfoValidity(const BaseInfo& baseInfo, Json::Value& eventJson) const;
63 bool CheckTypeValidity(const BaseInfo& baseInfo, const Json::Value& eventJson) const;
/base/security/access_token/interfaces/innerkits/accesstoken/include/
Dnative_token_info.h40 NativeTokenInfo baseInfo;
Dhap_token_info.h63 HapTokenInfo baseInfo;
/base/security/access_token/interfaces/innerkits/tokensync/src/
Dtoken_sync_kit.cpp49 …OKEN_LOG_INFO(LABEL, "%{public}s called tokenID=%{public}d", __func__, tokenInfo.baseInfo.tokenID); in UpdateRemoteHapTokenInfo()
/base/hiviewdfx/hisysevent/frameworks/native/include/
Dhisysevent_json_decorator.h47 Validity CheckLevelValidity(const Json::Value& baseInfo);
/base/security/access_token/services/accesstokenmanager/main/cpp/include/token/
Dhap_token_info_inner.h55 void SetTokenBaseInfo(const HapTokenInfo& baseInfo);
/base/hiviewdfx/hisysevent/frameworks/native/
Dhisysevent_json_decorator.cpp93 Validity HiSysEventJsonDecorator::CheckLevelValidity(const Json::Value& baseInfo) in HiSysEventJsonDecorator() argument
95 if (!baseInfo.isMember(LEVEL)) { in HiSysEventJsonDecorator()
99 std::string levelDes = baseInfo[LEVEL].asString(); in HiSysEventJsonDecorator()

12