Home
last modified time | relevance | path

Searched refs:iconId (Results 1 – 25 of 48) sorted by relevance

12

/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/
DKeyboardIconsSet.java98 int iconId = ICON_UNDEFINED;
103 ATTR_ID_TO_ICON_ID.put(attrId, iconId); in ATTR_ID_TO_ICON_ID.put() argument
105 sNameToIdsMap.put(name, iconId); in sNameToIdsMap.put() argument
106 ICON_NAMES[iconId] = name;
107 iconId++;
118 final Integer iconId = ATTR_ID_TO_ICON_ID.get(attrId); in loadIcons() local
119 mIcons[iconId] = icon; in loadIcons()
120 mIconResourceIds[iconId] = keyboardAttrs.getResourceId(attrId, 0); in loadIcons()
129 private static boolean isValidIconId(final int iconId) { in isValidIconId() argument
130 return iconId >= 0 && iconId < ICON_NAMES.length; in isValidIconId()
[all …]
DKeyPreviewView.java57 final int iconId = key.getIconId(); in setPreviewVisual() local
58 if (iconId != KeyboardIconsSet.ICON_UNDEFINED) { in setPreviewVisual()
/packages/apps/Dialer/java/com/android/dialer/calllogutils/
DCallTypeIconsView.java290 int iconId = R.drawable.quantum_ic_call_received_white_24; in Resources() local
291 Drawable drawable = largeIcons ? r.getDrawable(iconId) : getScaledBitmap(context, iconId); in Resources()
296 iconId = R.drawable.quantum_ic_call_made_white_24; in Resources()
297 drawable = largeIcons ? r.getDrawable(iconId) : getScaledBitmap(context, iconId); in Resources()
303 iconId = R.drawable.quantum_ic_call_missed_white_24; in Resources()
304 drawable = largeIcons ? r.getDrawable(iconId) : getScaledBitmap(context, iconId); in Resources()
309 iconId = R.drawable.quantum_ic_voicemail_white_24; in Resources()
310 drawable = largeIcons ? r.getDrawable(iconId) : getScaledBitmap(context, iconId); in Resources()
314 iconId = R.drawable.quantum_ic_block_white_24; in Resources()
315 drawable = largeIcons ? r.getDrawable(iconId) : getScaledBitmap(context, iconId); in Resources()
[all …]
/packages/apps/Settings/src/com/android/settings/fuelgauge/batteryusage/
DBatteryEntry.java60 public NameAndIcon(String name, Drawable icon, int iconId) { in NameAndIcon() argument
61 this(name, /* packageName= */ null, icon, iconId); in NameAndIcon()
64 public NameAndIcon(String name, String packageName, Drawable icon, int iconId) { in NameAndIcon() argument
67 this.mIconId = iconId; in NameAndIcon()
587 int iconId; in getNameAndIconFromPowerComponent() local
592 iconId = R.drawable.ic_settings_display; in getNameAndIconFromPowerComponent()
596 iconId = R.drawable.ic_settings_cpu; in getNameAndIconFromPowerComponent()
600 iconId = R.drawable.ic_settings_bluetooth; in getNameAndIconFromPowerComponent()
604 iconId = R.drawable.ic_settings_camera; in getNameAndIconFromPowerComponent()
608 iconId = R.drawable.ic_settings_flashlight; in getNameAndIconFromPowerComponent()
[all …]
/packages/modules/DeviceLock/DeviceLockController/src/com/android/devicelockcontroller/activities/
DProvisioningProgress.java50 private ProvisioningProgress(int iconId, int headerId) { in ProvisioningProgress() argument
51 this(iconId, headerId, 0); in ProvisioningProgress()
54 ProvisioningProgress(int iconId, int headerId, int subheaderId) { in ProvisioningProgress() argument
55 this(iconId, headerId, subheaderId, /* progressBarVisible= */ true, in ProvisioningProgress()
66 ProvisioningProgress(int iconId, int headerId, int subheaderId, boolean progressBarVisible, in ProvisioningProgress() argument
70 mIconId = iconId; in ProvisioningProgress()
/packages/modules/Permission/PermissionController/src/android/support/wearable/view/
DWearableDialogHelper.java173 public DialogBuilder setPositiveIcon(@DrawableRes int iconId) { in setPositiveIcon() argument
174 mHelper.setPositiveIcon(iconId); in setPositiveIcon()
183 public DialogBuilder setNegativeIcon(@DrawableRes int iconId) { in setNegativeIcon() argument
184 mHelper.setNegativeIcon(iconId); in setNegativeIcon()
193 public DialogBuilder setNeutralIcon(@DrawableRes int iconId) { in setNeutralIcon() argument
194 mHelper.setNeutralIcon(iconId); in setNeutralIcon()
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/keyboard/layout/expected/
DAbstractLayoutBase.java48 public static ExpectedKey key(final int iconId, final String outputText, in key() argument
50 return ExpectedKey.newInstance(iconId, outputText, moreKeys); in key()
54 public static ExpectedKey key(final int iconId, final int code, in key() argument
56 return ExpectedKey.newInstance(iconId, code, moreKeys); in key()
92 public static ExpectedKey moreKey(final int iconId, final String outputText) { in moreKey() argument
93 return ExpectedKey.newInstance(iconId, outputText); in moreKey()
DExpectedKeyVisual.java36 public static ExpectedKeyVisual newInstance(final int iconId) { in newInstance() argument
37 return new Icon(iconId); in newInstance()
56 Icon(final int iconId) { in Icon() argument
57 mIconId = iconId; in Icon()
DActualKeyboardBuilder.java111 static String toString(final String label, final int iconId, final String outputText, in toString() argument
113 final String visual = (iconId != KeyboardIconsSet.ICON_UNDEFINED) in toString()
114 ? KeyboardIconsSet.getIconName(iconId) : label; in toString()
DExpectedKey.java52 static ExpectedKey newInstance(final int iconId, final String outputText, in newInstance() argument
54 return newInstance(ExpectedKeyVisual.newInstance(iconId), in newInstance()
59 static ExpectedKey newInstance(final int iconId, final int code, in newInstance() argument
61 return newInstance(ExpectedKeyVisual.newInstance(iconId), in newInstance()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/controller/
DActionSlider.java63 int iconId = ((ParameterActionAndInt) mParameter).getLeftIcon(); in updateUI() local
64 mLeftButton.setImageResource(iconId); in updateUI()
67 int iconId = ((ParameterActionAndInt) mParameter).getRightIcon(); in updateUI() local
68 mRightButton.setImageResource(iconId); in updateUI()
/packages/apps/Launcher3/tests/src/com/android/launcher3/testcomponent/
DCustomShortcutConfigActivity.java50 Context context, String uniqueId, String name, int iconId, Intent launchIntent) { in createShortcutResultIntent() argument
52 createShortcutInfo(context, uniqueId, name, iconId, launchIntent); in createShortcutResultIntent()
58 Context context, String uniqueId, String name, int iconId, Intent launchIntent) { in createShortcutInfo() argument
62 .setIcon(Icon.createWithResource(context, iconId)) in createShortcutInfo()
/packages/apps/LegacyCamera/src/com/android/camera/
DMenuHelper.java52 int labelId, iconId; in addSwitchModeMenuItem() local
56 iconId = R.drawable.ic_menu_camera_video_view; in addSwitchModeMenuItem()
60 iconId = android.R.drawable.ic_menu_camera; in addSwitchModeMenuItem()
64 iconId = R.drawable.btn_ic_panorama; in addSwitchModeMenuItem()
77 item.setIcon(iconId); in addSwitchModeMenuItem()
/packages/apps/Dialer/java/com/android/dialer/widget/
DFloatingActionButtonController.java87 public void changeIcon(Context context, @DrawableRes int iconId, String description) { in changeIcon() argument
88 if (this.fabIconId != iconId) { in changeIcon()
89 fab.setImageResource(iconId); in changeIcon()
92 this.fabIconId = iconId; in changeIcon()
/packages/apps/SettingsIntelligence/src/com/android/settings/intelligence/search/query/
DCursorToSearchResultConverter.java160 final int iconId = TextUtils.isEmpty(iconResStr) ? 0 : Integer.parseInt(iconResStr); in getIconForPackage() local
161 if (iconId == 0) { in getIconForPackage()
179 final Drawable drawable = packageContext.getDrawable(iconId); in getIconForPackage()
180 Log.d(TAG, "Returning icon, id :" + iconId); in getIconForPackage()
183 Log.w(TAG, "Cannot get icon, pkg/id :" + pkgName + "/" + iconId); in getIconForPackage()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/compat/
DInputMethodSubtypeCompatUtils.java62 public static InputMethodSubtype newInputMethodSubtype(int nameId, int iconId, String locale, in newInputMethodSubtype() argument
67 return new InputMethodSubtype(nameId, iconId, locale, mode, extraValue, isAuxiliary, in newInputMethodSubtype()
71 nameId, iconId, locale, mode, extraValue, isAuxiliary, in newInputMethodSubtype()
/packages/apps/Launcher3/src/com/android/launcher3/icons/
DLauncherIconProvider.java92 int iconId = parser.getAttributeResourceValue(null, ATTR_DRAWABLE, 0); in getThemedIconMap() local
93 if (iconId != 0 && !TextUtils.isEmpty(pkg)) { in getThemedIconMap()
94 map.put(pkg, new ThemeData(res, iconId)); in getThemedIconMap()
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/shared/dialog/
DAlertDialogBuilder.kt86 fun setIcon(@AttrRes iconId: Int): AlertDialogBuilder { in <lambda>()
88 val iconDrawable = AttributeResolver.getNullableDrawable(context, iconId) in <lambda>()
97 fun setCustomIcon(@AttrRes iconId: Int): AlertDialogBuilder { in <lambda>()
99 val iconDrawable = AttributeResolver.getNullableDrawable(context, iconId) in <lambda>()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/
DKey.java214 public Key(@Nullable final String label, final int iconId, final int code, in Key() argument
234 mIconId = iconId; in Key()
541 final int iconId = getIconId(); in toLongString() local
542 final String topVisual = (iconId == KeyboardIconsSet.ICON_UNDEFINED) in toLongString()
543 ? KeyboardIconsSet.PREFIX_ICON + KeyboardIconsSet.getIconName(iconId) : getLabel(); in toLongString()
816 final int iconId = mEnabled ? getIconId() : disabledIconId; in getIcon() local
817 final Drawable icon = iconSet.getIconDrawable(iconId); in getIcon()
/packages/apps/DocumentsUI/src/com/android/documentsui/sidebar/
DRootItem.java98 protected final void bindAction(View view, int visibility, int iconId, String description) { in bindAction() argument
109 if (iconId > 0) { in bindAction()
110 actionIcon.setImageDrawable(IconUtils.applyTintColor(view.getContext(), iconId, in bindAction() local
/packages/modules/Permission/PermissionController/iconloaderlib/src/com/android/launcher3/icons/cache/
DBaseIconCache.java155 private Drawable getFullResIcon(Resources resources, int iconId) { in getFullResIcon() argument
156 if (resources != null && iconId != 0) { in getFullResIcon()
158 return resources.getDrawableForDensity(iconId, mIconDpi); in getFullResIcon()
164 public Drawable getFullResIcon(String packageName, int iconId) { in getFullResIcon() argument
166 return getFullResIcon(mPackageManager.getResourcesForApplication(packageName), iconId); in getFullResIcon()
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/keyboard/action/
DActionTestsBase.java42 final int iconId = KeyboardIconsSet.getIconId(iconName); in newIconKey() local
43 return new ExpectedActionKey(ExpectedKeyVisual.newInstance(iconId)); in newIconKey()
/packages/apps/Car/Settings/src/com/android/car/settings/system/
DFactoryResetAccountsPreferenceController.java120 if (description.iconId != 0) { in getAccountIcon()
124 authContext.getDrawable(description.iconId), userHandle); in getAccountIcon()
/packages/apps/Contacts/src/com/android/contacts/drawer/
DDrawerAdapter.java381 public PrimaryItem(int id, int pageName, int iconId, ContactsView contactsView) { in PrimaryItem() argument
382 super(VIEW_TYPE_PRIMARY_ITEM, id, pageName, iconId); in PrimaryItem()
389 public MiscItem(int id, int textId, int iconId) { in MiscItem() argument
390 super(VIEW_TYPE_MISC_ITEM, id, textId, iconId); in MiscItem()
/packages/modules/Permission/PermissionController/iconloaderlib/src/com/android/launcher3/icons/
DIconProvider.java211 int iconId = parser.getAttributeResourceValue(null, ATTR_DRAWABLE, 0); in getThemedIconMap() local
212 if (iconId != 0 && !TextUtils.isEmpty(pkg)) { in getThemedIconMap()
213 map.put(pkg, new ThemeData(res, iconId)); in getThemedIconMap()

12