Home
last modified time | relevance | path

Searched refs:iconId (Results 1 – 25 of 47) 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/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/fuelgauge/
DBatteryEntry.java128 public int iconId; // For passing to the detail screen. field in BatteryEntry
144 iconId = R.drawable.ic_settings_phone_idle; in BatteryEntry()
148 iconId = R.drawable.ic_cellular_1_bar; in BatteryEntry()
152 iconId = R.drawable.ic_settings_voice_calls; in BatteryEntry()
156 iconId = R.drawable.ic_settings_wireless; in BatteryEntry()
160 iconId = com.android.internal.R.drawable.ic_settings_bluetooth; in BatteryEntry()
164 iconId = R.drawable.ic_settings_display; in BatteryEntry()
168 iconId = R.drawable.ic_settings_display; in BatteryEntry()
202 iconId = R.drawable.ic_android; in BatteryEntry()
206 iconId = R.drawable.ic_android; in BatteryEntry()
[all …]
DAdvancedPowerUsageDetail.java124 args.putInt(EXTRA_ICON_ID, entry.iconId); in startBatteryDetailPage()
227 final int iconId = bundle.getInt(EXTRA_ICON_ID, 0); in initHeader() local
228 if (iconId == 0) { in initHeader()
/packages/apps/Settings/src/com/android/settings/fuelgauge/
DBatteryEntry.java128 public int iconId; // For passing to the detail screen. field in BatteryEntry
144 iconId = R.drawable.ic_settings_phone_idle; in BatteryEntry()
148 iconId = R.drawable.ic_cellular_1_bar; in BatteryEntry()
152 iconId = R.drawable.ic_settings_voice_calls; in BatteryEntry()
156 iconId = R.drawable.ic_settings_wireless; in BatteryEntry()
160 iconId = com.android.internal.R.drawable.ic_settings_bluetooth; in BatteryEntry()
164 iconId = R.drawable.ic_settings_display; in BatteryEntry()
168 iconId = R.drawable.ic_settings_display; in BatteryEntry()
202 iconId = R.drawable.ic_android; in BatteryEntry()
206 iconId = R.drawable.ic_android; in BatteryEntry()
[all …]
DAdvancedPowerUsageDetail.java124 args.putInt(EXTRA_ICON_ID, entry.iconId); in startBatteryDetailPage()
227 final int iconId = bundle.getInt(EXTRA_ICON_ID, 0); in initHeader() local
228 if (iconId == 0) { in initHeader()
/packages/apps/PermissionController/src/android/support/wearable/view/
DWearableDialogHelper.java172 public DialogBuilder setPositiveIcon(@DrawableRes int iconId) { in setPositiveIcon() argument
173 mHelper.setPositiveIcon(iconId); in setPositiveIcon()
182 public DialogBuilder setNegativeIcon(@DrawableRes int iconId) { in setNegativeIcon() argument
183 mHelper.setNegativeIcon(iconId); in setNegativeIcon()
192 public DialogBuilder setNeutralIcon(@DrawableRes int iconId) { in setNeutralIcon() argument
193 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()
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()
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()
/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/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/SettingsIntelligence/src/com/android/settings/intelligence/search/query/
DCursorToSearchResultConverter.java158 final int iconId = TextUtils.isEmpty(iconResStr) ? 0 : Integer.parseInt(iconResStr); in getIconForPackage() local
159 if (iconId == 0) { in getIconForPackage()
173 final Drawable drawable = packageContext.getDrawable(iconId); in getIconForPackage()
174 Log.d(TAG, "Returning icon, id :" + iconId); in getIconForPackage()
177 Log.w(TAG, "Cannot get icon, pkg/id :" + pkgName + "/" + iconId); in getIconForPackage()
/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/Settings/src/com/android/settings/accessibility/
DShortcutServicePickerFragment.java83 final int iconId; in getCandidates() local
85 iconId = R.drawable.ic_color_inversion; in getCandidates()
87 iconId = R.drawable.ic_daltonizer; in getCandidates()
89 iconId = R.drawable.empty_icon; in getCandidates()
92 iconId, componentName.flattenToString())); in getCandidates()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/accessibility/
DShortcutServicePickerFragment.java85 final int iconId; in getCandidates() local
87 iconId = R.drawable.ic_color_inversion; in getCandidates()
89 iconId = R.drawable.ic_daltonizer; in getCandidates()
91 iconId = R.drawable.empty_icon; in getCandidates()
94 iconId, componentName.flattenToString())); in getCandidates()
/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/services/Telephony/src/com/android/phone/
DNetworkOperatorPreference.java108 int iconId = 0; in updateIcon() local
110 iconId = SignalDrawable.getState(level, NUMBER_OF_LEVELS, false /* cutOut */); in updateIcon()
113 signalDrawable.setLevel(iconId); in updateIcon()
/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.java90 protected final void bindAction(View view, int visibility, int iconId, String description) { in bindAction() argument
101 if (iconId > 0) { in bindAction()
102 actionIcon.setImageDrawable(IconUtils.applyTintColor(view.getContext(), iconId, in bindAction() local
/packages/apps/Launcher3/iconloaderlib/src/com/android/launcher3/icons/cache/
DBaseIconCache.java159 private Drawable getFullResIcon(Resources resources, int iconId) { in getFullResIcon() argument
160 if (resources != null && iconId != 0) { in getFullResIcon()
162 return resources.getDrawableForDensity(iconId, mIconDpi); in getFullResIcon()
168 public Drawable getFullResIcon(String packageName, int iconId) { in getFullResIcon() argument
170 return getFullResIcon(mPackageManager.getResourcesForApplication(packageName), iconId); in getFullResIcon()
/packages/apps/Launcher3/src/com/android/launcher3/
DAutoInstallsLayout.java419 final int iconId = getAttributeResourceValue(parser, ATTR_ICON, 0); in parseAndAdd() local
421 if (titleResId == 0 || iconId == 0) { in parseAndAdd()
431 Drawable icon = mIconRes.getDrawable(iconId); in parseAndAdd()
443 mValues.put(Favorites.ICON_PACKAGE, mIconRes.getResourcePackageName(iconId)); in parseAndAdd()
444 mValues.put(Favorites.ICON_RESOURCE, mIconRes.getResourceName(iconId)); in parseAndAdd()
/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()

12