/base/security/access_token/services/tokensyncmanager/src/command/ |
D | sync_remote_hap_token_command.cpp | 40 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 …]
|
D | base_remote_command.cpp | 90 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/ |
D | setremotenativetokeninfo_fuzzer.cpp | 40 .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/ |
D | remote_token_kit_test.cpp | 212 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/ |
D | event_json_parser.cpp | 173 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/ |
D | setremotehaptokeninfo_fuzzer.cpp | 38 HapTokenInfo baseInfo = { in SetRemoteHapTokenInfoFuzzTest() local 58 .baseInfo = baseInfo, in SetRemoteHapTokenInfoFuzzTest()
|
/base/startup/init/services/param/linux/ |
D | param_msgadp.c | 52 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/ |
D | accesstoken_parcel_test.cpp | 261 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/ |
D | le_timer.c | 78 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/ |
D | control_fd_service.c | 124 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()
|
D | control_fd_client.c | 104 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/ |
D | accesstoken_info_manager.cpp | 612 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/ |
D | loopevent_unittest.cpp | 110 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/ |
D | le_streamtask.c | 166 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()
|
D | le_watchtask.c | 57 …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()
|
D | le_asynctask.c | 104 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/ |
D | native_token_info_for_sync_parcel.cpp | 29 baseInfoParcel.nativeTokenInfoParams = this->nativeTokenInfoForSyncParams.baseInfo; in Marshalling() 54 …nativeTokenInfoForSyncParcel->nativeTokenInfoForSyncParams.baseInfo = baseInfoParcel->nativeTokenI… in Unmarshalling()
|
D | hap_token_info_for_sync_parcel.cpp | 29 baseInfoParcel.hapTokenInfoParams = this->hapTokenInfoForSyncParams.baseInfo; in Marshalling() 54 …hapTokenInfoForSyncParcel->hapTokenInfoForSyncParams.baseInfo = baseInfoParcel->hapTokenInfoParams; in Unmarshalling()
|
/base/hiviewdfx/hiview/plugins/eventservice/include/ |
D | event_json_parser.h | 61 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/ |
D | native_token_info.h | 40 NativeTokenInfo baseInfo;
|
D | hap_token_info.h | 63 HapTokenInfo baseInfo;
|
/base/security/access_token/interfaces/innerkits/tokensync/src/ |
D | token_sync_kit.cpp | 49 …OKEN_LOG_INFO(LABEL, "%{public}s called tokenID=%{public}d", __func__, tokenInfo.baseInfo.tokenID); in UpdateRemoteHapTokenInfo()
|
/base/hiviewdfx/hisysevent/frameworks/native/include/ |
D | hisysevent_json_decorator.h | 47 Validity CheckLevelValidity(const Json::Value& baseInfo);
|
/base/security/access_token/services/accesstokenmanager/main/cpp/include/token/ |
D | hap_token_info_inner.h | 55 void SetTokenBaseInfo(const HapTokenInfo& baseInfo);
|
/base/hiviewdfx/hisysevent/frameworks/native/ |
D | hisysevent_json_decorator.cpp | 93 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()
|