| | | | |
| Offset 1, 81 lines modified | Offset 1, 81 lines modified |
| 1 | .class·public·final·Lcom/android/car/ui/utils/DirectManipulationHelper; | 1 | .class·public·final·Lcom/android/car/ui/utils/DirectManipulationHelper; |
| 2 | .super·Ljava/lang/Object; | 2 | .super·Ljava/lang/Object; |
| 3 | .source·"DirectManipulationHelper.java" | 3 | .source·"DirectManipulationHelper.java" |
| | |
| | |
| 4 | #·static·fields | 4 | #·static·fields |
| 5 | .field·private·static·final·DIRECT_MANIPULATION:Ljava/lang/String;·=·"com.android.car.ui.utils.DIRECT_MANIPULATION" | 5 | .field·public·static·final·DIRECT_MANIPULATION:Ljava/lang/String;·=·"com.android.car.ui.utils.DIRECT_MANIPULATION" |
| | |
| | |
| 6 | #·direct·methods | 6 | #·direct·methods |
| 7 | .method·private·constructor·<init>()V | 7 | .method·private·constructor·<init>()V |
| 8 | ····.locals·0 | 8 | ····.locals·0 |
| | |
| 9 | ····.line·42 | 9 | ····.line·44 |
| 10 | ····invoke-direct·{p0},·Ljava/lang/Object;-><init>()V | 10 | ····invoke-direct·{p0},·Ljava/lang/Object;-><init>()V |
| | |
| 11 | ····return-void | 11 | ····return-void |
| 12 | .end·method | 12 | .end·method |
| | |
| 13 | .method·public·static·enableDirectManipulationMode(Landroid/view/View;Z)Z | 13 | .method·public·static·enableDirectManipulationMode(Landroid/view/View;Z)Z |
| 14 | ····.locals·3 | 14 | ····.locals·3 |
| | |
| 15 | ····.line·58 | 15 | ····.line·60 |
| 16 | ····invoke-virtual·{p0},·Landroid/view/View;->getContext()Landroid/content/Context; | 16 | ····invoke-virtual·{p0},·Landroid/view/View;->getContext()Landroid/content/Context; |
| | |
| 17 | ····move-result-object·v0 | 17 | ····move-result-object·v0 |
| | |
| 18 | ····const-string·v1,·"accessibility" | 18 | ····const-string·v1,·"accessibility" |
| | |
| 19 | ····invoke-virtual·{v0,·v1},·Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object; | 19 | ····invoke-virtual·{v0,·v1},·Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object; |
| | |
| 20 | ····move-result-object·v0 | 20 | ····move-result-object·v0 |
| | |
| 21 | ····check-cast·v0,·Landroid/view/accessibility/AccessibilityManager; | 21 | ····check-cast·v0,·Landroid/view/accessibility/AccessibilityManager; |
| | |
| 22 | ····if-eqz·v0,·:cond_2 | 22 | ····if-eqz·v0,·:cond_2 |
| | |
| 23 | ····.line·59 | 23 | ····.line·61 |
| 24 | ····invoke-virtual·{v0},·Landroid/view/accessibility/AccessibilityManager;->isEnabled()Z | 24 | ····invoke-virtual·{v0},·Landroid/view/accessibility/AccessibilityManager;->isEnabled()Z |
| | |
| 25 | ····move-result·v1 | 25 | ····move-result·v1 |
| | |
| 26 | ····if-nez·v1,·:cond_0 | 26 | ····if-nez·v1,·:cond_0 |
| | |
| 27 | ····goto·:goto_1 | 27 | ····goto·:goto_1 |
| | |
| 28 | ····.line·62 | 28 | ····.line·64 |
| 29 | ····:cond_0 | 29 | ····:cond_0 |
| 30 | ····invoke-static·{},·Landroid/view/accessibility/AccessibilityEvent;->obtain()Landroid/view/accessibility/AccessibilityEvent; | 30 | ····invoke-static·{},·Landroid/view/accessibility/AccessibilityEvent;->obtain()Landroid/view/accessibility/AccessibilityEvent; |
| | |
| 31 | ····move-result-object·v1 | 31 | ····move-result-object·v1 |
| | |
| 32 | ····const-string·v2,·"com.android.car.ui.utils.DIRECT_MANIPULATION" | 32 | ····const-string·v2,·"com.android.car.ui.utils.DIRECT_MANIPULATION" |
| | |
| 33 | ····.line·63 | 33 | ····.line·65 |
| 34 | ····invoke-virtual·{v1,·v2},·Landroid/view/accessibility/AccessibilityEvent;->setClassName(Ljava/lang/CharSequence;)V | 34 | ····invoke-virtual·{v1,·v2},·Landroid/view/accessibility/AccessibilityEvent;->setClassName(Ljava/lang/CharSequence;)V |
| | |
| 35 | ····.line·64 | 35 | ····.line·66 |
| 36 | ····invoke-virtual·{v1,·p0},·Landroid/view/accessibility/AccessibilityEvent;->setSource(Landroid/view/View;)V | 36 | ····invoke-virtual·{v1,·p0},·Landroid/view/accessibility/AccessibilityEvent;->setSource(Landroid/view/View;)V |
| | |
| 37 | ····if-eqz·p1,·:cond_1 | 37 | ····if-eqz·p1,·:cond_1 |
| | |
| 38 | ····const·p0,·0x8000 | 38 | ····const·p0,·0x8000 |
| | |
| 39 | ····goto·:goto_0 | 39 | ····goto·:goto_0 |
| | |
| 40 | ····:cond_1 | 40 | ····:cond_1 |
| 41 | ····const/high16·p0,·0x10000 | 41 | ····const/high16·p0,·0x10000 |
| | |
| 42 | ····.line·65 | 42 | ····.line·67 |
| 43 | ····:goto_0 | 43 | ····:goto_0 |
| 44 | ····invoke-virtual·{v1,·p0},·Landroid/view/accessibility/AccessibilityEvent;->setEventType(I)V | 44 | ····invoke-virtual·{v1,·p0},·Landroid/view/accessibility/AccessibilityEvent;->setEventType(I)V |
| | |
| 45 | ····.line·68 | 45 | ····.line·70 |
| 46 | ····invoke-virtual·{v0,·v1},·Landroid/view/accessibility/AccessibilityManager;->sendAccessibilityEvent(Landroid/view/accessibility/AccessibilityEvent;)V | 46 | ····invoke-virtual·{v0,·v1},·Landroid/view/accessibility/AccessibilityManager;->sendAccessibilityEvent(Landroid/view/accessibility/AccessibilityEvent;)V |
| | |
| 47 | ····const/4·p0,·0x1 | 47 | ····const/4·p0,·0x1 |
| | |
| 48 | ····return·p0 | 48 | ····return·p0 |
| | |
| 49 | ····:cond_2 | 49 | ····:cond_2 |
| Offset 84, 131 lines modified | Offset 84, 86 lines modified |
| | |
| 84 | ····return·p0 | 84 | ····return·p0 |
| 85 | .end·method | 85 | .end·method |
| | |
| 86 | .method·public·static·isDirectManipulation(Landroid/view/accessibility/AccessibilityEvent;)Z | 86 | .method·public·static·isDirectManipulation(Landroid/view/accessibility/AccessibilityEvent;)Z |
| 87 | ····.locals·1 | 87 | ····.locals·1 |
| | |
| 88 | ····.line·74 | 88 | ····.line·76 |
| 89 | ····invoke-virtual·{p0},·Landroid/view/accessibility/AccessibilityEvent;->getClassName()Ljava/lang/CharSequence; | 89 | ····invoke-virtual·{p0},·Landroid/view/accessibility/AccessibilityEvent;->getClassName()Ljava/lang/CharSequence; |
| | |
| 90 | ····move-result-object·p0 | 90 | ····move-result-object·p0 |
| | |
| 91 | ····const-string·v0,·"com.android.car.ui.utils.DIRECT_MANIPULATION" | 91 | ····const-string·v0,·"com.android.car.ui.utils.DIRECT_MANIPULATION" |
| | |
| 92 | ····invoke-static·{v0,·p0},·Landroid/text/TextUtils;->equals(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Z | 92 | ····invoke-static·{v0,·p0},·Landroid/text/TextUtils;->equals(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Z |
| | |
| 93 | ····move-result·p0 | 93 | ····move-result·p0 |
| | |
| 94 | ····return·p0 | 94 | ····return·p0 |
| 95 | .end·method | 95 | .end·method |
| | |
| 96 | .method·public·static·setSupportsDirectManipulation(Landroid/view/View;Z)V | 96 | .method·public·static·setSupportsDirectManipulation(Landroid/view/View;Z)V |
| 97 | ····.locals·6 | 97 | ····.locals·0 |
| | 98 | ····.annotation·runtime·Ljava/lang/Deprecated; |
| 98 | ····.annotation·build·Landroid/annotation/TargetApi; | |
| 99 | ········value·=·0x1e | |
| 100 | ····.end·annotation | 99 | ····.end·annotation |
| | |
| 101 | ····.line·96 | 100 | ····.line·123 |
| | 101 | ····invoke-static·{p0,·p1},·Lcom/android/car/ui/utils/DirectManipulationHelper;->setSupportsRotateDirectly(Landroid/view/View;Z)V |
| 102 | ····:try_start_0 | |
| 103 | ····const-class·v0,·Landroid/view/View; | |
| | |
| 104 | ····const-string·v1,·"setStateDescription" | |
| | |
| 105 | ····const/4·v2,·0x1 | |
| | |
| 106 | ····new-array·v3,·v2,·[Ljava/lang/Class; | |
| | |
| 107 | ····const-class·v4,·Ljava/lang/CharSequence; | |
| | |
| | 102 | ····return-void |
| | 103 | .end·method |
| 108 | ····const/4·v5,·0x0 | |
| | |
| 109 | ····aput-object·v4,·v3,·v5 | |
| | |
| 110 | ····.line·97 | |
| 111 | ····invoke-virtual·{v0,·v1,·v3},·Ljava/lang/Class;->getMethod(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method; | |
| | |
| 112 | ····move-result-object·v0 | 104 | .method·public·static·setSupportsRotateDirectly(Landroid/view/View;Z)V |
| | 105 | ····.locals·0 |
| | 106 | ····.annotation·build·Landroid/annotation/TargetApi; |
| | 107 | ········value·=·0x1e |
| | 108 | ····.end·annotation |
| | |
| 113 | ····if-eqz·p1,·:cond_0 | 109 | ····if-eqz·p1,·:cond_0 |
| | |
| 114 | ····const-string·p1,·"com.android.car.ui.utils.DIRECT_MANIPULATION" | 110 | ····const-string·p1,·"com.android.car.ui.utils.DIRECT_MANIPULATION" |
| | |
| 115 | ····goto·:goto_0 | 111 | ····goto·:goto_0 |
| | |
| 116 | ····:cond_0 | 112 | ····:cond_0 |
| 117 | ····const/4·p1,·0x0 | 113 | ····const/4·p1,·0x0 |
| | |
| | 114 | ····.line·103 |
| 118 | ····:goto_0 | 115 | ····:goto_0 |
| | 116 | ····invoke-virtual·{p0,·p1},·Landroid/view/View;->setContentDescription(Ljava/lang/CharSequence;)V |
| 119 | ····new-array·v1,·v2,·[Ljava/lang/Object; | |
| | |
| 120 | ····aput-object·p1,·v1,·v5 | |
| | |
| 121 | ····.line·99 | |
| 122 | ····invoke-virtual·{v0,·p0,·v1},·Ljava/lang/reflect/Method;->invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object; | |
| 123 | ····:try_end_0 | |
| 124 | ····.catch·Ljava/lang/ReflectiveOperationException;·{:try_start_0·..·:try_end_0}·:catch_0 | |
| | |
| 125 | ····return-void | 117 | ····return-void |
| | 118 | .end·method |
| | |
| 126 | ····:catch_0 | |
| 127 | ····move-exception·p0 | 119 | .method·public·static·supportDirectManipulation(Landroid/view/accessibility/AccessibilityNodeInfo;)Z |
| | 120 | ····.locals·0 |
| | 121 | ····.annotation·runtime·Ljava/lang/Deprecated; |
| | 122 | ····.end·annotation |
| | |
| 128 | ····.line·101 | 123 | ····.line·113 |
| 129 | ····new-instance·p1,·Ljava/lang/RuntimeException; | 124 | ····invoke-static·{p0},·Lcom/android/car/ui/utils/DirectManipulationHelper;->supportRotateDirectly(Landroid/view/accessibility/AccessibilityNodeInfo;)Z |
| | |
| 130 | ····invoke-direct·{p1,·p0},·Ljava/lang/RuntimeException;-><init>(Ljava/lang/Throwable;)V | 125 | ····move-result·p0 |
| | |
| 131 | ····throw·p1 | 126 | ····return·p0 |
| 132 | .end·method | 127 | .end·method |
| | |
| 133 | .method·public·static·supportDirectManipulation(Landroid/view/accessibility/AccessibilityNodeInfo;)Z | 128 | .method·public·static·supportRotateDirectly(Landroid/view/accessibility/AccessibilityNodeInfo;)Z |
| 134 | ····.locals·4 | 129 | ····.locals·1 |
| 135 | ····.annotation·build·Landroid/annotation/TargetApi; | 130 | ····.annotation·build·Landroid/annotation/TargetApi; |
| 136 | ········value·=·0x1e | 131 | ········value·=·0x1e |
| 137 | ····.end·annotation | 132 | ····.end·annotation |
| | |
| 138 | ····.line·82 | 133 | ····.line·82 |
| | 134 | ····invoke-virtual·{p0},·Landroid/view/accessibility/AccessibilityNodeInfo;->getContentDescription()Ljava/lang/CharSequence; |
| 139 | ····:try_start_0 | |
| 140 | ····const-class·v0,·Landroid/view/accessibility/AccessibilityNodeInfo; | |
| | |
| 141 | ····const-string·v1,·"getStateDescription" | |
| | |
| 142 | ····const/4·v2,·0x0 | |
| | |
| 143 | ····new-array·v3,·v2,·[Ljava/lang/Class; | |
| | |
| 144 | ····.line·83 | |
| 145 | ····invoke-virtual·{v0,·v1,·v3},·Ljava/lang/Class;->getMethod(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method; | |
| | |
| 146 | ····move-result-object·v0 | |
| | |
| 147 | ····new-array·v1,·v2,·[Ljava/lang/Object; | |
| | |
| 148 | ····.line·84 | |
| 149 | ····invoke-virtual·{v0,·p0,·v1},·Ljava/lang/reflect/Method;->invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object; | |
| | |
| 150 | ····move-result-object·p0 | 135 | ····move-result-object·p0 |
| | |
| 151 | ····check-cast·p0,·Ljava/lang/CharSequence; | |
| | |
| 152 | ····const-string·v0,·"com.android.car.ui.utils.DIRECT_MANIPULATION" | 136 | ····const-string·v0,·"com.android.car.ui.utils.DIRECT_MANIPULATION" |
| | |
| 153 | ····.line·85 | |
| 154 | ····invoke-static·{v0,·p0},·Landroid/text/TextUtils;->equals(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Z | 137 | ····invoke-static·{v0,·p0},·Landroid/text/TextUtils;->equals(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Z |
| | |
| 155 | ····move-result·p0 | 138 | ····move-result·p0 |
| 156 | ····:try_end_0 | |
| 157 | ····.catch·Ljava/lang/ReflectiveOperationException;·{:try_start_0·..·:try_end_0}·:catch_0 | |
| | |
| 158 | ····return·p0 | 139 | ····return·p0 |
| | |
| 159 | ····:catch_0 | |
| 160 | ····move-exception·p0 | |
| | |
| 161 | ····.line·87 | |
| 162 | ····new-instance·v0,·Ljava/lang/RuntimeException; | |
| | |
| 163 | ····invoke-direct·{v0,·p0},·Ljava/lang/RuntimeException;-><init>(Ljava/lang/Throwable;)V | |
| | |
| 164 | ····throw·v0 | |
| 165 | .end·method | 140 | .end·method |