/foundation/graphic/graphic_2d/interfaces/kits/napi/graphic/webgl/common/napi/ |
H A D | n_class.cpp | 21 NClass &NClass::GetInstance() in GetInstance() 23 static NClass nClass; in GetInstance() 27 tuple<bool, napi_value> NClass::DefineClass(napi_env env, string className, napi_callback constructor, in DefineClass() 36 bool NClass::SaveClass(napi_env env, string className, napi_value exClass) in SaveClass() 38 NClass &nClass = NClass::GetInstance(); in SaveClass() 53 napi_value NClass::InstantiateClass(napi_env env, string className, vector<napi_value> args) in InstantiateClass() 55 NClass &nClass = NClass in InstantiateClass() [all...] |
H A D | n_class.h | 30 class NClass { class 32 NClass(const NClass &) = delete; 33 NClass &operator = (const NClass &) = delete; 34 ~NClass() {}; in ~NClass() 35 static NClass &GetInstance(); 72 NClass() = default;
|
/foundation/filemanagement/file_api/interfaces/kits/js/src/common/napi/ |
H A D | n_class.cpp | 26 NClass &NClass::GetInstance() in GetInstance() 28 static thread_local NClass nClass; in GetInstance() 32 tuple<bool, napi_value> NClass::DefineClass(napi_env env, in DefineClass() 52 bool NClass::SaveClass(napi_env env, string className, napi_value exClass) in SaveClass() 54 NClass &nClass = NClass::GetInstance(); in SaveClass() 72 napi_value NClass::InstantiateClass(napi_env env, const string& className, const vector<napi_value>& args) in InstantiateClass() 74 NClass &nClass = NClass in InstantiateClass() [all...] |
H A D | n_class.h | 27 class NClass final { 29 NClass(const NClass &) = delete; 30 NClass &operator = (const NClass &) = delete; 31 static NClass &GetInstance(); 85 NClass() = default; 86 ~NClass() = default;
|
/foundation/filemanagement/file_api/utils/filemgmt_libn/src/ |
H A D | n_class.cpp | 24 NClass &NClass::GetInstance() in GetInstance() 26 static thread_local NClass nClass; in GetInstance() 30 tuple<bool, napi_value> NClass::DefineClass(napi_env env, in DefineClass() 45 bool NClass::SaveClass(napi_env env, string className, napi_value exClass) in SaveClass() 47 NClass &nClass = NClass::GetInstance(); in SaveClass() 73 void NClass::CleanClass(void *arg) in CleanClass() 76 NClass &nClass = NClass in CleanClass() [all...] |
/foundation/filemanagement/file_api/utils/filemgmt_libn/include/ |
H A D | n_class.h | 32 class NClass final { 34 NClass(const NClass&) = delete; 35 NClass &operator=(const NClass&) = delete; 86 NClass() : addCleanHook(false) {}; in NClass() function in OHOS::FileManagement::LibN::final 87 ~NClass() = default; 88 static NClass &GetInstance();
|
/foundation/filemanagement/file_api/interfaces/kits/js/src/mod_fileio/class_stat_v9/ |
H A D | stat_n_exporter_v9.cpp | 49 auto statEntity = NClass::GetEntityOf<StatEntityV9>(env, funcArg.GetThisVar()); in CheckStatMode() 101 auto statEntity = NClass::GetEntityOf<StatEntityV9>(env, funcArg.GetThisVar()); in GetIno() 117 auto statEntity = NClass::GetEntityOf<StatEntityV9>(env, funcArg.GetThisVar()); in GetMode() 133 auto statEntity = NClass::GetEntityOf<StatEntityV9>(env, funcArg.GetThisVar()); in GetUid() 149 auto statEntity = NClass::GetEntityOf<StatEntityV9>(env, funcArg.GetThisVar()); in GetGid() 165 auto statEntity = NClass::GetEntityOf<StatEntityV9>(env, funcArg.GetThisVar()); in GetSize() 181 auto statEntity = NClass::GetEntityOf<StatEntityV9>(env, funcArg.GetThisVar()); in GetBlksize() 197 auto statEntity = NClass::GetEntityOf<StatEntityV9>(env, funcArg.GetThisVar()); in GetAtime() 213 auto statEntity = NClass::GetEntityOf<StatEntityV9>(env, funcArg.GetThisVar()); in GetMtime() 229 auto statEntity = NClass in GetCtime() [all...] |
/foundation/filemanagement/app_file_service/interfaces/kits/js/file_uri/ |
H A D | file_uri_n_exporter.cpp | 53 if (!NClass::SetEntityFor<FileUriEntity>(env, funcArg.GetThisVar(), move(fileuriEntity))) { in Constructor() 69 auto fileuriEntity = NClass::GetEntityOf<FileUriEntity>(env, funcArg.GetThisVar()); in UriToString() 86 auto fileuriEntity = NClass::GetEntityOf<FileUriEntity>(env, funcArg.GetThisVar()); in GetFileUriName() 103 auto fileuriEntity = NClass::GetEntityOf<FileUriEntity>(env, funcArg.GetThisVar()); in GetFullDirectoryUri() 125 auto fileuriEntity = NClass::GetEntityOf<FileUriEntity>(env, funcArg.GetThisVar()); in IsRemoteUri() 143 auto fileuriEntity = NClass::GetEntityOf<FileUriEntity>(env, funcArg.GetThisVar()); in GetFileUriPath() 238 auto fileuriEntity = NClass::GetEntityOf<FileUriEntity>(env, funcArg.GetThisVar()); in Normalize() 245 napi_value uriObj = NClass::InstantiateClass(env, FileUriNExporter::className, in Normalize() 264 auto thisEntity = NClass::GetEntityOf<FileUriEntity>(env, funcArg.GetThisVar()); in Equals() 271 auto otherEntity = NClass in Equals() [all...] |
/foundation/filemanagement/user_file_service/frameworks/js/napi/file_access_module/root_info/ |
H A D | napi_root_iterator_exporter.cpp | 34 std::tie(succ, classValue) = NClass::DefineClass(exports_.env_, className, in Export() 41 succ = NClass::SaveClass(exports_.env_, className, classValue); in Export() 64 if (!NClass::SetEntityFor<RootIteratorEntity>(env, funcArg.GetThisVar(), std::move(rootIteratorEntity))) { in Constructor() 81 auto rootIterator = NClass::GetEntityOf<RootIteratorEntity>(env, thisVar); in Next() 87 napi_value objRootInfoExporter = NClass::InstantiateClass(env, NapiRootInfoExporter::className_, {}); in Next() 93 auto rootInfoEntity = NClass::GetEntityOf<RootInfoEntity>(env, objRootInfoExporter); in Next()
|
H A D | napi_root_info_exporter.cpp | 47 std::tie(succ, classValue) = NClass::DefineClass(exports_.env_, className, in Export() 54 succ = NClass::SaveClass(exports_.env_, className, classValue); in Export() 77 if (!NClass::SetEntityFor<RootInfoEntity>(env, funcArg.GetThisVar(), std::move(rootInfoEntity))) { in Constructor() 118 auto rootEntity = NClass::GetEntityOf<RootInfoEntity>(env, funcArg.GetThisVar()); in ListFile() 125 napi_value objFileIteratorExporter = NClass::InstantiateClass(env, NapiFileIteratorExporter::className_, {}); in ListFile() 129 auto fileIteratorEntity = NClass::GetEntityOf<FileIteratorEntity>(env, objFileIteratorExporter); in ListFile() 166 auto rootEntity = NClass::GetEntityOf<RootInfoEntity>(env, funcArg.GetThisVar()); in ScanFile() 173 napi_value objFileIteratorExporter = NClass::InstantiateClass(env, NapiFileIteratorExporter::className_, {}); in ScanFile() 177 auto fileIteratorEntity = NClass::GetEntityOf<FileIteratorEntity>(env, objFileIteratorExporter); in ScanFile() 210 auto rootInfoEntity = NClass in GetDeviceType() [all...] |
/foundation/filemanagement/file_api/interfaces/kits/js/src/mod_fileio/class_stat/ |
H A D | stat_n_exporter.cpp | 46 auto statEntity = NClass::GetEntityOf<StatEntity>(env, funcArg.GetThisVar()); in CheckStatMode() 98 auto statEntity = NClass::GetEntityOf<StatEntity>(env, funcArg.GetThisVar()); in GetDev() 114 auto statEntity = NClass::GetEntityOf<StatEntity>(env, funcArg.GetThisVar()); in GetIno() 130 auto statEntity = NClass::GetEntityOf<StatEntity>(env, funcArg.GetThisVar()); in GetMode() 146 auto statEntity = NClass::GetEntityOf<StatEntity>(env, funcArg.GetThisVar()); in GetNlink() 162 auto statEntity = NClass::GetEntityOf<StatEntity>(env, funcArg.GetThisVar()); in GetUid() 178 auto statEntity = NClass::GetEntityOf<StatEntity>(env, funcArg.GetThisVar()); in GetGid() 194 auto statEntity = NClass::GetEntityOf<StatEntity>(env, funcArg.GetThisVar()); in GetRdev() 210 auto statEntity = NClass::GetEntityOf<StatEntity>(env, funcArg.GetThisVar()); in GetSize() 226 auto statEntity = NClass in GetBlksize() [all...] |
/foundation/filemanagement/file_api/interfaces/kits/js/src/mod_fileio/class_watcher/ |
H A D | watcher_n_exporter.cpp | 46 if (!NClass::SetEntityFor<WatcherEntity>(env, funcArg.GetThisVar(), move(watcherEntity))) { in Constructor() 62 auto watchEntity = NClass::GetEntityOf<WatcherEntity>(env, funcArg.GetThisVar()); in StopSync() 80 auto watchEntity = NClass::GetEntityOf<WatcherEntity>(env, funcArg.GetThisVar()); in Stop() 116 auto [resDefineClass, classValue] = NClass::DefineClass(exports_.env_, in Export() 125 bool succ = NClass::SaveClass(exports_.env_, className, classValue); in Export()
|
/foundation/filemanagement/file_api/interfaces/kits/js/src/mod_fs/class_readeriterator/ |
H A D | readeriterator_n_exporter.cpp | 42 if (!NClass::SetEntityFor<ReaderIteratorEntity>(env, funcArg.GetThisVar(), move(readerIteratorEntity))) { in Constructor() 58 auto readerIteratorEntity = NClass::GetEntityOf<ReaderIteratorEntity>(env, funcArg.GetThisVar()); in Next() 79 (void)NClass::RemoveEntityOfFinal<ReaderIteratorEntity>(env, funcArg.GetThisVar()); in Next() 96 tie(succ, classValue) = NClass::DefineClass(exports_.env_, className, ReaderIteratorNExporter::Constructor, in Export() 103 succ = NClass::SaveClass(exports_.env_, className, classValue); in Export()
|
/foundation/filemanagement/file_api/interfaces/kits/js/src/mod_fs/class_tasksignal/ |
H A D | task_signal_n_exporter.cpp | 53 if (!NClass::SetEntityFor<TaskSignalEntity>(env, funcArg.GetThisVar(), std::move(taskSignalEntity))) { in Constructor() 69 auto [succ, classValue] = NClass::DefineClass(exports_.env_, className_, Constructor, std::move(props)); in Export() 76 succ = NClass::SaveClass(exports_.env_, className, classValue); in Export() 94 auto taskSignalEntity = NClass::GetEntityOf<TaskSignalEntity>(env, funcArg.GetThisVar()); in Cancel() 118 auto taskSignalEntity = NClass::GetEntityOf<TaskSignalEntity>(env, funcArg.GetThisVar()); in OnCancel()
|
/foundation/graphic/graphic_2d/interfaces/kits/napi/graphic/webgl/src/ |
H A D | webgl_vertex_array_object.cpp | 32 if (!NClass::SetEntityFor<WebGLVertexArrayObject>(env, funcArg.GetThisVar(), move(webGlVertexArrayObject))) { in Constructor() 47 NClass::DefineClass(exports_.env_, className, WebGLVertexArrayObject::Constructor, std::move(props)); in Export() 52 succ = NClass::SaveClass(exports_.env_, className, clas); in Export()
|
H A D | webgl_transform_feedback.cpp | 32 if (!NClass::SetEntityFor<WebGLTransformFeedback>(env, funcArg.GetThisVar(), move(webGlTransformFeedback))) { in Constructor() 47 NClass::DefineClass(exports_.env_, className, WebGLTransformFeedback::Constructor, std::move(props)); in Export() 52 succ = NClass::SaveClass(exports_.env_, className, clas); in Export()
|
H A D | webgl_uniform_location.cpp | 32 if (!NClass::SetEntityFor<WebGLUniformLocation>(env, funcArg.GetThisVar(), move(webGlUniformLocation))) { in Constructor() 47 NClass::DefineClass(exports_.env_, className, WebGLUniformLocation::Constructor, std::move(props)); in Export() 52 succ = NClass::SaveClass(exports_.env_, className, clas); in Export()
|
H A D | webgl_sampler.cpp | 31 if (!NClass::SetEntityFor<WebGLSampler>(env, funcArg.GetThisVar(), move(webGlSampler))) { in Constructor() 45 tie(succ, clas) = NClass::DefineClass(exports_.env_, className, WebGLSampler::Constructor, std::move(props)); in Export() 50 succ = NClass::SaveClass(exports_.env_, className, clas); in Export()
|
H A D | webgl_shader.cpp | 32 if (!NClass::SetEntityFor<WebGLShader>(env, funcArg.GetThisVar(), move(webGLShader))) { in Constructor() 46 tie(succ, clas) = NClass::DefineClass(exports_.env_, className, WebGLShader::Constructor, std::move(props)); in Export() 51 succ = NClass::SaveClass(exports_.env_, className, clas); in Export()
|
H A D | webgl_sync.cpp | 33 if (!NClass::SetEntityFor<WebGLSync>(env, funcArg.GetThisVar(), move(webGlSync))) { in Constructor() 47 tie(succ, clas) = NClass::DefineClass(exports_.env_, className, WebGLSync::Constructor, std::move(props)); in Export() 52 succ = NClass::SaveClass(exports_.env_, className, clas); in Export()
|
H A D | webgl_buffer.cpp | 35 if (!NClass::SetEntityFor<WebGLBuffer>(env, funcArg.GetThisVar(), move(webGlBuffer))) { in Constructor() 49 tie(succ, clas) = NClass::DefineClass(exports_.env_, className, WebGLBuffer::Constructor, std::move(props)); in Export() 54 succ = NClass::SaveClass(exports_.env_, className, clas); in Export()
|
H A D | webgl_renderbuffer.cpp | 36 if (!NClass::SetEntityFor<WebGLRenderbuffer>(env, funcArg.GetThisVar(), move(webGlRenderbuffer))) { in Constructor() 50 tie(succ, clas) = NClass::DefineClass(exports_.env_, className, WebGLRenderbuffer::Constructor, std::move(props)); in Export() 55 succ = NClass::SaveClass(exports_.env_, className, clas); in Export()
|
H A D | webgl_query.cpp | 33 if (!NClass::SetEntityFor<WebGLQuery>(env, funcArg.GetThisVar(), move(webGlQuery))) { in Constructor() 47 tie(succ, clas) = NClass::DefineClass(exports_.env_, className, WebGLQuery::Constructor, std::move(props)); in Export() 52 succ = NClass::SaveClass(exports_.env_, className, clas); in Export()
|
/foundation/filemanagement/file_api/interfaces/kits/js/src/mod_fs/class_stat/ |
H A D | stat_n_exporter.cpp | 43 auto statEntity = NClass::GetEntityOf<StatEntity>(env, funcArg.GetThisVar()); in CheckStatMode() 97 auto statEntity = NClass::GetEntityOf<StatEntity>(env, funcArg.GetThisVar()); in GetIno() 115 auto statEntity = NClass::GetEntityOf<StatEntity>(env, funcArg.GetThisVar()); in GetMode() 133 auto statEntity = NClass::GetEntityOf<StatEntity>(env, funcArg.GetThisVar()); in GetUid() 151 auto statEntity = NClass::GetEntityOf<StatEntity>(env, funcArg.GetThisVar()); in GetGid() 169 auto statEntity = NClass::GetEntityOf<StatEntity>(env, funcArg.GetThisVar()); in GetSize() 187 auto statEntity = NClass::GetEntityOf<StatEntity>(env, funcArg.GetThisVar()); in GetAtime() 205 auto statEntity = NClass::GetEntityOf<StatEntity>(env, funcArg.GetThisVar()); in GetMtime() 223 auto statEntity = NClass::GetEntityOf<StatEntity>(env, funcArg.GetThisVar()); in GetCtime() 242 auto statEntity = NClass in GetLocation() [all...] |
/foundation/filemanagement/file_api/interfaces/kits/js/src/mod_fileio/class_dir/ |
H A D | dir_n_exporter.cpp | 47 auto dirEntity = NClass::GetEntityOf<DirEntity>(env, funcArg.GetThisVar()); in GetDirEntity() 76 auto dirEntity = NClass::GetEntityOf<DirEntity>(env, funcArg.GetThisVar()); in Close() 132 napi_value objDirent = NClass::InstantiateClass(env, DirentNExporter::className_, {}); in DoReadComplete() 136 auto direntEntity = NClass::GetEntityOf<DirentEntity>(env, objDirent); in DoReadComplete() 158 auto dirEntity = NClass::GetEntityOf<DirEntity>(env, funcArg.GetThisVar()); in Read() 247 napi_value objDirent = NClass::InstantiateClass(env, DirentNExporter::className_, {}); in ReadSync() 252 auto direntEntity = NClass::GetEntityOf<DirentEntity>(env, objDirent); in ReadSync() 272 auto dirEntity = NClass::GetEntityOf<DirEntity>(env, dir_entity); in CheckDirEntity() 296 napi_value objDirent = NClass::InstantiateClass(env, DirentNExporter::className_, {}); in DoListFileVector2NV() 301 auto direntEntity = NClass in DoListFileVector2NV() [all...] |