104105106107108109110111112113114
long expireTime = timeout + Alarm.getCurrentTime(); if (alarm != null && (! alarm.isQueued() || expireTime < alarm.getWakeTime())) { alarm.queueAt(expireTime); } } /** * Registers a callback future.