// Decompiled by Jad v1.5.8e. Copyright 2001 Pavel Kouznetsov. // Jad home page: http://www.geocities.com/kpdus/jad.html // Decompiler options: braces fieldsfirst space lnc package com.oliodevices.assist.app.fragments; import android.bluetooth.BluetoothDevice; import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; import com.olio.util.ALog; import com.oliodevices.assist.app.adapters.DeviceListAdapter; import java.util.Objects; // Referenced classes of package com.oliodevices.assist.app.fragments: // SetupConnectFragment class this._cls0 extends BroadcastReceiver { final SetupConnectFragment this$0; public void onReceive(Context context, Intent intent) { context = intent.getAction(); if (!"android.bluetooth.device.action.FOUND".equals(context)) goto _L2; else goto _L1 _L1: BluetoothDevice bluetoothdevice; int i; bluetoothdevice = (BluetoothDevice)intent.getParcelableExtra("android.bluetooth.device.extra.DEVICE"); i = bluetoothdevice.getType(); context = "Unknown"; i; JVM INSTR tableswitch 1 3: default 64 // 1 113 // 2 107 // 3 119; goto _L3 _L4 _L5 _L6 _L3: ALog.d("BT %s device: %s (%s)", new Object[] { context, bluetoothdevice.getAddress(), bluetoothdevice.getName() }); if (bluetoothdevice.getAddress().startsWith("B0:C5:CA:D")) goto _L8; else goto _L7 _L7: return; _L5: context = "LE"; continue; /* Loop/switch isn't completed */ _L4: context = "Legacy"; continue; /* Loop/switch isn't completed */ _L6: context = "Dual"; continue; /* Loop/switch isn't completed */ _L8: short word0 = intent.getShortExtra("android.bluetooth.device.extra.RSSI", (short)-32768); SetupConnectFragment.access$000(SetupConnectFragment.this).add(bluetoothdevice); SetupConnectFragment.access$000(SetupConnectFragment.this).setRssiForDevice(bluetoothdevice, word0); return; _L2: if (!"android.bluetooth.device.action.BOND_STATE_CHANGED".equals(context)) { break; /* Loop/switch isn't completed */ } context = (BluetoothDevice)intent.getParcelableExtra("android.bluetooth.device.extra.DEVICE"); if (SetupConnectFragment.access$100(SetupConnectFragment.this) == null || !Objects.equals(SetupConnectFragment.access$100(SetupConnectFragment.this).getAddress(), context.getAddress())) goto _L7; else goto _L9 _L9: int j = intent.getIntExtra("android.bluetooth.device.extra.BOND_STATE", 0); int k = intent.getIntExtra("android.bluetooth.device.extra.PREVIOUS_BOND_STATE", 0); switch (j) { case 11: // '\013' default: return; case 10: // '\n' if (k == 11) { if (isResumed()) { SetupConnectFragment.access$102(SetupConnectFragment.this, null); ALog.d("Bond state changed: Bonding to None", new Object[0]); SetupConnectFragment.access$300(SetupConnectFragment.this, 0x7f060137); SetupConnectFragment.access$402(SetupConnectFragment.this, 0); return; } else { SetupConnectFragment.access$402(SetupConnectFragment.this, 3); return; } } break; case 12: // '\f' SetupConnectFragment.access$200(SetupConnectFragment.this, context); return; } if (true) goto _L7; else goto _L10 _L10: if (!"android.bluetooth.adapter.action.STATE_CHANGED".equals(context)) { continue; /* Loop/switch isn't completed */ } if (intent.getIntExtra("android.bluetooth.adapter.extra.STATE", 0) != 12) goto _L7; else goto _L11 _L11: SetupConnectFragment.access$500(SetupConnectFragment.this); return; if (!"android.bluetooth.adapter.action.DISCOVERY_FINISHED".equals(context) || SetupConnectFragment.access$400(SetupConnectFragment.this) == 1) goto _L7; else goto _L12 _L12: SetupConnectFragment.access$600(SetupConnectFragment.this); return; if (true) goto _L3; else goto _L13 _L13: } A() { this$0 = SetupConnectFragment.this; super(); } }