Home
last modified time | relevance | path

Searched refs:PbapStateMachine (Results 1 – 5 of 5) sorted by relevance

/packages/apps/Bluetooth/src/com/android/bluetooth/pbap/
DBluetoothPbapService.java160 private final HashMap<BluetoothDevice, PbapStateMachine> mPbapStateMachineMap = new HashMap<>();
212 PbapStateMachine sm = mPbapStateMachineMap.get(device); in parseIntent()
230 sm.sendMessage(PbapStateMachine.AUTHORIZED); in parseIntent()
238 sm.sendMessage(PbapStateMachine.REJECTED); in parseIntent()
245 PbapStateMachine sm = mPbapStateMachineMap.get(device); in parseIntent()
249 Message msg = sm.obtainMessage(PbapStateMachine.AUTH_KEY_INPUT, sessionKey); in parseIntent()
255 PbapStateMachine sm = mPbapStateMachineMap.get(device); in parseIntent()
259 sm.sendMessage(PbapStateMachine.AUTH_CANCELLED); in parseIntent()
295 for (PbapStateMachine stateMachine : mPbapStateMachineMap.values()) { in cleanUpServerSocket()
296 stateMachine.sendMessage(PbapStateMachine.DISCONNECT); in cleanUpServerSocket()
[all …]
DPbapStateMachine.java63 class PbapStateMachine extends StateMachine { class
93 private PbapStateMachine(@NonNull BluetoothPbapService service, Looper looper, in PbapStateMachine() method in PbapStateMachine
110 static PbapStateMachine make(BluetoothPbapService service, Looper looper, in make()
113 PbapStateMachine stateMachine = in make()
114 new PbapStateMachine(service, looper, device, connSocket, obexConnectionHandler, in make()
221 mService.checkOrGetPhonebookPermission(PbapStateMachine.this); in processMessage()
232 PbapStateMachine.this); in processMessage()
234 PbapStateMachine.this).sendToTarget(); in processMessage()
243 new BluetoothPbapObexServer(mServiceHandler, mService, PbapStateMachine.this); in rejectConnection()
279 PbapStateMachine.this).sendToTarget(); in enter()
[all …]
DBluetoothPbapAuthenticator.java50 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()
DBluetoothPbapObexServer.java203 private PbapStateMachine mStateMachine;
218 PbapStateMachine stateMachine) { in BluetoothPbapObexServer()
382 mStateMachine.sendMessage(PbapStateMachine.DISCONNECT); in onClose()
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/pbap/
DPbapStateMachineTest.java56 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 …]