/external/javaparser/javaparser-testing/src/test/java/com/github/javaparser/ast/stmt/ |
D | TryStmtTest.java | 22 assertInstanceOf(VariableDeclarationExpr.class, tryStmt.getResources().get(0)); in simpleTest() 28 assertInstanceOf(VariableDeclarationExpr.class, tryStmt.getResources().get(0)); in multipleTest() 35 assertInstanceOf(VariableDeclarationExpr.class, tryStmt.getResources().get(0)); in modifiersTest() 42 assertInstanceOf(NameExpr.class, tryStmt.getResources().get(0)); in simpleVariable() 49 assertInstanceOf(NameExpr.class, tryStmt.getResources().get(0)); in twoSimpleVariables() 50 assertInstanceOf(NameExpr.class, tryStmt.getResources().get(1)); in twoSimpleVariables() 57 assertInstanceOf(FieldAccessExpr.class, tryStmt.getResources().get(0)); in complexVariable() 64 assertInstanceOf(FieldAccessExpr.class, tryStmt.getResources().get(0)); in superAccess() 71 assertInstanceOf(FieldAccessExpr.class, tryStmt.getResources().get(0)); in outerClassAccess()
|
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/ |
D | ShadowDrawableTest.java | 52 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()
|
D | ShadowBitmapFactoryTest.java | 37 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()
|
D | ShadowBitmapDrawableTest.java | 29 ((Application) ApplicationProvider.getApplicationContext()).getResources(); 102 new BitmapDrawable(ApplicationProvider.getApplicationContext().getResources(), bitmap); in constructor_shouldSetTheIntrinsicWidthAndHeightToTheWidthAndHeightOfTheBitmap() 111 ApplicationProvider.getApplicationContext().getResources(), (Bitmap) null)) in constructor_shouldAcceptNullBitmap()
|
D | ShadowTextViewTest.java | 147 …assertThat(white.getCurrentTextColor()).isEqualTo(activity.getResources().getColor(android.R.color… in shouldSetTextAndTextColorWhileInflatingXmlLayout() 151 …assertThat(grey.getCurrentTextColor()).isEqualTo(activity.getResources().getColor(R.color.grey42)); in shouldSetTextAndTextColorWhileInflatingXmlLayout() 165 …assertThat(white.getCurrentHintTextColor()).isEqualTo(activity.getResources().getColor(android.R.c… in shouldSetHintAndHintColorWhileInflatingXmlLayout() 169 …assertThat(grey.getCurrentHintTextColor()).isEqualTo(activity.getResources().getColor(R.color.grey… in shouldSetHintAndHintColorWhileInflatingXmlLayout() 443 ApplicationProvider.getApplicationContext().getResources().getDisplayMetrics().density = 1.5f; in setTextSize_shouldHandleDips() 455 ApplicationProvider.getApplicationContext().getResources().getDisplayMetrics().scaledDensity = in setTextSize_shouldHandleSp() 464 ApplicationProvider.getApplicationContext().getResources().getDisplayMetrics().density = 1.5f; in setTextSize_shouldHandlePixels()
|
/external/emma/core/java12/com/vladium/util/ |
D | ResourceLoader.java | 73 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/grpc-grpc-java/core/src/test/java/io/grpc/ |
D | ReplacingClassLoader.java | 48 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/drrickorang/LoopbackApp/app/src/main/java/org/drrickorang/loopback/ |
D | SettingsActivity.java | 120 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/setupcompat/main/java/com/google/android/setupcompat/template/ |
D | FooterButtonInflater.java | 42 public Resources getResources() { in getResources() method in FooterButtonInflater 43 return context.getResources(); in getResources() 54 XmlResourceParser parser = getResources().getXml(resId); in inflate()
|
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/android/ |
D | DrawableResourceLoaderTest.java | 35 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()
|
D | ResourceLoaderTest.java | 47 .getResources() in checkDefaultBooleanValue() 57 .getResources() in checkQualifiedBooleanValue() 105 assertThat(ApplicationProvider.getApplicationContext().getResources().getString(resId)) in shouldMakeInternalResourcesAvailable()
|
D | XmlResourceParserImplTest.java | 45 parser = context.getResources().getXml(R.xml.preferences); in setUp() 580 parser = context.getResources().getXml(R.xml.has_attribute_resource_value); in testGetAttributeResourceValueIntInt() 588 parser = context.getResources().getXml(R.xml.has_attribute_resource_value); in testGetAttributeResourceValueStringStringInt() 712 parser = context.getResources().getXml(R.xml.has_id); in testGetIdAttributeResourceValue_defaultValue() 725 parser = context.getResources().getXml(R.xml.has_style_attribute_reference); in getStyleAttribute_allowStyleAttrReference() 732 parser = context.getResources().getXml(R.xml.has_parent_style_reference); in getStyleAttribute_allowStyleAttrReferenceLackingExplicitAttrType()
|
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/android/controller/ |
D | ActivityControllerTest.java | 226 ApplicationProvider.getApplicationContext().getResources().getConfiguration()); in configurationChange_callsLifecycleMethodsAndAppliesConfig() 233 … assertThat(controller.get().getResources().getConfiguration().fontScale).isEqualTo(newFontScale); in configurationChange_callsLifecycleMethodsAndAppliesConfig() 240 ApplicationProvider.getApplicationContext().getResources().getConfiguration()); in configurationChange_callsOnConfigurationChangedAndAppliesConfigWhenAllManaged() 248 …assertThat(configController.get().getResources().getConfiguration().fontScale).isEqualTo(newFontSc… in configurationChange_callsOnConfigurationChangedAndAppliesConfigWhenAllManaged() 255 ApplicationProvider.getApplicationContext().getResources().getConfiguration()); in configurationChange_callsLifecycleMethodsAndAppliesConfigWhenAnyNonManaged() 264 …assertThat(configController.get().getResources().getConfiguration().fontScale).isEqualTo(newFontSc… in configurationChange_callsLifecycleMethodsAndAppliesConfigWhenAnyNonManaged() 265 …assertThat(configController.get().getResources().getConfiguration().orientation).isEqualTo(newOrie… in configurationChange_callsLifecycleMethodsAndAppliesConfigWhenAnyNonManaged() 284 ApplicationProvider.getApplicationContext().getResources().getConfiguration()); in configurationChange_restoresTheme() 300 ApplicationProvider.getApplicationContext().getResources().getConfiguration()); in configurationChange_reattachesRetainedFragments()
|
/external/androidplot/AndroidPlot-Core/src/main/java/com/androidplot/util/ |
D | Configurator.java | 115 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/ |
D | ShadowArscAssetManager.java | 204 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/setupdesign/main/src/com/google/android/setupdesign/ |
D | SetupWizardLayout.java | 132 decorPaddingTop = getResources().getDimensionPixelSize(R.dimen.sud_decor_padding_top); in init() 142 getResources().getValue(R.dimen.sud_illustration_aspect_ratio, out, true); in init() 316 final Drawable backgroundTileDrawable = getContext().getResources().getDrawable(backgroundTile); in setBackgroundTile() 329 final Drawable assetDrawable = context.getResources().getDrawable(asset); in getIllustration() 330 final Drawable tile = context.getResources().getDrawable(horizontalTile); in getIllustration() 337 if (context.getResources().getBoolean(R.bool.sudUseTabletLayout)) { in getIllustration()
|
/external/sl4a/ScriptingLayerForAndroid/src/org/connectbot/ |
D | HelpTopicActivity.java | 41 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()
|
D | HelpActivity.java | 51 this.setTitle(String.format("%s: %s", getResources().getText(R.string.application_nice_title), in onCreate() 52 getResources().getText(R.string.title_help))); in onCreate()
|
/external/javaparser/javaparser-symbol-solver-testing/src/test/resources/javasymbolsolver_0_6_0/expected_output/java-symbol-solver-core/ |
D | com_github_javaparser_symbolsolver_javaparsermodel_contexts_TryWithResourceContext.txt | 1 Line 45) wrappedNode.getResources() ==> com.github.javaparser.ast.stmt.TryStmt.getResources() 13 Line 63) wrappedNode.getResources() ==> com.github.javaparser.ast.stmt.TryStmt.getResources()
|
/external/javaparser/javaparser-core/src/main/java/com/github/javaparser/ast/validator/ |
D | Java7Validator.java | 13 && n.getResources().isEmpty() 17 for (Expression resource : n.getResources()) {
|
/external/jacoco/org.jacoco.report/src/org/jacoco/report/internal/html/page/ |
D | TablePage.java | 68 context.getResources().getLink(folder, Resources.SORT_SCRIPT)); in head() 74 context.getResources(), folder); in content()
|
D | SourceFilePage.java | 72 context.getResources().getLink(folder, in head() 76 context.getResources().getLink(folder, in head()
|
/external/subsampling-scale-image-view/sample/src/main/java/com/davemorrissey/labs/subscaleview/test/extension/views/ |
D | PinView.java | 33 float density = getResources().getDisplayMetrics().densityDpi; in initialise() 34 pin = BitmapFactory.decodeResource(this.getResources(), drawable.pushpin_blue); in initialise()
|
/external/setupdesign/main/src/com/google/android/setupdesign/util/ |
D | Partner.java | 108 final Resources ourResources = context.getResources(); in getResourceEntry() 116 return new ResourceEntry(context.getPackageName(), context.getResources(), id, false); in getResourceEntry() 196 public Resources getResources() { in getResources() method in Partner
|
/external/sl4a/Common/src/com/googlecode/android_scripting/facade/ |
D | FacadeManager.java | 90 return mService.getResources().getIdentifier("script_logo_48", "drawable", packageName); in getAndroidFacadeResources() 96 return mService.getResources().getIdentifier(identifier, "string", packageName); in getAndroidFacadeResources()
|