Home | History | Annotate | Download | only in media

Lines Matching defs:connection

81  * Maintains a connection to a particular media route provider service.
94 private Connection mActiveConnection;
143 Connection connection = new Connection(messenger);
144 if (connection.register()) {
145 mActiveConnection = connection;
167 return "Service connection " + mComponentName.flattenToShortString();
282 void onConnectionReady(Connection connection) {
283 if (mActiveConnection == connection) {
294 void onConnectionDied(Connection connection) {
295 if (mActiveConnection == connection) {
297 Log.d(TAG, this + ": Service connection died");
303 void onConnectionError(Connection connection, String error) {
304 if (mActiveConnection == connection) {
306 Log.d(TAG, this + ": Service connection error - " + error);
312 void onConnectionDescriptorChanged(Connection connection,
314 if (mActiveConnection == connection) {
360 private Connection mConnection;
368 public void attachConnection(Connection connection) {
369 mConnection = connection;
370 mControllerId = connection.createRouteController(mRouteId, mRouteGroupId);
372 connection.selectRoute(mControllerId);
374 connection.setVolume(mControllerId, mPendingSetVolume);
378 connection.updateVolume(mControllerId, mPendingUpdateVolumeDelta);
446 private final class Connection implements DeathRecipient {
459 public Connection(Messenger serviceMessenger) {
569 onConnectionDied(Connection.this);
663 * This inner class is static and only retains a weak reference to the connection
672 private final WeakReference<Connection> mConnectionRef;
674 public ReceiveHandler(Connection connection) {
675 mConnectionRef = new WeakReference<Connection>(connection);
684 Connection connection = mConnectionRef.get();
685 if (connection != null) {
691 if (!processMessage(connection, what, requestId, arg, obj, data)) {
699 private boolean processMessage(Connection connection,
703 connection.onGenericFailure(requestId);
707 connection.onGenericSuccess(requestId);
712 return connection.onRegistered(requestId, arg, (Bundle)obj);
718 return connection.onDescriptorChanged((Bundle)obj);
724 return connection.onControlRequestSucceeded(
733 return connection.onControlRequestFailed(