Commit Graph

3641 Commits

Author SHA1 Message Date
lishutong
2ad7328834 Add data table in OTAGUI.
Use data table for build library and task monitoring.

Test: Mannual tested.
Change-Id: Icefd6bd27c98fe6b213ade7239ad4918fa9a9485
2021-07-14 17:41:53 +00:00
Treehugger Robot
c8077ecd33 Merge "Add dependency for vuetify (material design UI)." am: 411c51574a am: 6c9b0a08fc am: 86612fd733
Original change: https://android-review.googlesource.com/c/platform/development/+/1764185

Change-Id: Iad6b03182e1f9e84e35557c01f006da668efe008
2021-07-13 19:01:28 +00:00
Treehugger Robot
d87e451e41 Merge "Add drag and drop file upload." am: 066f9d3eea am: 0f7ac1a146 am: 5c936fe752
Original change: https://android-review.googlesource.com/c/platform/development/+/1763193

Change-Id: Ie01bbf289f5e72f37513b7497c55304a7f04b86c
2021-07-13 19:01:23 +00:00
Treehugger Robot
86612fd733 Merge "Add dependency for vuetify (material design UI)." am: 411c51574a am: 6c9b0a08fc
Original change: https://android-review.googlesource.com/c/platform/development/+/1764185

Change-Id: I5c26c8af9e820f6dfbff130c4dc1b2bc7b2aa527
2021-07-13 18:37:09 +00:00
Treehugger Robot
5c936fe752 Merge "Add drag and drop file upload." am: 066f9d3eea am: 0f7ac1a146
Original change: https://android-review.googlesource.com/c/platform/development/+/1763193

Change-Id: Ib0495da510a1ba7f047d66dbcfa3ebbc65429939
2021-07-13 18:37:04 +00:00
Treehugger Robot
0b0c627449 Merge "Refactor the frontend using material-desing UI." am: 8a8ed516d1 am: ca07502834 am: 8154e8fc4c
Original change: https://android-review.googlesource.com/c/platform/development/+/1763227

Change-Id: I33bcc9348681d272952b2c099b209a577293c183
2021-07-13 17:19:57 +00:00
Treehugger Robot
8154e8fc4c Merge "Refactor the frontend using material-desing UI." am: 8a8ed516d1 am: ca07502834
Original change: https://android-review.googlesource.com/c/platform/development/+/1763227

Change-Id: Id2e61b8722c067a4e9ba8d4dc859e80ac2d74db0
2021-07-13 17:01:11 +00:00
lishutong
0bb19984b5 Add dependency for data table.
Add vue3-table-lite.

No-Typo-Check: auto-generated artifacts

Test: Mannual tested.
Change-Id: Ifc84c61861f88f9eeb8d3e4d6775c93aaa609318
2021-07-13 15:32:46 +00:00
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
Treehugger Robot
c0c15b1e95 Merge "Add dependency for material-design ui." am: 704ae498a2 am: 13345b8028 am: 8083b87fc7
Original change: https://android-review.googlesource.com/c/platform/development/+/1763226

Change-Id: I22e0dce64901e6485d80efffe6500d4b27997278
2021-07-13 03:45:34 +00:00
Treehugger Robot
8083b87fc7 Merge "Add dependency for material-design ui." am: 704ae498a2 am: 13345b8028
Original change: https://android-review.googlesource.com/c/platform/development/+/1763226

Change-Id: I190e4db20887dfd3bedb69d518f9f4ac4dbb3247
2021-07-13 03:30:23 +00: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
f431f2e596 Merge changes I84bfadd3,I150677ff am: ffdba5d2c5 am: dffd57e63c am: 02f2fbd927
Original change: https://android-review.googlesource.com/c/platform/development/+/1761689

Change-Id: Ib31f425bbe9276fdcd0b41c5374d4cb84b521ba2
2021-07-09 21:22:14 +00:00
Kelvin Zhang
02f2fbd927 Merge changes I84bfadd3,I150677ff am: ffdba5d2c5 am: dffd57e63c
Original change: https://android-review.googlesource.com/c/platform/development/+/1761689

Change-Id: Ie15bd2ef72d22428c79c22d0eb1838a81feeaada
2021-07-09 21:12:32 +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
Treehugger Robot
74c3c6b6cc Merge "Seperate the ota_analysis from OTAgui." am: 4843e78de3 am: f31bc68bd7 am: 8e4d8d5b80
Original change: https://android-review.googlesource.com/c/platform/development/+/1760529

