Commit Graph

3649 Commits

Author SHA1 Message Date
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
Treehugger Robot
d10bc7d575 Merge "Use database to store ota generate history." am: f051c6f342 am: 692e5f1f06 am: 4697006b08
Original change: https://android-review.googlesource.com/c/platform/development/+/1736940

Change-Id: Id3c86c6ef9344ca47efaf8c70a1764951b32cb63
2021-06-21 23:55:09 +00:00
Treehugger Robot
4697006b08 Merge "Use database to store ota generate history." am: f051c6f342 am: 692e5f1f06
Original change: https://android-review.googlesource.com/c/platform/development/+/1736940

Change-Id: I7f8f731ef05504fafa2511b71f57f02e2a3214a4
2021-06-21 23:37:03 +00:00
lishutong
c2c0ed1f6e Use database to store ota generate history.
Add functions:
- Now the ota package generate history is stored in a database.
- Job status page will show some basic info of the jobs.
- Job detail page will show a detailed configuration.

Test: Mannual tested.
Change-Id: Ia98763e783e8d9c903ac8f5c137719df8527d204
2021-06-21 19:17:34 +00:00
Charles Chen
f728fb61f6 Update Winscope for TaskFragment am: 92d1bda2a2
Original change: https://googleplex-android-review.googlesource.com/c/platform/development/+/14945091

Change-Id: I1e7d48650cae44dda3dc58c9d569aa546db99ea3
2021-06-18 04:13:33 +00:00
Charles Chen
92d1bda2a2 Update Winscope for TaskFragment
1. Add TaskFragment.ts
2. rename ActivityTask.ts to Task.ts

Bug: 190684677
Test: manual - run "yarn run dev" in winscope directory
               click "dumnp state"
Change-Id: Ie7339af9e4906e38b73bcd01dd9fbf1d00d25a3b
2021-06-17 22:01:14 +08:00
Treehugger Robot
8f5bf449ea Merge "Add an alert in frontend when job cannot be submitted." am: dc19269686 am: 5bb40ca742
Original change: https://android-review.googlesource.com/c/platform/development/+/1737693

Change-Id: I8f9cc532d15eb2e35f925dd67e5572fda7446fb8
2021-06-15 16:49:13 +00:00
Treehugger Robot
12f01c2d40 Merge "Add support for partial update and target library." am: ae475e51a6 am: df2d650544
Original change: https://android-review.googlesource.com/c/platform/development/+/1735315

Change-Id: Ice7e595e807945b01e19e8c1be34cc48d835b42d
2021-06-15 16:49:08 +00:00
lishutong
71cab6686b Add an alert in frontend when job cannot be submitted.
Test: Mannual tested.
Change-Id: I9076be48cf2efd8d545b88beb87ac0db651d39e4
2021-06-15 14:07:05 +00:00
lishutong
dce3afb0e9 Add support for partial update and target library.
New functions:
- The uploaded target files will be stored into a database.
- The detailed info of target files can be shown in the target library.
- Add support for generating partial OTA.

Test: Mannual tested.
Change-Id: Idf715994fe51b9ab6addbfe72792be890243702d
2021-06-15 13:59:57 +00:00
Treehugger Robot
355527b6d0 Merge "Add support for uploading and downloading." am: 316ce8acca am: 95f76c2367
Original change: https://android-review.googlesource.com/c/platform/development/+/1728650

Change-Id: I08248727a78ee8d74db320993247b917e1879772
2021-06-08 20:15:50 +00:00
lishutong
fcdf777e5e Add support for uploading and downloading.
New functions:
- Can upload target file.
- Can select target file from the uploaded ones.
- Can download the generated OTA file.
- Can monitor the stdout during OTA package generation.

Also decoupled the job running function with the web server code.

Test: Mannual tested.
Change-Id: Ic525ef3997f048d73b21ad1d9475d54b1f8d112c
2021-06-08 16:54:40 +00:00
Kelvin Zhang
72d98392c6 Merge "Add some configuration files." am: e326e629ed am: ff9dd96829
Original change: https://android-review.googlesource.com/c/platform/development/+/1723255

