/frameworks/base/packages/SettingsLib/src/com/android/settingslib/drawer/ |
D | SettingsDrawerAdapter.java | 92 public View getView(int position, View convertView, ViewGroup parent) { in getView() argument 95 if (convertView == null || convertView.getId() != R.id.spacer) { in getView() 96 convertView = LayoutInflater.from(mActivity).inflate(R.layout.drawer_spacer, in getView() 99 return convertView; in getView() 101 if (convertView != null && convertView.getId() == R.id.spacer) { in getView() 102 convertView = null; in getView() 105 if (convertView == null || (isTile != (convertView.getId() == R.id.tile_item))) { in getView() 106 convertView = LayoutInflater.from(mActivity).inflate(isTile ? R.layout.drawer_item in getView() 111 ((ImageView) convertView.findViewById(android.R.id.icon)).setImageIcon(item.icon); in getView() 113 ((TextView) convertView.findViewById(android.R.id.title)).setText(item.label); in getView() [all …]
|
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/ui/ |
D | AddPrinterActivity.java | 339 public View getView(int position, View convertView, ViewGroup parent) { in getView() argument 342 return realPosition.first.getView(realPosition.second, convertView, parent); in getView() 493 public View getView(int position, View convertView, ViewGroup parent) { in getView() argument 495 if (convertView == null) { in getView() 496 convertView = getLayoutInflater().inflate(R.layout.add_printer_list_header, in getView() 500 ((TextView) convertView.findViewById(R.id.text)) in getView() 503 return convertView; in getView() 506 if (convertView == null) { in getView() 507 convertView = getLayoutInflater().inflate(R.layout.enabled_print_services_list_item, in getView() 513 TextView title = (TextView) convertView.findViewById(R.id.title); in getView() [all …]
|
/frameworks/base/core/tests/coretests/src/android/util/ |
D | ListItemFactory.java | 176 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/data-binding/extensions/baseAdapters/src/main/java/android/databinding/adapters/ |
D | ObservableListAdapter.java | 111 public View getView(int position, View convertView, ViewGroup parent) { in getView() argument 112 return getViewForResource(mResourceId, position, convertView, parent); in getView() 116 public View getDropDownView(int position, View convertView, ViewGroup parent) { in getDropDownView() argument 117 return getViewForResource(mDropDownResourceId, position, convertView, parent); in getDropDownView() 120 public View getViewForResource(int resourceId, int position, View convertView, in getViewForResource() argument 122 if (convertView == null) { in getViewForResource() 124 convertView = new TextView(mContext); in getViewForResource() 126 convertView = mLayoutInflater.inflate(resourceId, parent, false); in getViewForResource() 129 TextView text = (TextView) (mTextViewResourceId == 0 ? convertView : in getViewForResource() 130 convertView.findViewById(mTextViewResourceId)); in getViewForResource() [all …]
|
/frameworks/support/samples/Support4Demos/src/com/example/android/supportv4/media/ |
D | QueueAdapter.java | 53 public View getView(int position, View convertView, ViewGroup parent) { in getView() argument 56 if (convertView == null) { in getView() 57 convertView = LayoutInflater.from(getContext()) in getView() 60 holder.mImageView = (ImageView) convertView.findViewById(R.id.play_eq); in getView() 61 holder.mTitleView = (TextView) convertView.findViewById(R.id.title); in getView() 62 holder.mDescriptionView = (TextView) convertView.findViewById(R.id.description); in getView() 63 convertView.setTag(holder); in getView() 65 holder = (ViewHolder) convertView.getTag(); in getView() 82 return convertView; in getView()
|
/frameworks/base/tests/UsageStatsTest/src/com/android/tests/usagestats/ |
D | UsageLogActivity.java | 119 public View getView(int position, View convertView, ViewGroup parent) { in getView() argument 123 if (convertView == null) { in getView() 127 convertView = LayoutInflater.from(UsageLogActivity.this) in getView() 129 holder.config = (TextView) convertView.findViewById(android.R.id.text1); in getView() 131 convertView = LayoutInflater.from(UsageLogActivity.this) in getView() 133 holder.packageName = (TextView) convertView.findViewById(android.R.id.text1); in getView() 134 holder.state = (TextView) convertView.findViewById(android.R.id.text2); in getView() 136 convertView.setTag(holder); in getView() 138 holder = (ViewHolder) convertView.getTag(); in getView() 153 return convertView; in getView()
|
D | UsageStatsActivity.java | 122 public View getView(int position, View convertView, ViewGroup parent) { in getView() argument 124 if (convertView == null) { in getView() 125 convertView = LayoutInflater.from(UsageStatsActivity.this) in getView() 128 holder.packageName = (TextView) convertView.findViewById(android.R.id.text1); in getView() 129 holder.usageTime = (TextView) convertView.findViewById(android.R.id.text2); in getView() 130 convertView.setTag(holder); in getView() 132 holder = (ViewHolder) convertView.getTag(); in getView() 138 return convertView; in getView()
|
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/ |
D | RootsFragment.java | 230 public View getView(View convertView, ViewGroup parent) { in getView() argument 234 convertView = LayoutInflater.from(parent.getContext()) in getView() 236 bindView(convertView); in getView() 237 return convertView; in getView() 240 public abstract void bindView(View convertView); in bindView() argument 252 public void bindView(View convertView) { in bindView() argument 253 final ImageView icon = (ImageView) convertView.findViewById(android.R.id.icon); in bindView() 254 final TextView title = (TextView) convertView.findViewById(android.R.id.title); in bindView() 255 final TextView summary = (TextView) convertView.findViewById(android.R.id.summary); in bindView() 257 final Context context = convertView.getContext(); in bindView() [all …]
|
D | NavigationView.java | 192 public View getView(int position, View convertView, ViewGroup parent) { in getView() argument 193 if (convertView == null) { in getView() 194 convertView = LayoutInflater.from(parent.getContext()) in getView() 198 final TextView title = (TextView) convertView.findViewById(android.R.id.title); in getView() 208 return convertView; in getView() 212 public View getDropDownView(int position, View convertView, ViewGroup parent) { in getDropDownView() argument 213 if (convertView == null) { in getDropDownView() 214 convertView = LayoutInflater.from(parent.getContext()) in getDropDownView() 218 final TextView title = (TextView) convertView.findViewById(android.R.id.title); in getDropDownView() 228 return convertView; in getDropDownView()
|
/frameworks/base/core/java/com/android/internal/app/ |
D | SuggestedLocaleAdapter.java | 130 public View getView(int position, View convertView, ViewGroup parent) { in getView() argument 131 if (convertView == null && mInflater == null) { in getView() 140 if (!(convertView instanceof TextView)) { in getView() 141 convertView = mInflater.inflate(R.layout.language_picker_section_header, in getView() 144 TextView textView = (TextView) convertView; in getView() 158 if (!(convertView instanceof ViewGroup)) { in getView() 159 convertView = mInflater.inflate(R.layout.language_picker_item, parent, false); in getView() 162 TextView text = (TextView) convertView.findViewById(R.id.locale); in getView() 170 convertView.setLayoutDirection(layoutDir); in getView() 176 return convertView; in getView()
|
/frameworks/support/samples/Support7Demos/src/com/example/android/supportv7/widget/ |
D | ListPopupWindowActivity.java | 93 public View getView(int position, View convertView, ViewGroup parent) { in onCreate() 94 if (convertView == null) { in onCreate() 95 convertView = LayoutInflater.from(parent.getContext()).inflate( in onCreate() 98 viewHolder.title = (TextView) convertView.findViewById(R.id.title); in onCreate() 100 (TextView) convertView.findViewById(R.id.shortcut); in onCreate() 101 convertView.setTag(viewHolder); in onCreate() 104 ViewHolder viewHolder = (ViewHolder) convertView.getTag(); in onCreate() 107 return convertView; in onCreate()
|
/frameworks/base/core/tests/coretests/src/android/widget/listview/ |
D | ListHeterogeneous.java | 57 public View convertView(int position, View convertView, ViewGroup parent) { in convertView() argument 60 return ListItemFactory.convertText(convertView, getValueAtPosition(position), position); in convertView() 62 return ListItemFactory.convertButton(convertView, getValueAtPosition(position), in convertView() 65 return ListItemFactory.convertDoubleText(convertView, getValueAtPosition(position), in convertView()
|
D | ListItemsExpandOnSelection.java | 55 public View convertView(int position, View convertView, ViewGroup parent) { in convertView() method in ListItemsExpandOnSelection 56 ((ExpandWhenSelectedView)convertView).setText(getValueAtPosition(position)); in convertView() 57 return convertView; in convertView()
|
/frameworks/base/core/java/com/android/internal/view/menu/ |
D | MenuAdapter.java | 79 public View getView(int position, View convertView, ViewGroup parent) { in getView() argument 80 if (convertView == null) { in getView() 81 convertView = mInflater.inflate(ITEM_LAYOUT, parent, false); in getView() 84 MenuView.ItemView itemView = (MenuView.ItemView) convertView; in getView() 86 ((ListMenuItemView) convertView).setForceShowIcon(true); in getView() 89 return convertView; in getView()
|
D | BaseMenuPresenter.java | 95 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/support/samples/SupportAppNavigation/src/com/example/android/support/appnavigation/app/ |
D | AppNavHomeActivity.java | 109 public View getView(int position, View convertView, ViewGroup parent) { in getView() argument 110 if (convertView == null) { in getView() 111 convertView = getLayoutInflater().inflate(android.R.layout.simple_list_item_1, in getView() 113 convertView.setTag(convertView.findViewById(android.R.id.text1)); in getView() 115 TextView tv = (TextView) convertView.getTag(); in getView() 117 return convertView; in getView()
|
/frameworks/support/v7/appcompat/src/android/support/v7/view/menu/ |
D | BaseMenuPresenter.java | 101 final View convertView = parent.getChildAt(childIndex); in updateMenuView() local 102 final MenuItemImpl oldItem = convertView instanceof MenuView.ItemView ? in updateMenuView() 103 ((MenuView.ItemView) convertView).getItemData() : null; in updateMenuView() 104 final View itemView = getItemView(item, convertView, parent); in updateMenuView() 110 if (itemView != convertView) { in updateMenuView() 179 public View getItemView(MenuItemImpl item, View convertView, ViewGroup parent) { in getItemView() argument 181 if (convertView instanceof MenuView.ItemView) { in getItemView() 182 itemView = (MenuView.ItemView) convertView; in getItemView()
|
D | MenuAdapter.java | 91 public View getView(int position, View convertView, ViewGroup parent) { in getView() argument 92 if (convertView == null) { in getView() 93 convertView = mInflater.inflate(ITEM_LAYOUT, parent, false); in getView() 96 MenuView.ItemView itemView = (MenuView.ItemView) convertView; in getView() 98 ((ListMenuItemView) convertView).setForceShowIcon(true); in getView() 101 return convertView; in getView()
|
/frameworks/base/core/java/android/accounts/ |
D | ChooseAccountActivity.java | 167 public View getView(int position, View convertView, ViewGroup parent) { in getView() argument 170 if (convertView == null) { in getView() 171 convertView = mLayoutInflater.inflate(R.layout.choose_account_row, null); in getView() 173 holder.text = (TextView) convertView.findViewById(R.id.account_row_text); in getView() 174 holder.icon = (ImageView) convertView.findViewById(R.id.account_row_icon); in getView() 175 convertView.setTag(holder); in getView() 177 holder = (ViewHolder) convertView.getTag(); in getView() 183 return convertView; in getView()
|
D | ChooseAccountTypeActivity.java | 184 public View getView(int position, View convertView, ViewGroup parent) { in getView() argument 187 if (convertView == null) { in getView() 188 convertView = mLayoutInflater.inflate(R.layout.choose_account_row, null); in getView() 190 holder.text = (TextView) convertView.findViewById(R.id.account_row_text); in getView() 191 holder.icon = (ImageView) convertView.findViewById(R.id.account_row_icon); in getView() 192 convertView.setTag(holder); in getView() 194 holder = (ViewHolder) convertView.getTag(); in getView() 200 return convertView; in getView()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/car/ |
D | UserGridView.java | 136 public View getView(int position, View convertView, ViewGroup parent) { in getView() argument 137 if (convertView == null) { in getView() 140 convertView = inflater.inflate(R.layout.car_fullscreen_user_pod, null); in getView() 144 TextView nameView = (TextView) convertView.findViewById(R.id.user_name); in getView() 147 convertView.setActivated(record.isCurrent); in getView() 152 ImageView iconView = (ImageView) convertView.findViewById(R.id.user_avatar); in getView() 159 return convertView; in getView()
|
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/items/ |
D | ItemAdapter.java | 76 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/tools/layoutlib/bridge/src/android/preference/ |
D | Preference_Delegate.java | 41 /*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/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/ |
D | OverflowMenuAdapter.java | 73 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/base/core/java/android/widget/ |
D | SimpleExpandableListAdapter.java | 222 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()
|