| | | |
Offset 1, 31 lines modified | Offset 1, 22 lines modified |
1 | .class·public·Lcom/android/permissioncontroller/permission/model/AppPermissionUsage$GroupUsage; | 1 | .class·public·Lcom/android/permissioncontroller/permission/model/AppPermissionUsage$GroupUsage; |
2 | .super·Ljava/lang/Object; | 2 | .super·Ljava/lang/Object; |
3 | .source·"AppPermissionUsage.java" | 3 | .source·"AppPermissionUsage.java" |
| |
4 | #·interfaces | |
5 | .implements·Lcom/android/permissioncontroller/permission/model/AppPermissionUsage$TimelineUsage; | |
| |
| |
6 | #·annotations | 4 | #·annotations |
7 | .annotation·system·Ldalvik/annotation/EnclosingClass; | 5 | .annotation·system·Ldalvik/annotation/EnclosingClass; |
8 | ····value·=·Lcom/android/permissioncontroller/permission/model/AppPermissionUsage; | 6 | ····value·=·Lcom/android/permissioncontroller/permission/model/AppPermissionUsage; |
9 | .end·annotation | 7 | .end·annotation |
| |
10 | .annotation·system·Ldalvik/annotation/InnerClass; | 8 | .annotation·system·Ldalvik/annotation/InnerClass; |
11 | ····accessFlags·=·0x9 | 9 | ····accessFlags·=·0x9 |
12 | ····name·=·"GroupUsage" | 10 | ····name·=·"GroupUsage" |
13 | .end·annotation | 11 | .end·annotation |
| |
14 | .annotation·system·Ldalvik/annotation/MemberClasses; | |
15 | ····value·=·{ | |
16 | ········Lcom/android/permissioncontroller/permission/model/AppPermissionUsage$GroupUsage$AttributionLabelledGroupUsage; | |
17 | ····} | |
18 | .end·annotation | |
| |
| |
19 | #·instance·fields | 12 | #·instance·fields |
20 | .field·private·final·mGroup:Lcom/android/permissioncontroller/permission/model/AppPermissionGroup; | 13 | .field·private·final·mGroup:Lcom/android/permissioncontroller/permission/model/AppPermissionGroup; |
| |
21 | .field·private·final·mHistoricalUsage:Landroid/app/AppOpsManager$HistoricalPackageOps; | 14 | .field·private·final·mHistoricalUsage:Landroid/app/AppOpsManager$HistoricalPackageOps; |
| |
22 | .field·private·final·mLastUsage:Landroid/app/AppOpsManager$PackageOps; | 15 | .field·private·final·mLastUsage:Landroid/app/AppOpsManager$PackageOps; |
Offset 38, 37 lines modified | Offset 29, 27 lines modified |
38 | ····invoke-static·{p0},·Lcom/android/permissioncontroller/permission/model/AppPermissionUsage$GroupUsage;->lambda$getLastAccessTime$0(Landroid/app/AppOpsManager$OpEntry;)Ljava/lang/Long; | 29 | ····invoke-static·{p0},·Lcom/android/permissioncontroller/permission/model/AppPermissionUsage$GroupUsage;->lambda$getLastAccessTime$0(Landroid/app/AppOpsManager$OpEntry;)Ljava/lang/Long; |
| |
39 | ····move-result-object·p0 | 30 | ····move-result-object·p0 |
| |
40 | ····return-object·p0 | 31 | ····return-object·p0 |
41 | .end·method | 32 | .end·method |
| |
42 | .method·public·static·synthetic·$r8$lambda$N1dYMBE3XSOi4UGfDnoYwTf-EW8(Ljava/util/Map$Entry;)Lcom/android/permissioncontroller/permission/model/AppPermissionUsage$GroupUsage$AttributionLabelledGroupUsage; | |
43 | ····.locals·0 | |
| |
44 | ····invoke-static·{p0},·Lcom/android/permissioncontroller/permission/model/AppPermissionUsage$GroupUsage;->lambda$getAttributionLabelledGroupUsages$8(Ljava/util/Map$Entry;)Lcom/android/permissioncontroller/permission/model/AppPermissionUsage$GroupUsage$AttributionLabelledGroupUsage; | |
| |
45 | ····move-result-object·p0 | |
| |
46 | ····return-object·p0 | |
47 | .end·method | |
| |
48 | .method·public·constructor·<init>(Lcom/android/permissioncontroller/permission/model/AppPermissionGroup;Landroid/app/AppOpsManager$PackageOps;Landroid/app/AppOpsManager$HistoricalPackageOps;)V | 33 | .method·public·constructor·<init>(Lcom/android/permissioncontroller/permission/model/AppPermissionGroup;Landroid/app/AppOpsManager$PackageOps;Landroid/app/AppOpsManager$HistoricalPackageOps;)V |
49 | ····.locals·0 | 34 | ····.locals·0 |
| |
50 | ····.line·147 | 35 | ····.line·146 |
51 | ····invoke-direct·{p0},·Ljava/lang/Object;-><init>()V | 36 | ····invoke-direct·{p0},·Ljava/lang/Object;-><init>()V |
| |
52 | ····.line·148 | 37 | ····.line·147 |
53 | ····iput-object·p1,·p0,·Lcom/android/permissioncontroller/permission/model/AppPermissionUsage$GroupUsage;->mGroup:Lcom/android/permissioncontroller/permission/model/AppPermissionGroup; | 38 | ····iput-object·p1,·p0,·Lcom/android/permissioncontroller/permission/model/AppPermissionUsage$GroupUsage;->mGroup:Lcom/android/permissioncontroller/permission/model/AppPermissionGroup; |
| |
54 | ····.line·149 | 39 | ····.line·148 |
55 | ····iput-object·p2,·p0,·Lcom/android/permissioncontroller/permission/model/AppPermissionUsage$GroupUsage;->mLastUsage:Landroid/app/AppOpsManager$PackageOps; | 40 | ····iput-object·p2,·p0,·Lcom/android/permissioncontroller/permission/model/AppPermissionUsage$GroupUsage;->mLastUsage:Landroid/app/AppOpsManager$PackageOps; |
| |
56 | ····.line·150 | 41 | ····.line·149 |
57 | ····iput-object·p3,·p0,·Lcom/android/permissioncontroller/permission/model/AppPermissionUsage$GroupUsage;->mHistoricalUsage:Landroid/app/AppOpsManager$HistoricalPackageOps; | 42 | ····iput-object·p3,·p0,·Lcom/android/permissioncontroller/permission/model/AppPermissionUsage$GroupUsage;->mHistoricalUsage:Landroid/app/AppOpsManager$HistoricalPackageOps; |
| |
58 | ····return-void | 43 | ····return-void |
59 | .end·method | 44 | .end·method |
| |
60 | .method·private·static·getAllOps(Lcom/android/permissioncontroller/permission/model/AppPermissionGroup;)Ljava/util/Set; | 45 | .method·private·static·getAllOps(Lcom/android/permissioncontroller/permission/model/AppPermissionGroup;)Ljava/util/Set; |
61 | ····.locals·5 | 46 | ····.locals·5 |
Offset 79, 57 lines modified | Offset 60, 57 lines modified |
79 | ············")", | 60 | ············")", |
80 | ············"Ljava/util/Set<", | 61 | ············"Ljava/util/Set<", |
81 | ············"Ljava/lang/String;", | 62 | ············"Ljava/lang/String;", |
82 | ············">;" | 63 | ············">;" |
83 | ········} | 64 | ········} |
84 | ····.end·annotation | 65 | ····.end·annotation |
| |
85 | ····.line·324 | 66 | ····.line·323 |
86 | ····new-instance·v0,·Ljava/util/HashSet; | 67 | ····new-instance·v0,·Ljava/util/HashSet; |
| |
87 | ····invoke-direct·{v0},·Ljava/util/HashSet;-><init>()V | 68 | ····invoke-direct·{v0},·Ljava/util/HashSet;-><init>()V |
| |
88 | ····.line·325 | 69 | ····.line·324 |
89 | ····invoke-virtual·{p0},·Lcom/android/permissioncontroller/permission/model/AppPermissionGroup;->getPermissions()Ljava/util/ArrayList; | 70 | ····invoke-virtual·{p0},·Lcom/android/permissioncontroller/permission/model/AppPermissionGroup;->getPermissions()Ljava/util/ArrayList; |
| |
90 | ····move-result-object·v1 | 71 | ····move-result-object·v1 |
| |
91 | ····.line·326 | 72 | ····.line·325 |
92 | ····invoke-interface·{v1},·Ljava/util/List;->size()I | 73 | ····invoke-interface·{v1},·Ljava/util/List;->size()I |
| |
93 | ····move-result·v2 | 74 | ····move-result·v2 |
| |
94 | ····const/4·v3,·0x0 | 75 | ····const/4·v3,·0x0 |
| |
95 | ····:goto_0 | 76 | ····:goto_0 |
96 | ····if-ge·v3,·v2,·:cond_1 | 77 | ····if-ge·v3,·v2,·:cond_1 |
| |
97 | ····.line·328 | 78 | ····.line·327 |
98 | ····invoke-interface·{v1,·v3},·Ljava/util/List;->get(I)Ljava/lang/Object; | 79 | ····invoke-interface·{v1,·v3},·Ljava/util/List;->get(I)Ljava/lang/Object; |
| |
99 | ····move-result-object·v4 | 80 | ····move-result-object·v4 |
| |
100 | ····check-cast·v4,·Lcom/android/permissioncontroller/permission/model/Permission; | 81 | ····check-cast·v4,·Lcom/android/permissioncontroller/permission/model/Permission; |
| |
101 | ····.line·329 | 82 | ····.line·328 |
102 | ····invoke-virtual·{v4},·Lcom/android/permissioncontroller/permission/model/Permission;->getAppOp()Ljava/lang/String; | 83 | ····invoke-virtual·{v4},·Lcom/android/permissioncontroller/permission/model/Permission;->getAppOp()Ljava/lang/String; |
| |
103 | ····move-result-object·v4 | 84 | ····move-result-object·v4 |
| |
104 | ····if-eqz·v4,·:cond_0 | 85 | ····if-eqz·v4,·:cond_0 |
| |
105 | ····.line·331 | 86 | ····.line·330 |
106 | ····invoke-interface·{v0,·v4},·Ljava/util/Set;->add(Ljava/lang/Object;)Z | 87 | ····invoke-interface·{v0,·v4},·Ljava/util/Set;->add(Ljava/lang/Object;)Z |
| |
107 | ····:cond_0 | 88 | ····:cond_0 |
108 | ····add-int/lit8·v3,·v3,·0x1 | 89 | ····add-int/lit8·v3,·v3,·0x1 |
| |
109 | ····goto·:goto_0 | 90 | ····goto·:goto_0 |
| |
110 | ····.line·335 | 91 | ····.line·334 |
111 | ····:cond_1 | 92 | ····:cond_1 |
112 | ····invoke-virtual·{p0},·Lcom/android/permissioncontroller/permission/model/AppPermissionGroup;->getName()Ljava/lang/String; | 93 | ····invoke-virtual·{p0},·Lcom/android/permissioncontroller/permission/model/AppPermissionGroup;->getName()Ljava/lang/String; |
| |
113 | ····move-result-object·v1 | 94 | ····move-result-object·v1 |
| |
114 | ····const-string·v2,·"android.permission-group.MICROPHONE" | 95 | ····const-string·v2,·"android.permission-group.MICROPHONE" |
| |
Offset 137, 18 lines modified | Offset 118, 18 lines modified |
| |
137 | ····move-result·v1 | 118 | ····move-result·v1 |
| |
138 | ····if-eqz·v1,·:cond_2 | 119 | ····if-eqz·v1,·:cond_2 |
| |
139 | ····const-string·v1,·"android:phone_call_microphone" | 120 | ····const-string·v1,·"android:phone_call_microphone" |
| |
140 | ····.line·336 | 121 | ····.line·335 |
141 | ····invoke-interface·{v0,·v1},·Ljava/util/Set;->add(Ljava/lang/Object;)Z | 122 | ····invoke-interface·{v0,·v1},·Ljava/util/Set;->add(Ljava/lang/Object;)Z |
| |
142 | ····.line·339 | 123 | ····.line·338 |
143 | ····:cond_2 | 124 | ····:cond_2 |
144 | ····invoke-virtual·{p0},·Lcom/android/permissioncontroller/permission/model/AppPermissionGroup;->getName()Ljava/lang/String; | 125 | ····invoke-virtual·{p0},·Lcom/android/permissioncontroller/permission/model/AppPermissionGroup;->getName()Ljava/lang/String; |
| |
145 | ····move-result-object·p0 | 126 | ····move-result-object·p0 |
| |
146 | ····const-string·v1,·"android.permission-group.CAMERA" | 127 | ····const-string·v1,·"android.permission-group.CAMERA" |
| |
Offset 156, 96 lines modified | Offset 137, 27 lines modified |
| |
156 | ····move-result·p0 | 137 | ····move-result·p0 |
| |
157 | ····if-eqz·p0,·:cond_3 | 138 | ····if-eqz·p0,·:cond_3 |
| |
158 | ····const-string·p0,·"android:phone_call_camera" | 139 | ····const-string·p0,·"android:phone_call_camera" |
| |
159 | ····.line·340 | 140 | ····.line·339 |
160 | ····invoke-interface·{v0,·p0},·Ljava/util/Set;->add(Ljava/lang/Object;)Z | 141 | ····invoke-interface·{v0,·p0},·Ljava/util/Set;->add(Ljava/lang/Object;)Z |
| |
161 | ····:cond_3 | 142 | ····:cond_3 |
162 | ····return-object·v0 | 143 | ····return-object·v0 |
163 | .end·method | 144 | .end·method |
| |
164 | .method·private·static·getAttributionTagToLabelMap([Landroid/content/pm/Attribution;)Ljava/util/Map; | |
165 | ····.locals·5 | |
166 | ····.annotation·system·Ldalvik/annotation/Signature; | |
167 | ········value·=·{ | |
168 | ············"([", | |
169 | ············"Landroid/content/pm/Attribution;", | |
170 | ············")", | |
171 | ············"Ljava/util/Map<", | |
172 | ············"Ljava/lang/String;", | |
173 | ············"Ljava/lang/Integer;", | |
174 | ············">;" | |
175 | ········} | |
176 | ····.end·annotation | |
| |
177 | ····.line·373 | |
178 | ····new-instance·v0,·Ljava/util/HashMap; | |
| |
179 | ····invoke-direct·{v0},·Ljava/util/HashMap;-><init>()V | |
| |
180 | ····.line·374 | |
181 | ····array-length·v1,·p0 | |
| |
182 | ····const/4·v2,·0x0 | |
| |
183 | ····:goto_0 | |
184 | ····if-ge·v2,·v1,·:cond_0 | |
| |
185 | ····aget-object·v3,·p0,·v2 | |
| |
186 | ····.line·375 | |
187 | ····invoke-virtual·{v3},·Landroid/content/pm/Attribution;->getTag()Ljava/lang/String; | |
| |
188 | ····move-result-object·v4 | |
| |
189 | ····invoke-virtual·{v3},·Landroid/content/pm/Attribution;->getLabel()I | |
| |
190 | ····move-result·v3 | |
| |
191 | ····invoke-static·{v3},·Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer; | |
| |
192 | ····move-result-object·v3 | |
| |
193 | ····invoke-interface·{v0,·v4,·v3},·Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; | |
| |
194 | ····add-int/lit8·v2,·v2,·0x1 | |
| |
195 | ····goto·:goto_0 | |
| |
196 | ····:cond_0 | |
197 | ····return-object·v0 | |
198 | .end·method | |
| |
199 | .method·private·static·synthetic·lambda$getAttributionLabelledGroupUsages$8(Ljava/util/Map$Entry;)Lcom/android/permissioncontroller/permission/model/AppPermissionUsage$GroupUsage$AttributionLabelledGroupUsage; | |
200 | ····.locals·0 | |
| |
201 | ····.line·426 | |
202 | ····invoke-interface·{p0},·Ljava/util/Map$Entry;->getValue()Ljava/lang/Object; | |
| |
203 | ····move-result-object·p0 | |
| |
204 | ····check-cast·p0,·Lcom/android/permissioncontroller/permission/model/AppPermissionUsage$GroupUsage$AttributionLabelledGroupUsage$Builder; | |
| |
205 | ····invoke-virtual·{p0},·Lcom/android/permissioncontroller/permission/model/AppPermissionUsage$GroupUsage$AttributionLabelledGroupUsage$Builder;->build()Lcom/android/permissioncontroller/permission/model/AppPermissionUsage$GroupUsage$AttributionLabelledGroupUsage; | |
| |
206 | ····move-result-object·p0 | |
| |
207 | ····return-object·p0 | |
208 | .end·method | |
| |
209 | .method·private·static·synthetic·lambda$getLastAccessTime$0(Landroid/app/AppOpsManager$OpEntry;)Ljava/lang/Long; | 145 | .method·private·static·synthetic·lambda$getLastAccessTime$0(Landroid/app/AppOpsManager$OpEntry;)Ljava/lang/Long; |
210 | ····.locals·2 | 146 | ····.locals·2 |
| |
211 | ····const/16·v0,·0xb | 147 | ····const/16·v0,·0xb |
| |
212 | ····.line·158 | 148 | ····.line·157 |
213 | ····invoke-virtual·{p0,·v0},·Landroid/app/AppOpsManager$OpEntry;->getLastAccessTime(I)J | 149 | ····invoke-virtual·{p0,·v0},·Landroid/app/AppOpsManager$OpEntry;->getLastAccessTime(I)J |
| |
214 | ····move-result-wide·v0 | 150 | ····move-result-wide·v0 |
| |
215 | ····invoke-static·{v0,·v1},·Ljava/lang/Long;->valueOf(J)Ljava/lang/Long; | 151 | ····invoke-static·{v0,·v1},·Ljava/lang/Long;->valueOf(J)Ljava/lang/Long; |
| |
216 | ····move-result-object·p0 | 152 | ····move-result-object·p0 |
Offset 261, 59 lines modified | Offset 173, 59 lines modified |
261 | ············"Ljava/util/function/Function<", | 173 | ············"Ljava/util/function/Function<", |
262 | ············"Landroid/app/AppOpsManager$OpEntry;", | 174 | ············"Landroid/app/AppOpsManager$OpEntry;", |
263 | ············"Ljava/lang/Long;", | 175 | ············"Ljava/lang/Long;", |
264 | ············">;)J" | 176 | ············">;)J" |
265 | ········} | 177 | ········} |
266 | ····.end·annotation | 178 | ····.end·annotation |
| |
267 | ····.line·309 | 179 | ····.line·308 |
268 | ····iget-object·v0,·p0,·Lcom/android/permissioncontroller/permission/model/AppPermissionUsage$GroupUsage;->mGroup:Lcom/android/permissioncontroller/permission/model/AppPermissionGroup; | 180 | ····iget-object·v0,·p0,·Lcom/android/permissioncontroller/permission/model/AppPermissionUsage$GroupUsage;->mGroup:Lcom/android/permissioncontroller/permission/model/AppPermissionGroup; |
| |
269 | ····invoke-static·{v0},·Lcom/android/permissioncontroller/permission/model/AppPermissionUsage$GroupUsage;->getAllOps(Lcom/android/permissioncontroller/permission/model/AppPermissionGroup;)Ljava/util/Set; | 181 | ····invoke-static·{v0},·Lcom/android/permissioncontroller/permission/model/AppPermissionUsage$GroupUsage;->getAllOps(Lcom/android/permissioncontroller/permission/model/AppPermissionGroup;)Ljava/util/Set; |
| |
270 | ····move-result-object·v0 | 182 | ····move-result-object·v0 |
| |
271 | ····.line·310 | 183 | ····.line·309 |
272 | ····iget-object·p0,·p0,·Lcom/android/permissioncontroller/permission/model/AppPermissionUsage$GroupUsage;->mLastUsage:Landroid/app/AppOpsManager$PackageOps; | 184 | ····iget-object·p0,·p0,·Lcom/android/permissioncontroller/permission/model/AppPermissionUsage$GroupUsage;->mLastUsage:Landroid/app/AppOpsManager$PackageOps; |
| |
273 | ····invoke-virtual·{p0},·Landroid/app/AppOpsManager$PackageOps;->getOps()Ljava/util/List; | 185 | ····invoke-virtual·{p0},·Landroid/app/AppOpsManager$PackageOps;->getOps()Ljava/util/List; |
| |
274 | ····move-result-object·p0 | 186 | ····move-result-object·p0 |
| |
275 | ····.line·311 | 187 | ····.line·310 |
276 | ····invoke-interface·{p0},·Ljava/util/List;->size()I | 188 | ····invoke-interface·{p0},·Ljava/util/List;->size()I |
| |
277 | ····move-result·v1 | 189 | ····move-result·v1 |
| |
278 | ····const-wide/16·v2,·0x0 | 190 | ····const-wide/16·v2,·0x0 |
| |
279 | ····const/4·v4,·0x0 | 191 | ····const/4·v4,·0x0 |
| |
280 | ····:goto_0 | 192 | ····:goto_0 |
281 | ····if-ge·v4,·v1,·:cond_1 | 193 | ····if-ge·v4,·v1,·:cond_1 |
| |
282 | ····.line·314 | 194 | ····.line·313 |
283 | ····invoke-interface·{p0,·v4},·Ljava/util/List;->get(I)Ljava/lang/Object; | 195 | ····invoke-interface·{p0,·v4},·Ljava/util/List;->get(I)Ljava/lang/Object; |
| |
284 | ····move-result-object·v5 | 196 | ····move-result-object·v5 |
| |
285 | ····check-cast·v5,·Landroid/app/AppOpsManager$OpEntry; | 197 | ····check-cast·v5,·Landroid/app/AppOpsManager$OpEntry; |
| |
286 | ····.line·315 | 198 | ····.line·314 |
287 | ····invoke-virtual·{v5},·Landroid/app/AppOpsManager$OpEntry;->getOpStr()Ljava/lang/String; | 199 | ····invoke-virtual·{v5},·Landroid/app/AppOpsManager$OpEntry;->getOpStr()Ljava/lang/String; |
| |
288 | ····move-result-object·v6 | 200 | ····move-result-object·v6 |
| |
289 | ····invoke-interface·{v0,·v6},·Ljava/util/Set;->contains(Ljava/lang/Object;)Z | 201 | ····invoke-interface·{v0,·v6},·Ljava/util/Set;->contains(Ljava/lang/Object;)Z |
| |
290 | ····move-result·v6 | 202 | ····move-result·v6 |
| |
291 | ····if-eqz·v6,·:cond_0 | 203 | ····if-eqz·v6,·:cond_0 |
| |
292 | ····.line·316 | 204 | ····.line·315 |
293 | ····invoke-interface·{p1,·v5},·Ljava/util/function/Function;->apply(Ljava/lang/Object;)Ljava/lang/Object; | 205 | ····invoke-interface·{p1,·v5},·Ljava/util/function/Function;->apply(Ljava/lang/Object;)Ljava/lang/Object; |
| |
294 | ····move-result-object·v5 | 206 | ····move-result-object·v5 |
| |
295 | ····check-cast·v5,·Ljava/lang/Long; | 207 | ····check-cast·v5,·Ljava/lang/Long; |
| |
296 | ····invoke-virtual·{v5},·Ljava/lang/Long;->longValue()J | 208 | ····invoke-virtual·{v5},·Ljava/lang/Long;->longValue()J |
Offset 345, 37 lines modified | Offset 257, 37 lines modified |
345 | ············"Ljava/lang/Long;", | 257 | ············"Ljava/lang/Long;", |
346 | ············"Ljava/lang/Long;", | 258 | ············"Ljava/lang/Long;", |
347 | ············"Landroid/app/AppOpsManager$OpEventProxyInfo;", | 259 | ············"Landroid/app/AppOpsManager$OpEventProxyInfo;", |
348 | ············">;>;" | 260 | ············">;>;" |
349 | ········} | 261 | ········} |
350 | ····.end·annotation | 262 | ····.end·annotation |
| |
351 | ····.line·249 | 263 | ····.line·248 |
352 | ····new-instance·v0,·Ljava/util/ArrayList; | 264 | ····new-instance·v0,·Ljava/util/ArrayList; |
| |
353 | ····invoke-direct·{v0},·Ljava/util/ArrayList;-><init>()V | 265 | ····invoke-direct·{v0},·Ljava/util/ArrayList;-><init>()V |
| |
354 | ····.line·250 | 266 | ····.line·249 |
355 | ····invoke-virtual·{p0},·Lcom/android/permissioncontroller/permission/model/AppPermissionUsage$GroupUsage;->hasDiscreteData()Z | 267 | ····invoke-virtual·{p0},·Lcom/android/permissioncontroller/permission/model/AppPermissionUsage$GroupUsage;->hasDiscreteData()Z |
| |
356 | ····move-result·v1 | 268 | ····move-result·v1 |
| |
357 | ····if-nez·v1,·:cond_0 | 269 | ····if-nez·v1,·:cond_0 |
| |
358 | ····return-object·v0 | 270 | ····return-object·v0 |
| |
359 | ····.line·254 | 271 | ····.line·253 |
360 | ····:cond_0 | 272 | ····:cond_0 |
361 | ····iget-object·v1,·p0,·Lcom/android/permissioncontroller/permission/model/AppPermissionUsage$GroupUsage;->mGroup:Lcom/android/permissioncontroller/permission/model/AppPermissionGroup; | 273 | ····iget-object·v1,·p0,·Lcom/android/permissioncontroller/permission/model/AppPermissionUsage$GroupUsage;->mGroup:Lcom/android/permissioncontroller/permission/model/AppPermissionGroup; |
| |
362 | ····invoke-static·{v1},·Lcom/android/permissioncontroller/permission/model/AppPermissionUsage$GroupUsage;->getAllOps(Lcom/android/permissioncontroller/permission/model/AppPermissionGroup;)Ljava/util/Set; | 274 | ····invoke-static·{v1},·Lcom/android/permissioncontroller/permission/model/AppPermissionUsage$GroupUsage;->getAllOps(Lcom/android/permissioncontroller/permission/model/AppPermissionGroup;)Ljava/util/Set; |
| |
363 | ····move-result-object·v1 | 275 | ····move-result-object·v1 |
| |
364 | ····.line·255 | 276 | ····.line·254 |
365 | ····invoke-interface·{v1},·Ljava/util/Set;->iterator()Ljava/util/Iterator; | 277 | ····invoke-interface·{v1},·Ljava/util/Set;->iterator()Ljava/util/Iterator; |
| |
366 | ····move-result-object·v1 | 278 | ····move-result-object·v1 |
| |
367 | ····:cond_1 | 279 | ····:cond_1 |
368 | ····:goto_0 | 280 | ····:goto_0 |
369 | ····invoke-interface·{v1},·Ljava/util/Iterator;->hasNext()Z | 281 | ····invoke-interface·{v1},·Ljava/util/Iterator;->hasNext()Z |
Offset 386, 402 lines modified | Offset 298, 125 lines modified |
| |
386 | ····invoke-interface·{v1},·Ljava/util/Iterator;->next()Ljava/lang/Object; | 298 | ····invoke-interface·{v1},·Ljava/util/Iterator;->next()Ljava/lang/Object; |
| |
387 | ····move-result-object·v2 | 299 | ····move-result-object·v2 |
| |
388 | ····check-cast·v2,·Ljava/lang/String; | 300 | ····check-cast·v2,·Ljava/lang/String; |
| |
389 | ····.line·256 | 301 | ····.line·255 |
390 | ····iget-object·v3,·p0,·Lcom/android/permissioncontroller/permission/model/AppPermissionUsage$GroupUsage;->mHistoricalUsage:Landroid/app/AppOpsManager$HistoricalPackageOps; | 302 | ····iget-object·v3,·p0,·Lcom/android/permissioncontroller/permission/model/AppPermissionUsage$GroupUsage;->mHistoricalUsage:Landroid/app/AppOpsManager$HistoricalPackageOps; |
| |
391 | ····invoke-virtual·{v3,·v2},·Landroid/app/AppOpsManager$HistoricalPackageOps;->getOp(Ljava/lang/String;)Landroid/app/AppOpsManager$HistoricalOp; | 303 | ····invoke-virtual·{v3,·v2},·Landroid/app/AppOpsManager$HistoricalPackageOps;->getOp(Ljava/lang/String;)Landroid/app/AppOpsManager$HistoricalOp; |
| |
392 | ····move-result-object·v2 | 304 | ····move-result-object·v2 |
| |
393 | ····if-nez·v2,·:cond_2 | 305 | ····if-nez·v2,·:cond_2 |
| |
394 | ····goto·:goto_0 | 306 | ····goto·:goto_0 |
| |
395 | ····.line·261 | 307 | ····.line·260 |
396 | ····:cond_2 | 308 | ····:cond_2 |
397 | ····invoke-virtual·{v2},·Landroid/app/AppOpsManager$HistoricalOp;->getDiscreteAccessCount()I | 309 | ····invoke-virtual·{v2},·Landroid/app/AppOpsManager$HistoricalOp;->getDiscreteAccessCount()I |
| |
398 | ····move-result·v3 | 310 | ····move-result·v3 |
| |
399 | ····const/4·v4,·0x0 | 311 | ····const/4·v4,·0x0 |
| |
400 | ····:goto_1 | 312 | ····:goto_1 |
401 | ····if-ge·v4,·v3,·:cond_1 | 313 | ····if-ge·v4,·v3,·:cond_1 |
| |
402 | ····.line·263 | 314 | ····.line·262 |
403 | ····invoke-virtual·{v2,·v4},·Landroid/app/AppOpsManager$HistoricalOp;->getDiscreteAccessAt(I)Landroid/app/AppOpsManager$AttributedOpEntry; | 315 | ····invoke-virtual·{v2,·v4},·Landroid/app/AppOpsManager$HistoricalOp;->getDiscreteAccessAt(I)Landroid/app/AppOpsManager$AttributedOpEntry; |
| |
404 | ····move-result-object·v5 | 316 | ····move-result-object·v5 |
| |
405 | ····.line·264 | 317 | ····.line·263 |
406 | ····new-instance·v6,·Lkotlin/Triple; | 318 | ····new-instance·v6,·Lkotlin/Triple; |
| |
407 | ····const/16·v7,·0xb | 319 | ····const/16·v7,·0xb |
| |
408 | ····.line·265 | 320 | ····.line·264 |
409 | ····invoke-virtual·{v5,·v7},·Landroid/app/AppOpsManager$AttributedOpEntry;->getLastAccessTime(I)J | 321 | ····invoke-virtual·{v5,·v7},·Landroid/app/AppOpsManager$AttributedOpEntry;->getLastAccessTime(I)J |
| |
410 | ····move-result-wide·v8 | 322 | ····move-result-wide·v8 |
| |
411 | ····invoke-static·{v8,·v9},·Ljava/lang/Long;->valueOf(J)Ljava/lang/Long; | 323 | ····invoke-static·{v8,·v9},·Ljava/lang/Long;->valueOf(J)Ljava/lang/Long; |
| |
412 | ····move-result-object·v8 | 324 | ····move-result-object·v8 |
| |
413 | ····.line·266 | 325 | ····.line·265 |
414 | ····invoke-virtual·{v5,·v7},·Landroid/app/AppOpsManager$AttributedOpEntry;->getLastDuration(I)J | 326 | ····invoke-virtual·{v5,·v7},·Landroid/app/AppOpsManager$AttributedOpEntry;->getLastDuration(I)J |
| |
415 | ····move-result-wide·v9 | 327 | ····move-result-wide·v9 |
| |
416 | ····invoke-static·{v9,·v10},·Ljava/lang/Long;->valueOf(J)Ljava/lang/Long; | 328 | ····invoke-static·{v9,·v10},·Ljava/lang/Long;->valueOf(J)Ljava/lang/Long; |
| |
417 | ····move-result-object·v9 | 329 | ····move-result-object·v9 |
| |
418 | ····.line·267 | 330 | ····.line·266 |
419 | ····invoke-virtual·{v5,·v7},·Landroid/app/AppOpsManager$AttributedOpEntry;->getLastProxyInfo(I)Landroid/app/AppOpsManager$OpEventProxyInfo; | 331 | ····invoke-virtual·{v5,·v7},·Landroid/app/AppOpsManager$AttributedOpEntry;->getLastProxyInfo(I)Landroid/app/AppOpsManager$OpEventProxyInfo; |
| |
420 | ····move-result-object·v5 | 332 | ····move-result-object·v5 |
| |
421 | ····invoke-direct·{v6,·v8,·v9,·v5},·Lkotlin/Triple;-><init>(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)V | 333 | ····invoke-direct·{v6,·v8,·v9,·v5},·Lkotlin/Triple;-><init>(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)V |
| |
422 | ····.line·264 | 334 | ····.line·263 |
423 | ····invoke-interface·{v0,·v6},·Ljava/util/List;->add(Ljava/lang/Object;)Z | 335 | ····invoke-interface·{v0,·v6},·Ljava/util/List;->add(Ljava/lang/Object;)Z |
| |
424 | ····add-int/lit8·v4,·v4,·0x1 | 336 | ····add-int/lit8·v4,·v4,·0x1 |
| |
425 | ····goto·:goto_1 | 337 | ····goto·:goto_1 |
| |
426 | ····:cond_3 | 338 | ····:cond_3 |
427 | ····return-object·v0 | 339 | ····return-object·v0 |
428 | .end·method | 340 | .end·method |
| |
429 | .method·public·getAttributionLabelledGroupUsages()Ljava/util/List; | |
430 | ····.locals·18 | |
431 | ····.annotation·system·Ldalvik/annotation/Signature; | |
432 | ········value·=·{ | |
433 | ············"()", | |
434 | ············"Ljava/util/List<", | |
435 | ············"Lcom/android/permissioncontroller/permission/model/AppPermissionUsage$GroupUsage$AttributionLabelledGroupUsage;", | |
436 | ············">;" | |
437 | ········} | |
438 | ····.end·annotation | |
| |
439 | ····move-object/from16·v0,·p0 | |
| |
440 | ····.line·383 | |
441 | ····iget-object·v1,·v0,·Lcom/android/permissioncontroller/permission/model/AppPermissionUsage$GroupUsage;->mHistoricalUsage:Landroid/app/AppOpsManager$HistoricalPackageOps; | |
| |
442 | ····if-eqz·v1,·:cond_7 | |
| |
443 | ····invoke-virtual·{v1},·Landroid/app/AppOpsManager$HistoricalPackageOps;->getAttributedOpsCount()I | |
| |
444 | ····move-result·v1 | |
| |
445 | ····if-nez·v1,·:cond_0 | |
| |
446 | ····goto/16·:goto_3 | |
| |
447 | ····.line·387 | |
448 | ····:cond_0 | |
449 | ····invoke-virtual/range·{p0·..·p0},·Lcom/android/permissioncontroller/permission/model/AppPermissionUsage$GroupUsage;->getGroup()Lcom/android/permissioncontroller/permission/model/AppPermissionGroup; | |
| |
450 | ····move-result-object·v1 | |
| |
451 | ····invoke-virtual·{v1},·Lcom/android/permissioncontroller/permission/model/AppPermissionGroup;->getApp()Landroid/content/pm/PackageInfo; | |
| |
452 | ····move-result-object·v1 | |
| |
453 | ····iget-object·v1,·v1,·Landroid/content/pm/PackageInfo;->attributions:[Landroid/content/pm/Attribution; | |
| |
454 | ····invoke-static·{v1},·Lcom/android/permissioncontroller/permission/model/AppPermissionUsage$GroupUsage;->getAttributionTagToLabelMap([Landroid/content/pm/Attribution;)Ljava/util/Map; | |
| |
455 | ····move-result-object·v1 | |
| |
456 | ····.line·389 | |
457 | ····iget-object·v2,·v0,·Lcom/android/permissioncontroller/permission/model/AppPermissionUsage$GroupUsage;->mGroup:Lcom/android/permissioncontroller/permission/model/AppPermissionGroup; | |
| |
458 | ····invoke-static·{v2},·Lcom/android/permissioncontroller/permission/model/AppPermissionUsage$GroupUsage;->getAllOps(Lcom/android/permissioncontroller/permission/model/AppPermissionGroup;)Ljava/util/Set; | |
| |
459 | ····move-result-object·v2 | |
| |
460 | ····.line·392 | |
461 | ····new-instance·v3,·Ljava/util/HashMap; | |
| |
462 | ····invoke-direct·{v3},·Ljava/util/HashMap;-><init>()V | |
| |
463 | ····const/4·v4,·0x0 | |
| |
464 | ····move·v5,·v4 | |
| |
465 | ····.line·395 | |
466 | ····:goto_0 | |
467 | ····iget-object·v6,·v0,·Lcom/android/permissioncontroller/permission/model/AppPermissionUsage$GroupUsage;->mHistoricalUsage:Landroid/app/AppOpsManager$HistoricalPackageOps; | |
| |
468 | ····invoke-virtual·{v6},·Landroid/app/AppOpsManager$HistoricalPackageOps;->getAttributedOpsCount()I | |
| |
469 | ····move-result·v6 | |
| |
470 | ····if-ge·v5,·v6,·:cond_6 | |
| |
471 | ····.line·396 | |
472 | ····iget-object·v6,·v0,·Lcom/android/permissioncontroller/permission/model/AppPermissionUsage$GroupUsage;->mHistoricalUsage:Landroid/app/AppOpsManager$HistoricalPackageOps; | |
| |
473 | ····invoke-virtual·{v6,·v5},·Landroid/app/AppOpsManager$HistoricalPackageOps;->getAttributedOpsAt(I)Landroid/app/AppOpsManager$AttributedHistoricalOps; | |
| |
474 | ····move-result-object·v6 | |
| |
475 | ····.line·397 | |
476 | ····invoke-virtual·{v6},·Landroid/app/AppOpsManager$AttributedHistoricalOps;->getTag()Ljava/lang/String; | |
| |
477 | ····move-result-object·v7 | |
| |
478 | ····.line·399 | |
479 | ····invoke-interface·{v2},·Ljava/util/Set;->iterator()Ljava/util/Iterator; | |
| |
480 | ····move-result-object·v8 | |
| |
481 | ····:goto_1 | |
482 | ····invoke-interface·{v8},·Ljava/util/Iterator;->hasNext()Z | |
| |
483 | ····move-result·v9 | |
| |
484 | ····if-eqz·v9,·:cond_5 | |
| |
485 | ····invoke-interface·{v8},·Ljava/util/Iterator;->next()Ljava/lang/Object; | |
| |
486 | ····move-result-object·v9 | |
| |
487 | ····check-cast·v9,·Ljava/lang/String; | |
| |
488 | ····.line·400 | |
489 | ····invoke-virtual·{v6,·v9},·Landroid/app/AppOpsManager$AttributedHistoricalOps;->getOp(Ljava/lang/String;)Landroid/app/AppOpsManager$HistoricalOp; | |
| |
490 | ····move-result-object·v9 | |
| |
491 | ····if-nez·v9,·:cond_1 | |
| |
492 | ····goto·:goto_1 | |
| |
493 | ····.line·405 | |
494 | ····:cond_1 | |
495 | ····invoke-virtual·{v9},·Landroid/app/AppOpsManager$HistoricalOp;->getDiscreteAccessCount()I | |
| |
496 | ····move-result·v10 | |
| |
497 | ····move·v11,·v4 | |
| |
498 | ····:goto_2 | |
499 | ····if-ge·v11,·v10,·:cond_4 | |
| |
500 | ····.line·407 | |
501 | ····invoke-virtual·{v9,·v11},·Landroid/app/AppOpsManager$HistoricalOp;->getDiscreteAccessAt(I)Landroid/app/AppOpsManager$AttributedOpEntry; | |
| |
502 | ····move-result-object·v12 | |
| |
503 | ····.line·408 | |
504 | ····invoke-virtual·{v6},·Landroid/app/AppOpsManager$AttributedHistoricalOps;->getTag()Ljava/lang/String; | |
| |
505 | ····move-result-object·v13 | |
| |
506 | ····invoke-interface·{v1,·v13},·Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object; | |
| |
507 | ····move-result-object·v13 | |
| |
508 | ····check-cast·v13,·Ljava/lang/Integer; | |
| |
509 | ····if-nez·v13,·:cond_2 | |
| |
510 | ····.line·410 | |
511 | ····invoke-static·{v4},·Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer; | |
| |
512 | ····move-result-object·v13 | |
| |
513 | ····.line·412 | |
514 | ····:cond_2 | |
515 | ····invoke-interface·{v3,·v13},·Ljava/util/Map;->containsKey(Ljava/lang/Object;)Z | |
| |
516 | ····move-result·v14 | |
| |
517 | ····if-nez·v14,·:cond_3 | |
| |
518 | ····.line·413 | |
519 | ····new-instance·v14,·Lcom/android/permissioncontroller/permission/model/AppPermissionUsage$GroupUsage$AttributionLabelledGroupUsage$Builder; | |
| |
520 | ····.line·414 | |
521 | ····invoke-virtual·{v13},·Ljava/lang/Integer;->intValue()I | |
| |
522 | ····move-result·v15 | |
| |
523 | ····invoke-virtual/range·{p0·..·p0},·Lcom/android/permissioncontroller/permission/model/AppPermissionUsage$GroupUsage;->getGroup()Lcom/android/permissioncontroller/permission/model/AppPermissionGroup; | |
| |
524 | ····move-result-object·v4 | |
| |
525 | ····invoke-direct·{v14,·v15,·v4},·Lcom/android/permissioncontroller/permission/model/AppPermissionUsage$GroupUsage$AttributionLabelledGroupUsage$Builder;-><init>(ILcom/android/permissioncontroller/permission/model/AppPermissionGroup;)V | |
| |
526 | ····.line·413 | |
527 | ····invoke-interface·{v3,·v13,·v14},·Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; | |
| |
528 | ····.line·416 | |
529 | ····:cond_3 | |
530 | ····invoke-interface·{v3,·v13},·Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object; | |
| |
531 | ····move-result-object·v4 | |
| |
532 | ····check-cast·v4,·Lcom/android/permissioncontroller/permission/model/AppPermissionUsage$GroupUsage$AttributionLabelledGroupUsage$Builder; | |
| |
533 | ····invoke-virtual·{v4,·v7},·Lcom/android/permissioncontroller/permission/model/AppPermissionUsage$GroupUsage$AttributionLabelledGroupUsage$Builder;->addAttributionTag(Ljava/lang/String;)Lcom/android/permissioncontroller/permission/model/AppPermissionUsage$GroupUsage$AttributionLabelledGroupUsage$Builder; | |
| |
534 | ····.line·417 | |
535 | ····invoke-interface·{v3,·v13},·Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object; | |
| |
536 | ····move-result-object·v4 | |
| |
537 | ····check-cast·v4,·Lcom/android/permissioncontroller/permission/model/AppPermissionUsage$GroupUsage$AttributionLabelledGroupUsage$Builder; | |
| |
538 | ····new-instance·v13,·Lkotlin/Triple; | |
| |
539 | ····const/16·v14,·0xb | |
| |
540 | ····.line·418 | |
541 | ····invoke-virtual·{v12,·v14},·Landroid/app/AppOpsManager$AttributedOpEntry;->getLastAccessTime(I)J | |
| |
542 | ····move-result-wide·v16 | |
| |
543 | ····invoke-static/range·{v16·..·v17},·Ljava/lang/Long;->valueOf(J)Ljava/lang/Long; | |
| |
544 | ····move-result-object·v15 | |
| |
545 | ····.line·419 | |
546 | ····invoke-virtual·{v12,·v14},·Landroid/app/AppOpsManager$AttributedOpEntry;->getLastDuration(I)J | |
| |
547 | ····move-result-wide·v16 | |
| |
548 | ····invoke-static/range·{v16·..·v17},·Ljava/lang/Long;->valueOf(J)Ljava/lang/Long; | |
| |
549 | ····move-result-object·v0 | |
| |
550 | ····.line·420 | |
551 | ····invoke-virtual·{v12,·v14},·Landroid/app/AppOpsManager$AttributedOpEntry;->getLastProxyInfo(I)Landroid/app/AppOpsManager$OpEventProxyInfo; | |
| |
552 | ····move-result-object·v12 | |
| |
553 | ····invoke-direct·{v13,·v15,·v0,·v12},·Lkotlin/Triple;-><init>(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)V | |
| |
554 | ····.line·417 | |
555 | ····invoke-virtual·{v4,·v13},·Lcom/android/permissioncontroller/permission/model/AppPermissionUsage$GroupUsage$AttributionLabelledGroupUsage$Builder;->addDiscreteAccessTime(Lkotlin/Triple;)Lcom/android/permissioncontroller/permission/model/AppPermissionUsage$GroupUsage$AttributionLabelledGroupUsage$Builder; | |
| |
556 | ····add-int/lit8·v11,·v11,·0x1 | |
| |
557 | ····const/4·v4,·0x0 | |
| |
558 | ····move-object/from16·v0,·p0 | |
| |
559 | ····goto·:goto_2 | |
| |
560 | ····:cond_4 | |
561 | ····move-object/from16·v0,·p0 | |
| |
562 | ····goto·:goto_1 | |
| |
563 | ····:cond_5 | |
564 | ····add-int/lit8·v5,·v5,·0x1 | |
| |
565 | ····const/4·v4,·0x0 | |
| |
566 | ····move-object/from16·v0,·p0 | |
| |
567 | ····goto/16·:goto_0 | |
| |
568 | ····.line·425 | |
569 | ····:cond_6 | |
570 | ····invoke-interface·{v3},·Ljava/util/Map;->entrySet()Ljava/util/Set; | |
| |
571 | ····move-result-object·v0 | |
| |
572 | ····invoke-interface·{v0},·Ljava/util/Set;->stream()Ljava/util/stream/Stream; | |
| |
573 | ····move-result-object·v0 | |
| |
574 | ····sget-object·v1,·Lcom/android/permissioncontroller/permission/model/AppPermissionUsage$GroupUsage$$ExternalSyntheticLambda1;->INSTANCE:Lcom/android/permissioncontroller/permission/model/AppPermissionUsage$GroupUsage$$ExternalSyntheticLambda1; | |
| |
575 | ····.line·426 | |
576 | ····invoke-interface·{v0,·v1},·Ljava/util/stream/Stream;->map(Ljava/util/function/Function;)Ljava/util/stream/Stream; | |
| |
577 | ····move-result-object·v0 | |
| |
578 | ····.line·427 | |
579 | ····invoke-static·{},·Ljava/util/stream/Collectors;->toList()Ljava/util/stream/Collector; | |
| |
580 | ····move-result-object·v1 | |
| |
581 | ····invoke-interface·{v0,·v1},·Ljava/util/stream/Stream;->collect(Ljava/util/stream/Collector;)Ljava/lang/Object; | |
| |
582 | ····move-result-object·v0 | |
| |
583 | ····check-cast·v0,·Ljava/util/List; | |
| |
584 | ····return-object·v0 | |
| |
585 | ····.line·384 | |
586 | ····:cond_7 | |
587 | ····:goto_3 | |
588 | ····new-instance·v0,·Ljava/util/ArrayList; | |
| |
589 | ····invoke-direct·{v0},·Ljava/util/ArrayList;-><init>()V | |
| |
590 | ····return-object·v0 | |
591 | .end·method | |
| |
592 | .method·public·getAttributionTags()Ljava/util/ArrayList; | 341 | .method·public·getAttributionTags()Ljava/util/ArrayList; |
593 | ····.locals·4 | 342 | ····.locals·4 |
594 | ····.annotation·system·Ldalvik/annotation/Signature; | 343 | ····.annotation·system·Ldalvik/annotation/Signature; |
595 | ········value·=·{ | 344 | ········value·=·{ |
596 | ············"()", | 345 | ············"()", |
597 | ············"Ljava/util/ArrayList<", | 346 | ············"Ljava/util/ArrayList<", |
598 | ············"Ljava/lang/String;", | 347 | ············"Ljava/lang/String;", |
599 | ············">;" | 348 | ············">;" |
600 | ········} | 349 | ········} |
601 | ····.end·annotation | 350 | ····.end·annotation |
| |
602 | ····.line·358 | 351 | ····.line·357 |
603 | ····iget-object·v0,·p0,·Lcom/android/permissioncontroller/permission/model/AppPermissionUsage$GroupUsage;->mHistoricalUsage:Landroid/app/AppOpsManager$HistoricalPackageOps; | 352 | ····iget-object·v0,·p0,·Lcom/android/permissioncontroller/permission/model/AppPermissionUsage$GroupUsage;->mHistoricalUsage:Landroid/app/AppOpsManager$HistoricalPackageOps; |
| |
604 | ····if-eqz·v0,·:cond_2 | 353 | ····if-eqz·v0,·:cond_2 |
| |
605 | ····invoke-virtual·{v0},·Landroid/app/AppOpsManager$HistoricalPackageOps;->getAttributedOpsCount()I | 354 | ····invoke-virtual·{v0},·Landroid/app/AppOpsManager$HistoricalPackageOps;->getAttributedOpsCount()I |
| |
606 | ····move-result·v0 | 355 | ····move-result·v0 |
| |
607 | ····if-nez·v0,·:cond_0 | 356 | ····if-nez·v0,·:cond_0 |
| |
608 | ····goto·:goto_1 | 357 | ····goto·:goto_1 |
| |
609 | ····.line·361 | 358 | ····.line·360 |
610 | ····:cond_0 | 359 | ····:cond_0 |
611 | ····new-instance·v0,·Ljava/util/ArrayList; | 360 | ····new-instance·v0,·Ljava/util/ArrayList; |
| |
612 | ····invoke-direct·{v0},·Ljava/util/ArrayList;-><init>()V | 361 | ····invoke-direct·{v0},·Ljava/util/ArrayList;-><init>()V |
| |
613 | ····.line·362 | 362 | ····.line·361 |
614 | ····iget-object·v1,·p0,·Lcom/android/permissioncontroller/permission/model/AppPermissionUsage$GroupUsage;->mHistoricalUsage:Landroid/app/AppOpsManager$HistoricalPackageOps; | 363 | ····iget-object·v1,·p0,·Lcom/android/permissioncontroller/permission/model/AppPermissionUsage$GroupUsage;->mHistoricalUsage:Landroid/app/AppOpsManager$HistoricalPackageOps; |
| |
615 | ····invoke-virtual·{v1},·Landroid/app/AppOpsManager$HistoricalPackageOps;->getAttributedOpsCount()I | 364 | ····invoke-virtual·{v1},·Landroid/app/AppOpsManager$HistoricalPackageOps;->getAttributedOpsCount()I |
| |
616 | ····move-result·v1 | 365 | ····move-result·v1 |
| |
617 | ····const/4·v2,·0x0 | 366 | ····const/4·v2,·0x0 |
| |
618 | ····:goto_0 | 367 | ····:goto_0 |
619 | ····if-ge·v2,·v1,·:cond_1 | 368 | ····if-ge·v2,·v1,·:cond_1 |
| |
620 | ····.line·364 | 369 | ····.line·363 |
621 | ····iget-object·v3,·p0,·Lcom/android/permissioncontroller/permission/model/AppPermissionUsage$GroupUsage;->mHistoricalUsage:Landroid/app/AppOpsManager$HistoricalPackageOps; | 370 | ····iget-object·v3,·p0,·Lcom/android/permissioncontroller/permission/model/AppPermissionUsage$GroupUsage;->mHistoricalUsage:Landroid/app/AppOpsManager$HistoricalPackageOps; |
| |
622 | ····invoke-virtual·{v3,·v2},·Landroid/app/AppOpsManager$HistoricalPackageOps;->getAttributedOpsAt(I)Landroid/app/AppOpsManager$AttributedHistoricalOps; | 371 | ····invoke-virtual·{v3,·v2},·Landroid/app/AppOpsManager$HistoricalPackageOps;->getAttributedOpsAt(I)Landroid/app/AppOpsManager$AttributedHistoricalOps; |
| |
623 | ····move-result-object·v3 | 372 | ····move-result-object·v3 |
| |
624 | ····invoke-virtual·{v3},·Landroid/app/AppOpsManager$AttributedHistoricalOps;->getTag()Ljava/lang/String; | 373 | ····invoke-virtual·{v3},·Landroid/app/AppOpsManager$AttributedHistoricalOps;->getTag()Ljava/lang/String; |
Offset 800, 78 lines modified | Offset 435, 67 lines modified |
800 | ····:cond_2 | 435 | ····:cond_2 |
801 | ····:goto_1 | 436 | ····:goto_1 |
802 | ····const/4·p0,·0x0 | 437 | ····const/4·p0,·0x0 |
| |
803 | ····return-object·p0 | 438 | ····return-object·p0 |
804 | .end·method | 439 | .end·method |
| |
805 | .method·public·bridge·synthetic·getAttributionTags()Ljava/util/List; | |
806 | ····.locals·0 | |
| |
807 | ····.line·141 | |
808 | ····invoke-virtual·{p0},·Lcom/android/permissioncontroller/permission/model/AppPermissionUsage$GroupUsage;->getAttributionTags()Ljava/util/ArrayList; | |
| |
809 | ····move-result-object·p0 | |
| |
810 | ····return-object·p0 | |
811 | .end·method | |
| |
812 | .method·public·getGroup()Lcom/android/permissioncontroller/permission/model/AppPermissionGroup; | 440 | .method·public·getGroup()Lcom/android/permissioncontroller/permission/model/AppPermissionGroup; |
813 | ····.locals·0 | 441 | ····.locals·0 |
| |
814 | ····.line·348 | 442 | ····.line·347 |
815 | ····iget-object·p0,·p0,·Lcom/android/permissioncontroller/permission/model/AppPermissionUsage$GroupUsage;->mGroup:Lcom/android/permissioncontroller/permission/model/AppPermissionGroup; | 443 | ····iget-object·p0,·p0,·Lcom/android/permissioncontroller/permission/model/AppPermissionUsage$GroupUsage;->mGroup:Lcom/android/permissioncontroller/permission/model/AppPermissionGroup; |
| |
816 | ····return-object·p0 | 444 | ····return-object·p0 |
817 | .end·method | 445 | .end·method |
| |
818 | .method·public·getLastAccessTime()J | 446 | .method·public·getLastAccessTime()J |
819 | ····.locals·2 | 447 | ····.locals·2 |
| |
820 | ····.line·154 | 448 | ····.line·153 |
821 | ····iget-object·v0,·p0,·Lcom/android/permissioncontroller/permission/model/AppPermissionUsage$GroupUsage;->mLastUsage:Landroid/app/AppOpsManager$PackageOps; | 449 | ····iget-object·v0,·p0,·Lcom/android/permissioncontroller/permission/model/AppPermissionUsage$GroupUsage;->mLastUsage:Landroid/app/AppOpsManager$PackageOps; |
| |
822 | ····if-nez·v0,·:cond_0 | 450 | ····if-nez·v0,·:cond_0 |
| |
823 | ····const-wide/16·v0,·0x0 | 451 | ····const-wide/16·v0,·0x0 |
| |
824 | ····return-wide·v0 | 452 | ····return-wide·v0 |
| |
825 | ····.line·158 | 453 | ····.line·157 |
826 | ····:cond_0 | 454 | ····:cond_0 |
827 | ····sget-object·v0,·Lcom/android/permissioncontroller/permission/model/AppPermissionUsage$GroupUsage$$ExternalSyntheticLambda0;->INSTANCE:Lcom/android/permissioncontroller/permission/model/AppPermissionUsage$GroupUsage$$ExternalSyntheticLambda0; | 455 | ····sget-object·v0,·Lcom/android/permissioncontroller/permission/model/AppPermissionUsage$GroupUsage$$ExternalSyntheticLambda0;->INSTANCE:Lcom/android/permissioncontroller/permission/model/AppPermissionUsage$GroupUsage$$ExternalSyntheticLambda0; |
| |
828 | ····invoke-direct·{p0,·v0},·Lcom/android/permissioncontroller/permission/model/AppPermissionUsage$GroupUsage;->lastAccessAggregate(Ljava/util/function/Function;)J | 456 | ····invoke-direct·{p0,·v0},·Lcom/android/permissioncontroller/permission/model/AppPermissionUsage$GroupUsage;->lastAccessAggregate(Ljava/util/function/Function;)J |
| |
829 | ····move-result-wide·v0 | 457 | ····move-result-wide·v0 |
| |
830 | ····return-wide·v0 | 458 | ····return-wide·v0 |
831 | .end·method | 459 | .end·method |
| |
832 | .method·public·hasDiscreteData()Z | 460 | .method·public·hasDiscreteData()Z |
833 | ····.locals·4 | 461 | ····.locals·4 |
| |
834 | ····.line·233 | 462 | ····.line·232 |
835 | ····iget-object·v0,·p0,·Lcom/android/permissioncontroller/permission/model/AppPermissionUsage$GroupUsage;->mHistoricalUsage:Landroid/app/AppOpsManager$HistoricalPackageOps; | 463 | ····iget-object·v0,·p0,·Lcom/android/permissioncontroller/permission/model/AppPermissionUsage$GroupUsage;->mHistoricalUsage:Landroid/app/AppOpsManager$HistoricalPackageOps; |
| |
836 | ····const/4·v1,·0x0 | 464 | ····const/4·v1,·0x0 |
| |
837 | ····if-nez·v0,·:cond_0 | 465 | ····if-nez·v0,·:cond_0 |
| |
838 | ····return·v1 | 466 | ····return·v1 |
| |
839 | ····.line·237 | 467 | ····.line·236 |
840 | ····:cond_0 | 468 | ····:cond_0 |
841 | ····iget-object·v0,·p0,·Lcom/android/permissioncontroller/permission/model/AppPermissionUsage$GroupUsage;->mGroup:Lcom/android/permissioncontroller/permission/model/AppPermissionGroup; | 469 | ····iget-object·v0,·p0,·Lcom/android/permissioncontroller/permission/model/AppPermissionUsage$GroupUsage;->mGroup:Lcom/android/permissioncontroller/permission/model/AppPermissionGroup; |
| |
842 | ····invoke-static·{v0},·Lcom/android/permissioncontroller/permission/model/AppPermissionUsage$GroupUsage;->getAllOps(Lcom/android/permissioncontroller/permission/model/AppPermissionGroup;)Ljava/util/Set; | 470 | ····invoke-static·{v0},·Lcom/android/permissioncontroller/permission/model/AppPermissionUsage$GroupUsage;->getAllOps(Lcom/android/permissioncontroller/permission/model/AppPermissionGroup;)Ljava/util/Set; |
| |
843 | ····move-result-object·v0 | 471 | ····move-result-object·v0 |
| |
844 | ····.line·238 | 472 | ····.line·237 |
845 | ····invoke-interface·{v0},·Ljava/util/Set;->iterator()Ljava/util/Iterator; | 473 | ····invoke-interface·{v0},·Ljava/util/Set;->iterator()Ljava/util/Iterator; |
| |
846 | ····move-result-object·v0 | 474 | ····move-result-object·v0 |
| |
847 | ····:cond_1 | 475 | ····:cond_1 |
848 | ····invoke-interface·{v0},·Ljava/util/Iterator;->hasNext()Z | 476 | ····invoke-interface·{v0},·Ljava/util/Iterator;->hasNext()Z |
| |
Offset 881, 24 lines modified | Offset 505, 24 lines modified |
| |
881 | ····invoke-interface·{v0},·Ljava/util/Iterator;->next()Ljava/lang/Object; | 505 | ····invoke-interface·{v0},·Ljava/util/Iterator;->next()Ljava/lang/Object; |
| |
882 | ····move-result-object·v2 | 506 | ····move-result-object·v2 |
| |
883 | ····check-cast·v2,·Ljava/lang/String; | 507 | ····check-cast·v2,·Ljava/lang/String; |
| |
884 | ····.line·239 | 508 | ····.line·238 |
885 | ····iget-object·v3,·p0,·Lcom/android/permissioncontroller/permission/model/AppPermissionUsage$GroupUsage;->mHistoricalUsage:Landroid/app/AppOpsManager$HistoricalPackageOps; | 509 | ····iget-object·v3,·p0,·Lcom/android/permissioncontroller/permission/model/AppPermissionUsage$GroupUsage;->mHistoricalUsage:Landroid/app/AppOpsManager$HistoricalPackageOps; |
| |
886 | ····invoke-virtual·{v3,·v2},·Landroid/app/AppOpsManager$HistoricalPackageOps;->getOp(Ljava/lang/String;)Landroid/app/AppOpsManager$HistoricalOp; | 510 | ····invoke-virtual·{v3,·v2},·Landroid/app/AppOpsManager$HistoricalPackageOps;->getOp(Ljava/lang/String;)Landroid/app/AppOpsManager$HistoricalOp; |
| |
887 | ····move-result-object·v2 | 511 | ····move-result-object·v2 |
| |
888 | ····if-eqz·v2,·:cond_1 | 512 | ····if-eqz·v2,·:cond_1 |
| |
889 | ····.line·240 | 513 | ····.line·239 |
890 | ····invoke-virtual·{v2},·Landroid/app/AppOpsManager$HistoricalOp;->getDiscreteAccessCount()I | 514 | ····invoke-virtual·{v2},·Landroid/app/AppOpsManager$HistoricalOp;->getDiscreteAccessCount()I |
| |
891 | ····move-result·v2 | 515 | ····move-result·v2 |
| |
892 | ····if-lez·v2,·:cond_1 | 516 | ····if-lez·v2,·:cond_1 |
| |
893 | ····const/4·p0,·0x1 | 517 | ····const/4·p0,·0x1 |