Class ShadowPowerManager.ShadowWakeLock

    • Constructor Detail

      • ShadowWakeLock

        public ShadowWakeLock()
    • Method Detail

      • release

        @Implementation
        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
        Returns:
        Is the wake lock reference counted?
      • setReferenceCounted

        @Implementation
        protected void setReferenceCounted​(boolean value)
      • getWorkSource

        public WorkSource getWorkSource()
      • getTimesHeld

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