w tex; } }
public BluetoothSocket createInsecureLCAPSocket(int channel) throws Exception { if (_socketConstructor == null) throw new NoSuchMethodException("new BluetoothSocket");
try { return (BluetoothSocket)_socketConstructor.newInstance(TYPE_L2CAP, -1, false, false, mDevice, channel, null); } catch (InvocationTargetException tex) { if (tex.getCause() instanceof Exception) throw (Exception)tex.getCause(); else throw tex; } }
public boolean setPin(byte[] pin) throws Exception { if (_setPin == null) throw new NoSuchMethodException("setPin");
try { return (Boolean)_setPin.invoke(mDevice, pin); } catch (InvocationTargetException tex) { if (tex.getCause() instanceof Exception) throw (Exception)tex.getCause(); else throw tex; } }
public boolean setPasskey(int passkey) throws Exception {毕业论文 if (_setPasskey == null) throw new NoSuchMethodException("setPasskey");
try { return (Boolean)_setPasskey.invoke(mDevice, passkey); } catch (InvocationTargetException tex) { if (tex.getCause() instanceof Exception) throw (Exception)tex.getCause(); else throw tex; } } }
上一页 [1] [2] [3] [4] [5] [6]
|