Home
last modified time | relevance | path

Searched refs:succ (Results 1 – 25 of 146) sorted by relevance

123456

/foundation/graphic/graphic_2d/interfaces/kits/napi/graphic/webgl/src/webgl/src/
Dwebgl2_rendering_context_overloads.cpp41 bool succ = false; in BufferData() local
43 tie(succ, target) = NVal(env, funcArg[NARG_POS::FIRST]).ToInt64(); in BufferData()
44 if (!succ) { in BufferData()
53 tie(succ, size) = NVal(env, funcArg[NARG_POS::SECOND]).ToInt64(); in BufferData()
54 if (!succ) { in BufferData()
61 tie(succ, srcOffset) = NVal(env, funcArg[NARG_POS::FOURTH]).ToInt64(); in BufferData()
62 if (!succ) { in BufferData()
69 tie(succ, length) = NVal(env, funcArg[NARG_POS::FIFTH]).ToInt64(); in BufferData()
70 if (!succ) { in BufferData()
75 tie(succ, data, length) = NVal(env, funcArg[NARG_POS::SECOND]).ToArraybuffer(); in BufferData()
[all …]
Dwebgl_rendering_context_overloads.cpp45 bool succ = false; in BufferData() local
48 tie(succ, target) = NVal(env, funcArg[NARG_POS::FIRST]).ToInt64(); in BufferData()
49 if (!succ) { in BufferData()
58 tie(succ, size) = NVal(env, funcArg[NARG_POS::SECOND]).ToInt32(); in BufferData()
59 if (!succ) { in BufferData()
70 tie(succ, data, size) = NVal(env, funcArg[NARG_POS::SECOND]).ToDataview(); in BufferData()
71 if (!succ) { in BufferData()
79 tie(succ, data, size) = NVal(env, funcArg[NARG_POS::SECOND]).ToArraybuffer(); in BufferData()
80 if (!succ) { in BufferData()
91 tie(succ, usage) = NVal(env, funcArg[NARG_POS::THIRD]).ToInt32(); in BufferData()
[all …]
Dwebgl2_rendering_context_base.cpp55 bool succ = false; in DrawBuffers() local
56 tie(succ, isArray) = NVal(env, array).IsArray(); in DrawBuffers()
57 if (!isArray || !succ) { in DrawBuffers()
94 bool succ = false; in ClearBufferfv() local
96 tie(succ, buffer) = NVal(env, funcArg[NARG_POS::FIRST]).ToInt64(); in ClearBufferfv()
97 if (!succ) { in ClearBufferfv()
102 tie(succ, drawbuffer) = NVal(env, funcArg[NARG_POS::SECOND]).ToInt64(); in ClearBufferfv()
103 if (!succ) { in ClearBufferfv()
113 tie(succ, srcOffset) = NVal(env, funcArg[NARG_POS::FOURTH]).ToInt64(); in ClearBufferfv()
114 if (!succ) { in ClearBufferfv()
[all …]
Dwebgl_rendering_context_base.cpp120 bool succ = false; in ActiveTexture() local
123 tie(succ, texture) = NVal(env, funcArg[NARG_POS::FIRST]).ToInt64(); in ActiveTexture()
124 if (!succ) { in ActiveTexture()
169 bool succ = false; in BindAttribLocation() local
182 tie(succ, index) = NVal(env, funcArg[NARG_POS::SECOND]).ToInt64(); in BindAttribLocation()
183 if (!succ) { in BindAttribLocation()
189 tie(succ, name, ignore) = NVal(env, funcArg[NARG_POS::THIRD]).ToUTF8String(); in BindAttribLocation()
190 if (!succ) { in BindAttribLocation()
206 bool succ = false; in BindBuffer() local
209 tie(succ, target) = NVal(env, funcArg[NARG_POS::FIRST]).ToInt64(); in BindBuffer()
[all …]
/foundation/distributeddatamgr/distributedfile/interfaces/kits/js/src/mod_fileio/
Dcommon_func.cpp37 bool succ = false; in GetActualBuf() local
41 tie(succ, opOffset) = op.GetProp("offset").ToInt64(); in GetActualBuf()
42 if (!succ || opOffset < 0) { in GetActualBuf()
60 bool succ = false; in GetActualLen() local
65 tie(succ, opLength) = op.GetProp("length").ToInt64(); in GetActualLen()
66 if (!succ) { in GetActualLen()
119 bool succ = false; in GetCopyPathArg() local
121 tie(succ, src, ignore) = NVal(env, srcPath).ToUTF8String(); in GetCopyPathArg()
122 if (!succ) { in GetCopyPathArg()
127 tie(succ, dest, ignore) = NVal(env, dstPath).ToUTF8String(); in GetCopyPathArg()
[all …]
/foundation/filemanagement/file_api/interfaces/kits/js/src/mod_fileio/
Dcommon_func.cpp58 bool succ = false; in GetActualBuf() local
62 tie(succ, opOffset) = op.GetProp("offset").ToInt64(opOffset); in GetActualBuf()
63 if (!succ || opOffset < 0) { in GetActualBuf()
81 bool succ = false; in GetActualLen() local
86 tie(succ, opLength) = op.GetProp("length").ToInt64(static_cast<int64_t>(retLen)); in GetActualLen()
87 if (!succ || opLength < 0 || static_cast<size_t>(opLength) > retLen) { in GetActualLen()
98 bool succ = false; in GetActualLenV9() local
103 tie(succ, opLength) = op.GetProp("length").ToInt64(); in GetActualLenV9()
104 if (!succ) { in GetActualLenV9()
158 bool succ = false; in GetCopyPathArg() local
[all …]
/foundation/distributeddatamgr/distributedfile/interfaces/kits/js/src/mod_fileio/properties/
Dlchown.cpp32 bool succ = false; in GetLchownArg() local
34 tie(succ, path, ignore) = NVal(env, funcArg[NARG_POS::FIRST]).ToUTF8String(); in GetLchownArg()
35 if (!succ) { in GetLchownArg()
41 tie(succ, owner) = NVal(env, funcArg[NARG_POS::SECOND]).ToInt32(); in GetLchownArg()
42 if (!succ) { in GetLchownArg()
48 tie(succ, group) = NVal(env, funcArg[NARG_POS::THIRD]).ToInt32(); in GetLchownArg()
49 if (!succ) { in GetLchownArg()
53 return { succ, path.get(), owner, group }; in GetLchownArg()
65 bool succ = false; in Sync() local
69 tie(succ, path, owner, group) = GetLchownArg(env, funcArg); in Sync()
[all …]
Dposix_fallocate.cpp32 bool succ = false; in GetPosixFallocateArg() local
34 tie(succ, fd) = NVal(env, funcArg[NARG_POS::FIRST]).ToInt32(); in GetPosixFallocateArg()
35 if (!succ) { in GetPosixFallocateArg()
40 tie(succ, offset) = NVal(env, funcArg[NARG_POS::SECOND]).ToInt32(); in GetPosixFallocateArg()
41 if (!succ) { in GetPosixFallocateArg()
46 tie(succ, len) = NVal(env, funcArg[NARG_POS::THIRD]).ToInt32(); in GetPosixFallocateArg()
47 if (!succ) { in GetPosixFallocateArg()
51 return { succ, fd, offset, len }; in GetPosixFallocateArg()
61 bool succ = false; in Sync() local
65 tie(succ, fd, offset, len) = GetPosixFallocateArg(env, funcArg); in Sync()
[all …]
Dlseek.cpp30 bool succ = false; in GetLseekArg() local
32 tie(succ, fd) = NVal(env, funcArg[NARG_POS::FIRST]).ToInt32(); in GetLseekArg()
33 if (!succ) { in GetLseekArg()
39 tie(succ, offset) = NVal(env, funcArg[NARG_POS::SECOND]).ToInt32(); in GetLseekArg()
40 if (!succ) { in GetLseekArg()
46 tie(succ, whence) = NVal(env, funcArg[NARG_POS::THIRD]).ToInt32(); in GetLseekArg()
47 if (!succ) { in GetLseekArg()
52 return { succ, fd, offset, whence }; in GetLseekArg()
63 bool succ = false; in Sync() local
67 tie(succ, fd, offset, whence) = GetLseekArg(env, funcArg); in Sync()
[all …]
Dchown.cpp32 bool succ = false; in GetChownArg() local
34 tie(succ, path, ignore) = NVal(env, funcArg[NARG_POS::FIRST]).ToUTF8String(); in GetChownArg()
35 if (!succ) { in GetChownArg()
41 tie(succ, owner) = NVal(env, funcArg[NARG_POS::SECOND]).ToInt32(); in GetChownArg()
42 if (!succ) { in GetChownArg()
48 tie(succ, group) = NVal(env, funcArg[NARG_POS::THIRD]).ToInt32(); in GetChownArg()
49 if (!succ) { in GetChownArg()
53 return { succ, path.get(), owner, group }; in GetChownArg()
65 bool succ = false; in Sync() local
69 tie(succ, path, owner, group) = GetChownArg(env, funcArg); in Sync()
[all …]
Dfchown.cpp38 bool succ = false; in Sync() local
40 tie(succ, fd) = NVal(env, funcArg[NARG_POS::FIRST]).ToInt32(); in Sync()
41 if (!succ) { in Sync()
47 tie(succ, owner) = NVal(env, funcArg[NARG_POS::SECOND]).ToInt32(); in Sync()
48 if (!succ) { in Sync()
53 tie(succ, group) = NVal(env, funcArg[NARG_POS::THIRD]).ToInt32(); in Sync()
54 if (!succ) { in Sync()
76 bool succ = false; in Async() local
78 tie(succ, fd) = NVal(env, funcArg[NARG_POS::FIRST]).ToInt32(); in Async()
79 if (!succ) { in Async()
[all …]
Dsymlink.cpp32 bool succ = false; in GetSymlinkArg() local
34 tie(succ, src, ignore) = NVal(env, funcArg[NARG_POS::FIRST]).ToUTF8String(); in GetSymlinkArg()
35 if (!succ) { in GetSymlinkArg()
41 tie(succ, dest, ignore) = NVal(env, funcArg[NARG_POS::SECOND]).ToUTF8String(); in GetSymlinkArg()
42 if (!succ) { in GetSymlinkArg()
57 bool succ = false; in Sync() local
60 tie(succ, oldPath, newPath) = GetSymlinkArg(env, funcArg); in Sync()
61 if (!succ) { in Sync()
80 bool succ = false; in Async() local
83 tie(succ, oldPath, newPath) = GetSymlinkArg(env, funcArg); in Async()
[all …]
Dlink.cpp33 bool succ = false; in GetLinkArg() local
35 tie(succ, src, ignore) = NVal(env, funcArg[NARG_POS::FIRST]).ToUTF8String(); in GetLinkArg()
36 if (!succ) { in GetLinkArg()
42 tie(succ, dest, ignore) = NVal(env, funcArg[NARG_POS::SECOND]).ToUTF8String(); in GetLinkArg()
43 if (!succ) { in GetLinkArg()
58 bool succ = false; in Sync() local
61 tie(succ, oldPath, newPath) = GetLinkArg(env, funcArg); in Sync()
62 if (!succ) { in Sync()
81 bool succ = false; in Async() local
84 tie(succ, oldPath, newPath) = GetLinkArg(env, funcArg); in Async()
[all …]
Dprop_n_exporter.cpp71 bool succ = false; in AccessSync() local
73 tie(succ, path, ignore) = NVal(env, funcArg[NARG_POS::FIRST]).ToUTF8String(); in AccessSync()
74 if (!succ) { in AccessSync()
85 tie(succ, mode) = NVal(env, funcArg[NARG_POS::SECOND]).ToInt32(); in AccessSync()
86 if (!succ) { in AccessSync()
102 bool succ = false; in GetAccessArgs() local
104 tie(succ, path, ignore) = NVal(env, funcArg[NARG_POS::FIRST]).ToUTF8String(); in GetAccessArgs()
105 if (!succ) { in GetAccessArgs()
131 tie(succ, mode) = NVal(env, funcArg[NARG_POS::SECOND]).ToInt32(); in GetAccessArgs()
132 if (!succ) { in GetAccessArgs()
[all …]
Dchmod.cpp38 bool succ = false; in Sync() local
40 tie(succ, path, ignore) = NVal(env, funcArg[NARG_POS::FIRST]).ToUTF8String(); in Sync()
41 if (!succ) { in Sync()
47 tie(succ, mode) = NVal(env, funcArg[NARG_POS::SECOND]).ToInt32(); in Sync()
48 if (!succ) { in Sync()
71 bool succ = false; in Async() local
72 tie(succ, tmp, ignore) = NVal(env, funcArg[NARG_POS::FIRST]).ToUTF8String(); in Async()
73 if (!succ) { in Async()
81 tie(succ, mode) = NVal(env, funcArg[NARG_POS::SECOND]).ToInt32(); in Async()
82 if (!succ) { in Async()
Dfchmod.cpp40 bool succ = false; in Sync() local
42 tie(succ, fd) = NVal(env, funcArg[NARG_POS::FIRST]).ToInt32(); in Sync()
43 if (!succ) { in Sync()
49 tie(succ, mode) = NVal(env, funcArg[NARG_POS::SECOND]).ToInt32(); in Sync()
50 if (!succ) { in Sync()
74 bool succ = false; in Async() local
76 tie(succ, fd) = NVal(env, funcArg[NARG_POS::FIRST]).ToInt32(); in Async()
77 if (!succ) { in Async()
83 tie(succ, mode) = NVal(env, funcArg[NARG_POS::SECOND]).ToInt32(); in Async()
84 if (!succ) { in Async()
Drename.cpp40 bool succ = false; in Sync() local
42 tie(succ, src, ignore) = NVal(env, funcArg[NARG_POS::FIRST]).ToUTF8String(); in Sync()
43 if (!succ) { in Sync()
49 tie(succ, dest, ignore) = NVal(env, funcArg[NARG_POS::SECOND]).ToUTF8String(); in Sync()
50 if (!succ) { in Sync()
72 bool succ = false; in Async() local
74 tie(succ, src, ignore) = NVal(env, funcArg[NARG_POS::FIRST]).ToUTF8String(); in Async()
75 if (!succ) { in Async()
81 tie(succ, dest, ignore) = NVal(env, funcArg[NARG_POS::SECOND]).ToUTF8String(); in Async()
82 if (!succ) { in Async()
/foundation/filemanagement/file_api/interfaces/kits/js/src/mod_fs/
Dcommon_func.cpp85 bool succ = false; in GetActualLen() local
91 tie(succ, opLength) = op.GetPropValue("length").ToInt64(static_cast<int64_t>(retLen)); in GetActualLen()
93 tie(succ, opLength) = op.GetProp("length").ToInt64(static_cast<int64_t>(retLen)); in GetActualLen()
95 if (!succ || opLength < 0 || static_cast<size_t>(opLength) > retLen) { in GetActualLen()
258 bool succ = false; in GetCopyPathArg() local
260 tie(succ, src, ignore) = NVal(env, srcPath).ToUTF8String(); in GetCopyPathArg()
261 if (!succ) { in GetCopyPathArg()
267 tie(succ, dest, ignore) = NVal(env, dstPath).ToUTF8String(); in GetCopyPathArg()
268 if (!succ) { in GetCopyPathArg()
284 bool succ = false; in DecodeString() local
[all …]
/foundation/distributeddatamgr/distributedfile/interfaces/kits/napi/common/
Dcommon_func.cpp26 bool succ = false; in GetCallbackHandles() local
39 succ = true; in GetCallbackHandles()
43 if (succ && failProp != nullptr) { in GetCallbackHandles()
45 succ = true; in GetCallbackHandles()
49 if (succ && completeProp != nullptr) { in GetCallbackHandles()
51 succ = true; in GetCallbackHandles()
54 return { succ, successHandle, failHandle, completeHandle }; in GetCallbackHandles()
/foundation/distributeddatamgr/distributedfile/interfaces/kits/js/src/mod_file/
Dcommon_func.cpp27 bool succ = false; in GetCallbackHandles() local
40 succ = true; in GetCallbackHandles()
44 if (succ && failProp != nullptr) { in GetCallbackHandles()
46 succ = true; in GetCallbackHandles()
50 if (succ && completeProp != nullptr) { in GetCallbackHandles()
52 succ = true; in GetCallbackHandles()
55 return { succ, successHandle, failHandle, completeHandle }; in GetCallbackHandles()
/foundation/filemanagement/file_api/interfaces/kits/js/src/mod_file/
Dcommon_func.cpp27 bool succ = false; in GetCallbackHandles() local
40 succ = true; in GetCallbackHandles()
44 if (succ && failProp != nullptr) { in GetCallbackHandles()
46 succ = true; in GetCallbackHandles()
50 if (succ && completeProp != nullptr) { in GetCallbackHandles()
52 succ = true; in GetCallbackHandles()
55 return { succ, successHandle, failHandle, completeHandle }; in GetCallbackHandles()
/foundation/distributeddatamgr/distributedfile/interfaces/kits/js/src/mod_statfs/
Dstatfs_n_exporter.cpp34 bool succ = false; in GetFrSizeSync() local
36 tie(succ, path, std::ignore) = NVal(env, funcArg[NARG_POS::FIRST]).ToUTF8String(); in GetFrSizeSync()
37 if (!succ) { in GetFrSizeSync()
61 bool succ = false; in GetFrSize() local
63 tie(succ, path, std::ignore) = NVal(env, funcArg[NARG_POS::FIRST]).ToUTF8String(); in GetFrSize()
64 if (!succ) { in GetFrSize()
105 bool succ = false; in GetBSizeSync() local
107 tie(succ, path, std::ignore) = NVal(env, funcArg[NARG_POS::FIRST]).ToUTF8String(); in GetBSizeSync()
108 if (!succ) { in GetBSizeSync()
130 bool succ = false; in GetBSize() local
[all …]
/foundation/filemanagement/file_api/interfaces/kits/js/src/mod_statfs/
Dstatfs_n_exporter.cpp34 bool succ = false; in GetFrSizeSync() local
36 tie(succ, path, std::ignore) = NVal(env, funcArg[NARG_POS::FIRST]).ToUTF8String(); in GetFrSizeSync()
37 if (!succ) { in GetFrSizeSync()
61 bool succ = false; in GetFrSize() local
63 tie(succ, path, std::ignore) = NVal(env, funcArg[NARG_POS::FIRST]).ToUTF8String(); in GetFrSize()
64 if (!succ) { in GetFrSize()
106 bool succ = false; in GetBSizeSync() local
108 tie(succ, path, std::ignore) = NVal(env, funcArg[NARG_POS::FIRST]).ToUTF8String(); in GetBSizeSync()
109 if (!succ) { in GetBSizeSync()
131 bool succ = false; in GetBSize() local
[all …]
/foundation/filemanagement/file_api/interfaces/kits/js/src/mod_fileio/properties/
Dprop_n_exporter.cpp73 auto [succ, path, ignore] = NVal(env, funcArg[NARG_POS::FIRST]).ToUTF8String(); in AccessSync()
74 if (!succ) { in AccessSync()
81 tie(succ, mode) = NVal(env, funcArg[NARG_POS::SECOND]).ToInt32(mode); in AccessSync()
82 if (!succ || mode < 0) { in AccessSync()
104 auto [succ, path, ignore] = NVal(env, funcArg[NARG_POS::FIRST]).ToUTF8String(); in Access()
105 if (!succ) { in Access()
112 tie(succ, mode) = NVal(env, funcArg[NARG_POS::SECOND]).ToInt32(mode); in Access()
113 if (!succ || mode < 0) { in Access()
156 auto [succ, path, ignore] = NVal(env, funcArg[NARG_POS::FIRST]).ToUTF8String(); in Unlink()
157 if (!succ) { in Unlink()
[all …]
/foundation/filemanagement/file_api/interfaces/kits/js/src/mod_securitylabel/
Dsecuritylabel_n_exporter.cpp39 bool succ = false; in SetSecurityLabel() local
42 …tie(succ, path, std::ignore) = NVal(env, funcArg[static_cast<int>(NARG_POS::FIRST)]).ToUTF8String(… in SetSecurityLabel()
43 if (!succ) { in SetSecurityLabel()
48 …tie(succ, dataLevel, std::ignore) = NVal(env, funcArg[static_cast<int>(NARG_POS::SECOND)]).ToUTF8S… in SetSecurityLabel()
49 if (!succ) { in SetSecurityLabel()
92 bool succ = false; in SetSecurityLabelSync() local
95 …tie(succ, path, std::ignore) = NVal(env, funcArg[static_cast<int>(NARG_POS::FIRST)]).ToUTF8String(… in SetSecurityLabelSync()
96 if (!succ) { in SetSecurityLabelSync()
102 …tie(succ, dataLevel, std::ignore) = NVal(env, funcArg[static_cast<int>(NARG_POS::SECOND)]).ToUTF8S… in SetSecurityLabelSync()
103 if (!succ) { in SetSecurityLabelSync()
[all …]

123456