example.platform.power/src/example/platform/power/ExamplePlatformKernel.java
public void unscheduleWakelock(WakeLock lock)
    {
        WakeLocks lockToRemove = findMatchingLock(lock, m_ScheduledLocks);
        if (lockToRemove != null)
        {
            m_ScheduledLocks.remove(lockToRemove);
            m_InactiveLocks.add(lockToRemove);
        }
        else
        {
            m_Logging.error("Unable to find lock to remove [%s]", lock.toString());
        }        
    }
/**
     * removes a scheduled {@link WakeLock} from the list of upcoming locks
     * @param lock
     *      the lock to remove
     */
removes a scheduled  WakeLock from the list of upcoming locks
@param lock
the lock to remove
removes a scheduled WakeLock from the list of upcoming locks @param lock the lock to remove
public void unscheduleWakelock(WakeLock lock)
    {
        WakeLocks lockToRemove = findMatchingLock(lock, m_ScheduledLocks);
        if (lockToRemove != null)
        {
            m_ScheduledLocks.remove(lockToRemove);
            m_InactiveLocks.add(lockToRemove);
        }
        else
        {
            m_Logging.error("Unable to find lock to remove [%s]", lock.toString());
        }        
    }
public void unscheduleWakelock ( WakeLock lock ) { WakeLocks lockToRemove = findMatchingLock ( lock , m_ScheduledLocks ) ; if ( lockToRemove != null ) { m_ScheduledLocks . remove ( lockToRemove ) ; m_InactiveLocks . add ( lockToRemove ) ; } else { m_Logging . error ( "Unable to find lock to remove [%s]" , lock . toString ( ) ) ; } }
removes a scheduled {@link WakeLock} from the list of upcoming locks
 @param lock
      the lock to remove
removes a scheduled { @link WakeLock } from the list of upcoming locks @param lock the lock to remove