Lines Matching refs:props
254 int32_t ImeInfoInquirer::ListInputMethod(int32_t userId, InputMethodStatus status, std::vector<Property> &props,
259 return ListInputMethod(userId, props);
262 return ListEnabledInputMethod(userId, props, enableOn);
265 return ListDisabledInputMethod(userId, props, enableOn);
270 int32_t ImeInfoInquirer::ListInputMethod(const int32_t userId, std::vector<Property> &props)
275 props.push_back(info.prop);
277 if (!props.empty()) {
288 auto it = std::find_if(props.begin(), props.end(),
290 if (it != props.end()) {
296 props.push_back({ .name = extension.bundleName,
305 int32_t ImeInfoInquirer::ListEnabledInputMethod(const int32_t userId, std::vector<Property> &props, bool enableOn)
308 int32_t ret = ListInputMethod(userId, props);
324 auto newEnd = std::remove_if(props.begin(), props.end(), [&enableVec](const auto &prop) {
327 props.erase(newEnd, props.end());
332 int32_t ImeInfoInquirer::ListDisabledInputMethod(const int32_t userId, std::vector<Property> &props, bool enableOn)
340 auto ret = ListInputMethod(userId, props);
355 auto newEnd = std::remove_if(props.begin(), props.end(), [&enableVec](const auto &prop) {
358 props.erase(newEnd, props.end());
365 std::vector<Property> props;
366 auto ret = ListEnabledInputMethod(userId, props, enableOn);
372 auto iter = std::find_if(props.begin(), props.end(),
374 if (iter == props.end()) {
384 uint32_t nextIndex = (cacheCount + static_cast<uint32_t>(std::distance(props.begin(), iter))) % props.size();
385 switchInfo.bundleName = props[nextIndex].name;