Lines Matching refs:cmd

98             switch (op.cmd) {
232 if (op.cmd == UpdateOp.ADD || op.cmd == UpdateOp.MOVE) {
246 int tmpStart = updatePositionWithPostponed(op.positionStart, op.cmd);
253 switch (op.cmd) {
265 int updatedPos = updatePositionWithPostponed(pos, op.cmd);
270 switch (op.cmd) {
282 UpdateOp tmp = obtainUpdateOp(op.cmd, tmpStart, tmpCnt, op.payload);
288 if (op.cmd == UpdateOp.UPDATE) {
298 UpdateOp tmp = obtainUpdateOp(op.cmd, tmpStart, tmpCnt, payload);
317 switch (op.cmd) {
330 private int updatePositionWithPostponed(int pos, int cmd) {
334 if (postponed.cmd == UpdateOp.MOVE) {
346 if (cmd == UpdateOp.ADD) {
348 } else if (cmd == UpdateOp.REMOVE) {
354 if (cmd == UpdateOp.ADD) {
356 } else if (cmd == UpdateOp.REMOVE) {
364 if (cmd == UpdateOp.ADD) {
367 } else if (cmd == UpdateOp.REMOVE) {
374 if (postponed.cmd == UpdateOp.ADD) {
376 } else if (postponed.cmd == UpdateOp.REMOVE) {
380 if (cmd == UpdateOp.ADD) {
382 } else if (cmd == UpdateOp.REMOVE) {
398 if (op.cmd == UpdateOp.MOVE) {
415 if (op.cmd == UpdateOp.MOVE) {
419 } else if (op.cmd == UpdateOp.ADD) {
441 switch (op.cmd) {
476 if (op.cmd == UpdateOp.MOVE) {
488 if (op.cmd == UpdateOp.REMOVE) {
493 } else if (op.cmd == UpdateOp.ADD) {
562 switch (op.cmd) {
592 switch (op.cmd) {
643 int cmd;
652 UpdateOp(int cmd, int positionStart, int itemCount, Object payload) {
653 this.cmd = cmd;
660 switch (cmd) {
691 if (cmd != op.cmd) {
694 if (cmd == MOVE && Math.abs(itemCount - positionStart) == 1) {
719 int result = cmd;
727 public UpdateOp obtainUpdateOp(int cmd, int positionStart, int itemCount, Object payload) {
730 op = new UpdateOp(cmd, positionStart, itemCount, payload);
732 op.cmd = cmd;