/external/smali/dexlib2/src/main/java/org/jf/dexlib2/immutable/instruction/ |
D | ImmutableSparseSwitchPayload.java | 48 @Nonnull protected final ImmutableList<? extends ImmutableSwitchElement> switchElements; field in ImmutableSparseSwitchPayload 50 public ImmutableSparseSwitchPayload(@Nullable List<? extends SwitchElement> switchElements) { in ImmutableSparseSwitchPayload() argument 52 this.switchElements = ImmutableSwitchElement.immutableListOf(switchElements); in ImmutableSparseSwitchPayload() 56 @Nullable ImmutableList<? extends ImmutableSwitchElement> switchElements) { in ImmutableSparseSwitchPayload() 58 this.switchElements = ImmutableUtils.nullToEmptyList(switchElements); in ImmutableSparseSwitchPayload() 70 …nnull @Override public List<? extends SwitchElement> getSwitchElements() { return switchElements; } in getSwitchElements() 72 @Override public int getCodeUnits() { return 2 + switchElements.size() * 4; } in getCodeUnits()
|
D | ImmutablePackedSwitchPayload.java | 48 @Nonnull protected final ImmutableList<? extends ImmutableSwitchElement> switchElements; field in ImmutablePackedSwitchPayload 50 public ImmutablePackedSwitchPayload(@Nullable List<? extends SwitchElement> switchElements) { in ImmutablePackedSwitchPayload() argument 53 this.switchElements = ImmutableSwitchElement.immutableListOf(switchElements); in ImmutablePackedSwitchPayload() 57 @Nullable ImmutableList<? extends ImmutableSwitchElement> switchElements) { in ImmutablePackedSwitchPayload() 59 this.switchElements = ImmutableUtils.nullToEmptyList(switchElements); in ImmutablePackedSwitchPayload() 71 …nnull @Override public List<? extends SwitchElement> getSwitchElements() { return switchElements; } in getSwitchElements() 73 @Override public int getCodeUnits() { return 4 + switchElements.size() * 2; } in getCodeUnits()
|
D | ImmutableInstructionFactory.java | 211 …arseSwitchPayload makeSparseSwitchPayload(@Nullable List<? extends SwitchElement> switchElements) { in makeSparseSwitchPayload() argument 212 return new ImmutableSparseSwitchPayload(switchElements); in makeSparseSwitchPayload() 215 …ckedSwitchPayload makePackedSwitchPayload(@Nullable List<? extends SwitchElement> switchElements) { in makePackedSwitchPayload() argument 216 return new ImmutablePackedSwitchPayload(switchElements); in makePackedSwitchPayload()
|
/external/smali/dexlib2/src/main/java/org/jf/dexlib2/builder/instruction/ |
D | BuilderPackedSwitchPayload.java | 49 @Nonnull protected final List<BuilderSwitchElement> switchElements; field in BuilderPackedSwitchPayload 52 @Nullable List<? extends Label> switchElements) { in BuilderPackedSwitchPayload() argument 54 if (switchElements == null) { in BuilderPackedSwitchPayload() 55 this.switchElements = ImmutableList.of(); in BuilderPackedSwitchPayload() 57 this.switchElements = Lists.newArrayList(); in BuilderPackedSwitchPayload() 59 for (Label target: switchElements) { in BuilderPackedSwitchPayload() 60 this.switchElements.add(new BuilderSwitchElement(this, key++, target)); in BuilderPackedSwitchPayload() 65 …@Nonnull @Override public List<BuilderSwitchElement> getSwitchElements() { return switchElements; } in getSwitchElements() 67 @Override public int getCodeUnits() { return 4 + switchElements.size() * 2; } in getCodeUnits()
|
D | BuilderSparseSwitchPayload.java | 50 @Nonnull protected final List<BuilderSwitchElement> switchElements; field in BuilderSparseSwitchPayload 52 public BuilderSparseSwitchPayload(@Nullable List<? extends SwitchLabelElement> switchElements) { in BuilderSparseSwitchPayload() argument 54 if (switchElements == null) { in BuilderSparseSwitchPayload() 55 this.switchElements = ImmutableList.of(); in BuilderSparseSwitchPayload() 57 …this.switchElements = Lists.transform(switchElements, new Function<SwitchLabelElement, BuilderSwit… in BuilderSparseSwitchPayload() 66 …@Nonnull @Override public List<BuilderSwitchElement> getSwitchElements() { return switchElements; } in getSwitchElements() 68 @Override public int getCodeUnits() { return 2 + switchElements.size() * 4; } in getCodeUnits()
|
/external/smali/smalidea/src/test/java/org/jf/smalidea/dexlib/ |
D | SmalideaMethodTest.java | 428 List<? extends SwitchElement> switchElements = packedSwitchPayload.getSwitchElements(); in testPackedSwitch() local 429 Assert.assertEquals(4, switchElements.size()); in testPackedSwitch() 431 checkSwitchElement(switchElements.get(0), 10, 6); in testPackedSwitch() 432 checkSwitchElement(switchElements.get(1), 11, 14); in testPackedSwitch() 433 checkSwitchElement(switchElements.get(2), 12, 22); in testPackedSwitch() 434 checkSwitchElement(switchElements.get(3), 13, 24); in testPackedSwitch() 494 List<? extends SwitchElement> switchElements = sparseSwitchPayload.getSwitchElements(); in testSparseSwitch() local 495 Assert.assertEquals(5, switchElements.size()); in testSparseSwitch() 497 checkSwitchElement(switchElements.get(0), 10, 6); in testSparseSwitch() 498 checkSwitchElement(switchElements.get(1), 13, 30); in testSparseSwitch() [all …]
|
/external/smali/dexlib2/src/main/java/org/jf/dexlib2/writer/ |
D | InstructionFactory.java | 73 Instruction makeSparseSwitchPayload(@Nullable List<? extends SwitchElement> switchElements); in makeSparseSwitchPayload() argument 74 Instruction makePackedSwitchPayload(@Nullable List<? extends SwitchElement> switchElements); in makePackedSwitchPayload() argument
|
/external/smali/dexlib2/src/main/java/org/jf/dexlib2/builder/ |
D | MutableMethodImplementation.java | 937 List<? extends SwitchElement> switchElements = instruction.getSwitchElements(); 938 if (switchElements.size() == 0) { 951 for (SwitchElement element: switchElements) { 955 return new BuilderPackedSwitchPayload(switchElements.get(0).getKey(), labels); 962 List<? extends SwitchElement> switchElements = instruction.getSwitchElements(); 963 if (switchElements.size() == 0) { 976 for (SwitchElement element: switchElements) {
|