Home
last modified time | relevance | path

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

/frameworks/base/tools/aapt2/
DResourceTable.cpp269 ResourceTable::CollisionResult ResourceTable::ResolveValueCollision(Value* existing, in ResolveValueCollision()
278 return CollisionResult::kKeepOriginal; in ResolveValueCollision()
281 return CollisionResult::kTakeNew; in ResolveValueCollision()
285 return overlay ? CollisionResult::kTakeNew : CollisionResult::kConflict; in ResolveValueCollision()
292 return CollisionResult::kTakeNew; in ResolveValueCollision()
296 return overlay ? CollisionResult::kTakeNew : CollisionResult::kConflict; in ResolveValueCollision()
310 return existing_attr->IsWeak() ? CollisionResult::kTakeNew : CollisionResult::kKeepOriginal; in ResolveValueCollision()
315 return CollisionResult::kTakeNew; in ResolveValueCollision()
321 return CollisionResult::kKeepOriginal; in ResolveValueCollision()
324 return CollisionResult::kConflict; in ResolveValueCollision()
[all …]
DResourceTable.h229 enum class CollisionResult { kKeepBoth, kKeepOriginal, kConflict, kTakeNew }; enum
231 using CollisionResolverFunc = std::function<CollisionResult(Value*, Value*, bool)>;
234 static CollisionResult ResolveValueCollision(Value* existing, Value* incoming, bool overlay);
237 static CollisionResult IgnoreCollision(Value* existing, Value* incoming, bool overlay);