// 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.olio.communication.bluetooth; import android.bluetooth.BluetoothAdapter; import android.bluetooth.BluetoothServerSocket; import android.bluetooth.BluetoothSocket; import com.olio.util.ALog; import java.io.IOException; // Referenced classes of package com.olio.communication.bluetooth: // BluetoothConnection private class mmServerSocket extends Thread { private String mSocketType; private final BluetoothServerSocket mmServerSocket; final BluetoothConnection this$0; public void cancel() { ALog.d((new StringBuilder()).append("Socket Type").append(mSocketType).append("cancel ").append(this).toString(), new Object[0]); if (mmServerSocket != null) { mmServerSocket.close(); return; } try { ALog.e("Null pointer in BluetoothConnection AcceptThread thread. Probably disconnection.", new Object[0]); return; } catch (IOException ioexception) { ALog.e((new StringBuilder()).append("Socket Type").append(mSocketType).append("close() of server failed").toString(), ioexception, new Object[0]); } return; } public void run() { ALog.d((new StringBuilder()).append("Socket Type: ").append(mSocketType).append("BEGIN mAcceptThread").append(this).toString(), new Object[0]); setName((new StringBuilder()).append("AcceptThread").append(mSocketType).toString()); if (mmServerSocket == null) { ALog.w("Server socket could not be created.", new Object[0]); BluetoothConnection.access$300(BluetoothConnection.this); return; } _L4: if (BluetoothConnection.access$400(BluetoothConnection.this) == 3) goto _L2; else goto _L1 _L1: Object obj1 = mmServerSocket.accept(); if (obj1 == null) goto _L4; else goto _L3 _L3: BluetoothConnection bluetoothconnection = BluetoothConnection.this; bluetoothconnection; JVM INSTR monitorenter ; BluetoothConnection.access$400(BluetoothConnection.this); JVM INSTR tableswitch 0 4: default 340 // 0 305 // 1 286 // 2 160 // 3 305 // 4 286; goto _L5 _L6 _L7 _L5 _L6 _L7 obj1; goto _L8 _L5: if (true) goto _L4; else goto _L9 _L9: _L8: bluetoothconnection; JVM INSTR monitorexit ; throw obj1; Object obj; obj; ALog.e((new StringBuilder()).append("Socket Type: ").append(mSocketType).append("accept() failed").toString(), ((Throwable) (obj)), new Object[0]); if (BluetoothConnection.access$400(BluetoothConnection.this) != 3 && BluetoothConnection.access$400(BluetoothConnection.this) != 1) { BluetoothConnection.access$300(BluetoothConnection.this); } _L2: ALog.i((new StringBuilder()).append("END mAcceptThread, socket Type: ").append(mSocketType).toString(), new Object[0]); return; obj; ALog.e("Null pointer in BluetoothConnection Accept Thread. Probably disconnection.", ((Throwable) (obj)), new Object[0]); BluetoothConnection.access$300(BluetoothConnection.this); goto _L2 _L7: connected(((BluetoothSocket) (obj1)), ((BluetoothSocket) (obj1)).getRemoteDevice(), mSocketType); goto _L4 _L6: ((BluetoothSocket) (obj1)).close(); goto _L4 Object obj2; obj2; ALog.e("Could not close unwanted socket", ((Throwable) (obj2)), new Object[0]); goto _L4 obj2; ALog.e("Null pointer in BluetoothConnection AcceptThread thread. Probably disconnection.", ((Throwable) (obj2)), new Object[0]); goto _L4 } public (boolean flag) { this$0 = BluetoothConnection.this; super(); Object obj = null; String s; if (flag) { s = "Secure"; } else { s = "Insecure"; } mSocketType = s; try { bluetoothconnection = BluetoothConnection.access$200(BluetoothConnection.this).listenUsingRfcommWithServiceRecord("BluetoothChatSecure", BluetoothConnection.access$100()); } // Misplaced declaration of an exception variable catch (BluetoothConnection bluetoothconnection) { ALog.e((new StringBuilder()).append("Socket Type: ").append(mSocketType).append("listen() failed").toString(), BluetoothConnection.this, new Object[0]); bluetoothconnection = obj; } // Misplaced declaration of an exception variable catch (BluetoothConnection bluetoothconnection) { ALog.e("Null pointer in BluetoothConnection AcceptThread thread. Probably disconnection.", BluetoothConnection.this, new Object[0]); bluetoothconnection = obj; } mmServerSocket = BluetoothConnection.this; } }