Offset 35, 103 lines modifiedOffset 35, 158 lines modified
35 .method·static·constructor·<clinit>()V35 .method·static·constructor·<clinit>()V
36 ····.locals·036 ····.locals·0
  
37 ····return-void37 ····return-void
38 .end·method38 .end·method
  
39 .method·private·constructor·<init>(Landroid/content/Context;)V39 .method·private·constructor·<init>(Landroid/content/Context;)V
40 ····.locals·440 ····.locals·5
  
41 ····.line·6241 ····.line·55
42 ····invoke-direct·{p0},·Ljava/lang/Object;-><init>()V42 ····invoke-direct·{p0},·Ljava/lang/Object;-><init>()V
  
43 ····.line·5643 ····.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·v045 ····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·5847 ····.line·51
48 ····new-instance·v0,·Ljava/util/WeakHashMap;48 ····new-instance·v0,·Ljava/util/WeakHashMap;
  
49 ····invoke-direct·{v0},·Ljava/util/WeakHashMap;-><init>()V49 ····invoke-direct·{v0},·Ljava/util/WeakHashMap;-><init>()V
  
50 ····.line·5950 ····.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·v052 ····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·6354 ····.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;)V56 ····invoke-direct·{v0,·p0},·Lcom/android/car/ui/utils/-$$Lambda$CarUxRestrictionsUtil$b4kksuDJ2ImLxn6J1BQQlgUD4Tk;-><init>(Lcom/android/car/ui/utils/CarUxRestrictionsUtil;)V
  
 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
  
57 ····.line·7761 ····.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·p163 ····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;)V66 ····new-instance·v4,·Lcom/android/car/ui/utils/-$$Lambda$CarUxRestrictionsUtil$AHf3Me05OJaXy6rDPxJ14T3Ju3k;
  
62 ····const/4·v0,·0x067 ····invoke-direct·{v4,·v0},·Lcom/android/car/ui/utils/-$$Lambda$CarUxRestrictionsUtil$AHf3Me05OJaXy6rDPxJ14T3Ju3k;-><init>(Landroid/car/drivingstate/CarUxRestrictionsManager$OnUxRestrictionsChangedListener;)V
  
63 ····const-wide/16·v2,·0x068 ····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-void99 ····return-void
66 .end·method100 .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·2102 ····.locals·2
  
69 ····const/4·v0,·0x4103 ····const/4·v0,·0x4
  
70 ····.line·166104 ····.line·159
71 ····invoke-static·{v0,·p2},·Lcom/android/car/ui/utils/CarUxRestrictionsUtil;->isRestricted(ILandroid/car/drivingstate/CarUxRestrictions;)Z105 ····invoke-static·{v0,·p2},·Lcom/android/car/ui/utils/CarUxRestrictionsUtil;->isRestricted(ILandroid/car/drivingstate/CarUxRestrictions;)Z
  
72 ····move-result·v0106 ····move-result·v0
  
73 ····if-eqz·v0,·:cond_1107 ····if-eqz·v0,·:cond_1
  
74 ····if-nez·p2,·:cond_0108 ····if-nez·p2,·:cond_0
  
75 ····.line·169109 ····.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·p2111 ····move-result-object·p2
  
78 ····sget·v0,·Lcom/android/car/ui/R$integer;->car_ui_default_max_string_length:I112 ····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)I113 ····invoke-virtual·{p2,·v0},·Landroid/content/res/Resources;->getInteger(I)I
  
80 ····move-result·p2114 ····move-result·p2
  
81 ····goto·:goto_0115 ····goto·:goto_0
  
82 ····.line·171116 ····.line·164
83 ····:cond_0117 ····:cond_0
84 ····invoke-virtual·{p2},·Landroid/car/drivingstate/CarUxRestrictions;->getMaxRestrictedStringLength()I118 ····invoke-virtual·{p2},·Landroid/car/drivingstate/CarUxRestrictions;->getMaxRestrictedStringLength()I
  
85 ····move-result·p2119 ····move-result·p2
  
86 ····.line·173120 ····.line·166
87 ····:goto_0121 ····:goto_0
88 ····invoke-virtual·{p1},·Ljava/lang/String;->length()I122 ····invoke-virtual·{p1},·Ljava/lang/String;->length()I
  
89 ····move-result·v0123 ····move-result·v0
  
90 ····if-le·v0,·p2,·:cond_1124 ····if-le·v0,·p2,·:cond_1
  
91 ····.line·174125 ····.line·167
92 ····new-instance·v0,·Ljava/lang/StringBuilder;126 ····new-instance·v0,·Ljava/lang/StringBuilder;
  
93 ····invoke-direct·{v0},·Ljava/lang/StringBuilder;-><init>()V127 ····invoke-direct·{v0},·Ljava/lang/StringBuilder;-><init>()V
  
94 ····const/4·v1,·0x0128 ····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 modifiedOffset 212, 61 lines modified
157 ····:cond_1212 ····:cond_1
158 ····return-object·p1213 ····return-object·p1
159 .end·method214 .end·method
  