Change-Id: I99e2e7639f3ef632bfe62f084d93b2e2b43caaa2
2021-06-07 23:57:24 +00:00
Kelvin Zhang
e4e7fbcdd9 Merge "A demo of OTAGUI, still in its very early version." am: 71772d6961 am: 86b4912d78
Original change: https://android-review.googlesource.com/c/platform/development/+/1723254

Change-Id: Ic68a96b9c04322db09a137a49a0e8ce555a99fd7
2021-06-07 23:56:19 +00:00
lishutong
f0e53f58aa Add some configuration files.
Test: Mannual tested.
Change-Id: I688bf65cadfc094800635b1e26b51411b473bb6a
2021-06-07 03:12:46 +00:00
lishutong
bb656f5ea8 A demo of OTAGUI, still in its very early version.
Functions:
- Create OTA_package generate jobs.
- Monitor OTA_package generate jobs.
Please refer to 'README.md' for more details.
Test: Mannual tested.

Change-Id: Ie0eb836e28b338b50c58abe146a234dfb751e163
2021-06-07 03:04:36 +00:00
Treehugger Robot
ed14e73d13 Merge "First commit for otagui project." am: 7f7af47357 am: c96e4100c5
Original change: https://android-review.googlesource.com/c/platform/development/+/1716770

Change-Id: Iaa5af6ad5d813478d88ff2dcb4904e772a918a1f
2021-05-25 03:04:55 +00:00
lishutong
9295b995ea First commit for otagui project.
Test: no test is required.
Change-Id: I29bbe71df3087b006540903b7b86d124da07d913
2021-05-24 23:05:16 +00:00
Nataniel Borges
c84155243a 5/ Show Flicker properties on Winscope (WM)
- Use flicker object on the property tree
- Keep `proto` entry on the property tree with the original proto file
- Use `prettyPrint` method on flicker to format output for winscope

Bug: 185516271
Test: build winscope and open WM traces
Change-Id: I1c9f1a106b82f487b78d1b386cc091d21715e04d
2021-04-29 21:11:45 +02:00
Nataniel Borges
449ee7d803 4/ Sort property values on Winscope
Present the values of WM and SF traces alphabetically

Bug: 185516271
Test: build winscope and open WM/SF traces, check the property list
Change-Id: I6cc5553ae6e987d52f812c030b0e4706ab58606b
2021-04-29 21:10:41 +02:00
Nataniel Borges
06a596be4d 3/ Simplify WM parsing on Winscope
- Use flicker class type as object type
- Use name from flicker
- Use stableID from flicker
- Refactor element visibility
- Rename `childrenWindows` to children to avoid creating a new property

Bug: 185516271
Test: build winscope and open WM traces
Change-Id: I582c0fe4ac48f8a503d1dccfbce437d489a50ca7
2021-04-29 21:10:23 +02:00
Yo Chiang
83c1420457 Merge "repo-review: Add a 'restore' command line option" am: 6a454c160e am: 2d4c1f67b8 am: 0ced6ab6d6
Original change: https://android-review.googlesource.com/c/platform/development/+/1686051

Change-Id: I4382cb6cb580b02ec58021d49deda0aac944c9d4
2021-04-29 06:23:14 +00:00
Taesu Lee
6c7a793c78 repo-review: Add a 'restore' command line option
This CL enables repo_review.py to restore CL(s).

Test: repo-review.py -g [url] [query] --restore

Signed-off-by: Taesu Lee <taesu82.lee@samsung.com>
Change-Id: Ia1e84b35dbae453feba338fea1d1f101620cfa06
2021-04-26 11:54:25 +09:00
TreeHugger Robot
866c1f5d04 Merge "Consider windows with alpha=0 as invisible" into sc-dev 2021-04-16 10:22:36 +00:00
Nataniel Borges
d945fbd381 Update winscope dependencies
Current version of winscope had several dependencies with deprecation
and security warnings. To avoid issues, update to the latest compatible
versions according to `package.json` configuration using `yarn upgrade`

