Old Hall-Effect Keyswitches?
Analog hall sensors are 4-pin so maybe this is one? If this is the case then you should drive constant current through one pair of contacts and measure the voltage on the other (I think they are unfortunately not interchangeable so you would have to guess).

On the other hand the die layout looks a little complicated for a simple analog hall sensor.