Home | History | Annotate | Download | only in task

Lines Matching refs:tokens

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