public class BluetoothOppBatch {
private static final String TAG = "BtOppBatch";
- private static final boolean D = Constants.DEBUG;
private static final boolean V = Constants.VERBOSE;
public int mId;
*/
public class BluetoothOppManager {
private static final String TAG = "BluetoothOppManager";
- private static final boolean D = Constants.DEBUG;
private static final boolean V = Constants.VERBOSE;
private static BluetoothOppManager INSTANCE;
*/
class BluetoothOppNotification {
private static final String TAG = "BluetoothOppNotification";
- private static final boolean D = Constants.DEBUG;
private static final boolean V = Constants.VERBOSE;
static final String status = "(" + BluetoothShare.STATUS + " == '192'" + ")";
*/
public class BluetoothOppPreference {
private static final String TAG = "BluetoothOppPreference";
- private static final boolean D = Constants.DEBUG;
private static final boolean V = Constants.VERBOSE;
private static BluetoothOppPreference INSTANCE;
*/
public class BluetoothOppReceiver extends BroadcastReceiver {
private static final String TAG = "BluetoothOppReceiver";
- private static final boolean D = Constants.DEBUG;
private static final boolean V = Constants.VERBOSE;
@Override
public class BluetoothOppRfcommListener {
private static final String TAG = "BtOppRfcommListener";
- private static final boolean D = Constants.DEBUG;
-
private static final boolean V = Constants.VERBOSE;
public static final int MSG_INCOMING_BTOPP_CONNECTION = 100;
import android.database.Cursor;
import android.net.Uri;
import android.provider.OpenableColumns;
-import android.provider.ContactsContract.Contacts;
/**
* This class stores information about a single sending file It will only be
import android.app.Service;
import android.bluetooth.BluetoothAdapter;
-import android.bluetooth.BluetoothDevice;
import android.content.BroadcastReceiver;
-import android.content.ContentUris;
import android.content.ContentValues;
import android.content.Context;
import android.content.Intent;
} catch (IOException e) {
Log.e(TAG, "close tranport error");
}
- } else if (Constants.USE_TCP_DEBUG && !Constants.USE_TCP_SIMPLE_SERVER){
+ } else if (Constants.USE_TCP_DEBUG && !Constants.USE_TCP_SIMPLE_SERVER) {
Log.i(TAG, "Start Obex Server in TCP DEBUG mode");
createServerSession(transport);
} else {
private EventHandler mSessionHandler;
- /*
- * TODO check if we need PowerManager here
- */
- private PowerManager mPowerManager;
-
private long mTimestamp;
public BluetoothOppTransfer(Context context, PowerManager powerManager,
BluetoothOppBatch batch, BluetoothOppObexSession session) {
mContext = context;
- mPowerManager = powerManager;
mBatch = batch;
mSession = session;
import android.bluetooth.BluetoothAdapter;
import android.bluetooth.BluetoothDevice;
-import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.net.Uri;
View.OnCreateContextMenuListener, OnItemClickListener {
private static final String TAG = "BluetoothOppTransferHistory";
- private static final boolean D = Constants.DEBUG;
-
private static final boolean V = Constants.VERBOSE;
private ListView mListView;
* android.widget.AdapterView.OnItemClickListener#onItemClick(android.widget
* .AdapterView, android.view.View, int, long)
*/
- public void onItemClick(AdapterView parent, View view, int position, long id) {
+ public void onItemClick(AdapterView<?> parent, View view, int position, long id) {
// Open the selected item
mTransferCursor.moveToPosition(position);
openCompleteTransfer();
class TestTcpServer extends ServerRequestHandler implements Runnable {
private static final String TAG = "ServerRequestHandler";
- private static final boolean D = Constants.DEBUG;
-
private static final boolean V = Constants.VERBOSE;
static final int port = 6500;