Home
last modified time | relevance | path

Searched refs:resId (Results 1 – 25 of 248) sorted by relevance

12345678910

/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DContactsMockResources.java30 public void addResource(int resId, String packageName, String typeName, String entryName) { in addResource() argument
31 mPackages.put(resId, packageName); in addResource()
32 mTypes.put(resId, typeName); in addResource()
33 mEntries.put(resId, entryName); in addResource()
37 public String getResourceName(int resId) throws NotFoundException { in getResourceName() argument
38 if (!mPackages.containsKey(resId)) { in getResourceName()
39 throw new NotFoundException("Resource " + resId + " not found"); in getResourceName()
41 return mPackages.get(resId) + ":" + mTypes.get(resId) + "/" + mEntries.get(resId); in getResourceName()
45 public String getResourcePackageName(int resId) throws NotFoundException { in getResourcePackageName() argument
46 if (!mPackages.containsKey(resId)) { in getResourcePackageName()
[all …]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/accessibility/
DKeyCodeDescriptionMapper.java152 final int resId; in getDescriptionForSwitchAlphaSymbol() local
160 resId = R.string.spoken_description_to_symbol; in getDescriptionForSwitchAlphaSymbol()
164 resId = R.string.spoken_description_to_alpha; in getDescriptionForSwitchAlphaSymbol()
167 resId = R.string.spoken_description_to_symbol; in getDescriptionForSwitchAlphaSymbol()
170 resId = R.string.spoken_description_to_numeric; in getDescriptionForSwitchAlphaSymbol()
176 return context.getString(resId); in getDescriptionForSwitchAlphaSymbol()
190 final int resId; in getDescriptionForShiftKey() local
195 resId = R.string.spoken_description_caps_lock; in getDescriptionForShiftKey()
199 resId = R.string.spoken_description_shift_shifted; in getDescriptionForShiftKey()
202 resId = R.string.spoken_description_symbols_shift; in getDescriptionForShiftKey()
[all …]
DMainKeyboardAccessibilityDelegate.java152 final int resId; in announceKeyboardType() local
162 resId = R.string.spoken_description_mode_alpha; in announceKeyboardType()
170 resId = R.string.spoken_description_shiftmode_on; in announceKeyboardType()
178 resId = R.string.spoken_description_shiftmode_locked; in announceKeyboardType()
181 resId = R.string.spoken_description_shiftmode_locked; in announceKeyboardType()
184 resId = R.string.spoken_description_mode_symbol; in announceKeyboardType()
187 resId = R.string.spoken_description_mode_symbol_shift; in announceKeyboardType()
190 resId = R.string.spoken_description_mode_phone; in announceKeyboardType()
193 resId = R.string.spoken_description_mode_phone_shift; in announceKeyboardType()
198 sendWindowStateChanged(resId); in announceKeyboardType()
/packages/apps/Launcher3/src/com/android/launcher3/
DPartner.java93 int resId = getResources().getIdentifier(RES_DEFAULT_WALLPAPER_HIDDEN, "bool", in hideDefaultWallpaper() local
95 return resId != 0 && getResources().getBoolean(resId); in hideDefaultWallpaper()
99 int resId = getResources().getIdentifier(RES_SYSTEM_WALLPAPER_DIR, "string", in getWallpaperDirectory() local
101 return (resId != 0) ? new File(getResources().getString(resId)) : null; in getWallpaperDirectory()
105 int resId = getResources().getIdentifier(RES_REQUIRE_FIRST_RUN_FLOW, "bool", in requiresFirstRunFlow() local
107 return resId != 0 && getResources().getBoolean(resId); in requiresFirstRunFlow()
116 int resId = getResources().getIdentifier(RES_GRID_NUM_ROWS, in applyInvariantDeviceProfileOverrides() local
118 if (resId > 0) { in applyInvariantDeviceProfileOverrides()
119 numRows = getResources().getInteger(resId); in applyInvariantDeviceProfileOverrides()
122 resId = getResources().getIdentifier(RES_GRID_NUM_COLUMNS, in applyInvariantDeviceProfileOverrides()
[all …]
DResourceUtils.java48 final int resId = res.getIdentifier(resName, "bool", "android"); in getBoolByName() local
49 if (resId != 0) { in getBoolByName()
50 val = res.getBoolean(resId); in getBoolByName()
58 int resId = res.getIdentifier(resName, "integer", "android"); in getIntegerByName() local
59 return resId != 0 ? res.getInteger(resId) : defaultValue; in getIntegerByName()
/packages/apps/TV/src/com/android/tv/util/
DViewCache.java47 public void putView(int resId, View view) { in putView() argument
48 ArrayList<View> views = mViews.get(resId); in putView()
51 mViews.put(resId, views); in putView()
57 public void putView(Context context, int resId, ViewGroup fakeParent, int num) { in putView() argument
60 ArrayList<View> views = mViews.get(resId); in putView()
63 mViews.put(resId, views); in putView()
66 View view = inflater.inflate(resId, fakeParent, false); in putView()
72 public View getView(int resId) { in getView() argument
73 ArrayList<View> views = mViews.get(resId); in getView()
77 mViews.remove(resId); in getView()
[all …]
/packages/apps/Dialer/java/com/android/incallui/
DStatusBarNotifier.java158 private static int getWorkStringFromPersonalString(int resId) { in getWorkStringFromPersonalString() argument
159 if (resId == R.string.notification_ongoing_call) { in getWorkStringFromPersonalString()
161 } else if (resId == R.string.notification_incoming_call) { in getWorkStringFromPersonalString()
164 return resId; in getWorkStringFromPersonalString()
690 int resId = R.string.notification_ongoing_call; in getContentString() local
693 resId = R.string.notification_ongoing_call_wifi_template; in getContentString()
698 resId = R.string.notification_incoming_spam_call; in getContentString()
700 resId = getECIncomingCallText(call.getEnrichedCallSession()); in getContentString()
702 resId = R.string.notification_incoming_call_wifi_template; in getContentString()
706 resId = R.string.notification_incoming_video_call; in getContentString()
[all …]
/packages/apps/Launcher3/src/com/android/launcher3/util/
DDynamicResource.java52 public int getInt(@IntegerRes int resId) { in getInt() argument
53 return mContext.getResources().getInteger(resId); in getInt()
57 public float getFraction(@FractionRes int resId) { in getFraction() argument
58 return mContext.getResources().getFraction(resId, 1, 1); in getFraction()
62 public float getDimension(@DimenRes int resId) { in getDimension() argument
63 return mContext.getResources().getDimension(resId); in getDimension()
67 public int getColor(@ColorRes int resId) { in getColor() argument
68 return mContext.getResources().getColor(resId, null); in getColor()
72 public float getFloat(@DimenRes int resId) { in getFloat() argument
73 return mContext.getResources().getFloat(resId); in getFloat()
/packages/apps/Settings/src/com/android/settings/connecteddevice/
DAdvancedConnectedDeviceController.java83 final int resId; in getConnectedDevicesSummaryResourceId() local
89 resId = R.string.connected_devices_dashboard_android_auto_summary; in getConnectedDevicesSummaryResourceId()
92 resId = in getConnectedDevicesSummaryResourceId()
98 resId = R.string.connected_devices_dashboard_android_auto_no_nfc_summary; in getConnectedDevicesSummaryResourceId()
101 resId = in getConnectedDevicesSummaryResourceId()
109 resId = R.string.connected_devices_dashboard_summary; in getConnectedDevicesSummaryResourceId()
112 resId = R.string.connected_devices_dashboard_no_driving_mode_summary; in getConnectedDevicesSummaryResourceId()
117 resId = R.string.connected_devices_dashboard_no_nfc_summary; in getConnectedDevicesSummaryResourceId()
120 resId = R.string.connected_devices_dashboard_no_driving_mode_no_nfc_summary; in getConnectedDevicesSummaryResourceId()
125 return resId; in getConnectedDevicesSummaryResourceId()
/packages/apps/Settings/src/com/android/settings/accessibility/
DFloatingMenuLayerDrawable.java54 public static FloatingMenuLayerDrawable createLayerDrawable(Context context, int resId, in createLayerDrawable() argument
60 basicDrawable.updateLayerDrawable(context, resId, opacity); in createLayerDrawable()
72 public void updateLayerDrawable(Context context, int resId, int opacity) { in updateLayerDrawable() argument
73 final Drawable icon = context.getDrawable(resId); in updateLayerDrawable()
76 this.setConstantState(context, resId, opacity); in updateLayerDrawable()
85 private void setConstantState(Context context, int resId, int opacity) { in setConstantState() argument
86 mState = new FloatingMenuLayerDrawableState(context, resId, opacity); in setConstantState()
97 FloatingMenuLayerDrawableState(Context context, int resId, int opacity) { in FloatingMenuLayerDrawableState() argument
99 mResId = resId; in FloatingMenuLayerDrawableState()
/packages/apps/Settings/src/com/android/settings/
DRegulatoryInfoDisplayActivity.java77 int resId = 0; in onCreate() local
79 resId = getResourceId(); in onCreate()
81 if (resId != 0) { in onCreate()
83 Drawable d = getDrawable(resId); in onCreate()
102 image.setImageResource(resId); in onCreate()
121 int resId = getResources().getIdentifier( in getResourceId() local
131 resId = id; in getResourceId()
143 resId = id; in getResourceId()
146 return resId; in getResourceId()
/packages/modules/Permission/PermissionController/src/android/support/wearable/view/
DWearableDialogHelper.java82 public WearableDialogHelper setPositiveIcon(@DrawableRes int resId) { in setPositiveIcon() argument
83 mPositiveIconId = resId; in setPositiveIcon()
96 public WearableDialogHelper setNegativeIcon(@DrawableRes int resId) { in setNegativeIcon() argument
97 mNegativeIconId = resId; in setNegativeIcon()
110 public WearableDialogHelper setNeutralIcon(@DrawableRes int resId) { in setNeutralIcon() argument
111 mNeutralIconId = resId; in setNeutralIcon()
151 /* package */ Drawable resolveDrawable(@Nullable Drawable drawable, @DrawableRes int resId) { in resolveDrawable() argument
152 return drawable == null && resId != 0 ? mResources.getDrawable(resId, mTheme) : drawable; in resolveDrawable()
/packages/apps/Car/Settings/src/com/android/car/settings/system/
DRegulatoryInfoDisplayActivity.java87 int resId = 0; in onCreate() local
89 resId = getImageResourceId(); in onCreate()
91 if (resId != 0) { in onCreate()
93 Drawable d = getDrawable(resId); in onCreate()
111 image.setImageResource(resId); in onCreate()
129 int resId = getResources().getIdentifier( in getImageResourceId() local
139 resId = id; in getImageResourceId()
142 return resId; in getImageResourceId()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/dialog/
DProgressDialogFragment.java66 public void setIcon(@DrawableRes int resId) { in setIcon() argument
67 mIconView.setImageResource(resId); in setIcon()
76 public void setTitle(@StringRes int resId) { in setTitle() argument
77 mTitleView.setText(resId); in setTitle()
84 public void setExtraText(@StringRes int resId) { in setExtraText() argument
85 mExtraTextView.setText(resId); in setExtraText()
101 public void setSummary(@StringRes int resId) { in setSummary() argument
102 mSummaryView.setText(resId); in setSummary()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/module/
DDefaultPartnerProvider.java83 int resId = 0; in getLegacyWallpaperDirectory() local
88 resId = res.getIdentifier(PartnerProvider.RES_LEGACY_SYSTEM_WALLPAPER_DIR, in getLegacyWallpaperDirectory()
91 return (resId != 0) ? new File(res.getString(resId)) : null; in getLegacyWallpaperDirectory()
105 final int resId = res.getIdentifier( in shouldHideDefaultWallpaper() local
107 return resId != 0 && res.getBoolean(resId); in shouldHideDefaultWallpaper()
/packages/apps/Contacts/src/com/android/contacts/interactions/
DImportDialogFragment.java197 final int resId = adapter.getItem(which).mChoiceResourceId; in onCreateDialog()
198 if (resId == R.string.import_from_sim) { in onCreateDialog()
200 } else if (resId == R.string.import_from_vcf_file) { in onCreateDialog()
201 handleImportRequest(resId, SimCard.NO_SUBSCRIPTION_ID); in onCreateDialog()
204 + getActivity().getResources().getResourceEntryName(resId)); in onCreateDialog()
261 private void handleImportRequest(int resId, int subscriptionId) { in handleImportRequest() argument
276 args.putInt(KEY_RES_ID, resId); in handleImportRequest()
282 AccountSelectionUtil.doImport(getActivity(), resId, in handleImportRequest() local
302 public AdapterEntry(CharSequence label, int resId, SimCard sim) { in AdapterEntry() argument
304 mChoiceResourceId = resId; in AdapterEntry()
[all …]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethodcommon/
DInputMethodSettingsActivity.java42 public void setInputMethodSettingsCategoryTitle(int resId) { in setInputMethodSettingsCategoryTitle() argument
43 mSettings.setInputMethodSettingsCategoryTitle(resId); in setInputMethodSettingsCategoryTitle()
58 public void setSubtypeEnablerTitle(int resId) { in setSubtypeEnablerTitle() argument
59 mSettings.setSubtypeEnablerTitle(resId); in setSubtypeEnablerTitle()
74 public void setSubtypeEnablerIcon(int resId) { in setSubtypeEnablerIcon() argument
75 mSettings.setSubtypeEnablerIcon(resId); in setSubtypeEnablerIcon()
DInputMethodSettingsFragment.java43 public void setInputMethodSettingsCategoryTitle(int resId) { in setInputMethodSettingsCategoryTitle() argument
44 mSettings.setInputMethodSettingsCategoryTitle(resId); in setInputMethodSettingsCategoryTitle()
59 public void setSubtypeEnablerTitle(int resId) { in setSubtypeEnablerTitle() argument
60 mSettings.setSubtypeEnablerTitle(resId); in setSubtypeEnablerTitle()
75 public void setSubtypeEnablerIcon(int resId) { in setSubtypeEnablerIcon() argument
76 mSettings.setSubtypeEnablerIcon(resId); in setSubtypeEnablerIcon()
/packages/apps/Contacts/src/com/android/contacts/vcard/
DSelectAccountActivity.java62 final int resId = R.string.import_from_vcf_file; in onCreate() local
85 this, accountList, resId) { in onCreate()
98 showDialog(resId); in onCreate()
103 protected Dialog onCreateDialog(int resId, Bundle bundle) { in onCreateDialog() argument
104 if (resId == R.string.import_from_vcf_file) { in onCreateDialog()
109 return AccountSelectionUtil.getSelectAccountDialog(this, resId, in onCreateDialog()
113 return super.onCreateDialog(resId, bundle); in onCreateDialog()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/asset/
DResourceAsset.java46 public ResourceAsset(Resources res, int resId, RequestOptions requestOptions) { in ResourceAsset() argument
48 mResId = resId; in ResourceAsset()
56 public ResourceAsset(Resources res, int resId) { in ResourceAsset() argument
57 this(res, resId, RequestOptions.centerCropTransform()); in ResourceAsset()
122 public PackageResourceKey(Resources res, int resId) { in PackageResourceKey() argument
123 mPackageName = res.getResourcePackageName(resId); in PackageResourceKey()
124 mResId = resId; in PackageResourceKey()
/packages/apps/Contacts/src/com/android/contacts/util/
DAccountSelectionUtil.java64 int resId, int subscriptionId) { in AccountSelectedListener() argument
70 mResId = resId; in AccountSelectedListener()
75 int resId) { in AccountSelectedListener() argument
78 this(activity, accountList, resId, /* subscriptionId = */ -1); in AccountSelectedListener()
91 public static Dialog getSelectAccountDialog(Activity activity, int resId, in getSelectAccountDialog() argument
137 new AccountSelectedListener(activity, writableAccountList, resId); in getSelectAccountDialog()
157 public static void doImport(Activity activity, int resId, AccountWithDataSet account, in doImport() argument
159 if (resId == R.string.import_from_sim) { in doImport()
161 } else if (resId == R.string.import_from_vcf_file) { in doImport()
/packages/apps/Settings/src/com/android/settings/deviceinfo/
DStorageWizardBase.java155 protected void setHeaderText(int resId, CharSequence... args) { in setHeaderText() argument
156 final CharSequence headerText = TextUtils.expandTemplate(getText(resId), args); in setHeaderText()
161 protected void setBodyText(int resId, CharSequence... args) { in setBodyText() argument
163 body.setText(TextUtils.expandTemplate(getText(resId), args)); in setBodyText()
180 protected void setBackButtonText(int resId, CharSequence... args) { in setBackButtonText() argument
181 mBack.setText(TextUtils.expandTemplate(getText(resId), args)); in setBackButtonText()
185 protected void setNextButtonText(int resId, CharSequence... args) { in setNextButtonText() argument
186 mNext.setText(TextUtils.expandTemplate(getText(resId), args)); in setNextButtonText()
198 protected void setIcon(int resId) { in setIcon() argument
200 final Drawable icon = getDrawable(resId).mutate(); in setIcon()
/packages/apps/Car/libs/car-ui-lib/car-ui-lib/src/main/java/com/android/car/ui/toolbar/
DMenuItem.java221 public void setTitle(int resId) { in setTitle() argument
222 setTitle(mContext.getString(resId)); in setTitle()
302 public void setIcon(int resId) { in setIcon() argument
303 setIcon(resId == 0 in setIcon()
305 : mContext.getDrawable(resId)); in setIcon()
400 public Builder setTitle(int resId) { in setTitle() argument
401 setTitle(mContext.getString(resId)); in setTitle()
416 public Builder setIcon(int resId) { in setIcon() argument
417 mIcon = resId == 0 in setIcon()
419 : mContext.getDrawable(resId); in setIcon()
/packages/apps/TV/common/src/com/android/tv/common/customization/
DCustomizationManager.java118 int resId = in hasLinuxDvbBuiltInTuner() local
123 sHasLinuxDvbBuiltInTuner = resId != 0 && res.getBoolean(resId); in hasLinuxDvbBuiltInTuner()
142 int resId = in getTrickplayMode() local
145 customization = resId == 0 ? null : res.getString(resId); in getTrickplayMode()
281 int resId = in buildPartnerRow() local
283 if (resId != 0) { in buildPartnerRow()
284 mPartnerRowTitle = res.getString(resId); in buildPartnerRow()
/packages/apps/TV/partner_support/src/com/google/android/tv/partner/support/
DBaseCustomization.java81 int resId = in getBooleanResource() local
91 + resId in getBooleanResource()
93 + (resId == 0 ? "missing" : res.getBoolean(resId))); in getBooleanResource()
95 return resId == 0 ? Optional.empty() : Optional.of(res.getBoolean(resId)); in getBooleanResource()

12345678910