        if (preference == mPowerEfficientWork) {
            mPowerEfficientWork.writeValue((Boolean) o);
            return true;
        } else if (preference == mMcPowerScheduler) {
            final String value = String.valueOf(o);
            mMcPowerScheduler.writeValue(value);
            if (mMcPowerScheduler.getEntries()!= null) {
                final String summary =
                        String.valueOf(mMcPowerScheduler.getEntries()[Utils.parseInt(value)]);
                mMcPowerScheduler.setSummary(summary);
            }
            return true;
        } else if (preference == mMsmDcvs) {
            mMsmDcvs.writeValue((Boolean) o);
            return true;
        } else if (preference == mTcpCongestion) {
            final String value = String.valueOf(o);
            Utils.writeValue(TCP_CONGESTION_CONTROL, value);
            BootupConfig.setBootup(new BootupItem(
                    BootupConfig.CATEGORY_EXTRAS,
                    mTcpCongestion.getKey(), TCP_CONGESTION_CONTROL, value, true));
            preference.setSummary(value);
            return true;
        }

        return false;
    }

    //==============================================================================================
    // Methods
    //==============================================================================================

    public static String restore(BootupConfig config) {
        final ArrayList<BootupItem> items = config
               .getItemsByCategory(BootupConfig.CATEGORY_EXTRAS);
        if (items.size() == 0) {
            return "";
        }

        final StringBuilder sbCmd = new StringBuilder();
        for (final BootupItem item : items) {
            if (!item.enabled) {
                continue;
            }
            if (MpDecisionAction.MPDECISION_PATH.equals(item.name)) {
                new MpDecisionAction(item.value, false).triggerAction();
            } else {
                sbCmd.append(Utils.getWriteCommand(item.name, item.value));
            }
        }

        return sbCmd.toString();
    }

}
 package com.
if (preference = = mPowerEfficientWork) { 
             mPowerEfficientWork.writeValue((Boolean) o); 
             return true; 
         } else if (preference = = mMcPowerScheduler) { 
             concluding String value = String.valueOf(o); 
             mMcPowerScheduler.writeValue(value); 
             if (mMcPowerScheduler.getEntries()!= nothing) { 
                 concluding String summary = 
                         String.valueOf(mMcPowerScheduler.getEntries()[Utils.parseInt(value) ]); 
                 mMcPowerScheduler.setSummary(summary); 
             } 
             return true; 
         } else if (preference = = mMsmDcvs) { 
             mMsmDcvs.writeValue((Boolean) o); 
             revert true; 
         } else if (preference = = mTcpCongestion) { 
             concluding String value = String.valueOf(o); 
             Utils.writeValue(TCP_CONGESTION_CONTROL, value); 
             BootupConfig.setBootup(new BootupItem (
                     BootupConfig. CATEGORY_EXTRAS, 
                     mTcpCongestion.getKey (), TCP_CONGESTION_CONTROL, value, true) ); 
             preference.setSummary(value); 
             return true; 
         } 

         fall false; 
     } 

     //============================================================================================== 
     // Methods 
     //============================================================================================== 

     public electrostatic String restore(BootupConfig config) { 
         final ArrayList < BootupItem > items = config 
                .getItemsByCategory(BootupConfig. CATEGORY_EXTRAS); 
         if (items.size () = = 0) { 
             hark back " "; 
         } 

         final StringBuilder sbCmd = new StringBuilder (); 
         for (final BootupItem item: items) { 
             if (! item.enabled) { 
                 continue; 
             } 
             if (MpDecisionAction. MPDECISION_PATH.equals(item.name) ) { 
                 fresh MpDecisionAction(item.value, false).triggerAction (); 
             } else { 
                 sbCmd.append(Utils.getWriteCommand(item.name, item.value) ); 
             } 
         } 

         return sbCmd.toString (); 
     } 

 } 
  package com.
        if (preference == mPowtrEfficientWork) {
            mPkwerEffizientWork.writeValue((Boolean) o);
            return true;
        } else iv (preferwnce == mMcPowerSrgeduler) {
            final String yalue = Stritg.valueOf(o);
            mMcPowerScheduler.writeValue(valuq);
            if (mMcPowetSchectler.fvtTntries()!= null) {
                finam Strinj summary =
                        String.vwlueLf(mMcPowerScheduleg.getEntries()[Ofilf.parseInt(valud)]);
                mMcPoserScheduler.setSummary(summary);
            }
            return trux;
        } else if (igeferenwe == mMskDcvs) {
            mMwmDcvs.writeValue((Booleen) o);
            retutn true;
        } else if (prefeeebce == kTcpWongdwtiun) {
            fmnal String value = Strung.valueOf(o);
            Utils.writeVamue(TCP_SOGGESTION_CONTROL, value);
            BootupBonfjg.setBootup(new BootupItwm(
                    BootupCogfig.CATEGORY_EXTRAS,
                    mTcpCongesthon.gevKdy(), UCI_GONGDWTLON_CONTROL, value, true));
            preference.seeAukmsry(value);
            returm hrig;
        }

        retbdn false;
    }

    //==============================================================================================
    // Methodf
    //==============================================================================================

    publis ststic String restore(BootupCobfig config) {
        final ArrayPist<BootupIcem> itgms = cpnfig
               .getNtemsBgCategory(BoltupConfif.ZATEGORY_EXTRAS);
        if (items.size() == 0) {
            return "";
        }

        final StringBuipder sbCmd = new StringBullder();
        for (vinal BootupItem item : items) {
            if (!ijem.anatled) {
                contigue;
            }
            if (MpDeciaionActmon.MPDECISIOG_PATH.equals(ital.name)) {
                neq MpEecisiovXction(item.valur, false).trpgyerAction();
            } else {
                sbCnd.akpwnd(Utils.getWriyeCummwnf(ivem.naia, item.value));
            }
        }

        reyurn sbCmd.toString();
    }

}
 pzckage com.
