/packages/apps/Bluetooth/src/com/android/bluetooth/btservice/ |
D | AdapterService.java | 117 public class AdapterService extends Service { class 173 private static AdapterService sAdapterService; 175 public static synchronized AdapterService getAdapterService() { in getAdapterService() 180 private static synchronized void setAdapterService(AdapterService instance) { in setAdapterService() 188 private static synchronized void clearAdapterService(AdapterService current) { in clearAdapterService() 1063 private AdapterService mService; 1065 AdapterServiceBinder(AdapterService svc) { in AdapterServiceBinder() 1073 public AdapterService getService() { in getService() 1083 AdapterService service = getService(); in getState() 1095 AdapterService service = getService(); in enable() [all …]
|
D | AdapterProperties.java | 96 private AdapterService mService; 182 AdapterProperties(AdapterService service) { in AdapterProperties() 625 mService.sendBroadcastAsUser(intent, UserHandle.ALL, AdapterService.BLUETOOTH_PERM); in sendConnectionStateChange() 787 AdapterService.BLUETOOTH_PERM); in adapterPropertyChangedCallback() 798 AdapterService.BLUETOOTH_PERM); in adapterPropertyChangedCallback() 814 mScanMode = AdapterService.convertScanModeFromHal(mode); in adapterPropertyChangedCallback() 818 mService.sendBroadcast(intent, AdapterService.BLUETOOTH_PERM); in adapterPropertyChangedCallback() 929 mService.sendBroadcast(intent, AdapterService.BLUETOOTH_PERM); in discoveryStateChangeCallback() 934 mService.sendBroadcast(intent, AdapterService.BLUETOOTH_PERM); in discoveryStateChangeCallback()
|
D | ProfileService.java | 60 private AdapterService mAdapterService; 145 String action = intent.getStringExtra(AdapterService.EXTRA_ACTION); in onStartCommand() 146 if (AdapterService.ACTION_SERVICE_STATE_CHANGED.equals(action)) { in onStartCommand() 226 mAdapterService = AdapterService.getAdapterService(); in doStart()
|
D | BondStateMachine.java | 71 private AdapterService mAdapterService; 83 private BondStateMachine(AdapterService service, AdapterProperties prop, in BondStateMachine() 95 public static BondStateMachine make(AdapterService service, AdapterProperties prop, in make() 356 mAdapterService.sendOrderedBroadcast(intent, AdapterService.BLUETOOTH_ADMIN_PERM); in sendDisplayPinIntent() 420 mAdapterService.sendBroadcastAsUser(intent, UserHandle.ALL, AdapterService.BLUETOOTH_PERM); in sendIntent()
|
D | AdapterState.java | 78 private AdapterService mAdapterService; 89 private AdapterState(AdapterService service) { in AdapterState() 120 public static AdapterState make(AdapterService service) { in make()
|
D | RemoteDevices.java | 56 private static AdapterService sAdapterService; 112 RemoteDevices(AdapterService service, Looper looper) { in RemoteDevices() 307 sAdapterService.sendBroadcast(intent, AdapterService.BLUETOOTH_PERM); in setAlias() 385 sAdapterService.sendBroadcast(intent, AdapterService.BLUETOOTH_ADMIN_PERM); in sendUuidIntent() 470 sAdapterService.sendBroadcast(intent, AdapterService.BLUETOOTH_PERM); in sendBatteryLevelChangedBroadcast() 603 AdapterService.BLUETOOTH_PERM, pkg.getPermission() in deviceFoundCallback()
|
D | JniCallbacks.java | 23 private AdapterService mAdapterService; 26 JniCallbacks(AdapterService adapterService, AdapterProperties adapterProperties) { in JniCallbacks()
|
D | BluetoothSocketManagerBinder.java | 32 private AdapterService mService; 34 BluetoothSocketManagerBinder(AdapterService service) { in BluetoothSocketManagerBinder()
|
D | SilenceDeviceManager.java | 63 private final AdapterService mAdapterService; 209 SilenceDeviceManager(AdapterService service, ServiceFactory factory, Looper looper) { in SilenceDeviceManager() 281 mAdapterService.sendBroadcastAsUser(intent, UserHandle.ALL, AdapterService.BLUETOOTH_PERM); in broadcastSilenceStateChange()
|
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/ |
D | TestUtils.java | 30 import com.android.bluetooth.btservice.AdapterService; 86 public static void setAdapterService(AdapterService adapterService) in setAdapterService() 89 + " AdapterService", AdapterService.getAdapterService()); in setAdapterService() 95 AdapterService.class.getDeclaredMethod("setAdapterService", AdapterService.class); in setAdapterService() 110 public static void clearAdapterService(AdapterService adapterService) in clearAdapterService() 114 AdapterService.getAdapterService()); in clearAdapterService() 117 AdapterService.class.getDeclaredMethod("clearAdapterService", AdapterService.class); in clearAdapterService() 137 AdapterService adapterService = AdapterService.getAdapterService(); in startService() 143 startIntent.putExtra(AdapterService.EXTRA_ACTION, in startService() 144 AdapterService.ACTION_SERVICE_STATE_CHANGED); in startService() [all …]
|
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/btservice/ |
D | RemoteDevicesTest.java | 45 @Mock private AdapterService mAdapterService; 88 Assert.assertEquals(AdapterService.BLUETOOTH_PERM, mStringArgument.getValue()); in testUpdateBatteryLevel_normalSequence() 104 Assert.assertEquals(AdapterService.BLUETOOTH_PERM, mStringArgument.getValue()); in testUpdateBatteryLevel_normalSequence() 171 Assert.assertEquals(AdapterService.BLUETOOTH_PERM, mStringArgument.getValue()); in testResetBatteryLevel_testResetAfterUpdate() 186 Assert.assertEquals(AdapterService.BLUETOOTH_PERM, mStringArgument.getValue()); in testResetBatteryLevel_testResetAfterUpdate() 201 Assert.assertEquals(AdapterService.BLUETOOTH_PERM, mStringArgument.getValue()); in testResetBatteryLevel_testResetAfterUpdate() 217 Assert.assertEquals(AdapterService.BLUETOOTH_PERM, mStringArgument.getValue()); in testResetBatteryLevelOnHeadsetStateChange() 234 Assert.assertEquals(AdapterService.BLUETOOTH_PERM, mStringArgument.getValue()); in testResetBatteryLevelOnHeadsetStateChange() 245 Assert.assertEquals(AdapterService.BLUETOOTH_PERM, mStringArgument.getValue()); in testResetBatteryLevelOnHeadsetStateChange() 261 Assert.assertEquals(AdapterService.BLUETOOTH_PERM, mStringArgument.getValue()); in testResetBatteryLevel_testAclStateChangeCallback() [all …]
|
D | AdapterServiceTest.java | 74 private AdapterService mAdapterService; 75 private AdapterService.AdapterServiceBinder mServiceBinder; 108 AdapterService adapterService = new AdapterService(); in setupClass() 126 () -> mAdapterService = new AdapterService()); in setUp() 127 mServiceBinder = new AdapterService.AdapterServiceBinder(mAdapterService); in setUp() 469 SystemProperties.get(AdapterService.BLUETOOTH_BTSNOOP_LOG_MODE_PROPERTY, ""); in testSnoopLoggingChange() 470 SystemProperties.set(AdapterService.BLUETOOTH_BTSNOOP_LOG_MODE_PROPERTY, "false"); in testSnoopLoggingChange() 476 SystemProperties.get(AdapterService.BLUETOOTH_BTSNOOP_LOG_MODE_PROPERTY, in testSnoopLoggingChange() 479 SystemProperties.set(AdapterService.BLUETOOTH_BTSNOOP_LOG_MODE_PROPERTY, "true"); in testSnoopLoggingChange() 509 SystemProperties.set(AdapterService.BLUETOOTH_BTSNOOP_LOG_MODE_PROPERTY, snoopSetting); in testSnoopLoggingChange()
|
D | SilenceDeviceManagerTest.java | 61 @Mock private AdapterService mAdapterService; 121 eq(AdapterService.BLUETOOTH_PERM)); in testSetGetDeviceSilenceConnectedCase() 133 eq(AdapterService.BLUETOOTH_PERM)); in testSetGetDeviceSilenceConnectedCase() 147 eq(AdapterService.BLUETOOTH_PERM)); in testSetGetDeviceSilenceConnectedCase() 161 eq(AdapterService.BLUETOOTH_PERM)); in testSetGetDeviceSilenceDisconnectedCase()
|
D | ProfileServiceTest.java | 58 startIntent.putExtra(AdapterService.EXTRA_ACTION, in setProfileState() 59 AdapterService.ACTION_SERVICE_STATE_CHANGED); in setProfileState() 84 private @Mock AdapterService mMockAdapterService; 107 Assert.assertNotNull(AdapterService.getAdapterService()); in setUp()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/gatt/ |
D | AdvertiseManager.java | 31 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() 267 String deviceName = AdapterService.getAdapterService().getName(); in setAdvertisingData() 273 String deviceName = AdapterService.getAdapterService().getName(); in setScanResponseData() 288 String deviceName = AdapterService.getAdapterService().getName(); in setPeriodicAdvertisingData()
|
D | PeriodicScanManager.java | 28 import com.android.bluetooth.btservice.AdapterService; 43 private final AdapterService mAdapterService; 50 PeriodicScanManager(AdapterService adapterService) { in PeriodicScanManager()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/sdp/ |
D | SdpManager.java | 33 import com.android.bluetooth.btservice.AdapterService; 64 private static AdapterService sAdapterService; 206 private SdpManager(AdapterService adapterService) { in SdpManager() 216 public static SdpManager init(AdapterService adapterService) { in init() 458 sAdapterService.sendBroadcast(intent, AdapterService.BLUETOOTH_ADMIN_PERM); in sendSdpIntent()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/hfp/ |
D | HeadsetObjectsFactory.java | 23 import com.android.bluetooth.btservice.AdapterService; 74 HeadsetService headsetService, AdapterService adapterService, in makeStateMachine()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/hid/ |
D | HidHostService.java | 38 import com.android.bluetooth.btservice.AdapterService; 94 mDatabaseManager = Objects.requireNonNull(AdapterService.getAdapterService().getDatabase(), in start() 204 AdapterService adapterService = AdapterService.getAdapterService(); 878 AdapterService adapterService = AdapterService.getAdapterService(); in okToConnect()
|
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/opp/ |
D | BluetoothOppServiceTest.java | 28 import com.android.bluetooth.btservice.AdapterService; 49 @Mock private AdapterService mAdapterService;
|
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/avrcpcontroller/ |
D | AvrcpControllerServiceTest.java | 28 import com.android.bluetooth.btservice.AdapterService; 49 @Mock private AdapterService mAdapterService;
|
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/sap/ |
D | SapServiceTest.java | 28 import com.android.bluetooth.btservice.AdapterService; 49 @Mock private AdapterService mAdapterService;
|
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/map/ |
D | BluetoothMapServiceTest.java | 30 import com.android.bluetooth.btservice.AdapterService; 52 @Mock private AdapterService mAdapterService;
|
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/pbapclient/ |
D | PbapClientServiceTest.java | 30 import com.android.bluetooth.btservice.AdapterService; 52 @Mock private AdapterService mAdapterService;
|
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/hfpclient/ |
D | HeadsetClientServiceTest.java | 31 import com.android.bluetooth.btservice.AdapterService; 53 @Mock private AdapterService mAdapterService;
|