/packages/apps/Settings/src/com/android/settings/bluetooth/ |
AlwaysDiscoverable.java | 42 private LocalBluetoothAdapter mLocalAdapter; 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);
|
LocalDeviceNameDialogFragment.java | 34 private LocalBluetoothAdapter mLocalAdapter; 57 mLocalAdapter = localManager.getBluetoothAdapter(); 87 if (mLocalAdapter != null && mLocalAdapter.isEnabled()) { 88 return mLocalAdapter.getName(); 95 mLocalAdapter.setName(deviceName);
|
BluetoothDeviceNamePreferenceController.java | 54 private LocalBluetoothAdapter mLocalAdapter; 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());
|
BluetoothDiscoverableEnabler.java | 66 private final LocalBluetoothAdapter mLocalAdapter; 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();
|
BluetoothEnabler.java | 49 private final LocalBluetoothAdapter mLocalAdapter; 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);
|
DeviceListPreferenceFragment.java | 67 LocalBluetoothAdapter mLocalAdapter; 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);
|
BluetoothPairingDetail.java | 69 mAlwaysDiscoverable = new AlwaysDiscoverable(getContext(), mLocalAdapter); 76 updateContent(mLocalAdapter.getBluetoothState()); 77 mAvailableDevicesCategory.setProgress(mLocalAdapter.isDiscovering()); 132 mLocalAdapter.setBluetoothEnabled(true);
|
RequestPermissionHelperActivity.java | 58 private LocalBluetoothAdapter mLocalAdapter; 72 // Note: initializes mLocalAdapter and returns true on error 140 mLocalAdapter.enable(); 146 mLocalAdapter.disable(); 184 mLocalAdapter = manager.getBluetoothAdapter();
|
RequestPermissionActivity.java | 59 private LocalBluetoothAdapter mLocalAdapter; 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();
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/bluetooth/ |
DeviceListPreferenceFragmentTest.java | 63 private LocalBluetoothAdapter mLocalAdapter; 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).startScanning(true) [all...] |
AlwaysDiscoverableTest.java | 47 private LocalBluetoothAdapter mLocalAdapter; 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);
|
BluetoothPairingDetailTest.java | 63 private LocalBluetoothAdapter mLocalAdapter; 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, times(2)).startScanning(anyBoolean()) [all...] |
DevicePickerFragmentTest.java | 36 private LocalBluetoothAdapter mLocalAdapter;
|
BluetoothDeviceNamePreferenceControllerTest.java | 50 private LocalBluetoothAdapter mLocalAdapter; 67 mContext, mLocalAdapter);
|
BluetoothDeviceRenamePreferenceControllerTest.java | 52 private LocalBluetoothAdapter mLocalAdapter; 72 mContext, mFragment, mLocalAdapter);
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/bluetooth/ |
LocalBluetoothManager.java | 39 private final LocalBluetoothAdapter mLocalAdapter; 69 mLocalAdapter = adapter; 72 mEventManager = new BluetoothEventManager(mLocalAdapter, 75 mLocalAdapter, mCachedDeviceManager, mEventManager); 79 return mLocalAdapter;
|
LocalBluetoothProfileManager.java | 76 private final LocalBluetoothAdapter mLocalAdapter; 106 mLocalAdapter = adapter; 113 mLocalAdapter.setProfileManager(this); 124 mHidProfile = new HidProfile(context, mLocalAdapter, mDeviceManager, this); 134 mMapClientProfile = new MapClientProfile(mContext, mLocalAdapter, mDeviceManager, this); 138 mMapProfile = new MapProfile(mContext, mLocalAdapter, mDeviceManager, this); 162 mA2dpProfile = new A2dpProfile(mContext, mLocalAdapter, mDeviceManager, this); 174 mA2dpSinkProfile = new A2dpSinkProfile(mContext, mLocalAdapter, mDeviceManager, this); 187 mHeadsetProfile = new HeadsetProfile(mContext, mLocalAdapter, 201 new HfpClientProfile(mContext, mLocalAdapter, mDeviceManager, this) [all...] |
A2dpSinkProfile.java | 41 private final LocalBluetoothAdapter mLocalAdapter; 70 device = mDeviceManager.addDevice(mLocalAdapter, mProfileManager, nextDevice); 91 mLocalAdapter = adapter; 94 mLocalAdapter.getProfileProxy(context, new A2dpSinkServiceListener(),
|
MapClientProfile.java | 44 private final LocalBluetoothAdapter mLocalAdapter; 74 device = mDeviceManager.addDevice(mLocalAdapter, mProfileManager, nextDevice); 100 mLocalAdapter = adapter; 103 mLocalAdapter.getProfileProxy(context, new MapClientServiceListener(),
|
PbapClientProfile.java | 42 private final LocalBluetoothAdapter mLocalAdapter; 72 device = mDeviceManager.addDevice(mLocalAdapter, mProfileManager, nextDevice); 106 mLocalAdapter = adapter; 109 mLocalAdapter.getProfileProxy(context, new PbapClientServiceListener(),
|
HidProfile.java | 41 private final LocalBluetoothAdapter mLocalAdapter; 65 device = mDeviceManager.addDevice(mLocalAdapter, mProfileManager, nextDevice); 86 mLocalAdapter = adapter;
|
HeadsetProfile.java | 44 private final LocalBluetoothAdapter mLocalAdapter; 73 device = mDeviceManager.addDevice(mLocalAdapter, mProfileManager, nextDevice); 98 mLocalAdapter = adapter; 101 mLocalAdapter.getProfileProxy(context, new HeadsetServiceListener(),
|
HfpClientProfile.java | 44 private final LocalBluetoothAdapter mLocalAdapter; 74 device = mDeviceManager.addDevice(mLocalAdapter, mProfileManager, nextDevice); 98 mLocalAdapter = adapter; 101 mLocalAdapter.getProfileProxy(context, new HfpClientServiceListener(),
|
MapProfile.java | 44 private final LocalBluetoothAdapter mLocalAdapter; 73 device = mDeviceManager.addDevice(mLocalAdapter, mProfileManager, nextDevice); 99 mLocalAdapter = adapter; 102 mLocalAdapter.getProfileProxy(context, new MapServiceListener(),
|
/packages/apps/Car/Settings/src/com/android/car/settings/bluetooth/ |
BluetoothSettingsFragment.java | 57 private LocalBluetoothAdapter mLocalAdapter; 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.setScanMode(BluetoothAdapter.SCAN_MODE_CONNECTABLE_DISCOVERABLE) [all...] |