/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/hfp/ |
D | HeadsetServiceAndStateMachineTest.java | 96 @Mock private HeadsetNativeInterface mNativeInterface; field in HeadsetServiceAndStateMachineTest 161 doReturn(true).when(mNativeInterface).connectHfp(any(BluetoothDevice.class)); in setUp() 162 doReturn(true).when(mNativeInterface).disconnectHfp(any(BluetoothDevice.class)); in setUp() 163 doReturn(true).when(mNativeInterface).connectAudio(any(BluetoothDevice.class)); in setUp() 164 doReturn(true).when(mNativeInterface).disconnectAudio(any(BluetoothDevice.class)); in setUp() 165 doReturn(true).when(mNativeInterface).setActiveDevice(any(BluetoothDevice.class)); in setUp() 166 doReturn(true).when(mNativeInterface).sendBsir(any(BluetoothDevice.class), anyBoolean()); in setUp() 167 doReturn(true).when(mNativeInterface).startVoiceRecognition(any(BluetoothDevice.class)); in setUp() 168 doReturn(true).when(mNativeInterface).stopVoiceRecognition(any(BluetoothDevice.class)); in setUp() 170 .when(mNativeInterface) in setUp() [all …]
|
D | AtPhonebookTest.java | 67 @Mock private HeadsetNativeInterface mNativeInterface; field in AtPhonebookTest 81 mAtPhonebook = new AtPhonebook(mTargetContext, mNativeInterface); in setUp() 106 verify(mNativeInterface).atResponseString(mTestDevice, "+CSCS: \"" + "UTF-8" + "\""); in handleCscsCommand() 109 verify(mNativeInterface) in handleCscsCommand() 113 verify(mNativeInterface, atLeastOnce()) in handleCscsCommand() 117 verify(mNativeInterface, atLeastOnce()) in handleCscsCommand() 121 verify(mNativeInterface) in handleCscsCommand() 128 verify(mNativeInterface) in handleCscsCommand() 140 verify(mNativeInterface) in handleCpbsCommand() 144 verify(mNativeInterface) in handleCpbsCommand() [all …]
|
D | HeadsetStateMachineTest.java | 108 @Mock private HeadsetNativeInterface mNativeInterface; field in HeadsetStateMachineTest 130 doReturn(true).when(mNativeInterface).connectHfp(mTestDevice); in setUp() 131 doReturn(true).when(mNativeInterface).disconnectHfp(mTestDevice); in setUp() 132 doReturn(true).when(mNativeInterface).connectAudio(mTestDevice); in setUp() 133 doReturn(true).when(mNativeInterface).disconnectAudio(mTestDevice); in setUp() 165 mNativeInterface, in setUp() 607 verify(mNativeInterface, never()).connectAudio(mTestDevice); in testStateTransition_ConnectedToAudioConnecting_ConnectAudio_ScoManagedbyAudio() 1304 verify(mNativeInterface, timeout(ASYNC_CALL_TIMEOUT_MILLIS)) in testCindEventWhenCallIsInProgress() 1315 verify(mNativeInterface, timeout(ASYNC_CALL_TIMEOUT_MILLIS)) in testCindEventWhenCallIsInProgress() 1335 verify(mNativeInterface, timeout(ASYNC_CALL_TIMEOUT_MILLIS)).disconnectAudio(mTestDevice); in testKeyPressedEventWhenIdleAndAudioOn_disconnectAudio() [all …]
|
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/hap/ |
D | HapClientTest.java | 108 @Mock private HapClientNativeInterface mNativeInterface; field in HapClientTest 137 when(mNativeInterface.getDevice(getByteAddress(mDevice))).thenReturn(mDevice); in setUp() 139 when(mNativeInterface.getDevice(getByteAddress(mDevice2))).thenReturn(mDevice2); in setUp() 141 when(mNativeInterface.getDevice(getByteAddress(mDevice3))).thenReturn(mDevice3); in setUp() 144 .when(mNativeInterface) in setUp() 146 doCallRealMethod().when(mNativeInterface).onFeaturesUpdate(any(byte[].class), anyInt()); in setUp() 147 doCallRealMethod().when(mNativeInterface).onDeviceAvailable(any(byte[].class), anyInt()); in setUp() 149 .when(mNativeInterface) in setUp() 152 .when(mNativeInterface) in setUp() 155 .when(mNativeInterface) in setUp() [all …]
|
D | HapClientNativeInterfaceTest.java | 43 private HapClientNativeInterface mNativeInterface; field in HapClientNativeInterfaceTest 49 mNativeInterface = new HapClientNativeInterface(); in setUp() 60 mNativeInterface.onConnectionStateChanged(state, TEST_DEVICE_ADDRESS); in onConnectionStateChanged() 73 mNativeInterface.onDeviceAvailable(TEST_DEVICE_ADDRESS, features); in onDeviceAvailable() 86 mNativeInterface.onFeaturesUpdate(TEST_DEVICE_ADDRESS, features); in onFeaturesUpdate() 98 mNativeInterface.onActivePresetSelected(TEST_DEVICE_ADDRESS, presetIndex); in onActivePresetSelected() 112 mNativeInterface.onActivePresetGroupSelected(groupId, presetIndex); in onActivePresetGroupSelected() 126 mNativeInterface.onActivePresetSelectError(TEST_DEVICE_ADDRESS, resultCode); in onActivePresetSelectError() 140 mNativeInterface.onActivePresetGroupSelectError(groupId, resultCode); in onActivePresetGroupSelectError() 160 mNativeInterface.onPresetInfo(TEST_DEVICE_ADDRESS, infoReason, presets); in onPresetInfo() [all …]
|
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/avrcpcontroller/ |
D | AvrcpControllerStateMachineTest.java | 89 @Mock private AvrcpControllerNativeInterface mNativeInterface; field in AvrcpControllerStateMachineTest 163 device, mAvrcpControllerService, mNativeInterface, false); in makeStateMachine() 516 verify(mNativeInterface, timeout(ASYNC_CALL_TIMEOUT_MILLIS).times(1)) in testPlay() 521 verify(mNativeInterface, timeout(ASYNC_CALL_TIMEOUT_MILLIS).times(1)) in testPlay() 537 verify(mNativeInterface, timeout(ASYNC_CALL_TIMEOUT_MILLIS).times(1)) in testPause() 542 verify(mNativeInterface, timeout(ASYNC_CALL_TIMEOUT_MILLIS).times(1)) in testPause() 558 verify(mNativeInterface, timeout(ASYNC_CALL_TIMEOUT_MILLIS).times(1)) in testStop() 563 verify(mNativeInterface, timeout(ASYNC_CALL_TIMEOUT_MILLIS).times(1)) in testStop() 579 verify(mNativeInterface, timeout(ASYNC_CALL_TIMEOUT_MILLIS).times(1)) in testNext() 584 verify(mNativeInterface, timeout(ASYNC_CALL_TIMEOUT_MILLIS).times(1)) in testNext() [all …]
|
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/hfpclient/ |
D | HfpNativeInterfaceTest.java | 45 private NativeInterface mNativeInterface; field in HfpNativeInterfaceTest 52 mNativeInterface = NativeInterface.getInstance(); in setUp() 66 mNativeInterface.onConnectionStateChanged(state, peerFeat, chldFeat, TEST_DEVICE_ADDRESS); in onConnectionStateChanged() 79 mNativeInterface.onAudioStateChanged(state, TEST_DEVICE_ADDRESS); in onAudioStateChanged() 90 mNativeInterface.onVrStateChanged(state, TEST_DEVICE_ADDRESS); in onVrStateChanged() 101 mNativeInterface.onNetworkState(state, TEST_DEVICE_ADDRESS); in onNetworkState() 112 mNativeInterface.onNetworkRoaming(state, TEST_DEVICE_ADDRESS); in onNetworkRoaming() 123 mNativeInterface.onNetworkSignal(signal, TEST_DEVICE_ADDRESS); in onNetworkSignal() 134 mNativeInterface.onBatteryLevel(level, TEST_DEVICE_ADDRESS); in onBatteryLevel() 145 mNativeInterface.onCurrentOperator(name, TEST_DEVICE_ADDRESS); in onCurrentOperator() [all …]
|
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/hearingaid/ |
D | HearingAidNativeInterfaceTest.java | 49 private HearingAidNativeInterface mNativeInterface; field in HearingAidNativeInterfaceTest 56 mNativeInterface = HearingAidNativeInterface.getInstance(); in setUp() 67 assertThat(mNativeInterface.getByteAddress(null)) in getByteAddress() 71 assertThat(mNativeInterface.getByteAddress(device)) in getByteAddress() 78 mNativeInterface.onConnectionStateChanged( in onConnectionStateChanged() 79 BluetoothProfile.STATE_CONNECTED, mNativeInterface.getByteAddress(device)); in onConnectionStateChanged() 90 mNativeInterface.onConnectionStateChanged( in onConnectionStateChanged() 91 BluetoothProfile.STATE_CONNECTED, mNativeInterface.getByteAddress(device)); in onConnectionStateChanged() 100 mNativeInterface.onDeviceAvailable( in onDeviceAvailable() 101 capabilities, hiSyncId, mNativeInterface.getByteAddress(device)); in onDeviceAvailable() [all …]
|
D | HearingAidServiceTest.java | 101 @Mock private HearingAidNativeInterface mNativeInterface; field in HearingAidServiceTest 134 HearingAidNativeInterface.setInstance(mNativeInterface); in setUp() 310 doReturn(true).when(mNativeInterface).connectHearingAid(any(BluetoothDevice.class)); in testOutgoingConnectMissingHearingAidUuid() 311 doReturn(true).when(mNativeInterface).disconnectHearingAid(any(BluetoothDevice.class)); in testOutgoingConnectMissingHearingAidUuid() 325 doReturn(true).when(mNativeInterface).connectHearingAid(any(BluetoothDevice.class)); in testOutgoingConnectPriorityOff() 326 doReturn(true).when(mNativeInterface).disconnectHearingAid(any(BluetoothDevice.class)); in testOutgoingConnectPriorityOff() 348 doReturn(true).when(mNativeInterface).connectHearingAid(any(BluetoothDevice.class)); in testOutgoingConnectTimeout() 349 doReturn(true).when(mNativeInterface).disconnectHearingAid(any(BluetoothDevice.class)); in testOutgoingConnectTimeout() 386 doReturn(true).when(mNativeInterface).connectHearingAid(any(BluetoothDevice.class)); in testConnectAPair_connectBothDevices() 387 doReturn(true).when(mNativeInterface).disconnectHearingAid(any(BluetoothDevice.class)); in testConnectAPair_connectBothDevices() [all …]
|
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/hid/ |
D | HidDeviceNativeInterfaceTest.java | 46 private HidDeviceNativeInterface mNativeInterface; field in HidDeviceNativeInterfaceTest 53 mNativeInterface = HidDeviceNativeInterface.getInstance(); in setUp() 64 mNativeInterface.onApplicationStateChanged(TEST_DEVICE_ADDRESS, true); in onApplicationStateChanged() 70 mNativeInterface.onConnectStateChanged( in onConnectStateChanged() 80 mNativeInterface.onGetReport(type, id, bufferSize); in onGetReport() 89 mNativeInterface.onSetReport(reportType, reportId, data); in onSetReport() 96 mNativeInterface.onSetProtocol(protocol); in onSetProtocol() 104 mNativeInterface.onInterruptData(reportId, data); in onInterruptData() 110 mNativeInterface.onVirtualCableUnplug(); in onVirtualCableUnplug()
|
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/vc/ |
D | VolumeControlServiceTest.java | 94 @Mock private VolumeControlNativeInterface mNativeInterface; field in VolumeControlServiceTest 129 VolumeControlNativeInterface.setInstance(mNativeInterface); in setUp() 341 doReturn(true).when(mNativeInterface).connectVolumeControl(any(BluetoothDevice.class)); in testOutgoingConnectMissingVolumeControlUuid() 342 doReturn(true).when(mNativeInterface).disconnectVolumeControl(any(BluetoothDevice.class)); in testOutgoingConnectMissingVolumeControlUuid() 360 doReturn(true).when(mNativeInterface).connectVolumeControl(any(BluetoothDevice.class)); in testOutgoingConnectDisconnectExistingVolumeControlUuid() 361 doReturn(true).when(mNativeInterface).disconnectVolumeControl(any(BluetoothDevice.class)); in testOutgoingConnectDisconnectExistingVolumeControlUuid() 395 doReturn(true).when(mNativeInterface).connectVolumeControl(any(BluetoothDevice.class)); in testOutgoingConnectPolicyForbidden() 396 doReturn(true).when(mNativeInterface).disconnectVolumeControl(any(BluetoothDevice.class)); in testOutgoingConnectPolicyForbidden() 414 doReturn(true).when(mNativeInterface).connectVolumeControl(any(BluetoothDevice.class)); in testOutgoingConnectTimeout() 415 doReturn(true).when(mNativeInterface).disconnectVolumeControl(any(BluetoothDevice.class)); in testOutgoingConnectTimeout() [all …]
|
D | VolumeControlNativeInterfaceTest.java | 42 private VolumeControlNativeInterface mNativeInterface; field in VolumeControlNativeInterfaceTest 48 mNativeInterface = VolumeControlNativeInterface.getInstance(); in setUp() 61 mNativeInterface.onConnectionStateChanged(state, address); in onConnectionStateChanged() 77 mNativeInterface.onVolumeStateChanged(volume, mute, address, isAutonomous); in onVolumeStateChanged() 93 mNativeInterface.onGroupVolumeStateChanged(volume, mute, groupId, isAutonomous); in onGroupVolumeStateChanged() 108 mNativeInterface.onDeviceAvailable(numOfExternalOutputs, address); in onDeviceAvailable() 123 mNativeInterface.onExtAudioOutVolumeOffsetChanged(externalOutputId, offset, address); in onExtAudioOutVolumeOffsetChanged() 138 mNativeInterface.onExtAudioOutLocationChanged(externalOutputId, location, address); in onExtAudioOutLocationChanged() 153 mNativeInterface.onExtAudioOutDescriptionChanged(externalOutputId, descr, address); in onExtAudioOutDescriptionChanged()
|
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/avrcp/ |
D | AvrcpTargetService.java | 70 private AvrcpNativeInterface mNativeInterface; field in AvrcpTargetService 114 if (mNativeInterface == null) return; in run() 130 mNativeInterface.sendMediaUpdate(metadata, state, queue); in run() 135 if (mNativeInterface == null) return; in run() 137 mNativeInterface.sendFolderUpdate(availablePlayers, addressedPlayers, uids); in run() 214 mNativeInterface = AvrcpNativeInterface.getInstance(); in start() 215 mNativeInterface.init(AvrcpTargetService.this); in start() 219 mVolumeManager = new AvrcpVolumeManager(this, mAudioManager, mNativeInterface); in start() 269 if (mNativeInterface != null) mNativeInterface.cleanup(); in stop() 274 mNativeInterface = null; in stop() [all …]
|
D | AvrcpCoverArtService.java | 63 private AvrcpNativeInterface mNativeInterface; field in AvrcpCoverArtService 66 mNativeInterface = AvrcpNativeInterface.getInstance(); in AvrcpCoverArtService() 161 mNativeInterface.registerBipServer(psm); in registerBipServer() 167 mNativeInterface.unregisterBipServer(); in unregisterBipServer() 192 mNativeInterface.setBipClientStatus(device, true); in connect() 196 mNativeInterface.setBipClientStatus(device, false); in connect() 227 mNativeInterface.setBipClientStatus(device, false); in disconnect()
|
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/hfp/ |
D | HeadsetStateMachine.java | 128 private final HeadsetNativeInterface mNativeInterface; field in HeadsetStateMachine 199 mNativeInterface = requireNonNull(nativeInterface); in HeadsetStateMachine() 218 mPhonebook = new AtPhonebook(mHeadsetService, mNativeInterface); in HeadsetStateMachine() 590 if (!mNativeInterface.connectHfp(device)) { in processMessage() 665 if (!mNativeInterface.disconnectHfp(mDevice)) { in processConnectionEvent() 1023 if (!mNativeInterface.startVoiceRecognition(mDevice)) { in processMessage() 1039 if (!mNativeInterface.stopVoiceRecognition(mDevice)) { in processMessage() 1049 if (!mNativeInterface.phoneStateChange(mDevice, callState)) { in processMessage() 1062 mNativeInterface.notifyDeviceStatus(mDevice, (HeadsetDeviceState) message.obj); in processMessage() 1075 mNativeInterface.clccResponse(device, 0, 0, 0, 0, false, "", 0); in processMessage() [all …]
|
D | AtPhonebook.java | 84 private HeadsetNativeInterface mNativeInterface; field in AtPhonebook 108 mNativeInterface = nativeInterface; in AtPhonebook() 181 mNativeInterface.atResponseCode(device, atCommandResult, atCommandErrorCode); in handleCscsCommand() 202 mNativeInterface.atResponseString(device, atCommandResponse); in handleCscsCommand() 204 mNativeInterface.atResponseCode(device, atCommandResult, atCommandErrorCode); in handleCscsCommand() 273 mNativeInterface.atResponseString(device, atCommandResponse); in handleCpbsCommand() 275 mNativeInterface.atResponseCode(device, atCommandResult, atCommandErrorCode); in handleCpbsCommand() 298 mNativeInterface.atResponseCode( in handleCpbrCommand() 313 mNativeInterface.atResponseString(remoteDevice, atCommandResponse); in handleCpbrCommand() 314 mNativeInterface.atResponseCode(remoteDevice, atCommandResult, atCommandErrorCode); in handleCpbrCommand() [all …]
|
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/le_audio/ |
D | LeAudioNativeInterfaceTest.java | 45 private LeAudioNativeInterface mNativeInterface; field in LeAudioNativeInterfaceTest 51 mNativeInterface = LeAudioNativeInterface.getInstance(); in setUp() 64 mNativeInterface.onConnectionStateChanged(state, address); in onConnectionStateChanged() 78 mNativeInterface.onGroupNodeStatus(address, groupId, nodeStatus); in onGroupNodeStatus() 94 mNativeInterface.onAudioConf( in onAudioConf() 108 mNativeInterface.onSinkAudioLocationAvailable(address, sinkAudioLocation); in onSinkAudioLocationAvailable() 124 mNativeInterface.onAudioLocalCodecCapabilities( in onAudioLocalCodecCapabilities() 140 mNativeInterface.onAudioGroupCurrentCodecConf(groupId, inputConfig, outputConfig); in onAudioGroupCurrentCodecConf() 159 mNativeInterface.onAudioGroupSelectableCodecConf( in onAudioGroupSelectableCodecConf()
|
D | LeAudioServiceTest.java | 132 @Mock private LeAudioNativeInterface mNativeInterface; field in LeAudioServiceTest 211 LeAudioNativeInterface.setInstance(mNativeInterface); in setUp() 264 verify(mNativeInterface, timeout(3000).times(1)).init(any()); in setUp() 507 doReturn(true).when(mNativeInterface).connectLeAudio(any(BluetoothDevice.class)); in testOutgoingConnectMissingLeAudioUuid() 508 doReturn(true).when(mNativeInterface).disconnectLeAudio(any(BluetoothDevice.class)); in testOutgoingConnectMissingLeAudioUuid() 522 doReturn(true).when(mNativeInterface).connectLeAudio(any(BluetoothDevice.class)); in testOutgoingConnectPriorityOff() 523 doReturn(true).when(mNativeInterface).disconnectLeAudio(any(BluetoothDevice.class)); in testOutgoingConnectPriorityOff() 543 doReturn(true).when(mNativeInterface).connectLeAudio(any(BluetoothDevice.class)); in testOutgoingConnectTimeout() 544 doReturn(true).when(mNativeInterface).disconnectLeAudio(any(BluetoothDevice.class)); in testOutgoingConnectTimeout() 625 doReturn(true).when(mNativeInterface).connectLeAudio(any(BluetoothDevice.class)); in testAudioManagerConnectDisconnect() [all …]
|
D | LeAudioBroadcasterNativeInterfaceTest.java | 44 private LeAudioBroadcasterNativeInterface mNativeInterface; field in LeAudioBroadcasterNativeInterfaceTest 50 mNativeInterface = LeAudioBroadcasterNativeInterface.getInstance(); in setUp() 63 mNativeInterface.onBroadcastCreated(broadcastId, success); in onBroadcastCreated() 74 mNativeInterface.onBroadcastDestroyed(broadcastId); in onBroadcastDestroyed() 87 mNativeInterface.onBroadcastStateChanged(broadcastId, state); in onBroadcastStateChanged() 99 mNativeInterface.onBroadcastMetadataChanged(broadcastId, metadata); in onBroadcastMetadataChanged()
|
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/gatt/ |
D | GattServiceTest.java | 103 @Mock private GattNativeInterface mNativeInterface; field in GattServiceTest 112 doReturn(mNativeInterface).when(mGattObjectsFactory).getNativeInterface(); in setUp() 178 verify(mNativeInterface, times(0)).gattServerDeleteService(eq(serverIf), anyInt()); in emptyClearServices() 190 verify(mNativeInterface).gattClientReadPhy(clientIf, address); in clientReadPhy() 206 verify(mNativeInterface) in clientSetPreferredPhy() 227 verify(mNativeInterface, times(3)) in connectionParameterUpdate() 264 verify(mNativeInterface) in clientConnect() 280 verify(mNativeInterface).gattClientDisconnect(clientIf, address, connId); in disconnectAll() 362 verify(mNativeInterface) in registerClient() 373 verify(mNativeInterface).gattClientUnregisterApp(clientIf); in unregisterClient() [all …]
|
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/csip/ |
D | CsipSetCoordinatorStateMachineTest.java | 69 @Mock private CsipSetCoordinatorNativeInterface mNativeInterface; field in CsipSetCoordinatorStateMachineTest 92 mNativeInterface, in setUp() 196 doReturn(true).when(mNativeInterface).connect(any(BluetoothDevice.class)); in testOutgoingTimeout() 197 doReturn(true).when(mNativeInterface).disconnect(any(BluetoothDevice.class)); in testOutgoingTimeout() 227 verify(mNativeInterface).disconnect(eq(mTestDevice)); in testOutgoingTimeout() 234 doReturn(true).when(mNativeInterface).connect(any(BluetoothDevice.class)); in testIncomingTimeout() 235 doReturn(true).when(mNativeInterface).disconnect(any(BluetoothDevice.class)); in testIncomingTimeout() 270 verify(mNativeInterface).disconnect(eq(mTestDevice)); in testIncomingTimeout() 311 doReturn(true).when(mNativeInterface).connect(any(BluetoothDevice.class)); in testProcessConnectMessage_onDisconnectedState() 341 verify(mNativeInterface).disconnect(mTestDevice); in testStackEvent_withoutStateChange_onDisconnectedState() [all …]
|
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/hearingaid/ |
D | HearingAidStateMachine.java | 72 private HearingAidNativeInterface mNativeInterface; field in HearingAidStateMachine 84 mNativeInterface = nativeInterface; in HearingAidStateMachine() 161 if (!mNativeInterface.connectHearingAid(mDevice)) { in processMessage() 174 mNativeInterface.disconnectHearingAid(mDevice); in processMessage() 210 mNativeInterface.disconnectHearingAid(mDevice); in processConnectionEvent() 221 mNativeInterface.disconnectHearingAid(mDevice); in processConnectionEvent() 274 mNativeInterface.disconnectHearingAid(mDevice); in processMessage() 277 mNativeInterface.addToAcceptlist(mDevice); in processMessage() 288 mNativeInterface.disconnectHearingAid(mDevice); in processMessage() 376 mNativeInterface.disconnectHearingAid(mDevice); in processMessage() [all …]
|
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/gatt/ |
D | AdvertiseManager.java | 51 private final AdvertiseManagerNativeInterface mNativeInterface; field in AdvertiseManager 64 mNativeInterface = nativeInterface; in AdvertiseManager() 68 mNativeInterface.init(this); in AdvertiseManager() 76 mNativeInterface.cleanup(); in cleanup() 155 mNativeInterface.stopAdvertisingSet(advertiserId); in onAdvertisingSetStarted() 278 mNativeInterface.startAdvertisingSet( in startAdvertisingSet() 321 mNativeInterface.getOwnAddress(advertiserId); in getOwnAddress() 343 mNativeInterface.stopAdvertisingSet(advertiserId); in stopAdvertisingSet() 360 mNativeInterface.enableAdvertisingSet(advertiserId, enable, duration, maxExtAdvEvents); in enableAdvertisingSet() 373 mNativeInterface.setAdvertisingData( in setAdvertisingData() [all …]
|
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/le_audio/ |
D | LeAudioStateMachine.java | 69 private LeAudioNativeInterface mNativeInterface; field in LeAudioStateMachine 81 mNativeInterface = nativeInterface; in LeAudioStateMachine() 161 if (!mNativeInterface.connectLeAudio(mDevice)) { in processMessage() 174 mNativeInterface.disconnectLeAudio(mDevice); in processMessage() 210 mNativeInterface.disconnectLeAudio(mDevice); in processConnectionEvent() 221 mNativeInterface.disconnectLeAudio(mDevice); in processConnectionEvent() 274 mNativeInterface.disconnectLeAudio(mDevice); in processMessage() 284 mNativeInterface.disconnectLeAudio(mDevice); in processMessage() 372 mNativeInterface.disconnectLeAudio(mDevice); in processMessage() 419 mNativeInterface.disconnectLeAudio(mDevice); in processConnectionEvent() [all …]
|
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/hap/ |
D | HapClientStateMachine.java | 71 private final HapClientNativeInterface mNativeInterface; field in HapClientStateMachine 83 mNativeInterface = gattInterface; in HapClientStateMachine() 248 if (!mNativeInterface.connectHapClient(mDevice)) { in processMessage() 263 mNativeInterface.disconnectHapClient(mDevice); in processMessage() 303 mNativeInterface.disconnectHapClient(mDevice); in processConnectionEvent() 314 mNativeInterface.disconnectHapClient(mDevice); in processConnectionEvent() 367 mNativeInterface.disconnectHapClient(mDevice); in processMessage() 377 mNativeInterface.disconnectHapClient(mDevice); in processMessage() 465 mNativeInterface.disconnectHapClient(mDevice); in processMessage() 514 mNativeInterface.disconnectHapClient(mDevice); in processConnectionEvent() [all …]
|