Home
last modified time | relevance | path

Searched refs:mLocalAdapter (Results 1 – 9 of 9) sorted by relevance

/packages/apps/Settings/src/com/android/settings/bluetooth/
DBluetoothEnabler.java50 private final LocalBluetoothAdapter mLocalAdapter; field in BluetoothEnabler
88 mLocalAdapter = null; in BluetoothEnabler()
91 mLocalAdapter = manager.getBluetoothAdapter(); in BluetoothEnabler()
105 if (mLocalAdapter == null) { in resume()
115 handleStateChanged(mLocalAdapter.getBluetoothState()); in resume()
123 if (mLocalAdapter == null) { in pause()
192 if (mLocalAdapter != null) { in onSwitchChanged()
193 boolean status = mLocalAdapter.setBluetoothEnabled(isChecked); in onSwitchChanged()
DBluetoothDiscoverableEnabler.java66 private final LocalBluetoothAdapter mLocalAdapter; field in BluetoothDiscoverableEnabler
97 mLocalAdapter = adapter; in BluetoothDiscoverableEnabler()
104 if (mLocalAdapter == null) { in resume()
115 handleModeChanged(mLocalAdapter.getScanMode()); in resume()
119 if (mLocalAdapter == null) { in pause()
141 mLocalAdapter.setScanMode(BluetoothAdapter.SCAN_MODE_CONNECTABLE_DISCOVERABLE, timeout); in setEnabled()
153 mLocalAdapter.setScanMode(BluetoothAdapter.SCAN_MODE_CONNECTABLE); in setEnabled()
252 handleModeChanged(mLocalAdapter.getScanMode()); in setNumberOfPairedDevices()
275 int mode = mLocalAdapter.getScanMode(); in updateCountdownSummary()
DBluetoothSettings.java119 if (mLocalAdapter.isEnabled() && mMyDevicePreference != null) {
125 bidiFormatter.unicodeWrap(mLocalAdapter.getName())));
203 if (mLocalAdapter != null) { in onResume()
204 updateContent(mLocalAdapter.getBluetoothState()); in onResume()
216 mLocalAdapter.setScanMode(BluetoothAdapter.SCAN_MODE_CONNECTABLE); in onPause()
227 if (mLocalAdapter == null) return; in onCreateOptionsMenu()
231 boolean bluetoothIsEnabled = mLocalAdapter.getBluetoothState() == BluetoothAdapter.STATE_ON; in onCreateOptionsMenu()
232 boolean isDiscovering = mLocalAdapter.isDiscovering(); in onCreateOptionsMenu()
250 if (mLocalAdapter.getBluetoothState() == BluetoothAdapter.STATE_ON) { in onOptionsItemSelected()
289 mLocalAdapter.startScanning(true); in startScanning()
[all …]
DBluetoothNameDialogFragment.java58 final LocalBluetoothAdapter mLocalAdapter; field in BluetoothNameDialogFragment
87 mLocalAdapter = localManager.getBluetoothAdapter(); in BluetoothNameDialogFragment()
92 String deviceName = mLocalAdapter.getName(); in onCreateDialog()
117 mLocalAdapter.setName(deviceName); in setDeviceName()
179 if (mLocalAdapter != null && mLocalAdapter.isEnabled()) { in updateDeviceName()
182 mDeviceNameView.setText(mLocalAdapter.getName()); in updateDeviceName()
DDeviceListPreferenceFragment.java56 LocalBluetoothAdapter mLocalAdapter; field in DeviceListPreferenceFragment
86 mLocalAdapter = mLocalManager.getBluetoothAdapter(); in onCreate()
108 updateProgressUi(mLocalAdapter.isDiscovering()); in onResume()
124 mLocalAdapter.stopScanning(); in removeAllDevices()
140 mLocalAdapter.startScanning(true); in onPreferenceTreeClick()
165 if (mLocalAdapter.getBluetoothState() != BluetoothAdapter.STATE_ON) return; in onDeviceAdded()
DRequestPermissionActivity.java56 private LocalBluetoothAdapter mLocalAdapter; field in RequestPermissionActivity
106 int btState = mLocalAdapter.getState(); in onCreate()
202 if (mLocalAdapter.getBluetoothState() == BluetoothAdapter.STATE_ON) { in onActivityResult()
229 } else if (mLocalAdapter.setScanMode( in proceedAndFinish()
287 mLocalAdapter = manager.getBluetoothAdapter(); in parseIntent()
DRequestPermissionHelperActivity.java45 private LocalBluetoothAdapter mLocalAdapter; field in RequestPermissionHelperActivity
104 btState = mLocalAdapter.getBluetoothState(); in onClick()
113 || mLocalAdapter.enable()) { in onClick()
154 mLocalAdapter = manager.getBluetoothAdapter(); in parseIntent()
DDevicePickerFragment.java81 mLocalAdapter.startScanning(true); in onOptionsItemSelected()
107 mLocalAdapter.startScanning(true); in onResume()
114 mLocalAdapter.stopScanning(); in onDevicePreferenceClick()
142 mLocalAdapter.startScanning(false); in onBluetoothStateChanged()
DDockService.java110 private LocalBluetoothAdapter mLocalAdapter; field in DockService
143 mLocalAdapter = manager.getBluetoothAdapter(); in onCreate()
173 mLocalAdapter = null; in onDestroy()
316 if (mLocalAdapter.disable()) { in msgTypeDisableBluetooth()
428 Set<BluetoothDevice> btDevices = mLocalAdapter.getBondedDevices(); in hasOtherConnectedDevices()
718 mLocalAdapter.enable(); in handleBtStateChange()
759 && mLocalAdapter.disable()) { in handleBluetoothStateOn()
817 || mLocalAdapter == null) { in applyBtSettings()
824 int btState = mLocalAdapter.getBluetoothState(); in applyBtSettings()
830 mLocalAdapter.enable(); in applyBtSettings()
[all …]