Commit Graph

30021 Commits

Author SHA1 Message Date
lishutong
5781604572 Use material design for OTAGUI.
1. Changed the layout using material design ui in vuetify.
2. Changed the file upload to drag-and-drop style.

Test: Mannual tested.
Change-Id: I8b34a405ae3783d6806946f0adc5fc5ac9c30a49
2021-07-13 15:32:44 +00:00
lishutong
d5c8b3a43c Add dependency for vuetify (material design UI).
No-Typo-Check: auto-generated artifacts

Test: Mannual tested.
Change-Id: Ia73480d3bf0617f4089f2da1a1f9d7ec13de42bb
2021-07-13 15:23:55 +00:00
lishutong
8ff98dca4a Add drag and drop file upload.
Test: Mannual tested.
Change-Id: Ia7442fc468dcaebb6244aaf693d70f251d7199c7
2021-07-13 15:23:55 +00:00
lishutong
bccd4df851 Refactor the frontend using material-desing UI.
Changed the layout and improved UX.

Test: Mannual tested.
Change-Id: I964357aec78af57bc42efc79dd4ab9be6df6b777
2021-07-13 15:23:54 +00:00
Hsin-Yi Chen
f05428fa44 Rename collect_exported_headers.cpp to source_path_utils.cpp
Test: ./header-checker-unittests
Bug: 192157880
Change-Id: I3adcaaf2eab6cb55ffdf5c5597a599786536823d
2021-07-13 12:31:43 +08:00
Treehugger Robot
13345b8028 Merge "Add dependency for material-design ui." am: 704ae498a2
Original change: https://android-review.googlesource.com/c/platform/development/+/1763226

Change-Id: I76245191393eddce34166afa432e419aeec5d532
2021-07-13 03:12:03 +00:00
Treehugger Robot
704ae498a2 Merge "Add dependency for material-design ui." 2021-07-13 02:54:08 +00:00
Treehugger Robot
215b6f1c30 Merge "Add systemapi version of api-versions.xml and annotations.zip to dist." am: 953a521c54
Original change: https://android-review.googlesource.com/c/platform/development/+/1763267

Change-Id: Ie2c44190bc20949e40729b2804b5d7ef2fa19416
2021-07-12 21:35:45 +00:00
Treehugger Robot
953a521c54 Merge "Add systemapi version of api-versions.xml and annotations.zip to dist." 2021-07-12 21:18:18 +00:00
Joel Galenson
55d2809391 Merge "Allow passing multiple crates to update_crate_tests.py" am: 728af1ce8d
Original change: https://android-review.googlesource.com/c/platform/development/+/1754702

Change-Id: I2d80ad0b6fa548bb6897108c42da49a7cb594afc
2021-07-12 20:40:52 +00:00
Joel Galenson
728af1ce8d Merge "Allow passing multiple crates to update_crate_tests.py" 2021-07-12 20:28:09 +00:00
satayev
80819a2460 Add systemapi version of api-versions.xml and annotations.zip to dist.
Bug: 190665366
Test: lunch sdk; m sdk dist; and inspect out/dist/system-data/api-versions.xml
Change-Id: If2eca5c63866d24fb46a6929222ed43a94d9bc23
2021-07-12 21:09:05 +01:00
lishutong
8d5a72c784 Add dependency for material-design ui.
Add vuetify and material-design-icons.

No-Typo-Check: auto-generated artifacts

Test: Mannual tested.
Change-Id: Ib38002237961162907772a20f5721f745c931563
2021-07-12 17:46:35 +00:00
Kelvin Zhang
dffd57e63c Merge changes I84bfadd3,I150677ff am: ffdba5d2c5
Original change: https://android-review.googlesource.com/c/platform/development/+/1761689

Change-Id: I960de897dd9ba0c8cd17cd767ada83a3211f4f7a
2021-07-09 21:02:51 +00:00
Treehugger Robot
1167c17ec9 Merge "Remove legacy platform API files from platform-tools" am: 7c17919023
Original change: https://android-review.googlesource.com/c/platform/development/+/1743724

Change-Id: I641b8d5dbc1939a61a47d10763924ad278a6ca79
2021-07-09 21:02:33 +00:00
Kelvin Zhang
ffdba5d2c5 Merge changes I84bfadd3,I150677ff
* changes:
  Avoid showing too many entries in the pie chart once.
  Add support to analyse the disk usage by file extensions.
2021-07-09 20:47:30 +00:00
Treehugger Robot
7c17919023 Merge "Remove legacy platform API files from platform-tools" 2021-07-09 20:38:53 +00:00
lishutong
ff71e8784c Avoid showing too many entries in the pie chart once.
When there are too many data entries, the pie chart is too crowded to
view. So we set a parameter in the class EchartsData called
maximumEntries, only the top <maximumEntries> will be shown and the rest
will be added to a single entry called 'other'.

