Home
last modified time | relevance | path

Searched refs:AudioSharingUtils (Results 1 – 25 of 36) sorted by relevance

12

/packages/apps/Settings/tests/robotests/src/com/android/settings/connecteddevice/audiosharing/
DAudioSharingDialogHandlerTest.java220 AudioSharingUtils.MetricKey.METRIC_KEY_SOURCE_PAGE_ID.ordinal(), in handleUserTriggeredNonLeaDeviceConnected_sharing_showStopDialog()
223 AudioSharingUtils.MetricKey.METRIC_KEY_PAGE_ID.ordinal(), in handleUserTriggeredNonLeaDeviceConnected_sharing_showStopDialog()
226 AudioSharingUtils.MetricKey.METRIC_KEY_USER_TRIGGERED.ordinal(), 1), in handleUserTriggeredNonLeaDeviceConnected_sharing_showStopDialog()
228 AudioSharingUtils.MetricKey.METRIC_KEY_DEVICE_COUNT_IN_SHARING in handleUserTriggeredNonLeaDeviceConnected_sharing_showStopDialog()
232 AudioSharingUtils.MetricKey.METRIC_KEY_CANDIDATE_DEVICE_COUNT in handleUserTriggeredNonLeaDeviceConnected_sharing_showStopDialog()
272 AudioSharingUtils.MetricKey.METRIC_KEY_SOURCE_PAGE_ID.ordinal(), in handleUserTriggeredLeaDeviceConnected_noSharingTwoLeaDevices_showJoinDialog()
275 AudioSharingUtils.MetricKey.METRIC_KEY_PAGE_ID.ordinal(), in handleUserTriggeredLeaDeviceConnected_noSharingTwoLeaDevices_showJoinDialog()
278 AudioSharingUtils.MetricKey.METRIC_KEY_USER_TRIGGERED.ordinal(), 1), in handleUserTriggeredLeaDeviceConnected_noSharingTwoLeaDevices_showJoinDialog()
280 AudioSharingUtils.MetricKey.METRIC_KEY_DEVICE_COUNT_IN_SHARING in handleUserTriggeredLeaDeviceConnected_noSharingTwoLeaDevices_showJoinDialog()
284 AudioSharingUtils.MetricKey.METRIC_KEY_CANDIDATE_DEVICE_COUNT in handleUserTriggeredLeaDeviceConnected_noSharingTwoLeaDevices_showJoinDialog()
[all …]
/packages/apps/Settings/src/com/android/settings/connecteddevice/audiosharing/
DAudioSharingDialogHandler.java81 AudioSharingUtils.toastMessage(
109 AudioSharingUtils.toastMessage(
128 AudioSharingUtils.addSourceToTargetSinks(mTargetSinks, mLocalBtManager);
179 boolean isLeAudioSupported = AudioSharingUtils.isLeAudioSupported(cachedDevice); in handleDeviceConnected()
199 AudioSharingUtils.fetchConnectedDevicesByGroupId(mLocalBtManager); in handleNonLeAudioDeviceConnected()
201 AudioSharingUtils.buildOrderedConnectedLeadAudioSharingDeviceItem( in handleNonLeAudioDeviceConnected()
206 AudioSharingUtils.stopBroadcasting(mLocalBtManager); in handleNonLeAudioDeviceConnected()
209 AudioSharingUtils.buildAudioSharingDialogEventData( in handleNonLeAudioDeviceConnected()
242 AudioSharingUtils.fetchConnectedDevicesByGroupId(mLocalBtManager); in handleLeAudioDeviceConnected()
246 int groupId = AudioSharingUtils.getGroupId(cachedDevice); in handleLeAudioDeviceConnected()
[all …]
DAudioSharingSwitchBarController.java234 AudioSharingUtils.toastMessage(
294 if (!AudioSharingUtils.isAudioSharingProfileReady(mProfileManager)) { in onStart()
323 boolean isBroadcasting = AudioSharingUtils.isBroadcasting(mBtManager); in onCheckedChanged()
342 AudioSharingUtils.postOnMainThread( in onCheckedChanged()
361 return AudioSharingUtils.isFeatureEnabled() ? AVAILABLE : UNSUPPORTED_ON_DEVICE; in getAvailabilityStatus()
367 if (AudioSharingUtils.isAudioSharingProfileReady(mProfileManager)) { in onServiceConnected()
418 if (!isAvailable() || !AudioSharingUtils.isAudioSharingProfileReady(mProfileManager)) { in unregisterCallbacks()
438 mGroupedConnectedDevices = AudioSharingUtils.fetchConnectedDevicesByGroupId(mBtManager); in startAudioSharing()
440 AudioSharingUtils.buildOrderedConnectedLeadAudioSharingDeviceItem( in startAudioSharing()
462 if (!AudioSharingUtils.isBroadcasting(mBtManager)) { in stopAudioSharing()
[all …]
DAudioSharingCallAudioPreferenceController.java19 import static com.android.settings.connecteddevice.audiosharing.AudioSharingUtils.SETTINGS_KEY_FALL…
205 AudioSharingUtils.getFallbackActiveGroupId( in displayPreference()
217 AudioSharingUtils.getLeadDevice(devices); in displayPreference()
350 int fallbackActiveGroupId = AudioSharingUtils.getFallbackActiveGroupId(mContext); in updateSummary()
358 AudioSharingUtils.postOnMainThread( in updateSummary()
373 AudioSharingUtils.postOnMainThread( in updateSummary()
383 mGroupedConnectedDevices = AudioSharingUtils.fetchConnectedDevicesByGroupId(mBtManager); in updateDeviceItemsInSharingSession()
385 AudioSharingUtils.buildOrderedConnectedLeadAudioSharingDeviceItem( in updateDeviceItemsInSharingSession()
396 int targetDeviceGroupId = AudioSharingUtils.getGroupId(target); in logCallAudioDeviceChange()
408 ? AudioSharingUtils.getGroupId(cachedDevice) in logCallAudioDeviceChange()
DAudioSharingCompatibilityPreferenceController.java125 if (!AudioSharingUtils.isAudioSharingProfileReady(mProfileManager)) { in onStart()
144 if (mBroadcast == null || !AudioSharingUtils.isAudioSharingProfileReady(mProfileManager)) { in onStop()
157 return AudioSharingUtils.isFeatureEnabled() ? AVAILABLE : UNSUPPORTED_ON_DEVICE; in getAvailabilityStatus()
194 if (AudioSharingUtils.isAudioSharingProfileReady(mProfileManager)) { in onServiceConnected()
196 AudioSharingUtils.postOnMainThread( in onServiceConnected()
245 boolean isBroadcasting = AudioSharingUtils.isBroadcasting(mBtManager); in updateEnabled()
246 AudioSharingUtils.postOnMainThread( in updateEnabled()
DAudioSharingNamePreferenceController.java19 import static com.android.settings.connecteddevice.audiosharing.AudioSharingUtils.isBroadcasting;
143 if (!AudioSharingUtils.isAudioSharingProfileReady(mProfileManager)) { in onStart()
162 if (mBroadcast == null || !AudioSharingUtils.isAudioSharingProfileReady(mProfileManager)) { in onStop()
175 return AudioSharingUtils.isFeatureEnabled() ? AVAILABLE : UNSUPPORTED_ON_DEVICE; in getAvailabilityStatus()
191 if (AudioSharingUtils.isAudioSharingProfileReady(mProfileManager)) { in onServiceConnected()
260 AudioSharingUtils.postOnMainThread( in updateBroadcastName()
275 AudioSharingUtils.postOnMainThread( in updateQrCodeIcon()
DAudioSharingDeviceVolumeGroupController.java19 import static com.android.settings.connecteddevice.audiosharing.AudioSharingUtils.SETTINGS_KEY_FALL…
94 int groupId = AudioSharingUtils.getGroupId(cachedDevice);
98 && AudioSharingUtils.getGroupId(preference.getCachedDevice())
259 int volume = mValueMap.getOrDefault(AudioSharingUtils.getGroupId(cachedDevice), -1); in onDeviceAdded()
268 AudioSharingUtils.postOnMainThread(mContext, () -> volumePref.setProgress(finalVolume)); in onDeviceAdded()
362 || !AudioSharingUtils.isAudioSharingProfileReady(mProfileManager)) { in registerCallbacks()
388 || !AudioSharingUtils.isAudioSharingProfileReady(mProfileManager)) { in unregisterCallbacks()
418 int groupId = AudioSharingUtils.getGroupId(cachedDevice); in getPreferenceOrderForDevice()
421 && groupId == AudioSharingUtils.getFallbackActiveGroupId(mContext)) in getPreferenceOrderForDevice()
DAudioSharingBasePreferenceController.java57 return AudioSharingUtils.isFeatureEnabled() ? AVAILABLE : UNSUPPORTED_ON_DEVICE; in getAvailabilityStatus()
82 AudioSharingUtils.postOnMainThread( in updateVisibility()
93 AudioSharingUtils.isAudioSharingProfileReady(mProfileManager); in updateVisibility()
104 AudioSharingUtils.postOnMainThread( in updateVisibility()
DStreamSettingsCategoryController.java93 return AudioSharingUtils.isFeatureEnabled() ? AVAILABLE : UNSUPPORTED_ON_DEVICE; in getAvailabilityStatus()
118 AudioSharingUtils.postOnMainThread( in updateVisibility()
128 AudioSharingUtils.postOnMainThread( in updateVisibility()
142 return AudioSharingUtils.isAudioSharingProfileReady(mProfileManager); in isProfileReady()
DAudioSharingDevicePreferenceController.java117 AudioSharingUtils.toastMessage(
146 AudioSharingUtils.toastMessage(
194 if (!AudioSharingUtils.isAudioSharingProfileReady(mProfileManager) in onStart()
239 if (AudioSharingUtils.isAudioSharingProfileReady(mProfileManager)) { in onServiceConnected()
274 if (AudioSharingUtils.isAudioSharingProfileReady(mProfileManager)) { in displayPreference()
286 return AudioSharingUtils.isFeatureEnabled() && mBluetoothDeviceUpdater != null in getAvailabilityStatus()
337 boolean isLeAudioSupported = AudioSharingUtils.isLeAudioSupported(cachedDevice); in onProfileConnectionStateChanged()
394 boolean isLeAudioSupported = AudioSharingUtils.isLeAudioSupported(cachedDevice); in handleOnProfileStateChanged()
DAudioSharingUtils.java19 import static com.android.settings.connecteddevice.audiosharing.AudioSharingUtils.MetricKey.METRIC_…
20 import static com.android.settings.connecteddevice.audiosharing.AudioSharingUtils.MetricKey.METRIC_…
21 import static com.android.settings.connecteddevice.audiosharing.AudioSharingUtils.MetricKey.METRIC_…
22 import static com.android.settings.connecteddevice.audiosharing.AudioSharingUtils.MetricKey.METRIC_…
23 import static com.android.settings.connecteddevice.audiosharing.AudioSharingUtils.MetricKey.METRIC_…
58 public class AudioSharingUtils { class
224 .map(AudioSharingUtils::buildAudioSharingDeviceItem) in buildOrderedConnectedLeadAudioSharingDeviceItem()
DAudioSharingPreferenceController.java137 return AudioSharingUtils.isFeatureEnabled() ? AVAILABLE : UNSUPPORTED_ON_DEVICE; in getAvailabilityStatus()
142 return AudioSharingUtils.isBroadcasting(mBtManager) in getSummary()
160 AudioSharingUtils.postOnMainThread( in refreshSummary()
DAudioSharingDeviceVolumeControlUpdater.java68 && AudioSharingUtils.isBroadcasting(mBtManager) in isFilterMatched()
104 int groupId = AudioSharingUtils.getGroupId(cachedDevice); in addPreference()
107 == AudioSharingUtils.getFallbackActiveGroupId( in addPreference()
DAudioSharingStopDialogFragment.java83 if (!AudioSharingUtils.isFeatureEnabled()) return; in show()
87 int newGroupId = AudioSharingUtils.getGroupId(newDevice); in show()
89 && newGroupId == AudioSharingUtils.getGroupId(sCachedDevice)) { in show()
DAudioSharingDisconnectDialogFragment.java86 if (!AudioSharingUtils.isFeatureEnabled()) return; in show()
90 int newGroupId = AudioSharingUtils.getGroupId(newDevice); in show()
91 if (sNewDevice != null && newGroupId == AudioSharingUtils.getGroupId(sNewDevice)) { in show()
DAudioSharingPasswordPreferenceController.java19 import static com.android.settings.connecteddevice.audiosharing.AudioSharingUtils.isBroadcasting;
69 return AudioSharingUtils.isFeatureEnabled() ? AVAILABLE : UNSUPPORTED_ON_DEVICE; in getAvailabilityStatus()
155 AudioSharingUtils.postOnMainThread( in updatePreference()
DAudioSharingCallAudioDialogFragment.java68 if (!AudioSharingUtils.isFeatureEnabled()) return; in show()
88 int fallbackActiveGroupId = AudioSharingUtils.getFallbackActiveGroupId(getContext()); in onCreateDialog()
DAudioSharingJoinDialogFragment.java61 return AudioSharingUtils.isBroadcasting(Utils.getLocalBtManager(getContext())) in getMetricsCategory()
83 if (!AudioSharingUtils.isFeatureEnabled()) return; in show()
/packages/apps/Settings/src/com/android/settings/connecteddevice/audiosharing/audiostreams/
DAudioStreamConfirmDialogActivity.java27 import com.android.settings.connecteddevice.audiosharing.AudioSharingUtils;
52 if (AudioSharingUtils.isFeatureEnabled() in createUiFromIntent()
53 && !AudioSharingUtils.isAudioSharingProfileReady(mProfileManager)) { in createUiFromIntent()
69 if (AudioSharingUtils.isFeatureEnabled() in onStart()
70 && !AudioSharingUtils.isAudioSharingProfileReady(mProfileManager)) { in onStart()
89 if (AudioSharingUtils.isFeatureEnabled() in onServiceConnected()
90 && AudioSharingUtils.isAudioSharingProfileReady(mProfileManager)) { in onServiceConnected()
DAudioStreamsCategoryController.java29 import com.android.settings.connecteddevice.audiosharing.AudioSharingUtils;
93 AudioSharingUtils.postOnMainThread( in updateVisibility()
107 AudioSharingUtils.isAudioSharingProfileReady( in updateVisibility()
123 AudioSharingUtils.postOnMainThread( in updateVisibility()
DAudioStreamsHelper.java36 import com.android.settings.connecteddevice.audiosharing.AudioSharingUtils;
173 var groupedDevices = AudioSharingUtils.fetchConnectedDevicesByGroupId(manager); in getCachedBluetoothDeviceInSharingOrLeConnected()
175 AudioSharingUtils.buildOrderedConnectedLeadDevices(manager, groupedDevices, false); in getCachedBluetoothDeviceInSharingOrLeConnected()
206 var groupedDevices = AudioSharingUtils.fetchConnectedDevicesByGroupId(manager); in getCachedBluetoothDeviceInSharing()
208 AudioSharingUtils.buildOrderedConnectedLeadDevices(manager, groupedDevices, false); in getCachedBluetoothDeviceInSharing()
DAudioStreamsProgressCategoryController.java37 import com.android.settings.connecteddevice.audiosharing.AudioSharingUtils;
453 AudioSharingUtils.toastMessage(mContext, msg); in showToast()
461 AudioSharingUtils.postOnMainThread( in init()
471 AudioSharingUtils.postOnMainThread( in init()
480 AudioSharingUtils.postOnMainThread( in init()
565 AudioSharingUtils.postOnMainThread( in moveToState()
/packages/apps/Settings/src/com/android/settings/connecteddevice/
DAvailableMediaDeviceGroupController.java48 import com.android.settings.connecteddevice.audiosharing.AudioSharingUtils;
183 if (AudioSharingUtils.isFeatureEnabled()) { in AvailableMediaDeviceGroupController()
204 if (AudioSharingUtils.isFeatureEnabled()) { in onStart()
220 if (AudioSharingUtils.isFeatureEnabled()) { in onStop()
282 if (AudioSharingUtils.isFeatureEnabled() && mDialogHandler != null) { in onDeviceClick()
298 if (AudioSharingUtils.isFeatureEnabled()) { in init()
345 } else if (AudioSharingUtils.isFeatureEnabled() in updateTitle()
346 && AudioSharingUtils.isBroadcasting(mBtManager)) { in updateTitle()
DConnectedDeviceDashboardFragment.java31 import com.android.settings.connecteddevice.audiosharing.AudioSharingUtils;
90 if (AudioSharingUtils.isFeatureEnabled()) { in onAttach()
/packages/apps/Settings/src/com/android/settings/bluetooth/
DAvailableMediaBluetoothDeviceUpdater.java26 import com.android.settings.connecteddevice.audiosharing.AudioSharingUtils;
80 if (AudioSharingUtils.isFeatureEnabled() in isFilterMatched()

12