Lines Matching defs:di

1330                 final DisplayInfoForClient di = (DisplayInfoForClient) displayIterator.next();
1331 if (di.mEnabled) {
1333 di.mRcDisplay.setPlaybackState(mInternalClientGenId,
1337 Log.e(TAG, "Error in setPlaybackState(), dead display " + di.mRcDisplay, e);
1358 final DisplayInfoForClient di = (DisplayInfoForClient) displayIterator.next();
1359 if (di.mEnabled) {
1361 di.mRcDisplay.setMetadata(mInternalClientGenId, mMetadata);
1363 Log.e(TAG, "Error in setMetadata(), dead display " + di.mRcDisplay, e);
1386 final DisplayInfoForClient di = (DisplayInfoForClient) displayIterator.next();
1387 if (di.mEnabled) {
1389 di.mRcDisplay.setTransportControlInfo(mInternalClientGenId,
1392 Log.e(TAG, "Error in setTransportControlFlags(), dead display " + di.mRcDisplay,
1405 final DisplayInfoForClient di = new DisplayInfoForClient(target, w, h);
1406 sendArtworkToDisplay(di);
1421 * @param di encapsulates the IRemoteControlDisplay that will receive the artwork, and its
1425 private boolean sendArtworkToDisplay(DisplayInfoForClient di) {
1426 if ((di.mArtworkExpectedWidth > 0) && (di.mArtworkExpectedHeight > 0)) {
1428 di.mArtworkExpectedWidth, di.mArtworkExpectedHeight);
1430 di.mRcDisplay.setArtwork(mInternalClientGenId, artwork);
1432 Log.e(TAG, "Error in sendArtworkToDisplay(), dead display " + di.mRcDisplay, e);
1458 final DisplayInfoForClient di = (DisplayInfoForClient) displayIterator.next();
1460 if (di.mEnabled) {
1461 if ((di.mArtworkExpectedWidth > 0) && (di.mArtworkExpectedHeight > 0)) {
1463 di.mArtworkExpectedWidth, di.mArtworkExpectedHeight);
1464 di.mRcDisplay.setAllMetadata(mInternalClientGenId, mMetadata, artwork);
1466 di.mRcDisplay.setMetadata(mInternalClientGenId, mMetadata);
1470 Log.e(TAG, "Error when setting metadata, dead display " + di.mRcDisplay, e);
1542 final DisplayInfoForClient di = (DisplayInfoForClient) displayIterator.next();
1543 displayKnown = di.mRcDisplay.asBinder().equals(rcd.asBinder());
1547 if ((di.mArtworkExpectedWidth != w) || (di.mArtworkExpectedHeight != h)) {
1548 di.mArtworkExpectedWidth = w;
1549 di.mArtworkExpectedHeight = h;
1550 if (!sendArtworkToDisplay(di)) {
1567 final DisplayInfoForClient di = (DisplayInfoForClient) displayIterator.next();
1568 if (di.mRcDisplay.asBinder().equals(rcd.asBinder())) {
1578 final DisplayInfoForClient di = (DisplayInfoForClient) displayIterator.next();
1579 if (di.mWantsPositionSync) {
1597 final DisplayInfoForClient di = (DisplayInfoForClient) displayIterator.next();
1598 if (di.mRcDisplay.asBinder().equals(rcd.asBinder()) &&
1599 ((di.mArtworkExpectedWidth != w) || (di.mArtworkExpectedHeight != h))) {
1600 di.mArtworkExpectedWidth = w;
1601 di.mArtworkExpectedHeight = h;
1602 if (di.mEnabled) {
1603 if (!sendArtworkToDisplay(di)) {
1622 final DisplayInfoForClient di = (DisplayInfoForClient) displayIterator.next();
1623 if (di.mEnabled) {
1624 if (di.mRcDisplay.asBinder().equals(rcd.asBinder())) {
1625 di.mWantsPositionSync = wantsSync;
1627 if (di.mWantsPositionSync) {
1645 final DisplayInfoForClient di = (DisplayInfoForClient) displayIterator.next();
1646 if (di.mRcDisplay.asBinder().equals(rcd.asBinder())) {
1647 di.mEnabled = enable;