Home
last modified time | relevance | path

Searched refs:AdapterService (Results 1 – 25 of 74) sorted by relevance

123

/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/
DTestUtils.java31 import com.android.bluetooth.btservice.AdapterService;
87 public static void setAdapterService(AdapterService adapterService) in setAdapterService()
90 + " AdapterService", AdapterService.getAdapterService()); in setAdapterService()
96 AdapterService.class.getDeclaredMethod("setAdapterService", AdapterService.class); in setAdapterService()
111 public static void clearAdapterService(AdapterService adapterService) in clearAdapterService()
115 AdapterService.getAdapterService()); in clearAdapterService()
118 AdapterService.class.getDeclaredMethod("clearAdapterService", AdapterService.class); in clearAdapterService()
138 AdapterService adapterService = AdapterService.getAdapterService(); in startService()
144 startIntent.putExtra(AdapterService.EXTRA_ACTION, in startService()
145 AdapterService.ACTION_SERVICE_STATE_CHANGED); in startService()
[all …]
/packages/apps/Bluetooth/src/com/android/bluetooth/btservice/
DAdapterService.java145 public class AdapterService extends Service { class
220 private static AdapterService sAdapterService;
222 public static synchronized AdapterService getAdapterService() { in getAdapterService()
226 private static synchronized void setAdapterService(AdapterService instance) { in setAdapterService()
234 private static synchronized void clearAdapterService(AdapterService current) { in clearAdapterService()
1201 private AdapterService mService;
1203 AdapterServiceBinder(AdapterService svc) { in AdapterServiceBinder()
1213 public AdapterService getService() { in getService()
1223 AdapterService service = getService(); in getState()
1233 AdapterService service = getService(); in enable()
[all …]
DProfileService.java62 private AdapterService mAdapterService;
177 String action = intent.getStringExtra(AdapterService.EXTRA_ACTION); in onStartCommand()
178 if (AdapterService.ACTION_SERVICE_STATE_CHANGED.equals(action)) { in onStartCommand()
268 mAdapterService = AdapterService.getAdapterService(); in doStart()
DAdapterState.java86 private AdapterService mAdapterService;
97 private AdapterState(AdapterService service) { in AdapterState()
128 public static AdapterState make(AdapterService service) { in make()
DBluetoothSocketManagerBinder.java32 private AdapterService mService;
34 BluetoothSocketManagerBinder(AdapterService service) { in BluetoothSocketManagerBinder()
DJniCallbacks.java25 private AdapterService mAdapterService;
28 JniCallbacks(AdapterService adapterService, AdapterProperties adapterProperties) { in JniCallbacks()
/packages/apps/Bluetooth/src/com/android/bluetooth/gatt/
DAdvertiseManager.java31 import com.android.bluetooth.btservice.AdapterService;
47 private final AdapterService mAdapterService;
55 AdvertiseManager(GattService service, AdapterService adapterService) { in AdvertiseManager()
197 String deviceName = AdapterService.getAdapterService().getName(); in startAdvertisingSet()
282 String deviceName = AdapterService.getAdapterService().getName(); in setAdvertisingData()
293 String deviceName = AdapterService.getAdapterService().getName(); in setScanResponseData()
323 String deviceName = AdapterService.getAdapterService().getName(); in setPeriodicAdvertisingData()
DPeriodicScanManager.java28 import com.android.bluetooth.btservice.AdapterService;
43 private final AdapterService mAdapterService;
50 PeriodicScanManager(AdapterService adapterService) { in PeriodicScanManager()
DAppScanStats.java28 import com.android.bluetooth.btservice.AdapterService;
106 return AdapterService.getAdapterService().getScanQuotaCount(); in getNumScanDurationsKept()
114 return AdapterService.getAdapterService().getScanQuotaWindowMillis(); in getExcessiveScanningPeriodMillis()
119 return AdapterService.getAdapterService().getScanTimeoutMillis(); in getScanTimeoutMillis()
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/btservice/
DAdapterServiceTest.java83 private AdapterService mAdapterService;
84 private AdapterService.AdapterServiceBinder mServiceBinder;
123 AdapterService adapterService = new AdapterService(); in setupClass()
147 () -> mAdapterService = new AdapterService()); in setUp()
148 mServiceBinder = new AdapterService.AdapterServiceBinder(mAdapterService); in setUp()
508 SystemProperties.get(AdapterService.BLUETOOTH_BTSNOOP_LOG_MODE_PROPERTY, ""); in testSnoopLoggingChange()
509 SystemProperties.set(AdapterService.BLUETOOTH_BTSNOOP_LOG_MODE_PROPERTY, "false"); in testSnoopLoggingChange()
515 SystemProperties.get(AdapterService.BLUETOOTH_BTSNOOP_LOG_MODE_PROPERTY, in testSnoopLoggingChange()
518 SystemProperties.set(AdapterService.BLUETOOTH_BTSNOOP_LOG_MODE_PROPERTY, "true"); in testSnoopLoggingChange()
548 SystemProperties.set(AdapterService.BLUETOOTH_BTSNOOP_LOG_MODE_PROPERTY, snoopSetting); in testSnoopLoggingChange()
DProfileServiceTest.java58 @Mock private AdapterService mMockAdapterService;
71 startIntent.putExtra(AdapterService.EXTRA_ACTION, in setProfileState()
72 AdapterService.ACTION_SERVICE_STATE_CHANGED); in setProfileState()
123 Assert.assertNotNull(AdapterService.getAdapterService()); in setUp()
/packages/apps/Bluetooth/src/com/android/bluetooth/hfp/
DHeadsetObjectsFactory.java23 import com.android.bluetooth.btservice.AdapterService;
74 HeadsetService headsetService, AdapterService adapterService, in makeStateMachine()
/packages/apps/Bluetooth/src/com/android/bluetooth/a2dpsink/
DA2dpSinkService.java30 import com.android.bluetooth.btservice.AdapterService;
51 private AdapterService mAdapterService;
70 mAdapterService = Objects.requireNonNull(AdapterService.getAdapterService(), in start()
72 mDatabaseManager = Objects.requireNonNull(AdapterService.getAdapterService().getDatabase(), in start()
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/opp/
DBluetoothOppServiceTest.java31 import com.android.bluetooth.btservice.AdapterService;
52 @Mock private AdapterService mAdapterService;
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/sap/
DSapServiceTest.java31 import com.android.bluetooth.btservice.AdapterService;
52 @Mock private AdapterService mAdapterService;
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/avrcpcontroller/
DAvrcpControllerServiceTest.java31 import com.android.bluetooth.btservice.AdapterService;
52 @Mock private AdapterService mAdapterService;
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/pbap/
DBluetoothPbapServiceTest.java31 import com.android.bluetooth.btservice.AdapterService;
53 @Mock private AdapterService mAdapterService;
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/map/
DBluetoothMapServiceTest.java31 import com.android.bluetooth.btservice.AdapterService;
53 @Mock private AdapterService mAdapterService;
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/pbapclient/
DPbapClientServiceTest.java31 import com.android.bluetooth.btservice.AdapterService;
53 @Mock private AdapterService mAdapterService;
/packages/apps/Bluetooth/src/com/android/bluetooth/sdp/
DSdpManager.java36 import com.android.bluetooth.btservice.AdapterService;
67 private static AdapterService sAdapterService;
209 private SdpManager(AdapterService adapterService) { in SdpManager()
219 public static SdpManager init(AdapterService adapterService) { in init()
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/pan/
DPanServiceTest.java34 import com.android.bluetooth.btservice.AdapterService;
56 @Mock private AdapterService mAdapterService;
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/gatt/
DGattServiceTest.java14 import com.android.bluetooth.btservice.AdapterService;
38 @Mock private AdapterService mAdapterService;
/packages/apps/Bluetooth/src/com/android/bluetooth/hid/
DHidHostService.java42 import com.android.bluetooth.btservice.AdapterService;
97 mDatabaseManager = Objects.requireNonNull(AdapterService.getAdapterService().getDatabase(), in start()
213 AdapterService adapterService = AdapterService.getAdapterService();
893 AdapterService adapterService = AdapterService.getAdapterService(); in okToConnect()
/packages/apps/Bluetooth/src/com/android/bluetooth/sap/
DSapService.java34 import com.android.bluetooth.btservice.AdapterService;
84 private AdapterService mAdapterService;
625 AdapterService.getAdapterService().getDatabase() in setConnectionPolicy()
649 return AdapterService.getAdapterService().getDatabase() in getConnectionPolicy()
674 mAdapterService = AdapterService.getAdapterService(); in start()
/packages/apps/Bluetooth/src/com/android/bluetooth/mapclient/
DMapClientService.java39 import com.android.bluetooth.btservice.AdapterService;
63 private AdapterService mAdapterService;
302 mAdapterService = AdapterService.getAdapterService(); in start()
303 mDatabaseManager = Objects.requireNonNull(AdapterService.getAdapterService().getDatabase(), in start()

123