Searched refs:ModelKey (Results 1 – 2 of 2) sorted by relevance
/external/glide/library/src/main/java/com/bumptech/glide/load/model/ |
D | ModelCache.java | 19 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/ |
D | CodeGenSchedule.cpp | 153 Record *ModelKey = getModelOrItinDef(ProcDef); in addProcModel() local 154 if (!ProcModelMap.insert(std::make_pair(ModelKey, ProcModels.size())).second) in addProcModel() 157 std::string Name = ModelKey->getName(); in addProcModel() 158 if (ModelKey->isSubClassOf("SchedMachineModel")) { in addProcModel() 159 Record *ItinsDef = ModelKey->getValueAsDef("Itineraries"); in addProcModel() 160 ProcModels.emplace_back(ProcModels.size(), Name, ModelKey, ItinsDef); in addProcModel() 164 if (!ModelKey->getValueAsListOfDefs("IID").empty()) in addProcModel() 167 ProcDef->getValueAsDef("SchedModel"), ModelKey); in addProcModel()
|