example.platform.power/src/example/platform/power/ExamplePlatformKernel.java
public void deactivateWakelock(WakeLock lock)
    {
        WakeLocks lockToRemove = findMatchingLock(lock, m_ActiveLocks);

        if (lockToRemove != null)
        {
            m_ActiveLocks.remove(lockToRemove);
            m_InactiveLocks.add(lockToRemove);

            if (m_ActiveLocks.isEmpty())
            {
                enableLowPowerMode();
            }
        }
        else
        {
            m_Logging.error("Unable to find lock to remove [%s]", lock.toString());
        }
    }
/**
     * Deactivates a given {@link WakeLock}
     * @param lock
     *      the WakeLock to deactivate
     */
Deactivates a given  WakeLock
@param lock
the WakeLock to deactivate
Deactivates a given WakeLock @param lock the WakeLock to deactivate
public void deactivateWakelock(WakeLock lock)
    {
        WakeLocks lockToRemove = findMatchingLock(lock, m_ActiveLocks);
        if (lockToRemove != null)
        {
            m_ActiveLocks.remove(lockToRemove);
            m_InactiveLocks.add(lockToRemove);
            if (m_ActiveLocks.isEmpty())
            {
                enableLowPowerMode();
            }
        }
        else
        {
            m_Logging.error("Unable to find lock to remove [%s]", lock.toString());
        }
    }
public void deactivateWakelock ( WakeLock lock ) { WakeLocks lockToRemove = findMatchingLock ( lock , m_ActiveLocks ) ; if ( lockToRemove != null ) { m_ActiveLocks . remove ( lockToRemove ) ; m_InactiveLocks . add ( lockToRemove ) ; if ( m_ActiveLocks . isEmpty ( ) ) { enableLowPowerMode ( ) ; } } else { m_Logging . error ( "Unable to find lock to remove [%s]" , lock . toString ( ) ) ; } }
Deactivates a given {@link WakeLock}
 @param lock
      the WakeLock to deactivate
Deactivates a given { @link WakeLock } @param lock the WakeLock to deactivate