In openCV, the inputFrame.rgba().size returns resolution of inputFrame or previewSize of the camera?

you’re right.
but please rather refer to current opencv code than to a confusing 8 year old (!) fork of it

and also:

is this, what you’re seeing ?

[sidenote]: no android docs here