NamedRunnable.smali 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. .class public abstract Lokhttp3/internal/NamedRunnable;
  2. .super Ljava/lang/Object;
  3. .source ""
  4. # interfaces
  5. .implements Ljava/lang/Runnable;
  6. # instance fields
  7. .field protected final name:Ljava/lang/String;
  8. # direct methods
  9. .method public varargs constructor <init>(Ljava/lang/String;[Ljava/lang/Object;)V
  10. .locals 0
  11. invoke-direct {p0}, Ljava/lang/Object;-><init>()V
  12. invoke-static {p1, p2}, Lokhttp3/internal/Util;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
  13. move-result-object p1
  14. iput-object p1, p0, Lokhttp3/internal/NamedRunnable;->name:Ljava/lang/String;
  15. return-void
  16. .end method
  17. # virtual methods
  18. .method protected abstract execute()V
  19. .end method
  20. .method public final run()V
  21. .locals 3
  22. invoke-static {}, Ljava/lang/Thread;->currentThread()Ljava/lang/Thread;
  23. move-result-object v0
  24. invoke-virtual {v0}, Ljava/lang/Thread;->getName()Ljava/lang/String;
  25. move-result-object v0
  26. invoke-static {}, Ljava/lang/Thread;->currentThread()Ljava/lang/Thread;
  27. move-result-object v1
  28. iget-object v2, p0, Lokhttp3/internal/NamedRunnable;->name:Ljava/lang/String;
  29. invoke-virtual {v1, v2}, Ljava/lang/Thread;->setName(Ljava/lang/String;)V
  30. :try_start_0
  31. invoke-virtual {p0}, Lokhttp3/internal/NamedRunnable;->execute()V
  32. :try_end_0
  33. .catchall {:try_start_0 .. :try_end_0} :catchall_0
  34. invoke-static {}, Ljava/lang/Thread;->currentThread()Ljava/lang/Thread;
  35. move-result-object v1
  36. invoke-virtual {v1, v0}, Ljava/lang/Thread;->setName(Ljava/lang/String;)V
  37. return-void
  38. :catchall_0
  39. move-exception v1
  40. invoke-static {}, Ljava/lang/Thread;->currentThread()Ljava/lang/Thread;
  41. move-result-object v2
  42. invoke-virtual {v2, v0}, Ljava/lang/Thread;->setName(Ljava/lang/String;)V
  43. throw v1
  44. .end method