Home
last modified time | relevance | path

Searched refs:CallEndpointCompat (Results 1 – 25 of 28) sorted by relevance

12

/core/core-telecom/src/main/java/androidx/core/telecom/internal/utils/
DEndpointUtils.kt29 import androidx.core.telecom.CallEndpointCompat in <lambda>()
30 import androidx.core.telecom.CallEndpointCompat.Companion.EndpointType in <lambda>()
43 endpoints: MutableList<CallEndpointCompat> in <lambda>()
44 ): MutableList<CallEndpointCompat> { in <lambda>()
45 if (endpoints.any { it.type == CallEndpointCompat.TYPE_WIRED_HEADSET }) { in <lambda>()
46 endpoints.removeIf { it.type == CallEndpointCompat.TYPE_EARPIECE } in <lambda>()
56 ): List<CallEndpointCompat> { in <lambda>()
60 val endpoints: MutableList<CallEndpointCompat> = mutableListOf() in <lambda>()
65 if (endpoint.type != CallEndpointCompat.TYPE_UNKNOWN) { in <lambda>()
66 if (endpoint.type == CallEndpointCompat.TYPE_WIRED_HEADSET) { in <lambda>()
[all …]
/core/core-telecom/src/androidTest/java/androidx/core/telecom/test/
DCallEndpointCompatTest.kt22 import androidx.core.telecom.CallEndpointCompat
23 import androidx.core.telecom.CallEndpointCompat.Companion.TYPE_BLUETOOTH
24 import androidx.core.telecom.CallEndpointCompat.Companion.TYPE_EARPIECE
25 import androidx.core.telecom.CallEndpointCompat.Companion.TYPE_SPEAKER
26 import androidx.core.telecom.CallEndpointCompat.Companion.TYPE_STREAMING
27 import androidx.core.telecom.CallEndpointCompat.Companion.TYPE_UNKNOWN
28 import androidx.core.telecom.CallEndpointCompat.Companion.TYPE_WIRED_HEADSET
52 val endpoint = CallEndpointCompat(name, type, identifier) in testCallEndpointConstructor()
165 val highestPriorityEndpoint = CallEndpointCompat("F", TYPE_WIRED_HEADSET, mSessionId) in testDefaultSort()
166 val second = CallEndpointCompat("E", TYPE_BLUETOOTH, mSessionId) in testDefaultSort()
[all …]
DCallEndpointUuidTrackerTest.kt21 import androidx.core.telecom.CallEndpointCompat
43 CallEndpointUuidTracker.getUuid(mockFlowSession, CallEndpointCompat.TYPE_EARPIECE) in testNonBtEndpointUuid()
47 CallEndpointUuidTracker.getUuid(mockFlowSession, CallEndpointCompat.TYPE_SPEAKER) in testNonBtEndpointUuid()
51 CallEndpointUuidTracker.getUuid(mockFlowSession, CallEndpointCompat.TYPE_WIRED_HEADSET) in testNonBtEndpointUuid()
55 CallEndpointUuidTracker.getUuid(mockFlowSession, CallEndpointCompat.TYPE_UNKNOWN) in testNonBtEndpointUuid()
71 CallEndpointCompat.TYPE_BLUETOOTH, in testTestSingleSessionWithBluetooth()
94 CallEndpointCompat.TYPE_BLUETOOTH, in testTestMultipleSessionWithBluetooth()
101 CallEndpointCompat.TYPE_BLUETOOTH, in testTestMultipleSessionWithBluetooth()
135 CallEndpointCompat.TYPE_BLUETOOTH, in testTestMultipleSessionWithMultipleBluetoothDevices()
142 CallEndpointCompat.TYPE_BLUETOOTH, in testTestMultipleSessionWithMultipleBluetoothDevices()
[all …]
DCallSessionLegacyTest.kt25 import androidx.core.telecom.CallEndpointCompat in <lambda>()
74 CallEndpointCompat( in <lambda>()
76 CallEndpointCompat.TYPE_BLUETOOTH, in <lambda>()
106 CallEndpointCompat( in <lambda>()
108 CallEndpointCompat.TYPE_BLUETOOTH, in <lambda>()
145 assertEquals(res[0].type, CallEndpointCompat.TYPE_WIRED_HEADSET) in <lambda>()
173 assertEquals(CallEndpointCompat.TYPE_EARPIECE, platformEarpiece.type) in <lambda>()
180 assertEquals(CallEndpointCompat.TYPE_SPEAKER, platformSpeaker.type) in <lambda>()
214 assertEquals(CallEndpointCompat.TYPE_BLUETOOTH, currentCallEndpoint!!.type) in <lambda>()
216 EndpointUtils.endpointTypeToString(CallEndpointCompat.TYPE_BLUETOOTH), in <lambda>()
[all …]
DPreCallEndpointsTest.kt20 import androidx.core.telecom.CallEndpointCompat
21 import androidx.core.telecom.CallEndpointCompat.Companion.TYPE_BLUETOOTH
22 import androidx.core.telecom.CallEndpointCompat.Companion.TYPE_EARPIECE
23 import androidx.core.telecom.CallEndpointCompat.Companion.TYPE_SPEAKER
44 private val defaultEarpiece = CallEndpointCompat("E", TYPE_EARPIECE, mSessionId)
45 private val defaultSpeaker = CallEndpointCompat("S", TYPE_SPEAKER, mSessionId)
46 private val defaultBluetooth = CallEndpointCompat("B", TYPE_BLUETOOTH, mSessionId)
121 val sendChannel = Channel<List<CallEndpointCompat>>(Channel.BUFFERED) in testPreCallEndpointUpdaterEmitsImmutableList()
DCallsManagerTest.kt29 import androidx.core.telecom.CallEndpointCompat in <lambda>()
257 val initialEndpointsJob = CompletableDeferred<List<CallEndpointCompat>>() in <lambda>()
273 initialEndpoints.find { it.type == CallEndpointCompat.TYPE_EARPIECE } in <lambda>()
292 val waitUntilEarpieceEndpointJob = CompletableDeferred<CallEndpointCompat>() in <lambda>()
298 it.type == CallEndpointCompat.TYPE_EARPIECE in <lambda>()
314 assertEquals(CallEndpointCompat.TYPE_EARPIECE, endpoint.type) in <lambda>()
346 val waitUntilSpeakerEndpointJob = CompletableDeferred<CallEndpointCompat>() in <lambda>()
350 currentCallEndpoint.filter { it.type == CallEndpointCompat.TYPE_SPEAKER } in <lambda>()
365 assertEquals(CallEndpointCompat.TYPE_SPEAKER, speakerEndpoint.type) in <lambda>()
DCallControlScopeFlowsTest.kt23 import androidx.core.telecom.CallEndpointCompat
82 val waitUntilCurrentEndpointJob = CompletableDeferred<CallEndpointCompat>() in assertFlowsEchoValues()
83 val waitUntilAvailableEndpointJob = CompletableDeferred<List<CallEndpointCompat>>() in assertFlowsEchoValues()
DBasicCallControlsTest.kt26 import androidx.core.telecom.CallEndpointCompat in <lambda>()
465 currentEndpoint: CallEndpointCompat, in <lambda>()
466 availableEndpoints: List<CallEndpointCompat> in <lambda>()
467 ): CallEndpointCompat? { in <lambda>()
DCallSessionTest.kt22 import androidx.core.telecom.CallEndpointCompat in <lambda>()
73 assertEquals(res[0].type, CallEndpointCompat.TYPE_WIRED_HEADSET) in <lambda>()
/core/core-telecom/src/main/java/androidx/core/telecom/internal/
DCallSessionLegacy.kt37 import androidx.core.telecom.CallEndpointCompat
73 private val preferredStartingCallEndpoint: CallEndpointCompat? = null,
81 private var mPreviousCallEndpoint: CallEndpointCompat? = null
82 private var mCurrentCallEndpoint: CallEndpointCompat? = null
83 private var mAvailableCallEndpoints: MutableList<CallEndpointCompat> = mutableListOf()
84 private var mLastClientRequestedEndpoint: CallEndpointCompat? = null
104 fun getCurrentCallEndpointForSession(): CallEndpointCompat? { in getCurrentCallEndpointForSession()
109 internal fun getAvailableCallEndpointsForSession(): MutableList<CallEndpointCompat> { in getAvailableCallEndpointsForSession()
171 internal fun toRemappedCallEndpointCompat(endpoint: CallEndpointCompat): CallEndpointCompat { in toRemappedCallEndpointCompat()
178 val jetpackEndpoint = CallEndpointCompat(endpoint.name, endpoint.type, jetpackUuid) in toRemappedCallEndpointCompat()
[all …]
DPreCallEndpointsUpdater.kt23 import androidx.core.telecom.CallEndpointCompat
28 var mCurrentDevices: MutableList<CallEndpointCompat> = mutableListOf(),
29 var mSendChannel: SendChannel<List<CallEndpointCompat>>
32 val mNonBluetoothEndpoints: HashMap<Int, CallEndpointCompat> = HashMap()
34 val mBluetoothEndpoints: HashMap<String, CallEndpointCompat> = HashMap()
58 fun endpointsAddedUpdate(addedCallEndpoints: List<CallEndpointCompat>) { in endpointsAddedUpdate()
71 fun endpointsRemovedUpdate(removedCallEndpoints: List<CallEndpointCompat>) { in endpointsRemovedUpdate()
86 internal fun isCallEndpointBeingTracked(endpoint: CallEndpointCompat?): Boolean { in isCallEndpointBeingTracked()
91 internal fun maybeAddCallEndpoint(endpoint: CallEndpointCompat): Int { in maybeAddCallEndpoint()
112 internal fun maybeRemoveCallEndpoint(endpoint: CallEndpointCompat): Int { in maybeRemoveCallEndpoint()
[all …]
DCallSession.kt32 import androidx.core.telecom.CallEndpointCompat
67 private var mCurrentCallEndpoint: CallEndpointCompat? = null
68 private var mAvailableEndpoints: MutableList<CallEndpointCompat> = mutableListOf()
69 private var mLastClientRequestedEndpoint: CallEndpointCompat? = null
108 fun setCurrentCallEndpoint(endpoint: CallEndpointCompat) { in setCurrentCallEndpoint()
113 fun setAvailableCallEndpoints(endpoints: List<CallEndpointCompat>) { in setAvailableCallEndpoints()
123 internal fun toRemappedCallEndpointCompat(platformEndpoint: CallEndpoint): CallEndpointCompat { in toRemappedCallEndpointCompat()
132 CallEndpointCompat( in toRemappedCallEndpointCompat()
195 suspend fun maybeSwitchStartingEndpoint(preferredStartingCallEndpoint: CallEndpointCompat?) { in maybeSwitchStartingEndpoint()
236 suspend fun maybeDelaySwitchToSpeaker(speakerCompat: CallEndpointCompat): Boolean { in maybeDelaySwitchToSpeaker()
[all …]
DBluetoothProfileListener.kt26 import androidx.core.telecom.CallEndpointCompat in <lambda>()
61 val endpoints: MutableList<CallEndpointCompat>?, in <lambda>()
107 val endpoints: MutableList<CallEndpointCompat> = ArrayList() in <lambda>()
144 var address: String = CallEndpointCompat.UNKNOWN_MAC_ADDRESS in <lambda>()
153 private fun makeEndpoint(device: BluetoothDevice): CallEndpointCompat { in <lambda>()
158 CallEndpointCompat.TYPE_BLUETOOTH, in <lambda>()
162 CallEndpointCompat( in <lambda>()
164 CallEndpointCompat.TYPE_BLUETOOTH, in <lambda>()
DCallEndpointUuidTracker.kt23 import androidx.core.telecom.CallEndpointCompat
73 if (type != CallEndpointCompat.TYPE_BLUETOOTH) { in getUuid()
92 CallEndpointCompat.TYPE_EARPIECE -> { in getNonBtUuid()
95 CallEndpointCompat.TYPE_SPEAKER -> { in getNonBtUuid()
98 CallEndpointCompat.TYPE_WIRED_HEADSET -> { in getNonBtUuid()
DCallChannels.kt19 import androidx.core.telecom.CallEndpointCompat
23 val currentEndpointChannel: Channel<CallEndpointCompat> = Channel(Channel.UNLIMITED),
24 val availableEndpointChannel: Channel<List<CallEndpointCompat>> = Channel(Channel.UNLIMITED),
/core/core-telecom/src/androidTest/java/androidx/core/telecom/test/utils/
DBaseTelecomTest.kt31 import androidx.core.telecom.CallEndpointCompat
32 import androidx.core.telecom.CallEndpointCompat.Companion.TYPE_BLUETOOTH
33 import androidx.core.telecom.CallEndpointCompat.Companion.TYPE_EARPIECE
34 import androidx.core.telecom.CallEndpointCompat.Companion.TYPE_SPEAKER
35 import androidx.core.telecom.CallEndpointCompat.Companion.TYPE_WIRED_HEADSET
76 val mEarpieceEndpoint = CallEndpointCompat("EARPIECE", TYPE_EARPIECE, mBaseSessionId)
77 val mSpeakerEndpoint = CallEndpointCompat("SPEAKER", TYPE_SPEAKER, mBaseSessionId)
78 val mBluetoothEndpoint = CallEndpointCompat("BLUETOOTH", TYPE_BLUETOOTH, mBaseSessionId)
79 val mWiredEndpoint = CallEndpointCompat("WIRED", TYPE_WIRED_HEADSET, mBaseSessionId)
/core/core-telecom/integration-tests/testapp/src/main/java/androidx/core/telecom/test/
DVoipCall.kt28 import androidx.core.telecom.CallEndpointCompat
51 var mCurrentEndpoint: CallEndpointCompat? = null
52 var mAvailableEndpoints: List<CallEndpointCompat>? = ArrayList()
199 fun onCallEndpointChanged(endpoint: CallEndpointCompat) { in onCallEndpointChanged()
205 fun onAvailableCallEndpointsChanged(endpoints: List<CallEndpointCompat>) { in onAvailableCallEndpointsChanged()
218 fun getEndpointType(type: Int): CallEndpointCompat? { in getEndpointType()
DPreCallEndpointsAdapter.kt25 import androidx.core.telecom.CallEndpointCompat
28 class PreCallEndpointsAdapter(private var mCurrentEndpoints: ArrayList<CallEndpointCompat>?) :
30 var mSelectedCallEndpoint: CallEndpointCompat? = null
DCallingMainActivity.kt34 import androidx.core.telecom.CallEndpointCompat in <lambda>()
75 private var mCurrentPreCallEndpoints: ArrayList<CallEndpointCompat> = arrayListOf() in <lambda>()
480 private fun updatePreCallEndpoints(newEndpoints: List<CallEndpointCompat>?) { in <lambda>()
/core/core-telecom/api/
Drestricted_1.0.0-beta01.txt5 …ype, optional int callCapabilities, optional androidx.core.telecom.CallEndpointCompat? preferredSt…
11 method public androidx.core.telecom.CallEndpointCompat? getPreferredStartingCallEndpoint();
17 property public androidx.core.telecom.CallEndpointCompat? preferredStartingCallEndpoint;
54 … kotlinx.coroutines.flow.Flow<java.util.List<androidx.core.telecom.CallEndpointCompat>> getAvailab…
56 …method public kotlinx.coroutines.flow.Flow<androidx.core.telecom.CallEndpointCompat> getCurrentCal…
58 …method public suspend Object? requestEndpointChange(androidx.core.telecom.CallEndpointCompat endpo…
61 … kotlinx.coroutines.flow.Flow<java.util.List<androidx.core.telecom.CallEndpointCompat>> availableE…
62 …property public abstract kotlinx.coroutines.flow.Flow<androidx.core.telecom.CallEndpointCompat> cu…
66 …ON_CODES.O) public final class CallEndpointCompat implements java.lang.Comparable<androidx.core.te…
67 ctor public CallEndpointCompat(CharSequence name, int type, android.os.ParcelUuid identifier);
[all …]
Drestricted_current.txt5 …ype, optional int callCapabilities, optional androidx.core.telecom.CallEndpointCompat? preferredSt…
11 method public androidx.core.telecom.CallEndpointCompat? getPreferredStartingCallEndpoint();
17 property public androidx.core.telecom.CallEndpointCompat? preferredStartingCallEndpoint;
54 … kotlinx.coroutines.flow.Flow<java.util.List<androidx.core.telecom.CallEndpointCompat>> getAvailab…
56 …method public kotlinx.coroutines.flow.Flow<androidx.core.telecom.CallEndpointCompat> getCurrentCal…
58 …method public suspend Object? requestEndpointChange(androidx.core.telecom.CallEndpointCompat endpo…
61 … kotlinx.coroutines.flow.Flow<java.util.List<androidx.core.telecom.CallEndpointCompat>> availableE…
62 …property public abstract kotlinx.coroutines.flow.Flow<androidx.core.telecom.CallEndpointCompat> cu…
66 …ON_CODES.O) public final class CallEndpointCompat implements java.lang.Comparable<androidx.core.te…
67 ctor public CallEndpointCompat(CharSequence name, int type, android.os.ParcelUuid identifier);
[all …]
Dcurrent.txt5 …ype, optional int callCapabilities, optional androidx.core.telecom.CallEndpointCompat? preferredSt…
11 method public androidx.core.telecom.CallEndpointCompat? getPreferredStartingCallEndpoint();
17 property public androidx.core.telecom.CallEndpointCompat? preferredStartingCallEndpoint;
54 … kotlinx.coroutines.flow.Flow<java.util.List<androidx.core.telecom.CallEndpointCompat>> getAvailab…
56 …method public kotlinx.coroutines.flow.Flow<androidx.core.telecom.CallEndpointCompat> getCurrentCal…
58 …method public suspend Object? requestEndpointChange(androidx.core.telecom.CallEndpointCompat endpo…
61 … kotlinx.coroutines.flow.Flow<java.util.List<androidx.core.telecom.CallEndpointCompat>> availableE…
62 …property public abstract kotlinx.coroutines.flow.Flow<androidx.core.telecom.CallEndpointCompat> cu…
66 …ON_CODES.O) public final class CallEndpointCompat implements java.lang.Comparable<androidx.core.te…
67 ctor public CallEndpointCompat(CharSequence name, int type, android.os.ParcelUuid identifier);
[all …]
D1.0.0-beta01.txt5 …ype, optional int callCapabilities, optional androidx.core.telecom.CallEndpointCompat? preferredSt…
11 method public androidx.core.telecom.CallEndpointCompat? getPreferredStartingCallEndpoint();
17 property public androidx.core.telecom.CallEndpointCompat? preferredStartingCallEndpoint;
54 … kotlinx.coroutines.flow.Flow<java.util.List<androidx.core.telecom.CallEndpointCompat>> getAvailab…
56 …method public kotlinx.coroutines.flow.Flow<androidx.core.telecom.CallEndpointCompat> getCurrentCal…
58 …method public suspend Object? requestEndpointChange(androidx.core.telecom.CallEndpointCompat endpo…
61 … kotlinx.coroutines.flow.Flow<java.util.List<androidx.core.telecom.CallEndpointCompat>> availableE…
62 …property public abstract kotlinx.coroutines.flow.Flow<androidx.core.telecom.CallEndpointCompat> cu…
66 …ON_CODES.O) public final class CallEndpointCompat implements java.lang.Comparable<androidx.core.te…
67 ctor public CallEndpointCompat(CharSequence name, int type, android.os.ParcelUuid identifier);
[all …]
/core/core-telecom/src/main/java/androidx/core/telecom/
DCallEndpointCompat.kt38 public class CallEndpointCompat( class
42 ) : Comparable<CallEndpointCompat> {
65 override fun compareTo(other: CallEndpointCompat): Int { in compareTo()
76 return other is CallEndpointCompat && in equals()
DCallControlScope.kt142 public suspend fun requestEndpointChange(endpoint: CallEndpointCompat): CallControlResult
148 public val currentCallEndpoint: Flow<CallEndpointCompat>
151 public val availableEndpoints: Flow<List<CallEndpointCompat>>

12