/external/robolectric-shadows/resources/src/main/java/org/robolectric/res/ |
D | ResourceIds.java | 7 public static boolean isFrameworkResource(int resId) { in isFrameworkResource() argument 8 return ((resId >>> 24) == 0x1); in isFrameworkResource() 11 public static int getPackageIdentifier(int resId) { in getPackageIdentifier() argument 12 return (resId >>> 24); in getPackageIdentifier() 15 public static int getTypeIdentifier(int resId) { in getTypeIdentifier() argument 16 return (resId & 0x00FF0000) >>> 16; in getTypeIdentifier() 19 public static int getEntryIdentifier(int resId) { in getEntryIdentifier() argument 20 return resId & 0x0000FFFF; in getEntryIdentifier()
|
D | PackageResourceTable.java | 62 public TypedResource getValue(int resId, ResTable_config config) { in getValue() argument 63 return resources.get(getResName(resId), config); in getValue() 99 public InputStream getRawValue(int resId, ResTable_config config) { in getRawValue() argument 100 return getRawValue(getResName(resId), config); in getRawValue() 108 void addResource(int resId, String type, String name) { in addResource() argument 109 if (ResourceIds.isFrameworkResource(resId)) { in addResource() 110 androidResourceIdGenerator.record(resId, type, name); in addResource() 113 int resIdPackageIdentifier = ResourceIds.getPackageIdentifier(resId); in addResource() 120 ResName existingEntry = resourceTable.put(resId, resName); in addResource() 122 …throw new IllegalArgumentException("ResId " + Integer.toHexString(resId) + " mapped to both " + re… in addResource()
|
D | RoutingResourceTable.java | 23 @Override public InputStream getRawValue(int resId, ResTable_config config) { in getRawValue() argument 24 ResName resName = getResName(resId); in getRawValue() 32 @Override public TypedResource getValue(int resId, ResTable_config config) { in getValue() argument 33 ResName resName = pickFor(resId).getResName(resId); in getValue() 67 private PackageResourceTable pickFor(int resId) { in pickFor() argument 69 if (resourceTable.getPackageIdentifier() == ResourceIds.getPackageIdentifier(resId)) { in pickFor()
|
D | ResourceIdGenerator.java | 39 public void record(int resId, String type, String name) { in record() argument 42 typeTracker = new TypeTracker(ResourceIds.getTypeIdentifier(resId)); in record() 45 typeTracker.record(ResourceIds.getEntryIdentifier(resId)); in record()
|
D | ResourceTable.java | 14 TypedResource getValue(int resId, ResTable_config config); in getValue() argument 22 InputStream getRawValue(int resId, ResTable_config config); in getRawValue() argument
|
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/ |
D | ShadowSoundPool.java | 74 protected int load(Context context, int resId, int priority) { in load() argument 76 idToRes.put(soundId, resId); in load() 102 public void notifyResourceLoaded(int resId, boolean success) { in notifyResourceLoaded() argument 105 if (idToRes.valueAt(resIdx) == resId) { in notifyResourceLoaded() 128 public boolean wasResourcePlayed(int resId) { in wasResourcePlayed() argument 130 if (idIsForResource(playback.soundId, resId)) { in wasResourcePlayed() 149 public List<Playback> getResourcePlaybacks(int resId) { in getResourcePlaybacks() argument 152 if (idIsForResource(playback.soundId, resId)) { in getResourcePlaybacks() 163 private boolean idIsForResource(int soundId, int resId) { in idIsForResource() argument 164 return idToRes.indexOfKey(soundId) >= 0 && idToRes.get(soundId) == resId; in idIsForResource()
|
D | ShadowLegacyAssetManager.java | 339 public CharSequence[] getResourceTextArray(int resId) { in getResourceTextArray() argument 340 TypedResource value = getAndResolve(resId, config, true); in getResourceTextArray() 345 TypedResource typedResource = resolve(items.get(i), config, resId); in getResourceTextArray() 592 …protected XmlResourceParser loadXmlResourceParser(int resId, String type) throws Resources.NotFoun… in loadXmlResourceParser() argument 593 ResName resName = getResName(resId); in loadXmlResourceParser() 605 …ResourceTable resourceProvider = ResourceIds.isFrameworkResource(resId) ? RuntimeEnvironment.getSy… in loadXmlResourceParser() 730 public int[] getArrayIntResource(int resId) { in getArrayIntResource() argument 731 TypedResource value = getAndResolve(resId, config, true); in getArrayIntResource() 736 TypedResource typedResource = resolve(items.get(i), config, resId); in getArrayIntResource() 743 protected int[] getResourceIntArray(int resId) { in getResourceIntArray() argument [all …]
|
D | ShadowToast.java | 31 protected static Toast makeText(Context context, int resId, int duration) { in makeText() argument 32 return makeText(context, context.getResources().getString(resId), duration); in makeText() 51 protected void setText(int resId) { in setText() argument 52 this.text = RuntimeEnvironment.application.getString(resId); in setText()
|
D | ShadowLegacyResourcesImpl.java | 63 public String getQuantityString(int resId, int quantity) throws Resources.NotFoundException { in getQuantityString() argument 66 …TypedResource typedResource = shadowAssetManager.getResourceTable().getValue(resId, shadowAssetMan… in getQuantityString() 76 …etString(), ResType.CHAR_SEQUENCE, pluralRules.getXmlContext()), shadowAssetManager.config, resId); in getQuantityString() 127 …public XmlResourceParser loadXmlResourceParser(int resId, String type) throws Resources.NotFoundEx… in loadXmlResourceParser() argument 129 return shadowAssetManager.loadXmlResourceParser(resId, type); in loadXmlResourceParser()
|
D | ShadowResources.java | 106 protected String getQuantityString(int resId, int quantity) throws Resources.NotFoundException { in getQuantityString() argument 111 .getValue(resId, shadowAssetManager.config); in getQuantityString() 122 shadowAssetManager.config, resId); in getQuantityString() 128 return directlyOn(realResources, Resources.class).getQuantityString(resId, quantity); in getQuantityString() 201 protected XmlResourceParser loadXmlResourceParser(int resId, String type) in loadXmlResourceParser() argument 205 return shadowAssetManager.loadXmlResourceParser(resId, type); in loadXmlResourceParser() 208 ClassParameter.from(int.class, resId), in loadXmlResourceParser()
|
D | ShadowStateListDrawable.java | 18 public void addState(int stateId, int resId) { in addState() argument 19 stateToResource.put(stateId, resId); in addState()
|
D | ShadowArscResourcesImpl.java | 88 public String getQuantityString(int resId, int quantity) throws Resources.NotFoundException { in getQuantityString() argument 91 …TypedResource typedResource = shadowAssetManager.getResourceTable().getValue(resId, shadowAssetMan… in getQuantityString() 101 …etString(), ResType.CHAR_SEQUENCE, pluralRules.getXmlContext()), shadowAssetManager.config, resId); in getQuantityString()
|
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/android/ |
D | ResourceLoaderTest.java | 96 Integer resId = resourceProvider.getResourceId(internalResource); in shouldMakeInternalResourcesAvailable() local 97 assertThat(resId).isNotNull(); in shouldMakeInternalResourcesAvailable() 98 assertThat(resourceProvider.getResName(resId)).isEqualTo(internalResource); in shouldMakeInternalResourcesAvailable() 103 assertThat(resId).isEqualTo(internalResourceId); in shouldMakeInternalResourcesAvailable() 105 assertThat(ApplicationProvider.getApplicationContext().getResources().getString(resId)) in shouldMakeInternalResourcesAvailable()
|
/external/robolectric-shadows/resources/src/main/java/org/robolectric/res/android/ |
D | DynamicRefTable.java | 97 int lookupResourceId(Ref<Integer> resId) { in lookupResourceId() argument 98 int res = resId.get(); in lookupResourceId() 112 resId.set((0xFFFFFF & (resId.get())) | (((int) mAssignedPackageId) << 24)); in lookupResourceId() 129 resId.set((res & 0x00ffffff) | (((int) translatedId) << 24)); in lookupResourceId()
|
/external/robolectric-shadows/robolectric/src/main/java/org/robolectric/res/ |
D | NullResourceTable.java | 23 public TypedResource getValue(int resId, ResTable_config config) { in getValue() argument 24 System.out.println("getValue(" + resId + ", \"" + config + "\")"); in getValue() 47 public InputStream getRawValue(int resId, ResTable_config config) { in getRawValue() argument
|
/external/setupcompat/main/java/com/google/android/setupcompat/internal/ |
D | FallbackThemeWrapper.java | 47 protected void onApplyThemeResource(Theme theme, int resId, boolean first) { in onApplyThemeResource() argument 48 theme.applyStyle(resId, false /* force */); in onApplyThemeResource()
|
/external/setupcompat/main/java/com/google/android/setupcompat/template/ |
D | FooterButtonInflater.java | 53 public FooterButton inflate(int resId) { in inflate() argument 54 XmlResourceParser parser = getResources().getXml(resId); in inflate()
|
/external/drrickorang/LoopbackApp/app/src/main/java/org/drrickorang/loopback/ |
D | AtraceScriptsWriter.java | 66 private static void copyResToFile(Context ctx, int resId, String targetFile) in copyResToFile() argument 68 InputStream inputStream = ctx.getResources().openRawResource(resId); in copyResToFile()
|
/external/deqp-deps/SPIRV-Tools/source/opt/ |
D | common_uniform_elim_pass.cpp | 189 const uint32_t resId = inst->result_id(); in DeleteIfUseless() local 190 assert(resId != 0); in DeleteIfUseless() 191 if (HasOnlyNamesAndDecorates(resId)) { in DeleteIfUseless() 462 uint32_t resId = instItr->result_id(); in CommonExtractElimination() local 463 context()->KillNamesAndDecorates(resId); in CommonExtractElimination() 464 (void)context()->ReplaceAllUsesWith(resId, replId); in CommonExtractElimination()
|
/external/swiftshader/third_party/SPIRV-Tools/source/opt/ |
D | common_uniform_elim_pass.cpp | 189 const uint32_t resId = inst->result_id(); in DeleteIfUseless() local 190 assert(resId != 0); in DeleteIfUseless() 191 if (HasOnlyNamesAndDecorates(resId)) { in DeleteIfUseless() 467 uint32_t resId = instItr->result_id(); in CommonExtractElimination() local 468 context()->KillNamesAndDecorates(resId); in CommonExtractElimination() 469 (void)context()->ReplaceAllUsesWith(resId, replId); in CommonExtractElimination()
|
/external/setupdesign/main/src/com/google/android/setupdesign/items/ |
D | SimpleInflater.java | 65 public T inflate(int resId) { in inflate() argument 66 XmlResourceParser parser = getResources().getXml(resId); in inflate()
|
/external/androidplot/Examples/DemoApp/src/com/androidplot/demos/ |
D | ListViewActivity.java | 52 public MyViewAdapter(Context context, int resId, List<View> views) { in MyViewAdapter() argument 53 super(context, resId, views); in MyViewAdapter()
|
/external/subsampling-scale-image-view/library/src/main/java/com/davemorrissey/labs/subscaleview/ |
D | ImageSource.java | 74 public static ImageSource resource(int resId) { in resource() argument 75 return new ImageSource(resId); in resource()
|
/external/setupcompat/partnerconfig/java/com/google/android/setupcompat/partnerconfig/ |
D | PartnerConfigHelper.java | 349 private TypedValue getTypedValueFromResource(Resources resource, int resId, int type) { in getTypedValueFromResource() argument 351 resource.getValue(resId, value, true); in getTypedValueFromResource() 355 + Integer.toHexString(resId) in getTypedValueFromResource()
|
/external/robolectric-shadows/robolectric/src/main/java/org/robolectric/android/ |
D | AttributeSetBuilder.java | 22 AttributeSetBuilder addAttribute(@IdRes int resId, String value); in addAttribute() argument
|