Bug: 162925924
Test: compile and run winscope (yarn run dev)
Change-Id: I29b387e0620e0460d9ea51dbca4039bbeb4deb39
2021-04-14 15:03:47 +02:00
Nataniel Borges
ccd908b3f8 Consider windows with alpha=0 as invisible
Previously Winscope considered only the `isVisible` property to
determine if the window was visible or not. This failed in cases such as
`com.google.android.googlequicksearchbox/android.app.ContextImpl` when
launching apps, where `isVisible=true` and `alpha=0`

Bug: 181630910
Bug: 182720234
Test: atest FlickerTests
Change-Id: I73de39557f0a9cebaad66d169f81794779793f64
2021-04-14 14:59:53 +02:00
Treehugger Robot
afb3add402 Merge "Create out dir if it does not exist." am: bd491d9de7 am: 21ff43c134 am: e57b5ccd77
Original change: https://android-review.googlesource.com/c/platform/development/+/1646655

Change-Id: Id75e2fcecd716996881f5776733f87889eda1b78
2021-03-30 04:17:24 +00:00
Dan Albert
49a88d3754 Create out dir if it does not exist.
Test: ./build_ndk_docs.py
Bug: None
Change-Id: I47a31b42df4bf555c95f5abde2b0c86e64a32d57
2021-03-19 13:49:27 -07:00
Nataniel Borges
24e39c5c4c Fix missing function MapNotNull
MapNotNull is not a standard TS/JS function

