Home | History | Annotate | Download | only in media

Lines Matching defs:connection

73  * Maintains a connection to a particular media route provider service.
86 private Connection mActiveConnection;
135 Connection connection = new Connection(messenger);
136 if (connection.register()) {
137 mActiveConnection = connection;
159 return "Service connection " + mComponentName.flattenToShortString();
274 void onConnectionReady(Connection connection) {
275 if (mActiveConnection == connection) {
286 void onConnectionDied(Connection connection) {
287 if (mActiveConnection == connection) {
289 Log.d(TAG, this + ": Service connection died");
295 void onConnectionError(Connection connection, String error) {
296 if (mActiveConnection == connection) {
298 Log.d(TAG, this + ": Service connection error - " + error);
304 void onConnectionDescriptorChanged(Connection connection,
306 if (mActiveConnection == connection) {
352 private Connection mConnection;
360 public void attachConnection(Connection connection) {
361 mConnection = connection;
362 mControllerId = connection.createRouteController(mRouteId, mRouteGroupId);
364 connection.selectRoute(mControllerId);
366 connection.setVolume(mControllerId, mPendingSetVolume);
370 connection.updateVolume(mControllerId, mPendingUpdateVolumeDelta);
438 private final class Connection implements DeathRecipient {
451 public Connection(Messenger serviceMessenger) {
561 onConnectionDied(Connection.this);
655 * This inner class is static and only retains a weak reference to the connection
664 private final WeakReference<Connection> mConnectionRef;
666 public ReceiveHandler(Connection connection) {
667 mConnectionRef = new WeakReference<Connection>(connection);
676 Connection connection = mConnectionRef.get();
677 if (connection != null) {
683 if (!processMessage(connection, what, requestId, arg, obj, data)) {
691 private boolean processMessage(Connection connection,
695 connection.onGenericFailure(requestId);
699 connection.onGenericSuccess(requestId);
704 return connection.onRegistered(requestId, arg, (Bundle)obj);
710 return connection.onDescriptorChanged((Bundle)obj);
716 return connection.onControlRequestSucceeded(
725 return connection.onControlRequestFailed(