HomeSort by relevance Sort by last modified time
    Searched refs:Resources (Results 451 - 475 of 2334) sorted by null

<<11121314151617181920>>

  /frameworks/base/graphics/java/android/graphics/drawable/
ClipDrawable.java 26 import android.content.res.Resources;
28 import android.content.res.Resources.Theme;
47 * href="{@docRoot}guide/topics/resources/drawable-resource.html">Drawable Resources</a>.</p>
86 public void inflate(@NonNull Resources r, @NonNull XmlPullParser parser,
219 ClipState(ClipState orig, Resources res) {
229 public Drawable newDrawable(Resources res) {
234 private ClipDrawable(ClipState state, Resources res) {
ColorDrawable.java 27 import android.content.res.Resources;
28 import android.content.res.Resources.Theme;
259 public void inflate(Resources r, XmlPullParser parser, AttributeSet attrs, Theme theme)
352 public Drawable newDrawable(Resources res) {
363 private ColorDrawable(ColorState state, Resources res) {
374 private void updateLocalState(Resources r) {
RotateDrawable.java 28 import android.content.res.Resources;
30 import android.content.res.Resources.Theme;
45 * <a href="{@docRoot}guide/topics/resources/animation-resource.html">Animation Resources</a>.
67 public void inflate(@NonNull Resources r, @NonNull XmlPullParser parser,
338 RotateState(RotateState orig, Resources res) {
353 public Drawable newDrawable(Resources res) {
358 private RotateDrawable(RotateState state, Resources res) {
ScaleDrawable.java 26 import android.content.res.Resources;
27 import android.content.res.Resources.Theme;
55 * <a href="{@docRoot}guide/topics/resources/drawable-resource.html">Drawable
56 * Resources</a>.
98 public void inflate(@NonNull Resources r, @NonNull XmlPullParser parser,
265 ScaleState(ScaleState orig, Resources res) {
278 public Drawable newDrawable(Resources res) {
290 private ScaleDrawable(ScaleState state, Resources res) {
StateListDrawable.java 29 import android.content.res.Resources;
31 import android.content.res.Resources.Theme;
42 * href="{@docRoot}guide/topics/resources/drawable-resource.html">Drawable Resources</a>.</p>
114 public void inflate(Resources r, XmlPullParser parser, AttributeSet attrs, Theme theme)
156 private void inflateChildElements(Resources r, XmlPullParser parser, AttributeSet attrs,
311 StateListState(StateListState orig, StateListDrawable owner, Resources res) {
361 public Drawable newDrawable(Resources res) {
394 private StateListDrawable(StateListState state, Resources res) {
  /packages/apps/Launcher2/src/com/android/launcher2/
IconCache.java 28 import android.content.res.Resources;
91 return getFullResIcon(Resources.getSystem(),
95 public Drawable getFullResIcon(Resources resources, int iconId, UserHandle user) {
98 d = resources.getDrawableForDensity(iconId, mIconDpi);
99 } catch (Resources.NotFoundException e) {
110 Resources resources; local
115 resources = mPackageManager.getResourcesForApplication(packageName);
117 resources = null
132 Resources resources; local
    [all...]
  /packages/apps/PackageInstaller/src/com/android/packageinstaller/
PackageUtil.java 27 import android.content.res.Resources;
78 * @param pContext context of package that can load the resources
79 * @param componentInfo ComponentInfo object whose resources are to be loaded
93 * @param pContext context of package that can load the resources
94 * @param componentInfo ComponentInfo object whose resources are to be loaded
117 * @param pContext context of package that can load the resources
118 * @param as The resources to be loaded
143 * @param pContext context of package that can load the resources
144 * @param appInfo ApplicationInfo object of package whose resources are to be loaded
150 Resources pRes = pContext.getResources()
    [all...]
  /external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
ShadowThemeTest.java 9 import android.content.res.Resources;
30 private Resources resources; field in class:ShadowThemeTest
34 resources = RuntimeEnvironment.application.getResources();
38 assertThat(resources.newTheme().obtainStyledAttributes(new int[] {R.attr.string1}).hasValue(0)).isFalse();
180 Resources.Theme theme = resources.newTheme();
189 Resources.Theme theme = resources.newTheme();
195 Resources.Theme theme = resources.newTheme()
    [all...]
ShadowResourcesTest.java 12 import android.content.res.Resources;
44 private Resources resources; field in class:ShadowResourcesTest
48 resources = RuntimeEnvironment.application.getResources();
53 assertThat(resources.getString(R.string.hello)).isEqualTo("Hello");
54 assertThat(resources.getString(R.string.say_it_with_item)).isEqualTo("flowers");
59 assertThat(resources.getString(R.string.greeting)).isEqualTo("Howdy");
64 assertThat(resources.getString(R.string.interpolate, "value")).isEqualTo("Here is a value!");
69 assertThat(resources.getString(R.string.some_html, "value")).isEqualTo("Hello, world");
74 assertThat(resources.getString(R.string.surrounding_quotes, "value")).isEqualTo("This'll work")
    [all...]
  /cts/hostsidetests/appsecurity/test-apps/IsolatedSplitApp/src/com/android/cts/isolatedsplitapp/
SplitAppTest.java 28 import android.content.res.Resources;
85 final Resources resources = context.getResources(); local
86 assertThat(resources, notNullValue());
88 assertThat(resources.getString(R.string.base_string), equalTo("Base String Default"));
99 final Resources resources = context.getResources(); local
100 assertThat(resources, notNullValue());
102 assertThat(resources.getString(R.string.base_string), equalTo("Base String Polish"));
114 final Resources resources = context.getResources() local
130 final Resources resources = context.getResources(); local
158 final Resources resources = context.getResources(); local
177 final Resources resources = context.getResources(); local
207 final Resources resources = context.getResources(); local
223 final Resources resources = context.getResources(); local
258 final Resources resources = context.getResources(); local
    [all...]
  /frameworks/base/services/core/java/com/android/server/
GestureLauncherService.java 25 import android.content.res.Resources;
149 Resources resources = mContext.getResources(); local
150 if (!isGestureLauncherEnabled(resources)) {
182 Resources resources = mContext.getResources(); local
184 registerCameraLaunchGesture(resources);
190 registerCameraLiftTrigger(resources);
222 private void registerCameraLaunchGesture(Resources resources) {
529 Resources resources = mContext.getResources(); local
    [all...]
  /packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/
ImageFilterRS.java 23 import android.content.res.Resources;
41 protected abstract void createFilter(android.content.res.Resources res,
44 protected void createFilter(android.content.res.Resources res,
120 Resources rsc = pipeline.getResources();
146 // Many of the renderscript filters allocated large (>16Mb resources) in order to apply.
184 Resources res = getEnvironment().getPipeline().getResources();
196 Resources res = getEnvironment().getPipeline().getResources();
214 Resources res = getEnvironment().getPipeline().getResources();
  /frameworks/base/graphics/java/android/graphics/
ImageDecoder.java 36 import android.content.res.Resources;
196 Resources getResources() { return null; }
203 Resources res = getResources();
252 @Nullable Resources res) {
260 private final Resources mResources;
263 Resources getResources() { return mResources; }
362 InputStreamSource(Resources res, InputStream is, int inputDensity) {
371 final Resources mResources;
376 public Resources getResources() { return mResources; }
402 @NonNull Resources res, @NonNull TypedValue value)
    [all...]
  /device/linaro/bootloader/edk2/MdeModulePkg/Universal/Console/GraphicsOutputDxe/
GraphicsOutput.c 314 EFI_ACPI_ADDRESS_SPACE_DESCRIPTOR *Resources;
402 Status = PciIo->GetBarAttributes (PciIo, Index, NULL, (VOID**) &Resources);
405 gEfiCallerBaseName, Index, Resources->AddrRangeMin, Resources->AddrLen));
406 if ((Resources->Desc == ACPI_ADDRESS_SPACE_DESCRIPTOR) &&
407 (Resources->Len == (UINT16) (sizeof (EFI_ACPI_ADDRESS_SPACE_DESCRIPTOR) - 3)) &&
408 (Resources->ResType == ACPI_ADDRESS_SPACE_TYPE_MEM) &&
409 (Resources->AddrLen >= GraphicsInfo->FrameBufferSize)
411 FrameBufferBase = Resources->AddrRangeMin;
  /cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/
BitmapDrawableTest.java 27 import android.content.res.Resources.Theme;
36 import android.content.res.Resources;
83 final Resources res = mContext.getResources();
94 private void verifyPreloadDensityInner(Resources res, int sourceResId, int[] densities)
154 private static void setResourcesDensity(Resources res, int densityDpi) {
  /frameworks/base/core/java/android/text/
AutoText.java 19 import android.content.res.Resources;
57 private static AutoText sInstance = new AutoText(Resources.getSystem());
75 private AutoText(Resources resources) {
76 mLocale = resources.getConfiguration().locale;
77 init(resources);
83 * @param view to get the resources from
87 Resources res = view.getContext().getResources();
106 * The View is used to get the current Locale and Resources.
116 * @param view used to retrieve the current Locale and Resources
    [all...]
  /packages/apps/QuickSearchBox/src/com/android/quicksearchbox/
PackageIconLoader.java 30 import android.content.res.Resources;
111 // load all resources synchronously, to reduce UI flickering
116 } catch (Resources.NotFoundException nfe) {
146 // Load drawables through Resources, to get the source density information
150 } catch (Resources.NotFoundException ex) {
176 * A resource identified by the {@link Resources} that contains it, and a resource id.
179 public Resources r;
184 * Resolves an android.resource URI to a {@link Resources} and a resource id.
188 Resources r;
195 throw new FileNotFoundException("Failed to get resources: " + ex)
    [all...]
  /packages/apps/WallpaperPicker/src/com/android/wallpaperpicker/tileinfo/
DefaultWallpaperInfo.java 7 import android.content.res.Resources;
146 Resources res = context.getResources();
174 Resources sysRes = Resources.getSystem();
175 Resources res = context.getResources();
  /cts/tests/tests/content/src/android/content/res/cts/
ResourcesTest.java 30 import android.content.res.Resources;
31 import android.content.res.Resources.NotFoundException;
60 private Resources mResources;
76 final Resources r = new Resources(am, dm, cfg);
95 XmlUtils.beginDocument(parser, "resources");
122 private Resources getResources(final Configuration config, final int mcc, final int mnc,
139 return new Resources(assmgr, metrics, config);
142 private static void checkGetText1(final Resources res, final int resId,
153 private static void checkGetText2(final Resources res, final int resId
    [all...]
  /cts/tests/tests/uirendering/src/android/uirendering/cts/testinfrastructure/
ResourceModifier.java 20 import android.content.res.Resources;
54 public ResourceModifier(Resources resources) {
55 bitmap = BitmapFactory.decodeResource(resources, R.drawable.sunset1);
131 public static void init(Resources resources) {
132 sInstance = new ResourceModifier(resources);
  /cts/tests/tests/view/src/android/view/cts/
ContextThemeWrapperTest.java 26 import android.content.res.Resources;
27 import android.content.res.Resources.Theme;
147 Resources.Theme expected = mContext.getResources().newTheme();
  /device/linaro/bootloader/edk2/IntelFrameworkModulePkg/Bus/Isa/IsaIoDxe/
IsaDriver.c 161 @retval EFI_OUT_OF_RESOURCES The request could not be completed due to a lack of resources.
177 ACPI_RESOURCE_HEADER_PTR Resources;
228 Status = Sio->GetResources (Sio, &Resources);
240 InitializeIsaIoInstance (IsaIoDevice, DevicePath, Resources);
  /external/owasp/sanitizer/src/tests/org/owasp/html/
HtmlSanitizerFuzzerTest.java 38 import com.google.common.io.Resources;
62 String html = Resources.toString(
63 Resources.getResource("Yahoo!.html"), Charsets.UTF_8);
  /external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/shadows/
ShadowBitmapFactory.java 3 import android.content.res.Resources;
28 public static Bitmap decodeResource(Resources res, int id) {
35 public static Bitmap decodeResource(Resources res, int id, BitmapFactory.Options options) {
ShadowContext.java 5 import android.content.res.Resources;
22 * Calls through to the {@code resourceLoader} to actually load resources.
60 abstract public Resources.Theme getTheme();
70 int resid, int[] attrs) throws Resources.NotFoundException {

Completed in 900 milliseconds

<<11121314151617181920>>