Home
last modified time | relevance | path

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

12

/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.java229 private View getView(long packedPosition, View convertView, ViewGroup parent) { in getView() argument
237 if (convertView != null) { in getView()
238 ((TextView) convertView).setText(getValueAtPosition(packedPosition)); in getView()
239 convertView.setId(flPos); in getView()
240 return convertView; in getView()
320 View convertView, ViewGroup parent) { in getChildView() argument
322 childPosition), convertView, parent); in getChildView()
337 public View getGroupView(int groupPosition, boolean isExpanded, View convertView, in getGroupView() argument
340 convertView, parent); in getGroupView()
DListScenario.java521 public View convertView(int position, View convertView, ViewGroup parent) { in convertView() method in ListScenario
522 return ListItemFactory.convertText(convertView, getValueAtPosition(position), position); in convertView()
604 public View getView(int position, View convertView, ViewGroup parent) { in getView() argument
610 if (convertView != null) { in getView()
611 result = convertView(position, convertView, parent); in getView()
/cts/tests/tests/widget/src/android/widget/cts/
DDummyAdapter.java59 public View getView(int position, View convertView, ViewGroup parent) { in getView() argument
63 if (convertView == null) { in getView()
64 convertView = new View(parent.getContext()); in getView()
65 convertView.setMinimumHeight(200); in getView()
67 return convertView; in getView()
DSimpleExpandableListAdapterTest.java207 View convertView = new TextView(mContext); in testGetChildView() local
208 convertView.setId(android.R.id.text1); in testGetChildView()
209 result = mSimpleExpandableListAdapter.getChildView(2, 2, false, convertView, mAdapterHost); in testGetChildView()
210 assertSame(convertView, result); in testGetChildView()
214 convertView = new TextView(mContext); in testGetChildView()
215 convertView.setId(android.R.id.text1); in testGetChildView()
216 result = mSimpleExpandableListAdapter.getChildView(1, 1, false, convertView, null); in testGetChildView()
217 assertSame(convertView, result); in testGetChildView()
361 View convertView = new TextView(mContext); in testGetGroupView() local
362 convertView.setId(android.R.id.text1); in testGetGroupView()
[all …]
DSimpleAdapterTest.java183 TextView convertView = (TextView) result; in testGetView() local
184 result = mSimpleAdapter.getView(0, convertView, mAdapterHost); in testGetView()
186 assertSame(convertView, result); in testGetView()
189 result = mSimpleAdapter.getView(10, convertView, null); in testGetView()
257 TextView convertView = (TextView) result; in testGetDropDownView() local
259 result = mSimpleAdapter.getDropDownView(0, convertView, mAdapterHost); in testGetDropDownView()
260 assertEquals("01", convertView.getText().toString()); in testGetDropDownView()
261 assertSame(convertView, result); in testGetDropDownView()
264 result = mSimpleAdapter.getDropDownView(10, convertView, null); in testGetDropDownView()
DGridViewTest.java740 public View getView(int position, View convertView, ViewGroup parent) { in getView() argument
741 if ((convertView != null) && (convertView instanceof ImageView)) { in getView()
742 ((ImageView) convertView).setImageResource(R.drawable.size_48x48); in getView()
743 return convertView; in getView()
800 public View getView(int position, View convertView, ViewGroup parent) { in getView() argument
802 if (convertView == null) { in getView()
810 imageView = (ImageView) convertView; in getView()
DBaseExpandableListAdapterTest.java150 boolean isLastChild, View convertView, ViewGroup parent) { in getChildView() argument
175 View convertView, ViewGroup parent) { in getGroupView() argument
DListViewTest.java386 public View getView(int position, View convertView, ViewGroup parent) { in testHeaderFooterType()
388 if (convertView != null && convertView != mTextView) { in testHeaderFooterType()
389 mismatch.add(new Pair<>(mTextView, convertView)); in testHeaderFooterType()
393 return super.getView(position - 1, convertView, parent); in testHeaderFooterType()
896 public View getView(int position, View convertView, ViewGroup parent) { in getView() argument
1001 public View getView(int position, View convertView, ViewGroup parent) { in getView() argument
1002 final View view = super.getView(position, convertView, parent); in getView()
1082 public View getView(int position, View convertView, ViewGroup parent) { in getView() argument
DExpandableListViewTest.java596 View convertView, ViewGroup parent) { in getGroupView() argument
597 TextView result = (TextView) convertView; in getGroupView()
607 boolean isLastChild, View convertView, ViewGroup parent) { in getChildView() argument
608 TextView result = (TextView) convertView; in getChildView()
DListPopupWindowTest.java1004 public View getView(int position, View convertView, ViewGroup parent) { in configure()
1005 if (convertView == null) { in configure()
1006 convertView = LayoutInflater.from(mActivity).inflate( in configure()
1009 viewHolder.title = convertView.findViewById(android.R.id.text1); in configure()
1010 convertView.setTag(viewHolder); in configure()
1013 ViewHolder viewHolder = (ViewHolder) convertView.getTag(); in configure()
1015 return convertView; in configure()
DGalleryCtsActivity.java60 public View getView(int position, View convertView, ViewGroup parent) { in getView() argument
DAbsListView_ScrollTest.java662 public View getView(int position, View convertView, ViewGroup parent) {
663 final TextView textView = (convertView != null) ? (TextView) convertView
DAbsSpinnerTest.java273 public View getDropDownView(int position, View convertView, in getDropDownView() argument
298 public View getView(int position, View convertView, ViewGroup parent) { in getView() argument
DBaseAdapterTest.java163 public View getView(int position, View convertView, ViewGroup parent) { in getView() argument
DHeaderViewListAdapterTest.java422 public View getView(int position, View convertView, ViewGroup parent) { in getView() argument
488 public View getView(int position, View convertView, ViewGroup parent) { in getView() argument
DGalleryTest.java311 public View getView(int position, View convertView, ViewGroup parent) { in getView() argument
DCheckedTextViewTest.java464 public View getView(int position, View convertView, ViewGroup parent) { in getView() argument
/cts/tests/tests/view/src/android/view/animation/cts/
DGridLayoutAnimCtsActivity.java88 public View getView(int position, View convertView, ViewGroup parent) { in getView() argument
89 if ((convertView != null) && (convertView instanceof ImageView)) { in getView()
90 ((ImageView) convertView).setImageResource(R.drawable.size_48x48); in getView()
91 return convertView; in getView()
/cts/tests/tests/preference/src/android/preference/cts/
DRecycleCheckPreference.java62 public View getView(View convertView, ViewGroup parent) { in getView() argument
64 wasConvertViewNullInLastCall = convertView == null; in getView()
66 return super.getView(convertView, parent); in getView()
/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/app/app/src/android/app/stubs/
DExpandableListTestActivity.java84 final View convertView = new View(this); in testCallback() local
85 final View gv = a.getGroupView(0, true, convertView, v); in testCallback()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/
DTestListAdapter.java430 public View getView(int position, View convertView, ViewGroup parent) { in getView() argument
432 if (convertView == null) { in getView()
436 textView = (TextView) convertView; in getView()
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/activities/
DAccessibilityEndToEndActivity.java50 public View getView(int position, View convertView, ViewGroup parent) { in onCreate()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/admin/
DPolicySerializationTestActivity.java220 public View getView(int position, View convertView, ViewGroup parent) { in getView() argument
221 TextView view = (TextView) super.getView(position, convertView, parent); in getView()

12