Class IntentMiniSummary


  • public final class IntentMiniSummary
    extends Object
    Lists the summary of intents and their states.
    • Constructor Detail

      • IntentMiniSummary

        public IntentMiniSummary()
    • Method Detail

      • getIntentType

        public String getIntentType()
        Returns intent Type.
        Returns:
        intentType
      • getTotal

        public int getTotal()
        Returns total intent count.
        Returns:
        total
      • getInstallReq

        public int getInstallReq()
        Returns InstallReq intent count.
        Returns:
        InstallReq
      • getCompiling

        public int getCompiling()
        Returns Compiling intent count.
        Returns:
        Compiling
      • getInstalling

        public int getInstalling()
        Returns Installing intent count.
        Returns:
        Installing
      • getInstalled

        public int getInstalled()
        Returns Installed intent count.
        Returns:
        Installed
      • getRecompiling

        public int getRecompiling()
        Returns Recompiling intent count.
        Returns:
        Recompiling
      • getWithdrawReq

        public int getWithdrawReq()
        Returns WithdrawReq intent count.
        Returns:
        WithdrawReq
      • getWithdrawing

        public int getWithdrawing()
        Returns Withdrawing intent count.
        Returns:
        Withdrawing
      • getWithdrawn

        public int getWithdrawn()
        Returns Withdrawn intent count.
        Returns:
        Withdrawn
      • getFailed

        public int getFailed()
        Returns Failed intent count.
        Returns:
        Failed
      • getUnknownState

        public int getUnknownState()
        Returns unknownState intent count.
        Returns:
        unknownState
      • update

        public void update​(IntentState intentState)
        Updates the Intent Summary.
        Parameters:
        intentState - the state of the intent
      • summarize

        public Map<String,​IntentMiniSummary> summarize​(Iterable<Intent> intents,
                                                             IntentService intentService)
        Build summary of intents per intent type.
        Parameters:
        intents - to summarize
        intentService - to get IntentState
        Returns:
        summaries per Intent type