Home
last modified time | relevance | path

Searched refs:iconId (Results 1 – 25 of 30) 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/Settings/src/com/android/settings/location/
DInjectedSetting.java55 public final int iconId; field in InjectedSetting
69 String title, int iconId, UserHandle userHandle, String settingsActivity) { in InjectedSetting() argument
73 this.iconId = iconId; in InjectedSetting()
82 String title, int iconId, UserHandle userHandle, String settingsActivity) { in newInstance() argument
92 return new InjectedSetting(packageName, className, title, iconId, userHandle, in newInstance()
102 ", iconId=" + iconId + in toString()
125 && title.equals(that.title) && iconId == that.iconId in equals()
135 result = 31 * result + iconId; in hashCode()
DSettingsInjector.java213 final int iconId = in parseAttributes() local
218 Log.d(TAG, "parsed title: " + title + ", iconId: " + iconId in parseAttributes()
222 title, iconId, userHandle, settingsActivity); in parseAttributes()
270 Drawable appIcon = pm.getDrawable(info.packageName, info.iconId, null); in addServiceSetting()
/packages/apps/Settings/src/com/android/settings/fuelgauge/
DBatteryEntry.java120 public int iconId; // For passing to the detail screen. field in BatteryEntry
136 iconId = R.drawable.ic_settings_phone_idle; in BatteryEntry()
140 iconId = R.drawable.ic_settings_cell_standby; in BatteryEntry()
144 iconId = R.drawable.ic_settings_voice_calls; in BatteryEntry()
148 iconId = R.drawable.ic_settings_wireless; in BatteryEntry()
152 iconId = R.drawable.ic_settings_bluetooth; in BatteryEntry()
156 iconId = R.drawable.ic_settings_display; in BatteryEntry()
160 iconId = R.drawable.ic_settings_display; in BatteryEntry()
178 iconId = R.drawable.ic_power_system; in BatteryEntry()
182 iconId = R.drawable.ic_power_system; in BatteryEntry()
[all …]
DPowerUsageDetail.java99 args.putInt(PowerUsageDetail.EXTRA_ICON_ID, entry.iconId); in startBatteryDetailPage()
463 int iconId = args.getInt(EXTRA_ICON_ID, 0); in setupHeader() local
478 } else if (iconId != 0) { in setupHeader()
479 appIcon = getActivity().getDrawable(iconId); in setupHeader()
/packages/apps/Launcher2/src/com/android/launcher2/
DIconCache.java95 public Drawable getFullResIcon(Resources resources, int iconId, UserHandle user) { in getFullResIcon() argument
98 d = resources.getDrawableForDensity(iconId, mIconDpi); in getFullResIcon()
109 public Drawable getFullResIcon(String packageName, int iconId, UserHandle user) { in getFullResIcon() argument
120 if (iconId != 0) { in getFullResIcon()
121 return getFullResIcon(resources, iconId, user); in getFullResIcon()
140 int iconId = info.getIconResource(); in getFullResIcon() local
141 if (iconId != 0) { in getFullResIcon()
142 return getFullResIcon(resources, iconId, user); in getFullResIcon()
/packages/apps/TV/src/com/android/tv/ui/sidepanel/
DSubMenuItem.java31 public SubMenuItem(String title, int iconId, SideFragmentManager fragmentManager) { in SubMenuItem() argument
32 this(title, null, iconId, fragmentManager); in SubMenuItem()
35 public SubMenuItem(String title, String description, int iconId, in SubMenuItem() argument
37 super(title, description, iconId); in SubMenuItem()
DActionItem.java38 public ActionItem(String title, int iconId) { in ActionItem() argument
39 this(title, null, iconId); in ActionItem()
42 public ActionItem(String title, String description, int iconId) { in ActionItem() argument
45 mIconId = iconId; in ActionItem()
/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()
DExpectedKeyboardBuilder.java163 public ExpectedKeyboardBuilder setMoreKeysOf(final int iconId, final Object ... moreKeys) { in setMoreKeysOf() argument
164 setMoreKeysOf(ExpectedKeyVisual.newInstance(iconId), joinKeys(moreKeys)); in setMoreKeysOf()
/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/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/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/Dialer/InCallUI/src/com/android/incallui/
DInCallContactInteractions.java153 hoursInfo.iconId = R.drawable.ic_schedule_white_24dp; in constructHoursInfo()
278 locationInfo.iconId = R.drawable.ic_location_on_white_24dp; in constructLocationInfo()
316 int iconId; field in InCallContactInteractions.BusinessContextInfo
326 if (this.iconId == 0 || (this.heading == null && this.detail == null)) { in bindView()
330 imageView.setImageDrawable(listItem.getContext().getDrawable(this.iconId)); in bindView()
/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/Launcher3/src/com/android/launcher3/
DIconCache.java138 private Drawable getFullResIcon(Resources resources, int iconId) { in getFullResIcon() argument
141 d = resources.getDrawableForDensity(iconId, mIconDpi); in getFullResIcon()
149 public Drawable getFullResIcon(String packageName, int iconId) { in getFullResIcon() argument
157 if (iconId != 0) { in getFullResIcon()
158 return getFullResIcon(resources, iconId); in getFullResIcon()
173 int iconId = info.getIconResource(); in getFullResIcon() local
174 if (iconId != 0) { in getFullResIcon()
175 return getFullResIcon(resources, iconId); in getFullResIcon()
DAutoInstallsLayout.java420 final int iconId = getAttributeResourceValue(parser, ATTR_ICON, 0); in parseAndAdd() local
422 if (titleResId == 0 || iconId == 0) { in parseAndAdd()
432 Drawable icon = mIconRes.getDrawable(iconId); in parseAndAdd()
440 mValues.put(Favorites.ICON_PACKAGE, mIconRes.getResourcePackageName(iconId)); in parseAndAdd()
441 mValues.put(Favorites.ICON_RESOURCE, mIconRes.getResourceName(iconId)); in parseAndAdd()
/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/Settings/src/com/android/settings/
DMasterClear.java253 if (desc.iconId != 0) { in loadAccountList()
257 authContext.getDrawable(desc.iconId), userHandle); in loadAccountList()
/packages/apps/Camera2/src/com/android/camera/ui/
DModeTransitionView.java389 public void prepareToPullUpShade(int shadeColorId, int iconId, in prepareToPullUpShade() argument
391 prepareShadeAnimation(PULL_UP_SHADE, shadeColorId, iconId, listener); in prepareToPullUpShade()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/
DMainFragment.java237 if (authTitle != null || authDesc.iconId != 0) { in updateAccounts()
249 authImage = targetContext.getDrawable(authDesc.iconId); in updateAccounts()

12