Test: mannual tested.
Change-Id: I84bfadd3513c5827426d84ee7d5ad957b1ac5eab
2021-07-09 18:46:49 +00:00
lishutong
9a06a92a35 Add support to analyse the disk usage by file extensions.
An Android AB OTA-package provide installation operations by their
operation types, block adresses and payloads. One cannot know which file
is being operated by an installation operation unless checking the .map
file in the target build.

Now, the OTA_analysis tool can analyse which file is being operated and
do statistics over the the filename extensions when provided the target
build. This is done by building a hashtable according to the .map file
in the target build, and then query this hashtable by the operated
blocks, which is defined in the OTA package.

In the future, we can use segment tree instead of hashtable for better
query performance.

Test: Mannual tested, unit test will be added in a seperate CL.
Change-Id: I150677ff81c79813ff13bf96b6401dac01e4e17a
2021-07-09 18:25:23 +00:00
Dan Willemsen
477b1e30ef Remove legacy platform API files from platform-tools
We'll be unable to create these files in the Mac builds going forwards,
so just remove these files that were moved to the platform-specific dirs
four years ago.

Bug: 187222815
Test: treehugger
Change-Id: Ie1997782c2e6c692c45578116d4d71deb1986ed7
2021-07-09 00:56:17 +00:00
Treehugger Robot
f31bc68bd7 Merge "Seperate the ota_analysis from OTAgui." am: 4843e78de3
Original change: https://android-review.googlesource.com/c/platform/development/+/1760529

Change-Id: Iafe3e7a7eb828e39cc638988711dd2b417ef524d
2021-07-08 17:37:49 +00:00
Treehugger Robot
4843e78de3 Merge "Seperate the ota_analysis from OTAgui." 2021-07-08 17:24:09 +00:00
Treehugger Robot
b2b6252ee7 Merge "Add dependency for OTA analysis." am: 018519a175
Original change: https://android-review.googlesource.com/c/platform/development/+/1760530

Change-Id: I6cfc50378101594179a6ff4481a36051fe6ba364
2021-07-08 16:59:10 +00:00
Treehugger Robot
018519a175 Merge "Add dependency for OTA analysis." 2021-07-08 16:47:51 +00:00
lishutong
9a5b57e68d Seperate the ota_analysis from OTAgui.
The default entry point is /analyseOTA in production enviroment. This is
for the deployment on android.github.io/.

Test: Mannual tested.
Change-Id: Ic77277024b34b67b9964be8cf4f1592cebf5c5e8
2021-07-08 16:05:13 +00:00
lishutong
c9cebf06b4 Add dependency for OTA analysis.
Package.json is for npm and update_metadata_pb.js is generated from
protobufjs.

No-Typo-Check: auto-generated artifacts

Test: Mannual tested.
Change-Id: Id4808a26fb9c5b18d3ae0680a97045bee5d650b0
2021-07-08 15:33:28 +00:00
Treehugger Robot
2442ff73a0 Merge "Add some comments for a consistent javascript style." am: 8fba7c3392
Original change: https://android-review.googlesource.com/c/platform/development/+/1754474

Change-Id: I54e4e2db99d84041a7fc6b36e41e43c9f742f4f3
2021-07-02 16:38:07 +00:00
Treehugger Robot
8fba7c3392 Merge "Add some comments for a consistent javascript style." 2021-07-02 16:25:21 +00:00
Treehugger Robot
dc6af5b4eb Merge "cargo2android.py: remove TEST_MAPPING generation" am: 5b65b9117d
Original change: https://android-review.googlesource.com/c/platform/development/+/1753221

Change-Id: I239cce3d833784989277d4b9696c8e8c9810c806
2021-07-02 16:04:02 +00:00
Treehugger Robot
5b65b9117d Merge "cargo2android.py: remove TEST_MAPPING generation" 2021-07-02 15:49:52 +00:00
Treehugger Robot
73343aadab Merge changes Icd24f2c0,Ie1812552 am: be63da68f0
Original change: https://android-review.googlesource.com/c/platform/development/+/1754472

Change-Id: I3e64fe2e3c5425fc6bef2824fb36bc6c61f7b101
2021-07-02 15:19:29 +00:00
Treehugger Robot
be63da68f0 Merge changes Icd24f2c0,Ie1812552
* changes:
  Add support for analysing the COW merge operations in OTA packages.
  Update to new update_metadata.proto which support COW merge operation.
2021-07-02 15:09:32 +00:00
Joel Galenson
177910448c Allow passing multiple crates to update_crate_tests.py
Currently the script can only run on a single crate at a time, and
each time it runs it re-initializes Bazel. By passing multiple crates
we can save time by only initializing Bazel once.

Test: Call with zero, one, and multiple crate arguments.
Change-Id: Ic83c16d87066a8555b736b35bc7971586ee26e16
2021-07-02 07:39:28 -07:00
Thiébaud Weksteen
198e93f61b cargo2android.py: remove TEST_MAPPING generation
Do not generate TEST_MAPPING when running cargo2android.py. Still accept
the command line argument so current users/wrappers continue working.

