5package org.qtproject.qt.android.bindings;
7import android.app.Activity;
8import android.app.Dialog;
9import android.app.Fragment;
10import android.content.Context;
11import android.content.Intent;
12import android.content.res.Configuration;
13import android.content.res.Resources.Theme;
14import android.graphics.Bitmap;
15import android.graphics.Canvas;
16import android.net.Uri;
17import android.os.Build;
18import android.os.Bundle;
19import android.util.AttributeSet;
20import android.view.ActionMode;
21import android.view.ActionMode.Callback;
22import android.view.ContextMenu;
23import android.view.ContextMenu.ContextMenuInfo;
24import android.view.KeyEvent;
25import android.view.Menu;
26import android.view.MenuItem;
27import android.view.MotionEvent;
28import android.view.View;
29import android.view.WindowManager.LayoutParams;
30import android.view.accessibility.AccessibilityEvent;
69 if (Build.VERSION.SDK_INT < 29) {
90 return super.dispatchKeyEvent(
event);
94 return super.dispatchKeyEvent(
event);
104 return super.dispatchPopulateAccessibilityEvent(
event);
108 return super.dispatchPopulateAccessibilityEvent(
event);
118 return super.dispatchTouchEvent(ev);
122 return super.dispatchTouchEvent(
event);
132 return super.dispatchTrackballEvent(ev);
136 return super.dispatchTrackballEvent(
event);
148 super.onActivityResult(requestCode, resultCode,
data);
152 super.onActivityResult(requestCode, resultCode,
data);
160 super.onApplyThemeResource(theme, resid,
first);
164 super.onApplyThemeResource(theme, resid,
first);
173 super.onChildTitleChanged(childActivity,
title);
177 super.onChildTitleChanged(childActivity,
title);
185 super.onConfigurationChanged(newConfig);
189 super.onConfigurationChanged(newConfig);
197 super.onContentChanged();
201 super.onContentChanged();
212 return super.onContextItemSelected(
item);
216 return super.onContextItemSelected(
item);
224 super.onContextMenuClosed(
menu);
228 super.onContextMenuClosed(
menu);
237 m_loader.
onCreate(savedInstanceState);
240 private void addReferrer(Intent intent)
242 if (intent.getExtras() !=
null && intent.getExtras().getString(
EXTRA_SOURCE_INFO) !=
null)
245 String sourceInformation =
"";
246 Uri referrer = getReferrer();
247 if (referrer !=
null)
248 sourceInformation = referrer.toString().replaceFirst(
"android-app://",
"");
256 super.onCreate(savedInstanceState);
258 addReferrer(getIntent());
266 super.onCreateContextMenu(
menu,
v, menuInfo);
270 super.onCreateContextMenu(
menu,
v, menuInfo);
281 return super.onCreateDescription();
285 return super.onCreateDescription();
296 return super.onCreateDialog(
id);
300 return super.onCreateDialog(
id);
311 return super.onCreateOptionsMenu(
menu);
315 return super.onCreateOptionsMenu(
menu);
326 return super.onCreatePanelMenu(featureId,
menu);
330 return super.onCreatePanelMenu(featureId,
menu);
342 return super.onCreatePanelView(featureId);
346 return super.onCreatePanelView(featureId);
357 return super.onCreateThumbnail(outBitmap, canvas);
361 return super.onCreateThumbnail(outBitmap, canvas);
395 return super.onKeyDown(keyCode,
event);
399 return super.onKeyDown(keyCode,
event);
410 return super.onKeyMultiple(keyCode, repeatCount,
event);
414 return super.onKeyMultiple(keyCode, repeatCount,
event);
424 return super.onKeyUp(keyCode,
event);
428 return super.onKeyUp(keyCode,
event);
447 return super.onMenuItemSelected(featureId,
item);
451 return super.onMenuItemSelected(featureId,
item);
462 return super.onMenuOpened(featureId,
menu);
466 return super.onMenuOpened(featureId,
menu);
475 super.onNewIntent(intent);
479 super.onNewIntent(intent);
490 return super.onOptionsItemSelected(
item);
494 return super.onOptionsItemSelected(
item);
502 super.onOptionsMenuClosed(
menu);
506 super.onOptionsMenuClosed(
menu);
514 super.onPanelClosed(featureId,
menu);
518 super.onPanelClosed(featureId,
menu);
533 super.onPostCreate(savedInstanceState);
541 super.onPostResume();
550 super.onPrepareDialog(
id,
dialog);
554 super.onPrepareDialog(
id,
dialog);
565 return super.onPrepareOptionsMenu(
menu);
569 return super.onPrepareOptionsMenu(
menu);
580 return super.onPreparePanel(featureId,
view,
menu);
584 return super.onPreparePanel(featureId,
view,
menu);
600 super.onRestoreInstanceState(savedInstanceState);
604 super.onRestoreInstanceState(savedInstanceState);
623 return super.onRetainNonConfigurationInstance();
627 return super.onRetainNonConfigurationInstance();
635 super.onSaveInstanceState(outState);
639 super.onSaveInstanceState(outState);
651 return super.onSearchRequested();
655 return super.onSearchRequested();
693 return super.onTouchEvent(
event);
697 return super.onTouchEvent(
event);
707 return super.onTrackballEvent(
event);
711 return super.onTrackballEvent(
event);
719 super.onUserInteraction();
723 super.onUserInteraction();
731 super.onUserLeaveHint();
735 super.onUserLeaveHint();
743 super.onWindowAttributesChanged(
params);
747 super.onWindowAttributesChanged(
params);
755 super.onWindowFocusChanged(hasFocus);
759 super.onWindowFocusChanged(hasFocus);
769 super.onAttachedToWindow();
773 super.onAttachedToWindow();
781 super.onBackPressed();
785 super.onBackPressed();
793 super.onDetachedFromWindow();
797 super.onDetachedFromWindow();
807 return super.onKeyLongPress(keyCode,
event);
811 return super.onKeyLongPress(keyCode,
event);
825 return super.onCreateDialog(
id,
args);
829 return super.onCreateDialog(
id,
args);
854 return super.dispatchKeyShortcutEvent(
event);
858 return super.dispatchKeyShortcutEvent(
event);
866 super.onActionModeFinished(
mode);
870 super.onActionModeFinished(
mode);
878 super.onActionModeStarted(
mode);
882 super.onActionModeStarted(
mode);
890 super.onAttachFragment(fragment);
894 super.onAttachFragment(fragment);
908 AttributeSet
attrs) {
919 return super.onKeyShortcut(keyCode,
event);
923 return super.onKeyShortcut(keyCode,
event);
934 return super.onWindowStartingActionMode(callback);
938 return super.onWindowStartingActionMode(callback);
951 return super.dispatchGenericMotionEvent(ev);
955 return super.dispatchGenericMotionEvent(
event);
965 return super.onGenericMotionEvent(
event);
969 return super.onGenericMotionEvent(
event);
1037 public boolean loadApplication(Activity activity, ClassLoader classLoader, Bundle loaderParams)
1083 final int height,
final int inputHints,
1084 final int enterKeyType)
1100 int x1,
int y1,
int x2,
int y2,
boolean rtl)
1105 public void updateSelection(
int selStart,
int selEnd,
int candidatesStart,
int candidatesEnd)
boolean isKeyboardVisible()
void notifyQtAndroidPluginRunning(boolean running)
void notifyObjectFocus(int viewId)
void insertNativeView(int id, View view, int x, int y, int w, int h)
void updateSelection(int selStart, int selEnd, int candidatesStart, int candidatesEnd)
void setSystemUiVisibility(int systemUiVisibility)
void notifyObjectHide(int viewId, int parentId)
void notifyValueChanged(int viewId, String value)
void bringChildToBack(int id)
void showSoftwareKeyboard(final int x, final int y, final int width, final int height, final int inputHints, final int enterKeyType)
void onCreatePopupMenu(Menu menu)
void createSurface(int id, boolean onTop, int x, int y, int w, int h, int imageDepth)
boolean setKeyboardVisibility(boolean visibility, long timeStamp)
boolean loadApplication(Activity activity, ClassLoader classLoader, Bundle loaderParams)
void setSurfaceGeometry(int id, int x, int y, int w, int h)
boolean startApplication()
void openContextMenu(final int x, final int y, final int w, final int h)
void notifyAccessibilityLocationChange(int viewId)
void updateHandles(int mode, int editX, int editY, int editButtons, int x1, int y1, int x2, int y2, boolean rtl)
void bringChildToFront(int id)
void hideSoftwareKeyboard()
void initializeAccessibility()
void destroySurface(int id)
void resetSoftwareKeyboard()
static QtActivityDelegate activityDelegate()
void onCreate(Bundle savedInstanceState)
void onChildTitleChanged(Activity childActivity, CharSequence title)
void onAttachedToWindow()
void super_onApplyThemeResource(Theme theme, int resid, boolean first)
void super_onUserLeaveHint()
boolean onSearchRequested()
void onCreateContextMenu(ContextMenu menu, View v, ContextMenuInfo menuInfo)
void super_onNewIntent(Intent intent)
Dialog super_onCreateDialog(int id, Bundle args)
void createSurface(int id, boolean onTop, int x, int y, int w, int h, int imageDepth)
void super_onPrepareDialog(int id, Dialog dialog, Bundle args)
ActionMode onWindowStartingActionMode(Callback callback)
boolean onKeyDown(int keyCode, KeyEvent event)
boolean onMenuItemSelected(int featureId, MenuItem item)
boolean isKeyboardVisible()
boolean super_onGenericMotionEvent(MotionEvent event)
Dialog super_onCreateDialog(int id)
void super_onAttachFragment(Fragment fragment)
boolean startApplication()
boolean super_dispatchTouchEvent(MotionEvent event)
void onWindowFocusChanged(boolean hasFocus)
boolean onGenericMotionEvent(MotionEvent event)
boolean onKeyShortcut(int keyCode, KeyEvent event)
View onCreatePanelView(int featureId)
void super_onOptionsMenuClosed(Menu menu)
void super_onPrepareDialog(int id, Dialog dialog)
boolean onTouchEvent(MotionEvent event)
boolean loadApplication(Activity activity, ClassLoader classLoader, Bundle loaderParams)
void initializeAccessibility()
boolean super_dispatchPopulateAccessibilityEvent(AccessibilityEvent event)
boolean super_onKeyDown(int keyCode, KeyEvent event)
void super_onAttachedToWindow()
void updateHandles(int mode, int editX, int editY, int editButtons, int x1, int y1, int x2, int y2, boolean rtl)
void onCreate(Bundle savedInstanceState)
void notifyAccessibilityLocationChange(int viewId)
void onSaveInstanceState(Bundle outState)
void super_onConfigurationChanged(Configuration newConfig)
void setSurfaceGeometry(int id, int x, int y, int w, int h)
void super_onContextMenuClosed(Menu menu)
boolean super_dispatchKeyEvent(KeyEvent event)
boolean super_onMenuOpened(int featureId, Menu menu)
void onRequestPermissionsResult(int requestCode, String[] permissions, int[] grantResults)
boolean super_onPreparePanel(int featureId, View view, Menu menu)
String APPLICATION_PARAMETERS
void onConfigurationChanged(Configuration newConfig)
void super_onSaveInstanceState(Bundle outState)
void super_onTitleChanged(CharSequence title, int color)
boolean super_dispatchKeyShortcutEvent(KeyEvent event)
boolean super_onKeyMultiple(int keyCode, int repeatCount, KeyEvent event)
boolean onPreparePanel(int featureId, View view, Menu menu)
boolean dispatchKeyEvent(KeyEvent event)
boolean onOptionsItemSelected(MenuItem item)
boolean super_onMenuItemSelected(int featureId, MenuItem item)
boolean onPrepareOptionsMenu(Menu menu)
Dialog onCreateDialog(int id, Bundle args)
void showSoftwareKeyboard(final int x, final int y, final int width, final int height, final int inputHints, final int enterKeyType)
void onAttachFragment(Fragment fragment)
void destroySurface(int id)
boolean onKeyUp(int keyCode, KeyEvent event)
void onCreatePopupMenu(Menu menu)
boolean dispatchTrackballEvent(MotionEvent ev)
void notifyObjectFocus(int viewId)
void onCreateHook(Bundle savedInstanceState)
void setSystemUiVisibility(int systemUiVisibility)
boolean super_onKeyShortcut(int keyCode, KeyEvent event)
void onTitleChanged(CharSequence title, int color)
void onRestoreInstanceState(Bundle savedInstanceState)
boolean super_onSearchRequested()
String ENVIRONMENT_VARIABLES
CharSequence super_onCreateDescription()
void hideSplashScreen(final int duration)
void onContextMenuClosed(Menu menu)
void openContextMenu(final int x, final int y, final int w, final int h)
void notifyValueChanged(int viewId, String value)
boolean onTrackballEvent(MotionEvent event)
ActionMode super_onWindowStartingActionMode(Callback callback)
void onNewIntent(Intent intent)
Dialog onCreateDialog(int id)
boolean super_onPrepareOptionsMenu(Menu menu)
void onOptionsMenuClosed(Menu menu)
String[] QT_ANDROID_THEMES
void updateSelection(int selStart, int selEnd, int candidatesStart, int candidatesEnd)
void super_onActivityResult(int requestCode, int resultCode, Intent data)
static final String EXTRA_SOURCE_INFO
String QT_ANDROID_DEFAULT_THEME
boolean dispatchGenericMotionEvent(MotionEvent ev)
void super_onRestoreInstanceState(Bundle savedInstanceState)
void super_onWindowAttributesChanged(LayoutParams params)
boolean onMenuOpened(int featureId, Menu menu)
boolean dispatchPopulateAccessibilityEvent(AccessibilityEvent event)
boolean super_onTrackballEvent(MotionEvent event)
boolean onContextItemSelected(MenuItem item)
void insertNativeView(int id, View view, int x, int y, int w, int h)
void onPanelClosed(int featureId, Menu menu)
boolean super_onCreateOptionsMenu(Menu menu)
void resetSoftwareKeyboard()
void onApplyThemeResource(Theme theme, int resid, boolean first)
void onActionModeFinished(ActionMode mode)
void onPostCreate(Bundle savedInstanceState)
boolean super_onOptionsItemSelected(MenuItem item)
View super_onCreatePanelView(int featureId)
boolean super_onKeyUp(int keyCode, KeyEvent event)
void super_onActionModeStarted(ActionMode mode)
void bringChildToBack(int id)
boolean dispatchKeyShortcutEvent(KeyEvent event)
void onActivityResult(int requestCode, int resultCode, Intent data)
void hideSoftwareKeyboard()
View onCreateView(View parent, String name, Context context, AttributeSet attrs)
void onPrepareDialog(int id, Dialog dialog)
void super_onCreateContextMenu(ContextMenu menu, View v, ContextMenuInfo menuInfo)
void super_onContentChanged()
void notifyQtAndroidPluginRunning(boolean running)
boolean onKeyMultiple(int keyCode, int repeatCount, KeyEvent event)
void notifyObjectHide(int viewId, int parentId)
void super_onActionModeFinished(ActionMode mode)
View super_onCreateView(String name, Context context, AttributeSet attrs)
void super_onBackPressed()
void super_onChildTitleChanged(Activity childActivity, CharSequence title)
boolean dispatchTouchEvent(MotionEvent ev)
boolean super_onTouchEvent(MotionEvent event)
boolean onKeyLongPress(int keyCode, KeyEvent event)
void super_onDetachedFromWindow()
void super_onUserInteraction()
boolean super_dispatchTrackballEvent(MotionEvent event)
boolean super_onKeyLongPress(int keyCode, KeyEvent event)
View super_onCreateView(View parent, String name, Context context, AttributeSet attrs)
Object onRetainNonConfigurationInstance()
boolean setKeyboardVisibility(boolean visibility, long timeStamp)
CharSequence onCreateDescription()
View onCreateView(String name, Context context, AttributeSet attrs)
void onPrepareDialog(int id, Dialog dialog, Bundle args)
void onActionModeStarted(ActionMode mode)
boolean onCreateThumbnail(Bitmap outBitmap, Canvas canvas)
Object super_onRetainNonConfigurationInstance()
void bringChildToFront(int id)
boolean super_onContextItemSelected(MenuItem item)
void super_onWindowFocusChanged(boolean hasFocus)
boolean super_onCreatePanelMenu(int featureId, Menu menu)
boolean onCreateOptionsMenu(Menu menu)
boolean super_onCreateThumbnail(Bitmap outBitmap, Canvas canvas)
void onDetachedFromWindow()
void onWindowAttributesChanged(LayoutParams params)
boolean onCreatePanelMenu(int featureId, Menu menu)
void super_onPanelClosed(int featureId, Menu menu)
boolean super_dispatchGenericMotionEvent(MotionEvent event)
static Method dispatchKeyShortcutEvent
static Method onGenericMotionEvent
static Method dispatchTouchEvent
static Method onTrackballEvent
static Method dispatchGenericMotionEvent
static Method onKeyLongPress
static Object m_delegateObject
static Method onKeyMultiple
static Method dispatchTrackballEvent
static Method onTouchEvent
static Method onActivityResult
static Method onRequestPermissionsResult
static Method dispatchKeyEvent
static InvokeResult invokeDelegate(Object... args)
static Method dispatchPopulateAccessibilityEvent
static Object invokeDelegateMethod(Method m, Object... args)
static Method onKeyShortcut
static struct AttrInfo attrs[]
static Q_CONSTINIT QBasicAtomicInt running
EGLOutputLayerEXT EGLint EGLAttrib value
[5]
GLsizei const GLfloat * v
[13]
GLint GLint GLint GLint GLint x
[0]
GLfloat GLfloat GLfloat w
[0]
GLint GLsizei GLsizei height
GLuint GLfloat GLfloat GLfloat GLfloat y1
GLuint GLfloat GLfloat GLfloat x1
GLint GLsizei GLsizei GLenum GLenum GLsizei void * data
GLfloat GLfloat GLfloat GLfloat h
GLfixed GLfixed GLfixed y2
QFileDialog dialog(this)
[1]
IUIAutomationTreeWalker __RPC__deref_out_opt IUIAutomationElement ** parent