Searched refs:cachedDevice (Results 1 - 13 of 13) sorted by relevance

/packages/apps/Settings/src/com/android/settings/bluetooth/
H A DBluetoothCallback.java26 void onDeviceAdded(CachedBluetoothDevice cachedDevice); argument
27 void onDeviceDeleted(CachedBluetoothDevice cachedDevice); argument
28 void onDeviceBondStateChanged(CachedBluetoothDevice cachedDevice, int bondState); argument
H A DCachedBluetoothDeviceManager.java47 public static boolean onDeviceDisappeared(CachedBluetoothDevice cachedDevice) { argument
48 cachedDevice.setVisible(false);
49 return cachedDevice.getBondState() == BluetoothDevice.BOND_NONE;
53 CachedBluetoothDevice cachedDevice = findDevice(device);
54 if (cachedDevice != null) {
55 cachedDevice.refreshName();
70 for (CachedBluetoothDevice cachedDevice : mCachedDevices) {
71 if (cachedDevice.getDevice().equals(device)) {
72 return cachedDevice;
102 CachedBluetoothDevice cachedDevice
[all...]
H A DBluetoothEventManager.java199 CachedBluetoothDevice cachedDevice = mDeviceManager.findDevice(device);
200 if (cachedDevice == null) {
201 cachedDevice = mDeviceManager.addDevice(mLocalAdapter, mProfileManager, device);
203 + cachedDevice);
205 dispatchDeviceAdded(cachedDevice);
207 cachedDevice.setRssi(rssi);
208 cachedDevice.setBtClass(btClass);
209 cachedDevice.setNewName(name);
210 cachedDevice.setVisible(true);
214 private void dispatchDeviceAdded(CachedBluetoothDevice cachedDevice) { argument
[all...]
H A DDeviceListPreferenceFragment.java128 for (CachedBluetoothDevice cachedDevice : cachedDevices) {
129 onDeviceAdded(cachedDevice);
156 public void onDeviceAdded(CachedBluetoothDevice cachedDevice) { argument
157 if (mDevicePreferenceMap.get(cachedDevice) != null) {
164 if (mFilter.matches(cachedDevice.getDevice())) {
165 createDevicePreference(cachedDevice);
169 void createDevicePreference(CachedBluetoothDevice cachedDevice) { argument
177 getActivity(), cachedDevice);
181 mDevicePreferenceMap.put(cachedDevice, preference);
192 public void onDeviceDeleted(CachedBluetoothDevice cachedDevice) { argument
[all...]
H A DBluetoothDevicePreference.java59 public BluetoothDevicePreference(Context context, CachedBluetoothDevice cachedDevice) { argument
68 mCachedDevice = cachedDevice;
72 if (cachedDevice.getBondState() == BluetoothDevice.BOND_BONDED) {
231 final CachedBluetoothDevice cachedDevice = mCachedDevice;
237 for (LocalBluetoothProfile profile : cachedDevice.getProfiles()) {
238 int connectionStatus = cachedDevice.getProfileConnectionState(profile);
273 switch (cachedDevice.getBondState()) {
H A DBluetoothPermissionRequest.java199 CachedBluetoothDevice cachedDevice = cachedDeviceManager.findDevice(mDevice);
200 if (cachedDevice == null) {
201 cachedDevice = cachedDeviceManager.addDevice(bluetoothManager.getBluetoothAdapter(),
208 int phonebookPermission = cachedDevice.getPhonebookPermissionChoice();
222 int messagePermission = cachedDevice.getMessagePermissionChoice();
H A DBluetoothPermissionActivity.java198 CachedBluetoothDevice cachedDevice = cachedDeviceManager.findDevice(mDevice);
199 if (cachedDevice == null) {
200 cachedDevice = cachedDeviceManager.addDevice(bluetoothManager.getBluetoothAdapter(),
204 always = cachedDevice.checkAndIncreaseMessageRejectionCount();
H A DLocalBluetoothProfileManager.java227 CachedBluetoothDevice cachedDevice = mDeviceManager.findDevice(device);
228 if (cachedDevice == null) {
230 cachedDevice = mDeviceManager.addDevice(mLocalAdapter,
240 cachedDevice.onProfileStateChanged(mProfile, newState);
241 cachedDevice.refresh();
H A DDockService.java784 CachedBluetoothDevice cachedDevice = getCachedBluetoothDevice(
786 cachedDevice.connectProfile(profile);
796 CachedBluetoothDevice cachedDevice = getCachedBluetoothDevice(
798 List<LocalBluetoothProfile> profiles = cachedDevice.getConnectableProfiles();
801 cachedDevice.connect(false);
844 CachedBluetoothDevice cachedDevice = getCachedBluetoothDevice(
855 int status = profile.getConnectionStatus(cachedDevice.getDevice());
858 cachedDevice.disconnect(mProfiles[i]);
871 cachedDevice.connect(false);
897 CachedBluetoothDevice cachedDevice
[all...]
H A DDevicePickerFragment.java118 public void onDeviceBondStateChanged(CachedBluetoothDevice cachedDevice, argument
121 BluetoothDevice device = cachedDevice.getDevice();
H A DBluetoothPairingDialog.java322 CachedBluetoothDevice cachedDevice = mCachedDeviceManager.findDevice(mDevice);
323 if (cachedDevice == null) {
324 cachedDevice = mCachedDeviceManager.addDevice(
329 cachedDevice.setPhonebookPermissionChoice(CachedBluetoothDevice.ACCESS_ALLOWED);
H A DDeviceProfilesSettings.java132 public void setDevice(CachedBluetoothDevice cachedDevice) { argument
133 mCachedDevice = cachedDevice;
H A DBluetoothSettings.java386 public void onDeviceBondStateChanged(CachedBluetoothDevice cachedDevice, int bondState) { argument
481 CachedBluetoothDevice cachedDevice = preference.getCachedDevice();
482 if (cachedDevice.getBondState() == BluetoothDevice.BOND_BONDED) {

Completed in 58 milliseconds