Lines Matching refs:i
26 local where i cur serial
31 for ((i=1; i <= COMP_CWORD; i++)); do
57 if [[ $where == COMMAND && $i -ge $COMP_CWORD ]]; then
73 if [[ $i -eq $COMP_CWORD ]]; then
76 i=$((i+1))
79 _adb_cmd_install "$serial" $i
82 _adb_cmd_pull "$serial" $i
85 _adb_cmd_push "$serial" $i
88 if [[ $COMP_CWORD == $i ]]; then
94 _adb_cmd_shell "$serial" $i
97 _adb_cmd_uninstall "$serial" $i
108 local serial i cur where
111 i=$2
114 for ((; i <= COMP_CWORD; i++)); do
137 local serial IFS=$'\n' i cur
140 i=$2
144 if [[ $COMP_CWORD == $i ]]; then
146 elif [[ $COMP_CWORD == $(($i+1)) ]]; then
155 local serial IFS=$'\n' i cur
158 i=$2
162 if [[ $COMP_CWORD == $i ]]; then
167 elif [[ $COMP_CWORD == $(($i+1)) ]]; then
173 local serial IFS=$'\n' i cur
177 i=$2
184 if [[ $i -eq $COMP_CWORD && ${cur:0:1} != "/" ]]; then
196 i=$((i+1))
199 _adb_shell_ls $serial $i
213 local serial i where cur packages
216 i=$2
222 for ((; i <= COMP_CWORD; i++)); do
253 local serial i cur file
257 i=$2
263 for ((; i <= COMP_CWORD; i++)); do
330 local file xspec i j
357 for i in "${files[@]}"; do
360 if [[ $i == $j ]]; then
365 [[ -n $skip ]] || printf "%s\n" "$i"
370 for i in "${dirs[@]}"; do
371 printf "%s/\n" "$i"