Apexd: Refactor directory scans

Add a helper to produce a vector, then use that function in most
APEX scans.

In preparation for extended session handling.

Bug: 119260955
Test: mmma system/apex/apexd
Test: atest apexservice_test
Change-Id: I663c52b0322a760affffefa838a9cd5c8b68b928
1 file changed
tree: d25bb0f612b6056a8711c095c4be7d2082f87995
  1. apexd/
  2. apexer/
  3. proto/
  4. tests/
  5. OWNERS
  6. PREUPLOAD.cfg