Commit Graph

3449 Commits

Author SHA1 Message Date
Treehugger Robot
bd6f5feb8f Merge "Add support for uploading and downloading." am: 316ce8acca am: 95f76c2367 am: 355527b6d0 am: 16ab9a99b8
Original change: https://android-review.googlesource.com/c/platform/development/+/1728650

Change-Id: I740942d7e1c638c83eec393cd81348463502cb5f
2021-06-08 21:06:47 +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
2648a7f22c Merge "Add some configuration files." am: e326e629ed am: ff9dd96829 am: 72d98392c6 am: f0dbc290bb
Original change: https://android-review.googlesource.com/c/platform/development/+/1723255

Change-Id: I5c225fd25d9a5f006beed9388516264fd06e255e
2021-06-08 00:33:13 +00:00
Kelvin Zhang
082caf8fb5 Merge "A demo of OTAGUI, still in its very early version." am: 71772d6961 am: 86b4912d78 am: e4e7fbcdd9 am: 4ad1bec04b
Original change: https://android-review.googlesource.com/c/platform/development/+/1723254

Change-Id: Ie868b209ed7dfa0bb16478a4a439e147e911d5a4
2021-06-08 00:32:55 +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
66d4e27d14 Merge "First commit for otagui project." am: 7f7af47357 am: c96e4100c5 am: ed14e73d13 am: d6cc80bd59
Original change: https://android-review.googlesource.com/c/platform/development/+/1716770

Change-Id: Ia0aa0ae88a4009d1ef2a2855ad757eaa08034f6b
2021-05-25 04:13: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
ce1471ed41 Merge "5/ Show Flicker properties on Winscope (WM)" into sc-dev am: 1d6a084cc9
Original change: https://googleplex-android-review.googlesource.com/c/platform/development/+/14294778

Change-Id: Id789dd64ea3623547b41b5102d8533695d6eebd0
2021-05-05 18:12:06 +00:00
Nataniel Borges
988cca7418 4/ Sort property values on Winscope am: 449ee7d803
Original change: https://googleplex-android-review.googlesource.com/c/platform/development/+/14294769

Change-Id: I913bf979abfe80011235f5191952e1a870e74f2f
2021-04-29 21:10:04 +00:00
Nataniel Borges
63321b1a0e 3/ Simplify WM parsing on Winscope am: 06a596be4d
Original change: https://googleplex-android-review.googlesource.com/c/platform/development/+/14294766

Change-Id: Ie9179a05a5e54f8412667e24efdabf01b82428c4
2021-04-29 21:02:01 +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
a884f0b206 Merge "repo-review: Add a 'restore' command line option" am: 6a454c160e am: 2d4c1f67b8 am: 0ced6ab6d6 am: 83c1420457
Original change: https://android-review.googlesource.com/c/platform/development/+/1686051

Change-Id: I3e7bf97b7b6486c0f9e7815fd88459ab7e484041
2021-04-29 06:36:44 +00: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
3c6b2348e9 Merge "Consider windows with alpha=0 as invisible" into sc-dev am: 866c1f5d04
Original change: https://googleplex-android-review.googlesource.com/c/platform/development/+/14185370

Change-Id: I0de2b2a9fd17b6e1e28dc821223e88ac11187cc0
2021-04-16 10:34:55 +00:00
TreeHugger Robot
866c1f5d04 Merge "Consider windows with alpha=0 as invisible" into sc-dev 2021-04-16 10:22:36 +00:00
TreeHugger Robot
6cdbca04fb Merge "Update winscope dependencies" into sc-dev am: b184ea69d7
Original change: https://googleplex-android-review.googlesource.com/c/platform/development/+/14185371

Change-Id: I0d0f7e6b258718386fd8c12decb41677bdf9319a
2021-04-15 22:20:43 +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
3b6adef890 Merge "Create out dir if it does not exist." am: bd491d9de7 am: 21ff43c134 am: e57b5ccd77 am: afb3add402
Original change: https://android-review.googlesource.com/c/platform/development/+/1646655

Change-Id: I3aa3f18de858dadf6777e691d998e80d870d77a3
2021-03-30 04:54:05 +00: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
TreeHugger Robot
ff974aa561 Merge "Fix missing function MapNotNull" into sc-dev am: 834d2f5cea
Original change: https://googleplex-android-review.googlesource.com/c/platform/development/+/13689865

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Icb3dd177da9dfb947c5865b304da83094944883a
2021-02-24 21:50:06 +00: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
13dcea285c Merge "Add visible region to list of visibility reasons" into sc-dev am: 0c7313d8c7
Original change: https://googleplex-android-review.googlesource.com/c/platform/development/+/13589847

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I11e4fe8de5c41619941cfd2281c1cf5df38bec8f
2021-02-17 09:22:13 +00: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
c6a3e052d5 Merge "[LSC] Add LOCAL_LICENSE_KINDS to development" am: d6b1cbf769 am: 4d108c6ffe am: 483ddf28c8 am: 73272bf578
Original change: https://android-review.googlesource.com/c/platform/development/+/1589100

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Iaf213e3192a41b538ccbf74f34dc80faa517c0d2
2021-02-16 01:35:40 +00: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
Hongming Jin
71bd984858 Allow capturing accessibility trace through adb connected device.
Bug: 157601519
Test: Manual test using local windscope
Change-Id: I776d38dfc22ac4577b568e1d9a67c71ce132df7d
2021-02-15 05:13:20 +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
TreeHugger Robot
1a50ba43c1 Merge "Make winscope compatible with flickerlib constructors" into sc-dev am: 471c1da8dc
Original change: https://googleplex-android-review.googlesource.com/c/platform/development/+/13434216

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I7ee56c7a0c30ffdb662ccfb2c07e71e4d0851e03
2021-02-05 14:57:17 +00: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
Hongming Jin
75c9565e5e Add feature to load accessibility trace file.
Test: manual test
Bug: 157601519
Change-Id: I0383a0232beead1e363a750adccb23911fb8e38a
2021-01-25 19:03:07 -08: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