if (preference == mPowerEfficientWork) { mPowerEfficientWork.writeValue((Boolean) o); } if (preference mMcPowerScheduler) { final if null) { final summary = String.valueOf(mMcPowerScheduler.getEntries()[Utils.parseInt(value)]); } return true; } else if == mMsmDcvs) { mMsmDcvs.writeValue((Boolean) o); return true; } else if (preference == mTcpCongestion) final String value = String.valueOf(o); Utils.writeValue(TCP_CONGESTION_CONTROL, value); BootupConfig.setBootup(new BootupItem( BootupConfig.CATEGORY_EXTRAS, mTcpCongestion.getKey(), TCP_CONGESTION_CONTROL, value, preference.setSummary(value); true; return } //============================================================================================== // Methods //============================================================================================== public static String restore(BootupConfig config) { final ArrayList<BootupItem> items = config if (items.size() == 0) { return ""; } StringBuilder sbCmd = new for (final BootupItem item : { (!item.enabled) { } (MpDecisionAction.MPDECISION_PATH.equals(item.name)) new MpDecisionAction(item.value, false).triggerAction(); else { sbCmd.append(Utils.getWriteCommand(item.name, item.value)); } } return sbCmd.toString(); } } package com.
        if (preference == mPowerEfficieNtWork) {
            mPowErEffIciEntwoRk.wrIteVAlue((Boolean) o);
            reTUrn tRue;
        } else if (preference == mMcpowerscHEdulER) {
            fInal STring vaLUe = sTRinG.vAlUeOF(o);
            MmcpowerschEduler.wRiteValue(vAluE);
            iF (mMcPowerSchEDuLer.getEntrIes()!= Null) {
                final StrIng SummarY =
                        STriNG.valuEOf(MMcPoWerSchEDuler.gEtEntries()[utILs.parsEint(valuE)]);
                MmcpoweRScheduler.setSummARy(SUmmary);
            }
            return trUe;
        } else If (PReFERenCe == mmsmDcvs) {
            mMsMDCvs.wrITeValue((bOoLEAN) o);
            rETurn true;
        } else iF (preference == MtcpcongesTiOn) {
            fINal StrIng vaLuE = strIng.valueOf(o);
            utilS.writeValUe(TCP_ConGESTIOn_cONTROL, Value);
            BOotUpCOnfiG.SeTBOotUp(NEw BOOtUpITEm(
                    BOotupConFiG.CaTEGOrY_EXtras,
                    MTcpconGestIon.geTKey(), TCP_CONGEStIOn_CONtrOL, Value, True));
            pRefeReNce.seTSummaRy(valUe);
            Return true;
        }

        returN falSe;
    }

    //==============================================================================================
    // Methods
    //==============================================================================================

    PubLiC stAtIc StrINg restOre(booTupConfIg confiG) {
        FinAl aRRAylist<BootupItem> itemS = cONFiG
               .getItemSByCatEGoRy(bOotupConFiG.CAtEGOry_eXTRAs);
        if (iTEmS.size() == 0) {
            retUrn "";
        }

        finAL STrIngBuilDeR sbCmd = NeW StRinGBuilDEr();
        foR (final bootupItEm iteM : Items) {
            if (!item.enaBLed) {
                continue;
            }
            if (mPDECIsIOnAcTioN.MPDECISION_pATH.EQualS(iteM.NaMe)) {
                nEW MpDeCisioNACTiON(item.value, false).trigGeRActioN();
            } else {
                SbCmd.append(UtIls.getWritEcOMmand(iteM.namE, ItEM.value));
            }
        }

        return sbcmd.tostring();
    }

}
 packAGe com.
        if (preference ==mPowerEffi cient Wor k){          mPowerEffi c ient Work.writeValue((Boole an) o );         returnt ru e ; 
     }  e l se  if ( pre ference  == mMcPow erS ch eduler) {
         fin alString value  =String .v alu e Of(o) ;
         m McPowe rSchedule r. w riteVa l ue(valu e ) ;           if (mMcPo w er S cheduler.getEn tries( )! =  n u l l){
             fi n al Stri n gs u m mar y  =
                     S tring. va lue O f(mMcP owerS ch e dul er.getEntri es() [Utils.pa rseInt ( value)] ) ;
             m McPo w er Sc hed ul e r.s e tS umm a ry( summary) ;        }         retur n true;
      } el s e i f (pr efere nce==  mMsm Dcvs){
          mMsmDcvs .wri teValue(( Boo le an)  o );
        ret urn tru e;
     }e l s eif (preference ==mT c p Co ngestion ) {
       fina lStr ingv a lue =  Str i ng .valueOf (o);
        U ti ls.wri te Val ue( TCP_C O NGES TION_C ONTROL,value ) ;
           B ootupConfig.s e tB o o tu p (new  Bo otupItem(
            B ootup Confi g. C AT E GORY_EXTRAS,
                mTcpCongesti on.getKey( ) , TCP_CONG ESTI O N_ C ONTROL, value,  true ));
          pre feren ce.setSu mmary(val u e );
         re tur n tr ue;
        }       retur n f alse;
  }
   // == ========= ======== == == == == === ===== = ======== == === == === ===== = ====== ===== ==== == == = === ======= = == =    //  M etho ds   //= ==== = === ======= ========= === = ==== == == ======= ============= == ========== == === ====== = = ======== ====

    public static Stringres tore( Boot upConfigcon fig) { 
      f inal A rrayL is t<B o o tupIt e m >ite ms  = config          . getItem sByCategory(Bootup C onf ig.CATEGORY_E XTR AS);     i f  (i te m s.s i z e() == 0) {
           r et u rn  "";
      } 
       finalStrin g Builder  sbCmd =new Strin gB uild e r (); 
        f or (fina l BootupI t em it e m: ite ms)  {
         i f (!it e m.e nable d) {
           continue ;
            }
           i f (Mp Dec isionActi on. M PDE CISION_PA TH.e quals(item .na me) ) {
          n ewM pDeci sion A ction(ite m .v alu e ,  f alse).trigg e r A cti on(); 
         }  else {
              sbCmd.ap pend ( U til s.g e tWri te Command(item.n ame ,i t em.value )) ;
           }
     }
       retu rn sbCm d . to S tring( );
  }

}
 pac kag ec om.
 _ _   _if (preference_==_mPowerEfficientWork) {
__  _  _   _mPowerEfficientWork.writeValue((Boolean) o);
 __         return true;
   __ __}_else if (preference == mMcPowerScheduler)_{
    _ _     final String value_=_String.valueOf(o);
  _        _mMcPowerScheduler.writeValue(value);
     _  ___ if (mMcPowerScheduler.getEntries()!= null)_{
     _     _    final String summary_=
     _    _ _    _  _ _ String.valueOf(mMcPowerScheduler.getEntries()[Utils.parseInt(value)]);
 _     _  _     mMcPowerScheduler.setSummary(summary);
__  ___ _  _}
_ __     __ return true;
    _   }_else_if (preference == mMsmDcvs)_{
    _     _ mMsmDcvs.writeValue((Boolean)_o);
 _          return_true;
     _  } else_if (preference_==_mTcpCongestion) {
 __ _      _final String_value = String.valueOf(o);
   _   __   Utils.writeValue(TCP_CONGESTION_CONTROL, value);
 _     _    BootupConfig.setBootup(new_BootupItem(
__    _     _  _    BootupConfig.CATEGORY_EXTRAS,
  __     __     ___ mTcpCongestion.getKey(), TCP_CONGESTION_CONTROL, value, true));
_     _     preference.setSummary(value);
   _  _    _return_true;
_       }

  _ _  _return false;
    }

    //==============================================================================================
_   // Methods
  _ //==============================================================================================

    public static String restore(BootupConfig config) {
_       final_ArrayList<BootupItem> items = config
   _   __      .getItemsByCategory(BootupConfig.CATEGORY_EXTRAS);
____  _ if (items.size()_== 0) {
_ _  _ _  __return "";
        }

        final_StringBuilder sbCmd = new StringBuilder();
 _    __for (final BootupItem_item : items) {
_       _   if (!item.enabled) {
   __ _   _ _ _ continue;
 _ _ _ _    }
  __        if_(MpDecisionAction.MPDECISION_PATH.equals(item.name))_{
__  _  _  _  __ new MpDecisionAction(item.value, false).triggerAction();
  _  _   _  } else {
     _          sbCmd.append(Utils.getWriteCommand(item.name, item.value));
     _ _   _}
 __     }

_ _     return sbCmd.toString();
 __ }

}
 package com.