/frameworks/base/core/java/android/content/pm/ |
H A D | LauncherActivityInfo.java | 47 * @param context The context for fetching resources. 106 // Get the preferred density icon from the app's resources 109 final Resources resources 111 icon = resources.getDrawableForDensity(iconRes, density);
|
/frameworks/base/core/tests/coretests/src/android/print/ |
H A D | BasePrintTest.java | 142 Resources resources = getInstrumentation().getTargetContext().getResources(); 143 Configuration oldConfiguration = resources.getConfiguration(); 146 DisplayMetrics displayMetrics = resources.getDisplayMetrics(); 149 resources.updateConfiguration(newConfiguration, displayMetrics); 172 Resources resources = getInstrumentation().getTargetContext().getResources(); 173 DisplayMetrics displayMetrics = resources.getDisplayMetrics(); 174 Configuration newConfiguration = new Configuration(resources.getConfiguration()); 177 resources.updateConfiguration(newConfiguration, displayMetrics);
|
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/ |
H A D | IconLoader.java | 19 import com.android.resources.Density; 20 import com.android.resources.LayoutDirection; 103 // Currently we don't have any LTR only resources and hence the check is skipped. If they
|
H A D | AppCompatActionBar.java | 28 import com.android.resources.ResourceType; 113 RenderResources resources = context.getRenderResources(); 114 ResourceValue actionBarTheme = resources.findItemInTheme("actionBarTheme", false); 117 actionBarTheme = resources.resolveResValue(actionBarTheme);
|
/frameworks/opt/setupwizard/library/ |
H A D | rules.gradle | 20 resources.srcDirs = ['main/src']
|
/frameworks/support/buildSrc/ |
H A D | apiModule.gradle | 42 main.resources.srcDirs += "../$it"
|
/frameworks/base/tests/CanvasCompare/src/com/android/test/hwuicompare/ |
H A D | ResourceModifiers.java | 60 public static void init(Resources resources) { argument 61 sInstance = new ResourceModifiers(resources); 64 public ResourceModifiers(Resources resources) { argument 65 mBitmap = BitmapFactory.decodeResource(resources, R.drawable.sunset1); 69 mDrawWidth = resources.getDimensionPixelSize(R.dimen.layer_width); 70 mDrawHeight = resources.getDimensionPixelSize(R.dimen.layer_height);
|
/frameworks/support/v17/preference-leanback/ |
H A D | Android.mk | 17 # Android libraries referenced by this module's resources. 25 # Build the resources using the latest applicable SDK version. 27 # SDK version than the resources. The resources library and the R class that it 70 # in their makefiles to include the resources in their package.
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/ |
H A D | BatteryInfo.java | 137 final Resources resources = context.getResources(); 144 info.remainingLabel = resources.getString( 148 info.mChargeLabelString = resources.getString( 159 resources, batteryBroadcast, shortString); 182 info.remainingLabel = resources.getString(R.string.power_remaining_duration_only, 184 info.mChargeLabelString = resources.getString( 188 info.mChargeLabelString = resources.getString(
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/ |
H A D | FakeShadowDrawable.java | 84 public FakeShadowDrawable(Resources resources, RecentsConfiguration config) { argument 85 mShadowStartColor = resources.getColor(R.color.fake_shadow_start_color); 86 mShadowEndColor = resources.getColor(R.color.fake_shadow_end_color); 87 mInsetShadow = resources.getDimension(R.dimen.fake_shadow_inset); 88 setShadowSize(resources.getDimensionPixelSize(R.dimen.fake_shadow_size), 89 resources.getDimensionPixelSize(R.dimen.fake_shadow_size)); 93 mCornerRadius = resources.getDimensionPixelSize(
|
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/ |
H A D | RenderAction.java | 27 import com.android.resources.Density; 28 import com.android.resources.ResourceType; 29 import com.android.resources.ScreenOrientation; 30 import com.android.resources.ScreenRound; 31 import com.android.resources.ScreenSize; 121 RenderResources resources = mParams.getResources(); 124 mContext = new BridgeContext(mParams.getProjectKey(), metrics, resources,
|
/frameworks/base/tools/layoutlib/bridge/tests/src/com/android/layoutlib/bridge/intensive/ |
H A D | Main.java | 25 import com.android.ide.common.resources.FrameworkResources; 26 import com.android.ide.common.resources.ResourceItem; 27 import com.android.ide.common.resources.ResourceRepository; 28 import com.android.ide.common.resources.ResourceResolver; 29 import com.android.ide.common.resources.configuration.FolderConfiguration; 39 import com.android.resources.Density; 40 import com.android.resources.Navigation; 41 import com.android.resources.ResourceType; 75 * This is a set of tests that loads all the framework resources and a project checked in this 76 * test's resources [all...] |
/frameworks/support/v7/appcompat/src/android/support/v7/widget/ |
H A D | ResourcesWrapper.java | 45 public ResourcesWrapper(Resources resources) { argument 46 super(resources.getAssets(), resources.getDisplayMetrics(), resources.getConfiguration()); 47 mResources = resources;
|
/frameworks/base/services/core/java/com/android/server/display/ |
H A D | DisplayPowerController.java | 272 final Resources resources = context.getResources(); 273 final int screenBrightnessSettingMinimum = clampAbsoluteBrightness(resources.getInteger( 276 mScreenBrightnessDozeConfig = clampAbsoluteBrightness(resources.getInteger( 279 mScreenBrightnessDimConfig = clampAbsoluteBrightness(resources.getInteger( 282 mScreenBrightnessDarkConfig = clampAbsoluteBrightness(resources.getInteger( 302 mUseSoftwareAutoBrightnessConfig = resources.getBoolean( 305 mAllowAutoBrightnessWhileDozingConfig = resources.getBoolean( 308 mBrightnessRampRateFast = resources.getInteger( 311 int lightSensorRate = resources.getInteger( 313 long brighteningLightDebounce = resources [all...] |
/frameworks/base/services/usb/java/com/android/server/usb/ |
H A D | MtpNotificationManager.java | 74 final Resources resources = mContext.getResources(); 75 final String title = resources.getString( 78 final String description = resources.getString(
|
/frameworks/base/tests/VectorDrawableTest/src/com/android/test/dynamic/ |
H A D | AnimatedVectorDrawableDupPerf.java | 64 public static AnimatedVectorDrawable create(Resources resources, int rid) { argument 66 final XmlPullParser parser = resources.getXml(rid); 78 drawable.inflate(resources, parser, attrs);
|
/frameworks/base/core/tests/coretests/src/android/content/res/ |
H A D | ResourcesManagerTest.java | 71 Resources resources = mResourcesManager.getResources( 74 assertNotNull(resources); 80 assertSame(resources, newResources); 85 Resources resources = mResourcesManager.getResources( 88 assertNotNull(resources); 96 assertNotSame(resources, newResources); 244 // Now update the Activity base override, and both resources should update.
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/graph/ |
H A D | UsageGraph.java | 70 final Resources resources = context.getResources(); 77 mCornerRadius = resources.getDimensionPixelSize(R.dimen.usage_graph_line_corner_radius); 79 mLinePaint.setStrokeWidth(resources.getDimensionPixelSize(R.dimen.usage_graph_line_width)); 86 float dots = resources.getDimensionPixelSize(R.dimen.usage_graph_dot_size); 87 float interval = resources.getDimensionPixelSize(R.dimen.usage_graph_dot_interval); 96 mDividerSize = resources.getDimensionPixelSize(R.dimen.usage_graph_divider_size);
|
/frameworks/support/v7/preference/ |
H A D | Android.mk | 17 # Build the resources separately because the constants built with the resources need to access 42 # in their makefiles to include the resources and their dependencies in their package.
|
/frameworks/support/v4/api21/android/support/v4/graphics/drawable/ |
H A D | DrawableWrapperLollipop.java | 38 DrawableWrapperLollipop(DrawableWrapperState state, Resources resources) { argument 39 super(state, resources);
|
/frameworks/support/v7/cardview/ |
H A D | Android.mk | 17 # Build the resources using the latest applicable SDK version. 19 # SDK version than the resources. The resources library and the R class that it 89 # in their makefiles to include the resources in their package.
|
/frameworks/base/packages/DocumentsUI/ |
H A D | Android.mk | 19 # Not quite sure why it is necessary to explicitly pull in resources from the 27 # Again, required to pull in appcompat resources. See abovementioned demo code.
|
/frameworks/base/tools/layoutlib/bridge/src/android/util/ |
H A D | BridgeXmlPullAttributes.java | 26 import com.android.resources.ResourceType; 262 RenderResources resources = mContext.getRenderResources(); 263 return resources.resolveResValue(resources.findResValue(value, mPlatformFile));
|
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/util/ |
H A D | DynamicIdMap.java | 19 import com.android.resources.ResourceType;
|
/frameworks/base/core/java/android/view/ |
H A D | PointerIcon.java | 40 * or by applications using bitmaps or application resources. 221 Log.w(TAG, "Missing theme resources for pointer icon type " + type); 283 * @param resources The resources object. 287 * @throws IllegalArgumentException if resources is null. 291 public static PointerIcon load(@NonNull Resources resources, @XmlRes int resourceId) { argument 292 if (resources == null) { 293 throw new IllegalArgumentException("resources must not be null"); 297 icon.loadResource(null, resources, resourceId); 399 private void loadResource(Context context, Resources resources, argument [all...] |