Lines Matching refs:options

92 Return<void> AudioControl::debug(const hidl_handle& fd, const hidl_vec<hidl_string>& options) {  in debug()  argument
98 cmdDump(fd->data[0], options); in debug()
102 void AudioControl::cmdDump(int fd, const hidl_vec<hidl_string>& options) { in cmdDump() argument
103 if (options.size() == 0) { in cmdDump()
108 std::string option = options[0]; in cmdDump()
112 cmdRequestFocus(fd, options); in cmdDump()
114 cmdAbandonFocus(fd, options); in cmdDump()
140 void AudioControl::cmdRequestFocus(int fd, const hidl_vec<hidl_string>& options) { in cmdRequestFocus() argument
141 if (!checkCallerHasWritePermissions(fd) || !checkArgumentsSize(fd, options, 3)) return; in cmdRequestFocus()
144 if (!safelyParseInt(options[1], &usage)) { in cmdRequestFocus()
145 dprintf(fd, "Non-integer usage provided with request: %s\n", options[1].c_str()); in cmdRequestFocus()
149 if (!safelyParseInt(options[2], &zoneId)) { in cmdRequestFocus()
150 dprintf(fd, "Non-integer zoneId provided with request: %s\n", options[2].c_str()); in cmdRequestFocus()
154 if (!safelyParseInt(options[3], &focusGain)) { in cmdRequestFocus()
155 dprintf(fd, "Non-integer focusGain provided with request: %s\n", options[3].c_str()); in cmdRequestFocus()
169 void AudioControl::cmdAbandonFocus(int fd, const hidl_vec<hidl_string>& options) { in cmdAbandonFocus() argument
170 if (!checkCallerHasWritePermissions(fd) || !checkArgumentsSize(fd, options, 2)) return; in cmdAbandonFocus()
173 if (!safelyParseInt(options[1], &usage)) { in cmdAbandonFocus()
174 dprintf(fd, "Non-integer usage provided with abandon: %s\n", options[1].c_str()); in cmdAbandonFocus()
178 if (!safelyParseInt(options[2], &zoneId)) { in cmdAbandonFocus()
179 dprintf(fd, "Non-integer zoneId provided with abandon: %s\n", options[2].c_str()); in cmdAbandonFocus()
202 bool AudioControl::checkArgumentsSize(int fd, const hidl_vec<hidl_string>& options, in checkArgumentsSize() argument
205 size_t size = options.size() - 1; in checkArgumentsSize()