/packages/services/Car/tests/carservice_unit_test/src/com/android/car/ |
D | BluetoothAutoConnectPolicyTest.java | 65 private BluetoothAdapter mBluetoothAdapter; field in BluetoothAutoConnectPolicyTest 85 mBluetoothAdapter = BluetoothAdapter.getDefaultAdapter(); in setUp() 338 BluetoothDevice device1 = mBluetoothAdapter.getRemoteDevice("DE:AD:BE:EF:00:01"); in testAutoConnectOneDevice() 373 BluetoothDevice device1 = mBluetoothAdapter.getRemoteDevice("DE:AD:BE:EF:00:01"); in testAutoConnectMultiDevice() 374 BluetoothDevice device2 = mBluetoothAdapter.getRemoteDevice("DE:AD:BE:EF:00:02"); in testAutoConnectMultiDevice() 375 BluetoothDevice device3 = mBluetoothAdapter.getRemoteDevice("DE:AD:BE:EF:00:03"); in testAutoConnectMultiDevice() 376 BluetoothDevice device4 = mBluetoothAdapter.getRemoteDevice("DE:AD:BE:EF:00:04"); in testAutoConnectMultiDevice() 446 BluetoothDevice device1 = mBluetoothAdapter.getRemoteDevice("DE:AD:BE:EF:00:01"); in testAutoConnectSetPrimaryPriority() 447 BluetoothDevice device2 = mBluetoothAdapter.getRemoteDevice("DE:AD:BE:EF:00:02"); in testAutoConnectSetPrimaryPriority() 448 BluetoothDevice device3 = mBluetoothAdapter.getRemoteDevice("DE:AD:BE:EF:00:03"); in testAutoConnectSetPrimaryPriority() [all …]
|
/packages/services/Car/service/src/com/android/car/ |
D | CarBluetoothUserService.java | 36 private BluetoothAdapter mBluetoothAdapter = null; field in CarBluetoothUserService 47 mBluetoothAdapter = BluetoothAdapter.getDefaultAdapter(); in CarBluetoothUserService() 63 if (mBluetoothAdapter == null) { in setupBluetoothConnectionProxy() 68 mBluetoothAdapter.getProfileProxy(mService.getApplicationContext(), mProfileListener, in setupBluetoothConnectionProxy() 78 if (mBluetoothAdapter == null) { in closeBluetoothConnectionProxy() 86 mBluetoothAdapter.closeProfileProxy(BluetoothProfile.A2DP_SINK, mBluetoothA2dpSink); in closeBluetoothConnectionProxy() 89 mBluetoothAdapter.closeProfileProxy(BluetoothProfile.HEADSET_CLIENT, in closeBluetoothConnectionProxy() 93 mBluetoothAdapter.closeProfileProxy(BluetoothProfile.PBAP_CLIENT, mBluetoothPbapClient); in closeBluetoothConnectionProxy() 96 mBluetoothAdapter.closeProfileProxy(BluetoothProfile.MAP_CLIENT, mBluetoothMapClient); in closeBluetoothConnectionProxy()
|
D | BluetoothDeviceConnectionPolicy.java | 111 private final BluetoothAdapter mBluetoothAdapter; field in BluetoothDeviceConnectionPolicy 196 mBluetoothAdapter = BluetoothAdapter.getDefaultAdapter(); in BluetoothDeviceConnectionPolicy() 197 if (mBluetoothAdapter == null) { in BluetoothDeviceConnectionPolicy() 838 if (mBluetoothAdapter == null) { in initiateConnection() 842 if (mBluetoothAdapter.isEnabled()) { in initiateConnection() 871 if (mBluetoothAdapter == null || !mBluetoothAdapter.isEnabled() in findDeviceToConnect() 1340 if (mBluetoothAdapter != null) { in readAndRebuildDeviceMapFromSettings() 1343 "Number of Bonded devices:" + mBluetoothAdapter.getBondedDevices().size()); in readAndRebuildDeviceMapFromSettings() 1345 if (mBluetoothAdapter.getBondedDevices().isEmpty()) { in readAndRebuildDeviceMapFromSettings() 1484 if (mBluetoothAdapter == null) { in getBondedDeviceWithGivenName() [all …]
|
/packages/apps/Car/Dialer/src/com/android/car/dialer/ |
D | UiBluetoothMonitor.java | 39 private final BluetoothAdapter mBluetoothAdapter; field in UiBluetoothMonitor 44 mBluetoothAdapter = BluetoothAdapter.getDefaultAdapter(); in UiBluetoothMonitor() 53 return mBluetoothAdapter != null && mBluetoothAdapter.isEnabled(); in isBluetoothEnabled() 57 if (mBluetoothAdapter == null) { in isHfpConnected() 60 return mBluetoothAdapter.getProfileConnectionState(BluetoothProfile.HEADSET_CLIENT) in isHfpConnected() 64 return mBluetoothAdapter != null && mBluetoothAdapter.getBondedDevices().size() > 0; in isBluetoothPaired()
|
/packages/apps/Settings/src/com/android/settings/network/ |
D | TetherPreferenceController.java | 61 private final BluetoothAdapter mBluetoothAdapter; field in TetherPreferenceController 85 mBluetoothAdapter = BluetoothAdapter.getDefaultAdapter(); in TetherPreferenceController() 94 mBluetoothAdapter = BluetoothAdapter.getDefaultAdapter(); in TetherPreferenceController() 134 if (mBluetoothAdapter != null) { in onCreate() 135 mBluetoothAdapter.getProfileProxy(mContext, mBtProfileServiceListener, in onCreate() 167 if (profile != null && mBluetoothAdapter != null) { in onDestroy() 168 mBluetoothAdapter.closeProfileProxy(BluetoothProfile.PAN, profile); in onDestroy() 214 && mBluetoothAdapter != null in updateSummary() 215 && mBluetoothAdapter.getState() == BluetoothAdapter.STATE_ON) { in updateSummary()
|
/packages/apps/Settings/src/com/android/settings/bluetooth/ |
D | BluetoothSummaryUpdater.java | 43 private final LocalBluetoothAdapter mBluetoothAdapter; field in BluetoothSummaryUpdater 49 mBluetoothAdapter = mBluetoothManager != null in BluetoothSummaryUpdater() 81 if (mBluetoothAdapter == null) { in register() 94 if (mBluetoothAdapter == null || !mBluetoothAdapter.isEnabled()) { in getSummary() 97 switch (mBluetoothAdapter.getConnectionState()) { in getSummary() 113 final Set<BluetoothDevice> devices = mBluetoothAdapter.getBondedDevices(); in getConnectedDeviceSummary()
|
/packages/apps/Car/Settings/src/com/android/car/settings/home/ |
D | BluetoothLineItem.java | 34 private BluetoothAdapter mBluetoothAdapter; field in BluetoothLineItem 40 mBluetoothAdapter = in BluetoothLineItem() 48 mBluetoothAdapter.enable(); in onToggleClicked() 50 mBluetoothAdapter.disable(); in onToggleClicked() 76 return mBluetoothAdapter.isEnabled(); in isChecked() 81 return getIconRes(mBluetoothAdapter.isEnabled()); in getIcon()
|
/packages/apps/Test/connectivity/PMC/src/com/android/pmc/ |
D | GattClientListener.java | 57 private BluetoothAdapter mBluetoothAdapter; field in GattClientListener 78 mBluetoothAdapter = BluetoothAdapter.getDefaultAdapter(); in GattClientListener() 80 if (mBluetoothAdapter == null) { in GattClientListener() 84 if (!mBluetoothAdapter.isEnabled()) { in GattClientListener() 86 mBluetoothAdapter.enable(); in GattClientListener() 87 if (!mBluetoothAdapter.isEnabled()) { in GattClientListener() 94 mMyBleScanner = new MyBleScanner(mBluetoothAdapter); in GattClientListener() 160 if (mDevice == null) mDevice = mBluetoothAdapter.getRemoteDevice(mMacAddress); in onReceive()
|
D | A2dpReceiver.java | 56 private final BluetoothAdapter mBluetoothAdapter; field in A2dpReceiver 109 mBluetoothAdapter = BluetoothAdapter.getDefaultAdapter(); in A2dpReceiver() 110 if (mBluetoothAdapter == null) { in A2dpReceiver() 114 if (!mBluetoothAdapter.isEnabled()) { in A2dpReceiver() 116 mBluetoothAdapter.enable(); in A2dpReceiver() 117 if (!mBluetoothAdapter.isEnabled()) { in A2dpReceiver() 125 if (mBluetoothAdapter != null) { in A2dpReceiver() 126 mBluetoothAdapter.getProfileProxy(mContext, in A2dpReceiver() 147 Set<BluetoothDevice> bondedDevices = mBluetoothAdapter.getBondedDevices(); in initialize()
|
/packages/apps/Nfc/src/com/android/nfc/handover/ |
D | HandoverDataParser.java | 86 private final BluetoothAdapter mBluetoothAdapter; field in HandoverDataParser 116 mBluetoothAdapter = BluetoothAdapter.getDefaultAdapter(); in HandoverDataParser() 147 mLocalBluetoothAddress = mBluetoothAdapter.getAddress(); in createBluetoothOobDataRecord() 158 return (mBluetoothAdapter != null); in isHandoverSupported() 162 if (mBluetoothAdapter == null) { in createHandoverRequestMessage() 221 if (mBluetoothAdapter == null) return null; in getIncomingHandoverData() 266 boolean bluetoothActivating = !mBluetoothAdapter.isEnabled(); in tryBluetoothHandoverRequest() 372 result.device = mBluetoothAdapter.getRemoteDevice(address); in parseNokia() 395 result.device = mBluetoothAdapter.getRemoteDevice(address); in parseBtOob() 476 result.device = mBluetoothAdapter.getRemoteDevice(address); in parseBleOob()
|
D | PeripheralHandoverService.java | 64 BluetoothAdapter mBluetoothAdapter; field in PeripheralHandoverService 93 mBluetoothAdapter = BluetoothAdapter.getDefaultAdapter(); in PeripheralHandoverService() 174 if (mBluetoothAdapter.isEnabled()) { in doPeripheralHandover() 239 if (!mBluetoothAdapter.isEnabled()) { in enableBluetooth() 241 return mBluetoothAdapter.enableNoAutoConnect(); in enableBluetooth() 250 mBluetoothAdapter.disable(); in disableBluetoothIfNeeded()
|
D | BluetoothPeripheralHandover.java | 94 final BluetoothAdapter mBluetoothAdapter; field in BluetoothPeripheralHandover 130 mBluetoothAdapter = BluetoothAdapter.getDefaultAdapter(); in BluetoothPeripheralHandover() 159 if (mState != STATE_INIT || mBluetoothAdapter == null in start() 321 if (!mBluetoothAdapter.getProfileProxy(mContext, this, BluetoothProfile.INPUT_DEVICE)) in getProfileProxys() 324 if(!mBluetoothAdapter.getProfileProxy(mContext, this, BluetoothProfile.HEADSET)) in getProfileProxys() 327 if(!mBluetoothAdapter.getProfileProxy(mContext, this, BluetoothProfile.A2DP)) in getProfileProxys() 511 mBluetoothAdapter.closeProfileProxy(BluetoothProfile.A2DP, mA2dp); in complete() 514 mBluetoothAdapter.closeProfileProxy(BluetoothProfile.HEADSET, mHeadset); in complete() 518 mBluetoothAdapter.closeProfileProxy(BluetoothProfile.INPUT_DEVICE, mInput); in complete()
|
/packages/apps/Nfc/src/com/android/nfc/beam/ |
D | BeamReceiveService.java | 35 private final BluetoothAdapter mBluetoothAdapter; field in BeamReceiveService 51 mBluetoothAdapter = BluetoothAdapter.getDefaultAdapter(); in BeamReceiveService() 107 if (!mBluetoothAdapter.isEnabled()) { in prepareToReceive() 108 if (!mBluetoothAdapter.enableNoAutoConnect()) { in prepareToReceive() 151 mBluetoothAdapter.disable(); in onTransferComplete()
|
D | BeamSendService.java | 47 private final BluetoothAdapter mBluetoothAdapter; field in BeamSendService 59 mBluetoothAdapter = BluetoothAdapter.getDefaultAdapter(); in BeamSendService() 113 if (mBluetoothAdapter.isEnabled()) { in doTransfer() 117 if (!mBluetoothAdapter.enableNoAutoConnect()) { in doTransfer() 183 mBluetoothAdapter.disable(); in onTransferComplete()
|
/packages/services/Telecomm/src/com/android/server/telecom/ |
D | BluetoothAdapterProxy.java | 27 private BluetoothAdapter mBluetoothAdapter; field in BluetoothAdapterProxy 30 mBluetoothAdapter = BluetoothAdapter.getDefaultAdapter(); in BluetoothAdapterProxy() 35 if (mBluetoothAdapter == null) { in getProfileProxy() 38 return mBluetoothAdapter.getProfileProxy(context, listener, profile); in getProfileProxy()
|
D | BluetoothManager.java | 121 private final BluetoothAdapterProxy mBluetoothAdapter; field in BluetoothManager 153 mBluetoothAdapter = bluetoothAdapterProxy; in BluetoothManager() 156 if (mBluetoothAdapter != null) { in BluetoothManager() 157 mBluetoothAdapter.getProfileProxy(context, mBluetoothProfileServiceListener, in BluetoothManager() 361 if (mBluetoothAdapter != null) { in dump()
|
D | BluetoothPhoneServiceImpl.java | 436 private BluetoothAdapterProxy mBluetoothAdapter; field in BluetoothPhoneServiceImpl 466 mBluetoothAdapter = bluetoothAdapter; in BluetoothPhoneServiceImpl() 467 if (mBluetoothAdapter == null) { in BluetoothPhoneServiceImpl() 471 mBluetoothAdapter.getProfileProxy(context, mProfileListener, BluetoothProfile.HEADSET); in BluetoothPhoneServiceImpl()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/bluetooth/ |
D | BluetoothEnablerTest.java | 75 private LocalBluetoothAdapter mBluetoothAdapter; field in BluetoothEnablerTest 87 when(mBluetoothManager.getBluetoothAdapter()).thenReturn(mBluetoothAdapter); in setUp() 182 when(mBluetoothAdapter.getBluetoothState()).thenReturn(BluetoothAdapter.STATE_OFF); in startWithBluetoothOff_switchIsOff() 190 when(mBluetoothAdapter.getBluetoothState()).thenReturn(BluetoothAdapter.STATE_ON); in startWithBluetoothOn_switchIsOn() 203 when(mBluetoothAdapter.getBluetoothState()).thenReturn(BluetoothAdapter.STATE_ON); in bluetoothTurnsOff_switchTurnsOff() 229 when(mBluetoothAdapter.getBluetoothState()).thenReturn(BluetoothAdapter.STATE_OFF); in bluetoothTurnsOn_switchTurnsOn()
|
D | BluetoothDetailsControllerTestBase.java | 45 protected BluetoothAdapter mBluetoothAdapter; field in BluetoothDetailsControllerTestBase 71 mBluetoothAdapter = mBluetoothManager.getAdapter(); in setUp() 145 mDevice = mBluetoothAdapter.getRemoteDevice(config.getAddress()); in setupDevice()
|
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/bluetooth/ |
D | MapMceTestFragment.java | 50 BluetoothAdapter mBluetoothAdapter; field in MapMceTestFragment 128 mMapProfile.disconnect(mBluetoothAdapter.getRemoteDevice((device))); in disconnectDevice() 135 mBluetoothAdapter = BluetoothAdapter.getDefaultAdapter(); in onResume() 136 mBluetoothAdapter.getProfileProxy(getContext(), new MapServiceListener(), in onResume() 157 remoteDevice = mBluetoothAdapter.getRemoteDevice( in getMessages() 175 remoteDevice = mBluetoothAdapter.getRemoteDevice( in sendMessage()
|
D | BluetoothHeadsetFragment.java | 50 BluetoothAdapter mBluetoothAdapter; field in BluetoothHeadsetFragment 126 mBluetoothAdapter.enableNoAutoConnect(); in onCreateView() 243 mBluetoothAdapter = BluetoothAdapter.getDefaultAdapter(); in onResume() 244 mBluetoothAdapter.getProfileProxy( in onResume()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/network/ |
D | TetherPreferenceControllerTest.java | 63 private BluetoothAdapter mBluetoothAdapter; field in TetherPreferenceControllerTest 75 ReflectionHelpers.setField(mController, "mBluetoothAdapter", mBluetoothAdapter); in setUp() 83 verify(mBluetoothAdapter).getProfileProxy(mContext, mController.mBtProfileServiceListener, in lifeCycle_onCreate_shouldInitBluetoothPan() 96 verify(mBluetoothAdapter).closeProfileProxy(BluetoothProfile.PAN, pan); in goThroughLifecycle_shouldDestoryBluetoothProfile()
|