boundedSensorList

Returns the device's sensor list, capped at max entries and failing soft to empty.

Bounding the list prevents pathological work on unusual devices while keeping the sample deterministic (first max sensors as reported by the platform).

Return

A bounded list of android.hardware.Sensor, possibly empty.

Parameters

sm

Sensor manager to enumerate.

max

Maximum number of sensors to return.