Searched refs:resources (Results 76 - 100 of 173) sorted by relevance

1234567

/frameworks/support/design/
H A DAndroid.mk17 # Android libraries referenced by this module's resources.
22 # Build the resources using the latest applicable SDK version.
24 # SDK version than the resources. The resources library and the R class that it
145 # in their makefiles to include the resources and their dependencies in their package.
/frameworks/base/core/java/android/animation/
H A DAnimatorInflater.java84 * @param context Application context used to access resources
97 * @param resources The resources
104 public static Animator loadAnimator(Resources resources, Theme theme, int id) argument
106 return loadAnimator(resources, theme, id, 1);
110 public static Animator loadAnimator(Resources resources, Theme theme, int id, argument
112 final ConfigurationBoundResourceCache<Animator> animatorCache = resources
114 Animator animator = animatorCache.getInstance(id, resources, theme);
117 Log.d(TAG, "loaded animator from cache, " + resources.getResourceName(id));
121 Log.d(TAG, "cache miss for animator " + resources
1068 getChangingConfigs(@onNull Resources resources, @AnyRes int id) argument
[all...]
/frameworks/base/core/java/android/app/
H A DSharedElementCallback.java239 Resources resources = context.getResources();
240 view.setBackground(new BitmapDrawable(resources, bitmap));
/frameworks/base/core/java/android/webkit/
H A DWebViewDelegate.java153 public int getPackageId(Resources resources, String packageName) { argument
155 resources.getAssets().getAssignedPackageIdentifiers();
/frameworks/base/graphics/java/android/graphics/drawable/
H A DDrawableInflater.java69 * @param resources the resources from which the drawable should be loaded
76 @NonNull Resources resources, @Nullable Theme theme, @DrawableRes int id) {
77 return resources.getDrawable(id, theme);
81 * Constructs a new drawable inflater using the specified resources and
84 * @param res the resources used to resolve resource identifiers
75 loadDrawable( @onNull Resources resources, @Nullable Theme theme, @DrawableRes int id) argument
/frameworks/support/v14/preference/
H A Dbuild.gradle38 main.resources.srcDir 'src'
/frameworks/support/v17/leanback/
H A DAndroid.mk17 # Build the resources using the latest applicable SDK version.
19 # SDK version than the resources. The resources library and the R class that it
108 # in their makefiles to include the resources and their dependencies in their package.
/frameworks/support/buildSrc/src/main/java/android/support/build/
H A DApiModule.java51 public ApiModule resources(String... resourceFolders) { method in class:ApiModule
/frameworks/support/design/base/android/support/design/widget/
H A DShadowDrawableWrapper.java81 public ShadowDrawableWrapper(Resources resources, Drawable content, float radius, argument
85 mShadowStartColor = resources.getColor(R.color.design_fab_shadow_start_color);
86 mShadowMiddleColor = resources.getColor(R.color.design_fab_shadow_mid_color);
87 mShadowEndColor = resources.getColor(R.color.design_fab_shadow_end_color);
/frameworks/support/v7/cardview/eclair-mr1/android/support/v7/widget/
H A DRoundRectDrawableWithShadow.java93 RoundRectDrawableWithShadow(Resources resources, ColorStateList backgroundColor, float radius, argument
95 mShadowStartColor = resources.getColor(R.color.cardview_shadow_start_color);
96 mShadowEndColor = resources.getColor(R.color.cardview_shadow_end_color);
97 mInsetShadow = resources.getDimensionPixelSize(R.dimen.cardview_compat_inset_shadow);
/frameworks/base/core/java/android/text/
H A DAutoText.java76 private AutoText(Resources resources) { argument
77 mLocale = resources.getConfiguration().locale;
78 init(resources);
84 * @param view to get the resources from
/frameworks/base/services/core/java/com/android/server/policy/
H A DIconUtilities.java61 final Resources resources = context.getResources();
62 DisplayMetrics metrics = mDisplayMetrics = resources.getDisplayMetrics();
66 mIconWidth = mIconHeight = (int) resources.getDimension(android.R.dimen.app_icon_size);
/frameworks/base/tests/CanvasCompare/src/com/android/test/hwuicompare/
H A DErrorCalculator.java47 public ErrorCalculator(Context c, Resources resources) { argument
48 int width = resources.getDimensionPixelSize(R.dimen.layer_width);
49 int height = resources.getDimensionPixelSize(R.dimen.layer_height);
/frameworks/base/tests/VectorDrawableTest/src/com/android/test/dynamic/
H A DVectorDrawablePerformance.java84 public static VectorDrawable create(Resources resources, int rid) { argument
86 final XmlPullParser parser = resources.getXml(rid);
98 drawable.inflate(resources, parser, attrs);
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/
H A DFrameworkActionBar.java238 RenderResources resources = mBridgeContext.getRenderResources();
240 ResourceValue value = resources.findItemInTheme("actionBarSize", true);
243 value = resources.resolveResValue(value);
H A DCustomBar.java28 import com.android.resources.Density;
29 import com.android.resources.LayoutDirection;
30 import com.android.resources.ResourceType;
H A DNavigationBar.java20 import com.android.resources.Density;
/frameworks/base/core/java/android/security/net/config/
H A DXmlConfigSource.java395 Resources resources = mContext.getResources();
396 String packageName = resources.getResourcePackageName(mResourceId);
397 String entryName = resources.getResourceEntryName(mResourceId);
398 int resId = resources.getIdentifier(entryName + "_debug", "xml", packageName);
405 try (XmlResourceParser parser = resources.getXml(resId)) {
/frameworks/base/packages/MtpDocumentsProvider/tests/src/com/android/mtp/
H A DMtpDatabaseTest.java56 private final TestResources resources = new TestResources(); field in class:MtpDatabaseTest
116 final Cursor cursor = mDatabase.queryRoots(resources, new String [] {
477 final Cursor cursor = mDatabase.queryRoots(resources, rootColumns);
523 final Cursor cursor = mDatabase.queryRoots(resources, rootColumns);
626 try (final Cursor cursor = mDatabase.queryRoots(resources, rootColumns)) {
656 final Cursor cursor = mDatabase.queryRoots(resources, rootColumns);
745 final Cursor cursor = mDatabase.queryRoots(resources, columns);
767 mDatabase.queryRoots(resources, strings(Root.COLUMN_ROOT_ID))) {
812 final Cursor cursor = mDatabase.queryRoots(resources, strings(Root.COLUMN_TITLE));
827 final Cursor cursor = mDatabase.queryRoots(resources, string
[all...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
H A DHeadsUpManager.java110 Resources resources = mContext.getResources();
111 mTouchAcceptanceDelay = resources.getInteger(R.integer.touch_acceptance_delay);
113 mDefaultSnoozeLengthMs = resources.getInteger(R.integer.heads_up_default_snooze_length_ms);
115 mMinimumDisplayTime = resources.getInteger(R.integer.heads_up_notification_minimum_time);
116 mHeadsUpNotificationDecay = resources.getInteger(R.integer.heads_up_notification_decay);
137 mStatusBarHeight = resources.getDimensionPixelSize(
/frameworks/support/v7/mediarouter/
H A DAndroid.mk17 # Build the resources using the latest applicable SDK version.
19 # SDK version than the resources.
85 # in their makefiles to include the resources and their dependencies in their package.
/frameworks/base/core/java/com/android/internal/app/
H A DLocalePicker.java101 final Resources resources = context.getResources();
115 final String[] specialLocaleCodes = resources.getStringArray(R.array.special_locale_codes);
116 final String[] specialLocaleNames = resources.getStringArray(R.array.special_locale_names);
/frameworks/base/core/java/com/android/internal/os/
H A DPowerProfile.java214 final Resources resources = context.getResources();
215 XmlResourceParser parser = resources.getXml(id);
297 int value = resources.getInteger(configResIds[i]);
/frameworks/base/services/core/java/com/android/server/
H A DServiceWatcher.java116 Resources resources = context.getResources();
119 boolean enableOverlay = resources.getBoolean(overlaySwitchResId);
123 String[] pkgs = resources.getStringArray(initialPackageNamesResId);
130 String servicePackageName = resources.getString(defaultServicePackageNameResId);
/frameworks/data-binding/compilerCommon/
H A DBindingExpression.g448 | resources # Resource
144 resources

Completed in 775 milliseconds

1234567