Package com.almilli.tivo.hme.hd

Examples of com.almilli.tivo.hme.hd.ResolutionInfo


                  initApp();
                  break;
                 
              case ResolutionInfo.EVT_RES_INFO:
                  log.debug("handleChunk: ResolutionInfo");
                  this.resolutionInfo = new ResolutionInfo(chunkInStr);
                  evt = resolutionInfo;
                  Resolution res = resolutionInfo.getCurrentResolution();
                  if(res.getWidth() != getRoot().getWidth() || res.getHeight() != getRoot().getHeight())
                  {
                      getRoot().setSize(res.getWidth(), res.getHeight());
View Full Code Here


    ResolutionInfo createResolutionInfo(int width, int height, int aspectNumerator, int aspectDenominator) {
        Resolution resolution = new Resolution(width, height, aspectNumerator, aspectDenominator);
        List<Resolution> supported = new ArrayList<Resolution>(1);
        supported.add(resolution);
        return new ResolutionInfo(resolution, supported);
    }
View Full Code Here

    public void initApp(IContext context)
        throws Exception
    {
        super.initApp(context);

        ResolutionInfo resInfo = getResolutionInfo();
        Resolution currentRes = resInfo.getCurrentResolution();
        desiredResolution = resInfo.getPreferredResolution();

        if (log.isInfoEnabled()) {
            log.info("Current resolution is: " + currentRes);
        }
View Full Code Here

            if (((String)info.getMap().get("platform")).startsWith("sim-")) {
                simulator = true;
            }
           
        } else if (event instanceof ResolutionInfo) {
            ResolutionInfo resInfo = (ResolutionInfo)event;

            if (log.isInfoEnabled()) {
                log.info("Received resolution event: " + resInfo);
            }
            if (!initialized && desiredResolution != null
                    && resInfo.getCurrentResolution().equals(desiredResolution)) {
                initService();
            }
        }
        return super.handleEvent(event);
    }
View Full Code Here

TOP

Related Classes of com.almilli.tivo.hme.hd.ResolutionInfo

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.