blob: 8e2279189035b6070418e7bee8de4154264bfcb6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
|
/*
* Copyright (C) 2008 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package android.bluetooth;
import android.annotation.SdkConstant;
import android.annotation.SdkConstant.SdkConstantType;
/**
* The Android Bluetooth API is not finalized, and *will* change. Use at your
* own risk.
*
* Manages the local Bluetooth device. Scan for devices, create bondings,
* power up and down the adapter.
*
* @hide
*/
public interface BluetoothIntent {
public static final String MODE =
"android.bluetooth.intent.MODE";
public static final String ADDRESS =
"android.bluetooth.intent.ADDRESS";
public static final String NAME =
"android.bluetooth.intent.NAME";
public static final String ALIAS =
"android.bluetooth.intent.ALIAS";
public static final String RSSI =
"android.bluetooth.intent.RSSI";
public static final String CLASS =
"android.bluetooth.intent.CLASS";
public static final String HEADSET_STATE =
"android.bluetooth.intent.HEADSET_STATE";
public static final String HEADSET_PREVIOUS_STATE =
"android.bluetooth.intent.HEADSET_PREVIOUS_STATE";
@SdkConstant(SdkConstantType.BROADCAST_INTENT_ACTION)
public static final String ENABLED_ACTION =
"android.bluetooth.intent.action.ENABLED";
@SdkConstant(SdkConstantType.BROADCAST_INTENT_ACTION)
public static final String DISABLED_ACTION =
"android.bluetooth.intent.action.DISABLED";
@SdkConstant(SdkConstantType.BROADCAST_INTENT_ACTION)
public static final String NAME_CHANGED_ACTION =
"android.bluetooth.intent.action.NAME_CHANGED";
@SdkConstant(SdkConstantType.BROADCAST_INTENT_ACTION)
public static final String MODE_CHANGED_ACTION =
"android.bluetooth.intent.action.MODE_CHANGED";
@SdkConstant(SdkConstantType.BROADCAST_INTENT_ACTION)
public static final String DISCOVERY_STARTED_ACTION =
"android.bluetooth.intent.action.DISCOVERY_STARTED";
@SdkConstant(SdkConstantType.BROADCAST_INTENT_ACTION)
public static final String DISCOVERY_COMPLETED_ACTION =
"android.bluetooth.intent.action.DISCOVERY_COMPLETED";
@SdkConstant(SdkConstantType.BROADCAST_INTENT_ACTION)
public static final String PAIRING_REQUEST_ACTION =
"android.bluetooth.intent.action.PAIRING_REQUEST";
@SdkConstant(SdkConstantType.BROADCAST_INTENT_ACTION)
public static final String PAIRING_CANCEL_ACTION =
"android.bluetooth.intent.action.PAIRING_CANCEL";
@SdkConstant(SdkConstantType.BROADCAST_INTENT_ACTION)
public static final String REMOTE_DEVICE_FOUND_ACTION =
"android.bluetooth.intent.action.REMOTE_DEVICE_FOUND";
@SdkConstant(SdkConstantType.BROADCAST_INTENT_ACTION)
public static final String REMOTE_DEVICE_DISAPPEARED_ACTION =
"android.bluetooth.intent.action.REMOTE_DEVICE_DISAPPEARED";
@SdkConstant(SdkConstantType.BROADCAST_INTENT_ACTION)
public static final String REMOTE_DEVICE_CLASS_UPDATED_ACTION =
"android.bluetooth.intent.action.REMOTE_DEVICE_DISAPPEARED";
@SdkConstant(SdkConstantType.BROADCAST_INTENT_ACTION)
public static final String REMOTE_DEVICE_CONNECTED_ACTION =
"android.bluetooth.intent.action.REMOTE_DEVICE_CONNECTED";
@SdkConstant(SdkConstantType.BROADCAST_INTENT_ACTION)
public static final String REMOTE_DEVICE_DISCONNECT_REQUESTED_ACTION =
"android.bluetooth.intent.action.REMOTE_DEVICE_DISCONNECT_REQUESTED";
@SdkConstant(SdkConstantType.BROADCAST_INTENT_ACTION)
public static final String REMOTE_DEVICE_DISCONNECTED_ACTION =
"android.bluetooth.intent.action.REMOTE_DEVICE_DISCONNECTED";
@SdkConstant(SdkConstantType.BROADCAST_INTENT_ACTION)
public static final String REMOTE_NAME_UPDATED_ACTION =
"android.bluetooth.intent.action.REMOTE_NAME_UPDATED";
@SdkConstant(SdkConstantType.BROADCAST_INTENT_ACTION)
public static final String REMOTE_NAME_FAILED_ACTION =
"android.bluetooth.intent.action.REMOTE_NAME_FAILED";
@SdkConstant(SdkConstantType.BROADCAST_INTENT_ACTION)
public static final String REMOTE_ALIAS_CHANGED_ACTION =
"android.bluetooth.intent.action.REMOTE_ALIAS_CHANGED";
@SdkConstant(SdkConstantType.BROADCAST_INTENT_ACTION)
public static final String REMOTE_ALIAS_CLEARED_ACTION =
"android.bluetooth.intent.action.REMOTE_ALIAS_CLEARED";
@SdkConstant(SdkConstantType.BROADCAST_INTENT_ACTION)
public static final String BONDING_CREATED_ACTION =
"android.bluetooth.intent.action.BONDING_CREATED";
@SdkConstant(SdkConstantType.BROADCAST_INTENT_ACTION)
public static final String BONDING_REMOVED_ACTION =
"android.bluetooth.intent.action.BONDING_REMOVED";
@SdkConstant(SdkConstantType.BROADCAST_INTENT_ACTION)
public static final String HEADSET_STATE_CHANGED_ACTION =
"android.bluetooth.intent.action.HEADSET_STATE_CHANGED";
}
|