Home
last modified time | relevance | path

Searched refs:Connection (Results 1 – 25 of 87) sorted by relevance

1234

/frameworks/base/telecomm/java/android/telecom/
DConference.java23 import android.telecom.Connection.VideoProvider;
50 public void onConnectionAdded(Conference conference, Connection connection) {} in onConnectionAdded()
51 public void onConnectionRemoved(Conference conference, Connection connection) {} in onConnectionRemoved()
53 Conference conference, List<Connection> conferenceableConnections) {} in onConferenceableConnectionsChanged()
60 public void onVideoProviderChanged(Conference c, Connection.VideoProvider videoProvider) {} in onVideoProviderChanged()
67 private final List<Connection> mChildConnections = new CopyOnWriteArrayList<>();
68 private final List<Connection> mUnmodifiableChildConnections =
70 private final List<Connection> mConferenceableConnections = new ArrayList<>();
71 private final List<Connection> mUnmodifiableConferenceableConnections =
77 private int mState = Connection.STATE_NEW;
[all …]
DConnectionService.java110 private static Connection sNullConnection;
112 private final Map<String, Connection> mConnectionById = new ConcurrentHashMap<>();
113 private final Map<Connection, String> mIdByConnection = new ConcurrentHashMap<>();
448 case Connection.STATE_ACTIVE:
451 case Connection.STATE_HOLDING:
454 case Connection.STATE_DISCONNECTED:
467 public void onConnectionAdded(Conference conference, Connection connection) {
471 public void onConnectionRemoved(Conference conference, Connection connection) {
476 Conference conference, List<Connection> conferenceableConnections) {
493 Connection.capabilitiesToString(connectionCapabilities));
[all …]
DConnection.java88 public abstract class Connection extends Conferenceable { class
688 public void onStateChanged(Connection c, int state) {} in onStateChanged()
689 public void onAddressChanged(Connection c, Uri newAddress, int presentation) {} in onAddressChanged()
691 Connection c, String callerDisplayName, int presentation) {} in onCallerDisplayNameChanged()
692 public void onVideoStateChanged(Connection c, int videoState) {} in onVideoStateChanged()
693 public void onDisconnected(Connection c, DisconnectCause disconnectCause) {} in onDisconnected()
694 public void onPostDialWait(Connection c, String remaining) {} in onPostDialWait()
695 public void onPostDialChar(Connection c, char nextChar) {} in onPostDialChar()
696 public void onRingbackRequested(Connection c, boolean ringback) {} in onRingbackRequested()
697 public void onDestroyed(Connection c) {} in onDestroyed()
[all …]
DRemoteConnectionService.java66 || parcel.getState() != Connection.STATE_DISCONNECTED) {
70 || parcel.getState() != Connection.STATE_DISCONNECTED) {
76 if (parcel.getState() == Connection.STATE_DISCONNECTED) {
89 if (connection.getState() == Connection.STATE_DISCONNECTED) {
101 .setState(Connection.STATE_ACTIVE);
104 .setState(Connection.STATE_ACTIVE);
111 .setState(Connection.STATE_RINGING);
117 .setState(Connection.STATE_DIALING);
123 .setState(Connection.STATE_PULLING_CALL);
141 .setState(Connection.STATE_HOLDING);
[all …]
DRemoteConference.java145 private int mState = Connection.STATE_NEW;
181 if (newState != Connection.STATE_ACTIVE && in setState()
182 newState != Connection.STATE_HOLDING && in setState()
183 newState != Connection.STATE_DISCONNECTED) { in setState()
185 Connection.stateToString(newState)); in setState()
296 if (mState != Connection.STATE_DISCONNECTED) { in setDisconnected()
298 setState(Connection.STATE_DISCONNECTED); in setDisconnected()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DCall.java71 public ArrayList<Connection> mConnections = new ArrayList<Connection>();
79 public abstract List<Connection> getConnections(); in getConnections()
91 public boolean hasConnection(Connection c) { in hasConnection()
100 List<Connection> connections = getConnections(); in hasConnections()
139 public Connection
141 List<Connection> l; in getEarliestConnection()
143 Connection c; in getEarliestConnection()
144 Connection earliest = null; in getEarliestConnection()
169 List<Connection> l; in getEarliestCreateTime()
179 Connection c = l.get(i); in getEarliestCreateTime()
[all …]
DConnection.java36 public abstract class Connection { class
93 android.telecom.Connection.VideoProvider videoProvider); in onVideoProviderChanged()
101 public void onCallPullFailed(Connection externalConnection); in onCallPullFailed()
118 android.telecom.Connection.VideoProvider videoProvider) {} in onVideoProviderChanged()
134 public void onCallPullFailed(Connection externalConnection) {} in onCallPullFailed()
172 protected Connection mOrigConnection;
193 private android.telecom.Connection.VideoProvider mVideoProvider;
213 protected Connection(int phoneType) { in Connection() method in Connection
583 public Connection getOrigConnection() { in getOrigConnection()
616 public void migrateFrom(Connection c) { in migrateFrom()
[all …]
DCallTracker.java44 protected ArrayList<Connection> mHandoverConnections = new ArrayList<Connection>();
96 protected Connection getHoConnection(DriverCall dc) { in getHoConnection()
97 for (Connection hoConn : mHandoverConnections) { in getHoConnection()
104 for (Connection hoConn : mHandoverConnections) { in getHoConnection()
114 protected void notifySrvccState(Call.SrvccState state, ArrayList<Connection> c) { in notifySrvccState()
DGsmCdmaCallTracker.java118 List<Connection> toNotify = new ArrayList<Connection>();
127 for (Connection connection : toNotify) {
246 List<Connection> connCopy; in fakeHoldForegroundBeforeDial()
250 connCopy = (List<Connection>) mForegroundCall.mConnections.clone(); in fakeHoldForegroundBeforeDial()
263 public synchronized Connection dial(String dialString, int clirMode, UUSInfo uusInfo, in dial()
374 private Connection dial(String dialString, int clirMode) throws CallStateException { in dial()
460 private Connection dialThreeWay(String dialString) { in dialThreeWay()
483 public Connection dial(String dialString) throws CallStateException { in dial()
492 public Connection dial(String dialString, UUSInfo uusInfo, Bundle intentExtras) in dial()
498 private Connection dial(String dialString, int clirMode, Bundle intentExtras) in dial()
[all …]
DGsmCdmaCall.java38 public List<Connection> getConnections() { in getConnections()
69 public void attach(Connection conn, DriverCall dc) { in attach()
75 public void attachFake(Connection conn, State state) { in attachFake()
/frameworks/native/services/surfaceflinger/
DEventThread.h58 class Connection : public BnDisplayEventConnection {
60 Connection(const sp<EventThread>& eventThread);
69 virtual ~Connection();
82 sp<Connection> createEventConnection() const;
83 status_t registerDisplayEventConnection(const sp<Connection>& connection);
85 void setVsyncRate(uint32_t count, const sp<Connection>& connection);
86 void requestNextVsync(const sp<Connection>& connection);
97 Vector< sp<EventThread::Connection> > waitForEvent(
111 void removeDisplayEventConnection(const wp<Connection>& connection);
125 SortedVector< wp<Connection> > mDisplayEventConnections;
DEventThread.cpp97 sp<EventThread::Connection> EventThread::createEventConnection() const { in createEventConnection()
98 return new Connection(const_cast<EventThread*>(this)); in createEventConnection()
102 const sp<EventThread::Connection>& connection) { in registerDisplayEventConnection()
110 const wp<EventThread::Connection>& connection) { in removeDisplayEventConnection()
116 const sp<EventThread::Connection>& connection) { in setVsyncRate()
128 const sp<EventThread::Connection>& connection) { in requestNextVsync()
184 Vector< sp<EventThread::Connection> > signalConnections; in threadLoop()
190 const sp<Connection>& conn(signalConnections[i]); in threadLoop()
213 Vector< sp<EventThread::Connection> > EventThread::waitForEvent( in waitForEvent()
217 Vector< sp<EventThread::Connection> > signalConnections; in waitForEvent()
[all …]
/frameworks/base/services/core/java/com/android/server/media/
DRemoteDisplayProviderProxy.java55 private Connection mActiveConnection;
230 Connection connection = new Connection(provider); in onServiceConnected()
252 private void onConnectionReady(Connection connection) { in onConnectionReady()
265 private void onConnectionDied(Connection connection) { in onConnectionDied()
274 private void onDisplayStateChanged(Connection connection, RemoteDisplayState state) { in onDisplayStateChanged()
325 private final class Connection implements DeathRecipient { class in RemoteDisplayProviderProxy
329 public Connection(IRemoteDisplayProvider provider) { in Connection() method in RemoteDisplayProviderProxy.Connection
341 onConnectionReady(Connection.this); in register()
401 onConnectionDied(Connection.this); in binderDied()
410 onDisplayStateChanged(Connection.this, state); in postStateChanged()
[all …]
/frameworks/base/services/core/java/com/android/server/tv/
DTvRemoteProviderProxy.java67 private Connection mActiveConnection;
186 Connection connection = new Connection(provider); in onServiceConnected()
212 private void onConnectionReady(Connection connection) { in onConnectionReady()
222 private void onConnectionDied(Connection connection) { in onConnectionDied()
272 private final class Connection implements IBinder.DeathRecipient { class in TvRemoteProviderProxy
276 public Connection(ITvRemoteProvider provider) { in Connection() method in TvRemoteProviderProxy.Connection
289 onConnectionReady(Connection.this); in register()
320 onConnectionDied(Connection.this); in binderDied()
562 private final WeakReference<Connection> mConnectionRef;
564 public RemoteServiceInputProvider(Connection connection) { in RemoteServiceInputProvider()
[all …]
/frameworks/base/telephony/java/com/android/ims/
DImsConferenceState.java28 import android.telecom.Connection;
153 return Connection.STATE_INITIALIZING; in getConnectionStateForStatus()
155 return Connection.STATE_RINGING; in getConnectionStateForStatus()
158 return Connection.STATE_DIALING; in getConnectionStateForStatus()
160 return Connection.STATE_HOLDING; in getConnectionStateForStatus()
164 return Connection.STATE_ACTIVE; in getConnectionStateForStatus()
166 return Connection.STATE_DISCONNECTED; in getConnectionStateForStatus()
/frameworks/support/v7/mediarouter/src/android/support/v7/media/
DRegisteredMediaRouteProvider.java56 private Connection mActiveConnection;
105 Connection connection = new Connection(messenger); in onServiceConnected()
244 private void onConnectionReady(Connection connection) { in onConnectionReady()
256 private void onConnectionDied(Connection connection) { in onConnectionDied()
265 private void onConnectionError(Connection connection, String error) { in onConnectionError()
274 private void onConnectionDescriptorChanged(Connection connection, in onConnectionDescriptorChanged()
322 private Connection mConnection;
330 public void attachConnection(Connection connection) { in attachConnection()
408 private final class Connection implements DeathRecipient { class in RegisteredMediaRouteProvider
421 public Connection(Messenger serviceMessenger) { in Connection() method in RegisteredMediaRouteProvider.Connection
[all …]
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/imsphone/
DImsPhoneConnectionTest.java31 import com.android.internal.telephony.Connection;
96 assertEquals(Connection.PostDialState.NOT_STARTED, mConnectionUT.getPostDialState()); in testImsConnectionSanity()
102 verify(mForeGroundCall, times(1)).attach((Connection) any(), in testImsConnectionSanity()
111 verify(mForeGroundCall, times(1)).attachFake((Connection) any(), in testImsConnectionSanity()
125 assertEquals(Connection.PostDialState.COMPLETE, mConnectionUT.getPostDialState()); in testImsUpdateStateForeGround()
141 assertEquals(Connection.PostDialState.NOT_STARTED, mConnectionUT.getPostDialState()); in testImsUpdateStateBackGround()
153 assertEquals(Connection.PostDialState.NOT_STARTED, mConnectionUT.getPostDialState()); in testImsUpdateStatePendingHold()
205 assertEquals(Connection.PostDialState.WAIT, mConnectionUT.getPostDialState()); in testPostDialWait()
208 assertEquals(Connection.PostDialState.COMPLETE, mConnectionUT.getPostDialState()); in testPostDialWait()
229 assertEquals(Connection.PostDialState.STARTED, mConnectionUT.getPostDialState()); in testPostDialPause()
[all …]
DImsExternalCallTrackerTest.java22 import com.android.internal.telephony.Connection;
84 ArgumentCaptor<Connection> connectionArgumentCaptor = ArgumentCaptor.forClass( in testAddExternalCall()
85 Connection.class); in testAddExternalCall()
89 Connection connection = connectionArgumentCaptor.getValue(); in testAddExternalCall()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DGsmCdmaConnectionTest.java80 assertEquals(Connection.PostDialState.NOT_STARTED, connection.getPostDialState()); in testSanityGSM()
98 assertEquals(Connection.PostDialState.NOT_STARTED, connection.getPostDialState()); in testSanityCDMA()
138 assertEquals(Connection.PostDialState.PAUSE, connection.getPostDialState()); in testCDMAPostDialPause()
141 assertEquals(Connection.PostDialState.COMPLETE, connection.getPostDialState()); in testCDMAPostDialPause()
155 assertEquals(Connection.PostDialState.STARTED, connection.getPostDialState()); in testGSMPostDialPause()
158 assertEquals(Connection.PostDialState.COMPLETE, connection.getPostDialState()); in testGSMPostDialPause()
174 assertEquals(Connection.PostDialState.WAIT, connection.getPostDialState()); in testPostDialWait()
177 assertEquals(Connection.PostDialState.COMPLETE, connection.getPostDialState()); in testPostDialWait()
/frameworks/native/services/inputflinger/
DInputDispatcher.h592 class Connection; variable
600 sp<Connection> connection;
800 class Connection : public RefBase {
802 virtual ~Connection();
832 explicit Connection(const sp<InputChannel>& inputChannel,
898 KeyedVector<int, sp<Connection> > mConnectionsByFd;
1069 void prepareDispatchCycleLocked(nsecs_t currentTime, const sp<Connection>& connection,
1071 void enqueueDispatchEntriesLocked(nsecs_t currentTime, const sp<Connection>& connection,
1073 void enqueueDispatchEntryLocked(const sp<Connection>& connection,
1075 void startDispatchCycleLocked(nsecs_t currentTime, const sp<Connection>& connection);
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/imsphone/
DImsPhoneCall.java27 import com.android.internal.telephony.Connection;
91 public List<Connection>
133 for (Connection conn : mConnections) { in toString()
153 public void attach(Connection conn) { in attach()
163 public void attach(Connection conn, State state) { in attach()
172 public void attachFake(Connection conn, State state) { in attachFake()
354 for (Connection c : mConnections) { in takeOver()
DImsPhoneBase.java34 import com.android.internal.telephony.Connection;
105 protected void startOnHoldTone(Connection cn) { in startOnHoldTone()
106 Pair<Connection, Boolean> result = new Pair<Connection, Boolean>(cn, Boolean.TRUE); in startOnHoldTone()
115 protected void stopOnHoldTone(Connection cn) { in stopOnHoldTone()
116 Pair<Connection, Boolean> result = new Pair<Connection, Boolean>(cn, Boolean.FALSE); in stopOnHoldTone()
220 public void notifyDisconnect(Connection cn) { in notifyDisconnect()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/sip/
DSipPhone.java38 import com.android.internal.telephony.Connection;
97 public Connection takeIncomingCall(Object incomingCall) { in takeIncomingCall()
186 public Connection dial(String dialString, int videoState) throws CallStateException { in dial()
192 private Connection dialInternal(String dialString, int videoState) in dialInternal()
210 Connection c = mForegroundCall.dial(dialString); in dialInternal()
475 for (Connection c : mConnections) { in takeOver()
486 public List<Connection> getConnections() { in getConnections()
494 Connection dial(String originalNumber) throws SipException { in dial()
525 for (Connection c : mConnections) { in hangup()
600 for (Connection c : mConnections) ((SipConnection) c).hold(); in hold()
[all …]
DSipCallBase.java20 import com.android.internal.telephony.Connection;
27 public List<Connection> getConnections() { in getConnections()
/frameworks/base/services/core/jni/
Dcom_android_server_tv_TvInputHal.cpp251 class Connection { class in android::JTvInputHal
253 Connection() {} in Connection() function in android::JTvInputHal::Connection
290 KeyedVector<int, KeyedVector<int, Connection> > mConnections;
336 KeyedVector<int, Connection>& connections = mConnections.editValueFor(deviceId); in addOrUpdateStream()
338 connections.add(streamId, Connection()); in addOrUpdateStream()
340 Connection& connection = connections.editValueFor(streamId); in addOrUpdateStream()
407 KeyedVector<int, Connection>& connections = mConnections.editValueFor(deviceId); in removeStream()
411 Connection& connection = connections.editValueFor(streamId); in removeStream()
468 mConnections.add(info.device_id, KeyedVector<int, Connection>()); in onDeviceAvailable()
506 KeyedVector<int, Connection>& connections = mConnections.editValueFor(deviceId); in onDeviceUnavailable()
[all …]

1234