Home
last modified time | relevance | path

Searched refs:CachedBluetoothDevice (Results 1 – 25 of 119) sorted by relevance

12345

/aosp12/frameworks/base/packages/SettingsLib/src/com/android/settingslib/bluetooth/
H A DCachedBluetoothDeviceManager.java41 final List<CachedBluetoothDevice> mCachedDevices = new ArrayList<CachedBluetoothDevice>();
61 CachedBluetoothDevice cachedDevice = findDevice(device); in onDeviceNameUpdated()
78 for (CachedBluetoothDevice cachedDevice : mCachedDevices) { in findDevice()
98 public CachedBluetoothDevice addDevice(BluetoothDevice device) { in addDevice()
99 CachedBluetoothDevice newDevice; in addDevice()
124 CachedBluetoothDevice subDevice = device.getSubDevice(); in getSubDeviceSummary()
138 for (CachedBluetoothDevice cachedDevice : mCachedDevices) { in isSubDevice()
166 CachedBluetoothDevice cachedDevice = findDevice(device); in getName()
187 CachedBluetoothDevice cachedDevice = mCachedDevices.get(i); in clearNonBondedSubDevices()
202 CachedBluetoothDevice cachedDevice = mCachedDevices.get(i); in onScanningStateChanged()
[all …]
H A DHearingAidDeviceManager.java37 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()
80 private CachedBluetoothDevice getCachedDevice(long hiSyncId) { in getCachedDevice()
82 CachedBluetoothDevice cachedDevice = mCachedDevices.get(i); in getCachedDevice()
93 for (CachedBluetoothDevice cachedDevice : mCachedDevices) { in updateHearingAidsDevices()
126 CachedBluetoothDevice subDevice; in onHiSyncIdChanged()
127 CachedBluetoothDevice mainDevice; in onHiSyncIdChanged()
209 CachedBluetoothDevice findMainDevice(CachedBluetoothDevice device) { in findMainDevice()
[all …]
H A DBluetoothCallback.java57 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()
H A DBluetoothEventManager.java180 CachedBluetoothDevice cachedDevice = mDeviceManager.findDevice(device); in readPairedDevices()
190 void dispatchDeviceAdded(CachedBluetoothDevice cachedDevice) { in dispatchDeviceAdded()
196 void dispatchDeviceRemoved(CachedBluetoothDevice cachedDevice) { in dispatchDeviceRemoved()
225 void dispatchActiveDeviceChanged(CachedBluetoothDevice activeDevice, in dispatchActiveDeviceChanged()
299 CachedBluetoothDevice cachedDevice = mDeviceManager.findDevice(device); in onReceive()
317 CachedBluetoothDevice cachedDevice = mDeviceManager.findDevice(device); in onReceive()
339 CachedBluetoothDevice cachedDevice = mDeviceManager.findDevice(device); in onReceive()
402 CachedBluetoothDevice cachedDevice = mDeviceManager.findDevice(device); in onReceive()
411 CachedBluetoothDevice cachedDevice = mDeviceManager.findDevice(device); in onReceive()
420 CachedBluetoothDevice cachedDevice = mDeviceManager.findDevice(device); in onReceive()
[all …]
/aosp12/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/bluetooth/
H A DCachedBluetoothDeviceManagerTest.java78 private CachedBluetoothDevice mCachedDevice1;
79 private CachedBluetoothDevice mCachedDevice2;
80 private CachedBluetoothDevice mCachedDevice3;
121 CachedBluetoothDevice cachedDevice1 = mCachedDeviceManager.addDevice(mDevice1); in addDevice_validCachedDevices_devicesAdded()
123 CachedBluetoothDevice cachedDevice2 = mCachedDeviceManager.addDevice(mDevice2); in addDevice_validCachedDevices_devicesAdded()
141 CachedBluetoothDevice cachedDevice1 = mCachedDeviceManager.addDevice(mDevice1); in addDevice_sameHiSyncId_validSubDevice()
142 CachedBluetoothDevice cachedDevice2 = mCachedDeviceManager.addDevice(mDevice2); in addDevice_sameHiSyncId_validSubDevice()
154 CachedBluetoothDevice cachedDevice1 = mCachedDeviceManager.addDevice(mDevice1); in addDevice_differentHiSyncId_validSubDevice()
155 CachedBluetoothDevice cachedDevice2 = mCachedDeviceManager.addDevice(mDevice2); in addDevice_differentHiSyncId_validSubDevice()
167 CachedBluetoothDevice cachedDevice1 = mCachedDeviceManager.addDevice(mDevice1); in addDevice_sameHiSyncId_validCachedDevices_mainDevicesAdded_subDevicesNotAdded()
[all …]
/aosp12/packages/apps/Car/Settings/src/com/android/car/settings/bluetooth/
H A DBluetoothDevicesGroupPreferenceController.java32 import com.android.settingslib.bluetooth.CachedBluetoothDevice;
55 private final Map<CachedBluetoothDevice, BluetoothDevicePreference> mPreferenceMap =
102 protected abstract void onDeviceClicked(CachedBluetoothDevice cachedDevice); in onDeviceClicked()
108 protected Map<CachedBluetoothDevice, BluetoothDevicePreference> getPreferenceMap() { in getPreferenceMap()
115 Collection<CachedBluetoothDevice> cachedDevices = in updateState()
120 for (CachedBluetoothDevice deviceToRemove : devicesToRemove) { in updateState()
124 for (CachedBluetoothDevice cachedDevice : cachedDevices) { in updateState()
147 public final void onDeviceAdded(CachedBluetoothDevice cachedDevice) { in onDeviceAdded()
152 public final void onDeviceDeleted(CachedBluetoothDevice cachedDevice) { in onDeviceDeleted()
156 private void addPreference(CachedBluetoothDevice cachedDevice) { in addPreference()
[all …]
H A DBluetoothDevicePreferenceController.java28 import com.android.settingslib.bluetooth.CachedBluetoothDevice;
42 private final CachedBluetoothDevice.Callback mDeviceCallback = this::refreshUi;
43 private CachedBluetoothDevice mCachedDevice;
55 public void setCachedDevice(CachedBluetoothDevice device) { in setCachedDevice()
62 public CachedBluetoothDevice getCachedDevice() { in getCachedDevice()
H A DBluetoothPreferenceController.java34 import com.android.settingslib.bluetooth.CachedBluetoothDevice;
118 public void onDeviceAdded(CachedBluetoothDevice cachedDevice) { in onDeviceAdded()
122 public void onDeviceDeleted(CachedBluetoothDevice cachedDevice) { in onDeviceDeleted()
126 public void onDeviceBondStateChanged(CachedBluetoothDevice cachedDevice, int bondState) { in onDeviceBondStateChanged()
130 public void onConnectionStateChanged(CachedBluetoothDevice cachedDevice, int state) { in onConnectionStateChanged()
134 public void onActiveDeviceChanged(CachedBluetoothDevice activeDevice, int bluetoothProfile) { in onActiveDeviceChanged()
H A DBluetoothDeviceProfilePreference.java24 import com.android.settingslib.bluetooth.CachedBluetoothDevice;
34 private final CachedBluetoothDevice mCachedDevice;
35 private final CachedBluetoothDevice.Callback mDeviceCallback = this::refreshUi;
38 CachedBluetoothDevice cachedDevice) { in BluetoothDeviceProfilePreference()
56 public CachedBluetoothDevice getCachedDevice() { in getCachedDevice()
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
H A DBluetoothControllerImpl.java36 import com.android.settingslib.bluetooth.CachedBluetoothDevice;
126 for (CachedBluetoothDevice device : getDevices()) { in dump()
150 public int getBondState(CachedBluetoothDevice device) { in getBondState()
156 List<CachedBluetoothDevice> out; in getConnectedDevices()
222 public void connect(final CachedBluetoothDevice device) { in connect()
228 public void disconnect(CachedBluetoothDevice device) { in disconnect()
244 public Collection<CachedBluetoothDevice> getDevices() { in getDevices()
256 for (CachedBluetoothDevice device : getDevices()) { in updateConnected()
285 for (CachedBluetoothDevice device : getDevices()) { in updateActive()
301 for (CachedBluetoothDevice device : getDevices()) { in updateAudioProfile()
[all …]
H A DBluetoothController.java19 import com.android.settingslib.bluetooth.CachedBluetoothDevice;
38 Collection<CachedBluetoothDevice> getDevices(); in getDevices()
39 void connect(CachedBluetoothDevice device); in connect()
40 void disconnect(CachedBluetoothDevice device); in disconnect()
43 int getMaxConnectionState(CachedBluetoothDevice device); in getMaxConnectionState()
44 int getBondState(CachedBluetoothDevice device); in getBondState()
45 List<CachedBluetoothDevice> getConnectedDevices(); in getConnectedDevices()
/aosp12/packages/apps/Settings/src/com/android/settings/bluetooth/
H A DBluetoothDeviceUpdater.java35 import com.android.settingslib.bluetooth.CachedBluetoothDevice;
121 final Collection<CachedBluetoothDevice> cachedDevices = in forceUpdate()
136 final Collection<CachedBluetoothDevice> cachedDevices = in removeAllDevicesFromPreference()
138 for (CachedBluetoothDevice cachedBluetoothDevice : cachedDevices) { in removeAllDevicesFromPreference()
153 public void onDeviceAdded(CachedBluetoothDevice cachedDevice) { in onDeviceAdded()
158 public void onDeviceDeleted(CachedBluetoothDevice cachedDevice) { in onDeviceDeleted()
221 protected void update(CachedBluetoothDevice cachedBluetoothDevice) { in update()
233 protected void addPreference(CachedBluetoothDevice cachedDevice) { in addPreference()
241 protected void addPreference(CachedBluetoothDevice cachedDevice, in addPreference()
263 protected void removePreference(CachedBluetoothDevice cachedDevice) { in removePreference()
[all …]
H A DSavedBluetoothDeviceUpdater.java29 import com.android.settingslib.bluetooth.CachedBluetoothDevice;
67 final CachedBluetoothDevice cachedDevice = cachedManager.findDevice(device); in forceUpdate()
81 final CachedBluetoothDevice cachedDevice = cachedManager.findDevice(device); in removePreferenceIfNecessary()
90 public void update(CachedBluetoothDevice cachedDevice) { in update()
100 public boolean isFilterMatched(CachedBluetoothDevice cachedDevice) { in isFilterMatched()
114 final CachedBluetoothDevice device = ((BluetoothDevicePreference) preference) in onPreferenceClick()
H A DDeviceListPreferenceFragment.java35 import com.android.settingslib.bluetooth.CachedBluetoothDevice;
74 final HashMap<CachedBluetoothDevice, BluetoothDevicePreference> mDevicePreferenceMap =
141 Collection<CachedBluetoothDevice> cachedDevices = in addCachedDevices()
143 for (CachedBluetoothDevice cachedDevice : cachedDevices) { in addCachedDevices()
157 CachedBluetoothDevice device = btPreference.getCachedDevice(); in onPreferenceTreeClick()
172 public void onDeviceAdded(CachedBluetoothDevice cachedDevice) { in onDeviceAdded()
185 void createDevicePreference(CachedBluetoothDevice cachedDevice) { in createDevicePreference()
222 public void onDeviceDeleted(CachedBluetoothDevice cachedDevice) { in onDeviceDeleted()
/aosp12/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/
H A DBluetoothControllerImplTest.java37 import com.android.settingslib.bluetooth.CachedBluetoothDevice;
65 private List<CachedBluetoothDevice> mDevices;
91 CachedBluetoothDevice device = mock(CachedBluetoothDevice.class); in testNoConnectionWithDevices()
104 CachedBluetoothDevice device = mock(CachedBluetoothDevice.class); in testDefaultConnectionState()
112 CachedBluetoothDevice device = mock(CachedBluetoothDevice.class); in testAsyncBondState()
128 CachedBluetoothDevice device = mock(CachedBluetoothDevice.class); in testAsyncConnectionState()
146 CachedBluetoothDevice device = mock(CachedBluetoothDevice.class); in testNullAsync_DoesNotCrash()
199 CachedBluetoothDevice device = mock(CachedBluetoothDevice.class); in testOnACLConnectionStateChange_updatesBluetoothStateOnConnection()
218 CachedBluetoothDevice device = mock(CachedBluetoothDevice.class); in testOnActiveDeviceChanged_updatesAudioActive()
/aosp12/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/utils/leaks/
H A DFakeBluetoothController.java19 import com.android.settingslib.bluetooth.CachedBluetoothDevice;
80 public Collection<CachedBluetoothDevice> getDevices() { in getDevices()
85 public void connect(CachedBluetoothDevice device) { in connect()
90 public void disconnect(CachedBluetoothDevice device) { in disconnect()
100 public int getMaxConnectionState(CachedBluetoothDevice device) { in getMaxConnectionState()
105 public int getBondState(CachedBluetoothDevice device) { in getBondState()
110 public List<CachedBluetoothDevice> getConnectedDevices() { in getConnectedDevices()
/aosp12/packages/apps/Car/Settings/src/com/android/car/settings/qc/
H A DPairedBluetoothDevicesWorker.java23 import com.android.settingslib.bluetooth.CachedBluetoothDevice;
63 public void onDeviceAdded(CachedBluetoothDevice cachedDevice) { in onDeviceAdded()
68 public void onDeviceDeleted(CachedBluetoothDevice cachedDevice) { in onDeviceDeleted()
73 public void onDeviceBondStateChanged(CachedBluetoothDevice cachedDevice, int bondState) { in onDeviceBondStateChanged()
78 public void onConnectionStateChanged(CachedBluetoothDevice cachedDevice, int state) { in onConnectionStateChanged()
83 public void onActiveDeviceChanged(CachedBluetoothDevice activeDevice, int bluetoothProfile) { in onActiveDeviceChanged()
88 public void onProfileConnectionStateChanged(CachedBluetoothDevice cachedDevice, in onProfileConnectionStateChanged()
H A DPairedBluetoothDevices.java47 import com.android.settingslib.bluetooth.CachedBluetoothDevice;
105 Collection<CachedBluetoothDevice> cachedDevices = in getQCItem()
112 List<CachedBluetoothDevice> filteredDevices = new ArrayList<>(); in getQCItem()
113 for (CachedBluetoothDevice cachedDevice : cachedDevices) { in getQCItem()
133 CachedBluetoothDevice cachedDevice = filteredDevices.get(j); in getQCItem()
160 CachedBluetoothDevice device = null; in onNotifyChange()
161 Collection<CachedBluetoothDevice> cachedDevices = in onNotifyChange()
163 for (CachedBluetoothDevice cachedDevice : cachedDevices) { in onNotifyChange()
212 private String getSubtitle(CachedBluetoothDevice device) { in getSubtitle()
222 private int getIconRes(CachedBluetoothDevice device) { in getIconRes()
[all …]
/aosp12/packages/apps/Settings/tests/robotests/src/com/android/settings/bluetooth/
H A DAvailableMediaBluetoothDeviceUpdaterTest.java38 import com.android.settingslib.bluetooth.CachedBluetoothDevice;
64 private CachedBluetoothDevice mCachedBluetoothDevice;
72 private Collection<CachedBluetoothDevice> mCachedDevices;
110 isDeviceConnected(any(CachedBluetoothDevice.class))).thenReturn(true); in onAudioModeChanged_hfpDeviceConnected_inCall_addPreference()
123 isDeviceConnected(any(CachedBluetoothDevice.class))).thenReturn(true); in onAudioModeChanged_hfpDeviceConnected_notInCall_removePreference()
136 isDeviceConnected(any(CachedBluetoothDevice.class))).thenReturn(true); in onAudioModeChanged_a2dpDeviceConnected_inCall_removePreference()
149 isDeviceConnected(any(CachedBluetoothDevice.class))).thenReturn(true); in onAudioModeChanged_a2dpDeviceConnected_notInCall_addPreference()
162 isDeviceConnected(any(CachedBluetoothDevice.class))).thenReturn(true); in onProfileConnectionStateChanged_a2dpDeviceConnected_notInCall_addPreference()
175 isDeviceConnected(any(CachedBluetoothDevice.class))).thenReturn(true); in onProfileConnectionStateChanged_a2dpDeviceConnected_inCall_removePreference()
188 isDeviceConnected(any(CachedBluetoothDevice.class))).thenReturn(true); in onProfileConnectionStateChanged_hfpDeviceConnected_notInCall_removePreference()
[all …]
H A DConnectedBluetoothDeviceUpdaterTest.java40 import com.android.settingslib.bluetooth.CachedBluetoothDevice;
67 private CachedBluetoothDevice mCachedBluetoothDevice;
75 private Collection<CachedBluetoothDevice> mCachedDevices;
109 isDeviceConnected(any(CachedBluetoothDevice.class))).thenReturn(true); in onAudioModeChanged_hfpDeviceConnected_notInCall_addPreference()
122 isDeviceConnected(any(CachedBluetoothDevice.class))).thenReturn(true); in onAudioModeChanged_hfpDeviceConnected_inCall_removePreference()
135 isDeviceConnected(any(CachedBluetoothDevice.class))).thenReturn(true); in onAudioModeChanged_a2dpDeviceConnected_notInCall_removePreference()
148 isDeviceConnected(any(CachedBluetoothDevice.class))).thenReturn(true); in onAudioModeChanged_a2dpDeviceConnected_inCall_addPreference()
161 isDeviceConnected(any(CachedBluetoothDevice.class))).thenReturn(true); in onProfileConnectionStateChanged_a2dpDeviceConnected_inCall_addPreference()
174 isDeviceConnected(any(CachedBluetoothDevice.class))).thenReturn(true); in onProfileConnectionStateChanged_a2dpDeviceConnected_notInCall_removePreference()
187 isDeviceConnected(any(CachedBluetoothDevice.class))).thenReturn(true); in onProfileConnectionStateChanged_hfpDeviceConnected_inCall_removePreference()
[all …]
/aosp12/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/bluetooth/
H A DBluetoothDevicePreferenceTest.java38 import com.android.settingslib.bluetooth.CachedBluetoothDevice;
54 private CachedBluetoothDevice mCachedDevice;
76 verify(mCachedDevice).registerCallback(any(CachedBluetoothDevice.Callback.class)); in onAttached_registersDeviceCallback()
163 ArgumentCaptor<CachedBluetoothDevice.Callback> callbackCaptor = ArgumentCaptor.forClass( in onDetached_unregistersDeviceCallback()
164 CachedBluetoothDevice.Callback.class); in onDetached_unregistersDeviceCallback()
180 ArgumentCaptor<CachedBluetoothDevice.Callback> callbackCaptor = ArgumentCaptor.forClass( in onDeviceAttributesChanged_refreshesUi()
181 CachedBluetoothDevice.Callback.class); in onDeviceAttributesChanged_refreshesUi()
213 mock(CachedBluetoothDevice.class)); in equals_devicesNotEqual_returnsFalse()
220 CachedBluetoothDevice otherDevice = mock(CachedBluetoothDevice.class); in compareTo_sameType_usesDeviceCompareTo()
/aosp12/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/
H A DNotificationBackendTest.java38 import com.android.settingslib.bluetooth.CachedBluetoothDevice;
172 Collection<CachedBluetoothDevice> cachedDevices = new ArrayList<>(); in getDeviceList_noAssociations()
173 CachedBluetoothDevice cbd1 = mock(CachedBluetoothDevice.class); in getDeviceList_noAssociations()
201 Collection<CachedBluetoothDevice> cachedDevices = new ArrayList<>(); in getDeviceList_singleDevice()
202 CachedBluetoothDevice cbd1 = mock(CachedBluetoothDevice.class); in getDeviceList_singleDevice()
217 Collection<CachedBluetoothDevice> cachedDevices = new ArrayList<>(); in getDeviceList_multipleDevices()
218 CachedBluetoothDevice cbd1 = mock(CachedBluetoothDevice.class); in getDeviceList_multipleDevices()
223 CachedBluetoothDevice cbd2 = mock(CachedBluetoothDevice.class); in getDeviceList_multipleDevices()
/aosp12/packages/apps/Settings/tests/robotests/src/com/android/settings/testutils/shadow/
H A DShadowCachedBluetoothDeviceManager.java19 import com.android.settingslib.bluetooth.CachedBluetoothDevice;
34 private Collection<CachedBluetoothDevice> mCachedDevices;
36 public void setCachedDevicesCopy(Collection<CachedBluetoothDevice> cachedDevices) { in setCachedDevicesCopy()
41 protected synchronized Collection<CachedBluetoothDevice> getCachedDevicesCopy() { in getCachedDevicesCopy()
/aosp12/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/bluetooth/
H A DBluetoothDevicePreferenceControllerTest.java43 import com.android.settingslib.bluetooth.CachedBluetoothDevice;
65 private CachedBluetoothDevice mDevice;
113 verify(mDevice).registerCallback(any(CachedBluetoothDevice.Callback.class)); in onStart_registersDeviceCallback()
119 ArgumentCaptor<CachedBluetoothDevice.Callback> callbackCaptor = ArgumentCaptor.forClass( in onStop_unregistersDeviceCallback()
120 CachedBluetoothDevice.Callback.class); in onStop_unregistersDeviceCallback()
131 ArgumentCaptor<CachedBluetoothDevice.Callback> callbackCaptor = ArgumentCaptor.forClass( in started_onDeviceAttributesChanged_refreshesUi()
132 CachedBluetoothDevice.Callback.class); in started_onDeviceAttributesChanged_refreshesUi()
/aosp12/packages/apps/Settings/src/com/android/settings/homepage/contextualcards/slices/
H A DBluetoothDevicesSlice.java51 import com.android.settingslib.bluetooth.CachedBluetoothDevice;
158 for (CachedBluetoothDevice device : getPairedBluetoothDevices()) { in onNotifyChange()
176 List<CachedBluetoothDevice> getPairedBluetoothDevices() { in getPairedBluetoothDevices()
177 final List<CachedBluetoothDevice> bluetoothDeviceList = new ArrayList<>(); in getPairedBluetoothDevices()
191 final Collection<CachedBluetoothDevice> cachedDevices = in getPairedBluetoothDevices()
201 PendingIntent getBluetoothDetailIntent(CachedBluetoothDevice device) { in getBluetoothDetailIntent()
219 IconCompat getBluetoothDeviceIcon(CachedBluetoothDevice device) { in getBluetoothDeviceIcon()
290 final List<CachedBluetoothDevice> pairedDevices = getPairedBluetoothDevices(); in getBluetoothRowBuilders()
300 for (CachedBluetoothDevice device : pairedDevices) { in getBluetoothRowBuilders()
345 SliceAction buildPrimaryBluetoothAction(CachedBluetoothDevice bluetoothDevice) { in buildPrimaryBluetoothAction()
[all …]

12345