- Added realracing3-community.apk (71.57 MB) - Removed 32-bit support (armeabi-v7a) - Only includes arm64-v8a libraries - Decompiled source code included - Added README-community.md with analysis
69 lines
2.1 KiB
Java
69 lines
2.1 KiB
Java
package com.ironsource.mediationsdk;
|
|
|
|
import com.ironsource.mediationsdk.model.NetworkSettings;
|
|
import java.util.ArrayList;
|
|
import java.util.Iterator;
|
|
import java.util.List;
|
|
import java.util.concurrent.ConcurrentHashMap;
|
|
|
|
/* loaded from: classes4.dex */
|
|
public class h {
|
|
public static final int c = -1;
|
|
public static final int d = 0;
|
|
private ConcurrentHashMap<String, ArrayList<a>> a = new ConcurrentHashMap<>();
|
|
private int b;
|
|
|
|
public enum a {
|
|
ISAuctionPerformanceDidntAttemptToLoad,
|
|
ISAuctionPerformanceFailedToLoad,
|
|
ISAuctionPerformanceLoadedSuccessfully,
|
|
ISAuctionPerformanceFailedToShow,
|
|
ISAuctionPerformanceShowedSuccessfully,
|
|
ISAuctionPerformanceNotPartOfWaterfall
|
|
}
|
|
|
|
public h(List<NetworkSettings> list, int i) {
|
|
this.b = i;
|
|
for (NetworkSettings networkSettings : list) {
|
|
this.a.put(networkSettings.getProviderName(), new ArrayList<>());
|
|
}
|
|
}
|
|
|
|
public String a(String str) {
|
|
ArrayList<a> arrayList = this.a.get(str);
|
|
String str2 = "";
|
|
if (arrayList != null && !arrayList.isEmpty()) {
|
|
Iterator<a> it = arrayList.iterator();
|
|
StringBuilder sb = new StringBuilder();
|
|
while (true) {
|
|
sb.append(str2);
|
|
sb.append(it.next().ordinal());
|
|
str2 = sb.toString();
|
|
if (!it.hasNext()) {
|
|
break;
|
|
}
|
|
str2 = str2 + ",";
|
|
sb = new StringBuilder();
|
|
}
|
|
}
|
|
return str2;
|
|
}
|
|
|
|
public void a(ConcurrentHashMap<String, a> concurrentHashMap) {
|
|
if (this.b == 0) {
|
|
return;
|
|
}
|
|
for (String str : this.a.keySet()) {
|
|
a aVar = a.ISAuctionPerformanceNotPartOfWaterfall;
|
|
if (concurrentHashMap.containsKey(str)) {
|
|
aVar = concurrentHashMap.get(str);
|
|
}
|
|
ArrayList<a> arrayList = this.a.get(str);
|
|
if (this.b != -1 && arrayList.size() == this.b) {
|
|
arrayList.remove(0);
|
|
}
|
|
arrayList.add(aVar);
|
|
}
|
|
}
|
|
}
|