Home
last modified time | relevance | path

Searched refs:updateCB (Results 1 – 4 of 4) sorted by relevance

/ohos5.0/foundation/ability/ability_runtime/frameworks/js/napi/featureAbility/
H A Dnapi_data_ability_helper_utils.cpp898 static_cast<void *>(updateCB), in UpdateAsync()
899 &updateCB->cbBase.asyncWork)); in UpdateAsync()
910 if (updateCB == nullptr) { in UpdatePromise()
919 updateCB->cbBase.deferred = deferred; in UpdatePromise()
941 if (!updateCB->uri.empty()) { in UpdateExecuteCB()
942 OHOS::Uri uri(updateCB->uri); in UpdateExecuteCB()
943updateCB->result = dataAbilityHelper->Update(uri, updateCB->valueBucket, updateCB->predicates); in UpdateExecuteCB()
973 delete updateCB; in UpdateAsyncCompleteCB()
974 updateCB = nullptr; in UpdateAsyncCompleteCB()
986 delete updateCB; in UpdatePromiseCompleteCB()
[all …]
H A Dnapi_data_ability_helper.cpp1094 DAHelperUpdateCB *updateCB = new DAHelperUpdateCB; in NAPI_Update() local
1095 updateCB->cbBase.cbInfo.env = env; in NAPI_Update()
1096 updateCB->cbBase.asyncWork = nullptr; in NAPI_Update()
1097 updateCB->cbBase.deferred = nullptr; in NAPI_Update()
1098 updateCB->cbBase.ability = nullptr; in NAPI_Update()
1100 napi_value ret = UpdateWrap(env, info, updateCB); in NAPI_Update()
1103 delete updateCB; in NAPI_Update()
1104 updateCB = nullptr; in NAPI_Update()
1142 updateCB->valueBucket.Clear(); in UpdateWrap()
1148 ret = UpdateAsync(env, args, ARGS_THREE, updateCB); in UpdateWrap()
[all …]
H A Dnapi_data_ability_helper_utils.h152 … UpdateAsync(napi_env env, napi_value *args, const size_t argCallback, DAHelperUpdateCB *updateCB);
153 napi_value UpdatePromise(napi_env env, DAHelperUpdateCB *updateCB);
H A Dnapi_data_ability_helper.h187 napi_value UpdateWrap(napi_env env, napi_callback_info info, DAHelperUpdateCB *updateCB);