Class ShadowDexFile


  • @Implements(dalvik.system.DexFile.class)
    public class ShadowDexFile
    extends java.lang.Object
    Shadow implementation of dalvik.system.Dexfile.
    • Constructor Summary

      Constructors 
      Constructor Description
      ShadowDexFile()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      protected static boolean isDexOptNeeded​(java.lang.String fileName)  
      static void reset()  
      static void setIsDexOptNeeded​(boolean isDexOptNeeded)
      Sets the value to be returned when isDexOptNeeded() is called with any argument.
      static void setIsDexOptNeededError​(java.lang.Throwable error)
      Sets the throwable that will be thrown when isDexOptNeeded() is called.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ShadowDexFile

        public ShadowDexFile()
    • Method Detail

      • isDexOptNeeded

        @Implementation
        protected static boolean isDexOptNeeded​(java.lang.String fileName)
                                         throws java.lang.Throwable
        Throws:
        java.lang.Throwable
      • setIsDexOptNeeded

        public static void setIsDexOptNeeded​(boolean isDexOptNeeded)
        Sets the value to be returned when isDexOptNeeded() is called with any argument.
      • setIsDexOptNeededError

        public static void setIsDexOptNeededError​(java.lang.Throwable error)
        Sets the throwable that will be thrown when isDexOptNeeded() is called. isDexOptNeeded() won't throw if the error is null.
      • reset

        @Resetter
        public static void reset()