diff options
author | Pete Gillin <peteg@google.com> | 2020-02-04 13:52:15 +0000 |
---|---|---|
committer | Pete Gillin <peteg@google.com> | 2020-02-06 17:26:51 +0000 |
commit | d2186a8ae3a08a1ec605cbab175b474715c1c6e0 (patch) | |
tree | 7e2468cede15ea3f56636e137748c8152f57841c /annotations/generate_annotated_java_files.py | |
parent | cca8c2962fb7a201490be7734d74c6be0fd61d26 (diff) |
Avoid hardcoding /storage/emulated/0 in memory metrics test.
In https://r.android.com/1224837 we hardcoded this path instead of
using the value of ${EXTERNAL_STORAGE}, because the latter triggered
an issue with the way the tradefed test runner does URL encoding. This
issue is only triggered when the filename has a + sign in it. So the
better fix is to avoid that + sign. Since that was coming from the ISO
8601 formatting of a timestamp with a timezone, this can be done by
simply switching to UTC.
This change also switches from java.util.Date to the superior
java.time, and simplifies the code along the way.
Bug: 145514052
Test: atest libcore-memory-metrics-tests
Change-Id: I93264fa43c91a6d5697b8511d406a85aeece6111
Diffstat (limited to 'annotations/generate_annotated_java_files.py')
0 files changed, 0 insertions, 0 deletions