Home
last modified time | relevance | path

Searched refs:BluetoothLeBroadcastMetadata (Results 1 – 25 of 70) sorted by relevance

123

/packages/modules/Bluetooth/android/leaudio/app/src/main/java/com/android/bluetooth/leaudio/
DBroadcastScanViewModel.java22 import android.bluetooth.BluetoothLeBroadcastMetadata;
46 private MutableLiveData<List<BluetoothLeBroadcastMetadata>> mAllBroadcasts =
48 private HashMap<Integer, BluetoothLeBroadcastMetadata> mScanSessionBroadcasts = new HashMap<>();
53 public void onSourceFound(BluetoothLeBroadcastMetadata source) {
62 List<BluetoothLeBroadcastMetadata> localSessionBroadcasts =
64 ArrayList<BluetoothLeBroadcastMetadata> new_arr;
109 int broadcastId, BluetoothLeBroadcastMetadata metadata) {
129 public LiveData<List<BluetoothLeBroadcastMetadata>> getAllBroadcasts() { in getAllBroadcasts()
138 List<BluetoothLeBroadcastMetadata> localSessionBroadcasts = in scanForBroadcasts()
140 ArrayList<BluetoothLeBroadcastMetadata> new_arr; in scanForBroadcasts()
[all …]
DBroadcastItemsAdapter.java20 import android.bluetooth.BluetoothLeBroadcastMetadata;
39 private List<BluetoothLeBroadcastMetadata> mBroadcastMetadataList = new ArrayList<>();
59 BluetoothLeBroadcastMetadata meta = mBroadcastMetadataList.get(position); in onBindViewHolder()
96 public void updateBroadcastsMetadata(List<BluetoothLeBroadcastMetadata> broadcasts) { in updateBroadcastsMetadata()
101 public void updateBroadcastMetadata(BluetoothLeBroadcastMetadata broadcast) { in updateBroadcastMetadata()
118 public void setBroadcasts(List<BluetoothLeBroadcastMetadata> broadcasts) { in setBroadcasts()
122 for (BluetoothLeBroadcastMetadata b : broadcasts) { in setBroadcasts()
DBroadcastScanActivity.java23 import android.bluetooth.BluetoothLeBroadcastMetadata;
61 BluetoothLeBroadcastMetadata broadcast = null; in onCreate()
62 for (BluetoothLeBroadcastMetadata b : in onCreate()
119 BluetoothLeBroadcastMetadata.Builder builder = in onCreate()
120 new BluetoothLeBroadcastMetadata.Builder(broadcast); in onCreate()
131 BluetoothLeBroadcastMetadata metadata; in onCreate()
DBroadcasterViewModel.java21 import android.bluetooth.BluetoothLeBroadcastMetadata;
59 public List<BluetoothLeBroadcastMetadata> getAllBroadcastMetadata() { in getAllBroadcastMetadata()
67 public LiveData<BluetoothLeBroadcastMetadata> getBroadcastUpdateMetadataLive() { in getBroadcastUpdateMetadataLive()
/packages/apps/Settings/src/com/android/settings/connecteddevice/audiosharing/audiostreams/
DAudioStreamPreference.java19 import android.bluetooth.BluetoothLeBroadcastMetadata;
77 void setAudioStreamMetadata(BluetoothLeBroadcastMetadata metadata) { in setAudioStreamMetadata()
100 BluetoothLeBroadcastMetadata getAudioStreamMetadata() { in getAudioStreamMetadata()
140 BluetoothLeBroadcastMetadata source, in fromMetadata()
167 @Nullable private BluetoothLeBroadcastMetadata mMetadata;
174 BluetoothLeBroadcastMetadata metadata, in AudioStream()
211 private BluetoothLeBroadcastMetadata getMetadata() { in getMetadata()
219 private void setMetadata(BluetoothLeBroadcastMetadata metadata) { in setMetadata()
DAudioStreamsRepository.java19 import android.bluetooth.BluetoothLeBroadcastMetadata;
57 private final ConcurrentHashMap<Integer, BluetoothLeBroadcastMetadata>
65 void cacheMetadata(BluetoothLeBroadcastMetadata metadata) { in cacheMetadata()
83 BluetoothLeBroadcastMetadata getCachedMetadata(int broadcastId) { in getCachedMetadata()
101 void saveMetadata(Context context, BluetoothLeBroadcastMetadata metadata) { in saveMetadata()
133 BluetoothLeBroadcastMetadata getSavedMetadata(Context context, int broadcastId) { in getSavedMetadata()
DAudioStreamsQrCodeFragment.java20 import android.bluetooth.BluetoothLeBroadcastMetadata;
66 BluetoothLeBroadcastMetadata broadcastMetadata = getBroadcastMetadata(); in onViewCreated()
101 private Optional<Bitmap> getQrCodeBitmap(@Nullable BluetoothLeBroadcastMetadata metadata) { in getQrCodeBitmap()
130 private BluetoothLeBroadcastMetadata getBroadcastMetadata() { in getBroadcastMetadata()
140 List<BluetoothLeBroadcastMetadata> metadata = in getBroadcastMetadata()
DAudioStreamsProgressCategoryController.java23 import android.bluetooth.BluetoothLeBroadcastMetadata;
103 private @Nullable BluetoothLeBroadcastMetadata mSourceFromQrCode;
155 BluetoothLeBroadcastMetadata source, SourceOriginForLogging sourceOriginForLogging) { in setSourceFromQrCode()
175 void handleSourceFound(BluetoothLeBroadcastMetadata source) { in handleSourceFound()
214 new BluetoothLeBroadcastMetadata.Builder(source) in handleSourceFound()
252 new BluetoothLeBroadcastMetadata.Builder(mSourceFromQrCode) in maybeUpdateId()
436 AudioStreamPreference preference, BluetoothLeBroadcastMetadata metadata) { in handleSourceAddRequest()
540 BluetoothLeBroadcastMetadata metadata, in addNewPreference()
DAudioStreamsProgressCategoryCallback.java20 import android.bluetooth.BluetoothLeBroadcastMetadata;
81 BluetoothDevice sink, BluetoothLeBroadcastMetadata source, int reason) { in onSourceAddFailed()
87 public void onSourceFound(BluetoothLeBroadcastMetadata source) { in onSourceFound()
DAudioStreamsBroadcastAssistantCallback.java21 import android.bluetooth.BluetoothLeBroadcastMetadata;
74 BluetoothDevice sink, BluetoothLeBroadcastMetadata source, int reason) { in onSourceAddFailed()
102 public void onSourceFound(BluetoothLeBroadcastMetadata source) { in onSourceFound()
DSyncedState.java20 import android.bluetooth.BluetoothLeBroadcastMetadata;
82 BluetoothLeBroadcastMetadata source, in launchPasswordDialog()
105 new BluetoothLeBroadcastMetadata.Builder(source) in launchPasswordDialog()
DAudioStreamsDashboardFragment.java23 import android.bluetooth.BluetoothLeBroadcastMetadata;
82 KEY_BROADCAST_METADATA, BluetoothLeBroadcastMetadata.class); in onAttach()
114 BluetoothLeBroadcastMetadata source = in onActivityResult()
/packages/modules/Bluetooth/framework/java/android/bluetooth/
DBluetoothLeBroadcastMetadata.java48 public final class BluetoothLeBroadcastMetadata implements Parcelable { class
120 private BluetoothLeBroadcastMetadata( in BluetoothLeBroadcastMetadata() method in BluetoothLeBroadcastMetadata
153 if (!(o instanceof BluetoothLeBroadcastMetadata)) { in equals()
156 final BluetoothLeBroadcastMetadata other = (BluetoothLeBroadcastMetadata) o; in equals()
457 public static final Creator<BluetoothLeBroadcastMetadata> CREATOR =
459 public @NonNull BluetoothLeBroadcastMetadata createFromParcel(@NonNull Parcel in) {
496 public @NonNull BluetoothLeBroadcastMetadata[] newArray(int size) {
497 return new BluetoothLeBroadcastMetadata[size];
541 public Builder(@NonNull BluetoothLeBroadcastMetadata original) { in Builder()
819 public @NonNull BluetoothLeBroadcastMetadata build() { in build()
[all …]
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/bass_client/
DPublicBroadcastData.java19 import android.bluetooth.BluetoothLeBroadcastMetadata;
45 audioConfigQuality = BluetoothLeBroadcastMetadata.AUDIO_CONFIG_QUALITY_NONE; in PublicBroadcastInfo()
80 BluetoothLeBroadcastMetadata.AUDIO_CONFIG_QUALITY_NONE; in parsePublicBroadcastData()
83 BluetoothLeBroadcastMetadata.AUDIO_CONFIG_QUALITY_STANDARD; in parsePublicBroadcastData()
87 BluetoothLeBroadcastMetadata.AUDIO_CONFIG_QUALITY_HIGH; in parsePublicBroadcastData()
DBassClientStateMachine.java33 import android.bluetooth.BluetoothLeBroadcastMetadata;
123 private final Map<Integer, BluetoothLeBroadcastMetadata> mCurrentMetadata = new HashMap();
149 @VisibleForTesting BluetoothLeBroadcastMetadata mPendingMetadata = null;
150 private BluetoothLeBroadcastMetadata mSetBroadcastPINMetadata = null;
156 @VisibleForTesting BluetoothLeBroadcastMetadata mPendingSourceToAdd = null;
164 @VisibleForTesting BluetoothLeBroadcastMetadata mPendingSourceToSwitch = null;
272 BluetoothLeBroadcastMetadata getCurrentBroadcastMetadata(Integer sourceId) { in getCurrentBroadcastMetadata()
277 Integer sourceId, BluetoothLeBroadcastMetadata metadata) { in setCurrentBroadcastMetadata()
591 private BluetoothLeBroadcastMetadata getBroadcastMetadataFromBaseData( in getBroadcastMetadataFromBaseData()
598 BluetoothLeBroadcastMetadata.Builder metaData = new BluetoothLeBroadcastMetadata.Builder(); in getBroadcastMetadataFromBaseData()
[all …]
DBassClientService.java37 import android.bluetooth.BluetoothLeBroadcastMetadata;
144 private final Map<BluetoothDevice, BluetoothLeBroadcastMetadata> mBroadcastMetadataMap =
257 BluetoothLeBroadcastMetadata mSourceMetadata;
262 BluetoothLeBroadcastMetadata sourceMetadata, in AddSourceData()
828 == ((BluetoothLeBroadcastMetadata) in checkForPendingGroupOpRequest()
835 BluetoothLeBroadcastMetadata metadata = (BluetoothLeBroadcastMetadata) obj; in checkForPendingGroupOpRequest()
840 == ((BluetoothLeBroadcastMetadata) m.second) in checkForPendingGroupOpRequest()
969 private Pair<BluetoothLeBroadcastMetadata, Map<BluetoothDevice, Integer>>
979 return new Pair<BluetoothLeBroadcastMetadata, Map<BluetoothDevice, Integer>>( in getGroupManagedDeviceSources()
983 BluetoothLeBroadcastMetadata metadata = in getGroupManagedDeviceSources()
[all …]
/packages/modules/Bluetooth/android/app/aidl/android/bluetooth/
DIBluetoothLeBroadcastAssistantCallback.aidl20 import android.bluetooth.BluetoothLeBroadcastMetadata;
33 void onSourceFound(in BluetoothLeBroadcastMetadata source); in onSourceFound()
35 void onSourceAddFailed(in BluetoothDevice sink, in BluetoothLeBroadcastMetadata source, in onSourceAddFailed()
DIBluetoothLeBroadcastAssistant.aidl20 import android.bluetooth.BluetoothLeBroadcastMetadata;
53 …void addSource(in BluetoothDevice sink, in BluetoothLeBroadcastMetadata sourceMetadata, in boolean… in addSource()
55 …void modifySource(in BluetoothDevice sink, in int sourceId, in BluetoothLeBroadcastMetadata update… in modifySource()
DIBluetoothLeBroadcastCallback.aidl19 import android.bluetooth.BluetoothLeBroadcastMetadata;
43 void onBroadcastMetadataChanged(in int broadcastId, in BluetoothLeBroadcastMetadata metadata); in onBroadcastMetadataChanged()
/packages/apps/Settings/src/com/android/settings/bluetooth/
DBluetoothBroadcastSourcePreference.java20 import android.bluetooth.BluetoothLeBroadcastMetadata;
48 private BluetoothLeBroadcastMetadata mBluetoothLeBroadcastMetadata;
111 public void updateMetadataAndRefreshUi(BluetoothLeBroadcastMetadata source, boolean status) { in updateMetadataAndRefreshUi()
134 public BluetoothLeBroadcastMetadata getBluetoothLeBroadcastMetadata() { in getBluetoothLeBroadcastMetadata()
DBluetoothFindBroadcastsFragment.java27 import android.bluetooth.BluetoothLeBroadcastMetadata;
121 public void onSourceFound(@NonNull BluetoothLeBroadcastMetadata source) {
144 @NonNull BluetoothLeBroadcastMetadata source, int reason) {
262 BluetoothLeBroadcastMetadata source = convertToBroadcastMetadata(broadcastMetadata); in onActivityResult()
363 private void updateListCategoryFromBroadcastMetadata(BluetoothLeBroadcastMetadata source, in updateListCategoryFromBroadcastMetadata()
453 BluetoothLeBroadcastMetadata metadata = in addBroadcastCodeIntoPreference()
454 new BluetoothLeBroadcastMetadata.Builder(pref.getBluetoothLeBroadcastMetadata()) in addBroadcastCodeIntoPreference()
573 private BluetoothLeBroadcastMetadata convertToBroadcastMetadata(String qrCodeString) { in convertToBroadcastMetadata()
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/bass_client/
DPublicBroadcastDataTest.java21 import android.bluetooth.BluetoothLeBroadcastMetadata;
43 (BluetoothLeBroadcastMetadata.AUDIO_CONFIG_QUALITY_STANDARD in publicBroadcastInfo()
44 | BluetoothLeBroadcastMetadata.AUDIO_CONFIG_QUALITY_HIGH); in publicBroadcastInfo()
DPeriodicAdvertisementResultTest.java23 import android.bluetooth.BluetoothLeBroadcastMetadata;
152 (BluetoothLeBroadcastMetadata.AUDIO_CONFIG_QUALITY_STANDARD in generatePublicBroadcastData()
153 | BluetoothLeBroadcastMetadata.AUDIO_CONFIG_QUALITY_HIGH); in generatePublicBroadcastData()
DBassClientServiceTest.java47 import android.bluetooth.BluetoothLeBroadcastMetadata;
201 BluetoothLeBroadcastMetadata createBroadcastMetadata(int broadcastId) { in createBroadcastMetadata()
206 BluetoothLeBroadcastMetadata.Builder builder = in createBroadcastMetadata()
207 new BluetoothLeBroadcastMetadata.Builder() in createBroadcastMetadata()
512 BluetoothLeBroadcastMetadata meta = createBroadcastMetadata(TEST_BROADCAST_ID); in prepareConnectedDeviceGroup()
723 BluetoothLeBroadcastMetadata meta = createBroadcastMetadata(TEST_BROADCAST_ID); in testStopSearchingForSources_addSourceCauseSyncEvenWithoutScanning()
793 BluetoothLeBroadcastMetadata meta = createBroadcastMetadata(TEST_BROADCAST_ID); in testStopSearchingForSources_timeoutForActiveSync()
830 BluetoothLeBroadcastMetadata meta = createBroadcastMetadata(TEST_BROADCAST_ID); in testStopSearchingForSources_clearTimeoutForActiveSync()
956 private void verifyAddSourceForGroup(BluetoothLeBroadcastMetadata meta) { in verifyAddSourceForGroup()
983 BluetoothLeBroadcastMetadata meta, in injectRemoteSourceState()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/connecteddevice/audiosharing/audiostreams/
DAudioStreamPreferenceTest.java25 import android.bluetooth.BluetoothLeBroadcastMetadata;
58 @Mock private BluetoothLeBroadcastMetadata mBluetoothLeBroadcastMetadata;
112 BluetoothLeBroadcastMetadata metadata = mock(BluetoothLeBroadcastMetadata.class); in setAudioStreamMetadata_shouldUpdateMetadata()

123