Test: compile winscope and open any file
Bug: 167522376
Change-Id: I796d96eb963627bd3a872dea9dea51c7eaa97e8c
2021-02-24 19:53:31 +01:00
TreeHugger Robot
0c7313d8c7 Merge "Add visible region to list of visibility reasons" into sc-dev 2021-02-17 08:40:25 +00:00
Vishnu Nair
082f6a661f Add visible region to list of visibility reasons
Test: open trace from bug
Fixes: 157252333
Change-Id: Ifebac00a112798bbd03cf74458a1ffc7682890f6
2021-02-16 16:19:09 -08:00
Treehugger Robot
73272bf578 Merge "[LSC] Add LOCAL_LICENSE_KINDS to development" am: d6b1cbf769 am: 4d108c6ffe am: 483ddf28c8
Original change: https://android-review.googlesource.com/c/platform/development/+/1589100

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I8bfb99db5af219de8b7c6844b99006009152bbe8
2021-02-16 01:02:14 +00:00
Bob Badour
f7cf305656 [LSC] Add LOCAL_LICENSE_KINDS to development
Added SPDX-license-identifier-Apache-2.0 to:
  apps/BluetoothDebug/Android.bp
  apps/BuildWidget/Android.bp
  apps/CustomLocale/Android.bp
  apps/DevelopmentSettings/Android.bp
  apps/Fallback/Android.bp
  apps/GestureBuilder/Android.bp
  apps/NinePatchLab/Android.bp
  apps/OBJViewer/Android.bp
  apps/PushApiAuthenticator/Android.bp
  apps/PushApiTestAppOne/Android.bp
  apps/PushApiTestAppTwo/Android.bp
  apps/SdkSetup/Android.bp
  apps/SettingInjectorSample/Android.bp
  apps/WidgetPreview/Android.bp
  apps/launchperf/Android.bp
  cmds/monkey/Android.mk
  gsi/gsi_util/Android.bp
  gsi/repack_super_image/Android.bp
  host/windows/Android.bp
  python-packages/Android.bp
  samples/AccelerometerPlay/Android.bp
  samples/AdaptiveIconSample/Android.bp
  samples/AliasActivity/Android.bp
  samples/AndroidBeamDemo/Android.bp
  samples/AppNavigation/Android.bp
  samples/AutofillKeyboard/Android.bp
  samples/BackupRestore/Android.bp
  samples/BasicGLSurfaceView/Android.bp
  samples/BluetoothChat/Android.bp
  samples/BrokenKeyDerivation/Android.bp
  samples/BrokenKeyDerivation/tests/Android.bp
  samples/BusinessCard/Android.bp
  samples/Compass/Android.bp
  samples/ContactManager/Android.bp
  samples/CubeLiveWallpaper/Android.bp
  samples/DataWiper/Android.bp
  samples/DeviceAdminWhitelistedAccount/Android.bp
  samples/FixedGridLayout/Android.bp
  samples/HeavyWeight/Android.bp
  samples/HelloActivity/Android.bp
  samples/HelloActivity/tests/Android.bp
  samples/HelloEffects/Android.bp
  samples/Home/Android.bp
  samples/HoneycombGallery/Android.bp
  samples/InlineFillService/Android.bp
  samples/JetBoy/Android.bp
  samples/LceDemo/Android.bp
  samples/LunarLander/Android.bp
  samples/LunarLander/tests/Android.bp
  samples/MultiResolution/Android.bp
  samples/MultiWindow/Android.bp
  samples/MySampleRss/Android.bp
  samples/NotePad/Android.bp
  samples/Obb/Android.bp
  samples/RSSReader/Android.bp
  samples/ReceiveShareDemo/Android.bp
  samples/SampleSyncAdapter/Android.bp
  samples/SimpleJNI/Android.bp
  samples/SimpleJNI/jni/Android.bp
  samples/SipDemo/Android.bp
  samples/SkeletonApp/Android.bp
  samples/SkeletonApp/tests/Android.bp
  samples/Snake/Android.bp
  samples/Snake/tests/Android.bp
  samples/SoftKeyboard/Android.bp
  samples/SpellChecker/HelloSpellChecker/Android.bp
  samples/SpellChecker/SampleSpellCheckerService/Android.bp
  samples/StackWidget/Android.bp
  samples/ThemedNavBarKeyboard/Android.bp
  samples/ToyVpn/Android.bp
  samples/TtsEngine/Android.bp
  samples/USB/AdbTest/Android.bp
  samples/USB/MissileLauncher/Android.bp
  samples/UiAutomator/Android.mk
  samples/Vault/Android.bp
  samples/Vault/tests/Android.bp
  samples/VoiceRecognitionService/Android.bp
  samples/VoicemailProviderDemo/Android.bp
  samples/WeatherListWidget/Android.bp
  samples/WiFiDirectDemo/Android.bp
  samples/WiFiDirectServiceDiscovery/Android.bp
  samples/Wiktionary/Android.bp
  samples/WiktionarySimple/Android.bp
  samples/XmlAdapters/Android.bp
  samples/apkcachetest/Android.bp
  samples/training/NsdChat/Android.bp
  scripts/Android.bp
  testrunner/Android.mk
  testrunner/tests/Android_native.mk
  tools/apkcheck/Android.bp
  tools/bugreport/Android.bp
  tools/etc1tool/Android.bp
  tools/idegen/Android.bp
  tools/mkstubs/Android.bp
  tools/rmtypedefs/Android.bp
  vndk/Android.bp
  vndk/tools/Android.bp
  vndk/tools/elfcheck/Android.bp
  vndk/tools/header-checker/Android.bp
  vndk/tools/header-checker/src/repr/protobuf/proto/Android.bp
  vndk/tools/header-checker/tests/integration/ifunc/Android.bp
  vndk/tools/header-checker/tests/integration/version_script_example/Android.bp
  vndk/tools/image-diff-tool/Android.bp

Added SPDX-license-identifier-Apache-2.0 SPDX-license-identifier-BSD
    SPDX-license-identifier-CPL-1.0 SPDX-license-identifier-MIT
    SPDX-license-identifier-Unicode-DFS SPDX-license-identifier-W3C
    legacy_restricted legacy_unencumbered
to:
  Android.bp

Added SPDX-license-identifier-Apache-2.0 SPDX-license-identifier-CPL-1.0
to:
  samples/SearchableDictionary/Android.bp

Added SPDX-license-identifier-Apache-2.0 legacy_unencumbered
to:
  tools/Android.bp

