Advertisement
Guest User

Untitled

a guest
Jun 24th, 2017
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 23.62 KB | None | 0 0
  1. .class public final Lcom/pinterest/api/remote/a;
  2. .super Ljava/lang/Object;
  3. .source "SourceFile"
  4.  
  5.  
  6. # annotations
  7. .annotation system Ldalvik/annotation/MemberClasses;
  8. value = {
  9. Lcom/pinterest/api/remote/a$b;,
  10. Lcom/pinterest/api/remote/a$a;
  11. }
  12. .end annotation
  13.  
  14.  
  15. # static fields
  16. .field private static a:Ljava/util/List;
  17. .annotation system Ldalvik/annotation/Signature;
  18. value = {
  19. "Ljava/util/List",
  20. "<",
  21. "Lcom/google/gson/n;",
  22. ">;"
  23. }
  24. .end annotation
  25. .end field
  26.  
  27. .field private static b:Ljava/util/List;
  28. .annotation system Ldalvik/annotation/Signature;
  29. value = {
  30. "Ljava/util/List",
  31. "<",
  32. "Lcom/c/a/a/e;",
  33. ">;"
  34. }
  35. .end annotation
  36. .end field
  37.  
  38.  
  39. # direct methods
  40. .method static constructor <clinit>()V
  41. .locals 2
  42.  
  43. .prologue
  44. .line 141
  45. new-instance v0, Ljava/util/ArrayList;
  46.  
  47. invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
  48.  
  49. sput-object v0, Lcom/pinterest/api/remote/a;->a:Ljava/util/List;
  50.  
  51. .line 218
  52. new-instance v0, Ljava/util/ArrayList;
  53.  
  54. const/16 v1, 0x19
  55.  
  56. invoke-direct {v0, v1}, Ljava/util/ArrayList;-><init>(I)V
  57.  
  58. sput-object v0, Lcom/pinterest/api/remote/a;->b:Ljava/util/List;
  59.  
  60. return-void
  61. .end method
  62.  
  63. .method public static declared-synchronized a()V
  64. .locals 8
  65.  
  66. .prologue
  67. .line 199
  68. const-class v7, Lcom/pinterest/api/remote/a;
  69.  
  70. monitor-enter v7
  71.  
  72. :try_start_0
  73. sget-object v0, Lcom/pinterest/api/remote/a;->a:Ljava/util/List;
  74.  
  75. invoke-interface {v0}, Ljava/util/List;->size()I
  76.  
  77. move-result v0
  78.  
  79. if-lez v0, :cond_1
  80.  
  81. .line 200
  82. new-instance v1, Lcom/google/gson/i;
  83.  
  84. invoke-direct {v1}, Lcom/google/gson/i;-><init>()V
  85.  
  86. .line 201
  87. sget-object v0, Lcom/pinterest/api/remote/a;->a:Ljava/util/List;
  88.  
  89. invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;
  90.  
  91. move-result-object v2
  92.  
  93. :goto_0
  94. invoke-interface {v2}, Ljava/util/Iterator;->hasNext()Z
  95.  
  96. move-result v0
  97.  
  98. if-eqz v0, :cond_0
  99.  
  100. invoke-interface {v2}, Ljava/util/Iterator;->next()Ljava/lang/Object;
  101.  
  102. move-result-object v0
  103.  
  104. check-cast v0, Lcom/google/gson/n;
  105.  
  106. .line 202
  107. invoke-virtual {v1, v0}, Lcom/google/gson/i;->a(Lcom/google/gson/l;)V
  108. :try_end_0
  109. .catchall {:try_start_0 .. :try_end_0} :catchall_0
  110.  
  111. goto :goto_0
  112.  
  113. .line 199
  114. :catchall_0
  115. move-exception v0
  116.  
  117. monitor-exit v7
  118.  
  119. throw v0
  120.  
  121. .line 4175
  122. :cond_0
  123. :try_start_1
  124. new-instance v5, Lcom/google/gson/n;
  125.  
  126. invoke-direct {v5}, Lcom/google/gson/n;-><init>()V
  127.  
  128. .line 4176
  129. const-string v0, "events"
  130.  
  131. invoke-virtual {v5, v0, v1}, Lcom/google/gson/n;->a(Ljava/lang/String;Lcom/google/gson/l;)V
  132.  
  133. .line 4177
  134. const-string v0, "log/mobile_perf/"
  135.  
  136. invoke-static {v0}, Lcom/pinterest/api/e;->c(Ljava/lang/String;)Ljava/lang/String;
  137.  
  138. move-result-object v0
  139.  
  140. .line 4178
  141. const-string v1, "POST"
  142.  
  143. const/4 v2, 0x0
  144.  
  145. new-instance v3, Lcom/pinterest/api/remote/a$1;
  146.  
  147. invoke-direct {v3}, Lcom/pinterest/api/remote/a$1;-><init>()V
  148.  
  149. const/4 v4, 0x0
  150.  
  151. const-string v6, "ApiTagPersist"
  152.  
  153. invoke-static/range {v0 .. v6}, Lcom/pinterest/api/e;->a(Ljava/lang/String;Ljava/lang/String;Ljava/util/Map;Lcom/pinterest/api/h;ZLcom/google/gson/l;Ljava/lang/String;)V
  154.  
  155. .line 205
  156. sget-object v0, Lcom/pinterest/api/remote/a;->a:Ljava/util/List;
  157.  
  158. invoke-interface {v0}, Ljava/util/List;->clear()V
  159. :try_end_1
  160. .catchall {:try_start_1 .. :try_end_1} :catchall_0
  161.  
  162. .line 207
  163. :cond_1
  164. monitor-exit v7
  165.  
  166. return-void
  167. .end method
  168.  
  169. .method private static a(Lcom/c/a/a/f;)V
  170. .locals 8
  171.  
  172. .prologue
  173. const/4 v4, 0x0
  174.  
  175. const/4 v2, 0x0
  176.  
  177. .line 271
  178. if-eqz p0, :cond_0
  179.  
  180. .line 6156
  181. iget-object v0, p0, Lcom/c/a/a/f;->a:Ljava/util/List;
  182.  
  183. if-nez v0, :cond_1
  184.  
  185. move v0, v4
  186.  
  187. .line 271
  188. :goto_0
  189. if-nez v0, :cond_2
  190.  
  191. .line 299
  192. :cond_0
  193. :goto_1
  194. return-void
  195.  
  196. .line 6156
  197. :cond_1
  198. iget-object v0, p0, Lcom/c/a/a/f;->a:Ljava/util/List;
  199.  
  200. invoke-interface {v0}, Ljava/util/List;->size()I
  201.  
  202. move-result v0
  203.  
  204. goto :goto_0
  205.  
  206. .line 277
  207. :cond_2
  208. :try_start_0
  209. sget-object v0, Lcom/pinterest/api/remote/a$a;->a:Lorg/apache/thrift/f;
  210.  
  211. invoke-virtual {v0, p0}, Lorg/apache/thrift/f;->a(Lorg/apache/thrift/c;)[B
  212. :try_end_0
  213. .catch Lorg/apache/thrift/TException; {:try_start_0 .. :try_end_0} :catch_0
  214.  
  215. move-result-object v1
  216.  
  217. .line 282
  218. invoke-static {}, Lcom/pinterest/api/e;->e()Ljava/lang/String;
  219.  
  220. move-result-object v0
  221.  
  222. .line 283
  223. new-instance v7, Lcom/pinterest/api/u;
  224.  
  225. invoke-direct {v7}, Lcom/pinterest/api/u;-><init>()V
  226.  
  227. .line 284
  228. const-string v3, "v0_client_tracing_log_events"
  229.  
  230. new-instance v5, Ljava/io/ByteArrayInputStream;
  231.  
  232. invoke-direct {v5, v1}, Ljava/io/ByteArrayInputStream;-><init>([B)V
  233.  
  234. const-string v1, "application/vnd.apache.thrift.compact"
  235.  
  236. invoke-virtual {v7, v3, v5, v2, v1}, Lcom/pinterest/api/u;->a(Ljava/lang/String;Ljava/io/InputStream;Ljava/lang/String;Ljava/lang/String;)V
  237.  
  238. .line 286
  239. const-string v1, "POST"
  240.  
  241. new-instance v3, Lcom/pinterest/api/remote/a$2;
  242.  
  243. invoke-direct {v3}, Lcom/pinterest/api/remote/a$2;-><init>()V
  244.  
  245. const-string v5, "ApiTagPersist"
  246.  
  247. move-object v6, v2
  248.  
  249. invoke-static/range {v0 .. v7}, Lcom/pinterest/api/e;->a(Ljava/lang/String;Ljava/lang/String;Ljava/util/Map;Lcom/pinterest/api/h;ZLjava/lang/String;Lcom/google/gson/l;Lcom/pinterest/api/u;)V
  250.  
  251. goto :goto_1
  252.  
  253. .line 279
  254. :catch_0
  255. move-exception v0
  256.  
  257. new-instance v1, Ljava/lang/StringBuilder;
  258.  
  259. const-string v2, "submitSpans failed on serialization: "
  260.  
  261. invoke-direct {v1, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
  262.  
  263. invoke-virtual {v1, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
  264.  
  265. move-result-object v1
  266.  
  267. invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
  268.  
  269. move-result-object v1
  270.  
  271. invoke-static {v0, v1}, Lcom/pinterest/f/f/a;->a(Ljava/lang/Throwable;Ljava/lang/String;)V
  272.  
  273. goto :goto_1
  274. .end method
  275.  
  276. .method public static declared-synchronized a(Lcom/google/gson/n;)V
  277. .locals 3
  278.  
  279. .prologue
  280. .line 162
  281. const-class v1, Lcom/pinterest/api/remote/a;
  282.  
  283. monitor-enter v1
  284.  
  285. :try_start_0
  286. sget-object v0, Lcom/pinterest/api/remote/a;->a:Ljava/util/List;
  287.  
  288. invoke-interface {v0, p0}, Ljava/util/List;->add(Ljava/lang/Object;)Z
  289.  
  290. .line 164
  291. sget-object v0, Lcom/pinterest/api/remote/a;->a:Ljava/util/List;
  292.  
  293. invoke-interface {v0}, Ljava/util/List;->size()I
  294.  
  295. move-result v0
  296.  
  297. const/4 v2, 0x5
  298.  
  299. if-ne v0, v2, :cond_0
  300.  
  301. .line 165
  302. invoke-static {}, Lcom/pinterest/api/remote/a;->a()V
  303. :try_end_0
  304. .catchall {:try_start_0 .. :try_end_0} :catchall_0
  305.  
  306. .line 167
  307. :cond_0
  308. monitor-exit v1
  309.  
  310. return-void
  311.  
  312. .line 162
  313. :catchall_0
  314. move-exception v0
  315.  
  316. monitor-exit v1
  317.  
  318. throw v0
  319. .end method
  320.  
  321. .method public static a(Lcom/pinterest/api/h;)V
  322. .locals 3
  323.  
  324. .prologue
  325. .line 320
  326. invoke-static {}, Lcom/pinterest/api/c;->d()Z
  327.  
  328. move-result v0
  329.  
  330. if-eqz v0, :cond_0
  331.  
  332. .line 321
  333. const-string v0, "callback/ping/"
  334.  
  335. .line 8061
  336. invoke-static {v0}, Lcom/pinterest/api/e;->b(Ljava/lang/String;)Ljava/lang/String;
  337.  
  338. move-result-object v0
  339.  
  340. .line 322
  341. const/4 v1, 0x0
  342.  
  343. const-string v2, "ApiTagPersist"
  344.  
  345. invoke-static {v0, p0, v1, v2}, Lcom/pinterest/api/e;->a(Ljava/lang/String;Lcom/pinterest/api/h;ZLjava/lang/String;)Lcom/android/volley/Request;
  346.  
  347. .line 324
  348. :cond_0
  349. return-void
  350. .end method
  351.  
  352. .method public static a(Lcom/pinterest/api/remote/a$b;Lcom/pinterest/api/h;)V
  353. .locals 4
  354.  
  355. .prologue
  356. .line 356
  357. invoke-virtual {p0}, Lcom/pinterest/api/remote/a$b;->a()Lcom/pinterest/api/u;
  358.  
  359. move-result-object v0
  360.  
  361. .line 357
  362. const-string v1, "error/report/"
  363.  
  364. .line 9061
  365. invoke-static {v1}, Lcom/pinterest/api/e;->b(Ljava/lang/String;)Ljava/lang/String;
  366.  
  367. move-result-object v1
  368.  
  369. .line 358
  370. const/4 v2, 0x0
  371.  
  372. const-string v3, "ApiTagPersist"
  373.  
  374. invoke-static {v1, v0, p1, v2, v3}, Lcom/pinterest/api/e;->a(Ljava/lang/String;Lcom/pinterest/api/u;Lcom/pinterest/api/h;ZLjava/lang/String;)Lcom/android/volley/Request;
  375.  
  376. .line 359
  377. return-void
  378. .end method
  379.  
  380. .method public static a(Ljava/lang/String;)V
  381. .locals 7
  382.  
  383. .prologue
  384. const/4 v6, 0x0
  385.  
  386. .line 71
  387. :try_start_0
  388. const-string v0, "register/track_action/%s/"
  389.  
  390. const/4 v1, 0x1
  391.  
  392. new-array v1, v1, [Ljava/lang/Object;
  393.  
  394. const/4 v2, 0x0
  395.  
  396. aput-object p0, v1, v2
  397.  
  398. invoke-static {v0, v1}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
  399.  
  400. move-result-object v0
  401.  
  402. .line 1061
  403. invoke-static {v0}, Lcom/pinterest/api/e;->b(Ljava/lang/String;)Ljava/lang/String;
  404.  
  405. move-result-object v0
  406.  
  407. .line 72
  408. new-instance v2, Ljava/util/TreeMap;
  409.  
  410. invoke-direct {v2}, Ljava/util/TreeMap;-><init>()V
  411.  
  412. .line 73
  413. const-string v1, "POST"
  414.  
  415. const/4 v3, 0x0
  416.  
  417. const/4 v4, 0x0
  418.  
  419. const-string v5, "ApiTagPersist"
  420.  
  421. invoke-static/range {v0 .. v5}, Lcom/pinterest/api/e;->a(Ljava/lang/String;Ljava/lang/String;Ljava/util/Map;Lcom/pinterest/api/h;ZLjava/lang/String;)V
  422. :try_end_0
  423. .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
  424.  
  425. .line 78
  426. :goto_0
  427. return-void
  428.  
  429. .line 76
  430. :catch_0
  431. move-exception v0
  432.  
  433. const-string v1, "exception occurred"
  434.  
  435. new-array v2, v6, [Ljava/lang/Object;
  436.  
  437. invoke-static {v0, v1, v2}, Lcom/pinterest/f/d/c/a;->a(Ljava/lang/Throwable;Ljava/lang/String;[Ljava/lang/Object;)V
  438.  
  439. goto :goto_0
  440. .end method
  441.  
  442. .method public static a(Ljava/lang/String;Landroid/os/Bundle;)V
  443. .locals 5
  444.  
  445. .prologue
  446. const/4 v4, 0x0
  447.  
  448. .line 304
  449. new-instance v0, Lcom/pinterest/api/u;
  450.  
  451. invoke-direct {v0}, Lcom/pinterest/api/u;-><init>()V
  452.  
  453. .line 305
  454. const-string v1, "device_id"
  455.  
  456. invoke-static {}, Lcom/pinterest/pushnotification/b;->b()Ljava/lang/String;
  457.  
  458. move-result-object v2
  459.  
  460. invoke-virtual {v0, v1, v2}, Lcom/pinterest/api/u;->a(Ljava/lang/String;Ljava/lang/String;)V
  461.  
  462. .line 306
  463. if-eqz p1, :cond_0
  464.  
  465. .line 307
  466. const-string v1, "push_id"
  467.  
  468. const-string v2, "push_id"
  469.  
  470. invoke-virtual {p1, v2}, Landroid/os/Bundle;->getString(Ljava/lang/String;)Ljava/lang/String;
  471.  
  472. move-result-object v2
  473.  
  474. invoke-virtual {v0, v1, v2}, Lcom/pinterest/api/u;->a(Ljava/lang/String;Ljava/lang/String;)V
  475.  
  476. .line 308
  477. const-string v1, "body"
  478.  
  479. const-string v2, "payload"
  480.  
  481. invoke-virtual {p1, v2}, Landroid/os/Bundle;->getString(Ljava/lang/String;)Ljava/lang/String;
  482.  
  483. move-result-object v2
  484.  
  485. invoke-virtual {v0, v1, v2}, Lcom/pinterest/api/u;->a(Ljava/lang/String;Ljava/lang/String;)V
  486.  
  487. .line 309
  488. const-string v1, "link"
  489.  
  490. const-string v2, "link"
  491.  
  492. invoke-virtual {p1, v2}, Landroid/os/Bundle;->getString(Ljava/lang/String;)Ljava/lang/String;
  493.  
  494. move-result-object v2
  495.  
  496. invoke-virtual {v0, v1, v2}, Lcom/pinterest/api/u;->a(Ljava/lang/String;Ljava/lang/String;)V
  497.  
  498. .line 311
  499. :cond_0
  500. const-string v1, "callback/push_notification/%s/"
  501.  
  502. const/4 v2, 0x1
  503.  
  504. new-array v2, v2, [Ljava/lang/Object;
  505.  
  506. aput-object p0, v2, v4
  507.  
  508. invoke-static {v1, v2}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
  509.  
  510. move-result-object v1
  511.  
  512. .line 7061
  513. invoke-static {v1}, Lcom/pinterest/api/e;->b(Ljava/lang/String;)Ljava/lang/String;
  514.  
  515. move-result-object v1
  516.  
  517. .line 313
  518. const/4 v2, 0x0
  519.  
  520. const-string v3, "ApiTagPersist"
  521.  
  522. invoke-static {v1, v0, v2, v4, v3}, Lcom/pinterest/api/e;->a(Ljava/lang/String;Lcom/pinterest/api/u;Lcom/pinterest/api/h;ZLjava/lang/String;)Lcom/android/volley/Request;
  523.  
  524. .line 314
  525. return-void
  526. .end method
  527.  
  528. .method public static a(Ljava/lang/String;Ljava/util/Map;)V
  529. .locals 5
  530. .annotation system Ldalvik/annotation/Signature;
  531. value = {
  532. "(",
  533. "Ljava/lang/String;",
  534. "Ljava/util/Map",
  535. "<",
  536. "Ljava/lang/String;",
  537. "Ljava/lang/String;",
  538. ">;)V"
  539. }
  540. .end annotation
  541.  
  542. .prologue
  543. const/4 v4, 0x0
  544.  
  545. .line 99
  546. const-string v0, "callback/track_funnel/%s/"
  547.  
  548. const/4 v1, 0x1
  549.  
  550. new-array v1, v1, [Ljava/lang/Object;
  551.  
  552. aput-object p0, v1, v4
  553.  
  554. invoke-static {v0, v1}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
  555.  
  556. move-result-object v0
  557.  
  558. .line 2061
  559. invoke-static {v0}, Lcom/pinterest/api/e;->b(Ljava/lang/String;)Ljava/lang/String;
  560.  
  561. move-result-object v0
  562.  
  563. .line 100
  564. new-instance v1, Lcom/pinterest/api/u;
  565.  
  566. invoke-direct {v1, p1}, Lcom/pinterest/api/u;-><init>(Ljava/util/Map;)V
  567.  
  568. const/4 v2, 0x0
  569.  
  570. const-string v3, "ApiTagPersist"
  571.  
  572. invoke-static {v0, v1, v2, v4, v3}, Lcom/pinterest/api/e;->a(Ljava/lang/String;Lcom/pinterest/api/u;Lcom/pinterest/api/h;ZLjava/lang/String;)Lcom/android/volley/Request;
  573.  
  574. .line 101
  575. return-void
  576. .end method
  577.  
  578. .method public static a(Ljava/util/List;)V
  579. .locals 6
  580. .annotation system Ldalvik/annotation/Signature;
  581. value = {
  582. "(",
  583. "Ljava/util/List",
  584. "<",
  585. "Lcom/c/a/a/e;",
  586. ">;)V"
  587. }
  588. .end annotation
  589.  
  590. .prologue
  591. .line 224
  592. const/4 v0, 0x0
  593.  
  594. .line 225
  595. sget-object v2, Lcom/pinterest/api/remote/a;->b:Ljava/util/List;
  596.  
  597. monitor-enter v2
  598.  
  599. .line 226
  600. const/4 v1, 0x0
  601.  
  602. :try_start_0
  603. invoke-interface {p0}, Ljava/util/List;->size()I
  604.  
  605. move-result v3
  606.  
  607. :goto_0
  608. if-ge v1, v3, :cond_0
  609.  
  610. .line 227
  611. sget-object v4, Lcom/pinterest/api/remote/a;->b:Ljava/util/List;
  612.  
  613. invoke-interface {p0, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;
  614.  
  615. move-result-object v5
  616.  
  617. invoke-interface {v4, v5}, Ljava/util/List;->add(Ljava/lang/Object;)Z
  618.  
  619. .line 226
  620. add-int/lit8 v1, v1, 0x1
  621.  
  622. goto :goto_0
  623.  
  624. .line 231
  625. :cond_0
  626. sget-object v1, Lcom/pinterest/api/remote/a;->b:Ljava/util/List;
  627.  
  628. invoke-interface {v1}, Ljava/util/List;->size()I
  629.  
  630. move-result v1
  631.  
  632. const/16 v3, 0x14
  633.  
  634. if-lt v1, v3, :cond_1
  635.  
  636. .line 232
  637. invoke-static {}, Lcom/pinterest/api/remote/a;->c()Lcom/c/a/a/f;
  638.  
  639. move-result-object v0
  640.  
  641. .line 234
  642. :cond_1
  643. monitor-exit v2
  644. :try_end_0
  645. .catchall {:try_start_0 .. :try_end_0} :catchall_0
  646.  
  647. .line 236
  648. invoke-static {v0}, Lcom/pinterest/api/remote/a;->a(Lcom/c/a/a/f;)V
  649.  
  650. .line 237
  651. return-void
  652.  
  653. .line 234
  654. :catchall_0
  655. move-exception v0
  656.  
  657. :try_start_1
  658. monitor-exit v2
  659. :try_end_1
  660. .catchall {:try_start_1 .. :try_end_1} :catchall_0
  661.  
  662. throw v0
  663. .end method
  664.  
  665. .method public static a(Ljava/util/Map;Lcom/pinterest/api/h;)V
  666. .locals 7
  667. .annotation system Ldalvik/annotation/Signature;
  668. value = {
  669. "(",
  670. "Ljava/util/Map",
  671. "<",
  672. "Ljava/lang/String;",
  673. "Ljava/lang/String;",
  674. ">;",
  675. "Lcom/pinterest/api/h;",
  676. ")V"
  677. }
  678. .end annotation
  679.  
  680. .prologue
  681. const/4 v6, 0x0
  682.  
  683. .line 111
  684. :try_start_0
  685. const-string v0, "callback/post_install/"
  686.  
  687. .line 3061
  688. invoke-static {v0}, Lcom/pinterest/api/e;->b(Ljava/lang/String;)Ljava/lang/String;
  689.  
  690. move-result-object v0
  691.  
  692. .line 112
  693. const-string v1, "POST"
  694.  
  695. const/4 v4, 0x0
  696.  
  697. const-string v5, "ApiTagPersist"
  698.  
  699. move-object v2, p0
  700.  
  701. move-object v3, p1
  702.  
  703. invoke-static/range {v0 .. v5}, Lcom/pinterest/api/e;->a(Ljava/lang/String;Ljava/lang/String;Ljava/util/Map;Lcom/pinterest/api/h;ZLjava/lang/String;)V
  704. :try_end_0
  705. .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
  706.  
  707. .line 118
  708. :goto_0
  709. return-void
  710.  
  711. .line 114
  712. :catch_0
  713. move-exception v0
  714.  
  715. .line 115
  716. invoke-static {v0}, Lcom/pinterest/f/f/a;->a(Ljava/lang/Throwable;)V
  717.  
  718. .line 116
  719. const-string v1, "exception occurred"
  720.  
  721. new-array v2, v6, [Ljava/lang/Object;
  722.  
  723. invoke-static {v0, v1, v2}, Lcom/pinterest/f/d/c/a;->a(Ljava/lang/Throwable;Ljava/lang/String;[Ljava/lang/Object;)V
  724.  
  725. goto :goto_0
  726. .end method
  727.  
  728. .method public static a(ZI)V
  729. .locals 5
  730.  
  731. .prologue
  732. .line 337
  733. new-instance v0, Lcom/google/gson/n;
  734.  
  735. invoke-direct {v0}, Lcom/google/gson/n;-><init>()V
  736.  
  737. .line 338
  738. const-string v1, "metric_name"
  739.  
  740. new-instance v2, Lcom/google/gson/p;
  741.  
  742. const-string v3, "dau_ping_fail"
  743.  
  744. invoke-direct {v2, v3}, Lcom/google/gson/p;-><init>(Ljava/lang/String;)V
  745.  
  746. invoke-virtual {v0, v1, v2}, Lcom/google/gson/n;->a(Ljava/lang/String;Lcom/google/gson/l;)V
  747.  
  748. .line 339
  749. new-instance v1, Lcom/google/gson/n;
  750.  
  751. invoke-direct {v1}, Lcom/google/gson/n;-><init>()V
  752.  
  753. .line 340
  754. const-string v2, "aux"
  755.  
  756. invoke-virtual {v0, v2, v1}, Lcom/google/gson/n;->a(Ljava/lang/String;Lcom/google/gson/l;)V
  757.  
  758. .line 341
  759. const-string v2, "was_background"
  760.  
  761. new-instance v3, Lcom/google/gson/p;
  762.  
  763. invoke-static {p0}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;
  764.  
  765. move-result-object v4
  766.  
  767. invoke-direct {v3, v4}, Lcom/google/gson/p;-><init>(Ljava/lang/Boolean;)V
  768.  
  769. invoke-virtual {v1, v2, v3}, Lcom/google/gson/n;->a(Ljava/lang/String;Lcom/google/gson/l;)V
  770.  
  771. .line 342
  772. const-string v2, "num_fail"
  773.  
  774. new-instance v3, Lcom/google/gson/p;
  775.  
  776. invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
  777.  
  778. move-result-object v4
  779.  
  780. invoke-direct {v3, v4}, Lcom/google/gson/p;-><init>(Ljava/lang/Number;)V
  781.  
  782. invoke-virtual {v1, v2, v3}, Lcom/google/gson/n;->a(Ljava/lang/String;Lcom/google/gson/l;)V
  783.  
  784. .line 344
  785. invoke-static {v0}, Lcom/pinterest/api/remote/a;->a(Lcom/google/gson/n;)V
  786.  
  787. .line 345
  788. invoke-static {}, Lcom/pinterest/api/remote/a;->a()V
  789.  
  790. .line 346
  791. return-void
  792. .end method
  793.  
  794. .method public static a([BLcom/pinterest/api/h;)V
  795. .locals 11
  796.  
  797. .prologue
  798. const/4 v8, 0x0
  799.  
  800. .line 129
  801. :try_start_0
  802. const-string v0, "callback/event/"
  803.  
  804. .line 4061
  805. invoke-static {v0}, Lcom/pinterest/api/e;->b(Ljava/lang/String;)Ljava/lang/String;
  806.  
  807. move-result-object v0
  808.  
  809. .line 130
  810. new-instance v7, Lcom/pinterest/api/u;
  811.  
  812. invoke-direct {v7}, Lcom/pinterest/api/u;-><init>()V
  813.  
  814. .line 131
  815. const-string v1, "event_batch"
  816.  
  817. new-instance v2, Ljava/io/ByteArrayInputStream;
  818.  
  819. invoke-direct {v2, p0}, Ljava/io/ByteArrayInputStream;-><init>([B)V
  820.  
  821. const-string v9, "LOGGING: xxxxx"
  822. new-instance v10, Ljava/lang/String;
  823. invoke-direct {v10, p0}, Ljava/lang/String;-><init>([B)V
  824. invoke-static {v9, v10}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I
  825.  
  826. const/4 v3, 0x0
  827.  
  828. const-string v4, "application/x-thrift"
  829.  
  830. invoke-virtual {v7, v1, v2, v3, v4}, Lcom/pinterest/api/u;->a(Ljava/lang/String;Ljava/io/InputStream;Ljava/lang/String;Ljava/lang/String;)V
  831.  
  832. .line 133
  833. const-string v1, "POST"
  834.  
  835. const/4 v2, 0x0
  836.  
  837. const/4 v4, 0x0
  838.  
  839. const-string v5, "ApiTagPersist"
  840.  
  841. const/4 v6, 0x0
  842.  
  843. move-object v3, p1
  844.  
  845. invoke-static/range {v0 .. v7}, Lcom/pinterest/api/e;->a(Ljava/lang/String;Ljava/lang/String;Ljava/util/Map;Lcom/pinterest/api/h;ZLjava/lang/String;Lcom/google/gson/l;Lcom/pinterest/api/u;)V
  846. :try_end_0
  847. .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
  848.  
  849. .line 138
  850. :goto_0
  851. return-void
  852.  
  853. .line 136
  854. :catch_0
  855. move-exception v0
  856.  
  857. const-string v1, "exception occurred"
  858.  
  859. new-array v2, v8, [Ljava/lang/Object;
  860.  
  861. invoke-static {v0, v1, v2}, Lcom/pinterest/f/d/c/a;->a(Ljava/lang/Throwable;Ljava/lang/String;[Ljava/lang/Object;)V
  862.  
  863. goto :goto_0
  864. .end method
  865.  
  866. .method public static b()V
  867. .locals 1
  868.  
  869. .prologue
  870. .line 262
  871. invoke-static {}, Lcom/pinterest/api/remote/a;->c()Lcom/c/a/a/f;
  872.  
  873. move-result-object v0
  874.  
  875. .line 263
  876. invoke-static {v0}, Lcom/pinterest/api/remote/a;->a(Lcom/c/a/a/f;)V
  877.  
  878. .line 264
  879. return-void
  880. .end method
  881.  
  882. .method public static b(Ljava/lang/String;)V
  883. .locals 0
  884.  
  885. .prologue
  886. .line 84
  887. invoke-static {p0}, Lcom/pinterest/api/remote/a;->a(Ljava/lang/String;)V
  888.  
  889. .line 85
  890. return-void
  891. .end method
  892.  
  893. .method private static c()Lcom/c/a/a/f;
  894. .locals 6
  895.  
  896. .prologue
  897. .line 246
  898. const/4 v0, 0x0
  899.  
  900. .line 248
  901. sget-object v3, Lcom/pinterest/api/remote/a;->b:Ljava/util/List;
  902.  
  903. monitor-enter v3
  904.  
  905. .line 249
  906. :try_start_0
  907. sget-object v1, Lcom/pinterest/api/remote/a;->b:Ljava/util/List;
  908.  
  909. invoke-interface {v1}, Ljava/util/List;->size()I
  910.  
  911. move-result v1
  912.  
  913. if-lez v1, :cond_2
  914.  
  915. .line 250
  916. new-instance v1, Lcom/c/a/a/f;
  917.  
  918. invoke-direct {v1}, Lcom/c/a/a/f;-><init>()V
  919.  
  920. .line 251
  921. const/4 v0, 0x0
  922.  
  923. sget-object v2, Lcom/pinterest/api/remote/a;->b:Ljava/util/List;
  924.  
  925. invoke-interface {v2}, Ljava/util/List;->size()I
  926.  
  927. move-result v4
  928.  
  929. move v2, v0
  930.  
  931. :goto_0
  932. if-ge v2, v4, :cond_1
  933.  
  934. .line 252
  935. sget-object v0, Lcom/pinterest/api/remote/a;->b:Ljava/util/List;
  936.  
  937. invoke-interface {v0, v2}, Ljava/util/List;->get(I)Ljava/lang/Object;
  938.  
  939. move-result-object v0
  940.  
  941. check-cast v0, Lcom/c/a/a/e;
  942.  
  943. .line 5164
  944. iget-object v5, v1, Lcom/c/a/a/f;->a:Ljava/util/List;
  945.  
  946. if-nez v5, :cond_0
  947.  
  948. .line 5165
  949. new-instance v5, Ljava/util/ArrayList;
  950.  
  951. invoke-direct {v5}, Ljava/util/ArrayList;-><init>()V
  952.  
  953. iput-object v5, v1, Lcom/c/a/a/f;->a:Ljava/util/List;
  954.  
  955. .line 5167
  956. :cond_0
  957. iget-object v5, v1, Lcom/c/a/a/f;->a:Ljava/util/List;
  958.  
  959. invoke-interface {v5, v0}, Ljava/util/List;->add(Ljava/lang/Object;)Z
  960.  
  961. .line 251
  962. add-int/lit8 v0, v2, 0x1
  963.  
  964. move v2, v0
  965.  
  966. goto :goto_0
  967.  
  968. .line 254
  969. :cond_1
  970. sget-object v0, Lcom/pinterest/api/remote/a;->b:Ljava/util/List;
  971.  
  972. invoke-interface {v0}, Ljava/util/List;->clear()V
  973.  
  974. move-object v0, v1
  975.  
  976. .line 256
  977. :cond_2
  978. monitor-exit v3
  979.  
  980. .line 258
  981. return-object v0
  982.  
  983. .line 256
  984. :catchall_0
  985. move-exception v0
  986.  
  987. monitor-exit v3
  988. :try_end_0
  989. .catchall {:try_start_0 .. :try_end_0} :catchall_0
  990.  
  991. throw v0
  992. .end method
  993.  
  994. .method public static c(Ljava/lang/String;)V
  995. .locals 1
  996.  
  997. .prologue
  998. .line 93
  999. new-instance v0, Ljava/util/TreeMap;
  1000.  
  1001. invoke-direct {v0}, Ljava/util/TreeMap;-><init>()V
  1002.  
  1003. .line 94
  1004. invoke-static {p0, v0}, Lcom/pinterest/api/remote/a;->a(Ljava/lang/String;Ljava/util/Map;)V
  1005.  
  1006. .line 95
  1007. return-void
  1008. .end method
  1009.  
  1010. .method public static d(Ljava/lang/String;)V
  1011. .locals 4
  1012.  
  1013. .prologue
  1014. .line 477
  1015. new-instance v0, Ljava/util/HashMap;
  1016.  
  1017. invoke-direct {v0}, Ljava/util/HashMap;-><init>()V
  1018.  
  1019. .line 478
  1020. const-string v1, "event"
  1021.  
  1022. invoke-interface {v0, v1, p0}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
  1023.  
  1024. .line 479
  1025. const-string v1, "callback/frontend/"
  1026.  
  1027. const/4 v2, 0x0
  1028.  
  1029. const-string v3, "ApiTagPersist"
  1030.  
  1031. invoke-static {v1, v0, v2, v3}, Lcom/pinterest/api/remote/e;->b(Ljava/lang/String;Ljava/util/Map;Lcom/pinterest/api/h;Ljava/lang/String;)V
  1032.  
  1033. .line 480
  1034. return-void
  1035. .end method
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement