Offset 9, 131 lines modifiedOffset 9, 131 lines modified
9 .end·annotation9 .end·annotation
  
10 .annotation·system·Ldalvik/annotation/InnerClass;10 .annotation·system·Ldalvik/annotation/InnerClass;
11 ····accessFlags·=·0x911 ····accessFlags·=·0x9
12 ····name·=·"AppDataCache"12 ····name·=·"AppDataCache"
13 .end·annotation13 .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·fields14 #·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·annotation26 ····.end·annotation
30 .end·field27 .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·methods30 #·direct·methods
34 .method·public·constructor·<init>(Landroid/content/pm/PackageManager;Landroid/content/Context;)V31 .method·public·constructor·<init>(Landroid/content/pm/PackageManager;Landroid/content/Context;)V
35 ····.locals·132 ····.locals·1
  
36 ····.line·55533 ····.line·503
37 ····invoke-direct·{p0},·Ljava/lang/Object;-><init>()V34 ····invoke-direct·{p0},·Ljava/lang/Object;-><init>()V
  
38 ····.line·55035 ····.line·498
39 ····new-instance·v0,·Landroid/util/SparseArray;36 ····new-instance·v0,·Landroid/util/SparseArray;
  
40 ····invoke-direct·{v0},·Landroid/util/SparseArray;-><init>()V37 ····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·55639 ····.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·55741 ····.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-void43 ····return-void
47 .end·method44 .end·method
  
  
48 #·virtual·methods45 #·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·247 ····.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·57059 ····.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·v062 ····move-result-object·v0
  
55 ····check-cast·v0,·Landroid/util/ArrayMap;63 ····check-cast·v0,·Landroid/util/ArrayMap;
  
56 ····if-nez·v0,·:cond_064 ····if-nez·v0,·:cond_0
  
57 ····.line·57265 ····.line·520
58 ····new-instance·v0,·Landroid/util/ArrayMap;66 ····new-instance·v0,·Landroid/util/ArrayMap;
  
59 ····invoke-direct·{v0},·Landroid/util/ArrayMap;-><init>()V67 ····invoke-direct·{v0},·Landroid/util/ArrayMap;-><init>()V
  
60 ····.line·57368 ····.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;)V70 ····invoke-virtual·{v1,·p1,·v0},·Landroid/util/SparseArray;->put(ILjava/lang/Object;)V
  
63 ····.line·57571 ····.line·523
64 ····:cond_072 ····: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·p175 ····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_177 ····if-nez·p1,·:cond_1
  
70 ····.line·57778 ····.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·p181 ····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·p183 ····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·57985 ····.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·p087 ····move-result-object·p0
  
84 ····.line·57788 ····.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·p190 ····move-result-object·p1
  
87 ····.line·58091 ····.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_194 ····:cond_1
91 ····return-object·p195 ····return-object·p1
92 .end·method96 .end·method