Home
last modified time | relevance | path

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

1234567891011

/external/javaparser/javaparser-core-testing/src/test/java/com/github/javaparser/ast/stmt/
DTryStmtTest.java21 assertInstanceOf(VariableDeclarationExpr.class, tryStmt.getResources().get(0)); in simpleTest()
27 assertInstanceOf(VariableDeclarationExpr.class, tryStmt.getResources().get(0)); in multipleTest()
34 assertInstanceOf(VariableDeclarationExpr.class, tryStmt.getResources().get(0)); in modifiersTest()
41 assertInstanceOf(NameExpr.class, tryStmt.getResources().get(0)); in simpleVariable()
48 assertInstanceOf(NameExpr.class, tryStmt.getResources().get(0)); in twoSimpleVariables()
49 assertInstanceOf(NameExpr.class, tryStmt.getResources().get(1)); in twoSimpleVariables()
56 assertInstanceOf(FieldAccessExpr.class, tryStmt.getResources().get(0)); in complexVariable()
63 assertInstanceOf(FieldAccessExpr.class, tryStmt.getResources().get(0)); in superAccess()
70 assertInstanceOf(FieldAccessExpr.class, tryStmt.getResources().get(0)); in outerClassAccess()
/external/grpc-grpc-java/core/src/test/java/io/grpc/
DReplacingClassLoader.java48 public Enumeration<URL> getResources(String name) throws IOException { in getResources() method in ReplacingClassLoader
50 return getParent().getResources(replacement); in getResources()
52 return super.getResources(name); in getResources()
/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-shadows/robolectric/src/test/java/org/robolectric/shadows/
DShadowDrawableTest.java52 context.getResources(), in createFromResourceStream_shouldWorkWithoutSourceName()
136 assertThat(context.getResources().getDrawable(R.drawable.drawable_with_nine_patch)).isNotNull(); in shouldLoadNinePatchFromDrawableXml()
148 final Drawable anImage = context.getResources().getDrawable(R.drawable.an_image); in drawableIntrinsicWidthAndHeightShouldBeCorrect()
157 final Drawable anImage = context.getResources().getDrawable(R.drawable.robolectric); in drawableShouldLoadImageOfCorrectSizeWithMdpiQualifier()
166 final Drawable anImage = context.getResources().getDrawable(R.drawable.robolectric); in drawableShouldLoadImageOfCorrectSizeWithHdpiQualifier()
177 final Drawable aDrawable = context.getResources().getDrawable(R.drawable.an_image_or_vector); in testGetBitmapOrVectorDrawableAt19()
184 final Drawable aDrawable = context.getResources().getDrawable(R.drawable.an_image_or_vector); in testGetBitmapOrVectorDrawableAt21()
DShadowBitmapFactoryTest.java37 Bitmap bitmap = BitmapFactory.decodeResource(context.getResources(), R.drawable.an_image); in decodeResource_shouldSetDescriptionAndCreatedFrom()
47 Bitmap bitmap = BitmapFactory.decodeResource(context.getResources(), R.drawable.an_image); in decodeResource_shouldSetDefaultBitmapConfig()
54 assertThat(BitmapFactory.decodeResource(context.getResources(), 0)).isNull(); in withResId0_decodeResource_shouldReturnNull()
62 BitmapFactory.decodeResource(context.getResources(), R.drawable.an_image, options); in decodeResource_shouldPassABitmapConfig()
114 Bitmap bitmap = BitmapFactory.decodeResource(context.getResources(), R.drawable.an_image); in decodeResource_shouldGetWidthAndHeightFromHints()
125 BitmapFactory.decodeResource(context.getResources(), R.drawable.an_image, options); in decodeResource_canTakeOptions()
137 context.getResources(), null, inputStream, null, options); in decodeResourceStream_canTakeOptions()
DShadowBitmapDrawableTest.java29 ((Application) ApplicationProvider.getApplicationContext()).getResources();
102 new BitmapDrawable(ApplicationProvider.getApplicationContext().getResources(), bitmap); in constructor_shouldSetTheIntrinsicWidthAndHeightToTheWidthAndHeightOfTheBitmap()
111 ApplicationProvider.getApplicationContext().getResources(), (Bitmap) null)) in constructor_shouldAcceptNullBitmap()
/external/setupcompat/partnerconfig/java/com/google/android/setupcompat/partnerconfig/
DPartnerConfigHelper.java92 Configuration currentConfig = context.getResources().getConfiguration(); in isValidInstance()
159 Resources resource = resourceEntry.getResources(); in getColor()
203 Resources resource = resourceEntry.getResources(); in getDrawable()
247 Resources resource = resourceEntry.getResources(); in getString()
278 Resources resource = resourceEntry.getResources(); in getStringArray()
313 Resources resource = resourceEntry.getResources(); in getBoolean()
358 Resources resource = resourceEntry.getResources(); in getDimension()
406 Resources resource = resourceEntry.getResources(); in getFraction()
439 Resources resource = resourceEntry.getResources(); in getInteger()
473 Resources resource = resourceEntry.getResources(); in getIllustrationResourceEntry()
[all …]
/external/libtextclassifier/java/src/com/android/textclassifier/common/base/
DLocaleCompat.java59 return context.getResources().getConfiguration().getLocales().toLanguageTags(); in getResourceLanguageTags()
67 return context.getResources().getConfiguration().locale.toLanguageTag(); in getResourceLanguageTags()
79 return context.getResources().getConfiguration().locale.getLanguage(); in getResourceLanguageTags()
/external/setupcompat/main/java/com/google/android/setupcompat/template/
DFooterButtonInflater.java42 public Resources getResources() { in getResources() method in FooterButtonInflater
43 return context.getResources(); in getResources()
54 XmlResourceParser parser = getResources().getXml(resId); in inflate()
/external/drrickorang/LoopbackApp/app/src/main/java/org/drrickorang/loopback/
DSettingsActivity.java120 getResources().getTextArray(R.array.audioThreadType_array)) { in onCreate()
160 mBufferTestDurationUI.setTitle(getResources().getString(R.string.labelBufferTestDuration, in onCreate()
176 mWavePlotDurationUI.setTitle(getResources().getString( in onCreate()
193 mPlayerBufferUI.setTitle(getResources().getString( in onCreate()
215 mRecorderBufferUI.setTitle(getResources().getString(R.string.labelRecorderBuffer, in onCreate()
230 mLoadThreadUI.setTitle(getResources().getString(R.string.loadThreadsLabel)); in onCreate()
244 mNumCapturesUI.setTitle(getResources().getString(R.string.numCapturesSetting)); in onCreate()
275 mIgnoreFirstFramesUI.setTitle(getResources().getString(R.string.labelIgnoreFirstFrames, in onCreate()
434 helpText.setText(getResources().getString(R.string.systraceHelp)); in onButtonHelp()
436 helpText.setText(getResources().getString(R.string.calibrateSoundLevelHelp)); in onButtonHelp()
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/android/
DDrawableResourceLoaderTest.java35 resources = ApplicationProvider.getApplicationContext().getResources(); in setup()
41 ApplicationProvider.getApplicationContext().getResources().getDrawable(R.drawable.rainbow)); in testGetDrawable_rainbow()
79 .getResources() in testLayerDrawable_xlarge()
90 .getResources() in testLayerDrawable()
DResourceLoaderTest.java47 .getResources() in checkDefaultBooleanValue()
57 .getResources() in checkQualifiedBooleanValue()
105 assertThat(ApplicationProvider.getApplicationContext().getResources().getString(resId)) in shouldMakeInternalResourcesAvailable()
/external/libtextclassifier/java/tests/instrumentation/src/com/android/textclassifier/common/base/
DLocaleCompatTest.java57 .getResources() in getResourceLanguageTags_minApi24()
71 .getResources() in getResourceLanguageTags_minApi21()
84 ApplicationProvider.getApplicationContext().getResources().getConfiguration().locale = in getResourceLanguageTags_base()
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/android/controller/
DActivityControllerTest.java227 ApplicationProvider.getApplicationContext().getResources().getConfiguration()); in configurationChange_callsLifecycleMethodsAndAppliesConfig()
234 … assertThat(controller.get().getResources().getConfiguration().fontScale).isEqualTo(newFontScale); in configurationChange_callsLifecycleMethodsAndAppliesConfig()
241 ApplicationProvider.getApplicationContext().getResources().getConfiguration()); in configurationChange_callsOnConfigurationChangedAndAppliesConfigWhenAllManaged()
249 …assertThat(configController.get().getResources().getConfiguration().fontScale).isEqualTo(newFontSc… in configurationChange_callsOnConfigurationChangedAndAppliesConfigWhenAllManaged()
256 ApplicationProvider.getApplicationContext().getResources().getConfiguration()); in configurationChange_callsLifecycleMethodsAndAppliesConfigWhenAnyNonManaged()
265 …assertThat(configController.get().getResources().getConfiguration().fontScale).isEqualTo(newFontSc… in configurationChange_callsLifecycleMethodsAndAppliesConfigWhenAnyNonManaged()
266 …assertThat(configController.get().getResources().getConfiguration().orientation).isEqualTo(newOrie… in configurationChange_callsLifecycleMethodsAndAppliesConfigWhenAnyNonManaged()
285 ApplicationProvider.getApplicationContext().getResources().getConfiguration()); in configurationChange_restoresTheme()
301 ApplicationProvider.getApplicationContext().getResources().getConfiguration()); in configurationChange_reattachesRetainedFragments()
/external/angle/src/tests/compiler_tests/
DEmulateGLFragColorBroadcast_test.cpp30 getResources()->MaxDrawBuffers = kMaxDrawBuffers; in EmulateGLFragColorBroadcastTest()
31 getResources()->EXT_draw_buffers = 1; in EmulateGLFragColorBroadcastTest()
/external/sl4a/ScriptingLayerForAndroid/src/org/connectbot/
DHelpTopicActivity.java41 this.setTitle(String.format("%s: %s - %s", getResources().getText(R.string.application_title), in onCreate()
42 getResources().getText(R.string.title_help), topic)); in onCreate()
/external/androidplot/AndroidPlot-Core/src/main/java/com/androidplot/util/
DConfigurator.java115 return ctx.getResources().getIdentifier(name, pack, ctx.getPackageName()); in parseResId()
123 return ctx.getResources().getColor(parseResId(ctx, "@color", value)); in parseIntAttr()
145 return ctx.getResources().getDimension(parseResId(ctx, "@dimen", value)); in parseFloatAttr()
157 return ctx.getResources().getString(parseResId(ctx, "@string", value)); in parseStringAttr()
259 XmlResourceParser xrp = ctx.getResources().getXml(xmlFileId); in configure()
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowArscAssetManager.java204 if (!am.getResources().getResourceName(resid, true, name)) { in getResourceName()
234 if (!cppAssetManager.getResources().getResourceName(resid, true, name)) { in getResourcePackageName()
246 if (!cppAssetManager.getResources().getResourceName(resid, true, name)) { in getResourceTypeName()
258 if (!cppAssetManager.getResources().getResourceName(resid, true, name)) { in getResourceEntryName()
311 int ident = am.getResources().identifierForName(name, defType, defPackage); in getResourceIdentifier()
525 final ResTable res = am.getResources(); in loadResourceValue()
613 final ResTable res = am.getResources(); in loadResourceBagValue()
800 ResTable res = am.getResources(); in retrieveAttributes()
853 final ResTable res = am.getResources(); in getArraySize()
874 ResTable res = am.getResources(); in retrieveArray()
[all …]
/external/javaparser/javaparser-core/src/main/java/com/github/javaparser/ast/validator/
DJava7Validator.java14 && n.getResources().isEmpty()
18 for (Expression resource : n.getResources()) {
/external/javaparser/javaparser-symbol-solver-testing/src/test/test_sourcecode/javasymbolsolver_0_6_0/expected_output/java-symbol-solver-core/
Dcom_github_javaparser_symbolsolver_javaparsermodel_contexts_TryWithResourceContext.txt1 Line 45) wrappedNode.getResources() ==> com.github.javaparser.ast.stmt.TryStmt.getResources()
13 Line 63) wrappedNode.getResources() ==> com.github.javaparser.ast.stmt.TryStmt.getResources()
/external/setupdesign/main/src/com/google/android/setupdesign/
DSetupWizardLayout.java138 decorPaddingTop = getResources().getDimensionPixelSize(R.dimen.sud_decor_padding_top); in init()
148 getResources().getValue(R.dimen.sud_illustration_aspect_ratio, out, true); in init()
322 final Drawable backgroundTileDrawable = getContext().getResources().getDrawable(backgroundTile); in setBackgroundTile()
335 final Drawable assetDrawable = context.getResources().getDrawable(asset); in getIllustration()
336 final Drawable tile = context.getResources().getDrawable(horizontalTile); in getIllustration()
343 if (context.getResources().getBoolean(R.bool.sudUseTabletLayout)) { in getIllustration()
/external/jacoco/org.jacoco.report/src/org/jacoco/report/internal/html/page/
DTablePage.java68 context.getResources().getLink(folder, Resources.SORT_SCRIPT)); in head()
74 context.getResources(), folder); in content()
DSourceFilePage.java70 head.link("stylesheet", context.getResources().getLink(folder, in head()
72 head.script(context.getResources().getLink(folder, in head()
/external/javaparser/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javaparsermodel/contexts/
DTryWithResourceContext.java50 for (Expression expr : wrappedNode.getResources()) { in solveSymbolAsValue()
70 for (Expression expr : wrappedNode.getResources()) { in solveSymbol()
95 NodeList<Expression> resources = wrappedNode.getResources(); in localVariablesExposedToChild()
/external/subsampling-scale-image-view/sample/src/main/java/com/davemorrissey/labs/subscaleview/test/extension/views/
DPinView.java33 float density = getResources().getDisplayMetrics().densityDpi; in initialise()
34 pin = BitmapFactory.decodeResource(this.getResources(), drawable.pushpin_blue); in initialise()

1234567891011