Lines Matching refs:spot

296         Spot* spot = getSpotLocked(id);  in setSpots()  local
297 if (!spot) { in setSpots()
298 spot = createAndAddSpotLocked(id); in setSpots()
301 spot->updateSprite(&icon, x, y); in setSpots()
306 Spot* spot = mLocked.spots.itemAt(i); in setSpots() local
307 if (spot->id != Spot::INVALID_ID in setSpots()
308 && !spotIdBits.hasBit(spot->id)) { in setSpots()
309 fadeOutAndReleaseSpotLocked(spot); in setSpots()
531 Spot* spot = mLocked.spots.itemAt(i); in doFadingAnimationLocked() local
532 if (spot->id == Spot::INVALID_ID) { in doFadingAnimationLocked()
533 spot->alpha -= float(frameDelay) / SPOT_FADE_DURATION; in doFadingAnimationLocked()
534 if (spot->alpha <= 0) { in doFadingAnimationLocked()
536 releaseSpotLocked(spot); in doFadingAnimationLocked()
538 spot->sprite->setAlpha(spot->alpha); in doFadingAnimationLocked()
641 Spot* spot = mLocked.spots.itemAt(i); in getSpotLocked() local
642 if (spot->id == id) { in getSpotLocked()
643 return spot; in getSpotLocked()
652 Spot* spot = removeFirstFadingSpotLocked(); in createAndAddSpotLocked() local
653 if (!spot) { in createAndAddSpotLocked()
654 spot = mLocked.spots.itemAt(0); in createAndAddSpotLocked()
657 releaseSpotLocked(spot); in createAndAddSpotLocked()
670 Spot* spot = new Spot(id, sprite); in createAndAddSpotLocked() local
671 mLocked.spots.push(spot); in createAndAddSpotLocked()
672 return spot; in createAndAddSpotLocked()
677 Spot* spot = mLocked.spots.itemAt(i); in removeFirstFadingSpotLocked() local
678 if (spot->id == Spot::INVALID_ID) { in removeFirstFadingSpotLocked()
680 return spot; in removeFirstFadingSpotLocked()
686 void PointerController::releaseSpotLocked(Spot* spot) { in releaseSpotLocked() argument
687 spot->sprite->clearIcon(); in releaseSpotLocked()
690 mLocked.recycledSprites.push(spot->sprite); in releaseSpotLocked()
693 delete spot; in releaseSpotLocked()
696 void PointerController::fadeOutAndReleaseSpotLocked(Spot* spot) { in fadeOutAndReleaseSpotLocked() argument
697 if (spot->id != Spot::INVALID_ID) { in fadeOutAndReleaseSpotLocked()
698 spot->id = Spot::INVALID_ID; in fadeOutAndReleaseSpotLocked()
705 Spot* spot = mLocked.spots.itemAt(i); in fadeOutAndReleaseAllSpotsLocked() local
706 fadeOutAndReleaseSpotLocked(spot); in fadeOutAndReleaseAllSpotsLocked()