Skip to content

Commit 6984597

Browse files
Andrew HsiehGerrit Code Review
authored andcommitted
Merge "Add __NDK_FPABI__ to function taking/returning float/double"
2 parents a36935b + 5881b5c commit 6984597

File tree

20 files changed

+1112
-1033
lines changed

20 files changed

+1112
-1033
lines changed

ndk/platforms/android-13/include/android/input.h

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -541,23 +541,23 @@ int64_t AMotionEvent_getEventTime(const AInputEvent* motion_event);
541541
* For touch events on the screen, this is the delta that was added to the raw
542542
* screen coordinates to adjust for the absolute position of the containing windows
543543
* and views. */
544-
float AMotionEvent_getXOffset(const AInputEvent* motion_event);
544+
float AMotionEvent_getXOffset(const AInputEvent* motion_event) __NDK_FPABI__;
545545

546546
/* Get the precision of the Y coordinates being reported.
547547
* For touch events on the screen, this is the delta that was added to the raw
548548
* screen coordinates to adjust for the absolute position of the containing windows
549549
* and views. */
550-
float AMotionEvent_getYOffset(const AInputEvent* motion_event);
550+
float AMotionEvent_getYOffset(const AInputEvent* motion_event) __NDK_FPABI__;
551551

552552
/* Get the precision of the X coordinates being reported.
553553
* You can multiply this number with an X coordinate sample to find the
554554
* actual hardware value of the X coordinate. */
555-
float AMotionEvent_getXPrecision(const AInputEvent* motion_event);
555+
float AMotionEvent_getXPrecision(const AInputEvent* motion_event) __NDK_FPABI__;
556556

557557
/* Get the precision of the Y coordinates being reported.
558558
* You can multiply this number with a Y coordinate sample to find the
559559
* actual hardware value of the Y coordinate. */
560-
float AMotionEvent_getYPrecision(const AInputEvent* motion_event);
560+
float AMotionEvent_getYPrecision(const AInputEvent* motion_event) __NDK_FPABI__;
561561

