Searched refs:PbapStateMachine (Results 1 – 5 of 5) sorted by relevance
/packages/apps/Bluetooth/src/com/android/bluetooth/pbap/ |
D | BluetoothPbapService.java | 164 private final HashMap<BluetoothDevice, PbapStateMachine> mPbapStateMachineMap = new HashMap<>(); 216 PbapStateMachine sm = mPbapStateMachineMap.get(device); in parseIntent() 234 sm.sendMessage(PbapStateMachine.AUTHORIZED); in parseIntent() 242 sm.sendMessage(PbapStateMachine.REJECTED); in parseIntent() 249 PbapStateMachine sm = mPbapStateMachineMap.get(device); in parseIntent() 253 Message msg = sm.obtainMessage(PbapStateMachine.AUTH_KEY_INPUT, sessionKey); in parseIntent() 259 PbapStateMachine sm = mPbapStateMachineMap.get(device); in parseIntent() 263 sm.sendMessage(PbapStateMachine.AUTH_CANCELLED); in parseIntent() 299 for (PbapStateMachine stateMachine : mPbapStateMachineMap.values()) { in cleanUpServerSocket() 300 stateMachine.sendMessage(PbapStateMachine.DISCONNECT); in cleanUpServerSocket() [all …]
|
D | PbapStateMachine.java | 66 class PbapStateMachine extends StateMachine { class 102 private PbapStateMachine(@NonNull BluetoothPbapService service, Looper looper, in PbapStateMachine() method in PbapStateMachine 119 static PbapStateMachine make(BluetoothPbapService service, Looper looper, in make() 122 PbapStateMachine stateMachine = in make() 123 new PbapStateMachine(service, looper, device, connSocket, obexConnectionHandler, in make() 230 mService.checkOrGetPhonebookPermission(PbapStateMachine.this); in processMessage() 241 PbapStateMachine.this); in processMessage() 243 PbapStateMachine.this).sendToTarget(); in processMessage() 252 new BluetoothPbapObexServer(mServiceHandler, mService, PbapStateMachine.this); in rejectConnection() 289 PbapStateMachine.this).sendToTarget(); in enter() [all …]
|
D | BluetoothPbapAuthenticator.java | 50 private PbapStateMachine mPbapStateMachine; 52 BluetoothPbapAuthenticator(final PbapStateMachine stateMachine) { in BluetoothPbapAuthenticator() 74 mPbapStateMachine.sendMessage(PbapStateMachine.CREATE_NOTIFICATION); in waitUserConfirmation() 75 mPbapStateMachine.sendMessageDelayed(PbapStateMachine.REMOVE_NOTIFICATION, in waitUserConfirmation()
|
D | BluetoothPbapObexServer.java | 210 private PbapStateMachine mStateMachine; 227 PbapStateMachine stateMachine) { in BluetoothPbapObexServer() 391 mStateMachine.sendMessage(PbapStateMachine.DISCONNECT); in onClose()
|
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/pbap/ |
D | PbapStateMachineTest.java | 56 private PbapStateMachine mPbapStateMachine; 81 mPbapStateMachine = PbapStateMachine.make(mBluetoothPbapService, mHandlerThread.getLooper(), in setUp() 102 IsInstanceOf.instanceOf(PbapStateMachine.WaitingForAuth.class)); in testInitialState() 111 mPbapStateMachine.sendMessage(PbapStateMachine.REJECTED); in testStateTransition_WaitingForAuthToFinished() 115 IsInstanceOf.instanceOf(PbapStateMachine.Finished.class)); in testStateTransition_WaitingForAuthToFinished() 124 mPbapStateMachine.sendMessage(PbapStateMachine.AUTHORIZED); in testStateTransition_WaitingForAuthToConnected() 128 IsInstanceOf.instanceOf(PbapStateMachine.Connected.class)); in testStateTransition_WaitingForAuthToConnected() 137 mPbapStateMachine.sendMessage(PbapStateMachine.AUTHORIZED); in testStateTransition_ConnectedToFinished() 141 IsInstanceOf.instanceOf(PbapStateMachine.Connected.class)); in testStateTransition_ConnectedToFinished() 144 mPbapStateMachine.sendMessage(PbapStateMachine.DISCONNECT); in testStateTransition_ConnectedToFinished() [all …]
|