HomeSort by relevance Sort by last modified time
    Searched refs:LiteralTools (Results 1 - 10 of 10) sorted by null

  /external/smali/smali/src/test/java/
IntLiteralTest.java 29 import org.jf.smali.LiteralTools;
38 Assert.assertTrue(LiteralTools.parseInt("0x0") == 0x0);
39 Assert.assertTrue(LiteralTools.parseInt("0x00") == 0x0);
40 Assert.assertTrue(LiteralTools.parseInt("0x1") == 0x1);
41 Assert.assertTrue(LiteralTools.parseInt("0x12345678") == 0x12345678);
42 Assert.assertTrue(LiteralTools.parseInt("0x7fffffff") == 0x7fffffff);
43 Assert.assertTrue(LiteralTools.parseInt("0x80000000") == Integer.MIN_VALUE);
44 Assert.assertTrue(LiteralTools.parseInt("0xFFFFFFFF") == -1);
46 Assert.assertTrue(LiteralTools.parseInt("-0x00") == 0);
47 Assert.assertTrue(LiteralTools.parseInt("-0x01") == -1)
    [all...]
ByteLiteralTest.java 29 import org.jf.smali.LiteralTools;
39 Assert.assertTrue(LiteralTools.parseByte("0x0T") == 0x0);
40 Assert.assertTrue(LiteralTools.parseByte("0x00") == 0x0);
41 Assert.assertTrue(LiteralTools.parseByte("0x1T") == 0x1);
42 Assert.assertTrue(LiteralTools.parseByte("0x12") == 0x12);
43 Assert.assertTrue(LiteralTools.parseByte("0x7fT") == 0x7f);
44 Assert.assertTrue(LiteralTools.parseByte("0x80t") == Byte.MIN_VALUE);
45 Assert.assertTrue(LiteralTools.parseByte("0xFFt") == -1);
47 Assert.assertTrue(LiteralTools.parseByte("-0x00") == 0);
48 Assert.assertTrue(LiteralTools.parseByte("-0x01") == -1)
    [all...]
LongLiteralTest.java 29 import org.jf.smali.LiteralTools;
37 Assert.assertTrue(LiteralTools.parseLong("0x0L") == 0x0);
38 Assert.assertTrue(LiteralTools.parseLong("0x00L") == 0x0);
39 Assert.assertTrue(LiteralTools.parseLong("0x1L") == 0x1);
40 Assert.assertTrue(LiteralTools.parseLong("0x1234567890123456L") == 0x1234567890123456L);
41 Assert.assertTrue(LiteralTools.parseLong("0x7fffffffffffffffL") == 0x7fffffffffffffffL);
42 Assert.assertTrue(LiteralTools.parseLong("0x8000000000000000L") == Long.MIN_VALUE);
43 Assert.assertTrue(LiteralTools.parseLong("0xFFFFFFFFFFFFFFFFL") == -1);
45 Assert.assertTrue(LiteralTools.parseLong("-0x00L") == 0);
46 Assert.assertTrue(LiteralTools.parseLong("-0x01L") == -1)
    [all...]
ShortLiteralTest.java 29 import org.jf.smali.LiteralTools;
39 Assert.assertTrue(LiteralTools.parseShort("0x0") == 0x0);
40 Assert.assertTrue(LiteralTools.parseShort("0x00") == 0x0);
41 Assert.assertTrue(LiteralTools.parseShort("0x1") == 0x1);
42 Assert.assertTrue(LiteralTools.parseShort("0x1234") == 0x1234);
43 Assert.assertTrue(LiteralTools.parseShort("0x7fff") == 0x7fff);
44 Assert.assertTrue(LiteralTools.parseShort("0x8000") == Short.MIN_VALUE);
45 Assert.assertTrue(LiteralTools.parseShort("0xFFFF") == -1);
47 Assert.assertTrue(LiteralTools.parseShort("-0x00") == 0);
48 Assert.assertTrue(LiteralTools.parseShort("-0x01") == -1)
    [all...]
  /external/smali/smalidea/src/main/java/org/jf/smalidea/psi/impl/
SmaliLiteral.java 37 import org.jf.smali.LiteralTools;
58 return LiteralTools.parseLong(literalNode.getText());
61 return LiteralTools.parseInt(literalNode.getText());
63 return LiteralTools.parseShort(literalNode.getText());
68 return LiteralTools.parseByte(literalNode.getText());
  /external/smali/smali/src/main/antlr/
smaliTreeWalker.g 314 | long_literal { LiteralTools.checkInt($long_literal.value); $value = (int)$long_literal.value; }
802 LiteralTools.checkNibble(litB);
    [all...]
smaliParser.g 648 : integer_literal { $value = LiteralTools.parseInt($integer_literal.text); };
    [all...]
  /external/smali/smali/src/main/java/org/jf/smali/
LiteralTools.java 34 public class LiteralTools
smaliTreeWalker.java     [all...]
smaliParser.java     [all...]

Completed in 250 milliseconds