cargo2android: reorder TEST_MAPPING statements

"host: true" entry should go before "name:" to match the output of
json writers which sort by alphabetical order. This will help and
avoid unnecesary changes when adding new tests to TEST_MAPPING - e.g.
aosp/1488728

Bug: 168167373
Test: cargo2android.py --run --tests
verify output

Change-Id: Id346a7f8a2cd910115e7fcc448c589363209bee9
diff --git a/scripts/cargo2android.py b/scripts/cargo2android.py
index 1b6f74e..25e9880 100755
--- a/scripts/cargo2android.py
+++ b/scripts/cargo2android.py
@@ -203,11 +203,10 @@
         if not is_first:  # add comma and '\n' after the previous entry
           outf.write(',\n')
         is_first = False
-        outf.write('    {\n      "name": "' + name + '"')
+        outf.write('    {\n')
         if host:
-          outf.write(',\n      "host": true\n    }')
-        else:
-          outf.write('\n    }')
+          outf.write('      "host": true,\n')
+        outf.write('      "name": "' + name + '"' + '\n    }')
       outf.write('\n  ]\n}\n')