Home
last modified time | relevance | path

Searched refs:mIconView (Results 1 – 13 of 13) sorted by relevance

/frameworks/support/v7/appcompat/src/android/support/v7/view/menu/
DListMenuItemView.java43 private ImageView mIconView; field in ListMenuItemView
223 if (mIconView == null && icon == null && !mPreserveIconSpacing) { in setIcon()
227 if (mIconView == null) { in setIcon()
232 mIconView.setImageDrawable(showIcon ? icon : null); in setIcon()
234 if (mIconView.getVisibility() != VISIBLE) { in setIcon()
235 mIconView.setVisibility(VISIBLE); in setIcon()
238 mIconView.setVisibility(GONE); in setIcon()
244 if (mIconView != null && mPreserveIconSpacing) { in onMeasure()
247 LayoutParams iconLp = (LayoutParams) mIconView.getLayoutParams(); in onMeasure()
257 mIconView = (ImageView) inflater.inflate(R.layout.abc_list_menu_item_icon, in insertIconView()
[all …]
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/
DGuidanceStylist.java137 private ImageView mIconView; field in GuidanceStylist
159 mIconView = (ImageView) guidanceView.findViewById(R.id.guidance_icon); in onCreateView()
176 if (mIconView != null) { in onCreateView()
178 mIconView.setImageDrawable(guidance.getIconDrawable()); in onCreateView()
180 mIconView.setVisibility(View.GONE); in onCreateView()
204 mIconView = null; in onDestroyView()
249 return mIconView; in getIconView()
DGuidanceStylingRelativeLayout.java54 ImageView mIconView = (ImageView) getRootView().findViewById(R.id.guidance_icon); in onLayout() local
76 if (mIconView != null && mIconView.getParent() == this) { in onLayout()
77 Drawable drawable = mIconView.getDrawable(); in onLayout()
79 mIconView.offsetTopAndBottom( in onLayout()
80 mTitleKeylinePixels - mIconView.getMeasuredHeight() / 2); in onLayout()
DGuidedActionsStylist.java171 private ImageView mIconView; field in GuidedActionsStylist.ViewHolder
210 mIconView = (ImageView) v.findViewById(R.id.guidedactions_item_icon); in ViewHolder()
260 return mIconView; in getIconView()
638 setIcon(vh.mIconView, action); in onBindViewHolder()
/frameworks/base/core/java/com/android/internal/view/menu/
DListMenuItemView.java41 private ImageView mIconView; field in ListMenuItemView
222 if (mIconView == null && icon == null && !mPreserveIconSpacing) { in setIcon()
226 if (mIconView == null) { in setIcon()
231 mIconView.setImageDrawable(showIcon ? icon : null); in setIcon()
233 if (mIconView.getVisibility() != VISIBLE) { in setIcon()
234 mIconView.setVisibility(VISIBLE); in setIcon()
237 mIconView.setVisibility(GONE); in setIcon()
243 if (mIconView != null && mPreserveIconSpacing) { in onMeasure()
246 LayoutParams iconLp = (LayoutParams) mIconView.getLayoutParams(); in onMeasure()
256 mIconView = (ImageView) inflater.inflate(com.android.internal.R.layout.list_menu_item_icon, in insertIconView()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/
DTaskViewHeader.java142 ImageView mIconView; field in TaskViewHeader
238 mIconView = (ImageView) findViewById(R.id.icon); in onFinishInflate()
239 mIconView.setOnLongClickListener(this); in onFinishInflate()
304 updateLayoutParams(mIconView, mTitleView, mMoveTaskButton, mDismissButton); in onConfigurationChanged()
335 int appIconWidth = mIconView.getMeasuredWidth(); in onTaskViewSizeChanged()
405 return mIconView; in getIconView()
498 mIconView.setContentDescription(t.appInfoDescription); in bindToTask()
499 mIconView.setOnClickListener(this); in bindToTask()
500 mIconView.setClickable(true); in bindToTask()
510 mIconView.setImageDrawable(mTask.icon); in onTaskDataLoaded()
[all …]
/frameworks/opt/setupwizard/library/test/src/com/android/setupwizardlib/test/
DItemTest.java36 private ImageView mIconView; field in ItemTest
49 mIconView.setImageLevel(1); in testOnBindView()
51 mIconView.setImageDrawable(recycledIcon); in testOnBindView()
58 assertSame("Icon should be the icon shape drawable", icon, mIconView.getDrawable()); in testOnBindView()
145 mIconView = new ImageView(mContext); in createLayout()
146 mIconView.setId(R.id.suw_items_icon); in createLayout()
147 mIconContainer.addView(mIconView); in createLayout()
/frameworks/support/v7/appcompat/src/android/support/v7/widget/
DScrollingTabContainerView.java383 private ImageView mIconView; field in ScrollingTabContainerView.TabView
457 if (mIconView != null) { in update()
458 mIconView.setVisibility(GONE); in update()
459 mIconView.setImageDrawable(null); in update()
471 if (mIconView == null) { in update()
478 mIconView = iconView; in update()
480 mIconView.setImageDrawable(icon); in update()
481 mIconView.setVisibility(VISIBLE); in update()
482 } else if (mIconView != null) { in update()
483 mIconView.setVisibility(GONE); in update()
[all …]
/frameworks/base/core/java/com/android/internal/widget/
DScrollingTabContainerView.java366 private ImageView mIconView; field in ScrollingTabContainerView.TabView
422 if (mIconView != null) { in update()
423 mIconView.setVisibility(GONE); in update()
424 mIconView.setImageDrawable(null); in update()
436 if (mIconView == null) { in update()
443 mIconView = iconView; in update()
445 mIconView.setImageDrawable(icon); in update()
446 mIconView.setVisibility(VISIBLE); in update()
447 } else if (mIconView != null) { in update()
448 mIconView.setVisibility(GONE); in update()
[all …]
DActionBarView.java1388 private ImageView mIconView; field in ActionBarView.HomeView
1415 mIconView.setVisibility(showIcon ? VISIBLE : GONE); in setShowIcon()
1419 mIconView.setImageDrawable(icon); in setIcon()
1482 mIconView = (ImageView) findViewById(com.android.internal.R.id.home); in onFinishInflate()
1504 if (mIconView.getVisibility() != GONE) { in onMeasure()
1505 measureChildWithMargins(mIconView, widthMeasureSpec, width, heightMeasureSpec, 0); in onMeasure()
1506 final LayoutParams iconLp = (LayoutParams) mIconView.getLayoutParams(); in onMeasure()
1507 width += iconLp.leftMargin + mIconView.getMeasuredWidth() + iconLp.rightMargin; in onMeasure()
1509 iconLp.topMargin + mIconView.getMeasuredHeight() + iconLp.bottomMargin); in onMeasure()
1572 final LayoutParams iconLp = (LayoutParams) mIconView.getLayoutParams(); in onLayout()
[all …]
/frameworks/support/v7/appcompat/src/android/support/v7/app/
DAlertController.java96 private ImageView mIconView; field in AlertController
339 if (mIconView != null) { in setIcon()
341 mIconView.setVisibility(View.VISIBLE); in setIcon()
342 mIconView.setImageResource(mIconId); in setIcon()
344 mIconView.setVisibility(View.GONE); in setIcon()
358 if (mIconView != null) { in setIcon()
360 mIconView.setVisibility(View.VISIBLE); in setIcon()
361 mIconView.setImageDrawable(icon); in setIcon()
363 mIconView.setVisibility(View.GONE); in setIcon()
640 mIconView = (ImageView) mWindow.findViewById(android.R.id.icon); in setupTitle()
[all …]
/frameworks/base/core/java/com/android/internal/app/
DAlertController.java99 private ImageView mIconView; field in AlertController
362 if (mIconView != null) { in setIcon()
364 mIconView.setVisibility(View.VISIBLE); in setIcon()
365 mIconView.setImageResource(mIconId); in setIcon()
367 mIconView.setVisibility(View.GONE); in setIcon()
381 if (mIconView != null) { in setIcon()
383 mIconView.setVisibility(View.VISIBLE); in setIcon()
384 mIconView.setImageDrawable(icon); in setIcon()
386 mIconView.setVisibility(View.GONE); in setIcon()
612 mIconView = (ImageView) mWindow.findViewById(R.id.icon); in setupTitle()
[all …]
/frameworks/support/design/src/android/support/design/widget/
DTabLayout.java1498 private ImageView mIconView;
1541 if (mIconView != null) {
1542 mIconView.setSelected(selected);
1591 if (mIconView != null && mIconView.getVisibility() == VISIBLE) {
1656 if (mIconView != null) { in update()
1657 mIconView.setVisibility(GONE); in update()
1658 mIconView.setImageDrawable(null); in update()
1678 if (mIconView == null) { in update()
1682 mIconView = iconView; in update()
1695 updateTextAndIcon(mTextView, mIconView); in update()