39 lines
1.2 KiB
Java
39 lines
1.2 KiB
Java
|
package o;
|
||
|
|
||
|
import android.content.Context;
|
||
|
import android.view.View;
|
||
|
import com.huawei.hms.framework.network.grs.GrsBaseInfo;
|
||
|
|
||
|
/* renamed from: o.ccO, reason: case insensitive filesystem */
|
||
|
/* loaded from: classes.dex */
|
||
|
public final class C6805ccO {
|
||
|
public static String d(View view) {
|
||
|
try {
|
||
|
return view.getContext().getResources().getResourceEntryName(view.getId());
|
||
|
} catch (Exception unused) {
|
||
|
return GrsBaseInfo.CountryCodeSource.UNKNOWN;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
public static String e(Context context, int i) {
|
||
|
if (i != -1) {
|
||
|
try {
|
||
|
return context.getResources().getResourceEntryName(i);
|
||
|
} catch (Exception unused) {
|
||
|
return "?".concat(String.valueOf(i));
|
||
|
}
|
||
|
}
|
||
|
return GrsBaseInfo.CountryCodeSource.UNKNOWN;
|
||
|
}
|
||
|
|
||
|
public static String a() {
|
||
|
StackTraceElement stackTraceElement = new Throwable().getStackTrace()[1];
|
||
|
StringBuilder sb = new StringBuilder(".(");
|
||
|
sb.append(stackTraceElement.getFileName());
|
||
|
sb.append(":");
|
||
|
sb.append(stackTraceElement.getLineNumber());
|
||
|
sb.append(")");
|
||
|
return sb.toString();
|
||
|
}
|
||
|
}
|