Home
last modified time | relevance | path

Searched refs:mIcon (Results 1 – 25 of 59) sorted by relevance

123

/frameworks/base/core/java/android/app/
DPerson.java34 @Nullable private Icon mIcon; field in Person
43 mIcon = Icon.CREATOR.createFromParcel(in); in Person()
53 mIcon = builder.mIcon; in Person()
86 return mIcon; in getIcon()
130 && (mIcon == null ? other.mIcon == null : in equals()
131 (other.mIcon != null && mIcon.sameAs(other.mIcon))) in equals()
142 return Objects.hash(mName, mIcon, mUri, mKey, mIsBot, mIsImportant); in hashCode()
153 if (mIcon != null) { in writeToParcel()
155 mIcon.writeToParcel(dest, 0); in writeToParcel()
168 @Nullable private Icon mIcon; field in Person.Builder
[all …]
DRemoteAction.java35 private final Icon mIcon; field in RemoteAction
43 mIcon = Icon.CREATOR.createFromParcel(in); in RemoteAction()
57 mIcon = icon; in RemoteAction()
97 return mIcon; in getIcon()
123 RemoteAction action = new RemoteAction(mIcon, mTitle, mContentDescription, mActionIntent); in clone()
136 mIcon.writeToParcel(out, 0); in writeToParcel()
149 pw.print(" icon=" + mIcon); in dump()
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/utils/
DIconCacheTest.java41 private Icon mIcon; field in IconCacheTest
48 mIcon = mock(Icon.class); in setUp()
50 doReturn(drawable).when(mIcon).loadDrawable(mContext); in setUp()
61 mIconCache.getIcon(mIcon); in testGetIcon_iconAlreadyLoaded()
62 verify(mIcon, times(1)).loadDrawable(mContext); in testGetIcon_iconAlreadyLoaded()
63 mIconCache.getIcon(mIcon); in testGetIcon_iconAlreadyLoaded()
64 verify(mIcon, times(1)).loadDrawable(mContext); in testGetIcon_iconAlreadyLoaded()
69 mIconCache.getIcon(mIcon); in testGetIcon_iconLoadedFirstTime()
70 assertTrue(mIconCache.mMap.containsKey(mIcon)); in testGetIcon_iconLoadedFirstTime()
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/widget/
DBarChartPreferenceTest.java47 private Drawable mIcon; field in BarChartPreferenceTest
65 mIcon = mContext.getDrawable(com.android.internal.R.drawable.ic_menu); in setUp()
119 new BarViewInfo(mIcon, 10, null /* title */, in initializeBarChart_detailsSet_shouldShowBarChartDetailsView()
137 new BarViewInfo(mIcon, 10, null /* title */, in initializeBarChart_detailsNotSet_shouldHideBarChartDetailsView()
156 new BarViewInfo(mIcon, 10, null /* title */, in initializeBarChart_clickListenerSet_shouldSetClickListenerOnDetailsView()
171 new BarViewInfo(mIcon, 10, mTitleStr, mSummaryStr, null /* contentDescription */) in setBarViewInfos_oneBarViewInfoSet_shouldShowOneBarView()
189 new BarViewInfo(mIcon, 20, mTitleStr, mSummaryStr, null /* contentDescription */), in setBarViewInfos_twoBarViewInfosSet_shouldShowTwoBarViews()
190 new BarViewInfo(mIcon, 10, mTitleStr, mSummaryStr, null /* contentDescription */), in setBarViewInfos_twoBarViewInfosSet_shouldShowTwoBarViews()
209 new BarViewInfo(mIcon, 20, mTitleStr, mSummaryStr, null /* contentDescription */), in setBarViewInfos_threeBarViewInfosSet_shouldShowThreeBarViews()
210 new BarViewInfo(mIcon, 10, mTitleStr, mSummaryStr, null /* contentDescription */), in setBarViewInfos_threeBarViewInfosSet_shouldShowThreeBarViews()
[all …]
/frameworks/base/core/java/android/content/pm/
DLabeledIntent.java32 private int mIcon; field in LabeledIntent
49 mIcon = icon; in LabeledIntent()
67 mIcon = icon; in LabeledIntent()
82 mIcon = icon; in LabeledIntent()
98 mIcon = icon; in LabeledIntent()
126 return mIcon; in getIconResource()
153 if (mIcon != 0 && mSourcePackage != null) { in loadIcon()
154 Drawable icon = pm.getDrawable(mSourcePackage, mIcon, null); in loadIcon()
167 dest.writeInt(mIcon); in writeToParcel()
180 mIcon = in.readInt(); in readFromParcel()
/frameworks/base/packages/SettingsLib/EntityHeaderWidgets/src/com/android/settingslib/widget/
DAppEntityInfo.java30 private final Drawable mIcon; field in AppEntityInfo
41 return mIcon; in getIcon()
72 mIcon = builder.mIcon; in AppEntityInfo()
83 private Drawable mIcon; field in AppEntityInfo.Builder
101 mIcon = icon; in setIcon()
/frameworks/base/core/java/android/service/chooser/
DChooserTarget.java56 private Icon mIcon; field in ChooserTarget
106 mIcon = icon; in ChooserTarget()
119 mIcon = Icon.CREATOR.createFromParcel(in); in ChooserTarget()
121 mIcon = null; in ChooserTarget()
145 return mIcon; in getIcon()
194 if (mIcon != null) { in writeToParcel()
196 mIcon.writeToParcel(dest, 0); in writeToParcel()
/frameworks/base/wifi/java/android/net/wifi/hotspot2/
DOsuProvider.java90 private final Icon mIcon; field in OsuProvider
106 mIcon = icon; in OsuProvider()
123 mIcon = null; in OsuProvider()
137 mIcon = source.mIcon; in OsuProvider()
200 return mIcon; in getIcon()
215 dest.writeParcelable(mIcon, flags); in writeToParcel()
239 && (mIcon == null ? that.mIcon == null : mIcon.sameAs(that.mIcon)); in equals()
257 + " mIcon=" + mIcon; in toString()
/frameworks/base/core/java/android/service/settings/suggestions/
DSuggestion.java61 private final Icon mIcon; field in Suggestion
91 return mIcon; in getIcon()
114 mIcon = builder.mIcon; in Suggestion()
123 mIcon = in.readParcelable(Icon.class.getClassLoader()); in Suggestion()
150 dest.writeParcelable(mIcon, flags); in writeToParcel()
162 private Icon mIcon; field in Suggestion.Builder
194 mIcon = icon; in setIcon()
/frameworks/base/telecomm/java/android/telecom/
DStatusHints.java36 private final Icon mIcon; field in StatusHints
51 mIcon = icon; in StatusHints()
93 return mIcon.loadDrawable(context); in getIcon()
100 return mIcon; in getIcon()
118 out.writeParcelable(mIcon, 0); in writeToParcel()
135 mIcon = in.readParcelable(getClass().getClassLoader()); in StatusHints()
152 return Objects.hashCode(mLabel) + Objects.hashCode(mIcon) + Objects.hashCode(mExtras); in hashCode()
DPhoneAccount.java374 private final Icon mIcon; field in PhoneAccount
420 private Icon mIcon; field in PhoneAccount.Builder
448 mIcon = phoneAccount.getIcon(); in Builder()
506 mIcon = icon; in setIcon()
637 mIcon, in build()
667 mIcon = icon; in PhoneAccount()
811 return mIcon; in getIcon()
920 if (mIcon == null) { in writeToParcel()
924 mIcon.writeToParcel(out, flags); in writeToParcel()
967 mIcon = Icon.CREATOR.createFromParcel(in); in PhoneAccount()
[all …]
/frameworks/base/core/java/android/service/quicksettings/
DTile.java64 private Icon mIcon; field in Tile
121 return mIcon; in getIcon()
135 this.mIcon = icon; in setIcon()
208 if (mIcon != null) { in writeToParcel()
210 mIcon.writeToParcel(dest, flags); in writeToParcel()
222 mIcon = Icon.CREATOR.createFromParcel(source); in readFromParcel()
224 mIcon = null; in readFromParcel()
/frameworks/base/core/tests/coretests/src/android/service/settings/suggestions/
DSuggestionTest.java43 private Icon mIcon; field in SuggestionTest
52 mIcon = Icon.createWithBitmap(Bitmap.createBitmap(100, 100, Bitmap.Config.ARGB_8888)); in setUp()
60 .setIcon(mIcon) in buildSuggestion_allFieldsShouldBeSet()
67 assertThat(suggestion.getIcon()).isEqualTo(mIcon); in buildSuggestion_allFieldsShouldBeSet()
78 .setIcon(mIcon) in buildSuggestion_emptyKey_shouldCrash()
88 .setIcon(mIcon) in buildSuggestion_fromParcelable()
100 assertThat(newSuggestion.getIcon().toString()).isEqualTo(mIcon.toString()); in buildSuggestion_fromParcelable()
/frameworks/base/core/java/android/view/
DKeyboardShortcutInfo.java32 private final Icon mIcon; field in KeyboardShortcutInfo
53 mIcon = icon; in KeyboardShortcutInfo()
89 mIcon = null; in KeyboardShortcutInfo()
94 mIcon = source.readParcelable(null); in KeyboardShortcutInfo()
115 return mIcon; in getIcon()
153 dest.writeParcelable(mIcon, 0); in writeToParcel()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DStatusBarIconHolder.java36 private StatusBarIcon mIcon; field in StatusBarIconHolder
45 wrapper.mIcon = icon; in fromIcon()
53 holder.mIcon = new StatusBarIcon(UserHandle.SYSTEM, context.getPackageName(), in fromResId()
79 return mIcon; in getIcon()
103 return mIcon.visible; in isVisible()
120 mIcon.visible = visible; in setVisible()
/frameworks/base/media/java/android/media/
DMediaDescription.java53 private final Bitmap mIcon; field in MediaDescription
134 mIcon = icon; in MediaDescription()
145 mIcon = in.readParcelable(null); in MediaDescription()
192 return mIcon; in getIconBitmap()
233 dest.writeParcelable(mIcon, flags); in writeToParcel()
292 private Bitmap mIcon; field in MediaDescription.Builder
356 mIcon = icon; in setIconBitmap()
400 return new MediaDescription(mMediaId, mTitle, mSubtitle, mDescription, mIcon, mIconUri, in build()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/
DImageTransformState.java40 private Icon mIcon; field in ImageTransformState
46 mIcon = (Icon) view.getTag(ICON_TAG); in initFrom()
56 return mIcon != null && mIcon.sameAs(((ImageTransformState) otherState).getIcon()); in sameAs()
108 return mIcon; in getIcon()
135 mIcon = null; in reset()
/frameworks/base/packages/CarSystemUI/src/com/android/systemui/statusbar/car/
DCarFacetButton.java55 private AlphaOptimizedImageButton mIcon; field in CarFacetButton
136 mIcon = findViewById(R.id.car_nav_button_icon); in setupIcons()
137 mIcon.setScaleType(ImageView.ScaleType.CENTER); in setupIcons()
138 mIcon.setClickable(false); in setupIcons()
139 mIcon.setAlpha(mUnselectedAlpha); in setupIcons()
141 mIcon.setImageResource(mIconResourceId); in setupIcons()
201 mIcon.setAlpha(mSelected ? mSelectedAlpha : mUnselectedAlpha); in setSelected()
202 mIcon.setImageResource(mSelected ? mSelectedIconResourceId : mIconResourceId); in setSelected()
/frameworks/base/core/java/com/android/internal/globalactions/
DSinglePressAction.java31 private final Drawable mIcon; field in SinglePressAction
39 mIcon = null; in SinglePressAction()
46 mIcon = icon; in SinglePressAction()
88 if (mIcon != null) { in create()
89 icon.setImageDrawable(mIcon); in create()
/frameworks/base/core/java/com/android/internal/view/menu/
DIconMenuItemView.java47 private Drawable mIcon; field in IconMenuItemView
190 mIcon = icon; in setIcon()
246 if (mItemData != null && mIcon != null) { in drawableStateChanged()
250 mIcon.setAlpha(isInAlphaState ? (int) (mDisabledAlpha * NO_ALPHA) : NO_ALPHA); in drawableStateChanged()
295 if (mIcon == null) { in positionIcon()
304 Gravity.apply(Gravity.CENTER_VERTICAL | Gravity.START, mIcon.getIntrinsicWidth(), mIcon in positionIcon()
307 mIcon.setBounds(mPositionIconOutput); in positionIcon()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tileimpl/
DQSIconViewImpl.java45 protected final View mIcon; field in QSIconViewImpl
58 mIcon = createIcon(); in QSIconViewImpl()
59 addView(mIcon); in QSIconViewImpl()
67 return mIcon; in getIconView()
74 mIcon.measure(MeasureSpec.makeMeasureSpec(w, getIconMeasureMode()), iconSpec); in onMeasure()
75 setMeasuredDimension(w, mIcon.getMeasuredHeight()); in onMeasure()
92 final int iconLeft = (w - mIcon.getMeasuredWidth()) / 2; in onLayout()
93 layout(mIcon, iconLeft, top); in onLayout()
97 setIcon((ImageView) mIcon, state, allowAnimations); in setIcon()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
DStatusBarIconView.java118 private StatusBarIcon mIcon; field in StatusBarIconView
320 final boolean iconEquals = mIcon != null && equalIcons(mIcon.icon, icon.icon); in set()
322 && mIcon.iconLevel == icon.iconLevel; in set()
323 final boolean visibilityEquals = mIcon != null in set()
324 && mIcon.visible == icon.visible; in set()
325 final boolean numberEquals = mIcon != null in set()
326 && mIcon.number == icon.number; in set()
327 mIcon = icon.clone(); in set()
365 if (mIcon == null) { in updateDrawable()
370 drawable = getIcon(mIcon); in updateDrawable()
[all …]
/frameworks/base/media/java/android/media/session/
DPlaybackState.java504 private final int mIcon; field in PlaybackState.CustomAction
513 mIcon = icon; in CustomAction()
520 mIcon = in.readInt(); in CustomAction()
528 dest.writeInt(mIcon); in writeToParcel()
575 return mIcon; in getIcon()
591 return "Action:" + "mName='" + mName + ", mIcon=" + mIcon + ", mExtras=" + mExtras; in toString()
600 private final int mIcon; field in PlaybackState.CustomAction.Builder
628 mIcon = icon; in Builder()
650 return new CustomAction(mAction, mName, mIcon, mExtras); in build()
/frameworks/base/services/core/java/com/android/server/wm/
DSplashScreenStartingData.java34 private final int mIcon; field in SplashScreenStartingData
48 mIcon = icon; in SplashScreenStartingData()
57 mNonLocalizedLabel, mLabelRes, mIcon, mLogo, mWindowFlags, in createStartingSurface()
/frameworks/base/packages/SettingsLib/BarChartPreference/src/com/android/settingslib/widget/
DBarView.java41 private ImageView mIcon; field in BarView
74 mIcon.setImageDrawable(barViewInfo.getIcon()); in updateView()
81 mIcon.setContentDescription(barViewInfo.getContentDescription()); in updateView()
101 mIcon = findViewById(R.id.icon_view); in init()

123