A slab supported on all four sides isn't automatically two-way. What actually decides it is a single number: the ratio of long span to short span.
Ask why a slab is called "one-way" and a common wrong answer is that it's only supported on two sides — beams or walls along two opposite edges, nothing along the other two. Plenty of slabs supported on all four edges are still designed as one-way. What actually separates the two categories is the panel's aspect ratio, the long span L divided by the short span S. When L/S is large, the slab bends almost entirely across the short direction no matter how many edges are supported. When L/S is close to 1, bending genuinely splits between both directions, and the reinforcement, the deflected shape, and even the governing failure mode near columns all change as a result.