| | | |
Offset 35, 103 lines modified | Offset 35, 158 lines modified |
35 | .method·static·constructor·<clinit>()V | 35 | .method·static·constructor·<clinit>()V |
36 | ····.locals·0 | 36 | ····.locals·0 |
| |
37 | ····return-void | 37 | ····return-void |
38 | .end·method | 38 | .end·method |
| |
39 | .method·private·constructor·<init>(Landroid/content/Context;)V | 39 | .method·private·constructor·<init>(Landroid/content/Context;)V |
40 | ····.locals·4 | 40 | ····.locals·5 |
| |
41 | ····.line·62 | 41 | ····.line·55 |
42 | ····invoke-direct·{p0},·Ljava/lang/Object;-><init>()V | 42 | ····invoke-direct·{p0},·Ljava/lang/Object;-><init>()V |
| |
43 | ····.line·56 | 43 | ····.line·49 |
44 | ····invoke-static·{},·Lcom/android/car/ui/utils/CarUxRestrictionsUtil;->getDefaultRestrictions()Landroid/car/drivingstate/CarUxRestrictions; | 44 | ····invoke-static·{},·Lcom/android/car/ui/utils/CarUxRestrictionsUtil;->getDefaultRestrictions()Landroid/car/drivingstate/CarUxRestrictions; |
| |
45 | ····move-result-object·v0 | 45 | ····move-result-object·v0 |
| |
46 | ····iput-object·v0,·p0,·Lcom/android/car/ui/utils/CarUxRestrictionsUtil;->mCarUxRestrictions:Landroid/car/drivingstate/CarUxRestrictions; | 46 | ····iput-object·v0,·p0,·Lcom/android/car/ui/utils/CarUxRestrictionsUtil;->mCarUxRestrictions:Landroid/car/drivingstate/CarUxRestrictions; |
| |
47 | ····.line·58 | 47 | ····.line·51 |
48 | ····new-instance·v0,·Ljava/util/WeakHashMap; | 48 | ····new-instance·v0,·Ljava/util/WeakHashMap; |
| |
49 | ····invoke-direct·{v0},·Ljava/util/WeakHashMap;-><init>()V | 49 | ····invoke-direct·{v0},·Ljava/util/WeakHashMap;-><init>()V |
| |
50 | ····.line·59 | 50 | ····.line·52 |
51 | ····invoke-static·{v0},·Ljava/util/Collections;->newSetFromMap(Ljava/util/Map;)Ljava/util/Set; | 51 | ····invoke-static·{v0},·Ljava/util/Collections;->newSetFromMap(Ljava/util/Map;)Ljava/util/Set; |
| |
52 | ····move-result-object·v0 | 52 | ····move-result-object·v0 |
| |
53 | ····iput-object·v0,·p0,·Lcom/android/car/ui/utils/CarUxRestrictionsUtil;->mObservers:Ljava/util/Set; | 53 | ····iput-object·v0,·p0,·Lcom/android/car/ui/utils/CarUxRestrictionsUtil;->mObservers:Ljava/util/Set; |
| |
54 | ····.line·63 | 54 | ····.line·56 |
55 | ····new-instance·v0,·Lcom/android/car/ui/utils/-$$Lambda$CarUxRestrictionsUtil$b4kksuDJ2ImLxn6J1BQQlgUD4Tk; | 55 | ····new-instance·v0,·Lcom/android/car/ui/utils/-$$Lambda$CarUxRestrictionsUtil$b4kksuDJ2ImLxn6J1BQQlgUD4Tk; |
| |
56 | ····invoke-direct·{v0,·p0},·Lcom/android/car/ui/utils/-$$Lambda$CarUxRestrictionsUtil$b4kksuDJ2ImLxn6J1BQQlgUD4Tk;-><init>(Lcom/android/car/ui/utils/CarUxRestrictionsUtil;)V | 56 | ····invoke-direct·{v0,·p0},·Lcom/android/car/ui/utils/-$$Lambda$CarUxRestrictionsUtil$b4kksuDJ2ImLxn6J1BQQlgUD4Tk;-><init>(Lcom/android/car/ui/utils/CarUxRestrictionsUtil;)V |
| |
57 | ····.line·77 | 57 | ····.line·69 |
| 58 | ····sget·v1,·Landroid/os/Build$VERSION;->SDK_INT:I |
| |
| 59 | ····const/16·v2,·0x1e |
| |
| 60 | ····if-lt·v1,·v2,·:cond_0 |
| |
| 61 | ····.line·70 |
58 | ····invoke-virtual·{p1},·Landroid/content/Context;->getApplicationContext()Landroid/content/Context; | 62 | ····invoke-virtual·{p1},·Landroid/content/Context;->getApplicationContext()Landroid/content/Context; |
| |
59 | ····move-result-object·p1 | 63 | ····move-result-object·p1 |
| |
60 | ····new-instance·v1,·Lcom/android/car/ui/utils/-$$Lambda$CarUxRestrictionsUtil$AHf3Me05OJaXy6rDPxJ14T3Ju3k; | 64 | ····const/4·v1,·0x0 |
| |
| 65 | ····const-wide/16·v2,·0x0 |
| |
61 | ····invoke-direct·{v1,·v0},·Lcom/android/car/ui/utils/-$$Lambda$CarUxRestrictionsUtil$AHf3Me05OJaXy6rDPxJ14T3Ju3k;-><init>(Landroid/car/drivingstate/CarUxRestrictionsManager$OnUxRestrictionsChangedListener;)V | 66 | ····new-instance·v4,·Lcom/android/car/ui/utils/-$$Lambda$CarUxRestrictionsUtil$AHf3Me05OJaXy6rDPxJ14T3Ju3k; |
| |
62 | ····const/4·v0,·0x0 | 67 | ····invoke-direct·{v4,·v0},·Lcom/android/car/ui/utils/-$$Lambda$CarUxRestrictionsUtil$AHf3Me05OJaXy6rDPxJ14T3Ju3k;-><init>(Landroid/car/drivingstate/CarUxRestrictionsManager$OnUxRestrictionsChangedListener;)V |
| |
63 | ····const-wide/16·v2,·0x0 | 68 | ····invoke-static·{p1,·v1,·v2,·v3,·v4},·Landroid/car/Car;->createCar(Landroid/content/Context;Landroid/os/Handler;JLandroid/car/Car$CarServiceLifecycleListener;)Landroid/car/Car; |
| |
| 69 | ····goto·:goto_0 |
| |
| 70 | ····.line·85 |
| 71 | ····:cond_0 |
| 72 | ····invoke-virtual·{p1},·Landroid/content/Context;->getApplicationContext()Landroid/content/Context; |
| |
| 73 | ····move-result-object·p1 |
| |
| 74 | ····invoke-static·{p1},·Landroid/car/Car;->createCar(Landroid/content/Context;)Landroid/car/Car; |
| |
| 75 | ····move-result-object·p1 |
| |
| 76 | ····:try_start_0 |
| 77 | ····const-string·v1,·"uxrestriction" |
| |
64 | ····invoke-static·{p1,·v0,·v2,·v3,·v1},·Landroid/car/Car;->createCar(Landroid/content/Context;Landroid/os/Handler;JLandroid/car/Car$CarServiceLifecycleListener;)Landroid/car/Car; | 78 | ····.line·89 |
| 79 | ····invoke-virtual·{p1,·v1},·Landroid/car/Car;->getCarManager(Ljava/lang/String;)Ljava/lang/Object; |
| |
| 80 | ····move-result-object·p1 |
| |
| 81 | ····check-cast·p1,·Landroid/car/drivingstate/CarUxRestrictionsManager; |
| |
| 82 | ····.line·91 |
| 83 | ····invoke-virtual·{p1,·v0},·Landroid/car/drivingstate/CarUxRestrictionsManager;->registerListener(Landroid/car/drivingstate/CarUxRestrictionsManager$OnUxRestrictionsChangedListener;)V |
| |
| 84 | ····.line·93 |
| 85 | ····invoke-virtual·{p1},·Landroid/car/drivingstate/CarUxRestrictionsManager;->getCurrentCarUxRestrictions()Landroid/car/drivingstate/CarUxRestrictions; |
| |
| 86 | ····move-result-object·p1 |
| |
| 87 | ····.line·92 |
| 88 | ····invoke-interface·{v0,·p1},·Landroid/car/drivingstate/CarUxRestrictionsManager$OnUxRestrictionsChangedListener;->onUxRestrictionsChanged(Landroid/car/drivingstate/CarUxRestrictions;)V |
| 89 | ····:try_end_0 |
| 90 | ····.catch·Ljava/lang/NullPointerException;·{:try_start_0·..·:try_end_0}·:catch_0 |
| |
| 91 | ····goto·:goto_0 |
| |
| 92 | ····:catch_0 |
| 93 | ····move-exception·p1 |
| |
| 94 | ····const-string·v0,·"CarUxRestrictionsUtil" |
| |
| 95 | ····const-string·v1,·"Car·not·connected" |
| |
| 96 | ····.line·95 |
| 97 | ····invoke-static·{v0,·v1,·p1},·Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I |
| |
| 98 | ····:goto_0 |
65 | ····return-void | 99 | ····return-void |
66 | .end·method | 100 | .end·method |
| |
67 | .method·public·static·complyString(Landroid/content/Context;Ljava/lang/String;Landroid/car/drivingstate/CarUxRestrictions;)Ljava/lang/String; | 101 | .method·public·static·complyString(Landroid/content/Context;Ljava/lang/String;Landroid/car/drivingstate/CarUxRestrictions;)Ljava/lang/String; |
68 | ····.locals·2 | 102 | ····.locals·2 |
| |
69 | ····const/4·v0,·0x4 | 103 | ····const/4·v0,·0x4 |
| |
70 | ····.line·166 | 104 | ····.line·159 |
71 | ····invoke-static·{v0,·p2},·Lcom/android/car/ui/utils/CarUxRestrictionsUtil;->isRestricted(ILandroid/car/drivingstate/CarUxRestrictions;)Z | 105 | ····invoke-static·{v0,·p2},·Lcom/android/car/ui/utils/CarUxRestrictionsUtil;->isRestricted(ILandroid/car/drivingstate/CarUxRestrictions;)Z |
| |
72 | ····move-result·v0 | 106 | ····move-result·v0 |
| |
73 | ····if-eqz·v0,·:cond_1 | 107 | ····if-eqz·v0,·:cond_1 |
| |
74 | ····if-nez·p2,·:cond_0 | 108 | ····if-nez·p2,·:cond_0 |
| |
75 | ····.line·169 | 109 | ····.line·162 |
76 | ····invoke-virtual·{p0},·Landroid/content/Context;->getResources()Landroid/content/res/Resources; | 110 | ····invoke-virtual·{p0},·Landroid/content/Context;->getResources()Landroid/content/res/Resources; |
| |
77 | ····move-result-object·p2 | 111 | ····move-result-object·p2 |
| |
78 | ····sget·v0,·Lcom/android/car/ui/R$integer;->car_ui_default_max_string_length:I | 112 | ····sget·v0,·Lcom/android/car/ui/R$integer;->car_ui_default_max_string_length:I |
| |
79 | ····invoke-virtual·{p2,·v0},·Landroid/content/res/Resources;->getInteger(I)I | 113 | ····invoke-virtual·{p2,·v0},·Landroid/content/res/Resources;->getInteger(I)I |
| |
80 | ····move-result·p2 | 114 | ····move-result·p2 |
| |
81 | ····goto·:goto_0 | 115 | ····goto·:goto_0 |
| |
82 | ····.line·171 | 116 | ····.line·164 |
83 | ····:cond_0 | 117 | ····:cond_0 |
84 | ····invoke-virtual·{p2},·Landroid/car/drivingstate/CarUxRestrictions;->getMaxRestrictedStringLength()I | 118 | ····invoke-virtual·{p2},·Landroid/car/drivingstate/CarUxRestrictions;->getMaxRestrictedStringLength()I |
| |
85 | ····move-result·p2 | 119 | ····move-result·p2 |
| |
86 | ····.line·173 | 120 | ····.line·166 |
87 | ····:goto_0 | 121 | ····:goto_0 |
88 | ····invoke-virtual·{p1},·Ljava/lang/String;->length()I | 122 | ····invoke-virtual·{p1},·Ljava/lang/String;->length()I |
| |
89 | ····move-result·v0 | 123 | ····move-result·v0 |
| |
90 | ····if-le·v0,·p2,·:cond_1 | 124 | ····if-le·v0,·p2,·:cond_1 |
| |
91 | ····.line·174 | 125 | ····.line·167 |
92 | ····new-instance·v0,·Ljava/lang/StringBuilder; | 126 | ····new-instance·v0,·Ljava/lang/StringBuilder; |
| |
93 | ····invoke-direct·{v0},·Ljava/lang/StringBuilder;-><init>()V | 127 | ····invoke-direct·{v0},·Ljava/lang/StringBuilder;-><init>()V |
| |
94 | ····const/4·v1,·0x0 | 128 | ····const/4·v1,·0x0 |
| |
95 | ····invoke-virtual·{p1,·v1,·p2},·Ljava/lang/String;->substring(II)Ljava/lang/String; | 129 | ····invoke-virtual·{p1,·v1,·p2},·Ljava/lang/String;->substring(II)Ljava/lang/String; |
Offset 157, 61 lines modified | Offset 212, 61 lines modified |
157 | ····:cond_1 | 212 | ····:cond_1 |
158 | ····return-object·p1 | 213 | ····return-object·p1 |
159 | .end·method | 214 | .end·method |
| |
160 | .method·private·static·getDefaultRestrictions()Landroid/car/drivingstate/CarUxRestrictions; | 215 | .method·private·static·getDefaultRestrictions()Landroid/car/drivingstate/CarUxRestrictions; |
161 | ····.locals·5 | 216 | ····.locals·5 |
| |
162 | ····.line·110 | 217 | ····.line·103 |
163 | ····new-instance·v0,·Landroid/car/drivingstate/CarUxRestrictions$Builder; | 218 | ····new-instance·v0,·Landroid/car/drivingstate/CarUxRestrictions$Builder; |
| |
164 | ····const/4·v1,·0x1 | 219 | ····const/4·v1,·0x1 |
| |
165 | ····const/16·v2,·0x1ff | 220 | ····const/16·v2,·0x1ff |
| |
166 | ····const-wide/16·v3,·0x0 | 221 | ····const-wide/16·v3,·0x0 |
| |
167 | ····invoke-direct·{v0,·v1,·v2,·v3,·v4},·Landroid/car/drivingstate/CarUxRestrictions$Builder;-><init>(ZIJ)V | 222 | ····invoke-direct·{v0,·v1,·v2,·v3,·v4},·Landroid/car/drivingstate/CarUxRestrictions$Builder;-><init>(ZIJ)V |
| |
168 | ····.line·112 | 223 | ····.line·105 |
169 | ····invoke-virtual·{v0},·Landroid/car/drivingstate/CarUxRestrictions$Builder;->build()Landroid/car/drivingstate/CarUxRestrictions; | 224 | ····invoke-virtual·{v0},·Landroid/car/drivingstate/CarUxRestrictions$Builder;->build()Landroid/car/drivingstate/CarUxRestrictions; |
| |
170 | ····move-result-object·v0 | 225 | ····move-result-object·v0 |
| |
171 | ····return-object·v0 | 226 | ····return-object·v0 |
172 | .end·method | 227 | .end·method |
| |
173 | .method·public·static·getInstance(Landroid/content/Context;)Lcom/android/car/ui/utils/CarUxRestrictionsUtil; | 228 | .method·public·static·getInstance(Landroid/content/Context;)Lcom/android/car/ui/utils/CarUxRestrictionsUtil; |
174 | ····.locals·1 | 229 | ····.locals·1 |
| |
175 | ····.line·124 | 230 | ····.line·117 |
176 | ····sget-object·v0,·Lcom/android/car/ui/utils/CarUxRestrictionsUtil;->sInstance:Lcom/android/car/ui/utils/CarUxRestrictionsUtil; | 231 | ····sget-object·v0,·Lcom/android/car/ui/utils/CarUxRestrictionsUtil;->sInstance:Lcom/android/car/ui/utils/CarUxRestrictionsUtil; |
| |
177 | ····if-nez·v0,·:cond_0 | 232 | ····if-nez·v0,·:cond_0 |
| |
178 | ····.line·125 | 233 | ····.line·118 |
179 | ····new-instance·v0,·Lcom/android/car/ui/utils/CarUxRestrictionsUtil; | 234 | ····new-instance·v0,·Lcom/android/car/ui/utils/CarUxRestrictionsUtil; |
| |
180 | ····invoke-direct·{v0,·p0},·Lcom/android/car/ui/utils/CarUxRestrictionsUtil;-><init>(Landroid/content/Context;)V | 235 | ····invoke-direct·{v0,·p0},·Lcom/android/car/ui/utils/CarUxRestrictionsUtil;-><init>(Landroid/content/Context;)V |
| |
181 | ····sput-object·v0,·Lcom/android/car/ui/utils/CarUxRestrictionsUtil;->sInstance:Lcom/android/car/ui/utils/CarUxRestrictionsUtil; | 236 | ····sput-object·v0,·Lcom/android/car/ui/utils/CarUxRestrictionsUtil;->sInstance:Lcom/android/car/ui/utils/CarUxRestrictionsUtil; |
| |
182 | ····.line·128 | 237 | ····.line·121 |
183 | ····:cond_0 | 238 | ····:cond_0 |
184 | ····sget-object·p0,·Lcom/android/car/ui/utils/CarUxRestrictionsUtil;->sInstance:Lcom/android/car/ui/utils/CarUxRestrictionsUtil; | 239 | ····sget-object·p0,·Lcom/android/car/ui/utils/CarUxRestrictionsUtil;->sInstance:Lcom/android/car/ui/utils/CarUxRestrictionsUtil; |
| |
185 | ····return-object·p0 | 240 | ····return-object·p0 |
186 | .end·method | 241 | .end·method |
| |
187 | .method·public·static·isRestricted(ILandroid/car/drivingstate/CarUxRestrictions;)Z | 242 | .method·public·static·isRestricted(ILandroid/car/drivingstate/CarUxRestrictions;)Z |
188 | ····.locals·0 | 243 | ····.locals·0 |
| |
189 | ····if-eqz·p1,·:cond_1 | 244 | ····if-eqz·p1,·:cond_1 |
| |
190 | ····.line·157 | 245 | ····.line·150 |
191 | ····invoke-virtual·{p1},·Landroid/car/drivingstate/CarUxRestrictions;->getActiveRestrictions()I | 246 | ····invoke-virtual·{p1},·Landroid/car/drivingstate/CarUxRestrictions;->getActiveRestrictions()I |
| |
192 | ····move-result·p1 | 247 | ····move-result·p1 |
| |
193 | ····and-int/2addr·p0,·p1 | 248 | ····and-int/2addr·p0,·p1 |
| |
194 | ····if-eqz·p0,·:cond_0 | 249 | ····if-eqz·p0,·:cond_0 |
Offset 232, 28 lines modified | Offset 287, 28 lines modified |
232 | .end·method | 287 | .end·method |
| |
233 | .method·private·synthetic·lambda$new$0(Landroid/car/drivingstate/CarUxRestrictions;)V | 288 | .method·private·synthetic·lambda$new$0(Landroid/car/drivingstate/CarUxRestrictions;)V |
234 | ····.locals·2 | 289 | ····.locals·2 |
| |
235 | ····if-nez·p1,·:cond_0 | 290 | ····if-nez·p1,·:cond_0 |
| |
236 | ····.line·66 | 291 | ····.line·59 |
237 | ····invoke-static·{},·Lcom/android/car/ui/utils/CarUxRestrictionsUtil;->getDefaultRestrictions()Landroid/car/drivingstate/CarUxRestrictions; | 292 | ····invoke-static·{},·Lcom/android/car/ui/utils/CarUxRestrictionsUtil;->getDefaultRestrictions()Landroid/car/drivingstate/CarUxRestrictions; |
| |
238 | ····move-result-object·p1 | 293 | ····move-result-object·p1 |
| |
239 | ····iput-object·p1,·p0,·Lcom/android/car/ui/utils/CarUxRestrictionsUtil;->mCarUxRestrictions:Landroid/car/drivingstate/CarUxRestrictions; | 294 | ····iput-object·p1,·p0,·Lcom/android/car/ui/utils/CarUxRestrictionsUtil;->mCarUxRestrictions:Landroid/car/drivingstate/CarUxRestrictions; |
| |
240 | ····goto·:goto_0 | 295 | ····goto·:goto_0 |
| |
241 | ····.line·68 | 296 | ····.line·61 |
242 | ····:cond_0 | 297 | ····:cond_0 |
243 | ····iput-object·p1,·p0,·Lcom/android/car/ui/utils/CarUxRestrictionsUtil;->mCarUxRestrictions:Landroid/car/drivingstate/CarUxRestrictions; | 298 | ····iput-object·p1,·p0,·Lcom/android/car/ui/utils/CarUxRestrictionsUtil;->mCarUxRestrictions:Landroid/car/drivingstate/CarUxRestrictions; |
| |
244 | ····.line·71 | 299 | ····.line·64 |
245 | ····:goto_0 | 300 | ····:goto_0 |
246 | ····iget-object·p1,·p0,·Lcom/android/car/ui/utils/CarUxRestrictionsUtil;->mObservers:Ljava/util/Set; | 301 | ····iget-object·p1,·p0,·Lcom/android/car/ui/utils/CarUxRestrictionsUtil;->mObservers:Ljava/util/Set; |
| |
247 | ····invoke-interface·{p1},·Ljava/util/Set;->iterator()Ljava/util/Iterator; | 302 | ····invoke-interface·{p1},·Ljava/util/Set;->iterator()Ljava/util/Iterator; |
| |
248 | ····move-result-object·p1 | 303 | ····move-result-object·p1 |
| |
Offset 266, 15 lines modified | Offset 321, 15 lines modified |
| |
266 | ····invoke-interface·{p1},·Ljava/util/Iterator;->next()Ljava/lang/Object; | 321 | ····invoke-interface·{p1},·Ljava/util/Iterator;->next()Ljava/lang/Object; |
| |
267 | ····move-result-object·v0 | 322 | ····move-result-object·v0 |
| |
268 | ····check-cast·v0,·Lcom/android/car/ui/utils/CarUxRestrictionsUtil$OnUxRestrictionsChangedListener; | 323 | ····check-cast·v0,·Lcom/android/car/ui/utils/CarUxRestrictionsUtil$OnUxRestrictionsChangedListener; |
| |
269 | ····.line·72 | 324 | ····.line·65 |
270 | ····iget-object·v1,·p0,·Lcom/android/car/ui/utils/CarUxRestrictionsUtil;->mCarUxRestrictions:Landroid/car/drivingstate/CarUxRestrictions; | 325 | ····iget-object·v1,·p0,·Lcom/android/car/ui/utils/CarUxRestrictionsUtil;->mCarUxRestrictions:Landroid/car/drivingstate/CarUxRestrictions; |
| |
271 | ····invoke-interface·{v0,·v1},·Lcom/android/car/ui/utils/CarUxRestrictionsUtil$OnUxRestrictionsChangedListener;->onRestrictionsChanged(Landroid/car/drivingstate/CarUxRestrictions;)V | 326 | ····invoke-interface·{v0,·v1},·Lcom/android/car/ui/utils/CarUxRestrictionsUtil$OnUxRestrictionsChangedListener;->onRestrictionsChanged(Landroid/car/drivingstate/CarUxRestrictions;)V |
| |
272 | ····goto·:goto_1 | 327 | ····goto·:goto_1 |
| |
273 | ····:cond_1 | 328 | ····:cond_1 |
Offset 284, 57 lines modified | Offset 339, 57 lines modified |
284 | .method·static·synthetic·lambda$new$1(Landroid/car/drivingstate/CarUxRestrictionsManager$OnUxRestrictionsChangedListener;Landroid/car/Car;Z)V | 339 | .method·static·synthetic·lambda$new$1(Landroid/car/drivingstate/CarUxRestrictionsManager$OnUxRestrictionsChangedListener;Landroid/car/Car;Z)V |
285 | ····.locals·0 | 340 | ····.locals·0 |
| |
286 | ····if-eqz·p2,·:cond_0 | 341 | ····if-eqz·p2,·:cond_0 |
| |
287 | ····const-string·p2,·"uxrestriction" | 342 | ····const-string·p2,·"uxrestriction" |
| |
288 | ····.line·81 | 343 | ····.line·74 |
289 | ····invoke-virtual·{p1,·p2},·Landroid/car/Car;->getCarManager(Ljava/lang/String;)Ljava/lang/Object; | 344 | ····invoke-virtual·{p1,·p2},·Landroid/car/Car;->getCarManager(Ljava/lang/String;)Ljava/lang/Object; |
| |
290 | ····move-result-object·p1 | 345 | ····move-result-object·p1 |
| |
291 | ····check-cast·p1,·Landroid/car/drivingstate/CarUxRestrictionsManager; | 346 | ····check-cast·p1,·Landroid/car/drivingstate/CarUxRestrictionsManager; |
| |
292 | ····.line·83 | 347 | ····.line·76 |
293 | ····invoke-virtual·{p1,·p0},·Landroid/car/drivingstate/CarUxRestrictionsManager;->registerListener(Landroid/car/drivingstate/CarUxRestrictionsManager$OnUxRestrictionsChangedListener;)V | 348 | ····invoke-virtual·{p1,·p0},·Landroid/car/drivingstate/CarUxRestrictionsManager;->registerListener(Landroid/car/drivingstate/CarUxRestrictionsManager$OnUxRestrictionsChangedListener;)V |
| |
294 | ····.line·85 | 349 | ····.line·78 |
295 | ····invoke-virtual·{p1},·Landroid/car/drivingstate/CarUxRestrictionsManager;->getCurrentCarUxRestrictions()Landroid/car/drivingstate/CarUxRestrictions; | 350 | ····invoke-virtual·{p1},·Landroid/car/drivingstate/CarUxRestrictionsManager;->getCurrentCarUxRestrictions()Landroid/car/drivingstate/CarUxRestrictions; |
| |
296 | ····move-result-object·p1 | 351 | ····move-result-object·p1 |
| |
297 | ····.line·84 | 352 | ····.line·77 |
298 | ····invoke-interface·{p0,·p1},·Landroid/car/drivingstate/CarUxRestrictionsManager$OnUxRestrictionsChangedListener;->onUxRestrictionsChanged(Landroid/car/drivingstate/CarUxRestrictions;)V | 353 | ····invoke-interface·{p0,·p1},·Landroid/car/drivingstate/CarUxRestrictionsManager$OnUxRestrictionsChangedListener;->onUxRestrictionsChanged(Landroid/car/drivingstate/CarUxRestrictions;)V |
| |
299 | ····goto·:goto_0 | 354 | ····goto·:goto_0 |
| |
300 | ····:cond_0 | 355 | ····:cond_0 |
301 | ····const-string·p1,·"CarUxRestrictionsUtil" | 356 | ····const-string·p1,·"CarUxRestrictionsUtil" |
| |
302 | ····const-string·p2,·"Car·service·disconnected,·assuming·fully·restricted·uxr" | 357 | ····const-string·p2,·"Car·service·disconnected,·assuming·fully·restricted·uxr" |
| |
303 | ····.line·87 | 358 | ····.line·80 |
304 | ····invoke-static·{p1,·p2},·Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;)I | 359 | ····invoke-static·{p1,·p2},·Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;)I |
| |
305 | ····const/4·p1,·0x0 | 360 | ····const/4·p1,·0x0 |
| |
306 | ····.line·88 | 361 | ····.line·81 |
307 | ····invoke-interface·{p0,·p1},·Landroid/car/drivingstate/CarUxRestrictionsManager$OnUxRestrictionsChangedListener;->onUxRestrictionsChanged(Landroid/car/drivingstate/CarUxRestrictions;)V | 362 | ····invoke-interface·{p0,·p1},·Landroid/car/drivingstate/CarUxRestrictionsManager$OnUxRestrictionsChangedListener;->onUxRestrictionsChanged(Landroid/car/drivingstate/CarUxRestrictions;)V |
| |
308 | ····:goto_0 | 363 | ····:goto_0 |
309 | ····return-void | 364 | ····return-void |
310 | .end·method | 365 | .end·method |
| |
| |
311 | #·virtual·methods | 366 | #·virtual·methods |
312 | .method·public·getCurrentRestrictions()Landroid/car/drivingstate/CarUxRestrictions; | 367 | .method·public·getCurrentRestrictions()Landroid/car/drivingstate/CarUxRestrictions; |
313 | ····.locals·1 | 368 | ····.locals·1 |
| |
314 | ····.line·148 | 369 | ····.line·141 |
315 | ····iget-object·v0,·p0,·Lcom/android/car/ui/utils/CarUxRestrictionsUtil;->mCarUxRestrictions:Landroid/car/drivingstate/CarUxRestrictions; | 370 | ····iget-object·v0,·p0,·Lcom/android/car/ui/utils/CarUxRestrictionsUtil;->mCarUxRestrictions:Landroid/car/drivingstate/CarUxRestrictions; |
| |
316 | ····return-object·v0 | 371 | ····return-object·v0 |
317 | .end·method | 372 | .end·method |
| |
318 | .method·public·synthetic·lambda$new$0$CarUxRestrictionsUtil(Landroid/car/drivingstate/CarUxRestrictions;)V | 373 | .method·public·synthetic·lambda$new$0$CarUxRestrictionsUtil(Landroid/car/drivingstate/CarUxRestrictions;)V |
319 | ····.locals·0 | 374 | ····.locals·0 |
Offset 343, 39 lines modified | Offset 398, 39 lines modified |
| |
343 | ····return-void | 398 | ····return-void |
344 | .end·method | 399 | .end·method |
| |
345 | .method·public·register(Lcom/android/car/ui/utils/CarUxRestrictionsUtil$OnUxRestrictionsChangedListener;)V | 400 | .method·public·register(Lcom/android/car/ui/utils/CarUxRestrictionsUtil$OnUxRestrictionsChangedListener;)V |
346 | ····.locals·1 | 401 | ····.locals·1 |
| |
347 | ····.line·137 | 402 | ····.line·130 |
348 | ····iget-object·v0,·p0,·Lcom/android/car/ui/utils/CarUxRestrictionsUtil;->mObservers:Ljava/util/Set; | 403 | ····iget-object·v0,·p0,·Lcom/android/car/ui/utils/CarUxRestrictionsUtil;->mObservers:Ljava/util/Set; |
| |
349 | ····invoke-interface·{v0,·p1},·Ljava/util/Set;->add(Ljava/lang/Object;)Z | 404 | ····invoke-interface·{v0,·p1},·Ljava/util/Set;->add(Ljava/lang/Object;)Z |
| |
350 | ····.line·138 | 405 | ····.line·131 |
351 | ····iget-object·v0,·p0,·Lcom/android/car/ui/utils/CarUxRestrictionsUtil;->mCarUxRestrictions:Landroid/car/drivingstate/CarUxRestrictions; | 406 | ····iget-object·v0,·p0,·Lcom/android/car/ui/utils/CarUxRestrictionsUtil;->mCarUxRestrictions:Landroid/car/drivingstate/CarUxRestrictions; |
| |
352 | ····invoke-interface·{p1,·v0},·Lcom/android/car/ui/utils/CarUxRestrictionsUtil$OnUxRestrictionsChangedListener;->onRestrictionsChanged(Landroid/car/drivingstate/CarUxRestrictions;)V | 407 | ····invoke-interface·{p1,·v0},·Lcom/android/car/ui/utils/CarUxRestrictionsUtil$OnUxRestrictionsChangedListener;->onRestrictionsChanged(Landroid/car/drivingstate/CarUxRestrictions;)V |
| |
353 | ····return-void | 408 | ····return-void |
354 | .end·method | 409 | .end·method |
| |
355 | .method·public·setUxRestrictions(Landroid/car/drivingstate/CarUxRestrictions;)V | 410 | .method·public·setUxRestrictions(Landroid/car/drivingstate/CarUxRestrictions;)V |
356 | ····.locals·0 | 411 | ····.locals·0 |
| |
357 | ····.line·184 | 412 | ····.line·177 |
358 | ····iput-object·p1,·p0,·Lcom/android/car/ui/utils/CarUxRestrictionsUtil;->mCarUxRestrictions:Landroid/car/drivingstate/CarUxRestrictions; | 413 | ····iput-object·p1,·p0,·Lcom/android/car/ui/utils/CarUxRestrictionsUtil;->mCarUxRestrictions:Landroid/car/drivingstate/CarUxRestrictions; |
| |
359 | ····return-void | 414 | ····return-void |
360 | .end·method | 415 | .end·method |
| |
361 | .method·public·unregister(Lcom/android/car/ui/utils/CarUxRestrictionsUtil$OnUxRestrictionsChangedListener;)V | 416 | .method·public·unregister(Lcom/android/car/ui/utils/CarUxRestrictionsUtil$OnUxRestrictionsChangedListener;)V |
362 | ····.locals·1 | 417 | ····.locals·1 |
| |
363 | ····.line·143 | 418 | ····.line·136 |
364 | ····iget-object·v0,·p0,·Lcom/android/car/ui/utils/CarUxRestrictionsUtil;->mObservers:Ljava/util/Set; | 419 | ····iget-object·v0,·p0,·Lcom/android/car/ui/utils/CarUxRestrictionsUtil;->mObservers:Ljava/util/Set; |
| |
365 | ····invoke-interface·{v0,·p1},·Ljava/util/Set;->remove(Ljava/lang/Object;)Z | 420 | ····invoke-interface·{v0,·p1},·Ljava/util/Set;->remove(Ljava/lang/Object;)Z |
| |
366 | ····return-void | 421 | ····return-void |
367 | .end·method | 422 | .end·method |