Lines Matching refs:args
21 connect: function (...args) { argument
24 const len = args.length
25 if (typeof args[len - 1] === 'function') {
26 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramBooleanMock);
33 send: function (...args) { argument
36 const len = args.length
37 if (typeof args[len - 1] === 'function') {
38 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramBooleanMock);
45 close: function (...args) { argument
48 const len = args.length
49 if (typeof args[len - 1] === 'function') {
50 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramBooleanMock);
57 on: function (...args) { argument
60 const len = args.length
61 if (typeof args[len - 1] === 'function') {
62 if (args[0] === 'open') {
63 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramObjectMock);
64 } else if (args[0] === 'message') {
65 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramStringMock);
66 } else if (args[0] === 'close') {
67 args[len - 1].call(this, paramMock.businessErrorMock, {
71 } else if (args[0] === 'error') {
72 args[len - 1].call(this, paramMock.businessErrorMock);
76 off: function (...args) { argument
79 const len = args.length
80 if (typeof args[len - 1] === 'function') {
81 if (args[0] === 'open') {
82 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramObjectMock);
83 } else if (args[0] === 'message') {
84 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramStringMock);
85 } else if (args[0] === 'close') {
86 args[len - 1].call(this, paramMock.businessErrorMock, {
90 } else if (args[0] === 'error') {
91 args[len - 1].call(this, paramMock.businessErrorMock);
112 close: function (...args) { argument
115 const len = args.length
116 if (typeof args[len - 1] === 'function') {
117 args[len - 1].call(this, paramMock.businessErrorMock);
124 delete: function (...args) { argument
127 const len = args.length
128 if (typeof args[len - 1] === 'function') {
129 args[len - 1].call(this, paramMock.businessErrorMock);
136 flush: function (...args) { argument
139 const len = args.length
140 if (typeof args[len - 1] === 'function') {
141 args[len - 1].call(this, paramMock.businessErrorMock);
155 request: function (...args) { argument
158 const len = args.length
159 if (typeof args[len - 1] === 'function') {
160 args[len - 1].call(this, paramMock.businessErrorMock, HttpResponseMock);
171 on: function (...args) { argument
174 const len = args.length
175 if (typeof args[len - 1] === 'function') {
176 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramObjectMock);
179 off: function (...args) { argument
182 const len = args.length
183 if (typeof args[len - 1] === 'function') {
184 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramObjectMock);
194 getInstalledHttpResponseCache: function (...args) { argument
197 const len = args.length
198 if (typeof args[len - 1] === 'function') {
199 args[len - 1].call(this, paramMock.businessErrorMock, HttpResponseCache);
206 createHttpResponseCache: function (...args) { argument
209 const len = args.length
210 if (typeof args[len - 1] === 'function') {
211 args[len - 1].call(this, paramMock.businessErrorMock, HttpResponseCacheOptions);
229 on: function (...args) { argument
232 const len = args.length
233 if (typeof args[len - 1] === 'function') {
234 if (args[0] === 'serviceAdd') {
235 args[len - 1].call(this, { serviceInfo: localServiceInfoMock, errorCode: 0 });
236 } else if (args[0] === 'serviceRemove') {
237 args[len - 1].call(this, { serviceInfo: localServiceInfoMock, errorCode: 0 });
238 } else if (args[0] === 'serviceStart') {
239 args[len - 1].call(this, { serviceInfo: localServiceInfoMock, errorCode: 0 });
240 } else if (args[0] === 'serviceStop') {
241 args[len - 1].call(this, { serviceInfo: localServiceInfoMock, errorCode: 0 });
242 } else if (args[0] === 'serviceFound') {
243 args[len - 1].call(this, localServiceInfoMock);
244 } else if (args[0] === 'serviceLost') {
245 args[len - 1].call(this, localServiceInfoMock);
246 } else if (args[0] === 'serviceResolve') {
247 args[len - 1].call(this, { serviceInfo: localServiceInfoMock, errorCode: 0 });
248 } else if (args[0] === 'serviceLost') {
249 args[len - 1].call(this, { serviceInfo: localServiceInfoMock, errorCode: 0 });
250 } else if (args[0] === 'error') {
251 args[len - 1].call(this, { serviceInfo: localServiceInfoMock, errorCode: 0 });
253 args[len - 1].call(this);
257 off: function (...args) { argument
260 const len = args.length
261 if (typeof args[len - 1] === 'function') {
262 if (args[0] === 'serviceAdd') {
263 args[len - 1].call(this, { serviceInfo: localServiceInfoMock, errorCode: 0 });
264 } else if (args[0] === 'serviceRemove') {
265 args[len - 1].call(this, { serviceInfo: localServiceInfoMock, errorCode: 0 });
266 } else if (args[0] === 'serviceStart') {
267 args[len - 1].call(this, { serviceInfo: localServiceInfoMock, errorCode: 0 });
268 } else if (args[0] === 'serviceStop') {
269 args[len - 1].call(this, { serviceInfo: localServiceInfoMock, errorCode: 0 });
270 } else if (args[0] === 'serviceFound') {
271 args[len - 1].call(this, localServiceInfoMock);
272 } else if (args[0] === 'serviceLost') {
273 args[len - 1].call(this, localServiceInfoMock);
274 } else if (args[0] === 'serviceResolve') {
275 args[len - 1].call(this, { serviceInfo: localServiceInfoMock, errorCode: 0 });
276 } else if (args[0] === 'serviceLost') {
277 args[len - 1].call(this, { serviceInfo: localServiceInfoMock, errorCode: 0 });
278 } else if (args[0] === 'error') {
279 args[len - 1].call(this, { serviceInfo: localServiceInfoMock, errorCode: 0 });
281 args[len - 1].call(this);
285 addLocalService: function (...args) { argument
288 const len = args.length
289 if (typeof args[len - 1] === 'function') {
290 args[len - 1].call(this, paramMock.businessErrorMock);
297 removeLocalService: function (...args) { argument
300 const len = args.length
301 if (typeof args[len - 1] === 'function') {
302 args[len - 1].call(this, paramMock.businessErrorMock);
309 startSearchingMDNS: function (...args) { argument
312 const len = args.length
313 if (typeof args[len - 1] === 'function') {
314 args[len - 1].call(this, paramMock.businessErrorMock);
321 stopSearchingMDNS: function (...args) { argument
324 const len = args.length
325 if (typeof args[len - 1] === 'function') {
326 args[len - 1].call(this, paramMock.businessErrorMock);
354 bind: function (...args) { argument
357 const len = args.length
358 if (typeof args[len - 1] === 'function') {
359 args[len - 1].call(this, paramMock.businessErrorMock)
366 send: function (...args) { argument
369 const len = args.length
370 if (typeof args[len - 1] === 'function') {
371 args[len - 1].call(this, paramMock.businessErrorMock)
378 close: function (...args) { argument
381 const len = args.length
382 if (typeof args[len - 1] === 'function') {
383 args[len - 1].call(this, paramMock.businessErrorMock)
390 getState: function (...args) { argument
393 const len = args.length
394 if (typeof args[len - 1] === 'function') {
395 args[len - 1].call(this, paramMock.businessErrorMock, SocketStateBase)
402 setExtraOptions: function (...args) { argument
405 const len = args.length
406 if (typeof args[len - 1] === 'function') {
407 args[len - 1].call(this, paramMock.businessErrorMock)
414 on: function (...args) { argument
417 const len = args.length
418 if (typeof args[len - 1] === 'function') {
419 if (args[0] === 'message') {
420 args[len - 1].call(this, {
424 } else if (args[0] === 'listening') {
425 args[len - 1].call(this, paramMock.businessErrorMock);
426 } else if (args[0] === 'error') {
427 args[len - 1].call(this, paramMock.businessErrorMock);
431 off: function (...args) { argument
434 const len = args.length
435 if (typeof args[len - 1] === 'function') {
436 if (args[0] === 'message') {
437 args[len - 1].call(this, {
441 } else if (args[0] === 'listening') {
442 args[len - 1].call(this, paramMock.businessErrorMock);
443 } else if (args[0] === 'error') {
444 args[len - 1].call(this, paramMock.businessErrorMock);
451 bind: function (...args) { argument
454 const len = args.length
455 if (typeof args[len - 1] === 'function') {
456 args[len - 1].call(this, paramMock.businessErrorMock)
463 connect: function (...args) { argument
466 const len = args.length
467 if (typeof args[len - 1] === 'function') {
468 args[len - 1].call(this, paramMock.businessErrorMock)
475 send: function (...args) { argument
478 const len = args.length
479 if (typeof args[len - 1] === 'function') {
480 args[len - 1].call(this, paramMock.businessErrorMock)
487 close: function (...args) { argument
490 const len = args.length
491 if (typeof args[len - 1] === 'function') {
492 args[len - 1].call(this, paramMock.businessErrorMock)
499 getRemoteAddress: function (...args) { argument
502 const len = args.length
503 if (typeof args[len - 1] === 'function') {
504 args[len - 1].call(this, paramMock.businessErrorMock, NetAddress)
511 getState: function (...args) { argument
514 const len = args.length
515 if (typeof args[len - 1] === 'function') {
516 args[len - 1].call(this, paramMock.businessErrorMock, SocketStateBase)
523 setExtraOptions: function (...args) { argument
526 const len = args.length
527 if (typeof args[len - 1] === 'function') {
528 args[len - 1].call(this, paramMock.businessErrorMock)
535 on: function (...args) { argument
538 const len = args.length
539 if (typeof args[len - 1] === 'function') {
540 if (args[0] === 'message') {
541 args[len - 1].call(this, {
545 } else if (args[0] === 'listening') {
546 args[len - 1].call(this, paramMock.businessErrorMock);
547 } else if (args[0] === 'error') {
548 args[len - 1].call(this, paramMock.businessErrorMock);
552 off: function (...args) { argument
555 const len = args.length
556 if (typeof args[len - 1] === 'function') {
557 if (args[0] === 'message') {
558 args[len - 1].call(this, {
562 } else if (args[0] === 'listening') {
563 args[len - 1].call(this, paramMock.businessErrorMock);
564 } else if (args[0] === 'error') {
565 args[len - 1].call(this, paramMock.businessErrorMock);
586 isHotspotSupported: function (...args) { argument
589 const len = args.length
590 if (typeof args[len - 1] === 'function') {
591 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramBooleanMock);
598 stopUsbHotspot: function (...args) { argument
601 const len = args.length
602 if (typeof args[len - 1] === 'function') {
603 args[len - 1].call(this, paramMock.businessErrorMock);
610 startUsbHotspot: function (...args) { argument
613 const len = args.length
614 if (typeof args[len - 1] === 'function') {
615 args[len - 1].call(this, paramMock.businessErrorMock);
622 getRxBytes: function (...args) { argument
625 const len = args.length
626 if (typeof args[len - 1] === 'function') {
627 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock);
634 getTxBytes: function (...args) { argument
637 const len = args.length
638 if (typeof args[len - 1] === 'function') {
639 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock);
646 getNetHotspotIfaces: function (...args) { argument
651 const len = args.length
652 if (typeof args[len - 1] === 'function') {
653 args[len - 1].call(this, paramMock.businessErrorMock, stringArray);
664 getIfaceRxBytes: function (...args) { argument
667 const len = args.length
668 if (typeof args[len - 1] === 'function') {
669 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock);
676 getIfaceTxBytes: function (...args) { argument
679 const len = args.length
680 if (typeof args[len - 1] === 'function') {
681 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock);
688 getCellularRxBytes: function (...args) { argument
691 const len = args.length
692 if (typeof args[len - 1] === 'function') {
693 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock);
700 getCellularTxBytes: function (...args) { argument
703 const len = args.length
704 if (typeof args[len - 1] === 'function') {
705 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock);
712 getAllTxBytes: function (...args) { argument
715 const len = args.length
716 if (typeof args[len - 1] === 'function') {
717 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock);
724 getAllRxBytes: function (...args) { argument
727 const len = args.length
728 if (typeof args[len - 1] === 'function') {
729 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock);
736 getUidRxBytes: function (...args) { argument
739 const len = args.length
740 if (typeof args[len - 1] === 'function') {
741 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock);
748 getUidTxBytes: function (...args) { argument
751 const len = args.length
752 if (typeof args[len - 1] === 'function') {
753 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramNumberMock);
773 const len = args.length
774 if (typeof args[len - 1] === 'function') {
775 args[len - 1].call(this, paramMock.businessErrorMock, HttpResponse);
789 const len = args.length
790 if (typeof args[len - 1] === 'function' && args[0] === 'headerReceive') {
791 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramObjectMock);
801 const len = args.length
802 if (typeof args[len - 1] === 'function' && args[0] === 'headerReceive') {
803 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramObjectMock);
818 const len = args.length
819 if (typeof args[len - 1] === 'function') {
820 args[len - 1].call(this, paramMock.businessErrorMock);
830 const len = args.length
831 if (typeof args[len - 1] === 'function') {
832 args[len - 1].call(this, paramMock.businessErrorMock, HttpRequest);
842 const len = args.length
843 if (typeof args[len - 1] === 'function') {
844 args[len - 1].call(this, paramMock.businessErrorMock, NetAddress);
854 const len = args.length
855 if (typeof args[len - 1] === 'function') {
856 args[len - 1].call(this, paramMock.businessErrorMock, NetAddress);
912 on: function (...args) { argument
915 const len = args.length
916 if (typeof args[len - 1] === 'function') {
917 if (args[0] === 'netAvailable') {
918 args[len - 1].call(this, paramMock.businessErrorMock, NetHandle);
919 } else if (args[0] === 'netBlockStatusChange') {
920 args[len - 1].call(this, paramMock.businessErrorMock, { NetHandle, blocked });
921 } else if (args[0] === 'netCapabilitiesChange') {
922 args[len - 1].call(this, { NetHandle, NetCap });
923 } else if (args[0] === 'netConnectionPropertiesChange') {
924 args[len - 1].call(this, { NetHandle, ConnectionProperties });
925 } else if (args[0] === 'netLosing') {
926 args[len - 1].call(this, {
930 } else if (args[0] === 'netLost') {
931 args[len - 1].call(this, paramMock.businessErrorMock, NetHandle);
932 } else if (args[0] === 'netUnavailable') {
933 args[len - 1].call(this, paramMock.businessErrorMock);
937 off: function (...args) { argument
940 const len = args.length
941 if (typeof args[len - 1] === 'function') {
942 if (args[0] === 'netAvailable') {
943 args[len - 1].call(this, paramMock.businessErrorMock, NetHandle);
944 } else if (args[0] === 'netBlockStatusChange') {
945 args[len - 1].call(this, { NetHandle, blocked });
946 } else if (args[0] === 'netCapabilitiesChange') {
947 args[len - 1].call(this, { NetHandle, NetCap });
948 } else if (args[0] === 'netConnectionPropertiesChange') {
949 args[len - 1].call(this, { NetHandle, ConnectionProperties });
950 } else if (args[0] === 'netLosing') {
951 args[len - 1].call(this, {
955 } else if (args[0] === 'netLost') {
956 args[len - 1].call(this, paramMock.businessErrorMock, NetHandle);
957 } else if (args[0] === 'netUnavailable') {
958 args[len - 1].call(this, paramMock.businessErrorMock);
962 addNetStatusCallback: function (...args) { argument
965 const len = args.length
966 if (typeof args[len - 1] === 'function') {
967 args[len - 1].call(this, paramMock.businessErrorMock);
974 removeNetStatusCallback: function (...args) { argument
977 const len = args.length
978 if (typeof args[len - 1] === 'function') {
979 args[len - 1].call(this, paramMock.businessErrorMock);
986 getAppNet: function (...args) { argument
989 const len = args.length
990 if (typeof args[len - 1] === 'function') {
991 args[len - 1].call(this, paramMock.businessErrorMock, NetHandle);
998 setAppNet: function (...args) { argument
1001 const len = args.length
1002 if (typeof args[len - 1] === 'function') {
1003 args[len - 1].call(this, paramMock.businessErrorMock);
1010 getDefaultNet: function (...args) { argument
1013 const len = args.length
1014 if (typeof args[len - 1] === 'function') {
1015 args[len - 1].call(this, paramMock.businessErrorMock, NetHandle);
1022 getAllNets: function (...args) { argument
1025 const len = args.length
1026 if (typeof args[len - 1] === 'function') {
1027 args[len - 1].call(this, paramMock.businessErrorMock, NetHandle);
1034 getDefaultHttpProxy: function (...args) { argument
1037 const len = args.length
1038 if (typeof args[len - 1] === 'function') {
1039 args[len - 1].call(this, paramMock.businessErrorMock, HttpProxy);
1046 getConnectionProperties: function (...args) { argument
1049 const len = args.length
1050 if (typeof args[len - 1] === 'function') {
1051 args[len - 1].call(this, paramMock.businessErrorMock, ConnectionProperties);
1058 getNetCapabilities: function (...args) { argument
1061 const len = args.length
1062 if (typeof args[len - 1] === 'function') {
1063 args[len - 1].call(this, paramMock.businessErrorMock, NetCapabilities);
1070 getBackgroundPolicy: function (...args) { argument
1073 const len = args.length
1074 if (typeof args[len - 1] === 'function') {
1075 args[len - 1].call(this, paramMock.businessErrorMock, BackgroundPolicy);
1082 isDefaultNetMetered: function (...args) { argument
1085 const len = args.length
1086 if (typeof args[len - 1] === 'function') {
1087 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramBooleanMock);
1094 hasDefaultNet: function (...args) { argument
1097 const len = args.length
1098 if (typeof args[len - 1] === 'function') {
1099 args[len - 1].call(this, paramMock.businessErrorMock, paramMock.paramBooleanMock);
1106 enableAirplaneMode: function (...args) { argument
1109 const len = args.length
1110 if (typeof args[len - 1] === 'function') {
1111 args[len - 1].call(this, paramMock.businessErrorMock);
1118 disableAirplaneMode: function (...args) { argument
1121 const len = args.length
1122 if (typeof args[len - 1] === 'function') {
1123 args[len - 1].call(this, paramMock.businessErrorMock);
1130 enableDistributedCellularData: function (...args) { argument
1133 const len = args.length
1134 if (typeof args[len - 1] === 'function') {
1135 args[len - 1].call(this, paramMock.businessErrorMock);
1142 disableDistributedCellularData: function (...args) { argument
1145 const len = args.length
1146 if (typeof args[len - 1] === 'function') {
1147 args[len - 1].call(this, paramMock.businessErrorMock);
1154 reportNetConnected: function (...args) { argument
1157 const len = args.length
1158 if (typeof args[len - 1] === 'function') {
1159 args[len - 1].call(this, paramMock.businessErrorMock);
1166 reportNetDisconnected: function (...args) { argument
1169 const len = args.length
1170 if (typeof args[len - 1] === 'function') {
1171 args[len - 1].call(this, paramMock.businessErrorMock);