/packages/apps/Settings/src/com/android/settings/bluetooth/ |
D | BluetoothEnabler.java | 41 private final LocalBluetoothAdapter mLocalAdapter; field in BluetoothEnabler 59 mLocalAdapter = null; in BluetoothEnabler() 62 mLocalAdapter = manager.getBluetoothAdapter(); in BluetoothEnabler() 68 if (mLocalAdapter == null) { in resume() 74 handleStateChanged(mLocalAdapter.getBluetoothState()); in resume() 81 if (mLocalAdapter == null) { in pause() 96 if (mLocalAdapter != null) bluetoothState = mLocalAdapter.getBluetoothState(); in setSwitch() 112 if (mLocalAdapter != null) { in onCheckedChanged() 113 mLocalAdapter.setBluetoothEnabled(isChecked); in onCheckedChanged()
|
D | BluetoothDiscoverableEnabler.java | 62 private final LocalBluetoothAdapter mLocalAdapter; field in BluetoothDiscoverableEnabler 94 mLocalAdapter = adapter; in BluetoothDiscoverableEnabler() 101 if (mLocalAdapter == null) { in resume() 108 handleModeChanged(mLocalAdapter.getScanMode()); in resume() 112 if (mLocalAdapter == null) { in pause() 131 mLocalAdapter.setDiscoverableTimeout(timeout); in setEnabled() 136 mLocalAdapter.setScanMode(BluetoothAdapter.SCAN_MODE_CONNECTABLE_DISCOVERABLE, timeout); in setEnabled() 139 mLocalAdapter.setScanMode(BluetoothAdapter.SCAN_MODE_CONNECTABLE); in setEnabled() 237 handleModeChanged(mLocalAdapter.getScanMode()); in setNumberOfPairedDevices() 259 int mode = mLocalAdapter.getScanMode(); in updateCountdownSummary()
|
D | BluetoothSettings.java | 90 if (mLocalAdapter.isEnabled() && mMyDevicePreference != null) { 91 mMyDevicePreference.setTitle(mLocalAdapter.getName()); 150 if (mLocalAdapter != null) { in onResume() 151 updateContent(mLocalAdapter.getBluetoothState(), mActivityStarted); in onResume() 169 if (mLocalAdapter == null) return; in onCreateOptionsMenu() 170 boolean bluetoothIsEnabled = mLocalAdapter.getBluetoothState() == BluetoothAdapter.STATE_ON; in onCreateOptionsMenu() 171 boolean isDiscovering = mLocalAdapter.isDiscovering(); in onCreateOptionsMenu() 192 if (mLocalAdapter.getBluetoothState() == BluetoothAdapter.STATE_ON) { in onOptionsItemSelected() 219 mLocalAdapter.startScanning(true); in startScanning() 224 mLocalAdapter.stopScanning(); in onDevicePreferenceClick() [all …]
|
D | LocalBluetoothManager.java | 41 private final LocalBluetoothAdapter mLocalAdapter; field in LocalBluetoothManager 75 mLocalAdapter = adapter; in LocalBluetoothManager() 78 mEventManager = new BluetoothEventManager(mLocalAdapter, in LocalBluetoothManager() 81 mLocalAdapter, mCachedDeviceManager, mEventManager); in LocalBluetoothManager() 85 return mLocalAdapter; in getBluetoothAdapter()
|
D | DeviceListPreferenceFragment.java | 53 LocalBluetoothAdapter mLocalAdapter; field in DeviceListPreferenceFragment 82 mLocalAdapter = mLocalManager.getBluetoothAdapter(); in onCreate() 104 updateProgressUi(mLocalAdapter.isDiscovering()); in onResume() 118 mLocalAdapter.stopScanning(); in removeAllDevices() 135 mLocalAdapter.startScanning(true); in onPreferenceTreeClick() 160 if (mLocalAdapter.getBluetoothState() != BluetoothAdapter.STATE_ON) return; in onDeviceAdded()
|
D | BluetoothNameDialogFragment.java | 55 final LocalBluetoothAdapter mLocalAdapter; field in BluetoothNameDialogFragment 84 mLocalAdapter = localManager.getBluetoothAdapter(); in BluetoothNameDialogFragment() 89 String deviceName = mLocalAdapter.getName(); in onCreateDialog() 115 mLocalAdapter.setName(deviceName); in setDeviceName() 177 if (mLocalAdapter != null && mLocalAdapter.isEnabled()) { in updateDeviceName() 180 mDeviceNameView.setText(mLocalAdapter.getName()); in updateDeviceName()
|
D | LocalBluetoothProfileManager.java | 71 private final LocalBluetoothAdapter mLocalAdapter; field in LocalBluetoothProfileManager 93 mLocalAdapter = adapter; in LocalBluetoothProfileManager() 97 mLocalAdapter.setProfileManager(this); in LocalBluetoothProfileManager() 108 mHidProfile = new HidProfile(context, mLocalAdapter); in LocalBluetoothProfileManager() 144 mHeadsetProfile = new HeadsetProfile(mContext, mLocalAdapter, in updateLocalProfiles() 191 ParcelUuid[] uuids = mLocalAdapter.getUuids(); in setBluetoothStateOn() 212 cachedDevice = mDeviceManager.addDevice(mLocalAdapter, in onReceive()
|
D | RequestPermissionHelperActivity.java | 46 private LocalBluetoothAdapter mLocalAdapter; field in RequestPermissionHelperActivity 111 btState = mLocalAdapter.getBluetoothState(); in onClick() 120 || mLocalAdapter.enable()) { in onClick() 161 mLocalAdapter = manager.getBluetoothAdapter(); in parseIntent()
|
D | RequestPermissionActivity.java | 53 private LocalBluetoothAdapter mLocalAdapter; field in RequestPermissionActivity 103 int btState = mLocalAdapter.getState(); in onCreate() 201 if (mLocalAdapter.getBluetoothState() == BluetoothAdapter.STATE_ON) { in onActivityResult() 228 } else if (mLocalAdapter.setScanMode( in proceedAndFinish() 282 mLocalAdapter = manager.getBluetoothAdapter(); in parseIntent()
|
D | HeadsetProfile.java | 41 private final LocalBluetoothAdapter mLocalAdapter; field in HeadsetProfile 73 device = mDeviceManager.addDevice(mLocalAdapter, mProfileManager, firstDevice); in onServiceConnected() 95 mLocalAdapter = adapter; in HeadsetProfile() 98 mLocalAdapter.getProfileProxy(context, new HeadsetServiceListener(), in HeadsetProfile()
|
D | DevicePickerFragment.java | 62 mLocalAdapter.startScanning(true); in onResume() 69 mLocalAdapter.stopScanning(); in onDevicePreferenceClick() 97 mLocalAdapter.startScanning(false); in onBluetoothStateChanged()
|
D | DockService.java | 101 private LocalBluetoothAdapter mLocalAdapter; field in DockService 132 mLocalAdapter = manager.getBluetoothAdapter(); in onCreate() 162 mLocalAdapter = null; in onDestroy() 303 if (mLocalAdapter.disable()) { in msgTypeDisableBluetooth() 401 Set<BluetoothDevice> btDevices = mLocalAdapter.getBondedDevices(); in hasOtherConnectedDevices() 659 mLocalAdapter.enable(); in handleBtStateChange() 700 && mLocalAdapter.disable()) { in handleBluetoothStateOn() 758 || mLocalAdapter == null) { in applyBtSettings() 765 int btState = mLocalAdapter.getBluetoothState(); in applyBtSettings() 771 mLocalAdapter.enable(); in applyBtSettings() [all …]
|
D | BluetoothEventManager.java | 44 private final LocalBluetoothAdapter mLocalAdapter; field in BluetoothEventManager 75 mLocalAdapter = adapter; in BluetoothEventManager() 159 mLocalAdapter.setBluetoothStateInt(state); in onReceive() 197 cachedDevice = mDeviceManager.addDevice(mLocalAdapter, mProfileManager, device); in onReceive() 370 Set<BluetoothDevice> bondedDevices = mLocalAdapter.getBondedDevices(); in readPairedDevices() 379 cachedDevice = mDeviceManager.addDevice(mLocalAdapter, mProfileManager, device); in readPairedDevices()
|
D | CachedBluetoothDevice.java | 46 private final LocalBluetoothAdapter mLocalAdapter; field in CachedBluetoothDevice 148 mLocalAdapter = adapter; in CachedBluetoothDevice() 265 if (mLocalAdapter.isDiscovering()) { in startPairing() 266 mLocalAdapter.cancelDiscovery(); in startPairing() 436 ParcelUuid[] localUuids = mLocalAdapter.getUuids(); in updateProfiles()
|