Guest User

Untitled

a guest
Dec 7th, 2017
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 42.16 KB | None | 0 0
  1. package com.freshollie.monkeyboard.keystoneradio.playback;
  2.  
  3. import android.app.Service;
  4. import android.content.ContentResolver;
  5. import android.content.Context;
  6. import android.content.Intent;
  7. import android.content.SharedPreferences;
  8. import android.content.SharedPreferences.Editor;
  9. import android.graphics.Bitmap;
  10. import android.media.AudioManager;
  11. import android.media.AudioManager.OnAudioFocusChangeListener;
  12. import android.os.Binder;
  13. import android.os.Build.VERSION;
  14. import android.os.Handler;
  15. import android.os.IBinder;
  16. import android.preference.PreferenceManager;
  17. import android.provider.Settings.System;
  18. import android.support.v4.media.MediaMetadataCompat;
  19. import android.support.v4.media.MediaMetadataCompat.a;
  20. import android.support.v4.media.g;
  21. import android.support.v4.media.session.MediaButtonReceiver;
  22. import android.support.v4.media.session.MediaControllerCompat;
  23. import android.support.v4.media.session.MediaSessionCompat;
  24. import android.support.v4.media.session.MediaSessionCompat.a;
  25. import android.support.v4.media.session.PlaybackStateCompat;
  26. import android.support.v4.media.session.PlaybackStateCompat.a;
  27. import android.util.Log;
  28. import android.view.KeyEvent;
  29. import com.freshollie.monkeyboard.keystoneradio.a.b.b;
  30. import com.freshollie.monkeyboard.keystoneradio.a.b.d;
  31. import com.freshollie.monkeyboard.keystoneradio.a.b.f;
  32. import com.freshollie.monkeyboard.keystoneradio.a.c;
  33. import com.freshollie.monkeyboard.keystoneradio.a.c.a;
  34. import com.freshollie.monkeyboard.keystoneradio.a.c.b;
  35. import com.freshollie.monkeyboard.keystoneradio.a.d;
  36. import java.util.ArrayList;
  37. import java.util.Arrays;
  38. import java.util.Comparator;
  39. import java.util.HashSet;
  40. import java.util.Iterator;
  41. import java.util.Set;
  42. import java.util.concurrent.ExecutorService;
  43. import java.util.concurrent.Executors;
  44. import org.json.JSONException;
  45. import org.json.JSONObject;
  46.  
  47. public class RadioPlayerService
  48. extends Service
  49. implements AudioManager.OnAudioFocusChangeListener
  50. {
  51. static int AbbayedeBelloc = 10000;
  52. public static int Abondance = 15;
  53. private static String Alverca = RadioPlayerService.class.getSimpleName();
  54. HashSet<c> Airedale = new HashSet();
  55. private ExecutorService Appenzell = Executors.newSingleThreadExecutor();
  56. private IBinder Aragon = new d();
  57. private a Ardrahan;
  58. private com.freshollie.monkeyboard.keystoneradio.a.b AubisquePyrenees;
  59. private d[] Beaufort = new d[0];
  60. private int Bierkase = 0;
  61. private int Blarney;
  62. private ArrayList<d> BleudeSeptmoncel = new ArrayList();
  63. private d Braudostur;
  64. private AudioManager Brick;
  65. private MediaSessionCompat CanadianCheddar;
  66. private g Cantal;
  67. private PlaybackStateCompat.a Chaumes;
  68. private Runnable Cheddar;
  69. private int Cheshire;
  70. private int Chevres = -1;
  71. private b Chontaleno;
  72. private int Cojack = 13;
  73. private boolean ColbyJack = false;
  74. private boolean Crowley = false;
  75. private boolean DevonBlue = false;
  76. private a DevonGarland = a.AbbayedeBelloc;
  77. private int DoubleGloucester = -1;
  78. private int Edam = 88000;
  79. private SharedPreferences Edelpilz;
  80. private b.b Esbareich = new b.b()
  81. {
  82. public void AbbayedeBelloc(int paramAnonymousInt1, int paramAnonymousInt2)
  83. {
  84. Log.v(RadioPlayerService.Friesla(), String.format("Collected %s/%s", new Object[] { Integer.valueOf(paramAnonymousInt1), Integer.valueOf(paramAnonymousInt2) }));
  85. RadioPlayerService.AbbayedeBelloc(RadioPlayerService.this, paramAnonymousInt1, paramAnonymousInt2);
  86. }
  87.  
  88. public void AbbayedeBelloc(d[] paramAnonymousArrayOfd)
  89. {
  90. Log.v(RadioPlayerService.Friesla(), "Collected all stations");
  91. ArrayList localArrayList = new ArrayList();
  92. int j = paramAnonymousArrayOfd.length;
  93. int i = 0;
  94. while (i < j)
  95. {
  96. d locald = paramAnonymousArrayOfd[i];
  97. if (locald.Airedale() != -1) {
  98. localArrayList.add(locald);
  99. }
  100. i += 1;
  101. }
  102. RadioPlayerService.AbbayedeBelloc(RadioPlayerService.this, (d[])localArrayList.toArray(new d[localArrayList.size()]), paramAnonymousArrayOfd.length);
  103. RadioPlayerService.AbbayedeBelloc(RadioPlayerService.this, false);
  104. if (RadioPlayerService.AbbayedeBelloc(RadioPlayerService.this).length > 0)
  105. {
  106. RadioPlayerService.this.Fontal();
  107. return;
  108. }
  109. RadioPlayerService.Abondance(RadioPlayerService.this);
  110. }
  111. };
  112. private b.d Esrom = new b.d()
  113. {
  114. public void AbbayedeBelloc()
  115. {
  116. RadioPlayerService.Airedale(RadioPlayerService.this);
  117. }
  118.  
  119. public void AbbayedeBelloc(int paramAnonymousInt)
  120. {
  121. RadioPlayerService.this.Airedale();
  122. RadioPlayerService.AbbayedeBelloc(RadioPlayerService.this, paramAnonymousInt);
  123. }
  124.  
  125. public void AbbayedeBelloc(int paramAnonymousInt1, int paramAnonymousInt2)
  126. {
  127. RadioPlayerService.Abondance(RadioPlayerService.this, paramAnonymousInt1, paramAnonymousInt2);
  128. }
  129. };
  130. private c.a Filetta = new c.a()
  131. {
  132. public void AbbayedeBelloc()
  133. {
  134. RadioPlayerService.Abondance(RadioPlayerService.this, false);
  135. RadioPlayerService.Alverca(RadioPlayerService.this);
  136. }
  137.  
  138. public void Abondance()
  139. {
  140. RadioPlayerService.Abondance(RadioPlayerService.this, false);
  141. }
  142.  
  143. public void Airedale()
  144. {
  145. RadioPlayerService.Abondance(RadioPlayerService.this, false);
  146. if (RadioPlayerService.Appenzell(RadioPlayerService.this).isAlive()) {
  147. RadioPlayerService.Appenzell(RadioPlayerService.this).interrupt();
  148. }
  149. RadioPlayerService.Abondance(RadioPlayerService.this, 1);
  150. }
  151. };
  152. private boolean Fontal = false;
  153. private Thread FourmedAmbert = new Thread();
  154. private Runnable Friesla = new Runnable()
  155. {
  156. public void run()
  157. {
  158. Log.v(RadioPlayerService.Friesla(), "Starting a wait for attachment thread");
  159. long l = System.currentTimeMillis();
  160. while ((!RadioPlayerService.Aragon(RadioPlayerService.this).Chontaleno()) && (System.currentTimeMillis() - l < RadioPlayerService.AbbayedeBelloc)) {
  161. if (Thread.interrupted()) {
  162. return;
  163. }
  164. }
  165. if (RadioPlayerService.Aragon(RadioPlayerService.this).Chontaleno())
  166. {
  167. Log.v(RadioPlayerService.Friesla(), "Keystone radio connected");
  168. RadioPlayerService.Aragon(RadioPlayerService.this).Abondance();
  169. return;
  170. }
  171. RadioPlayerService.Abondance(RadioPlayerService.this, false);
  172. new Handler(RadioPlayerService.this.getMainLooper()).post(new Runnable()
  173. {
  174. public void run()
  175. {
  176. RadioPlayerService.Ardrahan(RadioPlayerService.this);
  177. }
  178. });
  179. }
  180. };
  181. private boolean Fynbo = false;
  182. private c.b Geitost = new c.b()
  183. {
  184. public void AbbayedeBelloc(Bitmap paramAnonymousBitmap)
  185. {
  186. RadioPlayerService.AbbayedeBelloc(RadioPlayerService.this, paramAnonymousBitmap);
  187. }
  188.  
  189. public void AbbayedeBelloc(String paramAnonymousString)
  190. {
  191. RadioPlayerService.AbbayedeBelloc(RadioPlayerService.this, paramAnonymousString);
  192. }
  193.  
  194. public void Abondance(int paramAnonymousInt) {}
  195.  
  196. public void Abondance(String paramAnonymousString)
  197. {
  198. RadioPlayerService.Abondance(RadioPlayerService.this, paramAnonymousString);
  199. }
  200.  
  201. public void Airedale(int paramAnonymousInt) {}
  202.  
  203. public void Alverca(int paramAnonymousInt) {}
  204.  
  205. public void Appenzell(int paramAnonymousInt) {}
  206.  
  207. public void Aragon(int paramAnonymousInt) {}
  208.  
  209. public void Ardrahan(int paramAnonymousInt)
  210. {
  211. if (RadioPlayerService.Cantal(RadioPlayerService.this) == 1)
  212. {
  213. Log.v(RadioPlayerService.Friesla(), "Search frequency changed");
  214. RadioPlayerService.Appenzell(RadioPlayerService.this, paramAnonymousInt);
  215. RadioPlayerService.Aragon(RadioPlayerService.this, paramAnonymousInt);
  216. }
  217. }
  218.  
  219. public void AubisquePyrenees(int paramAnonymousInt)
  220. {
  221. RadioPlayerService.Ardrahan(RadioPlayerService.this, paramAnonymousInt);
  222. }
  223.  
  224. public void a_(int paramAnonymousInt)
  225. {
  226. if (RadioPlayerService.Cantal(RadioPlayerService.this) == 1) {
  227. if ((paramAnonymousInt == 1) && (RadioPlayerService.this.Cheshire()))
  228. {
  229. RadioPlayerService.Alverca(RadioPlayerService.this, true);
  230. RadioPlayerService.Abondance(RadioPlayerService.this, 1);
  231. }
  232. }
  233. while (!RadioPlayerService.Chaumes(RadioPlayerService.this))
  234. {
  235. do
  236. {
  237. return;
  238. } while ((RadioPlayerService.this.Cheshire()) || (paramAnonymousInt == 3) || (paramAnonymousInt == 1) || (!RadioPlayerService.Chaumes(RadioPlayerService.this)));
  239. RadioPlayerService.Alverca(RadioPlayerService.this, false);
  240. RadioPlayerService.Abondance(RadioPlayerService.this, 3);
  241. return;
  242. }
  243. RadioPlayerService.Alverca(RadioPlayerService.this, false);
  244. RadioPlayerService.Abondance(RadioPlayerService.this, 3);
  245. }
  246. };
  247.  
  248. public static int AbbayedeBelloc(int paramInt1, int paramInt2)
  249. {
  250. return (paramInt1 % paramInt2 + paramInt2) % paramInt2;
  251. }
  252.  
  253. private void AbbayedeBelloc(Bitmap paramBitmap)
  254. {
  255. if (this.CanadianCheddar != null) {
  256. this.CanadianCheddar.AbbayedeBelloc(new MediaMetadataCompat.a(Beaufort()).AbbayedeBelloc("android.media.metadata.ART", paramBitmap).AbbayedeBelloc());
  257. }
  258. }
  259.  
  260. private void AbbayedeBelloc(Runnable paramRunnable)
  261. {
  262. if (this.AubisquePyrenees.Cojack())
  263. {
  264. this.Appenzell.submit(paramRunnable);
  265. return;
  266. }
  267. this.Cheddar = paramRunnable;
  268. Alverca();
  269. }
  270.  
  271. private void AbbayedeBelloc(String paramString)
  272. {
  273. if (this.Braudostur == null) {
  274. Braudostur(this.Edam);
  275. }
  276. this.Braudostur.AbbayedeBelloc(paramString);
  277. if ((Chaumes() > -1) && (!((d)this.BleudeSeptmoncel.get(Chaumes())).AbbayedeBelloc().equals(paramString)))
  278. {
  279. ((d)this.BleudeSeptmoncel.get(Chaumes())).AbbayedeBelloc(paramString);
  280. Gloucester();
  281. }
  282. Abondance(this.Braudostur);
  283. }
  284.  
  285. private void AbbayedeBelloc(d[] paramArrayOfd, int paramInt)
  286. {
  287. this.Beaufort = paramArrayOfd;
  288. this.Bierkase = paramInt;
  289. Gjetost();
  290. }
  291.  
  292. private void Abondance(int paramInt1, int paramInt2)
  293. {
  294. Iterator localIterator = this.Airedale.iterator();
  295. while (localIterator.hasNext()) {
  296. ((c)localIterator.next()).AbbayedeBelloc(paramInt1, paramInt2);
  297. }
  298. }
  299.  
  300. private void Abondance(d paramd)
  301. {
  302. if ((this.CanadianCheddar == null) || ((Ardrahan().Abondance() != null) && (Ardrahan().Abondance().Airedale("android.media.metadata.TRACK_NUMBER") == paramd.Abondance()))) {
  303. return;
  304. }
  305. this.CanadianCheddar.AbbayedeBelloc(new MediaMetadataCompat.a().AbbayedeBelloc("android.media.metadata.TITLE", paramd.AbbayedeBelloc()).AbbayedeBelloc("android.media.metadata.ARTIST", paramd.Alverca()).AbbayedeBelloc("android.media.metadata.GENRE", b.f.AbbayedeBelloc(paramd.Airedale())).AbbayedeBelloc("android.media.metadata.TRACK_NUMBER", paramd.Abondance()).AbbayedeBelloc());
  306. }
  307.  
  308. private void Abondance(String paramString)
  309. {
  310. if (this.CanadianCheddar != null) {
  311. this.CanadianCheddar.AbbayedeBelloc(new MediaMetadataCompat.a(Beaufort()).AbbayedeBelloc("android.media.metadata.DISPLAY_DESCRIPTION", paramString).AbbayedeBelloc());
  312. }
  313. }
  314.  
  315. private void Airedale(int paramInt1, int paramInt2)
  316. {
  317. Iterator localIterator = this.Airedale.iterator();
  318. while (localIterator.hasNext()) {
  319. ((c)localIterator.next()).Abondance(paramInt1, paramInt2);
  320. }
  321. }
  322.  
  323. private void Ardrahan(int paramInt)
  324. {
  325. this.Cheshire = paramInt;
  326. this.Chevres = -1;
  327. Braudostur(this.Edam);
  328. Goutu();
  329. }
  330.  
  331. private void AubisquePyrenees(int paramInt)
  332. {
  333. this.DoubleGloucester = paramInt;
  334. Grabetto();
  335. }
  336.  
  337. private void Beaufort(int paramInt)
  338. {
  339. this.Edam = paramInt;
  340. Graddost();
  341. }
  342.  
  343. private void Bierkase(int paramInt)
  344. {
  345. this.Cojack = paramInt;
  346. if (Cheshire()) {
  347. AbbayedeBelloc(new Runnable()
  348. {
  349. public void run()
  350. {
  351. RadioPlayerService.Aragon(RadioPlayerService.this).AbbayedeBelloc(RadioPlayerService.Brick(RadioPlayerService.this));
  352. }
  353. });
  354. }
  355. }
  356.  
  357. private void Blarney(int paramInt)
  358. {
  359. if (paramInt == 0) {}
  360. d[] arrayOfd;
  361. do
  362. {
  363. do
  364. {
  365. return;
  366. if (Bierkase() != 0) {
  367. break;
  368. }
  369. } while (Braudostur().length <= 0);
  370. Airedale(AbbayedeBelloc(this.DoubleGloucester + paramInt, Braudostur().length));
  371. return;
  372. arrayOfd = Brick();
  373. } while (arrayOfd.length <= 0);
  374. int i = Chaumes();
  375. int j = arrayOfd.length;
  376. if (i < 0)
  377. {
  378. i = 0;
  379. k = j;
  380. if (i < arrayOfd.length)
  381. {
  382. if (arrayOfd[i].Abondance() <= BleudeSeptmoncel().Abondance()) {
  383. break label122;
  384. }
  385. k = j;
  386. if (paramInt <= 0) {}
  387. }
  388. }
  389. for (int k = i;; k = i + paramInt)
  390. {
  391. Alverca(arrayOfd[AbbayedeBelloc(k, arrayOfd.length)].Abondance());
  392. return;
  393. label122:
  394. if (paramInt < 0) {
  395. j = i;
  396. }
  397. i += 1;
  398. break;
  399. }
  400. }
  401.  
  402. private void BleudeSeptmoncel(int paramInt)
  403. {
  404. if (this.CanadianCheddar != null) {
  405. this.CanadianCheddar.AbbayedeBelloc(this.Chaumes.AbbayedeBelloc(paramInt, 0L, 1.0F).AbbayedeBelloc(127L).AbbayedeBelloc());
  406. }
  407. }
  408.  
  409. private void Braudostur(int paramInt)
  410. {
  411. paramInt = paramInt / 100 * 100;
  412. if ((this.Braudostur != null) && (paramInt == this.Braudostur.Abondance())) {
  413. return;
  414. }
  415. this.Braudostur = new d();
  416. this.Braudostur.AbbayedeBelloc(paramInt);
  417. if (Chaumes() > -1) {
  418. this.Braudostur.AbbayedeBelloc(((d)this.BleudeSeptmoncel.get(Chaumes())).AbbayedeBelloc());
  419. }
  420. Abondance(this.Braudostur);
  421. }
  422.  
  423. private void Brick(int paramInt)
  424. {
  425. if (this.Braudostur == null) {
  426. Braudostur(this.Edam);
  427. }
  428. this.Braudostur.Abondance(paramInt);
  429. Abondance(this.Braudostur);
  430. }
  431.  
  432. private void CanadianCheddar(int paramInt)
  433. {
  434. Iterator localIterator = this.Airedale.iterator();
  435. while (localIterator.hasNext()) {
  436. ((c)localIterator.next()).Bierkase(paramInt);
  437. }
  438. }
  439.  
  440. private void Cantal(int paramInt)
  441. {
  442. Iterator localIterator = this.Airedale.iterator();
  443. while (localIterator.hasNext()) {
  444. ((c)localIterator.next()).Beaufort(paramInt);
  445. }
  446. }
  447.  
  448. private void Chaumes(int paramInt)
  449. {
  450. Iterator localIterator = this.Airedale.iterator();
  451. while (localIterator.hasNext()) {
  452. ((c)localIterator.next()).Blarney(paramInt);
  453. }
  454. }
  455.  
  456. private void Fynbo()
  457. {
  458. if (Build.VERSION.SDK_INT < 21)
  459. {
  460. this.Chontaleno = new b(this, new Handler(getMainLooper()), new b.a()
  461. {
  462. public void AbbayedeBelloc(int paramAnonymousInt)
  463. {
  464. RadioPlayerService.this.AbbayedeBelloc(paramAnonymousInt);
  465. Log.v(RadioPlayerService.Friesla(), "Volume set: " + RadioPlayerService.this.Blarney());
  466. RadioPlayerService.Airedale(RadioPlayerService.this, RadioPlayerService.this.Blarney());
  467. }
  468. });
  469. getApplicationContext().getContentResolver().registerContentObserver(Settings.System.CONTENT_URI, true, this.Chontaleno);
  470. this.CanadianCheddar.Abondance(3);
  471. Log.v(Alverca, "Registering settings content observer");
  472. return;
  473. }
  474. this.Cantal = new g(2, Abondance, this.Cojack)
  475. {
  476. public void Abondance(int paramAnonymousInt)
  477. {
  478. super.Abondance(paramAnonymousInt);
  479. RadioPlayerService.this.AbbayedeBelloc(paramAnonymousInt);
  480. Log.v(RadioPlayerService.Friesla(), "Volume set: " + RadioPlayerService.this.Blarney());
  481. RadioPlayerService.Airedale(RadioPlayerService.this, RadioPlayerService.this.Blarney());
  482. }
  483.  
  484. public void Airedale(int paramAnonymousInt)
  485. {
  486. super.Airedale(paramAnonymousInt);
  487. if (paramAnonymousInt != 0)
  488. {
  489. RadioPlayerService.this.AbbayedeBelloc(RadioPlayerService.this.Blarney() + paramAnonymousInt);
  490. Log.v(RadioPlayerService.Friesla(), "Volume adjusted: " + RadioPlayerService.this.Blarney());
  491. RadioPlayerService.Airedale(RadioPlayerService.this, RadioPlayerService.this.Blarney());
  492. }
  493. }
  494. };
  495. this.CanadianCheddar.AbbayedeBelloc(this.Cantal);
  496. }
  497.  
  498. private void Geitost()
  499. {
  500. Object localObject2 = this.Edelpilz.getStringSet(getString(2131558401), null);
  501. Object localObject1 = this.Edelpilz.getStringSet(getString(2131558404), null);
  502. if (localObject2 != null)
  503. {
  504. this.Beaufort = new d[((Set)localObject2).size()];
  505. this.Bierkase = this.Edelpilz.getInt(getString(2131558410), 0);
  506. try
  507. {
  508. localObject2 = ((Set)localObject2).iterator();
  509. i = 0;
  510. while (((Iterator)localObject2).hasNext())
  511. {
  512. JSONObject localJSONObject = new JSONObject((String)((Iterator)localObject2).next());
  513. this.Beaufort[i] = new d(localJSONObject);
  514. i += 1;
  515. }
  516. Arrays.sort(this.Beaufort, new Comparator()
  517. {
  518. public int AbbayedeBelloc(d paramAnonymousd1, d paramAnonymousd2)
  519. {
  520. return Integer.valueOf(paramAnonymousd1.Abondance()).compareTo(Integer.valueOf(paramAnonymousd2.Abondance()));
  521. }
  522. });
  523. }
  524. catch (JSONException localJSONException2)
  525. {
  526. for (;;)
  527. {
  528. label225:
  529. localJSONException2.printStackTrace();
  530. Log.e(Alverca, "Could not load dab station list");
  531. }
  532. }
  533. if (localObject1 != null)
  534. {
  535. this.BleudeSeptmoncel.clear();
  536. try
  537. {
  538. localObject1 = ((Set)localObject1).iterator();
  539. while (((Iterator)localObject1).hasNext())
  540. {
  541. localObject2 = new JSONObject((String)((Iterator)localObject1).next());
  542. this.BleudeSeptmoncel.add(new d((JSONObject)localObject2));
  543. }
  544. this.DoubleGloucester = this.Edelpilz.getInt(getString(2131558400), 0);
  545. }
  546. catch (JSONException localJSONException1)
  547. {
  548. localJSONException1.printStackTrace();
  549. Log.e(Alverca, "Could not load dab station list");
  550. }
  551. }
  552. this.Edam = this.Edelpilz.getInt(getString(2131558403), 87500);
  553. if (!this.Edelpilz.getBoolean(getString(2131558408), false)) {
  554. break label375;
  555. }
  556. }
  557. label375:
  558. for (int i = 0;; i = 1)
  559. {
  560. this.Cheshire = i;
  561. if (!this.Edelpilz.getBoolean(getString(2131558409), true)) {
  562. this.Cojack = this.Edelpilz.getInt(getString(2131558411), 13);
  563. }
  564. return;
  565. this.Beaufort = new d[0];
  566. break;
  567. Gouda();
  568. break label225;
  569. }
  570. }
  571.  
  572. private void Gjetost()
  573. {
  574. SharedPreferences.Editor localEditor = this.Edelpilz.edit();
  575. HashSet localHashSet = new HashSet();
  576. d[] arrayOfd = this.Beaufort;
  577. int j = arrayOfd.length;
  578. int i = 0;
  579. while (i < j)
  580. {
  581. localHashSet.add(arrayOfd[i].Appenzell());
  582. i += 1;
  583. }
  584. localEditor.putStringSet(getString(2131558401), localHashSet);
  585. localEditor.putInt(getString(2131558410), this.Bierkase);
  586. localEditor.apply();
  587. }
  588.  
  589. private void Gloucester()
  590. {
  591. SharedPreferences.Editor localEditor = this.Edelpilz.edit();
  592. HashSet localHashSet = new HashSet();
  593. Iterator localIterator = this.BleudeSeptmoncel.iterator();
  594. while (localIterator.hasNext()) {
  595. localHashSet.add(((d)localIterator.next()).Appenzell());
  596. }
  597. localEditor.putStringSet(getString(2131558404), localHashSet);
  598. localEditor.apply();
  599. }
  600.  
  601. private void Gouda()
  602. {
  603. d[] arrayOfd = (d[])this.BleudeSeptmoncel.toArray(new d[this.BleudeSeptmoncel.size()]);
  604. Arrays.sort(arrayOfd, new Comparator()
  605. {
  606. public int AbbayedeBelloc(d paramAnonymousd1, d paramAnonymousd2)
  607. {
  608. return Integer.valueOf(paramAnonymousd1.Abondance()).compareTo(Integer.valueOf(paramAnonymousd2.Abondance()));
  609. }
  610. });
  611. this.BleudeSeptmoncel = new ArrayList(Arrays.asList(arrayOfd));
  612. }
  613.  
  614. private void Goutu()
  615. {
  616. SharedPreferences.Editor localEditor = this.Edelpilz.edit();
  617. String str = getString(2131558408);
  618. if (this.Cheshire == 0) {}
  619. for (boolean bool = true;; bool = false)
  620. {
  621. localEditor.putBoolean(str, bool).apply();
  622. return;
  623. }
  624. }
  625.  
  626. private void Grabetto()
  627. {
  628. Log.v(Alverca, "Saving DAB index " + this.DoubleGloucester);
  629. this.Edelpilz.edit().putInt(getString(2131558400), this.DoubleGloucester).apply();
  630. }
  631.  
  632. private void Graddost()
  633. {
  634. this.Edelpilz.edit().putInt(getString(2131558403), this.Edam).apply();
  635. }
  636.  
  637. private void Greve()
  638. {
  639. AbbayedeBelloc(new Runnable()
  640. {
  641. public void run()
  642. {
  643. RadioPlayerService.Aragon(RadioPlayerService.this).Cheshire();
  644. RadioPlayerService.Alverca(RadioPlayerService.this, RadioPlayerService.Aragon(RadioPlayerService.this).Chaumes());
  645. RadioPlayerService.AubisquePyrenees(RadioPlayerService.this);
  646. }
  647. });
  648. if (this.Ardrahan != null) {
  649. this.Ardrahan.Airedale();
  650. }
  651. this.Ardrahan = new a(this);
  652. if (this.Cheddar != null)
  653. {
  654. AbbayedeBelloc(this.Cheddar);
  655. this.Cheddar = null;
  656. }
  657. if (Bierkase() == 0) {
  658. Airedale(CanadianCheddar());
  659. }
  660. for (;;)
  661. {
  662. if (AubisquePyrenees() == 3) {
  663. Chontaleno();
  664. }
  665. return;
  666. Alverca(Cantal());
  667. }
  668. }
  669.  
  670. private void Herrgardsost()
  671. {
  672. int i = 0;
  673. if ((this.Edelpilz.getBoolean(getString(2131558482), false)) || (Bierkase() == 0)) {
  674. i = 1;
  675. }
  676. if ((this.Chevres != i) && (this.AubisquePyrenees.Airedale(i))) {
  677. this.Chevres = i;
  678. }
  679. }
  680.  
  681. private boolean Herve()
  682. {
  683. Log.v(Alverca, "Requesting board to set channel to: " + this.Edam);
  684. if (this.AubisquePyrenees.Beaufort() == 1) {
  685. this.AubisquePyrenees.AubisquePyrenees();
  686. }
  687. if (this.AubisquePyrenees.Abondance(Bierkase(), this.Edam))
  688. {
  689. Log.v(Alverca, "Approved, updating meta");
  690. Braudostur(this.Edam);
  691. return true;
  692. }
  693. return false;
  694. }
  695.  
  696. private boolean Juustoleipa()
  697. {
  698. if (this.Bierkase != this.Blarney)
  699. {
  700. this.AubisquePyrenees.Cheshire();
  701. this.Blarney = this.AubisquePyrenees.Chaumes();
  702. }
  703. if ((Braudostur().length < 1) || (this.Bierkase != this.Blarney)) {
  704. if (this.Blarney > 0) {
  705. if (Braudostur().length < 1)
  706. {
  707. Log.v(Alverca, "No stations stored on device");
  708. Airedale();
  709. }
  710. }
  711. }
  712. do
  713. {
  714. do
  715. {
  716. for (;;)
  717. {
  718. return false;
  719. Log.v(Alverca, "" + this.Bierkase);
  720. Log.v(Alverca, "" + this.Blarney);
  721. break;
  722. Log.v(Alverca, "No stations stored, need to perform channel search");
  723. MeyerVintageGouda();
  724. }
  725. } while (Braudostur().length <= 0);
  726. Log.v(Alverca, "Requesting board to set channel to: " + BleudeSeptmoncel().AbbayedeBelloc());
  727. } while (!this.AubisquePyrenees.Abondance(Bierkase(), this.Beaufort[this.DoubleGloucester].Abondance()));
  728. Log.v(Alverca, "Approved, updating meta");
  729. Abondance(BleudeSeptmoncel());
  730. return true;
  731. }
  732.  
  733. private void Kikorangi()
  734. {
  735. this.Crowley = true;
  736. this.AubisquePyrenees.AbbayedeBelloc(this.Edelpilz.getInt(getString(2131558402), 3));
  737. }
  738.  
  739. private void Leerdammer()
  740. {
  741. this.Crowley = false;
  742. this.AubisquePyrenees.AbbayedeBelloc(Blarney());
  743. }
  744.  
  745. private void Maasdam()
  746. {
  747. DevonBlue();
  748. Maribo();
  749. }
  750.  
  751. private void Mamirolle()
  752. {
  753. Log.v(Alverca, "Requesting Audio Focus");
  754. if (this.Brick.requestAudioFocus(this, 3, 1) == 1)
  755. {
  756. Log.v(Alverca, "Request granted");
  757. this.DevonGarland = a.Airedale;
  758. return;
  759. }
  760. Log.v(Alverca, "Could not gain full focus");
  761. this.DevonGarland = a.Abondance;
  762. }
  763.  
  764. private void Maribo()
  765. {
  766. Log.v(Alverca, "Abandoning audio focus");
  767. if (Cheddar()) {
  768. this.Brick.abandonAudioFocus(this);
  769. }
  770. this.DevonGarland = a.AbbayedeBelloc;
  771. }
  772.  
  773. private void Matocq()
  774. {
  775. Log.v(Alverca, "Timed out waiting for device to attach");
  776. Iterator localIterator = this.Airedale.iterator();
  777. while (localIterator.hasNext()) {
  778. ((c)localIterator.next()).Abondance();
  779. }
  780. }
  781.  
  782. private void Meira()
  783. {
  784. Iterator localIterator = this.Airedale.iterator();
  785. while (localIterator.hasNext()) {
  786. ((c)localIterator.next()).Alverca();
  787. }
  788. }
  789.  
  790. private void Menonita()
  791. {
  792. Iterator localIterator = this.Airedale.iterator();
  793. while (localIterator.hasNext())
  794. {
  795. final c localc = (c)localIterator.next();
  796. new Handler(getMainLooper()).post(new Runnable()
  797. {
  798. public void run()
  799. {
  800. localc.c_();
  801. }
  802. });
  803. }
  804. }
  805.  
  806. private void MeyerVintageGouda()
  807. {
  808. Iterator localIterator = this.Airedale.iterator();
  809. while (localIterator.hasNext()) {
  810. ((c)localIterator.next()).b_();
  811. }
  812. }
  813.  
  814. public void AbbayedeBelloc(int paramInt)
  815. {
  816. if ((-1 < paramInt) && (paramInt < Abondance + 1) && (paramInt != Blarney()))
  817. {
  818. if (!this.AubisquePyrenees.Cojack()) {
  819. break label43;
  820. }
  821. Bierkase(paramInt);
  822. }
  823. for (;;)
  824. {
  825. Abondance(paramInt);
  826. return;
  827. label43:
  828. this.Cojack = paramInt;
  829. }
  830. }
  831.  
  832. public void AbbayedeBelloc(d paramd)
  833. {
  834. this.BleudeSeptmoncel.remove(paramd);
  835. Gloucester();
  836. }
  837.  
  838. public void AbbayedeBelloc(c paramc)
  839. {
  840. this.Airedale.add(paramc);
  841. }
  842.  
  843. public boolean AbbayedeBelloc()
  844. {
  845. d locald = new d();
  846. locald.AbbayedeBelloc(this.Braudostur.AbbayedeBelloc());
  847. locald.Abondance(this.Braudostur.Airedale());
  848. locald.AbbayedeBelloc(this.Braudostur.Abondance());
  849. if (this.Braudostur != null)
  850. {
  851. Iterator localIterator = this.BleudeSeptmoncel.iterator();
  852. while (localIterator.hasNext()) {
  853. if (((d)localIterator.next()).Abondance() / 100 * 100 == locald.Abondance() / 100 * 100) {
  854. return false;
  855. }
  856. }
  857. this.BleudeSeptmoncel.add(locald);
  858. Gouda();
  859. Gloucester();
  860. return true;
  861. }
  862. return false;
  863. }
  864.  
  865. public void Abondance()
  866. {
  867. this.BleudeSeptmoncel.clear();
  868. Gloucester();
  869. }
  870.  
  871. public void Abondance(int paramInt)
  872. {
  873. SharedPreferences.Editor localEditor = this.Edelpilz.edit();
  874. localEditor.putInt(getString(2131558411), paramInt);
  875. localEditor.apply();
  876. if (this.Edelpilz.getBoolean(getString(2131558409), true)) {
  877. this.Brick.setStreamVolume(3, paramInt, 0);
  878. }
  879. if (this.Cantal != null) {
  880. this.Cantal.AbbayedeBelloc(paramInt);
  881. }
  882. }
  883.  
  884. public void Abondance(c paramc)
  885. {
  886. this.Airedale.remove(paramc);
  887. }
  888.  
  889. public void Airedale()
  890. {
  891. if (!this.DevonBlue)
  892. {
  893. this.DevonBlue = true;
  894. this.AubisquePyrenees.AbbayedeBelloc(this.Esbareich);
  895. AubisquePyrenees(0);
  896. Meira();
  897. }
  898. }
  899.  
  900. public void Airedale(final int paramInt)
  901. {
  902. if ((paramInt < 0) || (paramInt >= this.Beaufort.length)) {
  903. return;
  904. }
  905. AubisquePyrenees(paramInt);
  906. if (this.AubisquePyrenees.Chontaleno())
  907. {
  908. AbbayedeBelloc(new Runnable()
  909. {
  910. public void run()
  911. {
  912. if (paramInt == RadioPlayerService.Beaufort(RadioPlayerService.this)) {
  913. RadioPlayerService.Bierkase(RadioPlayerService.this);
  914. }
  915. }
  916. });
  917. return;
  918. }
  919. Abondance(BleudeSeptmoncel());
  920. }
  921.  
  922. public void Alverca()
  923. {
  924. if ((!this.FourmedAmbert.isAlive()) && (!this.Fontal))
  925. {
  926. Log.v(Alverca, "Starting device connection");
  927. if (this.Ardrahan != null) {
  928. this.Ardrahan.Airedale();
  929. }
  930. this.Ardrahan = new a(this);
  931. this.Fontal = true;
  932. this.FourmedAmbert = new Thread(this.Friesla);
  933. this.FourmedAmbert.start();
  934. }
  935. }
  936.  
  937. public void Alverca(final int paramInt)
  938. {
  939. Beaufort(paramInt);
  940. if (this.AubisquePyrenees.Chontaleno())
  941. {
  942. AbbayedeBelloc(new Runnable()
  943. {
  944. public void run()
  945. {
  946. if (paramInt == RadioPlayerService.Blarney(RadioPlayerService.this)) {
  947. RadioPlayerService.BleudeSeptmoncel(RadioPlayerService.this);
  948. }
  949. }
  950. });
  951. return;
  952. }
  953. Braudostur(this.Edam);
  954. }
  955.  
  956. public com.freshollie.monkeyboard.keystoneradio.a.b Appenzell()
  957. {
  958. return this.AubisquePyrenees;
  959. }
  960.  
  961. public void Appenzell(int paramInt)
  962. {
  963. Ardrahan(paramInt);
  964. Cojack();
  965. CanadianCheddar(paramInt);
  966. if (paramInt == 0)
  967. {
  968. this.Braudostur = null;
  969. Airedale(this.DoubleGloucester);
  970. return;
  971. }
  972. Alverca(this.Edam);
  973. }
  974.  
  975. public MediaSessionCompat Aragon()
  976. {
  977. return this.CanadianCheddar;
  978. }
  979.  
  980. public void Aragon(final int paramInt)
  981. {
  982. AbbayedeBelloc(new Runnable()
  983. {
  984. public void run()
  985. {
  986. RadioPlayerService.Aragon(RadioPlayerService.this).AubisquePyrenees();
  987. RadioPlayerService.Aragon(RadioPlayerService.this).Abondance(paramInt);
  988. }
  989. });
  990. }
  991.  
  992. public MediaControllerCompat Ardrahan()
  993. {
  994. return this.CanadianCheddar.Airedale();
  995. }
  996.  
  997. public int AubisquePyrenees()
  998. {
  999. return Ardrahan().AbbayedeBelloc().AbbayedeBelloc();
  1000. }
  1001.  
  1002. public MediaMetadataCompat Beaufort()
  1003. {
  1004. return Ardrahan().Abondance();
  1005. }
  1006.  
  1007. public int Bierkase()
  1008. {
  1009. return this.Cheshire;
  1010. }
  1011.  
  1012. public int Blarney()
  1013. {
  1014. int i = this.Cojack;
  1015. if (this.Edelpilz.getBoolean(getString(2131558409), true))
  1016. {
  1017. int j = this.Brick.getStreamVolume(3);
  1018. i = j;
  1019. if (this.Cantal != null)
  1020. {
  1021. i = j;
  1022. if (j != this.Cantal.AbbayedeBelloc())
  1023. {
  1024. this.Cantal.AbbayedeBelloc(j);
  1025. i = j;
  1026. }
  1027. }
  1028. }
  1029. return i;
  1030. }
  1031.  
  1032. public d BleudeSeptmoncel()
  1033. {
  1034. if (Bierkase() == 0)
  1035. {
  1036. if (this.Beaufort.length > 0) {
  1037. return this.Beaufort[CanadianCheddar()];
  1038. }
  1039. return null;
  1040. }
  1041. return this.Braudostur;
  1042. }
  1043.  
  1044. public d[] Braudostur()
  1045. {
  1046. return this.Beaufort;
  1047. }
  1048.  
  1049. public d[] Brick()
  1050. {
  1051. return (d[])this.BleudeSeptmoncel.toArray(new d[this.BleudeSeptmoncel.size()]);
  1052. }
  1053.  
  1054. public int CanadianCheddar()
  1055. {
  1056. return this.DoubleGloucester;
  1057. }
  1058.  
  1059. public int Cantal()
  1060. {
  1061. return this.Edam;
  1062. }
  1063.  
  1064. public int Chaumes()
  1065. {
  1066. if (BleudeSeptmoncel() != null)
  1067. {
  1068. int i = 0;
  1069. while (i < this.BleudeSeptmoncel.size())
  1070. {
  1071. if (((((d)this.BleudeSeptmoncel.get(i)).AbbayedeBelloc().equals(BleudeSeptmoncel().AbbayedeBelloc())) && (!BleudeSeptmoncel().AbbayedeBelloc().isEmpty())) || (this.Edam / 100 == ((d)this.BleudeSeptmoncel.get(i)).Abondance() / 100)) {
  1072. return i;
  1073. }
  1074. i += 1;
  1075. }
  1076. }
  1077. return -1;
  1078. }
  1079.  
  1080. public boolean Cheddar()
  1081. {
  1082. return this.DevonGarland == a.Airedale;
  1083. }
  1084.  
  1085. public boolean Cheshire()
  1086. {
  1087. return AubisquePyrenees() == 3;
  1088. }
  1089.  
  1090. public boolean Chevres()
  1091. {
  1092. return this.Crowley;
  1093. }
  1094.  
  1095. public void Chontaleno()
  1096. {
  1097. Log.v(Alverca, "Handling a play request");
  1098. int i;
  1099. if (Bierkase() == 0) {
  1100. if ((this.DoubleGloucester == -1) || (Braudostur().length < 1))
  1101. {
  1102. Log.v(Alverca, "No station to play, ignoring request");
  1103. AbbayedeBelloc(new Runnable()
  1104. {
  1105. public void run()
  1106. {
  1107. RadioPlayerService.Bierkase(RadioPlayerService.this);
  1108. }
  1109. });
  1110. i = -1;
  1111. }
  1112. }
  1113. for (;;)
  1114. {
  1115. if (i != -1) {
  1116. AbbayedeBelloc(new Runnable()
  1117. {
  1118. public void run()
  1119. {
  1120. if (!RadioPlayerService.this.Cheddar()) {
  1121. RadioPlayerService.Braudostur(RadioPlayerService.this);
  1122. }
  1123. if (RadioPlayerService.this.Cheddar()) {
  1124. if (RadioPlayerService.this.Bierkase() != 0) {
  1125. break label74;
  1126. }
  1127. }
  1128. label74:
  1129. for (boolean bool = RadioPlayerService.Bierkase(RadioPlayerService.this); bool; bool = RadioPlayerService.BleudeSeptmoncel(RadioPlayerService.this))
  1130. {
  1131. Log.v(RadioPlayerService.Friesla(), "Updating playstate");
  1132. RadioPlayerService.this.Crowley();
  1133. RadioPlayerService.Abondance(RadioPlayerService.this, 3);
  1134. return;
  1135. }
  1136. Log.v(RadioPlayerService.Friesla(), "Board denied play request");
  1137. }
  1138. });
  1139. }
  1140. return;
  1141. i = this.DoubleGloucester;
  1142. continue;
  1143. i = this.Edam;
  1144. }
  1145. }
  1146.  
  1147. public void Cojack()
  1148. {
  1149. AbbayedeBelloc(new Runnable()
  1150. {
  1151. public void run()
  1152. {
  1153. RadioPlayerService.AubisquePyrenees(RadioPlayerService.this);
  1154. }
  1155. });
  1156. }
  1157.  
  1158. public void ColbyJack()
  1159. {
  1160. AbbayedeBelloc(new Runnable()
  1161. {
  1162. public void run()
  1163. {
  1164. RadioPlayerService.Airedale(RadioPlayerService.this, true);
  1165. RadioPlayerService.Aragon(RadioPlayerService.this).AbbayedeBelloc(0);
  1166. }
  1167. });
  1168. }
  1169.  
  1170. public void Crowley()
  1171. {
  1172. AbbayedeBelloc(new Runnable()
  1173. {
  1174. public void run()
  1175. {
  1176. RadioPlayerService.Airedale(RadioPlayerService.this, false);
  1177. RadioPlayerService.Aragon(RadioPlayerService.this).AbbayedeBelloc(RadioPlayerService.this.Blarney());
  1178. }
  1179. });
  1180. }
  1181.  
  1182. public void DevonBlue()
  1183. {
  1184. if (!this.AubisquePyrenees.Chontaleno())
  1185. {
  1186. BleudeSeptmoncel(1);
  1187. return;
  1188. }
  1189. AbbayedeBelloc(new Runnable()
  1190. {
  1191. public void run()
  1192. {
  1193. RadioPlayerService.Airedale(RadioPlayerService.this, true);
  1194. while ((!RadioPlayerService.Aragon(RadioPlayerService.this).AbbayedeBelloc(0)) && (RadioPlayerService.Aragon(RadioPlayerService.this).Cojack())) {}
  1195. if ((RadioPlayerService.Aragon(RadioPlayerService.this).Cojack()) && (RadioPlayerService.Aragon(RadioPlayerService.this).Beaufort() == 1)) {
  1196. RadioPlayerService.Aragon(RadioPlayerService.this).AubisquePyrenees();
  1197. }
  1198. RadioPlayerService.Abondance(RadioPlayerService.this, 1);
  1199. }
  1200. });
  1201. }
  1202.  
  1203. public void DevonGarland()
  1204. {
  1205. Blarney(1);
  1206. }
  1207.  
  1208. public void DoubleGloucester()
  1209. {
  1210. Blarney(-1);
  1211. }
  1212.  
  1213. public void Edam()
  1214. {
  1215. Aragon(1);
  1216. }
  1217.  
  1218. public void Edelpilz()
  1219. {
  1220. Aragon(0);
  1221. }
  1222.  
  1223. public void Esbareich()
  1224. {
  1225. AbbayedeBelloc(new Runnable()
  1226. {
  1227. public void run()
  1228. {
  1229. RadioPlayerService.Aragon(RadioPlayerService.this).Chevres();
  1230. }
  1231. });
  1232. }
  1233.  
  1234. public void Esrom()
  1235. {
  1236. this.Beaufort = new d[0];
  1237. this.AubisquePyrenees.AbbayedeBelloc(this.Esrom);
  1238. }
  1239.  
  1240. public void Filetta()
  1241. {
  1242. if (this.FourmedAmbert.isAlive()) {
  1243. this.FourmedAmbert.interrupt();
  1244. }
  1245. if (this.Ardrahan != null) {
  1246. this.Ardrahan.Airedale();
  1247. }
  1248. this.Ardrahan = null;
  1249. Maribo();
  1250. if (this.AubisquePyrenees.Cojack())
  1251. {
  1252. DevonBlue();
  1253. this.AubisquePyrenees.Airedale();
  1254. }
  1255. }
  1256.  
  1257. public void Fontal()
  1258. {
  1259. Iterator localIterator = this.Airedale.iterator();
  1260. while (localIterator.hasNext()) {
  1261. ((c)localIterator.next()).d_();
  1262. }
  1263. }
  1264.  
  1265. public void FourmedAmbert()
  1266. {
  1267. Iterator localIterator = this.Airedale.iterator();
  1268. while (localIterator.hasNext()) {
  1269. ((c)localIterator.next()).e_();
  1270. }
  1271. }
  1272.  
  1273. public void onAudioFocusChange(int paramInt)
  1274. {
  1275. Log.v(Alverca, "Audio focus changed");
  1276. switch (paramInt)
  1277. {
  1278. default:
  1279. case -1:
  1280. case 0:
  1281. case -3:
  1282. case -2:
  1283. do
  1284. {
  1285. do
  1286. {
  1287. return;
  1288. Maasdam();
  1289. return;
  1290. DevonBlue();
  1291. return;
  1292. } while (!this.AubisquePyrenees.Chontaleno());
  1293. Kikorangi();
  1294. return;
  1295. } while (!this.AubisquePyrenees.Chontaleno());
  1296. ColbyJack();
  1297. return;
  1298. }
  1299. Leerdammer();
  1300. }
  1301.  
  1302. public IBinder onBind(Intent paramIntent)
  1303. {
  1304. return this.Aragon;
  1305. }
  1306.  
  1307. public void onCreate()
  1308. {
  1309. this.Edelpilz = PreferenceManager.getDefaultSharedPreferences(this);
  1310. this.Brick = ((AudioManager)getSystemService("audio"));
  1311. if (!this.Edelpilz.getBoolean(getString(2131558409), true)) {}
  1312. for (this.Cojack = this.Edelpilz.getInt(getString(2131558411), 13);; this.Cojack = this.Brick.getStreamVolume(3))
  1313. {
  1314. Log.d(Alverca, "Start volume: " + this.Cojack);
  1315. this.CanadianCheddar = new MediaSessionCompat(this, getClass().getSimpleName());
  1316. this.CanadianCheddar.AbbayedeBelloc(new b(null));
  1317. this.CanadianCheddar.AbbayedeBelloc(3);
  1318. Fynbo();
  1319. this.Chaumes = new PlaybackStateCompat.a();
  1320. BleudeSeptmoncel(1);
  1321. Abondance(new d());
  1322. this.AubisquePyrenees = new com.freshollie.monkeyboard.keystoneradio.a.b(getApplicationContext());
  1323. this.AubisquePyrenees.AbbayedeBelloc().AbbayedeBelloc(this.Geitost);
  1324. this.AubisquePyrenees.AbbayedeBelloc().AbbayedeBelloc(this.Filetta);
  1325. Abondance(this.Cojack);
  1326. Geitost();
  1327. Alverca();
  1328. return;
  1329. }
  1330. }
  1331.  
  1332. public void onDestroy()
  1333. {
  1334. Log.v(Alverca, "Stopping service");
  1335. Filetta();
  1336. if (this.FourmedAmbert.isAlive()) {
  1337. this.FourmedAmbert.interrupt();
  1338. }
  1339. if (this.Chontaleno != null) {
  1340. getApplicationContext().getContentResolver().unregisterContentObserver(this.Chontaleno);
  1341. }
  1342. for (;;)
  1343. {
  1344. this.CanadianCheddar.AbbayedeBelloc(null);
  1345. this.CanadianCheddar.AbbayedeBelloc();
  1346. this.AubisquePyrenees.AbbayedeBelloc().Abondance(this.Geitost);
  1347. this.AubisquePyrenees.AbbayedeBelloc().Abondance(this.Filetta);
  1348. if (this.AubisquePyrenees.Cojack()) {
  1349. this.AubisquePyrenees.Airedale();
  1350. }
  1351. return;
  1352. if (this.Cantal != null) {
  1353. this.CanadianCheddar.Abondance(3);
  1354. }
  1355. }
  1356. }
  1357.  
  1358. public int onStartCommand(Intent paramIntent, int paramInt1, int paramInt2)
  1359. {
  1360. Log.v(Alverca, "Got an intent");
  1361. String str;
  1362. if ((paramIntent != null) && (paramIntent.getAction() != null))
  1363. {
  1364. Log.v(Alverca, "Received intent:" + paramIntent.getAction());
  1365. str = paramIntent.getAction();
  1366. paramInt1 = -1;
  1367. switch (str.hashCode())
  1368. {
  1369. }
  1370. }
  1371. for (;;)
  1372. {
  1373. switch (paramInt1)
  1374. {
  1375. default:
  1376. MediaButtonReceiver.AbbayedeBelloc(this.CanadianCheddar, paramIntent);
  1377. return 2;
  1378. if (str.equals("com.freshollie..monkeyboard.keystoneradio.playback.radioplayerservice.action.STOP"))
  1379. {
  1380. paramInt1 = 0;
  1381. continue;
  1382. if (str.equals("com.freshollie.monkeyboard.keystoneradio.playback.radioplayerservice.action.SEARCH_FORWARDS"))
  1383. {
  1384. paramInt1 = 1;
  1385. continue;
  1386. if (str.equals("com.freshollie..monkeyboard.keystoneradio.playback.radioplayerservice.action.NEXT"))
  1387. {
  1388. paramInt1 = 2;
  1389. continue;
  1390. if (str.equals("com.freshollie..monkeyboard.keystoneradio.playback.radioplayerservice.action.PAUSE"))
  1391. {
  1392. paramInt1 = 3;
  1393. continue;
  1394. if (str.equals("com.freshollie..monkeyboard.keystoneradio.playback.radioplayerservice.action.PREVIOUS"))
  1395. {
  1396. paramInt1 = 4;
  1397. continue;
  1398. if (str.equals("com.freshollie.monkeyboard.keystoneradio.playback.radioplayerservice.action.SEARCH_BACKWARDS"))
  1399. {
  1400. paramInt1 = 5;
  1401. continue;
  1402. if (str.equals("com.freshollie..monkeyboard.keystoneradio.playback.radioplayerservice.action.PLAY")) {
  1403. paramInt1 = 6;
  1404. }
  1405. }
  1406. }
  1407. }
  1408. }
  1409. }
  1410. }
  1411. break;
  1412. }
  1413. }
  1414. FourmedAmbert();
  1415. Filetta();
  1416. return 2;
  1417. Edam();
  1418. return 2;
  1419. DevonGarland();
  1420. return 2;
  1421. DevonBlue();
  1422. return 2;
  1423. DoubleGloucester();
  1424. return 2;
  1425. Edelpilz();
  1426. return 2;
  1427. Chontaleno();
  1428. return 2;
  1429. }
  1430.  
  1431. private static enum a
  1432. {
  1433. private a() {}
  1434. }
  1435.  
  1436. private class b
  1437. extends MediaSessionCompat.a
  1438. {
  1439. private b() {}
  1440.  
  1441. public boolean AbbayedeBelloc(Intent paramIntent)
  1442. {
  1443. Log.v(RadioPlayerService.Friesla(), "Got media button intent");
  1444. paramIntent = (KeyEvent)paramIntent.getParcelableExtra("android.intent.extra.KEY_EVENT");
  1445. if (paramIntent.getAction() == 1)
  1446. {
  1447. switch (paramIntent.getKeyCode())
  1448. {
  1449. default:
  1450. return false;
  1451. case 85:
  1452. if (RadioPlayerService.CanadianCheddar(RadioPlayerService.this).getBoolean(RadioPlayerService.this.getString(2131558406), false)) {
  1453. RadioPlayerService.this.Chontaleno();
  1454. }
  1455. for (;;)
  1456. {
  1457. return true;
  1458. if (RadioPlayerService.this.Cheshire()) {
  1459. RadioPlayerService.this.DevonBlue();
  1460. } else {
  1461. RadioPlayerService.this.Chontaleno();
  1462. }
  1463. }
  1464. case 126:
  1465. Abondance();
  1466. return true;
  1467. case 87:
  1468. Alverca();
  1469. return true;
  1470. case 90:
  1471. Aragon();
  1472. return true;
  1473. case 89:
  1474. Ardrahan();
  1475. return true;
  1476. case 88:
  1477. Appenzell();
  1478. return true;
  1479. }
  1480. Airedale();
  1481. return true;
  1482. }
  1483. return false;
  1484. }
  1485.  
  1486. public void Abondance()
  1487. {
  1488. RadioPlayerService.this.Chontaleno();
  1489. }
  1490.  
  1491. public void Airedale()
  1492. {
  1493. RadioPlayerService.this.DevonBlue();
  1494. }
  1495.  
  1496. public void Alverca()
  1497. {
  1498. if (RadioPlayerService.CanadianCheddar(RadioPlayerService.this).getBoolean(RadioPlayerService.this.getString(2131558485), true))
  1499. {
  1500. RadioPlayerService.this.DevonGarland();
  1501. return;
  1502. }
  1503. RadioPlayerService.this.Edam();
  1504. }
  1505.  
  1506. public void Appenzell()
  1507. {
  1508. if (RadioPlayerService.CanadianCheddar(RadioPlayerService.this).getBoolean(RadioPlayerService.this.getString(2131558485), true))
  1509. {
  1510. RadioPlayerService.this.DoubleGloucester();
  1511. return;
  1512. }
  1513. RadioPlayerService.this.Edelpilz();
  1514. }
  1515.  
  1516. public void Aragon()
  1517. {
  1518. super.Aragon();
  1519. RadioPlayerService.this.Edam();
  1520. }
  1521.  
  1522. public void Ardrahan()
  1523. {
  1524. super.Ardrahan();
  1525. RadioPlayerService.this.Edelpilz();
  1526. }
  1527.  
  1528. public void AubisquePyrenees()
  1529. {
  1530. RadioPlayerService.this.FourmedAmbert();
  1531. }
  1532. }
  1533.  
  1534. public static abstract interface c
  1535. {
  1536. public abstract void AbbayedeBelloc(int paramInt1, int paramInt2);
  1537.  
  1538. public abstract void Abondance();
  1539.  
  1540. public abstract void Abondance(int paramInt1, int paramInt2);
  1541.  
  1542. public abstract void Alverca();
  1543.  
  1544. public abstract void Beaufort(int paramInt);
  1545.  
  1546. public abstract void Bierkase(int paramInt);
  1547.  
  1548. public abstract void Blarney(int paramInt);
  1549.  
  1550. public abstract void b_();
  1551.  
  1552. public abstract void c_();
  1553.  
  1554. public abstract void d_();
  1555.  
  1556. public abstract void e_();
  1557. }
  1558.  
  1559. public class d
  1560. extends Binder
  1561. {
  1562. public d() {}
  1563.  
  1564. public RadioPlayerService AbbayedeBelloc()
  1565. {
  1566. return RadioPlayerService.this;
  1567. }
  1568. }
  1569. }
Add Comment
Please, Sign In to add comment