AIDEGen: Unable to create project properly with frameworks/native frameworks/base cts

We have to check into the sub-folders of the module and check their file
extensions if there are *.c or *.cpp files to determine the module is a
native module.

Bug: 127877787
Test: 1. m aidegen
      2. aidegen-dev frameworks/native frameworks/base cts -v
      3. IntelliJ project view should show projects: base, cts, native.

Change-Id: Ie262a112a1de75b9faa7b44d1dd764342bd5e10f
3 files changed