Class ResStringPool

java.lang.Object
org.robolectric.res.android.ResStringPool

public class ResStringPool extends Object
Convenience class for accessing data in a ResStringPool resource.
  • Constructor Details

    • ResStringPool

      public ResStringPool()
  • Method Details

    • finalize

      protected void finalize() throws Throwable
      Overrides:
      finalize in class Object
      Throws:
      Throwable
    • getNativePtr

      public long getNativePtr()
    • getNativeObject

      public static ResStringPool getNativeObject(long nativeId)
    • setTo

      public int setTo(ByteBuffer buf, int offset, int size, boolean copyData)
    • stringAt

      public String stringAt(int idx)
    • string8At

      public String string8At(int id, Ref<Integer> outLen)
    • styleAt

      public final ResourceTypes.ResStringPool_span styleAt(int idx)
    • indexOfString

      public int indexOfString(String str)
    • size

      public int size()
    • isUTF8

      public boolean isUTF8()
    • getError

      public int getError()