Class ShadowPowerManager.ShadowWakeLock

    • Constructor Detail

      • ShadowWakeLock

        public ShadowWakeLock()
    • Method Detail

      • release

        protected void release​(int flags)
        Releases the wake lock. The flags are ignored.
      • isReferenceCounted

        public boolean isReferenceCounted()
        Retrieves if the wake lock is reference counted or not
        Is the wake lock reference counted?
      • setReferenceCounted

        protected void setReferenceCounted​(boolean value)
      • getWorkSource

        public WorkSource getWorkSource()
      • getTimesHeld

        public int getTimesHeld()
        Returns how many times the wakelock was held.