.class public Lio/flutter/view/AccessibilityBridge; .super Landroid/view/accessibility/AccessibilityNodeProvider; .source "AccessibilityBridge.java" # annotations .annotation system Ldalvik/annotation/MemberClasses; value = { Lio/flutter/view/AccessibilityBridge$CustomAccessibilityAction;, Lio/flutter/view/AccessibilityBridge$SemanticsNode;, Lio/flutter/view/AccessibilityBridge$OnAccessibilityChangeListener;, Lio/flutter/view/AccessibilityBridge$AccessibilityFeature;, Lio/flutter/view/AccessibilityBridge$Flag;, Lio/flutter/view/AccessibilityBridge$Action;, Lio/flutter/view/AccessibilityBridge$LocaleStringAttribute;, Lio/flutter/view/AccessibilityBridge$SpellOutStringAttribute;, Lio/flutter/view/AccessibilityBridge$StringAttribute;, Lio/flutter/view/AccessibilityBridge$StringAttributeType;, Lio/flutter/view/AccessibilityBridge$TextDirection; } .end annotation # static fields .field private static final ACTION_SHOW_ON_SCREEN:I = 0x1020036 .field private static final BOLD_TEXT_WEIGHT_ADJUSTMENT:I = 0x12c .field private static FIRST_RESOURCE_ID:I = 0x0 .field private static final FOCUSABLE_FLAGS:I .field private static final MIN_ENGINE_GENERATED_NODE_ID:I = 0x10000 .field private static final ROOT_NODE_ID:I = 0x0 .field private static final SCROLLABLE_ACTIONS:I .field private static final SCROLL_EXTENT_FOR_INFINITY:F = 100000.0f .field private static final SCROLL_POSITION_CAP_FOR_INFINITY:F = 70000.0f .field private static final TAG:Ljava/lang/String; = "AccessibilityBridge" .field static systemAction:I # instance fields .field private final accessibilityChannel:Lio/flutter/embedding/engine/systemchannels/AccessibilityChannel; .field private accessibilityFeatureFlags:I .field private accessibilityFocusedSemanticsNode:Lio/flutter/view/AccessibilityBridge$SemanticsNode; .field private final accessibilityManager:Landroid/view/accessibility/AccessibilityManager; .field private final accessibilityMessageHandler:Lio/flutter/embedding/engine/systemchannels/AccessibilityChannel$AccessibilityMessageHandler; .field private final accessibilityStateChangeListener:Landroid/view/accessibility/AccessibilityManager$AccessibilityStateChangeListener; .field private final accessibilityViewEmbedder:Lio/flutter/view/AccessibilityViewEmbedder; .field private accessibleNavigation:Z .field private final animationScaleObserver:Landroid/database/ContentObserver; .field private final contentResolver:Landroid/content/ContentResolver; .field private final customAccessibilityActions:Ljava/util/Map; .annotation system Ldalvik/annotation/Signature; value = { "Ljava/util/Map<", "Ljava/lang/Integer;", "Lio/flutter/view/AccessibilityBridge$CustomAccessibilityAction;", ">;" } .end annotation .end field .field private embeddedAccessibilityFocusedNodeId:Ljava/lang/Integer; .field private embeddedInputFocusedNodeId:Ljava/lang/Integer; .field private final flutterNavigationStack:Ljava/util/List; .annotation system Ldalvik/annotation/Signature; value = { "Ljava/util/List<", "Ljava/lang/Integer;", ">;" } .end annotation .end field .field private final flutterSemanticsTree:Ljava/util/Map; .annotation system Ldalvik/annotation/Signature; value = { "Ljava/util/Map<", "Ljava/lang/Integer;", "Lio/flutter/view/AccessibilityBridge$SemanticsNode;", ">;" } .end annotation .end field .field private hoveredObject:Lio/flutter/view/AccessibilityBridge$SemanticsNode; .field private inputFocusedSemanticsNode:Lio/flutter/view/AccessibilityBridge$SemanticsNode; .field private isReleased:Z .field private lastInputFocusedSemanticsNode:Lio/flutter/view/AccessibilityBridge$SemanticsNode; .field private lastLeftFrameInset:Ljava/lang/Integer; .field private onAccessibilityChangeListener:Lio/flutter/view/AccessibilityBridge$OnAccessibilityChangeListener; .field private final platformViewsAccessibilityDelegate:Lio/flutter/plugin/platform/PlatformViewsAccessibilityDelegate; .field private previousRouteId:I .field private final rootAccessibilityView:Landroid/view/View; .field private final touchExplorationStateChangeListener:Landroid/view/accessibility/AccessibilityManager$TouchExplorationStateChangeListener; # direct methods .method static constructor ()V .locals 2 .line 89 sget-object v0, Lio/flutter/view/AccessibilityBridge$Action;->SCROLL_RIGHT:Lio/flutter/view/AccessibilityBridge$Action; iget v0, v0, Lio/flutter/view/AccessibilityBridge$Action;->value:I sget-object v1, Lio/flutter/view/AccessibilityBridge$Action;->SCROLL_LEFT:Lio/flutter/view/AccessibilityBridge$Action; iget v1, v1, Lio/flutter/view/AccessibilityBridge$Action;->value:I or-int/2addr v0, v1 sget-object v1, Lio/flutter/view/AccessibilityBridge$Action;->SCROLL_UP:Lio/flutter/view/AccessibilityBridge$Action; iget v1, v1, Lio/flutter/view/AccessibilityBridge$Action;->value:I or-int/2addr v0, v1 sget-object v1, Lio/flutter/view/AccessibilityBridge$Action;->SCROLL_DOWN:Lio/flutter/view/AccessibilityBridge$Action; iget v1, v1, Lio/flutter/view/AccessibilityBridge$Action;->value:I or-int/2addr v0, v1 sput v0, Lio/flutter/view/AccessibilityBridge;->SCROLLABLE_ACTIONS:I .line 95 sget-object v0, Lio/flutter/view/AccessibilityBridge$Flag;->HAS_CHECKED_STATE:Lio/flutter/view/AccessibilityBridge$Flag; iget v0, v0, Lio/flutter/view/AccessibilityBridge$Flag;->value:I sget-object v1, Lio/flutter/view/AccessibilityBridge$Flag;->IS_CHECKED:Lio/flutter/view/AccessibilityBridge$Flag; iget v1, v1, Lio/flutter/view/AccessibilityBridge$Flag;->value:I or-int/2addr v0, v1 sget-object v1, Lio/flutter/view/AccessibilityBridge$Flag;->IS_SELECTED:Lio/flutter/view/AccessibilityBridge$Flag; iget v1, v1, Lio/flutter/view/AccessibilityBridge$Flag;->value:I or-int/2addr v0, v1 sget-object v1, Lio/flutter/view/AccessibilityBridge$Flag;->IS_TEXT_FIELD:Lio/flutter/view/AccessibilityBridge$Flag; iget v1, v1, Lio/flutter/view/AccessibilityBridge$Flag;->value:I or-int/2addr v0, v1 sget-object v1, Lio/flutter/view/AccessibilityBridge$Flag;->IS_FOCUSED:Lio/flutter/view/AccessibilityBridge$Flag; iget v1, v1, Lio/flutter/view/AccessibilityBridge$Flag;->value:I or-int/2addr v0, v1 sget-object v1, Lio/flutter/view/AccessibilityBridge$Flag;->HAS_ENABLED_STATE:Lio/flutter/view/AccessibilityBridge$Flag; iget v1, v1, Lio/flutter/view/AccessibilityBridge$Flag;->value:I or-int/2addr v0, v1 sget-object v1, Lio/flutter/view/AccessibilityBridge$Flag;->IS_ENABLED:Lio/flutter/view/AccessibilityBridge$Flag; iget v1, v1, Lio/flutter/view/AccessibilityBridge$Flag;->value:I or-int/2addr v0, v1 sget-object v1, Lio/flutter/view/AccessibilityBridge$Flag;->IS_IN_MUTUALLY_EXCLUSIVE_GROUP:Lio/flutter/view/AccessibilityBridge$Flag; iget v1, v1, Lio/flutter/view/AccessibilityBridge$Flag;->value:I or-int/2addr v0, v1 sget-object v1, Lio/flutter/view/AccessibilityBridge$Flag;->HAS_TOGGLED_STATE:Lio/flutter/view/AccessibilityBridge$Flag; iget v1, v1, Lio/flutter/view/AccessibilityBridge$Flag;->value:I or-int/2addr v0, v1 sget-object v1, Lio/flutter/view/AccessibilityBridge$Flag;->IS_TOGGLED:Lio/flutter/view/AccessibilityBridge$Flag; iget v1, v1, Lio/flutter/view/AccessibilityBridge$Flag;->value:I or-int/2addr v0, v1 sget-object v1, Lio/flutter/view/AccessibilityBridge$Flag;->IS_FOCUSABLE:Lio/flutter/view/AccessibilityBridge$Flag; iget v1, v1, Lio/flutter/view/AccessibilityBridge$Flag;->value:I or-int/2addr v0, v1 sget-object v1, Lio/flutter/view/AccessibilityBridge$Flag;->IS_SLIDER:Lio/flutter/view/AccessibilityBridge$Flag; iget v1, v1, Lio/flutter/view/AccessibilityBridge$Flag;->value:I or-int/2addr v0, v1 sput v0, Lio/flutter/view/AccessibilityBridge;->FOCUSABLE_FLAGS:I const v0, 0xff00001 sput v0, Lio/flutter/view/AccessibilityBridge;->FIRST_RESOURCE_ID:I .line 2184 sget-object v0, Lio/flutter/view/AccessibilityBridge$Action;->DID_GAIN_ACCESSIBILITY_FOCUS:Lio/flutter/view/AccessibilityBridge$Action; iget v0, v0, Lio/flutter/view/AccessibilityBridge$Action;->value:I sget-object v1, Lio/flutter/view/AccessibilityBridge$Action;->DID_LOSE_ACCESSIBILITY_FOCUS:Lio/flutter/view/AccessibilityBridge$Action; iget v1, v1, Lio/flutter/view/AccessibilityBridge$Action;->value:I and-int/2addr v0, v1 sget-object v1, Lio/flutter/view/AccessibilityBridge$Action;->SHOW_ON_SCREEN:Lio/flutter/view/AccessibilityBridge$Action; iget v1, v1, Lio/flutter/view/AccessibilityBridge$Action;->value:I and-int/2addr v0, v1 sput v0, Lio/flutter/view/AccessibilityBridge;->systemAction:I return-void .end method .method public constructor (Landroid/view/View;Lio/flutter/embedding/engine/systemchannels/AccessibilityChannel;Landroid/view/accessibility/AccessibilityManager;Landroid/content/ContentResolver;Lio/flutter/plugin/platform/PlatformViewsAccessibilityDelegate;)V .locals 7 .line 424 new-instance v5, Lio/flutter/view/AccessibilityViewEmbedder; const/high16 v0, 0x10000 invoke-direct {v5, p1, v0}, Lio/flutter/view/AccessibilityViewEmbedder;->(Landroid/view/View;I)V move-object v0, p0 move-object v1, p1 move-object v2, p2 move-object v3, p3 move-object v4, p4 move-object v6, p5 invoke-direct/range {v0 .. v6}, Lio/flutter/view/AccessibilityBridge;->(Landroid/view/View;Lio/flutter/embedding/engine/systemchannels/AccessibilityChannel;Landroid/view/accessibility/AccessibilityManager;Landroid/content/ContentResolver;Lio/flutter/view/AccessibilityViewEmbedder;Lio/flutter/plugin/platform/PlatformViewsAccessibilityDelegate;)V return-void .end method .method public constructor (Landroid/view/View;Lio/flutter/embedding/engine/systemchannels/AccessibilityChannel;Landroid/view/accessibility/AccessibilityManager;Landroid/content/ContentResolver;Lio/flutter/view/AccessibilityViewEmbedder;Lio/flutter/plugin/platform/PlatformViewsAccessibilityDelegate;)V .locals 4 .line 440 invoke-direct {p0}, Landroid/view/accessibility/AccessibilityNodeProvider;->()V .line 165 new-instance v0, Ljava/util/HashMap; invoke-direct {v0}, Ljava/util/HashMap;->()V iput-object v0, p0, Lio/flutter/view/AccessibilityBridge;->flutterSemanticsTree:Ljava/util/Map; .line 191 new-instance v0, Ljava/util/HashMap; invoke-direct {v0}, Ljava/util/HashMap;->()V iput-object v0, p0, Lio/flutter/view/AccessibilityBridge;->customAccessibilityActions:Ljava/util/Map; const/4 v0, 0x0 iput v0, p0, Lio/flutter/view/AccessibilityBridge;->accessibilityFeatureFlags:I .line 252 new-instance v1, Ljava/util/ArrayList; invoke-direct {v1}, Ljava/util/ArrayList;->()V iput-object v1, p0, Lio/flutter/view/AccessibilityBridge;->flutterNavigationStack:Ljava/util/List; iput v0, p0, Lio/flutter/view/AccessibilityBridge;->previousRouteId:I .line 260 invoke-static {v0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer; move-result-object v1 iput-object v1, p0, Lio/flutter/view/AccessibilityBridge;->lastLeftFrameInset:Ljava/lang/Integer; iput-boolean v0, p0, Lio/flutter/view/AccessibilityBridge;->accessibleNavigation:Z iput-boolean v0, p0, Lio/flutter/view/AccessibilityBridge;->isReleased:Z .line 292 new-instance v1, Lio/flutter/view/AccessibilityBridge$1; invoke-direct {v1, p0}, Lio/flutter/view/AccessibilityBridge$1;->(Lio/flutter/view/AccessibilityBridge;)V iput-object v1, p0, Lio/flutter/view/AccessibilityBridge;->accessibilityMessageHandler:Lio/flutter/embedding/engine/systemchannels/AccessibilityChannel$AccessibilityMessageHandler; .line 356 new-instance v1, Lio/flutter/view/AccessibilityBridge$2; invoke-direct {v1, p0}, Lio/flutter/view/AccessibilityBridge$2;->(Lio/flutter/view/AccessibilityBridge;)V iput-object v1, p0, Lio/flutter/view/AccessibilityBridge;->accessibilityStateChangeListener:Landroid/view/accessibility/AccessibilityManager$AccessibilityStateChangeListener; .line 389 new-instance v2, Lio/flutter/view/AccessibilityBridge$3; new-instance v3, Landroid/os/Handler; invoke-direct {v3}, Landroid/os/Handler;->()V invoke-direct {v2, p0, v3}, Lio/flutter/view/AccessibilityBridge$3;->(Lio/flutter/view/AccessibilityBridge;Landroid/os/Handler;)V iput-object v2, p0, Lio/flutter/view/AccessibilityBridge;->animationScaleObserver:Landroid/database/ContentObserver; iput-object p1, p0, Lio/flutter/view/AccessibilityBridge;->rootAccessibilityView:Landroid/view/View; iput-object p2, p0, Lio/flutter/view/AccessibilityBridge;->accessibilityChannel:Lio/flutter/embedding/engine/systemchannels/AccessibilityChannel; iput-object p3, p0, Lio/flutter/view/AccessibilityBridge;->accessibilityManager:Landroid/view/accessibility/AccessibilityManager; iput-object p4, p0, Lio/flutter/view/AccessibilityBridge;->contentResolver:Landroid/content/ContentResolver; iput-object p5, p0, Lio/flutter/view/AccessibilityBridge;->accessibilityViewEmbedder:Lio/flutter/view/AccessibilityViewEmbedder; iput-object p6, p0, Lio/flutter/view/AccessibilityBridge;->platformViewsAccessibilityDelegate:Lio/flutter/plugin/platform/PlatformViewsAccessibilityDelegate; .line 449 invoke-virtual {p3}, Landroid/view/accessibility/AccessibilityManager;->isEnabled()Z move-result p1 invoke-interface {v1, p1}, Landroid/view/accessibility/AccessibilityManager$AccessibilityStateChangeListener;->onAccessibilityStateChanged(Z)V .line 450 invoke-virtual {p3, v1}, Landroid/view/accessibility/AccessibilityManager;->addAccessibilityStateChangeListener(Landroid/view/accessibility/AccessibilityManager$AccessibilityStateChangeListener;)Z .line 455 new-instance p1, Lio/flutter/view/AccessibilityBridge$4; invoke-direct {p1, p0, p3}, Lio/flutter/view/AccessibilityBridge$4;->(Lio/flutter/view/AccessibilityBridge;Landroid/view/accessibility/AccessibilityManager;)V iput-object p1, p0, Lio/flutter/view/AccessibilityBridge;->touchExplorationStateChangeListener:Landroid/view/accessibility/AccessibilityManager$TouchExplorationStateChangeListener; .line 474 invoke-virtual {p3}, Landroid/view/accessibility/AccessibilityManager;->isTouchExplorationEnabled()Z move-result p2 .line 473 invoke-interface {p1, p2}, Landroid/view/accessibility/AccessibilityManager$TouchExplorationStateChangeListener;->onTouchExplorationStateChanged(Z)V .line 475 invoke-virtual {p3, p1}, Landroid/view/accessibility/AccessibilityManager;->addTouchExplorationStateChangeListener(Landroid/view/accessibility/AccessibilityManager$TouchExplorationStateChangeListener;)Z .line 484 invoke-virtual {v2, v0}, Landroid/database/ContentObserver;->onChange(Z)V const-string p1, "transition_animation_scale" .line 485 invoke-static {p1}, Landroid/provider/Settings$Global;->getUriFor(Ljava/lang/String;)Landroid/net/Uri; move-result-object p1 .line 486 invoke-virtual {p4, p1, v0, v2}, Landroid/content/ContentResolver;->registerContentObserver(Landroid/net/Uri;ZLandroid/database/ContentObserver;)V .line 492 invoke-direct {p0}, Lio/flutter/view/AccessibilityBridge;->setBoldTextFlag()V .line 495 invoke-interface {p6, p0}, Lio/flutter/plugin/platform/PlatformViewsAccessibilityDelegate;->attachAccessibilityBridge(Lio/flutter/view/AccessibilityBridge;)V return-void .end method .method static synthetic access$100(Lio/flutter/view/AccessibilityBridge;)Landroid/view/View; .locals 0 .line 78 iget-object p0, p0, Lio/flutter/view/AccessibilityBridge;->rootAccessibilityView:Landroid/view/View; return-object p0 .end method .method static synthetic access$1000(Lio/flutter/view/AccessibilityBridge;)Landroid/content/ContentResolver; .locals 0 .line 78 iget-object p0, p0, Lio/flutter/view/AccessibilityBridge;->contentResolver:Landroid/content/ContentResolver; return-object p0 .end method .method static synthetic access$1172(Lio/flutter/view/AccessibilityBridge;I)I .locals 1 .line 78 iget v0, p0, Lio/flutter/view/AccessibilityBridge;->accessibilityFeatureFlags:I and-int/2addr p1, v0 iput p1, p0, Lio/flutter/view/AccessibilityBridge;->accessibilityFeatureFlags:I return p1 .end method .method static synthetic access$1176(Lio/flutter/view/AccessibilityBridge;I)I .locals 1 .line 78 iget v0, p0, Lio/flutter/view/AccessibilityBridge;->accessibilityFeatureFlags:I or-int/2addr p1, v0 iput p1, p0, Lio/flutter/view/AccessibilityBridge;->accessibilityFeatureFlags:I return p1 .end method .method static synthetic access$1200(Lio/flutter/view/AccessibilityBridge;)V .locals 0 .line 78 invoke-direct {p0}, Lio/flutter/view/AccessibilityBridge;->sendLatestAccessibilityFlagsToFlutter()V return-void .end method .method static synthetic access$1300(Lio/flutter/view/AccessibilityBridge;)V .locals 0 .line 78 invoke-direct {p0}, Lio/flutter/view/AccessibilityBridge;->onTouchExplorationExit()V return-void .end method .method static synthetic access$200(Lio/flutter/view/AccessibilityBridge;II)Landroid/view/accessibility/AccessibilityEvent; .locals 0 .line 78 invoke-direct {p0, p1, p2}, Lio/flutter/view/AccessibilityBridge;->obtainAccessibilityEvent(II)Landroid/view/accessibility/AccessibilityEvent; move-result-object p0 return-object p0 .end method .method static synthetic access$300(Lio/flutter/view/AccessibilityBridge;Landroid/view/accessibility/AccessibilityEvent;)V .locals 0 .line 78 invoke-direct {p0, p1}, Lio/flutter/view/AccessibilityBridge;->sendAccessibilityEvent(Landroid/view/accessibility/AccessibilityEvent;)V return-void .end method .method static synthetic access$400(Lio/flutter/view/AccessibilityBridge;)Z .locals 0 .line 78 iget-boolean p0, p0, Lio/flutter/view/AccessibilityBridge;->isReleased:Z return p0 .end method .method static synthetic access$500(Lio/flutter/view/AccessibilityBridge;)Lio/flutter/embedding/engine/systemchannels/AccessibilityChannel$AccessibilityMessageHandler; .locals 0 .line 78 iget-object p0, p0, Lio/flutter/view/AccessibilityBridge;->accessibilityMessageHandler:Lio/flutter/embedding/engine/systemchannels/AccessibilityChannel$AccessibilityMessageHandler; return-object p0 .end method .method static synthetic access$600(Lio/flutter/view/AccessibilityBridge;)Lio/flutter/embedding/engine/systemchannels/AccessibilityChannel; .locals 0 .line 78 iget-object p0, p0, Lio/flutter/view/AccessibilityBridge;->accessibilityChannel:Lio/flutter/embedding/engine/systemchannels/AccessibilityChannel; return-object p0 .end method .method static synthetic access$700(Lio/flutter/view/AccessibilityBridge;Z)V .locals 0 .line 78 invoke-direct {p0, p1}, Lio/flutter/view/AccessibilityBridge;->setAccessibleNavigation(Z)V return-void .end method .method static synthetic access$7000(Lio/flutter/view/AccessibilityBridge;I)Lio/flutter/view/AccessibilityBridge$SemanticsNode; .locals 0 .line 78 invoke-direct {p0, p1}, Lio/flutter/view/AccessibilityBridge;->getOrCreateSemanticsNode(I)Lio/flutter/view/AccessibilityBridge$SemanticsNode; move-result-object p0 return-object p0 .end method .method static synthetic access$7100(Lio/flutter/view/AccessibilityBridge;I)Lio/flutter/view/AccessibilityBridge$CustomAccessibilityAction; .locals 0 .line 78 invoke-direct {p0, p1}, Lio/flutter/view/AccessibilityBridge;->getOrCreateAccessibilityAction(I)Lio/flutter/view/AccessibilityBridge$CustomAccessibilityAction; move-result-object p0 return-object p0 .end method .method static synthetic access$7400()I .locals 1 sget v0, Lio/flutter/view/AccessibilityBridge;->SCROLLABLE_ACTIONS:I return v0 .end method .method static synthetic access$7500()I .locals 1 sget v0, Lio/flutter/view/AccessibilityBridge;->FOCUSABLE_FLAGS:I return v0 .end method .method static synthetic access$800(Lio/flutter/view/AccessibilityBridge;)Lio/flutter/view/AccessibilityBridge$OnAccessibilityChangeListener; .locals 0 .line 78 iget-object p0, p0, Lio/flutter/view/AccessibilityBridge;->onAccessibilityChangeListener:Lio/flutter/view/AccessibilityBridge$OnAccessibilityChangeListener; return-object p0 .end method .method static synthetic access$900(Lio/flutter/view/AccessibilityBridge;)Landroid/view/accessibility/AccessibilityManager; .locals 0 .line 78 iget-object p0, p0, Lio/flutter/view/AccessibilityBridge;->accessibilityManager:Landroid/view/accessibility/AccessibilityManager; return-object p0 .end method .method private createTextChangedEvent(ILjava/lang/String;Ljava/lang/String;)Landroid/view/accessibility/AccessibilityEvent; .locals 4 const/16 v0, 0x10 .line 1891 invoke-direct {p0, p1, v0}, Lio/flutter/view/AccessibilityBridge;->obtainAccessibilityEvent(II)Landroid/view/accessibility/AccessibilityEvent; move-result-object p0 .line 1892 invoke-virtual {p0, p2}, Landroid/view/accessibility/AccessibilityEvent;->setBeforeText(Ljava/lang/CharSequence;)V .line 1893 invoke-virtual {p0}, Landroid/view/accessibility/AccessibilityEvent;->getText()Ljava/util/List; move-result-object p1 invoke-interface {p1, p3}, Ljava/util/List;->add(Ljava/lang/Object;)Z const/4 p1, 0x0 .line 1896 :goto_0 invoke-virtual {p2}, Ljava/lang/String;->length()I move-result v0 if-ge p1, v0, :cond_1 invoke-virtual {p3}, Ljava/lang/String;->length()I move-result v0 if-ge p1, v0, :cond_1 .line 1897 invoke-virtual {p2, p1}, Ljava/lang/String;->charAt(I)C move-result v0 invoke-virtual {p3, p1}, Ljava/lang/String;->charAt(I)C move-result v1 if-eq v0, v1, :cond_0 goto :goto_1 :cond_0 add-int/lit8 p1, p1, 0x1 goto :goto_0 .line 1901 :cond_1 :goto_1 invoke-virtual {p2}, Ljava/lang/String;->length()I move-result v0 if-lt p1, v0, :cond_2 invoke-virtual {p3}, Ljava/lang/String;->length()I move-result v0 if-lt p1, v0, :cond_2 const/4 p0, 0x0 return-object p0 .line 1905 :cond_2 invoke-virtual {p0, p1}, Landroid/view/accessibility/AccessibilityEvent;->setFromIndex(I)V .line 1907 invoke-virtual {p2}, Ljava/lang/String;->length()I move-result v0 add-int/lit8 v0, v0, -0x1 .line 1908 invoke-virtual {p3}, Ljava/lang/String;->length()I move-result v1 add-int/lit8 v1, v1, -0x1 :goto_2 if-lt v0, p1, :cond_4 if-lt v1, p1, :cond_4 .line 1910 invoke-virtual {p2, v0}, Ljava/lang/String;->charAt(I)C move-result v2 invoke-virtual {p3, v1}, Ljava/lang/String;->charAt(I)C move-result v3 if-eq v2, v3, :cond_3 goto :goto_3 :cond_3 add-int/lit8 v0, v0, -0x1 add-int/lit8 v1, v1, -0x1 goto :goto_2 :cond_4 :goto_3 sub-int/2addr v0, p1 add-int/lit8 v0, v0, 0x1 .line 1916 invoke-virtual {p0, v0}, Landroid/view/accessibility/AccessibilityEvent;->setRemovedCount(I)V sub-int/2addr v1, p1 add-int/lit8 v1, v1, 0x1 .line 1917 invoke-virtual {p0, v1}, Landroid/view/accessibility/AccessibilityEvent;->setAddedCount(I)V return-object p0 .end method .method private doesLayoutInDisplayCutoutModeRequireLeftInset()Z .locals 2 iget-object p0, p0, Lio/flutter/view/AccessibilityBridge;->rootAccessibilityView:Landroid/view/View; .line 2043 invoke-virtual {p0}, Landroid/view/View;->getContext()Landroid/content/Context; move-result-object p0 .line 2044 invoke-static {p0}, Lio/flutter/util/ViewUtils;->getActivity(Landroid/content/Context;)Landroid/app/Activity; move-result-object p0 const/4 v0, 0x0 if-eqz p0, :cond_2 .line 2045 invoke-virtual {p0}, Landroid/app/Activity;->getWindow()Landroid/view/Window; move-result-object v1 if-nez v1, :cond_0 goto :goto_0 .line 2050 :cond_0 invoke-virtual {p0}, Landroid/app/Activity;->getWindow()Landroid/view/Window; move-result-object p0 invoke-virtual {p0}, Landroid/view/Window;->getAttributes()Landroid/view/WindowManager$LayoutParams; move-result-object p0 iget p0, p0, Landroid/view/WindowManager$LayoutParams;->layoutInDisplayCutoutMode:I const/4 v1, 0x2 if-eq p0, v1, :cond_1 if-nez p0, :cond_2 :cond_1 const/4 v0, 0x1 :cond_2 :goto_0 return v0 .end method .method private getBoundsInScreen(Landroid/graphics/Rect;)Landroid/graphics/Rect; .locals 2 .line 1024 new-instance v0, Landroid/graphics/Rect; invoke-direct {v0, p1}, Landroid/graphics/Rect;->(Landroid/graphics/Rect;)V const/4 p1, 0x2 new-array p1, p1, [I iget-object p0, p0, Lio/flutter/view/AccessibilityBridge;->rootAccessibilityView:Landroid/view/View; .line 1026 invoke-virtual {p0, p1}, Landroid/view/View;->getLocationOnScreen([I)V const/4 p0, 0x0 aget p0, p1, p0 const/4 v1, 0x1 aget p1, p1, v1 .line 1027 invoke-virtual {v0, p0, p1}, Landroid/graphics/Rect;->offset(II)V return-object v0 .end method .method private getOrCreateAccessibilityAction(I)Lio/flutter/view/AccessibilityBridge$CustomAccessibilityAction; .locals 2 iget-object v0, p0, Lio/flutter/view/AccessibilityBridge;->customAccessibilityActions:Ljava/util/Map; .line 1513 invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer; move-result-object v1 invoke-interface {v0, v1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object; move-result-object v0 check-cast v0, Lio/flutter/view/AccessibilityBridge$CustomAccessibilityAction; if-nez v0, :cond_0 .line 1515 new-instance v0, Lio/flutter/view/AccessibilityBridge$CustomAccessibilityAction; invoke-direct {v0}, Lio/flutter/view/AccessibilityBridge$CustomAccessibilityAction;->()V .line 1516 invoke-static {v0, p1}, Lio/flutter/view/AccessibilityBridge$CustomAccessibilityAction;->access$4602(Lio/flutter/view/AccessibilityBridge$CustomAccessibilityAction;I)I sget v1, Lio/flutter/view/AccessibilityBridge;->FIRST_RESOURCE_ID:I add-int/2addr v1, p1 .line 1517 invoke-static {v0, v1}, Lio/flutter/view/AccessibilityBridge$CustomAccessibilityAction;->access$3702(Lio/flutter/view/AccessibilityBridge$CustomAccessibilityAction;I)I iget-object p0, p0, Lio/flutter/view/AccessibilityBridge;->customAccessibilityActions:Ljava/util/Map; .line 1518 invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer; move-result-object p1 invoke-interface {p0, p1, v0}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; :cond_0 return-object v0 .end method .method private getOrCreateSemanticsNode(I)Lio/flutter/view/AccessibilityBridge$SemanticsNode; .locals 2 iget-object v0, p0, Lio/flutter/view/AccessibilityBridge;->flutterSemanticsTree:Ljava/util/Map; .line 1492 invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer; move-result-object v1 invoke-interface {v0, v1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object; move-result-object v0 check-cast v0, Lio/flutter/view/AccessibilityBridge$SemanticsNode; if-nez v0, :cond_0 .line 1494 new-instance v0, Lio/flutter/view/AccessibilityBridge$SemanticsNode; invoke-direct {v0, p0}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->(Lio/flutter/view/AccessibilityBridge;)V .line 1495 invoke-static {v0, p1}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$002(Lio/flutter/view/AccessibilityBridge$SemanticsNode;I)I iget-object p0, p0, Lio/flutter/view/AccessibilityBridge;->flutterSemanticsTree:Ljava/util/Map; .line 1496 invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer; move-result-object p1 invoke-interface {p0, p1, v0}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; :cond_0 return-object v0 .end method .method private getRootSemanticsNode()Lio/flutter/view/AccessibilityBridge$SemanticsNode; .locals 1 iget-object p0, p0, Lio/flutter/view/AccessibilityBridge;->flutterSemanticsTree:Ljava/util/Map; const/4 v0, 0x0 .line 1478 invoke-static {v0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer; move-result-object v0 invoke-interface {p0, v0}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object; move-result-object p0 check-cast p0, Lio/flutter/view/AccessibilityBridge$SemanticsNode; return-object p0 .end method .method private handleTouchExploration(FFZ)V .locals 3 iget-object v0, p0, Lio/flutter/view/AccessibilityBridge;->flutterSemanticsTree:Ljava/util/Map; .line 1608 invoke-interface {v0}, Ljava/util/Map;->isEmpty()Z move-result v0 if-eqz v0, :cond_0 return-void .line 1612 :cond_0 invoke-direct {p0}, Lio/flutter/view/AccessibilityBridge;->getRootSemanticsNode()Lio/flutter/view/AccessibilityBridge$SemanticsNode; move-result-object v0 const/4 v1, 0x4 new-array v1, v1, [F const/4 v2, 0x0 aput p1, v1, v2 const/4 p1, 0x1 aput p2, v1, p1 const/4 p1, 0x2 const/4 p2, 0x0 aput p2, v1, p1 const/4 p1, 0x3 const/high16 p2, 0x3f800000 # 1.0f aput p2, v1, p1 invoke-static {v0, v1, p3}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$4700(Lio/flutter/view/AccessibilityBridge$SemanticsNode;[FZ)Lio/flutter/view/AccessibilityBridge$SemanticsNode; move-result-object p1 iget-object p2, p0, Lio/flutter/view/AccessibilityBridge;->hoveredObject:Lio/flutter/view/AccessibilityBridge$SemanticsNode; if-eq p1, p2, :cond_3 if-eqz p1, :cond_1 .line 1617 invoke-static {p1}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$000(Lio/flutter/view/AccessibilityBridge$SemanticsNode;)I move-result p2 const/16 p3, 0x80 .line 1616 invoke-virtual {p0, p2, p3}, Lio/flutter/view/AccessibilityBridge;->sendAccessibilityEvent(II)V :cond_1 iget-object p2, p0, Lio/flutter/view/AccessibilityBridge;->hoveredObject:Lio/flutter/view/AccessibilityBridge$SemanticsNode; if-eqz p2, :cond_2 .line 1620 invoke-static {p2}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$000(Lio/flutter/view/AccessibilityBridge$SemanticsNode;)I move-result p2 const/16 p3, 0x100 invoke-virtual {p0, p2, p3}, Lio/flutter/view/AccessibilityBridge;->sendAccessibilityEvent(II)V :cond_2 iput-object p1, p0, Lio/flutter/view/AccessibilityBridge;->hoveredObject:Lio/flutter/view/AccessibilityBridge$SemanticsNode; :cond_3 return-void .end method .method private isImportant(Lio/flutter/view/AccessibilityBridge$SemanticsNode;)Z .locals 2 .line 1005 sget-object p0, Lio/flutter/view/AccessibilityBridge$Flag;->SCOPES_ROUTE:Lio/flutter/view/AccessibilityBridge$Flag; invoke-static {p1, p0}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$2000(Lio/flutter/view/AccessibilityBridge$SemanticsNode;Lio/flutter/view/AccessibilityBridge$Flag;)Z move-result p0 const/4 v0, 0x0 if-eqz p0, :cond_0 return v0 .line 1009 :cond_0 invoke-static {p1}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$3400(Lio/flutter/view/AccessibilityBridge$SemanticsNode;)Ljava/lang/CharSequence; move-result-object p0 const/4 v1, 0x1 if-eqz p0, :cond_1 return v1 .line 1014 :cond_1 invoke-static {p1}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$4000(Lio/flutter/view/AccessibilityBridge$SemanticsNode;)I move-result p0 sget p1, Lio/flutter/view/AccessibilityBridge;->systemAction:I not-int p1, p1 and-int/2addr p0, p1 if-eqz p0, :cond_2 move v0, v1 :cond_2 return v0 .end method .method static synthetic lambda$shouldSetCollectionInfo$0(Lio/flutter/view/AccessibilityBridge$SemanticsNode;Lio/flutter/view/AccessibilityBridge$SemanticsNode;)Z .locals 0 if-ne p1, p0, :cond_0 const/4 p0, 0x1 goto :goto_0 :cond_0 const/4 p0, 0x0 :goto_0 return p0 .end method .method static synthetic lambda$shouldSetCollectionInfo$1(Lio/flutter/view/AccessibilityBridge$SemanticsNode;)Z .locals 1 .line 555 sget-object v0, Lio/flutter/view/AccessibilityBridge$Flag;->HAS_IMPLICIT_SCROLLING:Lio/flutter/view/AccessibilityBridge$Flag; invoke-static {p0, v0}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$2000(Lio/flutter/view/AccessibilityBridge$SemanticsNode;Lio/flutter/view/AccessibilityBridge$Flag;)Z move-result p0 return p0 .end method .method private obtainAccessibilityEvent(II)Landroid/view/accessibility/AccessibilityEvent; .locals 1 .line 2023 invoke-virtual {p0, p2}, Lio/flutter/view/AccessibilityBridge;->obtainAccessibilityEvent(I)Landroid/view/accessibility/AccessibilityEvent; move-result-object p2 iget-object v0, p0, Lio/flutter/view/AccessibilityBridge;->rootAccessibilityView:Landroid/view/View; .line 2024 invoke-virtual {v0}, Landroid/view/View;->getContext()Landroid/content/Context; move-result-object v0 invoke-virtual {v0}, Landroid/content/Context;->getPackageName()Ljava/lang/String; move-result-object v0 invoke-virtual {p2, v0}, Landroid/view/accessibility/AccessibilityEvent;->setPackageName(Ljava/lang/CharSequence;)V iget-object p0, p0, Lio/flutter/view/AccessibilityBridge;->rootAccessibilityView:Landroid/view/View; .line 2025 invoke-virtual {p2, p0, p1}, Landroid/view/accessibility/AccessibilityEvent;->setSource(Landroid/view/View;I)V return-object p2 .end method .method private onTouchExplorationExit()V .locals 2 iget-object v0, p0, Lio/flutter/view/AccessibilityBridge;->hoveredObject:Lio/flutter/view/AccessibilityBridge$SemanticsNode; if-eqz v0, :cond_0 .line 1593 invoke-static {v0}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$000(Lio/flutter/view/AccessibilityBridge$SemanticsNode;)I move-result v0 const/16 v1, 0x100 invoke-virtual {p0, v0, v1}, Lio/flutter/view/AccessibilityBridge;->sendAccessibilityEvent(II)V const/4 v0, 0x0 iput-object v0, p0, Lio/flutter/view/AccessibilityBridge;->hoveredObject:Lio/flutter/view/AccessibilityBridge$SemanticsNode; :cond_0 return-void .end method .method private onWindowNameChange(Lio/flutter/view/AccessibilityBridge$SemanticsNode;)V .locals 0 .line 1967 invoke-static {p1}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$6800(Lio/flutter/view/AccessibilityBridge$SemanticsNode;)Ljava/lang/String; move-result-object p1 if-nez p1, :cond_0 const-string p1, " " .line 1980 :cond_0 invoke-direct {p0, p1}, Lio/flutter/view/AccessibilityBridge;->setAccessibilityPaneTitle(Ljava/lang/String;)V return-void .end method .method private performCursorMoveAction(Lio/flutter/view/AccessibilityBridge$SemanticsNode;ILandroid/os/Bundle;Z)Z .locals 4 const-string v0, "ACTION_ARGUMENT_MOVEMENT_GRANULARITY_INT" .line 1286 invoke-virtual {p3, v0}, Landroid/os/Bundle;->getInt(Ljava/lang/String;)I move-result v0 const-string v1, "ACTION_ARGUMENT_EXTEND_SELECTION_BOOLEAN" .line 1288 invoke-virtual {p3, v1}, Landroid/os/Bundle;->getBoolean(Ljava/lang/String;)Z move-result p3 .line 1291 invoke-static {p1}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$2100(Lio/flutter/view/AccessibilityBridge$SemanticsNode;)I move-result v1 .line 1292 invoke-static {p1}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$2200(Lio/flutter/view/AccessibilityBridge$SemanticsNode;)I move-result v2 .line 1293 invoke-direct {p0, p1, v0, p4, p3}, Lio/flutter/view/AccessibilityBridge;->predictCursorMovement(Lio/flutter/view/AccessibilityBridge$SemanticsNode;IZZ)V .line 1295 invoke-static {p1}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$2100(Lio/flutter/view/AccessibilityBridge$SemanticsNode;)I move-result v3 if-ne v1, v3, :cond_0 .line 1296 invoke-static {p1}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$2200(Lio/flutter/view/AccessibilityBridge$SemanticsNode;)I move-result v1 if-eq v2, v1, :cond_2 .line 1297 :cond_0 invoke-static {p1}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$2500(Lio/flutter/view/AccessibilityBridge$SemanticsNode;)Ljava/lang/String; move-result-object v1 if-eqz v1, :cond_1 invoke-static {p1}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$2500(Lio/flutter/view/AccessibilityBridge$SemanticsNode;)Ljava/lang/String; move-result-object v1 goto :goto_0 :cond_1 const-string v1, "" .line 1300 :goto_0 invoke-static {p1}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$000(Lio/flutter/view/AccessibilityBridge$SemanticsNode;)I move-result v2 const/16 v3, 0x2000 .line 1299 invoke-direct {p0, v2, v3}, Lio/flutter/view/AccessibilityBridge;->obtainAccessibilityEvent(II)Landroid/view/accessibility/AccessibilityEvent; move-result-object v2 .line 1301 invoke-virtual {v2}, Landroid/view/accessibility/AccessibilityEvent;->getText()Ljava/util/List; move-result-object v3 invoke-interface {v3, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z .line 1302 invoke-static {p1}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$2100(Lio/flutter/view/AccessibilityBridge$SemanticsNode;)I move-result v3 invoke-virtual {v2, v3}, Landroid/view/accessibility/AccessibilityEvent;->setFromIndex(I)V .line 1303 invoke-static {p1}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$2200(Lio/flutter/view/AccessibilityBridge$SemanticsNode;)I move-result v3 invoke-virtual {v2, v3}, Landroid/view/accessibility/AccessibilityEvent;->setToIndex(I)V .line 1304 invoke-virtual {v1}, Ljava/lang/String;->length()I move-result v1 invoke-virtual {v2, v1}, Landroid/view/accessibility/AccessibilityEvent;->setItemCount(I)V .line 1305 invoke-direct {p0, v2}, Lio/flutter/view/AccessibilityBridge;->sendAccessibilityEvent(Landroid/view/accessibility/AccessibilityEvent;)V :cond_2 const/4 v1, 0x1 if-eq v0, v1, :cond_6 const/4 v2, 0x2 if-eq v0, v2, :cond_4 const/4 p0, 0x4 if-eq v0, p0, :cond_3 const/16 p0, 0x8 if-eq v0, p0, :cond_3 const/16 p0, 0x10 if-eq v0, p0, :cond_3 goto :goto_1 :cond_3 return v1 :cond_4 if-eqz p4, :cond_5 .line 1324 sget-object v0, Lio/flutter/view/AccessibilityBridge$Action;->MOVE_CURSOR_FORWARD_BY_WORD:Lio/flutter/view/AccessibilityBridge$Action; invoke-static {p1, v0}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$2300(Lio/flutter/view/AccessibilityBridge$SemanticsNode;Lio/flutter/view/AccessibilityBridge$Action;)Z move-result v0 if-eqz v0, :cond_5 iget-object p0, p0, Lio/flutter/view/AccessibilityBridge;->accessibilityChannel:Lio/flutter/embedding/engine/systemchannels/AccessibilityChannel; .line 1325 sget-object p1, Lio/flutter/view/AccessibilityBridge$Action;->MOVE_CURSOR_FORWARD_BY_WORD:Lio/flutter/view/AccessibilityBridge$Action; .line 1326 invoke-static {p3}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean; move-result-object p3 .line 1325 invoke-virtual {p0, p2, p1, p3}, Lio/flutter/embedding/engine/systemchannels/AccessibilityChannel;->dispatchSemanticsAction(ILio/flutter/view/AccessibilityBridge$Action;Ljava/lang/Object;)V return v1 :cond_5 if-nez p4, :cond_8 .line 1329 sget-object p4, Lio/flutter/view/AccessibilityBridge$Action;->MOVE_CURSOR_BACKWARD_BY_WORD:Lio/flutter/view/AccessibilityBridge$Action; invoke-static {p1, p4}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$2300(Lio/flutter/view/AccessibilityBridge$SemanticsNode;Lio/flutter/view/AccessibilityBridge$Action;)Z move-result p1 if-eqz p1, :cond_8 iget-object p0, p0, Lio/flutter/view/AccessibilityBridge;->accessibilityChannel:Lio/flutter/embedding/engine/systemchannels/AccessibilityChannel; .line 1330 sget-object p1, Lio/flutter/view/AccessibilityBridge$Action;->MOVE_CURSOR_BACKWARD_BY_WORD:Lio/flutter/view/AccessibilityBridge$Action; .line 1331 invoke-static {p3}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean; move-result-object p3 .line 1330 invoke-virtual {p0, p2, p1, p3}, Lio/flutter/embedding/engine/systemchannels/AccessibilityChannel;->dispatchSemanticsAction(ILio/flutter/view/AccessibilityBridge$Action;Ljava/lang/Object;)V return v1 :cond_6 if-eqz p4, :cond_7 .line 1311 sget-object v0, Lio/flutter/view/AccessibilityBridge$Action;->MOVE_CURSOR_FORWARD_BY_CHARACTER:Lio/flutter/view/AccessibilityBridge$Action; invoke-static {p1, v0}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$2300(Lio/flutter/view/AccessibilityBridge$SemanticsNode;Lio/flutter/view/AccessibilityBridge$Action;)Z move-result v0 if-eqz v0, :cond_7 iget-object p0, p0, Lio/flutter/view/AccessibilityBridge;->accessibilityChannel:Lio/flutter/embedding/engine/systemchannels/AccessibilityChannel; .line 1312 sget-object p1, Lio/flutter/view/AccessibilityBridge$Action;->MOVE_CURSOR_FORWARD_BY_CHARACTER:Lio/flutter/view/AccessibilityBridge$Action; .line 1313 invoke-static {p3}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean; move-result-object p3 .line 1312 invoke-virtual {p0, p2, p1, p3}, Lio/flutter/embedding/engine/systemchannels/AccessibilityChannel;->dispatchSemanticsAction(ILio/flutter/view/AccessibilityBridge$Action;Ljava/lang/Object;)V return v1 :cond_7 if-nez p4, :cond_8 .line 1316 sget-object p4, Lio/flutter/view/AccessibilityBridge$Action;->MOVE_CURSOR_BACKWARD_BY_CHARACTER:Lio/flutter/view/AccessibilityBridge$Action; invoke-static {p1, p4}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$2300(Lio/flutter/view/AccessibilityBridge$SemanticsNode;Lio/flutter/view/AccessibilityBridge$Action;)Z move-result p1 if-eqz p1, :cond_8 iget-object p0, p0, Lio/flutter/view/AccessibilityBridge;->accessibilityChannel:Lio/flutter/embedding/engine/systemchannels/AccessibilityChannel; .line 1317 sget-object p1, Lio/flutter/view/AccessibilityBridge$Action;->MOVE_CURSOR_BACKWARD_BY_CHARACTER:Lio/flutter/view/AccessibilityBridge$Action; .line 1318 invoke-static {p3}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean; move-result-object p3 .line 1317 invoke-virtual {p0, p2, p1, p3}, Lio/flutter/embedding/engine/systemchannels/AccessibilityChannel;->dispatchSemanticsAction(ILio/flutter/view/AccessibilityBridge$Action;Ljava/lang/Object;)V return v1 :cond_8 :goto_1 const/4 p0, 0x0 return p0 .end method .method private performSetText(Lio/flutter/view/AccessibilityBridge$SemanticsNode;ILandroid/os/Bundle;)Z .locals 2 if-eqz p3, :cond_0 const-string v0, "ACTION_ARGUMENT_SET_TEXT_CHARSEQUENCE" .line 1421 invoke-virtual {p3, v0}, Landroid/os/Bundle;->containsKey(Ljava/lang/String;)Z move-result v1 if-eqz v1, :cond_0 .line 1422 invoke-virtual {p3, v0}, Landroid/os/Bundle;->getString(Ljava/lang/String;)Ljava/lang/String; move-result-object p3 goto :goto_0 :cond_0 const-string p3, "" :goto_0 iget-object p0, p0, Lio/flutter/view/AccessibilityBridge;->accessibilityChannel:Lio/flutter/embedding/engine/systemchannels/AccessibilityChannel; .line 1424 sget-object v0, Lio/flutter/view/AccessibilityBridge$Action;->SET_TEXT:Lio/flutter/view/AccessibilityBridge$Action; invoke-virtual {p0, p2, v0, p3}, Lio/flutter/embedding/engine/systemchannels/AccessibilityChannel;->dispatchSemanticsAction(ILio/flutter/view/AccessibilityBridge$Action;Ljava/lang/Object;)V .line 1427 invoke-static {p1, p3}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$2502(Lio/flutter/view/AccessibilityBridge$SemanticsNode;Ljava/lang/String;)Ljava/lang/String; const/4 p0, 0x0 .line 1428 invoke-static {p1, p0}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$4202(Lio/flutter/view/AccessibilityBridge$SemanticsNode;Ljava/util/List;)Ljava/util/List; const/4 p0, 0x1 return p0 .end method .method private predictCursorMovement(Lio/flutter/view/AccessibilityBridge$SemanticsNode;IZZ)V .locals 2 .line 1345 invoke-static {p1}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$2200(Lio/flutter/view/AccessibilityBridge$SemanticsNode;)I move-result p0 if-ltz p0, :cond_d invoke-static {p1}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$2100(Lio/flutter/view/AccessibilityBridge$SemanticsNode;)I move-result p0 if-gez p0, :cond_0 goto/16 :goto_1 :cond_0 const/4 p0, 0x1 if-eq p2, p0, :cond_a const/4 v0, 0x2 const/4 v1, 0x0 if-eq p2, v0, :cond_7 const/4 v0, 0x4 if-eq p2, v0, :cond_3 const/16 p0, 0x8 if-eq p2, p0, :cond_1 const/16 p0, 0x10 if-eq p2, p0, :cond_1 goto/16 :goto_0 :cond_1 if-eqz p3, :cond_2 .line 1401 invoke-static {p1}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$2500(Lio/flutter/view/AccessibilityBridge$SemanticsNode;)Ljava/lang/String; move-result-object p0 invoke-virtual {p0}, Ljava/lang/String;->length()I move-result p0 invoke-static {p1, p0}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$2202(Lio/flutter/view/AccessibilityBridge$SemanticsNode;I)I goto/16 :goto_0 .line 1403 :cond_2 invoke-static {p1, v1}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$2202(Lio/flutter/view/AccessibilityBridge$SemanticsNode;I)I goto/16 :goto_0 :cond_3 if-eqz p3, :cond_5 .line 1378 invoke-static {p1}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$2200(Lio/flutter/view/AccessibilityBridge$SemanticsNode;)I move-result p2 invoke-static {p1}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$2500(Lio/flutter/view/AccessibilityBridge$SemanticsNode;)Ljava/lang/String; move-result-object v0 invoke-virtual {v0}, Ljava/lang/String;->length()I move-result v0 if-ge p2, v0, :cond_5 const-string p2, "(?!^)(\\n)" .line 1380 invoke-static {p2}, Ljava/util/regex/Pattern;->compile(Ljava/lang/String;)Ljava/util/regex/Pattern; move-result-object p2 .line 1381 invoke-static {p1}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$2500(Lio/flutter/view/AccessibilityBridge$SemanticsNode;)Ljava/lang/String; move-result-object p3 invoke-static {p1}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$2200(Lio/flutter/view/AccessibilityBridge$SemanticsNode;)I move-result v0 invoke-virtual {p3, v0}, Ljava/lang/String;->substring(I)Ljava/lang/String; move-result-object p3 invoke-virtual {p2, p3}, Ljava/util/regex/Pattern;->matcher(Ljava/lang/CharSequence;)Ljava/util/regex/Matcher; move-result-object p2 .line 1382 invoke-virtual {p2}, Ljava/util/regex/Matcher;->find()Z move-result p3 if-eqz p3, :cond_4 .line 1383 invoke-virtual {p2, p0}, Ljava/util/regex/Matcher;->start(I)I move-result p0 invoke-static {p1, p0}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$2212(Lio/flutter/view/AccessibilityBridge$SemanticsNode;I)I goto/16 :goto_0 .line 1385 :cond_4 invoke-static {p1}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$2500(Lio/flutter/view/AccessibilityBridge$SemanticsNode;)Ljava/lang/String; move-result-object p0 invoke-virtual {p0}, Ljava/lang/String;->length()I move-result p0 invoke-static {p1, p0}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$2202(Lio/flutter/view/AccessibilityBridge$SemanticsNode;I)I goto/16 :goto_0 :cond_5 if-nez p3, :cond_c .line 1387 invoke-static {p1}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$2200(Lio/flutter/view/AccessibilityBridge$SemanticsNode;)I move-result p2 if-lez p2, :cond_c const-string p2, "(?s:.*)(\\n)" .line 1389 invoke-static {p2}, Ljava/util/regex/Pattern;->compile(Ljava/lang/String;)Ljava/util/regex/Pattern; move-result-object p2 .line 1390 invoke-static {p1}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$2500(Lio/flutter/view/AccessibilityBridge$SemanticsNode;)Ljava/lang/String; move-result-object p3 invoke-static {p1}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$2200(Lio/flutter/view/AccessibilityBridge$SemanticsNode;)I move-result v0 invoke-virtual {p3, v1, v0}, Ljava/lang/String;->substring(II)Ljava/lang/String; move-result-object p3 invoke-virtual {p2, p3}, Ljava/util/regex/Pattern;->matcher(Ljava/lang/CharSequence;)Ljava/util/regex/Matcher; move-result-object p2 .line 1391 invoke-virtual {p2}, Ljava/util/regex/Matcher;->find()Z move-result p3 if-eqz p3, :cond_6 .line 1392 invoke-virtual {p2, p0}, Ljava/util/regex/Matcher;->start(I)I move-result p0 invoke-static {p1, p0}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$2202(Lio/flutter/view/AccessibilityBridge$SemanticsNode;I)I goto/16 :goto_0 .line 1394 :cond_6 invoke-static {p1, v1}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$2202(Lio/flutter/view/AccessibilityBridge$SemanticsNode;I)I goto/16 :goto_0 :cond_7 if-eqz p3, :cond_9 .line 1358 invoke-static {p1}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$2200(Lio/flutter/view/AccessibilityBridge$SemanticsNode;)I move-result p2 invoke-static {p1}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$2500(Lio/flutter/view/AccessibilityBridge$SemanticsNode;)Ljava/lang/String; move-result-object v0 invoke-virtual {v0}, Ljava/lang/String;->length()I move-result v0 if-ge p2, v0, :cond_9 const-string p2, "\\p{L}(\\b)" .line 1359 invoke-static {p2}, Ljava/util/regex/Pattern;->compile(Ljava/lang/String;)Ljava/util/regex/Pattern; move-result-object p2 .line 1360 invoke-static {p1}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$2500(Lio/flutter/view/AccessibilityBridge$SemanticsNode;)Ljava/lang/String; move-result-object p3 invoke-static {p1}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$2200(Lio/flutter/view/AccessibilityBridge$SemanticsNode;)I move-result v0 invoke-virtual {p3, v0}, Ljava/lang/String;->substring(I)Ljava/lang/String; move-result-object p3 invoke-virtual {p2, p3}, Ljava/util/regex/Pattern;->matcher(Ljava/lang/CharSequence;)Ljava/util/regex/Matcher; move-result-object p2 .line 1362 invoke-virtual {p2}, Ljava/util/regex/Matcher;->find()Z .line 1363 invoke-virtual {p2}, Ljava/util/regex/Matcher;->find()Z move-result p3 if-eqz p3, :cond_8 .line 1364 invoke-virtual {p2, p0}, Ljava/util/regex/Matcher;->start(I)I move-result p0 invoke-static {p1, p0}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$2212(Lio/flutter/view/AccessibilityBridge$SemanticsNode;I)I goto :goto_0 .line 1366 :cond_8 invoke-static {p1}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$2500(Lio/flutter/view/AccessibilityBridge$SemanticsNode;)Ljava/lang/String; move-result-object p0 invoke-virtual {p0}, Ljava/lang/String;->length()I move-result p0 invoke-static {p1, p0}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$2202(Lio/flutter/view/AccessibilityBridge$SemanticsNode;I)I goto :goto_0 :cond_9 if-nez p3, :cond_c .line 1368 invoke-static {p1}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$2200(Lio/flutter/view/AccessibilityBridge$SemanticsNode;)I move-result p2 if-lez p2, :cond_c const-string p2, "(?s:.*)(\\b)\\p{L}" .line 1370 invoke-static {p2}, Ljava/util/regex/Pattern;->compile(Ljava/lang/String;)Ljava/util/regex/Pattern; move-result-object p2 .line 1371 invoke-static {p1}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$2500(Lio/flutter/view/AccessibilityBridge$SemanticsNode;)Ljava/lang/String; move-result-object p3 invoke-static {p1}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$2200(Lio/flutter/view/AccessibilityBridge$SemanticsNode;)I move-result v0 invoke-virtual {p3, v1, v0}, Ljava/lang/String;->substring(II)Ljava/lang/String; move-result-object p3 invoke-virtual {p2, p3}, Ljava/util/regex/Pattern;->matcher(Ljava/lang/CharSequence;)Ljava/util/regex/Matcher; move-result-object p2 .line 1372 invoke-virtual {p2}, Ljava/util/regex/Matcher;->find()Z move-result p3 if-eqz p3, :cond_c .line 1373 invoke-virtual {p2, p0}, Ljava/util/regex/Matcher;->start(I)I move-result p0 invoke-static {p1, p0}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$2202(Lio/flutter/view/AccessibilityBridge$SemanticsNode;I)I goto :goto_0 :cond_a if-eqz p3, :cond_b .line 1351 invoke-static {p1}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$2200(Lio/flutter/view/AccessibilityBridge$SemanticsNode;)I move-result p2 invoke-static {p1}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$2500(Lio/flutter/view/AccessibilityBridge$SemanticsNode;)Ljava/lang/String; move-result-object v0 invoke-virtual {v0}, Ljava/lang/String;->length()I move-result v0 if-ge p2, v0, :cond_b .line 1352 invoke-static {p1, p0}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$2212(Lio/flutter/view/AccessibilityBridge$SemanticsNode;I)I goto :goto_0 :cond_b if-nez p3, :cond_c .line 1353 invoke-static {p1}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$2200(Lio/flutter/view/AccessibilityBridge$SemanticsNode;)I move-result p2 if-lez p2, :cond_c .line 1354 invoke-static {p1, p0}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$2220(Lio/flutter/view/AccessibilityBridge$SemanticsNode;I)I :cond_c :goto_0 if-nez p4, :cond_d .line 1408 invoke-static {p1}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$2200(Lio/flutter/view/AccessibilityBridge$SemanticsNode;)I move-result p0 invoke-static {p1, p0}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$2102(Lio/flutter/view/AccessibilityBridge$SemanticsNode;I)I :cond_d :goto_1 return-void .end method .method private sendAccessibilityEvent(Landroid/view/accessibility/AccessibilityEvent;)V .locals 1 iget-object v0, p0, Lio/flutter/view/AccessibilityBridge;->accessibilityManager:Landroid/view/accessibility/AccessibilityManager; .line 1945 invoke-virtual {v0}, Landroid/view/accessibility/AccessibilityManager;->isEnabled()Z move-result v0 if-nez v0, :cond_0 return-void :cond_0 iget-object v0, p0, Lio/flutter/view/AccessibilityBridge;->rootAccessibilityView:Landroid/view/View; .line 1952 invoke-virtual {v0}, Landroid/view/View;->getParent()Landroid/view/ViewParent; move-result-object v0 iget-object p0, p0, Lio/flutter/view/AccessibilityBridge;->rootAccessibilityView:Landroid/view/View; invoke-interface {v0, p0, p1}, Landroid/view/ViewParent;->requestSendAccessibilityEvent(Landroid/view/View;Landroid/view/accessibility/AccessibilityEvent;)Z return-void .end method .method private sendLatestAccessibilityFlagsToFlutter()V .locals 1 iget-object v0, p0, Lio/flutter/view/AccessibilityBridge;->accessibilityChannel:Lio/flutter/embedding/engine/systemchannels/AccessibilityChannel; iget p0, p0, Lio/flutter/view/AccessibilityBridge;->accessibilityFeatureFlags:I .line 538 invoke-virtual {v0, p0}, Lio/flutter/embedding/engine/systemchannels/AccessibilityChannel;->setAccessibilityFeatures(I)V return-void .end method .method private sendWindowContentChangeEvent(I)V .locals 1 const/16 v0, 0x800 .line 2007 invoke-direct {p0, p1, v0}, Lio/flutter/view/AccessibilityBridge;->obtainAccessibilityEvent(II)Landroid/view/accessibility/AccessibilityEvent; move-result-object p1 const/4 v0, 0x1 .line 2009 invoke-virtual {p1, v0}, Landroid/view/accessibility/AccessibilityEvent;->setContentChangeTypes(I)V .line 2011 invoke-direct {p0, p1}, Lio/flutter/view/AccessibilityBridge;->sendAccessibilityEvent(Landroid/view/accessibility/AccessibilityEvent;)V return-void .end method .method private setAccessibilityPaneTitle(Ljava/lang/String;)V .locals 0 iget-object p0, p0, Lio/flutter/view/AccessibilityBridge;->rootAccessibilityView:Landroid/view/View; .line 1992 invoke-virtual {p0, p1}, Landroid/view/View;->setAccessibilityPaneTitle(Ljava/lang/CharSequence;)V return-void .end method .method private setAccessibleNavigation(Z)V .locals 1 iget-boolean v0, p0, Lio/flutter/view/AccessibilityBridge;->accessibleNavigation:Z if-ne v0, p1, :cond_0 return-void :cond_0 iput-boolean p1, p0, Lio/flutter/view/AccessibilityBridge;->accessibleNavigation:Z if-eqz p1, :cond_1 iget p1, p0, Lio/flutter/view/AccessibilityBridge;->accessibilityFeatureFlags:I .line 281 sget-object v0, Lio/flutter/view/AccessibilityBridge$AccessibilityFeature;->ACCESSIBLE_NAVIGATION:Lio/flutter/view/AccessibilityBridge$AccessibilityFeature; iget v0, v0, Lio/flutter/view/AccessibilityBridge$AccessibilityFeature;->value:I or-int/2addr p1, v0 iput p1, p0, Lio/flutter/view/AccessibilityBridge;->accessibilityFeatureFlags:I goto :goto_0 :cond_1 iget p1, p0, Lio/flutter/view/AccessibilityBridge;->accessibilityFeatureFlags:I .line 283 sget-object v0, Lio/flutter/view/AccessibilityBridge$AccessibilityFeature;->ACCESSIBLE_NAVIGATION:Lio/flutter/view/AccessibilityBridge$AccessibilityFeature; iget v0, v0, Lio/flutter/view/AccessibilityBridge$AccessibilityFeature;->value:I not-int v0, v0 and-int/2addr p1, v0 iput p1, p0, Lio/flutter/view/AccessibilityBridge;->accessibilityFeatureFlags:I .line 285 :goto_0 invoke-direct {p0}, Lio/flutter/view/AccessibilityBridge;->sendLatestAccessibilityFlagsToFlutter()V return-void .end method .method private setBoldTextFlag()V .locals 2 iget-object v0, p0, Lio/flutter/view/AccessibilityBridge;->rootAccessibilityView:Landroid/view/View; if-eqz v0, :cond_2 .line 561 invoke-virtual {v0}, Landroid/view/View;->getResources()Landroid/content/res/Resources; move-result-object v0 if-nez v0, :cond_0 goto :goto_1 :cond_0 iget-object v0, p0, Lio/flutter/view/AccessibilityBridge;->rootAccessibilityView:Landroid/view/View; .line 565 invoke-virtual {v0}, Landroid/view/View;->getResources()Landroid/content/res/Resources; move-result-object v0 invoke-virtual {v0}, Landroid/content/res/Resources;->getConfiguration()Landroid/content/res/Configuration; move-result-object v0 iget v0, v0, Landroid/content/res/Configuration;->fontWeightAdjustment:I const v1, 0x7fffffff if-eq v0, v1, :cond_1 const/16 v1, 0x12c if-lt v0, v1, :cond_1 iget v0, p0, Lio/flutter/view/AccessibilityBridge;->accessibilityFeatureFlags:I .line 571 sget-object v1, Lio/flutter/view/AccessibilityBridge$AccessibilityFeature;->BOLD_TEXT:Lio/flutter/view/AccessibilityBridge$AccessibilityFeature; iget v1, v1, Lio/flutter/view/AccessibilityBridge$AccessibilityFeature;->value:I or-int/2addr v0, v1 iput v0, p0, Lio/flutter/view/AccessibilityBridge;->accessibilityFeatureFlags:I goto :goto_0 :cond_1 iget v0, p0, Lio/flutter/view/AccessibilityBridge;->accessibilityFeatureFlags:I .line 573 sget-object v1, Lio/flutter/view/AccessibilityBridge$AccessibilityFeature;->BOLD_TEXT:Lio/flutter/view/AccessibilityBridge$AccessibilityFeature; iget v1, v1, Lio/flutter/view/AccessibilityBridge$AccessibilityFeature;->value:I and-int/2addr v0, v1 iput v0, p0, Lio/flutter/view/AccessibilityBridge;->accessibilityFeatureFlags:I .line 575 :goto_0 invoke-direct {p0}, Lio/flutter/view/AccessibilityBridge;->sendLatestAccessibilityFlagsToFlutter()V :cond_2 :goto_1 return-void .end method .method private shouldSetCollectionInfo(Lio/flutter/view/AccessibilityBridge$SemanticsNode;)Z .locals 2 .line 551 invoke-static {p1}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$1400(Lio/flutter/view/AccessibilityBridge$SemanticsNode;)I move-result v0 if-lez v0, :cond_1 iget-object v0, p0, Lio/flutter/view/AccessibilityBridge;->accessibilityFocusedSemanticsNode:Lio/flutter/view/AccessibilityBridge$SemanticsNode; new-instance v1, Lio/flutter/view/AccessibilityBridge$$ExternalSyntheticLambda0; invoke-direct {v1, p1}, Lio/flutter/view/AccessibilityBridge$$ExternalSyntheticLambda0;->(Lio/flutter/view/AccessibilityBridge$SemanticsNode;)V .line 552 invoke-static {v0, v1}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$1500(Lio/flutter/view/AccessibilityBridge$SemanticsNode;Lio/flutter/util/Predicate;)Z move-result p1 if-nez p1, :cond_0 iget-object p0, p0, Lio/flutter/view/AccessibilityBridge;->accessibilityFocusedSemanticsNode:Lio/flutter/view/AccessibilityBridge$SemanticsNode; new-instance p1, Lio/flutter/view/AccessibilityBridge$$ExternalSyntheticLambda1; invoke-direct {p1}, Lio/flutter/view/AccessibilityBridge$$ExternalSyntheticLambda1;->()V .line 554 invoke-static {p0, p1}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$1500(Lio/flutter/view/AccessibilityBridge$SemanticsNode;Lio/flutter/util/Predicate;)Z move-result p0 if-nez p0, :cond_1 :cond_0 const/4 p0, 0x1 goto :goto_0 :cond_1 const/4 p0, 0x0 :goto_0 return p0 .end method .method private willRemoveSemanticsNode(Lio/flutter/view/AccessibilityBridge$SemanticsNode;)V .locals 6 const/4 v0, 0x0 .line 2076 invoke-static {p1, v0}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$2702(Lio/flutter/view/AccessibilityBridge$SemanticsNode;Lio/flutter/view/AccessibilityBridge$SemanticsNode;)Lio/flutter/view/AccessibilityBridge$SemanticsNode; .line 2078 invoke-static {p1}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$1600(Lio/flutter/view/AccessibilityBridge$SemanticsNode;)I move-result v1 const/high16 v2, 0x10000 const/4 v3, -0x1 if-eq v1, v3, :cond_0 iget-object v1, p0, Lio/flutter/view/AccessibilityBridge;->embeddedAccessibilityFocusedNodeId:Ljava/lang/Integer; if-eqz v1, :cond_0 iget-object v4, p0, Lio/flutter/view/AccessibilityBridge;->accessibilityViewEmbedder:Lio/flutter/view/AccessibilityViewEmbedder; .line 2080 invoke-virtual {v1}, Ljava/lang/Integer;->intValue()I move-result v1 invoke-virtual {v4, v1}, Lio/flutter/view/AccessibilityViewEmbedder;->platformViewOfNode(I)Landroid/view/View; move-result-object v1 iget-object v4, p0, Lio/flutter/view/AccessibilityBridge;->platformViewsAccessibilityDelegate:Lio/flutter/plugin/platform/PlatformViewsAccessibilityDelegate; .line 2082 invoke-static {p1}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$1600(Lio/flutter/view/AccessibilityBridge$SemanticsNode;)I move-result v5 .line 2081 invoke-interface {v4, v5}, Lio/flutter/plugin/platform/PlatformViewsAccessibilityDelegate;->getPlatformViewById(I)Landroid/view/View; move-result-object v4 if-ne v1, v4, :cond_0 iget-object v1, p0, Lio/flutter/view/AccessibilityBridge;->embeddedAccessibilityFocusedNodeId:Ljava/lang/Integer; .line 2086 invoke-virtual {v1}, Ljava/lang/Integer;->intValue()I move-result v1 .line 2085 invoke-virtual {p0, v1, v2}, Lio/flutter/view/AccessibilityBridge;->sendAccessibilityEvent(II)V iput-object v0, p0, Lio/flutter/view/AccessibilityBridge;->embeddedAccessibilityFocusedNodeId:Ljava/lang/Integer; .line 2091 :cond_0 invoke-static {p1}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$1600(Lio/flutter/view/AccessibilityBridge$SemanticsNode;)I move-result v1 if-eq v1, v3, :cond_1 iget-object v1, p0, Lio/flutter/view/AccessibilityBridge;->platformViewsAccessibilityDelegate:Lio/flutter/plugin/platform/PlatformViewsAccessibilityDelegate; .line 2094 invoke-static {p1}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$1600(Lio/flutter/view/AccessibilityBridge$SemanticsNode;)I move-result v3 .line 2093 invoke-interface {v1, v3}, Lio/flutter/plugin/platform/PlatformViewsAccessibilityDelegate;->getPlatformViewById(I)Landroid/view/View; move-result-object v1 if-eqz v1, :cond_1 const/4 v3, 0x4 .line 2096 invoke-virtual {v1, v3}, Landroid/view/View;->setImportantForAccessibility(I)V :cond_1 iget-object v1, p0, Lio/flutter/view/AccessibilityBridge;->accessibilityFocusedSemanticsNode:Lio/flutter/view/AccessibilityBridge$SemanticsNode; if-ne v1, p1, :cond_2 .line 2103 invoke-static {v1}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$000(Lio/flutter/view/AccessibilityBridge$SemanticsNode;)I move-result v1 .line 2102 invoke-virtual {p0, v1, v2}, Lio/flutter/view/AccessibilityBridge;->sendAccessibilityEvent(II)V iput-object v0, p0, Lio/flutter/view/AccessibilityBridge;->accessibilityFocusedSemanticsNode:Lio/flutter/view/AccessibilityBridge$SemanticsNode; :cond_2 iget-object v1, p0, Lio/flutter/view/AccessibilityBridge;->inputFocusedSemanticsNode:Lio/flutter/view/AccessibilityBridge$SemanticsNode; if-ne v1, p1, :cond_3 iput-object v0, p0, Lio/flutter/view/AccessibilityBridge;->inputFocusedSemanticsNode:Lio/flutter/view/AccessibilityBridge$SemanticsNode; :cond_3 iget-object v1, p0, Lio/flutter/view/AccessibilityBridge;->hoveredObject:Lio/flutter/view/AccessibilityBridge$SemanticsNode; if-ne v1, p1, :cond_4 iput-object v0, p0, Lio/flutter/view/AccessibilityBridge;->hoveredObject:Lio/flutter/view/AccessibilityBridge$SemanticsNode; :cond_4 return-void .end method # virtual methods .method public createAccessibilityNodeInfo(I)Landroid/view/accessibility/AccessibilityNodeInfo; .locals 10 const/4 v0, 0x1 .line 616 invoke-direct {p0, v0}, Lio/flutter/view/AccessibilityBridge;->setAccessibleNavigation(Z)V const/high16 v1, 0x10000 if-lt p1, v1, :cond_0 iget-object p0, p0, Lio/flutter/view/AccessibilityBridge;->accessibilityViewEmbedder:Lio/flutter/view/AccessibilityViewEmbedder; .line 620 invoke-virtual {p0, p1}, Lio/flutter/view/AccessibilityViewEmbedder;->createAccessibilityNodeInfo(I)Landroid/view/accessibility/AccessibilityNodeInfo; move-result-object p0 return-object p0 :cond_0 const/4 v2, -0x1 const/4 v3, 0x0 if-ne p1, v2, :cond_2 iget-object p1, p0, Lio/flutter/view/AccessibilityBridge;->rootAccessibilityView:Landroid/view/View; .line 624 invoke-virtual {p0, p1}, Lio/flutter/view/AccessibilityBridge;->obtainAccessibilityNodeInfo(Landroid/view/View;)Landroid/view/accessibility/AccessibilityNodeInfo; move-result-object p1 iget-object v0, p0, Lio/flutter/view/AccessibilityBridge;->rootAccessibilityView:Landroid/view/View; .line 625 invoke-virtual {v0, p1}, Landroid/view/View;->onInitializeAccessibilityNodeInfo(Landroid/view/accessibility/AccessibilityNodeInfo;)V iget-object v0, p0, Lio/flutter/view/AccessibilityBridge;->flutterSemanticsTree:Ljava/util/Map; .line 628 invoke-static {v3}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer; move-result-object v1 invoke-interface {v0, v1}, Ljava/util/Map;->containsKey(Ljava/lang/Object;)Z move-result v0 if-eqz v0, :cond_1 iget-object p0, p0, Lio/flutter/view/AccessibilityBridge;->rootAccessibilityView:Landroid/view/View; .line 629 invoke-virtual {p1, p0, v3}, Landroid/view/accessibility/AccessibilityNodeInfo;->addChild(Landroid/view/View;I)V .line 632 :cond_1 invoke-virtual {p1, v3}, Landroid/view/accessibility/AccessibilityNodeInfo;->setImportantForAccessibility(Z)V return-object p1 :cond_2 iget-object v4, p0, Lio/flutter/view/AccessibilityBridge;->flutterSemanticsTree:Ljava/util/Map; .line 637 invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer; move-result-object v5 invoke-interface {v4, v5}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object; move-result-object v4 check-cast v4, Lio/flutter/view/AccessibilityBridge$SemanticsNode; const/4 v5, 0x0 if-nez v4, :cond_3 return-object v5 .line 650 :cond_3 invoke-static {v4}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$1600(Lio/flutter/view/AccessibilityBridge$SemanticsNode;)I move-result v6 if-eq v6, v2, :cond_5 iget-object v6, p0, Lio/flutter/view/AccessibilityBridge;->platformViewsAccessibilityDelegate:Lio/flutter/plugin/platform/PlatformViewsAccessibilityDelegate; .line 651 invoke-static {v4}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$1600(Lio/flutter/view/AccessibilityBridge$SemanticsNode;)I move-result v7 invoke-interface {v6, v7}, Lio/flutter/plugin/platform/PlatformViewsAccessibilityDelegate;->usesVirtualDisplay(I)Z move-result v6 if-eqz v6, :cond_5 iget-object p1, p0, Lio/flutter/view/AccessibilityBridge;->platformViewsAccessibilityDelegate:Lio/flutter/plugin/platform/PlatformViewsAccessibilityDelegate; .line 653 invoke-static {v4}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$1600(Lio/flutter/view/AccessibilityBridge$SemanticsNode;)I move-result v0 invoke-interface {p1, v0}, Lio/flutter/plugin/platform/PlatformViewsAccessibilityDelegate;->getPlatformViewById(I)Landroid/view/View; move-result-object p1 if-nez p1, :cond_4 return-object v5 .line 657 :cond_4 invoke-static {v4}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$1700(Lio/flutter/view/AccessibilityBridge$SemanticsNode;)Landroid/graphics/Rect; move-result-object v0 iget-object p0, p0, Lio/flutter/view/AccessibilityBridge;->accessibilityViewEmbedder:Lio/flutter/view/AccessibilityViewEmbedder; .line 658 invoke-static {v4}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$000(Lio/flutter/view/AccessibilityBridge$SemanticsNode;)I move-result v1 invoke-virtual {p0, p1, v1, v0}, Lio/flutter/view/AccessibilityViewEmbedder;->getRootNode(Landroid/view/View;ILandroid/graphics/Rect;)Landroid/view/accessibility/AccessibilityNodeInfo; move-result-object p0 return-object p0 :cond_5 iget-object v5, p0, Lio/flutter/view/AccessibilityBridge;->rootAccessibilityView:Landroid/view/View; .line 663 invoke-virtual {p0, v5, p1}, Lio/flutter/view/AccessibilityBridge;->obtainAccessibilityNodeInfo(Landroid/view/View;I)Landroid/view/accessibility/AccessibilityNodeInfo; move-result-object v5 .line 668 invoke-direct {p0, v4}, Lio/flutter/view/AccessibilityBridge;->isImportant(Lio/flutter/view/AccessibilityBridge$SemanticsNode;)Z move-result v6 invoke-virtual {v5, v6}, Landroid/view/accessibility/AccessibilityNodeInfo;->setImportantForAccessibility(Z)V const-string v6, "" .line 673 invoke-virtual {v5, v6}, Landroid/view/accessibility/AccessibilityNodeInfo;->setViewIdResourceName(Ljava/lang/String;)V .line 674 invoke-static {v4}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$1800(Lio/flutter/view/AccessibilityBridge$SemanticsNode;)Ljava/lang/String; move-result-object v6 if-eqz v6, :cond_6 .line 675 invoke-static {v4}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$1800(Lio/flutter/view/AccessibilityBridge$SemanticsNode;)Ljava/lang/String; move-result-object v6 invoke-virtual {v5, v6}, Landroid/view/accessibility/AccessibilityNodeInfo;->setViewIdResourceName(Ljava/lang/String;)V :cond_6 iget-object v6, p0, Lio/flutter/view/AccessibilityBridge;->rootAccessibilityView:Landroid/view/View; .line 678 invoke-virtual {v6}, Landroid/view/View;->getContext()Landroid/content/Context; move-result-object v6 invoke-virtual {v6}, Landroid/content/Context;->getPackageName()Ljava/lang/String; move-result-object v6 invoke-virtual {v5, v6}, Landroid/view/accessibility/AccessibilityNodeInfo;->setPackageName(Ljava/lang/CharSequence;)V const-string v6, "android.view.View" .line 679 invoke-virtual {v5, v6}, Landroid/view/accessibility/AccessibilityNodeInfo;->setClassName(Ljava/lang/CharSequence;)V iget-object v6, p0, Lio/flutter/view/AccessibilityBridge;->rootAccessibilityView:Landroid/view/View; .line 680 invoke-virtual {v5, v6, p1}, Landroid/view/accessibility/AccessibilityNodeInfo;->setSource(Landroid/view/View;I)V .line 681 invoke-static {v4}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$1900(Lio/flutter/view/AccessibilityBridge$SemanticsNode;)Z move-result v6 invoke-virtual {v5, v6}, Landroid/view/accessibility/AccessibilityNodeInfo;->setFocusable(Z)V iget-object v6, p0, Lio/flutter/view/AccessibilityBridge;->inputFocusedSemanticsNode:Lio/flutter/view/AccessibilityBridge$SemanticsNode; if-eqz v6, :cond_8 .line 683 invoke-static {v6}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$000(Lio/flutter/view/AccessibilityBridge$SemanticsNode;)I move-result v6 if-ne v6, p1, :cond_7 move v6, v0 goto :goto_0 :cond_7 move v6, v3 :goto_0 invoke-virtual {v5, v6}, Landroid/view/accessibility/AccessibilityNodeInfo;->setFocused(Z)V :cond_8 iget-object v6, p0, Lio/flutter/view/AccessibilityBridge;->accessibilityFocusedSemanticsNode:Lio/flutter/view/AccessibilityBridge$SemanticsNode; if-eqz v6, :cond_a .line 687 invoke-static {v6}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$000(Lio/flutter/view/AccessibilityBridge$SemanticsNode;)I move-result v6 if-ne v6, p1, :cond_9 move v6, v0 goto :goto_1 :cond_9 move v6, v3 :goto_1 invoke-virtual {v5, v6}, Landroid/view/accessibility/AccessibilityNodeInfo;->setAccessibilityFocused(Z)V .line 690 :cond_a sget-object v6, Lio/flutter/view/AccessibilityBridge$Flag;->IS_TEXT_FIELD:Lio/flutter/view/AccessibilityBridge$Flag; invoke-static {v4, v6}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$2000(Lio/flutter/view/AccessibilityBridge$SemanticsNode;Lio/flutter/view/AccessibilityBridge$Flag;)Z move-result v6 if-eqz v6, :cond_13 .line 691 sget-object v6, Lio/flutter/view/AccessibilityBridge$Flag;->IS_OBSCURED:Lio/flutter/view/AccessibilityBridge$Flag; invoke-static {v4, v6}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$2000(Lio/flutter/view/AccessibilityBridge$SemanticsNode;Lio/flutter/view/AccessibilityBridge$Flag;)Z move-result v6 invoke-virtual {v5, v6}, Landroid/view/accessibility/AccessibilityNodeInfo;->setPassword(Z)V .line 692 sget-object v6, Lio/flutter/view/AccessibilityBridge$Flag;->IS_READ_ONLY:Lio/flutter/view/AccessibilityBridge$Flag; invoke-static {v4, v6}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$2000(Lio/flutter/view/AccessibilityBridge$SemanticsNode;Lio/flutter/view/AccessibilityBridge$Flag;)Z move-result v6 if-nez v6, :cond_b const-string v6, "android.widget.EditText" .line 693 invoke-virtual {v5, v6}, Landroid/view/accessibility/AccessibilityNodeInfo;->setClassName(Ljava/lang/CharSequence;)V .line 696 :cond_b sget-object v6, Lio/flutter/view/AccessibilityBridge$Flag;->IS_READ_ONLY:Lio/flutter/view/AccessibilityBridge$Flag; invoke-static {v4, v6}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$2000(Lio/flutter/view/AccessibilityBridge$SemanticsNode;Lio/flutter/view/AccessibilityBridge$Flag;)Z move-result v6 xor-int/2addr v6, v0 invoke-virtual {v5, v6}, Landroid/view/accessibility/AccessibilityNodeInfo;->setEditable(Z)V .line 697 invoke-static {v4}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$2100(Lio/flutter/view/AccessibilityBridge$SemanticsNode;)I move-result v6 if-eq v6, v2, :cond_c invoke-static {v4}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$2200(Lio/flutter/view/AccessibilityBridge$SemanticsNode;)I move-result v6 if-eq v6, v2, :cond_c .line 699 invoke-static {v4}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$2100(Lio/flutter/view/AccessibilityBridge$SemanticsNode;)I move-result v6 invoke-static {v4}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$2200(Lio/flutter/view/AccessibilityBridge$SemanticsNode;)I move-result v7 .line 698 invoke-virtual {v5, v6, v7}, Landroid/view/accessibility/AccessibilityNodeInfo;->setTextSelection(II)V :cond_c iget-object v6, p0, Lio/flutter/view/AccessibilityBridge;->accessibilityFocusedSemanticsNode:Lio/flutter/view/AccessibilityBridge$SemanticsNode; if-eqz v6, :cond_d .line 706 invoke-static {v6}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$000(Lio/flutter/view/AccessibilityBridge$SemanticsNode;)I move-result v6 if-ne v6, p1, :cond_d .line 707 invoke-virtual {v5, v0}, Landroid/view/accessibility/AccessibilityNodeInfo;->setLiveRegion(I)V .line 713 :cond_d sget-object v6, Lio/flutter/view/AccessibilityBridge$Action;->MOVE_CURSOR_FORWARD_BY_CHARACTER:Lio/flutter/view/AccessibilityBridge$Action; invoke-static {v4, v6}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$2300(Lio/flutter/view/AccessibilityBridge$SemanticsNode;Lio/flutter/view/AccessibilityBridge$Action;)Z move-result v6 const/16 v7, 0x100 if-eqz v6, :cond_e .line 714 invoke-virtual {v5, v7}, Landroid/view/accessibility/AccessibilityNodeInfo;->addAction(I)V move v6, v0 goto :goto_2 :cond_e move v6, v3 .line 717 :goto_2 sget-object v8, Lio/flutter/view/AccessibilityBridge$Action;->MOVE_CURSOR_BACKWARD_BY_CHARACTER:Lio/flutter/view/AccessibilityBridge$Action; invoke-static {v4, v8}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$2300(Lio/flutter/view/AccessibilityBridge$SemanticsNode;Lio/flutter/view/AccessibilityBridge$Action;)Z move-result v8 const/16 v9, 0x200 if-eqz v8, :cond_f .line 718 invoke-virtual {v5, v9}, Landroid/view/accessibility/AccessibilityNodeInfo;->addAction(I)V or-int/lit8 v6, v6, 0x1 .line 721 :cond_f sget-object v8, Lio/flutter/view/AccessibilityBridge$Action;->MOVE_CURSOR_FORWARD_BY_WORD:Lio/flutter/view/AccessibilityBridge$Action; invoke-static {v4, v8}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$2300(Lio/flutter/view/AccessibilityBridge$SemanticsNode;Lio/flutter/view/AccessibilityBridge$Action;)Z move-result v8 if-eqz v8, :cond_10 .line 722 invoke-virtual {v5, v7}, Landroid/view/accessibility/AccessibilityNodeInfo;->addAction(I)V or-int/lit8 v6, v6, 0x2 .line 725 :cond_10 sget-object v7, Lio/flutter/view/AccessibilityBridge$Action;->MOVE_CURSOR_BACKWARD_BY_WORD:Lio/flutter/view/AccessibilityBridge$Action; invoke-static {v4, v7}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$2300(Lio/flutter/view/AccessibilityBridge$SemanticsNode;Lio/flutter/view/AccessibilityBridge$Action;)Z move-result v7 if-eqz v7, :cond_11 .line 726 invoke-virtual {v5, v9}, Landroid/view/accessibility/AccessibilityNodeInfo;->addAction(I)V or-int/lit8 v6, v6, 0x2 .line 729 :cond_11 invoke-virtual {v5, v6}, Landroid/view/accessibility/AccessibilityNodeInfo;->setMovementGranularities(I)V .line 731 invoke-static {v4}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$2400(Lio/flutter/view/AccessibilityBridge$SemanticsNode;)I move-result v6 if-ltz v6, :cond_13 .line 734 invoke-static {v4}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$2500(Lio/flutter/view/AccessibilityBridge$SemanticsNode;)Ljava/lang/String; move-result-object v6 if-nez v6, :cond_12 move v6, v3 goto :goto_3 :cond_12 invoke-static {v4}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$2500(Lio/flutter/view/AccessibilityBridge$SemanticsNode;)Ljava/lang/String; move-result-object v6 invoke-virtual {v6}, Ljava/lang/String;->length()I move-result v6 .line 735 :goto_3 invoke-static {v4}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$2600(Lio/flutter/view/AccessibilityBridge$SemanticsNode;)I invoke-static {v4}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$2400(Lio/flutter/view/AccessibilityBridge$SemanticsNode;)I .line 737 invoke-static {v4}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$2600(Lio/flutter/view/AccessibilityBridge$SemanticsNode;)I move-result v7 sub-int/2addr v6, v7 invoke-static {v4}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$2400(Lio/flutter/view/AccessibilityBridge$SemanticsNode;)I move-result v7 add-int/2addr v6, v7 .line 736 invoke-virtual {v5, v6}, Landroid/view/accessibility/AccessibilityNodeInfo;->setMaxTextLength(I)V .line 744 :cond_13 sget-object v6, Lio/flutter/view/AccessibilityBridge$Action;->SET_SELECTION:Lio/flutter/view/AccessibilityBridge$Action; invoke-static {v4, v6}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$2300(Lio/flutter/view/AccessibilityBridge$SemanticsNode;Lio/flutter/view/AccessibilityBridge$Action;)Z move-result v6 if-eqz v6, :cond_14 const/high16 v6, 0x20000 .line 745 invoke-virtual {v5, v6}, Landroid/view/accessibility/AccessibilityNodeInfo;->addAction(I)V .line 747 :cond_14 sget-object v6, Lio/flutter/view/AccessibilityBridge$Action;->COPY:Lio/flutter/view/AccessibilityBridge$Action; invoke-static {v4, v6}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$2300(Lio/flutter/view/AccessibilityBridge$SemanticsNode;Lio/flutter/view/AccessibilityBridge$Action;)Z move-result v6 if-eqz v6, :cond_15 const/16 v6, 0x4000 .line 748 invoke-virtual {v5, v6}, Landroid/view/accessibility/AccessibilityNodeInfo;->addAction(I)V .line 750 :cond_15 sget-object v6, Lio/flutter/view/AccessibilityBridge$Action;->CUT:Lio/flutter/view/AccessibilityBridge$Action; invoke-static {v4, v6}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$2300(Lio/flutter/view/AccessibilityBridge$SemanticsNode;Lio/flutter/view/AccessibilityBridge$Action;)Z move-result v6 if-eqz v6, :cond_16 .line 751 invoke-virtual {v5, v1}, Landroid/view/accessibility/AccessibilityNodeInfo;->addAction(I)V .line 753 :cond_16 sget-object v1, Lio/flutter/view/AccessibilityBridge$Action;->PASTE:Lio/flutter/view/AccessibilityBridge$Action; invoke-static {v4, v1}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$2300(Lio/flutter/view/AccessibilityBridge$SemanticsNode;Lio/flutter/view/AccessibilityBridge$Action;)Z move-result v1 if-eqz v1, :cond_17 const v1, 0x8000 .line 754 invoke-virtual {v5, v1}, Landroid/view/accessibility/AccessibilityNodeInfo;->addAction(I)V .line 760 :cond_17 sget-object v1, Lio/flutter/view/AccessibilityBridge$Action;->SET_TEXT:Lio/flutter/view/AccessibilityBridge$Action; invoke-static {v4, v1}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$2300(Lio/flutter/view/AccessibilityBridge$SemanticsNode;Lio/flutter/view/AccessibilityBridge$Action;)Z move-result v1 if-eqz v1, :cond_18 const/high16 v1, 0x200000 .line 761 invoke-virtual {v5, v1}, Landroid/view/accessibility/AccessibilityNodeInfo;->addAction(I)V .line 765 :cond_18 sget-object v1, Lio/flutter/view/AccessibilityBridge$Flag;->IS_BUTTON:Lio/flutter/view/AccessibilityBridge$Flag; invoke-static {v4, v1}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$2000(Lio/flutter/view/AccessibilityBridge$SemanticsNode;Lio/flutter/view/AccessibilityBridge$Flag;)Z move-result v1 if-nez v1, :cond_19 sget-object v1, Lio/flutter/view/AccessibilityBridge$Flag;->IS_LINK:Lio/flutter/view/AccessibilityBridge$Flag; invoke-static {v4, v1}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$2000(Lio/flutter/view/AccessibilityBridge$SemanticsNode;Lio/flutter/view/AccessibilityBridge$Flag;)Z move-result v1 if-eqz v1, :cond_1a :cond_19 const-string v1, "android.widget.Button" .line 766 invoke-virtual {v5, v1}, Landroid/view/accessibility/AccessibilityNodeInfo;->setClassName(Ljava/lang/CharSequence;)V .line 768 :cond_1a sget-object v1, Lio/flutter/view/AccessibilityBridge$Flag;->IS_IMAGE:Lio/flutter/view/AccessibilityBridge$Flag; invoke-static {v4, v1}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$2000(Lio/flutter/view/AccessibilityBridge$SemanticsNode;Lio/flutter/view/AccessibilityBridge$Flag;)Z move-result v1 if-eqz v1, :cond_1b const-string v1, "android.widget.ImageView" .line 769 invoke-virtual {v5, v1}, Landroid/view/accessibility/AccessibilityNodeInfo;->setClassName(Ljava/lang/CharSequence;)V .line 773 :cond_1b sget-object v1, Lio/flutter/view/AccessibilityBridge$Action;->DISMISS:Lio/flutter/view/AccessibilityBridge$Action; .line 774 invoke-static {v4, v1}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$2300(Lio/flutter/view/AccessibilityBridge$SemanticsNode;Lio/flutter/view/AccessibilityBridge$Action;)Z move-result v1 if-eqz v1, :cond_1c .line 775 invoke-virtual {v5, v0}, Landroid/view/accessibility/AccessibilityNodeInfo;->setDismissable(Z)V const/high16 v1, 0x100000 .line 776 invoke-virtual {v5, v1}, Landroid/view/accessibility/AccessibilityNodeInfo;->addAction(I)V .line 779 :cond_1c invoke-static {v4}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$2700(Lio/flutter/view/AccessibilityBridge$SemanticsNode;)Lio/flutter/view/AccessibilityBridge$SemanticsNode; move-result-object v1 if-eqz v1, :cond_1d iget-object v1, p0, Lio/flutter/view/AccessibilityBridge;->rootAccessibilityView:Landroid/view/View; .line 783 invoke-static {v4}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$2700(Lio/flutter/view/AccessibilityBridge$SemanticsNode;)Lio/flutter/view/AccessibilityBridge$SemanticsNode; move-result-object v6 invoke-static {v6}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$000(Lio/flutter/view/AccessibilityBridge$SemanticsNode;)I move-result v6 invoke-virtual {v5, v1, v6}, Landroid/view/accessibility/AccessibilityNodeInfo;->setParent(Landroid/view/View;I)V goto :goto_4 :cond_1d iget-object v1, p0, Lio/flutter/view/AccessibilityBridge;->rootAccessibilityView:Landroid/view/View; .line 788 invoke-virtual {v5, v1}, Landroid/view/accessibility/AccessibilityNodeInfo;->setParent(Landroid/view/View;)V .line 791 :goto_4 invoke-static {v4}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$2800(Lio/flutter/view/AccessibilityBridge$SemanticsNode;)I move-result v1 if-eq v1, v2, :cond_1e iget-object v1, p0, Lio/flutter/view/AccessibilityBridge;->rootAccessibilityView:Landroid/view/View; .line 793 invoke-static {v4}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$2800(Lio/flutter/view/AccessibilityBridge$SemanticsNode;)I move-result v6 invoke-virtual {v5, v1, v6}, Landroid/view/accessibility/AccessibilityNodeInfo;->setTraversalAfter(Landroid/view/View;I)V .line 796 :cond_1e invoke-static {v4}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$1700(Lio/flutter/view/AccessibilityBridge$SemanticsNode;)Landroid/graphics/Rect; move-result-object v1 .line 797 invoke-static {v4}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$2700(Lio/flutter/view/AccessibilityBridge$SemanticsNode;)Lio/flutter/view/AccessibilityBridge$SemanticsNode; move-result-object v6 if-eqz v6, :cond_1f .line 798 invoke-static {v4}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$2700(Lio/flutter/view/AccessibilityBridge$SemanticsNode;)Lio/flutter/view/AccessibilityBridge$SemanticsNode; move-result-object v6 invoke-static {v6}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$1700(Lio/flutter/view/AccessibilityBridge$SemanticsNode;)Landroid/graphics/Rect; move-result-object v6 .line 799 new-instance v7, Landroid/graphics/Rect; invoke-direct {v7, v1}, Landroid/graphics/Rect;->(Landroid/graphics/Rect;)V .line 800 iget v8, v6, Landroid/graphics/Rect;->left:I neg-int v8, v8 iget v6, v6, Landroid/graphics/Rect;->top:I neg-int v6, v6 invoke-virtual {v7, v8, v6}, Landroid/graphics/Rect;->offset(II)V .line 801 invoke-virtual {v5, v7}, Landroid/view/accessibility/AccessibilityNodeInfo;->setBoundsInParent(Landroid/graphics/Rect;)V goto :goto_5 .line 803 :cond_1f invoke-virtual {v5, v1}, Landroid/view/accessibility/AccessibilityNodeInfo;->setBoundsInParent(Landroid/graphics/Rect;)V .line 805 :goto_5 invoke-direct {p0, v1}, Lio/flutter/view/AccessibilityBridge;->getBoundsInScreen(Landroid/graphics/Rect;)Landroid/graphics/Rect; move-result-object v1 .line 806 invoke-virtual {v5, v1}, Landroid/view/accessibility/AccessibilityNodeInfo;->setBoundsInScreen(Landroid/graphics/Rect;)V .line 807 invoke-virtual {v5, v0}, Landroid/view/accessibility/AccessibilityNodeInfo;->setVisibleToUser(Z)V .line 808 sget-object v1, Lio/flutter/view/AccessibilityBridge$Flag;->HAS_ENABLED_STATE:Lio/flutter/view/AccessibilityBridge$Flag; .line 809 invoke-static {v4, v1}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$2000(Lio/flutter/view/AccessibilityBridge$SemanticsNode;Lio/flutter/view/AccessibilityBridge$Flag;)Z move-result v1 if-eqz v1, :cond_21 sget-object v1, Lio/flutter/view/AccessibilityBridge$Flag;->IS_ENABLED:Lio/flutter/view/AccessibilityBridge$Flag; invoke-static {v4, v1}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$2000(Lio/flutter/view/AccessibilityBridge$SemanticsNode;Lio/flutter/view/AccessibilityBridge$Flag;)Z move-result v1 if-eqz v1, :cond_20 goto :goto_6 :cond_20 move v1, v3 goto :goto_7 :cond_21 :goto_6 move v1, v0 .line 808 :goto_7 invoke-virtual {v5, v1}, Landroid/view/accessibility/AccessibilityNodeInfo;->setEnabled(Z)V .line 811 sget-object v1, Lio/flutter/view/AccessibilityBridge$Action;->TAP:Lio/flutter/view/AccessibilityBridge$Action; invoke-static {v4, v1}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$2300(Lio/flutter/view/AccessibilityBridge$SemanticsNode;Lio/flutter/view/AccessibilityBridge$Action;)Z move-result v1 if-eqz v1, :cond_23 .line 812 invoke-static {v4}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$2900(Lio/flutter/view/AccessibilityBridge$SemanticsNode;)Lio/flutter/view/AccessibilityBridge$CustomAccessibilityAction; move-result-object v1 const/16 v6, 0x10 if-eqz v1, :cond_22 .line 813 new-instance v1, Landroid/view/accessibility/AccessibilityNodeInfo$AccessibilityAction; .line 815 invoke-static {v4}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$2900(Lio/flutter/view/AccessibilityBridge$SemanticsNode;)Lio/flutter/view/AccessibilityBridge$CustomAccessibilityAction; move-result-object v7 invoke-static {v7}, Lio/flutter/view/AccessibilityBridge$CustomAccessibilityAction;->access$3000(Lio/flutter/view/AccessibilityBridge$CustomAccessibilityAction;)Ljava/lang/String; move-result-object v7 invoke-direct {v1, v6, v7}, Landroid/view/accessibility/AccessibilityNodeInfo$AccessibilityAction;->(ILjava/lang/CharSequence;)V .line 813 invoke-virtual {v5, v1}, Landroid/view/accessibility/AccessibilityNodeInfo;->addAction(Landroid/view/accessibility/AccessibilityNodeInfo$AccessibilityAction;)V .line 816 invoke-virtual {v5, v0}, Landroid/view/accessibility/AccessibilityNodeInfo;->setClickable(Z)V goto :goto_8 .line 818 :cond_22 invoke-virtual {v5, v6}, Landroid/view/accessibility/AccessibilityNodeInfo;->addAction(I)V .line 819 invoke-virtual {v5, v0}, Landroid/view/accessibility/AccessibilityNodeInfo;->setClickable(Z)V .line 822 :cond_23 :goto_8 sget-object v1, Lio/flutter/view/AccessibilityBridge$Action;->LONG_PRESS:Lio/flutter/view/AccessibilityBridge$Action; invoke-static {v4, v1}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$2300(Lio/flutter/view/AccessibilityBridge$SemanticsNode;Lio/flutter/view/AccessibilityBridge$Action;)Z move-result v1 if-eqz v1, :cond_25 .line 823 invoke-static {v4}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$3100(Lio/flutter/view/AccessibilityBridge$SemanticsNode;)Lio/flutter/view/AccessibilityBridge$CustomAccessibilityAction; move-result-object v1 const/16 v6, 0x20 if-eqz v1, :cond_24 .line 824 new-instance v1, Landroid/view/accessibility/AccessibilityNodeInfo$AccessibilityAction; .line 826 invoke-static {v4}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$3100(Lio/flutter/view/AccessibilityBridge$SemanticsNode;)Lio/flutter/view/AccessibilityBridge$CustomAccessibilityAction; move-result-object v7 invoke-static {v7}, Lio/flutter/view/AccessibilityBridge$CustomAccessibilityAction;->access$3000(Lio/flutter/view/AccessibilityBridge$CustomAccessibilityAction;)Ljava/lang/String; move-result-object v7 invoke-direct {v1, v6, v7}, Landroid/view/accessibility/AccessibilityNodeInfo$AccessibilityAction;->(ILjava/lang/CharSequence;)V .line 824 invoke-virtual {v5, v1}, Landroid/view/accessibility/AccessibilityNodeInfo;->addAction(Landroid/view/accessibility/AccessibilityNodeInfo$AccessibilityAction;)V .line 827 invoke-virtual {v5, v0}, Landroid/view/accessibility/AccessibilityNodeInfo;->setLongClickable(Z)V goto :goto_9 .line 829 :cond_24 invoke-virtual {v5, v6}, Landroid/view/accessibility/AccessibilityNodeInfo;->addAction(I)V .line 830 invoke-virtual {v5, v0}, Landroid/view/accessibility/AccessibilityNodeInfo;->setLongClickable(Z)V .line 833 :cond_25 :goto_9 sget-object v1, Lio/flutter/view/AccessibilityBridge$Action;->SCROLL_LEFT:Lio/flutter/view/AccessibilityBridge$Action; invoke-static {v4, v1}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$2300(Lio/flutter/view/AccessibilityBridge$SemanticsNode;Lio/flutter/view/AccessibilityBridge$Action;)Z move-result v1 const/16 v6, 0x2000 const/16 v7, 0x1000 if-nez v1, :cond_26 sget-object v1, Lio/flutter/view/AccessibilityBridge$Action;->SCROLL_UP:Lio/flutter/view/AccessibilityBridge$Action; .line 834 invoke-static {v4, v1}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$2300(Lio/flutter/view/AccessibilityBridge$SemanticsNode;Lio/flutter/view/AccessibilityBridge$Action;)Z move-result v1 if-nez v1, :cond_26 sget-object v1, Lio/flutter/view/AccessibilityBridge$Action;->SCROLL_RIGHT:Lio/flutter/view/AccessibilityBridge$Action; .line 835 invoke-static {v4, v1}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$2300(Lio/flutter/view/AccessibilityBridge$SemanticsNode;Lio/flutter/view/AccessibilityBridge$Action;)Z move-result v1 if-nez v1, :cond_26 sget-object v1, Lio/flutter/view/AccessibilityBridge$Action;->SCROLL_DOWN:Lio/flutter/view/AccessibilityBridge$Action; .line 836 invoke-static {v4, v1}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$2300(Lio/flutter/view/AccessibilityBridge$SemanticsNode;Lio/flutter/view/AccessibilityBridge$Action;)Z move-result v1 if-eqz v1, :cond_2f .line 837 :cond_26 invoke-virtual {v5, v0}, Landroid/view/accessibility/AccessibilityNodeInfo;->setScrollable(Z)V .line 853 sget-object v1, Lio/flutter/view/AccessibilityBridge$Flag;->HAS_IMPLICIT_SCROLLING:Lio/flutter/view/AccessibilityBridge$Flag; invoke-static {v4, v1}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$2000(Lio/flutter/view/AccessibilityBridge$SemanticsNode;Lio/flutter/view/AccessibilityBridge$Flag;)Z move-result v1 if-eqz v1, :cond_2b .line 854 sget-object v1, Lio/flutter/view/AccessibilityBridge$Action;->SCROLL_LEFT:Lio/flutter/view/AccessibilityBridge$Action; invoke-static {v4, v1}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$2300(Lio/flutter/view/AccessibilityBridge$SemanticsNode;Lio/flutter/view/AccessibilityBridge$Action;)Z move-result v1 if-nez v1, :cond_29 sget-object v1, Lio/flutter/view/AccessibilityBridge$Action;->SCROLL_RIGHT:Lio/flutter/view/AccessibilityBridge$Action; .line 855 invoke-static {v4, v1}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$2300(Lio/flutter/view/AccessibilityBridge$SemanticsNode;Lio/flutter/view/AccessibilityBridge$Action;)Z move-result v1 if-eqz v1, :cond_27 goto :goto_a .line 869 :cond_27 invoke-direct {p0, v4}, Lio/flutter/view/AccessibilityBridge;->shouldSetCollectionInfo(Lio/flutter/view/AccessibilityBridge$SemanticsNode;)Z move-result v1 if-eqz v1, :cond_28 .line 872 invoke-static {v4}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$1400(Lio/flutter/view/AccessibilityBridge$SemanticsNode;)I move-result v1 .line 871 invoke-static {v1, v3, v3}, Landroid/view/accessibility/AccessibilityNodeInfo$CollectionInfo;->obtain(IIZ)Landroid/view/accessibility/AccessibilityNodeInfo$CollectionInfo; move-result-object v1 .line 870 invoke-virtual {v5, v1}, Landroid/view/accessibility/AccessibilityNodeInfo;->setCollectionInfo(Landroid/view/accessibility/AccessibilityNodeInfo$CollectionInfo;)V goto :goto_b :cond_28 const-string v1, "android.widget.ScrollView" .line 877 invoke-virtual {v5, v1}, Landroid/view/accessibility/AccessibilityNodeInfo;->setClassName(Ljava/lang/CharSequence;)V goto :goto_b .line 857 :cond_29 :goto_a invoke-direct {p0, v4}, Lio/flutter/view/AccessibilityBridge;->shouldSetCollectionInfo(Lio/flutter/view/AccessibilityBridge$SemanticsNode;)Z move-result v1 if-eqz v1, :cond_2a .line 861 invoke-static {v4}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$1400(Lio/flutter/view/AccessibilityBridge$SemanticsNode;)I move-result v1 .line 859 invoke-static {v3, v1, v3}, Landroid/view/accessibility/AccessibilityNodeInfo$CollectionInfo;->obtain(IIZ)Landroid/view/accessibility/AccessibilityNodeInfo$CollectionInfo; move-result-object v1 .line 858 invoke-virtual {v5, v1}, Landroid/view/accessibility/AccessibilityNodeInfo;->setCollectionInfo(Landroid/view/accessibility/AccessibilityNodeInfo$CollectionInfo;)V goto :goto_b :cond_2a const-string v1, "android.widget.HorizontalScrollView" .line 865 invoke-virtual {v5, v1}, Landroid/view/accessibility/AccessibilityNodeInfo;->setClassName(Ljava/lang/CharSequence;)V .line 884 :cond_2b :goto_b sget-object v1, Lio/flutter/view/AccessibilityBridge$Action;->SCROLL_LEFT:Lio/flutter/view/AccessibilityBridge$Action; invoke-static {v4, v1}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$2300(Lio/flutter/view/AccessibilityBridge$SemanticsNode;Lio/flutter/view/AccessibilityBridge$Action;)Z move-result v1 if-nez v1, :cond_2c sget-object v1, Lio/flutter/view/AccessibilityBridge$Action;->SCROLL_UP:Lio/flutter/view/AccessibilityBridge$Action; .line 885 invoke-static {v4, v1}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$2300(Lio/flutter/view/AccessibilityBridge$SemanticsNode;Lio/flutter/view/AccessibilityBridge$Action;)Z move-result v1 if-eqz v1, :cond_2d .line 886 :cond_2c invoke-virtual {v5, v7}, Landroid/view/accessibility/AccessibilityNodeInfo;->addAction(I)V .line 888 :cond_2d sget-object v1, Lio/flutter/view/AccessibilityBridge$Action;->SCROLL_RIGHT:Lio/flutter/view/AccessibilityBridge$Action; invoke-static {v4, v1}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$2300(Lio/flutter/view/AccessibilityBridge$SemanticsNode;Lio/flutter/view/AccessibilityBridge$Action;)Z move-result v1 if-nez v1, :cond_2e sget-object v1, Lio/flutter/view/AccessibilityBridge$Action;->SCROLL_DOWN:Lio/flutter/view/AccessibilityBridge$Action; .line 889 invoke-static {v4, v1}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$2300(Lio/flutter/view/AccessibilityBridge$SemanticsNode;Lio/flutter/view/AccessibilityBridge$Action;)Z move-result v1 if-eqz v1, :cond_2f .line 890 :cond_2e invoke-virtual {v5, v6}, Landroid/view/accessibility/AccessibilityNodeInfo;->addAction(I)V .line 893 :cond_2f sget-object v1, Lio/flutter/view/AccessibilityBridge$Action;->INCREASE:Lio/flutter/view/AccessibilityBridge$Action; invoke-static {v4, v1}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$2300(Lio/flutter/view/AccessibilityBridge$SemanticsNode;Lio/flutter/view/AccessibilityBridge$Action;)Z move-result v1 if-nez v1, :cond_30 sget-object v1, Lio/flutter/view/AccessibilityBridge$Action;->DECREASE:Lio/flutter/view/AccessibilityBridge$Action; invoke-static {v4, v1}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$2300(Lio/flutter/view/AccessibilityBridge$SemanticsNode;Lio/flutter/view/AccessibilityBridge$Action;)Z move-result v1 if-eqz v1, :cond_32 :cond_30 const-string v1, "android.widget.SeekBar" .line 896 invoke-virtual {v5, v1}, Landroid/view/accessibility/AccessibilityNodeInfo;->setClassName(Ljava/lang/CharSequence;)V .line 897 sget-object v1, Lio/flutter/view/AccessibilityBridge$Action;->INCREASE:Lio/flutter/view/AccessibilityBridge$Action; invoke-static {v4, v1}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$2300(Lio/flutter/view/AccessibilityBridge$SemanticsNode;Lio/flutter/view/AccessibilityBridge$Action;)Z move-result v1 if-eqz v1, :cond_31 .line 898 invoke-virtual {v5, v7}, Landroid/view/accessibility/AccessibilityNodeInfo;->addAction(I)V .line 900 :cond_31 sget-object v1, Lio/flutter/view/AccessibilityBridge$Action;->DECREASE:Lio/flutter/view/AccessibilityBridge$Action; invoke-static {v4, v1}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$2300(Lio/flutter/view/AccessibilityBridge$SemanticsNode;Lio/flutter/view/AccessibilityBridge$Action;)Z move-result v1 if-eqz v1, :cond_32 .line 901 invoke-virtual {v5, v6}, Landroid/view/accessibility/AccessibilityNodeInfo;->addAction(I)V .line 904 :cond_32 sget-object v1, Lio/flutter/view/AccessibilityBridge$Flag;->IS_LIVE_REGION:Lio/flutter/view/AccessibilityBridge$Flag; invoke-static {v4, v1}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$2000(Lio/flutter/view/AccessibilityBridge$SemanticsNode;Lio/flutter/view/AccessibilityBridge$Flag;)Z move-result v1 if-eqz v1, :cond_33 .line 906 invoke-virtual {v5, v0}, Landroid/view/accessibility/AccessibilityNodeInfo;->setLiveRegion(I)V .line 911 :cond_33 sget-object v1, Lio/flutter/view/AccessibilityBridge$Flag;->IS_TEXT_FIELD:Lio/flutter/view/AccessibilityBridge$Flag; invoke-static {v4, v1}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$2000(Lio/flutter/view/AccessibilityBridge$SemanticsNode;Lio/flutter/view/AccessibilityBridge$Flag;)Z move-result v1 if-eqz v1, :cond_34 .line 912 invoke-static {v4}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$3200(Lio/flutter/view/AccessibilityBridge$SemanticsNode;)Ljava/lang/CharSequence; move-result-object v1 invoke-virtual {v5, v1}, Landroid/view/accessibility/AccessibilityNodeInfo;->setText(Ljava/lang/CharSequence;)V .line 914 invoke-static {v4}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$3300(Lio/flutter/view/AccessibilityBridge$SemanticsNode;)Ljava/lang/CharSequence; move-result-object v1 invoke-virtual {v5, v1}, Landroid/view/accessibility/AccessibilityNodeInfo;->setHintText(Ljava/lang/CharSequence;)V goto :goto_c .line 916 :cond_34 sget-object v1, Lio/flutter/view/AccessibilityBridge$Flag;->SCOPES_ROUTE:Lio/flutter/view/AccessibilityBridge$Flag; invoke-static {v4, v1}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$2000(Lio/flutter/view/AccessibilityBridge$SemanticsNode;Lio/flutter/view/AccessibilityBridge$Flag;)Z move-result v1 if-nez v1, :cond_35 .line 917 invoke-static {v4}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$3400(Lio/flutter/view/AccessibilityBridge$SemanticsNode;)Ljava/lang/CharSequence; move-result-object v1 if-eqz v1, :cond_35 .line 927 invoke-virtual {v5, v1}, Landroid/view/accessibility/AccessibilityNodeInfo;->setContentDescription(Ljava/lang/CharSequence;)V .line 932 :cond_35 :goto_c invoke-static {v4}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$3500(Lio/flutter/view/AccessibilityBridge$SemanticsNode;)Ljava/lang/String; move-result-object v1 if-eqz v1, :cond_36 .line 933 invoke-static {v4}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$3500(Lio/flutter/view/AccessibilityBridge$SemanticsNode;)Ljava/lang/String; move-result-object v1 invoke-virtual {v5, v1}, Landroid/view/accessibility/AccessibilityNodeInfo;->setTooltipText(Ljava/lang/CharSequence;)V .line 937 :cond_36 sget-object v1, Lio/flutter/view/AccessibilityBridge$Flag;->HAS_CHECKED_STATE:Lio/flutter/view/AccessibilityBridge$Flag; invoke-static {v4, v1}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$2000(Lio/flutter/view/AccessibilityBridge$SemanticsNode;Lio/flutter/view/AccessibilityBridge$Flag;)Z move-result v1 .line 938 sget-object v6, Lio/flutter/view/AccessibilityBridge$Flag;->HAS_TOGGLED_STATE:Lio/flutter/view/AccessibilityBridge$Flag; invoke-static {v4, v6}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$2000(Lio/flutter/view/AccessibilityBridge$SemanticsNode;Lio/flutter/view/AccessibilityBridge$Flag;)Z move-result v6 if-nez v1, :cond_38 if-eqz v6, :cond_37 goto :goto_d :cond_37 move v0, v3 .line 942 :cond_38 :goto_d invoke-virtual {v5, v0}, Landroid/view/accessibility/AccessibilityNodeInfo;->setCheckable(Z)V if-eqz v1, :cond_3a .line 944 sget-object v0, Lio/flutter/view/AccessibilityBridge$Flag;->IS_CHECKED:Lio/flutter/view/AccessibilityBridge$Flag; invoke-static {v4, v0}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$2000(Lio/flutter/view/AccessibilityBridge$SemanticsNode;Lio/flutter/view/AccessibilityBridge$Flag;)Z move-result v0 invoke-virtual {v5, v0}, Landroid/view/accessibility/AccessibilityNodeInfo;->setChecked(Z)V .line 945 sget-object v0, Lio/flutter/view/AccessibilityBridge$Flag;->IS_IN_MUTUALLY_EXCLUSIVE_GROUP:Lio/flutter/view/AccessibilityBridge$Flag; invoke-static {v4, v0}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$2000(Lio/flutter/view/AccessibilityBridge$SemanticsNode;Lio/flutter/view/AccessibilityBridge$Flag;)Z move-result v0 if-eqz v0, :cond_39 const-string v0, "android.widget.RadioButton" .line 946 invoke-virtual {v5, v0}, Landroid/view/accessibility/AccessibilityNodeInfo;->setClassName(Ljava/lang/CharSequence;)V goto :goto_e :cond_39 const-string v0, "android.widget.CheckBox" .line 948 invoke-virtual {v5, v0}, Landroid/view/accessibility/AccessibilityNodeInfo;->setClassName(Ljava/lang/CharSequence;)V goto :goto_e :cond_3a if-eqz v6, :cond_3b .line 951 sget-object v0, Lio/flutter/view/AccessibilityBridge$Flag;->IS_TOGGLED:Lio/flutter/view/AccessibilityBridge$Flag; invoke-static {v4, v0}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$2000(Lio/flutter/view/AccessibilityBridge$SemanticsNode;Lio/flutter/view/AccessibilityBridge$Flag;)Z move-result v0 invoke-virtual {v5, v0}, Landroid/view/accessibility/AccessibilityNodeInfo;->setChecked(Z)V const-string v0, "android.widget.Switch" .line 952 invoke-virtual {v5, v0}, Landroid/view/accessibility/AccessibilityNodeInfo;->setClassName(Ljava/lang/CharSequence;)V .line 954 :cond_3b :goto_e sget-object v0, Lio/flutter/view/AccessibilityBridge$Flag;->IS_SELECTED:Lio/flutter/view/AccessibilityBridge$Flag; invoke-static {v4, v0}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$2000(Lio/flutter/view/AccessibilityBridge$SemanticsNode;Lio/flutter/view/AccessibilityBridge$Flag;)Z move-result v0 invoke-virtual {v5, v0}, Landroid/view/accessibility/AccessibilityNodeInfo;->setSelected(Z)V .line 958 sget-object v0, Lio/flutter/view/AccessibilityBridge$Flag;->IS_HEADER:Lio/flutter/view/AccessibilityBridge$Flag; invoke-static {v4, v0}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$2000(Lio/flutter/view/AccessibilityBridge$SemanticsNode;Lio/flutter/view/AccessibilityBridge$Flag;)Z move-result v0 invoke-virtual {v5, v0}, Landroid/view/accessibility/AccessibilityNodeInfo;->setHeading(Z)V iget-object v0, p0, Lio/flutter/view/AccessibilityBridge;->accessibilityFocusedSemanticsNode:Lio/flutter/view/AccessibilityBridge$SemanticsNode; if-eqz v0, :cond_3c .line 963 invoke-static {v0}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$000(Lio/flutter/view/AccessibilityBridge$SemanticsNode;)I move-result v0 if-ne v0, p1, :cond_3c const/16 p1, 0x80 .line 964 invoke-virtual {v5, p1}, Landroid/view/accessibility/AccessibilityNodeInfo;->addAction(I)V goto :goto_f :cond_3c const/16 p1, 0x40 .line 966 invoke-virtual {v5, p1}, Landroid/view/accessibility/AccessibilityNodeInfo;->addAction(I)V .line 971 :goto_f invoke-static {v4}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$3600(Lio/flutter/view/AccessibilityBridge$SemanticsNode;)Ljava/util/List; move-result-object p1 if-eqz p1, :cond_3d .line 972 invoke-static {v4}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$3600(Lio/flutter/view/AccessibilityBridge$SemanticsNode;)Ljava/util/List; move-result-object p1 invoke-interface {p1}, Ljava/util/List;->iterator()Ljava/util/Iterator; move-result-object p1 :goto_10 invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z move-result v0 if-eqz v0, :cond_3d invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object; move-result-object v0 check-cast v0, Lio/flutter/view/AccessibilityBridge$CustomAccessibilityAction; .line 973 new-instance v1, Landroid/view/accessibility/AccessibilityNodeInfo$AccessibilityAction; .line 974 invoke-static {v0}, Lio/flutter/view/AccessibilityBridge$CustomAccessibilityAction;->access$3700(Lio/flutter/view/AccessibilityBridge$CustomAccessibilityAction;)I move-result v3 invoke-static {v0}, Lio/flutter/view/AccessibilityBridge$CustomAccessibilityAction;->access$3800(Lio/flutter/view/AccessibilityBridge$CustomAccessibilityAction;)Ljava/lang/String; move-result-object v0 invoke-direct {v1, v3, v0}, Landroid/view/accessibility/AccessibilityNodeInfo$AccessibilityAction;->(ILjava/lang/CharSequence;)V .line 973 invoke-virtual {v5, v1}, Landroid/view/accessibility/AccessibilityNodeInfo;->addAction(Landroid/view/accessibility/AccessibilityNodeInfo$AccessibilityAction;)V goto :goto_10 .line 979 :cond_3d invoke-static {v4}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$3900(Lio/flutter/view/AccessibilityBridge$SemanticsNode;)Ljava/util/List; move-result-object p1 invoke-interface {p1}, Ljava/util/List;->iterator()Ljava/util/Iterator; move-result-object p1 :goto_11 invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z move-result v0 if-eqz v0, :cond_40 invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object; move-result-object v0 check-cast v0, Lio/flutter/view/AccessibilityBridge$SemanticsNode; .line 980 sget-object v1, Lio/flutter/view/AccessibilityBridge$Flag;->IS_HIDDEN:Lio/flutter/view/AccessibilityBridge$Flag; invoke-static {v0, v1}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$2000(Lio/flutter/view/AccessibilityBridge$SemanticsNode;Lio/flutter/view/AccessibilityBridge$Flag;)Z move-result v1 if-eqz v1, :cond_3e goto :goto_11 .line 983 :cond_3e invoke-static {v0}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$1600(Lio/flutter/view/AccessibilityBridge$SemanticsNode;)I move-result v1 if-eq v1, v2, :cond_3f iget-object v1, p0, Lio/flutter/view/AccessibilityBridge;->platformViewsAccessibilityDelegate:Lio/flutter/plugin/platform/PlatformViewsAccessibilityDelegate; .line 985 invoke-static {v0}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$1600(Lio/flutter/view/AccessibilityBridge$SemanticsNode;)I move-result v3 invoke-interface {v1, v3}, Lio/flutter/plugin/platform/PlatformViewsAccessibilityDelegate;->getPlatformViewById(I)Landroid/view/View; move-result-object v1 iget-object v3, p0, Lio/flutter/view/AccessibilityBridge;->platformViewsAccessibilityDelegate:Lio/flutter/plugin/platform/PlatformViewsAccessibilityDelegate; .line 994 invoke-static {v0}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$1600(Lio/flutter/view/AccessibilityBridge$SemanticsNode;)I move-result v4 invoke-interface {v3, v4}, Lio/flutter/plugin/platform/PlatformViewsAccessibilityDelegate;->usesVirtualDisplay(I)Z move-result v3 if-nez v3, :cond_3f .line 995 invoke-virtual {v5, v1}, Landroid/view/accessibility/AccessibilityNodeInfo;->addChild(Landroid/view/View;)V goto :goto_11 :cond_3f iget-object v1, p0, Lio/flutter/view/AccessibilityBridge;->rootAccessibilityView:Landroid/view/View; .line 999 invoke-static {v0}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$000(Lio/flutter/view/AccessibilityBridge$SemanticsNode;)I move-result v0 invoke-virtual {v5, v1, v0}, Landroid/view/accessibility/AccessibilityNodeInfo;->addChild(Landroid/view/View;I)V goto :goto_11 :cond_40 return-object v5 .end method .method public externalViewRequestSendAccessibilityEvent(Landroid/view/View;Landroid/view/View;Landroid/view/accessibility/AccessibilityEvent;)Z .locals 1 iget-object v0, p0, Lio/flutter/view/AccessibilityBridge;->accessibilityViewEmbedder:Lio/flutter/view/AccessibilityViewEmbedder; .line 2982 invoke-virtual {v0, p1, p2, p3}, Lio/flutter/view/AccessibilityViewEmbedder;->requestSendAccessibilityEvent(Landroid/view/View;Landroid/view/View;Landroid/view/accessibility/AccessibilityEvent;)Z move-result p2 const/4 v0, 0x0 if-nez p2, :cond_0 return v0 :cond_0 iget-object p2, p0, Lio/flutter/view/AccessibilityBridge;->accessibilityViewEmbedder:Lio/flutter/view/AccessibilityViewEmbedder; .line 2986 invoke-virtual {p2, p1, p3}, Lio/flutter/view/AccessibilityViewEmbedder;->getRecordFlutterId(Landroid/view/View;Landroid/view/accessibility/AccessibilityRecord;)Ljava/lang/Integer; move-result-object p1 if-nez p1, :cond_1 return v0 .line 2990 :cond_1 invoke-virtual {p3}, Landroid/view/accessibility/AccessibilityEvent;->getEventType()I move-result p2 const/16 p3, 0x8 const/4 v0, 0x0 if-eq p2, p3, :cond_5 const/16 p3, 0x80 if-eq p2, p3, :cond_4 const p3, 0x8000 if-eq p2, p3, :cond_3 const/high16 p1, 0x10000 if-eq p2, p1, :cond_2 goto :goto_0 :cond_2 iput-object v0, p0, Lio/flutter/view/AccessibilityBridge;->embeddedInputFocusedNodeId:Ljava/lang/Integer; iput-object v0, p0, Lio/flutter/view/AccessibilityBridge;->embeddedAccessibilityFocusedNodeId:Ljava/lang/Integer; goto :goto_0 :cond_3 iput-object p1, p0, Lio/flutter/view/AccessibilityBridge;->embeddedAccessibilityFocusedNodeId:Ljava/lang/Integer; iput-object v0, p0, Lio/flutter/view/AccessibilityBridge;->accessibilityFocusedSemanticsNode:Lio/flutter/view/AccessibilityBridge$SemanticsNode; goto :goto_0 :cond_4 iput-object v0, p0, Lio/flutter/view/AccessibilityBridge;->hoveredObject:Lio/flutter/view/AccessibilityBridge$SemanticsNode; goto :goto_0 :cond_5 iput-object p1, p0, Lio/flutter/view/AccessibilityBridge;->embeddedInputFocusedNodeId:Ljava/lang/Integer; iput-object v0, p0, Lio/flutter/view/AccessibilityBridge;->inputFocusedSemanticsNode:Lio/flutter/view/AccessibilityBridge$SemanticsNode; :goto_0 const/4 p0, 0x1 return p0 .end method .method public findFocus(I)Landroid/view/accessibility/AccessibilityNodeInfo; .locals 1 const/4 v0, 0x1 if-eq p1, v0, :cond_0 const/4 v0, 0x2 if-eq p1, v0, :cond_2 goto :goto_0 :cond_0 iget-object p1, p0, Lio/flutter/view/AccessibilityBridge;->inputFocusedSemanticsNode:Lio/flutter/view/AccessibilityBridge$SemanticsNode; if-eqz p1, :cond_1 .line 1453 invoke-static {p1}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$000(Lio/flutter/view/AccessibilityBridge$SemanticsNode;)I move-result p1 invoke-virtual {p0, p1}, Lio/flutter/view/AccessibilityBridge;->createAccessibilityNodeInfo(I)Landroid/view/accessibility/AccessibilityNodeInfo; move-result-object p0 return-object p0 :cond_1 iget-object p1, p0, Lio/flutter/view/AccessibilityBridge;->embeddedInputFocusedNodeId:Ljava/lang/Integer; if-eqz p1, :cond_2 .line 1456 invoke-virtual {p1}, Ljava/lang/Integer;->intValue()I move-result p1 invoke-virtual {p0, p1}, Lio/flutter/view/AccessibilityBridge;->createAccessibilityNodeInfo(I)Landroid/view/accessibility/AccessibilityNodeInfo; move-result-object p0 return-object p0 :cond_2 iget-object p1, p0, Lio/flutter/view/AccessibilityBridge;->accessibilityFocusedSemanticsNode:Lio/flutter/view/AccessibilityBridge$SemanticsNode; if-eqz p1, :cond_3 .line 1463 invoke-static {p1}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$000(Lio/flutter/view/AccessibilityBridge$SemanticsNode;)I move-result p1 invoke-virtual {p0, p1}, Lio/flutter/view/AccessibilityBridge;->createAccessibilityNodeInfo(I)Landroid/view/accessibility/AccessibilityNodeInfo; move-result-object p0 return-object p0 :cond_3 iget-object p1, p0, Lio/flutter/view/AccessibilityBridge;->embeddedAccessibilityFocusedNodeId:Ljava/lang/Integer; if-eqz p1, :cond_4 .line 1466 invoke-virtual {p1}, Ljava/lang/Integer;->intValue()I move-result p1 invoke-virtual {p0, p1}, Lio/flutter/view/AccessibilityBridge;->createAccessibilityNodeInfo(I)Landroid/view/accessibility/AccessibilityNodeInfo; move-result-object p0 return-object p0 :cond_4 :goto_0 const/4 p0, 0x0 return-object p0 .end method .method public getAccessibleNavigation()Z .locals 0 iget-boolean p0, p0, Lio/flutter/view/AccessibilityBridge;->accessibleNavigation:Z return p0 .end method .method public getHoveredObjectId()I .locals 0 iget-object p0, p0, Lio/flutter/view/AccessibilityBridge;->hoveredObject:Lio/flutter/view/AccessibilityBridge$SemanticsNode; .line 244 invoke-static {p0}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$000(Lio/flutter/view/AccessibilityBridge$SemanticsNode;)I move-result p0 return p0 .end method .method public isAccessibilityEnabled()Z .locals 0 iget-object p0, p0, Lio/flutter/view/AccessibilityBridge;->accessibilityManager:Landroid/view/accessibility/AccessibilityManager; .line 520 invoke-virtual {p0}, Landroid/view/accessibility/AccessibilityManager;->isEnabled()Z move-result p0 return p0 .end method .method public isTouchExplorationEnabled()Z .locals 0 iget-object p0, p0, Lio/flutter/view/AccessibilityBridge;->accessibilityManager:Landroid/view/accessibility/AccessibilityManager; .line 525 invoke-virtual {p0}, Landroid/view/accessibility/AccessibilityManager;->isTouchExplorationEnabled()Z move-result p0 return p0 .end method .method public obtainAccessibilityEvent(I)Landroid/view/accessibility/AccessibilityEvent; .locals 0 .line 2031 invoke-static {p1}, Landroid/view/accessibility/AccessibilityEvent;->obtain(I)Landroid/view/accessibility/AccessibilityEvent; move-result-object p0 return-object p0 .end method .method public obtainAccessibilityNodeInfo(Landroid/view/View;)Landroid/view/accessibility/AccessibilityNodeInfo; .locals 0 .line 580 invoke-static {p1}, Landroid/view/accessibility/AccessibilityNodeInfo;->obtain(Landroid/view/View;)Landroid/view/accessibility/AccessibilityNodeInfo; move-result-object p0 return-object p0 .end method .method public obtainAccessibilityNodeInfo(Landroid/view/View;I)Landroid/view/accessibility/AccessibilityNodeInfo; .locals 0 .line 585 invoke-static {p1, p2}, Landroid/view/accessibility/AccessibilityNodeInfo;->obtain(Landroid/view/View;I)Landroid/view/accessibility/AccessibilityNodeInfo; move-result-object p0 return-object p0 .end method .method public onAccessibilityHoverEvent(Landroid/view/MotionEvent;)Z .locals 1 const/4 v0, 0x0 .line 1534 invoke-virtual {p0, p1, v0}, Lio/flutter/view/AccessibilityBridge;->onAccessibilityHoverEvent(Landroid/view/MotionEvent;Z)Z move-result p0 return p0 .end method .method public onAccessibilityHoverEvent(Landroid/view/MotionEvent;Z)Z .locals 6 iget-object v0, p0, Lio/flutter/view/AccessibilityBridge;->accessibilityManager:Landroid/view/accessibility/AccessibilityManager; .line 1552 invoke-virtual {v0}, Landroid/view/accessibility/AccessibilityManager;->isTouchExplorationEnabled()Z move-result v0 const/4 v1, 0x0 if-nez v0, :cond_0 return v1 :cond_0 iget-object v0, p0, Lio/flutter/view/AccessibilityBridge;->flutterSemanticsTree:Ljava/util/Map; .line 1555 invoke-interface {v0}, Ljava/util/Map;->isEmpty()Z move-result v0 if-eqz v0, :cond_1 return v1 .line 1560 :cond_1 invoke-direct {p0}, Lio/flutter/view/AccessibilityBridge;->getRootSemanticsNode()Lio/flutter/view/AccessibilityBridge$SemanticsNode; move-result-object v0 const/4 v2, 0x4 new-array v2, v2, [F .line 1561 invoke-virtual {p1}, Landroid/view/MotionEvent;->getX()F move-result v3 aput v3, v2, v1 invoke-virtual {p1}, Landroid/view/MotionEvent;->getY()F move-result v3 const/4 v4, 0x1 aput v3, v2, v4 const/4 v3, 0x2 const/4 v5, 0x0 aput v5, v2, v3 const/4 v3, 0x3 const/high16 v5, 0x3f800000 # 1.0f aput v5, v2, v3 invoke-static {v0, v2, p2}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$4700(Lio/flutter/view/AccessibilityBridge$SemanticsNode;[FZ)Lio/flutter/view/AccessibilityBridge$SemanticsNode; move-result-object v0 if-eqz v0, :cond_3 .line 1564 invoke-static {v0}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$1600(Lio/flutter/view/AccessibilityBridge$SemanticsNode;)I move-result v2 const/4 v3, -0x1 if-eq v2, v3, :cond_3 if-eqz p2, :cond_2 return v1 :cond_2 iget-object p0, p0, Lio/flutter/view/AccessibilityBridge;->accessibilityViewEmbedder:Lio/flutter/view/AccessibilityViewEmbedder; .line 1569 invoke-static {v0}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$000(Lio/flutter/view/AccessibilityBridge$SemanticsNode;)I move-result p2 .line 1568 invoke-virtual {p0, p2, p1}, Lio/flutter/view/AccessibilityViewEmbedder;->onAccessibilityHoverEvent(ILandroid/view/MotionEvent;)Z move-result p0 return p0 .line 1572 :cond_3 invoke-virtual {p1}, Landroid/view/MotionEvent;->getAction()I move-result v0 const/16 v2, 0x9 if-eq v0, v2, :cond_6 .line 1573 invoke-virtual {p1}, Landroid/view/MotionEvent;->getAction()I move-result v0 const/4 v2, 0x7 if-ne v0, v2, :cond_4 goto :goto_0 .line 1575 :cond_4 invoke-virtual {p1}, Landroid/view/MotionEvent;->getAction()I move-result p2 const/16 v0, 0xa if-ne p2, v0, :cond_5 .line 1576 invoke-direct {p0}, Lio/flutter/view/AccessibilityBridge;->onTouchExplorationExit()V goto :goto_1 .line 1578 :cond_5 new-instance p0, Ljava/lang/StringBuilder; const-string p2, "unexpected accessibility hover event: " invoke-direct {p0, p2}, Ljava/lang/StringBuilder;->(Ljava/lang/String;)V invoke-virtual {p0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder; move-result-object p0 invoke-virtual {p0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; move-result-object p0 const-string p1, "flutter" invoke-static {p1, p0}, Lio/flutter/Log;->d(Ljava/lang/String;Ljava/lang/String;)V return v1 .line 1574 :cond_6 :goto_0 invoke-virtual {p1}, Landroid/view/MotionEvent;->getX()F move-result v0 invoke-virtual {p1}, Landroid/view/MotionEvent;->getY()F move-result p1 invoke-direct {p0, v0, p1, p2}, Lio/flutter/view/AccessibilityBridge;->handleTouchExploration(FFZ)V :goto_1 return v4 .end method .method public performAction(IILandroid/os/Bundle;)Z .locals 7 const/4 v0, 0x0 const/high16 v1, 0x10000 if-lt p1, v1, :cond_1 iget-object v1, p0, Lio/flutter/view/AccessibilityBridge;->accessibilityViewEmbedder:Lio/flutter/view/AccessibilityViewEmbedder; .line 1051 invoke-virtual {v1, p1, p2, p3}, Lio/flutter/view/AccessibilityViewEmbedder;->performAction(IILandroid/os/Bundle;)Z move-result p1 if-eqz p1, :cond_0 const/16 p3, 0x80 if-ne p2, p3, :cond_0 iput-object v0, p0, Lio/flutter/view/AccessibilityBridge;->embeddedAccessibilityFocusedNodeId:Ljava/lang/Integer; :cond_0 return p1 :cond_1 iget-object v2, p0, Lio/flutter/view/AccessibilityBridge;->flutterSemanticsTree:Ljava/util/Map; .line 1058 invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer; move-result-object v3 invoke-interface {v2, v3}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object; move-result-object v2 check-cast v2, Lio/flutter/view/AccessibilityBridge$SemanticsNode; const/4 v3, 0x0 if-nez v2, :cond_2 return v3 :cond_2 const/4 v4, 0x4 const/4 v5, 0x1 sparse-switch p2, :sswitch_data_0 sget p3, Lio/flutter/view/AccessibilityBridge;->FIRST_RESOURCE_ID:I sub-int/2addr p2, p3 iget-object p3, p0, Lio/flutter/view/AccessibilityBridge;->customAccessibilityActions:Ljava/util/Map; .line 1264 invoke-static {p2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer; move-result-object p2 invoke-interface {p3, p2}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object; move-result-object p2 check-cast p2, Lio/flutter/view/AccessibilityBridge$CustomAccessibilityAction; if-eqz p2, :cond_f iget-object p0, p0, Lio/flutter/view/AccessibilityBridge;->accessibilityChannel:Lio/flutter/embedding/engine/systemchannels/AccessibilityChannel; .line 1266 sget-object p3, Lio/flutter/view/AccessibilityBridge$Action;->CUSTOM_ACTION:Lio/flutter/view/AccessibilityBridge$Action; .line 1267 invoke-static {p2}, Lio/flutter/view/AccessibilityBridge$CustomAccessibilityAction;->access$4600(Lio/flutter/view/AccessibilityBridge$CustomAccessibilityAction;)I move-result p2 invoke-static {p2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer; move-result-object p2 .line 1266 invoke-virtual {p0, p1, p3, p2}, Lio/flutter/embedding/engine/systemchannels/AccessibilityChannel;->dispatchSemanticsAction(ILio/flutter/view/AccessibilityBridge$Action;Ljava/lang/Object;)V return v5 :sswitch_0 iget-object p0, p0, Lio/flutter/view/AccessibilityBridge;->accessibilityChannel:Lio/flutter/embedding/engine/systemchannels/AccessibilityChannel; .line 1190 sget-object p2, Lio/flutter/view/AccessibilityBridge$Action;->SHOW_ON_SCREEN:Lio/flutter/view/AccessibilityBridge$Action; invoke-virtual {p0, p1, p2}, Lio/flutter/embedding/engine/systemchannels/AccessibilityChannel;->dispatchSemanticsAction(ILio/flutter/view/AccessibilityBridge$Action;)V return v5 .line 1259 :sswitch_1 invoke-direct {p0, v2, p1, p3}, Lio/flutter/view/AccessibilityBridge;->performSetText(Lio/flutter/view/AccessibilityBridge$SemanticsNode;ILandroid/os/Bundle;)Z move-result p0 return p0 :sswitch_2 iget-object p0, p0, Lio/flutter/view/AccessibilityBridge;->accessibilityChannel:Lio/flutter/embedding/engine/systemchannels/AccessibilityChannel; .line 1248 sget-object p2, Lio/flutter/view/AccessibilityBridge$Action;->DISMISS:Lio/flutter/view/AccessibilityBridge$Action; invoke-virtual {p0, p1, p2}, Lio/flutter/embedding/engine/systemchannels/AccessibilityChannel;->dispatchSemanticsAction(ILio/flutter/view/AccessibilityBridge$Action;)V return v5 .line 1203 :sswitch_3 new-instance p2, Ljava/util/HashMap; invoke-direct {p2}, Ljava/util/HashMap;->()V const-string v0, "extent" const-string v1, "base" if-eqz p3, :cond_3 const-string v3, "ACTION_ARGUMENT_SELECTION_START_INT" .line 1206 invoke-virtual {p3, v3}, Landroid/os/Bundle;->containsKey(Ljava/lang/String;)Z move-result v4 if-eqz v4, :cond_3 const-string v4, "ACTION_ARGUMENT_SELECTION_END_INT" .line 1208 invoke-virtual {p3, v4}, Landroid/os/Bundle;->containsKey(Ljava/lang/String;)Z move-result v6 if-eqz v6, :cond_3 .line 1212 invoke-virtual {p3, v3}, Landroid/os/Bundle;->getInt(Ljava/lang/String;)I move-result v2 invoke-static {v2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer; move-result-object v2 .line 1210 invoke-interface {p2, v1, v2}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; .line 1215 invoke-virtual {p3, v4}, Landroid/os/Bundle;->getInt(Ljava/lang/String;)I move-result p3 invoke-static {p3}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer; move-result-object p3 .line 1213 invoke-interface {p2, v0, p3}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; goto :goto_0 .line 1218 :cond_3 invoke-static {v2}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$2200(Lio/flutter/view/AccessibilityBridge$SemanticsNode;)I move-result p3 invoke-static {p3}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer; move-result-object p3 invoke-interface {p2, v1, p3}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; .line 1219 invoke-static {v2}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$2200(Lio/flutter/view/AccessibilityBridge$SemanticsNode;)I move-result p3 invoke-static {p3}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer; move-result-object p3 invoke-interface {p2, v0, p3}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; :goto_0 iget-object p3, p0, Lio/flutter/view/AccessibilityBridge;->accessibilityChannel:Lio/flutter/embedding/engine/systemchannels/AccessibilityChannel; .line 1221 sget-object v2, Lio/flutter/view/AccessibilityBridge$Action;->SET_SELECTION:Lio/flutter/view/AccessibilityBridge$Action; invoke-virtual {p3, p1, v2, p2}, Lio/flutter/embedding/engine/systemchannels/AccessibilityChannel;->dispatchSemanticsAction(ILio/flutter/view/AccessibilityBridge$Action;Ljava/lang/Object;)V iget-object p0, p0, Lio/flutter/view/AccessibilityBridge;->flutterSemanticsTree:Ljava/util/Map; .line 1226 invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer; move-result-object p1 invoke-interface {p0, p1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object; move-result-object p0 check-cast p0, Lio/flutter/view/AccessibilityBridge$SemanticsNode; .line 1227 invoke-interface {p2, v1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object; move-result-object p1 check-cast p1, Ljava/lang/Integer; invoke-virtual {p1}, Ljava/lang/Integer;->intValue()I move-result p1 invoke-static {p0, p1}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$2102(Lio/flutter/view/AccessibilityBridge$SemanticsNode;I)I .line 1228 invoke-interface {p2, v0}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object; move-result-object p1 check-cast p1, Ljava/lang/Integer; invoke-virtual {p1}, Ljava/lang/Integer;->intValue()I move-result p1 invoke-static {p0, p1}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$2202(Lio/flutter/view/AccessibilityBridge$SemanticsNode;I)I return v5 :sswitch_4 iget-object p0, p0, Lio/flutter/view/AccessibilityBridge;->accessibilityChannel:Lio/flutter/embedding/engine/systemchannels/AccessibilityChannel; .line 1238 sget-object p2, Lio/flutter/view/AccessibilityBridge$Action;->CUT:Lio/flutter/view/AccessibilityBridge$Action; invoke-virtual {p0, p1, p2}, Lio/flutter/embedding/engine/systemchannels/AccessibilityChannel;->dispatchSemanticsAction(ILio/flutter/view/AccessibilityBridge$Action;)V return v5 :sswitch_5 iget-object p0, p0, Lio/flutter/view/AccessibilityBridge;->accessibilityChannel:Lio/flutter/embedding/engine/systemchannels/AccessibilityChannel; .line 1243 sget-object p2, Lio/flutter/view/AccessibilityBridge$Action;->PASTE:Lio/flutter/view/AccessibilityBridge$Action; invoke-virtual {p0, p1, p2}, Lio/flutter/embedding/engine/systemchannels/AccessibilityChannel;->dispatchSemanticsAction(ILio/flutter/view/AccessibilityBridge$Action;)V return v5 :sswitch_6 iget-object p0, p0, Lio/flutter/view/AccessibilityBridge;->accessibilityChannel:Lio/flutter/embedding/engine/systemchannels/AccessibilityChannel; .line 1233 sget-object p2, Lio/flutter/view/AccessibilityBridge$Action;->COPY:Lio/flutter/view/AccessibilityBridge$Action; invoke-virtual {p0, p1, p2}, Lio/flutter/embedding/engine/systemchannels/AccessibilityChannel;->dispatchSemanticsAction(ILio/flutter/view/AccessibilityBridge$Action;)V return v5 .line 1099 :sswitch_7 sget-object p2, Lio/flutter/view/AccessibilityBridge$Action;->SCROLL_DOWN:Lio/flutter/view/AccessibilityBridge$Action; invoke-static {v2, p2}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$2300(Lio/flutter/view/AccessibilityBridge$SemanticsNode;Lio/flutter/view/AccessibilityBridge$Action;)Z move-result p2 if-eqz p2, :cond_4 iget-object p0, p0, Lio/flutter/view/AccessibilityBridge;->accessibilityChannel:Lio/flutter/embedding/engine/systemchannels/AccessibilityChannel; .line 1100 sget-object p2, Lio/flutter/view/AccessibilityBridge$Action;->SCROLL_DOWN:Lio/flutter/view/AccessibilityBridge$Action; invoke-virtual {p0, p1, p2}, Lio/flutter/embedding/engine/systemchannels/AccessibilityChannel;->dispatchSemanticsAction(ILio/flutter/view/AccessibilityBridge$Action;)V goto :goto_1 .line 1101 :cond_4 sget-object p2, Lio/flutter/view/AccessibilityBridge$Action;->SCROLL_RIGHT:Lio/flutter/view/AccessibilityBridge$Action; invoke-static {v2, p2}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$2300(Lio/flutter/view/AccessibilityBridge$SemanticsNode;Lio/flutter/view/AccessibilityBridge$Action;)Z move-result p2 if-eqz p2, :cond_5 iget-object p0, p0, Lio/flutter/view/AccessibilityBridge;->accessibilityChannel:Lio/flutter/embedding/engine/systemchannels/AccessibilityChannel; .line 1103 sget-object p2, Lio/flutter/view/AccessibilityBridge$Action;->SCROLL_RIGHT:Lio/flutter/view/AccessibilityBridge$Action; invoke-virtual {p0, p1, p2}, Lio/flutter/embedding/engine/systemchannels/AccessibilityChannel;->dispatchSemanticsAction(ILio/flutter/view/AccessibilityBridge$Action;)V goto :goto_1 .line 1104 :cond_5 sget-object p2, Lio/flutter/view/AccessibilityBridge$Action;->DECREASE:Lio/flutter/view/AccessibilityBridge$Action; invoke-static {v2, p2}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$2300(Lio/flutter/view/AccessibilityBridge$SemanticsNode;Lio/flutter/view/AccessibilityBridge$Action;)Z move-result p2 if-eqz p2, :cond_6 .line 1105 invoke-static {v2}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$4400(Lio/flutter/view/AccessibilityBridge$SemanticsNode;)Ljava/lang/String; move-result-object p2 invoke-static {v2, p2}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$2502(Lio/flutter/view/AccessibilityBridge$SemanticsNode;Ljava/lang/String;)Ljava/lang/String; .line 1106 invoke-static {v2}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$4500(Lio/flutter/view/AccessibilityBridge$SemanticsNode;)Ljava/util/List; move-result-object p2 invoke-static {v2, p2}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$4202(Lio/flutter/view/AccessibilityBridge$SemanticsNode;Ljava/util/List;)Ljava/util/List; .line 1108 invoke-virtual {p0, p1, v4}, Lio/flutter/view/AccessibilityBridge;->sendAccessibilityEvent(II)V iget-object p0, p0, Lio/flutter/view/AccessibilityBridge;->accessibilityChannel:Lio/flutter/embedding/engine/systemchannels/AccessibilityChannel; .line 1109 sget-object p2, Lio/flutter/view/AccessibilityBridge$Action;->DECREASE:Lio/flutter/view/AccessibilityBridge$Action; invoke-virtual {p0, p1, p2}, Lio/flutter/embedding/engine/systemchannels/AccessibilityChannel;->dispatchSemanticsAction(ILio/flutter/view/AccessibilityBridge$Action;)V :goto_1 return v5 :cond_6 return v3 .line 1081 :sswitch_8 sget-object p2, Lio/flutter/view/AccessibilityBridge$Action;->SCROLL_UP:Lio/flutter/view/AccessibilityBridge$Action; invoke-static {v2, p2}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$2300(Lio/flutter/view/AccessibilityBridge$SemanticsNode;Lio/flutter/view/AccessibilityBridge$Action;)Z move-result p2 if-eqz p2, :cond_7 iget-object p0, p0, Lio/flutter/view/AccessibilityBridge;->accessibilityChannel:Lio/flutter/embedding/engine/systemchannels/AccessibilityChannel; .line 1082 sget-object p2, Lio/flutter/view/AccessibilityBridge$Action;->SCROLL_UP:Lio/flutter/view/AccessibilityBridge$Action; invoke-virtual {p0, p1, p2}, Lio/flutter/embedding/engine/systemchannels/AccessibilityChannel;->dispatchSemanticsAction(ILio/flutter/view/AccessibilityBridge$Action;)V goto :goto_2 .line 1083 :cond_7 sget-object p2, Lio/flutter/view/AccessibilityBridge$Action;->SCROLL_LEFT:Lio/flutter/view/AccessibilityBridge$Action; invoke-static {v2, p2}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$2300(Lio/flutter/view/AccessibilityBridge$SemanticsNode;Lio/flutter/view/AccessibilityBridge$Action;)Z move-result p2 if-eqz p2, :cond_8 iget-object p0, p0, Lio/flutter/view/AccessibilityBridge;->accessibilityChannel:Lio/flutter/embedding/engine/systemchannels/AccessibilityChannel; .line 1085 sget-object p2, Lio/flutter/view/AccessibilityBridge$Action;->SCROLL_LEFT:Lio/flutter/view/AccessibilityBridge$Action; invoke-virtual {p0, p1, p2}, Lio/flutter/embedding/engine/systemchannels/AccessibilityChannel;->dispatchSemanticsAction(ILio/flutter/view/AccessibilityBridge$Action;)V goto :goto_2 .line 1086 :cond_8 sget-object p2, Lio/flutter/view/AccessibilityBridge$Action;->INCREASE:Lio/flutter/view/AccessibilityBridge$Action; invoke-static {v2, p2}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$2300(Lio/flutter/view/AccessibilityBridge$SemanticsNode;Lio/flutter/view/AccessibilityBridge$Action;)Z move-result p2 if-eqz p2, :cond_9 .line 1087 invoke-static {v2}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$4100(Lio/flutter/view/AccessibilityBridge$SemanticsNode;)Ljava/lang/String; move-result-object p2 invoke-static {v2, p2}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$2502(Lio/flutter/view/AccessibilityBridge$SemanticsNode;Ljava/lang/String;)Ljava/lang/String; .line 1088 invoke-static {v2}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$4300(Lio/flutter/view/AccessibilityBridge$SemanticsNode;)Ljava/util/List; move-result-object p2 invoke-static {v2, p2}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$4202(Lio/flutter/view/AccessibilityBridge$SemanticsNode;Ljava/util/List;)Ljava/util/List; .line 1090 invoke-virtual {p0, p1, v4}, Lio/flutter/view/AccessibilityBridge;->sendAccessibilityEvent(II)V iget-object p0, p0, Lio/flutter/view/AccessibilityBridge;->accessibilityChannel:Lio/flutter/embedding/engine/systemchannels/AccessibilityChannel; .line 1091 sget-object p2, Lio/flutter/view/AccessibilityBridge$Action;->INCREASE:Lio/flutter/view/AccessibilityBridge$Action; invoke-virtual {p0, p1, p2}, Lio/flutter/embedding/engine/systemchannels/AccessibilityChannel;->dispatchSemanticsAction(ILio/flutter/view/AccessibilityBridge$Action;)V :goto_2 return v5 :cond_9 return v3 .line 1125 :sswitch_9 invoke-direct {p0, v2, p1, p3, v3}, Lio/flutter/view/AccessibilityBridge;->performCursorMoveAction(Lio/flutter/view/AccessibilityBridge$SemanticsNode;ILandroid/os/Bundle;Z)Z move-result p0 return p0 .line 1137 :sswitch_a invoke-direct {p0, v2, p1, p3, v5}, Lio/flutter/view/AccessibilityBridge;->performCursorMoveAction(Lio/flutter/view/AccessibilityBridge$SemanticsNode;ILandroid/os/Bundle;Z)Z move-result p0 return p0 :sswitch_b iget-object p2, p0, Lio/flutter/view/AccessibilityBridge;->accessibilityFocusedSemanticsNode:Lio/flutter/view/AccessibilityBridge$SemanticsNode; if-eqz p2, :cond_a .line 1145 invoke-static {p2}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$000(Lio/flutter/view/AccessibilityBridge$SemanticsNode;)I move-result p2 if-ne p2, p1, :cond_a iput-object v0, p0, Lio/flutter/view/AccessibilityBridge;->accessibilityFocusedSemanticsNode:Lio/flutter/view/AccessibilityBridge$SemanticsNode; :cond_a iget-object p2, p0, Lio/flutter/view/AccessibilityBridge;->embeddedAccessibilityFocusedNodeId:Ljava/lang/Integer; if-eqz p2, :cond_b .line 1149 invoke-virtual {p2}, Ljava/lang/Integer;->intValue()I move-result p2 if-ne p2, p1, :cond_b iput-object v0, p0, Lio/flutter/view/AccessibilityBridge;->embeddedAccessibilityFocusedNodeId:Ljava/lang/Integer; :cond_b iget-object p2, p0, Lio/flutter/view/AccessibilityBridge;->accessibilityChannel:Lio/flutter/embedding/engine/systemchannels/AccessibilityChannel; .line 1152 sget-object p3, Lio/flutter/view/AccessibilityBridge$Action;->DID_LOSE_ACCESSIBILITY_FOCUS:Lio/flutter/view/AccessibilityBridge$Action; invoke-virtual {p2, p1, p3}, Lio/flutter/embedding/engine/systemchannels/AccessibilityChannel;->dispatchSemanticsAction(ILio/flutter/view/AccessibilityBridge$Action;)V .line 1154 invoke-virtual {p0, p1, v1}, Lio/flutter/view/AccessibilityBridge;->sendAccessibilityEvent(II)V return v5 :sswitch_c iget-object p2, p0, Lio/flutter/view/AccessibilityBridge;->accessibilityFocusedSemanticsNode:Lio/flutter/view/AccessibilityBridge$SemanticsNode; if-nez p2, :cond_c iget-object p2, p0, Lio/flutter/view/AccessibilityBridge;->rootAccessibilityView:Landroid/view/View; .line 1164 invoke-virtual {p2}, Landroid/view/View;->invalidate()V :cond_c iput-object v2, p0, Lio/flutter/view/AccessibilityBridge;->accessibilityFocusedSemanticsNode:Lio/flutter/view/AccessibilityBridge$SemanticsNode; iget-object p2, p0, Lio/flutter/view/AccessibilityBridge;->accessibilityChannel:Lio/flutter/embedding/engine/systemchannels/AccessibilityChannel; .line 1170 sget-object p3, Lio/flutter/view/AccessibilityBridge$Action;->DID_GAIN_ACCESSIBILITY_FOCUS:Lio/flutter/view/AccessibilityBridge$Action; invoke-virtual {p2, p1, p3}, Lio/flutter/embedding/engine/systemchannels/AccessibilityChannel;->dispatchSemanticsAction(ILio/flutter/view/AccessibilityBridge$Action;)V .line 1173 new-instance p2, Ljava/util/HashMap; invoke-direct {p2}, Ljava/util/HashMap;->()V const-string p3, "type" const-string v0, "didGainFocus" .line 1174 invoke-virtual {p2, p3, v0}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; .line 1175 invoke-static {v2}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$000(Lio/flutter/view/AccessibilityBridge$SemanticsNode;)I move-result p3 invoke-static {p3}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer; move-result-object p3 const-string v0, "nodeId" invoke-virtual {p2, v0, p3}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; iget-object p3, p0, Lio/flutter/view/AccessibilityBridge;->accessibilityChannel:Lio/flutter/embedding/engine/systemchannels/AccessibilityChannel; .line 1176 iget-object p3, p3, Lio/flutter/embedding/engine/systemchannels/AccessibilityChannel;->channel:Lio/flutter/plugin/common/BasicMessageChannel; invoke-virtual {p3, p2}, Lio/flutter/plugin/common/BasicMessageChannel;->send(Ljava/lang/Object;)V const p2, 0x8000 .line 1178 invoke-virtual {p0, p1, p2}, Lio/flutter/view/AccessibilityBridge;->sendAccessibilityEvent(II)V .line 1180 sget-object p2, Lio/flutter/view/AccessibilityBridge$Action;->INCREASE:Lio/flutter/view/AccessibilityBridge$Action; invoke-static {v2, p2}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$2300(Lio/flutter/view/AccessibilityBridge$SemanticsNode;Lio/flutter/view/AccessibilityBridge$Action;)Z move-result p2 if-nez p2, :cond_d sget-object p2, Lio/flutter/view/AccessibilityBridge$Action;->DECREASE:Lio/flutter/view/AccessibilityBridge$Action; .line 1181 invoke-static {v2, p2}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$2300(Lio/flutter/view/AccessibilityBridge$SemanticsNode;Lio/flutter/view/AccessibilityBridge$Action;)Z move-result p2 if-eqz p2, :cond_e .line 1183 :cond_d invoke-virtual {p0, p1, v4}, Lio/flutter/view/AccessibilityBridge;->sendAccessibilityEvent(II)V :cond_e return v5 :sswitch_d iget-object p0, p0, Lio/flutter/view/AccessibilityBridge;->accessibilityChannel:Lio/flutter/embedding/engine/systemchannels/AccessibilityChannel; .line 1076 sget-object p2, Lio/flutter/view/AccessibilityBridge$Action;->LONG_PRESS:Lio/flutter/view/AccessibilityBridge$Action; invoke-virtual {p0, p1, p2}, Lio/flutter/embedding/engine/systemchannels/AccessibilityChannel;->dispatchSemanticsAction(ILio/flutter/view/AccessibilityBridge$Action;)V return v5 :sswitch_e iget-object p0, p0, Lio/flutter/view/AccessibilityBridge;->accessibilityChannel:Lio/flutter/embedding/engine/systemchannels/AccessibilityChannel; .line 1068 sget-object p2, Lio/flutter/view/AccessibilityBridge$Action;->TAP:Lio/flutter/view/AccessibilityBridge$Action; invoke-virtual {p0, p1, p2}, Lio/flutter/embedding/engine/systemchannels/AccessibilityChannel;->dispatchSemanticsAction(ILio/flutter/view/AccessibilityBridge$Action;)V return v5 :cond_f return v3 nop :sswitch_data_0 .sparse-switch 0x10 -> :sswitch_e 0x20 -> :sswitch_d 0x40 -> :sswitch_c 0x80 -> :sswitch_b 0x100 -> :sswitch_a 0x200 -> :sswitch_9 0x1000 -> :sswitch_8 0x2000 -> :sswitch_7 0x4000 -> :sswitch_6 0x8000 -> :sswitch_5 0x10000 -> :sswitch_4 0x20000 -> :sswitch_3 0x100000 -> :sswitch_2 0x200000 -> :sswitch_1 0x1020036 -> :sswitch_0 .end sparse-switch .end method .method public release()V .locals 3 const/4 v0, 0x1 iput-boolean v0, p0, Lio/flutter/view/AccessibilityBridge;->isReleased:Z iget-object v0, p0, Lio/flutter/view/AccessibilityBridge;->platformViewsAccessibilityDelegate:Lio/flutter/plugin/platform/PlatformViewsAccessibilityDelegate; .line 507 invoke-interface {v0}, Lio/flutter/plugin/platform/PlatformViewsAccessibilityDelegate;->detachAccessibilityBridge()V const/4 v0, 0x0 .line 508 invoke-virtual {p0, v0}, Lio/flutter/view/AccessibilityBridge;->setOnAccessibilityChangeListener(Lio/flutter/view/AccessibilityBridge$OnAccessibilityChangeListener;)V iget-object v1, p0, Lio/flutter/view/AccessibilityBridge;->accessibilityManager:Landroid/view/accessibility/AccessibilityManager; iget-object v2, p0, Lio/flutter/view/AccessibilityBridge;->accessibilityStateChangeListener:Landroid/view/accessibility/AccessibilityManager$AccessibilityStateChangeListener; .line 509 invoke-virtual {v1, v2}, Landroid/view/accessibility/AccessibilityManager;->removeAccessibilityStateChangeListener(Landroid/view/accessibility/AccessibilityManager$AccessibilityStateChangeListener;)Z iget-object v1, p0, Lio/flutter/view/AccessibilityBridge;->accessibilityManager:Landroid/view/accessibility/AccessibilityManager; iget-object v2, p0, Lio/flutter/view/AccessibilityBridge;->touchExplorationStateChangeListener:Landroid/view/accessibility/AccessibilityManager$TouchExplorationStateChangeListener; .line 511 invoke-virtual {v1, v2}, Landroid/view/accessibility/AccessibilityManager;->removeTouchExplorationStateChangeListener(Landroid/view/accessibility/AccessibilityManager$TouchExplorationStateChangeListener;)Z iget-object v1, p0, Lio/flutter/view/AccessibilityBridge;->contentResolver:Landroid/content/ContentResolver; iget-object v2, p0, Lio/flutter/view/AccessibilityBridge;->animationScaleObserver:Landroid/database/ContentObserver; .line 514 invoke-virtual {v1, v2}, Landroid/content/ContentResolver;->unregisterContentObserver(Landroid/database/ContentObserver;)V iget-object p0, p0, Lio/flutter/view/AccessibilityBridge;->accessibilityChannel:Lio/flutter/embedding/engine/systemchannels/AccessibilityChannel; .line 515 invoke-virtual {p0, v0}, Lio/flutter/embedding/engine/systemchannels/AccessibilityChannel;->setAccessibilityMessageHandler(Lio/flutter/embedding/engine/systemchannels/AccessibilityChannel$AccessibilityMessageHandler;)V return-void .end method .method public reset()V .locals 2 iget-object v0, p0, Lio/flutter/view/AccessibilityBridge;->flutterSemanticsTree:Ljava/util/Map; .line 2129 invoke-interface {v0}, Ljava/util/Map;->clear()V iget-object v0, p0, Lio/flutter/view/AccessibilityBridge;->accessibilityFocusedSemanticsNode:Lio/flutter/view/AccessibilityBridge$SemanticsNode; if-eqz v0, :cond_0 .line 2132 invoke-static {v0}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$000(Lio/flutter/view/AccessibilityBridge$SemanticsNode;)I move-result v0 const/high16 v1, 0x10000 .line 2131 invoke-virtual {p0, v0, v1}, Lio/flutter/view/AccessibilityBridge;->sendAccessibilityEvent(II)V :cond_0 const/4 v0, 0x0 iput-object v0, p0, Lio/flutter/view/AccessibilityBridge;->accessibilityFocusedSemanticsNode:Lio/flutter/view/AccessibilityBridge$SemanticsNode; iput-object v0, p0, Lio/flutter/view/AccessibilityBridge;->hoveredObject:Lio/flutter/view/AccessibilityBridge$SemanticsNode; const/4 v0, 0x0 .line 2137 invoke-direct {p0, v0}, Lio/flutter/view/AccessibilityBridge;->sendWindowContentChangeEvent(I)V return-void .end method .method public sendAccessibilityEvent(II)V .locals 1 iget-object v0, p0, Lio/flutter/view/AccessibilityBridge;->accessibilityManager:Landroid/view/accessibility/AccessibilityManager; .line 1931 invoke-virtual {v0}, Landroid/view/accessibility/AccessibilityManager;->isEnabled()Z move-result v0 if-nez v0, :cond_0 return-void .line 1934 :cond_0 invoke-direct {p0, p1, p2}, Lio/flutter/view/AccessibilityBridge;->obtainAccessibilityEvent(II)Landroid/view/accessibility/AccessibilityEvent; move-result-object p1 invoke-direct {p0, p1}, Lio/flutter/view/AccessibilityBridge;->sendAccessibilityEvent(Landroid/view/accessibility/AccessibilityEvent;)V return-void .end method .method public setOnAccessibilityChangeListener(Lio/flutter/view/AccessibilityBridge$OnAccessibilityChangeListener;)V .locals 0 iput-object p1, p0, Lio/flutter/view/AccessibilityBridge;->onAccessibilityChangeListener:Lio/flutter/view/AccessibilityBridge$OnAccessibilityChangeListener; return-void .end method .method updateCustomAccessibilityActions(Ljava/nio/ByteBuffer;[Ljava/lang/String;)V .locals 4 .line 1636 :goto_0 invoke-virtual {p1}, Ljava/nio/ByteBuffer;->hasRemaining()Z move-result v0 if-eqz v0, :cond_2 .line 1637 invoke-virtual {p1}, Ljava/nio/ByteBuffer;->getInt()I move-result v0 .line 1638 invoke-direct {p0, v0}, Lio/flutter/view/AccessibilityBridge;->getOrCreateAccessibilityAction(I)Lio/flutter/view/AccessibilityBridge$CustomAccessibilityAction; move-result-object v0 .line 1639 invoke-virtual {p1}, Ljava/nio/ByteBuffer;->getInt()I move-result v1 invoke-static {v0, v1}, Lio/flutter/view/AccessibilityBridge$CustomAccessibilityAction;->access$4802(Lio/flutter/view/AccessibilityBridge$CustomAccessibilityAction;I)I .line 1640 invoke-virtual {p1}, Ljava/nio/ByteBuffer;->getInt()I move-result v1 const/4 v2, 0x0 const/4 v3, -0x1 if-ne v1, v3, :cond_0 move-object v1, v2 goto :goto_1 .line 1641 :cond_0 aget-object v1, p2, v1 :goto_1 invoke-static {v0, v1}, Lio/flutter/view/AccessibilityBridge$CustomAccessibilityAction;->access$3802(Lio/flutter/view/AccessibilityBridge$CustomAccessibilityAction;Ljava/lang/String;)Ljava/lang/String; .line 1642 invoke-virtual {p1}, Ljava/nio/ByteBuffer;->getInt()I move-result v1 if-ne v1, v3, :cond_1 goto :goto_2 .line 1643 :cond_1 aget-object v2, p2, v1 :goto_2 invoke-static {v0, v2}, Lio/flutter/view/AccessibilityBridge$CustomAccessibilityAction;->access$3002(Lio/flutter/view/AccessibilityBridge$CustomAccessibilityAction;Ljava/lang/String;)Ljava/lang/String; goto :goto_0 :cond_2 return-void .end method .method updateSemantics(Ljava/nio/ByteBuffer;[Ljava/lang/String;[Ljava/nio/ByteBuffer;)V .locals 8 .line 1658 new-instance v0, Ljava/util/ArrayList; invoke-direct {v0}, Ljava/util/ArrayList;->()V .line 1659 :cond_0 :goto_0 invoke-virtual {p1}, Ljava/nio/ByteBuffer;->hasRemaining()Z move-result v1 const/4 v2, 0x0 if-eqz v1, :cond_4 .line 1660 invoke-virtual {p1}, Ljava/nio/ByteBuffer;->getInt()I move-result v1 .line 1661 invoke-direct {p0, v1}, Lio/flutter/view/AccessibilityBridge;->getOrCreateSemanticsNode(I)Lio/flutter/view/AccessibilityBridge$SemanticsNode; move-result-object v1 .line 1662 invoke-static {v1, p1, p2, p3}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$4900(Lio/flutter/view/AccessibilityBridge$SemanticsNode;Ljava/nio/ByteBuffer;[Ljava/lang/String;[Ljava/nio/ByteBuffer;)V .line 1663 sget-object v3, Lio/flutter/view/AccessibilityBridge$Flag;->IS_HIDDEN:Lio/flutter/view/AccessibilityBridge$Flag; invoke-static {v1, v3}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$2000(Lio/flutter/view/AccessibilityBridge$SemanticsNode;Lio/flutter/view/AccessibilityBridge$Flag;)Z move-result v3 if-eqz v3, :cond_1 goto :goto_0 .line 1666 :cond_1 sget-object v3, Lio/flutter/view/AccessibilityBridge$Flag;->IS_FOCUSED:Lio/flutter/view/AccessibilityBridge$Flag; invoke-static {v1, v3}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$2000(Lio/flutter/view/AccessibilityBridge$SemanticsNode;Lio/flutter/view/AccessibilityBridge$Flag;)Z move-result v3 if-eqz v3, :cond_2 iput-object v1, p0, Lio/flutter/view/AccessibilityBridge;->inputFocusedSemanticsNode:Lio/flutter/view/AccessibilityBridge$SemanticsNode; .line 1669 :cond_2 invoke-static {v1}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$5000(Lio/flutter/view/AccessibilityBridge$SemanticsNode;)Z move-result v3 if-eqz v3, :cond_3 .line 1670 invoke-virtual {v0, v1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z .line 1672 :cond_3 invoke-static {v1}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$1600(Lio/flutter/view/AccessibilityBridge$SemanticsNode;)I move-result v3 const/4 v4, -0x1 if-eq v3, v4, :cond_0 iget-object v3, p0, Lio/flutter/view/AccessibilityBridge;->platformViewsAccessibilityDelegate:Lio/flutter/plugin/platform/PlatformViewsAccessibilityDelegate; .line 1673 invoke-static {v1}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$1600(Lio/flutter/view/AccessibilityBridge$SemanticsNode;)I move-result v4 invoke-interface {v3, v4}, Lio/flutter/plugin/platform/PlatformViewsAccessibilityDelegate;->usesVirtualDisplay(I)Z move-result v3 if-nez v3, :cond_0 iget-object v3, p0, Lio/flutter/view/AccessibilityBridge;->platformViewsAccessibilityDelegate:Lio/flutter/plugin/platform/PlatformViewsAccessibilityDelegate; .line 1675 invoke-static {v1}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$1600(Lio/flutter/view/AccessibilityBridge$SemanticsNode;)I move-result v1 invoke-interface {v3, v1}, Lio/flutter/plugin/platform/PlatformViewsAccessibilityDelegate;->getPlatformViewById(I)Landroid/view/View; move-result-object v1 if-eqz v1, :cond_0 .line 1677 invoke-virtual {v1, v2}, Landroid/view/View;->setImportantForAccessibility(I)V goto :goto_0 .line 1682 :cond_4 new-instance p1, Ljava/util/HashSet; invoke-direct {p1}, Ljava/util/HashSet;->()V .line 1683 invoke-direct {p0}, Lio/flutter/view/AccessibilityBridge;->getRootSemanticsNode()Lio/flutter/view/AccessibilityBridge$SemanticsNode; move-result-object p2 .line 1684 new-instance p3, Ljava/util/ArrayList; invoke-direct {p3}, Ljava/util/ArrayList;->()V const/4 v1, 0x1 if-eqz p2, :cond_7 const/16 v3, 0x10 new-array v3, v3, [F .line 1687 invoke-static {v3, v2}, Landroid/opengl/Matrix;->setIdentityM([FI)V .line 1698 invoke-direct {p0}, Lio/flutter/view/AccessibilityBridge;->doesLayoutInDisplayCutoutModeRequireLeftInset()Z move-result v4 if-eqz v4, :cond_6 iget-object v4, p0, Lio/flutter/view/AccessibilityBridge;->rootAccessibilityView:Landroid/view/View; .line 1702 invoke-virtual {v4}, Landroid/view/View;->getRootWindowInsets()Landroid/view/WindowInsets; move-result-object v4 if-eqz v4, :cond_6 iget-object v5, p0, Lio/flutter/view/AccessibilityBridge;->lastLeftFrameInset:Ljava/lang/Integer; .line 1704 invoke-virtual {v4}, Landroid/view/WindowInsets;->getSystemWindowInsetLeft()I move-result v6 invoke-static {v6}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer; move-result-object v6 invoke-virtual {v5, v6}, Ljava/lang/Integer;->equals(Ljava/lang/Object;)Z move-result v5 if-nez v5, :cond_5 .line 1705 invoke-static {p2, v1}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$5102(Lio/flutter/view/AccessibilityBridge$SemanticsNode;Z)Z .line 1706 invoke-static {p2, v1}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$5202(Lio/flutter/view/AccessibilityBridge$SemanticsNode;Z)Z .line 1708 :cond_5 invoke-virtual {v4}, Landroid/view/WindowInsets;->getSystemWindowInsetLeft()I move-result v4 invoke-static {v4}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer; move-result-object v4 iput-object v4, p0, Lio/flutter/view/AccessibilityBridge;->lastLeftFrameInset:Ljava/lang/Integer; .line 1709 invoke-virtual {v4}, Ljava/lang/Integer;->intValue()I move-result v4 int-to-float v4, v4 const/4 v5, 0x0 invoke-static {v3, v2, v4, v5, v5}, Landroid/opengl/Matrix;->translateM([FIFFF)V .line 1713 :cond_6 invoke-static {p2, v3, p1, v2}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$5300(Lio/flutter/view/AccessibilityBridge$SemanticsNode;[FLjava/util/Set;Z)V .line 1714 invoke-static {p2, p3}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$5400(Lio/flutter/view/AccessibilityBridge$SemanticsNode;Ljava/util/List;)V .line 1722 :cond_7 invoke-interface {p3}, Ljava/util/List;->iterator()Ljava/util/Iterator; move-result-object p2 const/4 v3, 0x0 move-object v4, v3 :cond_8 :goto_1 invoke-interface {p2}, Ljava/util/Iterator;->hasNext()Z move-result v5 if-eqz v5, :cond_9 invoke-interface {p2}, Ljava/util/Iterator;->next()Ljava/lang/Object; move-result-object v5 check-cast v5, Lio/flutter/view/AccessibilityBridge$SemanticsNode; iget-object v6, p0, Lio/flutter/view/AccessibilityBridge;->flutterNavigationStack:Ljava/util/List; .line 1723 invoke-static {v5}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$000(Lio/flutter/view/AccessibilityBridge$SemanticsNode;)I move-result v7 invoke-static {v7}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer; move-result-object v7 invoke-interface {v6, v7}, Ljava/util/List;->contains(Ljava/lang/Object;)Z move-result v6 if-nez v6, :cond_8 move-object v4, v5 goto :goto_1 :cond_9 if-nez v4, :cond_a .line 1729 invoke-interface {p3}, Ljava/util/List;->size()I move-result p2 if-lez p2, :cond_a .line 1730 invoke-interface {p3}, Ljava/util/List;->size()I move-result p2 sub-int/2addr p2, v1 invoke-interface {p3, p2}, Ljava/util/List;->get(I)Ljava/lang/Object; move-result-object p2 move-object v4, p2 check-cast v4, Lio/flutter/view/AccessibilityBridge$SemanticsNode; :cond_a if-eqz v4, :cond_c .line 1741 invoke-static {v4}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$000(Lio/flutter/view/AccessibilityBridge$SemanticsNode;)I move-result p2 iget v5, p0, Lio/flutter/view/AccessibilityBridge;->previousRouteId:I if-ne p2, v5, :cond_b invoke-interface {p3}, Ljava/util/List;->size()I move-result p2 iget-object v5, p0, Lio/flutter/view/AccessibilityBridge;->flutterNavigationStack:Ljava/util/List; invoke-interface {v5}, Ljava/util/List;->size()I move-result v5 if-eq p2, v5, :cond_c .line 1742 :cond_b invoke-static {v4}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$000(Lio/flutter/view/AccessibilityBridge$SemanticsNode;)I move-result p2 iput p2, p0, Lio/flutter/view/AccessibilityBridge;->previousRouteId:I .line 1743 invoke-direct {p0, v4}, Lio/flutter/view/AccessibilityBridge;->onWindowNameChange(Lio/flutter/view/AccessibilityBridge$SemanticsNode;)V :cond_c iget-object p2, p0, Lio/flutter/view/AccessibilityBridge;->flutterNavigationStack:Ljava/util/List; .line 1745 invoke-interface {p2}, Ljava/util/List;->clear()V .line 1746 invoke-interface {p3}, Ljava/util/List;->iterator()Ljava/util/Iterator; move-result-object p2 :goto_2 invoke-interface {p2}, Ljava/util/Iterator;->hasNext()Z move-result p3 if-eqz p3, :cond_d invoke-interface {p2}, Ljava/util/Iterator;->next()Ljava/lang/Object; move-result-object p3 check-cast p3, Lio/flutter/view/AccessibilityBridge$SemanticsNode; iget-object v4, p0, Lio/flutter/view/AccessibilityBridge;->flutterNavigationStack:Ljava/util/List; .line 1747 invoke-static {p3}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$000(Lio/flutter/view/AccessibilityBridge$SemanticsNode;)I move-result p3 invoke-static {p3}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer; move-result-object p3 invoke-interface {v4, p3}, Ljava/util/List;->add(Ljava/lang/Object;)Z goto :goto_2 :cond_d iget-object p2, p0, Lio/flutter/view/AccessibilityBridge;->flutterSemanticsTree:Ljava/util/Map; .line 1750 invoke-interface {p2}, Ljava/util/Map;->entrySet()Ljava/util/Set; move-result-object p2 invoke-interface {p2}, Ljava/util/Set;->iterator()Ljava/util/Iterator; move-result-object p2 .line 1751 :cond_e :goto_3 invoke-interface {p2}, Ljava/util/Iterator;->hasNext()Z move-result p3 if-eqz p3, :cond_f .line 1752 invoke-interface {p2}, Ljava/util/Iterator;->next()Ljava/lang/Object; move-result-object p3 check-cast p3, Ljava/util/Map$Entry; .line 1753 invoke-interface {p3}, Ljava/util/Map$Entry;->getValue()Ljava/lang/Object; move-result-object p3 check-cast p3, Lio/flutter/view/AccessibilityBridge$SemanticsNode; .line 1754 invoke-interface {p1, p3}, Ljava/util/Set;->contains(Ljava/lang/Object;)Z move-result v4 if-nez v4, :cond_e .line 1755 invoke-direct {p0, p3}, Lio/flutter/view/AccessibilityBridge;->willRemoveSemanticsNode(Lio/flutter/view/AccessibilityBridge$SemanticsNode;)V .line 1756 invoke-interface {p2}, Ljava/util/Iterator;->remove()V goto :goto_3 .line 1762 :cond_f invoke-direct {p0, v2}, Lio/flutter/view/AccessibilityBridge;->sendWindowContentChangeEvent(I)V .line 1764 invoke-virtual {v0}, Ljava/util/ArrayList;->iterator()Ljava/util/Iterator; move-result-object p1 :cond_10 :goto_4 invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z move-result p2 if-eqz p2, :cond_27 invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object; move-result-object p2 check-cast p2, Lio/flutter/view/AccessibilityBridge$SemanticsNode; .line 1765 invoke-static {p2}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$5500(Lio/flutter/view/AccessibilityBridge$SemanticsNode;)Z move-result p3 if-eqz p3, :cond_1c .line 1767 invoke-static {p2}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$000(Lio/flutter/view/AccessibilityBridge$SemanticsNode;)I move-result p3 const/16 v0, 0x1000 invoke-direct {p0, p3, v0}, Lio/flutter/view/AccessibilityBridge;->obtainAccessibilityEvent(II)Landroid/view/accessibility/AccessibilityEvent; move-result-object p3 .line 1771 invoke-static {p2}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$5600(Lio/flutter/view/AccessibilityBridge$SemanticsNode;)F move-result v0 .line 1772 invoke-static {p2}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$5700(Lio/flutter/view/AccessibilityBridge$SemanticsNode;)F move-result v4 .line 1773 invoke-static {p2}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$5700(Lio/flutter/view/AccessibilityBridge$SemanticsNode;)F move-result v5 invoke-static {v5}, Ljava/lang/Float;->isInfinite(F)Z move-result v5 const v6, 0x47c35000 # 100000.0f if-eqz v5, :cond_12 const v4, 0x4788b800 # 70000.0f cmpl-float v5, v0, v4 if-lez v5, :cond_11 move v0, v4 :cond_11 move v4, v6 .line 1779 :cond_12 invoke-static {p2}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$5800(Lio/flutter/view/AccessibilityBridge$SemanticsNode;)F move-result v5 invoke-static {v5}, Ljava/lang/Float;->isInfinite(F)Z move-result v5 if-eqz v5, :cond_14 add-float/2addr v4, v6 const v5, -0x38774800 # -70000.0f cmpg-float v7, v0, v5 if-gez v7, :cond_13 move v0, v5 :cond_13 add-float/2addr v0, v6 goto :goto_5 .line 1786 :cond_14 invoke-static {p2}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$5800(Lio/flutter/view/AccessibilityBridge$SemanticsNode;)F move-result v5 sub-float/2addr v4, v5 .line 1787 invoke-static {p2}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$5800(Lio/flutter/view/AccessibilityBridge$SemanticsNode;)F move-result v5 sub-float/2addr v0, v5 .line 1790 :goto_5 sget-object v5, Lio/flutter/view/AccessibilityBridge$Action;->SCROLL_UP:Lio/flutter/view/AccessibilityBridge$Action; invoke-static {p2, v5}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$5900(Lio/flutter/view/AccessibilityBridge$SemanticsNode;Lio/flutter/view/AccessibilityBridge$Action;)Z move-result v5 if-nez v5, :cond_17 sget-object v5, Lio/flutter/view/AccessibilityBridge$Action;->SCROLL_DOWN:Lio/flutter/view/AccessibilityBridge$Action; invoke-static {p2, v5}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$5900(Lio/flutter/view/AccessibilityBridge$SemanticsNode;Lio/flutter/view/AccessibilityBridge$Action;)Z move-result v5 if-eqz v5, :cond_15 goto :goto_6 .line 1793 :cond_15 sget-object v5, Lio/flutter/view/AccessibilityBridge$Action;->SCROLL_LEFT:Lio/flutter/view/AccessibilityBridge$Action; invoke-static {p2, v5}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$5900(Lio/flutter/view/AccessibilityBridge$SemanticsNode;Lio/flutter/view/AccessibilityBridge$Action;)Z move-result v5 if-nez v5, :cond_16 sget-object v5, Lio/flutter/view/AccessibilityBridge$Action;->SCROLL_RIGHT:Lio/flutter/view/AccessibilityBridge$Action; invoke-static {p2, v5}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$5900(Lio/flutter/view/AccessibilityBridge$SemanticsNode;Lio/flutter/view/AccessibilityBridge$Action;)Z move-result v5 if-eqz v5, :cond_18 :cond_16 float-to-int v0, v0 .line 1794 invoke-virtual {p3, v0}, Landroid/view/accessibility/AccessibilityEvent;->setScrollX(I)V float-to-int v0, v4 .line 1795 invoke-virtual {p3, v0}, Landroid/view/accessibility/AccessibilityEvent;->setMaxScrollX(I)V goto :goto_7 :cond_17 :goto_6 float-to-int v0, v0 .line 1791 invoke-virtual {p3, v0}, Landroid/view/accessibility/AccessibilityEvent;->setScrollY(I)V float-to-int v0, v4 .line 1792 invoke-virtual {p3, v0}, Landroid/view/accessibility/AccessibilityEvent;->setMaxScrollY(I)V .line 1797 :cond_18 :goto_7 invoke-static {p2}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$1400(Lio/flutter/view/AccessibilityBridge$SemanticsNode;)I move-result v0 if-lez v0, :cond_1b .line 1799 invoke-static {p2}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$1400(Lio/flutter/view/AccessibilityBridge$SemanticsNode;)I move-result v0 invoke-virtual {p3, v0}, Landroid/view/accessibility/AccessibilityEvent;->setItemCount(I)V .line 1800 invoke-static {p2}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$6000(Lio/flutter/view/AccessibilityBridge$SemanticsNode;)I move-result v0 invoke-virtual {p3, v0}, Landroid/view/accessibility/AccessibilityEvent;->setFromIndex(I)V .line 1803 invoke-static {p2}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$6100(Lio/flutter/view/AccessibilityBridge$SemanticsNode;)Ljava/util/List; move-result-object v0 invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator; move-result-object v0 move v4, v2 :cond_19 :goto_8 invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z move-result v5 if-eqz v5, :cond_1a invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object; move-result-object v5 check-cast v5, Lio/flutter/view/AccessibilityBridge$SemanticsNode; .line 1804 sget-object v6, Lio/flutter/view/AccessibilityBridge$Flag;->IS_HIDDEN:Lio/flutter/view/AccessibilityBridge$Flag; invoke-static {v5, v6}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$2000(Lio/flutter/view/AccessibilityBridge$SemanticsNode;Lio/flutter/view/AccessibilityBridge$Flag;)Z move-result v5 if-nez v5, :cond_19 add-int/lit8 v4, v4, 0x1 goto :goto_8 .line 1825 :cond_1a invoke-static {p2}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$6000(Lio/flutter/view/AccessibilityBridge$SemanticsNode;)I move-result v0 add-int/2addr v0, v4 sub-int/2addr v0, v1 invoke-virtual {p3, v0}, Landroid/view/accessibility/AccessibilityEvent;->setToIndex(I)V .line 1827 :cond_1b invoke-direct {p0, p3}, Lio/flutter/view/AccessibilityBridge;->sendAccessibilityEvent(Landroid/view/accessibility/AccessibilityEvent;)V .line 1829 :cond_1c sget-object p3, Lio/flutter/view/AccessibilityBridge$Flag;->IS_LIVE_REGION:Lio/flutter/view/AccessibilityBridge$Flag; invoke-static {p2, p3}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$2000(Lio/flutter/view/AccessibilityBridge$SemanticsNode;Lio/flutter/view/AccessibilityBridge$Flag;)Z move-result p3 if-eqz p3, :cond_1d invoke-static {p2}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$6200(Lio/flutter/view/AccessibilityBridge$SemanticsNode;)Z move-result p3 if-eqz p3, :cond_1d .line 1830 invoke-static {p2}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$000(Lio/flutter/view/AccessibilityBridge$SemanticsNode;)I move-result p3 invoke-direct {p0, p3}, Lio/flutter/view/AccessibilityBridge;->sendWindowContentChangeEvent(I)V :cond_1d iget-object p3, p0, Lio/flutter/view/AccessibilityBridge;->accessibilityFocusedSemanticsNode:Lio/flutter/view/AccessibilityBridge$SemanticsNode; if-eqz p3, :cond_1e .line 1833 invoke-static {p3}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$000(Lio/flutter/view/AccessibilityBridge$SemanticsNode;)I move-result p3 invoke-static {p2}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$000(Lio/flutter/view/AccessibilityBridge$SemanticsNode;)I move-result v0 if-ne p3, v0, :cond_1e sget-object p3, Lio/flutter/view/AccessibilityBridge$Flag;->IS_SELECTED:Lio/flutter/view/AccessibilityBridge$Flag; .line 1834 invoke-static {p2, p3}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$6300(Lio/flutter/view/AccessibilityBridge$SemanticsNode;Lio/flutter/view/AccessibilityBridge$Flag;)Z move-result p3 if-nez p3, :cond_1e sget-object p3, Lio/flutter/view/AccessibilityBridge$Flag;->IS_SELECTED:Lio/flutter/view/AccessibilityBridge$Flag; .line 1835 invoke-static {p2, p3}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$2000(Lio/flutter/view/AccessibilityBridge$SemanticsNode;Lio/flutter/view/AccessibilityBridge$Flag;)Z move-result p3 if-eqz p3, :cond_1e .line 1837 invoke-static {p2}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$000(Lio/flutter/view/AccessibilityBridge$SemanticsNode;)I move-result p3 const/4 v0, 0x4 invoke-direct {p0, p3, v0}, Lio/flutter/view/AccessibilityBridge;->obtainAccessibilityEvent(II)Landroid/view/accessibility/AccessibilityEvent; move-result-object p3 .line 1838 invoke-virtual {p3}, Landroid/view/accessibility/AccessibilityEvent;->getText()Ljava/util/List; move-result-object v0 invoke-static {p2}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$6400(Lio/flutter/view/AccessibilityBridge$SemanticsNode;)Ljava/lang/String; move-result-object v4 invoke-interface {v0, v4}, Ljava/util/List;->add(Ljava/lang/Object;)Z .line 1839 invoke-direct {p0, p3}, Lio/flutter/view/AccessibilityBridge;->sendAccessibilityEvent(Landroid/view/accessibility/AccessibilityEvent;)V :cond_1e iget-object p3, p0, Lio/flutter/view/AccessibilityBridge;->inputFocusedSemanticsNode:Lio/flutter/view/AccessibilityBridge$SemanticsNode; if-eqz p3, :cond_20 .line 1845 invoke-static {p3}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$000(Lio/flutter/view/AccessibilityBridge$SemanticsNode;)I move-result p3 invoke-static {p2}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$000(Lio/flutter/view/AccessibilityBridge$SemanticsNode;)I move-result v0 if-ne p3, v0, :cond_20 iget-object p3, p0, Lio/flutter/view/AccessibilityBridge;->lastInputFocusedSemanticsNode:Lio/flutter/view/AccessibilityBridge$SemanticsNode; if-eqz p3, :cond_1f .line 1847 invoke-static {p3}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$000(Lio/flutter/view/AccessibilityBridge$SemanticsNode;)I move-result p3 iget-object v0, p0, Lio/flutter/view/AccessibilityBridge;->inputFocusedSemanticsNode:Lio/flutter/view/AccessibilityBridge$SemanticsNode; invoke-static {v0}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$000(Lio/flutter/view/AccessibilityBridge$SemanticsNode;)I move-result v0 if-eq p3, v0, :cond_20 :cond_1f iget-object p3, p0, Lio/flutter/view/AccessibilityBridge;->inputFocusedSemanticsNode:Lio/flutter/view/AccessibilityBridge$SemanticsNode; iput-object p3, p0, Lio/flutter/view/AccessibilityBridge;->lastInputFocusedSemanticsNode:Lio/flutter/view/AccessibilityBridge$SemanticsNode; .line 1850 invoke-static {p2}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$000(Lio/flutter/view/AccessibilityBridge$SemanticsNode;)I move-result p3 const/16 v0, 0x8 invoke-direct {p0, p3, v0}, Lio/flutter/view/AccessibilityBridge;->obtainAccessibilityEvent(II)Landroid/view/accessibility/AccessibilityEvent; move-result-object p3 .line 1849 invoke-direct {p0, p3}, Lio/flutter/view/AccessibilityBridge;->sendAccessibilityEvent(Landroid/view/accessibility/AccessibilityEvent;)V goto :goto_9 :cond_20 iget-object p3, p0, Lio/flutter/view/AccessibilityBridge;->inputFocusedSemanticsNode:Lio/flutter/view/AccessibilityBridge$SemanticsNode; if-nez p3, :cond_21 iput-object v3, p0, Lio/flutter/view/AccessibilityBridge;->lastInputFocusedSemanticsNode:Lio/flutter/view/AccessibilityBridge$SemanticsNode; :cond_21 :goto_9 iget-object p3, p0, Lio/flutter/view/AccessibilityBridge;->inputFocusedSemanticsNode:Lio/flutter/view/AccessibilityBridge$SemanticsNode; if-eqz p3, :cond_10 .line 1859 invoke-static {p3}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$000(Lio/flutter/view/AccessibilityBridge$SemanticsNode;)I move-result p3 invoke-static {p2}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$000(Lio/flutter/view/AccessibilityBridge$SemanticsNode;)I move-result v0 if-ne p3, v0, :cond_10 sget-object p3, Lio/flutter/view/AccessibilityBridge$Flag;->IS_TEXT_FIELD:Lio/flutter/view/AccessibilityBridge$Flag; .line 1860 invoke-static {p2, p3}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$6300(Lio/flutter/view/AccessibilityBridge$SemanticsNode;Lio/flutter/view/AccessibilityBridge$Flag;)Z move-result p3 if-eqz p3, :cond_10 sget-object p3, Lio/flutter/view/AccessibilityBridge$Flag;->IS_TEXT_FIELD:Lio/flutter/view/AccessibilityBridge$Flag; .line 1861 invoke-static {p2, p3}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$2000(Lio/flutter/view/AccessibilityBridge$SemanticsNode;Lio/flutter/view/AccessibilityBridge$Flag;)Z move-result p3 if-eqz p3, :cond_10 iget-object p3, p0, Lio/flutter/view/AccessibilityBridge;->accessibilityFocusedSemanticsNode:Lio/flutter/view/AccessibilityBridge$SemanticsNode; if-eqz p3, :cond_22 .line 1867 invoke-static {p3}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$000(Lio/flutter/view/AccessibilityBridge$SemanticsNode;)I move-result p3 iget-object v0, p0, Lio/flutter/view/AccessibilityBridge;->inputFocusedSemanticsNode:Lio/flutter/view/AccessibilityBridge$SemanticsNode; invoke-static {v0}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$000(Lio/flutter/view/AccessibilityBridge$SemanticsNode;)I move-result v0 if-ne p3, v0, :cond_10 .line 1868 :cond_22 invoke-static {p2}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$6500(Lio/flutter/view/AccessibilityBridge$SemanticsNode;)Ljava/lang/String; move-result-object p3 const-string v0, "" if-eqz p3, :cond_23 invoke-static {p2}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$6500(Lio/flutter/view/AccessibilityBridge$SemanticsNode;)Ljava/lang/String; move-result-object p3 goto :goto_a :cond_23 move-object p3, v0 .line 1869 :goto_a invoke-static {p2}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$2500(Lio/flutter/view/AccessibilityBridge$SemanticsNode;)Ljava/lang/String; move-result-object v4 if-eqz v4, :cond_24 invoke-static {p2}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$2500(Lio/flutter/view/AccessibilityBridge$SemanticsNode;)Ljava/lang/String; move-result-object v0 .line 1870 :cond_24 invoke-static {p2}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$000(Lio/flutter/view/AccessibilityBridge$SemanticsNode;)I move-result v4 invoke-direct {p0, v4, p3, v0}, Lio/flutter/view/AccessibilityBridge;->createTextChangedEvent(ILjava/lang/String;Ljava/lang/String;)Landroid/view/accessibility/AccessibilityEvent; move-result-object p3 if-eqz p3, :cond_25 .line 1872 invoke-direct {p0, p3}, Lio/flutter/view/AccessibilityBridge;->sendAccessibilityEvent(Landroid/view/accessibility/AccessibilityEvent;)V .line 1875 :cond_25 invoke-static {p2}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$6600(Lio/flutter/view/AccessibilityBridge$SemanticsNode;)I move-result p3 invoke-static {p2}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$2100(Lio/flutter/view/AccessibilityBridge$SemanticsNode;)I move-result v4 if-ne p3, v4, :cond_26 .line 1876 invoke-static {p2}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$6700(Lio/flutter/view/AccessibilityBridge$SemanticsNode;)I move-result p3 invoke-static {p2}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$2200(Lio/flutter/view/AccessibilityBridge$SemanticsNode;)I move-result v4 if-eq p3, v4, :cond_10 .line 1879 :cond_26 invoke-static {p2}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$000(Lio/flutter/view/AccessibilityBridge$SemanticsNode;)I move-result p3 const/16 v4, 0x2000 .line 1878 invoke-direct {p0, p3, v4}, Lio/flutter/view/AccessibilityBridge;->obtainAccessibilityEvent(II)Landroid/view/accessibility/AccessibilityEvent; move-result-object p3 .line 1880 invoke-virtual {p3}, Landroid/view/accessibility/AccessibilityEvent;->getText()Ljava/util/List; move-result-object v4 invoke-interface {v4, v0}, Ljava/util/List;->add(Ljava/lang/Object;)Z .line 1881 invoke-static {p2}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$2100(Lio/flutter/view/AccessibilityBridge$SemanticsNode;)I move-result v4 invoke-virtual {p3, v4}, Landroid/view/accessibility/AccessibilityEvent;->setFromIndex(I)V .line 1882 invoke-static {p2}, Lio/flutter/view/AccessibilityBridge$SemanticsNode;->access$2200(Lio/flutter/view/AccessibilityBridge$SemanticsNode;)I move-result p2 invoke-virtual {p3, p2}, Landroid/view/accessibility/AccessibilityEvent;->setToIndex(I)V .line 1883 invoke-virtual {v0}, Ljava/lang/String;->length()I move-result p2 invoke-virtual {p3, p2}, Landroid/view/accessibility/AccessibilityEvent;->setItemCount(I)V .line 1884 invoke-direct {p0, p3}, Lio/flutter/view/AccessibilityBridge;->sendAccessibilityEvent(Landroid/view/accessibility/AccessibilityEvent;)V goto/16 :goto_4 :cond_27 return-void .end method