Check file contents in tests and add fix stack sampling config

Check that file exists and has a size > 0
Fix missing duration in stack sampling which was requiring collection to be explicitly stopped and causing this to fail

Test: run tests
Bug: 328147120
Change-Id: I7eda594387706388ed0aef6e830768b2c3f751a7
2 files changed
tree: 0ffff31c7f142aa4a82992ae011cde3c55202ac8
  1. aidl/
  2. apex/
  3. framework/
  4. service/
  5. tests/
  6. .gitignore
  7. OWNERS