aidl_interface: single place to validate versions

There are several places which check this. Since we are adding some
additional checks, we might as well unify this.

Future considerations:
- store Atoi'd versions in mutable property, so that we aren't
  repeatedly converting these string->int
- check that versions = sorted(set(versions))

Bug: 155301626
Test: manual, by specifying a version which does not belong
Change-Id: Ia77507c5909bde718eff9b83252ef1fc78e1d996
1 file changed