Home
last modified time | relevance | path

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

/cts/tests/tests/widget/src/android/widget/cts/util/
DListItemFactory.java175 public static View convertButton(View convertView, String text, int position) { in convertButton() argument
176 if (((String) convertView.getTag()).equals("button")) { in convertButton()
177 ((Button) convertView).setText(text); in convertButton()
178 convertView.setId(position); in convertButton()
179 return convertView; in convertButton()
215 public static View convertText(View convertView, String text, int position) { in convertText() argument
216 if(convertView.getTag() != null && ((String) convertView.getTag()).equals("text")) { in convertText()
217 ((TextView) convertView).setText(text); in convertText()
218 convertView.setId(position); in convertText()
219 return convertView; in convertText()
[all …]
DExpandableListScenario.java226 private View getView(long packedPosition, View convertView, ViewGroup parent) { in getView() argument
234 if (convertView != null) { in getView()
235 ((TextView) convertView).setText(getValueAtPosition(packedPosition)); in getView()
236 convertView.setId(flPos); in getView()
237 return convertView; in getView()
317 View convertView, ViewGroup parent) { in getChildView() argument
319 childPosition), convertView, parent); in getChildView()
334 public View getGroupView(int groupPosition, boolean isExpanded, View convertView, in getGroupView() argument
337 convertView, parent); in getGroupView()
DListScenario.java545 public View convertView(int position, View convertView, ViewGroup parent) { in convertView() argument
546 return ListItemFactory.convertText(convertView, getValueAtPosition(position), position); in convertView()
628 public View getView(int position, View convertView, ViewGroup parent) { in getView() argument
634 if (convertView != null) { in getView()
635 result = convertView(position, convertView, parent); in getView()
/cts/tests/tests/view/src/android/view/animation/cts/
DGridLayoutAnimCtsActivity.java89 public View getView(int position, View convertView, ViewGroup parent) { in getView() argument
90 if ((convertView != null) && (convertView instanceof ImageView)) { in getView()
91 ((ImageView) convertView).setImageResource(R.drawable.size_48x48); in getView()
92 return convertView; in getView()
/cts/tests/tests/widget/src/android/widget/cts/
DSimpleExpandableListAdapterTest.java192 View convertView = new TextView(mContext); in testGetChildView() local
193 convertView.setId(R.id.text1); in testGetChildView()
194 result = mSimpleExpandableListAdapter.getChildView(2, 2, false, convertView, mAdapterHost); in testGetChildView()
195 assertSame(convertView, result); in testGetChildView()
199 convertView = new TextView(mContext); in testGetChildView()
200 convertView.setId(R.id.text1); in testGetChildView()
201 result = mSimpleExpandableListAdapter.getChildView(1, 1, false, convertView, null); in testGetChildView()
202 assertSame(convertView, result); in testGetChildView()
341 View convertView = new TextView(mContext); in testGetGroupView() local
342 convertView.setId(R.id.text1); in testGetGroupView()
[all …]
DSimpleAdapterTest.java159 TextView convertView = (TextView) result; in testGetView() local
160 result = mSimpleAdapter.getView(0, convertView, mAdapterHost); in testGetView()
162 assertSame(convertView, result); in testGetView()
165 result = mSimpleAdapter.getView(10, convertView, null); in testGetView()
184 mSimpleAdapter.getView(-1, convertView, null); in testGetView()
190 mSimpleAdapter.getView(20, convertView, null); in testGetView()
226 TextView convertView = (TextView) result; in testGetDropDownView() local
228 result = mSimpleAdapter.getDropDownView(0, convertView, mAdapterHost); in testGetDropDownView()
229 assertEquals("01", convertView.getText().toString()); in testGetDropDownView()
230 assertSame(convertView, result); in testGetDropDownView()
[all …]
DGridViewTest.java695 public View getView(int position, View convertView, ViewGroup parent) {
696 if ((convertView != null) && (convertView instanceof ImageView)) {
697 ((ImageView) convertView).setImageResource(R.drawable.size_48x48);
698 return convertView;
755 public View getView(int position, View convertView, ViewGroup parent) {
757 if (convertView == null) {
765 imageView = (ImageView) convertView;
814 public View getDropDownView(int position, View convertView, ViewGroup parent) {
815 return getView(position, convertView, parent);
DBaseExpandableListAdapterTest.java144 boolean isLastChild, View convertView, ViewGroup parent) { in getChildView() argument
169 View convertView, ViewGroup parent) { in getGroupView() argument
DGalleryCtsActivity.java61 public View getView(int position, View convertView, ViewGroup parent) { in getView() argument
DBaseAdapterTest.java121 public View getView(int position, View convertView, ViewGroup parent) { in getView() argument
DListViewTest.java376 public View getView(int position, View convertView, ViewGroup parent) { in testHeaderFooterType()
378 if (convertView != null && convertView != headerView) { in testHeaderFooterType()
379 mismatch.add(new Pair<View, View>(headerView, convertView)); in testHeaderFooterType()
383 return super.getView(position - 1, convertView, parent); in testHeaderFooterType()
795 public View getView(int position, View convertView, ViewGroup parent) { in getView() argument
DAbsSpinnerTest.java276 public View getDropDownView(int position, View convertView, in getDropDownView() argument
301 public View getView(int position, View convertView, ViewGroup parent) { in getView() argument
DExpandableListViewTest.java445 View convertView, ViewGroup parent) { in getGroupView() argument
450 boolean isLastChild, View convertView, ViewGroup parent) { in getChildView() argument
DHeaderViewListAdapterTest.java414 public View getView(int position, View convertView, ViewGroup parent) { in getView() argument
480 public View getView(int position, View convertView, ViewGroup parent) { in getView() argument
DCheckedTextViewTest.java352 public View getView(int position, View convertView, ViewGroup parent) {
DGalleryTest.java327 public View getView(int position, View convertView, ViewGroup parent) { in getView() argument
/cts/apps/CtsVerifier/src/com/android/cts/verifier/backup/
DBackupTestActivity.java263 View getView(LayoutInflater inflater, int position, View convertView, ViewGroup parent);
280 public View getView(LayoutInflater inflater, int position, View convertView,
282 TextView view = (TextView) convertView;
283 if (convertView == null) {
311 public View getView(LayoutInflater inflater, int position, View convertView,
313 TextView view = (TextView) convertView;
314 if (convertView == null) {
339 public View getView(LayoutInflater inflater, int position, View convertView,
341 TextView view = (TextView) convertView;
342 if (convertView == null) {
[all …]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/bluetooth/
DTestAdapter.java77 public View getView(int position, View convertView, ViewGroup parent) { in getView() argument
80 if (convertView != null) { in getView()
81 vg = (ViewGroup) convertView; in getView()
/cts/tests/tests/accessibilityservice/src/android/accessibilityservice/cts/
DAccessibilityEndToEndActivity.java41 public View getView(int position, View convertView, ViewGroup parent) { in onCreate()
/cts/tests/app/src/android/app/cts/
DExpandableListTestActivity.java81 final View convertView = new View(this); in testCallback() local
82 final View gv = a.getGroupView(0, true, convertView, v); in testCallback()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/
DTestListAdapter.java379 public View getView(int position, View convertView, ViewGroup parent) { in getView() argument
381 if (convertView == null) { in getView()
385 textView = (TextView) convertView; in getView()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/suid/
DSuidFilesActivity.java159 public View getView(int position, View convertView, ViewGroup parent) { in getView() argument
160 TextView view = (TextView) super.getView(position, convertView, parent); in getView()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/admin/
DPolicySerializationTestActivity.java217 public View getView(int position, View convertView, ViewGroup parent) { in getView() argument
218 TextView view = (TextView) super.getView(position, convertView, parent); in getView()
/cts/tests/tests/app/src/android/app/cts/
DAlertDialog_BuilderTest.java642 android.view.View convertView, in getView() argument
/cts/tests/tests/view/src/android/view/cts/
DViewTest.java3288 public View getView(int position, View convertView, ViewGroup parent) { in getView() argument