1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 |
- package com.epson.mobilephone.common.wifidirect;
- import android.content.Context;
- import android.content.pm.ApplicationInfo;
- import android.content.pm.PackageManager;
- import android.util.Log;
- public class EPLog {
- private static boolean isDebuggable = false;
- public static boolean isDebuggable(Context context) {
- ApplicationInfo applicationInfo;
- try {
- applicationInfo = context.getPackageManager().getApplicationInfo(context.getPackageName(), 0);
- } catch (PackageManager.NameNotFoundException unused) {
- isDebuggable = false;
- applicationInfo = null;
- }
- if ((applicationInfo.flags & 2) == 2) {
- isDebuggable = true;
- }
- return isDebuggable;
- }
- /* renamed from: d */
- public static final void m86d(String str, String str2) {
- if (isDebuggable) {
- Log.d(str, str2);
- }
- }
- /* renamed from: e */
- public static final void m87e(String str, String str2) {
- if (isDebuggable) {
- Log.e(str, str2);
- }
- }
- /* renamed from: i */
- public static final void m88i(String str, String str2) {
- if (isDebuggable) {
- Log.i(str, str2);
- }
- }
- /* renamed from: v */
- public static final void m89v(String str, String str2) {
- if (isDebuggable) {
- Log.v(str, str2);
- }
- }
- /* renamed from: w */
- public static final void m90w(String str, String str2) {
- if (isDebuggable) {
- Log.w(str, str2);
- }
- }
- }
|