Home
last modified time | relevance | path

Searched refs:pred (Results 1 – 4 of 4) sorted by relevance

/system/tools/aidl/
Dcheck_valid.cpp29 bool IsListOf(const AidlTypeSpecifier& type, TypePredicate pred) { in IsListOf() argument
31 pred(*type.GetTypeParameters().at(0)); in IsListOf()
33 bool IsArrayOf(const AidlTypeSpecifier& type, TypePredicate pred) { in IsArrayOf() argument
34 return type.IsArray() && pred(type); in IsArrayOf()
/system/media/camera/docs/
Dmetadata_model.py65 def find_all(self, pred): argument
76 if pred(self):
83 for j in i.find_all(pred):
86 def find_first(self, pred): argument
96 for i in self.find_all(pred):
101 def find_parent_first(self, pred): argument
111 for i in self.find_parents(pred):
116 def find_parents(self, pred): argument
130 if pred(parent):
/system/core/fs_mgr/libfstab/
Dfstab.cpp508 std::vector<FstabPtrEntryType*> GetEntriesByPred(FstabPtr fstab, const Pred& pred) { in GetEntriesByPred() argument
514 if (pred(entry)) { in GetEntriesByPred()
646 auto pred = [&mount_point](const FstabEntry& entry) { in TransformFstabForDsu() local
651 for (auto&& entry : GetEntriesByPred(fstab, pred)) { in TransformFstabForDsu()
672 auto it = std::find_if_not(std::find_if(fstab->begin(), fstab->end(), pred), in TransformFstabForDsu()
673 fstab->end(), pred); in TransformFstabForDsu()
/system/unwinding/libunwindstack/
DSymbols.cpp143 auto pred = [&addrs](auto a, auto b) { return addrs[a] == addrs[b]; }; in BuildRemapTable() local
144 remap_->erase(std::unique(remap_->begin(), remap_->end(), pred), remap_->end()); in BuildRemapTable()