HomeSort by relevance Sort by last modified time
    Searched defs:switchElements (Results 1 - 6 of 6) sorted by null

  /external/smali/dexlib2/src/main/java/org/jf/dexlib2/builder/instruction/
BuilderPackedSwitchPayload.java 49 @Nonnull protected final List<BuilderSwitchElement> switchElements;
52 @Nullable List<? extends Label> switchElements) {
54 if (switchElements == null) {
55 this.switchElements = ImmutableList.of();
57 this.switchElements = Lists.newArrayList();
59 for (Label target: switchElements) {
60 this.switchElements.add(new BuilderSwitchElement(this, key++, target));
65 @Nonnull @Override public List<BuilderSwitchElement> getSwitchElements() { return switchElements; }
67 @Override public int getCodeUnits() { return 4 + switchElements.size() * 2; }
BuilderSparseSwitchPayload.java 50 @Nonnull protected final List<BuilderSwitchElement> switchElements;
52 public BuilderSparseSwitchPayload(@Nullable List<? extends SwitchLabelElement> switchElements) {
54 if (switchElements == null) {
55 this.switchElements = ImmutableList.of();
57 this.switchElements = Lists.transform(switchElements, new Function<SwitchLabelElement, BuilderSwitchElement>() {
66 @Nonnull @Override public List<BuilderSwitchElement> getSwitchElements() { return switchElements; }
68 @Override public int getCodeUnits() { return 2 + switchElements.size() * 4; }
  /external/smali/dexlib2/src/main/java/org/jf/dexlib2/immutable/instruction/
ImmutablePackedSwitchPayload.java 48 @Nonnull protected final ImmutableList<? extends ImmutableSwitchElement> switchElements;
50 public ImmutablePackedSwitchPayload(@Nullable List<? extends SwitchElement> switchElements) {
53 this.switchElements = ImmutableSwitchElement.immutableListOf(switchElements);
57 @Nullable ImmutableList<? extends ImmutableSwitchElement> switchElements) {
59 this.switchElements = ImmutableUtils.nullToEmptyList(switchElements);
71 @Nonnull @Override public List<? extends SwitchElement> getSwitchElements() { return switchElements; }
73 @Override public int getCodeUnits() { return 4 + switchElements.size() * 2; }
ImmutableSparseSwitchPayload.java 48 @Nonnull protected final ImmutableList<? extends ImmutableSwitchElement> switchElements;
50 public ImmutableSparseSwitchPayload(@Nullable List<? extends SwitchElement> switchElements) {
52 this.switchElements = ImmutableSwitchElement.immutableListOf(switchElements);
56 @Nullable ImmutableList<? extends ImmutableSwitchElement> switchElements) {
58 this.switchElements = ImmutableUtils.nullToEmptyList(switchElements);
70 @Nonnull @Override public List<? extends SwitchElement> getSwitchElements() { return switchElements; }
72 @Override public int getCodeUnits() { return 2 + switchElements.size() * 4; }
  /external/smali/smalidea/src/test/java/org/jf/smalidea/dexlib/
SmalideaMethodTest.java 428 List<? extends SwitchElement> switchElements = packedSwitchPayload.getSwitchElements();
429 Assert.assertEquals(4, switchElements.size());
431 checkSwitchElement(switchElements.get(0), 10, 6);
432 checkSwitchElement(switchElements.get(1), 11, 14);
433 checkSwitchElement(switchElements.get(2), 12, 22);
434 checkSwitchElement(switchElements.get(3), 13, 24);
494 List<? extends SwitchElement> switchElements = sparseSwitchPayload.getSwitchElements();
495 Assert.assertEquals(5, switchElements.size());
497 checkSwitchElement(switchElements.get(0), 10, 6);
498 checkSwitchElement(switchElements.get(1), 13, 30)
    [all...]
  /prebuilts/tools/common/m2/repository/org/smali/dexlib2/2.1.3/
dexlib2-2.1.3.jar 

Completed in 811 milliseconds