160 .method·private·static·getDefaultRestrictions()Landroid/car/drivingstate/CarUxRestrictions;215 .method·private·static·getDefaultRestrictions()Landroid/car/drivingstate/CarUxRestrictions;
161 ····.locals·5216 ····.locals·5
  
162 ····.line·110217 ····.line·103
163 ····new-instance·v0,·Landroid/car/drivingstate/CarUxRestrictions$Builder;218 ····new-instance·v0,·Landroid/car/drivingstate/CarUxRestrictions$Builder;
  
164 ····const/4·v1,·0x1219 ····const/4·v1,·0x1
  
165 ····const/16·v2,·0x1ff220 ····const/16·v2,·0x1ff
  
166 ····const-wide/16·v3,·0x0221 ····const-wide/16·v3,·0x0
  
167 ····invoke-direct·{v0,·v1,·v2,·v3,·v4},·Landroid/car/drivingstate/CarUxRestrictions$Builder;-><init>(ZIJ)V222 ····invoke-direct·{v0,·v1,·v2,·v3,·v4},·Landroid/car/drivingstate/CarUxRestrictions$Builder;-><init>(ZIJ)V
  
168 ····.line·112223 ····.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·v0225 ····move-result-object·v0
  
171 ····return-object·v0226 ····return-object·v0
172 .end·method227 .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·1229 ····.locals·1
  
175 ····.line·124230 ····.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_0232 ····if-nez·v0,·:cond_0
  
178 ····.line·125233 ····.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;)V235 ····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·128237 ····.line·121
183 ····:cond_0238 ····: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·p0240 ····return-object·p0
186 .end·method241 .end·method
  
187 .method·public·static·isRestricted(ILandroid/car/drivingstate/CarUxRestrictions;)Z242 .method·public·static·isRestricted(ILandroid/car/drivingstate/CarUxRestrictions;)Z
188 ····.locals·0243 ····.locals·0
  
189 ····if-eqz·p1,·:cond_1244 ····if-eqz·p1,·:cond_1
  
190 ····.line·157245 ····.line·150
191 ····invoke-virtual·{p1},·Landroid/car/drivingstate/CarUxRestrictions;->getActiveRestrictions()I246 ····invoke-virtual·{p1},·Landroid/car/drivingstate/CarUxRestrictions;->getActiveRestrictions()I
  
192 ····move-result·p1247 ····move-result·p1
  
193 ····and-int/2addr·p0,·p1248 ····and-int/2addr·p0,·p1
  
194 ····if-eqz·p0,·:cond_0249 ····if-eqz·p0,·:cond_0
Offset 232, 28 lines modifiedOffset 287, 28 lines modified
232 .end·method287 .end·method
  
233 .method·private·synthetic·lambda$new$0(Landroid/car/drivingstate/CarUxRestrictions;)V288 .method·private·synthetic·lambda$new$0(Landroid/car/drivingstate/CarUxRestrictions;)V
234 ····.locals·2289 ····.locals·2
  
235 ····if-nez·p1,·:cond_0290 ····if-nez·p1,·:cond_0
  
236 ····.line·66291 ····.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·p1293 ····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_0295 ····goto·:goto_0
  
241 ····.line·68296 ····.line·61
242 ····:cond_0297 ····: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·71299 ····.line·64
245 ····:goto_0300 ····: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·p1303 ····move-result-object·p1
  
Offset 266, 15 lines modifiedOffset 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·v0322 ····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·72324 ····.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;)V326 ····invoke-interface·{v0,·v1},·Lcom/android/car/ui/utils/CarUxRestrictionsUtil$OnUxRestrictionsChangedListener;->onRestrictionsChanged(Landroid/car/drivingstate/CarUxRestrictions;)V
  
272 ····goto·:goto_1327 ····goto·:goto_1
  
273 ····:cond_1328 ····:cond_1
Offset 284, 57 lines modifiedOffset 339, 57 lines modified
284 .method·static·synthetic·lambda$new$1(Landroid/car/drivingstate/CarUxRestrictionsManager$OnUxRestrictionsChangedListener;Landroid/car/Car;Z)V339 .method·static·synthetic·lambda$new$1(Landroid/car/drivingstate/CarUxRestrictionsManager$OnUxRestrictionsChangedListener;Landroid/car/Car;Z)V
285 ····.locals·0340 ····.locals·0
  
286 ····if-eqz·p2,·:cond_0341 ····if-eqz·p2,·:cond_0
  
287 ····const-string·p2,·"uxrestriction"342 ····const-string·p2,·"uxrestriction"
  
288 ····.line·81343 ····.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·p1345 ····move-result-object·p1
  
291 ····check-cast·p1,·Landroid/car/drivingstate/CarUxRestrictionsManager;346 ····check-cast·p1,·Landroid/car/drivingstate/CarUxRestrictionsManager;
  
