mirror of
https://github.com/Pinball3D/Rabbit-R1.git
synced 2025-01-09 13:43:22 +00:00
2514 lines
73 KiB
Smali
2514 lines
73 KiB
Smali
|
.class Lio/flutter/embedding/engine/FlutterEngineConnectionRegistry;
|
||
|
.super Ljava/lang/Object;
|
||
|
.source "FlutterEngineConnectionRegistry.java"
|
||
|
|
||
|
# interfaces
|
||
|
.implements Lio/flutter/embedding/engine/plugins/PluginRegistry;
|
||
|
.implements Lio/flutter/embedding/engine/plugins/activity/ActivityControlSurface;
|
||
|
.implements Lio/flutter/embedding/engine/plugins/service/ServiceControlSurface;
|
||
|
.implements Lio/flutter/embedding/engine/plugins/broadcastreceiver/BroadcastReceiverControlSurface;
|
||
|
.implements Lio/flutter/embedding/engine/plugins/contentprovider/ContentProviderControlSurface;
|
||
|
|
||
|
|
||
|
# annotations
|
||
|
.annotation system Ldalvik/annotation/MemberClasses;
|
||
|
value = {
|
||
|
Lio/flutter/embedding/engine/FlutterEngineConnectionRegistry$DefaultFlutterAssets;,
|
||
|
Lio/flutter/embedding/engine/FlutterEngineConnectionRegistry$FlutterEngineActivityPluginBinding;,
|
||
|
Lio/flutter/embedding/engine/FlutterEngineConnectionRegistry$FlutterEngineServicePluginBinding;,
|
||
|
Lio/flutter/embedding/engine/FlutterEngineConnectionRegistry$FlutterEngineBroadcastReceiverPluginBinding;,
|
||
|
Lio/flutter/embedding/engine/FlutterEngineConnectionRegistry$FlutterEngineContentProviderPluginBinding;
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
|
||
|
# static fields
|
||
|
.field private static final TAG:Ljava/lang/String; = "FlutterEngineCxnRegstry"
|
||
|
|
||
|
|
||
|
# instance fields
|
||
|
.field private final activityAwarePlugins:Ljava/util/Map;
|
||
|
.annotation system Ldalvik/annotation/Signature;
|
||
|
value = {
|
||
|
"Ljava/util/Map<",
|
||
|
"Ljava/lang/Class<",
|
||
|
"+",
|
||
|
"Lio/flutter/embedding/engine/plugins/FlutterPlugin;",
|
||
|
">;",
|
||
|
"Lio/flutter/embedding/engine/plugins/activity/ActivityAware;",
|
||
|
">;"
|
||
|
}
|
||
|
.end annotation
|
||
|
.end field
|
||
|
|
||
|
.field private activityPluginBinding:Lio/flutter/embedding/engine/FlutterEngineConnectionRegistry$FlutterEngineActivityPluginBinding;
|
||
|
|
||
|
.field private broadcastReceiver:Landroid/content/BroadcastReceiver;
|
||
|
|
||
|
.field private final broadcastReceiverAwarePlugins:Ljava/util/Map;
|
||
|
.annotation system Ldalvik/annotation/Signature;
|
||
|
value = {
|
||
|
"Ljava/util/Map<",
|
||
|
"Ljava/lang/Class<",
|
||
|
"+",
|
||
|
"Lio/flutter/embedding/engine/plugins/FlutterPlugin;",
|
||
|
">;",
|
||
|
"Lio/flutter/embedding/engine/plugins/broadcastreceiver/BroadcastReceiverAware;",
|
||
|
">;"
|
||
|
}
|
||
|
.end annotation
|
||
|
.end field
|
||
|
|
||
|
.field private broadcastReceiverPluginBinding:Lio/flutter/embedding/engine/FlutterEngineConnectionRegistry$FlutterEngineBroadcastReceiverPluginBinding;
|
||
|
|
||
|
.field private contentProvider:Landroid/content/ContentProvider;
|
||
|
|
||
|
.field private final contentProviderAwarePlugins:Ljava/util/Map;
|
||
|
.annotation system Ldalvik/annotation/Signature;
|
||
|
value = {
|
||
|
"Ljava/util/Map<",
|
||
|
"Ljava/lang/Class<",
|
||
|
"+",
|
||
|
"Lio/flutter/embedding/engine/plugins/FlutterPlugin;",
|
||
|
">;",
|
||
|
"Lio/flutter/embedding/engine/plugins/contentprovider/ContentProviderAware;",
|
||
|
">;"
|
||
|
}
|
||
|
.end annotation
|
||
|
.end field
|
||
|
|
||
|
.field private contentProviderPluginBinding:Lio/flutter/embedding/engine/FlutterEngineConnectionRegistry$FlutterEngineContentProviderPluginBinding;
|
||
|
|
||
|
.field private exclusiveActivity:Lio/flutter/embedding/android/ExclusiveAppComponent;
|
||
|
.annotation system Ldalvik/annotation/Signature;
|
||
|
value = {
|
||
|
"Lio/flutter/embedding/android/ExclusiveAppComponent<",
|
||
|
"Landroid/app/Activity;",
|
||
|
">;"
|
||
|
}
|
||
|
.end annotation
|
||
|
.end field
|
||
|
|
||
|
.field private final flutterEngine:Lio/flutter/embedding/engine/FlutterEngine;
|
||
|
|
||
|
.field private isWaitingForActivityReattachment:Z
|
||
|
|
||
|
.field private final pluginBinding:Lio/flutter/embedding/engine/plugins/FlutterPlugin$FlutterPluginBinding;
|
||
|
|
||
|
.field private final plugins:Ljava/util/Map;
|
||
|
.annotation system Ldalvik/annotation/Signature;
|
||
|
value = {
|
||
|
"Ljava/util/Map<",
|
||
|
"Ljava/lang/Class<",
|
||
|
"+",
|
||
|
"Lio/flutter/embedding/engine/plugins/FlutterPlugin;",
|
||
|
">;",
|
||
|
"Lio/flutter/embedding/engine/plugins/FlutterPlugin;",
|
||
|
">;"
|
||
|
}
|
||
|
.end annotation
|
||
|
.end field
|
||
|
|
||
|
.field private service:Landroid/app/Service;
|
||
|
|
||
|
.field private final serviceAwarePlugins:Ljava/util/Map;
|
||
|
.annotation system Ldalvik/annotation/Signature;
|
||
|
value = {
|
||
|
"Ljava/util/Map<",
|
||
|
"Ljava/lang/Class<",
|
||
|
"+",
|
||
|
"Lio/flutter/embedding/engine/plugins/FlutterPlugin;",
|
||
|
">;",
|
||
|
"Lio/flutter/embedding/engine/plugins/service/ServiceAware;",
|
||
|
">;"
|
||
|
}
|
||
|
.end annotation
|
||
|
.end field
|
||
|
|
||
|
.field private servicePluginBinding:Lio/flutter/embedding/engine/FlutterEngineConnectionRegistry$FlutterEngineServicePluginBinding;
|
||
|
|
||
|
|
||
|
# direct methods
|
||
|
.method constructor <init>(Landroid/content/Context;Lio/flutter/embedding/engine/FlutterEngine;Lio/flutter/embedding/engine/loader/FlutterLoader;Lio/flutter/embedding/engine/FlutterEngineGroup;)V
|
||
|
.locals 9
|
||
|
|
||
|
.line 101
|
||
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
||
|
|
||
|
.line 57
|
||
|
new-instance v0, Ljava/util/HashMap;
|
||
|
|
||
|
invoke-direct {v0}, Ljava/util/HashMap;-><init>()V
|
||
|
|
||
|
iput-object v0, p0, Lio/flutter/embedding/engine/FlutterEngineConnectionRegistry;->plugins:Ljava/util/Map;
|
||
|
|
||
|
.line 65
|
||
|
new-instance v0, Ljava/util/HashMap;
|
||
|
|
||
|
invoke-direct {v0}, Ljava/util/HashMap;-><init>()V
|
||
|
|
||
|
iput-object v0, p0, Lio/flutter/embedding/engine/FlutterEngineConnectionRegistry;->activityAwarePlugins:Ljava/util/Map;
|
||
|
|
||
|
const/4 v0, 0x0
|
||
|
|
||
|
iput-boolean v0, p0, Lio/flutter/embedding/engine/FlutterEngineConnectionRegistry;->isWaitingForActivityReattachment:Z
|
||
|
|
||
|
.line 74
|
||
|
new-instance v0, Ljava/util/HashMap;
|
||
|
|
||
|
invoke-direct {v0}, Ljava/util/HashMap;-><init>()V
|
||
|
|
||
|
iput-object v0, p0, Lio/flutter/embedding/engine/FlutterEngineConnectionRegistry;->serviceAwarePlugins:Ljava/util/Map;
|
||
|
|
||
|
.line 82
|
||
|
new-instance v0, Ljava/util/HashMap;
|
||
|
|
||
|
invoke-direct {v0}, Ljava/util/HashMap;-><init>()V
|
||
|
|
||
|
iput-object v0, p0, Lio/flutter/embedding/engine/FlutterEngineConnectionRegistry;->broadcastReceiverAwarePlugins:Ljava/util/Map;
|
||
|
|
||
|
.line 90
|
||
|
new-instance v0, Ljava/util/HashMap;
|
||
|
|
||
|
invoke-direct {v0}, Ljava/util/HashMap;-><init>()V
|
||
|
|
||
|
iput-object v0, p0, Lio/flutter/embedding/engine/FlutterEngineConnectionRegistry;->contentProviderAwarePlugins:Ljava/util/Map;
|
||
|
|
||
|
iput-object p2, p0, Lio/flutter/embedding/engine/FlutterEngineConnectionRegistry;->flutterEngine:Lio/flutter/embedding/engine/FlutterEngine;
|
||
|
|
||
|
.line 103
|
||
|
new-instance v0, Lio/flutter/embedding/engine/plugins/FlutterPlugin$FlutterPluginBinding;
|
||
|
|
||
|
.line 107
|
||
|
invoke-virtual {p2}, Lio/flutter/embedding/engine/FlutterEngine;->getDartExecutor()Lio/flutter/embedding/engine/dart/DartExecutor;
|
||
|
|
||
|
move-result-object v4
|
||
|
|
||
|
.line 108
|
||
|
invoke-virtual {p2}, Lio/flutter/embedding/engine/FlutterEngine;->getRenderer()Lio/flutter/embedding/engine/renderer/FlutterRenderer;
|
||
|
|
||
|
move-result-object v5
|
||
|
|
||
|
.line 109
|
||
|
invoke-virtual {p2}, Lio/flutter/embedding/engine/FlutterEngine;->getPlatformViewsController()Lio/flutter/plugin/platform/PlatformViewsController;
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
invoke-virtual {v1}, Lio/flutter/plugin/platform/PlatformViewsController;->getRegistry()Lio/flutter/plugin/platform/PlatformViewRegistry;
|
||
|
|
||
|
move-result-object v6
|
||
|
|
||
|
new-instance v7, Lio/flutter/embedding/engine/FlutterEngineConnectionRegistry$DefaultFlutterAssets;
|
||
|
|
||
|
const/4 v1, 0x0
|
||
|
|
||
|
invoke-direct {v7, p3, v1}, Lio/flutter/embedding/engine/FlutterEngineConnectionRegistry$DefaultFlutterAssets;-><init>(Lio/flutter/embedding/engine/loader/FlutterLoader;Lio/flutter/embedding/engine/FlutterEngineConnectionRegistry$1;)V
|
||
|
|
||
|
move-object v1, v0
|
||
|
|
||
|
move-object v2, p1
|
||
|
|
||
|
move-object v3, p2
|
||
|
|
||
|
move-object v8, p4
|
||
|
|
||
|
invoke-direct/range {v1 .. v8}, Lio/flutter/embedding/engine/plugins/FlutterPlugin$FlutterPluginBinding;-><init>(Landroid/content/Context;Lio/flutter/embedding/engine/FlutterEngine;Lio/flutter/plugin/common/BinaryMessenger;Lio/flutter/view/TextureRegistry;Lio/flutter/plugin/platform/PlatformViewRegistry;Lio/flutter/embedding/engine/plugins/FlutterPlugin$FlutterAssets;Lio/flutter/embedding/engine/FlutterEngineGroup;)V
|
||
|
|
||
|
iput-object v0, p0, Lio/flutter/embedding/engine/FlutterEngineConnectionRegistry;->pluginBinding:Lio/flutter/embedding/engine/plugins/FlutterPlugin$FlutterPluginBinding;
|
||
|
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
.method private attachToActivityInternal(Landroid/app/Activity;Landroidx/lifecycle/Lifecycle;)V
|
||
|
.locals 3
|
||
|
|
||
|
.line 328
|
||
|
new-instance v0, Lio/flutter/embedding/engine/FlutterEngineConnectionRegistry$FlutterEngineActivityPluginBinding;
|
||
|
|
||
|
invoke-direct {v0, p1, p2}, Lio/flutter/embedding/engine/FlutterEngineConnectionRegistry$FlutterEngineActivityPluginBinding;-><init>(Landroid/app/Activity;Landroidx/lifecycle/Lifecycle;)V
|
||
|
|
||
|
iput-object v0, p0, Lio/flutter/embedding/engine/FlutterEngineConnectionRegistry;->activityPluginBinding:Lio/flutter/embedding/engine/FlutterEngineConnectionRegistry$FlutterEngineActivityPluginBinding;
|
||
|
|
||
|
.line 331
|
||
|
invoke-virtual {p1}, Landroid/app/Activity;->getIntent()Landroid/content/Intent;
|
||
|
|
||
|
move-result-object p2
|
||
|
|
||
|
const/4 v0, 0x0
|
||
|
|
||
|
if-eqz p2, :cond_0
|
||
|
|
||
|
.line 333
|
||
|
invoke-virtual {p1}, Landroid/app/Activity;->getIntent()Landroid/content/Intent;
|
||
|
|
||
|
move-result-object p2
|
||
|
|
||
|
const-string v1, "enable-software-rendering"
|
||
|
|
||
|
.line 334
|
||
|
invoke-virtual {p2, v1, v0}, Landroid/content/Intent;->getBooleanExtra(Ljava/lang/String;Z)Z
|
||
|
|
||
|
move-result p2
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
:cond_0
|
||
|
move p2, v0
|
||
|
|
||
|
:goto_0
|
||
|
iget-object v1, p0, Lio/flutter/embedding/engine/FlutterEngineConnectionRegistry;->flutterEngine:Lio/flutter/embedding/engine/FlutterEngine;
|
||
|
|
||
|
.line 336
|
||
|
invoke-virtual {v1}, Lio/flutter/embedding/engine/FlutterEngine;->getPlatformViewsController()Lio/flutter/plugin/platform/PlatformViewsController;
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
invoke-virtual {v1, p2}, Lio/flutter/plugin/platform/PlatformViewsController;->setSoftwareRendering(Z)V
|
||
|
|
||
|
iget-object p2, p0, Lio/flutter/embedding/engine/FlutterEngineConnectionRegistry;->flutterEngine:Lio/flutter/embedding/engine/FlutterEngine;
|
||
|
|
||
|
.line 342
|
||
|
invoke-virtual {p2}, Lio/flutter/embedding/engine/FlutterEngine;->getPlatformViewsController()Lio/flutter/plugin/platform/PlatformViewsController;
|
||
|
|
||
|
move-result-object p2
|
||
|
|
||
|
iget-object v1, p0, Lio/flutter/embedding/engine/FlutterEngineConnectionRegistry;->flutterEngine:Lio/flutter/embedding/engine/FlutterEngine;
|
||
|
|
||
|
.line 343
|
||
|
invoke-virtual {v1}, Lio/flutter/embedding/engine/FlutterEngine;->getRenderer()Lio/flutter/embedding/engine/renderer/FlutterRenderer;
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
iget-object v2, p0, Lio/flutter/embedding/engine/FlutterEngineConnectionRegistry;->flutterEngine:Lio/flutter/embedding/engine/FlutterEngine;
|
||
|
|
||
|
invoke-virtual {v2}, Lio/flutter/embedding/engine/FlutterEngine;->getDartExecutor()Lio/flutter/embedding/engine/dart/DartExecutor;
|
||
|
|
||
|
move-result-object v2
|
||
|
|
||
|
invoke-virtual {p2, p1, v1, v2}, Lio/flutter/plugin/platform/PlatformViewsController;->attach(Landroid/content/Context;Lio/flutter/view/TextureRegistry;Lio/flutter/embedding/engine/dart/DartExecutor;)V
|
||
|
|
||
|
iget-object p1, p0, Lio/flutter/embedding/engine/FlutterEngineConnectionRegistry;->activityAwarePlugins:Ljava/util/Map;
|
||
|
|
||
|
.line 346
|
||
|
invoke-interface {p1}, Ljava/util/Map;->values()Ljava/util/Collection;
|
||
|
|
||
|
move-result-object p1
|
||
|
|
||
|
invoke-interface {p1}, Ljava/util/Collection;->iterator()Ljava/util/Iterator;
|
||
|
|
||
|
move-result-object p1
|
||
|
|
||
|
:goto_1
|
||
|
invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z
|
||
|
|
||
|
move-result p2
|
||
|
|
||
|
if-eqz p2, :cond_2
|
||
|
|
||
|
invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
||
|
|
||
|
move-result-object p2
|
||
|
|
||
|
check-cast p2, Lio/flutter/embedding/engine/plugins/activity/ActivityAware;
|
||
|
|
||
|
iget-boolean v1, p0, Lio/flutter/embedding/engine/FlutterEngineConnectionRegistry;->isWaitingForActivityReattachment:Z
|
||
|
|
||
|
if-eqz v1, :cond_1
|
||
|
|
||
|
iget-object v1, p0, Lio/flutter/embedding/engine/FlutterEngineConnectionRegistry;->activityPluginBinding:Lio/flutter/embedding/engine/FlutterEngineConnectionRegistry$FlutterEngineActivityPluginBinding;
|
||
|
|
||
|
.line 348
|
||
|
invoke-interface {p2, v1}, Lio/flutter/embedding/engine/plugins/activity/ActivityAware;->onReattachedToActivityForConfigChanges(Lio/flutter/embedding/engine/plugins/activity/ActivityPluginBinding;)V
|
||
|
|
||
|
goto :goto_1
|
||
|
|
||
|
:cond_1
|
||
|
iget-object v1, p0, Lio/flutter/embedding/engine/FlutterEngineConnectionRegistry;->activityPluginBinding:Lio/flutter/embedding/engine/FlutterEngineConnectionRegistry$FlutterEngineActivityPluginBinding;
|
||
|
|
||
|
.line 350
|
||
|
invoke-interface {p2, v1}, Lio/flutter/embedding/engine/plugins/activity/ActivityAware;->onAttachedToActivity(Lio/flutter/embedding/engine/plugins/activity/ActivityPluginBinding;)V
|
||
|
|
||
|
goto :goto_1
|
||
|
|
||
|
:cond_2
|
||
|
iput-boolean v0, p0, Lio/flutter/embedding/engine/FlutterEngineConnectionRegistry;->isWaitingForActivityReattachment:Z
|
||
|
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
.method private attachedActivity()Landroid/app/Activity;
|
||
|
.locals 0
|
||
|
|
||
|
iget-object p0, p0, Lio/flutter/embedding/engine/FlutterEngineConnectionRegistry;->exclusiveActivity:Lio/flutter/embedding/android/ExclusiveAppComponent;
|
||
|
|
||
|
if-eqz p0, :cond_0
|
||
|
|
||
|
.line 310
|
||
|
invoke-interface {p0}, Lio/flutter/embedding/android/ExclusiveAppComponent;->getAppComponent()Ljava/lang/Object;
|
||
|
|
||
|
move-result-object p0
|
||
|
|
||
|
check-cast p0, Landroid/app/Activity;
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
:cond_0
|
||
|
const/4 p0, 0x0
|
||
|
|
||
|
:goto_0
|
||
|
return-object p0
|
||
|
.end method
|
||
|
|
||
|
.method private detachFromActivityInternal()V
|
||
|
.locals 1
|
||
|
|
||
|
iget-object v0, p0, Lio/flutter/embedding/engine/FlutterEngineConnectionRegistry;->flutterEngine:Lio/flutter/embedding/engine/FlutterEngine;
|
||
|
|
||
|
.line 393
|
||
|
invoke-virtual {v0}, Lio/flutter/embedding/engine/FlutterEngine;->getPlatformViewsController()Lio/flutter/plugin/platform/PlatformViewsController;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
invoke-virtual {v0}, Lio/flutter/plugin/platform/PlatformViewsController;->detach()V
|
||
|
|
||
|
const/4 v0, 0x0
|
||
|
|
||
|
iput-object v0, p0, Lio/flutter/embedding/engine/FlutterEngineConnectionRegistry;->exclusiveActivity:Lio/flutter/embedding/android/ExclusiveAppComponent;
|
||
|
|
||
|
iput-object v0, p0, Lio/flutter/embedding/engine/FlutterEngineConnectionRegistry;->activityPluginBinding:Lio/flutter/embedding/engine/FlutterEngineConnectionRegistry$FlutterEngineActivityPluginBinding;
|
||
|
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
.method private detachFromAppComponent()V
|
||
|
.locals 1
|
||
|
|
||
|
.line 293
|
||
|
invoke-direct {p0}, Lio/flutter/embedding/engine/FlutterEngineConnectionRegistry;->isAttachedToActivity()Z
|
||
|
|
||
|
move-result v0
|
||
|
|
||
|
if-eqz v0, :cond_0
|
||
|
|
||
|
.line 294
|
||
|
invoke-virtual {p0}, Lio/flutter/embedding/engine/FlutterEngineConnectionRegistry;->detachFromActivity()V
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
.line 295
|
||
|
:cond_0
|
||
|
invoke-direct {p0}, Lio/flutter/embedding/engine/FlutterEngineConnectionRegistry;->isAttachedToService()Z
|
||
|
|
||
|
move-result v0
|
||
|
|
||
|
if-eqz v0, :cond_1
|
||
|
|
||
|
.line 296
|
||
|
invoke-virtual {p0}, Lio/flutter/embedding/engine/FlutterEngineConnectionRegistry;->detachFromService()V
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
.line 297
|
||
|
:cond_1
|
||
|
invoke-direct {p0}, Lio/flutter/embedding/engine/FlutterEngineConnectionRegistry;->isAttachedToBroadcastReceiver()Z
|
||
|
|
||
|
move-result v0
|
||
|
|
||
|
if-eqz v0, :cond_2
|
||
|
|
||
|
.line 298
|
||
|
invoke-virtual {p0}, Lio/flutter/embedding/engine/FlutterEngineConnectionRegistry;->detachFromBroadcastReceiver()V
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
.line 299
|
||
|
:cond_2
|
||
|
invoke-direct {p0}, Lio/flutter/embedding/engine/FlutterEngineConnectionRegistry;->isAttachedToContentProvider()Z
|
||
|
|
||
|
move-result v0
|
||
|
|
||
|
if-eqz v0, :cond_3
|
||
|
|
||
|
.line 300
|
||
|
invoke-virtual {p0}, Lio/flutter/embedding/engine/FlutterEngineConnectionRegistry;->detachFromContentProvider()V
|
||
|
|
||
|
:cond_3
|
||
|
:goto_0
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
.method private isAttachedToActivity()Z
|
||
|
.locals 0
|
||
|
|
||
|
iget-object p0, p0, Lio/flutter/embedding/engine/FlutterEngineConnectionRegistry;->exclusiveActivity:Lio/flutter/embedding/android/ExclusiveAppComponent;
|
||
|
|
||
|
if-eqz p0, :cond_0
|
||
|
|
||
|
const/4 p0, 0x1
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
:cond_0
|
||
|
const/4 p0, 0x0
|
||
|
|
||
|
:goto_0
|
||
|
return p0
|
||
|
.end method
|
||
|
|
||
|
.method private isAttachedToBroadcastReceiver()Z
|
||
|
.locals 0
|
||
|
|
||
|
iget-object p0, p0, Lio/flutter/embedding/engine/FlutterEngineConnectionRegistry;->broadcastReceiver:Landroid/content/BroadcastReceiver;
|
||
|
|
||
|
if-eqz p0, :cond_0
|
||
|
|
||
|
const/4 p0, 0x1
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
:cond_0
|
||
|
const/4 p0, 0x0
|
||
|
|
||
|
:goto_0
|
||
|
return p0
|
||
|
.end method
|
||
|
|
||
|
.method private isAttachedToContentProvider()Z
|
||
|
.locals 0
|
||
|
|
||
|
iget-object p0, p0, Lio/flutter/embedding/engine/FlutterEngineConnectionRegistry;->contentProvider:Landroid/content/ContentProvider;
|
||
|
|
||
|
if-eqz p0, :cond_0
|
||
|
|
||
|
const/4 p0, 0x1
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
:cond_0
|
||
|
const/4 p0, 0x0
|
||
|
|
||
|
:goto_0
|
||
|
return p0
|
||
|
.end method
|
||
|
|
||
|
.method private isAttachedToService()Z
|
||
|
.locals 0
|
||
|
|
||
|
iget-object p0, p0, Lio/flutter/embedding/engine/FlutterEngineConnectionRegistry;->service:Landroid/app/Service;
|
||
|
|
||
|
if-eqz p0, :cond_0
|
||
|
|
||
|
const/4 p0, 0x1
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
:cond_0
|
||
|
const/4 p0, 0x0
|
||
|
|
||
|
:goto_0
|
||
|
return p0
|
||
|
.end method
|
||
|
|
||
|
|
||
|
# virtual methods
|
||
|
.method public add(Lio/flutter/embedding/engine/plugins/FlutterPlugin;)V
|
||
|
.locals 5
|
||
|
|
||
|
const-string v0, "Attempted to register plugin ("
|
||
|
|
||
|
const-string v1, "Adding plugin: "
|
||
|
|
||
|
.line 128
|
||
|
new-instance v2, Ljava/lang/StringBuilder;
|
||
|
|
||
|
const-string v3, "FlutterEngineConnectionRegistry#add "
|
||
|
|
||
|
invoke-direct {v2, v3}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
|
||
|
|
||
|
.line 130
|
||
|
invoke-virtual {p1}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
|
||
|
|
||
|
move-result-object v3
|
||
|
|
||
|
invoke-virtual {v3}, Ljava/lang/Class;->getSimpleName()Ljava/lang/String;
|
||
|
|
||
|
move-result-object v3
|
||
|
|
||
|
invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||
|
|
||
|
move-result-object v2
|
||
|
|
||
|
invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
||
|
|
||
|
move-result-object v2
|
||
|
|
||
|
.line 129
|
||
|
invoke-static {v2}, Lio/flutter/util/TraceSection;->scoped(Ljava/lang/String;)Lio/flutter/util/TraceSection;
|
||
|
|
||
|
move-result-object v2
|
||
|
|
||
|
.line 131
|
||
|
:try_start_0
|
||
|
invoke-virtual {p1}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
|
||
|
|
||
|
move-result-object v3
|
||
|
|
||
|
invoke-virtual {p0, v3}, Lio/flutter/embedding/engine/FlutterEngineConnectionRegistry;->has(Ljava/lang/Class;)Z
|
||
|
|
||
|
move-result v3
|
||
|
:try_end_0
|
||
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
||
|
|
||
|
const-string v4, "FlutterEngineCxnRegstry"
|
||
|
|
||
|
if-eqz v3, :cond_1
|
||
|
|
||
|
.line 132
|
||
|
:try_start_1
|
||
|
new-instance v1, Ljava/lang/StringBuilder;
|
||
|
|
||
|
invoke-direct {v1, v0}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
|
||
|
|
||
|
invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
||
|
|
||
|
move-result-object p1
|
||
|
|
||
|
const-string v0, ") but it was already registered with this FlutterEngine ("
|
||
|
|
||
|
invoke-virtual {p1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||
|
|
||
|
move-result-object p1
|
||
|
|
||
|
iget-object p0, p0, Lio/flutter/embedding/engine/FlutterEngineConnectionRegistry;->flutterEngine:Lio/flutter/embedding/engine/FlutterEngine;
|
||
|
|
||
|
invoke-virtual {p1, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
||
|
|
||
|
move-result-object p0
|
||
|
|
||
|
const-string p1, ")."
|
||
|
|
||
|
invoke-virtual {p0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||
|
|
||
|
move-result-object p0
|
||
|
|
||
|
invoke-virtual {p0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
||
|
|
||
|
move-result-object p0
|
||
|
|
||
|
invoke-static {v4, p0}, Lio/flutter/Log;->w(Ljava/lang/String;Ljava/lang/String;)V
|
||
|
:try_end_1
|
||
|
.catchall {:try_start_1 .. :try_end_1} :catchall_0
|
||
|
|
||
|
if-eqz v2, :cond_0
|
||
|
|
||
|
.line 196
|
||
|
invoke-virtual {v2}, Lio/flutter/util/TraceSection;->close()V
|
||
|
|
||
|
:cond_0
|
||
|
return-void
|
||
|
|
||
|
.line 143
|
||
|
:cond_1
|
||
|
:try_start_2
|
||
|
new-instance v0, Ljava/lang/StringBuilder;
|
||
|
|
||
|
invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
|
||
|
|
||
|
invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
invoke-static {v4, v0}, Lio/flutter/Log;->v(Ljava/lang/String;Ljava/lang/String;)V
|
||
|
|
||
|
iget-object v0, p0, Lio/flutter/embedding/engine/FlutterEngineConnectionRegistry;->plugins:Ljava/util/Map;
|
||
|
|
||
|
.line 146
|
||
|
invoke-virtual {p1}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
invoke-interface {v0, v1, p1}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
||
|
|
||
|
iget-object v0, p0, Lio/flutter/embedding/engine/FlutterEngineConnectionRegistry;->pluginBinding:Lio/flutter/embedding/engine/plugins/FlutterPlugin$FlutterPluginBinding;
|
||
|
|
||
|
.line 147
|
||
|
invoke-interface {p1, v0}, Lio/flutter/embedding/engine/plugins/FlutterPlugin;->onAttachedToEngine(Lio/flutter/embedding/engine/plugins/FlutterPlugin$FlutterPluginBinding;)V
|
||
|
|
||
|
.line 152
|
||
|
instance-of v0, p1, Lio/flutter/embedding/engine/plugins/activity/ActivityAware;
|
||
|
|
||
|
if-eqz v0, :cond_2
|
||
|
|
||
|
.line 153
|
||
|
move-object v0, p1
|
||
|
|
||
|
check-cast v0, Lio/flutter/embedding/engine/plugins/activity/ActivityAware;
|
||
|
|
||
|
iget-object v1, p0, Lio/flutter/embedding/engine/FlutterEngineConnectionRegistry;->activityAwarePlugins:Ljava/util/Map;
|
||
|
|
||
|
.line 154
|
||
|
invoke-virtual {p1}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
|
||
|
|
||
|
move-result-object v3
|
||
|
|
||
|
invoke-interface {v1, v3, v0}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
||
|
|
||
|
.line 156
|
||
|
invoke-direct {p0}, Lio/flutter/embedding/engine/FlutterEngineConnectionRegistry;->isAttachedToActivity()Z
|
||
|
|
||
|
move-result v1
|
||
|
|
||
|
if-eqz v1, :cond_2
|
||
|
|
||
|
iget-object v1, p0, Lio/flutter/embedding/engine/FlutterEngineConnectionRegistry;->activityPluginBinding:Lio/flutter/embedding/engine/FlutterEngineConnectionRegistry$FlutterEngineActivityPluginBinding;
|
||
|
|
||
|
.line 157
|
||
|
invoke-interface {v0, v1}, Lio/flutter/embedding/engine/plugins/activity/ActivityAware;->onAttachedToActivity(Lio/flutter/embedding/engine/plugins/activity/ActivityPluginBinding;)V
|
||
|
|
||
|
.line 164
|
||
|
:cond_2
|
||
|
instance-of v0, p1, Lio/flutter/embedding/engine/plugins/service/ServiceAware;
|
||
|
|
||
|
if-eqz v0, :cond_3
|
||
|
|
||
|
.line 165
|
||
|
move-object v0, p1
|
||
|
|
||
|
check-cast v0, Lio/flutter/embedding/engine/plugins/service/ServiceAware;
|
||
|
|
||
|
iget-object v1, p0, Lio/flutter/embedding/engine/FlutterEngineConnectionRegistry;->serviceAwarePlugins:Ljava/util/Map;
|
||
|
|
||
|
.line 166
|
||
|
invoke-virtual {p1}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
|
||
|
|
||
|
move-result-object v3
|
||
|
|
||
|
invoke-interface {v1, v3, v0}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
||
|
|
||
|
.line 168
|
||
|
invoke-direct {p0}, Lio/flutter/embedding/engine/FlutterEngineConnectionRegistry;->isAttachedToService()Z
|
||
|
|
||
|
move-result v1
|
||
|
|
||
|
if-eqz v1, :cond_3
|
||
|
|
||
|
iget-object v1, p0, Lio/flutter/embedding/engine/FlutterEngineConnectionRegistry;->servicePluginBinding:Lio/flutter/embedding/engine/FlutterEngineConnectionRegistry$FlutterEngineServicePluginBinding;
|
||
|
|
||
|
.line 169
|
||
|
invoke-interface {v0, v1}, Lio/flutter/embedding/engine/plugins/service/ServiceAware;->onAttachedToService(Lio/flutter/embedding/engine/plugins/service/ServicePluginBinding;)V
|
||
|
|
||
|
.line 176
|
||
|
:cond_3
|
||
|
instance-of v0, p1, Lio/flutter/embedding/engine/plugins/broadcastreceiver/BroadcastReceiverAware;
|
||
|
|
||
|
if-eqz v0, :cond_4
|
||
|
|
||
|
.line 177
|
||
|
move-object v0, p1
|
||
|
|
||
|
check-cast v0, Lio/flutter/embedding/engine/plugins/broadcastreceiver/BroadcastReceiverAware;
|
||
|
|
||
|
iget-object v1, p0, Lio/flutter/embedding/engine/FlutterEngineConnectionRegistry;->broadcastReceiverAwarePlugins:Ljava/util/Map;
|
||
|
|
||
|
.line 178
|
||
|
invoke-virtual {p1}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
|
||
|
|
||
|
move-result-object v3
|
||
|
|
||
|
invoke-interface {v1, v3, v0}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
||
|
|
||
|
.line 180
|
||
|
invoke-direct {p0}, Lio/flutter/embedding/engine/FlutterEngineConnectionRegistry;->isAttachedToBroadcastReceiver()Z
|
||
|
|
||
|
move-result v1
|
||
|
|
||
|
if-eqz v1, :cond_4
|
||
|
|
||
|
iget-object v1, p0, Lio/flutter/embedding/engine/FlutterEngineConnectionRegistry;->broadcastReceiverPluginBinding:Lio/flutter/embedding/engine/FlutterEngineConnectionRegistry$FlutterEngineBroadcastReceiverPluginBinding;
|
||
|
|
||
|
.line 181
|
||
|
invoke-interface {v0, v1}, Lio/flutter/embedding/engine/plugins/broadcastreceiver/BroadcastReceiverAware;->onAttachedToBroadcastReceiver(Lio/flutter/embedding/engine/plugins/broadcastreceiver/BroadcastReceiverPluginBinding;)V
|
||
|
|
||
|
.line 188
|
||
|
:cond_4
|
||
|
instance-of v0, p1, Lio/flutter/embedding/engine/plugins/contentprovider/ContentProviderAware;
|
||
|
|
||
|
if-eqz v0, :cond_5
|
||
|
|
||
|
.line 189
|
||
|
move-object v0, p1
|
||
|
|
||
|
check-cast v0, Lio/flutter/embedding/engine/plugins/contentprovider/ContentProviderAware;
|
||
|
|
||
|
iget-object v1, p0, Lio/flutter/embedding/engine/FlutterEngineConnectionRegistry;->contentProviderAwarePlugins:Ljava/util/Map;
|
||
|
|
||
|
.line 190
|
||
|
invoke-virtual {p1}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
|
||
|
|
||
|
move-result-object p1
|
||
|
|
||
|
invoke-interface {v1, p1, v0}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
||
|
|
||
|
.line 192
|
||
|
invoke-direct {p0}, Lio/flutter/embedding/engine/FlutterEngineConnectionRegistry;->isAttachedToContentProvider()Z
|
||
|
|
||
|
move-result p1
|
||
|
|
||
|
if-eqz p1, :cond_5
|
||
|
|
||
|
iget-object p0, p0, Lio/flutter/embedding/engine/FlutterEngineConnectionRegistry;->contentProviderPluginBinding:Lio/flutter/embedding/engine/FlutterEngineConnectionRegistry$FlutterEngineContentProviderPluginBinding;
|
||
|
|
||
|
.line 193
|
||
|
invoke-interface {v0, p0}, Lio/flutter/embedding/engine/plugins/contentprovider/ContentProviderAware;->onAttachedToContentProvider(Lio/flutter/embedding/engine/plugins/contentprovider/ContentProviderPluginBinding;)V
|
||
|
:try_end_2
|
||
|
.catchall {:try_start_2 .. :try_end_2} :catchall_0
|
||
|
|
||
|
:cond_5
|
||
|
if-eqz v2, :cond_6
|
||
|
|
||
|
.line 196
|
||
|
invoke-virtual {v2}, Lio/flutter/util/TraceSection;->close()V
|
||
|
|
||
|
:cond_6
|
||
|
return-void
|
||
|
|
||
|
:catchall_0
|
||
|
move-exception p0
|
||
|
|
||
|
if-eqz v2, :cond_7
|
||
|
|
||
|
.line 128
|
||
|
:try_start_3
|
||
|
invoke-virtual {v2}, Lio/flutter/util/TraceSection;->close()V
|
||
|
:try_end_3
|
||
|
.catchall {:try_start_3 .. :try_end_3} :catchall_1
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
:catchall_1
|
||
|
move-exception p1
|
||
|
|
||
|
invoke-virtual {p0, p1}, Ljava/lang/Throwable;->addSuppressed(Ljava/lang/Throwable;)V
|
||
|
|
||
|
:cond_7
|
||
|
:goto_0
|
||
|
throw p0
|
||
|
.end method
|
||
|
|
||
|
.method public add(Ljava/util/Set;)V
|
||
|
.locals 1
|
||
|
.annotation system Ldalvik/annotation/Signature;
|
||
|
value = {
|
||
|
"(",
|
||
|
"Ljava/util/Set<",
|
||
|
"Lio/flutter/embedding/engine/plugins/FlutterPlugin;",
|
||
|
">;)V"
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
.line 201
|
||
|
invoke-interface {p1}, Ljava/util/Set;->iterator()Ljava/util/Iterator;
|
||
|
|
||
|
move-result-object p1
|
||
|
|
||
|
:goto_0
|
||
|
invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z
|
||
|
|
||
|
move-result v0
|
||
|
|
||
|
if-eqz v0, :cond_0
|
||
|
|
||
|
invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
check-cast v0, Lio/flutter/embedding/engine/plugins/FlutterPlugin;
|
||
|
|
||
|
.line 202
|
||
|
invoke-virtual {p0, v0}, Lio/flutter/embedding/engine/FlutterEngineConnectionRegistry;->add(Lio/flutter/embedding/engine/plugins/FlutterPlugin;)V
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
:cond_0
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
.method public attachToActivity(Lio/flutter/embedding/android/ExclusiveAppComponent;Landroidx/lifecycle/Lifecycle;)V
|
||
|
.locals 2
|
||
|
.annotation system Ldalvik/annotation/Signature;
|
||
|
value = {
|
||
|
"(",
|
||
|
"Lio/flutter/embedding/android/ExclusiveAppComponent<",
|
||
|
"Landroid/app/Activity;",
|
||
|
">;",
|
||
|
"Landroidx/lifecycle/Lifecycle;",
|
||
|
")V"
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
const-string v0, "FlutterEngineConnectionRegistry#attachToActivity"
|
||
|
|
||
|
.line 316
|
||
|
invoke-static {v0}, Lio/flutter/util/TraceSection;->scoped(Ljava/lang/String;)Lio/flutter/util/TraceSection;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
:try_start_0
|
||
|
iget-object v1, p0, Lio/flutter/embedding/engine/FlutterEngineConnectionRegistry;->exclusiveActivity:Lio/flutter/embedding/android/ExclusiveAppComponent;
|
||
|
|
||
|
if-eqz v1, :cond_0
|
||
|
|
||
|
.line 318
|
||
|
invoke-interface {v1}, Lio/flutter/embedding/android/ExclusiveAppComponent;->detachFromFlutterEngine()V
|
||
|
|
||
|
.line 321
|
||
|
:cond_0
|
||
|
invoke-direct {p0}, Lio/flutter/embedding/engine/FlutterEngineConnectionRegistry;->detachFromAppComponent()V
|
||
|
|
||
|
iput-object p1, p0, Lio/flutter/embedding/engine/FlutterEngineConnectionRegistry;->exclusiveActivity:Lio/flutter/embedding/android/ExclusiveAppComponent;
|
||
|
|
||
|
.line 323
|
||
|
invoke-interface {p1}, Lio/flutter/embedding/android/ExclusiveAppComponent;->getAppComponent()Ljava/lang/Object;
|
||
|
|
||
|
move-result-object p1
|
||
|
|
||
|
check-cast p1, Landroid/app/Activity;
|
||
|
|
||
|
invoke-direct {p0, p1, p2}, Lio/flutter/embedding/engine/FlutterEngineConnectionRegistry;->attachToActivityInternal(Landroid/app/Activity;Landroidx/lifecycle/Lifecycle;)V
|
||
|
:try_end_0
|
||
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
||
|
|
||
|
if-eqz v0, :cond_1
|
||
|
|
||
|
.line 324
|
||
|
invoke-virtual {v0}, Lio/flutter/util/TraceSection;->close()V
|
||
|
|
||
|
:cond_1
|
||
|
return-void
|
||
|
|
||
|
:catchall_0
|
||
|
move-exception p0
|
||
|
|
||
|
if-eqz v0, :cond_2
|
||
|
|
||
|
.line 316
|
||
|
:try_start_1
|
||
|
invoke-virtual {v0}, Lio/flutter/util/TraceSection;->close()V
|
||
|
:try_end_1
|
||
|
.catchall {:try_start_1 .. :try_end_1} :catchall_1
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
:catchall_1
|
||
|
move-exception p1
|
||
|
|
||
|
invoke-virtual {p0, p1}, Ljava/lang/Throwable;->addSuppressed(Ljava/lang/Throwable;)V
|
||
|
|
||
|
:cond_2
|
||
|
:goto_0
|
||
|
throw p0
|
||
|
.end method
|
||
|
|
||
|
.method public attachToBroadcastReceiver(Landroid/content/BroadcastReceiver;Landroidx/lifecycle/Lifecycle;)V
|
||
|
.locals 2
|
||
|
|
||
|
const-string p2, "FlutterEngineConnectionRegistry#attachToBroadcastReceiver"
|
||
|
|
||
|
.line 563
|
||
|
invoke-static {p2}, Lio/flutter/util/TraceSection;->scoped(Ljava/lang/String;)Lio/flutter/util/TraceSection;
|
||
|
|
||
|
move-result-object p2
|
||
|
|
||
|
.line 565
|
||
|
:try_start_0
|
||
|
invoke-direct {p0}, Lio/flutter/embedding/engine/FlutterEngineConnectionRegistry;->detachFromAppComponent()V
|
||
|
|
||
|
iput-object p1, p0, Lio/flutter/embedding/engine/FlutterEngineConnectionRegistry;->broadcastReceiver:Landroid/content/BroadcastReceiver;
|
||
|
|
||
|
.line 568
|
||
|
new-instance v0, Lio/flutter/embedding/engine/FlutterEngineConnectionRegistry$FlutterEngineBroadcastReceiverPluginBinding;
|
||
|
|
||
|
invoke-direct {v0, p1}, Lio/flutter/embedding/engine/FlutterEngineConnectionRegistry$FlutterEngineBroadcastReceiverPluginBinding;-><init>(Landroid/content/BroadcastReceiver;)V
|
||
|
|
||
|
iput-object v0, p0, Lio/flutter/embedding/engine/FlutterEngineConnectionRegistry;->broadcastReceiverPluginBinding:Lio/flutter/embedding/engine/FlutterEngineConnectionRegistry$FlutterEngineBroadcastReceiverPluginBinding;
|
||
|
|
||
|
iget-object p1, p0, Lio/flutter/embedding/engine/FlutterEngineConnectionRegistry;->broadcastReceiverAwarePlugins:Ljava/util/Map;
|
||
|
|
||
|
.line 575
|
||
|
invoke-interface {p1}, Ljava/util/Map;->values()Ljava/util/Collection;
|
||
|
|
||
|
move-result-object p1
|
||
|
|
||
|
invoke-interface {p1}, Ljava/util/Collection;->iterator()Ljava/util/Iterator;
|
||
|
|
||
|
move-result-object p1
|
||
|
|
||
|
:goto_0
|
||
|
invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z
|
||
|
|
||
|
move-result v0
|
||
|
|
||
|
if-eqz v0, :cond_0
|
||
|
|
||
|
invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
check-cast v0, Lio/flutter/embedding/engine/plugins/broadcastreceiver/BroadcastReceiverAware;
|
||
|
|
||
|
iget-object v1, p0, Lio/flutter/embedding/engine/FlutterEngineConnectionRegistry;->broadcastReceiverPluginBinding:Lio/flutter/embedding/engine/FlutterEngineConnectionRegistry$FlutterEngineBroadcastReceiverPluginBinding;
|
||
|
|
||
|
.line 576
|
||
|
invoke-interface {v0, v1}, Lio/flutter/embedding/engine/plugins/broadcastreceiver/BroadcastReceiverAware;->onAttachedToBroadcastReceiver(Lio/flutter/embedding/engine/plugins/broadcastreceiver/BroadcastReceiverPluginBinding;)V
|
||
|
:try_end_0
|
||
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
:cond_0
|
||
|
if-eqz p2, :cond_1
|
||
|
|
||
|
.line 578
|
||
|
invoke-virtual {p2}, Lio/flutter/util/TraceSection;->close()V
|
||
|
|
||
|
:cond_1
|
||
|
return-void
|
||
|
|
||
|
:catchall_0
|
||
|
move-exception p0
|
||
|
|
||
|
if-eqz p2, :cond_2
|
||
|
|
||
|
.line 562
|
||
|
:try_start_1
|
||
|
invoke-virtual {p2}, Lio/flutter/util/TraceSection;->close()V
|
||
|
:try_end_1
|
||
|
.catchall {:try_start_1 .. :try_end_1} :catchall_1
|
||
|
|
||
|
goto :goto_1
|
||
|
|
||
|
:catchall_1
|
||
|
move-exception p1
|
||
|
|
||
|
invoke-virtual {p0, p1}, Ljava/lang/Throwable;->addSuppressed(Ljava/lang/Throwable;)V
|
||
|
|
||
|
:cond_2
|
||
|
:goto_1
|
||
|
throw p0
|
||
|
.end method
|
||
|
|
||
|
.method public attachToContentProvider(Landroid/content/ContentProvider;Landroidx/lifecycle/Lifecycle;)V
|
||
|
.locals 2
|
||
|
|
||
|
const-string p2, "FlutterEngineConnectionRegistry#attachToContentProvider"
|
||
|
|
||
|
.line 612
|
||
|
invoke-static {p2}, Lio/flutter/util/TraceSection;->scoped(Ljava/lang/String;)Lio/flutter/util/TraceSection;
|
||
|
|
||
|
move-result-object p2
|
||
|
|
||
|
.line 614
|
||
|
:try_start_0
|
||
|
invoke-direct {p0}, Lio/flutter/embedding/engine/FlutterEngineConnectionRegistry;->detachFromAppComponent()V
|
||
|
|
||
|
iput-object p1, p0, Lio/flutter/embedding/engine/FlutterEngineConnectionRegistry;->contentProvider:Landroid/content/ContentProvider;
|
||
|
|
||
|
.line 617
|
||
|
new-instance v0, Lio/flutter/embedding/engine/FlutterEngineConnectionRegistry$FlutterEngineContentProviderPluginBinding;
|
||
|
|
||
|
invoke-direct {v0, p1}, Lio/flutter/embedding/engine/FlutterEngineConnectionRegistry$FlutterEngineContentProviderPluginBinding;-><init>(Landroid/content/ContentProvider;)V
|
||
|
|
||
|
iput-object v0, p0, Lio/flutter/embedding/engine/FlutterEngineConnectionRegistry;->contentProviderPluginBinding:Lio/flutter/embedding/engine/FlutterEngineConnectionRegistry$FlutterEngineContentProviderPluginBinding;
|
||
|
|
||
|
iget-object p1, p0, Lio/flutter/embedding/engine/FlutterEngineConnectionRegistry;->contentProviderAwarePlugins:Ljava/util/Map;
|
||
|
|
||
|
.line 624
|
||
|
invoke-interface {p1}, Ljava/util/Map;->values()Ljava/util/Collection;
|
||
|
|
||
|
move-result-object p1
|
||
|
|
||
|
invoke-interface {p1}, Ljava/util/Collection;->iterator()Ljava/util/Iterator;
|
||
|
|
||
|
move-result-object p1
|
||
|
|
||
|
:goto_0
|
||
|
invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z
|
||
|
|
||
|
move-result v0
|
||
|
|
||
|
if-eqz v0, :cond_0
|
||
|
|
||
|
invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
check-cast v0, Lio/flutter/embedding/engine/plugins/contentprovider/ContentProviderAware;
|
||
|
|
||
|
iget-object v1, p0, Lio/flutter/embedding/engine/FlutterEngineConnectionRegistry;->contentProviderPluginBinding:Lio/flutter/embedding/engine/FlutterEngineConnectionRegistry$FlutterEngineContentProviderPluginBinding;
|
||
|
|
||
|
.line 625
|
||
|
invoke-interface {v0, v1}, Lio/flutter/embedding/engine/plugins/contentprovider/ContentProviderAware;->onAttachedToContentProvider(Lio/flutter/embedding/engine/plugins/contentprovider/ContentProviderPluginBinding;)V
|
||
|
:try_end_0
|
||
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
:cond_0
|
||
|
if-eqz p2, :cond_1
|
||
|
|
||
|
.line 627
|
||
|
invoke-virtual {p2}, Lio/flutter/util/TraceSection;->close()V
|
||
|
|
||
|
:cond_1
|
||
|
return-void
|
||
|
|
||
|
:catchall_0
|
||
|
move-exception p0
|
||
|
|
||
|
if-eqz p2, :cond_2
|
||
|
|
||
|
.line 611
|
||
|
:try_start_1
|
||
|
invoke-virtual {p2}, Lio/flutter/util/TraceSection;->close()V
|
||
|
:try_end_1
|
||
|
.catchall {:try_start_1 .. :try_end_1} :catchall_1
|
||
|
|
||
|
goto :goto_1
|
||
|
|
||
|
:catchall_1
|
||
|
move-exception p1
|
||
|
|
||
|
invoke-virtual {p0, p1}, Ljava/lang/Throwable;->addSuppressed(Ljava/lang/Throwable;)V
|
||
|
|
||
|
:cond_2
|
||
|
:goto_1
|
||
|
throw p0
|
||
|
.end method
|
||
|
|
||
|
.method public attachToService(Landroid/app/Service;Landroidx/lifecycle/Lifecycle;Z)V
|
||
|
.locals 1
|
||
|
|
||
|
const-string p3, "FlutterEngineConnectionRegistry#attachToService"
|
||
|
|
||
|
.line 501
|
||
|
invoke-static {p3}, Lio/flutter/util/TraceSection;->scoped(Ljava/lang/String;)Lio/flutter/util/TraceSection;
|
||
|
|
||
|
move-result-object p3
|
||
|
|
||
|
.line 503
|
||
|
:try_start_0
|
||
|
invoke-direct {p0}, Lio/flutter/embedding/engine/FlutterEngineConnectionRegistry;->detachFromAppComponent()V
|
||
|
|
||
|
iput-object p1, p0, Lio/flutter/embedding/engine/FlutterEngineConnectionRegistry;->service:Landroid/app/Service;
|
||
|
|
||
|
.line 506
|
||
|
new-instance v0, Lio/flutter/embedding/engine/FlutterEngineConnectionRegistry$FlutterEngineServicePluginBinding;
|
||
|
|
||
|
invoke-direct {v0, p1, p2}, Lio/flutter/embedding/engine/FlutterEngineConnectionRegistry$FlutterEngineServicePluginBinding;-><init>(Landroid/app/Service;Landroidx/lifecycle/Lifecycle;)V
|
||
|
|
||
|
iput-object v0, p0, Lio/flutter/embedding/engine/FlutterEngineConnectionRegistry;->servicePluginBinding:Lio/flutter/embedding/engine/FlutterEngineConnectionRegistry$FlutterEngineServicePluginBinding;
|
||
|
|
||
|
iget-object p1, p0, Lio/flutter/embedding/engine/FlutterEngineConnectionRegistry;->serviceAwarePlugins:Ljava/util/Map;
|
||
|
|
||
|
.line 509
|
||
|
invoke-interface {p1}, Ljava/util/Map;->values()Ljava/util/Collection;
|
||
|
|
||
|
move-result-object p1
|
||
|
|
||
|
invoke-interface {p1}, Ljava/util/Collection;->iterator()Ljava/util/Iterator;
|
||
|
|
||
|
move-result-object p1
|
||
|
|
||
|
:goto_0
|
||
|
invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z
|
||
|
|
||
|
move-result p2
|
||
|
|
||
|
if-eqz p2, :cond_0
|
||
|
|
||
|
invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
||
|
|
||
|
move-result-object p2
|
||
|
|
||
|
check-cast p2, Lio/flutter/embedding/engine/plugins/service/ServiceAware;
|
||
|
|
||
|
iget-object v0, p0, Lio/flutter/embedding/engine/FlutterEngineConnectionRegistry;->servicePluginBinding:Lio/flutter/embedding/engine/FlutterEngineConnectionRegistry$FlutterEngineServicePluginBinding;
|
||
|
|
||
|
.line 510
|
||
|
invoke-interface {p2, v0}, Lio/flutter/embedding/engine/plugins/service/ServiceAware;->onAttachedToService(Lio/flutter/embedding/engine/plugins/service/ServicePluginBinding;)V
|
||
|
:try_end_0
|
||
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
:cond_0
|
||
|
if-eqz p3, :cond_1
|
||
|
|
||
|
.line 512
|
||
|
invoke-virtual {p3}, Lio/flutter/util/TraceSection;->close()V
|
||
|
|
||
|
:cond_1
|
||
|
return-void
|
||
|
|
||
|
:catchall_0
|
||
|
move-exception p0
|
||
|
|
||
|
if-eqz p3, :cond_2
|
||
|
|
||
|
.line 501
|
||
|
:try_start_1
|
||
|
invoke-virtual {p3}, Lio/flutter/util/TraceSection;->close()V
|
||
|
:try_end_1
|
||
|
.catchall {:try_start_1 .. :try_end_1} :catchall_1
|
||
|
|
||
|
goto :goto_1
|
||
|
|
||
|
:catchall_1
|
||
|
move-exception p1
|
||
|
|
||
|
invoke-virtual {p0, p1}, Ljava/lang/Throwable;->addSuppressed(Ljava/lang/Throwable;)V
|
||
|
|
||
|
:cond_2
|
||
|
:goto_1
|
||
|
throw p0
|
||
|
.end method
|
||
|
|
||
|
.method public destroy()V
|
||
|
.locals 2
|
||
|
|
||
|
const-string v0, "FlutterEngineCxnRegstry"
|
||
|
|
||
|
const-string v1, "Destroying."
|
||
|
|
||
|
.line 115
|
||
|
invoke-static {v0, v1}, Lio/flutter/Log;->v(Ljava/lang/String;Ljava/lang/String;)V
|
||
|
|
||
|
.line 120
|
||
|
invoke-direct {p0}, Lio/flutter/embedding/engine/FlutterEngineConnectionRegistry;->detachFromAppComponent()V
|
||
|
|
||
|
.line 123
|
||
|
invoke-virtual {p0}, Lio/flutter/embedding/engine/FlutterEngineConnectionRegistry;->removeAll()V
|
||
|
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
.method public detachFromActivity()V
|
||
|
.locals 3
|
||
|
|
||
|
.line 377
|
||
|
invoke-direct {p0}, Lio/flutter/embedding/engine/FlutterEngineConnectionRegistry;->isAttachedToActivity()Z
|
||
|
|
||
|
move-result v0
|
||
|
|
||
|
if-eqz v0, :cond_2
|
||
|
|
||
|
const-string v0, "FlutterEngineConnectionRegistry#detachFromActivity"
|
||
|
|
||
|
.line 379
|
||
|
invoke-static {v0}, Lio/flutter/util/TraceSection;->scoped(Ljava/lang/String;)Lio/flutter/util/TraceSection;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
:try_start_0
|
||
|
iget-object v1, p0, Lio/flutter/embedding/engine/FlutterEngineConnectionRegistry;->activityAwarePlugins:Ljava/util/Map;
|
||
|
|
||
|
.line 380
|
||
|
invoke-interface {v1}, Ljava/util/Map;->values()Ljava/util/Collection;
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
invoke-interface {v1}, Ljava/util/Collection;->iterator()Ljava/util/Iterator;
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
:goto_0
|
||
|
invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z
|
||
|
|
||
|
move-result v2
|
||
|
|
||
|
if-eqz v2, :cond_0
|
||
|
|
||
|
invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
||
|
|
||
|
move-result-object v2
|
||
|
|
||
|
check-cast v2, Lio/flutter/embedding/engine/plugins/activity/ActivityAware;
|
||
|
|
||
|
.line 381
|
||
|
invoke-interface {v2}, Lio/flutter/embedding/engine/plugins/activity/ActivityAware;->onDetachedFromActivity()V
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
.line 384
|
||
|
:cond_0
|
||
|
invoke-direct {p0}, Lio/flutter/embedding/engine/FlutterEngineConnectionRegistry;->detachFromActivityInternal()V
|
||
|
:try_end_0
|
||
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
||
|
|
||
|
if-eqz v0, :cond_3
|
||
|
|
||
|
.line 385
|
||
|
invoke-virtual {v0}, Lio/flutter/util/TraceSection;->close()V
|
||
|
|
||
|
goto :goto_2
|
||
|
|
||
|
:catchall_0
|
||
|
move-exception p0
|
||
|
|
||
|
if-eqz v0, :cond_1
|
||
|
|
||
|
.line 378
|
||
|
:try_start_1
|
||
|
invoke-virtual {v0}, Lio/flutter/util/TraceSection;->close()V
|
||
|
:try_end_1
|
||
|
.catchall {:try_start_1 .. :try_end_1} :catchall_1
|
||
|
|
||
|
goto :goto_1
|
||
|
|
||
|
:catchall_1
|
||
|
move-exception v0
|
||
|
|
||
|
invoke-virtual {p0, v0}, Ljava/lang/Throwable;->addSuppressed(Ljava/lang/Throwable;)V
|
||
|
|
||
|
:cond_1
|
||
|
:goto_1
|
||
|
throw p0
|
||
|
|
||
|
:cond_2
|
||
|
const-string p0, "FlutterEngineCxnRegstry"
|
||
|
|
||
|
const-string v0, "Attempted to detach plugins from an Activity when no Activity was attached."
|
||
|
|
||
|
.line 387
|
||
|
invoke-static {p0, v0}, Lio/flutter/Log;->e(Ljava/lang/String;Ljava/lang/String;)V
|
||
|
|
||
|
:cond_3
|
||
|
:goto_2
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
.method public detachFromActivityForConfigChanges()V
|
||
|
.locals 3
|
||
|
|
||
|
.line 358
|
||
|
invoke-direct {p0}, Lio/flutter/embedding/engine/FlutterEngineConnectionRegistry;->isAttachedToActivity()Z
|
||
|
|
||
|
move-result v0
|
||
|
|
||
|
if-eqz v0, :cond_2
|
||
|
|
||
|
const-string v0, "FlutterEngineConnectionRegistry#detachFromActivityForConfigChanges"
|
||
|
|
||
|
.line 360
|
||
|
invoke-static {v0}, Lio/flutter/util/TraceSection;->scoped(Ljava/lang/String;)Lio/flutter/util/TraceSection;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
const/4 v1, 0x1
|
||
|
|
||
|
:try_start_0
|
||
|
iput-boolean v1, p0, Lio/flutter/embedding/engine/FlutterEngineConnectionRegistry;->isWaitingForActivityReattachment:Z
|
||
|
|
||
|
iget-object v1, p0, Lio/flutter/embedding/engine/FlutterEngineConnectionRegistry;->activityAwarePlugins:Ljava/util/Map;
|
||
|
|
||
|
.line 364
|
||
|
invoke-interface {v1}, Ljava/util/Map;->values()Ljava/util/Collection;
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
invoke-interface {v1}, Ljava/util/Collection;->iterator()Ljava/util/Iterator;
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
:goto_0
|
||
|
invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z
|
||
|
|
||
|
move-result v2
|
||
|
|
||
|
if-eqz v2, :cond_0
|
||
|
|
||
|
invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
||
|
|
||
|
move-result-object v2
|
||
|
|
||
|
check-cast v2, Lio/flutter/embedding/engine/plugins/activity/ActivityAware;
|
||
|
|
||
|
.line 365
|
||
|
invoke-interface {v2}, Lio/flutter/embedding/engine/plugins/activity/ActivityAware;->onDetachedFromActivityForConfigChanges()V
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
.line 368
|
||
|
:cond_0
|
||
|
invoke-direct {p0}, Lio/flutter/embedding/engine/FlutterEngineConnectionRegistry;->detachFromActivityInternal()V
|
||
|
:try_end_0
|
||
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
||
|
|
||
|
if-eqz v0, :cond_3
|
||
|
|
||
|
.line 369
|
||
|
invoke-virtual {v0}, Lio/flutter/util/TraceSection;->close()V
|
||
|
|
||
|
goto :goto_2
|
||
|
|
||
|
:catchall_0
|
||
|
move-exception p0
|
||
|
|
||
|
if-eqz v0, :cond_1
|
||
|
|
||
|
.line 359
|
||
|
:try_start_1
|
||
|
invoke-virtual {v0}, Lio/flutter/util/TraceSection;->close()V
|
||
|
:try_end_1
|
||
|
.catchall {:try_start_1 .. :try_end_1} :catchall_1
|
||
|
|
||
|
goto :goto_1
|
||
|
|
||
|
:catchall_1
|
||
|
move-exception v0
|
||
|
|
||
|
invoke-virtual {p0, v0}, Ljava/lang/Throwable;->addSuppressed(Ljava/lang/Throwable;)V
|
||
|
|
||
|
:cond_1
|
||
|
:goto_1
|
||
|
throw p0
|
||
|
|
||
|
:cond_2
|
||
|
const-string p0, "FlutterEngineCxnRegstry"
|
||
|
|
||
|
const-string v0, "Attempted to detach plugins from an Activity when no Activity was attached."
|
||
|
|
||
|
.line 371
|
||
|
invoke-static {p0, v0}, Lio/flutter/Log;->e(Ljava/lang/String;Ljava/lang/String;)V
|
||
|
|
||
|
:cond_3
|
||
|
:goto_2
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
.method public detachFromBroadcastReceiver()V
|
||
|
.locals 2
|
||
|
|
||
|
.line 583
|
||
|
invoke-direct {p0}, Lio/flutter/embedding/engine/FlutterEngineConnectionRegistry;->isAttachedToBroadcastReceiver()Z
|
||
|
|
||
|
move-result v0
|
||
|
|
||
|
if-eqz v0, :cond_2
|
||
|
|
||
|
const-string v0, "FlutterEngineConnectionRegistry#detachFromBroadcastReceiver"
|
||
|
|
||
|
.line 585
|
||
|
invoke-static {v0}, Lio/flutter/util/TraceSection;->scoped(Ljava/lang/String;)Lio/flutter/util/TraceSection;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
:try_start_0
|
||
|
iget-object p0, p0, Lio/flutter/embedding/engine/FlutterEngineConnectionRegistry;->broadcastReceiverAwarePlugins:Ljava/util/Map;
|
||
|
|
||
|
.line 589
|
||
|
invoke-interface {p0}, Ljava/util/Map;->values()Ljava/util/Collection;
|
||
|
|
||
|
move-result-object p0
|
||
|
|
||
|
invoke-interface {p0}, Ljava/util/Collection;->iterator()Ljava/util/Iterator;
|
||
|
|
||
|
move-result-object p0
|
||
|
|
||
|
:goto_0
|
||
|
invoke-interface {p0}, Ljava/util/Iterator;->hasNext()Z
|
||
|
|
||
|
move-result v1
|
||
|
|
||
|
if-eqz v1, :cond_0
|
||
|
|
||
|
invoke-interface {p0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
check-cast v1, Lio/flutter/embedding/engine/plugins/broadcastreceiver/BroadcastReceiverAware;
|
||
|
|
||
|
.line 590
|
||
|
invoke-interface {v1}, Lio/flutter/embedding/engine/plugins/broadcastreceiver/BroadcastReceiverAware;->onDetachedFromBroadcastReceiver()V
|
||
|
:try_end_0
|
||
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
:cond_0
|
||
|
if-eqz v0, :cond_3
|
||
|
|
||
|
.line 592
|
||
|
invoke-virtual {v0}, Lio/flutter/util/TraceSection;->close()V
|
||
|
|
||
|
goto :goto_2
|
||
|
|
||
|
:catchall_0
|
||
|
move-exception p0
|
||
|
|
||
|
if-eqz v0, :cond_1
|
||
|
|
||
|
.line 584
|
||
|
:try_start_1
|
||
|
invoke-virtual {v0}, Lio/flutter/util/TraceSection;->close()V
|
||
|
:try_end_1
|
||
|
.catchall {:try_start_1 .. :try_end_1} :catchall_1
|
||
|
|
||
|
goto :goto_1
|
||
|
|
||
|
:catchall_1
|
||
|
move-exception v0
|
||
|
|
||
|
invoke-virtual {p0, v0}, Ljava/lang/Throwable;->addSuppressed(Ljava/lang/Throwable;)V
|
||
|
|
||
|
:cond_1
|
||
|
:goto_1
|
||
|
throw p0
|
||
|
|
||
|
:cond_2
|
||
|
const-string p0, "FlutterEngineCxnRegstry"
|
||
|
|
||
|
const-string v0, "Attempted to detach plugins from a BroadcastReceiver when no BroadcastReceiver was attached."
|
||
|
|
||
|
.line 594
|
||
|
invoke-static {p0, v0}, Lio/flutter/Log;->e(Ljava/lang/String;Ljava/lang/String;)V
|
||
|
|
||
|
:cond_3
|
||
|
:goto_2
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
.method public detachFromContentProvider()V
|
||
|
.locals 2
|
||
|
|
||
|
.line 632
|
||
|
invoke-direct {p0}, Lio/flutter/embedding/engine/FlutterEngineConnectionRegistry;->isAttachedToContentProvider()Z
|
||
|
|
||
|
move-result v0
|
||
|
|
||
|
if-eqz v0, :cond_2
|
||
|
|
||
|
const-string v0, "FlutterEngineConnectionRegistry#detachFromContentProvider"
|
||
|
|
||
|
.line 634
|
||
|
invoke-static {v0}, Lio/flutter/util/TraceSection;->scoped(Ljava/lang/String;)Lio/flutter/util/TraceSection;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
:try_start_0
|
||
|
iget-object p0, p0, Lio/flutter/embedding/engine/FlutterEngineConnectionRegistry;->contentProviderAwarePlugins:Ljava/util/Map;
|
||
|
|
||
|
.line 637
|
||
|
invoke-interface {p0}, Ljava/util/Map;->values()Ljava/util/Collection;
|
||
|
|
||
|
move-result-object p0
|
||
|
|
||
|
invoke-interface {p0}, Ljava/util/Collection;->iterator()Ljava/util/Iterator;
|
||
|
|
||
|
move-result-object p0
|
||
|
|
||
|
:goto_0
|
||
|
invoke-interface {p0}, Ljava/util/Iterator;->hasNext()Z
|
||
|
|
||
|
move-result v1
|
||
|
|
||
|
if-eqz v1, :cond_0
|
||
|
|
||
|
invoke-interface {p0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
check-cast v1, Lio/flutter/embedding/engine/plugins/contentprovider/ContentProviderAware;
|
||
|
|
||
|
.line 638
|
||
|
invoke-interface {v1}, Lio/flutter/embedding/engine/plugins/contentprovider/ContentProviderAware;->onDetachedFromContentProvider()V
|
||
|
:try_end_0
|
||
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
:cond_0
|
||
|
if-eqz v0, :cond_3
|
||
|
|
||
|
.line 640
|
||
|
invoke-virtual {v0}, Lio/flutter/util/TraceSection;->close()V
|
||
|
|
||
|
goto :goto_2
|
||
|
|
||
|
:catchall_0
|
||
|
move-exception p0
|
||
|
|
||
|
if-eqz v0, :cond_1
|
||
|
|
||
|
.line 633
|
||
|
:try_start_1
|
||
|
invoke-virtual {v0}, Lio/flutter/util/TraceSection;->close()V
|
||
|
:try_end_1
|
||
|
.catchall {:try_start_1 .. :try_end_1} :catchall_1
|
||
|
|
||
|
goto :goto_1
|
||
|
|
||
|
:catchall_1
|
||
|
move-exception v0
|
||
|
|
||
|
invoke-virtual {p0, v0}, Ljava/lang/Throwable;->addSuppressed(Ljava/lang/Throwable;)V
|
||
|
|
||
|
:cond_1
|
||
|
:goto_1
|
||
|
throw p0
|
||
|
|
||
|
:cond_2
|
||
|
const-string p0, "FlutterEngineCxnRegstry"
|
||
|
|
||
|
const-string v0, "Attempted to detach plugins from a ContentProvider when no ContentProvider was attached."
|
||
|
|
||
|
.line 642
|
||
|
invoke-static {p0, v0}, Lio/flutter/Log;->e(Ljava/lang/String;Ljava/lang/String;)V
|
||
|
|
||
|
:cond_3
|
||
|
:goto_2
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
.method public detachFromService()V
|
||
|
.locals 3
|
||
|
|
||
|
.line 517
|
||
|
invoke-direct {p0}, Lio/flutter/embedding/engine/FlutterEngineConnectionRegistry;->isAttachedToService()Z
|
||
|
|
||
|
move-result v0
|
||
|
|
||
|
if-eqz v0, :cond_2
|
||
|
|
||
|
const-string v0, "FlutterEngineConnectionRegistry#detachFromService"
|
||
|
|
||
|
.line 519
|
||
|
invoke-static {v0}, Lio/flutter/util/TraceSection;->scoped(Ljava/lang/String;)Lio/flutter/util/TraceSection;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
:try_start_0
|
||
|
iget-object v1, p0, Lio/flutter/embedding/engine/FlutterEngineConnectionRegistry;->serviceAwarePlugins:Ljava/util/Map;
|
||
|
|
||
|
.line 521
|
||
|
invoke-interface {v1}, Ljava/util/Map;->values()Ljava/util/Collection;
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
invoke-interface {v1}, Ljava/util/Collection;->iterator()Ljava/util/Iterator;
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
:goto_0
|
||
|
invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z
|
||
|
|
||
|
move-result v2
|
||
|
|
||
|
if-eqz v2, :cond_0
|
||
|
|
||
|
invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
||
|
|
||
|
move-result-object v2
|
||
|
|
||
|
check-cast v2, Lio/flutter/embedding/engine/plugins/service/ServiceAware;
|
||
|
|
||
|
.line 522
|
||
|
invoke-interface {v2}, Lio/flutter/embedding/engine/plugins/service/ServiceAware;->onDetachedFromService()V
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
:cond_0
|
||
|
const/4 v1, 0x0
|
||
|
|
||
|
iput-object v1, p0, Lio/flutter/embedding/engine/FlutterEngineConnectionRegistry;->service:Landroid/app/Service;
|
||
|
|
||
|
iput-object v1, p0, Lio/flutter/embedding/engine/FlutterEngineConnectionRegistry;->servicePluginBinding:Lio/flutter/embedding/engine/FlutterEngineConnectionRegistry$FlutterEngineServicePluginBinding;
|
||
|
:try_end_0
|
||
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
||
|
|
||
|
if-eqz v0, :cond_3
|
||
|
|
||
|
.line 527
|
||
|
invoke-virtual {v0}, Lio/flutter/util/TraceSection;->close()V
|
||
|
|
||
|
goto :goto_2
|
||
|
|
||
|
:catchall_0
|
||
|
move-exception p0
|
||
|
|
||
|
if-eqz v0, :cond_1
|
||
|
|
||
|
.line 518
|
||
|
:try_start_1
|
||
|
invoke-virtual {v0}, Lio/flutter/util/TraceSection;->close()V
|
||
|
:try_end_1
|
||
|
.catchall {:try_start_1 .. :try_end_1} :catchall_1
|
||
|
|
||
|
goto :goto_1
|
||
|
|
||
|
:catchall_1
|
||
|
move-exception v0
|
||
|
|
||
|
invoke-virtual {p0, v0}, Ljava/lang/Throwable;->addSuppressed(Ljava/lang/Throwable;)V
|
||
|
|
||
|
:cond_1
|
||
|
:goto_1
|
||
|
throw p0
|
||
|
|
||
|
:cond_2
|
||
|
const-string p0, "FlutterEngineCxnRegstry"
|
||
|
|
||
|
const-string v0, "Attempted to detach plugins from a Service when no Service was attached."
|
||
|
|
||
|
.line 529
|
||
|
invoke-static {p0, v0}, Lio/flutter/Log;->e(Ljava/lang/String;Ljava/lang/String;)V
|
||
|
|
||
|
:cond_3
|
||
|
:goto_2
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
.method public get(Ljava/lang/Class;)Lio/flutter/embedding/engine/plugins/FlutterPlugin;
|
||
|
.locals 0
|
||
|
.annotation system Ldalvik/annotation/Signature;
|
||
|
value = {
|
||
|
"(",
|
||
|
"Ljava/lang/Class<",
|
||
|
"+",
|
||
|
"Lio/flutter/embedding/engine/plugins/FlutterPlugin;",
|
||
|
">;)",
|
||
|
"Lio/flutter/embedding/engine/plugins/FlutterPlugin;"
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
iget-object p0, p0, Lio/flutter/embedding/engine/FlutterEngineConnectionRegistry;->plugins:Ljava/util/Map;
|
||
|
|
||
|
.line 213
|
||
|
invoke-interface {p0, p1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
|
||
|
|
||
|
move-result-object p0
|
||
|
|
||
|
check-cast p0, Lio/flutter/embedding/engine/plugins/FlutterPlugin;
|
||
|
|
||
|
return-object p0
|
||
|
.end method
|
||
|
|
||
|
.method public has(Ljava/lang/Class;)Z
|
||
|
.locals 0
|
||
|
.annotation system Ldalvik/annotation/Signature;
|
||
|
value = {
|
||
|
"(",
|
||
|
"Ljava/lang/Class<",
|
||
|
"+",
|
||
|
"Lio/flutter/embedding/engine/plugins/FlutterPlugin;",
|
||
|
">;)Z"
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
iget-object p0, p0, Lio/flutter/embedding/engine/FlutterEngineConnectionRegistry;->plugins:Ljava/util/Map;
|
||
|
|
||
|
.line 208
|
||
|
invoke-interface {p0, p1}, Ljava/util/Map;->containsKey(Ljava/lang/Object;)Z
|
||
|
|
||
|
move-result p0
|
||
|
|
||
|
return p0
|
||
|
.end method
|
||
|
|
||
|
.method public onActivityResult(IILandroid/content/Intent;)Z
|
||
|
.locals 1
|
||
|
|
||
|
.line 419
|
||
|
invoke-direct {p0}, Lio/flutter/embedding/engine/FlutterEngineConnectionRegistry;->isAttachedToActivity()Z
|
||
|
|
||
|
move-result v0
|
||
|
|
||
|
if-eqz v0, :cond_2
|
||
|
|
||
|
const-string v0, "FlutterEngineConnectionRegistry#onActivityResult"
|
||
|
|
||
|
.line 421
|
||
|
invoke-static {v0}, Lio/flutter/util/TraceSection;->scoped(Ljava/lang/String;)Lio/flutter/util/TraceSection;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
:try_start_0
|
||
|
iget-object p0, p0, Lio/flutter/embedding/engine/FlutterEngineConnectionRegistry;->activityPluginBinding:Lio/flutter/embedding/engine/FlutterEngineConnectionRegistry$FlutterEngineActivityPluginBinding;
|
||
|
|
||
|
.line 422
|
||
|
invoke-virtual {p0, p1, p2, p3}, Lio/flutter/embedding/engine/FlutterEngineConnectionRegistry$FlutterEngineActivityPluginBinding;->onActivityResult(IILandroid/content/Intent;)Z
|
||
|
|
||
|
move-result p0
|
||
|
:try_end_0
|
||
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
||
|
|
||
|
if-eqz v0, :cond_0
|
||
|
|
||
|
.line 423
|
||
|
invoke-virtual {v0}, Lio/flutter/util/TraceSection;->close()V
|
||
|
|
||
|
:cond_0
|
||
|
return p0
|
||
|
|
||
|
:catchall_0
|
||
|
move-exception p0
|
||
|
|
||
|
if-eqz v0, :cond_1
|
||
|
|
||
|
.line 420
|
||
|
:try_start_1
|
||
|
invoke-virtual {v0}, Lio/flutter/util/TraceSection;->close()V
|
||
|
:try_end_1
|
||
|
.catchall {:try_start_1 .. :try_end_1} :catchall_1
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
:catchall_1
|
||
|
move-exception p1
|
||
|
|
||
|
invoke-virtual {p0, p1}, Ljava/lang/Throwable;->addSuppressed(Ljava/lang/Throwable;)V
|
||
|
|
||
|
:cond_1
|
||
|
:goto_0
|
||
|
throw p0
|
||
|
|
||
|
:cond_2
|
||
|
const-string p0, "FlutterEngineCxnRegstry"
|
||
|
|
||
|
const-string p1, "Attempted to notify ActivityAware plugins of onActivityResult, but no Activity was attached."
|
||
|
|
||
|
.line 425
|
||
|
invoke-static {p0, p1}, Lio/flutter/Log;->e(Ljava/lang/String;Ljava/lang/String;)V
|
||
|
|
||
|
const/4 p0, 0x0
|
||
|
|
||
|
return p0
|
||
|
.end method
|
||
|
|
||
|
.method public onMoveToBackground()V
|
||
|
.locals 1
|
||
|
|
||
|
.line 545
|
||
|
invoke-direct {p0}, Lio/flutter/embedding/engine/FlutterEngineConnectionRegistry;->isAttachedToService()Z
|
||
|
|
||
|
move-result v0
|
||
|
|
||
|
if-eqz v0, :cond_1
|
||
|
|
||
|
const-string v0, "FlutterEngineConnectionRegistry#onMoveToBackground"
|
||
|
|
||
|
.line 547
|
||
|
invoke-static {v0}, Lio/flutter/util/TraceSection;->scoped(Ljava/lang/String;)Lio/flutter/util/TraceSection;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
:try_start_0
|
||
|
iget-object p0, p0, Lio/flutter/embedding/engine/FlutterEngineConnectionRegistry;->servicePluginBinding:Lio/flutter/embedding/engine/FlutterEngineConnectionRegistry$FlutterEngineServicePluginBinding;
|
||
|
|
||
|
.line 548
|
||
|
invoke-virtual {p0}, Lio/flutter/embedding/engine/FlutterEngineConnectionRegistry$FlutterEngineServicePluginBinding;->onMoveToBackground()V
|
||
|
:try_end_0
|
||
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
||
|
|
||
|
if-eqz v0, :cond_1
|
||
|
|
||
|
.line 549
|
||
|
invoke-virtual {v0}, Lio/flutter/util/TraceSection;->close()V
|
||
|
|
||
|
goto :goto_1
|
||
|
|
||
|
:catchall_0
|
||
|
move-exception p0
|
||
|
|
||
|
if-eqz v0, :cond_0
|
||
|
|
||
|
.line 546
|
||
|
:try_start_1
|
||
|
invoke-virtual {v0}, Lio/flutter/util/TraceSection;->close()V
|
||
|
:try_end_1
|
||
|
.catchall {:try_start_1 .. :try_end_1} :catchall_1
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
:catchall_1
|
||
|
move-exception v0
|
||
|
|
||
|
invoke-virtual {p0, v0}, Ljava/lang/Throwable;->addSuppressed(Ljava/lang/Throwable;)V
|
||
|
|
||
|
:cond_0
|
||
|
:goto_0
|
||
|
throw p0
|
||
|
|
||
|
:cond_1
|
||
|
:goto_1
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
.method public onMoveToForeground()V
|
||
|
.locals 1
|
||
|
|
||
|
.line 535
|
||
|
invoke-direct {p0}, Lio/flutter/embedding/engine/FlutterEngineConnectionRegistry;->isAttachedToService()Z
|
||
|
|
||
|
move-result v0
|
||
|
|
||
|
if-eqz v0, :cond_1
|
||
|
|
||
|
const-string v0, "FlutterEngineConnectionRegistry#onMoveToForeground"
|
||
|
|
||
|
.line 537
|
||
|
invoke-static {v0}, Lio/flutter/util/TraceSection;->scoped(Ljava/lang/String;)Lio/flutter/util/TraceSection;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
:try_start_0
|
||
|
iget-object p0, p0, Lio/flutter/embedding/engine/FlutterEngineConnectionRegistry;->servicePluginBinding:Lio/flutter/embedding/engine/FlutterEngineConnectionRegistry$FlutterEngineServicePluginBinding;
|
||
|
|
||
|
.line 538
|
||
|
invoke-virtual {p0}, Lio/flutter/embedding/engine/FlutterEngineConnectionRegistry$FlutterEngineServicePluginBinding;->onMoveToForeground()V
|
||
|
:try_end_0
|
||
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
||
|
|
||
|
if-eqz v0, :cond_1
|
||
|
|
||
|
.line 539
|
||
|
invoke-virtual {v0}, Lio/flutter/util/TraceSection;->close()V
|
||
|
|
||
|
goto :goto_1
|
||
|
|
||
|
:catchall_0
|
||
|
move-exception p0
|
||
|
|
||
|
if-eqz v0, :cond_0
|
||
|
|
||
|
.line 536
|
||
|
:try_start_1
|
||
|
invoke-virtual {v0}, Lio/flutter/util/TraceSection;->close()V
|
||
|
:try_end_1
|
||
|
.catchall {:try_start_1 .. :try_end_1} :catchall_1
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
:catchall_1
|
||
|
move-exception v0
|
||
|
|
||
|
invoke-virtual {p0, v0}, Ljava/lang/Throwable;->addSuppressed(Ljava/lang/Throwable;)V
|
||
|
|
||
|
:cond_0
|
||
|
:goto_0
|
||
|
throw p0
|
||
|
|
||
|
:cond_1
|
||
|
:goto_1
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
.method public onNewIntent(Landroid/content/Intent;)V
|
||
|
.locals 1
|
||
|
|
||
|
.line 435
|
||
|
invoke-direct {p0}, Lio/flutter/embedding/engine/FlutterEngineConnectionRegistry;->isAttachedToActivity()Z
|
||
|
|
||
|
move-result v0
|
||
|
|
||
|
if-eqz v0, :cond_1
|
||
|
|
||
|
const-string v0, "FlutterEngineConnectionRegistry#onNewIntent"
|
||
|
|
||
|
.line 436
|
||
|
invoke-static {v0}, Lio/flutter/util/TraceSection;->scoped(Ljava/lang/String;)Lio/flutter/util/TraceSection;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
:try_start_0
|
||
|
iget-object p0, p0, Lio/flutter/embedding/engine/FlutterEngineConnectionRegistry;->activityPluginBinding:Lio/flutter/embedding/engine/FlutterEngineConnectionRegistry$FlutterEngineActivityPluginBinding;
|
||
|
|
||
|
.line 437
|
||
|
invoke-virtual {p0, p1}, Lio/flutter/embedding/engine/FlutterEngineConnectionRegistry$FlutterEngineActivityPluginBinding;->onNewIntent(Landroid/content/Intent;)V
|
||
|
:try_end_0
|
||
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
||
|
|
||
|
if-eqz v0, :cond_2
|
||
|
|
||
|
.line 438
|
||
|
invoke-virtual {v0}, Lio/flutter/util/TraceSection;->close()V
|
||
|
|
||
|
goto :goto_1
|
||
|
|
||
|
:catchall_0
|
||
|
move-exception p0
|
||
|
|
||
|
if-eqz v0, :cond_0
|
||
|
|
||
|
.line 436
|
||
|
:try_start_1
|
||
|
invoke-virtual {v0}, Lio/flutter/util/TraceSection;->close()V
|
||
|
:try_end_1
|
||
|
.catchall {:try_start_1 .. :try_end_1} :catchall_1
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
:catchall_1
|
||
|
move-exception p1
|
||
|
|
||
|
invoke-virtual {p0, p1}, Ljava/lang/Throwable;->addSuppressed(Ljava/lang/Throwable;)V
|
||
|
|
||
|
:cond_0
|
||
|
:goto_0
|
||
|
throw p0
|
||
|
|
||
|
:cond_1
|
||
|
const-string p0, "FlutterEngineCxnRegstry"
|
||
|
|
||
|
const-string p1, "Attempted to notify ActivityAware plugins of onNewIntent, but no Activity was attached."
|
||
|
|
||
|
.line 440
|
||
|
invoke-static {p0, p1}, Lio/flutter/Log;->e(Ljava/lang/String;Ljava/lang/String;)V
|
||
|
|
||
|
:cond_2
|
||
|
:goto_1
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
.method public onRequestPermissionsResult(I[Ljava/lang/String;[I)Z
|
||
|
.locals 1
|
||
|
|
||
|
.line 402
|
||
|
invoke-direct {p0}, Lio/flutter/embedding/engine/FlutterEngineConnectionRegistry;->isAttachedToActivity()Z
|
||
|
|
||
|
move-result v0
|
||
|
|
||
|
if-eqz v0, :cond_2
|
||
|
|
||
|
const-string v0, "FlutterEngineConnectionRegistry#onRequestPermissionsResult"
|
||
|
|
||
|
.line 404
|
||
|
invoke-static {v0}, Lio/flutter/util/TraceSection;->scoped(Ljava/lang/String;)Lio/flutter/util/TraceSection;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
:try_start_0
|
||
|
iget-object p0, p0, Lio/flutter/embedding/engine/FlutterEngineConnectionRegistry;->activityPluginBinding:Lio/flutter/embedding/engine/FlutterEngineConnectionRegistry$FlutterEngineActivityPluginBinding;
|
||
|
|
||
|
.line 405
|
||
|
invoke-virtual {p0, p1, p2, p3}, Lio/flutter/embedding/engine/FlutterEngineConnectionRegistry$FlutterEngineActivityPluginBinding;->onRequestPermissionsResult(I[Ljava/lang/String;[I)Z
|
||
|
|
||
|
move-result p0
|
||
|
:try_end_0
|
||
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
||
|
|
||
|
if-eqz v0, :cond_0
|
||
|
|
||
|
.line 407
|
||
|
invoke-virtual {v0}, Lio/flutter/util/TraceSection;->close()V
|
||
|
|
||
|
:cond_0
|
||
|
return p0
|
||
|
|
||
|
:catchall_0
|
||
|
move-exception p0
|
||
|
|
||
|
if-eqz v0, :cond_1
|
||
|
|
||
|
.line 403
|
||
|
:try_start_1
|
||
|
invoke-virtual {v0}, Lio/flutter/util/TraceSection;->close()V
|
||
|
:try_end_1
|
||
|
.catchall {:try_start_1 .. :try_end_1} :catchall_1
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
:catchall_1
|
||
|
move-exception p1
|
||
|
|
||
|
invoke-virtual {p0, p1}, Ljava/lang/Throwable;->addSuppressed(Ljava/lang/Throwable;)V
|
||
|
|
||
|
:cond_1
|
||
|
:goto_0
|
||
|
throw p0
|
||
|
|
||
|
:cond_2
|
||
|
const-string p0, "FlutterEngineCxnRegstry"
|
||
|
|
||
|
const-string p1, "Attempted to notify ActivityAware plugins of onRequestPermissionsResult, but no Activity was attached."
|
||
|
|
||
|
.line 409
|
||
|
invoke-static {p0, p1}, Lio/flutter/Log;->e(Ljava/lang/String;Ljava/lang/String;)V
|
||
|
|
||
|
const/4 p0, 0x0
|
||
|
|
||
|
return p0
|
||
|
.end method
|
||
|
|
||
|
.method public onRestoreInstanceState(Landroid/os/Bundle;)V
|
||
|
.locals 1
|
||
|
|
||
|
.line 479
|
||
|
invoke-direct {p0}, Lio/flutter/embedding/engine/FlutterEngineConnectionRegistry;->isAttachedToActivity()Z
|
||
|
|
||
|
move-result v0
|
||
|
|
||
|
if-eqz v0, :cond_1
|
||
|
|
||
|
const-string v0, "FlutterEngineConnectionRegistry#onRestoreInstanceState"
|
||
|
|
||
|
.line 481
|
||
|
invoke-static {v0}, Lio/flutter/util/TraceSection;->scoped(Ljava/lang/String;)Lio/flutter/util/TraceSection;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
:try_start_0
|
||
|
iget-object p0, p0, Lio/flutter/embedding/engine/FlutterEngineConnectionRegistry;->activityPluginBinding:Lio/flutter/embedding/engine/FlutterEngineConnectionRegistry$FlutterEngineActivityPluginBinding;
|
||
|
|
||
|
.line 482
|
||
|
invoke-virtual {p0, p1}, Lio/flutter/embedding/engine/FlutterEngineConnectionRegistry$FlutterEngineActivityPluginBinding;->onRestoreInstanceState(Landroid/os/Bundle;)V
|
||
|
:try_end_0
|
||
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
||
|
|
||
|
if-eqz v0, :cond_2
|
||
|
|
||
|
.line 483
|
||
|
invoke-virtual {v0}, Lio/flutter/util/TraceSection;->close()V
|
||
|
|
||
|
goto :goto_1
|
||
|
|
||
|
:catchall_0
|
||
|
move-exception p0
|
||
|
|
||
|
if-eqz v0, :cond_0
|
||
|
|
||
|
.line 480
|
||
|
:try_start_1
|
||
|
invoke-virtual {v0}, Lio/flutter/util/TraceSection;->close()V
|
||
|
:try_end_1
|
||
|
.catchall {:try_start_1 .. :try_end_1} :catchall_1
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
:catchall_1
|
||
|
move-exception p1
|
||
|
|
||
|
invoke-virtual {p0, p1}, Ljava/lang/Throwable;->addSuppressed(Ljava/lang/Throwable;)V
|
||
|
|
||
|
:cond_0
|
||
|
:goto_0
|
||
|
throw p0
|
||
|
|
||
|
:cond_1
|
||
|
const-string p0, "FlutterEngineCxnRegstry"
|
||
|
|
||
|
const-string p1, "Attempted to notify ActivityAware plugins of onRestoreInstanceState, but no Activity was attached."
|
||
|
|
||
|
.line 485
|
||
|
invoke-static {p0, p1}, Lio/flutter/Log;->e(Ljava/lang/String;Ljava/lang/String;)V
|
||
|
|
||
|
:cond_2
|
||
|
:goto_1
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
.method public onSaveInstanceState(Landroid/os/Bundle;)V
|
||
|
.locals 1
|
||
|
|
||
|
.line 464
|
||
|
invoke-direct {p0}, Lio/flutter/embedding/engine/FlutterEngineConnectionRegistry;->isAttachedToActivity()Z
|
||
|
|
||
|
move-result v0
|
||
|
|
||
|
if-eqz v0, :cond_1
|
||
|
|
||
|
const-string v0, "FlutterEngineConnectionRegistry#onSaveInstanceState"
|
||
|
|
||
|
.line 466
|
||
|
invoke-static {v0}, Lio/flutter/util/TraceSection;->scoped(Ljava/lang/String;)Lio/flutter/util/TraceSection;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
:try_start_0
|
||
|
iget-object p0, p0, Lio/flutter/embedding/engine/FlutterEngineConnectionRegistry;->activityPluginBinding:Lio/flutter/embedding/engine/FlutterEngineConnectionRegistry$FlutterEngineActivityPluginBinding;
|
||
|
|
||
|
.line 467
|
||
|
invoke-virtual {p0, p1}, Lio/flutter/embedding/engine/FlutterEngineConnectionRegistry$FlutterEngineActivityPluginBinding;->onSaveInstanceState(Landroid/os/Bundle;)V
|
||
|
:try_end_0
|
||
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
||
|
|
||
|
if-eqz v0, :cond_2
|
||
|
|
||
|
.line 468
|
||
|
invoke-virtual {v0}, Lio/flutter/util/TraceSection;->close()V
|
||
|
|
||
|
goto :goto_1
|
||
|
|
||
|
:catchall_0
|
||
|
move-exception p0
|
||
|
|
||
|
if-eqz v0, :cond_0
|
||
|
|
||
|
.line 465
|
||
|
:try_start_1
|
||
|
invoke-virtual {v0}, Lio/flutter/util/TraceSection;->close()V
|
||
|
:try_end_1
|
||
|
.catchall {:try_start_1 .. :try_end_1} :catchall_1
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
:catchall_1
|
||
|
move-exception p1
|
||
|
|
||
|
invoke-virtual {p0, p1}, Ljava/lang/Throwable;->addSuppressed(Ljava/lang/Throwable;)V
|
||
|
|
||
|
:cond_0
|
||
|
:goto_0
|
||
|
throw p0
|
||
|
|
||
|
:cond_1
|
||
|
const-string p0, "FlutterEngineCxnRegstry"
|
||
|
|
||
|
const-string p1, "Attempted to notify ActivityAware plugins of onSaveInstanceState, but no Activity was attached."
|
||
|
|
||
|
.line 470
|
||
|
invoke-static {p0, p1}, Lio/flutter/Log;->e(Ljava/lang/String;Ljava/lang/String;)V
|
||
|
|
||
|
:cond_2
|
||
|
:goto_1
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
.method public onUserLeaveHint()V
|
||
|
.locals 1
|
||
|
|
||
|
.line 449
|
||
|
invoke-direct {p0}, Lio/flutter/embedding/engine/FlutterEngineConnectionRegistry;->isAttachedToActivity()Z
|
||
|
|
||
|
move-result v0
|
||
|
|
||
|
if-eqz v0, :cond_1
|
||
|
|
||
|
const-string v0, "FlutterEngineConnectionRegistry#onUserLeaveHint"
|
||
|
|
||
|
.line 451
|
||
|
invoke-static {v0}, Lio/flutter/util/TraceSection;->scoped(Ljava/lang/String;)Lio/flutter/util/TraceSection;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
:try_start_0
|
||
|
iget-object p0, p0, Lio/flutter/embedding/engine/FlutterEngineConnectionRegistry;->activityPluginBinding:Lio/flutter/embedding/engine/FlutterEngineConnectionRegistry$FlutterEngineActivityPluginBinding;
|
||
|
|
||
|
.line 452
|
||
|
invoke-virtual {p0}, Lio/flutter/embedding/engine/FlutterEngineConnectionRegistry$FlutterEngineActivityPluginBinding;->onUserLeaveHint()V
|
||
|
:try_end_0
|
||
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
||
|
|
||
|
if-eqz v0, :cond_2
|
||
|
|
||
|
.line 453
|
||
|
invoke-virtual {v0}, Lio/flutter/util/TraceSection;->close()V
|
||
|
|
||
|
goto :goto_1
|
||
|
|
||
|
:catchall_0
|
||
|
move-exception p0
|
||
|
|
||
|
if-eqz v0, :cond_0
|
||
|
|
||
|
.line 450
|
||
|
:try_start_1
|
||
|
invoke-virtual {v0}, Lio/flutter/util/TraceSection;->close()V
|
||
|
:try_end_1
|
||
|
.catchall {:try_start_1 .. :try_end_1} :catchall_1
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
:catchall_1
|
||
|
move-exception v0
|
||
|
|
||
|
invoke-virtual {p0, v0}, Ljava/lang/Throwable;->addSuppressed(Ljava/lang/Throwable;)V
|
||
|
|
||
|
:cond_0
|
||
|
:goto_0
|
||
|
throw p0
|
||
|
|
||
|
:cond_1
|
||
|
const-string p0, "FlutterEngineCxnRegstry"
|
||
|
|
||
|
const-string v0, "Attempted to notify ActivityAware plugins of onUserLeaveHint, but no Activity was attached."
|
||
|
|
||
|
.line 455
|
||
|
invoke-static {p0, v0}, Lio/flutter/Log;->e(Ljava/lang/String;Ljava/lang/String;)V
|
||
|
|
||
|
:cond_2
|
||
|
:goto_1
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
.method public remove(Ljava/lang/Class;)V
|
||
|
.locals 3
|
||
|
.annotation system Ldalvik/annotation/Signature;
|
||
|
value = {
|
||
|
"(",
|
||
|
"Ljava/lang/Class<",
|
||
|
"+",
|
||
|
"Lio/flutter/embedding/engine/plugins/FlutterPlugin;",
|
||
|
">;)V"
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
iget-object v0, p0, Lio/flutter/embedding/engine/FlutterEngineConnectionRegistry;->plugins:Ljava/util/Map;
|
||
|
|
||
|
.line 218
|
||
|
invoke-interface {v0, p1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
check-cast v0, Lio/flutter/embedding/engine/plugins/FlutterPlugin;
|
||
|
|
||
|
if-nez v0, :cond_0
|
||
|
|
||
|
return-void
|
||
|
|
||
|
.line 223
|
||
|
:cond_0
|
||
|
new-instance v1, Ljava/lang/StringBuilder;
|
||
|
|
||
|
const-string v2, "FlutterEngineConnectionRegistry#remove "
|
||
|
|
||
|
invoke-direct {v1, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
|
||
|
|
||
|
.line 225
|
||
|
invoke-virtual {p1}, Ljava/lang/Class;->getSimpleName()Ljava/lang/String;
|
||
|
|
||
|
move-result-object v2
|
||
|
|
||
|
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
.line 224
|
||
|
invoke-static {v1}, Lio/flutter/util/TraceSection;->scoped(Ljava/lang/String;)Lio/flutter/util/TraceSection;
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
.line 229
|
||
|
:try_start_0
|
||
|
instance-of v2, v0, Lio/flutter/embedding/engine/plugins/activity/ActivityAware;
|
||
|
|
||
|
if-eqz v2, :cond_2
|
||
|
|
||
|
.line 230
|
||
|
invoke-direct {p0}, Lio/flutter/embedding/engine/FlutterEngineConnectionRegistry;->isAttachedToActivity()Z
|
||
|
|
||
|
move-result v2
|
||
|
|
||
|
if-eqz v2, :cond_1
|
||
|
|
||
|
.line 231
|
||
|
move-object v2, v0
|
||
|
|
||
|
check-cast v2, Lio/flutter/embedding/engine/plugins/activity/ActivityAware;
|
||
|
|
||
|
.line 232
|
||
|
invoke-interface {v2}, Lio/flutter/embedding/engine/plugins/activity/ActivityAware;->onDetachedFromActivity()V
|
||
|
|
||
|
:cond_1
|
||
|
iget-object v2, p0, Lio/flutter/embedding/engine/FlutterEngineConnectionRegistry;->activityAwarePlugins:Ljava/util/Map;
|
||
|
|
||
|
.line 234
|
||
|
invoke-interface {v2, p1}, Ljava/util/Map;->remove(Ljava/lang/Object;)Ljava/lang/Object;
|
||
|
|
||
|
.line 240
|
||
|
:cond_2
|
||
|
instance-of v2, v0, Lio/flutter/embedding/engine/plugins/service/ServiceAware;
|
||
|
|
||
|
if-eqz v2, :cond_4
|
||
|
|
||
|
.line 241
|
||
|
invoke-direct {p0}, Lio/flutter/embedding/engine/FlutterEngineConnectionRegistry;->isAttachedToService()Z
|
||
|
|
||
|
move-result v2
|
||
|
|
||
|
if-eqz v2, :cond_3
|
||
|
|
||
|
.line 242
|
||
|
move-object v2, v0
|
||
|
|
||
|
check-cast v2, Lio/flutter/embedding/engine/plugins/service/ServiceAware;
|
||
|
|
||
|
.line 243
|
||
|
invoke-interface {v2}, Lio/flutter/embedding/engine/plugins/service/ServiceAware;->onDetachedFromService()V
|
||
|
|
||
|
:cond_3
|
||
|
iget-object v2, p0, Lio/flutter/embedding/engine/FlutterEngineConnectionRegistry;->serviceAwarePlugins:Ljava/util/Map;
|
||
|
|
||
|
.line 245
|
||
|
invoke-interface {v2, p1}, Ljava/util/Map;->remove(Ljava/lang/Object;)Ljava/lang/Object;
|
||
|
|
||
|
.line 251
|
||
|
:cond_4
|
||
|
instance-of v2, v0, Lio/flutter/embedding/engine/plugins/broadcastreceiver/BroadcastReceiverAware;
|
||
|
|
||
|
if-eqz v2, :cond_6
|
||
|
|
||
|
.line 252
|
||
|
invoke-direct {p0}, Lio/flutter/embedding/engine/FlutterEngineConnectionRegistry;->isAttachedToBroadcastReceiver()Z
|
||
|
|
||
|
move-result v2
|
||
|
|
||
|
if-eqz v2, :cond_5
|
||
|
|
||
|
.line 253
|
||
|
move-object v2, v0
|
||
|
|
||
|
check-cast v2, Lio/flutter/embedding/engine/plugins/broadcastreceiver/BroadcastReceiverAware;
|
||
|
|
||
|
.line 254
|
||
|
invoke-interface {v2}, Lio/flutter/embedding/engine/plugins/broadcastreceiver/BroadcastReceiverAware;->onDetachedFromBroadcastReceiver()V
|
||
|
|
||
|
:cond_5
|
||
|
iget-object v2, p0, Lio/flutter/embedding/engine/FlutterEngineConnectionRegistry;->broadcastReceiverAwarePlugins:Ljava/util/Map;
|
||
|
|
||
|
.line 256
|
||
|
invoke-interface {v2, p1}, Ljava/util/Map;->remove(Ljava/lang/Object;)Ljava/lang/Object;
|
||
|
|
||
|
.line 262
|
||
|
:cond_6
|
||
|
instance-of v2, v0, Lio/flutter/embedding/engine/plugins/contentprovider/ContentProviderAware;
|
||
|
|
||
|
if-eqz v2, :cond_8
|
||
|
|
||
|
.line 263
|
||
|
invoke-direct {p0}, Lio/flutter/embedding/engine/FlutterEngineConnectionRegistry;->isAttachedToContentProvider()Z
|
||
|
|
||
|
move-result v2
|
||
|
|
||
|
if-eqz v2, :cond_7
|
||
|
|
||
|
.line 264
|
||
|
move-object v2, v0
|
||
|
|
||
|
check-cast v2, Lio/flutter/embedding/engine/plugins/contentprovider/ContentProviderAware;
|
||
|
|
||
|
.line 265
|
||
|
invoke-interface {v2}, Lio/flutter/embedding/engine/plugins/contentprovider/ContentProviderAware;->onDetachedFromContentProvider()V
|
||
|
|
||
|
:cond_7
|
||
|
iget-object v2, p0, Lio/flutter/embedding/engine/FlutterEngineConnectionRegistry;->contentProviderAwarePlugins:Ljava/util/Map;
|
||
|
|
||
|
.line 267
|
||
|
invoke-interface {v2, p1}, Ljava/util/Map;->remove(Ljava/lang/Object;)Ljava/lang/Object;
|
||
|
|
||
|
:cond_8
|
||
|
iget-object v2, p0, Lio/flutter/embedding/engine/FlutterEngineConnectionRegistry;->pluginBinding:Lio/flutter/embedding/engine/plugins/FlutterPlugin$FlutterPluginBinding;
|
||
|
|
||
|
.line 272
|
||
|
invoke-interface {v0, v2}, Lio/flutter/embedding/engine/plugins/FlutterPlugin;->onDetachedFromEngine(Lio/flutter/embedding/engine/plugins/FlutterPlugin$FlutterPluginBinding;)V
|
||
|
|
||
|
iget-object p0, p0, Lio/flutter/embedding/engine/FlutterEngineConnectionRegistry;->plugins:Ljava/util/Map;
|
||
|
|
||
|
.line 273
|
||
|
invoke-interface {p0, p1}, Ljava/util/Map;->remove(Ljava/lang/Object;)Ljava/lang/Object;
|
||
|
:try_end_0
|
||
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
||
|
|
||
|
if-eqz v1, :cond_9
|
||
|
|
||
|
.line 274
|
||
|
invoke-virtual {v1}, Lio/flutter/util/TraceSection;->close()V
|
||
|
|
||
|
:cond_9
|
||
|
return-void
|
||
|
|
||
|
:catchall_0
|
||
|
move-exception p0
|
||
|
|
||
|
if-eqz v1, :cond_a
|
||
|
|
||
|
.line 223
|
||
|
:try_start_1
|
||
|
invoke-virtual {v1}, Lio/flutter/util/TraceSection;->close()V
|
||
|
:try_end_1
|
||
|
.catchall {:try_start_1 .. :try_end_1} :catchall_1
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
:catchall_1
|
||
|
move-exception p1
|
||
|
|
||
|
invoke-virtual {p0, p1}, Ljava/lang/Throwable;->addSuppressed(Ljava/lang/Throwable;)V
|
||
|
|
||
|
:cond_a
|
||
|
:goto_0
|
||
|
throw p0
|
||
|
.end method
|
||
|
|
||
|
.method public remove(Ljava/util/Set;)V
|
||
|
.locals 1
|
||
|
.annotation system Ldalvik/annotation/Signature;
|
||
|
value = {
|
||
|
"(",
|
||
|
"Ljava/util/Set<",
|
||
|
"Ljava/lang/Class<",
|
||
|
"+",
|
||
|
"Lio/flutter/embedding/engine/plugins/FlutterPlugin;",
|
||
|
">;>;)V"
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
.line 279
|
||
|
invoke-interface {p1}, Ljava/util/Set;->iterator()Ljava/util/Iterator;
|
||
|
|
||
|
move-result-object p1
|
||
|
|
||
|
:goto_0
|
||
|
invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z
|
||
|
|
||
|
move-result v0
|
||
|
|
||
|
if-eqz v0, :cond_0
|
||
|
|
||
|
invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
check-cast v0, Ljava/lang/Class;
|
||
|
|
||
|
.line 280
|
||
|
invoke-virtual {p0, v0}, Lio/flutter/embedding/engine/FlutterEngineConnectionRegistry;->remove(Ljava/lang/Class;)V
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
:cond_0
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
.method public removeAll()V
|
||
|
.locals 2
|
||
|
|
||
|
.line 288
|
||
|
new-instance v0, Ljava/util/HashSet;
|
||
|
|
||
|
iget-object v1, p0, Lio/flutter/embedding/engine/FlutterEngineConnectionRegistry;->plugins:Ljava/util/Map;
|
||
|
|
||
|
invoke-interface {v1}, Ljava/util/Map;->keySet()Ljava/util/Set;
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
invoke-direct {v0, v1}, Ljava/util/HashSet;-><init>(Ljava/util/Collection;)V
|
||
|
|
||
|
invoke-virtual {p0, v0}, Lio/flutter/embedding/engine/FlutterEngineConnectionRegistry;->remove(Ljava/util/Set;)V
|
||
|
|
||
|
iget-object p0, p0, Lio/flutter/embedding/engine/FlutterEngineConnectionRegistry;->plugins:Ljava/util/Map;
|
||
|
|
||
|
.line 289
|
||
|
invoke-interface {p0}, Ljava/util/Map;->clear()V
|
||
|
|
||
|
return-void
|
||
|
.end method
|