Lines Matching refs:spot
116 Spot* spot = getSpot(id, mLocked.displaySpots); in setSpots() local
117 if (!spot) { in setSpots()
118 spot = createAndAddSpotLocked(id, mLocked.displaySpots); in setSpots()
121 spot->updateSprite(&icon, x, y, mDisplayId, skipScreenshot); in setSpots()
124 for (Spot* spot : mLocked.displaySpots) { in setSpots()
125 if (spot->id != Spot::INVALID_ID && !spotIdBits.hasBit(spot->id)) { in setSpots()
126 fadeOutAndReleaseSpotLocked(spot); in setSpots()
145 Spot* spot = spots[i]; in getSpot() local
146 if (spot->id == id) { in getSpot()
147 return spot; in getSpot()
158 Spot* spot = removeFirstFadingSpotLocked(spots); in createAndAddSpotLocked() local
159 if (!spot) { in createAndAddSpotLocked()
160 spot = spots[0]; in createAndAddSpotLocked()
163 releaseSpotLocked(spot); in createAndAddSpotLocked()
176 Spot* spot = new Spot(id, sprite); in createAndAddSpotLocked() local
177 spots.push_back(spot); in createAndAddSpotLocked()
178 return spot; in createAndAddSpotLocked()
184 Spot* spot = spots[i]; in removeFirstFadingSpotLocked() local
185 if (spot->id == Spot::INVALID_ID) { in removeFirstFadingSpotLocked()
187 return spot; in removeFirstFadingSpotLocked()
193 void TouchSpotController::releaseSpotLocked(Spot* spot) REQUIRES(mLock) { in releaseSpotLocked() argument
194 spot->sprite->clearIcon(); in releaseSpotLocked()
197 mLocked.recycledSprites.push_back(spot->sprite); in releaseSpotLocked()
199 delete spot; in releaseSpotLocked()
202 void TouchSpotController::fadeOutAndReleaseSpotLocked(Spot* spot) REQUIRES(mLock) { in fadeOutAndReleaseSpotLocked() argument
203 if (spot->id != Spot::INVALID_ID) { in fadeOutAndReleaseSpotLocked()
204 spot->id = Spot::INVALID_ID; in fadeOutAndReleaseSpotLocked()
212 Spot* spot = mLocked.displaySpots[i]; in fadeOutAndReleaseAllSpotsLocked() local
213 fadeOutAndReleaseSpotLocked(spot); in fadeOutAndReleaseAllSpotsLocked()
243 Spot* spot = mLocked.displaySpots[i]; in doFadingAnimationLocked() local
244 if (spot->id == Spot::INVALID_ID) { in doFadingAnimationLocked()
245 spot->alpha -= float(frameDelay) / SPOT_FADE_DURATION; in doFadingAnimationLocked()
246 if (spot->alpha <= 0) { in doFadingAnimationLocked()
248 releaseSpotLocked(spot); in doFadingAnimationLocked()
252 spot->sprite->setAlpha(spot->alpha); in doFadingAnimationLocked()
286 for (const auto& spot : mLocked.displaySpots) { in dump() local
287 spot->dump(out, spotPrefix.c_str()); in dump()