Home
last modified time | relevance | path

Searched refs:mIconView (Results 1 – 19 of 19) 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/src/com/android/systemui/biometrics/
DAuthBiometricFaceView.java43 ImageView mIconView; field in AuthBiometricFaceView.IconController
51 mIconView = iconView; in IconController()
62 mIconView.setImageDrawable(mContext.getDrawable(iconRes)); in showStaticDrawable()
68 mIconView.setImageDrawable(icon); in animateIcon()
102 mIconView.setContentDescription(mContext.getString( in updateState()
106 mIconView.setContentDescription(mContext.getString( in updateState()
110 mIconView.setContentDescription(mContext.getString( in updateState()
114 mIconView.setContentDescription(mContext.getString( in updateState()
118 mIconView.setContentDescription(mContext.getString( in updateState()
124 mIconView.setContentDescription(mContext.getString( in updateState()
[all …]
DAuthBiometricView.java171 protected ImageView mIconView; field in AuthBiometricView
304 mIconView.setY(getHeight() - mIconView.getHeight() - iconPadding); in updateSize()
308 final int newHeight = mIconView.getHeight() + 2 * (int) iconPadding in updateSize()
309 - mIconView.getPaddingTop() - mIconView.getPaddingBottom(); in updateSize()
322 ValueAnimator.ofFloat(mIconView.getY(), mIconOriginalY); in updateSize()
324 mIconView.setY((float) animation.getAnimatedValue()); in updateSize()
589 mIconView = mInjector.getIconView(); in onFinishInflateInternal()
747 mIconOriginalY = mIconView.getY(); in onLayoutInternal()
DAuthCredentialView.java83 private ImageView mIconView; field in AuthCredentialView
223 if (mIconView != null) { in onAttachedToWindow()
233 mIconView.setImageDrawable(image); in onAttachedToWindow()
267 mIconView = findViewById(R.id.icon); in onFinishInflate()
DAuthBiometricFingerprintView.java95 mIconView.setImageDrawable(icon); in updateIcon()
/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/packages/SystemUI/src/com/android/systemui/util/
DDismissCircleView.java35 private final ImageView mIconView = new ImageView(getContext()); field in DismissCircleView
43 mIconView.setImageDrawable(res.getDrawable(R.drawable.ic_close_white)); in DismissCircleView()
44 addView(mIconView); in DismissCircleView()
59 mIconView.setLayoutParams( in setViewSizes()
/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/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/packages/SystemUI/src/com/android/systemui/bubbles/
DBubble.java75 private BadgedImageView mIconView; field in Bubble
233 return mIconView; in getIconView()
264 mIconView = null; in cleanupViews()
322 return mIconView != null && mExpandedView != null; in isInflated()
335 mIconView = info.imageView; in setViewInfo()
351 if (mIconView != null) { in setViewInfo()
352 mIconView.setRenderedBubble(this /* bubble */); in setViewInfo()
523 if (mIconView != null) { in setShowDot()
524 mIconView.updateDotVisibility(true /* animate */); in setShowDot()
/frameworks/base/core/java/com/android/internal/app/
DAlertController.java104 private ImageView mIconView; field in AlertController
416 if (mIconView != null) { in setIcon()
418 mIconView.setVisibility(View.VISIBLE); in setIcon()
419 mIconView.setImageResource(mIconId); in setIcon()
421 mIconView.setVisibility(View.GONE); in setIcon()
436 if (mIconView != null) { in setIcon()
438 mIconView.setVisibility(View.VISIBLE); in setIcon()
439 mIconView.setImageDrawable(icon); in setIcon()
441 mIconView.setVisibility(View.GONE); in setIcon()
701 mIconView = (ImageView) mWindow.findViewById(R.id.icon); in setupTitle()
[all …]
/frameworks/base/core/java/com/android/internal/accessibility/dialog/
DTargetAdapter.java30 ImageView mIconView; field in TargetAdapter.ViewHolder
DShortcutTargetAdapter.java68 holder.mIconView = convertView.findViewById(R.id.accessibility_shortcut_target_icon); in getView()
DAccessibilityTarget.java75 holder.mIconView.setImageDrawable(getIcon()); in updateActionItem()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/biometrics/
DAuthBiometricViewTest.java64 @Mock private ImageView mIconView; field in AuthBiometricViewTest
362 return mIconView; in getIconView()