| | | |
Offset 9, 131 lines modified | Offset 9, 131 lines modified |
9 | .end·annotation | 9 | .end·annotation |
| |
10 | .annotation·system·Ldalvik/annotation/InnerClass; | 10 | .annotation·system·Ldalvik/annotation/InnerClass; |
11 | ····accessFlags·=·0x9 | 11 | ····accessFlags·=·0x9 |
12 | ····name·=·"AppDataCache" | 12 | ····name·=·"AppDataCache" |
13 | .end·annotation | 13 | .end·annotation |
| |
14 | .annotation·system·Ldalvik/annotation/MemberClasses; | |
15 | ····value·=·{ | |
16 | ········Lcom/android/permissioncontroller/permission/model/legacy/PermissionApps$AppDataCache$AppData; | |
17 | ····} | |
18 | .end·annotation | |
| |
| |
19 | #·instance·fields | 14 | #·instance·fields |
20 | .field·private·final·mCache:Landroid/util/SparseArray; | 15 | .field·private·final·mCache:Landroid/util/SparseArray; |
21 | ····.annotation·system·Ldalvik/annotation/Signature; | 16 | ····.annotation·system·Ldalvik/annotation/Signature; |
22 | ········value·=·{ | 17 | ········value·=·{ |
23 | ············"Landroid/util/SparseArray<", | 18 | ············"Landroid/util/SparseArray<", |
24 | ············"Landroid/util/ArrayMap<", | 19 | ············"Landroid/util/ArrayMap<", |
25 | ············"Ljava/lang/String;", | 20 | ············"Ljava/lang/String;", |
26 | ············"Lcom/android/permissioncontroller/permission/model/legacy/PermissionApps$AppDataCache$AppData;", | 21 | ············"Landroid/util/Pair<", |
| 22 | ············"Ljava/lang/String;", |
| 23 | ············"Landroid/graphics/drawable/Drawable;", |
27 | ············">;>;" | 24 | ············">;>;>;" |
28 | ········} | 25 | ········} |
29 | ····.end·annotation | 26 | ····.end·annotation |
30 | .end·field | 27 | .end·field |
| |
31 | .field·private·final·mContext:Landroid/content/Context; | 28 | .field·private·final·mContext:Landroid/content/Context; |
| |
32 | .field·private·final·mPm:Landroid/content/pm/PackageManager; | 29 | .field·private·final·mPm:Landroid/content/pm/PackageManager; |
| |
| |
33 | #·direct·methods | 30 | #·direct·methods |
34 | .method·public·constructor·<init>(Landroid/content/pm/PackageManager;Landroid/content/Context;)V | 31 | .method·public·constructor·<init>(Landroid/content/pm/PackageManager;Landroid/content/Context;)V |
35 | ····.locals·1 | 32 | ····.locals·1 |
| |
36 | ····.line·555 | 33 | ····.line·503 |
37 | ····invoke-direct·{p0},·Ljava/lang/Object;-><init>()V | 34 | ····invoke-direct·{p0},·Ljava/lang/Object;-><init>()V |
| |
38 | ····.line·550 | 35 | ····.line·498 |
39 | ····new-instance·v0,·Landroid/util/SparseArray; | 36 | ····new-instance·v0,·Landroid/util/SparseArray; |
| |
40 | ····invoke-direct·{v0},·Landroid/util/SparseArray;-><init>()V | 37 | ····invoke-direct·{v0},·Landroid/util/SparseArray;-><init>()V |
| |
41 | ····iput-object·v0,·p0,·Lcom/android/permissioncontroller/permission/model/legacy/PermissionApps$AppDataCache;->mCache:Landroid/util/SparseArray; | 38 | ····iput-object·v0,·p0,·Lcom/android/permissioncontroller/permission/model/legacy/PermissionApps$AppDataCache;->mCache:Landroid/util/SparseArray; |
| |
42 | ····.line·556 | 39 | ····.line·504 |
43 | ····iput-object·p1,·p0,·Lcom/android/permissioncontroller/permission/model/legacy/PermissionApps$AppDataCache;->mPm:Landroid/content/pm/PackageManager; | 40 | ····iput-object·p1,·p0,·Lcom/android/permissioncontroller/permission/model/legacy/PermissionApps$AppDataCache;->mPm:Landroid/content/pm/PackageManager; |
| |
44 | ····.line·557 | 41 | ····.line·505 |
45 | ····iput-object·p2,·p0,·Lcom/android/permissioncontroller/permission/model/legacy/PermissionApps$AppDataCache;->mContext:Landroid/content/Context; | 42 | ····iput-object·p2,·p0,·Lcom/android/permissioncontroller/permission/model/legacy/PermissionApps$AppDataCache;->mContext:Landroid/content/Context; |
| |
46 | ····return-void | 43 | ····return-void |
47 | .end·method | 44 | .end·method |
| |
| |
48 | #·virtual·methods | 45 | #·virtual·methods |
49 | .method·public·getAppData(ILandroid/content/pm/ApplicationInfo;)Lcom/android/permissioncontroller/permission/model/legacy/PermissionApps$AppDataCache$AppData; | 46 | .method·public·getAppData(ILandroid/content/pm/ApplicationInfo;)Landroid/util/Pair; |
50 | ····.locals·2 | 47 | ····.locals·2 |
| 48 | ····.annotation·system·Ldalvik/annotation/Signature; |
| 49 | ········value·=·{ |
| 50 | ············"(I", |
| 51 | ············"Landroid/content/pm/ApplicationInfo;", |
| 52 | ············")", |
| 53 | ············"Landroid/util/Pair<", |
| 54 | ············"Ljava/lang/String;", |
| 55 | ············"Landroid/graphics/drawable/Drawable;", |
| 56 | ············">;" |
| 57 | ········} |
| 58 | ····.end·annotation |
| |
51 | ····.line·570 | 59 | ····.line·518 |
52 | ····iget-object·v0,·p0,·Lcom/android/permissioncontroller/permission/model/legacy/PermissionApps$AppDataCache;->mCache:Landroid/util/SparseArray; | 60 | ····iget-object·v0,·p0,·Lcom/android/permissioncontroller/permission/model/legacy/PermissionApps$AppDataCache;->mCache:Landroid/util/SparseArray; |
| |
53 | ····invoke-virtual·{v0,·p1},·Landroid/util/SparseArray;->get(I)Ljava/lang/Object; | 61 | ····invoke-virtual·{v0,·p1},·Landroid/util/SparseArray;->get(I)Ljava/lang/Object; |
| |
54 | ····move-result-object·v0 | 62 | ····move-result-object·v0 |
| |
55 | ····check-cast·v0,·Landroid/util/ArrayMap; | 63 | ····check-cast·v0,·Landroid/util/ArrayMap; |
| |
56 | ····if-nez·v0,·:cond_0 | 64 | ····if-nez·v0,·:cond_0 |
| |
57 | ····.line·572 | 65 | ····.line·520 |
58 | ····new-instance·v0,·Landroid/util/ArrayMap; | 66 | ····new-instance·v0,·Landroid/util/ArrayMap; |
| |
59 | ····invoke-direct·{v0},·Landroid/util/ArrayMap;-><init>()V | 67 | ····invoke-direct·{v0},·Landroid/util/ArrayMap;-><init>()V |
| |
60 | ····.line·573 | 68 | ····.line·521 |
61 | ····iget-object·v1,·p0,·Lcom/android/permissioncontroller/permission/model/legacy/PermissionApps$AppDataCache;->mCache:Landroid/util/SparseArray; | 69 | ····iget-object·v1,·p0,·Lcom/android/permissioncontroller/permission/model/legacy/PermissionApps$AppDataCache;->mCache:Landroid/util/SparseArray; |
| |
62 | ····invoke-virtual·{v1,·p1,·v0},·Landroid/util/SparseArray;->put(ILjava/lang/Object;)V | 70 | ····invoke-virtual·{v1,·p1,·v0},·Landroid/util/SparseArray;->put(ILjava/lang/Object;)V |
| |
63 | ····.line·575 | 71 | ····.line·523 |
64 | ····:cond_0 | 72 | ····:cond_0 |
65 | ····iget-object·p1,·p2,·Landroid/content/pm/ApplicationInfo;->packageName:Ljava/lang/String; | 73 | ····iget-object·p1,·p2,·Landroid/content/pm/ApplicationInfo;->packageName:Ljava/lang/String; |
| |
66 | ····invoke-virtual·{v0,·p1},·Landroid/util/ArrayMap;->get(Ljava/lang/Object;)Ljava/lang/Object; | 74 | ····invoke-virtual·{v0,·p1},·Landroid/util/ArrayMap;->get(Ljava/lang/Object;)Ljava/lang/Object; |
| |
67 | ····move-result-object·p1 | 75 | ····move-result-object·p1 |
| |
68 | ····check-cast·p1,·Lcom/android/permissioncontroller/permission/model/legacy/PermissionApps$AppDataCache$AppData; | 76 | ····check-cast·p1,·Landroid/util/Pair; |
| |
69 | ····if-nez·p1,·:cond_1 | 77 | ····if-nez·p1,·:cond_1 |
| |
70 | ····.line·577 | 78 | ····.line·525 |
71 | ····iget-object·p1,·p0,·Lcom/android/permissioncontroller/permission/model/legacy/PermissionApps$AppDataCache;->mPm:Landroid/content/pm/PackageManager; | 79 | ····iget-object·p1,·p0,·Lcom/android/permissioncontroller/permission/model/legacy/PermissionApps$AppDataCache;->mPm:Landroid/content/pm/PackageManager; |
| |
72 | ····invoke-virtual·{p2,·p1},·Landroid/content/pm/ApplicationInfo;->loadLabel(Landroid/content/pm/PackageManager;)Ljava/lang/CharSequence; | 80 | ····invoke-virtual·{p2,·p1},·Landroid/content/pm/ApplicationInfo;->loadLabel(Landroid/content/pm/PackageManager;)Ljava/lang/CharSequence; |
| |
73 | ····move-result-object·p1 | 81 | ····move-result-object·p1 |
| |
74 | ····invoke-interface·{p1},·Ljava/lang/CharSequence;->toString()Ljava/lang/String; | 82 | ····invoke-interface·{p1},·Ljava/lang/CharSequence;->toString()Ljava/lang/String; |
| |
75 | ····move-result-object·p1 | 83 | ····move-result-object·p1 |
| |
76 | ····iget-object·v1,·p0,·Lcom/android/permissioncontroller/permission/model/legacy/PermissionApps$AppDataCache;->mContext:Landroid/content/Context; | |
| |
77 | ····.line·578 | |
78 | ····invoke-static·{v1,·p2},·Lcom/android/permissioncontroller/permission/utils/Utils;->getBadgedIcon(Landroid/content/Context;Landroid/content/pm/ApplicationInfo;)Landroid/graphics/drawable/Drawable; | |
| |
79 | ····move-result-object·v1 | |
| |
80 | ····iget-object·p0,·p0,·Lcom/android/permissioncontroller/permission/model/legacy/PermissionApps$AppDataCache;->mContext:Landroid/content/Context; | 84 | ····iget-object·p0,·p0,·Lcom/android/permissioncontroller/permission/model/legacy/PermissionApps$AppDataCache;->mContext:Landroid/content/Context; |
| |
81 | ····.line·579 | 85 | ····.line·526 |
82 | ····invoke-static·{p0,·p2},·Lcom/android/permissioncontroller/permission/utils/SubattributionUtils;->getAttributionLabels(Landroid/content/Context;Landroid/content/pm/ApplicationInfo;)Ljava/util/Map; | 86 | ····invoke-static·{p0,·p2},·Lcom/android/permissioncontroller/permission/utils/Utils;->getBadgedIcon(Landroid/content/Context;Landroid/content/pm/ApplicationInfo;)Landroid/graphics/drawable/Drawable; |
| |
83 | ····move-result-object·p0 | 87 | ····move-result-object·p0 |
| |
84 | ····.line·577 | 88 | ····.line·525 |
85 | ····invoke-static·{p1,·v1,·p0},·Lcom/android/permissioncontroller/permission/model/legacy/PermissionApps$AppDataCache$AppData;->create(Ljava/lang/String;Landroid/graphics/drawable/Drawable;Ljava/util/Map;)Lcom/android/permissioncontroller/permission/model/legacy/PermissionApps$AppDataCache$AppData; | 89 | ····invoke-static·{p1,·p0},·Landroid/util/Pair;->create(Ljava/lang/Object;Ljava/lang/Object;)Landroid/util/Pair; |
| |
86 | ····move-result-object·p1 | 90 | ····move-result-object·p1 |
| |
87 | ····.line·580 | 91 | ····.line·527 |
88 | ····iget-object·p0,·p2,·Landroid/content/pm/ApplicationInfo;->packageName:Ljava/lang/String; | 92 | ····iget-object·p0,·p2,·Landroid/content/pm/ApplicationInfo;->packageName:Ljava/lang/String; |
| |
89 | ····invoke-virtual·{v0,·p0,·p1},·Landroid/util/ArrayMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; | 93 | ····invoke-virtual·{v0,·p0,·p1},·Landroid/util/ArrayMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; |
| |
90 | ····:cond_1 | 94 | ····:cond_1 |
91 | ····return-object·p1 | 95 | ····return-object·p1 |
92 | .end·method | 96 | .end·method |