Home
last modified time | relevance | path

Searched refs:resourceId (Results 1 – 25 of 79) sorted by relevance

1234

/packages/services/Telephony/src/com/android/services/telephony/
DDisconnectCauseUtil.java256 Integer resourceId = null; in getLabelFromDisconnectCause() local
259 resourceId = R.string.callFailed_userBusy; in getLabelFromDisconnectCause()
263 resourceId = R.string.callFailed_NetworkBusy; in getLabelFromDisconnectCause()
267 resourceId = R.string.callFailed_NetworkCongested; in getLabelFromDisconnectCause()
271 resourceId = R.string.callFailed_congestion; in getLabelFromDisconnectCause()
275 resourceId = R.string.callFailed_timedOut; in getLabelFromDisconnectCause()
279 resourceId = R.string.callFailed_server_unreachable; in getLabelFromDisconnectCause()
283 resourceId = R.string.callFailed_number_unreachable; in getLabelFromDisconnectCause()
287 resourceId = R.string.callFailed_invalid_credentials; in getLabelFromDisconnectCause()
291 resourceId = R.string.callFailed_server_error; in getLabelFromDisconnectCause()
[all …]
/packages/apps/Dialer/java/com/android/dialer/widget/
DEmptyContentView.java74 public void setDescription(int resourceId) { in setDescription() argument
75 if (resourceId == NO_LABEL) { in setDescription()
79 descriptionView.setText(resourceId); in setDescription()
84 public void setImage(int resourceId) { in setImage() argument
85 if (resourceId == NO_LABEL) { in setImage()
89 imageView.setImageResource(resourceId); in setImage()
94 public void setActionLabel(@StringRes int resourceId) { in setActionLabel() argument
95 actionLabel = resourceId; in setActionLabel()
96 if (resourceId == NO_LABEL) { in setActionLabel()
100 actionView.setText(resourceId); in setActionLabel()
/packages/apps/Camera2/src/com/android/camera/
DSoundPlayer.java56 public void loadSound(int resourceId) { in loadSound() argument
57 int soundId = mSoundPool.load(mAppContext, resourceId, 1/* priority */); in loadSound()
58 mResourceToSoundId.put(resourceId, soundId); in loadSound()
65 public void play(int resourceId, float volume) { in play() argument
66 Integer soundId = mResourceToSoundId.get(resourceId); in play()
76 public void unloadSound(int resourceId) { in unloadSound() argument
77 Integer soundId = mResourceToSoundId.get(resourceId); in unloadSound()
/packages/apps/DocumentsUI/src/com/android/documentsui/ui/
DMessageBuilder.java85 int resourceId; in generateListMessage() local
89 resourceId = R.plurals.copy_converted_warning_content; in generateListMessage()
95 resourceId = R.plurals.copy_failure_alert_content; in generateListMessage()
98 resourceId = R.plurals.compress_failure_alert_content; in generateListMessage()
101 resourceId = R.plurals.extract_failure_alert_content; in generateListMessage()
104 resourceId = R.plurals.delete_failure_alert_content; in generateListMessage()
107 resourceId = R.plurals.move_failure_alert_content; in generateListMessage()
132 return mContext.getResources().getQuantityString(resourceId, totalItems, list.toString()); in generateListMessage()
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DPhotoStoreTest.java127 public void runStorageTestForResource(int resourceId, int expectedWidth, in runStorageTestForResource() argument
129 byte[] photo = loadPhotoFromResource(resourceId, PhotoSize.ORIGINAL); in runStorageTestForResource()
137 byte[] expectedStoredVersion = loadPhotoFromResource(resourceId, PhotoSize.DISPLAY_PHOTO); in runStorageTestForResource()
157 public void runStorageTestForResourceWithCrop(int resourceId, int expectedWidth, in runStorageTestForResourceWithCrop() argument
159 byte[] photo = loadPhotoFromResource(resourceId, PhotoSize.ORIGINAL); in runStorageTestForResourceWithCrop()
203 for (int resourceId : resourceIds) { in testCleanup()
205 new PhotoProcessor(loadPhotoFromResource(resourceId, PhotoSize.ORIGINAL), in testCleanup()
207 resourceIdToPhotoMap.put(resourceId, photoFileId); in testCleanup()
DPhotoLoadingTestCase.java88 protected byte[] loadPhotoFromResource(int resourceId, PhotoSize size) { in loadPhotoFromResource() argument
89 PhotoEntry entry = photoResourceCache.get(resourceId); in loadPhotoFromResource()
92 InputStream is = resources.openRawResource(resourceId); in loadPhotoFromResource()
95 photoResourceCache.put(resourceId, entry); in loadPhotoFromResource()
/packages/apps/Settings/tests/unit/src/com/android/settings/wifi/
DWifiSettingsUiTest.java118 private int resourceId(String type, String name) { in resourceId() method in WifiSettingsUiTest
124 return mContext.getResources().getString(resourceId(STRING, name)); in resourceString()
194 onView(withText(resourceId(STRING, WIFI_CONFIGURE_SETTINGS_PREFERENCE_TITLE))).check( in shouldShowWifiPreferences()
205 onView(withText(resourceId(STRING, WIFI_SAVED_ACCESS_POINTS_LABEL))).check( in noSavedNetworks_wifiDisabled_shouldNotShowSavedNetworksButton()
216 onView(allOf(withText(resourceId(STRING, WIFI_SAVED_ACCESS_POINTS_LABEL)), in savedNetworksExist_shouldShowSavedNetworksButton()
329 onView(withText(resourceId(STRING, WIFI_PASSWORD))).check(matches(isDisplayed())); in wrongPasswordSavedNetwork()
330 onView(withText(resourceId(STRING, WIFI_SHOW_PASSWORD))).check(matches(isDisplayed())); in wrongPasswordSavedNetwork()
331 onView(withId(resourceId(ID, PASSWORD_LAYOUT))).check(matches(isDisplayed())); in wrongPasswordSavedNetwork()
332 onView(withId(resourceId(ID, PASSWORD))).check(matches(isDisplayed())); in wrongPasswordSavedNetwork()
DSavedNetworkSettingsTest.java52 private int resourceId(String type, String name) { in resourceId() method in SavedNetworkSettingsTest
72 onView(withText(resourceId(STRING, WIFI_ADD_NETWORK))).check(matches(isDisplayed())) in launchSavedNetworkSettings_shouldHaveAddNetworkField()
74 onView(withText(resourceId(STRING, WIFI_NETWORK_LABEL))).check(matches(isDisplayed())); in launchSavedNetworkSettings_shouldHaveAddNetworkField()
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/archives/
DResourcesProvider.java130 final Integer resourceId = RESOURCES.get(docId); in openDocument() local
131 if (resourceId == null) { in openDocument()
134 return mTestUtils.getSeekableDescriptor(resourceId); in openDocument()
138 final Integer resourceId = RESOURCES.get(documentId); in includeDocument() local
139 if (resourceId == null) { in includeDocument()
145 fd = getContext().getResources().openRawResourceFd(resourceId); in includeDocument()
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/bots/
DBots.java99 protected UiObject findObject(String resourceId) { in findObject() argument
100 final UiSelector object = new UiSelector().resourceId(resourceId); in findObject()
106 .resourceId(parentResourceId) in findObject()
107 .childSelector(new UiSelector().resourceId(childResourceId)); in findObject()
DSidebarBot.java59 final UiSelector rootsList = new UiSelector().resourceId( in findRoot()
61 new UiSelector().resourceId(mRootListId)); in findRoot()
78 final UiSelector rootsList = new UiSelector().resourceId( in openDrawer()
80 new UiSelector().resourceId(mRootListId)); in openDrawer()
85 final UiSelector hamburger = new UiSelector().resourceId( in openDrawer()
DDirectoryListBot.java266 final UiSelector docList = new UiSelector().resourceId( in findDocument()
268 new UiSelector().resourceId(mDirListId)); in findDocument()
302 final UiSelector docList = new UiSelector().resourceId( in assertFirstDocumentHasFocus()
304 new UiSelector().resourceId(mDirListId)); in assertFirstDocumentHasFocus()
/packages/apps/ThemePicker/src/com/android/customization/model/
DResourcesApkProvider.java47 int resourceId = mStubApkResources.getIdentifier(String.format("%s%s", prefix, itemName), in getItemStringFromStub() local
49 return mStubApkResources.getString(resourceId); in getItemStringFromStub()
53 int resourceId = mStubApkResources.getIdentifier(String.format("%s%s", prefix, itemName), in getItemDrawableFromStub() local
55 return mStubApkResources.getDrawable(resourceId, null); in getItemDrawableFromStub()
/packages/apps/Dialer/java/com/android/incallui/spam/
DSpamAlternativeExperimentUtil.java41 int resourceId = in getResourceIdByName() local
45 if (resourceId == 0) { in getResourceIdByName()
52 return resourceId; in getResourceIdByName()
/packages/apps/PermissionController/src/com/android/packageinstaller/role/model/
DVisibilityMixin.java41 int resourceId = resources.getIdentifier(resourceName, "bool", "android"); in isVisible() local
42 if (resourceId == 0) { in isVisible()
47 return resources.getBoolean(resourceId); in isVisible()
DExclusiveDefaultHolderMixin.java59 int resourceId = resources.getIdentifier(resourceName, "string", "android"); in getDefaultHolder() local
60 if (resourceId == 0) { in getDefaultHolder()
66 packageName = resources.getString(resourceId); in getDefaultHolder()
/packages/apps/Settings/tests/unit/src/com/android/settings/password/
DChooseLockGenericTest.java161 .resourceId(mSettingPackage + ":id/encrypt_dont_require_password")); in setPassword()
169 .resourceId(mSettingPackage + ":id/password_entry")); in setPassword()
178 .resourceId(mSettingPackage + ":id/redaction_done_button")); in setPassword()
202 new UiSelector().resourceId(mSettingPackage + ":id/password_entry")); in clearPassword()
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/
DPackageIconLoader.java103 int resourceId = Integer.parseInt(drawableId); in getIcon() local
105 Drawable icon = mPackageContext.getResources().getDrawable(resourceId); in getIcon()
130 int resourceId = Integer.parseInt(drawableId); in getIconUri() local
131 return Util.getResourceUri(mPackageContext, resourceId); in getIconUri()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/
DDictionaryInfoUtils.java382 int resourceId = getMainDictionaryResourceIdIfAvailableForLocale(res, locale);
383 if (0 != resourceId) {
384 return resourceId;
548 final int resourceId =
551 if (0 == resourceId) {
555 BinaryDictionaryGetter.loadFallbackResource(context, resourceId);
/packages/apps/Messaging/src/com/android/messaging/datamodel/
DBitmapPool.java186 public Bitmap decodeSampledBitmapFromResource(final int resourceId, in decodeSampledBitmapFromResource() argument
196 b = BitmapFactory.decodeResource(resources, resourceId, optionsTmp); in decodeSampledBitmapFromResource()
201 b = BitmapFactory.decodeResource(resources, resourceId, optionsTmp); in decodeSampledBitmapFromResource()
210 LogUtil.w(LogUtil.BUGLE_TAG, "Oom decoding resource " + resourceId); in decodeSampledBitmapFromResource()
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
DContactDirectoryManager.java139 int resourceId = cursor.getInt(0); in areTypeResourceIdsValid() local
140 if (resourceId != 0) { in areTypeResourceIdsValid()
143 String resourceName = getResourceNameById(packageName, resourceId); in areTypeResourceIdsValid()
147 + " resourceId=" + resourceId in areTypeResourceIdsValid()
167 private String getResourceNameById(String packageName, int resourceId) { in getResourceNameById() argument
170 return resources.getResourceName(resourceId); in getResourceNameById()
/packages/apps/Car/libs/car-apps-common/src/com/android/car/apps/common/
DUriUtils.java66 public static String getAndroidResourceUri(Context context, int resourceId) { in getAndroidResourceUri() argument
67 return getAndroidResourceUri(context.getResources(), resourceId); in getAndroidResourceUri()
73 public static String getAndroidResourceUri(Resources resources, int resourceId) { in getAndroidResourceUri() argument
75 + SCHEME_DELIMITER + resources.getResourceName(resourceId) in getAndroidResourceUri()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
DEmojiAltPhysicalKeyDetector.java186 @Nonnull final Resources resources, final int resourceId) { in parseHotKeys() argument
188 final String name = resources.getResourceEntryName(resourceId); in parseHotKeys()
189 final String[] values = resources.getStringArray(resourceId); in parseHotKeys()
/packages/apps/Launcher3/src/com/android/launcher3/util/
DMainThreadInitializedObject.java69 Class<T> clazz, int resourceId) { in forOverride() argument
70 return new MainThreadInitializedObject<>(c -> Overrides.getObject(clazz, c, resourceId)); in forOverride()
/packages/apps/Launcher3/src/com/android/launcher3/graphics/
DTintedDrawableSpan.java33 public TintedDrawableSpan(Context context, int resourceId) { in TintedDrawableSpan() argument
35 mDrawable = context.getDrawable(resourceId).mutate(); in TintedDrawableSpan()

1234