Home
last modified time | relevance | path

Searched refs:NClass (Results 1 – 25 of 69) sorted by relevance

123

/ohos5.0/foundation/filemanagement/file_api/utils/filemgmt_libn/src/
H A Dn_class.cpp24 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::GetInstance(); in CleanClass()
91 napi_value NClass::InstantiateClass(napi_env env, const string& className, const vector<napi_value>… in InstantiateClass()
93 NClass &nClass = NClass::GetInstance(); in InstantiateClass()
/ohos5.0/foundation/graphic/graphic_2d/interfaces/kits/napi/graphic/webgl/common/napi/
H A Dn_class.cpp21 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 construct… 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::GetInstance(); in InstantiateClass()
H A Dn_class.h30 class NClass {
32 NClass(const NClass &) = delete;
33 NClass &operator = (const NClass &) = delete;
34 ~NClass() {}; in ~NClass()
35 static NClass &GetInstance();
72 NClass() = default;
/ohos5.0/foundation/filemanagement/file_api/interfaces/kits/js/src/common/napi/
H A Dn_class.cpp26 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>… in InstantiateClass()
74 NClass &nClass = NClass::GetInstance(); in InstantiateClass()
H A Dn_class.h27 class NClass final {
29 NClass(const NClass &) = delete;
30 NClass &operator = (const NClass &) = delete;
31 static NClass &GetInstance();
85 NClass() = default;
86 ~NClass() = default;
/ohos5.0/base/hiviewdfx/hilog/interfaces/js/kits/napi/src/common/napi/
H A Dn_class.h32 class NClass {
34 NClass(const NClass &) = delete;
35 NClass &operator = (const NClass &) = delete;
36 ~NClass() {}; in ~NClass()
37 static NClass &GetInstance();
76 NClass() = default;
H A Dn_class.cpp21 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 construct… in DefineClass()
36 napi_value NClass::InstantiateClass(napi_env env, string className, vector<napi_value> args) in InstantiateClass()
38 NClass &nClass = NClass::GetInstance(); in InstantiateClass()
/ohos5.0/foundation/filemanagement/file_api/utils/filemgmt_libn/include/
H A Dn_class.h32 class NClass final {
34 NClass(const NClass&) = delete;
35 NClass &operator=(const NClass&) = delete;
43 static NClass &GetInstance();
89 NClass() : wrapReleased(false), addCleanHook(false) {}; in NClass() function
90 ~NClass() = default;
/ohos5.0/foundation/filemanagement/app_file_service/interfaces/kits/js/file_uri/
H A Dfile_uri_n_exporter.cpp69 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()
289 auto thisEntity = NClass::GetEntityOf<FileUriEntity>(env, funcArg.GetThisVar()); in EqualsTo()
313 auto fileuriEntity = NClass::GetEntityOf<FileUriEntity>(env, funcArg.GetThisVar()); in IsAbsolute()
[all …]
/ohos5.0/foundation/filemanagement/file_api/interfaces/kits/js/src/mod_fileio/class_stat/
H A Dstat_n_exporter.cpp46 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::GetEntityOf<StatEntity>(env, funcArg.GetThisVar()); in GetBlksize()
[all …]
/ohos5.0/foundation/filemanagement/user_file_service/frameworks/js/napi/file_access_module/root_info/
H A Dnapi_root_info_exporter.cpp47 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()
129 auto fileIteratorEntity = NClass::GetEntityOf<FileIteratorEntity>(env, objFileIteratorExporter); in ListFile()
166 auto rootEntity = NClass::GetEntityOf<RootInfoEntity>(env, funcArg.GetThisVar()); in ScanFile()
210 auto rootInfoEntity = NClass::GetEntityOf<RootInfoEntity>(env, funcArg.GetThisVar()); in GetDeviceType()
227 auto rootInfoEntity = NClass::GetEntityOf<RootInfoEntity>(env, funcArg.GetThisVar()); in GetUri()
244 auto rootInfoEntity = NClass::GetEntityOf<RootInfoEntity>(env, funcArg.GetThisVar()); in GetRelativePath()
261 auto rootInfoEntity = NClass::GetEntityOf<RootInfoEntity>(env, funcArg.GetThisVar()); in GetDisplayName()
[all …]
H A Dnapi_root_iterator_exporter.cpp34 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(rootIteratorEnt… 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()
/ohos5.0/foundation/filemanagement/file_api/interfaces/kits/js/src/mod_fileio/class_stat_v9/
H A Dstat_n_exporter_v9.cpp49 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::GetEntityOf<StatEntityV9>(env, funcArg.GetThisVar()); in GetCtime()
[all …]
/ohos5.0/foundation/filemanagement/file_api/interfaces/kits/js/src/mod_fs/class_stat/
H A Dstat_n_exporter.cpp43 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::GetEntityOf<StatEntity>(env, funcArg.GetThisVar()); in GetLocation()
[all …]
/ohos5.0/foundation/filemanagement/file_api/interfaces/kits/js/src/mod_fileio/class_dir/
H A Ddir_n_exporter.cpp47 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()
301 auto direntEntity = NClass::GetEntityOf<DirentEntity>(env, objDirent); in DoListFileVector2NV()
425 if (!NClass::SetEntityFor<DirEntity>(env, funcArg.GetThisVar(), move(dirEntity))) { in Constructor()
[all …]
/ohos5.0/foundation/filemanagement/user_file_service/frameworks/js/napi/file_access_module/file_info/
H A Dnapi_file_info_exporter.cpp44 std::tie(succ, classValue) = NClass::DefineClass(exports_.env_, className, in Export()
51 succ = NClass::SaveClass(exports_.env_, className, classValue); in Export()
74 … if (!NClass::SetEntityFor<FileInfoEntity>(env, funcArg.GetThisVar(), std::move(fileInfoEntity))) { in Constructor()
121 auto fileInfoEntity = NClass::GetEntityOf<FileInfoEntity>(env, funcArg.GetThisVar()); in ListFile()
132 …auto objFileIteratorExporter = NClass::InstantiateClass(env, NapiFileIteratorExporter::className_,… in ListFile()
136 auto fileIteratorEntity = NClass::GetEntityOf<FileIteratorEntity>(env, objFileIteratorExporter); in ListFile()
172 auto fileInfoEntity = NClass::GetEntityOf<FileInfoEntity>(env, funcArg.GetThisVar()); in ScanFile()
183 …auto objFileIteratorExporter = NClass::InstantiateClass(env, NapiFileIteratorExporter::className_,… in ScanFile()
187 auto fileIteratorEntity = NClass::GetEntityOf<FileIteratorEntity>(env, objFileIteratorExporter); in ScanFile()
216 auto fileInfoEntity = NClass::GetEntityOf<FileInfoEntity>(env, funcArg.GetThisVar()); in GetFileInfoEntity()
H A Dnapi_file_iterator_exporter.cpp39 std::tie(succ, classValue) = NClass::DefineClass(exports_.env_, className, in Export()
46 succ = NClass::SaveClass(exports_.env_, className, classValue); in Export()
69 …if (!NClass::SetEntityFor<FileIteratorEntity>(env, funcArg.GetThisVar(), std::move(fileIteratorEnt… in Constructor()
206 fileInfoEntity = NClass::GetEntityOf<FileInfoEntity>(env, objFileInfoExporter); in GetNextIterator()
226 auto fileIteratorEntity = NClass::GetEntityOf<FileIteratorEntity>(env, funcArg.GetThisVar()); in Next()
237 auto objFileInfoExporter = NClass::InstantiateClass(env, NapiFileInfoExporter::className_, {}); in Next()
243 auto fileInfoEntity = NClass::GetEntityOf<FileInfoEntity>(env, objFileInfoExporter); in Next()
/ohos5.0/foundation/filemanagement/file_api/interfaces/kits/js/src/mod_fs/class_readeriterator/
H A Dreaderiterator_n_exporter.cpp42 …if (!NClass::SetEntityFor<ReaderIteratorEntity>(env, funcArg.GetThisVar(), move(readerIteratorEnti… 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::Con… in Export()
103 succ = NClass::SaveClass(exports_.env_, className, classValue); in Export()
/ohos5.0/foundation/filemanagement/file_api/interfaces/kits/js/src/mod_fileio/class_watcher/
H A Dwatcher_n_exporter.cpp46 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()
/ohos5.0/foundation/filemanagement/file_api/interfaces/kits/js/src/mod_fileio/class_stream/
H A Dstream_n_exporter.cpp52 auto streamEntity = NClass::GetEntityOf<StreamEntity>(env, funcArg.GetThisVar()); in ReadSync()
90 auto streamEntity = NClass::GetEntityOf<StreamEntity>(env, funcArg.GetThisVar()); in CloseSync()
96 (void)NClass::RemoveEntityOfFinal<StreamEntity>(env, funcArg.GetThisVar()); in CloseSync()
111 auto streamEntity = NClass::GetEntityOf<StreamEntity>(env, funcArg.GetThisVar()); in WriteSync()
163 auto streamEntity = NClass::GetEntityOf<StreamEntity>(env, funcArg.GetThisVar()); in Write()
230 auto streamEntity = NClass::GetEntityOf<StreamEntity>(env, funcArg.GetThisVar()); in Read()
298 auto streamEntity = NClass::GetEntityOf<StreamEntity>(env, funcArg.GetThisVar()); in Close()
304 auto fp = NClass::RemoveEntityOfFinal<StreamEntity>(env, funcArg.GetThisVar()); in Close()
343 if (!NClass::SetEntityFor<StreamEntity>(env, funcArg.GetThisVar(), move(streamEntity))) { in Constructor()
366 …tie(succ, cls) = NClass::DefineClass(exports_.env_, className, StreamNExporter::Constructor, move(… in Export()
[all …]
/ohos5.0/foundation/filemanagement/file_api/interfaces/kits/js/src/mod_fs/class_tasksignal/
H A Dtask_signal_n_exporter.cpp53 …if (!NClass::SetEntityFor<TaskSignalEntity>(env, funcArg.GetThisVar(), std::move(taskSignalEntity)… in Constructor()
69 …auto [succ, classValue] = NClass::DefineClass(exports_.env_, className_, Constructor, std::move(pr… 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()
/ohos5.0/foundation/filemanagement/file_api/interfaces/kits/js/src/mod_fileio/class_file/
H A Dfile_n_exporter.cpp39 auto rafEntity = NClass::GetEntityOf<FileEntity>(env, raf_entity); in GetFileEntity()
74 if (!NClass::SetEntityFor<FileEntity>(env, funcArg.GetThisVar(), move(rafEntity))) { in Constructor()
90 tie(succ, classValue) = NClass::DefineClass(exports_.env_, className, in Export()
96 succ = NClass::SaveClass(exports_.env_, className, classValue); in Export()
/ohos5.0/foundation/graphic/graphic_2d/interfaces/kits/napi/graphic/webgl/src/
H A Dwebgl_query.cpp33 if (!NClass::SetEntityFor<WebGLQuery>(env, funcArg.GetThisVar(), move(webGlQuery))) { in Constructor()
47 …tie(succ, clas) = NClass::DefineClass(exports_.env_, className, WebGLQuery::Constructor, std::move… in Export()
52 succ = NClass::SaveClass(exports_.env_, className, clas); in Export()
H A Dwebgl_renderbuffer.cpp36 …if (!NClass::SetEntityFor<WebGLRenderbuffer>(env, funcArg.GetThisVar(), move(webGlRenderbuffer))) { in Constructor()
50 …tie(succ, clas) = NClass::DefineClass(exports_.env_, className, WebGLRenderbuffer::Constructor, st… in Export()
55 succ = NClass::SaveClass(exports_.env_, className, clas); in Export()
H A Dwebgl_sampler.cpp31 if (!NClass::SetEntityFor<WebGLSampler>(env, funcArg.GetThisVar(), move(webGlSampler))) { in Constructor()
45 …tie(succ, clas) = NClass::DefineClass(exports_.env_, className, WebGLSampler::Constructor, std::mo… in Export()
50 succ = NClass::SaveClass(exports_.env_, className, clas); in Export()

123