/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/ |
D | StatusBarIconViewTest.java | 75 private StatusBarIconView mIconView; field in StatusBarIconViewTest 98 mIconView = new StatusBarIconView(mContext, "test_slot", null); in setUp() 106 mIconView.setTag(R.id.icon_is_grayscale, true); in testSetClearsGrayscale() 107 mIconView.set(mStatusBarIcon); in testSetClearsGrayscale() 108 assertNull(mIconView.getTag(R.id.icon_is_grayscale)); in testSetClearsGrayscale() 116 assertFalse(mIconView.set(mStatusBarIcon)); in testSettingOomingIconDoesNotThrowOom() 121 mIconView.setStaticDrawableColor(Color.DKGRAY); in testGetContrastedStaticDrawableColor() 122 int color = mIconView.getContrastedStaticDrawableColor(Color.WHITE); in testGetContrastedStaticDrawableColor() 126 mIconView.setStaticDrawableColor(Color.WHITE); in testGetContrastedStaticDrawableColor() 127 color = mIconView.getContrastedStaticDrawableColor(Color.WHITE); in testGetContrastedStaticDrawableColor() [all …]
|
/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/qs/tileimpl/ |
D | QSIconViewImplTest.java | 51 private QSIconViewImpl mIconView; field in QSIconViewImplTest 55 mIconView = new QSIconViewImpl(mContext); in setup() 67 mIconView.updateIcon(iv, s, true); in testNoFirstAnimation() 74 mIconView.updateIcon(iv, s, true); in testNoFirstAnimation() 92 mIconView.updateIcon(iv, s, /* allowAnimations= */true); in testMutateIconDrawable() 102 int desiredColor = mIconView.getColor(s); in testNoFirstFade() 105 mIconView.setIcon(iv, s, true); in testNoFirstFade() 114 int desiredColor = mIconView.getColor(s); in testStateSetCorrectly_toString() 118 mIconView.setIcon(iv, s, false); in testStateSetCorrectly_toString() 121 + ", lastIcon=" + i.toString() + "]", mIconView.toString()); in testStateSetCorrectly_toString() [all …]
|
/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/libs/WindowManager/Shell/src/com/android/wm/shell/common/bubbles/ |
D | DismissCircleView.java | 38 private final ImageView mIconView = new ImageView(getContext()); field in DismissCircleView 42 addView(mIconView); in DismissCircleView() 66 mIconView.setImageDrawable(ContextCompat.getDrawable(getContext(), iconResId)); in setup() 73 mIconView.setLayoutParams( in setViewSizes()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/screenshot/ |
D | OverlayActionChip.java | 42 private ImageView mIconView; field in OverlayActionChip 65 mIconView = requireNonNull(findViewById(R.id.overlay_action_chip_icon)); in onFinishInflate() 80 mIconView.setImageIcon(icon); in setIcon() 82 mIconView.setImageTintList(null); in setIcon() 122 (LinearLayout.LayoutParams) mIconView.getLayoutParams(); in updatePadding() 141 mIconView.setLayoutParams(iconParams); in updatePadding()
|
/frameworks/base/packages/PackageInstaller/src/com/android/packageinstaller/ |
D | AlertController.java | 86 private ImageView mIconView; field in AlertController 281 if (mIconView != null) { in setIcon() 283 mIconView.setVisibility(View.VISIBLE); in setIcon() 284 mIconView.setImageResource(mIconId); in setIcon() 286 mIconView.setVisibility(View.GONE); in setIcon() 300 if (mIconView != null) { in setIcon() 302 mIconView.setVisibility(View.VISIBLE); in setIcon() 303 mIconView.setImageDrawable(icon); in setIcon() 305 mIconView.setVisibility(View.GONE); in setIcon() 494 mIconView = mWindow.findViewById(R.id.icon); in setupTitle() [all …]
|
/frameworks/base/core/java/com/android/internal/view/menu/ |
D | ListMenuItemView.java | 47 private ImageView mIconView; field in ListMenuItemView 259 if (mIconView == null && icon == null && !mPreserveIconSpacing) { in setIcon() 263 if (mIconView == null) { in setIcon() 268 mIconView.setImageDrawable(showIcon ? icon : null); in setIcon() 270 if (mIconView.getVisibility() != VISIBLE) { in setIcon() 271 mIconView.setVisibility(VISIBLE); in setIcon() 274 mIconView.setVisibility(GONE); in setIcon() 280 if (mIconView != null && mPreserveIconSpacing) { in onMeasure() 283 LayoutParams iconLp = (LayoutParams) mIconView.getLayoutParams(); in onMeasure() 293 mIconView = (ImageView) inflater.inflate( 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/android/window/ |
D | SplashScreenView.java | 89 private View mIconView; field in SplashScreenView 269 mUiThreadInitTask.accept(() -> view.mIconView = createSurfaceView(view)); in build() 271 view.mIconView = createSurfaceView(view); in build() 291 view.mIconView = imageView; in build() 315 + "\nIcon: view: " + view.mIconView + " drawable: " in build() 535 if (mIconView instanceof ImageView) { in remove() 536 ((ImageView) mIconView).setImageDrawable(null); in remove() 537 } else if (mIconView != null) { in remove() 538 mIconView.setBackground(null); in remove() 549 if (mIconView != null) { in remove() [all …]
|
/frameworks/base/core/java/com/android/internal/widget/ |
D | ScrollingTabContainerView.java | 377 private ImageView mIconView; field in ScrollingTabContainerView.TabView 433 if (mIconView != null) { in update() 434 mIconView.setVisibility(GONE); in update() 435 mIconView.setImageDrawable(null); in update() 447 if (mIconView == null) { in update() 454 mIconView = iconView; in update() 456 mIconView.setImageDrawable(icon); in update() 457 mIconView.setVisibility(VISIBLE); in update() 458 } else if (mIconView != null) { in update() 459 mIconView.setVisibility(GONE); in update() [all …]
|
D | NotificationExpandButton.java | 49 private ImageView mIconView; field in NotificationExpandButton 83 mIconView = findViewById(R.id.expand_button_icon); in onFinishInflate() 140 mIconView.setImageDrawable(getContext().getDrawable(drawableId)); in updateExpandedState() 166 mIconView.setColorFilter(mHighlightTextColor); in updateColors() 174 mIconView.setColorFilter(mDefaultTextColor); in updateColors()
|
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/accessibility/floatingmenu/ |
D | AccessibilityTargetAdapter.java | 84 holder.mIconView.setBackground(target.getIcon()); in onBindViewHolder() 130 final View mIconView; field in AccessibilityTargetAdapter.ViewHolder 134 mIconView = itemView.findViewById(R.id.icon_view); in ViewHolder() 138 final ViewGroup.LayoutParams layoutParams = mIconView.getLayoutParams(); in updateIconWidthHeight() 144 mIconView.setLayoutParams(layoutParams); in updateIconWidthHeight()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/accessibility/hearingaid/ |
D | HearingDevicesListAdapter.java | 107 private final ImageView mIconView; field in HearingDevicesListAdapter.DeviceItemViewHolder 116 mIconView = itemView.requireViewById(R.id.bluetooth_device_icon); in DeviceItemViewHolder() 131 mIconView.setImageDrawable(iconPair.getFirst()); in bindView() 132 mIconView.setContentDescription(iconPair.getSecond()); in bindView()
|
/frameworks/base/core/java/com/android/internal/app/ |
D | AlertController.java | 105 private ImageView mIconView; field in AlertController 417 if (mIconView != null) { in setIcon() 419 mIconView.setVisibility(View.VISIBLE); in setIcon() 420 mIconView.setImageResource(mIconId); in setIcon() 422 mIconView.setVisibility(View.GONE); in setIcon() 437 if (mIconView != null) { in setIcon() 439 mIconView.setVisibility(View.VISIBLE); in setIcon() 440 mIconView.setImageDrawable(icon); in setIcon() 442 mIconView.setVisibility(View.GONE); in setIcon() 702 mIconView = (ImageView) mWindow.findViewById(R.id.icon); in setupTitle() [all …]
|
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/ |
D | Bubble.java | 105 private BadgedImageView mIconView; field in Bubble 381 return mIconView; in getIconView() 478 mIconView = null; in cleanupViews() 554 return (mIconView != null && mExpandedView != null) || mBubbleBarExpandedView != null; in isInflated() 566 mIconView = info.imageView; in setViewInfo() 591 if (mIconView != null) { in setViewInfo() 592 mIconView.setRenderedBubble(this /* bubble */); in setViewInfo() 821 if (mIconView != null) { in setShowDot() 822 mIconView.updateDotVisibility(true /* animate */); in setShowDot()
|
/frameworks/base/core/java/com/android/internal/accessibility/dialog/ |
D | TargetAdapter.java | 30 ImageView mIconView; field in TargetAdapter.ViewHolder
|
D | AccessibilityTarget.java | 87 holder.mIconView.setEnabled(true); in updateActionItem() 95 holder.mIconView.setImageDrawable(getIcon()); in updateActionItem()
|
D | AccessibilityActivityTarget.java | 60 holder.mIconView.setEnabled(enabled); in updateActionItem()
|
D | AccessibilityServiceTarget.java | 65 holder.mIconView.setEnabled(enabled); in updateActionItem()
|
D | ShortcutTargetAdapter.java | 68 holder.mIconView = convertView.findViewById(R.id.accessibility_shortcut_target_icon); in getView()
|
/frameworks/base/core/tests/batterystatstests/BatteryStatsViewer/src/com/android/frameworks/core/batterystatsviewer/ |
D | BatteryStatsViewerActivity.java | 59 private ImageView mIconView; field in BatteryStatsViewerActivity 84 mIconView = findViewById(android.R.id.icon); in onCreate() 205 mIconView.setImageDrawable( in onBatteryStatsDataLoaded() 208 mIconView.setImageResource(R.drawable.gm_device_24); in onBatteryStatsDataLoaded()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/accessibility/floatingmenu/ |
D | AccessibilityTargetAdapterTest.java | 81 final int actualIconWith = mViewHolder.mIconView.getLayoutParams().width; in onBindViewHolder_setIconWidthHeight_matchResult()
|
/frameworks/base/boot/hiddenapi/ |
D | hiddenapi-max-target-o.txt | 71597 Lcom/android/internal/app/AlertController;->mIconView:Landroid/widget/ImageView; 85973 Lcom/android/internal/widget/ScrollingTabContainerView$TabView;->mIconView:Landroid/widget/ImageVie…
|