public void disablePan(BluetoothAdapter adapter){
  if (mPan == null)   mPan=(BluetoothPan)connectProxy(adapter,BluetoothProfile.PAN);
  assertNotNull(mPan);
  long start=System.currentTimeMillis();
  mPan.setBluetoothTethering(false);
  long stop=System.currentTimeMillis();
  assertFalse(mPan.isTetheringOn());
  writeOutput(String.format("disablePan() completed in %d ms",(stop - start)));
}

public void disablePan ( BluetoothAdapter adapter ) { if ( mPan == null ) mPan = ( BluetoothPan ) connectProxy ( adapter , BluetoothProfile . PAN ) ; assertNotNull ( mPan ) ; long start = System . currentTimeMillis ( ) ; mPan . setBluetoothTethering ( false ) ; long stop = System . currentTimeMillis ( ) ; assertFalse ( mPan . isTetheringOn ( ) ) ; writeOutput ( String . format ( "disablePan() completed in %d ms" , ( stop - start ) ) ) ; }
disables pan tethering on the local device and checks to make sure that tethering is disabled .
