52 lines
1.5 KiB
Java
52 lines
1.5 KiB
Java
|
package com.facetec.sdk;
|
||
|
|
||
|
import java.util.HashMap;
|
||
|
|
||
|
/* JADX INFO: Access modifiers changed from: package-private */
|
||
|
/* loaded from: classes.dex */
|
||
|
public final class aw {
|
||
|
private static HashMap<String, Long> b = new HashMap<>();
|
||
|
|
||
|
aw() {
|
||
|
}
|
||
|
|
||
|
/* JADX INFO: Access modifiers changed from: package-private */
|
||
|
public static void e(String str) {
|
||
|
if (!b.containsKey(d(str)) || b.containsKey(a(str))) {
|
||
|
return;
|
||
|
}
|
||
|
b.put(a(str), Long.valueOf(System.nanoTime()));
|
||
|
}
|
||
|
|
||
|
/* JADX INFO: Access modifiers changed from: package-private */
|
||
|
public static long b(String str) {
|
||
|
long longValue = b.containsKey(d(str)) ? b.get(d(str)).longValue() : -1L;
|
||
|
long longValue2 = b.containsKey(a(str)) ? b.get(a(str)).longValue() : -1L;
|
||
|
if (longValue == -1) {
|
||
|
return 0L;
|
||
|
}
|
||
|
return longValue2 == -1 ? System.nanoTime() - longValue : longValue2 - longValue;
|
||
|
}
|
||
|
|
||
|
private static String d(String str) {
|
||
|
StringBuilder sb = new StringBuilder();
|
||
|
sb.append(str);
|
||
|
sb.append("__S");
|
||
|
return sb.toString();
|
||
|
}
|
||
|
|
||
|
private static String a(String str) {
|
||
|
StringBuilder sb = new StringBuilder();
|
||
|
sb.append(str);
|
||
|
sb.append("__E");
|
||
|
return sb.toString();
|
||
|
}
|
||
|
|
||
|
/* JADX INFO: Access modifiers changed from: package-private */
|
||
|
public static void c(String str) {
|
||
|
b.remove(d(str));
|
||
|
b.remove(a(str));
|
||
|
b.put(d(str), Long.valueOf(System.nanoTime()));
|
||
|
}
|
||
|
}
|