Home
last modified time | relevance | path

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

123

/packages/services/Telephony/src/com/android/services/telephony/
DDisconnectCauseUtil.java156 Integer resourceId = null; in toTelecomDisconnectCauseLabel() local
159 resourceId = R.string.callFailed_userBusy; in toTelecomDisconnectCauseLabel()
163 resourceId = R.string.callFailed_congestion; in toTelecomDisconnectCauseLabel()
167 resourceId = R.string.callFailed_timedOut; in toTelecomDisconnectCauseLabel()
171 resourceId = R.string.callFailed_server_unreachable; in toTelecomDisconnectCauseLabel()
175 resourceId = R.string.callFailed_number_unreachable; in toTelecomDisconnectCauseLabel()
179 resourceId = R.string.callFailed_invalid_credentials; in toTelecomDisconnectCauseLabel()
183 resourceId = R.string.callFailed_server_error; in toTelecomDisconnectCauseLabel()
187 resourceId = R.string.callFailed_out_of_network; in toTelecomDisconnectCauseLabel()
192 resourceId = R.string.callFailed_noSignal; in toTelecomDisconnectCauseLabel()
[all …]
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/connectivity/
DWifiNetworksBrowseInfo.java207 int resourceId = 0; in getCurrentNetworkIconResourceId() local
214 resourceId = R.drawable.ic_settings_wifi_active_1; in getCurrentNetworkIconResourceId()
217 resourceId = R.drawable.ic_settings_wifi_active_2; in getCurrentNetworkIconResourceId()
220 resourceId = R.drawable.ic_settings_wifi_active_3; in getCurrentNetworkIconResourceId()
223 resourceId = R.drawable.ic_settings_wifi_active_4; in getCurrentNetworkIconResourceId()
230 resourceId = R.drawable.ic_settings_wifi_secure_active_1; in getCurrentNetworkIconResourceId()
233 resourceId = R.drawable.ic_settings_wifi_secure_active_2; in getCurrentNetworkIconResourceId()
236 resourceId = R.drawable.ic_settings_wifi_secure_active_3; in getCurrentNetworkIconResourceId()
239 resourceId = R.drawable.ic_settings_wifi_secure_active_4; in getCurrentNetworkIconResourceId()
244 return resourceId; in getCurrentNetworkIconResourceId()
[all …]
DNetworkActivity.java654 int resourceId = R.drawable.ic_settings_wifi_not_connected; in getNetworkIconRes() local
659 resourceId = R.drawable.ic_settings_wifi_1; in getNetworkIconRes()
662 resourceId = R.drawable.ic_settings_wifi_2; in getNetworkIconRes()
665 resourceId = R.drawable.ic_settings_wifi_3; in getNetworkIconRes()
668 resourceId = R.drawable.ic_settings_wifi_4; in getNetworkIconRes()
674 resourceId = R.drawable.ic_settings_wifi_secure_1; in getNetworkIconRes()
677 resourceId = R.drawable.ic_settings_wifi_secure_2; in getNetworkIconRes()
680 resourceId = R.drawable.ic_settings_wifi_secure_3; in getNetworkIconRes()
683 resourceId = R.drawable.ic_settings_wifi_secure_4; in getNetworkIconRes()
688 return resourceId; in getNetworkIconRes()
/packages/apps/InCallUI/src/com/android/incallui/widget/multiwaveview/
DGlowPadView.java239 setHandleDrawable(handle != null ? handle.resourceId : R.drawable.ic_incall_audio_handle); in GlowPadView()
253 internalSetTargetResources(outValue.resourceId); in GlowPadView()
261 final int resourceId = outValue.resourceId; in GlowPadView() local
262 if (resourceId == 0) { in GlowPadView()
265 setTargetDescriptionsResourceId(resourceId); in GlowPadView()
270 final int resourceId = outValue.resourceId; in GlowPadView() local
271 if (resourceId == 0) { in GlowPadView()
274 setDirectionDescriptionsResourceId(resourceId); in GlowPadView()
297 return tv == null ? 0 : tv.resourceId; in getResourceId()
601 private ArrayList<TargetDrawable> loadDrawableArray(int resourceId) { in loadDrawableArray() argument
[all …]
/packages/apps/Dialer/src/com/android/dialer/widget/
DEmptyContentView.java72 public void setDescription(int resourceId) { in setDescription() argument
73 if (resourceId == NO_LABEL) { in setDescription()
77 mDescriptionView.setText(resourceId); in setDescription()
82 public void setImage(int resourceId) { in setImage() argument
83 mImageView.setImageResource(resourceId); in setImage()
84 if (resourceId == NO_LABEL) { in setImage()
91 public void setActionLabel(int resourceId) { in setActionLabel() argument
92 if (resourceId == NO_LABEL) { in setActionLabel()
96 mActionView.setText(resourceId); in setActionLabel()
/packages/apps/Camera2/src/com/android/camera/
DSoundPlayer.java49 public void loadSound(int resourceId) { in loadSound() argument
50 int soundId = mSoundPool.load(mAppContext, resourceId, 1/* priority */); in loadSound()
51 mResourceToSoundId.put(resourceId, soundId); in loadSound()
58 public void play(int resourceId, float volume) { in play() argument
59 Integer soundId = mResourceToSoundId.get(resourceId); in play()
69 public void unloadSound(int resourceId) { in unloadSound() argument
70 Integer soundId = mResourceToSoundId.get(resourceId); in unloadSound()
/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.java89 protected byte[] loadPhotoFromResource(int resourceId, PhotoSize size) { in loadPhotoFromResource() argument
90 PhotoEntry entry = photoResourceCache.get(resourceId); in loadPhotoFromResource()
93 InputStream is = resources.openRawResource(resourceId); in loadPhotoFromResource()
96 photoResourceCache.put(resourceId, entry); in loadPhotoFromResource()
/packages/apps/Contacts/src/com/android/contacts/editor/
DCompactPhotoEditorView.java95 final int resourceId = getResources().getIdentifier( in CompactPhotoEditorView() local
97 mStatusBarHeight = resourceId > 0 ? getResources().getDimensionPixelSize(resourceId) : 0; in CompactPhotoEditorView()
100 private float getTypedFloat(int resourceId) { in getTypedFloat() argument
102 getResources().getValue(resourceId, typedValue, /* resolveRefs =*/ true); in getTypedFloat()
/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/TvSettings/Settings/src/com/android/tv/settings/
DBrowseInfo.java483 private String getStringFromTypedArray(TypedArray sa, int resourceId) { in getStringFromTypedArray() argument
485 TypedValue tv = sa.peekValue(resourceId); in getStringFromTypedArray()
487 if (tv.resourceId != 0) { in getStringFromTypedArray()
488 value = mContext.getString(tv.resourceId); in getStringFromTypedArray()
629 int resourceId = AccessoryUtils.getImageIdForDevice(device); in addAccessories() local
631 device.getName(), resourceId); in addAccessories()
638 .description(desc).imageResourceId(mContext, resourceId) in addAccessories()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/util/
DUriUtils.java47 public static String getAndroidResourceUri(Context context, int resourceId) { in getAndroidResourceUri() argument
48 return getAndroidResourceUri(context.getResources(), resourceId); in getAndroidResourceUri()
54 public static String getAndroidResourceUri(Resources resources, int resourceId) { in getAndroidResourceUri() argument
56 + SCHEME_DELIMITER + resources.getResourceName(resourceId) in getAndroidResourceUri()
/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/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.java141 int resourceId = cursor.getInt(0); in areTypeResourceIdsValid() local
142 if (resourceId != 0) { in areTypeResourceIdsValid()
145 String resourceName = getResourceNameById(packageName, resourceId); in areTypeResourceIdsValid()
162 private String getResourceNameById(String packageName, int resourceId) { in getResourceNameById() argument
165 return resources.getResourceName(resourceId); in getResourceNameById()
/packages/apps/Settings/src/com/android/settings/
DSettingsActivity.java1104 if (tv.resourceId != 0) { in loadCategoriesFromResource()
1105 category.titleRes = tv.resourceId; in loadCategoriesFromResource()
1116 if (tv.resourceId != 0) { in loadCategoriesFromResource()
1117 category.key = context.getString(tv.resourceId); in loadCategoriesFromResource()
1143 if (tv.resourceId != 0) { in loadCategoriesFromResource()
1144 tile.titleRes = tv.resourceId; in loadCategoriesFromResource()
1152 if (tv.resourceId != 0) { in loadCategoriesFromResource()
1153 tile.summaryRes = tv.resourceId; in loadCategoriesFromResource()
DCreateShortcut.java68 int resourceId = getDrawableResource(topLevelId); in onListItemClick() local
69 intent.putExtra(Intent.EXTRA_SHORTCUT_ICON, createIcon(resourceId)); in onListItemClick()
/packages/apps/Email/provider_src/com/android/email/activity/setup/
DAccountSettingsUtils.java194 final int resourceId) { in findOAuthProvider() argument
200 final XmlResourceParser xml = context.getResources().getXml(resourceId); in findOAuthProvider()
266 Context context, String domain, int resourceId) { in findProviderForDomain() argument
268 XmlResourceParser xml = context.getResources().getXml(resourceId); in findProviderForDomain()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
DEmojiAltPhysicalKeyDetector.java58 final int resourceId) { in parseSwitchDefinition() argument
60 final String name = resources.getResourceEntryName(resourceId); in parseSwitchDefinition()
61 final String[] values = resources.getStringArray(resourceId); in parseSwitchDefinition()
/packages/apps/Gallery2/src/com/android/gallery3d/data/
DActionImage.java36 public ActionImage(Path path, GalleryApp application, int resourceId) { in ActionImage() argument
39 mResourceId = resourceId; in ActionImage()
/packages/apps/Email/provider_src/com/android/email/mail/
DSender.java70 private static Sender findSender(Context context, int resourceId, Account account) in findSender() argument
74 XmlResourceParser xml = context.getResources().getXml(resourceId); in findSender()
/packages/apps/Messaging/src/com/android/messaging/datamodel/data/
DPeopleOptionsItemData.java113 final int resourceId = otherParticipant.isBlocked() ? in bind() local
115 mTitle = mContext.getString(resourceId, otherParticipant.getDisplayDestination()); in bind()
/packages/apps/ContactsCommon/src/com/android/contacts/common/util/
DBitmapUtil.java101 android.content.res.Resources resources, int resourceId, float angle) { in getRotatedDrawable() argument
104 Bitmap original = BitmapFactory.decodeResource(resources, resourceId); in getRotatedDrawable()
/packages/apps/Launcher3/src/com/android/launcher3/allapps/
DAllAppsBackgroundDrawable.java43 public TransformedImageDrawable(Resources res, int resourceId, float xPct, float yPct, in TransformedImageDrawable() argument
45 mImage = res.getDrawable(resourceId); in TransformedImageDrawable()
/packages/apps/Settings/src/com/android/settings/search/
DIndex.java1113 if (tv.resourceId != 0) { in getData()
1114 data = context.getText(tv.resourceId); in getData()
1128 if (tv.resourceId != 0) { in getDataEntries()
1129 data = context.getResources().getStringArray(tv.resourceId); in getDataEntries()
1149 return tv.resourceId; in getResId()

123