EPLog.java 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. package com.epson.mobilephone.common.wifidirect;
  2. import android.content.Context;
  3. import android.content.pm.ApplicationInfo;
  4. import android.content.pm.PackageManager;
  5. import android.util.Log;
  6. public class EPLog {
  7. private static boolean isDebuggable = false;
  8. public static boolean isDebuggable(Context context) {
  9. ApplicationInfo applicationInfo;
  10. try {
  11. applicationInfo = context.getPackageManager().getApplicationInfo(context.getPackageName(), 0);
  12. } catch (PackageManager.NameNotFoundException unused) {
  13. isDebuggable = false;
  14. applicationInfo = null;
  15. }
  16. if ((applicationInfo.flags & 2) == 2) {
  17. isDebuggable = true;
  18. }
  19. return isDebuggable;
  20. }
  21. /* renamed from: d */
  22. public static final void m86d(String str, String str2) {
  23. if (isDebuggable) {
  24. Log.d(str, str2);
  25. }
  26. }
  27. /* renamed from: e */
  28. public static final void m87e(String str, String str2) {
  29. if (isDebuggable) {
  30. Log.e(str, str2);
  31. }
  32. }
  33. /* renamed from: i */
  34. public static final void m88i(String str, String str2) {
  35. if (isDebuggable) {
  36. Log.i(str, str2);
  37. }
  38. }
  39. /* renamed from: v */
  40. public static final void m89v(String str, String str2) {
  41. if (isDebuggable) {
  42. Log.v(str, str2);
  43. }
  44. }
  45. /* renamed from: w */
  46. public static final void m90w(String str, String str2) {
  47. if (isDebuggable) {
  48. Log.w(str, str2);
  49. }
  50. }
  51. }