Bug: 192348260
Test: Run cargo2android.py manually on ahash
Change-Id: I1975119f8fdd3ae850649b105678dec92fa67518
2021-07-02 16:30:31 +02:00
Treehugger Robot
762d1ae966 Merge "Add static_executable property for the binary snapshots" am: b20e718ebf
Original change: https://android-review.googlesource.com/c/platform/development/+/1754209

Change-Id: I0d02676c7180de8a2ec32e74709e7eb77ddc9b6c
2021-07-02 02:33:00 +00:00
Treehugger Robot
b20e718ebf Merge "Add static_executable property for the binary snapshots" 2021-07-02 02:17:38 +00:00
lishutong
52a5bf8b52 Add some comments for a consistent javascript style.
Follow the requirement of:
https://google.github.io/styleguide/jsguide.html#jsdoc-top-file-level-comments

Test: Mannual tested.
Change-Id: I697879384f64120a0effda00e70ec1b20260746b
2021-07-01 21:13:07 +00:00
lishutong
b7e6e67a8a Add support for analysing the COW merge operations in OTA packages.
Now the OTA_analysis is able to do statistics over how many blocks
are being operated by different types of COW merge operations.
Also refactor part of payload.js.

Test: Mannual tested.
Change-Id: Icd24f2c0aa42f968438965378b05a7021bafb88c
2021-07-01 20:49:11 +00:00
lishutong
37573fbca6 Update to new update_metadata.proto which support COW merge operation.
Now update_metadata.js will be able to parse COW merge operations in the
OTA packages. Please refer to change 1736935 for more details.

No-Typo-Check: auto-generated artifacts

Test: Mannual tested.
Change-Id: Ie18125524b991173b0599704eca51004fd0c0243
2021-07-01 18:32:01 +00:00
Justin Yun
5b5cd9e4f7 Add static_executable property for the binary snapshots
Static binaries have "static_executable: true". This is required to
check if a static lib dependency on 'libc' is allowed for the
snapshot binaries.

Bug: 190690041
Test: 'm nothing' with snapshots
Change-Id: I6c0c7e71fe50624ac233bc43665f4127c0f6103b
2021-07-01 11:53:01 +00:00
Treehugger Robot
44db40ffbd Merge changes I68491288,I54af3603 am: 595154fc79
Original change: https://android-review.googlesource.com/c/platform/development/+/1752405

Change-Id: Ia58cd88c6852d4f69503b8d347554c91a203849b
2021-07-01 01:58:00 +00:00
Treehugger Robot
d0f66fe3f4 Merge "Read static libs information from the json files" am: c678371f55
Original change: https://android-review.googlesource.com/c/platform/development/+/1751321

Change-Id: I0655536cf5b9713aca2eda737164ee768a4688d7
2021-07-01 01:57:48 +00:00
Weilun Du
46fcb826fd Merge "[SdkSetup] Clean up" am: 6105088a62
Original change: https://android-review.googlesource.com/c/platform/development/+/1752700

Change-Id: I678e89361a731633e57042527155e33225aa3818
2021-07-01 01:10:58 +00:00
Treehugger Robot
595154fc79 Merge changes I68491288,I54af3603
* changes:
  Add 'Select/Unselect All' in partition selection.
  Use pie chart for visualization of anaylsis result.
2021-07-01 00:56:55 +00:00
Treehugger Robot
c678371f55 Merge "Read static libs information from the json files" 2021-07-01 00:29:32 +00:00
Weilun Du
6105088a62 Merge "[SdkSetup] Clean up" 2021-06-30 23:52:32 +00:00
Treehugger Robot
78f8ce5ec3 Merge "Add functions to analyse the composition of payload." am: 7c20eda69e
Original change: https://android-review.googlesource.com/c/platform/development/+/1748942

Change-Id: Id872568f8ae4987a4a778131535f2cbc9c8ab06a
2021-06-30 23:17:22 +00:00
Treehugger Robot
7c20eda69e Merge "Add functions to analyse the composition of payload." 2021-06-30 23:01:43 +00:00
Weilun Du
933390bb0f [SdkSetup] Clean up
1, Fixed AndroidManifests.xml parsing error.
2, Connect to AndroidWifi access point for emulator only.

Bug: 185242318

Signed-off-by: Weilun Du <wdu@google.com>
Change-Id: I5d4863b3c5aba8e7dfccdd061739afe30ded5162
2021-06-30 15:09:58 -07:00
lishutong
18e0c887d8 Add 'Select/Unselect All' in partition selection.
Now both OTA configuration and OTA analysis page support select/unselect
all partitions.

Test: Mannual tested.
Change-Id: I684912886f3d3da259aeafea6aea1e53ae4a1c9a
2021-06-30 22:02:51 +00:00