Home
last modified time | relevance | path

Searched refs:AudioStreamPreference (Results 1 – 15 of 15) sorted by relevance

/packages/apps/Settings/tests/robotests/src/com/android/settings/connecteddevice/audiosharing/audiostreams/
DAudioStreamsProgressCategoryPreferenceTest.java56 AudioStreamPreference first = new AudioStreamPreference(mContext, null); in addAudioStreamPreference_singlePreference()
65 Comparator<AudioStreamPreference> c = in addAudioStreamPreference_multiPreference_sorted()
66 Comparator.comparingInt(AudioStreamPreference::getOrder); in addAudioStreamPreference_multiPreference_sorted()
67 AudioStreamPreference first = new AudioStreamPreference(mContext, null); in addAudioStreamPreference_multiPreference_sorted()
69 AudioStreamPreference second = new AudioStreamPreference(mContext, null); in addAudioStreamPreference_multiPreference_sorted()
81 Comparator<AudioStreamPreference> c = in removeAudioStreamPreferences_shouldBeEmpty()
82 Comparator.comparingInt(AudioStreamPreference::getOrder); in removeAudioStreamPreferences_shouldBeEmpty()
83 AudioStreamPreference first = new AudioStreamPreference(mContext, null); in removeAudioStreamPreferences_shouldBeEmpty()
85 AudioStreamPreference second = new AudioStreamPreference(mContext, null); in removeAudioStreamPreferences_shouldBeEmpty()
DAudioStreamPreferenceTest.java57 private AudioStreamPreference mPreference;
64 mPreference = new AudioStreamPreference(mContext, null); in setUp()
109 AudioStreamPreference p = in setAudioStreamMetadata_shouldUpdateMetadata()
110 AudioStreamPreference.fromMetadata( in setAudioStreamMetadata_shouldUpdateMetadata()
120 AudioStreamPreference p = in setAudioStreamState_shouldUpdateState()
121 AudioStreamPreference.fromMetadata( in setAudioStreamState_shouldUpdateState()
131 AudioStreamPreference p = in fromMetadata_shouldReturnBroadcastInfo()
132 AudioStreamPreference.fromMetadata( in fromMetadata_shouldReturnBroadcastInfo()
141 AudioStreamPreference p = in fromReceiveState_shouldReturnBroadcastInfo()
142 AudioStreamPreference.fromReceiveState(mContext, mBluetoothLeBroadcastReceiveState); in fromReceiveState_shouldReturnBroadcastInfo()
[all …]
DWaitForSyncStateTest.java46 @Mock private AudioStreamPreference mMockPreference;
DAddSourceWaitForResponseStateTest.java47 @Mock private AudioStreamPreference mMockPreference;
DSyncedStateTest.java55 @Mock private AudioStreamPreference mMockPreference;
/packages/apps/Settings/src/com/android/settings/connecteddevice/audiosharing/audiostreams/
DAudioStreamsProgressCategoryPreference.java56 @NonNull AudioStreamPreference preference, in addAudioStreamPreference()
57 Comparator<AudioStreamPreference> comparator) { in addAudioStreamPreference()
60 List<AudioStreamPreference> preferences = getAllAudioStreamPreferences(); in addAudioStreamPreference()
70 List<AudioStreamPreference> streams = getAllAudioStreamPreferences(); in removeAudioStreamPreferences()
76 private List<AudioStreamPreference> getAllAudioStreamPreferences() { in getAllAudioStreamPreferences()
77 List<AudioStreamPreference> streams = new ArrayList<>(); in getAllAudioStreamPreferences()
79 if (getPreference(i) instanceof AudioStreamPreference) { in getAllAudioStreamPreferences()
80 streams.add((AudioStreamPreference) getPreference(i)); in getAllAudioStreamPreferences()
DAudioStreamPreference.java37 class AudioStreamPreference extends TwoTargetPreference { class
66 AudioStreamPreference(Context context, @Nullable AttributeSet attrs) { in AudioStreamPreference() method in AudioStreamPreference
138 static AudioStreamPreference fromMetadata( in fromMetadata()
142 AudioStreamPreference preference = new AudioStreamPreference(context, /* attrs= */ null); in fromMetadata()
149 static AudioStreamPreference fromReceiveState( in fromReceiveState()
151 AudioStreamPreference preference = new AudioStreamPreference(context, /* attrs= */ null); in fromReceiveState()
DAudioStreamsProgressCategoryController.java70 private final Comparator<AudioStreamPreference> mComparator =
71 Comparator.<AudioStreamPreference, Boolean>comparing(
76 .thenComparingInt(AudioStreamPreference::getAudioStreamRssi)
101 private final ConcurrentHashMap<Integer, AudioStreamPreference> mBroadcastIdToPreferenceMap =
436 AudioStreamPreference preference, BluetoothLeBroadcastMetadata metadata) { in handleSourceAddRequest()
532 private AudioStreamPreference addNewPreference( in addNewPreference()
534 var preference = AudioStreamPreference.fromReceiveState(mContext, receiveState); in addNewPreference()
539 private AudioStreamPreference addNewPreference( in addNewPreference()
544 AudioStreamPreference.fromMetadata(mContext, metadata, sourceOriginForLogging); in addNewPreference()
549 private void moveToState(AudioStreamPreference preference, AudioStreamState state) { in moveToState()
DAudioStreamStateHandler.java46 AudioStreamPreference preference, in handleStateChange()
88 AudioStreamPreference preference, in performAction()
DSourceAddedState.java46 AudioStreamPreference preference, in performAction()
75 var p = (AudioStreamPreference) preference; in getOnClickListener()
DSyncedState.java63 var p = (AudioStreamPreference) preference; in addSourceOrShowDialog()
83 AudioStreamPreference preference, in launchPasswordDialog()
DAddSourceFailedState.java44 AudioStreamPreference preference, in performAction()
DAddSourceBadCodeState.java44 AudioStreamPreference preference, in performAction()
DAddSourceWaitForResponseState.java50 AudioStreamPreference preference, in performAction()
DWaitForSyncState.java53 AudioStreamPreference preference, in performAction()