Home
last modified time | relevance | path

Searched refs:position (Results 1 – 25 of 76) sorted by relevance

1234

/development/samples/ApiDemos/src/com/example/android/apis/view/
DList6.java49 protected void onListItemClick(ListView l, View v, int position, long id) in onListItemClick() argument
51 ((SpeechListAdapter)getListAdapter()).toggle(position); in onListItemClick()
85 public Object getItem(int position) { in getItem() argument
86 return position; in getItem()
93 public long getItemId(int position) { in getItemId() argument
94 return position; in getItemId()
101 public View getView(int position, View convertView, ViewGroup parent) { in getView() argument
104 … sv = new SpeechView(mContext, mTitles[position], mDialogue[position], mExpanded[position]); in getView()
107 sv.setTitle(mTitles[position]); in getView()
108 sv.setDialogue(mDialogue[position]); in getView()
[all …]
DList5.java58 public boolean isEnabled(int position) { in isEnabled() argument
59 return !mStrings[position].startsWith("-"); in isEnabled()
62 public Object getItem(int position) { in getItem() argument
63 return position; in getItem()
66 public long getItemId(int position) { in getItemId() argument
67 return position; in getItemId()
70 public View getView(int position, View convertView, ViewGroup parent) { in getView() argument
78 tv.setText(mStrings[position]); in getView()
DList4.java73 public Object getItem(int position) { in getItem() argument
74 return position; in getItem()
82 public long getItemId(int position) { in getItemId() argument
83 return position; in getItemId()
92 public View getView(int position, View convertView, ViewGroup parent) { in getView() argument
95 sv = new SpeechView(mContext, mTitles[position], in getView()
96 mDialogue[position]); in getView()
99 sv.setTitle(mTitles[position]); in getView()
100 sv.setDialogue(mDialogue[position]); in getView()
DGallery1.java52 public void onItemClick(AdapterView parent, View v, int position, long id) { in onCreate()
53 Toast.makeText(Gallery1.this, "" + position, Toast.LENGTH_SHORT).show(); in onCreate()
69 Toast.makeText(this, "Longpress: " + info.position, Toast.LENGTH_SHORT).show(); in onContextItemSelected()
90 public Object getItem(int position) { in getItem() argument
91 return position; in getItem()
94 public long getItemId(int position) { in getItemId() argument
95 return position; in getItemId()
98 public View getView(int position, View convertView, ViewGroup parent) { in getView() argument
101 i.setImageResource(mImageIds[position]); in getView()
DList14.java78 public Object getItem(int position) { in getItem() argument
79 return position; in getItem()
87 public long getItemId(int position) { in getItemId() argument
88 return position; in getItemId()
97 public View getView(int position, View convertView, ViewGroup parent) { in getView() argument
122 holder.text.setText(DATA[position]); in getView()
123 holder.icon.setImageBitmap((position & 1) == 1 ? mIcon1 : mIcon2); in getView()
DLayoutAnimation6.java55 public View getView(int position, View convertView, ViewGroup parent) { in getView() argument
58 ResolveInfo info = mApps.get(position % mApps.size()); in getView()
72 public final Object getItem(int position) { in getItem() argument
73 return mApps.get(position % mApps.size()); in getItem()
76 public final long getItemId(int position) { in getItemId() argument
77 return position; in getItemId()
DLayoutAnimation5.java55 public View getView(int position, View convertView, ViewGroup parent) { in getView() argument
58 ResolveInfo info = mApps.get(position % mApps.size()); in getView()
72 public final Object getItem(int position) { in getItem() argument
73 return mApps.get(position % mApps.size()); in getItem()
76 public final long getItemId(int position) { in getItemId() argument
77 return position; in getItemId()
DGrid1.java64 public View getView(int position, View convertView, ViewGroup parent) { in getView() argument
75 ResolveInfo info = mApps.get(position); in getView()
86 public final Object getItem(int position) { in getItem() argument
87 return mApps.get(position); in getItem()
90 public final long getItemId(int position) { in getItemId() argument
91 return position; in getItemId()
DLayoutAnimation4.java56 public View getView(int position, View convertView, ViewGroup parent) { in getView() argument
59 ResolveInfo info = mApps.get(position % mApps.size()); in getView()
73 public final Object getItem(int position) { in getItem() argument
74 return mApps.get(position % mApps.size()); in getItem()
77 public final long getItemId(int position) { in getItemId() argument
78 return position; in getItemId()
DLayoutAnimation1.java55 public View getView(int position, View convertView, ViewGroup parent) { in getView() argument
58 ResolveInfo info = mApps.get(position % mApps.size()); in getView()
72 public final Object getItem(int position) { in getItem() argument
73 return mApps.get(position % mApps.size()); in getItem()
76 public final long getItemId(int position) { in getItemId() argument
77 return position; in getItemId()
DImageSwitcher1.java59 public void onItemSelected(AdapterView parent, View v, int position, long id) { in onItemSelected() argument
60 mSwitcher.setImageResource(mImageIds[position]); in onItemSelected()
86 public Object getItem(int position) { in getItem() argument
87 return position; in getItem()
90 public long getItemId(int position) { in getItemId() argument
91 return position; in getItemId()
94 public View getView(int position, View convertView, ViewGroup parent) { in getView() argument
97 i.setImageResource(mThumbIds[position]); in getView()
DList13.java77 public Object getItem(int position) { in getItem() argument
78 return position; in getItem()
86 public long getItemId(int position) { in getItemId() argument
87 return position; in getItemId()
96 public View getView(int position, View convertView, ViewGroup parent) { in getView() argument
106 text.setText(mStrings[position]); in getView()
DList8.java97 public Object getItem(int position) { in getItem() argument
98 return position; in getItem()
101 public long getItemId(int position) { in getItemId() argument
102 return position; in getItemId()
105 public View getView(int position, View convertView, ViewGroup parent) { in getView() argument
109 i.setImageResource(mPhotos.get(position)); in getView()
DSpinner1.java52 AdapterView<?> parent, View view, int position, long id) { in onCreate()
53 showToast("Spinner1: position=" + position + " id=" + id); in onCreate()
69 AdapterView<?> parent, View view, int position, long id) { in onCreate()
70 showToast("Spinner2: position=" + position + " id=" + id); in onCreate()
/development/apps/Development/src/com/android/development/
DArrayAdapter.java42 public E itemForPosition(int position) { in itemForPosition() argument
47 return mList.get(position); in itemForPosition()
54 public Object getItem(int position) { in getItem() argument
55 return position; in getItem()
58 public long getItemId(int position) { in getItemId() argument
59 return position; in getItemId()
62 public View getView(int position, View convertView, ViewGroup parent) { in getView() argument
69 bindView(view, mList.get(position)); in getView()
DAppHwConfigList.java68 protected void onListItemClick(ListView l, View v, int position, long id) { in onListItemClick() argument
69 PackageInfo app = mAdapter.appForPosition(position); in onListItemClick()
103 public PackageInfo appForPosition(int position) { in appForPosition() argument
107 return mList.get(position); in appForPosition()
114 public Object getItem(int position) { in getItem() argument
115 return position; in getItem()
118 public long getItemId(int position) { in getItemId() argument
119 return position; in getItemId()
122 public View getView(int position, View convertView, ViewGroup parent) { in getView() argument
130 bindView(view, mList.get(position)); in getView()
DRunningProcesses.java65 protected void onListItemClick(ListView l, View v, int position, long id) { in onListItemClick() argument
66 ListItem app = mAdapter.appForPosition(position); in onListItemClick()
94 public ListItem appForPosition(int position) { in appForPosition() argument
98 return mList.get(position); in appForPosition()
105 public Object getItem(int position) { in getItem() argument
106 return position; in getItem()
109 public long getItemId(int position) { in getItemId() argument
110 return position; in getItemId()
113 public View getView(int position, View convertView, ViewGroup parent) { in getView() argument
121 bindView(view, mList.get(position)); in getView()
DInstrumentationList.java58 public ComponentName instrumentationForPosition(int position) in instrumentationForPosition() argument
63 InstrumentationInfo ii = mList.get(position); in instrumentationForPosition()
72 public Object getItem(int position) in getItem() argument
74 return position; in getItem()
77 public long getItemId(int position) in getItemId() argument
79 return position; in getItemId()
82 public View getView(int position, View convertView, ViewGroup parent) in getView() argument
91 bindView(view, mList.get(position)); in getView()
146 protected void onListItemClick(ListView l, View v, int position, long id) in onListItemClick() argument
149 instrumentationForPosition(position); in onListItemClick()
DPermissionDetails.java103 public Object getItem(int position) { in getItem() argument
104 return mList.get(position); in getItem()
107 public long getItemId(int position) { in getItemId() argument
108 return position; in getItemId()
111 public PackageInfo getPkg(int position) { in getPkg() argument
112 return mList.get(position); in getPkg()
115 public View getView(int position, View convertView, ViewGroup parent) { in getView() argument
137 PackageInfo pInfo = mList.get(position); in getView()
301 public void onItemClick(AdapterView<?> parent, View view, int position,
/development/samples/Home/src/com/example/android/home/
DWallpaper.java79 public void onItemSelected(AdapterView parent, View v, int position, long id) { in onItemSelected() argument
80 getWindow().setBackgroundDrawableResource(IMAGE_IDS[position]); in onItemSelected()
83 public void onItemClick(AdapterView parent, View v, int position, long id) { in onItemClick() argument
84 selectWallpaper(position); in onItemClick()
92 private synchronized void selectWallpaper(int position) { in selectWallpaper() argument
98 InputStream stream = getResources().openRawResource(IMAGE_IDS[position]); in selectWallpaper()
128 public Object getItem(int position) { in getItem() argument
129 return position; in getItem()
132 public long getItemId(int position) { in getItemId() argument
133 return position; in getItemId()
[all …]
/development/samples/ApiDemos/src/com/example/android/apis/animation/
DTransition3d.java87 private void applyRotation(int position, float start, float end) { in applyRotation() argument
99 rotation.setAnimationListener(new DisplayNextView(position)); in applyRotation()
104 public void onItemClick(AdapterView<?> parent, View v, int position, long id) { in onItemClick() argument
106 mImageView.setImageResource(PHOTOS_RESOURCES[position]); in onItemClick()
107 applyRotation(position, 0, 90); in onItemClick()
122 private DisplayNextView(int position) { in DisplayNextView() argument
123 mPosition = position; in DisplayNextView()
144 public SwapViews(int position) { in SwapViews() argument
145 mPosition = position; in SwapViews()
/development/samples/GlobalTime/src/com/android/globaltime/
DShape.java165 shortIndexBuffer.position(0); in allocateBuffers()
189 intIndexBuffer.position(0); in allocateBuffers()
203 mVertexBuffer.position(0); in allocate()
211 mTexcoordBuffer.position(0); in allocate()
220 mNormalBuffer.position(0); in allocate()
229 mColorBuffer.position(0); in allocate()
/development/samples/BrowserPlugin/src/com/android/sampleplugin/graphics/
DCube.java76 mVertexBuffer.position(0); in Cube()
82 mColorBuffer.position(0); in Cube()
86 mIndexBuffer.position(0); in Cube()
/development/samples/ApiDemos/src/com/example/android/apis/graphics/
DCube.java76 mVertexBuffer.position(0); in Cube()
82 mColorBuffer.position(0); in Cube()
86 mIndexBuffer.position(0); in Cube()
/development/samples/ApiDemos/src/com/example/android/apis/graphics/kube/
DGLWorld.java74 mColorBuffer.position(0); in draw()
75 mVertexBuffer.position(0); in draw()
76 mIndexBuffer.position(0); in draw()

1234