Skip to content

Commit

Permalink
Removed whitespaces.
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicolas Gramlich committed Feb 10, 2013
1 parent 162baee commit 9a5a36a
Show file tree
Hide file tree
Showing 10 changed files with 27 additions and 27 deletions.
10 changes: 5 additions & 5 deletions build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<!-- The local.properties file is created and updated by the 'android' tool.
It contains the path to the SDK. It should *NOT* be checked into
Version Control Systems. -->
<loadproperties srcFile="local.properties" />
<loadproperties srcFile="local.properties"/>

<!-- The ant.properties file can be created by you. It is only edited by the
'android' tool to add properties to it.
Expand All @@ -26,7 +26,7 @@
application and should be checked into Version Control Systems.
-->
<property file="ant.properties" />
<property file="ant.properties"/>

<!-- The project.properties file is created and updated by the 'android'
tool, as well as ADT.
Expand All @@ -37,13 +37,13 @@
This file is an integral part of the build system for your
application and should be checked into Version Control Systems. -->
<loadproperties srcFile="project.properties" />
<loadproperties srcFile="project.properties"/>

<!-- quick check on sdk.dir -->
<fail
message="sdk.dir is missing. Make sure to generate local.properties using 'android update project'"
unless="sdk.dir"
/>
/>


<!-- extension targets. Uncomment the ones where you want to do custom work
Expand Down Expand Up @@ -80,6 +80,6 @@
in order to avoid having your file be overridden by tools such as "android update project"
-->
<!-- version-tag: 1 -->
<import file="${sdk.dir}/tools/ant/build.xml" />
<import file="${sdk.dir}/tools/ant/build.xml"/>

</project>
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,11 @@ public BluetoothSocketConnectionServerConnector(final BluetoothSocketConnection
// ===========================================================
// Inner and Anonymous Classes
// ===========================================================

public static interface IBluetoothSocketConnectionServerConnectorListener extends IServerConnectorListener<BluetoothSocketConnection> {

}

public static class DefaultBluetoothConnectionSocketServerConnectorListener implements IBluetoothSocketConnectionServerConnectorListener {
@Override
public void onStarted(final ServerConnector<BluetoothSocketConnection> pServerConnector) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,11 @@ public SocketConnectionServerConnector(final SocketConnection pConnection, final
// ===========================================================
// Inner and Anonymous Classes
// ===========================================================

public static interface ISocketConnectionServerConnectorListener extends IServerConnectorListener<SocketConnection> {

}

public static class DefaultSocketConnectionServerConnectorListener implements ISocketConnectionServerConnectorListener {
@Override
public void onStarted(final ServerConnector<SocketConnection> pServerConnector) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public BluetoothSocketServer(final String pUUID, final IClientConnectorListener<
super(pClientConnectorListener, pBluetoothSocketServerListener);

this.mUUID = pUUID;

if(Bluetooth.isSupportedByAndroidVersion() == false) {
throw new BluetoothException();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,15 @@ public class BluetoothSocketConnectionClientConnector extends ClientConnector<Bl

public BluetoothSocketConnectionClientConnector(final BluetoothSocketConnection pBluetoothSocketConnection) throws IOException, BluetoothException {
super(pBluetoothSocketConnection);

if(Bluetooth.isSupportedByAndroidVersion() == false) {
throw new BluetoothException();
}
}

public BluetoothSocketConnectionClientConnector(final BluetoothSocketConnection pBluetoothSocketConnection, final IClientMessageReader<BluetoothSocketConnection> pClientMessageReader) throws IOException, BluetoothException {
super(pBluetoothSocketConnection, pClientMessageReader);

if(Bluetooth.isSupportedByAndroidVersion() == false) {
throw new BluetoothException();
}
Expand All @@ -59,9 +59,9 @@ public BluetoothSocketConnectionClientConnector(final BluetoothSocketConnection
// ===========================================================
// Inner and Anonymous Classes
// ===========================================================

public static interface IBluetoothSocketConnectionClientConnectorListener extends IClientConnectorListener<BluetoothSocketConnection> {

}

public static class DefaultBluetoothSocketClientConnectorListener implements IBluetoothSocketConnectionClientConnectorListener {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,9 @@ public SocketConnectionClientConnector(final SocketConnection pSocketConnection,
// ===========================================================
// Inner and Anonymous Classes
// ===========================================================

public static interface ISocketConnectionClientConnectorListener extends IClientConnectorListener<SocketConnection> {

}

public static class DefaultSocketConnectionClientConnectorListener implements ISocketConnectionClientConnectorListener {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,11 @@ public class BluetoothSocketConnection extends Connection {
// ===========================================================
// Constructors
// ===========================================================

public BluetoothSocketConnection(final BluetoothAdapter pBluetoothAdapter, final String pMacAddress, final String pUUID) throws IOException, BluetoothException {
this(pBluetoothAdapter.getRemoteDevice(pMacAddress), pUUID);
}

public BluetoothSocketConnection(final BluetoothDevice pBluetoothDevice, final String pUUID) throws IOException, BluetoothException {
this(pBluetoothDevice.createRfcommSocketToServiceRecord(UUID.fromString(pUUID)));
}
Expand All @@ -47,7 +47,7 @@ public BluetoothSocketConnection(final BluetoothSocket pBluetoothSocket) throws
super(new DataInputStream(pBluetoothSocket.getInputStream()), new DataOutputStream(pBluetoothSocket.getOutputStream()));

this.mBluetoothSocket = pBluetoothSocket;

if(Bluetooth.isSupportedByAndroidVersion() == false) {
throw new BluetoothException();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,15 +64,15 @@ protected boolean removeConnectorListener(final IConnectorListener<? extends Con
// ===========================================================
// Methods for/from SuperClass/Interfaces
// ===========================================================

// ===========================================================
// Methods
// ===========================================================

public void start() {
this.getConnection().start();
}

public void terminate() {
this.getConnection().terminate();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public class Bluetooth {
// ===========================================================
// Methods
// ===========================================================

public static boolean isSupported(final Context pContext) {
if(SUPPORTED == null) {
SUPPORTED = SystemUtils.isAndroidVersionOrHigher(Build.VERSION_CODES.ECLAIR_MR1) && SystemUtils.hasSystemFeature(pContext, PackageManager.FEATURE_BLUETOOTH);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ public static byte[] getBroadcastIPAddressRaw(final Context pContext) throws Wif
final WifiManager wifiManager = WifiUtils.getWifiManager(pContext);
final DhcpInfo dhcp = wifiManager.getDhcpInfo();
// TODO handle null somehow...

final int broadcast = (dhcp.ipAddress & dhcp.netmask) | ~dhcp.netmask;
final byte[] broadcastIP = new byte[4];
for(int k = 0; k < 4; k++) {
Expand All @@ -158,7 +158,7 @@ public static byte[] getBroadcastIPAddressRaw(final Context pContext) throws Wif
public static MulticastLock aquireMulticastLock(final Context pContext) {
return aquireMulticastLock(pContext, MULTICASTLOCK_NAME_DEFAULT);
}

public static MulticastLock aquireMulticastLock(final Context pContext, final String pMulticastLockName) {
MulticastLock multicastLock = getWifiManager(pContext).createMulticastLock(pMulticastLockName);
multicastLock.setReferenceCounted(true);
Expand Down

0 comments on commit 9a5a36a

Please sign in to comment.