Lines Matching refs:spot
271 Spot* spot = getSpotLocked(id); in setSpots() local
272 if (!spot) { in setSpots()
273 spot = createAndAddSpotLocked(id); in setSpots()
276 spot->updateSprite(&icon, x, y); in setSpots()
281 Spot* spot = mLocked.spots.itemAt(i); in setSpots() local
282 if (spot->id != Spot::INVALID_ID in setSpots()
283 && !spotIdBits.hasBit(spot->id)) { in setSpots()
284 fadeOutAndReleaseSpotLocked(spot); in setSpots()
441 Spot* spot = mLocked.spots.itemAt(i); in doAnimate() local
442 if (spot->id == Spot::INVALID_ID) { in doAnimate()
443 spot->alpha -= float(frameDelay) / SPOT_FADE_DURATION; in doAnimate()
444 if (spot->alpha <= 0) { in doAnimate()
446 releaseSpotLocked(spot); in doAnimate()
448 spot->sprite->setAlpha(spot->alpha); in doAnimate()
508 Spot* spot = mLocked.spots.itemAt(i); in getSpotLocked() local
509 if (spot->id == id) { in getSpotLocked()
510 return spot; in getSpotLocked()
519 Spot* spot = removeFirstFadingSpotLocked(); in createAndAddSpotLocked() local
520 if (!spot) { in createAndAddSpotLocked()
521 spot = mLocked.spots.itemAt(0); in createAndAddSpotLocked()
524 releaseSpotLocked(spot); in createAndAddSpotLocked()
537 Spot* spot = new Spot(id, sprite); in createAndAddSpotLocked() local
538 mLocked.spots.push(spot); in createAndAddSpotLocked()
539 return spot; in createAndAddSpotLocked()
544 Spot* spot = mLocked.spots.itemAt(i); in removeFirstFadingSpotLocked() local
545 if (spot->id == Spot::INVALID_ID) { in removeFirstFadingSpotLocked()
547 return spot; in removeFirstFadingSpotLocked()
553 void PointerController::releaseSpotLocked(Spot* spot) { in releaseSpotLocked() argument
554 spot->sprite->clearIcon(); in releaseSpotLocked()
557 mLocked.recycledSprites.push(spot->sprite); in releaseSpotLocked()
560 delete spot; in releaseSpotLocked()
563 void PointerController::fadeOutAndReleaseSpotLocked(Spot* spot) { in fadeOutAndReleaseSpotLocked() argument
564 if (spot->id != Spot::INVALID_ID) { in fadeOutAndReleaseSpotLocked()
565 spot->id = Spot::INVALID_ID; in fadeOutAndReleaseSpotLocked()
572 Spot* spot = mLocked.spots.itemAt(i); in fadeOutAndReleaseAllSpotsLocked() local
573 fadeOutAndReleaseSpotLocked(spot); in fadeOutAndReleaseAllSpotsLocked()