Util$2.smali 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. .class final Lokhttp3/internal/Util$2;
  2. .super Ljava/lang/Object;
  3. .source ""
  4. # interfaces
  5. .implements Ljava/util/concurrent/ThreadFactory;
  6. # annotations
  7. .annotation system Ldalvik/annotation/EnclosingMethod;
  8. value = Lokhttp3/internal/Util;->threadFactory(Ljava/lang/String;Z)Ljava/util/concurrent/ThreadFactory;
  9. .end annotation
  10. .annotation system Ldalvik/annotation/InnerClass;
  11. accessFlags = 0x0
  12. name = null
  13. .end annotation
  14. # instance fields
  15. .field final synthetic val$daemon:Z
  16. .field final synthetic val$name:Ljava/lang/String;
  17. # direct methods
  18. .method constructor <init>(Ljava/lang/String;Z)V
  19. .locals 0
  20. iput-object p1, p0, Lokhttp3/internal/Util$2;->val$name:Ljava/lang/String;
  21. iput-boolean p2, p0, Lokhttp3/internal/Util$2;->val$daemon:Z
  22. invoke-direct {p0}, Ljava/lang/Object;-><init>()V
  23. return-void
  24. .end method
  25. # virtual methods
  26. .method public newThread(Ljava/lang/Runnable;)Ljava/lang/Thread;
  27. .locals 2
  28. new-instance v0, Ljava/lang/Thread;
  29. iget-object v1, p0, Lokhttp3/internal/Util$2;->val$name:Ljava/lang/String;
  30. invoke-direct {v0, p1, v1}, Ljava/lang/Thread;-><init>(Ljava/lang/Runnable;Ljava/lang/String;)V
  31. iget-boolean p1, p0, Lokhttp3/internal/Util$2;->val$daemon:Z
  32. invoke-virtual {v0, p1}, Ljava/lang/Thread;->setDaemon(Z)V
  33. return-object v0
  34. .end method