44 lines
1.2 KiB
Java
44 lines
1.2 KiB
Java
|
package o;
|
||
|
|
||
|
import android.os.Process;
|
||
|
import android.text.TextUtils;
|
||
|
import java.util.IllegalFormatException;
|
||
|
import java.util.Locale;
|
||
|
|
||
|
/* loaded from: classes.dex */
|
||
|
public final class yax {
|
||
|
public final String d;
|
||
|
|
||
|
public yax(String str) {
|
||
|
int myUid = Process.myUid();
|
||
|
int myPid = Process.myPid();
|
||
|
StringBuilder sb = new StringBuilder("UID: [");
|
||
|
sb.append(myUid);
|
||
|
sb.append("] PID: [");
|
||
|
sb.append(myPid);
|
||
|
sb.append("] ");
|
||
|
this.d = sb.toString().concat(str);
|
||
|
}
|
||
|
|
||
|
public static String d(String str, String str2, Object... objArr) {
|
||
|
if (objArr.length > 0) {
|
||
|
try {
|
||
|
str2 = String.format(Locale.US, str2, objArr);
|
||
|
} catch (IllegalFormatException unused) {
|
||
|
String join = TextUtils.join(", ", objArr);
|
||
|
StringBuilder sb = new StringBuilder();
|
||
|
sb.append(str2);
|
||
|
sb.append(" [");
|
||
|
sb.append(join);
|
||
|
sb.append("]");
|
||
|
str2 = sb.toString();
|
||
|
}
|
||
|
}
|
||
|
StringBuilder sb2 = new StringBuilder();
|
||
|
sb2.append(str);
|
||
|
sb2.append(" : ");
|
||
|
sb2.append(str2);
|
||
|
return sb2.toString();
|
||
|
}
|
||
|
}
|