/frameworks/opt/setupwizard/library/test/instrumentation/src/com/android/setupwizardlib/template/ |
D | IconMixinTest.java | 52 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/ |
D | StatusBarIconViewTest.java | 64 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/ |
D | QSIconViewImplTest.java | 47 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/ |
D | PreferenceIconSpaceTest.java | 48 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/ |
D | TaskViewHeader.java | 149 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/ |
D | ListMenuItemView.java | 46 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/ |
D | ItemTest.java | 55 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/ |
D | ScrollingTabContainerView.java | 376 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 …]
|
D | ActionBarView.java | 1388 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/packages/SystemUI/src/com/android/systemui/bubbles/ |
D | Bubble.java | 62 private BubbleView mIconView; field in Bubble 142 if (mIconView != null) { in updateDotVisibility() 143 mIconView.updateDotVisibility(true /* animate */); in updateDotVisibility() 148 return mIconView; in getIconView() 165 mIconView = (BubbleView) inflater.inflate( in inflate() 167 mIconView.setBubble(this); in inflate() 168 mIconView.setAppIcon(mUserBadgedAppIcon); in inflate() 195 mIconView.update(this); in updateEntry()
|
/frameworks/base/core/java/com/android/internal/app/ |
D | AlertController.java | 104 private ImageView mIconView; field in AlertController 415 if (mIconView != null) { in setIcon() 417 mIconView.setVisibility(View.VISIBLE); in setIcon() 418 mIconView.setImageResource(mIconId); in setIcon() 420 mIconView.setVisibility(View.GONE); in setIcon() 435 if (mIconView != null) { in setIcon() 437 mIconView.setVisibility(View.VISIBLE); in setIcon() 438 mIconView.setImageDrawable(icon); in setIcon() 440 mIconView.setVisibility(View.GONE); in setIcon() 670 mIconView = (ImageView) mWindow.findViewById(R.id.icon); in setupTitle() [all …]
|
/frameworks/base/config/ |
D | hiddenapi-greylist-max-o.txt | 86669 Lcom/android/internal/app/AlertController;->mIconView:Landroid/widget/ImageView; 101049 Lcom/android/internal/widget/ScrollingTabContainerView$TabView;->mIconView:Landroid/widget/ImageVie…
|