Added SPDX-license-identifier-BSD SPDX-license-identifier-CPL-1.0
    SPDX-license-identifier-MIT SPDX-license-identifier-Unicode-DFS
    SPDX-license-identifier-W3C
to:
  sdk/Android.bp

Added legacy_restricted
to:
  samples/KeyChainDemo/Android.bp
  tools/line_endings/Android.bp
  vndk/tools/definition-tool/datasets/Android.bp

Bug: 68860345
Bug: 151177513
Bug: 151953481

Test: m all

Exempt-From-Owner-Approval: janitorial work
Change-Id: I9847e00fb4278bc083b4debbc751003c995ea45c
2021-02-12 17:13:45 -08:00
Nataniel Borges
dc836bc679 Make winscope compatible with flickerlib constructors
Recently the constructors of the flickerlib objects were
updated to reduce memory.

This CL updates winscope parser objects and fix visualization
so that it is compatible with those changes

Bug: 178572522
Test: `yarn run dev` and open a window manager trace
Change-Id: Ic331fe90d17e5c30c9062f119e26e824dbe1e5a7
2021-02-05 13:59:03 +01:00
Nataniel Borges
0b1e4bbf9f Merge "Consider rounded corners in occluded by (winscope)" 2021-01-06 09:38:14 +00:00
Nataniel Borges
5f2176643f Add windowContainer to winscope
This information was removed in a previous code refactor but is still
necessary

Bug: 162925924
Test: Compile winscope. Open a WM trace. Check if the window container
property exists

Change-Id: Ia93b927945f6aafa428fe5ebc3c3aace8223e2a7
2021-01-06 09:56:52 +01:00
Nataniel Borges
8485125094 Consider rounded corners in occluded by (winscope)
The visible region calculation in the surface flinger doesn't consider that a layer with rounded corners can fully occlude another. Use the same behavior in flicker and winscope.

Bug: 174541970
Test: atest FlickerTests
Change-Id: Ie8e871a94b4413d2f02624c5738841d5d861bbbe
2021-01-05 17:18:36 +01:00
Vishnu Nair
d52381da39 Fix sf trace flag propagation in winscope
Fixes a couple of issues:
- if no flags are set, the configuration will not be send to the proxy.
Fix this by always sending the requested config
- make winscope tracing sync by default as a temp workaround for the
async tracing crashes

Bug: none
Test: toggle composition trace flags from winscope and check trace
Change-Id: I724dcc19309a616d3eb096d966dd40bf00c5d8ed
2020-12-17 23:05:17 +00:00
TreeHugger Robot
6a7886ae39 Merge "Revert "Winscope: add more sf trace flags and visibility reasons"" 2020-12-07 19:14:56 +00:00
Vishnu Nair
8e5aa26704 Revert "Winscope: add more sf trace flags and visibility reasons"
This reverts commit 78574c94dc.

Reason for revert: breaks winscope

Change-Id: I5a2200ce49277de67213c7302fed7f5d3d9a7ac1
Fixes: 174993871
2020-12-07 17:25:09 +00:00
TreeHugger Robot
858dbc28bf Merge "winscope: handle missing child layers gracefully" 2020-12-04 18:51:49 +00:00
Vishnu Nair
78574c94dc Winscope: add more sf trace flags and visibility reasons
- Detect if a layer is not drawn if its corner radius crop is incorrectly set
- Add more sf trace flags with usage info

Test: manual testing
Change-Id: I4dbf93c1cc1a51bd713414451832f4f873054afa
2020-12-03 18:40:38 -08:00
Nataniel Borges
c4d960d343 Allow null stableBounds on DisplayContent
Sometimes this information is null on the proto, this would crash
Winscope. Instead use an empty Rect when the information is unavailable

Bug: 167521440
Test: open a WM trace on Winscope
Change-Id: Ia6ceddfbbf8e083d02932925536ac64edafa6a2a
2020-12-03 19:03:18 +01:00
Nataniel Borges
d4a36f8cdc Merge changes from topic "flicker-cts"
* changes:
  Determine if the WM entry is complete or not
  Make winscope compatible with flicker/CTS infra
2020-12-03 08:59:15 +00:00