Lines Matching refs:id

99             int id = msg.arg1;
100 if (id >= mCarouselView.getCardCount()) {
101 Log.e(TAG, "Index out of range for get, card:" + id);
105 Log.e(TAG, "Unknown message: " + id);
110 final Bitmap bitmap = getTexture(id);
112 mSyncHandler.obtainMessage(SET_TEXTURE_N, id, 0, bitmap).sendToTarget();
115 TextureParameters params = getTextureParameters(id);
117 mSyncHandler.obtainMessage(SET_MATRIX_N, id, 0,
122 final Bitmap bitmap = getDetailTexture(id);
124 mSyncHandler.obtainMessage(SET_DETAIL_TEXTURE_N, id, 0, bitmap).sendToTarget();
128 Mesh mesh = getGeometry(id);
130 mSyncHandler.obtainMessage(SET_GEOMETRY_N, id, 0, mesh).sendToTarget();
139 int id = msg.arg1;
140 if (id >= mCarouselView.getCardCount()) {
141 Log.e(TAG, "Index out of range for set, card:" + id);
147 mCarouselView.setTextureForItem(id, (Bitmap) msg.obj);
151 DetailTextureParameters params = getDetailTextureParameters(id);
156 mCarouselView.setDetailTextureForItem(id, x, y, lx, ly, (Bitmap) msg.obj);
160 mCarouselView.setGeometryForItem(id, (Mesh) msg.obj);
164 mCarouselView.setMatrixForItem(id, (float[]) msg.obj);
175 * @param id of the texture to load
178 public Bitmap getTexture(int id) {
187 * @param id
190 public Bitmap getDetailTexture(int id) {
199 * @param id
202 public Mesh getGeometry(int id) {
208 * the given id. Note: this will generally
211 * @param id
214 public TextureParameters getTextureParameters(int id) {
220 * the given id. Note: this will generally
223 * @param id the id of the texture being requested
226 public DetailTextureParameters getDetailTextureParameters(int id) {
230 public void onRequestTexture(int id) {
231 if (DBG) Log.v(TAG, "onRequestTexture(" + id + ")" );
232 mAsyncHandler.removeMessages(REQUEST_TEXTURE_N + id);
233 Message message = mAsyncHandler.obtainMessage(REQUEST_TEXTURE_N + id, id, 0);
237 public void onInvalidateTexture(final int id) {
238 if (DBG) Log.v(TAG, "onInvalidateTexture(" + id + ")");
239 mAsyncHandler.removeMessages(REQUEST_TEXTURE_N + id);
242 public void onRequestGeometry(int id) {
243 if (DBG) Log.v(TAG, "onRequestGeometry(" + id + ")");
244 mAsyncHandler.removeMessages(REQUEST_GEOMETRY_N + id);
245 mAsyncHandler.sendMessage(mAsyncHandler.obtainMessage(REQUEST_GEOMETRY_N + id, id, 0));
248 public void onInvalidateGeometry(int id) {
249 if (DBG) Log.v(TAG, "onInvalidateGeometry(" + id + ")");
250 mAsyncHandler.removeMessages(REQUEST_GEOMETRY_N + id);
253 public void onRequestDetailTexture(int id) {
254 if (DBG) Log.v(TAG, "onRequestDetailTexture(" + id + ")" );
255 mAsyncHandler.removeMessages(REQUEST_DETAIL_TEXTURE_N + id);
256 Message message = mAsyncHandler.obtainMessage(REQUEST_DETAIL_TEXTURE_N + id, id, 0);
260 public void onInvalidateDetailTexture(int id) {
261 if (DBG) Log.v(TAG, "onInvalidateDetailTexture(" + id + ")");
262 mAsyncHandler.removeMessages(REQUEST_DETAIL_TEXTURE_N + id);