Home
last modified time | relevance | path

Searched refs:getResources (Results 1 – 25 of 129) sorted by relevance

123456

/external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/
DResourcesTest.java38 resources = new Activity().getResources(); in setup()
127 assertThat(activity.getResources().getDisplayMetrics().density, equalTo(1f)); in testDensity()
129 shadowOf(activity.getResources()).setDensity(1.5f); in testDensity()
130 assertThat(activity.getResources().getDisplayMetrics().density, equalTo(1.5f)); in testDensity()
133 assertThat(anotherActivity.getResources().getDisplayMetrics().density, equalTo(1.5f)); in testDensity()
139 assertThat(activity.getResources().getDisplayMetrics().heightPixels, equalTo(800)); in displayMetricsShouldNotHaveLotsOfZeros()
140 assertThat(activity.getResources().getDisplayMetrics().widthPixels, equalTo(480)); in displayMetricsShouldNotHaveLotsOfZeros()
DFragmentTest.java27 … int id = fragment.getResources().getIdentifier("hello", "string", "com.xtremelabs.robolectric"); in retrieveIdOfResource()
30 String hello = fragment.getResources().getString(id); in retrieveIdOfResource()
39 new TestFragment().getResources(); in unattachedFragmentsCannotGetResources()
DLayerDrawableTest.java37 Robolectric.application.getResources(), 0x00001000)); in setUp()
39 Robolectric.application.getResources(), 0x00002000)); in setUp()
41 Robolectric.application.getResources(), 0x00003000)); in setUp()
43 Robolectric.application.getResources(), 0x00004000)); in setUp()
DBitmapFactoryTest.java22 …Bitmap bitmap = BitmapFactory.decodeResource(Robolectric.application.getResources(), R.drawable.an… in decodeResource_shouldSetDescription()
31 …Bitmap bitmap = BitmapFactory.decodeResource(Robolectric.application.getResources(), R.drawable.an… in decodeResourceWithOpts_shouldSetDescription()
60 …Bitmap bitmap = BitmapFactory.decodeResource(Robolectric.application.getResources(), R.drawable.an… in decodeResource_shouldGetWidthAndHeightFromHints()
71 …Bitmap bitmap = BitmapFactory.decodeResource(Robolectric.application.getResources(), R.drawable.an… in decodeResourceWithOpts_shouldGetWidthAndHeightFromHints()
83 …Bitmap bitmap = BitmapFactory.decodeResource(Robolectric.application.getResources(), R.drawable.an… in decodeResource_canTakeOptions()
DTypedArrayTest.java26 public void getResources() throws Exception { in getResources() method in TypedArrayTest
27 assertNotNull(new Activity().obtainStyledAttributes(null).getResources()); in getResources()
DViewConfigurationTest.java40 assertEquals(1f, context.getResources().getDisplayMetrics().density); in methodsShouldReturnAndroidConstants()
56 shadowOf(context.getResources()).setDensity(1.5f); in methodsShouldReturnScaledAndroidConstantsDependingOnPixelDensity()
/external/emma/core/java12/com/vladium/util/
DResourceLoader.java73 public static Enumeration getResources (final String name) in getResources() method in ResourceLoader
80 return loader.getResources (name); in getResources()
108 public static Enumeration getResources (final String name, final ClassLoader loader) in getResources() method in ResourceLoader
112 return loader.getResources (name); in getResources()
/external/robolectric/src/test/java/com/xtremelabs/robolectric/
DRobolectricTest.java145 assertThat(new Activity().getResources().getDisplayMetrics().density, equalTo(1.0f)); in shouldUseSetDensityForContexts()
147 assertThat(new Activity().getResources().getDisplayMetrics().density, equalTo(1.5f)); in shouldUseSetDensityForContexts()
152 assertThat(new Activity().getResources().getDisplayMetrics().widthPixels, equalTo(480)); in shouldUseSetDisplayForContexts()
153 assertThat(new Activity().getResources().getDisplayMetrics().heightPixels, equalTo(800)); in shouldUseSetDisplayForContexts()
161 assertThat(new Activity().getResources().getDisplayMetrics().widthPixels, equalTo(100)); in shouldUseSetDisplayForContexts()
162 assertThat(new Activity().getResources().getDisplayMetrics().heightPixels, equalTo(200)); in shouldUseSetDisplayForContexts()
/external/chromium_org/ui/android/java/src/org/chromium/ui/autofill/
DAutofillListAdapter.java51 int height = mContext.getResources().getDimensionPixelSize(R.dimen.autofill_text_height); in getView()
55 int dividerHeight = mContext.getResources().getDimensionPixelSize( in getView()
60 divider.setColor(mContext.getResources().getColor( in getView()
63 divider.setColor(mContext.getResources().getColor( in getView()
/external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/
DShadowContextWrapper.java53 return getResources().newTheme(); in getTheme()
57 public Resources getResources() { in getResources() method in ShadowContextWrapper
58 return getApplicationContext().getResources(); in getResources()
150 return getResources().getAssets(); in getAssets()
DShadowListPreference.java28 this.entries = context.getResources().getStringArray(entriesResId); in setEntries()
43 this.entryValues = context.getResources().getStringArray(entryValuesResId); in setEntryValues()
DShadowTypedArray.java13 public Resources getResources() { in getResources() method in ShadowTypedArray
14 return Robolectric.application.getResources(); in getResources()
DShadowAlertDialog.java285 this.items = context.getResources().getTextArray(itemsId); in setItems()
350 return setTitle(context.getResources().getString(titleId)); in setTitle()
361 setMessage(context.getResources().getString(messageId)); in setMessage()
385 return setPositiveButton(context.getResources().getText(positiveTextId), listener); in setPositiveButton()
397 return setNegativeButton(context.getResources().getString(negativeTextId), listener); in setNegativeButton()
409 return setNeutralButton(context.getResources().getText(neutralTextId), listener); in setNeutralButton()
DShadowContext.java46 return realContext.getResources().getString(resId); in getString()
51 return realContext.getResources().getText(resId); in getText()
56 return realContext.getResources().getString(resId, formatArgs); in getString()
DShadowTextView.java110 this.text = getResources().getText(textResourceId); in setText()
181 this.hintText = getResources().getText(resId); in setHint()
394 text = context.getResources().getString(textResId); in applyTextAttribute()
405 setTextColor(context.getResources().getColor(colorResId)); in applyTextColorAttribute()
418 hint = context.getResources().getString(textResId); in applyHintAttribute()
430 setHintTextColor(context.getResources().getColor(colorResId)); in applyHintColorAttribute()
DShadowFragment.java68 public Resources getResources() { in getResources() method in ShadowFragment
72 return activity.getResources(); in getResources()
DShadowPreference.java114 this.summary = context.getResources().getText(summaryResId); in setSummary()
129 this.title = context.getResources().getText(titleResId); in setTitle()
/external/chromium_org/chrome/android/java/src/org/chromium/chrome/browser/printing/
DPrintingControllerFactory.java26 String defaultJobTitle = activity.getResources().getString(R.string.menu_print); in create()
31 String errorText = activity.getResources().getString(R.string.error_printing_failed); in create()
/external/chromium_org/remoting/android/java/src/org/chromium/chromoting/jni/
DJniInterface.java157 getString(R.string.progress_title), sContext.getResources(). in reportConnectionStatus()
168 sContext.getResources().getStringArray(R.array.protoc_states)[state]); in reportConnectionStatus()
181 Toast.makeText(sContext, sContext.getResources(). in reportConnectionStatus()
187 Toast.makeText(sContext, sContext.getResources().getStringArray( in reportConnectionStatus()
189 sContext.getResources().getStringArray(R.array.protoc_errors)[error]), in reportConnectionStatus()
/external/chromium_org/content/public/android/java/src/org/chromium/content/browser/input/
DHandleView.java110 LINE_OFFSET_Y_DIP, context.getResources().getDisplayMetrics()); in HandleView()
128 mSelectHandleLeft = getContext().getResources().getDrawable( in setOrientation()
139 mSelectHandleRight = getContext().getResources().getDrawable( in setOrientation()
151 mSelectHandleCenter = getContext().getResources().getDrawable( in setOrientation()
/external/chromium_org/ui/android/java/src/org/chromium/ui/gfx/
DDeviceDisplayInfo.java126 return mAppContext.getResources().getConfiguration().smallestScreenWidthDp; in getSmallestDIPWidth()
154 return mAppContext.getResources().getDisplayMetrics(); in getMetrics()
/external/replicaisland/src/com/replica/replicaisland/
DKeyboardConfigDialogPreference.java123 mUnselectedBorder = mContext.getResources().getDrawable(R.drawable.key_config_border); in onBindDialogView()
124 mSelectedBorder = mContext.getResources().getDrawable(R.drawable.key_config_border_active); in onBindDialogView()
142 mKeyLabels = mContext.getResources().getStringArray(R.array.keycode_labels); in getKeyLabel()
/external/chromium_org/chrome/android/java/src/org/chromium/chrome/browser/
DBookmarkUtils.java136 drawable = context.getResources().getDrawableForDensity(id, density); in getBitmapFromResourceId()
138 drawable = context.getResources().getDrawable(id); in getBitmapFromResourceId()
164 TOUCHICON_BORDER_RADII, context.getResources().getDisplayMetrics()); in drawTouchIconToCanvas()
DNavigationPopup.java69 float density = mContext.getResources().getDisplayMetrics().density; in NavigationPopup()
140 faviconDrawable = new BitmapDrawable(mContext.getResources(), bitmap); in updateBitmapForTextView()
171 float density = mContext.getResources().getDisplayMetrics().density; in computeFadeDimensions()
/external/chromium_org/third_party/angle/src/compiler/
DTranslatorHLSL.cpp20 sh::OutputHLSL outputHLSL(parseContext, getResources(), mOutputType); in translate()

123456