Home
last modified time | relevance | path

Searched refs:appIcon (Results 1 – 25 of 46) sorted by relevance

12

/aosp12/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/row/
H A DChannelEditorDialogControllerTest.kt60 private val appIcon = ColorDrawable(Color.MAGENTA) regex
94 setOf(channel1, channel2), appIcon, clickListener)
104 setOf(channelDefault), appIcon, clickListener)
115 setOf(), appIcon, clickListener)
126 setOf(channel1), appIcon, clickListener)
136 setOf(channel1, channel2), appIcon, clickListener)
155 setOf(channel1, channel2), appIcon, clickListener)
171 setOf(channel1, channel2), appIcon, clickListener)
184 setOf(channel1, channel2), appIcon, null)
200 setOf(channel1, channel2), appIcon, null)
[all …]
/aosp12/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/handheld/
H A DSettingsWithLargeHeader.java110 ImageView appIcon = header.requireViewById(R.id.entity_header_icon); in updateHeader() local
111 appIcon.setImageDrawable(mIcon); in updateHeader()
115 appIcon.getLayoutParams().width = size; in updateHeader()
116 appIcon.getLayoutParams().height = size; in updateHeader()
119 appIcon.setOnClickListener(v -> getActivity().startActivityAsUser(mInfoIntent, in updateHeader()
121 appIcon.setContentDescription(mLabel); in updateHeader()
H A DSettingsWithHeader.java67 final ImageView appIcon = (ImageView) mHeader.findViewById(R.id.icon); in updateHeader() local
68 appIcon.setImageDrawable(mIcon); in updateHeader()
/aosp12/packages/apps/TV/src/com/android/tv/menu/
H A DAppLinkCardView.java161 Drawable appIcon = in onBind() local
164 if (appIcon != null) { in onBind()
165 BitmapUtils.setColorFilterToDrawable(mIconColorFilter, appIcon); in onBind()
166 appIcon.setBounds(0, 0, mIconWidth, mIconHeight); in onBind()
167 mAppInfoView.setCompoundDrawablesRelative(appIcon, null, null, null); in onBind()
178 protected void onPostExecute(Drawable appIcon) { in onBind() argument
180 mLoadTvInputId, appIcon); in onBind()
185 BitmapUtils.setColorFilterToDrawable(mIconColorFilter, appIcon); in onBind()
186 appIcon.setBounds(0, 0, mIconWidth, mIconHeight); in onBind()
188 appIcon, null, null, null); in onBind()
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/
H A DChannelEditorDialogController.kt70 private var appIcon: Drawable? = null
104 appIcon: Drawable,
110 this.appIcon = appIcon
192 appIcon = null
301 appIcon = this@ChannelEditorDialogController.appIcon
H A DChannelEditorListView.kt48 var appIcon: Drawable? = null
129 appControlRow.iconView.setImageDrawable(appIcon)
/aosp12/packages/apps/Launcher3/tests/src/com/android/launcher3/ui/
H A DTaplTestsLauncher3.java362 AppIcon appIcon = mLauncher.getWorkspace().tryGetWorkspaceAppIcon(name); in createShortcutIfNotExist() local
363 if (appIcon == null) { in createShortcutIfNotExist()
367 appIcon = allApps.getAppIcon(name); in createShortcutIfNotExist()
368 appIcon.dragToWorkspace(false, false); in createShortcutIfNotExist()
372 appIcon = mLauncher.getWorkspace().getWorkspaceAppIcon(name); in createShortcutIfNotExist()
374 return appIcon; in createShortcutIfNotExist()
431 final AppIcon appIcon = createShortcutIfNotExist(appName); in testDeleteFromWorkspace() local
432 Workspace workspace = mLauncher.getWorkspace().deleteAppIcon(appIcon); in testDeleteFromWorkspace()
/aosp12/packages/apps/Settings/src/com/android/settings/development/storage/
H A DLeaseInfoListView.java164 Drawable appIcon;
166 appIcon = mContext.getPackageManager().getApplicationIcon(lease.getPackageName());
169 appIcon = mContext.getDrawable(android.R.drawable.sym_def_app_icon);
171 holder.appIcon.setImageDrawable(appIcon);
H A DLeaseInfoViewHolder.java31 ImageView appIcon; field in LeaseInfoViewHolder
44 holder.appIcon = convertView.findViewById(R.id.app_icon); in createOrRecycle()
/aosp12/packages/apps/Launcher3/tests/tapl/com/android/launcher3/tapl/
H A DWorkspace.java176 public void dragIcon(AppIcon appIcon, int pageDelta) { in dragIcon() argument
181 dragIcon(workspace, appIcon, pageDelta); in dragIcon()
187 private void dragIcon(UiObject2 workspace, AppIcon appIcon, int pageDelta) { in dragIcon() argument
192 appIcon, in dragIcon()
232 public Workspace deleteAppIcon(AppIcon appIcon) { in deleteAppIcon() argument
237 mLauncher, appIcon, in deleteAppIcon()
240 appIcon.getLongPressIndicator(), in deleteAppIcon()
/aosp12/packages/apps/Settings/src/com/android/settings/fuelgauge/batterytip/
H A DHighUsageAdapter.java47 public ImageView appIcon; field in HighUsageAdapter.ViewHolder
54 appIcon = v.findViewById(R.id.app_icon); in ViewHolder()
77 holder.appIcon.setImageDrawable( in onBindViewHolder()
/aosp12/packages/apps/Car/SystemUI/tests/src/com/android/systemui/car/systembar/
H A DCarSystemBarButtonTest.java197 Drawable appIcon = getContext().getDrawable(R.drawable.ic_android); in onUnselected_withAppIcon_showsAppIcon() local
199 roleBasedButton.setAppIcon(appIcon); in onUnselected_withAppIcon_showsAppIcon()
205 assertThat(currentDrawable).isEqualTo(appIcon); in onUnselected_withAppIcon_showsAppIcon()
221 Drawable appIcon = getContext().getDrawable(R.drawable.ic_android); in onSelected_withAppIcon_showsAppIcon() local
224 roleBasedButton.setAppIcon(appIcon); in onSelected_withAppIcon_showsAppIcon()
229 assertThat(currentDrawable).isEqualTo(appIcon); in onSelected_withAppIcon_showsAppIcon()
/aosp12/frameworks/base/core/java/android/content/pm/
H A DPackageInstaller.java1597 public Bitmap appIcon; field in PackageInstaller.SessionParams
1657 appIcon = source.readParcelable(null); in SessionParams()
1690 ret.appIcon = appIcon; // not a copy. in copy()
1773 this.appIcon = appIcon; in setAppIcon()
2219 dest.writeParcelable(appIcon, flags); in writeToParcel()
2356 public Bitmap appIcon; field in PackageInstaller.SessionInfo
2433 appIcon = source.readParcelable(null); in SessionInfo()
2561 if (appIcon == null) { in getAppIcon()
2567 appIcon = (info != null) ? info.appIcon : null; in getAppIcon()
2572 return appIcon; in getAppIcon()
[all …]
/aosp12/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/
H A DBridgeActionBar.java139 ResourceValue appIcon = mParams.getAppIcon(); in setIcon() local
140 if (appIcon != null) { in setIcon()
141 setIcon(appIcon); in setIcon()
/aosp12/frameworks/base/core/java/com/android/internal/app/
H A DHeavyWeightSwitcherActivity.java101 Drawable appIcon = null; in setIconAndText() local
107 appIcon = info.loadIcon(getPackageManager()); in setIconAndText()
112 setDrawable(iconId, appIcon); in setIconAndText()
/aosp12/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/
H A DBubbleViewInfoTask.java162 Drawable appIcon; in populate() local
173 appIcon = pm.getApplicationIcon(b.getPackageName()); in populate()
174 badgedIcon = pm.getUserBadgedIcon(appIcon, b.getUser()); in populate()
186 bubbleDrawable = appIcon; in populate()
/aosp12/packages/apps/Settings/src/com/android/settings/development/
H A DAppViewHolder.java32 public ImageView appIcon; field in AppViewHolder
46 holder.appIcon = convertView.findViewById(android.R.id.icon); in createOrRecycle()
H A DAppPicker.java186 holder.appIcon.setImageDrawable(info.info.loadIcon(getPackageManager())); in getView()
189 holder.appIcon.setImageDrawable(null); in getView()
/aosp12/packages/apps/ThemePicker/src/com/android/customization/model/theme/custom/
H A DShapeOptionsProvider.java112 Drawable appIcon = mContext.getPackageManager().getApplicationIcon(packageName); in getShapedAppIcons() local
113 if (appIcon instanceof AdaptiveIconDrawable) { in getShapedAppIcons()
114 AdaptiveIconDrawable adaptiveIcon = (AdaptiveIconDrawable) appIcon; in getShapedAppIcons()
/aosp12/frameworks/base/services/core/java/com/android/server/pm/
H A DPackageInstallerService.java740 if (params.appIcon != null) { in createSessionInternal()
744 if ((params.appIcon.getWidth() > iconSize * 2) in createSessionInternal()
745 || (params.appIcon.getHeight() > iconSize * 2)) { in createSessionInternal()
746 params.appIcon = Bitmap.createScaledBitmap(params.appIcon, iconSize, iconSize, in createSessionInternal()
854 public void updateSessionAppIcon(int sessionId, Bitmap appIcon) { in updateSessionAppIcon() argument
862 if (appIcon != null) { in updateSessionAppIcon()
866 if ((appIcon.getWidth() > iconSize * 2) in updateSessionAppIcon()
867 || (appIcon.getHeight() > iconSize * 2)) { in updateSessionAppIcon()
868 appIcon = Bitmap.createScaledBitmap(appIcon, iconSize, iconSize, true); in updateSessionAppIcon()
872 session.params.appIcon = appIcon; in updateSessionAppIcon()
/aosp12/packages/apps/Settings/tests/robotests/src/com/android/settings/bluetooth/
H A DCompanionAppWidgetPreferenceTest.java77 private void setUpPreferenceContainer(Drawable widgetIcon, Drawable appIcon, in setUpPreferenceContainer() argument
81 preference.setIcon(appIcon); in setUpPreferenceContainer()
/aosp12/packages/apps/Car/Cluster/DirectRenderingCluster/src/android/car/cluster/
H A DMusicFragment.java70 ImageView appIcon = view.findViewById(R.id.app_icon); in onCreateView() local
71 innerViewModel.getAppIcon().observe(getViewLifecycleOwner(), appIcon::setImageBitmap); in onCreateView()
/aosp12/packages/apps/Settings/src/com/android/settings/bluetooth/
H A DBluetoothDetailsCompanionAppsController.java214 Drawable appIcon; in updatePreferences() local
217 appIcon = mPackageManager.getApplicationIcon(packageName); in updatePreferences()
223 preference.setIcon(appIcon); in updatePreferences()
/aosp12/packages/apps/Car/libs/car-media-common/src/com/android/car/media/common/
H A DPlaybackFragment.java127 ImageView appIcon = view.findViewById(R.id.app_icon); in onCreateView() local
135 appIcon.setVisibility(View.GONE); in onCreateView()
137 appIcon.setImageBitmap(bitmap); in onCreateView()
/aosp12/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/media/
H A DMediaControlPanelTest.kt100 private lateinit var appIcon: ImageView
143 appIcon = ImageView(context)
144 whenever(holder.appIcon).thenReturn(appIcon)

12