292 ····.line·83347 ····.line·76
293 ····invoke-virtual·{p1,·p0},·Landroid/car/drivingstate/CarUxRestrictionsManager;->registerListener(Landroid/car/drivingstate/CarUxRestrictionsManager$OnUxRestrictionsChangedListener;)V348 ····invoke-virtual·{p1,·p0},·Landroid/car/drivingstate/CarUxRestrictionsManager;->registerListener(Landroid/car/drivingstate/CarUxRestrictionsManager$OnUxRestrictionsChangedListener;)V
  
294 ····.line·85349 ····.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·p1351 ····move-result-object·p1
  
297 ····.line·84352 ····.line·77
298 ····invoke-interface·{p0,·p1},·Landroid/car/drivingstate/CarUxRestrictionsManager$OnUxRestrictionsChangedListener;->onUxRestrictionsChanged(Landroid/car/drivingstate/CarUxRestrictions;)V353 ····invoke-interface·{p0,·p1},·Landroid/car/drivingstate/CarUxRestrictionsManager$OnUxRestrictionsChangedListener;->onUxRestrictionsChanged(Landroid/car/drivingstate/CarUxRestrictions;)V
  
299 ····goto·:goto_0354 ····goto·:goto_0
  
300 ····:cond_0355 ····: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·87358 ····.line·80
304 ····invoke-static·{p1,·p2},·Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;)I359 ····invoke-static·{p1,·p2},·Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;)I
  
305 ····const/4·p1,·0x0360 ····const/4·p1,·0x0
  
306 ····.line·88361 ····.line·81
307 ····invoke-interface·{p0,·p1},·Landroid/car/drivingstate/CarUxRestrictionsManager$OnUxRestrictionsChangedListener;->onUxRestrictionsChanged(Landroid/car/drivingstate/CarUxRestrictions;)V362 ····invoke-interface·{p0,·p1},·Landroid/car/drivingstate/CarUxRestrictionsManager$OnUxRestrictionsChangedListener;->onUxRestrictionsChanged(Landroid/car/drivingstate/CarUxRestrictions;)V
  
308 ····:goto_0363 ····:goto_0
309 ····return-void364 ····return-void
310 .end·method365 .end·method
  
  
311 #·virtual·methods366 #·virtual·methods
312 .method·public·getCurrentRestrictions()Landroid/car/drivingstate/CarUxRestrictions;367 .method·public·getCurrentRestrictions()Landroid/car/drivingstate/CarUxRestrictions;
313 ····.locals·1368 ····.locals·1
  
314 ····.line·148369 ····.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·v0371 ····return-object·v0
317 .end·method372 .end·method
  
318 .method·public·synthetic·lambda$new$0$CarUxRestrictionsUtil(Landroid/car/drivingstate/CarUxRestrictions;)V373 .method·public·synthetic·lambda$new$0$CarUxRestrictionsUtil(Landroid/car/drivingstate/CarUxRestrictions;)V
319 ····.locals·0374 ····.locals·0
Offset 343, 39 lines modifiedOffset 398, 39 lines modified
  
343 ····return-void398 ····return-void
344 .end·method399 .end·method
  
345 .method·public·register(Lcom/android/car/ui/utils/CarUxRestrictionsUtil$OnUxRestrictionsChangedListener;)V400 .method·public·register(Lcom/android/car/ui/utils/CarUxRestrictionsUtil$OnUxRestrictionsChangedListener;)V
346 ····.locals·1401 ····.locals·1
  
347 ····.line·137402 ····.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;)Z404 ····invoke-interface·{v0,·p1},·Ljava/util/Set;->add(Ljava/lang/Object;)Z
  
350 ····.line·138405 ····.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;)V407 ····invoke-interface·{p1,·v0},·Lcom/android/car/ui/utils/CarUxRestrictionsUtil$OnUxRestrictionsChangedListener;->onRestrictionsChanged(Landroid/car/drivingstate/CarUxRestrictions;)V
  
353 ····return-void408 ····return-void
354 .end·method409 .end·method
  
355 .method·public·setUxRestrictions(Landroid/car/drivingstate/CarUxRestrictions;)V410 .method·public·setUxRestrictions(Landroid/car/drivingstate/CarUxRestrictions;)V
356 ····.locals·0411 ····.locals·0
  
357 ····.line·184412 ····.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-void414 ····return-void
360 .end·method415 .end·method
  
361 .method·public·unregister(Lcom/android/car/ui/utils/CarUxRestrictionsUtil$OnUxRestrictionsChangedListener;)V416 .method·public·unregister(Lcom/android/car/ui/utils/CarUxRestrictionsUtil$OnUxRestrictionsChangedListener;)V
362 ····.locals·1417 ····.locals·1
  
363 ····.line·143418 ····.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;)Z420 ····invoke-interface·{v0,·p1},·Ljava/util/Set;->remove(Ljava/lang/Object;)Z
  
366 ····return-void421 ····return-void
367 .end·method422 .end·method