Home
last modified time | relevance | path

Searched refs:Res_value (Results 1 – 15 of 15) sorted by relevance

/external/robolectric-shadows/resources/src/main/java/org/robolectric/res/android/
DAttributeResolution9.java11 import org.robolectric.res.android.ResourceTypes.Res_value;
100 Res_value value; in ResolveAttrs()
107 final Ref<Res_value> valueRef = new Ref<>(null); in ResolveAttrs()
110 if (value.dataType == Res_value.TYPE_REFERENCE) { in ResolveAttrs()
139 value = Res_value.NULL_VALUE; in ResolveAttrs()
148 value = new Res_value((byte) Res_value.TYPE_ATTRIBUTE, src_values[ii]); in ResolveAttrs()
165 final Ref<Res_value> valueRef = new Ref<>(value); in ResolveAttrs()
169 if (value.dataType != Res_value.TYPE_NULL) { in ResolveAttrs()
179 } else if (value.data != Res_value.DATA_NULL_EMPTY) { in ResolveAttrs()
202 if (value.dataType == Res_value.TYPE_REFERENCE && value.data == 0) { in ResolveAttrs()
[all …]
DAttributeResolution10.java12 import org.robolectric.res.android.ResourceTypes.Res_value;
104 Res_value value; in ResolveAttrs()
111 final Ref<Res_value> valueRef = new Ref<>(null); in ResolveAttrs()
114 if (value.dataType == Res_value.TYPE_REFERENCE) { in ResolveAttrs()
143 value = Res_value.NULL_VALUE; in ResolveAttrs()
152 value = new Res_value((byte) Res_value.TYPE_ATTRIBUTE, src_values[ii]); in ResolveAttrs()
169 final Ref<Res_value> valueRef = new Ref<>(value); in ResolveAttrs()
173 if (value.dataType != Res_value.TYPE_NULL) { in ResolveAttrs()
183 } else if (value.data != Res_value.DATA_NULL_EMPTY) { in ResolveAttrs()
206 if (value.dataType == Res_value.TYPE_REFERENCE && value.data == 0) { in ResolveAttrs()
[all …]
DAttributeResolution.java6 import org.robolectric.res.android.ResourceTypes.Res_value;
75 Res_value value; in ResolveAttrs()
82 Ref<Res_value> valueRef = new Ref<>(null); in ResolveAttrs()
85 if (value.dataType == Res_value.TYPE_REFERENCE) { in ResolveAttrs()
117 value = Res_value.NULL_VALUE; in ResolveAttrs()
126 value = new Res_value((byte) Res_value.TYPE_ATTRIBUTE, srcValues[ii]); in ResolveAttrs()
143 Ref<Res_value> valueRef = new Ref<>(value); in ResolveAttrs()
147 if (value.dataType != Res_value.TYPE_NULL) { in ResolveAttrs()
188 if (value.dataType == Res_value.TYPE_REFERENCE && value.data == 0) { in ResolveAttrs()
192 value = Res_value.NULL_VALUE; in ResolveAttrs()
[all …]
DResourceTypes.java188 public static class Res_value class in ResourceTypes
311 public static final Res_value NULL_VALUE = new Res_value((byte) TYPE_NULL, DATA_NULL_UNDEFINED);
317 public Res_value() { in Res_value() method in ResourceTypes.Res_value
324 public Res_value(ByteBuffer buf, int offset) { in Res_value() method in ResourceTypes.Res_value
335 public Res_value(Res_value other) { in Res_value() method in ResourceTypes.Res_value
342 public Res_value(byte dataType, int data) { in Res_value() method in ResourceTypes.Res_value
356 public Res_value withType(byte dataType) { in withType()
357 return new Res_value(dataType, data); in withType()
360 public Res_value withData(int data) { in withData()
361 return new Res_value(dataType, data); in withData()
[all …]
DCppAssetManager2.java41 import org.robolectric.res.android.ResourceTypes.Res_value;
77 public Res_value value = new Res_value();
849 short density_override, Ref<Res_value> out_value, in GetResource()
866 out_value.set(new Res_value((byte) Res_value.TYPE_REFERENCE, resid)); in GetResource()
875 Res_value device_value = entry.get().entry.getResValue(); in GetResource()
901 public ApkAssetsCookie ResolveReference(ApkAssetsCookie cookie, Ref<Res_value> in_out_value, in ResolveReference()
907 for (int iteration = 0; in_out_value.get().dataType == Res_value.TYPE_REFERENCE && in ResolveReference()
1020 final Ref<Res_value> valueRef = new Ref<>(new_entry_.value); in GetBag()
1034 curOffset += size + ResTable_map.SIZEOF-Res_value.SIZEOF; in GetBag()
1100 final Ref<Res_value> valueRef = new Ref<>(new_entry_.value); in GetBag()
[all …]
DResTableTheme.java9 import static org.robolectric.res.android.ResourceTypes.Res_value.TYPE_ATTRIBUTE;
10 import static org.robolectric.res.android.ResourceTypes.Res_value.TYPE_NULL;
23 import org.robolectric.res.android.ResourceTypes.Res_value;
76 public int GetAttribute(int resID, Ref<Res_value> valueRef, in GetAttribute()
130 || te.value.data == Res_value.DATA_NULL_EMPTY) { in GetAttribute()
147 public int resolveAttributeReference(Ref<Res_value> inOutValue, in resolveAttributeReference()
264 && curEntry.value.data != Res_value.DATA_NULL_EMPTY)) { in applyStyle()
267 curEntry.value = new Res_value(bag_entry.map.value); in applyStyle()
365 Res_value value = new Res_value();
374 value = new Res_value(src.value); in theme_entry()
DDynamicRefTable.java16 import org.robolectric.res.android.ResourceTypes.Res_value;
133 int lookupResourceValue(Ref<Res_value> value) { in lookupResourceValue()
135 Res_value inValue = value.get(); in lookupResourceValue()
164 value.set(new Res_value(resolvedType, resIdRef.get())); in lookupResourceValue()
DResXMLParser.java34 import org.robolectric.res.android.ResourceTypes.Res_value;
41 static final int SIZEOF_RESXMLTREE_CDATA_EXT = 4 + ResourceTypes.Res_value.SIZEOF;
124 int getTextValue(Res_value outValue) in getTextValue()
128 return ResourceTypes.Res_value.SIZEOF /* sizeof(Res_value) */; in getTextValue()
364 public int getAttributeValue(int idx, Ref<Res_value> outValue) in getAttributeValue()
379 return ResourceTypes.Res_value.SIZEOF /* sizeof(Res_value) */; in getAttributeValue()
DLoadedArsc.java40 import org.robolectric.res.android.ResourceTypes.Res_value;
304 if (entry_offset + entry_size > chunk_size - Res_value.SIZEOF) { in VerifyResTableEntry()
312 Res_value value = in VerifyResTableEntry()
313 new Res_value(entry.myBuf(), entry.myOffset() + ResTable_entry.SIZEOF); in VerifyResTableEntry()
315 if (value_size < Res_value.SIZEOF) { in VerifyResTableEntry()
DResTable.java47 import org.robolectric.res.android.ResourceTypes.Res_value;
361 public final int getResource(int resID, Ref<Res_value> outValue, boolean mayBeBag, int density,
410 Res_value value = new Res_value(entry.entry.myBuf(), entry.entry.myOffset() + entry.entry.size);
447 public final int resolveReference(Ref<Res_value> value, int blockIndex,
452 public final int resolveReference(Ref<Res_value> value, int blockIndex,
457 public final int resolveReference(Ref<Res_value> value, int blockIndex,
2953 final Ref<Res_value> valueRef = new Ref<>(cur.map.value); in getBagLocked()
2972 curOff += size + ResTable_map.SIZEOF-Res_value.SIZEOF; in getBagLocked()
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowXmlBlock.java15 import org.robolectric.res.android.ResourceTypes.Res_value;
301 final Ref<Res_value> valueRef = new Ref<>(new Res_value()); in nativeGetStyleAttribute()
305 Res_value value = valueRef.get(); in nativeGetStyleAttribute()
307 return value.dataType == org.robolectric.res.android.ResourceTypes.Res_value.TYPE_REFERENCE in nativeGetStyleAttribute()
308 || value.dataType == org.robolectric.res.android.ResourceTypes.Res_value.TYPE_ATTRIBUTE in nativeGetStyleAttribute()
DShadowArscAssetManager10.java76 import org.robolectric.res.android.ResourceTypes.Res_value;
349 static int CopyValue(/*JNIEnv* env,*/ ApkAssetsCookie cookie, Res_value value, int ref, in CopyValue()
843 final Ref<Res_value> value = new Ref<>(null); in nativeGetResourceValue()
876 Res_value bag_value = null; in nativeGetResourceBagValue()
890 final Ref<Res_value> value = new Ref<>(bag_value); in nativeGetResourceBagValue()
943 final Ref<Res_value> value = new Ref<>(entry.value); in nativeGetResourceStringArray()
953 if (value.get().dataType == Res_value.TYPE_STRING) { in nativeGetResourceStringArray()
1006 final Ref<Res_value> value = new Ref<>(entry.value); in nativeGetResourceStringArrayInfo()
1018 if (value.get().dataType == Res_value.TYPE_STRING) { in nativeGetResourceStringArrayInfo()
1050 final Ref<Res_value> value = new Ref<>(entry.value); in nativeGetResourceIntArray()
[all …]
DShadowArscAssetManager9.java74 import org.robolectric.res.android.ResourceTypes.Res_value;
345 static int CopyValue(/*JNIEnv* env,*/ ApkAssetsCookie cookie, Res_value value, int ref, in CopyValue()
839 final Ref<Res_value> value = new Ref<>(null); in nativeGetResourceValue()
872 Res_value bag_value = null; in nativeGetResourceBagValue()
886 final Ref<Res_value> value = new Ref<>(bag_value); in nativeGetResourceBagValue()
939 final Ref<Res_value> value = new Ref<>(entry.value); in nativeGetResourceStringArray()
949 if (value.get().dataType == Res_value.TYPE_STRING) { in nativeGetResourceStringArray()
1002 final Ref<Res_value> value = new Ref<>(entry.value); in nativeGetResourceStringArrayInfo()
1014 if (value.get().dataType == Res_value.TYPE_STRING) { in nativeGetResourceStringArrayInfo()
1046 final Ref<Res_value> value = new Ref<>(entry.value); in nativeGetResourceIntArray()
[all …]
DShadowArscAssetManager.java63 import org.robolectric.res.android.ResourceTypes.Res_value;
527 final Ref<Res_value> value = new Ref<>(null); in loadResourceValue()
556 …private static int copyValue(TypedValue outValue, ResTable table, Res_value value, int ref, int b… in copyValue()
561 …private static int copyValue(TypedValue outValue, ResTable table, Res_value value, int ref, int b… in copyValue()
634 final Ref<Res_value> valueRef = new Ref<>(null); in loadResourceBagValueInternal()
876 Res_value value; in retrieveArray()
912 final Ref<Res_value> resValueRef = new Ref<>(value); in retrieveArray()
926 value = Res_value.NULL_VALUE; in retrieveArray()
1033 final Ref<Res_value> value = new Ref<>(null); in loadThemeAttributeValue()
1111 final Ref<Res_value> valueRef = new Ref<>(null); in getArrayStringResource()
[all …]
/external/robolectric-shadows/robolectric/src/main/java/org/robolectric/android/
DAttributeSetBuilderImpl.java42 import org.robolectric.res.android.ResourceTypes.Res_value;
340 Res_value resValue = new Res_value(type.code(), valueInt); in build()
402 outValue.type = Res_value.TYPE_REFERENCE; in parse()