/foundation/communication/netmanager_ext/test/networksharemanager/unittest/networkshare_manager_test/ |
H A D | networkshare_manager_usb_test.cpp | 55 NetManagerExtAccessToken token; in HWTEST_F() local 65 NetManagerExtAccessToken token; in HWTEST_F() local
|
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/storage/include/ |
H A D | relational_db_sync_interface.h | 47 // return OK, when query finished. token will be set NULL; when query unfinished. token must not be null. 48 // return other errCode, some wrong, token will be set NULL. 50 ContinueToken &token) const = 0; 58 virtual void ReleaseRemoteQueryContinueToken(ContinueToken &token) const = 0;
|
/foundation/ability/ability_runtime/frameworks/native/ability/native/recovery/ |
H A D | ability_recovery.cpp | 73 const std::shared_ptr<AbilityInfo>& abilityInfo, const sptr<IRemoteObject>& token) in InitAbilityInfo() 78 token_ = token; in InitAbilityInfo() 264 auto token = token_.promote(); in ScheduleSaveAbilityState() local 265 if (token == nullptr) { in ScheduleSaveAbilityState() 266 TAG_LOGE(AAFwkTag::RECOVERY, "token is nullptr"); in ScheduleSaveAbilityState() 275 abilityMgr->EnableRecoverAbility(token); in ScheduleSaveAbilityState() 278 abilityMgr->SubmitSaveRecoveryInfo(token); in ScheduleSaveAbilityState() 298 auto token = token_.promote(); in ScheduleRecoverAbility() local 299 if (token == nullptr) { in ScheduleRecoverAbility() 302 abilityMgr->ScheduleRecoverAbility(token, reaso in ScheduleRecoverAbility() 72 InitAbilityInfo(const std::shared_ptr<AbilityRuntime::UIAbility> ability, const std::shared_ptr<AbilityInfo>& abilityInfo, const sptr<IRemoteObject>& token) InitAbilityInfo() argument [all...] |
/foundation/communication/ipc/ipc/native/src/c_api/source/ |
H A D | ipc_cparcel.cpp | 327 int OH_IPCParcel_WriteInterfaceToken(OHIPCParcel *parcel, const char *token) in OH_IPCParcel_WriteInterfaceToken() argument 329 if (!IsIPCParcelValid(parcel, __func__) || token == nullptr) { in OH_IPCParcel_WriteInterfaceToken() 333 int tokenLen = strlen(token); in OH_IPCParcel_WriteInterfaceToken() 337 std::u16string u16Token = OHOS::Str8ToStr16(std::string(token, tokenLen)); in OH_IPCParcel_WriteInterfaceToken() 339 ZLOGE(LOG_LABEL, "convert token to u16string failed: %{public}d", tokenLen); in OH_IPCParcel_WriteInterfaceToken() 344 ZLOGE(LOG_LABEL, "WriteInterfaceToken failed! token len:%{public}d", tokenLen); in OH_IPCParcel_WriteInterfaceToken() 351 int OH_IPCParcel_ReadInterfaceToken(const OHIPCParcel *parcel, char **token, int32_t *len, in OH_IPCParcel_ReadInterfaceToken() argument 354 if (!IsIPCParcelValid(parcel, __func__) || !IsMemoryParamsValid(token, len, allocator, __func__)) { in OH_IPCParcel_ReadInterfaceToken() 368 *token = static_cast<char*>(allocator(memLength)); in OH_IPCParcel_ReadInterfaceToken() 369 if (*token in OH_IPCParcel_ReadInterfaceToken() [all...] |
/foundation/communication/netstack/test/unittest/tls_test/client/ |
H A D | TlsSocketUnilateralConnection.cpp | 140 AccessToken token;
in HWTEST_F() local 152 AccessToken token;
in HWTEST_F() local 169 AccessToken token;
in HWTEST_F() local 188 AccessToken token;
in HWTEST_F() local 215 AccessToken token;
in HWTEST_F() local 245 AccessToken token;
in HWTEST_F() local 274 AccessToken token;
in HWTEST_F() local 303 AccessToken token;
in HWTEST_F() local 340 AccessToken token;
in HWTEST_F() local
|
/foundation/communication/netstack/test/unittest/tlssocket/client/ |
H A D | TlsSocketUnilateralConnection.cpp | 140 AccessToken token; in HWTEST_F() local 152 AccessToken token; in HWTEST_F() local 169 AccessToken token; in HWTEST_F() local 188 AccessToken token; in HWTEST_F() local 215 AccessToken token; in HWTEST_F() local 245 AccessToken token; in HWTEST_F() local 274 AccessToken token; in HWTEST_F() local 303 AccessToken token; in HWTEST_F() local 340 AccessToken token; in HWTEST_F() local
|
/foundation/window/window_manager/wm/include/ |
H A D | window_adapter.h | 43 std::shared_ptr<RSSurfaceNode> surfaceNode, uint32_t& windowId, const sptr<IRemoteObject>& token); 105 SystemSessionConfig& systemConfig, sptr<IRemoteObject> token = nullptr); 108 sptr<WindowSessionProperty> property, sptr<ISession>& session, sptr<IRemoteObject> token = nullptr); 114 sptr<ISession>& session, sptr<WindowSessionProperty> property, sptr<IRemoteObject> token = nullptr); 123 const sptr<IRemoteObject>& token, uint64_t surfaceNodeId); 125 const sptr<IRemoteObject>& token); 126 virtual void UpdateModalExtensionRect(const sptr<IRemoteObject>& token, Rect rect); 127 virtual void ProcessModalExtensionPointDown(const sptr<IRemoteObject>& token, int32_t posX, int32_t posY); 129 virtual WMError UpdateExtWindowFlags(const sptr<IRemoteObject>& token, uint32_t extWindowFlags,
|
/foundation/window/window_manager/wmserver/include/zidl/ |
H A D | window_manager_interface.h | 97 uint32_t& windowId, sptr<IRemoteObject> token) = 0; 172 SystemSessionConfig& systemConfig, sptr<IRemoteObject> token = nullptr) { return WSError::WS_OK; } in CreateAndConnectSpecificSession() 175 sptr<WindowSessionProperty> property, sptr<ISession>& session, sptr<IRemoteObject> token = nullptr) in RecoverAndConnectSpecificSession() 184 sptr<ISession>& session, sptr<WindowSessionProperty> property, sptr<IRemoteObject> token = nullptr) in RecoverAndReconnectSceneSession() 206 const sptr<IRemoteObject>& token, uint64_t surfaceNodeId) {} in AddExtensionWindowStageToSCB() 208 const sptr<IRemoteObject>& token) {} in RemoveExtensionWindowStageFromSCB() 209 virtual void UpdateModalExtensionRect(const sptr<IRemoteObject>& token, Rect rect) {} in UpdateModalExtensionRect() argument 210 virtual void ProcessModalExtensionPointDown(const sptr<IRemoteObject>& token, int32_t posX, int32_t posY) {} in ProcessModalExtensionPointDown() argument 215 virtual WSError UpdateExtWindowFlags(const sptr<IRemoteObject>& token, uint32_t extWindowFlags, in UpdateExtWindowFlags() argument 205 AddExtensionWindowStageToSCB(const sptr<ISessionStage>& sessionStage, const sptr<IRemoteObject>& token, uint64_t surfaceNodeId) AddExtensionWindowStageToSCB() argument 207 RemoveExtensionWindowStageFromSCB(const sptr<ISessionStage>& sessionStage, const sptr<IRemoteObject>& token) RemoveExtensionWindowStageFromSCB() argument
|
/foundation/filemanagement/storage_service/services/storage_daemon/ipc/src/ |
H A D | storage_daemon_stub.cpp | 454 std::vector<uint8_t> token; in HandleUpdateUserAuth() local 457 data.ReadUInt8Vector(&token); in HandleUpdateUserAuth() 461 int err = UpdateUserAuth(userId, secureUid, token, oldSecret, newSecret); in HandleUpdateUserAuth() 474 std::vector<uint8_t> token; in HandleUpdateUseAuthWithRecoveryKey() local 476 data.ReadUInt8Vector(&token); in HandleUpdateUseAuthWithRecoveryKey() 486 int err = UpdateUseAuthWithRecoveryKey(token, newSecret, secureUid, userId, plainText); in HandleUpdateUseAuthWithRecoveryKey() 498 std::vector<uint8_t> token; in HandleActiveUserKey() local 500 data.ReadUInt8Vector(&token); in HandleActiveUserKey() 503 int err = ActiveUserKey(userId, token, secret); in HandleActiveUserKey() 539 std::vector<uint8_t> token; in HandleUnlockUserScreen() local 600 std::vector<uint8_t> token; HandleCreateRecoverKey() local [all...] |
/foundation/distributedhardware/device_manager/test/unittest/ |
H A D | UTTest_device_manager_notify_three.cpp | 267 std::string token = "111"; in HWTEST_F() local 270 DeviceManagerNotify::GetInstance().OnAuthResult(pkgName, deviceId, token, status, reason); in HWTEST_F() 310 std::string token = "111"; in HWTEST_F() local 313 DeviceManagerNotify::GetInstance().OnAuthResult(testPkgName, deviceId, token, status, reason); in HWTEST_F() 353 std::string token = "111"; in HWTEST_F() local 356 DeviceManagerNotify::GetInstance().OnAuthResult(pkgName, testDeviceId, token, status, reason); in HWTEST_F() 395 std::string token = "111"; in HWTEST_F() local 398 DeviceManagerNotify::GetInstance().OnAuthResult(pkgName, deviceId, token, status, reason); in HWTEST_F() 440 std::string token = "111"; in HWTEST_F() local 443 DeviceManagerNotify::GetInstance().OnAuthResult(testPkaName, deviceId, token, statu in HWTEST_F() 485 std::string token = "111"; HWTEST_F() local 529 std::string token = "111"; HWTEST_F() local 1091 OnAuthResult(const std::string &deviceId, const std::string &token, int32_t status, int32_t reason) OnAuthResult() argument [all...] |
/foundation/window/window_manager/window_scene/session_manager/src/zidl/ |
H A D | scene_session_manager_lite_stub.cpp | 33 WLOGFE("Failed to check interface token!"); in OnRemoteRequest() 136 sptr<IRemoteObject> token = data.ReadRemoteObject(); in HandleSetSessionLabel() local 142 WSError errCode = SetSessionLabel(token, label); in HandleSetSessionLabel() 150 sptr<IRemoteObject> token = data.ReadRemoteObject(); in HandleSetSessionIcon() local 156 WSError errCode = SetSessionIcon(token, icon); in HandleSetSessionIcon() 176 sptr<IRemoteObject> token = data.ReadRemoteObject(); in HandlePendingSessionToForeground() local 177 if (token == nullptr) { in HandlePendingSessionToForeground() 178 WLOGFE("token is nullptr"); in HandlePendingSessionToForeground() 181 WSError errCode = PendingSessionToForeground(token); in HandlePendingSessionToForeground() 189 sptr<IRemoteObject> token in HandlePendingSessionToBackgroundForDelegator() local 357 sptr<IRemoteObject> token = nullptr; HandleGetFocusSessionToken() local 377 sptr <IRemoteObject> token = data.ReadRemoteObject(); HandleSetSessionContinueState() local [all...] |
/foundation/ability/idl_tool/idl_tool_2/ |
H A D | build_hdi_files_info.py | 373 token = lex.peek_token() 376 token.info(), token.value)) 378 CodeGen.get_package_path(token.value) + ".idl") 414 lex.get_token() # package token 415 token = lex.peek_token() 416 if token.token_type != TokenType.ID: 418 token.info(), token.value)) 419 token 435 lex.get_token() # import token global() namespace [all...] |
/foundation/communication/ipc/ipc/native/test/unittest/common/ |
H A D | ipc_capi_parcel_unittest.cpp | 77 void ReadWriteInterfaceToken(const char *token, uint32_t &writeDuration, uint32_t &readDuration); 78 void ReadWriteInterfaceTokenCpp(const char *token, uint32_t &writeDuration, uint32_t &readDuration); 274 void IpcCApiParcelUnitTest::ReadWriteInterfaceToken(const char *token, in ReadWriteInterfaceToken() argument 280 ret = OH_IPCParcel_WriteInterfaceToken(dataCParcel, token); in ReadWriteInterfaceToken() 290 EXPECT_EQ(strcmp(token, readInterfaceToken), 0); in ReadWriteInterfaceToken() 291 EXPECT_EQ(readLen, strlen(token) + 1); in ReadWriteInterfaceToken() 297 void IpcCApiParcelUnitTest::ReadWriteInterfaceTokenCpp(const char *token, in ReadWriteInterfaceTokenCpp() argument 302 auto u16Token = OHOS::Str8ToStr16(token); in ReadWriteInterfaceTokenCpp() 311 EXPECT_EQ(strTokenRead.length(), strlen(token)); in ReadWriteInterfaceTokenCpp() 312 EXPECT_EQ(strTokenRead.compare(token), in ReadWriteInterfaceTokenCpp() 319 char token[MAX_INTERFACE_TOKEN_LEN] = {0}; ReadWriteInterfaceTokenPerformance() local 760 const char *token = "hello, world!"; HWTEST_F() local [all...] |
/foundation/communication/ipc/ipc/test/auxiliary/native/src/ |
H A D | test_service_skeleton.cpp | 488 bool TestServiceProxy::CheckTokenSelf(uint64_t token, uint64_t tokenSelf, uint64_t ftoken, uint64_t ftoken_expected) in CheckTokenSelf() argument 490 if (token != tokenSelf) { in CheckTokenSelf() 491 ZLOGE(LABEL, "token != tokenSelf"); in CheckTokenSelf() 535 uint64_t token = IPCSkeleton::GetCallingFullTokenID(); in TestAccessTokenID64() local 541 if (!CheckTokenSelf(token, tokenSelf, ftoken, 0)) { in TestAccessTokenID64() 558 token = replyParcel1.ReadUint64(); in TestAccessTokenID64() 561 if (token != token_expected) { in TestAccessTokenID64() 562 ZLOGE(LABEL, "token != token_expected, token:%{public}" PRIu64, token); in TestAccessTokenID64() 583 int32_t token = (int32_t)IPCSkeleton::GetCallingTokenID(); TestAccessTokenID() local 839 std::string token = IPCSkeleton::ResetCallingIdentity(); ServerCallingUidAndPid() local 864 int32_t token = static_cast<int32_t>(IPCSkeleton::GetCallingTokenID()); ServerAccessTokenId() local 875 uint64_t token = IPCSkeleton::GetCallingFullTokenID(); ServerAccessTokenId64() local [all...] |
/foundation/ability/ability_runtime/test/fuzztest/abilitymgrappexitreasonhelper_fuzzer/ |
H A D | abilitymgrappexitreasonhelper_fuzzer.cpp | 54 sptr<Token> token = nullptr; in GetFuzzAbilityToken() local 61 token = abilityRecord->GetToken(); in GetFuzzAbilityToken() 63 return token; in GetFuzzAbilityToken()
|
/foundation/ability/ability_runtime/test/fuzztest/abilitymgrcontrolinterceptor_fuzzer/ |
H A D | abilitymgrcontrolinterceptor_fuzzer.cpp | 53 sptr<Token> token = nullptr; in GetFuzzAbilityToken() local 60 token = abilityRecord->GetToken(); in GetFuzzAbilityToken() 62 return token; in GetFuzzAbilityToken()
|
/foundation/ability/ability_runtime/test/fuzztest/appmgrrest_fuzzer/ |
H A D | appmgrrest_fuzzer.cpp | 55 sptr<Token> token = nullptr; in GetFuzzAbilityToken() local 63 token = abilityRecord->GetToken(); in GetFuzzAbilityToken() 66 return token; in GetFuzzAbilityToken()
|
/foundation/ability/ability_runtime/utils/global/freeze/src/ |
H A D | freeze_util.cpp | 68 void FreezeUtil::DeleteLifecycleEvent(sptr<IRemoteObject> token) in DeleteLifecycleEvent() argument 74 LifecycleFlow foregroundFlow = { token, TimeoutState::FOREGROUND }; in DeleteLifecycleEvent() 77 LifecycleFlow backgroundFlow = { token, TimeoutState::BACKGROUND }; in DeleteLifecycleEvent()
|
/foundation/ability/ability_runtime/frameworks/native/ability/native/continuation/remote_register_service/ |
H A D | remote_register_service_proxy.cpp | 27 int RemoteRegisterServiceProxy::Register(const std::string &bundleName, const sptr<IRemoteObject> &token, in Register() argument 30 if (bundleName.empty() || token == nullptr || callback == nullptr) { in Register() 37 !data.WriteRemoteObject(token) || !data.WriteInt32(1) || !extras.Marshalling(data) || in Register() 57 * @param registerToken token from register return value. 81 * @param registerToken token from register. 108 * @param registerToken token from register
|
/foundation/ability/ability_runtime/interfaces/kits/native/ability/native/ |
H A D | extension_impl.h | 50 * @param token the remote token. 55 std::shared_ptr<AppExecFwk::AbilityHandler> &handler, const sptr<IRemoteObject> &token); 218 ExtensionWindowLifeCycleImpl(const sptr<IRemoteObject>& token, const std::shared_ptr<ExtensionImpl>& owner) in ExtensionWindowLifeCycleImpl() argument 219 : token_(token), owner_(owner) {} in ExtensionWindowLifeCycleImpl()
|
/foundation/ability/ability_runtime/test/fuzztest/abilityinterfacesappmgrrenderstateobserverstub_fuzzer/ |
H A D | abilityinterfacesappmgrrenderstateobserverstub_fuzzer.cpp | 63 sptr<Token> token = nullptr; in GetFuzzAbilityToken() local 70 token = abilityRecord->GetToken(); in GetFuzzAbilityToken() 72 return token; in GetFuzzAbilityToken()
|
/foundation/ability/ability_runtime/test/fuzztest/abilitymgrrdbparserutil_fuzzer/ |
H A D | abilitymgrrdbparserutil_fuzzer.cpp | 54 sptr<Token> token = nullptr; in GetFuzzAbilityToken() local 61 token = abilityRecord->GetToken(); in GetFuzzAbilityToken() 63 return token; in GetFuzzAbilityToken()
|
/foundation/ability/ability_runtime/test/fuzztest/abilityinterfacesappmgrchildschedulerstub_fuzzer/ |
H A D | abilityinterfacesappmgrchildschedulerstub_fuzzer.cpp | 67 sptr<Token> token = nullptr; in GetFuzzAbilityToken() local 74 token = abilityRecord->GetToken(); in GetFuzzAbilityToken() 76 return token; in GetFuzzAbilityToken()
|
/foundation/ability/ability_runtime/test/fuzztest/abilityframeworksnativejsworker_fuzzer/ |
H A D | abilityframeworksnativejsworker_fuzzer.cpp | 54 sptr<Token> token = nullptr; in GetFuzzAbilityToken() local 61 token = abilityRecord->GetToken(); in GetFuzzAbilityToken() 63 return token; in GetFuzzAbilityToken()
|
/foundation/ability/ability_runtime/test/fuzztest/abilitymgrabilitymanagerstub_fuzzer/ |
H A D | abilitymgrabilitymanagerstub_fuzzer.cpp | 54 sptr<Token> token = nullptr; in GetFuzzAbilityToken() local 61 token = abilityRecord->GetToken(); in GetFuzzAbilityToken() 63 return token; in GetFuzzAbilityToken()
|