Home
last modified time | relevance | path

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

/frameworks/opt/setupwizard/library/test/instrumentation/src/com/android/setupwizardlib/template/
DIconMixinTest.java52 private ImageView mIconView; field in IconMixinTest
60 mIconView = new ImageView(mContext); in setUp()
61 doReturn(mIconView).when(mTemplateLayout).findManagedViewById(eq(R.id.suw_layout_icon)); in setUp()
67 assertSame(mIconView, mixin.getView()); in testGetIconView()
76 assertSame(drawable, mIconView.getDrawable()); in testSetIcon()
77 assertEquals(View.VISIBLE, mIconView.getVisibility()); in testSetIcon()
86 Drawable drawable = mIconView.getDrawable(); in setIcon_resourceId_shouldSetIcon()
88 assertEquals(View.VISIBLE, mIconView.getVisibility()); in setIcon_resourceId_shouldSetIcon()
96 assertEquals(View.GONE, mIconView.getVisibility()); in setIcon_shouldSetVisibilityToGone_whenIconIsNull()
102 mIconView.setImageDrawable(drawable); in testGetIcon()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/
DStatusBarIconViewTest.java64 private StatusBarIconView mIconView; field in StatusBarIconViewTest
89 mIconView = new StatusBarIconView(mContext, "test_slot", null); in setUp()
96 mIconView.setTag(R.id.icon_is_grayscale, true); in testSetClearsGrayscale()
97 mIconView.set(mStatusBarIcon); in testSetClearsGrayscale()
98 assertNull(mIconView.getTag(R.id.icon_is_grayscale)); in testSetClearsGrayscale()
106 assertFalse(mIconView.set(mStatusBarIcon)); in testSettingOomingIconDoesNotThrowOom()
111 mIconView.setStaticDrawableColor(Color.DKGRAY); in testGetContrastedStaticDrawableColor()
112 int color = mIconView.getContrastedStaticDrawableColor(Color.WHITE); in testGetContrastedStaticDrawableColor()
116 mIconView.setStaticDrawableColor(Color.WHITE); in testGetContrastedStaticDrawableColor()
117 color = mIconView.getContrastedStaticDrawableColor(Color.WHITE); in testGetContrastedStaticDrawableColor()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/tileimpl/
DQSIconViewImplTest.java47 private QSIconViewImpl mIconView; field in QSIconViewImplTest
52 mIconView = new QSIconViewImpl(mContext); in setup()
64 mIconView.updateIcon(iv, s, true); in testNoFirstAnimation()
71 mIconView.updateIcon(iv, s, true); in testNoFirstAnimation()
81 int desiredColor = mIconView.getColor(s.state); in testNoFirstFade()
84 mIconView.setIcon(iv, s, true); in testNoFirstFade()
93 int desiredColor = mIconView.getColor(s.state); in testStateSetCorrectly_toString()
97 mIconView.setIcon(iv, s, false); in testStateSetCorrectly_toString()
100 + ", lastIcon=" + i.toString() + "]", mIconView.toString()); in testStateSetCorrectly_toString()
105 assertFalse(mIconView.toString().contains("lastIcon")); in testIconNotSet_toString()
/frameworks/base/core/tests/coretests/src/android/preference/
DPreferenceIconSpaceTest.java48 private ImageView mIconView; field in PreferenceIconSpaceTest
58 .thenReturn(mIconView); in setUp()
68 verify(mIconView).setVisibility(View.INVISIBLE); in bindView_iconSpaceReserved_shouldReserveIconSpace()
77 verify(mIconView).setVisibility(View.GONE); in bindView_iconSpaceNotReserved_shouldNotReserveIconSpace()
86 verify(mIconView).setVisibility(View.VISIBLE); in bindView_hasIcon_shouldDisplayIcon()
/frameworks/base/packages/SystemUI/legacy/recents/src/com/android/systemui/recents/views/
DTaskViewHeader.java149 ImageView mIconView; field in TaskViewHeader
252 mIconView = findViewById(R.id.icon); in onFinishInflate()
253 mIconView.setOnLongClickListener(this); in onFinishInflate()
317 updateLayoutParams(mIconView, mTitleView, mMoveTaskButton, mDismissButton); in onConfigurationChanged()
404 return mIconView; in getIconView()
474 mIconView.setContentDescription(String.format(mAppInfoDescFormat, t.titleDescription)); in bindToTask()
475 mIconView.setOnClickListener(this); in bindToTask()
476 mIconView.setClickable(true); in bindToTask()
486 mIconView.setImageDrawable(mTask.icon); in onTaskDataLoaded()
493 mIconView.setImageDrawable(null); in unbindFromTask()
[all …]
/frameworks/base/core/java/com/android/internal/view/menu/
DListMenuItemView.java46 private ImageView mIconView; field in ListMenuItemView
252 if (mIconView == null && icon == null && !mPreserveIconSpacing) { in setIcon()
256 if (mIconView == null) { in setIcon()
261 mIconView.setImageDrawable(showIcon ? icon : null); in setIcon()
263 if (mIconView.getVisibility() != VISIBLE) { in setIcon()
264 mIconView.setVisibility(VISIBLE); in setIcon()
267 mIconView.setVisibility(GONE); in setIcon()
273 if (mIconView != null && mPreserveIconSpacing) { in onMeasure()
276 LayoutParams iconLp = (LayoutParams) mIconView.getLayoutParams(); in onMeasure()
286 mIconView = (ImageView) inflater.inflate(com.android.internal.R.layout.list_menu_item_icon, in insertIconView()
[all …]
/frameworks/opt/setupwizard/library/test/instrumentation/src/com/android/setupwizardlib/test/
DItemTest.java55 private ImageView mIconView; field in ItemTest
75 mIconView.setImageLevel(1); in testOnBindView()
77 mIconView.setImageDrawable(recycledIcon); in testOnBindView()
84 assertSame("Icon should be the icon shape drawable", icon, mIconView.getDrawable()); in testOnBindView()
192 mIconView = new ImageView(context); in createLayout()
193 mIconView.setId(R.id.suw_items_icon); in createLayout()
194 mIconContainer.addView(mIconView); in createLayout()
/frameworks/base/core/java/com/android/internal/widget/
DScrollingTabContainerView.java376 private ImageView mIconView; field in ScrollingTabContainerView.TabView
432 if (mIconView != null) { in update()
433 mIconView.setVisibility(GONE); in update()
434 mIconView.setImageDrawable(null); in update()
446 if (mIconView == null) { in update()
453 mIconView = iconView; in update()
455 mIconView.setImageDrawable(icon); in update()
456 mIconView.setVisibility(VISIBLE); in update()
457 } else if (mIconView != null) { in update()
458 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/base/core/java/com/android/internal/app/
DAlertController.java107 private ImageView mIconView; field in AlertController
418 if (mIconView != null) { in setIcon()
420 mIconView.setVisibility(View.VISIBLE); in setIcon()
421 mIconView.setImageResource(mIconId); in setIcon()
423 mIconView.setVisibility(View.GONE); in setIcon()
438 if (mIconView != null) { in setIcon()
440 mIconView.setVisibility(View.VISIBLE); in setIcon()
441 mIconView.setImageDrawable(icon); in setIcon()
443 mIconView.setVisibility(View.GONE); in setIcon()
673 mIconView = (ImageView) mWindow.findViewById(R.id.icon); in setupTitle()
[all …]
/frameworks/base/config/
Dhiddenapi-greylist-max-o.txt92928 Lcom/android/internal/app/AlertController;->mIconView:Landroid/widget/ImageView;
107730 Lcom/android/internal/widget/ScrollingTabContainerView$TabView;->mIconView:Landroid/widget/ImageVie…