Offset 1, 81 lines modifiedOffset 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·fields4 #·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·methods6 #·direct·methods
7 .method·private·constructor·<init>()V7 .method·private·constructor·<init>()V
8 ····.locals·08 ····.locals·0
  
9 ····.line·429 ····.line·44
10 ····invoke-direct·{p0},·Ljava/lang/Object;-><init>()V10 ····invoke-direct·{p0},·Ljava/lang/Object;-><init>()V
  
11 ····return-void11 ····return-void
12 .end·method12 .end·method
  
13 .method·public·static·enableDirectManipulationMode(Landroid/view/View;Z)Z13 .method·public·static·enableDirectManipulationMode(Landroid/view/View;Z)Z
14 ····.locals·314 ····.locals·3
  
15 ····.line·5815 ····.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·v017 ····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·v020 ····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_222 ····if-eqz·v0,·:cond_2
  
23 ····.line·5923 ····.line·61
24 ····invoke-virtual·{v0},·Landroid/view/accessibility/AccessibilityManager;->isEnabled()Z24 ····invoke-virtual·{v0},·Landroid/view/accessibility/AccessibilityManager;->isEnabled()Z
  
25 ····move-result·v125 ····move-result·v1
  
26 ····if-nez·v1,·:cond_026 ····if-nez·v1,·:cond_0
  
27 ····goto·:goto_127 ····goto·:goto_1
  
28 ····.line·6228 ····.line·64
29 ····:cond_029 ····: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·v131 ····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·6333 ····.line·65
34 ····invoke-virtual·{v1,·v2},·Landroid/view/accessibility/AccessibilityEvent;->setClassName(Ljava/lang/CharSequence;)V34 ····invoke-virtual·{v1,·v2},·Landroid/view/accessibility/AccessibilityEvent;->setClassName(Ljava/lang/CharSequence;)V
  
35 ····.line·6435 ····.line·66
36 ····invoke-virtual·{v1,·p0},·Landroid/view/accessibility/AccessibilityEvent;->setSource(Landroid/view/View;)V36 ····invoke-virtual·{v1,·p0},·Landroid/view/accessibility/AccessibilityEvent;->setSource(Landroid/view/View;)V
  
37 ····if-eqz·p1,·:cond_137 ····if-eqz·p1,·:cond_1
  
38 ····const·p0,·0x800038 ····const·p0,·0x8000
  
39 ····goto·:goto_039 ····goto·:goto_0
  
40 ····:cond_140 ····:cond_1
41 ····const/high16·p0,·0x1000041 ····const/high16·p0,·0x10000
  
42 ····.line·6542 ····.line·67
43 ····:goto_043 ····:goto_0
44 ····invoke-virtual·{v1,·p0},·Landroid/view/accessibility/AccessibilityEvent;->setEventType(I)V44 ····invoke-virtual·{v1,·p0},·Landroid/view/accessibility/AccessibilityEvent;->setEventType(I)V
  
45 ····.line·6845 ····.line·70
46 ····invoke-virtual·{v0,·v1},·Landroid/view/accessibility/AccessibilityManager;->sendAccessibilityEvent(Landroid/view/accessibility/AccessibilityEvent;)V46 ····invoke-virtual·{v0,·v1},·Landroid/view/accessibility/AccessibilityManager;->sendAccessibilityEvent(Landroid/view/accessibility/AccessibilityEvent;)V
  
47 ····const/4·p0,·0x147 ····const/4·p0,·0x1
  
48 ····return·p048 ····return·p0
  
49 ····:cond_249 ····:cond_2
Offset 84, 131 lines modifiedOffset 84, 86 lines modified
  
84 ····return·p084 ····return·p0
85 .end·method85 .end·method
  
86 .method·public·static·isDirectManipulation(Landroid/view/accessibility/AccessibilityEvent;)Z86 .method·public·static·isDirectManipulation(Landroid/view/accessibility/AccessibilityEvent;)Z
87 ····.locals·187 ····.locals·1
  
88 ····.line·7488 ····.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·p090 ····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;)Z92 ····invoke-static·{v0,·p0},·Landroid/text/TextUtils;->equals(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Z
  
93 ····move-result·p093 ····move-result·p0
  
94 ····return·p094 ····return·p0
95 .end·method95 .end·method
  
96 .method·public·static·setSupportsDirectManipulation(Landroid/view/View;Z)V96 .method·public·static·setSupportsDirectManipulation(Landroid/view/View;Z)V
97 ····.locals·697 ····.locals·0
 98 ····.annotation·runtime·Ljava/lang/Deprecated;
98 ····.annotation·build·Landroid/annotation/TargetApi; 
99 ········value·=·0x1e 
100 ····.end·annotation99 ····.end·annotation
  
101 ····.line·96100 ····.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·v0104 .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_0109 ····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_0111 ····goto·:goto_0
  
116 ····:cond_0112 ····:cond_0
117 ····const/4·p1,·0x0113 ····const/4·p1,·0x0
  
 114 ····.line·103
118 ····:goto_0115 ····: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-void117 ····return-void
 118 .end·method
  
126 ····:catch_0 
127 ····move-exception·p0119 .method·public·static·supportDirectManipulation(Landroid/view/accessibility/AccessibilityNodeInfo;)Z
 120 ····.locals·0
 121 ····.annotation·runtime·Ljava/lang/Deprecated;
 122 ····.end·annotation
  
128 ····.line·101123 ····.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;)V125 ····move-result·p0
  
131 ····throw·p1126 ····return·p0
132 .end·method127 .end·method
  
133 .method·public·static·supportDirectManipulation(Landroid/view/accessibility/AccessibilityNodeInfo;)Z128 .method·public·static·supportRotateDirectly(Landroid/view/accessibility/AccessibilityNodeInfo;)Z
134 ····.locals·4129 ····.locals·1
135 ····.annotation·build·Landroid/annotation/TargetApi;130 ····.annotation·build·Landroid/annotation/TargetApi;
136 ········value·=·0x1e131 ········value·=·0x1e
137 ····.end·annotation132 ····.end·annotation
  
138 ····.line·82133 ····.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·p0135 ····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;)Z137 ····invoke-static·{v0,·p0},·Landroid/text/TextUtils;->equals(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Z
  
155 ····move-result·p0138 ····move-result·p0
156 ····:try_end_0 
157 ····.catch·Ljava/lang/ReflectiveOperationException;·{:try_start_0·..·:try_end_0}·:catch_0 
  
158 ····return·p0139 ····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·method140 .end·method