You've already forked android-go
mirror of
https://github.com/xlab/android-go.git
synced 2025-12-23 22:11:00 +02:00
1268 lines
50 KiB
Go
1268 lines
50 KiB
Go
// THE AUTOGENERATED LICENSE. ALL THE RIGHTS ARE RESERVED BY ROBOTS.
|
|
|
|
// WARNING: This file has automatically been generated on Sun, 26 Feb 2017 06:20:43 MSK.
|
|
// By https://git.io/c-for-go. DO NOT EDIT.
|
|
|
|
package android
|
|
|
|
/*
|
|
#cgo LDFLAGS: -landroid -llog
|
|
#include <android/api-level.h>
|
|
#include <android/asset_manager.h>
|
|
#include <android/asset_manager_jni.h>
|
|
#include <android/configuration.h>
|
|
#include <android/input.h>
|
|
#include <android/keycodes.h>
|
|
#include <android/log.h>
|
|
#include <android/looper.h>
|
|
#include <android/native_activity.h>
|
|
#include <android/native_window.h>
|
|
#include <android/native_window_jni.h>
|
|
#include <android/obb.h>
|
|
#include <android/rect.h>
|
|
#include <android/sensor.h>
|
|
#include <android/storage_manager.h>
|
|
#include <android/tts.h>
|
|
#include <android/window.h>
|
|
#include <jni.h>
|
|
#include "jni_call.h"
|
|
#include <stdlib.h>
|
|
#include "cgo_helpers.h"
|
|
*/
|
|
import "C"
|
|
|
|
const (
|
|
// JNIFalse as defined in include/jni.h:1158
|
|
JNIFalse = 0
|
|
// JNITrue as defined in include/jni.h:1159
|
|
JNITrue = 1
|
|
// JNIVersion11 as defined in include/jni.h:1161
|
|
JNIVersion11 = 0x00010001
|
|
// JNIVersion12 as defined in include/jni.h:1162
|
|
JNIVersion12 = 0x00010002
|
|
// JNIVersion14 as defined in include/jni.h:1163
|
|
JNIVersion14 = 0x00010004
|
|
// JNIVersion16 as defined in include/jni.h:1164
|
|
JNIVersion16 = 0x00010006
|
|
// JNIOk as defined in include/jni.h:1166
|
|
JNIOk = (0)
|
|
// JNIErr as defined in include/jni.h:1167
|
|
JNIErr = (-1)
|
|
// JNIEdetached as defined in include/jni.h:1168
|
|
JNIEdetached = (-2)
|
|
// JNIEversion as defined in include/jni.h:1169
|
|
JNIEversion = (-3)
|
|
// JNICommit as defined in include/jni.h:1171
|
|
JNICommit = 1
|
|
// JNIAbort as defined in include/jni.h:1172
|
|
JNIAbort = 2
|
|
// MotionEventActionPointerIndexShift as defined in android/input.h:236
|
|
MotionEventActionPointerIndexShift = 8
|
|
// SensorStandardGravity as defined in android/sensor.h:92
|
|
SensorStandardGravity = (9.80665)
|
|
// SensorMagneticFieldEarthMax as defined in android/sensor.h:94
|
|
SensorMagneticFieldEarthMax = (60.0)
|
|
// SensorMagneticFieldEarthMin as defined in android/sensor.h:96
|
|
SensorMagneticFieldEarthMin = (30.0)
|
|
// TtsEnginePropertyConfig as defined in android/tts.h:33
|
|
TtsEnginePropertyConfig = "engineConfig"
|
|
// TtsEnginePropertyPitch as defined in android/tts.h:34
|
|
TtsEnginePropertyPitch = "pitch"
|
|
// TtsEnginePropertyRate as defined in android/tts.h:35
|
|
TtsEnginePropertyRate = "rate"
|
|
// TtsEnginePropertyVolume as defined in android/tts.h:36
|
|
TtsEnginePropertyVolume = "volume"
|
|
)
|
|
|
|
// JobjectRefType as declared in include/jni.h:141
|
|
type JobjectRefType int32
|
|
|
|
// JobjectRefType enumeration from include/jni.h:141
|
|
const (
|
|
JNIinvalidreftype JobjectRefType = iota
|
|
JNIlocalreftype JobjectRefType = 1
|
|
JNIglobalreftype JobjectRefType = 2
|
|
JNIweakglobalreftype JobjectRefType = 3
|
|
)
|
|
|
|
// LogPriority as declared in android/log.h:89
|
|
type LogPriority int32
|
|
|
|
// LogPriority enumeration from android/log.h:89
|
|
const (
|
|
LogUnknown LogPriority = iota
|
|
LogDefault LogPriority = 1
|
|
LogVerbose LogPriority = 2
|
|
LogDebug LogPriority = 3
|
|
LogInfo LogPriority = 4
|
|
LogWarn LogPriority = 5
|
|
LogError LogPriority = 6
|
|
LogFatal LogPriority = 7
|
|
LogSilent LogPriority = 8
|
|
)
|
|
|
|
const (
|
|
// AssetModeUnknown as declared in android/asset_manager.h:38
|
|
AssetModeUnknown = iota
|
|
// AssetModeRandom as declared in android/asset_manager.h:39
|
|
AssetModeRandom = 1
|
|
// AssetModeStreaming as declared in android/asset_manager.h:40
|
|
AssetModeStreaming = 2
|
|
// AssetModeBuffer as declared in android/asset_manager.h:41
|
|
AssetModeBuffer = 3
|
|
)
|
|
|
|
const (
|
|
// ConfigurationOrientationAny as declared in android/configuration.h:30
|
|
ConfigurationOrientationAny = 0x0000
|
|
// ConfigurationOrientationPort as declared in android/configuration.h:31
|
|
ConfigurationOrientationPort = 0x0001
|
|
// ConfigurationOrientationLand as declared in android/configuration.h:32
|
|
ConfigurationOrientationLand = 0x0002
|
|
// ConfigurationOrientationSquare as declared in android/configuration.h:33
|
|
ConfigurationOrientationSquare = 0x0003
|
|
// ConfigurationTouchscreenAny as declared in android/configuration.h:35
|
|
ConfigurationTouchscreenAny = 0x0000
|
|
// ConfigurationTouchscreenNotouch as declared in android/configuration.h:36
|
|
ConfigurationTouchscreenNotouch = 0x0001
|
|
// ConfigurationTouchscreenStylus as declared in android/configuration.h:37
|
|
ConfigurationTouchscreenStylus = 0x0002
|
|
// ConfigurationTouchscreenFinger as declared in android/configuration.h:38
|
|
ConfigurationTouchscreenFinger = 0x0003
|
|
// ConfigurationDensityDefault as declared in android/configuration.h:40
|
|
ConfigurationDensityDefault = 0
|
|
// ConfigurationDensityLow as declared in android/configuration.h:41
|
|
ConfigurationDensityLow = 120
|
|
// ConfigurationDensityMedium as declared in android/configuration.h:42
|
|
ConfigurationDensityMedium = 160
|
|
// ConfigurationDensityTv as declared in android/configuration.h:43
|
|
ConfigurationDensityTv = 213
|
|
// ConfigurationDensityHigh as declared in android/configuration.h:44
|
|
ConfigurationDensityHigh = 240
|
|
// ConfigurationDensityXhigh as declared in android/configuration.h:45
|
|
ConfigurationDensityXhigh = 320
|
|
// ConfigurationDensityXxhigh as declared in android/configuration.h:46
|
|
ConfigurationDensityXxhigh = 480
|
|
// ConfigurationDensityXxxhigh as declared in android/configuration.h:47
|
|
ConfigurationDensityXxxhigh = 640
|
|
// ConfigurationDensityAny as declared in android/configuration.h:48
|
|
ConfigurationDensityAny = 0xfffe
|
|
// ConfigurationDensityNone as declared in android/configuration.h:49
|
|
ConfigurationDensityNone = 0xffff
|
|
// ConfigurationKeyboardAny as declared in android/configuration.h:51
|
|
ConfigurationKeyboardAny = 0x0000
|
|
// ConfigurationKeyboardNokeys as declared in android/configuration.h:52
|
|
ConfigurationKeyboardNokeys = 0x0001
|
|
// ConfigurationKeyboardQwerty as declared in android/configuration.h:53
|
|
ConfigurationKeyboardQwerty = 0x0002
|
|
// ConfigurationKeyboard12key as declared in android/configuration.h:54
|
|
ConfigurationKeyboard12key = 0x0003
|
|
// ConfigurationNavigationAny as declared in android/configuration.h:56
|
|
ConfigurationNavigationAny = 0x0000
|
|
// ConfigurationNavigationNonav as declared in android/configuration.h:57
|
|
ConfigurationNavigationNonav = 0x0001
|
|
// ConfigurationNavigationDpad as declared in android/configuration.h:58
|
|
ConfigurationNavigationDpad = 0x0002
|
|
// ConfigurationNavigationTrackball as declared in android/configuration.h:59
|
|
ConfigurationNavigationTrackball = 0x0003
|
|
// ConfigurationNavigationWheel as declared in android/configuration.h:60
|
|
ConfigurationNavigationWheel = 0x0004
|
|
// ConfigurationKeyshiddenAny as declared in android/configuration.h:62
|
|
ConfigurationKeyshiddenAny = 0x0000
|
|
// ConfigurationKeyshiddenNo as declared in android/configuration.h:63
|
|
ConfigurationKeyshiddenNo = 0x0001
|
|
// ConfigurationKeyshiddenYes as declared in android/configuration.h:64
|
|
ConfigurationKeyshiddenYes = 0x0002
|
|
// ConfigurationKeyshiddenSoft as declared in android/configuration.h:65
|
|
ConfigurationKeyshiddenSoft = 0x0003
|
|
// ConfigurationNavhiddenAny as declared in android/configuration.h:67
|
|
ConfigurationNavhiddenAny = 0x0000
|
|
// ConfigurationNavhiddenNo as declared in android/configuration.h:68
|
|
ConfigurationNavhiddenNo = 0x0001
|
|
// ConfigurationNavhiddenYes as declared in android/configuration.h:69
|
|
ConfigurationNavhiddenYes = 0x0002
|
|
// ConfigurationScreensizeAny as declared in android/configuration.h:71
|
|
ConfigurationScreensizeAny = 0x00
|
|
// ConfigurationScreensizeSmall as declared in android/configuration.h:72
|
|
ConfigurationScreensizeSmall = 0x01
|
|
// ConfigurationScreensizeNormal as declared in android/configuration.h:73
|
|
ConfigurationScreensizeNormal = 0x02
|
|
// ConfigurationScreensizeLarge as declared in android/configuration.h:74
|
|
ConfigurationScreensizeLarge = 0x03
|
|
// ConfigurationScreensizeXlarge as declared in android/configuration.h:75
|
|
ConfigurationScreensizeXlarge = 0x04
|
|
// ConfigurationScreenlongAny as declared in android/configuration.h:77
|
|
ConfigurationScreenlongAny = 0x00
|
|
// ConfigurationScreenlongNo as declared in android/configuration.h:78
|
|
ConfigurationScreenlongNo = 0x1
|
|
// ConfigurationScreenlongYes as declared in android/configuration.h:79
|
|
ConfigurationScreenlongYes = 0x2
|
|
// ConfigurationUiModeTypeAny as declared in android/configuration.h:81
|
|
ConfigurationUiModeTypeAny = 0x00
|
|
// ConfigurationUiModeTypeNormal as declared in android/configuration.h:82
|
|
ConfigurationUiModeTypeNormal = 0x01
|
|
// ConfigurationUiModeTypeDesk as declared in android/configuration.h:83
|
|
ConfigurationUiModeTypeDesk = 0x02
|
|
// ConfigurationUiModeTypeCar as declared in android/configuration.h:84
|
|
ConfigurationUiModeTypeCar = 0x03
|
|
// ConfigurationUiModeTypeTelevision as declared in android/configuration.h:85
|
|
ConfigurationUiModeTypeTelevision = 0x04
|
|
// ConfigurationUiModeTypeAppliance as declared in android/configuration.h:86
|
|
ConfigurationUiModeTypeAppliance = 0x05
|
|
// ConfigurationUiModeTypeWatch as declared in android/configuration.h:87
|
|
ConfigurationUiModeTypeWatch = 0x06
|
|
// ConfigurationUiModeNightAny as declared in android/configuration.h:89
|
|
ConfigurationUiModeNightAny = 0x00
|
|
// ConfigurationUiModeNightNo as declared in android/configuration.h:90
|
|
ConfigurationUiModeNightNo = 0x1
|
|
// ConfigurationUiModeNightYes as declared in android/configuration.h:91
|
|
ConfigurationUiModeNightYes = 0x2
|
|
// ConfigurationScreenWidthDpAny as declared in android/configuration.h:93
|
|
ConfigurationScreenWidthDpAny = 0x0000
|
|
// ConfigurationScreenHeightDpAny as declared in android/configuration.h:95
|
|
ConfigurationScreenHeightDpAny = 0x0000
|
|
// ConfigurationSmallestScreenWidthDpAny as declared in android/configuration.h:97
|
|
ConfigurationSmallestScreenWidthDpAny = 0x0000
|
|
// ConfigurationLayoutdirAny as declared in android/configuration.h:99
|
|
ConfigurationLayoutdirAny = 0x00
|
|
// ConfigurationLayoutdirLtr as declared in android/configuration.h:100
|
|
ConfigurationLayoutdirLtr = 0x01
|
|
// ConfigurationLayoutdirRtl as declared in android/configuration.h:101
|
|
ConfigurationLayoutdirRtl = 0x02
|
|
// ConfigurationMcc as declared in android/configuration.h:103
|
|
ConfigurationMcc = 0x0001
|
|
// ConfigurationMnc as declared in android/configuration.h:104
|
|
ConfigurationMnc = 0x0002
|
|
// ConfigurationLocale as declared in android/configuration.h:105
|
|
ConfigurationLocale = 0x0004
|
|
// ConfigurationTouchscreen as declared in android/configuration.h:106
|
|
ConfigurationTouchscreen = 0x0008
|
|
// ConfigurationKeyboard as declared in android/configuration.h:107
|
|
ConfigurationKeyboard = 0x0010
|
|
// ConfigurationKeyboardHidden as declared in android/configuration.h:108
|
|
ConfigurationKeyboardHidden = 0x0020
|
|
// ConfigurationNavigation as declared in android/configuration.h:109
|
|
ConfigurationNavigation = 0x0040
|
|
// ConfigurationOrientation as declared in android/configuration.h:110
|
|
ConfigurationOrientation = 0x0080
|
|
// ConfigurationDensity as declared in android/configuration.h:111
|
|
ConfigurationDensity = 0x0100
|
|
// ConfigurationScreenSize as declared in android/configuration.h:112
|
|
ConfigurationScreenSize = 0x0200
|
|
// ConfigurationVersion as declared in android/configuration.h:113
|
|
ConfigurationVersion = 0x0400
|
|
// ConfigurationScreenLayout as declared in android/configuration.h:114
|
|
ConfigurationScreenLayout = 0x0800
|
|
// ConfigurationUiMode as declared in android/configuration.h:115
|
|
ConfigurationUiMode = 0x1000
|
|
// ConfigurationSmallestScreenSize as declared in android/configuration.h:116
|
|
ConfigurationSmallestScreenSize = 0x2000
|
|
// ConfigurationLayoutdir as declared in android/configuration.h:117
|
|
ConfigurationLayoutdir = 0x4000
|
|
// ConfigurationMncZero as declared in android/configuration.h:119
|
|
ConfigurationMncZero = 0xffff
|
|
)
|
|
|
|
const (
|
|
// KeycodeUnknown as declared in android/keycodes.h:46
|
|
KeycodeUnknown = iota
|
|
// KeycodeSoftLeft as declared in android/keycodes.h:47
|
|
KeycodeSoftLeft = 1
|
|
// KeycodeSoftRight as declared in android/keycodes.h:48
|
|
KeycodeSoftRight = 2
|
|
// KeycodeHome as declared in android/keycodes.h:49
|
|
KeycodeHome = 3
|
|
// KeycodeBack as declared in android/keycodes.h:50
|
|
KeycodeBack = 4
|
|
// KeycodeCall as declared in android/keycodes.h:51
|
|
KeycodeCall = 5
|
|
// KeycodeEndcall as declared in android/keycodes.h:52
|
|
KeycodeEndcall = 6
|
|
// Keycode0 as declared in android/keycodes.h:53
|
|
Keycode0 = 7
|
|
// Keycode1 as declared in android/keycodes.h:54
|
|
Keycode1 = 8
|
|
// Keycode2 as declared in android/keycodes.h:55
|
|
Keycode2 = 9
|
|
// Keycode3 as declared in android/keycodes.h:56
|
|
Keycode3 = 10
|
|
// Keycode4 as declared in android/keycodes.h:57
|
|
Keycode4 = 11
|
|
// Keycode5 as declared in android/keycodes.h:58
|
|
Keycode5 = 12
|
|
// Keycode6 as declared in android/keycodes.h:59
|
|
Keycode6 = 13
|
|
// Keycode7 as declared in android/keycodes.h:60
|
|
Keycode7 = 14
|
|
// Keycode8 as declared in android/keycodes.h:61
|
|
Keycode8 = 15
|
|
// Keycode9 as declared in android/keycodes.h:62
|
|
Keycode9 = 16
|
|
// KeycodeStar as declared in android/keycodes.h:63
|
|
KeycodeStar = 17
|
|
// KeycodePound as declared in android/keycodes.h:64
|
|
KeycodePound = 18
|
|
// KeycodeDpadUp as declared in android/keycodes.h:65
|
|
KeycodeDpadUp = 19
|
|
// KeycodeDpadDown as declared in android/keycodes.h:66
|
|
KeycodeDpadDown = 20
|
|
// KeycodeDpadLeft as declared in android/keycodes.h:67
|
|
KeycodeDpadLeft = 21
|
|
// KeycodeDpadRight as declared in android/keycodes.h:68
|
|
KeycodeDpadRight = 22
|
|
// KeycodeDpadCenter as declared in android/keycodes.h:69
|
|
KeycodeDpadCenter = 23
|
|
// KeycodeVolumeUp as declared in android/keycodes.h:70
|
|
KeycodeVolumeUp = 24
|
|
// KeycodeVolumeDown as declared in android/keycodes.h:71
|
|
KeycodeVolumeDown = 25
|
|
// KeycodePower as declared in android/keycodes.h:72
|
|
KeycodePower = 26
|
|
// KeycodeCamera as declared in android/keycodes.h:73
|
|
KeycodeCamera = 27
|
|
// KeycodeClear as declared in android/keycodes.h:74
|
|
KeycodeClear = 28
|
|
// KeycodeA as declared in android/keycodes.h:75
|
|
KeycodeA = 29
|
|
// KeycodeB as declared in android/keycodes.h:76
|
|
KeycodeB = 30
|
|
// KeycodeC as declared in android/keycodes.h:77
|
|
KeycodeC = 31
|
|
// KeycodeD as declared in android/keycodes.h:78
|
|
KeycodeD = 32
|
|
// KeycodeE as declared in android/keycodes.h:79
|
|
KeycodeE = 33
|
|
// KeycodeF as declared in android/keycodes.h:80
|
|
KeycodeF = 34
|
|
// KeycodeG as declared in android/keycodes.h:81
|
|
KeycodeG = 35
|
|
// KeycodeH as declared in android/keycodes.h:82
|
|
KeycodeH = 36
|
|
// KeycodeI as declared in android/keycodes.h:83
|
|
KeycodeI = 37
|
|
// KeycodeJ as declared in android/keycodes.h:84
|
|
KeycodeJ = 38
|
|
// KeycodeK as declared in android/keycodes.h:85
|
|
KeycodeK = 39
|
|
// KeycodeL as declared in android/keycodes.h:86
|
|
KeycodeL = 40
|
|
// KeycodeM as declared in android/keycodes.h:87
|
|
KeycodeM = 41
|
|
// KeycodeN as declared in android/keycodes.h:88
|
|
KeycodeN = 42
|
|
// KeycodeO as declared in android/keycodes.h:89
|
|
KeycodeO = 43
|
|
// KeycodeP as declared in android/keycodes.h:90
|
|
KeycodeP = 44
|
|
// KeycodeQ as declared in android/keycodes.h:91
|
|
KeycodeQ = 45
|
|
// KeycodeR as declared in android/keycodes.h:92
|
|
KeycodeR = 46
|
|
// KeycodeS as declared in android/keycodes.h:93
|
|
KeycodeS = 47
|
|
// KeycodeT as declared in android/keycodes.h:94
|
|
KeycodeT = 48
|
|
// KeycodeU as declared in android/keycodes.h:95
|
|
KeycodeU = 49
|
|
// KeycodeV as declared in android/keycodes.h:96
|
|
KeycodeV = 50
|
|
// KeycodeW as declared in android/keycodes.h:97
|
|
KeycodeW = 51
|
|
// KeycodeX as declared in android/keycodes.h:98
|
|
KeycodeX = 52
|
|
// KeycodeY as declared in android/keycodes.h:99
|
|
KeycodeY = 53
|
|
// KeycodeZ as declared in android/keycodes.h:100
|
|
KeycodeZ = 54
|
|
// KeycodeComma as declared in android/keycodes.h:101
|
|
KeycodeComma = 55
|
|
// KeycodePeriod as declared in android/keycodes.h:102
|
|
KeycodePeriod = 56
|
|
// KeycodeAltLeft as declared in android/keycodes.h:103
|
|
KeycodeAltLeft = 57
|
|
// KeycodeAltRight as declared in android/keycodes.h:104
|
|
KeycodeAltRight = 58
|
|
// KeycodeShiftLeft as declared in android/keycodes.h:105
|
|
KeycodeShiftLeft = 59
|
|
// KeycodeShiftRight as declared in android/keycodes.h:106
|
|
KeycodeShiftRight = 60
|
|
// KeycodeTab as declared in android/keycodes.h:107
|
|
KeycodeTab = 61
|
|
// KeycodeSpace as declared in android/keycodes.h:108
|
|
KeycodeSpace = 62
|
|
// KeycodeSym as declared in android/keycodes.h:109
|
|
KeycodeSym = 63
|
|
// KeycodeExplorer as declared in android/keycodes.h:110
|
|
KeycodeExplorer = 64
|
|
// KeycodeEnvelope as declared in android/keycodes.h:111
|
|
KeycodeEnvelope = 65
|
|
// KeycodeEnter as declared in android/keycodes.h:112
|
|
KeycodeEnter = 66
|
|
// KeycodeDel as declared in android/keycodes.h:113
|
|
KeycodeDel = 67
|
|
// KeycodeGrave as declared in android/keycodes.h:114
|
|
KeycodeGrave = 68
|
|
// KeycodeMinus as declared in android/keycodes.h:115
|
|
KeycodeMinus = 69
|
|
// KeycodeEquals as declared in android/keycodes.h:116
|
|
KeycodeEquals = 70
|
|
// KeycodeLeftBracket as declared in android/keycodes.h:117
|
|
KeycodeLeftBracket = 71
|
|
// KeycodeRightBracket as declared in android/keycodes.h:118
|
|
KeycodeRightBracket = 72
|
|
// KeycodeBackslash as declared in android/keycodes.h:119
|
|
KeycodeBackslash = 73
|
|
// KeycodeSemicolon as declared in android/keycodes.h:120
|
|
KeycodeSemicolon = 74
|
|
// KeycodeApostrophe as declared in android/keycodes.h:121
|
|
KeycodeApostrophe = 75
|
|
// KeycodeSlash as declared in android/keycodes.h:122
|
|
KeycodeSlash = 76
|
|
// KeycodeAt as declared in android/keycodes.h:123
|
|
KeycodeAt = 77
|
|
// KeycodeNum as declared in android/keycodes.h:124
|
|
KeycodeNum = 78
|
|
// KeycodeHeadsethook as declared in android/keycodes.h:125
|
|
KeycodeHeadsethook = 79
|
|
// KeycodeFocus as declared in android/keycodes.h:126
|
|
KeycodeFocus = 80
|
|
// KeycodePlus as declared in android/keycodes.h:127
|
|
KeycodePlus = 81
|
|
// KeycodeMenu as declared in android/keycodes.h:128
|
|
KeycodeMenu = 82
|
|
// KeycodeNotification as declared in android/keycodes.h:129
|
|
KeycodeNotification = 83
|
|
// KeycodeSearch as declared in android/keycodes.h:130
|
|
KeycodeSearch = 84
|
|
// KeycodeMediaPlayPause as declared in android/keycodes.h:131
|
|
KeycodeMediaPlayPause = 85
|
|
// KeycodeMediaStop as declared in android/keycodes.h:132
|
|
KeycodeMediaStop = 86
|
|
// KeycodeMediaNext as declared in android/keycodes.h:133
|
|
KeycodeMediaNext = 87
|
|
// KeycodeMediaPrevious as declared in android/keycodes.h:134
|
|
KeycodeMediaPrevious = 88
|
|
// KeycodeMediaRewind as declared in android/keycodes.h:135
|
|
KeycodeMediaRewind = 89
|
|
// KeycodeMediaFastForward as declared in android/keycodes.h:136
|
|
KeycodeMediaFastForward = 90
|
|
// KeycodeMute as declared in android/keycodes.h:137
|
|
KeycodeMute = 91
|
|
// KeycodePageUp as declared in android/keycodes.h:138
|
|
KeycodePageUp = 92
|
|
// KeycodePageDown as declared in android/keycodes.h:139
|
|
KeycodePageDown = 93
|
|
// KeycodePictsymbols as declared in android/keycodes.h:140
|
|
KeycodePictsymbols = 94
|
|
// KeycodeSwitchCharset as declared in android/keycodes.h:141
|
|
KeycodeSwitchCharset = 95
|
|
// KeycodeButtonA as declared in android/keycodes.h:142
|
|
KeycodeButtonA = 96
|
|
// KeycodeButtonB as declared in android/keycodes.h:143
|
|
KeycodeButtonB = 97
|
|
// KeycodeButtonC as declared in android/keycodes.h:144
|
|
KeycodeButtonC = 98
|
|
// KeycodeButtonX as declared in android/keycodes.h:145
|
|
KeycodeButtonX = 99
|
|
// KeycodeButtonY as declared in android/keycodes.h:146
|
|
KeycodeButtonY = 100
|
|
// KeycodeButtonZ as declared in android/keycodes.h:147
|
|
KeycodeButtonZ = 101
|
|
// KeycodeButtonL1 as declared in android/keycodes.h:148
|
|
KeycodeButtonL1 = 102
|
|
// KeycodeButtonR1 as declared in android/keycodes.h:149
|
|
KeycodeButtonR1 = 103
|
|
// KeycodeButtonL2 as declared in android/keycodes.h:150
|
|
KeycodeButtonL2 = 104
|
|
// KeycodeButtonR2 as declared in android/keycodes.h:151
|
|
KeycodeButtonR2 = 105
|
|
// KeycodeButtonThumbl as declared in android/keycodes.h:152
|
|
KeycodeButtonThumbl = 106
|
|
// KeycodeButtonThumbr as declared in android/keycodes.h:153
|
|
KeycodeButtonThumbr = 107
|
|
// KeycodeButtonStart as declared in android/keycodes.h:154
|
|
KeycodeButtonStart = 108
|
|
// KeycodeButtonSelect as declared in android/keycodes.h:155
|
|
KeycodeButtonSelect = 109
|
|
// KeycodeButtonMode as declared in android/keycodes.h:156
|
|
KeycodeButtonMode = 110
|
|
// KeycodeEscape as declared in android/keycodes.h:157
|
|
KeycodeEscape = 111
|
|
// KeycodeForwardDel as declared in android/keycodes.h:158
|
|
KeycodeForwardDel = 112
|
|
// KeycodeCtrlLeft as declared in android/keycodes.h:159
|
|
KeycodeCtrlLeft = 113
|
|
// KeycodeCtrlRight as declared in android/keycodes.h:160
|
|
KeycodeCtrlRight = 114
|
|
// KeycodeCapsLock as declared in android/keycodes.h:161
|
|
KeycodeCapsLock = 115
|
|
// KeycodeScrollLock as declared in android/keycodes.h:162
|
|
KeycodeScrollLock = 116
|
|
// KeycodeMetaLeft as declared in android/keycodes.h:163
|
|
KeycodeMetaLeft = 117
|
|
// KeycodeMetaRight as declared in android/keycodes.h:164
|
|
KeycodeMetaRight = 118
|
|
// KeycodeFunction as declared in android/keycodes.h:165
|
|
KeycodeFunction = 119
|
|
// KeycodeSysrq as declared in android/keycodes.h:166
|
|
KeycodeSysrq = 120
|
|
// KeycodeBreak as declared in android/keycodes.h:167
|
|
KeycodeBreak = 121
|
|
// KeycodeMoveHome as declared in android/keycodes.h:168
|
|
KeycodeMoveHome = 122
|
|
// KeycodeMoveEnd as declared in android/keycodes.h:169
|
|
KeycodeMoveEnd = 123
|
|
// KeycodeInsert as declared in android/keycodes.h:170
|
|
KeycodeInsert = 124
|
|
// KeycodeForward as declared in android/keycodes.h:171
|
|
KeycodeForward = 125
|
|
// KeycodeMediaPlay as declared in android/keycodes.h:172
|
|
KeycodeMediaPlay = 126
|
|
// KeycodeMediaPause as declared in android/keycodes.h:173
|
|
KeycodeMediaPause = 127
|
|
// KeycodeMediaClose as declared in android/keycodes.h:174
|
|
KeycodeMediaClose = 128
|
|
// KeycodeMediaEject as declared in android/keycodes.h:175
|
|
KeycodeMediaEject = 129
|
|
// KeycodeMediaRecord as declared in android/keycodes.h:176
|
|
KeycodeMediaRecord = 130
|
|
// KeycodeF1 as declared in android/keycodes.h:177
|
|
KeycodeF1 = 131
|
|
// KeycodeF2 as declared in android/keycodes.h:178
|
|
KeycodeF2 = 132
|
|
// KeycodeF3 as declared in android/keycodes.h:179
|
|
KeycodeF3 = 133
|
|
// KeycodeF4 as declared in android/keycodes.h:180
|
|
KeycodeF4 = 134
|
|
// KeycodeF5 as declared in android/keycodes.h:181
|
|
KeycodeF5 = 135
|
|
// KeycodeF6 as declared in android/keycodes.h:182
|
|
KeycodeF6 = 136
|
|
// KeycodeF7 as declared in android/keycodes.h:183
|
|
KeycodeF7 = 137
|
|
// KeycodeF8 as declared in android/keycodes.h:184
|
|
KeycodeF8 = 138
|
|
// KeycodeF9 as declared in android/keycodes.h:185
|
|
KeycodeF9 = 139
|
|
// KeycodeF10 as declared in android/keycodes.h:186
|
|
KeycodeF10 = 140
|
|
// KeycodeF11 as declared in android/keycodes.h:187
|
|
KeycodeF11 = 141
|
|
// KeycodeF12 as declared in android/keycodes.h:188
|
|
KeycodeF12 = 142
|
|
// KeycodeNumLock as declared in android/keycodes.h:189
|
|
KeycodeNumLock = 143
|
|
// KeycodeNumpad0 as declared in android/keycodes.h:190
|
|
KeycodeNumpad0 = 144
|
|
// KeycodeNumpad1 as declared in android/keycodes.h:191
|
|
KeycodeNumpad1 = 145
|
|
// KeycodeNumpad2 as declared in android/keycodes.h:192
|
|
KeycodeNumpad2 = 146
|
|
// KeycodeNumpad3 as declared in android/keycodes.h:193
|
|
KeycodeNumpad3 = 147
|
|
// KeycodeNumpad4 as declared in android/keycodes.h:194
|
|
KeycodeNumpad4 = 148
|
|
// KeycodeNumpad5 as declared in android/keycodes.h:195
|
|
KeycodeNumpad5 = 149
|
|
// KeycodeNumpad6 as declared in android/keycodes.h:196
|
|
KeycodeNumpad6 = 150
|
|
// KeycodeNumpad7 as declared in android/keycodes.h:197
|
|
KeycodeNumpad7 = 151
|
|
// KeycodeNumpad8 as declared in android/keycodes.h:198
|
|
KeycodeNumpad8 = 152
|
|
// KeycodeNumpad9 as declared in android/keycodes.h:199
|
|
KeycodeNumpad9 = 153
|
|
// KeycodeNumpadDivide as declared in android/keycodes.h:200
|
|
KeycodeNumpadDivide = 154
|
|
// KeycodeNumpadMultiply as declared in android/keycodes.h:201
|
|
KeycodeNumpadMultiply = 155
|
|
// KeycodeNumpadSubtract as declared in android/keycodes.h:202
|
|
KeycodeNumpadSubtract = 156
|
|
// KeycodeNumpadAdd as declared in android/keycodes.h:203
|
|
KeycodeNumpadAdd = 157
|
|
// KeycodeNumpadDot as declared in android/keycodes.h:204
|
|
KeycodeNumpadDot = 158
|
|
// KeycodeNumpadComma as declared in android/keycodes.h:205
|
|
KeycodeNumpadComma = 159
|
|
// KeycodeNumpadEnter as declared in android/keycodes.h:206
|
|
KeycodeNumpadEnter = 160
|
|
// KeycodeNumpadEquals as declared in android/keycodes.h:207
|
|
KeycodeNumpadEquals = 161
|
|
// KeycodeNumpadLeftParen as declared in android/keycodes.h:208
|
|
KeycodeNumpadLeftParen = 162
|
|
// KeycodeNumpadRightParen as declared in android/keycodes.h:209
|
|
KeycodeNumpadRightParen = 163
|
|
// KeycodeVolumeMute as declared in android/keycodes.h:210
|
|
KeycodeVolumeMute = 164
|
|
// KeycodeInfo as declared in android/keycodes.h:211
|
|
KeycodeInfo = 165
|
|
// KeycodeChannelUp as declared in android/keycodes.h:212
|
|
KeycodeChannelUp = 166
|
|
// KeycodeChannelDown as declared in android/keycodes.h:213
|
|
KeycodeChannelDown = 167
|
|
// KeycodeZoomIn as declared in android/keycodes.h:214
|
|
KeycodeZoomIn = 168
|
|
// KeycodeZoomOut as declared in android/keycodes.h:215
|
|
KeycodeZoomOut = 169
|
|
// KeycodeTv as declared in android/keycodes.h:216
|
|
KeycodeTv = 170
|
|
// KeycodeWindow as declared in android/keycodes.h:217
|
|
KeycodeWindow = 171
|
|
// KeycodeGuide as declared in android/keycodes.h:218
|
|
KeycodeGuide = 172
|
|
// KeycodeDvr as declared in android/keycodes.h:219
|
|
KeycodeDvr = 173
|
|
// KeycodeBookmark as declared in android/keycodes.h:220
|
|
KeycodeBookmark = 174
|
|
// KeycodeCaptions as declared in android/keycodes.h:221
|
|
KeycodeCaptions = 175
|
|
// KeycodeSettings as declared in android/keycodes.h:222
|
|
KeycodeSettings = 176
|
|
// KeycodeTvPower as declared in android/keycodes.h:223
|
|
KeycodeTvPower = 177
|
|
// KeycodeTvInput as declared in android/keycodes.h:224
|
|
KeycodeTvInput = 178
|
|
// KeycodeStbPower as declared in android/keycodes.h:225
|
|
KeycodeStbPower = 179
|
|
// KeycodeStbInput as declared in android/keycodes.h:226
|
|
KeycodeStbInput = 180
|
|
// KeycodeAvrPower as declared in android/keycodes.h:227
|
|
KeycodeAvrPower = 181
|
|
// KeycodeAvrInput as declared in android/keycodes.h:228
|
|
KeycodeAvrInput = 182
|
|
// KeycodeProgRed as declared in android/keycodes.h:229
|
|
KeycodeProgRed = 183
|
|
// KeycodeProgGreen as declared in android/keycodes.h:230
|
|
KeycodeProgGreen = 184
|
|
// KeycodeProgYellow as declared in android/keycodes.h:231
|
|
KeycodeProgYellow = 185
|
|
// KeycodeProgBlue as declared in android/keycodes.h:232
|
|
KeycodeProgBlue = 186
|
|
// KeycodeAppSwitch as declared in android/keycodes.h:233
|
|
KeycodeAppSwitch = 187
|
|
// KeycodeButton1 as declared in android/keycodes.h:234
|
|
KeycodeButton1 = 188
|
|
// KeycodeButton2 as declared in android/keycodes.h:235
|
|
KeycodeButton2 = 189
|
|
// KeycodeButton3 as declared in android/keycodes.h:236
|
|
KeycodeButton3 = 190
|
|
// KeycodeButton4 as declared in android/keycodes.h:237
|
|
KeycodeButton4 = 191
|
|
// KeycodeButton5 as declared in android/keycodes.h:238
|
|
KeycodeButton5 = 192
|
|
// KeycodeButton6 as declared in android/keycodes.h:239
|
|
KeycodeButton6 = 193
|
|
// KeycodeButton7 as declared in android/keycodes.h:240
|
|
KeycodeButton7 = 194
|
|
// KeycodeButton8 as declared in android/keycodes.h:241
|
|
KeycodeButton8 = 195
|
|
// KeycodeButton9 as declared in android/keycodes.h:242
|
|
KeycodeButton9 = 196
|
|
// KeycodeButton10 as declared in android/keycodes.h:243
|
|
KeycodeButton10 = 197
|
|
// KeycodeButton11 as declared in android/keycodes.h:244
|
|
KeycodeButton11 = 198
|
|
// KeycodeButton12 as declared in android/keycodes.h:245
|
|
KeycodeButton12 = 199
|
|
// KeycodeButton13 as declared in android/keycodes.h:246
|
|
KeycodeButton13 = 200
|
|
// KeycodeButton14 as declared in android/keycodes.h:247
|
|
KeycodeButton14 = 201
|
|
// KeycodeButton15 as declared in android/keycodes.h:248
|
|
KeycodeButton15 = 202
|
|
// KeycodeButton16 as declared in android/keycodes.h:249
|
|
KeycodeButton16 = 203
|
|
// KeycodeLanguageSwitch as declared in android/keycodes.h:250
|
|
KeycodeLanguageSwitch = 204
|
|
// KeycodeMannerMode as declared in android/keycodes.h:251
|
|
KeycodeMannerMode = 205
|
|
// Keycode3dMode as declared in android/keycodes.h:252
|
|
Keycode3dMode = 206
|
|
// KeycodeContacts as declared in android/keycodes.h:253
|
|
KeycodeContacts = 207
|
|
// KeycodeCalendar as declared in android/keycodes.h:254
|
|
KeycodeCalendar = 208
|
|
// KeycodeMusic as declared in android/keycodes.h:255
|
|
KeycodeMusic = 209
|
|
// KeycodeCalculator as declared in android/keycodes.h:256
|
|
KeycodeCalculator = 210
|
|
// KeycodeZenkakuHankaku as declared in android/keycodes.h:257
|
|
KeycodeZenkakuHankaku = 211
|
|
// KeycodeEisu as declared in android/keycodes.h:258
|
|
KeycodeEisu = 212
|
|
// KeycodeMuhenkan as declared in android/keycodes.h:259
|
|
KeycodeMuhenkan = 213
|
|
// KeycodeHenkan as declared in android/keycodes.h:260
|
|
KeycodeHenkan = 214
|
|
// KeycodeKatakanaHiragana as declared in android/keycodes.h:261
|
|
KeycodeKatakanaHiragana = 215
|
|
// KeycodeYen as declared in android/keycodes.h:262
|
|
KeycodeYen = 216
|
|
// KeycodeRo as declared in android/keycodes.h:263
|
|
KeycodeRo = 217
|
|
// KeycodeKana as declared in android/keycodes.h:264
|
|
KeycodeKana = 218
|
|
// KeycodeAssist as declared in android/keycodes.h:265
|
|
KeycodeAssist = 219
|
|
// KeycodeBrightnessDown as declared in android/keycodes.h:266
|
|
KeycodeBrightnessDown = 220
|
|
// KeycodeBrightnessUp as declared in android/keycodes.h:267
|
|
KeycodeBrightnessUp = 221
|
|
// KeycodeMediaAudioTrack as declared in android/keycodes.h:268
|
|
KeycodeMediaAudioTrack = 222
|
|
// KeycodeSleep as declared in android/keycodes.h:269
|
|
KeycodeSleep = 223
|
|
// KeycodeWakeup as declared in android/keycodes.h:270
|
|
KeycodeWakeup = 224
|
|
// KeycodePairing as declared in android/keycodes.h:271
|
|
KeycodePairing = 225
|
|
// KeycodeMediaTopMenu as declared in android/keycodes.h:272
|
|
KeycodeMediaTopMenu = 226
|
|
// Keycode11 as declared in android/keycodes.h:273
|
|
Keycode11 = 227
|
|
// Keycode12 as declared in android/keycodes.h:274
|
|
Keycode12 = 228
|
|
// KeycodeLastChannel as declared in android/keycodes.h:275
|
|
KeycodeLastChannel = 229
|
|
// KeycodeTvDataService as declared in android/keycodes.h:276
|
|
KeycodeTvDataService = 230
|
|
// KeycodeVoiceAssist as declared in android/keycodes.h:277
|
|
KeycodeVoiceAssist = 231
|
|
// KeycodeTvRadioService as declared in android/keycodes.h:278
|
|
KeycodeTvRadioService = 232
|
|
// KeycodeTvTeletext as declared in android/keycodes.h:279
|
|
KeycodeTvTeletext = 233
|
|
// KeycodeTvNumberEntry as declared in android/keycodes.h:280
|
|
KeycodeTvNumberEntry = 234
|
|
// KeycodeTvTerrestrialAnalog as declared in android/keycodes.h:281
|
|
KeycodeTvTerrestrialAnalog = 235
|
|
// KeycodeTvTerrestrialDigital as declared in android/keycodes.h:282
|
|
KeycodeTvTerrestrialDigital = 236
|
|
// KeycodeTvSatellite as declared in android/keycodes.h:283
|
|
KeycodeTvSatellite = 237
|
|
// KeycodeTvSatelliteBs as declared in android/keycodes.h:284
|
|
KeycodeTvSatelliteBs = 238
|
|
// KeycodeTvSatelliteCs as declared in android/keycodes.h:285
|
|
KeycodeTvSatelliteCs = 239
|
|
// KeycodeTvSatelliteService as declared in android/keycodes.h:286
|
|
KeycodeTvSatelliteService = 240
|
|
// KeycodeTvNetwork as declared in android/keycodes.h:287
|
|
KeycodeTvNetwork = 241
|
|
// KeycodeTvAntennaCable as declared in android/keycodes.h:288
|
|
KeycodeTvAntennaCable = 242
|
|
// KeycodeTvInputHdmi1 as declared in android/keycodes.h:289
|
|
KeycodeTvInputHdmi1 = 243
|
|
// KeycodeTvInputHdmi2 as declared in android/keycodes.h:290
|
|
KeycodeTvInputHdmi2 = 244
|
|
// KeycodeTvInputHdmi3 as declared in android/keycodes.h:291
|
|
KeycodeTvInputHdmi3 = 245
|
|
// KeycodeTvInputHdmi4 as declared in android/keycodes.h:292
|
|
KeycodeTvInputHdmi4 = 246
|
|
// KeycodeTvInputComposite1 as declared in android/keycodes.h:293
|
|
KeycodeTvInputComposite1 = 247
|
|
// KeycodeTvInputComposite2 as declared in android/keycodes.h:294
|
|
KeycodeTvInputComposite2 = 248
|
|
// KeycodeTvInputComponent1 as declared in android/keycodes.h:295
|
|
KeycodeTvInputComponent1 = 249
|
|
// KeycodeTvInputComponent2 as declared in android/keycodes.h:296
|
|
KeycodeTvInputComponent2 = 250
|
|
// KeycodeTvInputVga1 as declared in android/keycodes.h:297
|
|
KeycodeTvInputVga1 = 251
|
|
// KeycodeTvAudioDescription as declared in android/keycodes.h:298
|
|
KeycodeTvAudioDescription = 252
|
|
// KeycodeTvAudioDescriptionMixUp as declared in android/keycodes.h:299
|
|
KeycodeTvAudioDescriptionMixUp = 253
|
|
// KeycodeTvAudioDescriptionMixDown as declared in android/keycodes.h:300
|
|
KeycodeTvAudioDescriptionMixDown = 254
|
|
// KeycodeTvZoomMode as declared in android/keycodes.h:301
|
|
KeycodeTvZoomMode = 255
|
|
// KeycodeTvContentsMenu as declared in android/keycodes.h:302
|
|
KeycodeTvContentsMenu = 256
|
|
// KeycodeTvMediaContextMenu as declared in android/keycodes.h:303
|
|
KeycodeTvMediaContextMenu = 257
|
|
// KeycodeTvTimerProgramming as declared in android/keycodes.h:304
|
|
KeycodeTvTimerProgramming = 258
|
|
// KeycodeHelp as declared in android/keycodes.h:305
|
|
KeycodeHelp = 259
|
|
)
|
|
|
|
const (
|
|
// LooperPrepareAllowNonCallbacks as declared in android/looper.h:55
|
|
LooperPrepareAllowNonCallbacks = 1 << 0
|
|
)
|
|
|
|
const (
|
|
// LooperPollWake as declared in android/looper.h:73
|
|
LooperPollWake = -1
|
|
// LooperPollCallback as declared in android/looper.h:79
|
|
LooperPollCallback = -2
|
|
// LooperPollTimeout as declared in android/looper.h:85
|
|
LooperPollTimeout = -3
|
|
// LooperPollError as declared in android/looper.h:91
|
|
LooperPollError = -4
|
|
)
|
|
|
|
const (
|
|
// LooperEventInput as declared in android/looper.h:115
|
|
LooperEventInput = 1 << 0
|
|
// LooperEventOutput as declared in android/looper.h:120
|
|
LooperEventOutput = 1 << 1
|
|
// LooperEventError as declared in android/looper.h:128
|
|
LooperEventError = 1 << 2
|
|
// LooperEventHangup as declared in android/looper.h:137
|
|
LooperEventHangup = 1 << 3
|
|
// LooperEventInvalid as declared in android/looper.h:146
|
|
LooperEventInvalid = 1 << 4
|
|
)
|
|
|
|
const (
|
|
// NativeactivityShowSoftInputImplicit as declared in android/native_activity.h:276
|
|
NativeactivityShowSoftInputImplicit = 0x0001
|
|
// NativeactivityShowSoftInputForced as declared in android/native_activity.h:277
|
|
NativeactivityShowSoftInputForced = 0x0002
|
|
)
|
|
|
|
const (
|
|
// NativeactivityHideSoftInputImplicitOnly as declared in android/native_activity.h:293
|
|
NativeactivityHideSoftInputImplicitOnly = 0x0001
|
|
// NativeactivityHideSoftInputNotAlways as declared in android/native_activity.h:294
|
|
NativeactivityHideSoftInputNotAlways = 0x0002
|
|
)
|
|
|
|
const (
|
|
// KeyStateUnknown as declared in android/input.h:58
|
|
KeyStateUnknown = -1
|
|
// KeyStateUp as declared in android/input.h:61
|
|
KeyStateUp = 0
|
|
// KeyStateDown as declared in android/input.h:64
|
|
KeyStateDown = 1
|
|
// KeyStateVirtual as declared in android/input.h:67
|
|
KeyStateVirtual = 2
|
|
)
|
|
|
|
const (
|
|
// MetaNone as declared in android/input.h:75
|
|
MetaNone = iota
|
|
// MetaAltOn as declared in android/input.h:78
|
|
MetaAltOn = 0x02
|
|
// MetaAltLeftOn as declared in android/input.h:81
|
|
MetaAltLeftOn = 0x10
|
|
// MetaAltRightOn as declared in android/input.h:84
|
|
MetaAltRightOn = 0x20
|
|
// MetaShiftOn as declared in android/input.h:87
|
|
MetaShiftOn = 0x01
|
|
// MetaShiftLeftOn as declared in android/input.h:90
|
|
MetaShiftLeftOn = 0x40
|
|
// MetaShiftRightOn as declared in android/input.h:93
|
|
MetaShiftRightOn = 0x80
|
|
// MetaSymOn as declared in android/input.h:96
|
|
MetaSymOn = 0x04
|
|
// MetaFunctionOn as declared in android/input.h:99
|
|
MetaFunctionOn = 0x08
|
|
// MetaCtrlOn as declared in android/input.h:102
|
|
MetaCtrlOn = 0x1000
|
|
// MetaCtrlLeftOn as declared in android/input.h:105
|
|
MetaCtrlLeftOn = 0x2000
|
|
// MetaCtrlRightOn as declared in android/input.h:108
|
|
MetaCtrlRightOn = 0x4000
|
|
// MetaMetaOn as declared in android/input.h:111
|
|
MetaMetaOn = 0x10000
|
|
// MetaMetaLeftOn as declared in android/input.h:114
|
|
MetaMetaLeftOn = 0x20000
|
|
// MetaMetaRightOn as declared in android/input.h:117
|
|
MetaMetaRightOn = 0x40000
|
|
// MetaCapsLockOn as declared in android/input.h:120
|
|
MetaCapsLockOn = 0x100000
|
|
// MetaNumLockOn as declared in android/input.h:123
|
|
MetaNumLockOn = 0x200000
|
|
// MetaScrollLockOn as declared in android/input.h:126
|
|
MetaScrollLockOn = 0x400000
|
|
)
|
|
|
|
const (
|
|
// InputEventTypeKey as declared in android/input.h:143
|
|
InputEventTypeKey = 1
|
|
// InputEventTypeMotion as declared in android/input.h:146
|
|
InputEventTypeMotion = 2
|
|
)
|
|
|
|
const (
|
|
// KeyEventActionDown as declared in android/input.h:154
|
|
KeyEventActionDown = iota
|
|
// KeyEventActionUp as declared in android/input.h:157
|
|
KeyEventActionUp = 1
|
|
// KeyEventActionMultiple as declared in android/input.h:163
|
|
KeyEventActionMultiple = 2
|
|
)
|
|
|
|
const (
|
|
// KeyEventFlagWokeHere as declared in android/input.h:171
|
|
KeyEventFlagWokeHere = 0x1
|
|
// KeyEventFlagSoftKeyboard as declared in android/input.h:174
|
|
KeyEventFlagSoftKeyboard = 0x2
|
|
// KeyEventFlagKeepTouchMode as declared in android/input.h:177
|
|
KeyEventFlagKeepTouchMode = 0x4
|
|
// KeyEventFlagFromSystem as declared in android/input.h:182
|
|
KeyEventFlagFromSystem = 0x8
|
|
// KeyEventFlagEditorAction as declared in android/input.h:189
|
|
KeyEventFlagEditorAction = 0x10
|
|
// KeyEventFlagCanceled as declared in android/input.h:199
|
|
KeyEventFlagCanceled = 0x20
|
|
// KeyEventFlagVirtualHardKey as declared in android/input.h:204
|
|
KeyEventFlagVirtualHardKey = 0x40
|
|
// KeyEventFlagLongPress as declared in android/input.h:208
|
|
KeyEventFlagLongPress = 0x80
|
|
// KeyEventFlagCanceledLongPress as declared in android/input.h:212
|
|
KeyEventFlagCanceledLongPress = 0x100
|
|
// KeyEventFlagTracking as declared in android/input.h:218
|
|
KeyEventFlagTracking = 0x200
|
|
// KeyEventFlagFallback as declared in android/input.h:226
|
|
KeyEventFlagFallback = 0x400
|
|
)
|
|
|
|
const (
|
|
// MotionEventActionMask as declared in android/input.h:241
|
|
MotionEventActionMask = 0xff
|
|
// MotionEventActionPointerIndexMask as declared in android/input.h:248
|
|
MotionEventActionPointerIndexMask = 0xff00
|
|
// MotionEventActionDown as declared in android/input.h:252
|
|
MotionEventActionDown = 0
|
|
// MotionEventActionUp as declared in android/input.h:257
|
|
MotionEventActionUp = 1
|
|
// MotionEventActionMove as declared in android/input.h:263
|
|
MotionEventActionMove = 2
|
|
// MotionEventActionCancel as declared in android/input.h:269
|
|
MotionEventActionCancel = 3
|
|
// MotionEventActionOutside as declared in android/input.h:274
|
|
MotionEventActionOutside = 4
|
|
// MotionEventActionPointerDown as declared in android/input.h:279
|
|
MotionEventActionPointerDown = 5
|
|
// MotionEventActionPointerUp as declared in android/input.h:284
|
|
MotionEventActionPointerUp = 6
|
|
// MotionEventActionHoverMove as declared in android/input.h:290
|
|
MotionEventActionHoverMove = 7
|
|
// MotionEventActionScroll as declared in android/input.h:299
|
|
MotionEventActionScroll = 8
|
|
// MotionEventActionHoverEnter as declared in android/input.h:303
|
|
MotionEventActionHoverEnter = 9
|
|
// MotionEventActionHoverExit as declared in android/input.h:307
|
|
MotionEventActionHoverExit = 10
|
|
)
|
|
|
|
const (
|
|
// MotionEventFlagWindowIsObscured as declared in android/input.h:323
|
|
MotionEventFlagWindowIsObscured = 0x1
|
|
)
|
|
|
|
const (
|
|
// MotionEventEdgeFlagNone as declared in android/input.h:331
|
|
MotionEventEdgeFlagNone = iota
|
|
// MotionEventEdgeFlagTop as declared in android/input.h:334
|
|
MotionEventEdgeFlagTop = 0x01
|
|
// MotionEventEdgeFlagBottom as declared in android/input.h:337
|
|
MotionEventEdgeFlagBottom = 0x02
|
|
// MotionEventEdgeFlagLeft as declared in android/input.h:340
|
|
MotionEventEdgeFlagLeft = 0x04
|
|
// MotionEventEdgeFlagRight as declared in android/input.h:343
|
|
MotionEventEdgeFlagRight = 0x08
|
|
)
|
|
|
|
const (
|
|
// MotionEventAxisX as declared in android/input.h:351
|
|
MotionEventAxisX = iota
|
|
// MotionEventAxisY as declared in android/input.h:352
|
|
MotionEventAxisY = 1
|
|
// MotionEventAxisPressure as declared in android/input.h:353
|
|
MotionEventAxisPressure = 2
|
|
// MotionEventAxisSize as declared in android/input.h:354
|
|
MotionEventAxisSize = 3
|
|
// MotionEventAxisTouchMajor as declared in android/input.h:355
|
|
MotionEventAxisTouchMajor = 4
|
|
// MotionEventAxisTouchMinor as declared in android/input.h:356
|
|
MotionEventAxisTouchMinor = 5
|
|
// MotionEventAxisToolMajor as declared in android/input.h:357
|
|
MotionEventAxisToolMajor = 6
|
|
// MotionEventAxisToolMinor as declared in android/input.h:358
|
|
MotionEventAxisToolMinor = 7
|
|
// MotionEventAxisOrientation as declared in android/input.h:359
|
|
MotionEventAxisOrientation = 8
|
|
// MotionEventAxisVscroll as declared in android/input.h:360
|
|
MotionEventAxisVscroll = 9
|
|
// MotionEventAxisHscroll as declared in android/input.h:361
|
|
MotionEventAxisHscroll = 10
|
|
// MotionEventAxisZ as declared in android/input.h:362
|
|
MotionEventAxisZ = 11
|
|
// MotionEventAxisRx as declared in android/input.h:363
|
|
MotionEventAxisRx = 12
|
|
// MotionEventAxisRy as declared in android/input.h:364
|
|
MotionEventAxisRy = 13
|
|
// MotionEventAxisRz as declared in android/input.h:365
|
|
MotionEventAxisRz = 14
|
|
// MotionEventAxisHatX as declared in android/input.h:366
|
|
MotionEventAxisHatX = 15
|
|
// MotionEventAxisHatY as declared in android/input.h:367
|
|
MotionEventAxisHatY = 16
|
|
// MotionEventAxisLtrigger as declared in android/input.h:368
|
|
MotionEventAxisLtrigger = 17
|
|
// MotionEventAxisRtrigger as declared in android/input.h:369
|
|
MotionEventAxisRtrigger = 18
|
|
// MotionEventAxisThrottle as declared in android/input.h:370
|
|
MotionEventAxisThrottle = 19
|
|
// MotionEventAxisRudder as declared in android/input.h:371
|
|
MotionEventAxisRudder = 20
|
|
// MotionEventAxisWheel as declared in android/input.h:372
|
|
MotionEventAxisWheel = 21
|
|
// MotionEventAxisGas as declared in android/input.h:373
|
|
MotionEventAxisGas = 22
|
|
// MotionEventAxisBrake as declared in android/input.h:374
|
|
MotionEventAxisBrake = 23
|
|
// MotionEventAxisDistance as declared in android/input.h:375
|
|
MotionEventAxisDistance = 24
|
|
// MotionEventAxisTilt as declared in android/input.h:376
|
|
MotionEventAxisTilt = 25
|
|
// MotionEventAxisGeneric1 as declared in android/input.h:377
|
|
MotionEventAxisGeneric1 = 32
|
|
// MotionEventAxisGeneric2 as declared in android/input.h:378
|
|
MotionEventAxisGeneric2 = 33
|
|
// MotionEventAxisGeneric3 as declared in android/input.h:379
|
|
MotionEventAxisGeneric3 = 34
|
|
// MotionEventAxisGeneric4 as declared in android/input.h:380
|
|
MotionEventAxisGeneric4 = 35
|
|
// MotionEventAxisGeneric5 as declared in android/input.h:381
|
|
MotionEventAxisGeneric5 = 36
|
|
// MotionEventAxisGeneric6 as declared in android/input.h:382
|
|
MotionEventAxisGeneric6 = 37
|
|
// MotionEventAxisGeneric7 as declared in android/input.h:383
|
|
MotionEventAxisGeneric7 = 38
|
|
// MotionEventAxisGeneric8 as declared in android/input.h:384
|
|
MotionEventAxisGeneric8 = 39
|
|
// MotionEventAxisGeneric9 as declared in android/input.h:385
|
|
MotionEventAxisGeneric9 = 40
|
|
// MotionEventAxisGeneric10 as declared in android/input.h:386
|
|
MotionEventAxisGeneric10 = 41
|
|
// MotionEventAxisGeneric11 as declared in android/input.h:387
|
|
MotionEventAxisGeneric11 = 42
|
|
// MotionEventAxisGeneric12 as declared in android/input.h:388
|
|
MotionEventAxisGeneric12 = 43
|
|
// MotionEventAxisGeneric13 as declared in android/input.h:389
|
|
MotionEventAxisGeneric13 = 44
|
|
// MotionEventAxisGeneric14 as declared in android/input.h:390
|
|
MotionEventAxisGeneric14 = 45
|
|
// MotionEventAxisGeneric15 as declared in android/input.h:391
|
|
MotionEventAxisGeneric15 = 46
|
|
// MotionEventAxisGeneric16 as declared in android/input.h:392
|
|
MotionEventAxisGeneric16 = 47
|
|
)
|
|
|
|
const (
|
|
// MotionEventButtonPrimary as declared in android/input.h:403
|
|
MotionEventButtonPrimary = 1 << 0
|
|
// MotionEventButtonSecondary as declared in android/input.h:404
|
|
MotionEventButtonSecondary = 1 << 1
|
|
// MotionEventButtonTertiary as declared in android/input.h:405
|
|
MotionEventButtonTertiary = 1 << 2
|
|
// MotionEventButtonBack as declared in android/input.h:406
|
|
MotionEventButtonBack = 1 << 3
|
|
// MotionEventButtonForward as declared in android/input.h:407
|
|
MotionEventButtonForward = 1 << 4
|
|
)
|
|
|
|
const (
|
|
// MotionEventToolTypeUnknown as declared in android/input.h:415
|
|
MotionEventToolTypeUnknown = iota
|
|
// MotionEventToolTypeFinger as declared in android/input.h:416
|
|
MotionEventToolTypeFinger = 1
|
|
// MotionEventToolTypeStylus as declared in android/input.h:417
|
|
MotionEventToolTypeStylus = 2
|
|
// MotionEventToolTypeMouse as declared in android/input.h:418
|
|
MotionEventToolTypeMouse = 3
|
|
// MotionEventToolTypeEraser as declared in android/input.h:419
|
|
MotionEventToolTypeEraser = 4
|
|
)
|
|
|
|
const (
|
|
// InputSourceClassMask as declared in android/input.h:429
|
|
InputSourceClassMask = 0x000000ff
|
|
// InputSourceClassNone as declared in android/input.h:431
|
|
InputSourceClassNone = 0x00000000
|
|
// InputSourceClassButton as declared in android/input.h:432
|
|
InputSourceClassButton = 0x00000001
|
|
// InputSourceClassPointer as declared in android/input.h:433
|
|
InputSourceClassPointer = 0x00000002
|
|
// InputSourceClassNavigation as declared in android/input.h:434
|
|
InputSourceClassNavigation = 0x00000004
|
|
// InputSourceClassPosition as declared in android/input.h:435
|
|
InputSourceClassPosition = 0x00000008
|
|
// InputSourceClassJoystick as declared in android/input.h:436
|
|
InputSourceClassJoystick = 0x00000010
|
|
)
|
|
|
|
const (
|
|
// InputSourceUnknown as declared in android/input.h:440
|
|
InputSourceUnknown = 0x00000000
|
|
// InputSourceKeyboard as declared in android/input.h:442
|
|
InputSourceKeyboard = 0x00000100 | InputSourceClassButton
|
|
// InputSourceDpad as declared in android/input.h:443
|
|
InputSourceDpad = 0x00000200 | InputSourceClassButton
|
|
// InputSourceGamepad as declared in android/input.h:444
|
|
InputSourceGamepad = 0x00000400 | InputSourceClassButton
|
|
// InputSourceTouchscreen as declared in android/input.h:445
|
|
InputSourceTouchscreen = 0x00001000 | InputSourceClassPointer
|
|
// InputSourceMouse as declared in android/input.h:446
|
|
InputSourceMouse = 0x00002000 | InputSourceClassPointer
|
|
// InputSourceStylus as declared in android/input.h:447
|
|
InputSourceStylus = 0x00004000 | InputSourceClassPointer
|
|
// InputSourceTrackball as declared in android/input.h:448
|
|
InputSourceTrackball = 0x00010000 | InputSourceClassNavigation
|
|
// InputSourceTouchpad as declared in android/input.h:449
|
|
InputSourceTouchpad = 0x00100000 | InputSourceClassPosition
|
|
// InputSourceTouchNavigation as declared in android/input.h:450
|
|
InputSourceTouchNavigation = 0x00200000 | InputSourceClassNone
|
|
// InputSourceJoystick as declared in android/input.h:451
|
|
InputSourceJoystick = 0x01000000 | InputSourceClassJoystick
|
|
// InputSourceAny as declared in android/input.h:453
|
|
InputSourceAny = 0xffffff00
|
|
)
|
|
|
|
const (
|
|
// InputKeyboardTypeNone as declared in android/input.h:462
|
|
InputKeyboardTypeNone = iota
|
|
// InputKeyboardTypeNonAlphabetic as declared in android/input.h:463
|
|
InputKeyboardTypeNonAlphabetic = 1
|
|
// InputKeyboardTypeAlphabetic as declared in android/input.h:464
|
|
InputKeyboardTypeAlphabetic = 2
|
|
)
|
|
|
|
const (
|
|
// InputMotionRangeX as declared in android/input.h:477
|
|
InputMotionRangeX = MotionEventAxisX
|
|
// InputMotionRangeY as declared in android/input.h:478
|
|
InputMotionRangeY = MotionEventAxisY
|
|
// InputMotionRangePressure as declared in android/input.h:479
|
|
InputMotionRangePressure = MotionEventAxisPressure
|
|
// InputMotionRangeSize as declared in android/input.h:480
|
|
InputMotionRangeSize = MotionEventAxisSize
|
|
// InputMotionRangeTouchMajor as declared in android/input.h:481
|
|
InputMotionRangeTouchMajor = MotionEventAxisTouchMajor
|
|
// InputMotionRangeTouchMinor as declared in android/input.h:482
|
|
InputMotionRangeTouchMinor = MotionEventAxisTouchMinor
|
|
// InputMotionRangeToolMajor as declared in android/input.h:483
|
|
InputMotionRangeToolMajor = MotionEventAxisToolMajor
|
|
// InputMotionRangeToolMinor as declared in android/input.h:484
|
|
InputMotionRangeToolMinor = MotionEventAxisToolMinor
|
|
// InputMotionRangeOrientation as declared in android/input.h:485
|
|
InputMotionRangeOrientation = MotionEventAxisOrientation
|
|
)
|
|
|
|
const ()
|
|
|
|
const (
|
|
// ObbinfoOverlay as declared in android/obb.h:31
|
|
ObbinfoOverlay = 0x0001
|
|
)
|
|
|
|
const (
|
|
// SensorTypeAccelerometer as declared in android/sensor.h:59
|
|
SensorTypeAccelerometer = 1
|
|
// SensorTypeMagneticField as declared in android/sensor.h:60
|
|
SensorTypeMagneticField = 2
|
|
// SensorTypeGyroscope as declared in android/sensor.h:61
|
|
SensorTypeGyroscope = 4
|
|
// SensorTypeLight as declared in android/sensor.h:62
|
|
SensorTypeLight = 5
|
|
// SensorTypeProximity as declared in android/sensor.h:63
|
|
SensorTypeProximity = 8
|
|
)
|
|
|
|
const (
|
|
// SensorStatusNoContact as declared in android/sensor.h:70
|
|
SensorStatusNoContact = -1
|
|
// SensorStatusUnreliable as declared in android/sensor.h:71
|
|
SensorStatusUnreliable = 0
|
|
// SensorStatusAccuracyLow as declared in android/sensor.h:72
|
|
SensorStatusAccuracyLow = 1
|
|
// SensorStatusAccuracyMedium as declared in android/sensor.h:73
|
|
SensorStatusAccuracyMedium = 2
|
|
// SensorStatusAccuracyHigh as declared in android/sensor.h:74
|
|
SensorStatusAccuracyHigh = 3
|
|
)
|
|
|
|
const (
|
|
// ReportingModeContinuous as declared in android/sensor.h:81
|
|
ReportingModeContinuous = iota
|
|
// ReportingModeOnChange as declared in android/sensor.h:82
|
|
ReportingModeOnChange = 1
|
|
// ReportingModeOneShot as declared in android/sensor.h:83
|
|
ReportingModeOneShot = 2
|
|
// ReportingModeSpecialTrigger as declared in android/sensor.h:84
|
|
ReportingModeSpecialTrigger = 3
|
|
)
|
|
|
|
const (
|
|
// ObbStateMounted as declared in android/storage_manager.h:35
|
|
ObbStateMounted = 1
|
|
// ObbStateUnmounted as declared in android/storage_manager.h:41
|
|
ObbStateUnmounted = 2
|
|
// ObbStateErrorInternal as declared in android/storage_manager.h:48
|
|
ObbStateErrorInternal = 20
|
|
// ObbStateErrorCouldNotMount as declared in android/storage_manager.h:54
|
|
ObbStateErrorCouldNotMount = 21
|
|
// ObbStateErrorCouldNotUnmount as declared in android/storage_manager.h:61
|
|
ObbStateErrorCouldNotUnmount = 22
|
|
// ObbStateErrorNotMounted as declared in android/storage_manager.h:68
|
|
ObbStateErrorNotMounted = 23
|
|
// ObbStateErrorAlreadyMounted as declared in android/storage_manager.h:74
|
|
ObbStateErrorAlreadyMounted = 24
|
|
// ObbStateErrorPermissionDenied as declared in android/storage_manager.h:82
|
|
ObbStateErrorPermissionDenied = 25
|
|
)
|
|
|
|
const (
|
|
// WindowFlagAllowLockWhileScreenOn as declared in android/window.h:29
|
|
WindowFlagAllowLockWhileScreenOn = 0x00000001
|
|
// WindowFlagDimBehind as declared in android/window.h:30
|
|
WindowFlagDimBehind = 0x00000002
|
|
// WindowFlagBlurBehind as declared in android/window.h:31
|
|
WindowFlagBlurBehind = 0x00000004
|
|
// WindowFlagNotFocusable as declared in android/window.h:32
|
|
WindowFlagNotFocusable = 0x00000008
|
|
// WindowFlagNotTouchable as declared in android/window.h:33
|
|
WindowFlagNotTouchable = 0x00000010
|
|
// WindowFlagNotTouchModal as declared in android/window.h:34
|
|
WindowFlagNotTouchModal = 0x00000020
|
|
// WindowFlagTouchableWhenWaking as declared in android/window.h:35
|
|
WindowFlagTouchableWhenWaking = 0x00000040
|
|
// WindowFlagKeepScreenOn as declared in android/window.h:36
|
|
WindowFlagKeepScreenOn = 0x00000080
|
|
// WindowFlagLayoutInScreen as declared in android/window.h:37
|
|
WindowFlagLayoutInScreen = 0x00000100
|
|
// WindowFlagLayoutNoLimits as declared in android/window.h:38
|
|
WindowFlagLayoutNoLimits = 0x00000200
|
|
// WindowFlagFullscreen as declared in android/window.h:39
|
|
WindowFlagFullscreen = 0x00000400
|
|
// WindowFlagForceNotFullscreen as declared in android/window.h:40
|
|
WindowFlagForceNotFullscreen = 0x00000800
|
|
// WindowFlagDither as declared in android/window.h:41
|
|
WindowFlagDither = 0x00001000
|
|
// WindowFlagSecure as declared in android/window.h:42
|
|
WindowFlagSecure = 0x00002000
|
|
// WindowFlagScaled as declared in android/window.h:43
|
|
WindowFlagScaled = 0x00004000
|
|
// WindowFlagIgnoreCheekPresses as declared in android/window.h:44
|
|
WindowFlagIgnoreCheekPresses = 0x00008000
|
|
// WindowFlagLayoutInsetDecor as declared in android/window.h:45
|
|
WindowFlagLayoutInsetDecor = 0x00010000
|
|
// WindowFlagAltFocusableIm as declared in android/window.h:46
|
|
WindowFlagAltFocusableIm = 0x00020000
|
|
// WindowFlagWatchOutsideTouch as declared in android/window.h:47
|
|
WindowFlagWatchOutsideTouch = 0x00040000
|
|
// WindowFlagShowWhenLocked as declared in android/window.h:48
|
|
WindowFlagShowWhenLocked = 0x00080000
|
|
// WindowFlagShowWallpaper as declared in android/window.h:49
|
|
WindowFlagShowWallpaper = 0x00100000
|
|
// WindowFlagTurnScreenOn as declared in android/window.h:50
|
|
WindowFlagTurnScreenOn = 0x00200000
|
|
// WindowFlagDismissKeyguard as declared in android/window.h:51
|
|
WindowFlagDismissKeyguard = 0x00400000
|
|
)
|