/ohos5.0/docs/zh-cn/application-dev/reference/apis-arkweb/ |
H A D | _ark_web___cookie_manager_a_p_i.md | 54 设置指定URL的cookie值。 60 | url | 指定cookie所属的URL,建议填写完整的URL。 | 61 | cookieValue | 要设置的cookie的值。 | 62 | incognito | true表示在隐私模式下设置对应URL的Cookie,talse表示以非隐私模式设置对应URL的cookie。 | 63 | includeHttpOnly | 如果为true,则标记为HTTP-Only的cookie也可以被覆盖。 | 83 | incognito | true表示隐私模式下是否存在cookie,false表示非隐私模式下是否存在cookie。 | 87 true表示cookie存在,false表示cookie不存在。 97 获取指定URL对应的cookie值。 103 | url | 要获取的cookie所属的URL,建议使用完整的URL。 | 104 | incognito | true表示获取隐私模式下webview的内存cookie, false表示获取非隐私模式下的cookie。 | [all …]
|
/ohos5.0/base/security/device_security_level/interfaces/inner_api/src/standard/ |
H A D | device_security_level_callback_helper.cpp | 71 bool DeviceSecurityLevelCallbackHelper::Withdraw(uint32_t cookie) in Withdraw() argument 73 if (cookie == 0) { in Withdraw() 77 auto result = holder_.PopCallback(cookie); in Withdraw() 89 auto cookie = data.ReadUint32(); in OnRemoteRequest() local 93 holder_.PopCallback(cookie, result, level); in OnRemoteRequest() 110 const ResultCallback &callback, uint32_t keep, uint32_t &cookie) in PushCallback() argument 118 cookie = ++generate_; in PushCallback() 119 CallbackInfo info = {.identity = identity, .callback = callback, .cookie = cookie}; in PushCallback() 122 auto deleter = [cookie, this]() { PopCallback(cookie, ERR_TIMEOUT, 0); }; in PushCallback() 136 auto iter = map_.find(cookie); in PopCallback() [all …]
|
H A D | device_security_level_callback_helper.h | 44 sptr<DeviceSecurityLevelCallbackStub> &stub, uint32_t &cookie); 45 bool Withdraw(uint32_t cookie); 52 uint64_t cookie {0}; 59 uint32_t &cookie); 60 bool PopCallback(uint32_t cookie, uint32_t result, uint32_t level); 61 bool PopCallback(uint32_t cookie);
|
/ohos5.0/base/security/device_security_level/services/sa/standard/ |
H A D | dslm_ipc_process.cpp | 45 if ((cookie == 0) || (info == nullptr)) { in ProcessCallback() 60 proxy->ResponseDeviceSecurityLevel(cookie, resInfo); in ProcessCallback() 64 sptr<IRemoteObject> &object, uint32_t &cookie) in DslmGetRequestFromParcel() argument 98 cookie = data.ReadUint32(); in DslmGetRequestFromParcel() 99 if (cookie == 0) { in DslmGetRequestFromParcel() 156 uint32_t cookie; in DslmProcessGetDeviceSecurityLevel() local 167 Singleton<RemoteHolder>::GetInstance().Push(owner, cookie, callback); in DslmProcessGetDeviceSecurityLevel() 171 Singleton<RemoteHolder>::GetInstance().Pop(owner, cookie); in DslmProcessGetDeviceSecurityLevel() 176 ret = DslmSetResponseToParcel(reply, cookie); in DslmProcessGetDeviceSecurityLevel() 178 Singleton<RemoteHolder>::GetInstance().Pop(owner, cookie); in DslmProcessGetDeviceSecurityLevel() [all …]
|
/ohos5.0/base/startup/init/test/fuzztest/systemtraversalparameter_fuzzer/ |
H A D | systemtraversalparameter_fuzzer.cpp | 25 static void FakeShowParam(ParamHandle handle, void *cookie) in FakeShowParam() argument 27 Cookie *nameAndValue = reinterpret_cast<Cookie*>(cookie); in FakeShowParam() 43 Cookie *cookie = &instance; in FuzzSystemTraversalParameter() local 50 cookie->data = static_cast<char *>(calloc(1, size)); in FuzzSystemTraversalParameter() 51 if (cookie->data == nullptr) { in FuzzSystemTraversalParameter() 54 cookie->size = size; in FuzzSystemTraversalParameter() 56 int ret = memcpy_s(cookie->data, size, str.c_str(), size); in FuzzSystemTraversalParameter() 60 if (!SystemTraversalParameter(nullptr, FakeShowParam, reinterpret_cast<void*>(cookie))) { in FuzzSystemTraversalParameter() 63 free(cookie->data); in FuzzSystemTraversalParameter() 64 cookie->data = nullptr; in FuzzSystemTraversalParameter() [all …]
|
/ohos5.0/foundation/ai/intelligent_voice_framework/utils/ |
H A D | timer_mgr.h | 31 explicit TimerCfg(int type = 0, int64_t delayUs = 0, int cookie = 0) 32 : type(type), delayUs(delayUs), cookie(cookie) 38 int cookie; member 43 …cit TimerEvent(int type = 0, int timeId = 0, int cookie = 0) : type(type), timeId(timeId), cookie(… 47 int cookie; member 63 explicit TimerItem(int id = 0, int type = 0, int cookie = 0, 76 int cookie; member 88 int SetTimer(int type, int64_t delayUs, int cookie = 0, ITimerObserver *currObserver = nullptr); 89 … int ResetTimer(int timerId, int type, int64_t delayUs, int cookie, ITimerObserver *currObserver);
|
H A D | timer_mgr.cpp | 59 TimerItem::TimerItem(int id, int type, int cookie, int64_t delayUs, ITimerObserver *observer) in TimerItem() argument 60 : timerId(id), type(type), cookie(cookie), observer(observer) in TimerItem() 116 int TimerMgr::SetTimer(int type, int64_t delayUs, int cookie, ITimerObserver *currObserver) in SetTimer() argument 137 shared_ptr<TimerItem> addItem = make_shared<TimerItem>(id, type, cookie, delayUs, observer); in SetTimer() 157 …t timer id " << id << " type " << type << " delay " << delayUs << " cookie " << cookie << " time "; in SetTimer() 163 int TimerMgr::ResetTimer(int timerId, int type, int64_t delayUs, int cookie, ITimerObserver *currOb… in ResetTimer() argument 180 return SetTimer(type, delayUs, cookie, currObserver); in ResetTimer() 191 timerId, curItem->type, curItem->cookie); in KillTimer() 243 TimerEvent info(item.type, item.timerId, item.cookie); in Run()
|
/ohos5.0/foundation/communication/ipc/ipc/native/c/ipc/src/linux/ |
H A D | serializer_inner.c | 43 static bool IpcIoPushObject(IpcIo *io, uint32_t token, uintptr_t cookie) in IpcIoPushObject() argument 52 ptr->binder = (uintptr_t)cookie; in IpcIoPushObject() 53 ptr->cookie = cookie; in IpcIoPushObject() 57 static bool IpcIoPushRef(IpcIo *io, uint32_t handle, uintptr_t cookie) in IpcIoPushRef() argument 67 ptr->cookie = cookie; in IpcIoPushRef() 98 res = IpcIoPushObject(io, svc->token, svc->cookie); in WriteRemoteObject() 100 res = IpcIoPushRef(io, svc->handle, svc->cookie); in WriteRemoteObject() 118 svc->cookie = obj->cookie; in ReadRemoteObject() 121 svc->cookie = obj->cookie; in ReadRemoteObject() 141 ptr->cookie = 1; in WriteFileDescriptor()
|
H A D | ipc_invoker.c | 146 buf->btd.cookie = 0; in ToTransData() 178 data.payload.cookie = ptrCookie->cookie; in BinderRefDone() 222 objectStub = (IpcObjectStub *)tr->cookie; in HandleTransaction() 258 static void HandleDeadBinderDone(void *cookie) in HandleDeadBinderDone() argument 262 binder_uintptr_t cookie; in HandleDeadBinderDone() member 265 data.cookie = (binder_uintptr_t)cookie; in HandleDeadBinderDone() 405 samgr->cookie = target.cookie; in IpcSetRegistryObject() 416 IpcObjectStub *objectStub = (IpcObjectStub *)(sid.cookie); in InternalRequest() 498 static int32_t IpcAddDeathRecipient(int32_t handle, void *cookie) in IpcAddDeathRecipient() argument 506 data.payload.cookie = (binder_uintptr_t)cookie; in IpcAddDeathRecipient() [all …]
|
/ohos5.0/base/security/device_security_level/services/sa/lite/small/ |
H A D | dslm_ipc_process.c | 55 RequestOption *option, uint32_t *cookie) in DslmGetRequestFromParcel() argument 76 ReadUint32(req, cookie); in DslmGetRequestFromParcel() 77 if (cookie == 0) { in DslmGetRequestFromParcel() 90 uint64_t key = ((uint64_t)owner << COOKIE_SHIFT) | cookie; in DslmPushRemoteStub() 107 static IpcIo *DslmPopRemoteStub(uint32_t owner, uint32_t cookie) in DslmPopRemoteStub() argument 114 uint64_t key = ((uint64_t)owner << COOKIE_SHIFT) | cookie; in DslmPopRemoteStub() 137 if ((cookie == 0) || (info == NULL)) { in ProcessCallback() 141 reply = DslmPopRemoteStub(owner, cookie); in ProcessCallback() 160 uint32_t cookie; in DslmProcessGetDeviceSecurityLevel() local 169 DslmPushRemoteStub(owner, cookie, reply); in DslmProcessGetDeviceSecurityLevel() [all …]
|
/ohos5.0/docs/en/application-dev/reference/apis-arkweb/ |
H A D | _ark_web___cookie_manager_a_p_i.md | 54 Pointer to the function used to set the cookie value of a specified URL. 60 | url | The URL to which the cookie belongs. It must be a complete URL. | 63 | includeHttpOnly | Whether the cookie marked as HttpOnly can be overwritten. | 67 …e cookie is set successfully; returns [ARKWEB_INVALID_URL](_web.md) if the URL is invalid; returns… 77 Pointer to the function used to check whether the cookie exists. 83 | incognito | Whether the cookie exists in incognito mode (true) or in non-incognito mode (false). | 87 Returns **true** if the cookie exists; returns **false** if the cookie does not exist. 97 Pointer to the function used to obtain the cookie value of a specified URL. 103 | url | URL of the cookie to obtain. A complete URL is recommended. | 105 | includeHttpOnly | Whether to include the cookie marked as HttpOnly. | [all …]
|
/ohos5.0/foundation/communication/dsoftbus/sdk/frame/small/src/ |
H A D | softbus_client_context_manager.c | 25 unsigned int cookie; member 53 void SetClientIdentity(unsigned int handle, unsigned int token, unsigned int cookie) in SetClientIdentity() argument 62 g_clientCtx->cookie = cookie; in SetClientIdentity() 65 int GetClientIdentity(unsigned int *handle, unsigned int *token, unsigned int *cookie) in GetClientIdentity() argument 67 if (handle == NULL || token == NULL || cookie == NULL) { in GetClientIdentity() 79 *cookie = g_clientCtx->cookie; in GetClientIdentity()
|
/ohos5.0/base/security/device_security_level/services/sa/lite/mini/ |
H A D | dslm_inner_process.c | 60 static BOOL DslmPushRemoteStub(uint32_t owner, uint32_t cookie, const DeviceIdentify *identify, in DslmPushRemoteStub() argument 66 uint64_t key = ((uint64_t)owner << COOKIE_SHIFT) | cookie; in DslmPushRemoteStub() 84 static DslmRemoteStubListNode *DslmPopRemoteStub(uint32_t owner, uint32_t cookie) in DslmPopRemoteStub() argument 91 uint64_t key = ((uint64_t)owner << COOKIE_SHIFT) | cookie; in DslmPopRemoteStub() 109 static void ProcessCallback(uint32_t owner, uint32_t cookie, uint32_t result, const DslmCallbackInf… in ProcessCallback() argument 111 if ((cookie == 0) || (info == NULL)) { in ProcessCallback() 115 DslmRemoteStubListNode *item = DslmPopRemoteStub(owner, cookie); in ProcessCallback() 144 DslmPushRemoteStub(owner, req->cookie, req->identity, callback); in DslmProcessGetDeviceSecurityLevel() 145 …int32_t ret = OnRequestDeviceSecLevelInfo(req->identity, req->option, owner, req->cookie, ProcessC… in DslmProcessGetDeviceSecurityLevel() 149 DslmRemoteStubListNode *item = DslmPopRemoteStub(owner, req->cookie); in DslmProcessGetDeviceSecurityLevel()
|
/ohos5.0/base/security/device_security_level/services/dfx/ |
H A D | dslm_hitrace.cpp | 42 void DslmStartProcessTraceAsync(const char *value, uint32_t owner, uint32_t cookie) in DslmStartProcessTraceAsync() argument 44 …tring traceValue = std::string(value) + "_" + std::to_string(owner) + "_" + std::to_string(cookie); in DslmStartProcessTraceAsync() 45 StartAsyncTrace(HITRACE_TAG_DLSM, traceValue, cookie); in DslmStartProcessTraceAsync() 48 void DslmFinishProcessTraceAsync(const char *value, uint32_t owner, uint32_t cookie) in DslmFinishProcessTraceAsync() argument 50 …tring traceValue = std::string(value) + "_" + std::to_string(owner) + "_" + std::to_string(cookie); in DslmFinishProcessTraceAsync() 51 FinishAsyncTrace(HITRACE_TAG_DLSM, traceValue, cookie); in DslmFinishProcessTraceAsync()
|
/ohos5.0/docs/zh-cn/device-dev/reference/hdi-apis/audio/ |
H A D | interface_i_audio_callback_v20.md | 20 …pe](_hdi_audio_v20.md#audiocallbacktype) type, [out] byte reserved, [out] byte cookie) | 放音回调函数。 | 21 …, [in] String condition, [in] String value, [out] byte reserved, [in] byte cookie) | 音频扩展参数回调函数。 | 30 …oExtParamKey key, [in] String condition, [in] String value, [out] byte reserved, [in] byte cookie ) 47 | cookie | 用于传递数据。 | 61 …allback::RenderCallback ([in] enum AudioCallbackType type, [out] byte reserved, [out] byte cookie ) 76 | cookie | 用于传递数据。 |
|
H A D | interface_i_audio_callback_v10.md | 20 …pe](_hdi_audio_v11.md#audiocallbacktype) type, [out] byte reserved, [out] byte cookie) | 放音回调函数。 | 21 …key, [in] byte condition, [in] byte value, [out] byte reserved, [out] byte cookie) | 音频扩展参数回调函数。 | 30 …udioExtParamKey key, [in] byte condition, [in] byte value, [out] byte reserved, [out] byte cookie ) 47 | cookie | 用于传递数据。 | 61 …allback::RenderCallback ([in] enum AudioCallbackType type, [out] byte reserved, [out] byte cookie ) 76 | cookie | 用于传递数据。 |
|
/ohos5.0/foundation/communication/dsoftbus/core/frame/small/client_manager/src/ |
H A D | softbus_client_info_manager.c | 29 unsigned int cookie; /* use for small system device */ member 77 clientInfo->cookie = svcId->cookie; in SERVER_RegisterService() 115 svcId->cookie = clientInfo->cookie; in SERVER_GetIdentityByPkgName() 166 svcId[i].cookie = clientInfo->cookie; in SERVER_GetAllClientIdentity()
|
/ohos5.0/foundation/multimedia/image_framework/frameworks/innerkitsimpl/test/unittest/ |
H A D | mock_refbase_test.cpp | 38 void *cookie = nullptr; variable 39 WeakRefCounter ref(base, cookie); 40 cookie = ref.GetRefPtr(); 41 ASSERT_EQ(cookie, nullptr); 55 void *cookie = nullptr; variable 56 WeakRefCounter ref(base, cookie); 341 void *cookie = nullptr; variable 343 WeakRefCounter *createwk = refb.CreateWeakRef(cookie); 356 void *cookie = nullptr; variable 358 WeakRefCounter *createwk = refb.CreateWeakRef(cookie);
|
/ohos5.0/foundation/communication/ipc/ipc/native/c/ipc/src/linux/include/ |
H A D | sys_binder.h | 72 binder_uintptr_t cookie; member 82 binder_uintptr_t cookie; member 126 binder_uintptr_t cookie; member 158 binder_uintptr_t cookie; member 182 binder_uintptr_t cookie; member 187 binder_uintptr_t cookie; member 197 binder_uintptr_t cookie; member
|
/ohos5.0/foundation/ability/idl_tool/test/hdi_unittest/distributed_audio_audio_v1_0/cpp_target/distributed_audio/audio/v1_0/ |
H A D | audio_callback_proxy.cpp.txt | 33 …OHOS::HDI::DistributedAudio::Audio::V1_0::AudioCallbackType type, int8_t& reserved, int8_t& cookie) 35 …stributedAudio::Audio::V1_0::AudioCallbackProxy::RenderCallback_(type, reserved, cookie, Remote()); 38 …amKey key, const std::string& condition, const std::string& value, int8_t& reserved, int8_t cookie) 40 …Audio::V1_0::AudioCallbackProxy::ParamCallback_(key, condition, value, reserved, cookie, Remote()); 48 …tedAudio::Audio::V1_0::AudioCallbackType type, int8_t& reserved, int8_t& cookie, const sptr<IRemot… 80 if (!audioCallbackReply.ReadInt8(cookie)) { 81 HDF_LOGE("%{public}s: read cookie failed!", __func__); 88 …d::string& condition, const std::string& value, int8_t& reserved, int8_t cookie, const sptr<IRemot… 114 if (!audioCallbackData.WriteInt8(cookie)) { 115 HDF_LOGE("%{public}s: write cookie failed!", __func__);
|
/ohos5.0/foundation/communication/ipc/ipc/test/unittest/rpc/samgr/ |
H A D | RpcSamgrTest.cpp | 43 RPC_LOG_INFO("AddSystemAbility called.... cookie = %u", sid->cookie); in AddSystemAbility() 68 sid->cookie = node->sid->cookie; in GetSystemAbility() 69 … RPC_LOG_INFO("find sa, said = %d, handle = %d, cookie = %u", saId, sid->handle, sid->cookie); in GetSystemAbility() 110 RPC_LOG_INFO("GetRemoteSystemAbility handle=%d, cookie=%u", sid->handle, sid->cookie); in GetRemoteSystemAbility() 230 .cookie = NULL 255 .cookie = (uintptr_t)&objectStub
|
/ohos5.0/foundation/communication/ipc/ipc/test/rpc/samgr/ |
H A D | rpc_samgr.c | 44 RPC_LOG_INFO("AddSystemAbility called.... cookie = %u", sid->cookie); in AddSystemAbility() 69 sid->cookie = node->sid->cookie; in GetSystemAbility() 70 … RPC_LOG_INFO("find sa, said = %d, handle = %d, cookie = %u", saId, sid->handle, sid->cookie); in GetSystemAbility() 109 RPC_LOG_INFO("GetRemoteSystemAbility handle=%d, cookie=%u", sid->handle, sid->cookie); in GetRemoteSystemAbility() 180 .cookie = (uintptr_t)&objectStub in main()
|
/ohos5.0/foundation/communication/ipc/ipc/native/c/ipc/src/liteos_a/ |
H A D | serializer_inner.c | 35 uintptr_t GetObjectStub(uintptr_t cookie) in GetObjectStub() argument 37 if (cookie != NULL) { in GetObjectStub() 38 g_objectStub = cookie; in GetObjectStub() 121 ptr->content.svc.cookie = svc->cookie; in WriteRemoteObject() 125 IpcObjectStub *stub = (IpcObjectStub *)ptr->content.svc.cookie; in WriteRemoteObject()
|
/ohos5.0/foundation/distributedhardware/device_manager/services/service/src/ipc/lite/ |
H A D | ipc_server_stub.cpp | 67 sid.cookie = svcId.cookie; in DeathCb() 86 svcId.cookie = svc.cookie; in RegisterDeviceManagerListener() 128 sid.cookie = svcId.cookie; in UnRegisterDeviceManagerListener()
|
/ohos5.0/foundation/ability/idl_tool/test/hdi_unittest/audio_v2_0/foo/audio/v2_0/ |
H A D | IAudioCallback.idl | 40 * @param cookie Indicates the pointer to the cookie for data transmission. 50 * @param cookie Indicates the pointer to the cookie for data transmission. 54 RenderCallback([in] enum AudioCallbackType type, [out] byte reserved, [out] byte cookie); 63 * @param cookie Indicates the pointer to the callback parameters; 66 …oExtParamKey key, [in] String condition, [in] String value, [out] byte reserved, [in] byte cookie);
|