Lines Matching defs:gesture
17 package com.android.gesture.builder;
30 import android.gesture.GestureLibrary;
31 import android.gesture.Gesture;
32 import android.gesture.GestureLibraries;
164 outState.putLong(GESTURES_INFO_ID, mCurrentRenameGesture.gesture.getID());
176 for (Gesture gesture : sStore.getGestures(name)) {
177 if (gesture.getID() == id) {
180 mCurrentRenameGesture.gesture = gesture;
205 final NamedGesture gesture = (NamedGesture) menuInfo.targetView.getTag();
209 renameGesture(gesture);
212 deleteGesture(gesture);
219 private void renameGesture(NamedGesture gesture) {
220 mCurrentRenameGesture = gesture;
282 final NamedGesture gesture = adapter.getItem(i);
283 if (gesture.gesture.getID() == renameGesture.gesture.getID()) {
284 sStore.removeGesture(gesture.name, gesture.gesture);
285 gesture.name = mInput.getText().toString();
286 sStore.addGesture(gesture.name, gesture.gesture);
304 private void deleteGesture(NamedGesture gesture) {
305 sStore.removeGesture(gesture.name, gesture.gesture);
310 adapter.remove(gesture);
352 for (Gesture gesture : store.getGestures(name)) {
353 final Bitmap bitmap = gesture.toBitmap(mThumbnailSize, mThumbnailSize,
356 namedGesture.gesture = gesture;
359 mAdapter.addBitmap(namedGesture.gesture.getID(), bitmap);
377 for (NamedGesture gesture : values) {
378 adapter.add(gesture);
404 Gesture gesture;
427 final NamedGesture gesture = getItem(position);
430 label.setTag(gesture);
431 label.setText(gesture.name);
432 label.setCompoundDrawablesWithIntrinsicBounds(mThumbnails.get(gesture.gesture.getID()),