Home
last modified time | relevance | path

Searched refs:context (Results 1 – 11 of 11) sorted by relevance

/dalvik/dx/src/com/android/dex/util/
DExceptionWithContext.java27 private StringBuffer context; field in ExceptionWithContext
82 String ctx = ((ExceptionWithContext) cause).context.toString(); in ExceptionWithContext()
83 context = new StringBuffer(ctx.length() + 200); in ExceptionWithContext()
84 context.append(ctx); in ExceptionWithContext()
86 context = new StringBuffer(200); in ExceptionWithContext()
94 out.println(context); in printStackTrace()
101 out.println(context); in printStackTrace()
114 context.append(str); in addContext()
116 context.append('\n'); in addContext()
126 return context.toString(); in getContext()
[all …]
/dalvik/dexgen/src/com/android/dexgen/util/
DExceptionWithContext.java28 private StringBuffer context; field in ExceptionWithContext
83 String ctx = ((ExceptionWithContext) cause).context.toString(); in ExceptionWithContext()
84 context = new StringBuffer(ctx.length() + 200); in ExceptionWithContext()
85 context.append(ctx); in ExceptionWithContext()
87 context = new StringBuffer(200); in ExceptionWithContext()
95 out.println(context); in printStackTrace()
102 out.println(context); in printStackTrace()
115 context.append(str); in addContext()
117 context.append('\n'); in addContext()
127 return context.toString(); in getContext()
[all …]
/dalvik/libdex/
Dsha1.cpp198 void SHA1Init(SHA1_CTX* context) in SHA1Init() argument
201 context->state[0] = 0x67452301; in SHA1Init()
202 context->state[1] = 0xEFCDAB89; in SHA1Init()
203 context->state[2] = 0x98BADCFE; in SHA1Init()
204 context->state[3] = 0x10325476; in SHA1Init()
205 context->state[4] = 0xC3D2E1F0; in SHA1Init()
206 context->count[0] = context->count[1] = 0; in SHA1Init()
212 void SHA1Update(SHA1_CTX* context, const unsigned char* data, in SHA1Update() argument
217 j = (context->count[0] >> 3) & 63; in SHA1Update()
218 if ((context->count[0] += len << 3) < (len << 3)) in SHA1Update()
[all …]
Dsha1.h15 void SHA1Init(SHA1_CTX* context);
16 void SHA1Update(SHA1_CTX* context, const unsigned char* data,
18 void SHA1Final(unsigned char digest[HASHSIZE], SHA1_CTX* context);
DDexFile.cpp125 SHA1_CTX context; in dexComputeSHA1Digest() local
126 SHA1Init(&context); in dexComputeSHA1Digest()
127 SHA1Update(&context, data, length); in dexComputeSHA1Digest()
128 SHA1Final(digest, &context); in dexComputeSHA1Digest()
/dalvik/dx/src/com/android/dx/command/dexer/
DMain.java229 private final DxContext context; field in Main
231 public Main(DxContext context) { in Main() argument
232 this.context = context; in Main()
240 DxContext context = new DxContext(); in main() local
241 Arguments arguments = new Arguments(context); in main()
244 int result = new Main(context).runDx(arguments); in main()
300 context.err.println( in runMonoDex()
480 … result = new DexMerger(new Dex[] {dexA, dexB}, CollisionPolicy.KEEP_FIRST, context).merge(); in mergeIncremental()
503 …erged = new DexMerger(dexes.toArray(new Dex[dexes.size()]), CollisionPolicy.FAIL, context).merge(); in mergeLibraryDexBuffers()
600 context.err.println("Uncaught translation error:"); in processAllFiles()
[all …]
/dalvik/dx/src/com/android/dx/cf/direct/
DAttributeFactory.java69 public final Attribute parse(DirectClassFile cf, int context, int offset, in parse() argument
75 if ((context < 0) || (context >= CTX_COUNT)) { in parse()
96 return parse0(cf, context, name.getString(), offset + 6, length, in parse()
121 protected Attribute parse0(DirectClassFile cf, int context, String name, in parse0() argument
DAttributeListParser.java34 private final int context; field in AttributeListParser
60 public AttributeListParser(DirectClassFile cf, int context, int offset, in AttributeListParser() argument
73 this.context = context; in AttributeListParser()
142 attributeFactory.parse(cf, context, at, observer); in parse()
DStdAttributeFactory.java84 protected Attribute parse0(DirectClassFile cf, int context, String name, in parse0() argument
86 switch (context) { in parse0()
199 return super.parse0(cf, context, name, offset, length, observer); in parse0()
/dalvik/dx/src/com/android/dx/dex/cf/
DCfTranslator.java99 public static ClassDefItem translate(DxContext context, DirectClassFile cf, byte[] bytes, in translate() argument
102 return translate0(context, cf, bytes, cfOptions, dexOptions, dexFile); in translate()
123 private static ClassDefItem translate0(DxContext context, DirectClassFile cf, byte[] bytes, in translate0() argument
126 context.optimizerOptions.loadOptimizeLists(cfOptions.optimizeListFile, in translate0()
150 processMethods(context, cf, cfOptions, dexOptions, out, dexFile); in translate0()
277 private static void processMethods(DxContext context, DirectClassFile cf, CfOptions cfOptions, in processMethods() argument
320 context.optimizerOptions.shouldOptimize(canonicalName)) { in processMethods()
330 context.optimizerOptions.compareOptimizerStep(nonOptRmeth, in processMethods()
335 context.codeStatistics.updateRopStatistics( in processMethods()
350 … updateDexStatistics(context, cfOptions, dexOptions, rmeth, nonOptRmeth, locals, in processMethods()
[all …]
/dalvik/dx/src/com/android/dx/merge/
DDexMerger.java47 private final DxContext context; field in DexMerger
90 public DexMerger(Dex[] dexes, CollisionPolicy collisionPolicy, DxContext context) in DexMerger() argument
92 this(dexes, collisionPolicy, context, new WriterSizes(dexes)); in DexMerger()
95 private DexMerger(Dex[] dexes, CollisionPolicy collisionPolicy, DxContext context, in DexMerger() argument
99 this.context = context; in DexMerger()
208 new Dex[] {dexOut, new Dex(0)}, CollisionPolicy.FAIL, context, compactedSizes); in merge()
210 context.out.printf("Result compacted from %.1fKiB to %.1fKiB to save %.1fKiB%n", in merge()
218 context.out.printf("Merged dex #%d (%d defs/%.1fKiB)%n", in merge()
223 context.out.printf("Result is %d defs/%.1fKiB. Took %.1fs%n", in merge()