Home
last modified time | relevance | path

Searched refs:LocalMediaManager (Results 1 – 21 of 21) sorted by relevance

/frameworks/base/packages/SystemUI/src/com/android/systemui/media/controls/util/
DLocalMediaManagerFactory.kt23 import com.android.settingslib.media.LocalMediaManager
34 fun create(packageName: String?, token: MediaSession.Token? = null): LocalMediaManager { in create()
44 .run { LocalMediaManager(context, localBluetoothManager, this, packageName) } in create()
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/media/
DLocalMediaManagerTest.java83 private LocalMediaManager.DeviceCallback mCallback;
98 private LocalMediaManager mLocalMediaManager;
141 new LocalMediaManager( in setUp()
180 assertThat(mInfoMediaDevice2.getState()).isEqualTo(LocalMediaManager.MediaDeviceState in connectDevice_deviceNotEqualCurrentConnectedDevice_isConnectingState()
192 assertThat(mInfoMediaDevice1.getState()).isNotEqualTo(LocalMediaManager.MediaDeviceState in connectDevice_deviceEqualCurrentConnectedDevice_notConnectingState()
352 LocalMediaManager.MediaDeviceState.STATE_CONNECTED); in onConnectedDeviceChanged_connectedAndCurrentDeviceAreDifferent_notifyThemChanged()
376 mInfoMediaDevice1.setState(LocalMediaManager.MediaDeviceState.STATE_DISCONNECTED); in onConnectedDeviceChanged_isConnectedState()
378 assertThat(mInfoMediaDevice1.getState()).isEqualTo(LocalMediaManager.MediaDeviceState in onConnectedDeviceChanged_isConnectedState()
382 assertThat(mInfoMediaDevice1.getState()).isEqualTo(LocalMediaManager.MediaDeviceState in onConnectedDeviceChanged_isConnectedState()
407 verify(device).setState(LocalMediaManager.MediaDeviceState.STATE_CONNECTING_FAILED); in onDeviceAttributesChanged_failingTransferring_shouldResetState()
[all …]
DMediaDeviceTest.java465 mInfoMediaDevice1.setState(LocalMediaManager.MediaDeviceState.STATE_CONNECTED); in setState_verifyGetState()
467 LocalMediaManager.MediaDeviceState.STATE_CONNECTED); in setState_verifyGetState()
469 mInfoMediaDevice1.setState(LocalMediaManager.MediaDeviceState.STATE_CONNECTING); in setState_verifyGetState()
471 LocalMediaManager.MediaDeviceState.STATE_CONNECTING); in setState_verifyGetState()
473 mInfoMediaDevice1.setState(LocalMediaManager.MediaDeviceState.STATE_DISCONNECTED); in setState_verifyGetState()
475 LocalMediaManager.MediaDeviceState.STATE_DISCONNECTED); in setState_verifyGetState()
477 mInfoMediaDevice1.setState(LocalMediaManager.MediaDeviceState.STATE_CONNECTING_FAILED); in setState_verifyGetState()
479 LocalMediaManager.MediaDeviceState.STATE_CONNECTING_FAILED); in setState_verifyGetState()
DInfoMediaManagerTest.java28 import static com.android.settingslib.media.LocalMediaManager.MediaDeviceState.STATE_SELECTED;
/frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/volume/data/repository/
DLocalMediaRepositoryImplTest.kt20 import com.android.settingslib.media.LocalMediaManager
43 @Mock private lateinit var localMediaManager: LocalMediaManager
48 private lateinit var deviceCallbackCaptor: ArgumentCaptor<LocalMediaManager.DeviceCallback>
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/muteawait/
DMediaMuteAwaitConnectionManagerFactory.kt21 import com.android.settingslib.media.LocalMediaManager
37 fun create(localMediaManager: LocalMediaManager): MediaMuteAwaitConnectionManager { in create()
DMediaMuteAwaitConnectionManager.kt25 import com.android.settingslib.media.LocalMediaManager
39 private val localMediaManager: LocalMediaManager,
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/volume/data/repository/
DLocalMediaRepository.kt18 import com.android.settingslib.media.LocalMediaManager
45 private val localMediaManager: LocalMediaManager,
56 object : LocalMediaManager.DeviceCallback { in <lambda>()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/media/
DMediaDevice.java49 import static com.android.settingslib.media.LocalMediaManager.MediaDeviceState.STATE_SELECTED;
403 public void setState(@LocalMediaManager.MediaDeviceState int state) { in setState()
412 public @LocalMediaManager.MediaDeviceState int getState() { in getState()
DLocalMediaManager.java59 public class LocalMediaManager implements BluetoothCallback { class
136 public LocalMediaManager(Context context, String packageName) { in LocalMediaManager() method in LocalMediaManager
164 public LocalMediaManager(Context context, LocalBluetoothManager localBluetoothManager, in LocalMediaManager() method in LocalMediaManager
DInfoMediaManager.java45 import static com.android.settingslib.media.LocalMediaManager.MediaDeviceState.STATE_SELECTED;
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/media/dialog/
DMediaOutputControllerTest.java72 import com.android.settingslib.media.LocalMediaManager;
170 private LocalMediaManager mLocalMediaManager;
688 LocalMediaManager mockLocalMediaManager = mock(LocalMediaManager.class); in addDeviceToPlayMedia_callsLocalMediaManager()
715 LocalMediaManager mockLocalMediaManager = mock(LocalMediaManager.class); in removeDeviceFromPlayMedia_callsLocalMediaManager()
789 LocalMediaManager.MediaDeviceState.STATE_CONNECTING); in isAnyDeviceTransferring_deviceStateIsConnecting_returnsTrue()
801 LocalMediaManager.MediaDeviceState.STATE_CONNECTING); in isAnyDeviceTransferring_advancedLayoutSupport()
823 LocalMediaManager.MediaDeviceState.STATE_CONNECTED); in onSelectedDeviceStateChanged_verifyCallback()
DMediaOutputAdapterTest.java47 import com.android.settingslib.media.LocalMediaManager;
111 LocalMediaManager.MediaDeviceState.STATE_CONNECTED); in setUp()
113 LocalMediaManager.MediaDeviceState.STATE_DISCONNECTED); in setUp()
427 LocalMediaManager.MediaDeviceState.STATE_CONNECTING_FAILED); in onBindViewHolder_bindFailedStateDevice_verifyView()
545 LocalMediaManager.MediaDeviceState.STATE_CONNECTING); in onBindViewHolder_inTransferring_bindTransferringDevice_verifyView()
561 LocalMediaManager.MediaDeviceState.STATE_GROUPING); in onBindViewHolder_bindGroupingDevice_verifyView()
577 LocalMediaManager.MediaDeviceState.STATE_CONNECTING); in onBindViewHolder_inTransferring_bindNonTransferringDevice_verifyView()
605 LocalMediaManager.MediaDeviceState.STATE_DISCONNECTED); in onItemClick_clickDevice_verifyConnectDevice()
623 LocalMediaManager.MediaDeviceState.STATE_DISCONNECTED); in onItemClick_clickDeviceWithSessionOngoing_verifyShowsDialog()
DMediaOutputBroadcastDialogTest.java51 import com.android.settingslib.media.LocalMediaManager;
99 private final LocalMediaManager mLocalMediaManager = mock(LocalMediaManager.class);
DMediaOutputDialogTest.java54 import com.android.settingslib.media.LocalMediaManager;
98 private final LocalMediaManager mLocalMediaManager = mock(LocalMediaManager.class);
DMediaOutputBaseDialogTest.java51 import com.android.settingslib.media.LocalMediaManager;
146 mMediaOutputController.mLocalMediaManager = mock(LocalMediaManager.class); in setUp()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/media/muteawait/
DMediaMuteAwaitConnectionManagerTest.kt29 import com.android.settingslib.media.LocalMediaManager
55 private lateinit var localMediaManager: LocalMediaManager
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/controls/domain/pipeline/
DMediaDeviceManager.kt36 import com.android.settingslib.media.LocalMediaManager in <lambda>()
153 val localMediaManager: LocalMediaManager, in <lambda>()
156 LocalMediaManager.DeviceCallback, in <lambda>()
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/dialog/
DMediaOutputController.java80 import com.android.settingslib.media.LocalMediaManager;
118 public class MediaOutputController implements LocalMediaManager.DeviceCallback,
156 LocalMediaManager mLocalMediaManager;
212 mLocalMediaManager = new LocalMediaManager(mContext, lbm, imm, packageName); in MediaOutputController()
347 @LocalMediaManager.MediaDeviceState int state) { in onSelectedDeviceStateChanged()
904 == LocalMediaManager.MediaDeviceState.STATE_CONNECTING) { in isAnyDeviceTransferring()
DMediaOutputAdapter.java42 import com.android.settingslib.media.LocalMediaManager.MediaDeviceState;
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/media/controls/domain/pipeline/
DMediaDeviceManagerTest.kt43 import com.android.settingslib.media.LocalMediaManager
104 @Mock private lateinit var lmm: LocalMediaManager
896 private fun captureCallback(): LocalMediaManager.DeviceCallback { in captureCallback()
897 val captor = ArgumentCaptor.forClass(LocalMediaManager.DeviceCallback::class.java) in captureCallback()