289 lines
6.3 KiB
Smali
289 lines
6.3 KiB
Smali
.class public final Landroidx/core/accessibilityservice/AccessibilityServiceInfoCompat;
|
|
.super Ljava/lang/Object;
|
|
.source "AccessibilityServiceInfoCompat.java"
|
|
|
|
|
|
# static fields
|
|
.field public static final CAPABILITY_CAN_FILTER_KEY_EVENTS:I = 0x8
|
|
|
|
.field public static final CAPABILITY_CAN_REQUEST_ENHANCED_WEB_ACCESSIBILITY:I = 0x4
|
|
|
|
.field public static final CAPABILITY_CAN_REQUEST_TOUCH_EXPLORATION:I = 0x2
|
|
|
|
.field public static final CAPABILITY_CAN_RETRIEVE_WINDOW_CONTENT:I = 0x1
|
|
|
|
.field public static final FEEDBACK_ALL_MASK:I = -0x1
|
|
|
|
.field public static final FEEDBACK_BRAILLE:I = 0x20
|
|
|
|
.field public static final FLAG_INCLUDE_NOT_IMPORTANT_VIEWS:I = 0x2
|
|
|
|
.field public static final FLAG_REPORT_VIEW_IDS:I = 0x10
|
|
|
|
.field public static final FLAG_REQUEST_ENHANCED_WEB_ACCESSIBILITY:I = 0x8
|
|
|
|
.field public static final FLAG_REQUEST_FILTER_KEY_EVENTS:I = 0x20
|
|
|
|
.field public static final FLAG_REQUEST_TOUCH_EXPLORATION_MODE:I = 0x4
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>()V
|
|
.locals 0
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static capabilityToString(I)Ljava/lang/String;
|
|
.locals 1
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
|
|
const/4 v0, 0x1
|
|
|
|
if-eq p0, v0, :cond_3
|
|
|
|
const/4 v0, 0x2
|
|
|
|
if-eq p0, v0, :cond_2
|
|
|
|
const/4 v0, 0x4
|
|
|
|
if-eq p0, v0, :cond_1
|
|
|
|
const/16 v0, 0x8
|
|
|
|
if-eq p0, v0, :cond_0
|
|
|
|
const-string p0, "UNKNOWN"
|
|
|
|
return-object p0
|
|
|
|
:cond_0
|
|
const-string p0, "CAPABILITY_CAN_FILTER_KEY_EVENTS"
|
|
|
|
return-object p0
|
|
|
|
:cond_1
|
|
const-string p0, "CAPABILITY_CAN_REQUEST_ENHANCED_WEB_ACCESSIBILITY"
|
|
|
|
return-object p0
|
|
|
|
:cond_2
|
|
const-string p0, "CAPABILITY_CAN_REQUEST_TOUCH_EXPLORATION"
|
|
|
|
return-object p0
|
|
|
|
:cond_3
|
|
const-string p0, "CAPABILITY_CAN_RETRIEVE_WINDOW_CONTENT"
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static feedbackTypeToString(I)Ljava/lang/String;
|
|
.locals 4
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
|
|
const-string v0, "["
|
|
|
|
invoke-static {v0}, Le/e/b/a/a;->a(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
move-result-object v0
|
|
|
|
:goto_0
|
|
if-lez p0, :cond_6
|
|
|
|
invoke-static {p0}, Ljava/lang/Integer;->numberOfTrailingZeros(I)I
|
|
|
|
move-result v1
|
|
|
|
const/4 v2, 0x1
|
|
|
|
shl-int v1, v2, v1
|
|
|
|
not-int v3, v1
|
|
|
|
and-int/2addr p0, v3
|
|
|
|
invoke-virtual {v0}, Ljava/lang/StringBuilder;->length()I
|
|
|
|
move-result v3
|
|
|
|
if-le v3, v2, :cond_0
|
|
|
|
const-string v3, ", "
|
|
|
|
invoke-virtual {v0, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
:cond_0
|
|
if-eq v1, v2, :cond_5
|
|
|
|
const/4 v2, 0x2
|
|
|
|
if-eq v1, v2, :cond_4
|
|
|
|
const/4 v2, 0x4
|
|
|
|
if-eq v1, v2, :cond_3
|
|
|
|
const/16 v2, 0x8
|
|
|
|
if-eq v1, v2, :cond_2
|
|
|
|
const/16 v2, 0x10
|
|
|
|
if-eq v1, v2, :cond_1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
const-string v1, "FEEDBACK_GENERIC"
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
goto :goto_0
|
|
|
|
:cond_2
|
|
const-string v1, "FEEDBACK_VISUAL"
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
goto :goto_0
|
|
|
|
:cond_3
|
|
const-string v1, "FEEDBACK_AUDIBLE"
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
goto :goto_0
|
|
|
|
:cond_4
|
|
const-string v1, "FEEDBACK_HAPTIC"
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
goto :goto_0
|
|
|
|
:cond_5
|
|
const-string v1, "FEEDBACK_SPOKEN"
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
goto :goto_0
|
|
|
|
:cond_6
|
|
const-string p0, "]"
|
|
|
|
invoke-virtual {v0, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static flagToString(I)Ljava/lang/String;
|
|
.locals 1
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
|
|
const/4 v0, 0x1
|
|
|
|
if-eq p0, v0, :cond_5
|
|
|
|
const/4 v0, 0x2
|
|
|
|
if-eq p0, v0, :cond_4
|
|
|
|
const/4 v0, 0x4
|
|
|
|
if-eq p0, v0, :cond_3
|
|
|
|
const/16 v0, 0x8
|
|
|
|
if-eq p0, v0, :cond_2
|
|
|
|
const/16 v0, 0x10
|
|
|
|
if-eq p0, v0, :cond_1
|
|
|
|
const/16 v0, 0x20
|
|
|
|
if-eq p0, v0, :cond_0
|
|
|
|
const/4 p0, 0x0
|
|
|
|
return-object p0
|
|
|
|
:cond_0
|
|
const-string p0, "FLAG_REQUEST_FILTER_KEY_EVENTS"
|
|
|
|
return-object p0
|
|
|
|
:cond_1
|
|
const-string p0, "FLAG_REPORT_VIEW_IDS"
|
|
|
|
return-object p0
|
|
|
|
:cond_2
|
|
const-string p0, "FLAG_REQUEST_ENHANCED_WEB_ACCESSIBILITY"
|
|
|
|
return-object p0
|
|
|
|
:cond_3
|
|
const-string p0, "FLAG_REQUEST_TOUCH_EXPLORATION_MODE"
|
|
|
|
return-object p0
|
|
|
|
:cond_4
|
|
const-string p0, "FLAG_INCLUDE_NOT_IMPORTANT_VIEWS"
|
|
|
|
return-object p0
|
|
|
|
:cond_5
|
|
const-string p0, "DEFAULT"
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static getCapabilities(Landroid/accessibilityservice/AccessibilityServiceInfo;)I
|
|
.locals 1
|
|
.param p0 # Landroid/accessibilityservice/AccessibilityServiceInfo;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
|
|
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
|
|
|
|
invoke-virtual {p0}, Landroid/accessibilityservice/AccessibilityServiceInfo;->getCapabilities()I
|
|
|
|
move-result p0
|
|
|
|
return p0
|
|
.end method
|
|
|
|
.method public static loadDescription(Landroid/accessibilityservice/AccessibilityServiceInfo;Landroid/content/pm/PackageManager;)Ljava/lang/String;
|
|
.locals 1
|
|
.param p0 # Landroid/accessibilityservice/AccessibilityServiceInfo;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.param p1 # Landroid/content/pm/PackageManager;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
|
|
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
|
|
|
|
invoke-virtual {p0, p1}, Landroid/accessibilityservice/AccessibilityServiceInfo;->loadDescription(Landroid/content/pm/PackageManager;)Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|