Lines Matching refs:tokens

67             String[] tokens = query.substring(COMMAND_PREFIX.length()).split("\\s+");
69 if (command.accept(tokens)) {
78 private boolean quickViewer(String[] tokens) {
79 if ("qv".equals(tokens[0])) {
80 if (tokens.length == 2 && !TextUtils.isEmpty(tokens[1])) {
81 DebugFlags.setQuickViewer(tokens[1]);
82 Log.i(TAG, "Set quick viewer to: " + tokens[1]);
85 Log.w(TAG, "Invalid command structure: " + TextUtils.join(" ", tokens));
87 } else if ("deqv".equals(tokens[0])) {
95 private boolean gestureScale(String[] tokens) {
96 if ("gs".equals(tokens[0])) {
97 if (tokens.length == 2 && !TextUtils.isEmpty(tokens[1])) {
98 boolean enabled = asBool(tokens[1]);
103 Log.w(TAG, "Invalid command structure: " + TextUtils.join(" ", tokens));
108 private boolean archiveCreation(String[] tokens) {
109 if ("zip".equals(tokens[0])) {
110 if (tokens.length == 2 && !TextUtils.isEmpty(tokens[1])) {
111 boolean enabled = asBool(tokens[1]);
116 Log.w(TAG, "Invalid command structure: " + TextUtils.join(" ", tokens));
121 private boolean docDetails(String[] tokens) {
122 if ("docinfo".equals(tokens[0])) {
123 if (tokens.length == 2 && !TextUtils.isEmpty(tokens[1])) {
124 boolean enabled = asBool(tokens[1]);
129 Log.w(TAG, "Invalid command structure: " + TextUtils.join(" ", tokens));
134 private boolean forcePaging(String[] tokens) {
135 if ("page".equals(tokens[0])) {
136 if (tokens.length >= 2) {
138 int offset = Integer.parseInt(tokens[1]);
139 int limit = (tokens.length == 3) ? Integer.parseInt(tokens[2]) : -1;
145 + TextUtils.join(" ", tokens));
149 Log.w(TAG, "Invalid command structure: " + TextUtils.join(" ", tokens));
151 } else if ("deqv".equals(tokens[0])) {
177 public boolean accept(String[] tokens) {
178 if ("dumpCache".equals(tokens[0])) {