Searched refs:getResources (Results 1 - 25 of 524) sorted by relevance

1234567891011>>

/frameworks/support/v7/appcompat/src/android/support/v7/internal/view/
H A DActionBarPolicy.java44 return mContext.getResources().getInteger(R.integer.abc_max_action_buttons);
53 return mContext.getResources().getDisplayMetrics().widthPixels / 2;
59 return mContext.getResources().getBoolean(R.bool.abc_action_bar_embed_tabs_pre_jb);
66 Resources r = mContext.getResources();
83 return mContext.getResources().getDimensionPixelSize(
/frameworks/base/core/java/com/android/internal/view/
H A DActionBarPolicy.java44 return mContext.getResources().getInteger(R.integer.max_action_buttons);
52 return mContext.getResources().getDisplayMetrics().widthPixels / 2;
58 return mContext.getResources().getBoolean(R.bool.action_bar_embed_tabs);
63 return mContext.getResources().getBoolean(R.bool.action_bar_embed_tabs_pre_jb);
70 Resources r = mContext.getResources();
88 return mContext.getResources().getDimensionPixelSize(
/frameworks/base/core/tests/coretests/src/android/view/
H A DMutateDrawable.java34 ok.setBackgroundDrawable(getResources().getDrawable(
39 cancel.setBackgroundDrawable(getResources().getDrawable(
H A DDrawableBgMinSize.java58 mBackgroundDrawable = getResources().getDrawable(R.drawable.drawable_background);
59 mBigBackgroundDrawable = getResources().getDrawable(R.drawable.big_drawable_background);
/frameworks/base/core/java/android/view/
H A DContextThemeWrapper.java60 * calls to {@link #getResources()} are made.
64 throw new IllegalStateException("getResources() has already been called");
73 public Resources getResources() { method in class:ContextThemeWrapper
78 mResources = super.getResources();
82 mResources = resc.getResources();
138 mTheme = getResources().newTheme();
/frameworks/rs/java/tests/ComputeBenchmark/src/com/example/android/rs/computebench/
H A DComputeBench.java34 mBenchmark = new Benchmark(mRS, getResources());
/frameworks/rs/java/tests/LatencyBenchmark/src/com/example/android/rs/computebench/
H A DLatencyBench.java34 mBenchmark = new Benchmark(mRS, getResources());
/frameworks/base/core/java/android/content/
H A DSyncActivityTooManyDeletes.java63 getResources().getText(R.string.sync_really_delete),
64 getResources().getText(R.string.sync_undo_deletes),
65 getResources().getText(R.string.sync_do_nothing)
80 getResources().getText(R.string.sync_too_many_deletes_desc);
98 // imageView.setImageDrawable(authContext.getResources().getDrawable(desc.iconId));
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
H A DStackActivity.java41 getResources().getDrawable(R.drawable.sunset1),
42 getResources().getDrawable(R.drawable.sunset2),
H A DBitmapsAlphaActivity.java52 mBitmap1 = BitmapFactory.decodeResource(c.getResources(), R.drawable.sunset1);
54 mBitmap2 = BitmapFactory.decodeResource(c.getResources(), R.drawable.sunset2);
58 mBitmap3 = BitmapFactory.decodeResource(c.getResources(), R.drawable.sunset3, opts);
H A DBitmapsSkewActivity.java44 mBitmap1 = BitmapFactory.decodeResource(c.getResources(), R.drawable.sunset1);
H A DSimplePatchActivity.java41 mDrawable = context.getResources().getDrawable(R.drawable.expander_ic_minimized);
/frameworks/compile/libbcc/tests/debuginfo/target-tests/driver-common/SRC/
H A DDriverView.java.template44 mRender.init(mRS, getResources());
/frameworks/rs/java/tests/ComputePerf/src/com/example/android/rs/computeperf/
H A DComputePerf.java44 mLT = new LaunchTest(mRS, getResources());
59 mMandel = new Mandelbrot(mRS, getResources());
/frameworks/base/tests/DpiTest/src/com/google/android/test/dpi/
H A DDpiTestActivity.java65 app.getResources().setCompatibilityInfo(new CompatibilityInfo(ai,
66 getResources().getConfiguration().screenLayout,
67 getResources().getConfiguration().smallestScreenWidthDp, false));
170 final BitmapDrawable d = new BitmapDrawable(getResources(), bitmap);
171 if (!scale) d.setTargetDensity(getResources().getDisplayMetrics());
182 final Drawable d = getResources().getDrawable(resource);
204 final Drawable d = getResources().getDrawable(resource);
217 bitmap = BitmapFactory.decodeResource(getResources(), id);
221 bitmap = BitmapFactory.decodeResource(getResources(), id, opts);
237 final DisplayMetrics metrics = getResources()
[all...]
/frameworks/base/core/java/android/text/style/
H A DImageSpan.java64 ? new BitmapDrawable(context.getResources(), b)
139 drawable = new BitmapDrawable(mContext.getResources(), bitmap);
148 drawable = mContext.getResources().getDrawable(mResourceId);
/frameworks/opt/datetimepicker/src/com/android/datetimepicker/time/
H A DCircleView.java50 Resources res = context.getResources();
64 Resources res = context.getResources();
80 Resources res = context.getResources();
/frameworks/base/core/java/android/text/method/
H A DAllCapsTransformationMethod.java37 mLocale = context.getResources().getConfiguration().locale;
/frameworks/base/media/java/android/mtp/
H A DMtpStorage.java41 mDescription = context.getResources().getString(volume.getDescriptionId());
/frameworks/base/tests/CanvasCompare/src/com/android/test/hwuicompare/
H A DCompareActivity.java58 ResourceModifiers.init(getResources());
65 int width = getResources().getDimensionPixelSize(R.dimen.layer_width);
66 int height = getResources().getDimensionPixelSize(R.dimen.layer_height);
70 mErrorCalculator = new ErrorCalculator(getApplicationContext(), getResources());
/frameworks/base/tests/RenderScriptTests/HelloWorld/src/com/example/android/rs/helloworld/
H A DHelloWorldView.java44 mRender.init(mRS, getResources());
/frameworks/support/v4/ics/android/support/v4/view/
H A DPagerTitleStripIcs.java37 mLocale = context.getResources().getConfiguration().locale;
/frameworks/webview/chromium/tools/WebViewShell/src/com/android/webview/chromium/shell/
H A DTelemetryActivity.java31 getResources().getString(R.string.title_activity_telemetry));
/frameworks/base/core/java/android/preference/
H A DPreferenceInflater.java77 intent = Intent.parseIntent(getContext().getResources(), parser, attrs);
91 getContext().getResources().parseBundleExtra(EXTRA_TAG_NAME, attrs,
/frameworks/base/core/java/android/service/dreams/
H A DSandman.java109 int def = context.getResources().getBoolean(
117 int def = context.getResources().getBoolean(

Completed in 2459 milliseconds

1234567891011>>