Lines Matching defs:cmd

95             switch (op.cmd) {
225 if (op.cmd == UpdateOp.ADD || op.cmd == UpdateOp.MOVE) {
239 int tmpStart = updatePositionWithPostponed(op.positionStart, op.cmd);
246 switch (op.cmd) {
258 int updatedPos = updatePositionWithPostponed(pos, op.cmd);
263 switch (op.cmd) {
275 UpdateOp tmp = obtainUpdateOp(op.cmd, tmpStart, tmpCnt);
281 if (op.cmd == UpdateOp.UPDATE) {
290 UpdateOp tmp = obtainUpdateOp(op.cmd, tmpStart, tmpCnt);
309 switch (op.cmd) {
322 private int updatePositionWithPostponed(int pos, int cmd) {
326 if (postponed.cmd == UpdateOp.MOVE) {
338 if (cmd == UpdateOp.ADD) {
340 } else if (cmd == UpdateOp.REMOVE) {
346 if (cmd == UpdateOp.ADD) {
348 } else if (cmd == UpdateOp.REMOVE) {
356 if (cmd == UpdateOp.ADD) {
359 } else if (cmd == UpdateOp.REMOVE) {
366 if (postponed.cmd == UpdateOp.ADD) {
368 } else if (postponed.cmd == UpdateOp.REMOVE) {
372 if (cmd == UpdateOp.ADD) {
374 } else if (cmd == UpdateOp.REMOVE) {
390 if (op.cmd == UpdateOp.MOVE) {
407 if (op.cmd == UpdateOp.MOVE) {
411 } else if (op.cmd == UpdateOp.ADD) {
433 switch (op.cmd) {
464 if (op.cmd == UpdateOp.MOVE) {
476 if (op.cmd == UpdateOp.REMOVE) {
481 } else if (op.cmd == UpdateOp.ADD) {
537 switch (op.cmd) {
566 switch (op.cmd) {
613 int cmd;
620 UpdateOp(int cmd, int positionStart, int itemCount) {
621 this.cmd = cmd;
627 switch (cmd) {
656 if (cmd != op.cmd) {
659 if (cmd == MOVE && Math.abs(itemCount - positionStart) == 1) {
677 int result = cmd;
685 public UpdateOp obtainUpdateOp(int cmd, int positionStart, int itemCount) {
688 op = new UpdateOp(cmd, positionStart, itemCount);
690 op.cmd = cmd;