Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
platform_frameworks_base-old
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Farzin Kazemzadeh
platform_frameworks_base-old
Commits
138d67c8
Commit
138d67c8
authored
11 years ago
by
Narayan Kamath
Committed by
Gerrit Code Review
11 years ago
Browse files
Options
Downloads
Plain Diff
Merge "AArch64: Use long for pointers in MotionEvent class"
parents
d85bba8e
99a1ef2b
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
core/java/android/view/MotionEvent.java
+40
-40
40 additions, 40 deletions
core/java/android/view/MotionEvent.java
core/jni/android_view_MotionEvent.cpp
+85
-85
85 additions, 85 deletions
core/jni/android_view_MotionEvent.cpp
with
125 additions
and
125 deletions
core/java/android/view/MotionEvent.java
+
40
−
40
View file @
138d67c8
...
...
@@ -1311,63 +1311,63 @@ public final class MotionEvent extends InputEvent implements Parcelable {
}
// Pointer to the native MotionEvent object that contains the actual data.
private
int
mNativePtr
;
private
long
mNativePtr
;
private
MotionEvent
mNext
;
private
static
native
int
nativeInitialize
(
int
nativePtr
,
private
static
native
long
nativeInitialize
(
long
nativePtr
,
int
deviceId
,
int
source
,
int
action
,
int
flags
,
int
edgeFlags
,
int
metaState
,
int
buttonState
,
float
xOffset
,
float
yOffset
,
float
xPrecision
,
float
yPrecision
,
long
downTimeNanos
,
long
eventTimeNanos
,
int
pointerCount
,
PointerProperties
[]
pointerIds
,
PointerCoords
[]
pointerCoords
);
private
static
native
int
nativeCopy
(
int
destNativePtr
,
int
sourceNativePtr
,
private
static
native
long
nativeCopy
(
long
destNativePtr
,
long
sourceNativePtr
,
boolean
keepHistory
);
private
static
native
void
nativeDispose
(
int
nativePtr
);
private
static
native
void
nativeAddBatch
(
int
nativePtr
,
long
eventTimeNanos
,
private
static
native
void
nativeDispose
(
long
nativePtr
);
private
static
native
void
nativeAddBatch
(
long
nativePtr
,
long
eventTimeNanos
,
PointerCoords
[]
pointerCoords
,
int
metaState
);
private
static
native
int
nativeGetDeviceId
(
int
nativePtr
);
private
static
native
int
nativeGetSource
(
int
nativePtr
);
private
static
native
int
nativeSetSource
(
int
nativePtr
,
int
source
);
private
static
native
int
nativeGetAction
(
int
nativePtr
);
private
static
native
void
nativeSetAction
(
int
nativePtr
,
int
action
);
private
static
native
boolean
nativeIsTouchEvent
(
int
nativePtr
);
private
static
native
int
nativeGetFlags
(
int
nativePtr
);
private
static
native
void
nativeSetFlags
(
int
nativePtr
,
int
flags
);
private
static
native
int
nativeGetEdgeFlags
(
int
nativePtr
);
private
static
native
void
nativeSetEdgeFlags
(
int
nativePtr
,
int
action
);
private
static
native
int
nativeGetMetaState
(
int
nativePtr
);
private
static
native
int
nativeGetButtonState
(
int
nativePtr
);
private
static
native
void
nativeOffsetLocation
(
int
nativePtr
,
float
deltaX
,
float
deltaY
);
private
static
native
float
nativeGetXOffset
(
int
nativePtr
);
private
static
native
float
nativeGetYOffset
(
int
nativePtr
);
private
static
native
float
nativeGetXPrecision
(
int
nativePtr
);
private
static
native
float
nativeGetYPrecision
(
int
nativePtr
);
private
static
native
long
nativeGetDownTimeNanos
(
int
nativePtr
);
private
static
native
void
nativeSetDownTimeNanos
(
int
nativePtr
,
long
downTime
);
private
static
native
int
nativeGetPointerCount
(
int
nativePtr
);
private
static
native
int
nativeGetPointerId
(
int
nativePtr
,
int
pointerIndex
);
private
static
native
int
nativeGetToolType
(
int
nativePtr
,
int
pointerIndex
);
private
static
native
int
nativeFindPointerIndex
(
int
nativePtr
,
int
pointerId
);
private
static
native
int
nativeGetHistorySize
(
int
nativePtr
);
private
static
native
long
nativeGetEventTimeNanos
(
int
nativePtr
,
int
historyPos
);
private
static
native
float
nativeGetRawAxisValue
(
int
nativePtr
,
private
static
native
int
nativeGetDeviceId
(
long
nativePtr
);
private
static
native
int
nativeGetSource
(
long
nativePtr
);
private
static
native
int
nativeSetSource
(
long
nativePtr
,
int
source
);
private
static
native
int
nativeGetAction
(
long
nativePtr
);
private
static
native
void
nativeSetAction
(
long
nativePtr
,
int
action
);
private
static
native
boolean
nativeIsTouchEvent
(
long
nativePtr
);
private
static
native
int
nativeGetFlags
(
long
nativePtr
);
private
static
native
void
nativeSetFlags
(
long
nativePtr
,
int
flags
);
private
static
native
int
nativeGetEdgeFlags
(
long
nativePtr
);
private
static
native
void
nativeSetEdgeFlags
(
long
nativePtr
,
int
action
);
private
static
native
int
nativeGetMetaState
(
long
nativePtr
);
private
static
native
int
nativeGetButtonState
(
long
nativePtr
);
private
static
native
void
nativeOffsetLocation
(
long
nativePtr
,
float
deltaX
,
float
deltaY
);
private
static
native
float
nativeGetXOffset
(
long
nativePtr
);
private
static
native
float
nativeGetYOffset
(
long
nativePtr
);
private
static
native
float
nativeGetXPrecision
(
long
nativePtr
);
private
static
native
float
nativeGetYPrecision
(
long
nativePtr
);
private
static
native
long
nativeGetDownTimeNanos
(
long
nativePtr
);
private
static
native
void
nativeSetDownTimeNanos
(
long
nativePtr
,
long
downTime
);
private
static
native
int
nativeGetPointerCount
(
long
nativePtr
);
private
static
native
int
nativeGetPointerId
(
long
nativePtr
,
int
pointerIndex
);
private
static
native
int
nativeGetToolType
(
long
nativePtr
,
int
pointerIndex
);
private
static
native
int
nativeFindPointerIndex
(
long
nativePtr
,
int
pointerId
);
private
static
native
int
nativeGetHistorySize
(
long
nativePtr
);
private
static
native
long
nativeGetEventTimeNanos
(
long
nativePtr
,
int
historyPos
);
private
static
native
float
nativeGetRawAxisValue
(
long
nativePtr
,
int
axis
,
int
pointerIndex
,
int
historyPos
);
private
static
native
float
nativeGetAxisValue
(
int
nativePtr
,
private
static
native
float
nativeGetAxisValue
(
long
nativePtr
,
int
axis
,
int
pointerIndex
,
int
historyPos
);
private
static
native
void
nativeGetPointerCoords
(
int
nativePtr
,
private
static
native
void
nativeGetPointerCoords
(
long
nativePtr
,
int
pointerIndex
,
int
historyPos
,
PointerCoords
outPointerCoords
);
private
static
native
void
nativeGetPointerProperties
(
int
nativePtr
,
private
static
native
void
nativeGetPointerProperties
(
long
nativePtr
,
int
pointerIndex
,
PointerProperties
outPointerProperties
);
private
static
native
void
nativeScale
(
int
nativePtr
,
float
scale
);
private
static
native
void
nativeTransform
(
int
nativePtr
,
Matrix
matrix
);
private
static
native
void
nativeScale
(
long
nativePtr
,
float
scale
);
private
static
native
void
nativeTransform
(
long
nativePtr
,
Matrix
matrix
);
private
static
native
int
nativeReadFromParcel
(
int
nativePtr
,
Parcel
parcel
);
private
static
native
void
nativeWriteToParcel
(
int
nativePtr
,
Parcel
parcel
);
private
static
native
long
nativeReadFromParcel
(
long
nativePtr
,
Parcel
parcel
);
private
static
native
void
nativeWriteToParcel
(
long
nativePtr
,
Parcel
parcel
);
private
MotionEvent
()
{
}
...
...
This diff is collapsed.
Click to expand it.
core/jni/android_view_MotionEvent.cpp
+
85
−
85
View file @
138d67c8
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment