/base/location/frameworks/js/napi/source/ |
H A D | geofence_napi.cpp | 103 napi_value elementValue = nullptr; in GetNotificationRequestArray() local 104 NAPI_CALL_RETURN_VOID(env, napi_get_element(env, notificationRequestValue, i, &elementValue)); in GetNotificationRequestArray() 106 NAPI_CALL_RETURN_VOID(env, napi_typeof(env, elementValue, &napiType)); in GetNotificationRequestArray() 112 GenNotificationRequest(env, elementValue, notificationRequest); in GetNotificationRequestArray() 117 void GenNotificationRequest(const napi_env& env, const napi_value& elementValue, in GenNotificationRequest() argument 121 NAPI_CALL_RETURN_VOID(env, napi_typeof(env, elementValue, &elementValueType)); in GenNotificationRequest() 127 NotificationNapi::GetNotificationRequest(env, elementValue, notificationRequest); in GenNotificationRequest() 154 napi_value elementValue = nullptr; in GetGeofenceTransitionEventArray() local 155 NAPI_CALL_RETURN_VOID(env, napi_get_element(env, monitorTransitionEvents, i, &elementValue)); in GetGeofenceTransitionEventArray() 157 NAPI_CALL_RETURN_VOID(env, napi_typeof(env, elementValue, in GetGeofenceTransitionEventArray() [all...] |
H A D | napi_util.cpp | 607 napi_value elementValue = nullptr; in GetLocationArray() local 609 NAPI_CALL_RETURN_VOID(env, napi_get_element(env, object, i, &elementValue)); in GetLocationArray() 611 JsObjectToDouble(env, elementValue, "latitude", latitude); in GetLocationArray() 614 JsObjectToDouble(env, elementValue, "longitude", longitude); in GetLocationArray() 617 JsObjectToDouble(env, elementValue, "altitude", altitude); in GetLocationArray() 620 JsObjectToDouble(env, elementValue, "accuracy", accuracy); in GetLocationArray() 623 JsObjectToDouble(env, elementValue, "speed", speed); in GetLocationArray() 626 JsObjectToDouble(env, elementValue, "direction", direction); in GetLocationArray() 629 JsObjectToInt64(env, elementValue, "timeStamp", timeStamp); in GetLocationArray() 632 JsObjectToInt64(env, elementValue, "timeSinceBoo in GetLocationArray() [all...] |
/base/location/frameworks/js/napi/notification/include/ |
H A D | geofence_napi.h | 48 void GenNotificationRequest(const napi_env& env, const napi_value& elementValue,
|
/base/telephony/sms_mms/frameworks/js/napi/src/ |
H A D | napi_mms.cpp | 619 napi_value elementValue = nullptr; in ParseDecodeMmsParam() local 635 napi_get_element(env, object, i, &elementValue); in ParseDecodeMmsParam() 636 napi_get_value_int32(env, elementValue, &element); in ParseDecodeMmsParam() 856 napi_value elementValue = nullptr; in ReadMmsAddress() local 858 napi_get_element(env, value, i, &elementValue); in ReadMmsAddress() 859 MmsAddress eachMmsAddress = ReadMmsAddress(env, elementValue); in ReadMmsAddress() 1056 napi_value elementValue = nullptr; in BuildMmsAttachment() local 1058 napi_get_element(env, inBuffValue, i, &elementValue); in BuildMmsAttachment() 1059 napi_get_value_int32(env, elementValue, &elementInt); in BuildMmsAttachment() 1071 napi_value elementValue in ReadEncodeMmsAttachment() local [all...] |
H A D | napi_sms.cpp | 347 napi_value elementValue = nullptr; in ParseMessageParameter() local 353 napi_get_element(env, contentValue, i, &elementValue); in ParseMessageParameter() 354 napi_get_value_int32(env, elementValue, &element); in ParseMessageParameter() 587 napi_value elementValue = nullptr; in CreateMessage() local 590 napi_get_element(env, parameters[0], i, &elementValue); in CreateMessage() 591 napi_get_value_int32(env, elementValue, &element); in CreateMessage()
|