Make run-test build scripts more deterministic

Use soong_zip instead of system zip to make the build deterministic.
This is guaranteed to be same on all machines and removes timestamp.

Fix helper utility which generated java source code with functions
in random order for some tests.

There is still some non-determinism left caused by the smali
compiler generating non-deterministic dex output files.

Bug: 147814778
Test: test.py --host
Change-Id: Ibd1187e7cda840b647d3f13ad158952f235716bf
8 files changed