Change-Id: Ib540b59aea7947bf473f6979cf36a7c62cd4b91e
2021-07-08 18:09:25 +00:00
Treehugger Robot
8e4d8d5b80 Merge "Seperate the ota_analysis from OTAgui." am: 4843e78de3 am: f31bc68bd7
Original change: https://android-review.googlesource.com/c/platform/development/+/1760529

Change-Id: I4a7b655307237773e023c364e806e60c1a1b6837
2021-07-08 17:54:59 +00:00
Treehugger Robot
1004bc3134 Merge "Add dependency for OTA analysis." am: 018519a175 am: b2b6252ee7 am: d3be99c099
Original change: https://android-review.googlesource.com/c/platform/development/+/1760530

Change-Id: Iaaad50825cf439d06349fcc051ad98d869483d53
2021-07-08 17:29:21 +00:00
Treehugger Robot
d3be99c099 Merge "Add dependency for OTA analysis." am: 018519a175 am: b2b6252ee7
Original change: https://android-review.googlesource.com/c/platform/development/+/1760530

Change-Id: I102c499807ff8252db65c5252d768c31e0e927d1
2021-07-08 17:15:23 +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
Nataniel Borges
2de6261a9d Backwards compat for TaskFragment + overlap fix am: b8e901f896
Original change: https://googleplex-android-review.googlesource.com/c/platform/development/+/15212812

Change-Id: I355169a95eca0f3a688779a102a02e0f5aa34881
2021-07-06 12:33:45 +00:00
Nataniel Borges
b8e901f896 Backwards compat for TaskFragment + overlap fix
Add backwards compatibility for traces that didn't use the TaskFragment
on winscope. Moreover, fix the overlap calculation (using wrong object
type)

Bug: 185516271
Test: yarn run dev and open older SF and WM traces
Change-Id: I8d6c98a53cf4c5062dd7a366ef467755907dc0ed
(cherry picked from commit 752cec2b96)
2021-07-06 09:50:56 +00:00
Treehugger Robot
7df1d4b6f6 Merge "Add some comments for a consistent javascript style." am: 8fba7c3392 am: 2442ff73a0 am: 6b49b1f919
Original change: https://android-review.googlesource.com/c/platform/development/+/1754474

Change-Id: Ifb8593de603bd751ebbd3a0de35d9fa0f1aff613
2021-07-02 17:17:52 +00:00
Treehugger Robot
6b49b1f919 Merge "Add some comments for a consistent javascript style." am: 8fba7c3392 am: 2442ff73a0
Original change: https://android-review.googlesource.com/c/platform/development/+/1754474

Change-Id: Ib8f37bc8e7fb20cc5a854916dd68d7ede493e1fe
2021-07-02 16:59:06 +00:00
Treehugger Robot
95eed776b0 Merge changes Icd24f2c0,Ie1812552 am: be63da68f0 am: 73343aadab am: dcc9a154ea
Original change: https://android-review.googlesource.com/c/platform/development/+/1754472

Change-Id: I14056ef4f063fd3eee7a01e51ea87119415520c7
2021-07-02 15:51:30 +00:00
Treehugger Robot
dcc9a154ea Merge changes Icd24f2c0,Ie1812552 am: be63da68f0 am: 73343aadab
Original change: https://android-review.googlesource.com/c/platform/development/+/1754472

Change-Id: I327acb30872d239184fbf501ba32470573094a89
2021-07-02 15:36:17 +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
Treehugger Robot
1445c15aff Merge changes I68491288,I54af3603 am: 595154fc79 am: 44db40ffbd am: db57e0c545
Original change: https://android-review.googlesource.com/c/platform/development/+/1752405

Change-Id: Ib36e0b9dddb444afc9e3fdfd89dfb2fd78b788c7
2021-07-01 02:33:22 +00:00
Treehugger Robot
db57e0c545 Merge changes I68491288,I54af3603 am: 595154fc79 am: 44db40ffbd
Original change: https://android-review.googlesource.com/c/platform/development/+/1752405

Change-Id: Ie91c1b3eddfa134845d891367ad22a2bd3a9a9e2
2021-07-01 02:13:14 +00:00
Treehugger Robot
ed926f1fa6 Merge "Add functions to analyse the composition of payload." am: 7c20eda69e am: 78f8ce5ec3 am: 3269c2c4ca
Original change: https://android-review.googlesource.com/c/platform/development/+/1748942

Change-Id: Ib97e48bb2a637df9b69562ff58c1d3d2323b7d2e
2021-06-30 23:48:05 +00:00
Treehugger Robot
3269c2c4ca Merge "Add functions to analyse the composition of payload." am: 7c20eda69e am: 78f8ce5ec3
Original change: https://android-review.googlesource.com/c/platform/development/+/1748942

