summaryrefslogtreecommitdiffstats
path: root/src/com/android/bluetooth/opp
diff options
context:
space:
mode:
authorAndres Morales <anmorales@google.com>2014-03-11 08:56:54 -0700
committerAndres Morales <anmorales@google.com>2014-04-03 16:02:19 -0700
commitcfaffa85e4a5388f3591bb17f88fc7768676eae2 (patch)
treeab8934a47355cc2627f1272b9e4de707d22b9ea3 /src/com/android/bluetooth/opp
parent7903540c80a44140966ad8a4c9e30907494e2e18 (diff)
downloadandroid_packages_apps_Bluetooth-cfaffa85e4a5388f3591bb17f88fc7768676eae2.tar.gz
android_packages_apps_Bluetooth-cfaffa85e4a5388f3591bb17f88fc7768676eae2.tar.bz2
android_packages_apps_Bluetooth-cfaffa85e4a5388f3591bb17f88fc7768676eae2.zip
Making Bluetooth OPP file transfer intent generic
In the process of adding Wifi as a transport for Beam, the only consumer of this code as of yet. Need to decouple the file transfer events from the bluetooth stack to be able to cleanly reuse them in the wifi code. Change-Id: I9dafe4f6756bf429b4770826c46d41330a334493
Diffstat (limited to 'src/com/android/bluetooth/opp')
-rw-r--r--src/com/android/bluetooth/opp/Constants.java28
1 files changed, 14 insertions, 14 deletions
diff --git a/src/com/android/bluetooth/opp/Constants.java b/src/com/android/bluetooth/opp/Constants.java
index c31a3287c..4abdc69af 100644
--- a/src/com/android/bluetooth/opp/Constants.java
+++ b/src/com/android/bluetooth/opp/Constants.java
@@ -82,34 +82,34 @@ public class Constants {
/** the intent that is used for initiating a handover transfer */
public static final String ACTION_HANDOVER_SEND =
- "android.btopp.intent.action.HANDOVER_SEND";
+ "android.nfc.handover.intent.action.HANDOVER_SEND";
/** the intent that is used for initiating a multi-uri handover transfer */
public static final String ACTION_HANDOVER_SEND_MULTIPLE =
- "android.btopp.intent.action.HANDOVER_SEND_MULTIPLE";
+ "android.nfc.handover.intent.action.HANDOVER_SEND_MULTIPLE";
/** the intent that is used for indicating an incoming transfer*/
public static final String ACTION_HANDOVER_STARTED =
- "android.btopp.intent.action.BT_OPP_HANDOVER_STARTED";
+ "android.nfc.handover.intent.action.HANDOVER_STARTED";
/** intent action used to indicate the progress of a handover transfer */
public static final String ACTION_BT_OPP_TRANSFER_PROGRESS =
- "android.btopp.intent.action.BT_OPP_TRANSFER_PROGRESS";
+ "android.nfc.handover.intent.action.TRANSFER_PROGRESS";
/** intent action used to indicate the completion of a handover transfer */
public static final String ACTION_BT_OPP_TRANSFER_DONE =
- "android.btopp.intent.action.BT_OPP_TRANSFER_DONE";
+ "android.nfc.handover.intent.action.TRANSFER_DONE";
/** intent extra used to indicate the success of a handover transfer */
public static final String EXTRA_BT_OPP_TRANSFER_STATUS =
- "android.btopp.intent.extra.BT_OPP_TRANSFER_STATUS";
+ "android.nfc.handover.intent.extra.TRANSFER_STATUS";
/** intent extra used to indicate the address associated with the transfer */
public static final String EXTRA_BT_OPP_ADDRESS =
- "android.btopp.intent.extra.BT_OPP_ADDRESS";
+ "android.nfc.handover.intent.extra.ADDRESS";
public static final String EXTRA_BT_OPP_OBJECT_COUNT =
- "android.btopp.intent.extra.BT_OPP_OBJECT_COUNT";
+ "android.nfc.handover.intent.extra.OBJECT_COUNT";
public static final int COUNT_HEADER_UNAVAILABLE = -1;
public static final int HANDOVER_TRANSFER_STATUS_SUCCESS = 0;
@@ -118,7 +118,7 @@ public class Constants {
/** intent extra used to indicate the direction of a handover transfer */
public static final String EXTRA_BT_OPP_TRANSFER_DIRECTION =
- "android.btopp.intent.extra.BT_OPP_TRANSFER_DIRECTION";
+ "android.nfc.handover.intent.extra.TRANSFER_DIRECTION";
public static final int DIRECTION_BLUETOOTH_INCOMING = 0;
@@ -126,25 +126,25 @@ public class Constants {
/** intent extra used to provide a unique ID for the transfer */
public static final String EXTRA_BT_OPP_TRANSFER_ID =
- "android.btopp.intent.extra.BT_OPP_TRANSFER_ID";
+ "android.nfc.handover.intent.extra.TRANSFER_ID";
/** intent extra used to provide progress of the transfer */
public static final String EXTRA_BT_OPP_TRANSFER_PROGRESS =
- "android.btopp.intent.extra.BT_OPP_TRANSFER_PROGRESS";
+ "android.nfc.handover.intent.extra.TRANSFER_PROGRESS";
/** intent extra used to provide the Uri where the data was stored
* by the handover transfer */
public static final String EXTRA_BT_OPP_TRANSFER_URI =
- "android.btopp.intent.extra.BT_OPP_TRANSFER_URI";
+ "android.nfc.handover.intent.extra.TRANSFER_URI";
/** intent extra used to provide the mime-type of the data in
* the handover transfer */
public static final String EXTRA_BT_OPP_TRANSFER_MIMETYPE =
- "android.btopp.intent.extra.BT_OPP_TRANSFER_MIMETYPE";
+ "android.nfc.handover.intent.extra.TRANSFER_MIME_TYPE";
/** permission needed to be able to receive handover status requests */
public static final String HANDOVER_STATUS_PERMISSION =
- "com.android.permission.HANDOVER_STATUS";
+ "android.permission.NFC_HANDOVER_STATUS";
/** intent extra that indicates this transfer is a handover from another
* transport (NFC, WIFI)