Lines Matching refs:tokens
64 std::unique_ptr<std::vector<android::String8> > tokens(StringUtil::split(type, ':')); in run() local
65 if (tokens.get() == NULL) { in run()
70 if (StringUtil::compare(tokens->at(0), "file") == 0) { in run()
71 if (tokens->size() != 2) { in run()
72 LOGE("Wrong number of parameters %d", tokens->size()); in run()
74 buffer = Buffer::loadFromFile(tokens->at(1)); in run()
75 } else if (StringUtil::compare(tokens->at(0), "sin") == 0) { in run()
76 if (tokens->size() != 4) { in run()
77 LOGE("Wrong number of parameters %d", tokens->size()); in run()
79 int amplitude = atoi(tokens->at(1).string()); in run()
80 int freq = atoi(tokens->at(2).string()); in run()
81 int time = atoi(tokens->at(3).string()); in run()
85 } else if (StringUtil::compare(tokens->at(0), "random") == 0) { in run()
87 if (tokens->size() != 3) { in run()
88 LOGE("Wrong number of parameters %d", tokens->size()); in run()
90 int amplitude = atoi(tokens->at(1).string()); in run()
91 int time = atoi(tokens->at(2).string()); in run()