/packages/modules/Bluetooth/framework/java/android/bluetooth/ |
D | BluetoothHeadset.java | 820 BluetoothStatusCodes.ERROR_TIMEOUT 857 return BluetoothStatusCodes.ERROR_TIMEOUT; in getAudioState() 866 BluetoothStatusCodes.SUCCESS, 867 BluetoothStatusCodes.ERROR_PROFILE_SERVICE_NOT_BOUND, 868 BluetoothStatusCodes.ERROR_TIMEOUT, 869 BluetoothStatusCodes.ERROR_UNKNOWN, 876 BluetoothStatusCodes.ALLOWED, 877 BluetoothStatusCodes.NOT_ALLOWED, 878 BluetoothStatusCodes.ERROR_PROFILE_SERVICE_NOT_BOUND, 879 BluetoothStatusCodes.ERROR_TIMEOUT, [all …]
|
D | BluetoothHapClient.java | 80 BluetoothStatusCodes.ERROR_UNKNOWN, 81 BluetoothStatusCodes.REASON_LOCAL_APP_REQUEST, 82 BluetoothStatusCodes.REASON_LOCAL_STACK_REQUEST, 83 BluetoothStatusCodes.REASON_REMOTE_REQUEST, 84 BluetoothStatusCodes.REASON_SYSTEM_POLICY, 105 BluetoothStatusCodes.ERROR_UNKNOWN, 106 BluetoothStatusCodes.REASON_LOCAL_STACK_REQUEST, 107 BluetoothStatusCodes.REASON_SYSTEM_POLICY, 108 BluetoothStatusCodes.ERROR_REMOTE_OPERATION_REJECTED, 109 BluetoothStatusCodes.ERROR_REMOTE_OPERATION_NOT_SUPPORTED, [all …]
|
D | BluetoothAdapter.java | 270 BluetoothStatusCodes.SUCCESS, 271 BluetoothStatusCodes.ERROR_TIMEOUT, 272 BluetoothStatusCodes.RFCOMM_LISTENER_START_FAILED_UUID_IN_USE, 273 BluetoothStatusCodes.RFCOMM_LISTENER_OPERATION_FAILED_NO_MATCHING_SERVICE_RECORD, 274 BluetoothStatusCodes.RFCOMM_LISTENER_OPERATION_FAILED_DIFFERENT_APP, 275 BluetoothStatusCodes.RFCOMM_LISTENER_FAILED_TO_CREATE_SERVER_SOCKET, 276 BluetoothStatusCodes.RFCOMM_LISTENER_FAILED_TO_CLOSE_SERVER_SOCKET, 277 BluetoothStatusCodes.RFCOMM_LISTENER_NO_SOCKET_AVAILABLE, 454 BluetoothStatusCodes.SUCCESS, 455 BluetoothStatusCodes.ERROR_UNKNOWN, [all …]
|
D | BluetoothLeBroadcastAssistant.java | 89 BluetoothStatusCodes.ERROR_UNKNOWN, 90 BluetoothStatusCodes.REASON_LOCAL_APP_REQUEST, 91 BluetoothStatusCodes.REASON_LOCAL_STACK_REQUEST, 92 BluetoothStatusCodes.REASON_REMOTE_REQUEST, 93 BluetoothStatusCodes.REASON_SYSTEM_POLICY, 94 BluetoothStatusCodes.ERROR_HARDWARE_GENERIC, 95 BluetoothStatusCodes.ERROR_LE_BROADCAST_ASSISTANT_DUPLICATE_ADDITION, 96 BluetoothStatusCodes.ERROR_BAD_PARAMETERS, 97 BluetoothStatusCodes.ERROR_REMOTE_LINK_ERROR, 98 BluetoothStatusCodes.ERROR_REMOTE_NOT_ENOUGH_RESOURCES, [all …]
|
D | BluetoothLeBroadcast.java | 213 BluetoothStatusCodes.ERROR_UNKNOWN, 214 BluetoothStatusCodes.REASON_LOCAL_APP_REQUEST, 215 BluetoothStatusCodes.REASON_LOCAL_STACK_REQUEST, 216 BluetoothStatusCodes.REASON_SYSTEM_POLICY, 217 BluetoothStatusCodes.ERROR_HARDWARE_GENERIC, 218 BluetoothStatusCodes.ERROR_BAD_PARAMETERS, 219 BluetoothStatusCodes.ERROR_LOCAL_NOT_ENOUGH_RESOURCES, 220 BluetoothStatusCodes.ERROR_LE_BROADCAST_INVALID_CODE, 221 BluetoothStatusCodes.ERROR_LE_BROADCAST_INVALID_BROADCAST_ID, 222 BluetoothStatusCodes.ERROR_LE_CONTENT_METADATA_INVALID_PROGRAM_INFO, [all …]
|
D | BluetoothGatt.java | 464 int requestStatus = BluetoothStatusCodes.ERROR_UNKNOWN; 472 .getValue(BluetoothStatusCodes.ERROR_PROFILE_SERVICE_NOT_BOUND); 474 != BluetoothStatusCodes.ERROR_GATT_WRITE_REQUEST_BUSY) { 1323 characteristic.getWriteType()) == BluetoothStatusCodes.SUCCESS; in writeCharacteristic() 1332 BluetoothStatusCodes.SUCCESS, 1333 BluetoothStatusCodes.ERROR_MISSING_BLUETOOTH_CONNECT_PERMISSION, 1334 BluetoothStatusCodes.ERROR_DEVICE_NOT_CONNECTED, 1335 BluetoothStatusCodes.ERROR_PROFILE_SERVICE_NOT_BOUND, 1336 BluetoothStatusCodes.ERROR_GATT_WRITE_NOT_ALLOWED, 1337 BluetoothStatusCodes.ERROR_GATT_WRITE_REQUEST_BUSY, [all …]
|
D | BluetoothDevice.java | 1611 BluetoothStatusCodes.SUCCESS, 1612 BluetoothStatusCodes.ERROR_BLUETOOTH_NOT_ENABLED, 1613 BluetoothStatusCodes.ERROR_BLUETOOTH_NOT_ALLOWED, 1614 BluetoothStatusCodes.ERROR_MISSING_BLUETOOTH_CONNECT_PERMISSION, 1615 BluetoothStatusCodes.ERROR_DEVICE_NOT_BONDED 1646 final int defaultValue = BluetoothStatusCodes.ERROR_BLUETOOTH_NOT_ENABLED; in setAlias() 2010 BluetoothStatusCodes.SUCCESS, 2011 BluetoothStatusCodes.ERROR_BLUETOOTH_NOT_ENABLED, 2012 BluetoothStatusCodes.ERROR_BLUETOOTH_NOT_ALLOWED, 2013 BluetoothStatusCodes.ERROR_MISSING_BLUETOOTH_CONNECT_PERMISSION, [all …]
|
D | BluetoothGattServer.java | 746 characteristic.getValue()) == BluetoothStatusCodes.SUCCESS; in notifyCharacteristicChanged() 752 BluetoothStatusCodes.SUCCESS, 753 BluetoothStatusCodes.ERROR_MISSING_BLUETOOTH_CONNECT_PERMISSION, 754 BluetoothStatusCodes.ERROR_DEVICE_NOT_CONNECTED, 755 BluetoothStatusCodes.ERROR_PROFILE_SERVICE_NOT_BOUND, 756 BluetoothStatusCodes.ERROR_UNKNOWN 786 return BluetoothStatusCodes.ERROR_PROFILE_SERVICE_NOT_BOUND; in notifyCharacteristicChanged() 809 .getValue(BluetoothStatusCodes.ERROR_PROFILE_SERVICE_NOT_BOUND); in notifyCharacteristicChanged() 812 return BluetoothStatusCodes.ERROR_PROFILE_SERVICE_NOT_BOUND; in notifyCharacteristicChanged()
|
D | BluetoothCsipSetCoordinator.java | 75 BluetoothStatusCodes.SUCCESS, 76 BluetoothStatusCodes.ERROR_DEVICE_NOT_CONNECTED, 77 BluetoothStatusCodes.ERROR_CSIP_INVALID_GROUP_ID, 78 BluetoothStatusCodes.ERROR_CSIP_GROUP_LOCKED_BY_OTHER, 79 BluetoothStatusCodes.ERROR_CSIP_LOCKED_GROUP_MEMBER_LOST, 80 BluetoothStatusCodes.ERROR_UNKNOWN,
|
D | BluetoothStatusCodes.java | 27 public final class BluetoothStatusCodes { class 29 private BluetoothStatusCodes() {} in BluetoothStatusCodes() method in BluetoothStatusCodes
|
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/hap/ |
D | HapClientService.java | 32 import android.bluetooth.BluetoothStatusCodes; 608 BluetoothStatusCodes.ERROR_HAP_INVALID_PRESET_INDEX); in selectPreset() 628 int status = BluetoothStatusCodes.SUCCESS; in selectPresetForGroup() 631 status = BluetoothStatusCodes.ERROR_CSIP_INVALID_GROUP_ID; in selectPresetForGroup() 633 status = BluetoothStatusCodes.ERROR_HAP_INVALID_PRESET_INDEX; in selectPresetForGroup() 636 if (status != BluetoothStatusCodes.SUCCESS) { in selectPresetForGroup() 749 return BluetoothStatusCodes.REASON_LOCAL_STACK_REQUEST; in stackEventPresetInfoReasonToProfileStatus() 751 return BluetoothStatusCodes.REASON_REMOTE_REQUEST; in stackEventPresetInfoReasonToProfileStatus() 753 return BluetoothStatusCodes.REASON_REMOTE_REQUEST; in stackEventPresetInfoReasonToProfileStatus() 755 return BluetoothStatusCodes.REASON_REMOTE_REQUEST; in stackEventPresetInfoReasonToProfileStatus() [all …]
|
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/btservice/ |
D | AdapterService.java | 55 import android.bluetooth.BluetoothStatusCodes; 1304 return BluetoothStatusCodes.SUCCESS; in connectEnabledProfiles() 1357 return BluetoothStatusCodes.RFCOMM_LISTENER_START_FAILED_UUID_IN_USE; in startRfcommListener() 1363 return BluetoothStatusCodes.RFCOMM_LISTENER_FAILED_TO_CREATE_SERVER_SOCKET; in startRfcommListener() 1366 return BluetoothStatusCodes.SUCCESS; in startRfcommListener() 1377 return BluetoothStatusCodes.RFCOMM_LISTENER_OPERATION_FAILED_NO_MATCHING_SERVICE_RECORD; in stopRfcommListener() 1381 return BluetoothStatusCodes.RFCOMM_LISTENER_OPERATION_FAILED_DIFFERENT_APP; in stopRfcommListener() 1399 BluetoothStatusCodes in retrievePendingSocketForServiceRecord() 1405 socketInfo.status = BluetoothStatusCodes.RFCOMM_LISTENER_OPERATION_FAILED_DIFFERENT_APP; in retrievePendingSocketForServiceRecord() 1412 socketInfo.status = BluetoothStatusCodes.RFCOMM_LISTENER_NO_SOCKET_AVAILABLE; in retrievePendingSocketForServiceRecord() [all …]
|
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/hap/ |
D | HapClientTest.java | 36 import android.bluetooth.BluetoothStatusCodes; 543 eq(BluetoothStatusCodes.ERROR_HAP_INVALID_PRESET_INDEX)); in testSelectPresetNative() 569 eq(0x03), eq(BluetoothStatusCodes.ERROR_HAP_INVALID_PRESET_INDEX)); in testGroupSelectActivePresetNative() 718 eq(BluetoothStatusCodes.ERROR_HAP_INVALID_PRESET_INDEX)); in testSetPresetNameNative() 748 eq(BluetoothStatusCodes.ERROR_HAP_INVALID_PRESET_INDEX)); in testSetPresetNameForGroup() 756 eq(BluetoothStatusCodes.ERROR_CSIP_INVALID_GROUP_ID)); in testSetPresetNameForGroup() 803 eq(0x01), eq(BluetoothStatusCodes.REASON_LOCAL_STACK_REQUEST)); in testStackEventOnPresetSelected() 829 eq(BluetoothStatusCodes.ERROR_HAP_INVALID_PRESET_INDEX)); in testStackEventOnActivePresetSelectError() 862 presetsCaptor.capture(), eq(BluetoothStatusCodes.REASON_REMOTE_REQUEST)); in testStackEventOnPresetInfo() 895 eq(BluetoothStatusCodes.ERROR_HAP_PRESET_NAME_TOO_LONG)); in testStackEventOnPresetNameSetError() [all …]
|
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/bass_client/ |
D | BassClientService.java | 29 import android.bluetooth.BluetoothStatusCodes; 384 case BluetoothStatusCodes.REASON_LOCAL_APP_REQUEST: in isSuccess() 385 case BluetoothStatusCodes.REASON_LOCAL_STACK_REQUEST: in isSuccess() 386 case BluetoothStatusCodes.REASON_REMOTE_REQUEST: in isSuccess() 387 case BluetoothStatusCodes.REASON_SYSTEM_POLICY: in isSuccess() 895 mCallbacks.notifySearchStartFailed(BluetoothStatusCodes.ERROR_UNKNOWN); in startSearchingForSources() 961 mCallbacks.notifySearchStarted(BluetoothStatusCodes.REASON_LOCAL_APP_REQUEST); in startSearchingForSources() 983 mCallbacks.notifySearchStopFailed(BluetoothStatusCodes.ERROR_UNKNOWN); in stopSearchingForSources() 988 mCallbacks.notifySearchStopped(BluetoothStatusCodes.REASON_LOCAL_APP_REQUEST); in stopSearchingForSources() 1042 BluetoothStatusCodes.ERROR_BAD_PARAMETERS); in addSource() [all …]
|
D | BassClientStateMachine.java | 37 import android.bluetooth.BluetoothStatusCodes; 796 BluetoothStatusCodes.REASON_LOCAL_APP_REQUEST); in processBroadcastReceiverState() 811 BluetoothStatusCodes.REASON_LOCAL_APP_REQUEST); in processBroadcastReceiverState() 816 recvState.getSourceId(), BluetoothStatusCodes.REASON_LOCAL_APP_REQUEST); in processBroadcastReceiverState() 1311 mDevice, sourceId, BluetoothStatusCodes.ERROR_UNKNOWN); in convertBroadcastMetadataToUpdateSourceByteArray() 1319 mDevice, sourceId, BluetoothStatusCodes.ERROR_UNKNOWN); in convertBroadcastMetadataToUpdateSourceByteArray() 1541 metaData, BluetoothStatusCodes.ERROR_UNKNOWN); in processMessage() 1572 mDevice, sourceId, BluetoothStatusCodes.ERROR_UNKNOWN); in processMessage() 1622 sid, BluetoothStatusCodes.ERROR_UNKNOWN); in processMessage() 1639 case BluetoothStatusCodes.REASON_LOCAL_APP_REQUEST: in isSuccess() [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/development/ |
D | BluetoothLeAudioPreferenceControllerTest.java | 28 import android.bluetooth.BluetoothStatusCodes; 73 .thenReturn(BluetoothStatusCodes.FEATURE_NOT_SUPPORTED); in onRebootDialogConfirmedAsLeAudioDisabled_shouldSwitchStatus() 85 .thenReturn(BluetoothStatusCodes.FEATURE_SUPPORTED); in onRebootDialogConfirmedAsLeAudioEnabled_shouldSwitchStatus() 97 .thenReturn(BluetoothStatusCodes.FEATURE_NOT_SUPPORTED); in onRebootDialogCanceled_shouldNotSwitchStatus()
|
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/hfp/ |
D | HeadsetService.java | 31 import android.bluetooth.BluetoothStatusCodes; 763 int defaultValue = BluetoothStatusCodes.ERROR_PROFILE_SERVICE_NOT_BOUND; in connectAudio() 778 int defaultValue = BluetoothStatusCodes.ERROR_PROFILE_SERVICE_NOT_BOUND; in disconnectAudio() 1416 if (disconnectStatus != BluetoothStatusCodes.SUCCESS) { in removeActiveDevice() 1457 if (disconnectStatus != BluetoothStatusCodes.SUCCESS) { in setActiveDevice() 1482 if (connectStatus != BluetoothStatusCodes.SUCCESS) { in setActiveDevice() 1516 return BluetoothStatusCodes.ERROR_NO_ACTIVE_DEVICES; in connectAudio() 1528 return BluetoothStatusCodes.ERROR_PROFILE_NOT_CONNECTED; in connectAudio() 1531 if (scoConnectionAllowedState != BluetoothStatusCodes.SUCCESS) { in connectAudio() 1537 return BluetoothStatusCodes.ERROR_PROFILE_NOT_CONNECTED; in connectAudio() [all …]
|
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/testutils/ |
D | ShadowBluetoothAdapter.java | 23 import android.bluetooth.BluetoothStatusCodes; 86 return BluetoothStatusCodes.ERROR_BLUETOOTH_NOT_ENABLED; in setScanMode() 89 return BluetoothStatusCodes.SUCCESS; in setScanMode()
|
/packages/apps/Settings/src/com/android/settings/development/ |
D | BluetoothLeAudioPreferenceController.java | 21 import android.bluetooth.BluetoothStatusCodes; 81 (mBluetoothAdapter.isLeAudioSupported() == BluetoothStatusCodes.FEATURE_SUPPORTED); in updateState() 103 (mBluetoothAdapter.isLeAudioSupported() == BluetoothStatusCodes.FEATURE_SUPPORTED); in onRebootDialogConfirmed()
|
D | BluetoothLeAudioHwOffloadPreferenceController.java | 24 import android.bluetooth.BluetoothStatusCodes; 82 (mBluetoothAdapter.isLeAudioSupported() == BluetoothStatusCodes.FEATURE_SUPPORTED); in updateState() 105 (mBluetoothAdapter.isLeAudioSupported() == BluetoothStatusCodes.FEATURE_SUPPORTED); in onDeveloperOptionsSwitchDisabled()
|
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/hfp/ |
D | HeadsetServiceTest.java | 26 import android.bluetooth.BluetoothStatusCodes; 423 Assert.assertEquals(BluetoothStatusCodes.SUCCESS, in testConnectAudio_withOneDevice() 430 Assert.assertEquals(BluetoothStatusCodes.SUCCESS, in testConnectAudio_withOneDevice() 436 Assert.assertEquals(BluetoothStatusCodes.SUCCESS, in testConnectAudio_withOneDevice() 443 Assert.assertEquals(BluetoothStatusCodes.ERROR_AUDIO_DEVICE_ALREADY_DISCONNECTED, in testConnectAudio_withOneDevice() 494 Assert.assertEquals(BluetoothStatusCodes.ERROR_NOT_ACTIVE_DEVICE, in testConnectAudio_withMultipleDevices() 498 Assert.assertEquals(BluetoothStatusCodes.SUCCESS, in testConnectAudio_withMultipleDevices() 506 Assert.assertEquals(BluetoothStatusCodes.SUCCESS, in testConnectAudio_withMultipleDevices() 515 Assert.assertEquals(BluetoothStatusCodes.SUCCESS, in testConnectAudio_withMultipleDevices() 522 Assert.assertEquals(BluetoothStatusCodes.ERROR_AUDIO_DEVICE_ALREADY_DISCONNECTED, in testConnectAudio_withMultipleDevices() [all …]
|
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/csip/ |
D | CsipSetCoordinatorService.java | 30 import android.bluetooth.BluetoothStatusCodes; 513 BluetoothStatusCodes.ERROR_CSIP_INVALID_GROUP_ID, in lockGroup() 527 BluetoothStatusCodes.ERROR_CSIP_GROUP_LOCKED_BY_OTHER, in lockGroup() 741 return BluetoothStatusCodes.SUCCESS; in getApiStatusCode() 743 return BluetoothStatusCodes.ERROR_CSIP_INVALID_GROUP_ID; in getApiStatusCode() 745 return BluetoothStatusCodes.ERROR_DEVICE_NOT_CONNECTED; in getApiStatusCode() 747 return BluetoothStatusCodes.ERROR_CSIP_GROUP_LOCKED_BY_OTHER; in getApiStatusCode() 749 return BluetoothStatusCodes.ERROR_CSIP_LOCKED_GROUP_MEMBER_LOST; in getApiStatusCode() 753 return BluetoothStatusCodes.ERROR_UNKNOWN; in getApiStatusCode()
|
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/ |
D | BluetoothRouteManagerTest.java | 25 import android.bluetooth.BluetoothStatusCodes; 95 when(mBluetoothHeadset.connectAudio()).thenReturn(BluetoothStatusCodes.ERROR_UNKNOWN); in testConnectBtRetryWhileNotConnected() 157 when(mBluetoothHeadset.connectAudio()).thenReturn(BluetoothStatusCodes.ERROR_UNKNOWN); in testConnectBtRetryWhileConnectedToAnotherDevice() 239 when(mBluetoothHeadset.connectAudio()).thenReturn(BluetoothStatusCodes.SUCCESS); in resetMocks()
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/bluetooth/ |
D | CarBluetoothUserServiceTest.java | 38 import android.bluetooth.BluetoothStatusCodes; 349 when(device.connect()).thenReturn(BluetoothStatusCodes.SUCCESS); in createMockDevice() 350 when(device.disconnect()).thenReturn(BluetoothStatusCodes.SUCCESS); in createMockDevice()
|
/packages/modules/Bluetooth/android/pandora/server/src/com/android/pandora/ |
D | GattInstance.kt | 26 import android.bluetooth.BluetoothStatusCodes 327 ) == BluetoothStatusCodes.SUCCESS in writeCharacteristicBlocking() 347 ) == BluetoothStatusCodes.SUCCESS in writeDescriptorBlocking()
|