Home
last modified time | relevance | path

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

12345678910>>...12

/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/modules/AdServices/adservices/apk/java/com/android/adservices/ui/settings/activitydelegates/
DBaseActionDelegate.java50 int resId, in configureElement() argument
54 View view = mActivity.findViewById(resId); in configureElement()
61 int resId, LiveData<T> liveData, Function<View, Observer<T>> observerProvider) { in configureElement() argument
62 View view = mActivity.findViewById(resId); in configureElement()
67 void configureElement(int resId, View.OnClickListener onClickListener) { in configureElement() argument
68 View view = mActivity.findViewById(resId); in configureElement()
73 void configureElement(int resId, String text) { in configureElement() argument
74 TextView textView = mActivity.findViewById(resId); in configureElement()
79 void configureElement(int resId, int textResId) { in configureElement() argument
80 TextView textView = mActivity.findViewById(resId); in configureElement()
[all …]
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/util/
DLazyStringResource.kt31 abstract val resId: Int constant in com.android.managedprovisioning.util.LazyStringResource
38 runCatching { context.getString(resId, *formatArgs) } in value()
43 "Unable to resolve LazyStringResource: resId=$resId formatArgs=[$args]", in <lambda>()
63 resId != other.resId -> false in isBlank()
69 var result = resId in hashCode()
77 dest.writeInt(resId) in describeContents()
89 putInt(BUNDLE_RES_ID, resId) in toBundle()
94 "${this::class.simpleName}(resId=$resId, formatArgs=${formatArgs.contentToString()})" in toString()
104 operator fun invoke(@StringRes resId: Int, vararg formatArgs: CharSequence) = in toString()
105 if (resId == 0) Empty else Raw(resId, formatArgs = formatArgs) in toString()
[all …]
/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/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/
DAccessibilityLayerDrawable.java54 public static AccessibilityLayerDrawable 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 AccessibilityLayerDrawableState(context, resId, opacity); in setConstantState()
97 AccessibilityLayerDrawableState(Context context, int resId, int opacity) { in AccessibilityLayerDrawableState() argument
99 mResId = resId; in AccessibilityLayerDrawableState()
DColorSelectorLayout.java86 for (int resId : mRadioButtonResourceIds) { in init()
87 RadioButton radioButton = findViewById(resId); in init()
99 int resId = getResId(mColorList.indexOf(color)); in setCheckedColor() local
100 if (resId != NO_ID && resId == mCheckedId) return; in setCheckedColor()
106 if (resId != NO_ID) { in setCheckedColor()
107 setCheckedStateForView(resId, true); in setCheckedColor()
110 setCheckedId(resId); in setCheckedColor()
130 private void setCheckedId(int resId) { in setCheckedId() argument
131 mCheckedId = resId; in setCheckedId()
/packages/modules/AdServices/adservices/apk/tests/util/java/com/android/adservices/ui/util/
DApkTestUtil.java80 public static UiObject getElement(UiDevice device, int resId) { in getElement() argument
81 UiObject obj = device.findObject(new UiSelector().text(getString(resId))); in getElement()
83 obj = device.findObject(new UiSelector().text(getString(resId).toUpperCase())); in getElement()
94 public static void scrollToAndClick(UiDevice device, int resId) in scrollToAndClick() argument
96 UiObject obj = scrollTo(device, resId); in scrollToAndClick()
110 public static UiObject scrollTo(UiDevice device, int resId) throws UiObjectNotFoundException { in scrollTo() argument
115 UiObject obj = device.findObject(new UiSelector().text(getString(resId))); in scrollTo()
126 public static UiObject getElement(UiDevice device, int resId, int index) { in getElement() argument
127 UiObject obj = device.findObject(new UiSelector().text(getString(resId)).instance(index)); in getElement()
131 new UiSelector().text(getString(resId).toUpperCase()).instance(index)); in getElement()
[all …]
/packages/apps/SettingsIntelligence/src/com/android/settings/intelligence/search/indexing/
DDevicePolicyResourcesUtils.java366 public static boolean isDevicePolicyResource(Context context, int resId) { in isDevicePolicyResource() argument
368 String resName = context.getResources().getResourceEntryName(resId); in isDevicePolicyResource()
376 Context context, TypedArray typedArray, int resId) { in isDevicePolicyResource() argument
379 typedArray.getResourceId(resId, -1)); in isDevicePolicyResource()
386 public static String getDevicePolicyResource(Context context, int resId) { in getDevicePolicyResource() argument
388 String resName = context.getResources().getResourceEntryName(resId); in getDevicePolicyResource()
390 return context.getString(resId); in getDevicePolicyResource()
393 DEVICE_POLICY_RESOURCES.get(resName), () -> context.getString(resId)); in getDevicePolicyResource()
395 return context.getString(resId); in getDevicePolicyResource()
400 Context context, TypedArray typedArray, int resId) { in getDevicePolicyResource() argument
[all …]
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/asset/
DResourceAsset.java48 public ResourceAsset(Resources res, int resId, RequestOptions requestOptions, in ResourceAsset() argument
51 mResId = resId; in ResourceAsset()
60 public ResourceAsset(Resources res, int resId) { in ResourceAsset() argument
61 this(res, resId, RequestOptions.centerCropTransform(), false); in ResourceAsset()
69 public ResourceAsset(Resources res, int resId, boolean isThumbnail) { in ResourceAsset() argument
70 this(res, resId, RequestOptions.centerCropTransform(), isThumbnail); in ResourceAsset()
135 public PackageResourceKey(Resources res, int resId) { in PackageResourceKey() argument
136 mPackageName = res.getResourcePackageName(resId); in PackageResourceKey()
137 mResId = resId; in PackageResourceKey()
/packages/modules/AdServices/adservices/tests/perf/src/android/adservices/test/scenario/adservices/ui/
DUiSettingsMainPage.java106 public void scrollAndClickButton(int resId) throws Exception { in scrollAndClickButton() argument
107 scrollTo(resId); in scrollAndClickButton()
108 UiObject consentPageButton = getElement(resId); in scrollAndClickButton()
136 private UiObject scrollTo(int resId) throws UiObjectNotFoundException { in scrollTo() argument
140 UiObject element = getPageElement(resId); in scrollTo()
145 public UiObject getPageElement(int resId) { in getPageElement() argument
146 return sDevice.findObject(new UiSelector().text(getString(resId))); in getPageElement()
153 public UiObject getElement(int resId) { in getElement() argument
154 UiObject obj = sDevice.findObject(new UiSelector().text(getString(resId))); in getElement()
156 obj = sDevice.findObject(new UiSelector().text(getString(resId).toUpperCase())); in getElement()
/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/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/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/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/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/Contacts/src/com/android/contacts/vcard/
DSelectAccountActivity.java61 final int resId = R.string.import_from_vcf_file; in onCreate() local
84 this, accountList, resId) { in onCreate()
97 showDialog(resId); in onCreate()
102 protected Dialog onCreateDialog(int resId, Bundle bundle) { in onCreateDialog() argument
103 if (resId == R.string.import_from_vcf_file) { in onCreateDialog()
108 return AccountSelectionUtil.getSelectAccountDialog(this, resId, in onCreateDialog()
112 return super.onCreateDialog(resId, bundle); in onCreateDialog()
/packages/apps/Launcher3/src_plugins/com/android/systemui/plugins/
DResourceProvider.java31 int getInt(int resId); in getInt() argument
36 float getFraction(int resId); in getFraction() argument
41 float getDimension(int resId); in getDimension() argument
46 int getColor(int resId); in getColor() argument
51 float getFloat(int resId); in getFloat() argument
/packages/apps/Contacts/src/com/android/contacts/interactions/
DImportDialogFragment.java206 final int resId = adapter.getItem(which).mChoiceResourceId; in onCreateDialog()
207 if (resId == R.string.import_from_sim) { in onCreateDialog()
209 } else if (resId == R.string.import_from_vcf_file) { in onCreateDialog()
210 handleImportRequest(resId, SimCard.NO_SUBSCRIPTION_ID); in onCreateDialog()
213 + getActivity().getResources().getResourceEntryName(resId)); in onCreateDialog()
270 private void handleImportRequest(int resId, int subscriptionId) { in handleImportRequest() argument
285 args.putInt(KEY_RES_ID, resId); in handleImportRequest()
291 AccountSelectionUtil.doImport(getActivity(), resId, in handleImportRequest() local
311 public AdapterEntry(CharSequence label, int resId, SimCard sim) { in AdapterEntry() argument
313 mChoiceResourceId = resId; in AdapterEntry()
[all …]
/packages/apps/Launcher3/tests/shared/com/android/launcher3/testing/shared/
DResourceUtils.java58 final int resId = res.getIdentifier(resName, "bool", "android"); in getBoolByName() local
59 if (resId != 0) { in getBoolByName()
60 val = res.getBoolean(resId); in getBoolByName()
68 int resId = res.getIdentifier(resName, "integer", "android"); in getIntegerByName() local
69 return resId != 0 ? res.getInteger(resId) : defaultValue; in getIntegerByName()
/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()

12345678910>>...12