I'll make the description more specific if anyone knows what this is, where it is seen...
Year: The Next Generation 1987 -1994
Made in: Paramount
Dimensions: about 15 cm x 6 cm x 3 cm
Notes: Original and screen used Starfleet DEVICE working prop from Star Trek The Next Generation series.
It is made in painted resin with clear and black parts.
It has a general switch inside and another "inclination" switch for automatic operation (static lights) through the movement of the hand!
If you look at the inside wall, it appears to be made of layers of plastic sheet, rather than a found object.
Post screenshots if you have any.