/external/smali/dexlib2/src/main/java/org/jf/dexlib2/util/ |
EncodedValueUtils.java | 38 public static boolean isDefaultValue(EncodedValue encodedValue) { 39 switch (encodedValue.getValueType()) { 41 return !((BooleanEncodedValue)encodedValue).getValue(); 43 return ((ByteEncodedValue)encodedValue).getValue() == 0; 45 return ((CharEncodedValue)encodedValue).getValue() == 0; 47 return ((DoubleEncodedValue)encodedValue).getValue() == 0; 49 return ((FloatEncodedValue)encodedValue).getValue() == 0; 51 return ((IntEncodedValue)encodedValue).getValue() == 0; 53 return ((LongEncodedValue)encodedValue).getValue() == 0 [all...] |
/external/smali/dexlib2/src/main/java/org/jf/dexlib2/immutable/value/ |
ImmutableEncodedValueFactory.java | 46 public static ImmutableEncodedValue of(@Nonnull EncodedValue encodedValue) { 47 switch (encodedValue.getValueType()) { 49 return ImmutableByteEncodedValue.of((ByteEncodedValue)encodedValue); 51 return ImmutableShortEncodedValue.of((ShortEncodedValue)encodedValue); 53 return ImmutableCharEncodedValue.of((CharEncodedValue)encodedValue); 55 return ImmutableIntEncodedValue.of((IntEncodedValue)encodedValue); 57 return ImmutableLongEncodedValue.of((LongEncodedValue)encodedValue); 59 return ImmutableFloatEncodedValue.of((FloatEncodedValue)encodedValue); 61 return ImmutableDoubleEncodedValue.of((DoubleEncodedValue)encodedValue); [all...] |
/external/smali/baksmali/src/main/java/org/jf/baksmali/Adaptors/EncodedValue/ |
EncodedValueAdaptor.java | 29 package org.jf.baksmali.Adaptors.EncodedValue; 43 public static void writeTo(@Nonnull IndentingWriter writer, @Nonnull EncodedValue encodedValue, 46 switch (encodedValue.getValueType()) { 48 AnnotationEncodedValueAdaptor.writeTo(writer, (AnnotationEncodedValue)encodedValue, containingClass); 51 ArrayEncodedValueAdaptor.writeTo(writer, (ArrayEncodedValue)encodedValue, containingClass); 54 BooleanRenderer.writeTo(writer, ((BooleanEncodedValue)encodedValue).getValue()); 57 ByteRenderer.writeTo(writer, ((ByteEncodedValue)encodedValue).getValue()); 60 CharRenderer.writeTo(writer, ((CharEncodedValue)encodedValue).getValue()); 63 DoubleRenderer.writeTo(writer, ((DoubleEncodedValue)encodedValue).getValue()) [all...] |
ArrayEncodedValueAdaptor.java | 29 package org.jf.baksmali.Adaptors.EncodedValue; 32 import org.jf.dexlib2.iface.value.EncodedValue; 45 Collection<? extends EncodedValue> values = arrayEncodedValue.getValue(); 54 for (EncodedValue encodedValue: values) { 60 EncodedValueAdaptor.writeTo(writer, encodedValue, containingClass);
|
/external/smali/dexlib2/src/main/java/org/jf/dexlib2/writer/pool/ |
DexPool.java | 57 EncodedValue, AnnotationElement, StringPool, TypePool, ProtoPool, FieldPool, MethodPool, ClassPool, 121 @Nonnull EncodedValue encodedValue) throws IOException { 122 switch (encodedValue.getValueType()) { 124 AnnotationEncodedValue annotationEncodedValue = (AnnotationEncodedValue)encodedValue; 128 ArrayEncodedValue arrayEncodedValue = (ArrayEncodedValue)encodedValue; 132 writer.writeBoolean(((BooleanEncodedValue)encodedValue).getValue()); 135 writer.writeByte(((ByteEncodedValue)encodedValue).getValue()); 138 writer.writeChar(((CharEncodedValue)encodedValue).getValue()); 141 writer.writeDouble(((DoubleEncodedValue)encodedValue).getValue()) [all...] |
/external/smali/dexlib2/src/main/java/org/jf/dexlib2/writer/builder/ |
DexBuilder.java | 77 @Nullable EncodedValue initialValue, 209 @Nonnull BuilderEncodedValue encodedValue) throws IOException { 210 switch (encodedValue.getValueType()) { 212 BuilderAnnotationEncodedValue annotationEncodedValue = (BuilderAnnotationEncodedValue)encodedValue; 216 BuilderArrayEncodedValue arrayEncodedValue = (BuilderArrayEncodedValue)encodedValue; 220 writer.writeBoolean(((BooleanEncodedValue)encodedValue).getValue()); 223 writer.writeByte(((ByteEncodedValue)encodedValue).getValue()); 226 writer.writeChar(((CharEncodedValue)encodedValue).getValue()); 229 writer.writeDouble(((DoubleEncodedValue)encodedValue).getValue()); 232 writer.writeEnum(((BuilderEnumEncodedValue)encodedValue).getValue()) [all...] |
BuilderClassPool.java | 47 import org.jf.dexlib2.iface.value.EncodedValue; 138 EncodedValue encodedValue = input.getInitialValue(); 139 return encodedValue != null && !EncodedValueUtils.isDefaultValue(encodedValue);
|
/external/smali/dexlib2/src/main/java/org/jf/dexlib2/rewriter/ |
EncodedValueRewriter.java | 45 public class EncodedValueRewriter implements Rewriter<EncodedValue> { 52 @Nonnull @Override public EncodedValue rewrite(@Nonnull EncodedValue encodedValue) { 53 switch (encodedValue.getValueType()) { 55 return new RewrittenTypeEncodedValue((TypeEncodedValue)encodedValue); 57 return new RewrittenFieldEncodedValue((FieldEncodedValue)encodedValue); 59 return new RewrittenMethodEncodedValue((MethodEncodedValue)encodedValue); 61 return new RewrittenEnumEncodedValue((EnumEncodedValue)encodedValue); 63 return new RewrittenArrayEncodedValue((ArrayEncodedValue)encodedValue); [all...] |
/art/tools/dexfuzz/src/dexfuzz/rawdex/ |
EncodedArray.java | 23 public EncodedValue[] values; 29 values = new EncodedValue[size]; 31 (values[i] = new EncodedValue()).read(file); 40 for (EncodedValue encodedValue : values) { 41 encodedValue.write(file); 49 for (EncodedValue value : values) {
|
/external/smali/dexlib2/src/main/java/org/jf/dexlib2/base/ |
BaseMethodParameter.java | 40 import org.jf.dexlib2.iface.value.EncodedValue; 63 EncodedValue encodedValue = annotationElement.getValue(); 64 if (encodedValue.getValueType() != ValueType.ARRAY) { 67 signatureValues = (ArrayEncodedValue)encodedValue; 76 for (EncodedValue signatureValue: signatureValues.getValue()) {
|
/cts/tools/release-parser/src/com/android/cts/releaseparser/ |
DexParser.java | 202 private String getEncodedValueString(EncodedValue encodedValue) { 203 switch (encodedValue.getValueType()) { 205 return String.format("0x%X", ((ByteEncodedValue) encodedValue).getValue()); 207 return String.format("%d", ((ShortEncodedValue) encodedValue).getValue()); 209 return String.format("%c", ((CharEncodedValue) encodedValue).getValue()); 211 return String.format("%d", ((IntEncodedValue) encodedValue).getValue()); 213 return String.format("%d", ((LongEncodedValue) encodedValue).getValue()); 215 return String.format("%f", ((FloatEncodedValue) encodedValue).getValue()); 217 return String.format("%f", ((DoubleEncodedValue) encodedValue).getValue()) [all...] |
/external/smali/dexlib2/src/test/java/org/jf/dexlib2/writer/ |
DexDataWriterTest.java | 209 private void testWriteEncodedIntHelper(int integerValue, int... encodedValue) throws IOException { 213 int[] arr = new int[encodedValue.length+1]; 214 arr[0] = ValueType.INT | ((encodedValue.length-1) << 5); 215 System.arraycopy(encodedValue, 0, arr, 1, encodedValue.length); 243 private void testWriteEncodedUintHelper(int integerValue, int... encodedValue) throws IOException { 247 int[] arr = new int[encodedValue.length+1]; 248 arr[0] = ValueType.METHOD | ((encodedValue.length-1) << 5); 249 System.arraycopy(encodedValue, 0, arr, 1, encodedValue.length) [all...] |
DexWriterSleb128Test.java | 228 private void performTest(int integerValue, byte[] encodedValue) throws IOException { 229 performTest(integerValue, encodedValue, encodedValue.length); 232 private void performTest(int integerValue, byte[] encodedValue, int encodedLength) throws IOException { 242 byte encoded = encodedValue[i];
|
DexWriterUleb128Test.java | 225 private void performTest(int integerValue, byte[] encodedValue) throws IOException { 226 performTest(integerValue, encodedValue, encodedValue.length); 229 private void performTest(int integerValue, byte[] encodedValue, int encodedLength) throws IOException { 239 Assert.assertEquals(String.format("Values not equal at index %d", i), encodedValue[i], writtenData[i]);
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/x509/extension/ |
AuthorityKeyIdentifierStructure.java | 29 * @param encodedValue a DER octet encoded string with the extension structure in it. 33 byte[] encodedValue) 36 super((ASN1Sequence)X509ExtensionUtil.fromExtensionValue(encodedValue));
|
X509ExtensionUtil.java | 33 byte[] encodedValue) 36 ASN1OctetString octs = (ASN1OctetString)ASN1Primitive.fromByteArray(encodedValue);
|
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/x509/extension/ |
AuthorityKeyIdentifierStructure.java | 31 * @param encodedValue a DER octet encoded string with the extension structure in it. 35 byte[] encodedValue) 38 super((ASN1Sequence)X509ExtensionUtil.fromExtensionValue(encodedValue));
|
X509ExtensionUtil.java | 35 byte[] encodedValue) 38 ASN1OctetString octs = (ASN1OctetString)ASN1Primitive.fromByteArray(encodedValue);
|
/external/apache-http/src/org/apache/http/client/utils/ |
URLEncodedUtils.java | 168 final String encodedValue = value != null ? encode(value, encoding) : ""; 173 result.append(encodedValue);
|
/external/bouncycastle/bcpkix/src/main/java/org/bouncycastle/cert/ |
X509v3CertificateBuilder.java | 149 * @param encodedValue a byte array representing the encoding of the extension value. 155 byte[] encodedValue) 158 extGenerator.addExtension(oid, isCritical, encodedValue);
|
/cts/tests/tests/location/src/android/location/cts/asn1/base/ |
Asn1Sequence.java | 180 Iterable<BitStream> encodedValue = null; 182 encodedValue = value.encodePerAligned(); 184 encodedValue = value.encodePerUnaligned(); 186 listBuilder.addAll(encodedValue);
|
Asn1IA5String.java | 305 int encodedValue = alphabet.indexOf(c); 306 if (encodedValue < 0) { 309 out.put((byte) encodedValue);
|
/external/smali/smali/src/main/antlr/ |
smaliTreeWalker.g | 60 import org.jf.dexlib2.iface.value.EncodedValue; 259 if (!AccessFlags.STATIC.isSet(accessFlags) && $field_initial_value.encodedValue != null) { 264 $field_initial_value.encodedValue, $annotations.annotations); 268 field_initial_value returns[EncodedValue encodedValue] 269 : ^(I_FIELD_INITIAL_VALUE literal) {$encodedValue = $literal.encodedValue;} 272 literal returns[EncodedValue encodedValue] 273 : integer_literal { $encodedValue = new ImmutableIntEncodedValue($integer_literal.value); [all...] |
/external/smali/dexlib2/src/main/java/org/jf/dexlib2/writer/ |
EncodedValueWriter.java | 46 EncodedValue> { 52 @Nonnull private final AnnotationSection<StringKey, TypeKey, ?, AnnotationElement, EncodedValue> annotationSection; 60 @Nonnull AnnotationSection<StringKey, TypeKey, ?, AnnotationElement, EncodedValue> annotationSection) { 69 protected abstract void writeEncodedValue(@Nonnull EncodedValue encodedValue) throws IOException; 86 public void writeArray(Collection<? extends EncodedValue> elements) throws IOException { 89 for (EncodedValue element: elements) {
|
/external/deqp/external/vulkancts/modules/vulkan/robustness/ |
vktRobustnessVertexAccessTests.cpp | 899 deUint32 encodedValue; 902 encodedValue = deMin32(deUint32(deFloatRound(normValue * 0x3u)), 0x3u); 904 encodedValue = deMin32(deUint32(deFloatRound(normValue * 0x3FFu)), 0x3FFu); 906 if (encodedValue == 0) [all...] |