Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit c7ed3fe0 authored by Hansong Zhang's avatar Hansong Zhang
Browse files

PBAP: Use PbapStateMachine to handle new connection

Move the connection socket part in PbapService to PbapStateMachine.

PbapService handles the following tasks:
 - implementing service lifecycle methods
 - starting and stoping the server socket
 - managing SDP records and PbapUtils
 - handling broadcast from Bluetooth PBAP permission request
 - handling broadcast from PBAP OBEX challenge request
 - managing wakelock
 - implementing the PbapBinder interface

PbapStateMachine (new) handles the following tasks:
 - sending and getting Bluetooth PBAP permission request to and from
 PbapService
 - sending and getting PBAP OBEX challenge request to and form
 PbapService
 - using PbapObexServer to handle PBAP OBEX requests
 - maintaining the connection status

 The Bluetooth PBAP permission request is handled by Settings; the PBAP
 OBEX challenge request is handled by BluetoothPbapActivity.

Bug: 70939570
Test: carkits with PBAP
Change-Id: I77ebb7f64370326b717db64cb94c8696f74b0c5c
parent 674c8c05
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment