Those are BYD car door lock striker covers.
They snap over the U-shaped metal latch on the car's door frame (the part the door locks onto). Usually sold as a set of 4-one for each door.
What they do:
• Protect the striker from rust, dust, and scratches
• Reduce metal-on-metal noise
• Add a cleaner, branded look when the door is open