Home
last modified time | relevance | path

Searched refs:thisPtr (Results 1 - 25 of 38) sorted by relevance

12

/foundation/filemanagement/file_api/interfaces/kits/js/src/common/napi/n_async/
H A Dn_async_context.h37 explicit NAsyncContext(NVal thisPtr) : err_(0), res_(NVal()), cbExec_(nullptr), in NAsyncContext() argument
38 cbComplete_(nullptr), awork_(nullptr), thisPtr_(thisPtr) {} in NAsyncContext()
45 explicit NAsyncContextPromise(NVal thisPtr) : NAsyncContext(thisPtr) {} in NAsyncContextPromise() argument
52 NAsyncContextCallback(NVal thisPtr, NVal cb) : NAsyncContext(thisPtr), cb_(cb) {} in NAsyncContextCallback() argument
61 NAsyncContextLegacy(NVal thisPtr, NVal cbSucc, NVal cbFail, NVal cbFinal) in NAsyncContextLegacy() argument
62 : NAsyncContext(thisPtr), cbSucc_(cbSucc), cbFail_(cbFail), cbFinal_(cbFinal) in NAsyncContextLegacy()
H A Dn_async_work_promise.cpp23 NAsyncWorkPromise::NAsyncWorkPromise(napi_env env, NVal thisPtr) : NAsyncWorkFactory(env) in NAsyncWorkPromise() argument
25 ctx_ = new(std::nothrow) NAsyncContextPromise(thisPtr); in NAsyncWorkPromise()
H A Dn_async_work_promise.h25 NAsyncWorkPromise(napi_env env, NVal thisPtr);
H A Dn_async_work_callback.h25 NAsyncWorkCallback(napi_env env, NVal thisPtr, NVal cb);
H A Dn_async_work_callback.cpp23 NAsyncWorkCallback::NAsyncWorkCallback(napi_env env, NVal thisPtr, NVal cb) : NAsyncWorkFactory(env) in NAsyncWorkCallback() argument
25 ctx_ = new(std::nothrow) NAsyncContextCallback(thisPtr, cb); in NAsyncWorkCallback()
/foundation/filemanagement/app_file_service/interfaces/kits/js/backup/
H A Dgeneral_callbacks.h29 BackupRestoreCallback(napi_env env, LibN::NVal thisPtr, LibN::NVal cb);
48 GeneralCallbacks(const napi_env &env, const LibN::NVal &thisPtr, const LibN::NVal &jsCallbacks) in GeneralCallbacks() argument
49 : onFileReady(env, thisPtr, jsCallbacks.GetProp("onFileReady")), in GeneralCallbacks()
50 onBundleBegin(env, thisPtr, jsCallbacks.GetProp("onBundleBegin")), in GeneralCallbacks()
51 onBundleEnd(env, thisPtr, jsCallbacks.GetProp("onBundleEnd")), in GeneralCallbacks()
52 onAllBundlesEnd(env, thisPtr, jsCallbacks.GetProp("onAllBundlesEnd")), in GeneralCallbacks()
53 onBackupServiceDied(env, thisPtr, jsCallbacks.GetProp("onBackupServiceDied")), in GeneralCallbacks()
54 onResultReport(env, thisPtr, jsCallbacks.GetProp("onResultReport")), in GeneralCallbacks()
55 onProcess(env, thisPtr, jsCallbacks.GetProp("onProcess")) {}; in GeneralCallbacks()
H A Dgeneral_callbacks.cpp25 BackupRestoreCallback::BackupRestoreCallback(napi_env env, LibN::NVal thisPtr, LibN::NVal cb) : env_(env) in BackupRestoreCallback() argument
27 ctx_ = new LibN::NAsyncContextCallback(thisPtr, cb); in BackupRestoreCallback()
/foundation/bundlemanager/bundle_framework/interfaces/kits/js/zip/napi/common/
H A Dnapi_async_context.h38 explicit NapiAsyncContext(NapiValue thisPtr) in NapiAsyncContext() argument
39 : err_(0), res_(NapiValue()), cbExec_(nullptr), cbComplete_(nullptr), awork_(nullptr), thisPtr_(thisPtr) in NapiAsyncContext()
47 explicit NAsyncContextPromise(NapiValue thisPtr) : NapiAsyncContext(thisPtr) in NAsyncContextPromise() argument
55 NAsyncContextCallback(NapiValue thisPtr, NapiValue cb) : NapiAsyncContext(thisPtr), cb_(cb) in NAsyncContextCallback() argument
65 NAsyncContextLegacy(NapiValue thisPtr, NapiValue cbSucc, NapiValue cbFail, NapiValue cbFinal) in NAsyncContextLegacy() argument
66 : NapiAsyncContext(thisPtr), cbSucc_(cbSucc), cbFail_(cbFail), cbFinal_(cbFinal) in NAsyncContextLegacy()
H A Dnapi_async_work_promise.cpp25 NapiAsyncWorkPromise::NapiAsyncWorkPromise(napi_env env, NapiValue thisPtr) : NapiAsyncWorkFactory(env) in NapiAsyncWorkPromise() argument
27 ctx_ = new NAsyncContextPromise(thisPtr); in NapiAsyncWorkPromise()
H A Dnapi_async_work_promise.h28 NapiAsyncWorkPromise(napi_env env, NapiValue thisPtr);
H A Dnapi_async_work_callback.cpp25 NapiAsyncWorkCallback::NapiAsyncWorkCallback(napi_env env, NapiValue thisPtr, NapiValue cb) : NapiAsyncWorkFactory(env) in NapiAsyncWorkCallback() argument
27 ctx_ = new NAsyncContextCallback(thisPtr, cb); in NapiAsyncWorkCallback()
H A Dnapi_async_work_callback.h28 NapiAsyncWorkCallback(napi_env env, NapiValue thisPtr, NapiValue cb);
/foundation/filemanagement/file_api/utils/filemgmt_libn/include/n_async/
H A Dn_async_context.h40 NAsyncContext(NVal thisPtr) in NAsyncContext() argument
41 : err_(0), res_(NVal()), cbExec_(nullptr), cbComplete_(nullptr), awork_(nullptr), thisPtr_(thisPtr) in NAsyncContext()
50 explicit NAsyncContextPromise(NVal thisPtr) : NAsyncContext(thisPtr) {} in NAsyncContextPromise() argument
57 NAsyncContextCallback(NVal thisPtr, NVal cb) : NAsyncContext(thisPtr), cb_(cb) {} in NAsyncContextCallback() argument
H A Dn_async_work_callback.h26 NAsyncWorkCallback(napi_env env, NVal thisPtr, NVal cb);
H A Dn_async_work_promise.h26 NAsyncWorkPromise(napi_env env, NVal thisPtr);
/foundation/multimedia/camera_framework/services/camera_service/src/avcodec/
H A Davcodec_task_manager.cpp88 auto thisPtr = sptr<AvcodecTaskManager>(this); in EncodeVideoBuffer() local
93 encodeManager->SubmitTask([thisPtr, frameRecord, cacheCallback]() { in EncodeVideoBuffer()
96 if (!thisPtr->videoEncoder_ && !frameRecord) { in EncodeVideoBuffer()
99 isEncodeSuccess = thisPtr->videoEncoder_->EncodeSurfaceBuffer(frameRecord); in EncodeVideoBuffer()
101 thisPtr->videoEncoder_->ReleaseSurfaceBuffer(frameRecord); in EncodeVideoBuffer()
140 auto thisPtr = sptr<AvcodecTaskManager>(this); in CreateAVMuxer() local
142 [thisPtr] { return !thisPtr->videoFdQueue_.empty(); }); in CreateAVMuxer()
207 auto thisPtr = sptr<AvcodecTaskManager>(this); in DoMuxerVideo() local
210 GetTaskManager()->SubmitTask([thisPtr, frameRecord in DoMuxerVideo()
[all...]
H A Dmoving_photo_video_cache.cpp56 auto thisPtr = sptr<MovingPhotoVideoCache>(this); in CacheFrame() local
57 taskManager_->EncodeVideoBuffer(frameRecord, [thisPtr](sptr<FrameRecord> frameRecord, bool encodeResult) { in CacheFrame()
58 thisPtr->OnImageEncoded(frameRecord, encodeResult); in CacheFrame()
75 auto thisPtr = sptr<MovingPhotoVideoCache>(this); in DoMuxerVideo() local
76 taskManager_->SubmitTask([thisPtr]() { in DoMuxerVideo()
77 thisPtr->ClearCallbackHandler(); in DoMuxerVideo()
/foundation/ability/ability_runtime/frameworks/js/napi/auto_fill_manager/
H A Djs_auto_save_request_callback.cpp68 auto thisPtr = shared_from_this(); in JSCallFunction() local
70 [thisPtr, methodName](napi_env env, NapiAsyncTask &task, int32_t status) { in JSCallFunction()
71 if (thisPtr) { in JSCallFunction()
72 thisPtr->JSCallFunctionWorker(methodName); in JSCallFunction()
/foundation/multimedia/camera_framework/services/camera_service/src/avcodec/common/
H A Dframe_record.cpp47 auto thisPtr = sptr<FrameRecord>(this); in ReleaseSurfaceBuffer() local
49 [thisPtr] { return thisPtr->IsFinishCache(); }); in ReleaseSurfaceBuffer()
/foundation/filemanagement/file_api/utils/filemgmt_libn/src/n_async/
H A Dn_async_work_promise.cpp24 NAsyncWorkPromise::NAsyncWorkPromise(napi_env env, NVal thisPtr) : NAsyncWork(env) in NAsyncWorkPromise() argument
26 ctx_ = new(std::nothrow) NAsyncContextPromise(thisPtr); in NAsyncWorkPromise()
/foundation/graphic/graphic_2d/rosen/samples/2d_graphics/test/
H A Ddrawing_sample.cpp77 auto* thisPtr = static_cast<DrawingSample*>(data); in OnScreenPlug() local
78 thisPtr->OnHotPlugEvent(output, connected); in OnScreenPlug()
98 auto* thisPtr = static_cast<DrawingSample*>(data); in OnPrepareCompleted() local
99 thisPtr->DoPrepareCompleted(surface, param); in OnPrepareCompleted()
/foundation/resourceschedule/device_standby/plugins/standby_state/src/
H A Dworking_state.cpp46 ErrCode WorkingState::Init(const std::shared_ptr<BaseState>& thisPtr) in Init() argument
/foundation/filemanagement/app_file_service/services/backup_sa/src/module_ipc/
H A Dservice_incremental.cpp165 auto thisPtr = ptr.promote(); in StartGetFdTask() local
166 if (!thisPtr) { in StartGetFdTask()
170 auto session = thisPtr->session_; in StartGetFdTask()
186 thisPtr->ClearSessionAndSchedInfo(bundleName); in StartGetFdTask()
187 thisPtr->NoticeClientFinish(bundleName, BError(BError::Codes::EXT_ABILITY_DIED)); in StartGetFdTask()
209 thisPtr->ClearSessionAndSchedInfo(bundleName); in StartGetFdTask()
210 thisPtr->NoticeClientFinish(bundleName, BError(BError::Codes::EXT_ABILITY_DIED)); in StartGetFdTask()
H A Dservice.cpp1436 auto thisPtr = obj.promote(); in GetBackupInfoConnectDone()
1437 if (!thisPtr) { in GetBackupInfoConnectDone()
1441 thisPtr->getBackupInfoCondition_.notify_one(); in GetBackupInfoConnectDone()
1450 auto thisPtr = obj.promote(); in GetBackupInfoConnectDied()
1451 if (!thisPtr) { in GetBackupInfoConnectDied()
1455 thisPtr->isConnectDied_.store(true); in GetBackupInfoConnectDied()
1456 thisPtr->getBackupInfoCondition_.notify_one(); in GetBackupInfoConnectDied()
1856 auto thisPtr = ptr.promote();
1857 if (!thisPtr) {
1862 DoTimeout(thisPtr, bundleNam
[all...]
/foundation/graphic/graphic_2d/rosen/samples/composer/
H A Dhello_composer.cpp103 auto* thisPtr = static_cast<HelloComposer *>(data); in OnScreenPlug() local
104 thisPtr->OnHotPlugEvent(output, connected); in OnScreenPlug()
124 auto* thisPtr = static_cast<HelloComposer *>(data); in OnPrepareCompleted() local
125 thisPtr->DoPrepareCompleted(surface, param); in OnPrepareCompleted()

Completed in 14 milliseconds

12