/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/ |
D | KeyboardIconsSet.java | 98 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 …]
|
D | KeyPreviewView.java | 57 final int iconId = key.getIconId(); in setPreviewVisual() local 58 if (iconId != KeyboardIconsSet.ICON_UNDEFINED) { in setPreviewVisual()
|
/packages/apps/Dialer/java/com/android/dialer/calllogutils/ |
D | CallTypeIconsView.java | 290 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/ |
D | BatteryEntry.java | 59 public final int iconId; field in BatteryEntry.NameAndIcon 61 public NameAndIcon(String name, Drawable icon, int iconId) { in NameAndIcon() argument 62 this(name, /*packageName=*/ null, icon, iconId); in NameAndIcon() 66 String name, String packageName, Drawable icon, int iconId) { in NameAndIcon() argument 69 this.iconId = iconId; in NameAndIcon() 174 public int iconId; // For passing to the detail screen. field in BatteryEntry 261 iconId = nameAndIcon.iconId; in BatteryEntry() 263 if (iconId != 0) { in BatteryEntry() 264 icon = context.getDrawable(iconId); in BatteryEntry() 277 iconId = R.drawable.ic_power_system; in BatteryEntry() [all …]
|
D | BatteryDiffEntry.java | 166 mAppIconId = nameAndIcon.iconId; in loadLabelAndIcon() 202 if (nameAndIconForSystem.iconId != 0) { in loadLabelAndIcon() 203 mAppIconId = nameAndIconForSystem.iconId; in loadLabelAndIcon() 204 mAppIcon = mContext.getDrawable(nameAndIconForSystem.iconId); in loadLabelAndIcon()
|
D | ExpandDividerPreference.java | 93 final int iconId = in refreshState() local 98 mImageView.setImageResource(iconId); in refreshState()
|
/packages/modules/Permission/PermissionController/src/android/support/wearable/view/ |
D | WearableDialogHelper.java | 173 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/ |
D | AbstractLayoutBase.java | 48 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()
|
D | ExpectedKeyVisual.java | 36 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()
|
D | ActualKeyboardBuilder.java | 111 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()
|
D | ExpectedKey.java | 52 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/Launcher3/tests/src/com/android/launcher3/testcomponent/ |
D | CustomShortcutConfigActivity.java | 50 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/Gallery2/src/com/android/gallery3d/filtershow/controller/ |
D | ActionSlider.java | 63 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/ |
D | MenuHelper.java | 52 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/ |
D | FloatingActionButtonController.java | 87 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/ |
D | CursorToSearchResultConverter.java | 160 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/ |
D | InputMethodSubtypeCompatUtils.java | 62 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/Settings/tests/robotests/src/com/android/settings/fuelgauge/ |
D | BatteryEntryTest.java | 161 assertThat(entry.iconId).isEqualTo(R.drawable.ic_settings_aod); in batteryEntryForAOD_containCorrectInfo() 170 assertThat(entry.iconId).isEqualTo(R.drawable.ic_power_system); in batteryEntryForCustomComponent_containCorrectInfo() 318 private void assertNameAndIcon(int powerComponentId, int stringId, int iconId) { in assertNameAndIcon() argument 322 assertThat(nameAndIcon.iconId).isEqualTo(iconId); in assertNameAndIcon()
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/ |
D | Key.java | 214 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/ |
D | RootItem.java | 98 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/apps/Contacts/src/com/android/contacts/drawer/ |
D | DrawerAdapter.java | 381 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/apps/Launcher3/src/com/android/launcher3/ |
D | AutoInstallsLayout.java | 431 final int iconId = getAttributeResourceValue(parser, ATTR_ICON, 0); in parseAndAdd() local 433 if (titleResId == 0 || iconId == 0) { in parseAndAdd() 443 Drawable icon = mIconRes.getDrawable(iconId); in parseAndAdd() 455 mValues.put(Favorites.ICON_PACKAGE, mIconRes.getResourcePackageName(iconId)); in parseAndAdd() 456 mValues.put(Favorites.ICON_RESOURCE, mIconRes.getResourceName(iconId)); in parseAndAdd()
|
/packages/apps/Car/Settings/src/com/android/car/settings/system/ |
D | FactoryResetAccountsPreferenceController.java | 120 if (description.iconId != 0) { in getAccountIcon() 124 authContext.getDrawable(description.iconId), userHandle); in getAccountIcon()
|
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/keyboard/action/ |
D | ActionTestsBase.java | 42 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/deviceinfo/aboutphone/ |
D | MyDeviceInfoFragment.java | 147 final int iconId = bundle.getInt("icon_id", 0); in initHeader() local 148 if (iconId == 0) { in initHeader()
|