/frameworks/base/packages/SettingsLib/src/com/android/settingslib/bluetooth/ |
D | CachedBluetoothDeviceManager.java | 42 final List<CachedBluetoothDevice> mCachedDevices = new ArrayList<CachedBluetoothDevice>(); 52 public synchronized Collection<CachedBluetoothDevice> getCachedDevicesCopy() { in getCachedDevicesCopy() 56 public static boolean onDeviceDisappeared(CachedBluetoothDevice cachedDevice) { in onDeviceDisappeared() 62 CachedBluetoothDevice cachedDevice = findDevice(device); in onDeviceNameUpdated() 78 public synchronized CachedBluetoothDevice findDevice(BluetoothDevice device) { in findDevice() 79 for (CachedBluetoothDevice cachedDevice : mCachedDevices) { in findDevice() 84 CachedBluetoothDevice subDevice = cachedDevice.getSubDevice(); in findDevice() 99 public CachedBluetoothDevice addDevice(BluetoothDevice device) { in addDevice() 101 CachedBluetoothDevice newDevice = new CachedBluetoothDevice(mContext, profileManager, in addDevice() 121 public synchronized String getSubDeviceSummary(CachedBluetoothDevice device) { in getSubDeviceSummary() [all …]
|
D | HearingAidDeviceManager.java | 37 private final List<CachedBluetoothDevice> mCachedDevices; 39 List<CachedBluetoothDevice> CachedDevices) { in HearingAidDeviceManager() 44 void initHearingAidDeviceIfNeeded(CachedBluetoothDevice newDevice) { in initHearingAidDeviceIfNeeded() 61 boolean setSubDeviceIfNeeded(CachedBluetoothDevice newDevice) { in setSubDeviceIfNeeded() 64 final CachedBluetoothDevice hearingAidDevice = getCachedDevice(hiSyncId); in setSubDeviceIfNeeded() 80 private CachedBluetoothDevice getCachedDevice(long hiSyncId) { in getCachedDevice() 82 CachedBluetoothDevice cachedDevice = mCachedDevices.get(i); in getCachedDevice() 93 for (CachedBluetoothDevice cachedDevice : mCachedDevices) { in updateHearingAidsDevices() 115 CachedBluetoothDevice cachedDevice = mCachedDevices.get(i); in onHiSyncIdChanged() 126 CachedBluetoothDevice subDevice; in onHiSyncIdChanged() [all …]
|
D | BluetoothCallback.java | 57 default void onDeviceAdded(CachedBluetoothDevice cachedDevice) {} in onDeviceAdded() 64 default void onDeviceDeleted(CachedBluetoothDevice cachedDevice) {} in onDeviceDeleted() 76 default void onDeviceBondStateChanged(CachedBluetoothDevice cachedDevice, int bondState) {} in onDeviceBondStateChanged() 92 default void onConnectionStateChanged(CachedBluetoothDevice cachedDevice, int state) {} in onConnectionStateChanged() 104 default void onActiveDeviceChanged(CachedBluetoothDevice activeDevice, int bluetoothProfile) {} in onActiveDeviceChanged() 127 default void onProfileConnectionStateChanged(CachedBluetoothDevice cachedDevice, in onProfileConnectionStateChanged() 141 default void onAclConnectionStateChanged(CachedBluetoothDevice cachedDevice, int state) { in onAclConnectionStateChanged()
|
D | BluetoothEventManager.java | 181 CachedBluetoothDevice cachedDevice = mDeviceManager.findDevice(device); in readPairedDevices() 191 void dispatchDeviceAdded(CachedBluetoothDevice cachedDevice) { in dispatchDeviceAdded() 199 void dispatchDeviceRemoved(CachedBluetoothDevice cachedDevice) { in dispatchDeviceRemoved() 207 void dispatchProfileConnectionStateChanged(CachedBluetoothDevice device, int state, in dispatchProfileConnectionStateChanged() 216 private void dispatchConnectionStateChanged(CachedBluetoothDevice cachedDevice, int state) { in dispatchConnectionStateChanged() 233 private void dispatchActiveDeviceChanged(CachedBluetoothDevice activeDevice, in dispatchActiveDeviceChanged() 243 private void dispatchAclStateChanged(CachedBluetoothDevice activeDevice, in dispatchAclStateChanged() 314 CachedBluetoothDevice cachedDevice = mDeviceManager.findDevice(device); in onReceive() 338 CachedBluetoothDevice cachedDevice = mDeviceManager.findDevice(device); in onReceive() 361 CachedBluetoothDevice cachedDevice = mDeviceManager.findDevice(device); in onReceive() [all …]
|
D | PbapClientProfile.java | 63 CachedBluetoothDevice device = mDeviceManager.findDevice(nextDevice); in onServiceConnected() 81 Collection<CachedBluetoothDevice> cachedDevices = mDeviceManager.getCachedDevicesCopy(); in refreshProfiles() 82 for (CachedBluetoothDevice device : cachedDevices) { in refreshProfiles()
|
D | CachedBluetoothDevice.java | 49 public class CachedBluetoothDevice implements Comparable<CachedBluetoothDevice> { class 93 private CachedBluetoothDevice mSubDevice; 95 CachedBluetoothDevice(Context context, LocalBluetoothProfileManager profileManager, in CachedBluetoothDevice() method in CachedBluetoothDevice 708 if ((o == null) || !(o instanceof CachedBluetoothDevice)) { in equals() 711 return mDevice.equals(((CachedBluetoothDevice) o).mDevice); in equals() 722 public int compareTo(CachedBluetoothDevice another) { in compareTo() 1091 public CachedBluetoothDevice getSubDevice() { in getSubDevice() 1095 public void setSubDevice(CachedBluetoothDevice subDevice) { in setSubDevice()
|
D | BluetoothUtils.java | 65 CachedBluetoothDevice cachedDevice) { in getBtClassDrawableWithDescription() 134 CachedBluetoothDevice cachedDevice) { in getBtRainbowDrawableWithDescription()
|
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/media/ |
D | BluetoothMediaManagerTest.java | 34 import com.android.settingslib.bluetooth.CachedBluetoothDevice; 92 final CachedBluetoothDevice cachedDevice = mock(CachedBluetoothDevice.class); in startScan_haveA2dpProfileDeviceIsPreferredAndBonded_shouldAddDevice() 109 final CachedBluetoothDevice cachedDevice = mock(CachedBluetoothDevice.class); in startScan_haveA2dpProfileDeviceIsPreferredAndBondNone_shouldNotAddDevice() 137 final CachedBluetoothDevice cachedDevice = mock(CachedBluetoothDevice.class); in startScan_haveHapProfileDeviceIsPreferredAndBonded_shouldAddDevice() 164 final Collection<CachedBluetoothDevice> mDevices = new ArrayList<>(); in starScan_a2dpAndHapProfileNotReady_shouldRegisterCallback() 165 final CachedBluetoothDevice cachedDevice = mock(CachedBluetoothDevice.class); in starScan_a2dpAndHapProfileNotReady_shouldRegisterCallback() 179 final Collection<CachedBluetoothDevice> mDevices = new ArrayList<>(); in starScan_a2dpAndHapProfileReady_shouldNotRegisterCallback() 180 final CachedBluetoothDevice cachedDevice = mock(CachedBluetoothDevice.class); in starScan_a2dpAndHapProfileReady_shouldNotRegisterCallback() 194 final Collection<CachedBluetoothDevice> mDevices = new ArrayList<>(); in onServiceConnected_a2dpAndHapProfileNotReady_doNothing() 195 final CachedBluetoothDevice cachedDevice = mock(CachedBluetoothDevice.class); in onServiceConnected_a2dpAndHapProfileNotReady_doNothing() [all …]
|
D | MediaDeviceUtilsTest.java | 27 import com.android.settingslib.bluetooth.CachedBluetoothDevice; 43 private CachedBluetoothDevice mCachedDevice;
|
D | BluetoothMediaDeviceTest.java | 27 import com.android.settingslib.bluetooth.CachedBluetoothDevice; 41 private CachedBluetoothDevice mDevice;
|
D | MediaDeviceTest.java | 29 import com.android.settingslib.bluetooth.CachedBluetoothDevice; 71 private CachedBluetoothDevice mCachedDevice1; 73 private CachedBluetoothDevice mCachedDevice2; 75 private CachedBluetoothDevice mCachedDevice3;
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
D | BluetoothController.java | 19 import com.android.settingslib.bluetooth.CachedBluetoothDevice; 36 Collection<CachedBluetoothDevice> getDevices(); in getDevices() 37 void connect(CachedBluetoothDevice device); in connect() 38 void disconnect(CachedBluetoothDevice device); in disconnect() 41 int getMaxConnectionState(CachedBluetoothDevice device); in getMaxConnectionState() 42 int getBondState(CachedBluetoothDevice device); in getBondState() 43 List<CachedBluetoothDevice> getConnectedDevices(); in getConnectedDevices()
|
D | BluetoothControllerImpl.java | 35 import com.android.settingslib.bluetooth.CachedBluetoothDevice; 55 CachedBluetoothDevice.Callback, LocalBluetoothProfileManager.ServiceListener { 62 private final WeakHashMap<CachedBluetoothDevice, ActuallyCachedState> mCachedState = 65 private final List<CachedBluetoothDevice> mConnectedDevices = new ArrayList<>(); 109 for (CachedBluetoothDevice device : getDevices()) { in dump() 128 private String getDeviceString(CachedBluetoothDevice device) { in getDeviceString() 133 public int getBondState(CachedBluetoothDevice device) { in getBondState() 138 public List<CachedBluetoothDevice> getConnectedDevices() { in getConnectedDevices() 143 public int getMaxConnectionState(CachedBluetoothDevice device) { in getMaxConnectionState() 191 public void connect(final CachedBluetoothDevice device) { in connect() [all …]
|
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/bluetooth/ |
D | CachedBluetoothDeviceManagerTest.java | 81 private CachedBluetoothDevice mCachedDevice1; 82 private CachedBluetoothDevice mCachedDevice2; 83 private CachedBluetoothDevice mCachedDevice3; 114 mCachedDevice1 = spy(new CachedBluetoothDevice(mContext, mLocalProfileManager, mDevice1)); in setUp() 115 mCachedDevice2 = spy(new CachedBluetoothDevice(mContext, mLocalProfileManager, mDevice2)); in setUp() 116 mCachedDevice3 = spy(new CachedBluetoothDevice(mContext, mLocalProfileManager, mDevice3)); in setUp() 124 CachedBluetoothDevice cachedDevice1 = mCachedDeviceManager.addDevice(mDevice1); in addDevice_validCachedDevices_devicesAdded() 126 CachedBluetoothDevice cachedDevice2 = mCachedDeviceManager.addDevice(mDevice2); in addDevice_validCachedDevices_devicesAdded() 129 Collection<CachedBluetoothDevice> devices = mCachedDeviceManager.getCachedDevicesCopy(); in addDevice_validCachedDevices_devicesAdded() 144 CachedBluetoothDevice cachedDevice1 = mCachedDeviceManager.addDevice(mDevice1); in addDevice_sameHiSyncId_validSubDevice() [all …]
|
D | CachedBluetoothDeviceTest.java | 68 private CachedBluetoothDevice mCachedDevice; 83 mCachedDevice = spy(new CachedBluetoothDevice(mContext, mProfileManager, mDevice)); in setUp() 704 CachedBluetoothDevice cachedBluetoothDevice = in deviceName_testAliasNameAvailable() 705 new CachedBluetoothDevice(mContext, mProfileManager, mDevice); in deviceName_testAliasNameAvailable() 714 CachedBluetoothDevice cachedBluetoothDevice = in deviceName_testNameNotAvailable() 715 new CachedBluetoothDevice(mContext, mProfileManager, mDevice); in deviceName_testNameNotAvailable() 731 CachedBluetoothDevice cachedBluetoothDevice = in deviceName_testRenameDevice() 732 new CachedBluetoothDevice(mContext, mProfileManager, mDevice); in deviceName_testRenameDevice() 893 CachedBluetoothDevice subCachedDevice = new CachedBluetoothDevice(mContext, mProfileManager, in getSubDevice_setSubDevice() 902 CachedBluetoothDevice subCachedDevice = new CachedBluetoothDevice(mContext, mProfileManager, in switchSubDeviceContent()
|
D | HearingAidDeviceManagerTest.java | 64 private CachedBluetoothDevice mCachedDevice1; 65 private CachedBluetoothDevice mCachedDevice2; 89 mCachedDevice1 = spy(new CachedBluetoothDevice(mContext, mLocalProfileManager, mDevice1)); in setUp() 90 mCachedDevice2 = spy(new CachedBluetoothDevice(mContext, mLocalProfileManager, mDevice2)); in setUp()
|
D | HeadsetProfileTest.java | 37 private CachedBluetoothDevice mCachedBluetoothDevice;
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/utils/leaks/ |
D | FakeBluetoothController.java | 19 import com.android.settingslib.bluetooth.CachedBluetoothDevice; 70 public Collection<CachedBluetoothDevice> getDevices() { in getDevices() 75 public void connect(CachedBluetoothDevice device) { in connect() 80 public void disconnect(CachedBluetoothDevice device) { in disconnect() 90 public int getMaxConnectionState(CachedBluetoothDevice device) { in getMaxConnectionState() 95 public int getBondState(CachedBluetoothDevice device) { in getBondState() 100 public List<CachedBluetoothDevice> getConnectedDevices() { in getConnectedDevices()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/media/ |
D | BluetoothMediaManager.java | 27 import com.android.settingslib.bluetooth.CachedBluetoothDevice; 101 final CachedBluetoothDevice cachedDevice = in addConnectableA2dpDevices() 133 final CachedBluetoothDevice cachedDevice = in addConnectableHearingAidDevices() 159 private void addMediaDevice(CachedBluetoothDevice cachedDevice) { in addMediaDevice() 206 public void onDeviceAdded(CachedBluetoothDevice cachedDevice) { in onDeviceAdded() 213 private boolean isCachedDeviceConnected(CachedBluetoothDevice cachedDevice) { in isCachedDeviceConnected() 223 private void dispatchDeviceAdded(CachedBluetoothDevice cachedDevice) { in dispatchDeviceAdded() 231 public void onDeviceDeleted(CachedBluetoothDevice cachedDevice) { in onDeviceDeleted() 238 private void removeMediaDevice(CachedBluetoothDevice cachedDevice) { in removeMediaDevice() 247 void dispatchDeviceRemoved(CachedBluetoothDevice cachedDevice) { in dispatchDeviceRemoved() [all …]
|
D | BluetoothMediaDevice.java | 27 import com.android.settingslib.bluetooth.CachedBluetoothDevice; 36 private CachedBluetoothDevice mCachedDevice; 38 BluetoothMediaDevice(Context context, CachedBluetoothDevice device) { in BluetoothMediaDevice() 85 public CachedBluetoothDevice getCachedDevice() { in getCachedDevice()
|
D | MediaDeviceUtils.java | 22 import com.android.settingslib.bluetooth.CachedBluetoothDevice; 34 public static String getId(CachedBluetoothDevice cachedDevice) { in getId()
|
D | LocalMediaManager.java | 27 import com.android.settingslib.bluetooth.CachedBluetoothDevice; 116 final CachedBluetoothDevice cachedDevice = in connectDevice() 233 private boolean isConnected(CachedBluetoothDevice device) { in isConnected()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/ |
D | BluetoothControllerImplTest.java | 38 import com.android.settingslib.bluetooth.CachedBluetoothDevice; 63 private List<CachedBluetoothDevice> mDevices; 86 CachedBluetoothDevice device = mock(CachedBluetoothDevice.class); in testNoConnectionWithDevices() 99 CachedBluetoothDevice device = mock(CachedBluetoothDevice.class); in testDefaultConnectionState() 107 CachedBluetoothDevice device = mock(CachedBluetoothDevice.class); in testAsyncBondState() 128 CachedBluetoothDevice device = mock(CachedBluetoothDevice.class); in testAsyncConnectionState() 151 CachedBluetoothDevice device = mock(CachedBluetoothDevice.class); in testNullAsync_DoesNotCrash() 212 CachedBluetoothDevice device = mock(CachedBluetoothDevice.class); in testOnACLConnectionStateChange_updatesBluetoothStateOnConnection()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyboard/ |
D | KeyboardUI.java | 47 import com.android.settingslib.bluetooth.CachedBluetoothDevice; 241 CachedBluetoothDevice device = getPairedKeyboard(); in processKeyboardState() 298 private CachedBluetoothDevice getPairedKeyboard() { in getPairedKeyboard() 308 private CachedBluetoothDevice getDiscoveredKeyboard() { in getDiscoveredKeyboard() 309 Collection<CachedBluetoothDevice> devices = mCachedDeviceManager.getCachedDevicesCopy(); in getDiscoveredKeyboard() 310 for (CachedBluetoothDevice d : devices) { in getDiscoveredKeyboard() 319 private CachedBluetoothDevice getCachedBluetoothDevice(BluetoothDevice d) { in getCachedBluetoothDevice() 320 CachedBluetoothDevice cachedDevice = mCachedDeviceManager.findDevice(d); in getCachedBluetoothDevice() 367 private void onDeviceAddedInternal(CachedBluetoothDevice d) { in onDeviceAddedInternal() 383 private void onDeviceBondStateChangedInternal(CachedBluetoothDevice d, int bondState) { in onDeviceBondStateChangedInternal() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/ |
D | BluetoothTile.java | 37 import com.android.settingslib.bluetooth.CachedBluetoothDevice; 189 List<CachedBluetoothDevice> connectedDevices = mController.getConnectedDevices(); in getSecondaryLabel() 199 CachedBluetoothDevice lastDevice = connectedDevices.get(0); in getSecondaryLabel() 381 final Collection<CachedBluetoothDevice> devices = mController.getDevices(); in updateItems() 385 for (CachedBluetoothDevice device : devices) { in updateItems() 424 final CachedBluetoothDevice device = (CachedBluetoothDevice) item.tag; in onDetailItemClick() 434 final CachedBluetoothDevice device = (CachedBluetoothDevice) item.tag; in onDetailItemDisconnect()
|