Lines Matching defs:only
220 // trusted source, only override default values
343 String16 onlyOption("-only");
344 const char *only = NULL;
374 if (only != NULL) {
375 free((void*)only);
377 only = q;
385 result.append("-only X process records for component X\n");
401 // only want 1, to avoid confusing folks that parse the output
403 dumpSummaries(result, ts_since, only);
405 dumpRecent(result, ts_since, only);
457 void MediaAnalyticsService::dumpSummaries(String8 &result, nsecs_t ts_since, const char *only) {
476 if (only != NULL && strcmp(only, (*it)->getKey()) != 0) {
479 AString distilled = (*it)->dumpSummary(slot, only);
487 void MediaAnalyticsService::dumpRecent(String8 &result, nsecs_t ts_since, const char * only) {
494 result.append(this->dumpQueue(mFinalized, ts_since, only));
498 result.append(this->dumpQueue(mOpen, ts_since, only));
509 String8 MediaAnalyticsService::dumpQueue(List<MediaAnalyticsItem *> *theList, nsecs_t ts_since, const char * only) {
522 if (only != NULL &&
523 strcmp(only, (*it)->getKey().c_str()) != 0) {
524 ALOGV("Omit '%s', it's not '%s'", (*it)->getKey().c_str(), only);
654 // untrusted uids can only send us a limited set of keys