Home
last modified time | relevance | path

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

12345

/frameworks/base/core/java/com/android/internal/accessibility/dialog/
DShortcutTargetAdapter.java58 public View getView(int position, View convertView, ViewGroup parent) { in getView() argument
61 if (convertView == null) { in getView()
62 convertView = LayoutInflater.from(context).inflate( in getView()
66 holder.mCheckBoxView = convertView.findViewById( in getView()
68 holder.mIconView = convertView.findViewById(R.id.accessibility_shortcut_target_icon); in getView()
69 holder.mLabelView = convertView.findViewById( in getView()
71 holder.mStatusView = convertView.findViewById( in getView()
73 convertView.setTag(holder); in getView()
75 holder = (ViewHolder) convertView.getTag(); in getView()
81 return convertView; in getView()
/frameworks/base/tests/JankBench/app/src/main/java/com/android/benchmark/app/
DBenchmarkListAdapter.java87 …public View getGroupView(int groupPosition, boolean isExpanded, View convertView, ViewGroup parent… in getGroupView() argument
89 if (convertView == null) { in getGroupView()
90 convertView = mInflater.inflate(R.layout.benchmark_list_group_row, null); in getGroupView()
93 TextView title = (TextView) convertView.findViewById(R.id.group_name); in getGroupView()
96 return convertView; in getGroupView()
101 View convertView, ViewGroup parent) { in getChildView() argument
104 if (convertView == null) { in getChildView()
105 convertView = mInflater.inflate(R.layout.benchmark_list_item, null); in getChildView()
108 TextView name = (TextView) convertView.findViewById(R.id.benchmark_name); in getChildView()
110 CheckBox enabledBox = (CheckBox) convertView.findViewById(R.id.benchmark_enable_checkbox); in getChildView()
[all …]
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/ui/
DAddPrinterActivity.java381 public View getView(int position, View convertView, ViewGroup parent) { in getView() argument
384 return realPosition.first.getView(realPosition.second, convertView, parent); in getView()
535 public View getView(int position, View convertView, ViewGroup parent) { in getView() argument
537 if (convertView == null) { in getView()
538 convertView = getLayoutInflater().inflate(R.layout.add_printer_list_header, in getView()
542 ((TextView) convertView.findViewById(R.id.text)) in getView()
545 return convertView; in getView()
548 if (convertView == null) { in getView()
549 convertView = getLayoutInflater().inflate(R.layout.enabled_print_services_list_item, in getView()
555 TextView title = (TextView) convertView.findViewById(R.id.title); in getView()
[all …]
/frameworks/base/core/tests/coretests/src/android/util/
DListItemFactory.java176 public static View convertButton(View convertView, String text, int position) { in convertButton() argument
177 if (((String) convertView.getTag()).equals("button")) { in convertButton()
178 ((Button) convertView).setText(text); in convertButton()
179 convertView.setId(position); in convertButton()
180 return convertView; in convertButton()
216 public static View convertText(View convertView, String text, int position) { in convertText() argument
217 if(convertView.getTag() != null && ((String) convertView.getTag()).equals("text")) { in convertText()
218 ((TextView) convertView).setText(text); in convertText()
219 convertView.setId(position); in convertText()
220 return convertView; in convertText()
[all …]
/frameworks/base/tests/UsageStatsTest/src/com/android/tests/usagestats/
DUsageLogActivity.java120 public View getView(int position, View convertView, ViewGroup parent) { in getView() argument
124 if (convertView == null) { in getView()
128 convertView = LayoutInflater.from(UsageLogActivity.this) in getView()
130 holder.config = (TextView) convertView.findViewById(android.R.id.text1); in getView()
132 convertView = LayoutInflater.from(UsageLogActivity.this) in getView()
134 holder.packageName = (TextView) convertView.findViewById(android.R.id.text1); in getView()
135 holder.state = (TextView) convertView.findViewById(android.R.id.text2); in getView()
137 convertView.setTag(holder); in getView()
139 holder = (ViewHolder) convertView.getTag(); in getView()
154 return convertView; in getView()
/frameworks/base/tests/JankBench/app/src/main/java/com/android/benchmark/ui/
DImageListViewScrollActivity.java133 public View getView(int position, View convertView, ViewGroup parent) { in getView() argument
134 if (convertView == null) { in getView()
135 convertView = LayoutInflater.from(getBaseContext()) in getView()
139 ImageView imageView = (ImageView) convertView.findViewById(R.id.image_scroll_image); in getView()
140 BitmapWorkerTask inFlight = mInFlight.get(convertView); in getView()
143 mInFlight.remove(convertView); in getView()
151 mInFlight.put(convertView, bitmapWorkerTask); in getView()
156 TextView textView = (TextView) convertView.findViewById(R.id.image_scroll_text); in getView()
159 return convertView; in getView()
/frameworks/base/core/java/com/android/internal/view/menu/
DMenuAdapter.java80 public View getView(int position, View convertView, ViewGroup parent) { in getView() argument
81 if (convertView == null) { in getView()
82 convertView = mInflater.inflate(mItemLayoutRes, parent, false); in getView()
89 ((ListMenuItemView) convertView) in getView()
93 MenuView.ItemView itemView = (MenuView.ItemView) convertView; in getView()
95 ((ListMenuItemView) convertView).setForceShowIcon(true); in getView()
98 return convertView; in getView()
DBaseMenuPresenter.java95 final View convertView = parent.getChildAt(childIndex); in updateMenuView() local
96 final MenuItemImpl oldItem = convertView instanceof MenuView.ItemView ? in updateMenuView()
97 ((MenuView.ItemView) convertView).getItemData() : null; in updateMenuView()
98 final View itemView = getItemView(item, convertView, parent); in updateMenuView()
104 if (itemView != convertView) { in updateMenuView()
173 public View getItemView(MenuItemImpl item, View convertView, ViewGroup parent) { in getItemView() argument
175 if (convertView instanceof MenuView.ItemView) { in getItemView()
176 itemView = (MenuView.ItemView) convertView; in getItemView()
/frameworks/base/core/java/com/android/internal/app/
DSuggestedLocaleAdapter.java198 public View getView(int position, View convertView, ViewGroup parent) { in getView() argument
199 if (convertView == null && mInflater == null) { in getView()
204 View itemView = getNewViewIfNeeded(convertView, parent, itemType, position); in getView()
247 View convertView, ViewGroup parent, int itemType, int position) { in getNewViewIfNeeded() argument
248 View updatedView = convertView; in getNewViewIfNeeded()
253 shouldReuseView = convertView instanceof TextView in getNewViewIfNeeded()
254 && convertView.findViewById(R.id.language_picker_header) != null; in getNewViewIfNeeded()
262 shouldReuseView = convertView instanceof LinearLayout in getNewViewIfNeeded()
263 && convertView.findViewById(R.id.language_picker_item) != null; in getNewViewIfNeeded()
271 shouldReuseView = convertView instanceof TextView in getNewViewIfNeeded()
[all …]
/frameworks/base/core/tests/coretests/src/android/widget/listview/
DListHeterogeneous.java56 public View convertView(int position, View convertView, ViewGroup parent) { in convertView() argument
59 return ListItemFactory.convertText(convertView, getValueAtPosition(position), position); in convertView()
61 return ListItemFactory.convertButton(convertView, getValueAtPosition(position), in convertView()
64 return ListItemFactory.convertDoubleText(convertView, getValueAtPosition(position), in convertView()
DListItemsExpandOnSelection.java54 public View convertView(int position, View convertView, ViewGroup parent) { in convertView() method in ListItemsExpandOnSelection
55 ((ExpandWhenSelectedView)convertView).setText(getValueAtPosition(position)); in convertView()
56 return convertView; in convertView()
DListTakeFocusFromSide.java63 public View getView(int position, View convertView, ViewGroup parent) { in getView() argument
66 if (convertView == null) { in getView()
69 view = (TextView) convertView; in getView()
/frameworks/opt/localepicker/src/com/android/localepicker/
DSuggestedLocaleAdapter.java172 public View getView(int position, View convertView, ViewGroup parent) { in getView() argument
173 if (convertView == null && mInflater == null) { in getView()
182 if (!(convertView instanceof TextView)) { in getView()
183 convertView = mInflater.inflate(R.layout.language_picker_section_header, in getView()
186 TextView textView = (TextView) convertView; in getView()
201 if (!(convertView instanceof ViewGroup)) { in getView()
202 convertView = mInflater.inflate(R.layout.language_picker_item, parent, false); in getView()
205 TextView text = (TextView) convertView.findViewById(R.id.locale); in getView()
213 convertView.setLayoutDirection(layoutDir); in getView()
219 return convertView; in getView()
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/
DOverflowMenuAdapter.java73 public View getView(int position, View convertView, ViewGroup parent) { in getView() argument
74 if (convertView == null) { in getView()
76 convertView = mInflater.inflate(com.android.internal.R.layout.popup_menu_item_layout, in getView()
80 MenuView.ItemView itemView = (MenuView.ItemView) convertView; in getView()
82 return convertView; in getView()
/frameworks/layoutlib/bridge/src/android/preference/
DPreference_Delegate.java41 /*package*/ static View getView(Preference pref, View convertView, ViewGroup parent) { in getView() argument
44 convertView = pref.getView_Original(convertView, parent); in getView()
48 bc.addViewKey(convertView, cookie); in getView()
51 return convertView; in getView()
/frameworks/base/tests/UsageReportingTest/src/com/android/tests/usagereporter/
DUsageReporterActivity.java287 public View getView(int position, View convertView, ViewGroup parent) { in getView() argument
289 if (convertView == null) { in getView()
290 convertView = LayoutInflater.from(UsageReporterActivity.this) in getView()
293 holder.tokenName = (TextView) convertView.findViewById(R.id.token); in getView()
295 holder.startButton = ((Button) convertView.findViewById(R.id.start)); in getView()
297 holder.stopButton = ((Button) convertView.findViewById(R.id.stop)); in getView()
299 convertView.setTag(holder); in getView()
301 holder = (ViewHolder) convertView.getTag(); in getView()
307 convertView.setBackgroundColor(getColor(R.color.active_color)); in getView()
309 convertView.setBackgroundColor(getColor(R.color.inactive_color)); in getView()
[all …]
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/items/
DItemAdapter.java76 public View getView(int position, View convertView, ViewGroup parent) { in getView() argument
78 if (convertView == null) { in getView()
80 convertView = inflater.inflate(item.getLayoutResource(), parent, false); in getView()
82 item.onBindView(convertView); in getView()
83 return convertView; in getView()
/frameworks/base/core/java/android/accounts/
DChooseAccountTypeActivity.java187 public View getView(int position, View convertView, ViewGroup parent) { in getView() argument
190 if (convertView == null) { in getView()
191 convertView = mLayoutInflater.inflate(R.layout.choose_account_row, null); in getView()
193 holder.text = (TextView) convertView.findViewById(R.id.account_row_text); in getView()
194 holder.icon = (ImageView) convertView.findViewById(R.id.account_row_icon); in getView()
195 convertView.setTag(holder); in getView()
197 holder = (ViewHolder) convertView.getTag(); in getView()
203 return convertView; in getView()
DChooseAccountActivity.java197 public View getView(int position, View convertView, ViewGroup parent) { in getView() argument
200 if (convertView == null) { in getView()
201 convertView = mLayoutInflater.inflate(R.layout.choose_account_row, null); in getView()
203 holder.text = (TextView) convertView.findViewById(R.id.account_row_text); in getView()
204 holder.icon = (ImageView) convertView.findViewById(R.id.account_row_icon); in getView()
205 convertView.setTag(holder); in getView()
207 holder = (ViewHolder) convertView.getTag(); in getView()
213 return convertView; in getView()
/frameworks/base/core/java/android/widget/
DRemoteCollectionItemsAdapter.java176 public View getView(int position, @Nullable View convertView, @NonNull ViewGroup parent) { in getView() argument
181 View reapplyView = getViewToReapply(convertView, item); in getView()
209 private static View getViewToReapply(@Nullable View convertView, @NonNull RemoteViews item) { in getViewToReapply() argument
210 if (convertView == null) return null; in getViewToReapply()
212 Object layoutIdTag = convertView.getTag(R.id.widget_frame); in getViewToReapply()
215 return item.getLayoutId() == (Integer) layoutIdTag ? convertView : null; in getViewToReapply()
DSimpleExpandableListAdapter.java222 View convertView, ViewGroup parent) { in getChildView() argument
224 if (convertView == null) { in getChildView()
227 v = convertView; in getChildView()
270 public View getGroupView(int groupPosition, boolean isExpanded, View convertView, in getGroupView() argument
273 if (convertView == null) { in getGroupView()
276 v = convertView; in getGroupView()
DRemoteViewsListAdapter.java87 public View getView(int position, View convertView, ViewGroup parent) { in getView() argument
92 if (convertView != null && convertView.getId() == rv.getLayoutId()) { in getView()
93 v = convertView; in getView()
DActivityChooserView.java762 public View getView(int position, View convertView, ViewGroup parent) { in getView() argument
766 if (convertView == null || convertView.getId() != ITEM_VIEW_TYPE_FOOTER) { in getView()
767 convertView = LayoutInflater.from(getContext()).inflate( in getView()
769 convertView.setId(ITEM_VIEW_TYPE_FOOTER); in getView()
770 TextView titleView = convertView.findViewById(R.id.title); in getView()
774 return convertView; in getView()
776 if (convertView == null || convertView.getId() != R.id.list_item) { in getView()
777 convertView = LayoutInflater.from(getContext()).inflate( in getView()
782 ImageView iconView = convertView.findViewById(R.id.icon); in getView()
786 TextView titleView = convertView.findViewById(R.id.title); in getView()
[all …]
DSimpleAdapter.java123 public View getView(int position, View convertView, ViewGroup parent) { in getView() argument
124 return createViewFromResource(mInflater, position, convertView, parent, mResource); in getView()
127 private View createViewFromResource(LayoutInflater inflater, int position, View convertView, in createViewFromResource() argument
130 if (convertView == null) { in createViewFromResource()
133 v = convertView; in createViewFromResource()
180 public View getDropDownView(int position, View convertView, ViewGroup parent) { in getDropDownView() argument
182 return createViewFromResource(inflater, position, convertView, parent, mDropDownResource); in getDropDownView()
/frameworks/ex/common/java/com/android/common/widget/
DCompositeCursorAdapter.java333 public View getView(int position, View convertView, ViewGroup parent) { in getView() argument
345 view = getHeaderView(i, mPartitions.get(i).cursor, convertView, parent); in getView()
351 view = getView(i, mPartitions.get(i).cursor, offset, convertView, parent); in getView()
368 protected View getHeaderView(int partition, Cursor cursor, View convertView, in getHeaderView() argument
370 View view = convertView != null in getHeaderView()
371 ? convertView in getHeaderView()
394 protected View getView(int partition, Cursor cursor, int position, View convertView, in getView() argument
397 if (convertView != null) { in getView()
398 view = convertView; in getView()

12345