562562
/* Get the number of pointers of data contained in this event.
563563
* Always >= 1. */
@@ -573,57 +573,57 @@ int32_t AMotionEvent_getPointerId(const AInputEvent* motion_event, size_t pointe
573573
* For touch events on the screen, this is the original location of the event
574574
* on the screen, before it had been adjusted for the containing window
575575
* and views. */
576-
float AMotionEvent_getRawX(const AInputEvent* motion_event, size_t pointer_index);
576+
float AMotionEvent_getRawX(const AInputEvent* motion_event, size_t pointer_index) __NDK_FPABI__;
577577

578578
/* Get the original raw X coordinate of this event.
579579
* For touch events on the screen, this is the original location of the event
580580
* on the screen, before it had been adjusted for the containing window
581581
* and views. */
582-
float AMotionEvent_getRawY(const AInputEvent* motion_event, size_t pointer_index);
582+
float AMotionEvent_getRawY(const AInputEvent* motion_event, size_t pointer_index) __NDK_FPABI__;
583583

584584
/* Get the current X coordinate of this event for the given pointer index.
585585
* Whole numbers are pixels; the value may have a fraction for input devices
586586
* that are sub-pixel precise. */
587-
float AMotionEvent_getX(const AInputEvent* motion_event, size_t pointer_index);
587+
float AMotionEvent_getX(const AInputEvent* motion_event, size_t pointer_index) __NDK_FPABI__;
588588

589589
/* Get the current Y coordinate of this event for the given pointer index.
590590
* Whole numbers are pixels; the value may have a fraction for input devices
591591
* that are sub-pixel precise. */
592-
float AMotionEvent_getY(const AInputEvent* motion_event, size_t pointer_index);
592+
float AMotionEvent_getY(const AInputEvent* motion_event, size_t pointer_index) __NDK_FPABI__;
593593

594594
/* Get the current pressure of this event for the given pointer index.
595595
* The pressure generally ranges from 0 (no pressure at all) to 1 (normal pressure),
596596
* although values higher than 1 may be generated depending on the calibration of
597597
* the input device. */
598-
float AMotionEvent_getPressure(const AInputEvent* motion_event, size_t pointer_index);
598+
float AMotionEvent_getPressure(const AInputEvent* motion_event, size_t pointer_index) __NDK_FPABI__;
599599

600600
/* Get the current scaled value of the approximate size for the given pointer index.
601601
* This represents some approximation of the area of the screen being
602602
* pressed; the actual value in pixels corresponding to the
603603
* touch is normalized with the device specific range of values
604604
* and scaled to a value between 0 and 1. The value of size can be used to
605605
* determine fat touch events. */
606-
float AMotionEvent_getSize(const AInputEvent* motion_event, size_t pointer_index);
606+
float AMotionEvent_getSize(const AInputEvent* motion_event, size_t pointer_index) __NDK_FPABI__;
607607

608608
/* Get the current length of the major axis of an ellipse that describes the touch area
609609
* at the point of contact for the given pointer index. */
610-
float AMotionEvent_getTouchMajor(const AInputEvent* motion_event, size_t pointer_index);
610+
float AMotionEvent_getTouchMajor(const AInputEvent* motion_event, size_t pointer_index) __NDK_FPABI__;
611611

612612
/* Get the current length of the minor axis of an ellipse that describes the touch area
613613
* at the point of contact for the given pointer index. */
614-
float AMotionEvent_getTouchMinor(const AInputEvent* motion_event, size_t pointer_index);
614+
float AMotionEvent_getTouchMinor(const AInputEvent* motion_event, size_t pointer_index) __NDK_FPABI__;
615615

616616
/* Get the current length of the major axis of an ellipse that describes the size
617617
* of the approaching tool for the given pointer index.
618618
* The tool area represents the estimated size of the finger or pen that is
619619
* touching the device independent of its actual touch area at the point of contact. */
620-
float AMotionEvent_getToolMajor(const AInputEvent* motion_event, size_t pointer_index);
620+
float AMotionEvent_getToolMajor(const AInputEvent* motion_event, size_t pointer_index) __NDK_FPABI__;
621621

622622
/* Get the current length of the minor axis of an ellipse that describes the size
623623
* of the approaching tool for the given pointer index.
624624
* The tool area represents the estimated size of the finger or pen that is
625625
* touching the device independent of its actual touch area at the point of contact. */
626-
float AMotionEvent_getToolMinor(const AInputEvent* motion_event, size_t pointer_index);
626+
float AMotionEvent_getToolMinor(const AInputEvent* motion_event, size_t pointer_index) __NDK_FPABI__;
627627

628628
/* Get the current orientation of the touch area and tool area in radians clockwise from
629629
* vertical for the given pointer index.
@@ -633,11 +633,11 @@ float AMotionEvent_getToolMinor(const AInputEvent* motion_event, size_t pointer_
633633
* indicates that the major axis of contact is oriented to the left.
634634
* The full range is from -PI/2 radians (finger pointing fully left) to PI/2 radians
635635
* (finger pointing fully right). */
636-
float AMotionEvent_getOrientation(const AInputEvent* motion_event, size_t pointer_index);
636+
float AMotionEvent_getOrientation(const AInputEvent* motion_event, size_t pointer_index) __NDK_FPABI__;
637637

638638
/* Get the value of the request axis for the given pointer index. */
639639
float AMotionEvent_getAxisValue(const AInputEvent* motion_event,
640-
int32_t axis, size_t pointer_index);
640+
int32_t axis, size_t pointer_index) __NDK_FPABI__;
641641

642642
/* Get the number of historical points in this event. These are movements that
643643
* have occurred between this event and the previous event. This only applies
@@ -658,7 +658,7 @@ int64_t AMotionEvent_getHistoricalEventTime(const AInputEvent* motion_event,
658658
* Whole numbers are pixels; the value may have a fraction for input devices
659659
* that are sub-pixel precise. */
660660
float AMotionEvent_getHistoricalRawX(const AInputEvent* motion_event, size_t pointer_index,
661-
size_t history_index);
661+
size_t history_index) __NDK_FPABI__;
662662

663663
/* Get the historical raw Y coordinate of this event for the given pointer index that
664664
* occurred between this event and the previous motion event.
@@ -668,29 +668,29 @@ float AMotionEvent_getHistoricalRawX(const AInputEvent* motion_event, size_t poi
668668
* Whole numbers are pixels; the value may have a fraction for input devices
669669
* that are sub-pixel precise. */
670670
float AMotionEvent_getHistoricalRawY(const AInputEvent* motion_event, size_t pointer_index,
671-
size_t history_index);
671+
size_t history_index) __NDK_FPABI__;
672672

673673
/* Get the historical X coordinate of this event for the given pointer index that
674674
* occurred between this event and the previous motion event.
675675
* Whole numbers are pixels; the value may have a fraction for input devices
676676
* that are sub-pixel precise. */
677677
float AMotionEvent_getHistoricalX(const AInputEvent* motion_event, size_t pointer_index,
678-
size_t history_index);
678+
size_t history_index) __NDK_FPABI__;
679679

