Home
last modified time | relevance | path

Searched refs:BluetoothProfile (Results 1 – 25 of 96) sorted by relevance

1234

/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/bluetooth/
DCachedBluetoothDeviceTest.java30 import android.bluetooth.BluetoothProfile;
102 updateProfileStatus(mPanProfile, BluetoothProfile.STATE_CONNECTED); in getConnectionSummary_testSingleProfileConnectDisconnect()
106 updateProfileStatus(mPanProfile, BluetoothProfile.STATE_DISCONNECTED); in getConnectionSummary_testSingleProfileConnectDisconnect()
112 updateProfileStatus(mPanProfile, BluetoothProfile.STATE_CONNECTED); in getConnectionSummary_testSingleProfileConnectDisconnect()
116 updateProfileStatus(mPanProfile, BluetoothProfile.STATE_DISCONNECTED); in getConnectionSummary_testSingleProfileConnectDisconnect()
123 updateProfileStatus(mPanProfile, BluetoothProfile.STATE_CONNECTED); in getConnectionSummary_testSingleProfileConnectDisconnect()
127 updateProfileStatus(mPanProfile, BluetoothProfile.STATE_DISCONNECTED); in getConnectionSummary_testSingleProfileConnectDisconnect()
136 updateProfileStatus(mHfpProfile, BluetoothProfile.STATE_CONNECTED); in getConnectionSummary_testMultipleProfileConnectDisconnect()
137 updateProfileStatus(mA2dpProfile, BluetoothProfile.STATE_CONNECTED); in getConnectionSummary_testMultipleProfileConnectDisconnect()
138 updateProfileStatus(mPanProfile, BluetoothProfile.STATE_CONNECTED); in getConnectionSummary_testMultipleProfileConnectDisconnect()
[all …]
DLocalBluetoothProfileManagerTest.java34 import android.bluetooth.BluetoothProfile;
95 new int[] {BluetoothProfile.HID_HOST, BluetoothProfile.HID_DEVICE})); in constructor_initiateHidAndHidDeviceProfile()
120 new int[] {BluetoothProfile.A2DP})); in updateLocalProfiles_addA2dpToLocalProfiles()
133 new int[] {BluetoothProfile.HID_HOST})); in updateProfiles_addHidProfileForRemoteDevice()
155 new int[] {BluetoothProfile.A2DP})); in stateChangedHandler_receiveA2dpConnectionStateChanged_shouldDispatchCallback()
160 mIntent.putExtra(BluetoothProfile.EXTRA_PREVIOUS_STATE, BluetoothProfile.STATE_CONNECTING); in stateChangedHandler_receiveA2dpConnectionStateChanged_shouldDispatchCallback()
161 mIntent.putExtra(BluetoothProfile.EXTRA_STATE, BluetoothProfile.STATE_CONNECTED); in stateChangedHandler_receiveA2dpConnectionStateChanged_shouldDispatchCallback()
166 mCachedBluetoothDevice, BluetoothProfile.STATE_CONNECTED, BluetoothProfile.A2DP); in stateChangedHandler_receiveA2dpConnectionStateChanged_shouldDispatchCallback()
176 new int[] {BluetoothProfile.HEADSET})); in stateChangedHandler_receiveHeadsetConnectionStateChanged_shouldDispatchCallback()
181 mIntent.putExtra(BluetoothProfile.EXTRA_PREVIOUS_STATE, BluetoothProfile.STATE_CONNECTING); in stateChangedHandler_receiveHeadsetConnectionStateChanged_shouldDispatchCallback()
[all …]
DCachedBluetoothDeviceManagerTest.java29 import android.bluetooth.BluetoothProfile;
400 cachedDevice1.onProfileStateChanged(mA2dpProfile, BluetoothProfile.STATE_CONNECTED); in onActiveDeviceChanged_connectedDevices_activeDeviceChanged()
401 cachedDevice2.onProfileStateChanged(mA2dpProfile, BluetoothProfile.STATE_CONNECTED); in onActiveDeviceChanged_connectedDevices_activeDeviceChanged()
402 cachedDevice1.onProfileStateChanged(mHfpProfile, BluetoothProfile.STATE_CONNECTED); in onActiveDeviceChanged_connectedDevices_activeDeviceChanged()
403 cachedDevice2.onProfileStateChanged(mHfpProfile, BluetoothProfile.STATE_CONNECTED); in onActiveDeviceChanged_connectedDevices_activeDeviceChanged()
406 assertThat(cachedDevice1.isActiveDevice(BluetoothProfile.A2DP)).isFalse(); in onActiveDeviceChanged_connectedDevices_activeDeviceChanged()
407 assertThat(cachedDevice1.isActiveDevice(BluetoothProfile.HEADSET)).isFalse(); in onActiveDeviceChanged_connectedDevices_activeDeviceChanged()
408 assertThat(cachedDevice2.isActiveDevice(BluetoothProfile.A2DP)).isFalse(); in onActiveDeviceChanged_connectedDevices_activeDeviceChanged()
409 assertThat(cachedDevice2.isActiveDevice(BluetoothProfile.HEADSET)).isFalse(); in onActiveDeviceChanged_connectedDevices_activeDeviceChanged()
412 mCachedDeviceManager.onActiveDeviceChanged(cachedDevice1, BluetoothProfile.A2DP); in onActiveDeviceChanged_connectedDevices_activeDeviceChanged()
[all …]
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/bluetooth/
DHearingAidProfile.java20 import static android.bluetooth.BluetoothProfile.CONNECTION_POLICY_ALLOWED;
21 import static android.bluetooth.BluetoothProfile.CONNECTION_POLICY_FORBIDDEN;
27 import android.bluetooth.BluetoothProfile;
56 implements BluetoothProfile.ServiceListener {
58 public void onServiceConnected(int profile, BluetoothProfile proxy) { in onServiceConnected()
73 BluetoothProfile.STATE_CONNECTED); in onServiceConnected()
94 return BluetoothProfile.HEARING_AID; in getProfileId()
104 new HearingAidServiceListener(), BluetoothProfile.HEARING_AID); in HearingAidProfile()
125 BluetoothProfile.STATE_CONNECTED, in getConnectedDevices()
126 BluetoothProfile.STATE_CONNECTING, in getConnectedDevices()
[all …]
DMapProfile.java19 import static android.bluetooth.BluetoothProfile.CONNECTION_POLICY_ALLOWED;
20 import static android.bluetooth.BluetoothProfile.CONNECTION_POLICY_FORBIDDEN;
26 import android.bluetooth.BluetoothProfile;
61 implements BluetoothProfile.ServiceListener {
63 public void onServiceConnected(int profile, BluetoothProfile proxy) { in onServiceConnected()
76 BluetoothProfile.STATE_CONNECTED); in onServiceConnected()
97 return BluetoothProfile.MAP; in getProfileId()
105 BluetoothProfile.MAP); in MapProfile()
118 return BluetoothProfile.STATE_DISCONNECTED; in getConnectionStatus()
161 new int[] {BluetoothProfile.STATE_CONNECTED, in getConnectedDevices()
[all …]
DSapProfile.java19 import static android.bluetooth.BluetoothProfile.CONNECTION_POLICY_ALLOWED;
20 import static android.bluetooth.BluetoothProfile.CONNECTION_POLICY_FORBIDDEN;
25 import android.bluetooth.BluetoothProfile;
60 implements BluetoothProfile.ServiceListener {
62 public void onServiceConnected(int profile, BluetoothProfile proxy) { in onServiceConnected()
75 BluetoothProfile.STATE_CONNECTED); in onServiceConnected()
95 return BluetoothProfile.SAP; in getProfileId()
103 BluetoothProfile.SAP); in SapProfile()
116 return BluetoothProfile.STATE_DISCONNECTED; in getConnectionStatus()
159 new int[] {BluetoothProfile.STATE_CONNECTED, in getConnectedDevices()
[all …]
DA2dpSinkProfile.java19 import static android.bluetooth.BluetoothProfile.CONNECTION_POLICY_ALLOWED;
20 import static android.bluetooth.BluetoothProfile.CONNECTION_POLICY_FORBIDDEN;
26 import android.bluetooth.BluetoothProfile;
58 implements BluetoothProfile.ServiceListener {
60 public void onServiceConnected(int profile, BluetoothProfile proxy) { in onServiceConnected()
72 … device.onProfileStateChanged(A2dpSinkProfile.this, BluetoothProfile.STATE_CONNECTED); in onServiceConnected()
89 return BluetoothProfile.A2DP_SINK; in getProfileId()
97 BluetoothProfile.A2DP_SINK); in A2dpSinkProfile()
113 new int[] {BluetoothProfile.STATE_CONNECTED, in getConnectedDevices()
114 BluetoothProfile.STATE_CONNECTING, in getConnectedDevices()
[all …]
DMapClientProfile.java19 import static android.bluetooth.BluetoothProfile.CONNECTION_POLICY_ALLOWED;
20 import static android.bluetooth.BluetoothProfile.CONNECTION_POLICY_FORBIDDEN;
26 import android.bluetooth.BluetoothProfile;
62 implements BluetoothProfile.ServiceListener {
64 public void onServiceConnected(int profile, BluetoothProfile proxy) { in onServiceConnected()
77 BluetoothProfile.STATE_CONNECTED); in onServiceConnected()
98 return BluetoothProfile.MAP_CLIENT; in getProfileId()
106 new MapClientServiceListener(), BluetoothProfile.MAP_CLIENT); in MapClientProfile()
119 return BluetoothProfile.STATE_DISCONNECTED; in getConnectionStatus()
162 new int[] {BluetoothProfile.STATE_CONNECTED, in getConnectedDevices()
[all …]
DHfpClientProfile.java19 import static android.bluetooth.BluetoothProfile.CONNECTION_POLICY_ALLOWED;
20 import static android.bluetooth.BluetoothProfile.CONNECTION_POLICY_FORBIDDEN;
26 import android.bluetooth.BluetoothProfile;
61 implements BluetoothProfile.ServiceListener {
64 public void onServiceConnected(int profile, BluetoothProfile proxy) { in onServiceConnected()
77 HfpClientProfile.this, BluetoothProfile.STATE_CONNECTED); in onServiceConnected()
96 return BluetoothProfile.HEADSET_CLIENT; in getProfileId()
104 new HfpClientServiceListener(), BluetoothProfile.HEADSET_CLIENT); in HfpClientProfile()
122 new int[] {BluetoothProfile.STATE_CONNECTED, in getConnectedDevices()
123 BluetoothProfile.STATE_CONNECTING, in getConnectedDevices()
[all …]
DA2dpProfile.java20 import static android.bluetooth.BluetoothProfile.CONNECTION_POLICY_ALLOWED;
21 import static android.bluetooth.BluetoothProfile.CONNECTION_POLICY_FORBIDDEN;
28 import android.bluetooth.BluetoothProfile;
64 implements BluetoothProfile.ServiceListener {
66 public void onServiceConnected(int profile, BluetoothProfile proxy) { in onServiceConnected()
78 device.onProfileStateChanged(A2dpProfile.this, BluetoothProfile.STATE_CONNECTED); in onServiceConnected()
96 return BluetoothProfile.A2DP; in getProfileId()
106 BluetoothProfile.A2DP); in A2dpProfile()
127 BluetoothProfile.STATE_CONNECTED, in getConnectedDevices()
128 BluetoothProfile.STATE_CONNECTING, in getConnectedDevices()
[all …]
DHeadsetProfile.java20 import static android.bluetooth.BluetoothProfile.CONNECTION_POLICY_ALLOWED;
21 import static android.bluetooth.BluetoothProfile.CONNECTION_POLICY_FORBIDDEN;
27 import android.bluetooth.BluetoothProfile;
63 implements BluetoothProfile.ServiceListener {
65 public void onServiceConnected(int profile, BluetoothProfile proxy) { in onServiceConnected()
78 BluetoothProfile.STATE_CONNECTED); in onServiceConnected()
97 return BluetoothProfile.HEADSET; in getProfileId()
106 BluetoothProfile.HEADSET); in HeadsetProfile()
119 return BluetoothProfile.STATE_DISCONNECTED; in getConnectionStatus()
193 new int[] {BluetoothProfile.STATE_CONNECTED, in getConnectedDevices()
[all …]
DHidDeviceProfile.java19 import static android.bluetooth.BluetoothProfile.CONNECTION_POLICY_FORBIDDEN;
25 import android.bluetooth.BluetoothProfile;
55 new HidDeviceServiceListener(), BluetoothProfile.HID_DEVICE); in HidDeviceProfile()
60 implements BluetoothProfile.ServiceListener {
62 public void onServiceConnected(int profile, BluetoothProfile proxy) { in onServiceConnected()
75 BluetoothProfile.STATE_CONNECTED); in onServiceConnected()
93 return BluetoothProfile.HID_DEVICE; in getProfileId()
109 return BluetoothProfile.STATE_DISCONNECTED; in getConnectionStatus()
116 return getConnectionStatus(device) != BluetoothProfile.STATE_DISCONNECTED; in isEnabled()
154 case BluetoothProfile.STATE_DISCONNECTED: in getSummaryResourceForDevice()
[all …]
DPbapClientProfile.java19 import static android.bluetooth.BluetoothProfile.CONNECTION_POLICY_ALLOWED;
20 import static android.bluetooth.BluetoothProfile.CONNECTION_POLICY_FORBIDDEN;
26 import android.bluetooth.BluetoothProfile;
58 implements BluetoothProfile.ServiceListener {
60 public void onServiceConnected(int profile, BluetoothProfile proxy) { in onServiceConnected()
72 … device.onProfileStateChanged(PbapClientProfile.this, BluetoothProfile.STATE_CONNECTED); in onServiceConnected()
100 return BluetoothProfile.PBAP_CLIENT; in getProfileId()
108 new PbapClientServiceListener(), BluetoothProfile.PBAP_CLIENT); in PbapClientProfile()
124 new int[] {BluetoothProfile.STATE_CONNECTED, in getConnectedDevices()
125 BluetoothProfile.STATE_CONNECTING, in getConnectedDevices()
[all …]
DHidProfile.java19 import static android.bluetooth.BluetoothProfile.CONNECTION_POLICY_ALLOWED;
20 import static android.bluetooth.BluetoothProfile.CONNECTION_POLICY_FORBIDDEN;
26 import android.bluetooth.BluetoothProfile;
53 implements BluetoothProfile.ServiceListener {
55 public void onServiceConnected(int profile, BluetoothProfile proxy) { in onServiceConnected()
67 device.onProfileStateChanged(HidProfile.this, BluetoothProfile.STATE_CONNECTED); in onServiceConnected()
84 return BluetoothProfile.HID_HOST; in getProfileId()
93 BluetoothProfile.HID_HOST); in HidProfile()
106 return BluetoothProfile.STATE_DISCONNECTED; in getConnectionStatus()
160 case BluetoothProfile.STATE_DISCONNECTED: in getSummaryResourceForDevice()
[all …]
DPanProfile.java19 import static android.bluetooth.BluetoothProfile.CONNECTION_POLICY_ALLOWED;
20 import static android.bluetooth.BluetoothProfile.CONNECTION_POLICY_FORBIDDEN;
26 import android.bluetooth.BluetoothProfile;
55 implements BluetoothProfile.ServiceListener {
57 public void onServiceConnected(int profile, BluetoothProfile proxy) { in onServiceConnected()
73 return BluetoothProfile.PAN; in getProfileId()
78 BluetoothProfile.PAN); in PanProfile()
91 return BluetoothProfile.STATE_DISCONNECTED; in getConnectionStatus()
147 case BluetoothProfile.STATE_DISCONNECTED: in getSummaryResourceForDevice()
150 case BluetoothProfile.STATE_CONNECTED: in getSummaryResourceForDevice()
[all …]
DPbapServerProfile.java19 import static android.bluetooth.BluetoothProfile.CONNECTION_POLICY_FORBIDDEN;
25 import android.bluetooth.BluetoothProfile;
58 implements BluetoothProfile.ServiceListener {
61 public void onServiceConnected(int profile, BluetoothProfile proxy) { in onServiceConnected()
78 return BluetoothProfile.PBAP; in getProfileId()
83 BluetoothProfile.PBAP); in PbapServerProfile()
95 if (mService == null) return BluetoothProfile.STATE_DISCONNECTED; in getConnectionStatus()
147 BluetoothAdapter.getDefaultAdapter().closeProfileProxy(BluetoothProfile.PBAP, in finalize()
DLocalBluetoothProfileManager.java33 import android.bluetooth.BluetoothProfile;
133 if (mA2dpProfile == null && supportedList.contains(BluetoothProfile.A2DP)) { in updateLocalProfiles()
139 if (mA2dpSinkProfile == null && supportedList.contains(BluetoothProfile.A2DP_SINK)) { in updateLocalProfiles()
145 if (mHeadsetProfile == null && supportedList.contains(BluetoothProfile.HEADSET)) { in updateLocalProfiles()
153 if (mHfpClientProfile == null && supportedList.contains(BluetoothProfile.HEADSET_CLIENT)) { in updateLocalProfiles()
161 if (mMapClientProfile == null && supportedList.contains(BluetoothProfile.MAP_CLIENT)) { in updateLocalProfiles()
167 if (mMapProfile == null && supportedList.contains(BluetoothProfile.MAP)) { in updateLocalProfiles()
172 if (mOppProfile == null && supportedList.contains(BluetoothProfile.OPP)) { in updateLocalProfiles()
178 if (mHearingAidProfile == null && supportedList.contains(BluetoothProfile.HEARING_AID)) { in updateLocalProfiles()
185 if (mHidProfile == null && supportedList.contains(BluetoothProfile.HID_HOST)) { in updateLocalProfiles()
[all …]
DCachedBluetoothDevice.java23 import android.bluetooth.BluetoothProfile;
137 if (newProfileState == BluetoothProfile.STATE_CONNECTED) { in onProfileStateChanged()
151 && newProfileState == BluetoothProfile.STATE_DISCONNECTED) { in onProfileStateChanged()
155 && newProfileState == BluetoothProfile.STATE_DISCONNECTED) { in onProfileStateChanged()
325 : BluetoothProfile.STATE_DISCONNECTED; in getProfileConnectionState()
453 case BluetoothProfile.A2DP: in onActiveDeviceChanged()
457 case BluetoothProfile.HEADSET: in onActiveDeviceChanged()
461 case BluetoothProfile.HEARING_AID: in onActiveDeviceChanged()
490 case BluetoothProfile.A2DP: in isActiveDevice()
492 case BluetoothProfile.HEADSET: in isActiveDevice()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/audio/
DAudioDeviceBrokerTest.java28 import android.bluetooth.BluetoothProfile;
94 BluetoothProfile.STATE_CONNECTED, BluetoothProfile.A2DP, true, 1); in testPostA2dpDeviceConnectionChange()
98 ArgumentMatchers.eq(BluetoothProfile.STATE_CONNECTED) /*state*/, in testPostA2dpDeviceConnectionChange()
99 ArgumentMatchers.eq(BluetoothProfile.A2DP) /*profile*/, in testPostA2dpDeviceConnectionChange()
139 BluetoothProfile.STATE_CONNECTED, BluetoothProfile.A2DP, true, 1); in doTestConnectionDisconnectionReconnection()
144 BluetoothProfile.STATE_DISCONNECTED, BluetoothProfile.A2DP, false, -1); in doTestConnectionDisconnectionReconnection()
151 BluetoothProfile.STATE_CONNECTED, BluetoothProfile.A2DP, true, 2); in doTestConnectionDisconnectionReconnection()
158 ArgumentMatchers.eq(BluetoothProfile.STATE_CONNECTED)); in doTestConnectionDisconnectionReconnection()
/frameworks/base/core/tests/bluetoothtests/src/android/bluetooth/
DBluetoothTestUtils.java20 import android.bluetooth.BluetoothProfile;
228 case BluetoothProfile.A2DP: in ConnectProfileReceiver()
231 case BluetoothProfile.HEADSET: in ConnectProfileReceiver()
234 case BluetoothProfile.HID_HOST: in ConnectProfileReceiver()
237 case BluetoothProfile.PAN: in ConnectProfileReceiver()
240 case BluetoothProfile.MAP_CLIENT: in ConnectProfileReceiver()
255 int state = intent.getIntExtra(BluetoothProfile.EXTRA_STATE, -1); in onReceive()
258 case BluetoothProfile.STATE_DISCONNECTED: in onReceive()
261 case BluetoothProfile.STATE_CONNECTING: in onReceive()
264 case BluetoothProfile.STATE_CONNECTED: in onReceive()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/
DBluetoothControllerImplTest.java29 import android.bluetooth.BluetoothProfile;
89 when(device.getMaxConnectionState()).thenReturn(BluetoothProfile.STATE_CONNECTED); in testNoConnectionWithDevices()
102 assertEquals(BluetoothProfile.STATE_DISCONNECTED, in testDefaultConnectionState()
130 when(device.getMaxConnectionState()).thenReturn(BluetoothProfile.STATE_CONNECTED); in testAsyncConnectionState()
138 assertEquals(BluetoothProfile.STATE_DISCONNECTED, in testAsyncConnectionState()
144 assertEquals(BluetoothProfile.STATE_CONNECTED, in testAsyncConnectionState()
153 when(device.getMaxConnectionState()).thenReturn(BluetoothProfile.STATE_CONNECTED); in testNullAsync_DoesNotCrash()
162 assertEquals(BluetoothProfile.STATE_DISCONNECTED, in testNullAsync_DoesNotCrash()
216 when(device.getMaxConnectionState()).thenReturn(BluetoothProfile.STATE_CONNECTED); in testOnACLConnectionStateChange_updatesBluetoothStateOnConnection()
219 BluetoothProfile.STATE_CONNECTED); in testOnACLConnectionStateChange_updatesBluetoothStateOnConnection()
[all …]
/frameworks/base/packages/CarSystemUI/src/com/android/systemui/statusbar/car/
DCarBatteryController.java22 import android.bluetooth.BluetoothProfile;
23 import android.bluetooth.BluetoothProfile.ServiceListener;
65 public void onServiceConnected(int profile, BluetoothProfile proxy) {
66 if (profile == BluetoothProfile.HEADSET_CLIENT) {
73 if (profile == BluetoothProfile.HEADSET_CLIENT) {
89 BluetoothProfile.HEADSET_CLIENT); in CarBatteryController()
156 int newState = intent.getIntExtra(BluetoothProfile.EXTRA_STATE, -1); in onReceive()
159 int oldState = intent.getIntExtra(BluetoothProfile.EXTRA_PREVIOUS_STATE, -1); in onReceive()
216 if (newState == BluetoothProfile.STATE_CONNECTED) { in updateBatteryIcon()
238 } else if (newState == BluetoothProfile.STATE_DISCONNECTED) { in updateBatteryIcon()
DConnectedDeviceSignalController.java24 import android.bluetooth.BluetoothProfile;
25 import android.bluetooth.BluetoothProfile.ServiceListener;
91 public void onServiceConnected(int profile, BluetoothProfile proxy) {
92 if (profile == BluetoothProfile.HEADSET_CLIENT) {
99 if (profile == BluetoothProfile.HEADSET_CLIENT) {
125 BluetoothProfile.HEADSET_CLIENT); in ConnectedDeviceSignalController()
178 int newState = intent.getIntExtra(BluetoothProfile.EXTRA_STATE, -1); in onReceive()
181 int oldState = intent.getIntExtra(BluetoothProfile.EXTRA_PREVIOUS_STATE, -1); in onReceive()
237 if (newState == BluetoothProfile.STATE_CONNECTED) { in updateViewVisibility()
261 } else if (newState == BluetoothProfile.STATE_DISCONNECTED) { in updateViewVisibility()
/frameworks/base/core/java/android/bluetooth/
DBluetoothAdapter.java29 import android.bluetooth.BluetoothProfile.ConnectionPolicy;
2287 for (int i = 0; i <= BluetoothProfile.MAX_PROFILE_ID; i++) { in getSupportedProfiles()
2295 supportedProfiles.add(BluetoothProfile.HEARING_AID); in getSupportedProfiles()
2350 return BluetoothProfile.STATE_DISCONNECTED; in getProfileConnectionState()
2362 return BluetoothProfile.STATE_DISCONNECTED; in getProfileConnectionState()
2726 public boolean getProfileProxy(Context context, BluetoothProfile.ServiceListener listener, in getProfileProxy()
2732 if (profile == BluetoothProfile.HEADSET) { in getProfileProxy()
2735 } else if (profile == BluetoothProfile.A2DP) { in getProfileProxy()
2738 } else if (profile == BluetoothProfile.A2DP_SINK) { in getProfileProxy()
2741 } else if (profile == BluetoothProfile.AVRCP_CONTROLLER) { in getProfileProxy()
[all …]
/frameworks/base/services/core/java/com/android/server/
DBluetoothAirplaneModeListener.java22 import android.bluetooth.BluetoothProfile;
23 import android.bluetooth.BluetoothProfile.ServiceListener;
160 mAdapter.getProfileProxy(mContext, mProfileServiceListener, BluetoothProfile.A2DP); in AirplaneModeHelper()
162 BluetoothProfile.HEARING_AID); in AirplaneModeHelper()
167 public void onServiceConnected(int profile, BluetoothProfile proxy) {
170 case BluetoothProfile.A2DP:
173 case BluetoothProfile.HEARING_AID:
185 case BluetoothProfile.A2DP:
188 case BluetoothProfile.HEARING_AID:

1234