/base/update/updater/services/script/yacc/ |
D | parser.hpp | 414 struct token { struct in uscript::Parser 460 typedef token::yytokentype token_kind_type; 853 YY_ASSERT(tok == token::TOKEN_END || tok == token::TOKEN_YYerror || in symbol_type() 854 tok == token::TOKEN_YYUNDEF || tok == token::TOKEN_EOL); in symbol_type() 860 YY_ASSERT(tok == token::TOKEN_END || tok == token::TOKEN_YYerror || in symbol_type() 861 tok == token::TOKEN_YYUNDEF || tok == token::TOKEN_EOL); in symbol_type() 868 YY_ASSERT(tok == token::TOKEN_FLOAT); in symbol_type() 874 YY_ASSERT(tok == token::TOKEN_FLOAT); in symbol_type() 881 YY_ASSERT(tok == token::TOKEN_NUMBER); in symbol_type() 887 YY_ASSERT(tok == token::TOKEN_NUMBER); in symbol_type() [all …]
|
/base/security/access_token/ |
D | README.md | 8 …token information of an app includes the app identifier (**APPID**), user ID, app twin index, app … 11 - Verifying app permissions based on the token ID before an app accesses sensitive data or calls … 12 - Obtaining access token information (for example, APL) based on the token ID. 20 │ ├── tokensync # Stores code of the access token synchronization framework. 24 │ ├── accesstoken # Stores code of access token internal APIs. 25 │ ├── nativetoken # Stores code of native token APIs. 26 │ └── tokensync # Stores code of the internal APIs for access token synchronization. 29 └── tokensyncmanager # Stores code of the access token synchronization service. 37 …Token(const HapInfoParams& info, const HapPolicyParams& policy); | Allocates a token ID to an app.| 38 …string& remoteDeviceID, AccessTokenID remoteTokenID); | Allocates a local token ID to the app of a… [all …]
|
/base/startup/syspara_lite/frameworks/token/src/token_impl_hal/ |
D | token.c | 21 int ReadToken(char *token, unsigned int len) in ReadToken() argument 23 if (token == NULL) { in ReadToken() 28 return HalReadToken(token, len); in ReadToken() 31 int WriteToken(const char *token, unsigned int len) in WriteToken() argument 33 if (token == NULL) { in WriteToken() 38 return HalWriteToken(token, len); in WriteToken()
|
/base/user_iam/auth_executor_mgr/common/idm/src/ |
D | user_idm_funcs.c | 90 UserAuthTokenHal *authToken = (UserAuthTokenHal *)param.token; in CheckEnrollPermission() 129 static void GetInfoFromToken(CredentialInfoHal *credentialInfo, ScheduleTokenHal token) in GetInfoFromToken() argument 131 credentialInfo->authType = token.authType; in GetInfoFromToken() 132 credentialInfo->authSubType = token.authSubType; in GetInfoFromToken() 133 credentialInfo->templateId = token.templateId; in GetInfoFromToken() 134 credentialInfo->capabilityLevel = token.capabilityLevel; in GetInfoFromToken() 143 ScheduleTokenHal token; in AddCredentialFunc() local 144 if (memcpy_s(&token, sizeof(ScheduleTokenHal), enrollToken, tokenLen) != EOK) { in AddCredentialFunc() 150 if (ret != RESULT_SUCCESS || token.scheduleId != currentSchedule || IsSessionTimeout()) { in AddCredentialFunc() 155 ret = CoAuthTokenVerify(&token); in AddCredentialFunc() [all …]
|
/base/startup/syspara_lite/frameworks/token/src/token_impl_posix/ |
D | token.c | 40 int ReadToken(char *token, unsigned int len) in ReadToken() argument 44 if (token == NULL) { in ReadToken() 54 ret = HalReadToken(token, len); in ReadToken() 60 int WriteToken(const char *token, unsigned int len) in WriteToken() argument 64 if (token == NULL) { in WriteToken() 74 ret = HalWriteToken(token, len); in WriteToken()
|
/base/security/access_token/interfaces/innerkits/token_setproc/src/ |
D | token_setproc.c | 53 uint64_t token = INVAL_TOKEN_ID; in GetSelfTokenID() local 58 int ret = ioctl(fd, ACCESS_TOKENID_GET_TOKENID, &token); in GetSelfTokenID() 65 return token; in GetSelfTokenID() 86 uint64_t token = INVAL_TOKEN_ID; in GetFirstCallerTokenID() local 91 int ret = ioctl(fd, ACCESS_TOKENID_GET_FTOKENID, &token); in GetFirstCallerTokenID() 98 return token; in GetFirstCallerTokenID()
|
/base/powermgr/power_manager/services/native/test/unittest/src/ |
D | power_mgr_mock_test.cpp | 921 sptr<IRemoteObject> token = new RunningLockTokenStub(); variable 923 pms->CreateRunningLock(token, info); 924 pms->Lock(token, info, 0); 925 EXPECT_EQ(pms->IsUsed(token), true); 930 pms->UnLock(token); 931 EXPECT_EQ(pms->IsUsed(token), false); 954 sptr<IRemoteObject> token = new RunningLockTokenStub(); variable 956 pms->CreateRunningLock(token, info); 959 pms->Lock(token, info, 0); 960 EXPECT_EQ(pms->IsUsed(token), true); [all …]
|
/base/powermgr/power_manager/test/systemtest/src/ |
D | power_mgr_st_mock_test.cpp | 922 sptr<IRemoteObject> token = new RunningLockTokenStub(); variable 924 pms->CreateRunningLock(token, info); 925 pms->Lock(token, info, 0); 926 EXPECT_EQ(pms->IsUsed(token), true); 931 pms->UnLock(token); 932 EXPECT_EQ(pms->IsUsed(token), false); 955 sptr<IRemoteObject> token = new RunningLockTokenStub(); variable 957 pms->CreateRunningLock(token, info); 960 pms->Lock(token, info, 0); 961 EXPECT_EQ(pms->IsUsed(token), true); [all …]
|
/base/hiviewdfx/faultloggerd/services/ |
D | fault_logger_secure.cpp | 102 char *token = strtok_s(reinterpret_cast<char *>(resp), delim, &buf); in CheckUidAndPid() local 103 if (token == nullptr) { in CheckUidAndPid() 106 token = strtok_s(nullptr, delim, &buf); in CheckUidAndPid() 107 while (token != nullptr) { in CheckUidAndPid() 108 int tokenPID = atoi(token); in CheckUidAndPid() 113 token = strtok_s(nullptr, delim, &buf); in CheckUidAndPid()
|
/base/powermgr/power_manager/services/native/include/ |
D | running_lock_mgr.h | 53 void Lock(const sptr<IRemoteObject>& token, const RunningLockInfo& runningLockInfo, 55 void UnLock(const sptr<IRemoteObject> token); 56 std::shared_ptr<RunningLockInner> CreateRunningLock(const sptr<IRemoteObject>& token, 58 void ReleaseLock(const sptr<IRemoteObject> token); 61 … void SetWorkTriggerList(const sptr<IRemoteObject>& token, const WorkTriggerList& workTriggerList); 64 std::shared_ptr<RunningLockInner> GetRunningLockInner(const sptr<IRemoteObject>& token); 74 bool IsUsed(const sptr<IRemoteObject>& token); 178 void LockReally(const sptr<IRemoteObject>& token, std::shared_ptr<RunningLockInner>& lockInner); 179 … void UnLockReally(const sptr<IRemoteObject>& token, std::shared_ptr<RunningLockInner>& lockInner); 181 void RemoveAndPostUnlockTask(const sptr<IRemoteObject>& token, uint32_t timeOutMS = 0); [all …]
|
/base/powermgr/power_manager/services/native/src/ |
D | running_lock_mgr.cpp | 206 const sptr<IRemoteObject>& token) in GetRunningLockInner() argument 209 auto iterator = runningLocks_.find(token); in GetRunningLockInner() 218 const sptr<IRemoteObject>& token, in CreateRunningLock() argument 233 runningLocks_.emplace(token, lockInner); in CreateRunningLock() 235 token->AddDeathRecipient(runningLockDeathRecipient_); in CreateRunningLock() 239 void RunningLockMgr::ReleaseLock(const sptr<IRemoteObject> token) in ReleaseLock() argument 242 __func__, token.GetRefPtr()); in ReleaseLock() 243 auto lockInner = GetRunningLockInner(token); in ReleaseLock() 248 UnLock(token); in ReleaseLock() 251 runningLocks_.erase(token); in ReleaseLock() [all …]
|
/base/accessibility/services/aams/test/mock/ |
D | ability_manager_client_mock.cpp | 66 const sptr<IRemoteObject> &token) in AttachAbilityThread() argument 71 ErrCode AbilityManagerClient::AbilityTransitionDone(const sptr<IRemoteObject> &token, int state, co… in AbilityTransitionDone() argument 77 const sptr<IRemoteObject> &token, const sptr<IRemoteObject> &remoteObject) in ScheduleConnectAbilityDone() argument 82 ErrCode AbilityManagerClient::ScheduleDisconnectAbilityDone(const sptr<IRemoteObject> &token) in ScheduleDisconnectAbilityDone() argument 87 ErrCode AbilityManagerClient::ScheduleCommandAbilityDone(const sptr<IRemoteObject> &token) in ScheduleCommandAbilityDone() argument 92 void AbilityManagerClient::AddWindowInfo(const sptr<IRemoteObject> &token, int32_t windowToken) in AddWindowInfo() argument 107 ErrCode AbilityManagerClient::TerminateAbility(const sptr<IRemoteObject> &token, int resultCode, co… in TerminateAbility() argument 117 ErrCode AbilityManagerClient::TerminateAbilityResult(const sptr<IRemoteObject> &token, int startId) in TerminateAbilityResult() argument
|
/base/powermgr/power_manager/services/native/test/unittest/include/ |
D | running_lock_test.h | 37 void TestRunningLockInnerExisit(sptr<IRemoteObject>& token, RunningLockInfo& runningLockInfo) in TestRunningLockInnerExisit() argument 40 auto iterator = lockMap.find(token); in TestRunningLockInnerExisit() 48 void TestRunningLockInnerNoExisit(sptr<IRemoteObject>& token) in TestRunningLockInnerNoExisit() argument 51 auto iterator = lockMap.find(token); in TestRunningLockInnerNoExisit()
|
/base/miscservices/wallpaper/frameworks/kits/extension/src/ |
D | wallpaper_extension.cpp | 47 const sptr<IRemoteObject> &token) in Init() argument 50 ExtensionBase<WallpaperExtensionContext>::Init(record, application, handler, token); in Init() 58 const sptr<IRemoteObject> &token) in CreateAndInitContext() argument 62 …xtensionBase<WallpaperExtensionContext>::CreateAndInitContext(record, application, handler, token); in CreateAndInitContext()
|
/base/powermgr/power_manager/interfaces/innerkits/native/include/ |
D | ipower_mgr.h | 64 …virtual void CreateRunningLock(const sptr<IRemoteObject>& token, const RunningLockInfo& runningLoc… 65 virtual void ReleaseRunningLock(const sptr<IRemoteObject>& token) = 0; 67 virtual void Lock(const sptr<IRemoteObject>& token, const RunningLockInfo& runningLockInfo, 69 virtual void UnLock(const sptr<IRemoteObject>& token) = 0; 70 virtual bool IsUsed(const sptr<IRemoteObject>& token) = 0; 71 …virtual void SetWorkTriggerList(const sptr<IRemoteObject>& token, const WorkTriggerList& workTrigg…
|
/base/powermgr/power_manager/services/zidl/include/ |
D | power_mgr_proxy.h | 34 …virtual void CreateRunningLock(const sptr<IRemoteObject>& token, const RunningLockInfo& runningLoc… 35 virtual void ReleaseRunningLock(const sptr<IRemoteObject>& token) override; 37 virtual void Lock(const sptr<IRemoteObject>& token, const RunningLockInfo& runningLockInfo, 39 virtual void UnLock(const sptr<IRemoteObject>& token) override; 40 …virtual void SetWorkTriggerList(const sptr<IRemoteObject>& token, const WorkTriggerList& workTrigg… 42 virtual bool IsUsed(const sptr<IRemoteObject>& token) override;
|
/base/accessibility/frameworks/aafwk/src/ |
D | accessibility_extension.cpp | 42 const sptr<IRemoteObject> &token) in Init() argument 44 ExtensionBase<AccessibilityExtensionContext>::Init(record, application, handler, token); in Init() 52 const sptr<IRemoteObject> &token) in CreateAndInitContext() argument 55 …sionBase<AccessibilityExtensionContext>::CreateAndInitContext(record, application, handler, token); in CreateAndInitContext()
|
/base/powermgr/power_manager/services/zidl/src/ |
D | power_mgr_stub.cpp | 137 sptr<IRemoteObject> token = data.ReadRemoteObject(); in CreateRunningLockStub() local 138 RETURN_IF_WITH_RET((token == nullptr), E_READ_PARCEL_ERROR); in CreateRunningLockStub() 141 CreateRunningLock(token, *runningLockInfo); in CreateRunningLockStub() 147 sptr<IRemoteObject> token = data.ReadRemoteObject(); in ReleaseRunningLockStub() local 148 RETURN_IF_WITH_RET((token == nullptr), E_READ_PARCEL_ERROR); in ReleaseRunningLockStub() 149 ReleaseRunningLock(token); in ReleaseRunningLockStub() 163 sptr<IRemoteObject> token = data.ReadRemoteObject(); in LockStub() local 164 RETURN_IF_WITH_RET((token == nullptr), E_READ_PARCEL_ERROR); in LockStub() 169 Lock(token, *runningLockInfo, timeOutMs); in LockStub() 175 sptr<IRemoteObject> token = data.ReadRemoteObject(); in UnLockStub() local [all …]
|
/base/startup/syspara_lite/frameworks/token/ |
D | BUILD.gn | 27 sources = [ "src/token_impl_posix/token.c" ] 30 "$ohos_product_adapter_dir/utils/token:haltoken_shared", 38 sources = [ "src/token_impl_hal/token.c" ] 47 deps = [ "$ohos_product_adapter_dir/utils/token:hal_token_static" ] 51 lite_component("token") { 67 deps += [ "//base/startup/syspara_lite/frameworks/token:token_shared" ]
|
/base/security/access_token/services/accesstokenmanager/ |
D | BUILD.gn | 30 "main/cpp/include/token", 54 "main/cpp/src/token/accesstoken_id_manager.cpp", 55 "main/cpp/src/token/accesstoken_info_manager.cpp", 56 "main/cpp/src/token/hap_token_info_inner.cpp", 57 "main/cpp/src/token/native_token_info_inner.cpp", 58 "main/cpp/src/token/native_token_receptor.cpp", 75 "main/cpp/src/token/accesstoken_remote_token_manager.cpp", 76 "main/cpp/src/token/token_modify_notifier.cpp",
|
/base/user_iam/user_idm/interfaces/kits/napi/src/ |
D | auth_common.cpp | 99 napi_value token; in GetNamedAttribute() local 100 napi_status status = napi_get_named_property(env, obj, PROPERTY_KEY_EVENT, &token); in GetNamedAttribute() 111 napi_is_typedarray(env, token, &isTypedArray); in GetNamedAttribute() 118 …napi_get_typedarray_info(env, token, &arraytype, &length, reinterpret_cast<void **>(&data), &buffe… in GetNamedAttribute() 179 asyncCallbackContext->token = GetNamedAttribute(env, argv[0]); in JudgeObjectType() 180 if (asyncCallbackContext->token.empty()) { in JudgeObjectType() 182 asyncCallbackContext->token.push_back(0); in JudgeObjectType() 200 asyncCallbackContext->token = JudgeArryType(env, ZERO_PARAMETER, argv); in JudgeDelUserType() 201 if (asyncCallbackContext->token.empty()) { in JudgeDelUserType() 203 asyncCallbackContext->token.push_back(0); in JudgeDelUserType() [all …]
|
/base/powermgr/powermgr_lite/frameworks/include/ |
D | running_lock_entry.h | 29 uint64_t token; member 54 return ((a->pid == b->pid) && (a->token == b->token)) ? TRUE : FALSE; in IsSameRunningLockIdentity()
|
/base/user_iam/face_auth/ui/Settings_FaceAuth/entry/src/main/ets/enrollmentstartview/model/ |
D | userIDMModel.ets | 24 private token: Uint8Array 59 let token = new Uint8Array(buffer) 60 return token 63 setToken(token: Uint8Array) { 64 let tokenStr = this.uin8Array2String(token); 66 Log.info(this.TAG, "setToken ok " + JSON.stringify(token)) 71 let token = this.string2Uint8Array(tokenStr) 72 Log.info(this.TAG, "getToken ok " + JSON.stringify(token)) 73 return token 114 token: localToken,
|
/base/security/access_token/services/tokensyncmanager/src/command/ |
D | sync_remote_native_token_command.cpp | 50 NativeTokenInfo token; in SyncRemoteNativeTokenCommand() local 51 BaseRemoteCommand::FromNativeTokenInfoJson(tokenJson, token); in SyncRemoteNativeTokenCommand() 52 nativeTokenInfo_.emplace_back(token); in SyncRemoteNativeTokenCommand() 61 for (auto token : nativeTokenInfo_) { in ToJsonPayload() local 62 nlohmann::json tokenJson = BaseRemoteCommand::ToNativeTokenInfoJson(token); in ToJsonPayload()
|
/base/account/os_account/services/accountmgr/src/appaccount/ |
D | app_account_info.cpp | 225 ErrCode AppAccountInfo::GetOAuthToken(const std::string &authType, std::string &token) const in GetOAuthToken() 227 token = ""; in GetOAuthToken() 229 if ((it == oauthTokens_.end()) || (it->second.token.empty())) { in GetOAuthToken() 233 token = it->second.token; in GetOAuthToken() 237 ErrCode AppAccountInfo::SetOAuthToken(const std::string &authType, const std::string &token) in SetOAuthToken() argument 241 it->second.token = token; in SetOAuthToken() 249 tokenInfo.token = token; in SetOAuthToken() 254 ErrCode AppAccountInfo::DeleteOAuthToken(const std::string &authType, const std::string &token) in DeleteOAuthToken() argument 257 if ((it != oauthTokens_.end()) && (it->second.token == token)) { in DeleteOAuthToken() 258 it->second.token = ""; in DeleteOAuthToken() [all …]
|