/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/le_audio/ |
D | LeAudioBroadcasterNativeInterface.java | 85 public void onBroadcastCreated(int broadcastId, boolean success) { in onBroadcastCreated() argument 86 Log.d(TAG, "onBroadcastCreated: broadcastId=" + broadcastId); in onBroadcastCreated() 90 event.valueInt1 = broadcastId; in onBroadcastCreated() 96 public void onBroadcastDestroyed(int broadcastId) { in onBroadcastDestroyed() argument 97 Log.d(TAG, "onBroadcastDestroyed: broadcastId=" + broadcastId); in onBroadcastDestroyed() 101 event.valueInt1 = broadcastId; in onBroadcastDestroyed() 106 public void onBroadcastStateChanged(int broadcastId, int state) { in onBroadcastStateChanged() argument 107 Log.d(TAG, "onBroadcastStateChanged: broadcastId=" + broadcastId + " state=" + state); in onBroadcastStateChanged() 118 event.valueInt1 = broadcastId; in onBroadcastStateChanged() 124 public void onBroadcastMetadataChanged(int broadcastId, BluetoothLeBroadcastMetadata metadata) { in onBroadcastMetadataChanged() argument [all …]
|
D | LeAudioService.java | 1185 public void startBroadcast(int broadcastId) { in startBroadcast() argument 1194 mDialingOutTimeoutEvent = new DialingOutTimeoutEvent(broadcastId); in startBroadcast() 1197 mLeAudioBroadcasterNativeInterface.startBroadcast(broadcastId); in startBroadcast() 1206 public void updateBroadcast(int broadcastId, BluetoothLeBroadcastSettings broadcastSettings) { in updateBroadcast() argument 1212 LeAudioBroadcastDescriptor descriptor = mBroadcastDescriptors.get(broadcastId); in updateBroadcast() 1217 broadcastId, in updateBroadcast() 1219 Log.e(TAG, "updateBroadcast: No valid descriptor for broadcastId: " + broadcastId); in updateBroadcast() 1235 broadcastId, in updateBroadcast() 1248 public void pauseBroadcast(Integer broadcastId) { in pauseBroadcast() argument 1254 LeAudioBroadcastDescriptor descriptor = mBroadcastDescriptors.get(broadcastId); in pauseBroadcast() [all …]
|
/packages/modules/Bluetooth/android/leaudio/app/src/main/java/com/android/bluetooth/leaudio/ |
D | BroadcastItemsAdapter.java | 60 Integer broadcastId = meta.getBroadcastId(); in onBindViewHolder() local 61 Boolean isPlaybackStateKnown = mBroadcastPlaybackMap.containsKey(broadcastId); in onBindViewHolder() 64 "ID: " + broadcastId + "(" + String.format("0x%06x", broadcastId) + ")"; in onBindViewHolder() 70 Boolean isPlaying = mBroadcastPlaybackMap.getOrDefault(broadcastId, false); in onBindViewHolder() 107 public void addBroadcasts(Integer broadcastId) { in addBroadcasts() argument 108 if (!mBroadcastPlaybackMap.containsKey(broadcastId)) in addBroadcasts() 109 mBroadcastPlaybackMap.put(broadcastId, false); in addBroadcasts() 112 public void removeBroadcast(Integer broadcastId) { in removeBroadcast() argument 113 mBroadcastMetadataList.removeIf(bc -> (broadcastId.equals(bc.getBroadcastId()))); in removeBroadcast() 114 mBroadcastPlaybackMap.remove(broadcastId); in removeBroadcast() [all …]
|
D | BluetoothProxy.java | 348 public void onBroadcastStarted(int reason, int broadcastId) { 353 + broadcastId 358 mBroadcastAddedMutableLive.postValue(broadcastId); 360 mLocalBroadcastEventListener.onBroadcastStarted(broadcastId); 371 public void onBroadcastStopped(int reason, int broadcastId) { 372 mBroadcastRemovedMutableLive.postValue(new Pair<>(reason, broadcastId)); 374 mLocalBroadcastEventListener.onBroadcastStopped(broadcastId); 385 public void onPlaybackStarted(int reason, int broadcastId) { 386 mBroadcastPlaybackStartedMutableLive.postValue(new Pair<>(reason, broadcastId)); 390 public void onPlaybackStopped(int reason, int broadcastId) { [all …]
|
D | BroadcasterViewModel.java | 47 public boolean stopBroadcast(int broadcastId) { in stopBroadcast() argument 48 return mBluetooth.stopBroadcast(broadcastId); in stopBroadcast() 51 public boolean updateBroadcast(int broadcastId, BluetoothLeBroadcastSettings settings) { in updateBroadcast() argument 52 return mBluetooth.updateBroadcast(broadcastId, settings); in updateBroadcast()
|
D | BroadcastScanViewModel.java | 91 public void onBroadcastStarted(int broadcastId) { 98 public void onBroadcastStopped(int broadcastId) { 103 public void onBroadcastUpdated(int broadcastId) { 109 int broadcastId, BluetoothLeBroadcastMetadata metadata) {
|
D | BroadcastScanActivity.java | 58 broadcastId -> { in onCreate() 64 if (Objects.equals(b.getBroadcastId(), broadcastId)) { in onCreate() 75 + broadcastId, in onCreate() 145 + broadcastId, in onCreate() 215 + broadcastId, in onCreate()
|
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/le_audio/ |
D | LeAudioBroadcastServiceTest.java | 145 public void onBroadcastStarted(int reason, int broadcastId) { 156 public void onBroadcastStopped(int reason, int broadcastId) { 166 public void onPlaybackStarted(int reason, int broadcastId) {} 169 public void onPlaybackStopped(int reason, int broadcastId) {} 172 public void onBroadcastUpdated(int reason, int broadcastId) { 177 public void onBroadcastUpdateFailed(int reason, int broadcastId) { 183 int broadcastId, BluetoothLeBroadcastMetadata metadata) {} 277 void verifyBroadcastStarted(int broadcastId, BluetoothLeBroadcastSettings settings) { in verifyBroadcastStarted() argument 301 create_event.valueInt1 = broadcastId; in verifyBroadcastStarted() 306 verify(mLeAudioBroadcasterNativeInterface, times(1)).startBroadcast(eq(broadcastId)); in verifyBroadcastStarted() [all …]
|
D | LeAudioBroadcasterNativeInterfaceTest.java | 60 int broadcastId = 1; in onBroadcastCreated() local 63 mNativeInterface.onBroadcastCreated(broadcastId, success); in onBroadcastCreated() 72 int broadcastId = 1; in onBroadcastDestroyed() local 74 mNativeInterface.onBroadcastDestroyed(broadcastId); in onBroadcastDestroyed() 84 int broadcastId = 1; in onBroadcastStateChanged() local 87 mNativeInterface.onBroadcastStateChanged(broadcastId, state); in onBroadcastStateChanged() 96 int broadcastId = 1; in onBroadcastMetadataChanged() local 99 mNativeInterface.onBroadcastMetadataChanged(broadcastId, metadata); in onBroadcastMetadataChanged()
|
/packages/modules/Bluetooth/framework/java/android/bluetooth/ |
D | BluetoothLeBroadcast.java | 71 public void onBroadcastStarted(int reason, int broadcastId) { 76 executor.execute(() -> callback.onBroadcastStarted(reason, broadcastId)); 91 public void onBroadcastStopped(int reason, int broadcastId) { 96 executor.execute(() -> callback.onBroadcastStopped(reason, broadcastId)); 111 public void onPlaybackStarted(int reason, int broadcastId) { 116 executor.execute(() -> callback.onPlaybackStarted(reason, broadcastId)); 121 public void onPlaybackStopped(int reason, int broadcastId) { 126 executor.execute(() -> callback.onPlaybackStopped(reason, broadcastId)); 131 public void onBroadcastUpdated(int reason, int broadcastId) { 136 executor.execute(() -> callback.onBroadcastUpdated(reason, broadcastId)); [all …]
|
/packages/modules/Bluetooth/android/app/aidl/android/bluetooth/ |
D | IBluetoothLeBroadcastCallback.aidl | 27 void onBroadcastStarted(in int reason, in int broadcastId); in onBroadcastStarted() argument 31 void onBroadcastStopped(in int reason, in int broadcastId); in onBroadcastStopped() argument 35 void onPlaybackStarted(in int reason, in int broadcastId); in onPlaybackStarted() argument 37 void onPlaybackStopped(in int reason, in int broadcastId); in onPlaybackStopped() argument 39 void onBroadcastUpdated(in int reason, in int broadcastId); in onBroadcastUpdated() argument 41 void onBroadcastUpdateFailed(in int reason, in int broadcastId); in onBroadcastUpdateFailed() argument 43 void onBroadcastMetadataChanged(in int broadcastId, in BluetoothLeBroadcastMetadata metadata); in onBroadcastMetadataChanged() argument
|
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/bass_client/ |
D | BassClientService.java | 392 BluetoothDevice device, int broadcastId) { in getPeriodicAdvertisementResult() argument 398 if (broadcastId == BassConstants.INVALID_BROADCAST_ID) { in getPeriodicAdvertisementResult() 404 return mPeriodicAdvertisementResultMap.get(device).get(broadcastId); in getPeriodicAdvertisementResult() 559 ScanResult getCachedBroadcast(int broadcastId) { in getCachedBroadcast() argument 560 return mCachedBroadcasts.get(broadcastId); in getCachedBroadcast() 711 int getSyncHandleForBroadcastId(int broadcastId) { in getSyncHandleForBroadcastId() argument 719 if (value == broadcastId) { in getSyncHandleForBroadcastId() 738 void updateSyncHandleForBroadcastId(int syncHandle, int broadcastId) { in updateSyncHandleForBroadcastId() argument 744 mSyncHandleToBroadcastIdMap.entrySet().removeIf(entry -> entry.getValue() == broadcastId); in updateSyncHandleForBroadcastId() 745 mSyncHandleToBroadcastIdMap.put(syncHandle, broadcastId); in updateSyncHandleForBroadcastId() [all …]
|
D | BassUtils.java | 40 int broadcastId; in parseBroadcastId() local 41 broadcastId = (0x00FF0000 & (broadcastIdBytes[2] << 16)); in parseBroadcastId() 42 broadcastId |= (0x0000FF00 & (broadcastIdBytes[1] << 8)); in parseBroadcastId() 43 broadcastId |= (0x000000FF & broadcastIdBytes[0]); in parseBroadcastId() 44 return broadcastId; in parseBroadcastId()
|
D | PeriodicAdvertisementResult.java | 42 int broadcastId, in PeriodicAdvertisementResult() argument 50 mBroadcastId = broadcastId; in PeriodicAdvertisementResult() 110 public void updateBroadcastId(int broadcastId) { in updateBroadcastId() argument 111 mBroadcastId = broadcastId; in updateBroadcastId()
|
/packages/apps/Settings/src/com/android/settings/connecteddevice/audiosharing/ |
D | AudioSharingCompatibilityPreferenceController.java | 66 public void onBroadcastStarted(int reason, int broadcastId) { 72 + broadcastId); 81 int broadcastId, @NonNull BluetoothLeBroadcastMetadata metadata) {} 84 public void onBroadcastStopped(int reason, int broadcastId) { 90 + broadcastId); 98 public void onBroadcastUpdated(int reason, int broadcastId) {} 101 public void onBroadcastUpdateFailed(int reason, int broadcastId) {} 104 public void onPlaybackStarted(int reason, int broadcastId) {} 107 public void onPlaybackStopped(int reason, int broadcastId) {}
|
D | AudioSharingPreferenceController.java | 58 public void onBroadcastStarted(int reason, int broadcastId) { 67 int broadcastId, @NonNull BluetoothLeBroadcastMetadata metadata) {} 70 public void onBroadcastStopped(int reason, int broadcastId) { 78 public void onBroadcastUpdated(int reason, int broadcastId) {} 81 public void onBroadcastUpdateFailed(int reason, int broadcastId) {} 84 public void onPlaybackStarted(int reason, int broadcastId) {} 87 public void onPlaybackStopped(int reason, int broadcastId) {}
|
D | AudioSharingNamePreferenceController.java | 63 int broadcastId, BluetoothLeBroadcastMetadata metadata) { 68 + broadcastId 79 public void onBroadcastStarted(int reason, int broadcastId) {} 85 public void onBroadcastStopped(int reason, int broadcastId) { 92 + broadcastId); 98 public void onBroadcastUpdateFailed(int reason, int broadcastId) { 103 public void onBroadcastUpdated(int reason, int broadcastId) { 110 public void onPlaybackStarted(int reason, int broadcastId) {} 113 public void onPlaybackStopped(int reason, int broadcastId) {}
|
D | AudioSharingSwitchBarController.java | 123 public void onBroadcastStarted(int reason, int broadcastId) { 129 + broadcastId); 143 int broadcastId, @NonNull BluetoothLeBroadcastMetadata metadata) { 147 + broadcastId 153 public void onBroadcastStopped(int reason, int broadcastId) { 159 + broadcastId); 172 public void onBroadcastUpdated(int reason, int broadcastId) {} 175 public void onBroadcastUpdateFailed(int reason, int broadcastId) {} 178 public void onPlaybackStarted(int reason, int broadcastId) { 184 + broadcastId); [all …]
|
D | AudioSharingDialogHandler.java | 69 public void onBroadcastStarted(int reason, int broadcastId) { 75 + broadcastId); 87 int broadcastId, @NonNull BluetoothLeBroadcastMetadata metadata) { 91 + broadcastId 97 public void onBroadcastStopped(int reason, int broadcastId) { 103 + broadcastId); 114 public void onBroadcastUpdated(int reason, int broadcastId) {} 117 public void onBroadcastUpdateFailed(int reason, int broadcastId) {} 120 public void onPlaybackStarted(int reason, int broadcastId) { 126 + broadcastId); [all …]
|
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/bass_client/ |
D | PeriodicAdvertisementResultTest.java | 51 int broadcastId = 5; in constructor() local 61 broadcastId, in constructor() 69 assertThat(result.getBroadcastId()).isEqualTo(broadcastId); in constructor() 80 int broadcastId = 5; in updateMethods() local 90 broadcastId, in updateMethods() 129 int broadcastId = 5; in print_doesNotCrash() local 139 broadcastId, in print_doesNotCrash()
|
/packages/apps/Settings/src/com/android/settings/sound/ |
D | MediaOutputPreferenceController.java | 66 public void onBroadcastStarted(int reason, int broadcastId) { 76 public void onBroadcastStopped(int reason, int broadcastId) { 86 public void onPlaybackStarted(int reason, int broadcastId) {} 89 public void onPlaybackStopped(int reason, int broadcastId) {} 92 public void onBroadcastUpdated(int reason, int broadcastId) {} 95 public void onBroadcastUpdateFailed(int reason, int broadcastId) {} 99 int broadcastId, @NonNull BluetoothLeBroadcastMetadata metadata) {}
|
/packages/modules/Permission/service/java/com/android/safetycenter/ |
D | SafetyCenterBroadcastDispatcher.java | 105 String broadcastId = in sendRefreshSafetySources() local 119 broadcastId, in sendRefreshSafetySources() 124 mSafetyCenterRefreshTracker.clearRefresh(broadcastId); in sendRefreshSafetySources() 128 return broadcastId; in sendRefreshSafetySources() 136 String broadcastId, in sendRefreshSafetySourcesBroadcast() argument 162 Intent intent = createRefreshIntent(refreshReason, packageName, sourceIds, broadcastId); in sendRefreshSafetySourcesBroadcast() 167 broadcastId, sourceIds, userId); in sendRefreshSafetySourcesBroadcast() 286 String broadcastId) { in createRefreshIntent() argument 293 .putExtra(EXTRA_REFRESH_SAFETY_SOURCES_BROADCAST_ID, broadcastId) in createRefreshIntent()
|
/packages/apps/Settings/src/com/android/settings/connecteddevice/audiosharing/audiostreams/ |
D | AudioStreamsRepository.java | 83 BluetoothLeBroadcastMetadata getCachedMetadata(int broadcastId) { in getCachedMetadata() argument 84 var metadata = mBroadcastIdToMetadataCacheMap.get(broadcastId); in getCachedMetadata() 133 BluetoothLeBroadcastMetadata getSavedMetadata(Context context, int broadcastId) { in getSavedMetadata() argument 144 if (savedMetadata == null || savedMetadata.getBroadcastId() != broadcastId) { in getSavedMetadata()
|
/packages/modules/Permission/tests/utils/safetycenter/java/com/android/safetycenter/testing/ |
D | SafetySourceIntentHandler.kt | 119 val broadcastId = intent.getStringExtra(EXTRA_REFRESH_SAFETY_SOURCES_BROADCAST_ID) in processRefreshSafetySources() constant 120 if (broadcastId.isNullOrEmpty()) { in processRefreshSafetySources() 137 broadcastId in processRefreshSafetySources() 143 refreshSafetySourcesChannel.send(broadcastId) in processRefreshSafetySources() 153 private fun createRefreshEvent(broadcastId: String) = in createRefreshEvent() 155 .setRefreshBroadcastId(broadcastId) in createRefreshEvent()
|
/packages/apps/Settings/src/com/android/settings/connecteddevice/ |
D | AvailableMediaDeviceGroupController.java | 84 int broadcastId, BluetoothLeBroadcastMetadata metadata) {} 90 public void onBroadcastStarted(int reason, int broadcastId) { 99 public void onBroadcastStopped(int reason, int broadcastId) { 105 public void onBroadcastUpdateFailed(int reason, int broadcastId) {} 108 public void onBroadcastUpdated(int reason, int broadcastId) {} 111 public void onPlaybackStarted(int reason, int broadcastId) {} 114 public void onPlaybackStopped(int reason, int broadcastId) {}
|