Lines Matching refs:icon
133 update.state.surfaceWidth = update.state.icon.bitmap.getInfo().width; in doUpdateSprites()
134 update.state.surfaceHeight = update.state.icon.bitmap.getInfo().height; in doUpdateSprites()
155 int32_t desiredWidth = update.state.icon.bitmap.getInfo().width; in doUpdateSprites()
156 int32_t desiredHeight = update.state.icon.bitmap.getInfo().height; in doUpdateSprites()
206 canvas.drawBitmap(update.state.icon.bitmap, 0, 0, &paint); in doUpdateSprites()
208 const int iconWidth = update.state.icon.bitmap.getInfo().width; in doUpdateSprites()
209 const int iconHeight = update.state.icon.bitmap.getInfo().height; in doUpdateSprites()
257 update.state.positionX - update.state.icon.hotSpotX, in doUpdateSprites()
258 update.state.positionY - update.state.icon.hotSpotY); in doUpdateSprites()
276 p.writeInt32(update.state.icon.style); in doUpdateSprites()
277 p.writeFloat(update.state.icon.hotSpotX); in doUpdateSprites()
278 p.writeFloat(update.state.icon.hotSpotY); in doUpdateSprites()
390 void SpriteController::SpriteImpl::setIcon(const SpriteIcon& icon) { in setIcon() argument
394 if (icon.isValid()) { in setIcon()
395 mLocked.state.icon.bitmap = icon.bitmap.copy(ANDROID_BITMAP_FORMAT_RGBA_8888); in setIcon()
396 if (!mLocked.state.icon.isValid() in setIcon()
397 || mLocked.state.icon.hotSpotX != icon.hotSpotX in setIcon()
398 || mLocked.state.icon.hotSpotY != icon.hotSpotY) { in setIcon()
399 mLocked.state.icon.hotSpotX = icon.hotSpotX; in setIcon()
400 mLocked.state.icon.hotSpotY = icon.hotSpotY; in setIcon()
406 if (mLocked.state.icon.style != icon.style) { in setIcon()
407 mLocked.state.icon.style = icon.style; in setIcon()
410 } else if (mLocked.state.icon.isValid()) { in setIcon()
411 mLocked.state.icon.bitmap.reset(); in setIcon()