Searched refs:stackEvent (Results 1 – 8 of 8) sorted by relevance
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/a2dp/ |
D | A2dpServiceTest.java | 505 A2dpStackEvent stackEvent; in testCreateStateMachineStackEvents() local 568 A2dpStackEvent stackEvent; in testProcessAudioStateChangedCodecConfigChangedEvents() local 648 A2dpStackEvent stackEvent; in testDeleteStateMachineUnbondEvents() local 706 A2dpStackEvent stackEvent; in testDeleteStateMachineDisconnectEvents() local 924 A2dpStackEvent stackEvent = in generateConnectionMessageFromNative() local 926 stackEvent.device = device; in generateConnectionMessageFromNative() 927 stackEvent.valueInt = newConnectionState; in generateConnectionMessageFromNative() 928 mA2dpService.messageFromNative(stackEvent); in generateConnectionMessageFromNative() 936 A2dpStackEvent stackEvent = in generateUnexpectedConnectionMessageFromNative() local 938 stackEvent.device = device; in generateUnexpectedConnectionMessageFromNative() [all …]
|
/packages/apps/Bluetooth/src/com/android/bluetooth/le_audio/ |
D | LeAudioService.java | 411 void messageFromNative(LeAudioStackEvent stackEvent) { in messageFromNative() argument 412 Log.d(TAG, "Message from native: " + stackEvent); in messageFromNative() 413 BluetoothDevice device = stackEvent.device; in messageFromNative() 415 if (stackEvent.type == LeAudioStackEvent.EVENT_TYPE_CONNECTION_STATE_CHANGED) { in messageFromNative() 420 switch (stackEvent.valueInt1) { in messageFromNative() 431 Log.e(TAG, "Cannot process stack event: no state machine: " + stackEvent); in messageFromNative() 435 sm.sendMessage(LeAudioStateMachine.STACK_EVENT, stackEvent); in messageFromNative() 441 if (stackEvent.type == LeAudioStackEvent.EVENT_TYPE_GROUP_STATUS_CHANGED) { in messageFromNative() 442 int group_id = stackEvent.valueInt1; in messageFromNative() 443 int group_status = stackEvent.valueInt2; in messageFromNative() [all …]
|
/packages/apps/Bluetooth/src/com/android/bluetooth/hearingaid/ |
D | HearingAidService.java | 614 void messageFromNative(HearingAidStackEvent stackEvent) { in messageFromNative() argument 615 Objects.requireNonNull(stackEvent.device, in messageFromNative() 616 "Device should never be null, event: " + stackEvent); in messageFromNative() 618 if (stackEvent.type == HearingAidStackEvent.EVENT_TYPE_DEVICE_AVAILABLE) { in messageFromNative() 619 BluetoothDevice device = stackEvent.device; in messageFromNative() 620 int capabilities = stackEvent.valueInt1; in messageFromNative() 621 long hiSyncId = stackEvent.valueLong2; in messageFromNative() 632 BluetoothDevice device = stackEvent.device; in messageFromNative() 635 if (stackEvent.type == HearingAidStackEvent.EVENT_TYPE_CONNECTION_STATE_CHANGED) { in messageFromNative() 636 switch (stackEvent.valueInt1) { in messageFromNative() [all …]
|
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/le_audio/ |
D | LeAudioServiceTest.java | 693 LeAudioStackEvent stackEvent = in generateConnectionMessageFromNative() local 695 stackEvent.device = device; in generateConnectionMessageFromNative() 696 stackEvent.valueInt1 = newConnectionState; in generateConnectionMessageFromNative() 697 mService.messageFromNative(stackEvent); in generateConnectionMessageFromNative() 704 LeAudioStackEvent stackEvent = in generateUnexpectedConnectionMessageFromNative() local 706 stackEvent.device = device; in generateUnexpectedConnectionMessageFromNative() 707 stackEvent.valueInt1 = newConnectionState; in generateUnexpectedConnectionMessageFromNative() 708 mService.messageFromNative(stackEvent); in generateUnexpectedConnectionMessageFromNative()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/a2dp/ |
D | A2dpService.java | 908 void messageFromNative(A2dpStackEvent stackEvent) { in messageFromNative() argument 909 Objects.requireNonNull(stackEvent.device, in messageFromNative() 910 "Device should never be null, event: " + stackEvent); in messageFromNative() 912 BluetoothDevice device = stackEvent.device; in messageFromNative() 915 if (stackEvent.type == A2dpStackEvent.EVENT_TYPE_CONNECTION_STATE_CHANGED) { in messageFromNative() 916 switch (stackEvent.valueInt) { in messageFromNative() 933 Log.e(TAG, "Cannot process stack event: no state machine: " + stackEvent); in messageFromNative() 936 sm.sendMessage(A2dpStateMachine.STACK_EVENT, stackEvent); in messageFromNative()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/hfp/ |
D | HeadsetService.java | 303 void messageFromNative(HeadsetStackEvent stackEvent) { in messageFromNative() argument 304 Objects.requireNonNull(stackEvent.device, in messageFromNative() 305 "Device should never be null, event: " + stackEvent); in messageFromNative() 307 HeadsetStateMachine stateMachine = mStateMachines.get(stackEvent.device); in messageFromNative() 308 if (stackEvent.type == HeadsetStackEvent.EVENT_TYPE_CONNECTION_STATE_CHANGED) { in messageFromNative() 309 switch (stackEvent.valueInt) { in messageFromNative() 315 .makeStateMachine(stackEvent.device, in messageFromNative() 318 mStateMachines.put(stackEvent.device, stateMachine); in messageFromNative() 326 "State machine not found for stack event: " + stackEvent); in messageFromNative() 328 stateMachine.sendMessage(HeadsetStateMachine.STACK_EVENT, stackEvent); in messageFromNative()
|
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/hearingaid/ |
D | HearingAidServiceTest.java | 1052 HearingAidStackEvent stackEvent = in generateConnectionMessageFromNative() local 1054 stackEvent.device = device; in generateConnectionMessageFromNative() 1055 stackEvent.valueInt1 = newConnectionState; in generateConnectionMessageFromNative() 1056 mService.messageFromNative(stackEvent); in generateConnectionMessageFromNative() 1063 HearingAidStackEvent stackEvent = in generateUnexpectedConnectionMessageFromNative() local 1065 stackEvent.device = device; in generateUnexpectedConnectionMessageFromNative() 1066 stackEvent.valueInt1 = newConnectionState; in generateUnexpectedConnectionMessageFromNative() 1067 mService.messageFromNative(stackEvent); in generateUnexpectedConnectionMessageFromNative()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/hfpclient/ |
D | HeadsetClientService.java | 993 public void messageFromNative(StackEvent stackEvent) { in messageFromNative() argument 994 HeadsetClientStateMachine sm = getStateMachine(stackEvent.device); in messageFromNative() 996 Log.w(TAG, "No SM found for event " + stackEvent); in messageFromNative() 999 sm.sendMessage(StackEvent.STACK_EVENT, stackEvent); in messageFromNative()
|