Searched refs:resourceId (Results 1 - 25 of 69) sorted by relevance

123

/packages/services/Telephony/src/com/android/services/telephony/
H A DDisconnectCauseUtil.java168 Integer resourceId = null;
171 resourceId = R.string.callFailed_userBusy;
175 resourceId = R.string.callFailed_congestion;
179 resourceId = R.string.callFailed_timedOut;
183 resourceId = R.string.callFailed_server_unreachable;
187 resourceId = R.string.callFailed_number_unreachable;
191 resourceId = R.string.callFailed_invalid_credentials;
195 resourceId = R.string.callFailed_server_error;
199 resourceId = R.string.callFailed_out_of_network;
204 resourceId
[all...]
/packages/apps/Camera2/src/com/android/camera/
H A DSoundPlayer.java49 public void loadSound(int resourceId) { argument
50 int soundId = mSoundPool.load(mAppContext, resourceId, 1/* priority */);
51 mResourceToSoundId.put(resourceId, soundId);
58 public void play(int resourceId, float volume) { argument
59 Integer soundId = mResourceToSoundId.get(resourceId);
69 public void unloadSound(int resourceId) { argument
70 Integer soundId = mResourceToSoundId.get(resourceId);
/packages/apps/Dialer/java/com/android/dialer/app/widget/
H A DEmptyContentView.java67 public void setDescription(int resourceId) { argument
68 if (resourceId == NO_LABEL) {
72 mDescriptionView.setText(resourceId);
77 public void setImage(int resourceId) { argument
78 if (resourceId == NO_LABEL) {
82 mImageView.setImageResource(resourceId);
87 public void setActionLabel(int resourceId) { argument
88 if (resourceId == NO_LABEL) {
92 mActionView.setText(resourceId);
/packages/apps/DocumentsUI/src/com/android/documentsui/ui/
H A DMessageBuilder.java85 int resourceId;
89 resourceId = R.plurals.copy_converted_warning_content;
95 resourceId = R.plurals.copy_failure_alert_content;
98 resourceId = R.plurals.compress_failure_alert_content;
101 resourceId = R.plurals.extract_failure_alert_content;
104 resourceId = R.plurals.delete_failure_alert_content;
107 resourceId = R.plurals.move_failure_alert_content;
132 return mContext.getResources().getQuantityString(resourceId, totalItems, list.toString());
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/bots/
H A DBots.java89 protected UiObject findObject(String resourceId) { argument
90 final UiSelector object = new UiSelector().resourceId(resourceId);
96 .resourceId(parentResourceId)
97 .childSelector(new UiSelector().resourceId(childResourceId));
H A DSidebarBot.java57 final UiSelector rootsList = new UiSelector().resourceId(
59 new UiSelector().resourceId(ROOTS_LIST_ID));
76 final UiSelector rootsList = new UiSelector().resourceId(
78 new UiSelector().resourceId(ROOTS_LIST_ID));
83 final UiSelector hamburger = new UiSelector().resourceId(
/packages/apps/Contacts/src/com/android/contacts/util/
H A DThemeUtils.java32 return outValue.resourceId;
H A DBitmapUtil.java96 * @param resourceId The resource ID of the drawable to rotate.
101 android.content.res.Resources resources, int resourceId, float angle) {
104 Bitmap original = BitmapFactory.decodeResource(resources, resourceId);
100 getRotatedDrawable( android.content.res.Resources resources, int resourceId, float angle) argument
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
H A DPhotoLoadingTestCase.java89 protected byte[] loadPhotoFromResource(int resourceId, PhotoSize size) { argument
90 PhotoEntry entry = photoResourceCache.get(resourceId);
93 InputStream is = resources.openRawResource(resourceId);
96 photoResourceCache.put(resourceId, entry);
H A DPhotoStoreTest.java125 * @param resourceId The resource ID of the photo file to test.
127 public void runStorageTestForResource(int resourceId, int expectedWidth, argument
129 byte[] photo = loadPhotoFromResource(resourceId, PhotoSize.ORIGINAL);
137 byte[] expectedStoredVersion = loadPhotoFromResource(resourceId, PhotoSize.DISPLAY_PHOTO);
157 public void runStorageTestForResourceWithCrop(int resourceId, int expectedWidth, argument
159 byte[] photo = loadPhotoFromResource(resourceId, PhotoSize.ORIGINAL);
203 for (int resourceId : resourceIds) {
205 new PhotoProcessor(loadPhotoFromResource(resourceId, PhotoSize.ORIGINAL),
207 resourceIdToPhotoMap.put(resourceId, photoFileId);
/packages/apps/Launcher3/src/com/android/launcher3/graphics/
H A DTintedDrawableSpan.java33 public TintedDrawableSpan(Context context, int resourceId) { argument
35 mDrawable = context.getDrawable(resourceId);
/packages/apps/Gallery2/src/com/android/gallery3d/data/
H A DActionImage.java36 public ActionImage(Path path, GalleryApp application, int resourceId) { argument
39 mResourceId = resourceId;
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/archives/
H A DResourcesProvider.java124 final Integer resourceId = RESOURCES.get(docId);
125 if (resourceId == null) {
128 return mTestUtils.getSeekableDescriptor(resourceId);
132 final Integer resourceId = RESOURCES.get(documentId);
133 if (resourceId == null) {
139 fd = getContext().getResources().openRawResourceFd(resourceId);
/packages/apps/Email/provider_src/com/android/email/mail/
H A DSender.java70 private static Sender findSender(Context context, int resourceId, Account account) argument
74 XmlResourceParser xml = context.getResources().getXml(resourceId);
/packages/apps/Messaging/src/com/android/messaging/datamodel/data/
H A DPeopleOptionsItemData.java113 final int resourceId = otherParticipant.isBlocked() ?
115 mTitle = mContext.getString(resourceId, otherParticipant.getDisplayDestination());
/packages/apps/Car/libs/car-apps-common/src/com/android/car/apps/common/
H A DUriUtils.java55 public static String getAndroidResourceUri(Context context, int resourceId) { argument
56 return getAndroidResourceUri(context.getResources(), resourceId);
62 public static String getAndroidResourceUri(Resources resources, int resourceId) { argument
64 + SCHEME_DELIMITER + resources.getResourceName(resourceId)
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
H A DScrollBarView.java47 context, outValue.resourceId);
/packages/apps/Messaging/src/com/android/messaging/datamodel/
H A DBitmapPool.java178 * @param resourceId Resource id to load.
186 public Bitmap decodeSampledBitmapFromResource(final int resourceId, argument
196 b = BitmapFactory.decodeResource(resources, resourceId, optionsTmp);
201 b = BitmapFactory.decodeResource(resources, resourceId, optionsTmp);
210 LogUtil.w(LogUtil.BUGLE_TAG, "Oom decoding resource " + resourceId);
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/
H A DPackageIconLoader.java103 int resourceId = Integer.parseInt(drawableId);
105 Drawable icon = mPackageContext.getResources().getDrawable(resourceId);
130 int resourceId = Integer.parseInt(drawableId);
131 return Util.getResourceUri(mPackageContext, resourceId);
/packages/apps/Settings/src/com/android/settings/notification/
H A DEmptyTextSettings.java41 mEmpty.setTextAppearance(value.resourceId);
/packages/apps/Contacts/src/com/android/contacts/editor/
H A DPhotoEditorView.java79 private float getTypedFloat(int resourceId) { argument
81 getResources().getValue(resourceId, typedValue, /* resolveRefs =*/ true);
/packages/apps/Dialer/java/com/android/contacts/common/util/
H A DBitmapUtil.java97 * @param resourceId The resource ID of the drawable to rotate.
102 android.content.res.Resources resources, int resourceId, float angle) {
105 Bitmap original = BitmapFactory.decodeResource(resources, resourceId);
101 getRotatedDrawable( android.content.res.Resources resources, int resourceId, float angle) argument
/packages/apps/Launcher3/src/com/android/launcher3/allapps/
H A DAllAppsBackgroundDrawable.java51 public TransformedImageDrawable(Resources res, int resourceId, float xPct, float yPct, argument
53 mImage = res.getDrawable(resourceId);
/packages/apps/Settings/src/com/android/settings/search2/
H A DXmlParserUtils.java103 if (tv.resourceId != 0) {
104 data = context.getResources().getStringArray(tv.resourceId);
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/audio/
H A DAudioPlayer.java92 public AudioPlayer(Context context, int resourceId, AudioAttributes attrib) { argument
94 mResourceId = resourceId;

Completed in 691 milliseconds

123