mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Accessibility: Add Android support
This commit is contained in:
parent
30654fb8ec
commit
8f03215a9e
5 changed files with 1308 additions and 198 deletions
|
|
@ -540,18 +540,28 @@ DECLARE_JNI_CLASS (AndroidUri, "android/net/Uri")
|
|||
METHOD (setSystemUiVisibility, "setSystemUiVisibility", "(I)V") \
|
||||
METHOD (findViewById, "findViewById", "(I)Landroid/view/View;") \
|
||||
METHOD (getRootView, "getRootView", "()Landroid/view/View;") \
|
||||
METHOD (addOnLayoutChangeListener, "addOnLayoutChangeListener", "(Landroid/view/View$OnLayoutChangeListener;)V")
|
||||
METHOD (addOnLayoutChangeListener, "addOnLayoutChangeListener", "(Landroid/view/View$OnLayoutChangeListener;)V") \
|
||||
METHOD (announceForAccessibility, "announceForAccessibility", "(Ljava/lang/CharSequence;)V") \
|
||||
|
||||
DECLARE_JNI_CLASS (AndroidView, "android/view/View")
|
||||
#undef JNI_CLASS_MEMBERS
|
||||
|
||||
#define JNI_CLASS_MEMBERS(METHOD, STATICMETHOD, FIELD, STATICFIELD, CALLBACK) \
|
||||
METHOD (addView, "addView", "(Landroid/view/View;)V") \
|
||||
METHOD (removeView, "removeView", "(Landroid/view/View;)V")
|
||||
METHOD (addView, "addView", "(Landroid/view/View;)V") \
|
||||
METHOD (removeView, "removeView", "(Landroid/view/View;)V") \
|
||||
METHOD (requestSendAccessibilityEvent, "requestSendAccessibilityEvent", "(Landroid/view/View;Landroid/view/accessibility/AccessibilityEvent;)Z") \
|
||||
|
||||
DECLARE_JNI_CLASS (AndroidViewGroup, "android/view/ViewGroup")
|
||||
#undef JNI_CLASS_MEMBERS
|
||||
|
||||
#define JNI_CLASS_MEMBERS(METHOD, STATICMETHOD, FIELD, STATICFIELD, CALLBACK) \
|
||||
METHOD (getDecorView, "getDecorView", "()Landroid/view/View;") \
|
||||
METHOD (setFlags, "setFlags", "(II)V") \
|
||||
METHOD (clearFlags, "clearFlags", "(I)V")
|
||||
|
||||
DECLARE_JNI_CLASS (AndroidWindow, "android/view/Window")
|
||||
#undef JNI_CLASS_MEMBERS
|
||||
|
||||
#define JNI_CLASS_MEMBERS(METHOD, STATICMETHOD, FIELD, STATICFIELD, CALLBACK) \
|
||||
METHOD (getDefaultDisplay, "getDefaultDisplay", "()Landroid/view/Display;")
|
||||
|
||||
|
|
@ -650,7 +660,8 @@ DECLARE_JNI_CLASS (JavaHashMap, "java/util/HashMap")
|
|||
#define JNI_CLASS_MEMBERS(METHOD, STATICMETHOD, FIELD, STATICFIELD, CALLBACK) \
|
||||
STATICMETHOD (parseInt, "parseInt", "(Ljava/lang/String;I)I") \
|
||||
STATICMETHOD (valueOf, "valueOf", "(I)Ljava/lang/Integer;") \
|
||||
METHOD (intValue, "intValue", "()I")
|
||||
METHOD (constructor, "<init>", "(I)V") \
|
||||
METHOD (intValue, "intValue", "()I")
|
||||
|
||||
DECLARE_JNI_CLASS (JavaInteger, "java/lang/Integer")
|
||||
#undef JNI_CLASS_MEMBERS
|
||||
|
|
|
|||
|
|
@ -252,7 +252,7 @@ namespace juce
|
|||
#include "native/juce_MultiTouchMapper.h"
|
||||
#endif
|
||||
|
||||
#if JUCE_WINDOWS
|
||||
#if JUCE_ANDROID || JUCE_WINDOWS
|
||||
#include "native/accessibility/juce_AccessibilityTextHelpers.h"
|
||||
#endif
|
||||
|
||||
|
|
@ -337,6 +337,7 @@ bool getComponentAsyncLayerBackedViewDisabled (juce::Component& comp)
|
|||
#include "native/juce_linux_FileChooser.cpp"
|
||||
|
||||
#elif JUCE_ANDROID
|
||||
#include "native/accessibility/juce_android_Accessibility.cpp"
|
||||
#include "native/juce_android_Windowing.cpp"
|
||||
#include "native/juce_common_MimeTypes.cpp"
|
||||
#include "native/juce_android_FileChooser.cpp"
|
||||
|
|
|
|||
|
|
@ -0,0 +1,867 @@
|
|||
/*
|
||||
==============================================================================
|
||||
|
||||
This file is part of the JUCE library.
|
||||
Copyright (c) 2020 - Raw Material Software Limited
|
||||
|
||||
JUCE is an open source library subject to commercial or open-source
|
||||
licensing.
|
||||
|
||||
By using JUCE, you agree to the terms of both the JUCE 6 End-User License
|
||||
Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020).
|
||||
|
||||
End User License Agreement: www.juce.com/juce-6-licence
|
||||
Privacy Policy: www.juce.com/juce-privacy-policy
|
||||
|
||||
Or: You may also use this code under the terms of the GPL v3 (see
|
||||
www.gnu.org/licenses).
|
||||
|
||||
JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER
|
||||
EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE
|
||||
DISCLAIMED.
|
||||
|
||||
==============================================================================
|
||||
*/
|
||||
|
||||
namespace juce
|
||||
{
|
||||
|
||||
#define JUCE_NATIVE_ACCESSIBILITY_INCLUDED 1
|
||||
|
||||
#define JNI_CLASS_MEMBERS(METHOD, STATICMETHOD, FIELD, STATICFIELD, CALLBACK) \
|
||||
METHOD (constructor, "<init>", "()V") \
|
||||
METHOD (setSource, "setSource", "(Landroid/view/View;I)V") \
|
||||
METHOD (addChild, "addChild", "(Landroid/view/View;I)V") \
|
||||
METHOD (setParent, "setParent", "(Landroid/view/View;)V") \
|
||||
METHOD (setVirtualParent, "setParent", "(Landroid/view/View;I)V") \
|
||||
METHOD (setBoundsInScreen, "setBoundsInScreen", "(Landroid/graphics/Rect;)V") \
|
||||
METHOD (setBoundsInParent, "setBoundsInParent", "(Landroid/graphics/Rect;)V") \
|
||||
METHOD (setPackageName, "setPackageName", "(Ljava/lang/CharSequence;)V") \
|
||||
METHOD (setClassName, "setClassName", "(Ljava/lang/CharSequence;)V") \
|
||||
METHOD (setContentDescription, "setContentDescription", "(Ljava/lang/CharSequence;)V") \
|
||||
METHOD (setCheckable, "setCheckable", "(Z)V") \
|
||||
METHOD (setChecked, "setChecked", "(Z)V") \
|
||||
METHOD (setClickable, "setClickable", "(Z)V") \
|
||||
METHOD (setEnabled, "setEnabled", "(Z)V") \
|
||||
METHOD (setFocusable, "setFocusable", "(Z)V") \
|
||||
METHOD (setFocused, "setFocused", "(Z)V") \
|
||||
METHOD (setPassword, "setPassword", "(Z)V") \
|
||||
METHOD (setSelected, "setSelected", "(Z)V") \
|
||||
METHOD (setVisibleToUser, "setVisibleToUser", "(Z)V") \
|
||||
METHOD (setAccessibilityFocused, "setAccessibilityFocused", "(Z)V") \
|
||||
METHOD (setText, "setText", "(Ljava/lang/CharSequence;)V") \
|
||||
METHOD (setMovementGranularities, "setMovementGranularities", "(I)V") \
|
||||
METHOD (addAction, "addAction", "(I)V") \
|
||||
|
||||
DECLARE_JNI_CLASS (AndroidAccessibilityNodeInfo, "android/view/accessibility/AccessibilityNodeInfo")
|
||||
#undef JNI_CLASS_MEMBERS
|
||||
|
||||
#define JNI_CLASS_MEMBERS(METHOD, STATICMETHOD, FIELD, STATICFIELD, CALLBACK) \
|
||||
STATICMETHOD (obtain, "obtain", "(I)Landroid/view/accessibility/AccessibilityEvent;") \
|
||||
METHOD (setPackageName, "setPackageName", "(Ljava/lang/CharSequence;)V") \
|
||||
METHOD (setSource, "setSource", "(Landroid/view/View;I)V") \
|
||||
|
||||
DECLARE_JNI_CLASS (AndroidAccessibilityEvent, "android/view/accessibility/AccessibilityEvent")
|
||||
#undef JNI_CLASS_MEMBERS
|
||||
|
||||
#define JNI_CLASS_MEMBERS(METHOD, STATICMETHOD, FIELD, STATICFIELD, CALLBACK) \
|
||||
METHOD (isEnabled, "isEnabled", "()Z") \
|
||||
|
||||
DECLARE_JNI_CLASS (AndroidAccessibilityManager, "android/view/accessibility/AccessibilityManager")
|
||||
#undef JNI_CLASS_MEMBERS
|
||||
|
||||
namespace
|
||||
{
|
||||
constexpr int HOST_VIEW_ID = -1;
|
||||
|
||||
constexpr int TYPE_VIEW_CLICKED = 0x00000001,
|
||||
TYPE_VIEW_SELECTED = 0x00000004,
|
||||
TYPE_VIEW_ACCESSIBILITY_FOCUSED = 0x00008000,
|
||||
TYPE_VIEW_ACCESSIBILITY_FOCUS_CLEARED = 0x00010000,
|
||||
TYPE_WINDOW_CONTENT_CHANGED = 0x00000800,
|
||||
TYPE_VIEW_TEXT_SELECTION_CHANGED = 0x00002000,
|
||||
TYPE_VIEW_TEXT_CHANGED = 0x00000010;
|
||||
|
||||
constexpr int ACTION_ACCESSIBILITY_FOCUS = 0x00000040,
|
||||
ACTION_CLEAR_ACCESSIBILITY_FOCUS = 0x00000080,
|
||||
ACTION_CLEAR_FOCUS = 0x00000002,
|
||||
ACTION_CLEAR_SELECTION = 0x00000008,
|
||||
ACTION_CLICK = 0x00000010,
|
||||
ACTION_COLLAPSE = 0x00080000,
|
||||
ACTION_EXPAND = 0x00040000,
|
||||
ACTION_FOCUS = 0x00000001,
|
||||
ACTION_NEXT_AT_MOVEMENT_GRANULARITY = 0x00000100,
|
||||
ACTION_PREVIOUS_AT_MOVEMENT_GRANULARITY = 0x00000200,
|
||||
ACTION_SCROLL_BACKWARD = 0x00002000,
|
||||
ACTION_SCROLL_FORWARD = 0x00001000,
|
||||
ACTION_SELECT = 0x00000004,
|
||||
ACTION_SET_SELECTION = 0x00020000,
|
||||
ACTION_SET_TEXT = 0x00200000;
|
||||
|
||||
constexpr int MOVEMENT_GRANULARITY_CHARACTER = 0x00000001,
|
||||
MOVEMENT_GRANULARITY_LINE = 0x00000004,
|
||||
MOVEMENT_GRANULARITY_PAGE = 0x00000010,
|
||||
MOVEMENT_GRANULARITY_PARAGRAPH = 0x00000008,
|
||||
MOVEMENT_GRANULARITY_WORD = 0x00000002,
|
||||
ALL_GRANULARITIES = MOVEMENT_GRANULARITY_CHARACTER
|
||||
| MOVEMENT_GRANULARITY_LINE
|
||||
| MOVEMENT_GRANULARITY_PAGE
|
||||
| MOVEMENT_GRANULARITY_PARAGRAPH
|
||||
| MOVEMENT_GRANULARITY_WORD;
|
||||
|
||||
constexpr int ACCESSIBILITY_LIVE_REGION_POLITE = 0x00000001;
|
||||
}
|
||||
|
||||
static jmethodID nodeInfoSetEditable = nullptr;
|
||||
static jmethodID nodeInfoSetTextSelection = nullptr;
|
||||
static jmethodID nodeInfoSetLiveRegion = nullptr;
|
||||
|
||||
static void loadSDKDependentMethods()
|
||||
{
|
||||
static bool hasChecked = false;
|
||||
|
||||
if (! hasChecked)
|
||||
{
|
||||
hasChecked = true;
|
||||
|
||||
auto* env = getEnv();
|
||||
const auto sdkVersion = getAndroidSDKVersion();
|
||||
|
||||
if (sdkVersion >= 18)
|
||||
{
|
||||
nodeInfoSetEditable = env->GetMethodID (AndroidAccessibilityNodeInfo, "setEditable", "(Z)V");
|
||||
nodeInfoSetTextSelection = env->GetMethodID (AndroidAccessibilityNodeInfo, "setTextSelection", "(II)V");
|
||||
}
|
||||
|
||||
if (sdkVersion >= 19)
|
||||
nodeInfoSetLiveRegion = env->GetMethodID (AndroidAccessibilityNodeInfo, "setLiveRegion", "(I)V");
|
||||
}
|
||||
}
|
||||
|
||||
static constexpr auto getClassName (AccessibilityRole role)
|
||||
{
|
||||
switch (role)
|
||||
{
|
||||
case AccessibilityRole::editableText: return "android.widget.EditText";
|
||||
case AccessibilityRole::toggleButton: return "android.widget.CheckBox";
|
||||
case AccessibilityRole::radioButton: return "android.widget.RadioButton";
|
||||
case AccessibilityRole::image: return "android.widget.ImageView";
|
||||
case AccessibilityRole::popupMenu: return "android.widget.PopupMenu";
|
||||
case AccessibilityRole::comboBox: return "android.widget.Spinner";
|
||||
case AccessibilityRole::tree: return "android.widget.ExpandableListView";
|
||||
case AccessibilityRole::list: return "android.widget.ListView";
|
||||
case AccessibilityRole::table: return "android.widget.TableLayout";
|
||||
case AccessibilityRole::progressBar: return "android.widget.ProgressBar";
|
||||
|
||||
case AccessibilityRole::scrollBar:
|
||||
case AccessibilityRole::slider: return "android.widget.SeekBar";
|
||||
|
||||
case AccessibilityRole::hyperlink:
|
||||
case AccessibilityRole::button: return "android.widget.Button";
|
||||
|
||||
case AccessibilityRole::label:
|
||||
case AccessibilityRole::staticText: return "android.widget.TextView";
|
||||
|
||||
case AccessibilityRole::tooltip:
|
||||
case AccessibilityRole::splashScreen:
|
||||
case AccessibilityRole::dialogWindow: return "android.widget.PopupWindow";
|
||||
|
||||
case AccessibilityRole::column:
|
||||
case AccessibilityRole::row:
|
||||
case AccessibilityRole::cell:
|
||||
case AccessibilityRole::menuItem:
|
||||
case AccessibilityRole::menuBar:
|
||||
case AccessibilityRole::listItem:
|
||||
case AccessibilityRole::treeItem:
|
||||
case AccessibilityRole::window:
|
||||
case AccessibilityRole::tableHeader:
|
||||
case AccessibilityRole::unspecified:
|
||||
case AccessibilityRole::group:
|
||||
case AccessibilityRole::ignored: break;
|
||||
}
|
||||
|
||||
return "android.view.View";
|
||||
}
|
||||
|
||||
static auto getRootView()
|
||||
{
|
||||
LocalRef<jobject> activity (getMainActivity());
|
||||
|
||||
if (activity != nullptr)
|
||||
{
|
||||
auto* env = getEnv();
|
||||
|
||||
LocalRef<jobject> mainWindow (env->CallObjectMethod (activity.get(), AndroidActivity.getWindow));
|
||||
LocalRef<jobject> decorView (env->CallObjectMethod (mainWindow.get(), AndroidWindow.getDecorView));
|
||||
|
||||
return LocalRef<jobject> (env->CallObjectMethod (decorView.get(), AndroidView.getRootView));
|
||||
}
|
||||
|
||||
return LocalRef<jobject>();
|
||||
}
|
||||
|
||||
static jobject getSourceView (const AccessibilityHandler& handler)
|
||||
{
|
||||
if (auto* peer = handler.getComponent().getPeer())
|
||||
return (jobject) peer->getNativeHandle();
|
||||
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
void sendAccessibilityEventImpl (const AccessibilityHandler& handler, int eventType);
|
||||
|
||||
//==============================================================================
|
||||
class AccessibilityNativeHandle
|
||||
{
|
||||
public:
|
||||
static AccessibilityHandler* getAccessibilityHandlerForVirtualViewId (int virtualViewId)
|
||||
{
|
||||
auto iter = virtualViewIdMap.find (virtualViewId);
|
||||
|
||||
if (iter != virtualViewIdMap.end())
|
||||
return iter->second;
|
||||
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
explicit AccessibilityNativeHandle (AccessibilityHandler& h)
|
||||
: accessibilityHandler (h),
|
||||
virtualViewId (getVirtualViewIdForHandler (accessibilityHandler))
|
||||
{
|
||||
loadSDKDependentMethods();
|
||||
|
||||
if (virtualViewId != HOST_VIEW_ID)
|
||||
virtualViewIdMap[virtualViewId] = &accessibilityHandler;
|
||||
}
|
||||
|
||||
~AccessibilityNativeHandle()
|
||||
{
|
||||
if (virtualViewId != HOST_VIEW_ID)
|
||||
virtualViewIdMap.erase (virtualViewId);
|
||||
}
|
||||
|
||||
int getVirtualViewId() const noexcept { return virtualViewId; }
|
||||
|
||||
void populateNodeInfo (jobject info)
|
||||
{
|
||||
const auto sourceView = getSourceView (accessibilityHandler);
|
||||
|
||||
if (sourceView == nullptr)
|
||||
return;
|
||||
|
||||
auto* env = getEnv();
|
||||
|
||||
{
|
||||
for (auto* child : accessibilityHandler.getChildren())
|
||||
env->CallVoidMethod (info, AndroidAccessibilityNodeInfo.addChild,
|
||||
sourceView, child->getNativeImplementation()->getVirtualViewId());
|
||||
|
||||
if (auto* parent = accessibilityHandler.getParent())
|
||||
env->CallVoidMethod (info, AndroidAccessibilityNodeInfo.setVirtualParent,
|
||||
sourceView, parent->getNativeImplementation()->getVirtualViewId());
|
||||
else
|
||||
env->CallVoidMethod (info, AndroidAccessibilityNodeInfo.setParent, sourceView);
|
||||
}
|
||||
|
||||
{
|
||||
const auto scale = Desktop::getInstance().getDisplays().getPrimaryDisplay()->scale;
|
||||
|
||||
const auto screenBounds = accessibilityHandler.getComponent().getScreenBounds() * scale;
|
||||
|
||||
LocalRef<jobject> rect (env->NewObject (AndroidRect, AndroidRect.constructor,
|
||||
screenBounds.getX(), screenBounds.getY(),
|
||||
screenBounds.getRight(), screenBounds.getBottom()));
|
||||
|
||||
env->CallVoidMethod (info, AndroidAccessibilityNodeInfo.setBoundsInScreen, rect.get());
|
||||
|
||||
const auto boundsInParent = accessibilityHandler.getComponent().getBoundsInParent() * scale;
|
||||
|
||||
rect = LocalRef<jobject> (env->NewObject (AndroidRect, AndroidRect.constructor,
|
||||
boundsInParent.getX(), boundsInParent.getY(),
|
||||
boundsInParent.getRight(), boundsInParent.getBottom()));
|
||||
|
||||
env->CallVoidMethod (info, AndroidAccessibilityNodeInfo.setBoundsInParent, rect.get());
|
||||
}
|
||||
|
||||
const auto state = accessibilityHandler.getCurrentState();
|
||||
|
||||
env->CallVoidMethod (info,
|
||||
AndroidAccessibilityNodeInfo.setEnabled,
|
||||
! state.isIgnored());
|
||||
env->CallVoidMethod (info,
|
||||
AndroidAccessibilityNodeInfo.setVisibleToUser,
|
||||
true);
|
||||
env->CallVoidMethod (info,
|
||||
AndroidAccessibilityNodeInfo.setPackageName,
|
||||
env->CallObjectMethod (getAppContext().get(),
|
||||
AndroidContext.getPackageName));
|
||||
env->CallVoidMethod (info,
|
||||
AndroidAccessibilityNodeInfo.setSource,
|
||||
sourceView,
|
||||
virtualViewId);
|
||||
env->CallVoidMethod (info,
|
||||
AndroidAccessibilityNodeInfo.setClassName,
|
||||
javaString (getClassName (accessibilityHandler.getRole())).get());
|
||||
env->CallVoidMethod (info,
|
||||
AndroidAccessibilityNodeInfo.setContentDescription,
|
||||
getDescriptionString().get());
|
||||
|
||||
if (state.isFocusable())
|
||||
{
|
||||
env->CallVoidMethod (info, AndroidAccessibilityNodeInfo.setFocusable, true);
|
||||
|
||||
const auto& component = accessibilityHandler.getComponent();
|
||||
|
||||
if (component.getWantsKeyboardFocus())
|
||||
{
|
||||
const auto hasKeyboardFocus = component.hasKeyboardFocus (false);
|
||||
|
||||
env->CallVoidMethod (info,
|
||||
AndroidAccessibilityNodeInfo.setFocused,
|
||||
hasKeyboardFocus);
|
||||
env->CallVoidMethod (info,
|
||||
AndroidAccessibilityNodeInfo.addAction,
|
||||
hasKeyboardFocus ? ACTION_CLEAR_FOCUS : ACTION_FOCUS);
|
||||
}
|
||||
|
||||
const auto isAccessibleFocused = accessibilityHandler.hasFocus (false);
|
||||
|
||||
env->CallVoidMethod (info,
|
||||
AndroidAccessibilityNodeInfo.setAccessibilityFocused,
|
||||
isAccessibleFocused);
|
||||
|
||||
env->CallVoidMethod (info,
|
||||
AndroidAccessibilityNodeInfo.addAction,
|
||||
isAccessibleFocused ? ACTION_CLEAR_ACCESSIBILITY_FOCUS
|
||||
: ACTION_ACCESSIBILITY_FOCUS);
|
||||
}
|
||||
|
||||
if (state.isCheckable())
|
||||
{
|
||||
env->CallVoidMethod (info,
|
||||
AndroidAccessibilityNodeInfo.setCheckable,
|
||||
true);
|
||||
env->CallVoidMethod (info,
|
||||
AndroidAccessibilityNodeInfo.setChecked,
|
||||
state.isChecked());
|
||||
}
|
||||
|
||||
if (state.isSelectable() || state.isMultiSelectable())
|
||||
{
|
||||
const auto isSelected = state.isSelected();
|
||||
|
||||
env->CallVoidMethod (info,
|
||||
AndroidAccessibilityNodeInfo.setSelected,
|
||||
isSelected);
|
||||
env->CallVoidMethod (info,
|
||||
AndroidAccessibilityNodeInfo.addAction,
|
||||
isSelected ? ACTION_CLEAR_SELECTION : ACTION_SELECT);
|
||||
}
|
||||
|
||||
if (accessibilityHandler.getActions().contains (AccessibilityActionType::press))
|
||||
{
|
||||
env->CallVoidMethod (info,
|
||||
AndroidAccessibilityNodeInfo.setClickable,
|
||||
true);
|
||||
env->CallVoidMethod (info,
|
||||
AndroidAccessibilityNodeInfo.addAction,
|
||||
ACTION_CLICK);
|
||||
}
|
||||
|
||||
if (accessibilityHandler.getActions().contains (AccessibilityActionType::showMenu)
|
||||
&& state.isExpandable())
|
||||
{
|
||||
env->CallVoidMethod (info,
|
||||
AndroidAccessibilityNodeInfo.addAction,
|
||||
state.isExpanded() ? ACTION_COLLAPSE : ACTION_EXPAND);
|
||||
}
|
||||
|
||||
if (auto* textInterface = accessibilityHandler.getTextInterface())
|
||||
{
|
||||
env->CallVoidMethod (info,
|
||||
AndroidAccessibilityNodeInfo.setText,
|
||||
javaString (textInterface->getText ({ 0, textInterface->getTotalNumCharacters() })).get());
|
||||
|
||||
const auto isReadOnly = textInterface->isReadOnly();
|
||||
|
||||
env->CallVoidMethod (info,
|
||||
AndroidAccessibilityNodeInfo.setPassword,
|
||||
textInterface->isDisplayingProtectedText());
|
||||
|
||||
if (nodeInfoSetEditable != nullptr)
|
||||
env->CallVoidMethod (info, nodeInfoSetEditable, ! isReadOnly);
|
||||
|
||||
const auto selection = textInterface->getSelection();
|
||||
|
||||
if (nodeInfoSetTextSelection != nullptr && ! selection.isEmpty())
|
||||
env->CallVoidMethod (info,
|
||||
nodeInfoSetTextSelection,
|
||||
selection.getStart(), selection.getEnd());
|
||||
|
||||
if (nodeInfoSetLiveRegion != nullptr && accessibilityHandler.hasFocus (false))
|
||||
env->CallVoidMethod (info,
|
||||
nodeInfoSetLiveRegion,
|
||||
ACCESSIBILITY_LIVE_REGION_POLITE);
|
||||
|
||||
env->CallVoidMethod (info,
|
||||
AndroidAccessibilityNodeInfo.setMovementGranularities,
|
||||
ALL_GRANULARITIES);
|
||||
|
||||
env->CallVoidMethod (info,
|
||||
AndroidAccessibilityNodeInfo.addAction,
|
||||
ACTION_NEXT_AT_MOVEMENT_GRANULARITY);
|
||||
env->CallVoidMethod (info,
|
||||
AndroidAccessibilityNodeInfo.addAction,
|
||||
ACTION_PREVIOUS_AT_MOVEMENT_GRANULARITY);
|
||||
env->CallVoidMethod (info,
|
||||
AndroidAccessibilityNodeInfo.addAction,
|
||||
ACTION_SET_SELECTION);
|
||||
|
||||
if (! isReadOnly)
|
||||
env->CallVoidMethod (info, AndroidAccessibilityNodeInfo.addAction, ACTION_SET_TEXT);
|
||||
}
|
||||
|
||||
if (auto* valueInterface = accessibilityHandler.getValueInterface())
|
||||
{
|
||||
if (! valueInterface->isReadOnly())
|
||||
{
|
||||
const auto range = valueInterface->getRange();
|
||||
|
||||
if (range.isValid())
|
||||
{
|
||||
env->CallVoidMethod (info,
|
||||
AndroidAccessibilityNodeInfo.addAction,
|
||||
ACTION_SCROLL_FORWARD);
|
||||
env->CallVoidMethod (info,
|
||||
AndroidAccessibilityNodeInfo.addAction,
|
||||
ACTION_SCROLL_BACKWARD);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
bool performAction (int action, jobject arguments)
|
||||
{
|
||||
switch (action)
|
||||
{
|
||||
case ACTION_ACCESSIBILITY_FOCUS:
|
||||
{
|
||||
const WeakReference<Component> safeComponent (&accessibilityHandler.getComponent());
|
||||
|
||||
accessibilityHandler.getActions().invoke (AccessibilityActionType::focus);
|
||||
|
||||
if (safeComponent != nullptr)
|
||||
accessibilityHandler.grabFocus();
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
case ACTION_CLEAR_ACCESSIBILITY_FOCUS:
|
||||
{
|
||||
accessibilityHandler.giveAwayFocus();
|
||||
return true;
|
||||
}
|
||||
|
||||
case ACTION_FOCUS:
|
||||
case ACTION_CLEAR_FOCUS:
|
||||
{
|
||||
auto& component = accessibilityHandler.getComponent();
|
||||
|
||||
if (component.getWantsKeyboardFocus())
|
||||
{
|
||||
const auto hasFocus = component.hasKeyboardFocus (false);
|
||||
|
||||
if (hasFocus && action == ACTION_CLEAR_FOCUS)
|
||||
component.giveAwayKeyboardFocus();
|
||||
else if (! hasFocus && action == ACTION_FOCUS)
|
||||
component.grabKeyboardFocus();
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
break;
|
||||
}
|
||||
|
||||
case ACTION_CLICK:
|
||||
{
|
||||
if (accessibilityHandler.getActions().invoke (AccessibilityActionType::press))
|
||||
{
|
||||
sendAccessibilityEventImpl (accessibilityHandler, TYPE_VIEW_CLICKED);
|
||||
return true;
|
||||
}
|
||||
|
||||
break;
|
||||
}
|
||||
|
||||
case ACTION_SELECT:
|
||||
case ACTION_CLEAR_SELECTION:
|
||||
{
|
||||
const auto state = accessibilityHandler.getCurrentState();
|
||||
|
||||
if (state.isSelectable() || state.isMultiSelectable())
|
||||
{
|
||||
const auto isSelected = state.isSelected();
|
||||
|
||||
if ((isSelected && action == ACTION_CLEAR_SELECTION)
|
||||
|| (! isSelected && action == ACTION_SELECT))
|
||||
{
|
||||
return accessibilityHandler.getActions().invoke (AccessibilityActionType::toggle);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
break;
|
||||
}
|
||||
|
||||
case ACTION_EXPAND:
|
||||
case ACTION_COLLAPSE:
|
||||
{
|
||||
const auto state = accessibilityHandler.getCurrentState();
|
||||
|
||||
if (state.isExpandable())
|
||||
{
|
||||
const auto isExpanded = state.isExpanded();
|
||||
|
||||
if ((isExpanded && action == ACTION_COLLAPSE)
|
||||
|| (! isExpanded && action == ACTION_EXPAND))
|
||||
{
|
||||
return accessibilityHandler.getActions().invoke (AccessibilityActionType::showMenu);
|
||||
}
|
||||
}
|
||||
|
||||
break;
|
||||
}
|
||||
|
||||
case ACTION_NEXT_AT_MOVEMENT_GRANULARITY: return moveCursor (arguments, true);
|
||||
case ACTION_PREVIOUS_AT_MOVEMENT_GRANULARITY: return moveCursor (arguments, false);
|
||||
|
||||
case ACTION_SET_SELECTION:
|
||||
{
|
||||
if (auto* textInterface = accessibilityHandler.getTextInterface())
|
||||
{
|
||||
auto* env = getEnv();
|
||||
|
||||
const auto selection = [&]() -> Range<int>
|
||||
{
|
||||
const auto selectionStartKey = javaString ("ACTION_ARGUMENT_SELECTION_START_INT");
|
||||
const auto selectionEndKey = javaString ("ACTION_ARGUMENT_SELECTION_END_INT");
|
||||
|
||||
const auto hasKey = [&env, &arguments] (const auto& key)
|
||||
{
|
||||
return env->CallBooleanMethod (arguments, AndroidBundle.containsKey, key.get());
|
||||
};
|
||||
|
||||
if (hasKey (selectionStartKey) && hasKey (selectionEndKey))
|
||||
{
|
||||
const auto getKey = [&env, &arguments] (const auto& key)
|
||||
{
|
||||
return env->CallIntMethod (arguments, AndroidBundle.getInt, key.get());
|
||||
};
|
||||
|
||||
return { getKey (selectionStartKey), getKey (selectionEndKey) };
|
||||
}
|
||||
|
||||
return {};
|
||||
}();
|
||||
|
||||
textInterface->setSelection (selection);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
break;
|
||||
}
|
||||
|
||||
case ACTION_SET_TEXT:
|
||||
{
|
||||
if (auto* textInterface = accessibilityHandler.getTextInterface())
|
||||
{
|
||||
if (! textInterface->isReadOnly())
|
||||
{
|
||||
const auto charSequenceKey = javaString ("ACTION_ARGUMENT_SET_TEXT_CHARSEQUENCE");
|
||||
|
||||
auto* env = getEnv();
|
||||
|
||||
const auto text = [&]() -> String
|
||||
{
|
||||
if (env->CallBooleanMethod (arguments, AndroidBundle.containsKey, charSequenceKey.get()))
|
||||
{
|
||||
LocalRef<jobject> charSequence (env->CallObjectMethod (arguments,
|
||||
AndroidBundle.getCharSequence,
|
||||
charSequenceKey.get()));
|
||||
LocalRef<jstring> textStringRef ((jstring) env->CallObjectMethod (charSequence,
|
||||
JavaCharSequence.toString));
|
||||
|
||||
return juceString (textStringRef.get());
|
||||
}
|
||||
|
||||
return {};
|
||||
}();
|
||||
|
||||
textInterface->setText (text);
|
||||
}
|
||||
}
|
||||
|
||||
break;
|
||||
}
|
||||
|
||||
case ACTION_SCROLL_BACKWARD:
|
||||
case ACTION_SCROLL_FORWARD:
|
||||
{
|
||||
if (auto* valueInterface = accessibilityHandler.getValueInterface())
|
||||
{
|
||||
if (! valueInterface->isReadOnly())
|
||||
{
|
||||
const auto range = valueInterface->getRange();
|
||||
|
||||
if (range.isValid())
|
||||
{
|
||||
const auto interval = action == ACTION_SCROLL_BACKWARD ? -range.getInterval()
|
||||
: range.getInterval();
|
||||
valueInterface->setValue (jlimit (range.getMinimumValue(),
|
||||
range.getMaximumValue(),
|
||||
valueInterface->getCurrentValue() + interval));
|
||||
|
||||
// required for Android to announce the new value
|
||||
sendAccessibilityEventImpl (accessibilityHandler, TYPE_VIEW_SELECTED);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
private:
|
||||
static std::unordered_map<int, AccessibilityHandler*> virtualViewIdMap;
|
||||
|
||||
static int getVirtualViewIdForHandler (const AccessibilityHandler& handler)
|
||||
{
|
||||
static int counter = 0;
|
||||
|
||||
if (handler.getComponent().isOnDesktop())
|
||||
return HOST_VIEW_ID;
|
||||
|
||||
return counter++;
|
||||
}
|
||||
|
||||
LocalRef<jstring> getDescriptionString() const
|
||||
{
|
||||
const auto valueString = [this]() -> String
|
||||
{
|
||||
if (auto* textInterface = accessibilityHandler.getTextInterface())
|
||||
return textInterface->getText ({ 0, textInterface->getTotalNumCharacters() });
|
||||
|
||||
if (auto* valueInterface = accessibilityHandler.getValueInterface())
|
||||
return valueInterface->getCurrentValueAsString();
|
||||
|
||||
return {};
|
||||
}();
|
||||
|
||||
StringArray strings (accessibilityHandler.getTitle(),
|
||||
valueString,
|
||||
accessibilityHandler.getDescription(),
|
||||
accessibilityHandler.getHelp());
|
||||
|
||||
strings.removeEmptyStrings();
|
||||
|
||||
return javaString (strings.joinIntoString (","));
|
||||
}
|
||||
|
||||
bool moveCursor (jobject arguments, bool forwards)
|
||||
{
|
||||
if (auto* textInterface = accessibilityHandler.getTextInterface())
|
||||
{
|
||||
const auto granularityKey = javaString ("ACTION_ARGUMENT_MOVEMENT_GRANULARITY_INT");
|
||||
const auto extendSelectionKey = javaString ("ACTION_ARGUMENT_EXTEND_SELECTION_BOOLEAN");
|
||||
|
||||
auto* env = getEnv();
|
||||
|
||||
const auto boundaryType = [&]
|
||||
{
|
||||
const auto granularity = env->CallIntMethod (arguments,
|
||||
AndroidBundle.getInt,
|
||||
granularityKey.get());
|
||||
|
||||
using BoundaryType = AccessibilityTextHelpers::BoundaryType;
|
||||
|
||||
switch (granularity)
|
||||
{
|
||||
case MOVEMENT_GRANULARITY_CHARACTER: return BoundaryType::character;
|
||||
case MOVEMENT_GRANULARITY_WORD: return BoundaryType::word;
|
||||
case MOVEMENT_GRANULARITY_LINE: return BoundaryType::line;
|
||||
case MOVEMENT_GRANULARITY_PARAGRAPH:
|
||||
case MOVEMENT_GRANULARITY_PAGE: return BoundaryType::document;
|
||||
}
|
||||
|
||||
jassertfalse;
|
||||
return BoundaryType::character;
|
||||
}();
|
||||
|
||||
using Direction = AccessibilityTextHelpers::Direction;
|
||||
|
||||
const auto cursorPos = AccessibilityTextHelpers::findTextBoundary (*textInterface,
|
||||
textInterface->getTextInsertionOffset(),
|
||||
boundaryType,
|
||||
forwards ? Direction::forwards
|
||||
: Direction::backwards);
|
||||
|
||||
const auto newSelection = [&]() -> Range<int>
|
||||
{
|
||||
const auto currentSelection = textInterface->getSelection();
|
||||
const auto extendSelection = env->CallBooleanMethod (arguments,
|
||||
AndroidBundle.getBoolean,
|
||||
extendSelectionKey.get());
|
||||
|
||||
if (! extendSelection)
|
||||
return { cursorPos, cursorPos };
|
||||
|
||||
const auto start = currentSelection.getStart();
|
||||
const auto end = currentSelection.getEnd();
|
||||
|
||||
if (forwards)
|
||||
return { start, jmax (start, cursorPos) };
|
||||
|
||||
return { jmin (start, cursorPos), end };
|
||||
}();
|
||||
|
||||
textInterface->setSelection (newSelection);
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
AccessibilityHandler& accessibilityHandler;
|
||||
const int virtualViewId;
|
||||
|
||||
//==============================================================================
|
||||
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (AccessibilityNativeHandle)
|
||||
};
|
||||
|
||||
std::unordered_map<int, AccessibilityHandler*> AccessibilityNativeHandle::virtualViewIdMap;
|
||||
|
||||
class AccessibilityHandler::AccessibilityNativeImpl : public AccessibilityNativeHandle
|
||||
{
|
||||
public:
|
||||
using AccessibilityNativeHandle::AccessibilityNativeHandle;
|
||||
};
|
||||
|
||||
//==============================================================================
|
||||
AccessibilityNativeHandle* AccessibilityHandler::getNativeImplementation() const
|
||||
{
|
||||
return nativeImpl.get();
|
||||
}
|
||||
|
||||
bool areAnyAccessibilityClientsActive()
|
||||
{
|
||||
auto* env = getEnv();
|
||||
|
||||
LocalRef<jobject> accessibilityManager (env->CallObjectMethod (getAppContext().get(), AndroidContext.getSystemService,
|
||||
javaString ("accessibility").get()));
|
||||
|
||||
if (accessibilityManager != nullptr)
|
||||
return env->CallBooleanMethod (accessibilityManager.get(), AndroidAccessibilityManager.isEnabled);
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
void sendAccessibilityEventImpl (const AccessibilityHandler& handler, int eventType)
|
||||
{
|
||||
if (! areAnyAccessibilityClientsActive())
|
||||
return;
|
||||
|
||||
if (const auto sourceView = getSourceView (handler))
|
||||
{
|
||||
auto* env = getEnv();
|
||||
|
||||
LocalRef<jobject> event (env->CallStaticObjectMethod (AndroidAccessibilityEvent,
|
||||
AndroidAccessibilityEvent.obtain,
|
||||
eventType));
|
||||
|
||||
env->CallVoidMethod (event,
|
||||
AndroidAccessibilityEvent.setPackageName,
|
||||
env->CallObjectMethod (getAppContext().get(), AndroidContext.getPackageName));
|
||||
|
||||
env->CallVoidMethod (event,
|
||||
AndroidAccessibilityEvent.setSource,
|
||||
sourceView,
|
||||
handler.getNativeImplementation()->getVirtualViewId());
|
||||
|
||||
env->CallBooleanMethod (sourceView,
|
||||
AndroidViewGroup.requestSendAccessibilityEvent,
|
||||
sourceView,
|
||||
event.get());
|
||||
}
|
||||
}
|
||||
|
||||
void notifyAccessibilityEventInternal (const AccessibilityHandler& handler,
|
||||
InternalAccessibilityEvent eventType)
|
||||
{
|
||||
auto notification = [&handler, eventType]
|
||||
{
|
||||
switch (eventType)
|
||||
{
|
||||
case InternalAccessibilityEvent::focusChanged:
|
||||
return handler.hasFocus (false) ? TYPE_VIEW_ACCESSIBILITY_FOCUSED
|
||||
: TYPE_VIEW_ACCESSIBILITY_FOCUS_CLEARED;
|
||||
|
||||
case InternalAccessibilityEvent::elementCreated:
|
||||
case InternalAccessibilityEvent::elementDestroyed:
|
||||
case InternalAccessibilityEvent::elementMovedOrResized:
|
||||
return handler.getComponent().isOnDesktop() ? 0
|
||||
: TYPE_WINDOW_CONTENT_CHANGED;
|
||||
|
||||
case InternalAccessibilityEvent::windowOpened:
|
||||
case InternalAccessibilityEvent::windowClosed:
|
||||
break;
|
||||
}
|
||||
|
||||
return 0;
|
||||
}();
|
||||
|
||||
if (notification != 0)
|
||||
sendAccessibilityEventImpl (handler, notification);
|
||||
}
|
||||
|
||||
void AccessibilityHandler::notifyAccessibilityEvent (AccessibilityEvent eventType) const
|
||||
{
|
||||
auto notification = [eventType]
|
||||
{
|
||||
switch (eventType)
|
||||
{
|
||||
case AccessibilityEvent::textSelectionChanged: return TYPE_VIEW_TEXT_SELECTION_CHANGED;
|
||||
case AccessibilityEvent::textChanged: return TYPE_VIEW_TEXT_CHANGED;
|
||||
case AccessibilityEvent::structureChanged: return TYPE_WINDOW_CONTENT_CHANGED;
|
||||
|
||||
case AccessibilityEvent::rowSelectionChanged:
|
||||
case AccessibilityEvent::valueChanged:
|
||||
case AccessibilityEvent::titleChanged: break;
|
||||
}
|
||||
|
||||
return 0;
|
||||
}();
|
||||
|
||||
if (notification != 0)
|
||||
sendAccessibilityEventImpl (*this, notification);
|
||||
}
|
||||
|
||||
void AccessibilityHandler::postAnnouncement (const String& announcementString,
|
||||
AnnouncementPriority)
|
||||
{
|
||||
if (! areAnyAccessibilityClientsActive())
|
||||
return;
|
||||
|
||||
const auto rootView = getRootView();
|
||||
|
||||
if (rootView != nullptr)
|
||||
getEnv()->CallVoidMethod (rootView.get(),
|
||||
AndroidView.announceForAccessibility,
|
||||
javaString (announcementString).get());
|
||||
}
|
||||
|
||||
} // namespace juce
|
||||
|
|
@ -40,12 +40,17 @@ import android.view.MotionEvent;
|
|||
import android.view.View;
|
||||
import android.view.ViewGroup;
|
||||
import android.view.ViewTreeObserver;
|
||||
import android.view.accessibility.AccessibilityNodeProvider;
|
||||
import android.view.accessibility.AccessibilityNodeInfo;
|
||||
import android.view.accessibility.AccessibilityManager;
|
||||
import android.view.inputmethod.BaseInputConnection;
|
||||
import android.view.inputmethod.EditorInfo;
|
||||
import android.view.inputmethod.InputConnection;
|
||||
import android.view.inputmethod.InputMethodManager;
|
||||
|
||||
import java.lang.reflect.Method;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
public final class ComponentPeerView extends ViewGroup
|
||||
implements View.OnFocusChangeListener, Application.ActivityLifecycleCallbacks
|
||||
|
|
@ -131,9 +136,9 @@ public final class ComponentPeerView extends ViewGroup
|
|||
return opaque;
|
||||
}
|
||||
|
||||
private boolean opaque;
|
||||
private final boolean opaque;
|
||||
private long host;
|
||||
private Paint paint = new Paint ();
|
||||
private final Paint paint = new Paint ();
|
||||
|
||||
//==============================================================================
|
||||
private native void handleMouseDown (long host, int index, float x, float y, long time);
|
||||
|
|
@ -219,6 +224,36 @@ public final class ComponentPeerView extends ViewGroup
|
|||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean onHoverEvent (MotionEvent event)
|
||||
{
|
||||
if (host == 0 || ! accessibilityManager.isTouchExplorationEnabled ())
|
||||
return false;
|
||||
|
||||
int action = event.getAction ();
|
||||
long time = event.getEventTime ();
|
||||
|
||||
switch (action & MotionEvent.ACTION_MASK) // simulate "mouse" events when touch exploration is enabled
|
||||
{
|
||||
case MotionEvent.ACTION_HOVER_ENTER:
|
||||
handleMouseDown (host, event.getPointerId (0), event.getRawX (), event.getRawY (), time);
|
||||
return true;
|
||||
|
||||
case MotionEvent.ACTION_HOVER_EXIT:
|
||||
handleMouseUp (host, event.getPointerId (0), event.getRawX (), event.getRawY (), time);
|
||||
return true;
|
||||
|
||||
case MotionEvent.ACTION_HOVER_MOVE:
|
||||
handleMouseDrag (host, event.getPointerId (0), event.getRawX (), event.getRawY (), time);
|
||||
return true;
|
||||
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
//==============================================================================
|
||||
private native void handleKeyDown (long host, int keycode, int textchar);
|
||||
private native void handleKeyUp (long host, int keycode, int textchar);
|
||||
|
|
@ -337,7 +372,7 @@ public final class ComponentPeerView extends ViewGroup
|
|||
Rect r = new Rect ();
|
||||
|
||||
View parentView = getRootView ();
|
||||
int diff = 0;
|
||||
int diff;
|
||||
|
||||
if (parentView == null)
|
||||
{
|
||||
|
|
@ -360,18 +395,14 @@ public final class ComponentPeerView extends ViewGroup
|
|||
keyboardShown = true;
|
||||
}
|
||||
|
||||
;
|
||||
|
||||
private boolean keyboardShown;
|
||||
}
|
||||
|
||||
;
|
||||
|
||||
private ComponentPeerView view;
|
||||
private TreeObserver viewTreeObserver = new TreeObserver ();
|
||||
private final ComponentPeerView view;
|
||||
private final TreeObserver viewTreeObserver = new TreeObserver ();
|
||||
}
|
||||
|
||||
private KeyboardDismissListener keyboardDismissListener = new KeyboardDismissListener (this);
|
||||
private final KeyboardDismissListener keyboardDismissListener = new KeyboardDismissListener (this);
|
||||
|
||||
// this is here to make keyboard entry work on a Galaxy Tab2 10.1
|
||||
@Override
|
||||
|
|
@ -515,4 +546,67 @@ public final class ComponentPeerView extends ViewGroup
|
|||
// Ensure that navigation/status bar visibility is correctly restored.
|
||||
handleAppResumed (host);
|
||||
}
|
||||
|
||||
//==============================================================================
|
||||
private native boolean populateAccessibilityNodeInfo (long host, int virtualViewId, AccessibilityNodeInfo info);
|
||||
private native boolean handlePerformAction (long host, int virtualViewId, int action, Bundle arguments);
|
||||
private native Integer getInputFocusViewId (long host);
|
||||
private native Integer getAccessibilityFocusViewId (long host);
|
||||
|
||||
private final class JuceAccessibilityNodeProvider extends AccessibilityNodeProvider
|
||||
{
|
||||
public JuceAccessibilityNodeProvider (ComponentPeerView viewToUse)
|
||||
{
|
||||
view = viewToUse;
|
||||
}
|
||||
|
||||
@Override
|
||||
public AccessibilityNodeInfo createAccessibilityNodeInfo (int virtualViewId)
|
||||
{
|
||||
final AccessibilityNodeInfo nodeInfo = AccessibilityNodeInfo.obtain (view, virtualViewId);
|
||||
|
||||
if (! populateAccessibilityNodeInfo (host, virtualViewId, nodeInfo))
|
||||
{
|
||||
nodeInfo.recycle();
|
||||
return null;
|
||||
}
|
||||
|
||||
return nodeInfo;
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<AccessibilityNodeInfo> findAccessibilityNodeInfosByText (String text, int virtualViewId)
|
||||
{
|
||||
return new ArrayList<>();
|
||||
}
|
||||
|
||||
@Override
|
||||
public AccessibilityNodeInfo findFocus (int focus)
|
||||
{
|
||||
Integer focusViewId = (focus == AccessibilityNodeInfo.FOCUS_INPUT ? getInputFocusViewId (host)
|
||||
: getAccessibilityFocusViewId (host));
|
||||
|
||||
if (focusViewId != null)
|
||||
return createAccessibilityNodeInfo (focusViewId);
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean performAction (int virtualViewId, int action, Bundle arguments)
|
||||
{
|
||||
return handlePerformAction (host, virtualViewId, action, arguments);
|
||||
}
|
||||
|
||||
private final ComponentPeerView view;
|
||||
}
|
||||
|
||||
private final JuceAccessibilityNodeProvider nodeProvider = new JuceAccessibilityNodeProvider (this);
|
||||
private final AccessibilityManager accessibilityManager = (AccessibilityManager) getContext ().getSystemService (Context.ACCESSIBILITY_SERVICE);
|
||||
|
||||
@Override
|
||||
public AccessibilityNodeProvider getAccessibilityNodeProvider ()
|
||||
{
|
||||
return nodeProvider;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -28,161 +28,194 @@ namespace juce
|
|||
// This byte-code is generated from native/java/com/rmsl/juce/ComponentPeerView.java with min sdk version 16
|
||||
// See juce_core/native/java/README.txt on how to generate this byte-code.
|
||||
static const uint8 javaComponentPeerView[] =
|
||||
{31,139,8,8,174,115,161,94,0,3,106,97,118,97,67,111,109,112,111,110,101,110,116,80,101,101,114,86,105,101,119,46,100,101,120,0,
|
||||
165,154,9,120,91,213,149,199,207,189,79,139,45,203,178,44,111,137,45,39,242,26,37,113,108,153,0,113,176,3,89,77,157,56,100,177,
|
||||
146,18,59,52,60,75,207,182,18,249,61,69,146,237,4,232,16,150,38,41,100,90,104,3,221,82,186,165,25,74,51,109,153,161,148,73,75,
|
||||
39,3,101,107,25,26,104,233,164,45,75,232,199,180,64,7,62,160,105,203,116,33,243,191,247,93,217,202,86,218,142,252,253,116,206,
|
||||
59,247,220,253,222,115,175,100,197,141,29,158,200,252,139,40,84,84,16,62,178,99,227,93,78,119,55,171,63,246,210,255,110,45,251,
|
||||
64,100,247,111,158,226,203,231,16,165,136,104,199,198,11,3,164,94,187,102,19,253,154,108,123,59,8,58,136,22,64,158,128,44,135,
|
||||
204,186,137,12,200,242,2,34,13,178,171,136,232,238,25,68,7,32,127,82,69,116,28,156,0,239,128,63,130,83,128,79,35,114,129,66,80,
|
||||
12,154,193,108,48,15,180,131,139,193,21,224,102,240,57,112,4,60,11,126,11,42,166,19,45,6,253,32,3,246,130,187,192,183,192,143,
|
||||
192,187,160,172,26,101,1,3,236,6,247,131,231,65,97,13,81,7,216,5,190,13,94,0,60,72,84,15,86,128,45,32,13,238,4,223,1,79,131,147,
|
||||
160,160,150,104,22,232,4,91,193,110,176,15,124,26,124,22,124,1,220,13,14,131,251,192,17,112,20,60,2,158,0,79,129,31,129,227,
|
||||
224,5,240,11,240,26,120,29,188,13,222,1,127,6,12,227,230,2,30,224,3,245,96,1,88,6,214,128,1,48,12,50,96,23,216,11,238,0,159,3,
|
||||
71,192,131,224,24,56,14,78,128,87,192,91,224,29,224,156,73,20,0,245,160,29,92,2,150,128,203,193,74,176,14,108,1,91,193,13,224,
|
||||
54,240,105,112,8,220,7,254,29,252,24,188,8,222,4,239,2,119,136,200,15,106,65,27,184,12,68,65,12,100,192,237,224,19,224,179,224,
|
||||
243,224,94,240,48,120,22,188,12,222,2,238,58,162,105,96,54,232,0,43,192,26,48,2,210,96,7,184,22,236,1,251,192,103,193,97,240,
|
||||
32,120,28,252,4,188,0,94,3,39,193,41,80,80,79,84,7,34,96,1,232,6,189,32,10,54,131,45,192,0,38,200,130,107,192,63,130,47,130,251,
|
||||
192,99,224,101,240,123,224,105,32,106,0,115,193,37,96,37,216,0,226,96,20,76,128,221,96,63,56,0,190,12,190,14,238,7,15,129,
|
||||
39,192,147,224,77,224,107,196,250,5,213,96,14,232,0,235,128,14,44,240,97,240,121,240,32,248,62,248,41,248,111,240,91,160,53,97,
|
||||
254,64,61,104,7,171,192,58,176,9,232,96,24,36,65,26,92,7,174,7,187,193,71,193,29,224,16,184,23,60,12,126,8,158,1,207,130,159,
|
||||
130,231,155,236,189,235,4,216,206,228,3,37,192,15,74,129,8,6,101,100,239,247,10,80,9,176,141,9,219,145,176,221,8,91,139,106,68,
|
||||
108,0,88,198,132,229,70,88,30,132,233,37,76,7,97,24,9,221,39,116,131,80,21,53,131,89,32,12,16,94,8,97,135,230,130,22,48,15,
|
||||
180,130,54,16,81,49,231,2,48,31,92,8,46,2,29,224,114,176,26,92,1,214,128,181,100,247,33,247,114,40,121,115,165,221,47,166,158,
|
||||
93,74,23,118,209,87,174,236,5,74,223,7,187,71,249,137,151,87,165,237,87,118,159,178,123,212,184,228,244,138,60,127,49,46,7,42,
|
||||
109,93,140,201,65,149,183,78,249,20,169,177,16,109,40,86,227,113,88,249,11,253,62,229,31,86,254,197,106,140,190,83,105,247,125,
|
||||
174,178,47,84,186,40,231,18,165,127,15,122,167,210,143,65,239,82,250,113,232,139,148,254,10,244,75,149,126,18,250,101,185,50,
|
||||
49,169,139,149,94,0,125,169,210,253,121,246,105,121,122,8,250,114,165,135,243,236,23,230,233,93,121,250,242,188,50,123,243,236,
|
||||
81,232,203,148,190,57,207,158,173,156,210,197,24,46,81,122,60,175,156,100,158,191,24,183,21,185,188,176,119,43,253,186,60,159,
|
||||
125,121,250,254,42,123,29,181,168,241,124,159,210,15,192,222,163,244,131,208,87,42,253,27,208,123,149,254,0,244,85,74,63,154,
|
||||
103,127,60,207,126,172,74,204,41,163,171,200,150,63,151,67,28,162,43,149,252,168,148,140,62,166,228,126,37,239,80,242,78,37,63,
|
||||
161,252,63,79,98,175,181,208,231,164,172,161,159,146,216,119,65,58,174,228,75,82,86,211,203,36,214,29,167,219,164,172,161,187,
|
||||
164,108,161,111,75,89,68,223,149,235,175,142,46,38,177,55,106,233,33,18,235,221,69,163,82,250,233,26,200,66,236,120,38,229,60,
|
||||
122,132,196,122,172,147,207,69,202,94,132,221,243,168,236,151,253,92,130,250,146,82,150,146,169,158,175,21,107,71,217,253,216,
|
||||
145,219,213,243,152,148,26,141,147,29,99,38,148,220,33,37,163,93,74,222,64,98,143,113,74,75,89,79,215,147,136,67,51,100,125,
|
||||
101,136,10,223,148,178,157,238,151,178,130,254,141,196,62,108,166,126,37,31,38,17,171,154,164,255,116,68,144,143,72,217,64,79,
|
||||
72,121,17,253,72,142,227,44,153,94,141,18,238,147,227,55,91,62,215,192,190,78,201,245,82,122,169,79,202,50,250,177,146,207,202,
|
||||
241,156,41,253,131,24,201,168,148,97,218,32,101,25,109,86,82,151,50,34,239,73,65,212,180,77,74,151,188,83,5,85,255,130,136,122,
|
||||
25,41,11,105,167,148,30,186,78,165,127,80,202,2,250,7,41,237,113,8,162,103,55,41,121,179,146,31,146,114,26,237,86,114,143,178,
|
||||
239,149,178,138,62,172,228,45,74,222,42,229,116,218,39,101,27,125,70,201,3,82,6,233,30,181,126,190,170,228,97,37,255,89,165,127,
|
||||
77,61,127,93,201,111,168,245,117,175,148,33,250,23,41,155,232,95,165,180,231,43,168,230,75,60,127,75,173,203,7,164,180,231,
|
||||
47,136,40,127,68,202,185,244,152,146,143,75,217,72,63,144,178,156,254,83,202,57,244,148,122,254,161,242,59,166,228,211,42,253,
|
||||
25,213,255,95,144,136,189,1,202,74,121,49,125,90,174,127,31,157,32,17,111,237,245,219,140,40,107,145,136,185,26,13,74,201,233,
|
||||
75,36,226,110,9,125,138,236,51,142,200,142,207,34,46,137,179,98,57,228,199,85,144,174,81,107,184,89,249,137,244,40,210,15,169,
|
||||
116,113,14,148,146,125,142,94,167,242,199,33,159,10,79,249,111,129,62,20,182,207,177,20,228,4,184,33,108,159,87,183,72,59,151,
|
||||
250,137,38,177,47,113,31,12,20,81,202,127,53,108,1,218,236,247,200,179,169,0,79,34,255,171,240,25,16,245,185,202,169,158,123,
|
||||
225,87,128,220,209,76,17,69,231,123,201,244,95,0,47,47,11,208,66,214,53,101,13,93,140,221,49,229,19,129,143,71,91,143,163,106,
|
||||
125,19,163,123,163,183,147,230,184,232,234,106,218,144,241,80,135,86,73,1,109,51,180,156,127,52,91,68,219,253,77,216,231,94,199,
|
||||
118,255,108,200,34,199,246,200,28,90,230,20,254,11,53,55,45,184,218,73,129,50,145,199,135,186,42,48,23,166,191,28,237,61,179,
|
||||
142,240,83,226,252,214,228,152,248,154,237,187,200,64,192,171,250,90,143,185,72,133,66,24,237,1,191,143,6,202,138,101,191,153,
|
||||
252,195,221,163,217,62,251,83,126,49,19,190,73,123,243,164,125,150,180,115,117,35,104,109,182,199,59,234,47,150,243,163,193,
|
||||
46,234,189,184,217,62,143,163,161,98,180,82,220,62,208,195,58,209,238,106,212,236,155,244,91,116,94,191,26,233,231,67,92,16,61,
|
||||
89,14,63,177,238,3,174,64,69,42,84,73,95,161,122,135,152,61,23,90,53,176,31,209,205,81,67,41,92,88,247,23,14,236,247,227,83,
|
||||
150,19,37,124,128,14,146,199,209,225,184,138,102,122,196,51,110,228,212,127,160,4,90,63,37,104,243,103,16,105,67,125,180,9,239,
|
||||
81,249,190,1,43,181,30,43,35,229,23,61,42,115,148,83,195,146,121,212,204,68,28,51,67,14,180,39,42,106,114,122,48,126,78,18,
|
||||
37,186,17,179,2,154,233,215,145,203,235,168,118,126,159,2,205,13,67,109,20,112,15,22,148,209,234,2,151,59,80,21,44,40,146,154,
|
||||
25,185,138,162,46,175,214,161,149,83,128,7,26,27,150,71,40,224,220,238,223,130,222,121,93,171,93,14,103,160,34,32,165,25,137,
|
||||
211,199,29,24,3,63,230,22,229,206,116,216,173,223,79,225,47,20,59,194,39,193,219,224,77,240,51,112,28,83,46,239,150,83,175,93,
|
||||
151,209,223,244,124,230,203,78,23,231,118,37,226,145,65,246,121,194,181,134,155,89,253,141,108,246,46,198,103,237,101,77,187,
|
||||
153,61,223,226,117,143,90,7,125,161,18,185,143,197,250,19,207,247,230,214,77,164,139,234,52,49,155,246,254,58,162,214,101,223,
|
||||
226,18,170,228,242,158,202,23,34,197,39,45,169,200,66,114,176,240,31,166,202,127,168,217,190,135,138,187,115,63,234,240,169,
|
||||
58,196,235,241,102,123,255,7,252,37,147,235,242,25,213,158,13,254,82,89,15,87,235,248,120,179,125,55,52,253,23,138,157,131,59,
|
||||
160,67,230,11,80,248,93,77,149,247,66,179,29,51,124,50,159,125,195,253,101,158,205,5,155,240,124,253,61,250,176,64,245,33,231,
|
||||
255,187,247,240,239,152,236,179,221,142,83,231,104,135,123,214,217,54,95,158,205,161,234,170,152,101,223,151,3,76,68,222,129,8,
|
||||
39,91,106,180,169,29,81,228,205,77,17,55,109,138,184,148,181,16,235,7,55,118,255,166,136,3,233,5,216,5,149,104,15,206,32,86,
|
||||
170,250,43,198,190,113,150,29,131,207,221,254,232,210,0,165,214,47,38,199,186,240,59,226,179,129,38,231,189,229,188,121,230,175,
|
||||
56,117,74,246,123,113,43,57,116,145,167,16,118,81,207,194,89,246,103,151,128,191,111,16,185,80,76,59,227,142,133,12,51,133,
|
||||
241,107,113,139,207,78,34,197,244,23,33,94,123,88,106,221,37,212,156,9,255,198,138,84,209,120,129,135,194,111,152,254,185,104,
|
||||
117,248,53,49,72,118,59,114,159,181,196,103,142,98,133,7,41,162,190,190,89,246,231,166,0,155,172,143,163,62,228,44,97,11,221,
|
||||
133,168,167,16,109,243,240,64,195,5,23,184,201,90,60,141,198,63,233,97,225,183,77,156,25,216,247,188,131,191,126,42,167,155,161,
|
||||
65,212,225,145,237,75,173,69,187,180,64,105,248,121,123,60,68,93,163,179,236,207,58,167,143,135,221,51,97,19,125,114,161,174,
|
||||
212,250,78,140,100,192,31,254,173,125,183,20,175,107,242,230,185,144,156,178,188,189,106,124,173,43,167,83,116,60,191,212,14,
|
||||
212,105,175,171,205,88,87,246,103,82,46,63,139,125,10,121,130,40,168,239,105,120,107,98,116,153,38,71,151,149,48,211,239,69,249,
|
||||
158,66,211,47,206,133,34,247,179,183,159,162,185,236,119,114,116,194,111,245,61,131,157,194,76,236,191,25,136,172,166,95,68,104,
|
||||
143,211,196,30,131,116,185,159,30,47,88,36,78,211,210,240,115,239,237,121,153,237,249,216,123,123,94,10,79,211,47,206,2,79,
|
||||
81,160,116,65,205,28,10,212,53,4,91,17,19,219,113,151,9,84,95,116,164,142,68,41,162,140,175,137,50,66,1,33,89,192,185,220,233,
|
||||
117,222,184,225,209,10,51,84,102,91,42,151,187,188,174,27,135,30,173,204,149,123,220,131,153,60,129,118,220,84,206,232,20,209,
|
||||
55,111,127,201,195,10,22,122,166,209,95,219,131,217,52,116,42,191,61,127,79,75,68,73,225,159,255,237,45,88,164,90,208,244,255,
|
||||
110,193,34,217,2,76,51,115,203,181,38,214,150,136,13,109,74,138,152,34,238,247,25,185,246,184,60,147,75,194,246,119,13,104,35,
|
||||
78,64,55,86,127,181,246,36,5,202,27,150,227,4,116,14,186,112,2,202,211,236,42,186,192,225,101,11,81,178,15,251,46,252,46,248,83,
|
||||
32,208,80,143,243,79,19,231,95,1,206,184,213,14,174,137,115,111,59,15,191,81,204,195,255,3,94,3,175,136,245,94,138,182,137,
|
||||
251,161,87,68,34,62,171,178,105,154,214,16,174,111,153,61,39,47,6,46,12,79,237,13,77,89,151,132,237,123,94,7,119,99,127,153,161,
|
||||
43,225,225,163,192,226,240,31,69,255,236,56,185,50,108,127,55,98,250,219,228,141,174,154,127,18,158,28,177,211,139,79,38,211,
|
||||
169,3,145,195,244,199,176,67,61,108,17,43,195,104,155,145,153,20,65,143,47,146,254,102,100,6,249,29,209,118,63,238,110,13,178,
|
||||
252,92,74,128,155,145,90,242,115,59,173,81,140,239,219,246,247,186,249,175,187,207,120,126,224,140,103,209,167,114,178,207,183,
|
||||
82,180,130,41,155,253,153,201,150,5,74,86,41,89,163,252,155,17,69,197,115,88,61,135,49,155,14,202,221,245,236,243,144,171,185,
|
||||
206,157,155,92,205,117,238,188,180,117,183,252,206,133,75,90,242,236,66,22,203,103,135,170,219,165,210,92,240,227,202,230,86,
|
||||
178,80,73,175,202,235,67,139,236,249,85,231,183,202,19,84,243,39,62,35,137,244,22,213,198,150,188,118,11,230,41,217,170,242,51,
|
||||
117,183,16,178,100,210,86,162,234,178,243,249,39,235,82,247,90,209,214,174,132,153,200,94,74,149,203,172,209,148,101,26,102,
|
||||
118,173,97,164,55,38,140,137,214,173,250,184,78,172,155,120,119,15,177,30,226,61,16,43,137,175,236,165,170,85,198,206,65,75,79,
|
||||
199,151,39,50,163,137,76,166,55,145,201,26,166,145,38,214,75,188,23,174,189,189,164,245,226,173,178,87,55,227,105,43,17,111,
|
||||
211,83,169,182,37,177,108,98,60,145,221,217,73,23,158,110,79,165,146,137,152,158,77,88,102,99,206,167,55,49,100,196,118,198,146,
|
||||
198,50,61,153,28,212,99,219,50,157,52,253,124,185,242,147,98,150,137,182,100,219,150,9,185,35,155,159,52,156,214,83,35,137,
|
||||
88,166,109,153,110,142,235,40,112,198,57,146,172,164,149,238,78,36,179,70,250,252,233,171,245,108,58,177,163,147,102,255,197,
|
||||
244,211,138,154,118,182,235,90,61,97,162,125,85,103,167,172,55,98,72,40,155,76,176,50,109,75,199,204,120,210,232,164,242,124,
|
||||
99,207,210,132,25,23,165,79,149,49,142,153,107,195,244,172,24,55,68,225,213,167,39,172,182,196,112,169,180,217,167,167,137,57,
|
||||
111,92,99,118,91,177,177,204,178,17,221,28,54,114,211,154,223,148,73,215,252,46,77,26,47,79,91,99,169,78,186,248,236,148,104,
|
||||
218,48,214,12,102,140,244,184,145,70,45,151,39,173,65,61,217,171,239,180,198,178,83,213,204,252,203,249,58,169,245,116,135,132,
|
||||
153,26,203,142,26,217,17,43,222,182,84,207,24,61,226,25,19,111,98,252,228,178,104,58,191,255,138,120,34,107,165,123,204,33,
|
||||
171,147,230,156,223,237,172,34,231,189,135,239,106,169,175,214,77,125,88,180,184,187,55,102,141,182,165,71,51,201,182,173,99,49,
|
||||
163,237,172,109,214,120,158,189,212,120,122,207,23,254,189,229,116,82,221,123,101,237,164,250,222,184,158,28,79,108,107,211,
|
||||
77,211,202,202,61,213,182,194,140,37,173,76,194,28,94,150,212,51,114,179,156,237,211,131,113,73,171,244,186,115,164,175,54,70,7,
|
||||
149,131,145,17,43,70,196,148,182,36,22,87,27,150,88,186,207,216,62,102,152,49,44,235,210,252,20,187,188,250,60,83,79,50,105,
|
||||
12,235,201,37,177,152,145,201,172,216,17,51,82,246,100,52,158,195,39,61,60,54,138,206,229,121,149,229,123,33,42,12,219,163,50,
|
||||
101,188,194,234,27,139,141,216,51,151,151,47,144,231,178,102,112,171,220,148,181,121,182,62,35,54,150,70,172,58,79,150,62,4,
|
||||
1,115,88,172,152,41,91,218,24,74,162,28,52,99,220,178,99,87,84,79,15,27,249,173,173,62,135,187,221,52,220,138,163,155,214,174,
|
||||
32,111,254,210,32,182,145,248,198,30,114,110,236,193,11,234,74,114,109,92,217,211,221,189,146,28,144,61,226,93,132,227,141,43,
|
||||
251,145,40,148,222,149,226,77,106,253,72,237,237,71,80,223,216,143,92,253,178,4,214,79,90,191,200,135,183,94,161,34,166,247,11,
|
||||
69,4,246,1,28,7,3,61,20,24,56,123,190,202,6,206,49,92,30,93,78,89,99,36,18,153,212,219,243,244,11,242,244,249,121,250,133,208,
|
||||
139,108,189,59,169,15,103,200,165,203,253,39,140,66,246,234,131,70,146,10,116,117,90,208,116,61,30,63,119,84,33,54,72,165,226,
|
||||
0,89,58,150,205,90,230,218,52,138,52,226,228,26,180,240,56,10,41,3,43,185,98,242,76,32,119,76,134,190,56,57,113,246,232,105,
|
||||
42,138,89,113,99,173,133,72,189,36,43,30,38,163,59,249,228,67,52,173,155,153,33,43,61,74,197,226,228,65,72,207,72,111,20,100,31,
|
||||
64,40,200,26,195,179,35,158,24,26,34,102,144,211,16,225,151,188,67,83,129,54,78,133,88,3,75,236,30,86,8,117,234,108,83,231,
|
||||
24,21,195,44,246,12,186,108,164,51,84,32,30,197,192,147,71,104,202,201,43,150,146,40,62,154,24,53,100,161,239,51,18,195,35,89,
|
||||
42,131,218,171,86,220,26,179,47,134,5,100,202,116,123,101,81,9,84,217,110,236,86,217,92,239,148,161,39,78,110,60,173,215,39,
|
||||
174,204,41,155,168,72,40,150,149,21,241,131,252,120,232,219,137,241,30,237,195,154,76,196,12,242,193,178,193,76,136,193,19,141,
|
||||
150,245,159,25,206,101,151,54,38,50,137,193,68,82,204,161,200,243,126,28,104,214,68,212,218,134,230,5,39,159,165,83,210,64,
|
||||
100,75,37,245,157,221,105,29,157,115,32,245,74,249,190,137,216,8,149,96,32,49,143,24,184,181,250,152,152,96,255,164,97,189,145,
|
||||
65,68,152,180,44,157,92,11,84,108,91,16,57,151,91,19,88,91,147,143,27,82,84,62,249,32,163,234,251,18,241,56,218,164,170,89,
|
||||
109,161,14,153,231,52,67,90,31,206,149,41,13,40,70,149,41,207,122,42,24,209,51,242,124,165,170,145,68,220,232,179,134,178,242,
|
||||
204,232,78,91,163,118,79,225,2,199,168,152,75,199,136,149,201,18,75,144,7,115,185,70,6,135,12,105,137,209,81,42,17,87,182,132,
|
||||
158,92,166,167,50,171,49,194,84,172,12,125,70,114,133,25,159,76,199,99,95,86,79,103,169,80,158,82,209,157,41,131,188,82,221,98,
|
||||
159,88,228,74,32,14,109,51,80,69,166,199,204,100,117,196,98,42,72,100,214,164,116,4,102,100,203,168,145,39,247,54,99,231,50,
|
||||
81,85,213,182,243,92,253,138,115,9,125,35,98,92,156,73,185,67,139,49,95,70,90,212,124,5,142,28,114,36,141,161,44,185,146,134,57,
|
||||
156,29,33,151,106,5,51,201,97,138,57,117,155,198,196,21,114,114,173,100,124,68,190,79,80,169,101,230,46,133,203,210,134,158,
|
||||
197,76,150,77,153,150,27,153,108,218,218,41,166,119,202,168,150,64,94,206,220,26,168,153,50,245,233,227,70,174,211,24,166,172,
|
||||
145,239,47,199,237,244,34,250,178,86,42,5,83,21,246,164,108,199,25,87,3,114,89,38,86,192,4,21,91,249,151,40,242,89,167,197,37,
|
||||
42,180,204,220,130,43,150,234,234,177,100,54,145,18,131,44,31,177,104,10,68,128,147,206,240,232,75,92,99,228,194,132,23,231,133,
|
||||
133,163,74,238,113,84,104,207,147,219,150,248,48,137,44,75,178,89,132,7,103,74,46,56,79,74,79,195,83,110,82,103,74,198,37,
|
||||
150,166,250,180,49,44,166,45,125,254,203,54,5,211,198,168,53,110,216,45,95,99,158,17,83,157,105,25,85,180,140,145,37,95,70,196,
|
||||
159,201,171,46,121,241,44,251,175,139,133,83,149,255,212,99,183,94,174,89,145,45,239,194,36,179,245,230,22,11,77,195,211,57,
|
||||
239,162,84,145,201,197,154,13,137,188,224,81,115,78,179,184,234,232,136,219,25,59,250,200,181,85,156,57,45,234,120,114,143,73,
|
||||
187,77,239,79,36,147,87,88,89,57,147,222,12,214,114,46,2,32,35,158,38,247,44,156,197,26,177,219,133,115,30,201,88,32,83,143,
|
||||
211,50,118,107,122,166,234,82,61,117,100,71,18,56,208,196,123,99,68,201,118,88,69,200,214,80,6,84,49,4,5,99,217,161,14,25,60,
|
||||
217,56,57,199,245,164,152,105,41,214,12,145,67,92,62,169,68,188,231,175,143,66,97,136,90,27,50,6,249,199,207,12,183,158,241,169,
|
||||
94,179,9,98,59,136,239,136,128,118,98,59,233,7,156,145,219,215,223,69,207,224,19,111,203,128,198,31,98,197,123,52,118,148,149,
|
||||
205,212,40,193,91,119,252,126,107,23,43,45,77,116,241,76,109,23,29,225,156,94,102,110,31,191,100,19,191,124,98,30,125,139,179,
|
||||
87,241,120,150,60,138,194,124,247,209,35,182,232,208,134,31,100,183,51,119,11,127,154,58,249,27,108,130,63,252,193,137,189,140,
|
||||
59,61,75,230,117,181,118,117,93,58,160,81,220,115,157,198,140,214,174,67,117,154,246,101,54,151,85,85,68,102,104,252,139,140,
|
||||
179,210,42,39,231,235,106,157,228,100,78,205,229,225,115,15,58,61,46,114,49,23,119,105,115,230,240,241,22,39,159,195,51,45,52,
|
||||
223,174,122,62,127,149,189,38,148,63,136,142,221,18,164,52,196,42,58,166,241,87,216,175,133,253,102,97,167,71,53,241,254,59,
|
||||
141,247,111,129,124,83,99,253,16,63,147,2,121,110,112,8,229,214,32,189,166,28,254,100,59,188,108,139,63,115,246,93,230,174,93,
|
||||
181,106,94,255,170,254,86,186,150,93,45,115,29,208,248,139,236,35,168,227,214,154,121,116,19,231,119,177,109,238,218,61,60,80,
|
||||
203,83,181,188,164,147,143,29,220,204,119,174,164,67,92,187,139,141,32,137,23,239,230,227,181,119,14,108,221,163,209,11,140,247,
|
||||
211,1,59,143,111,79,40,120,39,221,161,57,245,47,177,231,216,35,236,3,168,114,159,230,248,21,187,137,221,195,190,130,242,23,
|
||||
237,233,167,143,51,233,201,31,167,90,126,228,250,218,85,90,225,149,188,87,115,255,156,105,252,97,218,196,23,183,176,178,146,136
|
||||
,141,191,87,43,58,196,248,162,46,205,251,31,172,109,17,99,154,231,99,140,207,99,193,226,203,156,30,167,183,221,89,180,213,229,
|
||||
105,101,101,149,252,218,206,46,151,119,17,171,173,16,246,211,141,188,155,213,250,232,171,26,251,37,26,16,210,216,127,97,146,2,
|
||||
149,220,219,194,71,107,177,84,182,134,103,56,73,200,230,6,39,189,20,153,67,255,164,177,187,197,112,255,64,99,155,221,190,68,
|
||||
144,126,197,216,243,48,124,79,163,253,172,186,117,235,170,29,87,79,223,67,188,150,189,200,166,213,240,25,124,163,131,31,98,85,
|
||||
11,108,67,80,26,2,48,20,242,153,48,4,217,180,234,156,82,67,156,49,15,103,183,133,66,187,118,57,142,86,213,177,151,171,72,115,
|
||||
145,247,182,16,86,11,175,191,97,151,227,240,116,182,55,244,156,120,59,41,222,246,85,51,126,16,60,89,77,142,146,233,37,156,201,
|
||||
191,48,28,79,86,35,121,255,12,188,29,158,225,184,145,83,33,96,127,5,65,48,151,125,111,6,99,39,193,109,51,203,217,193,153,140,
|
||||
125,7,156,0,39,193,222,16,99,15,128,87,192,159,192,109,117,140,29,4,239,128,195,245,240,3,199,26,144,167,145,57,222,1,251,154,
|
||||
24,59,218,228,96,123,231,48,182,127,46,103,119,131,39,231,218,223,221,228,190,19,203,201,220,111,43,197,119,58,185,223,87,138,
|
||||
239,128,114,191,177,116,208,212,239,44,197,119,72,185,223,90,230,190,167,18,191,183,212,252,182,46,190,155,99,33,251,183,69,71,
|
||||
161,187,66,182,93,252,159,154,249,237,239,209,228,255,174,67,118,189,226,247,153,154,242,23,255,83,118,132,236,114,197,255,
|
||||
161,73,229,149,255,223,246,219,109,21,191,5,253,63,31,222,169,74,68,42,0,0,0,0};
|
||||
{31,139,8,8,139,79,248,96,0,3,74,97,118,97,68,101,120,66,121,116,101,67,111,100,101,46,100,101,120,0,165,155,11,124,220,69,181,
|
||||
199,207,204,127,31,201,102,147,108,54,105,146,182,73,179,233,51,109,243,216,52,125,154,0,125,211,180,9,45,77,90,104,130,192,
|
||||
38,249,39,217,118,243,223,237,238,230,5,168,229,161,45,40,80,164,64,161,69,138,60,20,244,34,23,193,203,5,46,162,34,2,22,229,
|
||||
125,43,2,82,47,87,30,23,43,32,104,47,40,189,191,51,255,217,100,211,135,85,111,250,249,238,57,51,115,102,254,243,56,115,102,254,
|
||||
155,166,203,28,242,4,235,230,209,29,101,15,100,92,253,135,105,151,221,117,240,202,238,155,26,239,243,103,77,251,209,43,231,175,
|
||||
56,120,91,195,92,162,24,17,13,109,156,235,39,253,51,84,71,84,42,236,252,133,224,77,7,209,82,200,199,157,68,197,144,175,102,
|
||||
16,93,0,185,55,147,8,69,20,201,38,90,55,157,232,61,200,165,165,68,203,193,233,96,53,88,15,54,2,11,108,5,253,96,8,92,4,182,129,
|
||||
75,193,118,112,39,248,33,248,49,120,2,60,13,126,1,94,0,7,192,107,224,99,48,123,18,209,74,16,2,23,129,189,224,17,240,22,16,101,
|
||||
68,19,64,13,88,1,206,5,23,128,59,192,67,224,69,224,13,16,85,129,243,193,46,176,31,252,5,76,41,39,90,11,190,8,126,8,220,147,49,
|
||||
22,96,130,203,193,93,96,63,248,31,224,156,130,121,0,13,160,3,12,130,155,192,61,224,25,112,16,248,166,18,85,130,101,160,21,116,
|
||||
131,8,184,0,124,1,92,12,118,128,175,129,93,224,38,176,15,220,1,238,2,247,128,239,131,7,193,163,224,199,224,105,240,12,120,30,
|
||||
28,0,175,129,55,193,187,224,16,248,35,248,20,200,105,68,46,224,1,147,64,29,56,13,172,1,103,129,78,16,5,23,130,237,224,90,112,
|
||||
11,248,46,120,24,60,7,126,5,126,7,222,7,89,88,219,66,48,30,84,130,185,160,1,44,7,205,160,21,132,128,5,190,8,174,4,215,131,155,
|
||||
193,67,224,49,240,19,240,52,251,8,248,51,248,12,120,103,160,77,48,31,180,130,243,192,0,248,50,184,26,236,1,119,129,251,193,83,
|
||||
224,117,240,14,248,4,100,84,16,229,129,9,96,6,88,4,26,193,185,160,15,124,1,236,1,183,130,111,129,187,193,195,224,25,240,27,112,
|
||||
8,124,202,109,204,36,154,12,234,192,82,176,22,116,1,11,108,7,215,128,27,192,77,224,78,240,29,240,8,248,57,120,21,188,5,62,6,
|
||||
71,128,123,22,81,62,40,5,11,193,50,208,4,76,144,4,23,130,43,192,78,176,27,236,3,183,129,187,192,125,224,17,240,52,120,30,28,0,
|
||||
175,131,15,128,107,54,252,13,204,6,171,64,59,176,192,118,112,53,248,6,184,7,60,2,126,6,94,6,191,1,239,128,195,192,85,73,148,
|
||||
3,138,64,57,168,0,115,193,50,176,26,132,65,4,244,131,27,193,191,129,71,193,79,192,11,224,32,248,4,120,170,208,15,48,7,52,130,
|
||||
110,144,0,151,128,171,192,55,192,119,193,195,224,231,224,21,240,17,248,4,80,53,214,12,248,64,33,152,8,202,193,108,80,13,230,129,
|
||||
83,193,114,176,1,156,15,226,224,98,112,37,216,9,174,5,55,128,61,224,22,112,27,248,22,112,161,121,132,36,202,2,133,160,136,236,
|
||||
56,53,30,76,0,19,65,9,64,248,32,132,9,66,24,32,108,121,194,54,39,108,103,194,118,37,108,27,130,171,19,220,146,224,94,4,215,32,
|
||||
44,41,97,250,9,83,72,24,62,233,97,80,13,8,130,90,48,7,32,92,18,194,40,205,3,243,193,2,29,55,23,129,207,129,122,208,0,78,1,167,
|
||||
130,211,192,98,176,132,236,184,186,12,172,0,171,192,89,32,4,58,64,39,232,34,123,124,169,31,183,150,223,158,104,143,89,232,180,
|
||||
71,235,156,207,243,32,117,190,87,235,247,34,63,55,173,45,191,158,179,7,117,126,142,206,207,213,101,41,125,156,214,125,122,94,
|
||||
185,253,124,173,63,166,235,22,167,181,201,115,253,228,68,91,231,57,126,86,219,76,79,107,103,166,110,39,79,235,7,160,23,104,253,
|
||||
141,137,246,51,121,206,223,214,237,176,254,190,110,167,74,183,51,78,175,195,97,221,31,94,11,94,228,85,122,77,248,167,81,235,
|
||||
252,172,213,90,207,128,205,26,173,243,115,155,180,94,128,252,102,173,79,133,126,134,214,131,208,215,106,189,1,250,58,173,47,135,
|
||||
190,94,235,77,105,249,173,105,250,57,208,91,181,222,149,150,31,75,211,135,210,244,109,105,109,238,72,203,223,9,189,69,235,187,
|
||||
211,242,119,79,28,213,121,158,207,212,58,207,97,170,157,125,105,246,60,135,27,82,115,130,252,141,90,191,55,205,230,177,52,253,
|
||||
201,18,219,31,235,244,124,158,173,245,103,145,191,73,235,7,210,244,55,161,183,105,253,125,232,237,90,63,12,253,28,173,59,176,
|
||||
9,207,213,186,15,250,231,181,94,156,150,207,126,117,158,214,3,200,63,95,235,193,52,251,134,82,246,109,65,67,100,203,76,193,123,
|
||||
125,26,197,201,150,223,87,82,208,15,180,124,80,203,127,215,242,33,45,31,214,246,79,16,199,135,0,185,132,45,115,5,199,138,58,
|
||||
250,41,177,44,35,183,224,184,97,151,151,233,242,50,148,248,5,251,121,161,186,43,5,176,211,238,87,178,140,30,87,178,148,126,169,
|
||||
100,29,253,183,146,89,244,182,242,243,233,180,18,210,137,200,243,7,226,61,233,162,171,149,28,71,55,67,102,34,114,25,74,214,
|
||||
209,135,196,123,123,134,74,103,233,252,44,68,129,63,170,113,219,233,92,60,247,42,37,11,105,167,78,127,131,231,87,231,251,112,75,
|
||||
187,86,167,119,43,105,208,141,100,239,197,155,180,220,163,164,160,219,180,188,157,120,239,73,218,165,100,5,125,147,120,159,77,
|
||||
85,207,203,71,100,251,141,146,11,233,13,37,39,210,127,17,239,201,74,74,106,249,62,113,44,158,71,63,34,142,21,94,122,86,201,241,
|
||||
116,136,215,90,247,123,60,118,54,203,18,68,199,251,148,156,73,127,82,242,84,21,204,74,177,195,13,181,46,89,116,169,146,197,180,
|
||||
93,167,119,40,185,128,222,85,235,83,165,236,38,161,197,215,136,215,197,174,87,134,124,83,203,110,37,115,169,71,201,241,36,132,
|
||||
45,165,90,191,105,202,62,128,21,233,85,178,154,194,74,46,166,205,74,230,211,22,45,35,74,158,70,125,74,142,167,65,45,47,82,114,
|
||||
62,109,83,50,64,87,40,233,167,175,41,153,77,87,42,233,162,175,107,63,217,165,203,175,83,114,46,93,175,100,38,237,85,210,67,183,
|
||||
104,187,125,74,102,208,173,74,218,235,16,192,12,221,169,229,183,180,252,182,146,147,232,46,45,239,214,249,223,209,126,248,93,
|
||||
45,255,69,203,123,180,159,126,79,201,207,209,189,74,206,163,199,180,252,177,146,147,233,5,37,203,233,69,45,95,210,242,101,93,
|
||||
254,159,58,125,64,203,95,41,153,67,175,40,57,157,126,173,228,108,122,85,201,83,232,117,37,109,255,9,104,255,225,244,65,37,231,
|
||||
208,111,149,180,253,137,237,223,84,178,158,222,83,178,150,62,210,242,99,37,103,209,97,37,39,208,39,74,6,233,83,157,254,139,182,
|
||||
251,171,150,159,233,242,35,122,94,124,130,207,164,34,186,129,88,46,161,31,170,125,41,233,63,148,204,163,28,193,231,142,237,167,
|
||||
179,177,35,174,33,82,94,246,5,37,37,61,69,124,254,20,208,163,196,119,129,241,218,79,237,189,148,58,15,241,186,68,235,16,203,
|
||||
26,244,129,52,73,231,243,121,198,177,155,203,123,33,219,117,121,153,174,63,59,173,254,16,202,45,93,30,32,251,204,228,243,110,
|
||||
159,174,191,3,242,122,93,206,231,252,91,56,8,15,213,218,119,129,195,181,118,94,54,202,11,128,161,203,39,65,175,152,99,219,212,
|
||||
170,124,67,233,119,87,219,119,130,118,225,161,152,143,123,211,46,179,176,150,46,180,194,207,122,160,218,190,83,181,46,201,162,
|
||||
173,8,204,103,98,95,183,46,241,80,235,82,15,109,245,205,129,85,150,220,186,110,46,149,183,120,196,34,225,34,203,199,35,246,171,
|
||||
62,59,244,51,158,212,247,181,201,152,181,152,111,88,141,136,219,231,190,61,95,109,223,1,252,121,117,227,198,31,219,114,112,30,
|
||||
149,27,94,248,76,49,90,230,56,239,17,86,96,26,214,192,43,242,196,177,214,243,149,117,197,59,126,81,241,1,199,76,135,122,238,
|
||||
187,213,246,28,183,110,133,125,204,182,71,169,20,151,137,235,220,119,14,186,22,160,151,30,196,9,3,173,112,127,63,170,230,56,
|
||||
140,153,240,103,163,191,73,228,249,233,28,159,87,221,151,50,144,226,126,255,181,218,62,247,242,93,5,52,89,122,97,151,129,218,173,
|
||||
137,108,106,173,203,65,95,151,194,202,139,25,105,24,205,11,172,68,236,31,181,56,13,22,30,99,61,46,161,235,167,9,250,215,214,
|
||||
107,200,112,204,59,127,2,109,72,96,188,70,33,249,141,115,160,165,236,91,147,217,232,119,53,70,228,117,112,255,29,148,229,216,26,
|
||||
172,163,101,78,182,95,100,184,105,193,249,78,242,231,115,29,126,214,56,236,75,203,87,192,35,59,234,25,21,191,112,168,145,194,
|
||||
31,106,236,251,85,187,63,71,143,115,50,252,53,22,152,137,217,106,247,129,252,92,53,102,161,254,225,126,91,99,191,251,199,124,
|
||||
124,11,203,25,201,95,60,146,31,84,249,82,223,80,87,213,216,254,215,234,203,85,254,192,222,192,207,93,87,99,223,81,91,3,185,232,
|
||||
35,223,132,49,206,114,31,122,61,1,79,206,25,177,59,235,132,118,19,149,93,14,60,148,71,114,46,236,246,179,15,185,253,133,177,
|
||||
64,33,226,225,100,71,22,122,227,66,175,218,119,21,34,85,70,177,224,108,218,149,217,190,43,31,169,82,164,166,170,84,1,218,61,21,
|
||||
107,237,117,76,112,70,209,46,86,16,122,153,163,16,245,242,168,196,225,68,222,86,156,139,30,199,66,199,231,169,204,195,105,62,
|
||||
63,219,246,250,161,245,209,48,157,179,103,28,180,110,156,29,86,160,71,125,246,226,156,157,140,54,99,62,117,110,58,10,104,202,
|
||||
146,185,52,93,240,237,204,10,56,208,243,86,238,147,19,251,45,224,36,110,209,141,167,250,13,203,215,175,123,242,103,242,79,159,
|
||||
210,61,31,227,233,200,40,162,230,12,151,219,95,84,146,145,165,52,43,24,163,86,151,215,88,104,20,144,95,250,167,78,89,190,128,
|
||||
252,206,173,190,4,230,193,235,106,118,57,156,254,113,126,37,173,224,16,93,235,96,79,99,239,230,81,217,189,223,69,21,183,102,59,
|
||||
42,62,2,31,130,247,193,43,128,131,185,225,80,119,242,209,159,109,167,209,63,148,62,250,199,46,231,123,93,33,118,35,127,127,196,
|
||||
247,12,105,84,220,40,102,220,32,170,175,19,178,242,102,49,107,143,32,29,41,240,14,169,125,166,37,224,87,123,214,161,34,21,226,
|
||||
68,202,199,130,77,216,227,28,159,156,42,62,253,186,198,142,137,177,13,38,149,47,243,40,127,78,213,121,59,85,22,92,172,226,66,
|
||||
94,90,217,7,35,101,13,35,101,110,117,43,195,187,171,46,27,112,157,169,35,3,167,237,125,159,25,180,247,76,203,98,63,21,74,245,
|
||||
14,34,23,161,36,71,229,196,130,141,228,16,21,159,140,142,39,47,104,183,197,239,168,109,24,83,142,238,3,255,20,5,237,88,237,247,
|
||||
229,142,236,153,242,96,106,207,20,168,62,165,242,103,232,252,13,190,113,234,249,82,239,189,170,160,253,30,104,249,150,171,190,
|
||||
46,66,235,220,30,238,111,159,25,250,57,117,65,59,238,231,168,122,246,91,98,125,90,94,42,22,47,61,201,216,78,215,99,75,217,175,
|
||||
57,137,253,170,145,185,176,251,209,122,156,126,156,115,156,188,206,180,60,135,126,214,230,160,253,238,238,23,252,118,223,30,
|
||||
148,100,75,131,54,213,34,238,189,191,41,232,166,77,65,151,206,205,132,31,99,37,125,155,130,14,148,103,96,63,142,71,127,112,71,
|
||||
19,121,122,188,188,38,195,65,251,108,61,126,255,91,151,226,134,191,126,29,57,206,172,56,204,190,97,40,255,187,248,132,117,234,
|
||||
86,28,57,162,198,189,184,158,28,33,174,227,197,115,248,108,189,10,117,248,78,233,31,239,167,150,111,162,30,26,170,21,210,177,
|
||||
16,103,110,235,173,121,88,187,18,94,59,156,22,6,113,164,243,98,175,120,50,44,95,54,100,150,235,165,139,143,208,108,193,223,27,
|
||||
84,124,216,114,43,199,157,92,46,71,188,240,177,116,88,190,60,150,78,247,190,129,12,126,131,21,59,43,94,63,153,93,179,109,247,
|
||||
244,201,236,214,218,118,252,66,37,28,234,123,8,158,3,94,15,190,239,240,247,35,153,72,241,92,62,20,180,191,31,241,251,90,58,70,
|
||||
71,184,8,181,252,24,83,165,155,191,59,224,18,203,151,133,57,241,136,216,153,171,105,122,162,226,143,209,96,17,13,100,120,168,
|
||||
226,144,229,91,136,149,169,224,203,189,180,231,58,245,125,14,127,31,144,173,241,160,132,159,247,82,208,254,94,192,47,70,158,39,
|
||||
241,60,212,204,21,139,220,153,120,78,38,250,230,145,254,41,115,230,184,41,186,184,152,6,118,123,68,197,135,150,207,195,81,86,
|
||||
46,148,191,63,146,210,173,192,0,158,225,81,253,139,173,67,191,12,127,94,197,107,246,154,243,179,62,8,218,223,61,140,93,115,123,
|
||||
100,156,199,99,114,225,89,177,245,107,224,45,126,95,197,199,164,35,9,209,145,52,95,206,212,49,43,187,214,246,161,232,217,184,
|
||||
241,12,164,183,186,16,207,180,247,78,20,123,135,235,228,106,31,154,132,226,18,52,212,242,28,172,13,158,93,97,168,217,21,185,194,
|
||||
82,119,19,79,38,123,76,14,101,185,95,186,134,61,230,79,106,118,42,62,104,121,222,15,201,171,60,73,173,46,159,156,30,39,175,50,
|
||||
164,203,253,28,123,3,110,56,121,21,175,158,220,114,173,109,249,179,147,91,158,1,75,203,199,103,180,39,203,159,183,96,226,44,
|
||||
242,151,79,41,153,7,111,91,66,207,144,127,194,188,135,202,137,91,225,54,238,225,54,16,27,33,133,223,185,220,233,117,94,178,225,
|
||||
137,113,86,32,223,206,41,92,238,242,186,46,233,126,162,48,213,238,1,15,86,242,13,244,227,210,2,193,151,251,7,174,57,232,17,
|
||||
25,139,60,197,244,247,142,96,38,117,31,73,239,207,63,211,19,110,169,226,215,255,120,15,154,117,15,166,253,191,123,208,172,122,
|
||||
192,123,211,254,134,144,125,139,227,95,141,150,188,79,249,187,137,132,242,61,169,238,74,215,213,218,223,103,162,143,184,111,
|
||||
184,225,253,19,140,255,37,127,193,148,229,184,111,56,59,92,184,111,168,187,67,140,230,56,248,254,234,70,191,179,113,150,128,
|
||||
191,248,253,83,38,227,182,97,240,109,35,3,55,138,102,135,52,248,150,177,85,86,28,202,150,21,239,129,119,193,219,236,239,121,232,
|
||||
27,127,47,232,229,104,43,43,11,103,21,27,21,21,51,42,171,103,165,197,249,31,213,142,238,13,67,231,62,85,107,223,189,23,74,55,
|
||||
241,140,108,129,69,14,249,23,87,124,202,227,211,239,12,181,246,247,65,124,119,227,91,246,4,249,136,186,187,149,227,105,101,120,
|
||||
207,179,223,22,6,177,67,61,226,20,145,143,217,182,130,83,40,136,17,175,80,246,86,112,50,249,28,173,181,249,184,81,87,170,246,
|
||||
83,37,126,105,5,203,201,39,237,178,42,158,223,15,237,223,113,241,79,234,123,87,254,94,243,112,54,141,126,129,170,127,188,71,165,
|
||||
75,142,74,115,253,2,178,207,252,60,244,78,232,60,38,160,101,134,46,247,235,243,125,130,206,47,211,82,106,2,122,190,102,211,2,
|
||||
251,30,160,243,171,104,190,150,66,197,80,161,255,57,105,244,46,33,181,111,164,238,16,182,238,30,249,14,89,98,118,71,243,89,102,
|
||||
171,180,67,247,193,165,203,92,176,147,58,207,173,101,166,150,169,239,160,115,84,79,72,223,101,120,92,117,186,255,1,149,95,167,
|
||||
253,182,110,164,167,118,253,185,90,206,211,245,132,190,127,177,204,214,207,103,61,119,164,60,87,245,79,106,139,212,248,138,70,
|
||||
250,97,183,237,211,207,11,140,88,218,227,10,104,107,65,246,187,184,168,32,188,187,185,26,194,86,56,121,42,201,83,235,169,112,
|
||||
89,180,47,22,181,76,43,185,206,52,227,27,195,230,96,245,230,208,64,136,196,74,146,43,27,73,52,146,108,156,9,160,174,38,185,186,
|
||||
137,74,87,247,119,154,75,58,59,205,68,34,220,17,142,132,147,195,103,68,187,204,117,241,232,64,184,203,140,83,209,26,115,184,35,
|
||||
26,138,119,45,15,39,250,194,137,68,83,56,145,52,45,20,136,38,146,77,104,173,9,205,52,53,145,209,132,4,62,86,243,71,19,21,54,
|
||||
133,172,174,120,52,220,85,19,138,197,106,150,116,38,195,3,104,185,158,230,142,205,143,197,34,225,206,80,50,28,181,166,166,108,
|
||||
154,194,221,102,231,112,103,196,92,22,138,68,58,66,157,91,18,245,52,254,68,181,210,139,58,163,22,122,150,172,89,198,114,40,153,
|
||||
94,212,19,15,197,122,195,157,137,154,101,33,107,32,132,6,39,29,167,40,26,137,198,87,134,35,73,51,126,226,242,230,80,50,30,30,
|
||||
170,167,153,127,179,124,76,83,197,199,154,174,11,133,45,244,175,232,216,146,245,102,39,10,242,71,10,162,137,154,165,253,86,87,
|
||||
196,172,167,130,244,204,198,165,97,171,139,91,31,109,99,0,75,93,131,197,90,49,96,114,227,19,198,22,52,71,121,186,116,217,204,
|
||||
177,101,236,36,83,215,90,43,163,157,253,137,101,189,33,171,199,76,45,114,122,87,70,76,211,135,52,146,121,122,60,218,31,171,167,
|
||||
249,199,150,180,198,77,115,109,71,194,140,15,152,113,60,229,244,72,180,35,20,105,10,13,71,251,147,163,143,41,251,219,245,234,
|
||||
169,118,172,65,40,221,95,107,198,120,111,115,200,10,245,112,149,57,127,119,21,118,248,70,171,59,122,76,255,79,82,39,181,73,234,
|
||||
169,122,108,189,176,21,235,79,246,153,201,222,104,87,205,210,80,2,141,35,13,191,180,176,188,202,107,167,157,216,126,69,87,56,
|
||||
25,141,219,221,153,117,98,179,99,154,172,58,137,109,179,210,71,102,231,180,166,206,104,95,77,188,47,17,169,217,140,0,80,115,76,
|
||||
216,152,250,55,227,66,61,173,60,105,3,39,136,28,83,199,174,236,162,127,182,157,122,42,63,89,213,122,154,220,212,21,138,12,132,
|
||||
183,212,132,44,43,154,84,49,163,102,133,213,25,137,38,194,86,207,178,72,40,161,130,193,177,54,141,152,216,184,46,47,63,78,121,
|
||||
179,217,215,161,13,76,152,148,30,199,164,37,220,99,133,146,253,113,147,55,12,199,224,154,8,246,86,13,118,88,188,197,220,218,
|
||||
111,90,157,40,201,75,47,177,31,55,57,45,171,49,18,49,123,66,17,123,25,86,12,117,154,49,123,177,167,30,199,38,222,211,223,135,177,
|
||||
167,89,229,167,91,33,40,246,216,147,54,154,121,70,180,165,191,179,215,246,140,180,122,254,52,147,181,29,155,85,76,42,77,203,
|
||||
107,49,59,251,227,112,136,19,84,105,65,12,180,122,216,35,71,243,226,102,119,4,237,160,27,3,81,59,116,183,134,226,61,102,122,111,
|
||||
39,28,199,220,238,90,61,141,179,203,250,147,225,72,205,146,120,60,52,204,78,80,79,185,105,217,156,67,190,163,50,240,142,219,
|
||||
186,105,221,10,242,166,251,28,137,141,36,55,54,146,115,99,35,126,160,174,38,215,198,213,141,43,87,174,38,7,100,35,127,242,137,
|
||||
182,113,117,27,10,89,225,83,109,163,202,106,106,67,105,83,27,206,188,141,109,168,213,166,90,16,109,100,180,113,61,124,52,177,
|
||||
218,68,206,182,213,172,59,32,112,78,182,113,46,206,71,87,91,147,202,118,178,68,126,59,14,229,246,70,242,183,31,235,5,249,237,
|
||||
199,89,4,143,29,144,166,6,131,193,17,189,54,77,159,147,166,215,165,233,115,211,244,121,105,250,252,52,125,65,154,190,16,122,
|
||||
150,173,175,140,132,122,18,148,61,38,18,82,65,232,56,17,151,92,33,21,138,184,38,203,166,80,135,25,161,140,144,62,215,105,124,168,
|
||||
171,235,248,241,159,50,67,218,121,19,36,58,40,143,79,253,165,253,201,100,212,90,23,199,99,204,46,114,117,68,145,236,131,84,167,
|
||||
33,185,58,213,65,78,238,78,117,94,117,145,19,23,134,80,156,178,58,57,70,69,113,188,46,73,114,98,228,72,166,28,149,104,141,135,
|
||||
172,68,119,52,222,71,217,124,93,192,57,156,80,214,104,200,190,53,160,161,104,63,210,19,59,227,102,40,121,108,252,227,184,76,
|
||||
142,174,112,119,55,9,147,156,38,31,168,20,232,198,105,124,92,211,196,210,225,86,110,53,147,45,212,1,75,206,110,37,188,221,163,
|
||||
199,109,23,101,169,20,135,172,198,46,154,136,125,49,166,181,149,105,133,37,71,23,142,185,173,101,170,82,181,10,227,88,29,189,
|
||||
41,233,91,17,101,35,155,67,16,150,197,140,227,5,137,147,236,113,228,97,77,27,121,121,103,242,208,90,195,125,166,106,116,149,25,
|
||||
238,233,77,82,62,84,117,154,164,119,137,51,155,244,174,94,107,181,96,230,76,75,85,178,119,47,229,66,85,179,140,128,169,38,215,
|
||||
59,154,129,234,110,164,214,135,6,207,78,41,155,40,139,149,104,52,201,237,147,15,137,150,97,56,74,95,11,118,111,184,211,164,28,
|
||||
228,108,176,194,188,212,60,18,245,252,163,111,12,106,156,27,195,35,30,203,117,206,194,26,68,7,91,163,91,208,189,146,145,180,50,
|
||||
138,152,56,92,98,145,208,240,202,120,8,35,118,160,244,108,245,185,137,68,47,229,98,149,224,117,152,205,117,161,126,118,71,223,
|
||||
72,198,122,51,1,199,29,201,89,58,226,185,148,109,231,224,240,90,30,29,196,166,24,73,110,136,81,193,72,66,29,108,171,194,93,93,
|
||||
232,147,126,76,115,20,207,80,117,198,100,196,67,61,169,54,85,6,154,209,109,170,235,36,229,235,132,25,103,255,214,78,144,209,
|
||||
27,74,216,110,87,212,11,7,105,137,118,235,229,139,71,251,236,225,195,4,181,149,147,58,122,163,8,161,34,76,30,172,250,90,21,149,
|
||||
19,100,132,251,250,40,151,223,47,194,161,200,178,80,44,209,140,105,167,108,157,209,98,70,86,88,93,35,229,72,182,36,67,113,248,
|
||||
187,186,126,180,14,199,76,242,42,245,60,251,42,66,25,120,216,198,80,164,31,91,56,140,163,96,139,137,135,37,26,173,68,50,132,
|
||||
227,16,165,137,181,177,16,206,70,26,31,78,180,70,113,54,173,24,138,97,219,42,215,90,97,133,176,78,93,104,59,161,215,140,220,91,
|
||||
204,225,101,220,159,162,45,39,120,75,201,78,21,180,244,242,140,58,35,42,40,101,99,165,205,56,119,239,12,220,23,200,17,49,187,
|
||||
147,228,138,152,86,79,178,151,92,186,171,194,34,135,197,222,224,182,204,193,51,88,201,176,82,17,192,107,165,239,58,87,180,131,
|
||||
67,9,57,162,145,174,94,245,57,72,121,81,43,245,70,179,76,133,18,236,147,209,172,229,102,34,25,143,14,179,227,140,102,106,231,
|
||||
74,171,153,242,174,137,163,89,45,161,1,51,53,95,152,235,164,153,110,175,38,127,108,19,45,201,104,44,134,172,34,132,0,213,143,
|
||||
163,46,142,232,188,5,223,26,164,236,104,250,27,0,229,68,199,132,106,242,70,173,85,81,108,44,21,22,40,51,106,165,28,59,91,169,
|
||||
205,253,145,100,56,198,75,162,146,112,206,12,62,1,84,85,88,180,132,47,48,83,177,14,45,217,75,171,90,114,69,237,5,119,219,242,
|
||||
60,212,235,71,240,78,34,54,57,99,202,177,61,177,80,28,150,42,24,100,199,198,184,183,51,166,130,119,105,44,26,235,143,156,48,92,
|
||||
139,56,185,227,246,59,37,77,142,155,61,236,27,241,19,191,110,82,73,220,236,195,80,237,225,175,181,142,58,171,156,113,21,9,141,
|
||||
132,153,164,156,4,199,204,145,151,61,242,34,173,38,145,61,149,138,210,83,141,246,160,213,238,225,106,105,119,114,85,173,41,229,
|
||||
145,84,140,212,113,223,198,104,92,34,21,10,55,132,211,98,219,196,227,102,243,101,56,132,67,48,97,7,71,229,192,217,137,49,65,
|
||||
209,147,74,70,236,62,157,21,142,68,206,136,38,149,59,120,19,216,48,169,0,133,138,72,141,68,15,24,179,163,217,253,194,85,15,197,
|
||||
240,178,209,100,113,194,238,77,227,232,179,244,72,29,234,120,113,36,123,195,9,114,241,231,212,160,150,181,200,229,195,198,64,
|
||||
75,80,121,34,50,250,147,221,11,85,132,23,3,228,28,80,81,195,173,196,218,110,114,240,91,14,229,242,103,186,115,101,114,70,107,
|
||||
116,67,194,36,223,192,49,103,194,64,56,158,236,15,69,244,185,229,25,24,157,10,49,72,98,136,228,80,16,212,130,57,160,14,204,37,
|
||||
49,76,223,115,72,250,186,116,231,180,85,209,15,28,98,23,180,205,6,253,82,20,255,182,33,224,36,122,220,33,191,44,57,147,158,
|
||||
118,136,43,132,59,231,67,131,190,38,102,85,237,144,23,150,58,233,101,23,209,203,14,99,151,140,15,192,226,247,82,16,218,105,160,
|
||||
143,36,185,43,219,13,121,72,100,95,110,136,119,69,126,245,208,159,13,250,178,144,155,27,68,94,94,184,65,38,80,183,65,100,161,
|
||||
246,171,210,126,186,156,191,73,174,25,172,162,95,73,177,155,159,118,180,252,45,154,204,185,159,222,178,69,131,113,137,120,75,
|
||||
60,32,220,149,242,57,170,151,59,228,160,252,153,24,28,146,7,47,124,99,135,144,78,207,146,170,134,234,134,134,83,219,13,250,146,
|
||||
231,34,67,108,19,243,26,238,44,55,140,159,139,160,40,26,23,156,100,200,39,133,20,121,69,78,41,207,68,79,156,194,105,184,60,
|
||||
114,246,237,78,143,139,92,194,37,93,198,172,89,114,160,210,41,103,201,68,37,45,176,123,176,64,238,150,55,42,197,193,202,77,114,
|
||||
207,216,220,17,197,153,42,222,203,201,189,220,227,43,74,104,0,98,13,29,50,228,13,242,102,53,32,7,50,104,7,207,24,189,105,240,
|
||||
231,46,135,76,94,0,121,149,67,36,33,14,27,44,80,243,22,149,254,106,9,237,208,6,55,217,6,151,216,98,143,33,222,22,238,210,53,
|
||||
107,170,218,214,180,85,211,151,196,133,170,214,67,134,188,82,222,135,5,251,234,196,42,250,157,16,219,121,178,138,63,147,91,74,
|
||||
215,24,25,113,217,100,184,46,151,134,204,234,21,249,185,114,176,20,159,1,214,134,74,233,14,41,31,103,235,210,237,210,95,42,99,
|
||||
165,50,183,94,246,223,126,142,28,94,77,79,74,227,113,113,169,42,148,217,95,145,3,165,215,183,111,222,14,127,144,178,141,30,213,
|
||||
213,114,182,7,74,174,167,239,27,206,139,158,18,87,200,15,197,48,186,120,183,225,184,94,222,41,94,16,207,163,252,148,237,109,
|
||||
116,131,176,77,229,147,84,42,31,250,18,186,148,201,93,114,115,151,126,66,155,228,226,74,116,38,104,227,107,50,178,246,11,121,74,
|
||||
131,225,125,79,204,63,69,8,195,243,3,33,171,68,73,246,105,78,143,211,91,235,204,218,236,242,84,139,252,66,121,97,125,131,203,
|
||||
123,138,40,29,199,249,99,51,229,74,81,154,67,79,25,226,58,204,125,192,16,151,201,160,240,23,74,111,165,236,43,45,51,232,43,162,
|
||||
106,146,147,148,50,123,138,147,14,6,103,209,79,13,241,11,116,145,222,49,196,160,59,39,92,66,151,75,241,85,84,126,220,160,7,69,
|
||||
105,245,230,53,67,231,143,223,78,178,92,92,41,139,3,114,178,180,28,254,253,162,40,91,78,69,70,137,187,72,20,45,46,202,44,90,
|
||||
94,36,139,102,21,57,108,171,50,101,37,97,117,250,136,125,142,156,194,246,162,120,146,173,200,226,210,226,50,146,194,225,217,25,
|
||||
16,254,169,23,111,115,220,94,50,77,60,94,34,196,142,82,33,110,7,59,38,161,88,120,165,216,25,152,185,109,155,227,193,73,179,
|
||||
196,171,147,200,112,81,14,215,16,254,217,168,179,47,32,118,4,158,229,143,183,249,99,91,185,144,187,193,99,229,228,42,154,152,
|
||||
231,135,239,251,237,127,181,48,126,187,28,38,247,79,195,199,126,254,120,147,63,182,77,199,199,94,254,120,112,186,227,18,73,2,
|
||||
176,116,107,253,239,161,0,120,192,66,241,226,116,33,46,155,33,196,190,25,134,184,127,198,56,177,31,250,155,96,71,133,16,123,
|
||||
193,189,224,13,176,115,38,134,8,30,4,251,193,190,89,66,188,8,118,204,22,226,189,74,33,94,173,18,226,201,106,225,184,172,70,56,
|
||||
118,215,192,166,198,41,118,205,133,221,60,41,238,7,7,230,217,223,45,167,255,158,128,101,234,111,106,248,59,232,212,223,213,168,
|
||||
223,181,147,253,183,53,169,223,115,242,223,215,240,247,210,169,191,177,113,209,232,223,217,24,62,187,140,127,15,33,2,246,239,
|
||||
119,166,230,192,38,96,219,240,255,55,19,62,251,247,58,252,127,204,100,192,126,46,255,93,142,161,237,249,255,121,57,2,246,239,
|
||||
23,248,255,131,145,174,171,254,159,154,207,238,43,255,13,208,255,1,98,184,185,187,60,52,0,0,0,0};
|
||||
|
||||
//==============================================================================
|
||||
#if JUCE_PUSH_NOTIFICATIONS && JUCE_MODULE_AVAILABLE_juce_gui_extra
|
||||
|
|
@ -217,14 +250,6 @@ DECLARE_JNI_CLASS (AndroidViewManager, "android/view/ViewManager")
|
|||
DECLARE_JNI_CLASS (AndroidWindowManagerLayoutParams, "android/view/WindowManager$LayoutParams")
|
||||
#undef JNI_CLASS_MEMBERS
|
||||
|
||||
#define JNI_CLASS_MEMBERS(METHOD, STATICMETHOD, FIELD, STATICFIELD, CALLBACK) \
|
||||
METHOD (getDecorView, "getDecorView", "()Landroid/view/View;") \
|
||||
METHOD (setFlags, "setFlags", "(II)V") \
|
||||
METHOD (clearFlags, "clearFlags", "(I)V")
|
||||
|
||||
DECLARE_JNI_CLASS (AndroidWindow, "android/view/Window")
|
||||
#undef JNI_CLASS_MEMBERS
|
||||
|
||||
#define JNI_CLASS_MEMBERS(METHOD, STATICMETHOD, FIELD, STATICFIELD, CALLBACK) \
|
||||
METHOD (getDisplayCutout, "getDisplayCutout", "()Landroid/view/DisplayCutout;")
|
||||
|
||||
|
|
@ -710,6 +735,82 @@ public:
|
|||
setNavBarsHidden (navBarsHidden);
|
||||
}
|
||||
|
||||
//==============================================================================
|
||||
AccessibilityNativeHandle* getNativeHandleForViewId (jint virtualViewId) const
|
||||
{
|
||||
if (auto* handler = (virtualViewId == HOST_VIEW_ID
|
||||
? component.getAccessibilityHandler()
|
||||
: AccessibilityNativeHandle::getAccessibilityHandlerForVirtualViewId (virtualViewId)))
|
||||
{
|
||||
return handler->getNativeImplementation();
|
||||
}
|
||||
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
jboolean populateAccessibilityNodeInfoCallback (jint virtualViewId, jobject info) const
|
||||
{
|
||||
if (auto* handle = getNativeHandleForViewId (virtualViewId))
|
||||
{
|
||||
handle->populateNodeInfo (info);
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
jboolean handlePerformActionCallback (jint virtualViewId, jint action, jobject arguments) const
|
||||
{
|
||||
if (auto* handle = getNativeHandleForViewId (virtualViewId))
|
||||
return handle->performAction (action, arguments);
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
static jobject getFocusViewIdForHandler (const AccessibilityHandler* handler)
|
||||
{
|
||||
if (handler != nullptr)
|
||||
return getEnv()->NewObject (JavaInteger,
|
||||
JavaInteger.constructor,
|
||||
handler->getNativeImplementation()->getVirtualViewId());
|
||||
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
jobject getInputFocusViewIdCallback()
|
||||
{
|
||||
if (auto* comp = dynamic_cast<Component*> (findCurrentTextInputTarget()))
|
||||
return getFocusViewIdForHandler (comp->getAccessibilityHandler());
|
||||
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
jobject getAccessibilityFocusViewIdCallback() const
|
||||
{
|
||||
if (auto* handler = component.getAccessibilityHandler())
|
||||
{
|
||||
if (auto* modal = Component::getCurrentlyModalComponent())
|
||||
{
|
||||
if (! component.isParentOf (modal)
|
||||
&& component.isCurrentlyBlockedByAnotherModalComponent())
|
||||
{
|
||||
if (auto* modalHandler = modal->getAccessibilityHandler())
|
||||
{
|
||||
if (auto* focusChild = modalHandler->getChildFocus())
|
||||
return getFocusViewIdForHandler (focusChild);
|
||||
|
||||
return getFocusViewIdForHandler (modalHandler);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (auto* focusChild = handler->getChildFocus())
|
||||
return getFocusViewIdForHandler (focusChild);
|
||||
}
|
||||
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
//==============================================================================
|
||||
bool isFocused() const override
|
||||
{
|
||||
|
|
@ -870,26 +971,30 @@ public:
|
|||
private:
|
||||
//==============================================================================
|
||||
#define JNI_CLASS_MEMBERS(METHOD, STATICMETHOD, FIELD, STATICFIELD, CALLBACK) \
|
||||
METHOD (create, "<init>", "(Landroid/content/Context;ZJ)V") \
|
||||
METHOD (clear, "clear", "()V") \
|
||||
METHOD (setViewName, "setViewName", "(Ljava/lang/String;)V") \
|
||||
METHOD (setVisible, "setVisible", "(Z)V") \
|
||||
METHOD (isVisible, "isVisible", "()Z") \
|
||||
METHOD (containsPoint, "containsPoint", "(II)Z") \
|
||||
METHOD (showKeyboard, "showKeyboard", "(Ljava/lang/String;)V") \
|
||||
METHOD (setSystemUiVisibilityCompat, "setSystemUiVisibilityCompat", "(I)V") \
|
||||
CALLBACK (handlePaintJni, "handlePaint", "(JLandroid/graphics/Canvas;Landroid/graphics/Paint;)V") \
|
||||
CALLBACK (handleMouseDownJni, "handleMouseDown", "(JIFFJ)V") \
|
||||
CALLBACK (handleMouseDragJni, "handleMouseDrag", "(JIFFJ)V") \
|
||||
CALLBACK (handleMouseUpJni, "handleMouseUp", "(JIFFJ)V") \
|
||||
CALLBACK (handleKeyDownJni, "handleKeyDown", "(JII)V") \
|
||||
CALLBACK (handleKeyUpJni, "handleKeyUp", "(JII)V") \
|
||||
CALLBACK (handleBackButtonJni, "handleBackButton", "(J)V") \
|
||||
CALLBACK (handleKeyboardHiddenJni, "handleKeyboardHidden", "(J)V") \
|
||||
CALLBACK (viewSizeChangedJni, "viewSizeChanged", "(J)V") \
|
||||
CALLBACK (focusChangedJni, "focusChanged", "(JZ)V") \
|
||||
CALLBACK (handleAppPausedJni, "handleAppPaused", "(J)V") \
|
||||
CALLBACK (handleAppResumedJni, "handleAppResumed", "(J)V") \
|
||||
METHOD (create, "<init>", "(Landroid/content/Context;ZJ)V") \
|
||||
METHOD (clear, "clear", "()V") \
|
||||
METHOD (setViewName, "setViewName", "(Ljava/lang/String;)V") \
|
||||
METHOD (setVisible, "setVisible", "(Z)V") \
|
||||
METHOD (isVisible, "isVisible", "()Z") \
|
||||
METHOD (containsPoint, "containsPoint", "(II)Z") \
|
||||
METHOD (showKeyboard, "showKeyboard", "(Ljava/lang/String;)V") \
|
||||
METHOD (setSystemUiVisibilityCompat, "setSystemUiVisibilityCompat", "(I)V") \
|
||||
CALLBACK (handlePaintJni, "handlePaint", "(JLandroid/graphics/Canvas;Landroid/graphics/Paint;)V") \
|
||||
CALLBACK (handleMouseDownJni, "handleMouseDown", "(JIFFJ)V") \
|
||||
CALLBACK (handleMouseDragJni, "handleMouseDrag", "(JIFFJ)V") \
|
||||
CALLBACK (handleMouseUpJni, "handleMouseUp", "(JIFFJ)V") \
|
||||
CALLBACK (handleKeyDownJni, "handleKeyDown", "(JII)V") \
|
||||
CALLBACK (handleKeyUpJni, "handleKeyUp", "(JII)V") \
|
||||
CALLBACK (handleBackButtonJni, "handleBackButton", "(J)V") \
|
||||
CALLBACK (handleKeyboardHiddenJni, "handleKeyboardHidden", "(J)V") \
|
||||
CALLBACK (viewSizeChangedJni, "viewSizeChanged", "(J)V") \
|
||||
CALLBACK (focusChangedJni, "focusChanged", "(JZ)V") \
|
||||
CALLBACK (handleAppPausedJni, "handleAppPaused", "(J)V") \
|
||||
CALLBACK (handleAppResumedJni, "handleAppResumed", "(J)V") \
|
||||
CALLBACK (populateAccessibilityNodeInfoJni, "populateAccessibilityNodeInfo", "(JILandroid/view/accessibility/AccessibilityNodeInfo;)Z") \
|
||||
CALLBACK (handlePerformActionJni, "handlePerformAction", "(JIILandroid/os/Bundle;)Z") \
|
||||
CALLBACK (getInputFocusViewIdJni, "getInputFocusViewId", "(J)Ljava/lang/Integer;") \
|
||||
CALLBACK (getAccessibilityFocusViewIdJni, "getAccessibilityFocusViewId", "(J)Ljava/lang/Integer;") \
|
||||
|
||||
DECLARE_JNI_CLASS_WITH_BYTECODE (ComponentPeerView, "com/rmsl/juce/ComponentPeerView", 16, javaComponentPeerView, sizeof (javaComponentPeerView))
|
||||
#undef JNI_CLASS_MEMBERS
|
||||
|
|
@ -907,6 +1012,38 @@ private:
|
|||
static void JNICALL handleAppPausedJni (JNIEnv*, jobject /*view*/, jlong host) { if (auto* myself = reinterpret_cast<AndroidComponentPeer*> (host)) myself->handleAppPausedCallback(); }
|
||||
static void JNICALL handleAppResumedJni (JNIEnv*, jobject /*view*/, jlong host) { if (auto* myself = reinterpret_cast<AndroidComponentPeer*> (host)) myself->handleAppResumedCallback(); }
|
||||
|
||||
static jboolean JNICALL populateAccessibilityNodeInfoJni (JNIEnv*, jobject /*view*/, jlong host, jint virtualViewId, jobject info)
|
||||
{
|
||||
if (auto* myself = reinterpret_cast<AndroidComponentPeer*> (host))
|
||||
return myself->populateAccessibilityNodeInfoCallback (virtualViewId, info);
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
static jboolean JNICALL handlePerformActionJni (JNIEnv*, jobject /*view*/, jlong host, jint virtualViewId, jint action, jobject arguments)
|
||||
{
|
||||
if (auto* myself = reinterpret_cast<AndroidComponentPeer*> (host))
|
||||
return myself->handlePerformActionCallback (virtualViewId, action, arguments);
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
static jobject JNICALL getInputFocusViewIdJni (JNIEnv*, jobject /*view*/, jlong host)
|
||||
{
|
||||
if (auto* myself = reinterpret_cast<AndroidComponentPeer*> (host))
|
||||
return myself->getInputFocusViewIdCallback();
|
||||
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
static jobject JNICALL getAccessibilityFocusViewIdJni (JNIEnv*, jobject /*view*/, jlong host)
|
||||
{
|
||||
if (auto* myself = reinterpret_cast<AndroidComponentPeer*> (host))
|
||||
return myself->getAccessibilityFocusViewIdCallback();
|
||||
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
//==============================================================================
|
||||
struct ViewWindowInsetsListener : public juce::AndroidInterfaceImplementer
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue