/frameworks/data-binding/extensions/library/src/main/java/android/databinding/ |
ViewDataBinding.java | 573 protected int getColorFromResource(int resourceId) { 575 return getRoot().getContext().getColor(resourceId); 577 return getRoot().getResources().getColor(resourceId); 582 protected ColorStateList getColorStateListFromResource(int resourceId) { 584 return getRoot().getContext().getColorStateList(resourceId); 586 return getRoot().getResources().getColorStateList(resourceId); 591 protected Drawable getDrawableFromResource(int resourceId) { 593 return getRoot().getContext().getDrawable(resourceId); 595 return getRoot().getResources().getDrawable(resourceId); [all...] |
/frameworks/support/core-utils/java/android/support/v4/content/res/ |
TypedArrayUtils.java | 83 if (value.resourceId != 0) {
|
/frameworks/support/samples/Support7Demos/src/com/example/android/supportv7/widget/adapter/ |
SimpleStringAdapter.java | 61 mBackground = val.resourceId;
|
/frameworks/support/v7/appcompat/src/android/support/v7/app/ |
AppCompatDialog.java | 166 themeId = outValue.resourceId;
|
AlertDialog.java | 115 return outValue.resourceId; 228 * @param resId the resourceId of the drawable to use as the icon or 0 252 mAlert.setIcon(out.resourceId); 440 P.mIconId = out.resourceId; [all...] |
AppCompatDelegateImplV9.java | 395 if (outValue.resourceId != 0) { 396 themedContext = new ContextThemeWrapper(mContext, outValue.resourceId); 750 if (outValue.resourceId != 0) { 753 actionBarTheme.applyStyle(outValue.resourceId, true); [all...] |
/packages/apps/Email/provider_src/com/android/email/activity/setup/ |
AccountSettingsUtils.java | 190 * @param resourceId ResourceId of the xml file to search. 194 final int resourceId) { 200 final XmlResourceParser xml = context.getResources().getXml(resourceId); 262 * @param resourceId Id of the provider resource to scan 266 Context context, String domain, int resourceId) { 268 XmlResourceParser xml = context.getResources().getXml(resourceId);
|
/cts/tests/deviceadmin/uninstalltest/src/android/devicepolicy/cts/uiautomatertest/ |
DeviceAdminUninstallTest.java | 64 .resourceId("com.android.settings:id/action_button"); 72 .resourceId("android:id/button1");
|
/developers/build/prebuilts/gradle/DragAndDropAcrossApps/DragSource/src/main/java/com/example/android/dragsource/ |
DragSourceFragment.java | 217 private void copyImageResourceToFile(int resourceId, File filePath) { 218 Bitmap image = BitmapFactory.decodeResource(getResources(), resourceId);
|
/developers/samples/android/ui/window/DragAndDropAcrossApps/DragSource/src/main/java/com/example/android/dragsource/ |
DragSourceFragment.java | 217 private void copyImageResourceToFile(int resourceId, File filePath) { 218 Bitmap image = BitmapFactory.decodeResource(getResources(), resourceId);
|
/development/samples/browseable/DragAndDropAcrossApps/DragSource/src/com.example.android/dragsource/ |
DragSourceFragment.java | 217 private void copyImageResourceToFile(int resourceId, File filePath) { 218 Bitmap image = BitmapFactory.decodeResource(getResources(), resourceId);
|
/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/res/ |
MenuLoader.java | 101 public void inflateMenu(Context context, int resourceId, Menu root) { 102 inflateMenu(context, resourceExtractor.getResourceName(resourceId),
|
PreferenceLoader.java | 68 public PreferenceScreen inflatePreferences(Context context, int resourceId) { 69 return inflatePreferences(context, resourceExtractor.getResourceName(resourceId));
|
/frameworks/base/core/java/android/widget/ |
CalendarViewLegacyDelegate.java | 439 public void setSelectedDateVerticalBar(int resourceId) { 440 Drawable drawable = mDelegator.getContext().getDrawable(resourceId); 464 public void setWeekDayTextAppearance(int resourceId) { 465 if (mWeekDayTextAppearanceResId != resourceId) { 466 mWeekDayTextAppearanceResId = resourceId; 477 public void setDateTextAppearance(int resourceId) { 478 if (mDateTextAppearanceResId != resourceId) { 479 mDateTextAppearanceResId = resourceId; [all...] |
/frameworks/base/packages/DocumentsUI/tests/src/com/android/documentsui/bots/ |
DirectoryListBot.java | 150 final UiSelector docList = new UiSelector().resourceId( 152 new UiSelector().resourceId(DIR_LIST_ID));
|
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/ |
StreamingTextView.java | 98 private Bitmap getScaledBitmap(int resourceId, float scaled) { 99 Bitmap bitmap = BitmapFactory.decodeResource(getResources(), resourceId);
|
/frameworks/support/v7/appcompat/src/android/support/v7/widget/ |
AbsActionBarView.java | 65 && tv.resourceId != 0) { 66 mPopupContext = new ContextThemeWrapper(context, tv.resourceId);
|
/packages/apps/Dialer/src/com/android/dialer/calllog/ |
CallTypeIconsView.java | 217 private Drawable getScaledBitmap(Context context, int resourceId) { 218 Bitmap icon = BitmapFactory.decodeResource(context.getResources(), resourceId);
|
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/ |
ProfileOwnerProvisioningActivity.java | 235 public void error(int resourceId, String logText) { 239 .setMessage(resourceId)
|
/packages/services/Car/car-support-lib/src/android/support/car/app/ |
CarActivity.java | 146 public void setContentView(@LayoutRes int resourceId) { 147 mProxy.setContentView(resourceId);
|
/packages/services/Car/car-support-lib/src/android/support/car/app/menu/ |
CarDrawerActivity.java | 96 public void setContentView(@LayoutRes int resourceId) { 99 inflater.inflate(resourceId, parent, true);
|
/frameworks/base/services/core/java/com/android/server/display/ |
ColorFade.java | 191 private String readFile(Context context, int resourceId) { 193 InputStream stream = context.getResources().openRawResource(resourceId); 197 Slog.e(TAG, "Unrecognized shader " + Integer.toString(resourceId)); 202 private int loadShader(Context context, int resourceId, int type) { 203 String source = readFile(context, resourceId);
|
/frameworks/ex/common/java/com/android/common/contacts/ |
BaseEmailAddressAdapter.java | 387 int resourceId = directoryCursor.getInt(DirectoryListQuery.TYPE_RESOURCE_ID); 388 if (packageName != null && resourceId != 0) { 392 partition.directoryType = resources.getString(resourceId); 395 + resourceId + "@" + packageName); 399 + resourceId + "@" + packageName, e);
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
ContactDirectoryManager.java | 128 int resourceId = cursor.getInt(0); 129 if (resourceId != 0) { 132 String resourceName = getResourceNameById(packageName, resourceId); 149 private String getResourceNameById(String packageName, int resourceId) { 152 return resources.getResourceName(resourceId);
|
/frameworks/base/core/java/android/app/ |
AlertDialog.java | 223 return outValue.resourceId; 394 * @param resId the resourceId of the drawable to use as the icon or 0 413 mAlert.setIcon(out.resourceId); 598 P.mIconId = out.resourceId; [all...] |