package p058t;

import android.content.Context;
import android.view.View;

/* renamed from: t.a */
/* loaded from: classes.dex */
public class C1632a {
    /* renamed from: a */
    public static String m758a(Context context, int i) {
        if (i != -1) {
            try {
                return context.getResources().getResourceEntryName(i);
            } catch (Exception unused) {
                return "?" + i;
            }
        }
        return "UNKNOWN";
    }

    /* renamed from: b */
    public static String m757b(View view) {
        try {
            return view.getContext().getResources().getResourceEntryName(view.getId());
        } catch (Exception unused) {
            return "UNKNOWN";
        }
    }
}