/packages/apps/Settings/src/com/android/settings/bluetooth/ |
H A D | AlwaysDiscoverable.java | 42 private LocalBluetoothAdapter mLocalAdapter; field in class:AlwaysDiscoverable 50 mLocalAdapter = localAdapter; 63 if (mLocalAdapter.getScanMode() != BluetoothAdapter.SCAN_MODE_CONNECTABLE_DISCOVERABLE) { 64 mLocalAdapter.setScanMode(BluetoothAdapter.SCAN_MODE_CONNECTABLE_DISCOVERABLE); 74 mLocalAdapter.setScanMode(BluetoothAdapter.SCAN_MODE_CONNECTABLE); 83 if (mLocalAdapter.getScanMode() != BluetoothAdapter.SCAN_MODE_CONNECTABLE_DISCOVERABLE) { 84 mLocalAdapter.setScanMode(BluetoothAdapter.SCAN_MODE_CONNECTABLE_DISCOVERABLE);
|
H A D | LocalDeviceNameDialogFragment.java | 34 private LocalBluetoothAdapter mLocalAdapter; field in class:LocalDeviceNameDialogFragment 57 mLocalAdapter = localManager.getBluetoothAdapter(); 87 if (mLocalAdapter != null && mLocalAdapter.isEnabled()) { 88 return mLocalAdapter.getName(); 95 mLocalAdapter.setName(deviceName);
|
H A D | BluetoothDeviceNamePreferenceController.java | 54 private LocalBluetoothAdapter mLocalAdapter; field in class:BluetoothDeviceNamePreferenceController 64 mLocalAdapter = mLocalManager.getBluetoothAdapter(); 71 mLocalAdapter = localAdapter; 93 return mLocalAdapter != null; 103 updateDeviceName(preference, mLocalAdapter.getName()); 151 if (mPreference != null && mLocalAdapter != null && mLocalAdapter.isEnabled()) { 152 updateDeviceName(mPreference, mLocalAdapter.getName());
|
H A D | BluetoothDiscoverableEnabler.java | 66 private final LocalBluetoothAdapter mLocalAdapter; field in class:BluetoothDiscoverableEnabler 97 mLocalAdapter = adapter; 104 if (mLocalAdapter == null) { 115 handleModeChanged(mLocalAdapter.getScanMode()); 119 if (mLocalAdapter == null) { 141 mLocalAdapter.setScanMode(BluetoothAdapter.SCAN_MODE_CONNECTABLE_DISCOVERABLE, timeout); 153 mLocalAdapter.setScanMode(BluetoothAdapter.SCAN_MODE_CONNECTABLE); 252 handleModeChanged(mLocalAdapter.getScanMode()); 275 int mode = mLocalAdapter.getScanMode();
|
H A D | BluetoothEnabler.java | 49 private final LocalBluetoothAdapter mLocalAdapter; field in class:BluetoothEnabler 87 mLocalAdapter = null; 90 mLocalAdapter = manager.getBluetoothAdapter(); 111 if (mLocalAdapter == null) { 118 handleStateChanged(mLocalAdapter.getBluetoothState()); 127 if (mLocalAdapter == null) { 192 if (mLocalAdapter != null) { 193 boolean status = mLocalAdapter.setBluetoothEnabled(isChecked);
|
H A D | DeviceListPreferenceFragment.java | 67 LocalBluetoothAdapter mLocalAdapter; field in class:DeviceListPreferenceFragment 100 mLocalAdapter = mLocalManager.getBluetoothAdapter(); 149 mLocalAdapter.startScanning(true); 175 if (mLocalAdapter.getBluetoothState() != BluetoothAdapter.STATE_ON) return; 220 bidiFormatter.unicodeWrap(mLocalAdapter.getAddress()))); 234 mLocalAdapter.startScanning(true); 240 mLocalAdapter.stopScanning(); 247 mLocalAdapter.startScanning(true);
|
H A D | BluetoothPairingDetail.java | 69 mAlwaysDiscoverable = new AlwaysDiscoverable(getContext(), mLocalAdapter); 76 updateContent(mLocalAdapter.getBluetoothState()); 77 mAvailableDevicesCategory.setProgress(mLocalAdapter.isDiscovering()); 132 mLocalAdapter.setBluetoothEnabled(true);
|
H A D | RequestPermissionHelperActivity.java | 58 private LocalBluetoothAdapter mLocalAdapter; field in class:RequestPermissionHelperActivity 72 // Note: initializes mLocalAdapter and returns true on error 140 mLocalAdapter.enable(); 146 mLocalAdapter.disable(); 184 mLocalAdapter = manager.getBluetoothAdapter();
|
H A D | RequestPermissionActivity.java | 59 private LocalBluetoothAdapter mLocalAdapter; field in class:RequestPermissionActivity 77 // Note: initializes mLocalAdapter and returns true on error 83 int btState = mLocalAdapter.getState(); 205 if (mLocalAdapter.getBluetoothState() == BluetoothAdapter.STATE_ON) { 217 if (mLocalAdapter.getBluetoothState() == BluetoothAdapter.STATE_OFF) { 253 } else if (mLocalAdapter.setScanMode( 338 mLocalAdapter = manager.getBluetoothAdapter();
|
H A D | BluetoothSettings.java | 115 if (mLocalAdapter != null) { 116 mAlwaysDiscoverable = new AlwaysDiscoverable(getContext(), mLocalAdapter); 153 if (mLocalAdapter != null) { 154 updateContent(mLocalAdapter.getBluetoothState()); 206 mLocalAdapter.stopScanning(); 277 updateContent(mLocalAdapter.getBluetoothState()); 292 mLocalAdapter = localAdapter;
|
H A D | DevicePickerFragment.java | 96 mAvailableDevicesCategory.setProgress(mLocalAdapter.isDiscovering());
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/bluetooth/ |
H A D | DeviceListPreferenceFragmentTest.java | 63 private LocalBluetoothAdapter mLocalAdapter; field in class:DeviceListPreferenceFragmentTest 74 mFragment.mLocalAdapter = mLocalAdapter; 92 verify(mLocalAdapter).startScanning(true); 96 verify(mLocalAdapter).stopScanning(); 104 verify(mLocalAdapter).startScanning(true); 107 verify(mLocalAdapter, times(1)).startScanning(anyBoolean()); 114 verify(mLocalAdapter).startScanning(true); 118 verify(mLocalAdapter, times(2)).startScanning(true); 126 verify(mLocalAdapter) [all...] |
H A D | AlwaysDiscoverableTest.java | 47 private LocalBluetoothAdapter mLocalAdapter; field in class:AlwaysDiscoverableTest 57 mAlwaysDiscoverable = new AlwaysDiscoverable(mContext, mLocalAdapter); 82 verify(mLocalAdapter, never()).setScanMode(anyInt()); 87 when(mLocalAdapter.getScanMode()).thenReturn(BluetoothAdapter.SCAN_MODE_NONE); 89 verify(mLocalAdapter).setScanMode(eq(BluetoothAdapter.SCAN_MODE_CONNECTABLE_DISCOVERABLE)); 103 verify(mLocalAdapter, times(1)).setScanMode( 109 verify(mLocalAdapter, times(2)).setScanMode( 114 when(mLocalAdapter.getScanMode()).thenReturn(newMode);
|
H A D | BluetoothPairingDetailTest.java | 63 private LocalBluetoothAdapter mLocalAdapter; field in class:BluetoothPairingDetailTest 85 mFragment.mLocalAdapter = mLocalAdapter; 88 mFragment.mAlwaysDiscoverable = new AlwaysDiscoverable(mContext, mLocalAdapter); 111 verify(mLocalAdapter).startScanning(true); 126 verify(mLocalAdapter).setScanMode(BluetoothAdapter.SCAN_MODE_CONNECTABLE_DISCOVERABLE); 147 verify(mLocalAdapter).startScanning(true); 151 verify(mLocalAdapter, times(1)).startScanning(anyBoolean()); 156 verify(mLocalAdapter, times(2)).startScanning(true); 161 verify(mLocalAdapter, time [all...] |
H A D | DevicePickerFragmentTest.java | 36 private LocalBluetoothAdapter mLocalAdapter; field in class:DevicePickerFragmentTest
|
H A D | BluetoothDeviceNamePreferenceControllerTest.java | 50 private LocalBluetoothAdapter mLocalAdapter; field in class:BluetoothDeviceNamePreferenceControllerTest 67 mContext, mLocalAdapter);
|
H A D | BluetoothDeviceRenamePreferenceControllerTest.java | 52 private LocalBluetoothAdapter mLocalAdapter; field in class:BluetoothDeviceRenamePreferenceControllerTest 72 mContext, mFragment, mLocalAdapter);
|
H A D | BluetoothSettingsTest.java | 62 private LocalBluetoothAdapter mLocalAdapter; field in class:BluetoothSettingsTest 96 mFragment.setLocalBluetoothAdapter(mLocalAdapter);
|
H A D | BluetoothPairingPreferenceControllerTest.java | 61 private LocalBluetoothAdapter mLocalAdapter; field in class:BluetoothPairingPreferenceControllerTest
|
/packages/apps/Car/Settings/src/com/android/car/settings/bluetooth/ |
H A D | BluetoothSettingsFragment.java | 57 private LocalBluetoothAdapter mLocalAdapter; field in class:BluetoothSettingsFragment 96 if (mLocalAdapter.isDiscovering()) { 97 mLocalAdapter.cancelDiscovery(); 107 mLocalAdapter.setBluetoothEnabled(true); 109 mLocalAdapter.stopScanning(); 110 mLocalAdapter.setBluetoothEnabled(false); 124 mLocalAdapter = mLocalManager.getBluetoothAdapter(); 147 mBluetoothSwitch.setChecked(mLocalAdapter.isEnabled()); 148 if (mLocalAdapter.isEnabled()) { 150 mLocalAdapter [all...] |
H A D | BluetoothDeviceListAdapter.java | 75 private final LocalBluetoothAdapter mLocalAdapter; field in class:BluetoothDeviceListAdapter 120 mLocalAdapter = mLocalManager.getBluetoothAdapter(); 136 if (mLocalAdapter.isEnabled()) { 137 mLocalAdapter.startScanning(true); 147 mLocalAdapter.stopScanning(); 276 mLocalAdapter.startScanning(true); 289 mLocalAdapter.startScanning(true); 360 Set<BluetoothDevice> bondedDevices = mLocalAdapter.getBondedDevices(); 369 mLocalAdapter, mLocalManager.getProfileManager(), device);
|