/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/items/ |
SimpleInflater.java | 45 protected final Resources mResources; 53 mResources = resources; 57 return mResources;
|
/frameworks/support/v7/appcompat/src/androidTest/java/androidx/appcompat/widget/ |
AppCompatButtonTest.java | 52 final String text1 = mResources.getString(R.string.sample_text1); 53 final String text2 = mResources.getString(R.string.sample_text2); 82 final String text = mResources.getString(R.string.sample_text2);
|
PopupMenuTest.java | 103 private Resources mResources; 112 mResources = mActivityTestRule.getActivity().getResources(); 138 assertEquals(mResources.getString(R.string.popup_menu_highlight_description), 140 assertEquals(mResources.getString(R.string.popup_menu_highlight_tooltip), 150 mResources.getString(R.string.popup_menu_edit_description)); 152 mResources.getString(R.string.popup_menu_edit_tooltip)); 167 onView(withText(mResources.getString(R.string.popup_menu_highlight))) 171 mResources.getString(R.string.popup_menu_highlight_description)))); 173 onView(withText(mResources.getString(R.string.popup_menu_edit))) 177 mResources.getString(R.string.popup_menu_edit_description)))) [all...] |
/packages/apps/Car/Dialer/src/com/android/car/dialer/ui/ |
CircleBitmapDrawable.java | 38 private final Resources mResources; 47 mResources = res; 57 mDrawable = RoundedBitmapDrawableFactory.create(mResources, processed);
|
/packages/apps/Launcher3/src/com/android/launcher3/ |
Partner.java | 72 private final Resources mResources; 76 mResources = res; 84 return mResources;
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/wallpaper/ |
WallpaperSuggestionActivityTest.java | 53 private Resources mResources; 84 when(mContext.getResources()).thenReturn(mResources); 85 when(mResources.getBoolean(com.android.internal.R.bool.config_enableWallpaperService))
|
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/ |
GradientDrawableTest.java | 57 private Resources mResources; 61 mResources = InstrumentationRegistry.getTargetContext().getResources(); 423 XmlPullParser parser = mResources.getXml(R.drawable.gradientdrawable); 435 gradientDrawable.inflate(mResources, parser, attrs); 464 gradientDrawable = (GradientDrawable) mResources.getDrawable( 470 gradientDrawable = (GradientDrawable) mResources.getDrawable( 506 (GradientDrawable) mResources.getDrawable(R.drawable.gradientdrawable); 508 (GradientDrawable) mResources.getDrawable(R.drawable.gradientdrawable); 510 (GradientDrawable) mResources.getDrawable(R.drawable.gradientdrawable); 540 final int densityDpi = mResources.getConfiguration().densityDpi [all...] |
DrawableTest.java | 73 private Resources mResources; 78 mResources = mContext.getResources(); 163 try (InputStream source = mResources.openRawResource(R.raw.testimage); 266 assertNull(Drawable.createFromResourceStream(mResources, null, inputEmptyStream, 275 assertNotNull(Drawable.createFromResourceStream(mResources, value, inputStream, 316 assertNull(Drawable.createFromResourceStream(mResources, null, inputEmptyStream, 325 assertNotNull(Drawable.createFromResourceStream(mResources, value, inputStream, 348 XmlPullParser parser = mResources.getXml(R.drawable.gradientdrawable); 349 Drawable drawable = Drawable.createFromXml(mResources, parser); 352 Drawable expected = mResources.getDrawable(R.drawable.gradientdrawable, null) [all...] |
NinePatchDrawableTest.java | 82 private Resources mResources; 86 mResources = InstrumentationRegistry.getTargetContext().getResources(); 98 Bitmap bmp = BitmapFactory.decodeResource(mResources, R.drawable.ninepatch_0); 99 String name = mResources.getResourceName(R.drawable.ninepatch_0); 174 NinePatchDrawable npd = (NinePatchDrawable) mResources.getDrawable(R.drawable.ninepatch_0); 182 npd = (NinePatchDrawable) mResources.getDrawable(R.drawable.ninepatch_1); 368 mResources, bitmap, new byte[1000], null, "TESTNAME"); 371 int targetDensity = mResources.getDisplayMetrics().densityDpi; 379 XmlResourceParser parser = mResources.getXml(R.drawable.ninepatchdrawable); 385 ninePatchDrawable.inflate(mResources, parser, attrs) [all...] |
/cts/tests/tests/graphics/src/android/graphics/cts/ |
BitmapColorSpaceTest.java | 58 private Resources mResources; 62 mResources = InstrumentationRegistry.getTargetContext().getResources(); 155 Bitmap b = BitmapFactory.decodeResource(mResources, R.drawable.robot); 173 try (InputStream in = mResources.getAssets().open("green-p3.png")) { 195 try (InputStream in = mResources.getAssets().open("prophoto-rgba16f.png")) { 217 try (InputStream in = mResources.getAssets().open("green-p3.png")) { 246 try (InputStream in = mResources.getAssets().open("green-srgb.png")) { 255 try (InputStream in = mResources.getAssets().open("green-p3.png")) { 276 try (InputStream in = mResources.getAssets().open(fileName)) { 314 try (InputStream in = mResources.getAssets().open(fileName)) [all...] |
/frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/graph/ |
BatteryMeterDrawableBaseTest.java | 28 private Resources mResources; 34 mResources = mContext.getResources(); 41 isEqualTo(mResources.getDimensionPixelSize(R.dimen.battery_width)); 43 isEqualTo(mResources.getDimensionPixelSize(R.dimen.battery_height));
|
/frameworks/support/graphics/drawable/animated/src/androidTest/java/androidx/vectordrawable/graphics/drawable/tests/ |
AnimatedVectorDrawableParameterizedTest.java | 57 private Resources mResources; 100 saveVectorDrawableIntoPNG(mResources, bitmap, -1, "start"); 134 saveVectorDrawableIntoPNG(mResources, bitmap, -1, "ended"); 141 mResources = mContext.getResources();
|
/frameworks/support/leanback/src/main/java/androidx/leanback/system/ |
Settings.java | 141 Resources mResources; 145 mResources = resources; 150 int resId = mResources.getIdentifier(resourceName, "bool", mPackageName); 151 return resId > 0 ? mResources.getBoolean(resId) : defaultValue;
|
/packages/services/Telephony/tests/src/com/android/phone/ |
PhoneSearchIndexablesProviderTest.java | 46 @Mock private Resources mResources; 75 when(mResources.getString(com.android.phone.R.string.carrier_settings_euicc)) 77 when(mResources.getString(com.android.phone.R.string.keywords_carrier_settings_euicc)) 82 when(mContext.getResources()).thenReturn(mResources);
|
/frameworks/base/core/tests/overlaytests/device/src/com/android/overlaytest/ |
OverlayBaseTest.java | 44 private Resources mResources; 60 mResources = InstrumentationRegistry.getContext().getResources(); 64 try (InputStream input = mResources.openRawResource(resId)) { 78 mResources.updateConfiguration(config, mResources.getDisplayMetrics()); 139 boolean actual = mResources.getBoolean(resId); 145 int actual = mResources.getInteger(resId); 151 String actual = mResources.getString(resId); 157 int[] actual = mResources.getIntArray(resId); 248 XmlResourceParser parser = mResources.getXml(R.xml.integer) [all...] |
/frameworks/opt/bitmap/src/com/android/bitmap/drawable/ |
ExtendedBitmapDrawable.java | 60 private final Resources mResources; 76 mResources = res; 94 final int fadeOutDurationMs = mResources.getInteger(R.integer.bitmap_fade_animation_duration); 95 mProgressDelayMs = mResources.getInteger(R.integer.bitmap_progress_animation_delay); 99 int placeholderWidth = mResources.getDimensionPixelSize(R.dimen.placeholder_size); 100 int placeholderHeight = mResources.getDimensionPixelSize(R.dimen.placeholder_size); 104 placeholder = constantState.newDrawable(mResources); 122 mPlaceholder = new Placeholder(placeholder, mResources, placeholderWidth, placeholderHeight, 129 int progressBarSize = mResources.getDimensionPixelSize(R.dimen.progress_bar_size); 130 mProgress = new Progress(mOpts.progressBar.getConstantState().newDrawable(mResources), mResources [all...] |
/cts/tests/tests/media/src/android/media/cts/ |
NativeEncoderTest.java | 51 private static Resources mResources; 67 mResources = mContext.getResources(); 77 AssetFileDescriptor fd = mResources.openRawResourceFd(res); 113 AssetFileDescriptor fd = mResources.openRawResourceFd(res); 149 AssetFileDescriptor fd = mResources.openRawResourceFd(res); 185 AssetFileDescriptor fd = mResources.openRawResourceFd(res);
|
/frameworks/base/core/java/android/view/animation/ |
ScaleAnimation.java | 31 private final Resources mResources; 65 mResources = context.getResources(); 146 mResources = null; 173 mResources = null; 214 mResources = null; 265 targetSize = TypedValue.complexToDimension(data, mResources.getDisplayMetrics());
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/tuner/ |
ShortcutParser.java | 48 private Resources mResources; 78 mResources = mContext.getPackageManager().getResourcesForApplication(mPkg); 79 XmlResourceParser parser = mResources.getXml(mResId); 103 final TypedArray sa = mResources.obtainAttributes(mAttrs, R.styleable.Shortcut); 115 c.label = mResources.getString(titleResId); 123 c.intent = Intent.parseIntent(mResources, parser, mAttrs);
|
/packages/apps/Settings/src/com/android/settings/enterprise/ |
EnterprisePrivacyFeatureProviderImpl.java | 48 private final Resources mResources; 60 mResources = resources; 104 disclosure.append(mResources.getString(R.string.do_disclosure_with_name, 107 disclosure.append(mResources.getString(R.string.do_disclosure_generic)); 109 disclosure.append(mResources.getString(R.string.do_disclosure_learn_more_separator)); 110 disclosure.append(mResources.getString(R.string.learn_more),
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/lint/ |
LintJob.java | 54 private final List<? extends IResource> mResources; 67 mResources = resources; 98 List<File> files = new ArrayList<File>(mResources.size()); 99 for (IResource resource : mResources) { 141 assert !Scope.checkSingleFile(scope) : scope + " with " + mResources; 159 EclipseLintClient.clearMarkers(mResources);
|
/developers/build/prebuilts/gradle/DisplayingBitmaps/Application/src/main/java/com/example/android/displayingbitmaps/util/ |
ImageWorker.java | 53 protected Resources mResources; 61 mResources = context.getResources(); 97 new AsyncDrawable(mResources, mLoadingBitmap, task); 138 mLoadingBitmap = BitmapFactory.decodeResource(mResources, resId); 322 drawable = new BitmapDrawable(mResources, bitmap); 326 drawable = new RecyclingBitmapDrawable(mResources, bitmap); 442 new BitmapDrawable(mResources, mLoadingBitmap));
|
/developers/samples/android/ui/graphics/DisplayingBitmaps/Application/src/main/java/com/example/android/displayingbitmaps/util/ |
ImageWorker.java | 53 protected Resources mResources; 61 mResources = context.getResources(); 97 new AsyncDrawable(mResources, mLoadingBitmap, task); 138 mLoadingBitmap = BitmapFactory.decodeResource(mResources, resId); 322 drawable = new BitmapDrawable(mResources, bitmap); 326 drawable = new RecyclingBitmapDrawable(mResources, bitmap); 442 new BitmapDrawable(mResources, mLoadingBitmap));
|
/development/samples/browseable/DisplayingBitmaps/src/com.example.android.displayingbitmaps/util/ |
ImageWorker.java | 53 protected Resources mResources; 61 mResources = context.getResources(); 97 new AsyncDrawable(mResources, mLoadingBitmap, task); 138 mLoadingBitmap = BitmapFactory.decodeResource(mResources, resId); 322 drawable = new BitmapDrawable(mResources, bitmap); 326 drawable = new RecyclingBitmapDrawable(mResources, bitmap); 442 new BitmapDrawable(mResources, mLoadingBitmap));
|
/frameworks/support/v7/appcompat/src/main/java/androidx/appcompat/app/ |
AppCompatActivity.java | 67 private Resources mResources; 162 if (mResources != null) { 166 mResources.updateConfiguration(newConfig, newMetrics); 540 if (mResources == null && VectorEnabledTintResources.shouldBeUsed()) { 541 mResources = new VectorEnabledTintResources(this, super.getResources()); 543 return mResources == null ? super.getResources() : mResources;
|