/foundation/communication/ipc/ipc/native/src/napi_common/source/ |
H A D | napi_message_parcel_write.cpp | 72 napi_typeof(env, argv[ARGV_INDEX_0], &valueType); in JS_writeByte() 76 napi_get_value_int32(env, argv[ARGV_INDEX_0], &value); in JS_writeByte() 97 napi_typeof(env, argv[ARGV_INDEX_0], &valueType); in JS_writeShort() 101 napi_get_value_int32(env, argv[ARGV_INDEX_0], &value); in JS_writeShort() 122 napi_typeof(env, argv[ARGV_INDEX_0], &valueType); in JS_writeInt() 126 napi_get_value_int32(env, argv[ARGV_INDEX_0], &value); in JS_writeInt() 147 napi_typeof(env, argv[ARGV_INDEX_0], &valueType); in JS_writeLong() 151 napi_get_value_int64(env, argv[ARGV_INDEX_0], &value); in JS_writeLong() 172 napi_typeof(env, argv[ARGV_INDEX_0], &valueType); in JS_writeFloat() 176 napi_get_value_double(env, argv[ARGV_INDEX_0], in JS_writeFloat() [all...] |
H A D | napi_message_sequence_write.cpp | 104 napi_typeof(env, argv[ARGV_INDEX_0], &valueType); in JS_writeByte() 111 napi_get_value_int32(env, argv[ARGV_INDEX_0], &value); in JS_writeByte() 142 napi_typeof(env, argv[ARGV_INDEX_0], &valueType); in JS_writeShort() 149 napi_get_value_int32(env, argv[ARGV_INDEX_0], &value); in JS_writeShort() 180 napi_typeof(env, argv[ARGV_INDEX_0], &valueType); in JS_writeInt() 187 napi_get_value_int32(env, argv[ARGV_INDEX_0], &value); in JS_writeInt() 218 napi_typeof(env, argv[ARGV_INDEX_0], &valueType); in JS_writeLong() 225 napi_get_value_int64(env, argv[ARGV_INDEX_0], &value); in JS_writeLong() 256 napi_typeof(env, argv[ARGV_INDEX_0], &valueType); in JS_writeFloat() 263 napi_get_value_double(env, argv[ARGV_INDEX_0], in JS_writeFloat() [all...] |
H A D | napi_message_parcel_read.cpp | 236 napi_get_property(env, argv[ARGV_INDEX_0], propKey, &prop); in JS_readSequenceable() 240 napi_call_function(env, argv[ARGV_INDEX_0], prop, 1, funcArg, &callResult); in JS_readSequenceable() 273 napi_is_array(env, argv[ARGV_INDEX_0], &isArray); in JS_readByteArray() 280 napi_set_element(env, argv[ARGV_INDEX_0], i, num); in JS_readByteArray() 324 napi_is_array(env, argv[ARGV_INDEX_0], &isArray); in JS_readShortArray() 331 napi_set_element(env, argv[ARGV_INDEX_0], i, num); in JS_readShortArray() 375 napi_is_array(env, argv[ARGV_INDEX_0], &isArray); in JS_readIntArray() 382 napi_set_element(env, argv[ARGV_INDEX_0], i, num); in JS_readIntArray() 426 napi_is_array(env, argv[ARGV_INDEX_0], &isArray); in JS_readLongArray() 433 napi_set_element(env, argv[ARGV_INDEX_0], in JS_readLongArray() [all...] |
H A D | napi_ashmem.cpp | 33 static const size_t ARGV_INDEX_0 = 0; member 68 napi_typeof(env, argv[ARGV_INDEX_0], &valueType); in CreateAshmem() 74 napi_get_value_string_utf8(env, argv[ARGV_INDEX_0], nullptr, 0, &bufferSize); in CreateAshmem() 115 napi_instanceof(env, argv[ARGV_INDEX_0], constructor, &isAshmem); in CreateAshmemFromExisting() 118 napi_unwrap(env, argv[ARGV_INDEX_0], (void **)&napiAshmem); in CreateAshmemFromExisting() 153 napi_typeof(env, argv[ARGV_INDEX_0], &valueType); in Create() 159 napi_get_value_string_utf8(env, argv[ARGV_INDEX_0], nullptr, 0, &bufferSize); in Create() 222 napi_instanceof(env, argv[ARGV_INDEX_0], constructor, &isAshmem); in GetAshmemFromExisting() 228 napi_unwrap(env, argv[ARGV_INDEX_0], (void **)&napiAshmem); in GetAshmemFromExisting() 288 napi_typeof(env, argv[ARGV_INDEX_0], in MapAshmem() [all...] |
H A D | napi_message_sequence_read.cpp | 111 napi_typeof(env, argv[ARGV_INDEX_0], &valueType); in JS_rewindRead() 118 napi_get_value_uint32(env, argv[ARGV_INDEX_0], &pos); in JS_rewindRead() 373 napi_get_property(env, argv[ARGV_INDEX_0], propKey, &prop); in JS_readParcelable() 377 napi_call_function(env, argv[ARGV_INDEX_0], prop, 1, funcArg, &callResult); in JS_readParcelable() 413 napi_set_element(env, argv[ARGV_INDEX_0], i, num); in JS_readByteArray() 464 napi_set_element(env, argv[ARGV_INDEX_0], i, num); in JS_readShortArray() 516 napi_set_element(env, argv[ARGV_INDEX_0], i, num); in JS_readIntArray() 568 napi_set_element(env, argv[ARGV_INDEX_0], i, num); in JS_readLongArray() 620 napi_set_element(env, argv[ARGV_INDEX_0], i, num); in JS_readFloatArray() 679 napi_set_element(env, argv[ARGV_INDEX_0], in JS_readBooleanArray() [all...] |
H A D | napi_remote_object.cpp | 39 static const size_t ARGV_INDEX_0 = 0; member 230 napi_get_value_bool(param->env, argv[ARGV_INDEX_0], &result); in ThenCallback() 558 napi_typeof(env, argv[ARGV_INDEX_0], &valueType); in RemoteObject_JS_Constructor() 562 napi_get_value_string_utf8(env, argv[ARGV_INDEX_0], nullptr, 0, &bufferSize); in RemoteObject_JS_Constructor() 566 napi_get_value_string_utf8(env, argv[ARGV_INDEX_0], stringValue, bufferSize + 1, &jsStringLength); in RemoteObject_JS_Constructor() 942 napi_typeof(env, argv[ARGV_INDEX_0], &valueType); in NAPI_RemoteObject_queryLocalInterface() 946 napi_get_value_string_utf8(env, argv[ARGV_INDEX_0], nullptr, 0, &bufferSize); in NAPI_RemoteObject_queryLocalInterface() 950 napi_get_value_string_utf8(env, argv[ARGV_INDEX_0], stringValue, bufferSize + 1, &jsStringLength); in NAPI_RemoteObject_queryLocalInterface() 972 napi_typeof(env, argv[ARGV_INDEX_0], &valueType); in NAPI_RemoteObject_getLocalInterface() 979 napi_get_value_string_utf8(env, argv[ARGV_INDEX_0], nullpt in NAPI_RemoteObject_getLocalInterface() [all...] |
/foundation/communication/ipc/ipc/native/src/napi/src/ |
H A D | napi_message_option.cpp | 26 static const size_t ARGV_INDEX_0 = 0; member 60 napi_typeof(env, argv[ARGV_INDEX_0], &valueType); in NapiOhosRpcMessageOptionSetFlags() 63 napi_status status = napi_get_value_int32(env, argv[ARGV_INDEX_0], &flags); in NapiOhosRpcMessageOptionSetFlags() 103 napi_typeof(env, argv[ARGV_INDEX_0], &valueType); in NapiOhosRpcMessageOptionSetAsync() 106 napi_status status = napi_get_value_bool(env, argv[ARGV_INDEX_0], &flags); in NapiOhosRpcMessageOptionSetAsync() 146 napi_typeof(env, argv[ARGV_INDEX_0], &valueType); in NapiOhosRpcMessageOptionSetWaittime() 149 napi_status status = napi_get_value_int32(env, argv[ARGV_INDEX_0], &waitTime); in NapiOhosRpcMessageOptionSetWaittime() 174 napi_typeof(env, argv[ARGV_INDEX_0], &valueType); in NAPIMessageOption_JS_Constructor() 178 napi_get_value_bool(env, argv[ARGV_INDEX_0], &jsBoolFlags); in NAPIMessageOption_JS_Constructor() 182 napi_get_value_int32(env, argv[ARGV_INDEX_0], in NAPIMessageOption_JS_Constructor() [all...] |
H A D | napi_ipc_skeleton.cpp | 32 static const size_t ARGV_INDEX_0 = 0;
member 148 napi_typeof(env, argv[ARGV_INDEX_0], &valueType);
in NAPI_IPCSkeleton_flushCommands() 151 sptr<IRemoteObject> target = NAPI_ohos_rpc_getNativeRemoteObject(env, argv[ARGV_INDEX_0]);
in NAPI_IPCSkeleton_flushCommands() 171 napi_typeof(env, argv[ARGV_INDEX_0], &valueType);
in NAPI_IPCSkeleton_flushCmdBuffer() 177 sptr<IRemoteObject> target = NAPI_ohos_rpc_getNativeRemoteObject(env, argv[ARGV_INDEX_0]);
in NAPI_IPCSkeleton_flushCmdBuffer() 293 napi_typeof(env, argv[ARGV_INDEX_0], &valueType);
in NAPI_IPCSkeleton_setCallingIdentity() 297 napi_get_value_string_utf8(env, argv[ARGV_INDEX_0], nullptr, 0, &bufferSize);
in NAPI_IPCSkeleton_setCallingIdentity() 301 napi_get_value_string_utf8(env, argv[ARGV_INDEX_0], stringValue, bufferSize + 1, &jsStringLength);
in NAPI_IPCSkeleton_setCallingIdentity() 436 napi_typeof(env, argv[ARGV_INDEX_0], &valueType);
in NAPI_IPCSkeleton_restoreCallingIdentity() 443 napi_get_value_string_utf8(env, argv[ARGV_INDEX_0], nullpt in NAPI_IPCSkeleton_restoreCallingIdentity() [all...] |
H A D | napi_remote_proxy.cpp | 40 static const size_t ARGV_INDEX_0 = 0; member 127 napi_create_reference(env, argv[ARGV_INDEX_0], 1, &sendRequestParam->jsCodeRef); in SendRequestAsync() 172 napi_create_reference(env, argv[ARGV_INDEX_0], 1, &sendRequestParam->jsCodeRef); in SendRequestPromise() 194 napi_typeof(env, argv[ARGV_INDEX_0], &valueType); in NAPI_RemoteProxy_sendRequest() 213 napi_get_value_int32(env, argv[ARGV_INDEX_0], &code); in NAPI_RemoteProxy_sendRequest() 240 napi_typeof(env, argv[ARGV_INDEX_0], &valueType); in NAPI_RemoteProxy_checkSendMessageRequestArgs() 301 napi_get_value_int32(env, argv[ARGV_INDEX_0], &code); in NAPI_RemoteProxy_sendMessageRequest() 353 napi_typeof(env, argv[ARGV_INDEX_0], &valueType); in NAPI_RemoteProxy_addDeathRecipient() 361 if (argv[ARGV_INDEX_0] == nullptr) { in NAPI_RemoteProxy_addDeathRecipient() 380 sptr<NAPIDeathRecipient> nativeRecipient = new NAPIDeathRecipient(env, argv[ARGV_INDEX_0]); in NAPI_RemoteProxy_addDeathRecipient() [all...] |
/foundation/communication/nfc/frameworks/js/napi/tag/ |
H A D | nfc_napi_ndef_message.cpp | 63 !CheckStringAndThrow(env, argv[ARGV_INDEX_0], "uri", "string")) { in MakeUriRecord() 67 std::string uri = GetStringFromValue(env, argv[ARGV_INDEX_0]); in MakeUriRecord() 85 !CheckStringAndThrow(env, argv[ARGV_INDEX_0], "text", "string") || in MakeTextRecord() 90 std::string text = GetStringFromValue(env, argv[ARGV_INDEX_0]); in MakeTextRecord() 109 !CheckStringAndThrow(env, argv[ARGV_INDEX_0], "mimeType", "string") || in MakeMimeRecord() 114 std::string mimeType = GetStringFromValue(env, argv[ARGV_INDEX_0]); in MakeMimeRecord() 137 !CheckStringAndThrow(env, argv[ARGV_INDEX_0], "domainName", "string") || in MakeExternalRecord() 143 std::string domainName = GetStringFromValue(env, argv[ARGV_INDEX_0]); in MakeExternalRecord() 167 !CheckObjectAndThrow(env, argv[ARGV_INDEX_0], "ndefMessage", "NdefMessage")) { in MessageToBytes() 173 napi_status status = napi_unwrap(env, argv[ARGV_INDEX_0], reinterpret_cas in MessageToBytes() [all...] |
H A D | nfc_napi_foreground_dispatch.cpp | 114 napi_get_undefined(asyncData->env, &resArgs[ARGV_INDEX_0]);
in AfterWorkCb() 439 !CheckObjectAndThrow(env, argv[ARGV_INDEX_0], "elementName", "ElementName") ||
in RegisterForegroundDispatch() 440 !ParseElementName(env, element, argv[ARGV_INDEX_0]) ||
in RegisterForegroundDispatch() 460 !CheckObjectAndThrow(env, argv[ARGV_INDEX_0], "elementName", "ElementName") ||
in UnregisterForegroundDispatch() 461 !ParseElementName(env, element, argv[ARGV_INDEX_0])) {
in UnregisterForegroundDispatch() 465 int ret = ForegroundEventRegister::GetInstance().Unregister(env, element, argv[ARGV_INDEX_0]);
in UnregisterForegroundDispatch() 597 !CheckStringAndThrow(env, argv[ARGV_INDEX_0], "type", "String") ||
in On() 598 !ParseString(env, type, argv[ARGV_INDEX_0]) ||
in On() 623 if (!CheckStringAndThrow(env, argv[ARGV_INDEX_0], "type", "String") ||
in Off() 624 !ParseString(env, type, argv[ARGV_INDEX_0]) ||
in Off() [all...] |
H A D | nfc_napi_tag_mifare_classic.cpp | 75 !CheckNumberAndThrow(env, argv[ARGV_INDEX_0], "sectorIndex", "number")) { in GetBlockCountInSector() 87 ParseInt32(env, sectorIndex, argv[ARGV_INDEX_0]); in GetBlockCountInSector() 197 !CheckNumberAndThrow(env, argv[ARGV_INDEX_0], "sectorIndex", "number")) { in GetBlockIndex() 209 ParseInt32(env, sectorIndex, argv[ARGV_INDEX_0]); in GetBlockIndex() 231 !CheckNumberAndThrow(env, argv[ARGV_INDEX_0], "sectorIndex", "number")) { in GetSectorIndex() 243 ParseInt32(env, blockIndex, argv[ARGV_INDEX_0]); in GetSectorIndex() 327 napi_get_value_int32(env, params[ARGV_INDEX_0], &context->sectorIndex); in AuthenticateSector() 414 napi_get_value_int32(env, params[ARGV_INDEX_0], &context->blockIndex); in ReadSingleBlock() 497 napi_get_value_int32(env, params[ARGV_INDEX_0], &context->blockIndex); in WriteSingleBlock() 581 napi_get_value_int32(env, params[ARGV_INDEX_0], in IncrementBlock() [all...] |
H A D | nfc_napi_tag_ndef.cpp | 140 if (IsNumberArray(env, argv[ARGV_INDEX_0])) { in CreateNdefMessage() 143 ParseBytesVector(env, dataVec, argv[ARGV_INDEX_0]); in CreateNdefMessage() 147 } else if (IsObjectArray(env, argv[ARGV_INDEX_0])) { in CreateNdefMessage() 150 ndefRecords = ParseNdefRecords(env, argv[ARGV_INDEX_0]); in CreateNdefMessage() 376 napi_create_reference(env, params[ARGV_INDEX_0], DEFAULT_REF_COUNT, &context->callbackRef); in ReadNdef() 454 napi_status status2 = napi_unwrap(env, params[ARGV_INDEX_0], reinterpret_cast<void **>(&napiNdefMessage)); in WriteNdef() 563 napi_create_reference(env, params[ARGV_INDEX_0], DEFAULT_REF_COUNT, &context->callbackRef); in SetReadOnly() 581 !CheckNumberAndThrow(env, argv[ARGV_INDEX_0], "type", "number")) { in GetNdefTagTypeString() 593 ParseInt32(env, type, argv[ARGV_INDEX_0]); in GetNdefTagTypeString()
|
H A D | nfc_napi_tag_sesstion.cpp | 260 NAPI_CALL(env, napi_get_array_length(env, params[ARGV_INDEX_0], &arrayLength)); in SendData() 262 NAPI_CALL(env, napi_get_element(env, params[ARGV_INDEX_0], i, &hexCmdDataValue)); in SendData() 335 !CheckNumberAndThrow(env, argv[ARGV_INDEX_0], "timeout", "number")) { in SetTimeout() 451 NAPI_CALL(env, napi_get_array_length(env, params[ARGV_INDEX_0], &arrayLength)); in Transmit() 453 NAPI_CALL(env, napi_get_element(env, params[ARGV_INDEX_0], i, &hexCmdDataValue)); in Transmit()
|
H A D | nfc_napi_tag_ndef_formatable.cpp | 105 napi_status status2 = napi_unwrap(env, params[ARGV_INDEX_0], reinterpret_cast<void **>(&context->msg)); in Format() 166 napi_status status2 = napi_unwrap(env, params[ARGV_INDEX_0], reinterpret_cast<void **>(&context->msg)); in FormatReadOnly()
|
H A D | nfc_napi_tag_mifare_ul.cpp | 106 napi_get_value_int32(env, params[ARGV_INDEX_0], &context->pageIndex); in ReadMultiplePages() 189 napi_get_value_int32(env, params[ARGV_INDEX_0], &context->pageIndex); in WriteSinglePage()
|
H A D | nfc_napi_tag.cpp | 396 napi_value tagInfoJsObj = argv[static_cast<size_t>(JS_ARGV_INDEX::ARGV_INDEX_0)];
in JS_Constructor()
|
/foundation/communication/nfc/frameworks/js/napi/cardEmulation/ |
H A D | nfc_napi_cardEmulation_adapter.cpp | 38 if (!CheckArgCountAndThrow(env, argc, ARGV_NUM_1) || !ParseInt32(env, type, argv[ARGV_INDEX_0])) {
in IsSupported() 66 if (!CheckArgCountAndThrow(env, argc, ARGV_NUM_2) || !ParseElementName(env, element, argv[ARGV_INDEX_0]) ||
in IsDefaultService()
|
H A D | nfc_napi_hce_adapter.cpp | 323 napi_get_undefined(asyncData->env, &resArgs[ARGV_INDEX_0]); in after_work_cb() 445 NAPI_CALL(env, napi_get_array_length(env, params[ARGV_INDEX_0], &arrayLength)); in Transmit() 447 NAPI_CALL(env, napi_get_element(env, params[ARGV_INDEX_0], i, &hexCmdDataValue)); in Transmit() 469 !ParseElementName(env, element, argv[ARGV_INDEX_0])) { in StopHce() 491 if (!CheckArgCountAndThrow(env, argc, ARGV_NUM_2) || !ParseElementName(env, element, argv[ARGV_INDEX_0]) || in StartHCE()
|
/foundation/communication/netmanager_base/frameworks/js/napi/netpolicy/src/ |
H A D | napi_net_policy.cpp | 484 case ARGV_INDEX_0: in MatchGetBackgroundPolicyParameters() 573 NAPI_CALL(env, napi_get_value_bool(env, argv[ARGV_INDEX_0], &context->allow)); in SetBackgroundPolicy() 574 NETMGR_LOG_I("JS agvc count = [%{public}d], argv[ARGV_INDEX_0] = [%{public}d], ", static_cast<int>(argc), in SetBackgroundPolicy() 641 NAPI_CALL(env, napi_get_value_uint32(env, argv[ARGV_INDEX_0], &context->uid)); in SetPolicyByUid() 644 "JS agvc count = [%{public}d], argv[ARGV_INDEX_0] = [%{public}d], " in SetPolicyByUid() 676 NAPI_CALL(env, napi_get_value_uint32(env, argv[ARGV_INDEX_0], &context->uid)); in GetPolicyByUid() 708 NAPI_CALL(env, napi_get_value_uint32(env, argv[ARGV_INDEX_0], &context->policy)); in GetUidsByPolicy() 790 NAPI_CALL(env, napi_get_value_int32(env, argv[ARGV_INDEX_0], &netType)); in SetSnoozePolicy() 825 NAPI_CALL(env, napi_get_value_string_utf8(env, argv[ARGV_INDEX_0], context->eventContent, EVENT_CONTENT_MAX_BYTE, in On() 858 NAPI_CALL(env, napi_get_value_string_utf8(env, argv[ARGV_INDEX_0], contex in Off() [all...] |
/foundation/communication/ipc/ipc/native/src/napi_common/include/ |
H A D | napi_rpc_common.h | 83 constexpr size_t ARGV_INDEX_0 = 0; member
|
/foundation/communication/netmanager_base/frameworks/js/napi/common/ |
H A D | napi_common.h | 52 ARGV_INDEX_0 = 0, enumerator
|
/foundation/communication/nfc/frameworks/js/napi/common/ |
H A D | nfc_napi_common_utils.h | 65 ARGV_INDEX_0 = 0,
|