Home
last modified time | relevance | path

Searched refs:encodedValue (Results 1 – 24 of 24) sorted by relevance

/external/smali/dexlib2/src/main/java/org/jf/dexlib2/immutable/value/
DImmutableEncodedValueFactory.java46 public static ImmutableEncodedValue of(@Nonnull EncodedValue encodedValue) { in of() argument
47 switch (encodedValue.getValueType()) { in of()
49 return ImmutableByteEncodedValue.of((ByteEncodedValue)encodedValue); in of()
51 return ImmutableShortEncodedValue.of((ShortEncodedValue)encodedValue); in of()
53 return ImmutableCharEncodedValue.of((CharEncodedValue)encodedValue); in of()
55 return ImmutableIntEncodedValue.of((IntEncodedValue)encodedValue); in of()
57 return ImmutableLongEncodedValue.of((LongEncodedValue)encodedValue); in of()
59 return ImmutableFloatEncodedValue.of((FloatEncodedValue)encodedValue); in of()
61 return ImmutableDoubleEncodedValue.of((DoubleEncodedValue)encodedValue); in of()
63 return ImmutableStringEncodedValue.of((StringEncodedValue)encodedValue); in of()
[all …]
/external/smali/baksmali/src/main/java/org/jf/baksmali/Adaptors/EncodedValue/
DEncodedValueAdaptor.java41 … public static void writeTo(IndentingWriter writer, EncodedValue encodedValue) throws IOException { in writeTo() argument
42 switch (encodedValue.getValueType()) { in writeTo()
44 AnnotationEncodedValueAdaptor.writeTo(writer, (AnnotationEncodedValue)encodedValue); in writeTo()
47 ArrayEncodedValueAdaptor.writeTo(writer, (ArrayEncodedValue)encodedValue); in writeTo()
50 BooleanRenderer.writeTo(writer, ((BooleanEncodedValue)encodedValue).getValue()); in writeTo()
53 ByteRenderer.writeTo(writer, ((ByteEncodedValue)encodedValue).getValue()); in writeTo()
56 CharRenderer.writeTo(writer, ((CharEncodedValue)encodedValue).getValue()); in writeTo()
59 DoubleRenderer.writeTo(writer, ((DoubleEncodedValue)encodedValue).getValue()); in writeTo()
63 … ReferenceUtil.writeFieldDescriptor(writer, ((EnumEncodedValue)encodedValue).getValue()); in writeTo()
66 … ReferenceUtil.writeFieldDescriptor(writer, ((FieldEncodedValue)encodedValue).getValue()); in writeTo()
[all …]
DArrayEncodedValueAdaptor.java50 for (EncodedValue encodedValue: values) { in writeTo()
56 EncodedValueAdaptor.writeTo(writer, encodedValue); in writeTo()
/external/smali/dexlib2/src/main/java/org/jf/dexlib2/writer/pool/
DDexPool.java94 … @Nonnull EncodedValue encodedValue) throws IOException { in writeEncodedValue() argument
95 switch (encodedValue.getValueType()) { in writeEncodedValue()
97 … AnnotationEncodedValue annotationEncodedValue = (AnnotationEncodedValue)encodedValue; in writeEncodedValue()
101 ArrayEncodedValue arrayEncodedValue = (ArrayEncodedValue)encodedValue; in writeEncodedValue()
105 writer.writeBoolean(((BooleanEncodedValue)encodedValue).getValue()); in writeEncodedValue()
108 writer.writeByte(((ByteEncodedValue)encodedValue).getValue()); in writeEncodedValue()
111 writer.writeChar(((CharEncodedValue)encodedValue).getValue()); in writeEncodedValue()
114 writer.writeDouble(((DoubleEncodedValue)encodedValue).getValue()); in writeEncodedValue()
117 writer.writeEnum(((EnumEncodedValue)encodedValue).getValue()); in writeEncodedValue()
120 writer.writeField(((FieldEncodedValue)encodedValue).getValue()); in writeEncodedValue()
[all …]
DClassPool.java264 EncodedValue encodedValue = input.getInitialValue();
265 return encodedValue != null && !EncodedValueUtils.isDefaultValue(encodedValue);
/external/smali/dexlib2/src/main/java/org/jf/dexlib2/writer/builder/
DBuilderContext.java92 @Nullable BuilderEncodedValue internNullableEncodedValue(@Nullable EncodedValue encodedValue) {
93 if (encodedValue == null) {
96 return internEncodedValue(encodedValue);
99 @Nonnull private BuilderEncodedValue internEncodedValue(@Nonnull EncodedValue encodedValue) {
100 switch (encodedValue.getValueType()) {
102 return internAnnotationEncodedValue((AnnotationEncodedValue)encodedValue);
104 return internArrayEncodedValue((ArrayEncodedValue)encodedValue);
106 boolean value = ((BooleanEncodedValue)encodedValue).getValue();
109 return new BuilderByteEncodedValue(((ByteEncodedValue)encodedValue).getValue());
111 return new BuilderCharEncodedValue(((CharEncodedValue)encodedValue).getValue());
[all …]
DDexBuilder.java210 … @Nonnull BuilderEncodedValue encodedValue) throws IOException {
211 switch (encodedValue.getValueType()) {
213 …BuilderAnnotationEncodedValue annotationEncodedValue = (BuilderAnnotationEncodedValue)encodedValue;
217 BuilderArrayEncodedValue arrayEncodedValue = (BuilderArrayEncodedValue)encodedValue;
221 writer.writeBoolean(((BooleanEncodedValue)encodedValue).getValue());
224 writer.writeByte(((ByteEncodedValue)encodedValue).getValue());
227 writer.writeChar(((CharEncodedValue)encodedValue).getValue());
230 writer.writeDouble(((DoubleEncodedValue)encodedValue).getValue());
233 writer.writeEnum(((BuilderEnumEncodedValue)encodedValue).getValue());
236 writer.writeField(((BuilderFieldEncodedValue)encodedValue).fieldReference);
[all …]
DBuilderClassPool.java136 EncodedValue encodedValue = input.getInitialValue();
137 return encodedValue != null && !EncodedValueUtils.isDefaultValue(encodedValue);
/external/smali/dexlib2/src/main/java/org/jf/dexlib2/util/
DEncodedValueUtils.java38 public static boolean isDefaultValue(EncodedValue encodedValue) { in isDefaultValue() argument
39 switch (encodedValue.getValueType()) { in isDefaultValue()
41 return !((BooleanEncodedValue)encodedValue).getValue(); in isDefaultValue()
43 return ((ByteEncodedValue)encodedValue).getValue() == 0; in isDefaultValue()
45 return ((CharEncodedValue)encodedValue).getValue() == 0; in isDefaultValue()
47 return ((DoubleEncodedValue)encodedValue).getValue() == 0; in isDefaultValue()
49 return ((FloatEncodedValue)encodedValue).getValue() == 0; in isDefaultValue()
51 return ((IntEncodedValue)encodedValue).getValue() == 0; in isDefaultValue()
53 return ((LongEncodedValue)encodedValue).getValue() == 0; in isDefaultValue()
57 return ((ShortEncodedValue)encodedValue).getValue() == 0; in isDefaultValue()
/external/smali/dexlib2/src/test/java/org/jf/dexlib2/writer/
DDexDataWriterTest.java209 … private void testWriteEncodedIntHelper(int integerValue, int... encodedValue) throws IOException { in testWriteEncodedIntHelper() argument
213 int[] arr = new int[encodedValue.length+1]; in testWriteEncodedIntHelper()
214 arr[0] = ValueType.INT | ((encodedValue.length-1) << 5); in testWriteEncodedIntHelper()
215 System.arraycopy(encodedValue, 0, arr, 1, encodedValue.length); in testWriteEncodedIntHelper()
243 …private void testWriteEncodedUintHelper(int integerValue, int... encodedValue) throws IOException { in testWriteEncodedUintHelper() argument
247 int[] arr = new int[encodedValue.length+1]; in testWriteEncodedUintHelper()
248 arr[0] = ValueType.METHOD | ((encodedValue.length-1) << 5); in testWriteEncodedUintHelper()
249 System.arraycopy(encodedValue, 0, arr, 1, encodedValue.length); in testWriteEncodedUintHelper()
281 … private void testWriteEncodedLongHelper(long longValue, int... encodedValue) throws IOException { in testWriteEncodedLongHelper() argument
285 int[] arr = new int[encodedValue.length+1]; in testWriteEncodedLongHelper()
[all …]
DDexWriterUleb128Test.java225 private void performTest(int integerValue, byte[] encodedValue) throws IOException { in performTest() argument
226 performTest(integerValue, encodedValue, encodedValue.length); in performTest()
229 …private void performTest(int integerValue, byte[] encodedValue, int encodedLength) throws IOExcept… in performTest() argument
239 …Assert.assertEquals(String.format("Values not equal at index %d", i), encodedValue[i], writtenData… in performTest()
DDexWriterSleb128Test.java228 private void performTest(int integerValue, byte[] encodedValue) throws IOException { in performTest() argument
229 performTest(integerValue, encodedValue, encodedValue.length); in performTest()
232 …private void performTest(int integerValue, byte[] encodedValue, int encodedLength) throws IOExcept… in performTest() argument
242 byte encoded = encodedValue[i]; in performTest()
/external/smali/dexlib2/src/main/java/org/jf/dexlib2/base/
DBaseMethodParameter.java63 EncodedValue encodedValue = annotationElement.getValue(); in getSignature() local
64 if (encodedValue.getValueType() != ValueType.ARRAY) { in getSignature()
67 signatureValues = (ArrayEncodedValue)encodedValue; in getSignature()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/x509/extension/
DSubjectKeyIdentifierStructure.java25 byte[] encodedValue) in SubjectKeyIdentifierStructure() argument
28 super((ASN1OctetString)X509ExtensionUtil.fromExtensionValue(encodedValue)); in SubjectKeyIdentifierStructure()
DX509ExtensionUtil.java27 byte[] encodedValue) in fromExtensionValue() argument
30 ASN1OctetString octs = (ASN1OctetString)ASN1Primitive.fromByteArray(encodedValue); in fromExtensionValue()
DAuthorityKeyIdentifierStructure.java35 byte[] encodedValue) in AuthorityKeyIdentifierStructure() argument
38 super((ASN1Sequence)X509ExtensionUtil.fromExtensionValue(encodedValue)); in AuthorityKeyIdentifierStructure()
/external/smali/smali/src/main/antlr3/
DsmaliTreeWalker.g258 if (!AccessFlags.STATIC.isSet(accessFlags) && $field_initial_value.encodedValue != null) {
263 $field_initial_value.encodedValue, $annotations.annotations);
267 field_initial_value returns[EncodedValue encodedValue]
268 : ^(I_FIELD_INITIAL_VALUE literal) {$encodedValue = $literal.encodedValue;}
271 literal returns[EncodedValue encodedValue]
272 : integer_literal { $encodedValue = new ImmutableIntEncodedValue($integer_literal.value); }
273 | long_literal { $encodedValue = new ImmutableLongEncodedValue($long_literal.value); }
274 | short_literal { $encodedValue = new ImmutableShortEncodedValue($short_literal.value); }
275 | byte_literal { $encodedValue = new ImmutableByteEncodedValue($byte_literal.value); }
276 | float_literal { $encodedValue = new ImmutableFloatEncodedValue($float_literal.value); }
[all …]
/external/apache-http/src/org/apache/http/client/utils/
DURLEncodedUtils.java168 final String encodedValue = value != null ? encode(value, encoding) : ""; in format() local
173 result.append(encodedValue); in format()
/external/chromium_org/mojo/public/java/bindings/src/org/chromium/mojo/bindings/
DEncoder.java168 byte encodedValue = mEncoderState.byteBuffer.get(mBaseOffset + offset); in encode()
169 encodedValue |= 1 << bit; in encode()
170 mEncoderState.byteBuffer.put(mBaseOffset + offset, encodedValue); in encode()
/external/smali/smali/src/main/java/org/jf/smali/
DsmaliTreeWalker.java1078 EncodedValue encodedValue = null; in field_initial_value() local
1112 encodedValue = literal23; in field_initial_value()
1130 return encodedValue; in field_initial_value()
1139 EncodedValue encodedValue = null; in literal() local
1258 encodedValue = new ImmutableIntEncodedValue(integer_literal24); in literal()
1268 encodedValue = new ImmutableLongEncodedValue(long_literal25); in literal()
1278 encodedValue = new ImmutableShortEncodedValue(short_literal26); in literal()
1288 encodedValue = new ImmutableByteEncodedValue(byte_literal27); in literal()
1298 encodedValue = new ImmutableFloatEncodedValue(float_literal28); in literal()
1308 encodedValue = new ImmutableDoubleEncodedValue(double_literal29); in literal()
[all …]
/external/smali/dexlib2/src/main/java/org/jf/dexlib2/writer/
DEncodedValueWriter.java66 … protected abstract void writeEncodedValue(@Nonnull EncodedValue encodedValue) throws IOException; in writeEncodedValue() argument
DDexWriter.java153 … @Nonnull EncodedValue encodedValue) throws IOException; in writeEncodedValue() argument
176 …@Override protected void writeEncodedValue(@Nonnull EncodedValue encodedValue) throws IOException {
177 DexWriter.this.writeEncodedValue(this, encodedValue);
/external/chromium_org/third_party/skia/src/pdf/
DSkPDFDevice.cpp1182 uint16_t encodedValue = glyphIDs[i]; in drawPosText() local
1183 if (font->glyphsToPDFFontEncoding(&encodedValue, 1) != 1) { in drawPosText()
1188 if (font->glyphsToPDFFontEncoding(&encodedValue, 1) != 1) { in drawPosText()
1194 fFontGlyphUsage->noteGlyphUsage(font, &encodedValue, 1); in drawPosText()
1200 SkPDFString::FormatString(&encodedValue, 1, font->multiByteGlyphs()); in drawPosText()
/external/skia/src/pdf/
DSkPDFDevice.cpp1293 uint16_t encodedValue = glyphIDs[i]; in drawPosText() local
1294 if (font->glyphsToPDFFontEncoding(&encodedValue, 1) != 1) { in drawPosText()
1299 fFontGlyphUsage->noteGlyphUsage(font, &encodedValue, 1); in drawPosText()
1306 SkPDFString::FormatString(&encodedValue, 1, in drawPosText()