Home
last modified time | relevance | path

Searched refs:ModelKey (Results 1 – 2 of 2) sorted by relevance

/external/glide/library/src/main/java/com/bumptech/glide/load/model/
DModelCache.java19 private final LruCache<ModelKey<A>, B> cache;
26 cache = new LruCache<ModelKey<A>, B>(size) { in ModelCache()
28 protected void onItemEvicted(ModelKey<A> key, B item) { in ModelCache()
44 ModelKey<A> key = ModelKey.get(model, width, height); in get()
59 ModelKey<A> key = ModelKey.get(model, width, height); in put()
64 static final class ModelKey<A> { class in ModelCache
65 private static final Queue<ModelKey<?>> KEY_QUEUE = Util.createQueue(0);
71 static <A> ModelKey<A> get(A model, int width, int height) { in get()
73 ModelKey<A> modelKey = (ModelKey<A>) KEY_QUEUE.poll(); in get()
75 modelKey = new ModelKey<A>(); in get()
[all …]
/external/llvm/utils/TableGen/
DCodeGenSchedule.cpp159 Record *ModelKey = getModelOrItinDef(ProcDef); in addProcModel() local
160 if (!ProcModelMap.insert(std::make_pair(ModelKey, ProcModels.size())).second) in addProcModel()
163 std::string Name = ModelKey->getName(); in addProcModel()
164 if (ModelKey->isSubClassOf("SchedMachineModel")) { in addProcModel()
165 Record *ItinsDef = ModelKey->getValueAsDef("Itineraries"); in addProcModel()
166 ProcModels.emplace_back(ProcModels.size(), Name, ModelKey, ItinsDef); in addProcModel()
170 if (!ModelKey->getValueAsListOfDefs("IID").empty()) in addProcModel()
173 ProcDef->getValueAsDef("SchedModel"), ModelKey); in addProcModel()