Change-Id: I4c6683c69b127d03678c106898723c1bbbf64474
2021-06-30 23:32:40 +00: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
lishutong
8a609acf15 Use pie chart for visualization of anaylsis result.
echarts_data.js will take the raw data and convert it into vue-echarts
readable option. PieChart.vue take this option and render it into a
pie chart.

Test: Mannual tested.
Change-Id: I54af3603031f0e23afa743ffc420d240a1b07bb2
2021-06-30 21:34:38 +00:00
lishutong
5a782225f0 Add functions to analyse the composition of payload.
payload_composition.js defines functions that could parse the
manifest of payload and do statistical analysis based on different
metrics. Currently, there are two functions:
1. Number of blocks (in target build) that are being operated,
categorized by the installation operations.

2. Disk usage of the payload.bin, categorized by the installation
operations.

The output is currently a list of pairs: (Operation, Number), which
can be later turned into input of visualized element.

Test: Mannual Tested.
Change-Id: I07defc23f6f04616656d8c9d3a7ecd05026bbbff
2021-06-30 21:31:46 +00:00
Treehugger Robot
c7c6a3afe9 Merge "Add support for analysis of OTA package." am: eed4369516 am: 6b58544d4f am: 364b2ae827
Original change: https://android-review.googlesource.com/c/platform/development/+/1748540

Change-Id: Id9e8a50571913586f3334af0950e3d4eb083d272
2021-06-28 21:24:24 +00:00
Treehugger Robot
364b2ae827 Merge "Add support for analysis of OTA package." am: eed4369516 am: 6b58544d4f
Original change: https://android-review.googlesource.com/c/platform/development/+/1748540

Change-Id: Ia06b4e9f099edd370061538b648b37d45f950265
2021-06-28 21:12:13 +00:00
Kelvin Zhang
990757741c Merge "Add the compiled 'update_metadata.proto' file." am: 1cbfd61d39 am: 5d44f4d2e8 am: cf63340be2
Original change: https://android-review.googlesource.com/c/platform/development/+/1748941

Change-Id: Ie724fff23c64ff098324552df20f935151b1e6dc
2021-06-28 19:39:14 +00:00
Kelvin Zhang
cf63340be2 Merge "Add the compiled 'update_metadata.proto' file." am: 1cbfd61d39 am: 5d44f4d2e8
Original change: https://android-review.googlesource.com/c/platform/development/+/1748941

Change-Id: Ib4c853bfb9b5d2304300c606c9f1c4d5489317d3
2021-06-28 19:23:38 +00:00
lishutong
ff63753f53 Add support for analysis of OTA package.
payload.js defines a Class that could parse the OTA metadata from
an OTA package(.zip). PackageAnalysis.vue enable users to upload
their own OTA package for analysis. PayloadDetail.vue and
OperationDetail will display the metadata in a human-readable way.

The whole analysis process is done on frontend and no communication
with server is involved after loading the page.

Test: Mannual tested.
Change-Id: I3becba872f6564ec9e44edad3a6cc19eb0714ed6
2021-06-28 19:19:49 +00:00
lishutong
76e4550e84 Add the compiled 'update_metadata.proto' file.
Use protobufjs to compile the update_metadata.proto
into update_metadata_pb.js

No-Typo-Check: auto-generated artifacts

Test: Mannual tested.
Change-Id: Ia0fefa57154f68809c8775ead9fa5e24d4804013
2021-06-26 15:55:51 +00:00
Kelvin Zhang
819f44025c Merge "Add the dependency of echarts." am: dbeb5f176f am: 39cb56c46f am: 55005d304f
Original change: https://android-review.googlesource.com/c/platform/development/+/1749120

Change-Id: I4752847f0e7a8fd2db5bff6097f5b90ba7383c07
2021-06-25 23:50:28 +00:00
Kelvin Zhang
55005d304f Merge "Add the dependency of echarts." am: dbeb5f176f am: 39cb56c46f
Original change: https://android-review.googlesource.com/c/platform/development/+/1749120

Change-Id: Ibd526b5251bb9af3343cf5e9499f881dcae79361
2021-06-25 23:33:39 +00:00
lishutong
d16272de68 Add the dependency of echarts.
No-Typo-Check: auto-generated artifacts

Test: Mannual tested.
Change-Id: I1d29383a8b26d73a1c4075c5e7a2516ec3407d8d
2021-06-25 22:47:56 +00:00