Searched refs:PbapStateMachine (Results 1 – 8 of 8) sorted by relevance
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/pbap/ |
D | BluetoothPbapServiceTest.java | 117 PbapStateMachine sm = mock(PbapStateMachine.class); in disconnect() 122 verify(sm).sendMessage(PbapStateMachine.DISCONNECT); in disconnect() 127 PbapStateMachine sm = mock(PbapStateMachine.class); in getConnectedDevices() 152 PbapStateMachine sm = mock(PbapStateMachine.class); in getDevicesMatchingConnectionStates() 163 PbapStateMachine sm = mock(PbapStateMachine.class); in onAcceptFailed() 182 PbapStateMachine sm = mock(PbapStateMachine.class); in broadcastReceiver_onReceive_withActionConnectionAccessReply() 187 verify(sm).sendMessage(PbapStateMachine.AUTHORIZED); in broadcastReceiver_onReceive_withActionConnectionAccessReply() 196 PbapStateMachine sm = mock(PbapStateMachine.class); in broadcastReceiver_onReceive_withActionAuthResponse() 204 assertThat(msg.what).isEqualTo(PbapStateMachine.AUTH_KEY_INPUT); in broadcastReceiver_onReceive_withActionAuthResponse() 213 PbapStateMachine sm = mock(PbapStateMachine.class); in broadcastReceiver_onReceive_withActionAuthCancelled() [all …]
|
D | PbapStateMachineTest.java | 55 private PbapStateMachine mPbapStateMachine; 81 PbapStateMachine.make( in setUp() 106 IsInstanceOf.instanceOf(PbapStateMachine.WaitingForAuth.class)); in testInitialState() 113 mPbapStateMachine.sendMessage(PbapStateMachine.REJECTED); in testStateTransition_WaitingForAuthToFinished() 118 IsInstanceOf.instanceOf(PbapStateMachine.Finished.class)); in testStateTransition_WaitingForAuthToFinished() 125 mPbapStateMachine.sendMessage(PbapStateMachine.AUTHORIZED); in testStateTransition_WaitingForAuthToConnected() 130 IsInstanceOf.instanceOf(PbapStateMachine.Connected.class)); in testStateTransition_WaitingForAuthToConnected() 137 mPbapStateMachine.sendMessage(PbapStateMachine.AUTHORIZED); in testStateTransition_ConnectedToFinished() 142 IsInstanceOf.instanceOf(PbapStateMachine.Connected.class)); in testStateTransition_ConnectedToFinished() 145 mPbapStateMachine.sendMessage(PbapStateMachine.DISCONNECT); in testStateTransition_ConnectedToFinished() [all …]
|
D | BluetoothPbapAuthenticatorTest.java | 45 @Mock PbapStateMachine mMockPbapStateMachine; 99 .sendMessage(PbapStateMachine.CREATE_NOTIFICATION); in testOnAuthenticationChallenge() 108 verify(mMockPbapStateMachine).sendMessage(PbapStateMachine.CREATE_NOTIFICATION); in testOnAuthenticationChallenge() 111 PbapStateMachine.REMOVE_NOTIFICATION, in testOnAuthenticationChallenge() 126 .sendMessage(PbapStateMachine.CREATE_NOTIFICATION); in testOnAuthenticationChallenge_returnsNullWhenSessionKeyIsEmpty()
|
D | BluetoothPbapObexServerTest.java | 90 @Mock PbapStateMachine mMockStateMachine; 252 verify(mMockStateMachine).sendMessage(PbapStateMachine.DISCONNECT); in testOnClose()
|
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/pbap/ |
D | BluetoothPbapService.java | 153 final HashMap<BluetoothDevice, PbapStateMachine> mPbapStateMachineMap = new HashMap<>(); 225 PbapStateMachine sm = mPbapStateMachineMap.get(device); in parseIntent() 249 sm.sendMessage(PbapStateMachine.AUTHORIZED); in parseIntent() 255 sm.sendMessage(PbapStateMachine.REJECTED); in parseIntent() 262 PbapStateMachine sm = mPbapStateMachineMap.get(device); in parseIntent() 266 Message msg = sm.obtainMessage(PbapStateMachine.AUTH_KEY_INPUT, sessionKey); in parseIntent() 272 PbapStateMachine sm = mPbapStateMachineMap.get(device); in parseIntent() 276 sm.sendMessage(PbapStateMachine.AUTH_CANCELLED); in parseIntent() 355 for (PbapStateMachine stateMachine : mPbapStateMachineMap.values()) { in cleanUpServerSocket() 356 stateMachine.sendMessage(PbapStateMachine.DISCONNECT); in cleanUpServerSocket() [all …]
|
D | PbapStateMachine.java | 62 public class PbapStateMachine extends StateMachine { class 92 private PbapStateMachine( in PbapStateMachine() method in PbapStateMachine 117 static PbapStateMachine make( in make() 124 PbapStateMachine stateMachine = in make() 125 new PbapStateMachine( in make() 247 mService.checkOrGetPhonebookPermission(PbapStateMachine.this); in processMessage() 258 BluetoothPbapService.USER_TIMEOUT, PbapStateMachine.this); in processMessage() 260 .obtainMessage(BluetoothPbapService.USER_TIMEOUT, PbapStateMachine.this) in processMessage() 270 new BluetoothPbapObexServer(mServiceHandler, mService, PbapStateMachine.this); in rejectConnection() 321 BluetoothPbapService.MSG_STATE_MACHINE_DONE, PbapStateMachine.this) in enter() [all …]
|
D | BluetoothPbapAuthenticator.java | 39 @VisibleForTesting PbapStateMachine mPbapStateMachine; 41 BluetoothPbapAuthenticator(final PbapStateMachine stateMachine) { in BluetoothPbapAuthenticator() 63 mPbapStateMachine.sendMessage(PbapStateMachine.CREATE_NOTIFICATION); in waitUserConfirmation() 65 PbapStateMachine.REMOVE_NOTIFICATION, in waitUserConfirmation()
|
D | BluetoothPbapObexServer.java | 214 private PbapStateMachine mStateMachine; 240 Handler callback, Context context, PbapStateMachine stateMachine) { in BluetoothPbapObexServer() 428 mStateMachine.sendMessage(PbapStateMachine.DISCONNECT); in onClose()
|