Android
dalvik.system
public class

dalvik.system.TouchDex

java.lang.Object
dalvik.system.TouchDex

Induce optimization/verification of a set of DEX files. TODO: This class is public, so SystemServer can access it. This is NOT the correct long-term solution; once we have a real installer and/or dalvik-cache manager, this class should be removed.

Summary

Public Constructors

            TouchDex()

Public Methods

      static    void  main(String[] args)
We continue here in the child process.
      static    int  start(String dexFiles)
Fork a process, make sure the DEX files are prepped, and return when everything is finished.
Methods inherited from class java.lang.Object

Details

Public Constructors

public TouchDex()

Public Methods

public static void main(String[] args)

We continue here in the child process. args[0] can be a colon-separated path list, or "-" to read from stdin. Alternatively, if we're invoked directly from the command line we just start here (skipping the fork/exec stuff).

Parameters

args command line args

public static int start(String dexFiles)

Fork a process, make sure the DEX files are prepped, and return when everything is finished. The filenames must be the same as will be used when the files are actually opened, because the dalvik-cache filename is based upon this filename. (The absolute path to the jar/apk should work.)

Parameters

dexFiles Colon-separated list of DEX files.

Returns

  • zero on success
Copyright 2007 Google Inc. Build 0.9_r1-98467 - 14 Aug 2008 18:48