Lines Matching refs:spot
316 Spot* spot = getSpotLocked(id); in setSpots() local
317 if (!spot) { in setSpots()
318 spot = createAndAddSpotLocked(id); in setSpots()
321 spot->updateSprite(&icon, x, y); in setSpots()
326 Spot* spot = mLocked.spots.itemAt(i); in setSpots() local
327 if (spot->id != Spot::INVALID_ID in setSpots()
328 && !spotIdBits.hasBit(spot->id)) { in setSpots()
329 fadeOutAndReleaseSpotLocked(spot); in setSpots()
551 Spot* spot = mLocked.spots.itemAt(i); in doFadingAnimationLocked() local
552 if (spot->id == Spot::INVALID_ID) { in doFadingAnimationLocked()
553 spot->alpha -= float(frameDelay) / SPOT_FADE_DURATION; in doFadingAnimationLocked()
554 if (spot->alpha <= 0) { in doFadingAnimationLocked()
556 releaseSpotLocked(spot); in doFadingAnimationLocked()
559 spot->sprite->setAlpha(spot->alpha); in doFadingAnimationLocked()
663 Spot* spot = mLocked.spots.itemAt(i); in getSpotLocked() local
664 if (spot->id == id) { in getSpotLocked()
665 return spot; in getSpotLocked()
674 Spot* spot = removeFirstFadingSpotLocked(); in createAndAddSpotLocked() local
675 if (!spot) { in createAndAddSpotLocked()
676 spot = mLocked.spots.itemAt(0); in createAndAddSpotLocked()
679 releaseSpotLocked(spot); in createAndAddSpotLocked()
692 Spot* spot = new Spot(id, sprite); in createAndAddSpotLocked() local
693 mLocked.spots.push(spot); in createAndAddSpotLocked()
694 return spot; in createAndAddSpotLocked()
699 Spot* spot = mLocked.spots.itemAt(i); in removeFirstFadingSpotLocked() local
700 if (spot->id == Spot::INVALID_ID) { in removeFirstFadingSpotLocked()
702 return spot; in removeFirstFadingSpotLocked()
708 void PointerController::releaseSpotLocked(Spot* spot) { in releaseSpotLocked() argument
709 spot->sprite->clearIcon(); in releaseSpotLocked()
712 mLocked.recycledSprites.push(spot->sprite); in releaseSpotLocked()
715 delete spot; in releaseSpotLocked()
718 void PointerController::fadeOutAndReleaseSpotLocked(Spot* spot) { in fadeOutAndReleaseSpotLocked() argument
719 if (spot->id != Spot::INVALID_ID) { in fadeOutAndReleaseSpotLocked()
720 spot->id = Spot::INVALID_ID; in fadeOutAndReleaseSpotLocked()
727 Spot* spot = mLocked.spots.itemAt(i); in fadeOutAndReleaseAllSpotsLocked() local
728 fadeOutAndReleaseSpotLocked(spot); in fadeOutAndReleaseAllSpotsLocked()