Home
last modified time | relevance | path

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

123

/packages/apps/Bluetooth/src/com/android/bluetooth/btservice/
DAdapterService.java117 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 …]
DAdapterProperties.java96 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()
DProfileService.java60 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()
DBondStateMachine.java71 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()
DAdapterState.java78 private AdapterService mAdapterService;
89 private AdapterState(AdapterService service) { in AdapterState()
120 public static AdapterState make(AdapterService service) { in make()
DRemoteDevices.java56 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()
DJniCallbacks.java23 private AdapterService mAdapterService;
26 JniCallbacks(AdapterService adapterService, AdapterProperties adapterProperties) { in JniCallbacks()
DBluetoothSocketManagerBinder.java32 private AdapterService mService;
34 BluetoothSocketManagerBinder(AdapterService service) { in BluetoothSocketManagerBinder()
DSilenceDeviceManager.java63 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/
DTestUtils.java30 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/
DRemoteDevicesTest.java45 @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 …]
DAdapterServiceTest.java74 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()
DSilenceDeviceManagerTest.java61 @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()
DProfileServiceTest.java58 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/
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()
267 String deviceName = AdapterService.getAdapterService().getName(); in setAdvertisingData()
273 String deviceName = AdapterService.getAdapterService().getName(); in setScanResponseData()
288 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()
/packages/apps/Bluetooth/src/com/android/bluetooth/sdp/
DSdpManager.java33 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/
DHeadsetObjectsFactory.java23 import com.android.bluetooth.btservice.AdapterService;
74 HeadsetService headsetService, AdapterService adapterService, in makeStateMachine()
/packages/apps/Bluetooth/src/com/android/bluetooth/hid/
DHidHostService.java38 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/
DBluetoothOppServiceTest.java28 import com.android.bluetooth.btservice.AdapterService;
49 @Mock private AdapterService mAdapterService;
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/avrcpcontroller/
DAvrcpControllerServiceTest.java28 import com.android.bluetooth.btservice.AdapterService;
49 @Mock private AdapterService mAdapterService;
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/sap/
DSapServiceTest.java28 import com.android.bluetooth.btservice.AdapterService;
49 @Mock private AdapterService mAdapterService;
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/map/
DBluetoothMapServiceTest.java30 import com.android.bluetooth.btservice.AdapterService;
52 @Mock private AdapterService mAdapterService;
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/pbapclient/
DPbapClientServiceTest.java30 import com.android.bluetooth.btservice.AdapterService;
52 @Mock private AdapterService mAdapterService;
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/hfpclient/
DHeadsetClientServiceTest.java31 import com.android.bluetooth.btservice.AdapterService;
53 @Mock private AdapterService mAdapterService;

123