Home
last modified time | relevance | path

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

12345678910>>...15

/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/hearingaid/
DHearingAidServiceTest.java38 import android.bluetooth.BluetoothProfile;
184 hasExtra(BluetoothProfile.EXTRA_STATE, newState), in verifyConnectionStateIntent()
185 hasExtra(BluetoothProfile.EXTRA_PREVIOUS_STATE, prevState)); in verifyConnectionStateIntent()
187 if (newState == BluetoothProfile.STATE_CONNECTED) { in verifyConnectionStateIntent()
190 } else if (prevState == BluetoothProfile.STATE_CONNECTED) { in verifyConnectionStateIntent()
217 when(mDatabaseManager.getProfileConnectionPolicy(mLeftDevice, BluetoothProfile.HEARING_AID)) in testGetSetPriority()
218 .thenReturn(BluetoothProfile.CONNECTION_POLICY_UNKNOWN); in testGetSetPriority()
221 assertThat(connectionPolicy).isEqualTo(BluetoothProfile.CONNECTION_POLICY_UNKNOWN); in testGetSetPriority()
223 when(mDatabaseManager.getProfileConnectionPolicy(mLeftDevice, BluetoothProfile.HEARING_AID)) in testGetSetPriority()
224 .thenReturn(BluetoothProfile.CONNECTION_POLICY_FORBIDDEN); in testGetSetPriority()
[all …]
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/btservice/
DConfig.java19 import android.bluetooth.BluetoothProfile;
81 BluetoothProfile.LE_AUDIO,
82 BluetoothProfile.VOLUME_CONTROL,
83 BluetoothProfile.CSIP_SET_COORDINATOR,
84 BluetoothProfile.MCP_SERVER,
85 BluetoothProfile.LE_CALL_CONTROL,
95 new ProfileConfig(A2dpService.isEnabled(), BluetoothProfile.A2DP),
96 new ProfileConfig(A2dpSinkService.isEnabled(), BluetoothProfile.A2DP_SINK),
97 new ProfileConfig(AvrcpTargetService.isEnabled(), BluetoothProfile.AVRCP),
100 BluetoothProfile.AVRCP_CONTROLLER),
[all …]
DPhonePolicy.java25 import android.bluetooth.BluetoothProfile;
111 case BluetoothProfile.A2DP: in profileConnectionStateChanged()
112 case BluetoothProfile.HEADSET: in profileConnectionStateChanged()
113 case BluetoothProfile.LE_AUDIO: in profileConnectionStateChanged()
114 case BluetoothProfile.CSIP_SET_COORDINATOR: in profileConnectionStateChanged()
115 case BluetoothProfile.VOLUME_CONTROL: in profileConnectionStateChanged()
230 if (!mAdapterService.isProfileSupported(dev, BluetoothProfile.LE_AUDIO)) { in isLeAudioOnlyGroup()
235 if (mAdapterService.isProfileSupported(dev, BluetoothProfile.HEARING_AID)) { in isLeAudioOnlyGroup()
299 && hap.getConnectionPolicy(device) != BluetoothProfile.CONNECTION_POLICY_FORBIDDEN; in shouldEnableHapByDefault()
328 != BluetoothProfile.CONNECTION_POLICY_FORBIDDEN) in processInitProfilePriorities()
[all …]
DAudioRoutingManager.java28 import android.bluetooth.BluetoothProfile;
90 if (toState == BluetoothProfile.STATE_CONNECTED) { in profileConnectionStateChanged()
92 } else if (fromState == BluetoothProfile.STATE_CONNECTED) { in profileConnectionStateChanged()
258 + BluetoothProfile.getProfileName(profile) in handleProfileConnected()
270 Log.d(TAG, "Can not activate now: " + BluetoothProfile.getProfileName(profile)); in handleProfileConnected()
286 + BluetoothProfile.getProfileName(profile) in handleProfileDisconnected()
311 + BluetoothProfile.getProfileName(profile) in handleProfileActiveDeviceChanged()
319 List<BluetoothDevice> a2dpActiveDevices = getActiveDevices(BluetoothProfile.A2DP); in onModeChanged()
320 List<BluetoothDevice> hfpActiveDevices = getActiveDevices(BluetoothProfile.HEADSET); in onModeChanged()
328 .contains(BluetoothProfile.HEADSET)) { in onModeChanged()
[all …]
DAdapterProperties.java43 import android.bluetooth.BluetoothProfile;
164 logConnectionStateChanges(BluetoothProfile.HEADSET, intent);
167 logConnectionStateChanges(BluetoothProfile.A2DP, intent);
170 logConnectionStateChanges(BluetoothProfile.HEADSET_CLIENT, intent);
173 logConnectionStateChanges(BluetoothProfile.HEARING_AID, intent);
176 logConnectionStateChanges(BluetoothProfile.A2DP_SINK, intent);
179 logConnectionStateChanges(BluetoothProfile.HID_DEVICE, intent);
182 logConnectionStateChanges(BluetoothProfile.HID_HOST, intent);
185 logConnectionStateChanges(BluetoothProfile.AVRCP_CONTROLLER, intent);
188 logConnectionStateChanges(BluetoothProfile.PAN, intent);
[all …]
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/btservice/
DPhonePolicyTest.java27 import android.bluetooth.BluetoothProfile;
140 return BluetoothProfile.CONNECTION_POLICY_UNKNOWN; in getLeAudioConnectionPolicy()
142 return BluetoothProfile.CONNECTION_POLICY_ALLOWED; in getLeAudioConnectionPolicy()
161 .thenReturn(BluetoothProfile.CONNECTION_POLICY_UNKNOWN); in testProcessInitProfilePriorities()
165 .thenReturn(BluetoothProfile.CONNECTION_POLICY_UNKNOWN); in testProcessInitProfilePriorities()
179 BluetoothProfile.HEADSET, in testProcessInitProfilePriorities()
180 BluetoothProfile.CONNECTION_POLICY_ALLOWED); in testProcessInitProfilePriorities()
183 device, BluetoothProfile.A2DP, BluetoothProfile.CONNECTION_POLICY_ALLOWED); in testProcessInitProfilePriorities()
232 .thenReturn(BluetoothProfile.CONNECTION_POLICY_UNKNOWN); in processInitProfilePriorities_LeAudioOnlyHelper()
234 .thenReturn(BluetoothProfile.CONNECTION_POLICY_UNKNOWN); in processInitProfilePriorities_LeAudioOnlyHelper()
[all …]
DAudioRoutingManagerTest.java36 import android.bluetooth.BluetoothProfile;
245 assertThat(mAudioRoutingManager.getActiveDevices(BluetoothProfile.A2DP)) in a2dpOnlyDeviceConnected_setActiveShouldNotBeCalled()
319 assertThat(mAudioRoutingManager.getActiveDevices(BluetoothProfile.HEADSET)) in headsetActiveDeviceSelected_setActive()
392 assertThat(mAudioRoutingManager.getActiveDevices(BluetoothProfile.A2DP)) in hfpActivatedAfterA2dpActivated_shouldNotActivateA2dpAgain()
394 assertThat(mAudioRoutingManager.getActiveDevices(BluetoothProfile.HEADSET)) in hfpActivatedAfterA2dpActivated_shouldNotActivateA2dpAgain()
419 assertThat(mAudioRoutingManager.getActiveDevices(BluetoothProfile.A2DP)).isEmpty(); in hfpConnectedAfterTimeout_shouldActivateA2dpAndHeadsetWhenConnected()
420 assertThat(mAudioRoutingManager.getActiveDevices(BluetoothProfile.HEADSET)).isEmpty(); in hfpConnectedAfterTimeout_shouldActivateA2dpAndHeadsetWhenConnected()
426 assertThat(mAudioRoutingManager.getActiveDevices(BluetoothProfile.A2DP)) in hfpConnectedAfterTimeout_shouldActivateA2dpAndHeadsetWhenConnected()
428 assertThat(mAudioRoutingManager.getActiveDevices(BluetoothProfile.HEADSET)) in hfpConnectedAfterTimeout_shouldActivateA2dpAndHeadsetWhenConnected()
441 assertThat(mAudioRoutingManager.getActiveDevices(BluetoothProfile.A2DP)) in a2dpHeadsetActivated_whileActivatingAnotherA2dpHeadset()
[all …]
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/a2dp/
DA2dpServiceTest.java31 import android.bluetooth.BluetoothProfile;
170 hasExtra(BluetoothProfile.EXTRA_STATE, newState), in verifyConnectionStateIntent()
171 hasExtra(BluetoothProfile.EXTRA_PREVIOUS_STATE, prevState)); in verifyConnectionStateIntent()
198 when(mDatabaseManager.getProfileConnectionPolicy(sTestDevice, BluetoothProfile.A2DP)) in testGetPriority()
199 .thenReturn(BluetoothProfile.CONNECTION_POLICY_UNKNOWN); in testGetPriority()
201 .isEqualTo(BluetoothProfile.CONNECTION_POLICY_UNKNOWN); in testGetPriority()
203 when(mDatabaseManager.getProfileConnectionPolicy(sTestDevice, BluetoothProfile.A2DP)) in testGetPriority()
204 .thenReturn(BluetoothProfile.CONNECTION_POLICY_FORBIDDEN); in testGetPriority()
206 .isEqualTo(BluetoothProfile.CONNECTION_POLICY_FORBIDDEN); in testGetPriority()
208 when(mDatabaseManager.getProfileConnectionPolicy(sTestDevice, BluetoothProfile.A2DP)) in testGetPriority()
[all …]
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/a2dpsink/
DA2dpSinkStateMachineTest.java29 import android.bluetooth.BluetoothProfile;
80 assertThat(mStateMachine.getState()).isEqualTo(BluetoothProfile.STATE_DISCONNECTED); in setUp()
123 assertThat(mStateMachine.getState()).isEqualTo(BluetoothProfile.STATE_CONNECTING); in testConnectInDisconnected()
130 assertThat(mStateMachine.getState()).isEqualTo(BluetoothProfile.STATE_DISCONNECTED); in testDisconnectInDisconnected()
136 assertThat(mStateMachine.getState()).isEqualTo(BluetoothProfile.STATE_DISCONNECTED); in testAudioConfigChangedInDisconnected()
142 sendConnectionEvent(BluetoothProfile.STATE_CONNECTED); in testIncomingConnectedInDisconnected()
143 assertThat(mStateMachine.getState()).isEqualTo(BluetoothProfile.STATE_CONNECTED); in testIncomingConnectedInDisconnected()
148 mockDeviceConnectionPolicy(mDevice, BluetoothProfile.CONNECTION_POLICY_ALLOWED); in testAllowedIncomingConnectionInDisconnected()
150 sendConnectionEvent(BluetoothProfile.STATE_CONNECTING); in testAllowedIncomingConnectionInDisconnected()
151 assertThat(mStateMachine.getState()).isEqualTo(BluetoothProfile.STATE_CONNECTING); in testAllowedIncomingConnectionInDisconnected()
[all …]
DA2dpSinkServiceTest.java26 import android.bluetooth.BluetoothProfile;
127 .isEqualTo(BluetoothProfile.STATE_DISCONNECTED); in setupDeviceConnection()
136 assertThat(mService.getConnectionState(device)).isEqualTo(BluetoothProfile.STATE_CONNECTED); in setupDeviceConnection()
146 when(mDatabaseManager.getProfileConnectionPolicy(device, BluetoothProfile.A2DP_SINK)) in mockDevicePriority()
165 mockDevicePriority(mDevice1, BluetoothProfile.CONNECTION_POLICY_ALLOWED); in testConnectPolicyAllowedDevice()
172 mockDevicePriority(mDevice1, BluetoothProfile.CONNECTION_POLICY_FORBIDDEN); in testConnectPolicyForbiddenDevice()
175 .isEqualTo(BluetoothProfile.STATE_DISCONNECTED); in testConnectPolicyForbiddenDevice()
181 mockDevicePriority(mDevice1, BluetoothProfile.CONNECTION_POLICY_UNKNOWN); in testConnectPolicyUnknownDevice()
190 mockDevicePriority(mDevice1, BluetoothProfile.CONNECTION_POLICY_ALLOWED); in testConnectMultipleDevices()
191 mockDevicePriority(mDevice2, BluetoothProfile.CONNECTION_POLICY_ALLOWED); in testConnectMultipleDevices()
[all …]
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/btservice/storage/
DMetadata.java23 import android.bluetooth.BluetoothProfile;
141 if (connectionPolicy > BluetoothProfile.CONNECTION_POLICY_ALLOWED) { in setProfileConnectionPolicy()
142 connectionPolicy = BluetoothProfile.CONNECTION_POLICY_ALLOWED; in setProfileConnectionPolicy()
146 case BluetoothProfile.A2DP: in setProfileConnectionPolicy()
149 case BluetoothProfile.A2DP_SINK: in setProfileConnectionPolicy()
152 case BluetoothProfile.HEADSET: in setProfileConnectionPolicy()
155 case BluetoothProfile.HEADSET_CLIENT: in setProfileConnectionPolicy()
158 case BluetoothProfile.HID_HOST: in setProfileConnectionPolicy()
161 case BluetoothProfile.PAN: in setProfileConnectionPolicy()
164 case BluetoothProfile.PBAP: in setProfileConnectionPolicy()
[all …]
DProfilePrioritiesEntity.java19 import android.bluetooth.BluetoothProfile;
47 a2dp_connection_policy = BluetoothProfile.CONNECTION_POLICY_UNKNOWN; in ProfilePrioritiesEntity()
48 a2dp_sink_connection_policy = BluetoothProfile.CONNECTION_POLICY_UNKNOWN; in ProfilePrioritiesEntity()
49 hfp_connection_policy = BluetoothProfile.CONNECTION_POLICY_UNKNOWN; in ProfilePrioritiesEntity()
50 hfp_client_connection_policy = BluetoothProfile.CONNECTION_POLICY_UNKNOWN; in ProfilePrioritiesEntity()
51 hid_host_connection_policy = BluetoothProfile.CONNECTION_POLICY_UNKNOWN; in ProfilePrioritiesEntity()
52 pan_connection_policy = BluetoothProfile.CONNECTION_POLICY_UNKNOWN; in ProfilePrioritiesEntity()
53 pbap_connection_policy = BluetoothProfile.CONNECTION_POLICY_UNKNOWN; in ProfilePrioritiesEntity()
54 pbap_client_connection_policy = BluetoothProfile.CONNECTION_POLICY_UNKNOWN; in ProfilePrioritiesEntity()
55 map_connection_policy = BluetoothProfile.CONNECTION_POLICY_UNKNOWN; in ProfilePrioritiesEntity()
[all …]
/packages/modules/Bluetooth/framework/tests/util/src/android/bluetooth/cts/
DTestUtils.java26 import android.bluetooth.BluetoothProfile;
53 case BluetoothProfile.A2DP -> { in isProfileEnabled()
56 case BluetoothProfile.A2DP_SINK -> { in isProfileEnabled()
62 case BluetoothProfile.AVRCP_CONTROLLER -> { in isProfileEnabled()
65 case BluetoothProfile.CSIP_SET_COORDINATOR -> { in isProfileEnabled()
68 case BluetoothProfile.GATT -> { in isProfileEnabled()
71 case BluetoothProfile.HAP_CLIENT -> { in isProfileEnabled()
74 case BluetoothProfile.HEADSET -> { in isProfileEnabled()
77 case BluetoothProfile.HEADSET_CLIENT -> { in isProfileEnabled()
80 case BluetoothProfile.HEARING_AID -> { in isProfileEnabled()
[all …]
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/bas/
DBatteryServiceTest.java25 import android.bluetooth.BluetoothProfile;
116 when(mDatabaseManager.getProfileConnectionPolicy(mDevice, BluetoothProfile.BATTERY)) in testGetSetPolicy()
117 .thenReturn(BluetoothProfile.CONNECTION_POLICY_UNKNOWN); in testGetSetPolicy()
120 BluetoothProfile.CONNECTION_POLICY_UNKNOWN, in testGetSetPolicy()
123 when(mDatabaseManager.getProfileConnectionPolicy(mDevice, BluetoothProfile.BATTERY)) in testGetSetPolicy()
124 .thenReturn(BluetoothProfile.CONNECTION_POLICY_FORBIDDEN); in testGetSetPolicy()
127 BluetoothProfile.CONNECTION_POLICY_FORBIDDEN, in testGetSetPolicy()
130 when(mDatabaseManager.getProfileConnectionPolicy(mDevice, BluetoothProfile.BATTERY)) in testGetSetPolicy()
131 .thenReturn(BluetoothProfile.CONNECTION_POLICY_ALLOWED); in testGetSetPolicy()
134 BluetoothProfile.CONNECTION_POLICY_ALLOWED, in testGetSetPolicy()
[all …]
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/vc/
DVolumeControlServiceTest.java24 import android.bluetooth.BluetoothProfile;
203 Assert.assertEquals(newState, intent.getIntExtra(BluetoothProfile.EXTRA_STATE, -1)); in verifyConnectionStateIntent()
205 prevState, intent.getIntExtra(BluetoothProfile.EXTRA_PREVIOUS_STATE, -1)); in verifyConnectionStateIntent()
235 when(mDatabaseManager.getProfileConnectionPolicy(mDevice, BluetoothProfile.VOLUME_CONTROL)) in testGetSetPolicy()
236 .thenReturn(BluetoothProfile.CONNECTION_POLICY_UNKNOWN); in testGetSetPolicy()
239 BluetoothProfile.CONNECTION_POLICY_UNKNOWN, in testGetSetPolicy()
243 when(mDatabaseManager.getProfileConnectionPolicy(mDevice, BluetoothProfile.VOLUME_CONTROL)) in testGetSetPolicy()
244 .thenReturn(BluetoothProfile.CONNECTION_POLICY_FORBIDDEN); in testGetSetPolicy()
247 BluetoothProfile.CONNECTION_POLICY_FORBIDDEN, in testGetSetPolicy()
251 when(mDatabaseManager.getProfileConnectionPolicy(mDevice, BluetoothProfile.VOLUME_CONTROL)) in testGetSetPolicy()
[all …]
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/le_audio/
DLeAudioServiceTest.java42 import android.bluetooth.BluetoothProfile;
356 assertThat(intent.getIntExtra(BluetoothProfile.EXTRA_STATE, -1)).isEqualTo(newState); in verifyConnectionStateIntent()
357 assertThat(intent.getIntExtra(BluetoothProfile.EXTRA_PREVIOUS_STATE, -1)) in verifyConnectionStateIntent()
360 if (newState == BluetoothProfile.STATE_CONNECTED) { in verifyConnectionStateIntent()
363 } else if (newState == BluetoothProfile.STATE_DISCONNECTED) { in verifyConnectionStateIntent()
400 when(mDatabaseManager.getProfileConnectionPolicy(mLeftDevice, BluetoothProfile.LE_AUDIO)) in testGetSetPriority()
401 .thenReturn(BluetoothProfile.CONNECTION_POLICY_UNKNOWN); in testGetSetPriority()
403 .that(BluetoothProfile.CONNECTION_POLICY_UNKNOWN) in testGetSetPriority()
406 when(mDatabaseManager.getProfileConnectionPolicy(mLeftDevice, BluetoothProfile.LE_AUDIO)) in testGetSetPriority()
407 .thenReturn(BluetoothProfile.CONNECTION_POLICY_FORBIDDEN); in testGetSetPriority()
[all …]
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/hfp/
DHeadsetServiceTest.java37 import android.bluetooth.BluetoothProfile;
158 doReturn(BluetoothProfile.STATE_DISCONNECTED) in setUp()
196 BluetoothProfile.STATE_DISCONNECTED, in testGetHeadsetService()
212 BluetoothProfile.CONNECTION_POLICY_UNKNOWN, in testOkToAcceptConnection()
217 BluetoothProfile.CONNECTION_POLICY_FORBIDDEN, in testOkToAcceptConnection()
222 BluetoothProfile.CONNECTION_POLICY_ALLOWED, in testOkToAcceptConnection()
229 BluetoothProfile.CONNECTION_POLICY_UNKNOWN, in testOkToAcceptConnection()
234 BluetoothProfile.CONNECTION_POLICY_FORBIDDEN, in testOkToAcceptConnection()
239 BluetoothProfile.CONNECTION_POLICY_ALLOWED, in testOkToAcceptConnection()
246 BluetoothProfile.CONNECTION_POLICY_UNKNOWN, in testOkToAcceptConnection()
[all …]
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/bluetooth/
DBluetoothUtilsTest.java24 import android.bluetooth.BluetoothProfile;
93 mMockBluetoothDevice, BluetoothProfile.A2DP)).isTrue(); in testIsA2dpSourceProfileSupportedBothSupported_returnsTrue()
100 mMockBluetoothDevice, BluetoothProfile.A2DP)).isFalse(); in testIsA2dpSourceProfileSupportedRemoteSupported_returnsFalse()
107 mMockBluetoothDevice, BluetoothProfile.A2DP)).isFalse(); in testIsA2dpSourceProfileSupportedLocalSupported_returnsFalse()
114 mMockBluetoothDevice, BluetoothProfile.A2DP)).isFalse(); in testIsA2dpSourceProfileSupportedBothUnsupported_returnsFalse()
121 mMockBluetoothDevice, BluetoothProfile.A2DP)).isFalse(); in testIsA2dpSourceProfileSupportedBothSupportSameRole_returnsFalse()
128 mMockBluetoothDevice, BluetoothProfile.A2DP_SINK)).isTrue(); in testIsA2dpSinkProfileSupportedBothSupported_returnsTrue()
135 mMockBluetoothDevice, BluetoothProfile.A2DP_SINK)).isFalse(); in testIsA2dpSinkProfileSupportedRemoteSupported_returnsFalse()
142 mMockBluetoothDevice, BluetoothProfile.A2DP_SINK)).isFalse(); in testIsA2dpSinkProfileSupportedLocalSupported_returnsFalse()
149 mMockBluetoothDevice, BluetoothProfile.A2DP_SINK)).isFalse(); in testIsA2dpSinkProfileSupportedBothUnsupported_returnsFalse()
[all …]
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/csip/
DCsipSetCoordinatorServiceTest.java193 mTestDevice, BluetoothProfile.CSIP_SET_COORDINATOR)) in testGetSetPolicy()
194 .thenReturn(BluetoothProfile.CONNECTION_POLICY_UNKNOWN); in testGetSetPolicy()
197 BluetoothProfile.CONNECTION_POLICY_UNKNOWN, in testGetSetPolicy()
201 mTestDevice, BluetoothProfile.CSIP_SET_COORDINATOR)) in testGetSetPolicy()
202 .thenReturn(BluetoothProfile.CONNECTION_POLICY_FORBIDDEN); in testGetSetPolicy()
205 BluetoothProfile.CONNECTION_POLICY_FORBIDDEN, in testGetSetPolicy()
209 mTestDevice, BluetoothProfile.CSIP_SET_COORDINATOR)) in testGetSetPolicy()
210 .thenReturn(BluetoothProfile.CONNECTION_POLICY_ALLOWED); in testGetSetPolicy()
213 BluetoothProfile.CONNECTION_POLICY_ALLOWED, in testGetSetPolicy()
222 mTestDevice, BluetoothProfile.CSIP_SET_COORDINATOR)) in testGetPolicyAfterStopped()
[all …]
/packages/modules/Bluetooth/android/pandora/server/src/
DServer.kt20 import android.bluetooth.BluetoothProfile
57 BluetoothProfile.A2DP to ::A2dp,
58 BluetoothProfile.A2DP_SINK to ::A2dpSink,
59 BluetoothProfile.HEARING_AID to ::Asha,
60 BluetoothProfile.AVRCP to ::Avrcp,
61 BluetoothProfile.GATT to ::Gatt,
62 BluetoothProfile.HEADSET to ::Hfp,
63 BluetoothProfile.HEADSET_CLIENT to ::HfpHandsfree,
64 BluetoothProfile.HID_HOST to ::Hid,
65 BluetoothProfile.PAN to ::Pan,
[all …]
/packages/services/Car/service/src/com/android/car/bluetooth/
DBluetoothUtils.java27 import android.bluetooth.BluetoothProfile;
128 sProfileNames.put(BluetoothProfile.PAN, "PAN"); in sProfileNames.put()
129 sProfileNames.put(BluetoothProfile.A2DP, "A2DP Source"); in sProfileNames.put()
130 sProfileNames.put(BluetoothProfile.A2DP_SINK, "A2DP Sink"); in sProfileNames.put()
131 sProfileNames.put(BluetoothProfile.AVRCP_CONTROLLER, "AVRCP Controller"); in sProfileNames.put()
132 sProfileNames.put(BluetoothProfile.HEADSET_CLIENT, "HFP Client"); in sProfileNames.put()
133 sProfileNames.put(BluetoothProfile.PBAP_CLIENT, "PBAP Client"); in sProfileNames.put()
134 sProfileNames.put(BluetoothProfile.MAP_CLIENT, "MAP Client"); in sProfileNames.put()
137 sProfileActions.put(A2DP_SOURCE_CONNECTION_STATE_CHANGED, BluetoothProfile.A2DP); in sProfileActions.put()
138 sProfileActions.put(A2DP_SINK_CONNECTION_STATE_CHANGED, BluetoothProfile.A2DP_SINK); in sProfileActions.put()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/bluetooth/
DAvailableMediaBluetoothDeviceUpdaterTest.java28 import android.bluetooth.BluetoothProfile;
195 mCachedBluetoothDevice, BluetoothProfile.STATE_CONNECTED, BluetoothProfile.A2DP); in onProfileConnectionStateChanged_a2dpDeviceConnected_notInCall_addPreference()
208 mCachedBluetoothDevice, BluetoothProfile.STATE_CONNECTED, BluetoothProfile.A2DP); in onProfileConnectionStateChanged_a2dpDeviceConnected_inCall_removePreference()
221 mCachedBluetoothDevice, BluetoothProfile.STATE_CONNECTED, BluetoothProfile.A2DP); in onProfileConnectionStateChanged_hfpDeviceConnected_notInCall_removePreference()
234 mCachedBluetoothDevice, BluetoothProfile.STATE_CONNECTED, BluetoothProfile.A2DP); in onProfileConnectionStateChanged_hfpDeviceConnected_inCall_addPreference()
248 BluetoothProfile.STATE_CONNECTED, in onProfileConnectionStateChanged_ashaHearingAidConnected_notInCall_addPreference()
249 BluetoothProfile.HEARING_AID); in onProfileConnectionStateChanged_ashaHearingAidConnected_notInCall_addPreference()
263 BluetoothProfile.STATE_CONNECTED, in onProfileConnectionStateChanged_ashaHearingAidConnected_inCall_addPreference()
264 BluetoothProfile.HEARING_AID); in onProfileConnectionStateChanged_ashaHearingAidConnected_inCall_addPreference()
284 BluetoothProfile.STATE_CONNECTED, in onProfileConnectionStateChanged_leaConnected_notInCallSharingFlagOff_addsPreference()
[all …]
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/pan/
DPanServiceTest.java29 import android.bluetooth.BluetoothProfile;
113 BluetoothProfile.STATE_CONNECTED, PAN_ROLE_NONE, PAN_ROLE_NONE)); in connect_inConnectedState_returnsFalse()
124 BluetoothProfile.STATE_DISCONNECTED, PAN_ROLE_NONE, PAN_ROLE_NONE)); in connect()
137 .isEqualTo(BluetoothProfile.STATE_CONNECTED); in convertHalState()
139 .isEqualTo(BluetoothProfile.STATE_CONNECTING); in convertHalState()
141 .isEqualTo(BluetoothProfile.STATE_DISCONNECTED); in convertHalState()
143 .isEqualTo(BluetoothProfile.STATE_DISCONNECTING); in convertHalState()
145 .isEqualTo(BluetoothProfile.STATE_DISCONNECTED); in convertHalState()
153 BluetoothProfile.STATE_DISCONNECTED, PAN_ROLE_NONE, PAN_ROLE_NONE)); in dump()
176 int connectionPolicy = BluetoothProfile.CONNECTION_POLICY_ALLOWED; in setConnectionPolicy_whenDatabaseManagerRefuses_returnsFalse()
[all …]
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/hid/
DHidHostServiceTest.java22 import android.bluetooth.BluetoothProfile;
95 BluetoothProfile.CONNECTION_POLICY_UNKNOWN, in testOkToConnect()
100 BluetoothProfile.CONNECTION_POLICY_FORBIDDEN, in testOkToConnect()
105 BluetoothProfile.CONNECTION_POLICY_ALLOWED, in testOkToConnect()
111 BluetoothProfile.CONNECTION_POLICY_UNKNOWN, in testOkToConnect()
116 BluetoothProfile.CONNECTION_POLICY_FORBIDDEN, in testOkToConnect()
121 BluetoothProfile.CONNECTION_POLICY_ALLOWED, in testOkToConnect()
127 BluetoothProfile.CONNECTION_POLICY_UNKNOWN, in testOkToConnect()
132 BluetoothProfile.CONNECTION_POLICY_FORBIDDEN, in testOkToConnect()
137 BluetoothProfile.CONNECTION_POLICY_ALLOWED, in testOkToConnect()
[all …]
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/pbapclient/
DPbapClientStateMachine.java49 import android.bluetooth.BluetoothProfile;
107 private int mMostRecentState = BluetoothProfile.STATE_DISCONNECTED;
143 mCurrentDevice, mMostRecentState, BluetoothProfile.STATE_DISCONNECTED); in enter()
144 mMostRecentState = BluetoothProfile.STATE_DISCONNECTED; in enter()
155 mCurrentDevice, mMostRecentState, BluetoothProfile.STATE_CONNECTING); in enter()
157 mMostRecentState = BluetoothProfile.STATE_CONNECTING; in enter()
225 mCurrentDevice, mMostRecentState, BluetoothProfile.STATE_DISCONNECTING); in enter()
226 mMostRecentState = BluetoothProfile.STATE_DISCONNECTING; in enter()
283 mCurrentDevice, mMostRecentState, BluetoothProfile.STATE_CONNECTED); in enter()
284 mMostRecentState = BluetoothProfile.STATE_CONNECTED; in enter()
[all …]

12345678910>>...15