680680
/* Get the historical Y coordinate of this event for the given pointer index that
681681
* occurred between this event and the previous motion event.
682682
* Whole numbers are pixels; the value may have a fraction for input devices
683683
* that are sub-pixel precise. */
684684
float AMotionEvent_getHistoricalY(const AInputEvent* motion_event, size_t pointer_index,
685-
size_t history_index);
685+
size_t history_index) __NDK_FPABI__;
686686

687687
/* Get the historical pressure of this event for the given pointer index that
688688
* occurred between this event and the previous motion event.
689689
* The pressure generally ranges from 0 (no pressure at all) to 1 (normal pressure),
690690
* although values higher than 1 may be generated depending on the calibration of
691691
* the input device. */
692692
float AMotionEvent_getHistoricalPressure(const AInputEvent* motion_event, size_t pointer_index,
693-
size_t history_index);
693+
size_t history_index) __NDK_FPABI__;
694694

695695
/* Get the current scaled value of the approximate size for the given pointer index that
696696
* occurred between this event and the previous motion event.
@@ -700,35 +700,35 @@ float AMotionEvent_getHistoricalPressure(const AInputEvent* motion_event, size_t
700700
* and scaled to a value between 0 and 1. The value of size can be used to
701701
* determine fat touch events. */
702702
float AMotionEvent_getHistoricalSize(const AInputEvent* motion_event, size_t pointer_index,
703-
size_t history_index);
703+
size_t history_index) __NDK_FPABI__;
704704

705705
/* Get the historical length of the major axis of an ellipse that describes the touch area
706706
* at the point of contact for the given pointer index that
707707
* occurred between this event and the previous motion event. */
708708
float AMotionEvent_getHistoricalTouchMajor(const AInputEvent* motion_event, size_t pointer_index,
709-
size_t history_index);
709+
size_t history_index) __NDK_FPABI__;
710710

711711
/* Get the historical length of the minor axis of an ellipse that describes the touch area
712712
* at the point of contact for the given pointer index that
713713
* occurred between this event and the previous motion event. */
714714
float AMotionEvent_getHistoricalTouchMinor(const AInputEvent* motion_event, size_t pointer_index,
715-
size_t history_index);
715+
size_t history_index) __NDK_FPABI__;
716716

717717
/* Get the historical length of the major axis of an ellipse that describes the size
718718
* of the approaching tool for the given pointer index that
719719
* occurred between this event and the previous motion event.
720720
* The tool area represents the estimated size of the finger or pen that is
721721
* touching the device independent of its actual touch area at the point of contact. */
722722
float AMotionEvent_getHistoricalToolMajor(const AInputEvent* motion_event, size_t pointer_index,
723-
size_t history_index);
723+
size_t history_index) __NDK_FPABI__;
724724

725725
/* Get the historical length of the minor axis of an ellipse that describes the size
726726
* of the approaching tool for the given pointer index that
727727
* occurred between this event and the previous motion event.
728728
* The tool area represents the estimated size of the finger or pen that is
729729
* touching the device independent of its actual touch area at the point of contact. */
730730
float AMotionEvent_getHistoricalToolMinor(const AInputEvent* motion_event, size_t pointer_index,
731-
size_t history_index);
731+
size_t history_index) __NDK_FPABI__;
732732

733733
/* Get the historical orientation of the touch area and tool area in radians clockwise from
734734
* vertical for the given pointer index that
@@ -740,12 +740,12 @@ float AMotionEvent_getHistoricalToolMinor(const AInputEvent* motion_event, size_
740740
* The full range is from -PI/2 radians (finger pointing fully left) to PI/2 radians
741741
* (finger pointing fully right). */
742742
float AMotionEvent_getHistoricalOrientation(const AInputEvent* motion_event, size_t pointer_index,
743-
size_t history_index);
743+
size_t history_index) __NDK_FPABI__;
744744

745745
/* Get the historical value of the request axis for the given pointer index
746746
* that occurred between this event and the previous motion event. */
747747
float AMotionEvent_getHistoricalAxisValue(const AInputEvent* motion_event,
748-
int32_t axis, size_t pointer_index, size_t history_index);
748+
int32_t axis, size_t pointer_index, size_t history_index) __NDK_FPABI__;
749749

750750

751751
/*

0 commit comments

Comments
 (0)