Commit Graph

2983 Commits

Author SHA1 Message Date
Junyu Lai
a7a941bf54 Merge "Add C++ support for coding style check tool." am: a93b22a51c am: 7fdbd9c776
am: 3c6ed00a0a

Change-Id: I41115bda490d64671ff32d10c4886350c5a8eafb
2018-11-04 18:45:20 -08:00
junyulai
cb1339fd47 Add C++ support for coding style check tool.
Test: manually run this script on both C++ & Java commits
Change-Id: I92f2d89fbe956a04f9547657b7b17357575fb4af
2018-10-30 10:17:14 +08:00
Chalard Jean
068ef14ba9 Merge "Address comments from #725016" am: 5ca3145db9 am: 50b0f7388b
am: 0d3e0e5aec

Change-Id: Ib008dce8a112b5b3cae07a58a8ce03e1d521278f
2018-10-16 20:11:16 -07:00
Chalard Jean
508c33e94b Merge "Add the core connectivity tools directory and a first tool" am: 735170647e am: d8bb6995f0
am: f92d0c91dc

Change-Id: Ie0ef53c56a41cd9279604c897481bdc853d51758
2018-10-16 03:08:08 -07:00
Chalard Jean
1ecd3f6236 Address comments from #725016
Test: ran this
Change-Id: Iedda798519297499a1d6d28e4aac2199456e9e92
2018-10-16 18:53:57 +09:00
Chalard Jean
735170647e Merge "Add the core connectivity tools directory and a first tool" 2018-10-16 09:49:50 +00:00
Logan Chien
80d6fdefea Merge changes Ie7a1b820,If986af3a,Iaf4016c7 am: e8d1c1adeb am: 092a492f4d
am: e8d3ec8205

Change-Id: Ic491d587dc5a3041e7de16e68cc020328e2a2f9c
2018-09-10 19:57:45 -07:00
Logan Chien
2da2f27813 repo-review: Add set/delete topic and set hashtags
Test: ./repo_review.py --set-topic test [query]
Test: ./repo_review.py --delete-topic [query]
Test: ./repo_review.py --add-hashtag test [query]
Test: ./repo_review.py --remove-hashtag test [query]
Change-Id: Ie7a1b82022d81850754543366202892c437f7968
2018-09-07 19:13:11 +08:00
Logan Chien
e1f29c1ee0 repo-review: Extract _process() for error handling
Test: ./repo_review.py -l Verified +1 [query]
Test: ./repo_review.py -m 'Test message' [query]
Test: ./repo_review.py --abandon 'Abandon message' [query]
Change-Id: If986af3a7ace7766e0854d611542deb6a474165b
2018-09-07 11:58:55 +08:00
Logan Chien
63be158fc6 repo-review: Extract _make_json_post_request()
Test: ./repo_review --label Verify +1 [query]
Change-Id: Iaf4016c7d2d606a3c3fb29303d8f3d978820eefe
2018-09-07 11:48:10 +08:00
Logan Chien
bf85e32ed9 Merge "repo-pull: Handle project-not-found error" am: 38b51a31c8 am: 77d53a88d5
am: 272953942c

Change-Id: I9b44f5cabfe16047df1e0b8bc51148afe2db0970
2018-08-17 00:14:12 -07:00
Logan Chien
38b51a31c8 Merge "repo-pull: Handle project-not-found error" 2018-08-17 03:51:50 +00:00
Logan Chien
028c2c112b repo-pull: Handle project-not-found error
This commit add an error handler for project-not-found errors, so that
the failure of mapping one project does not stop us from pulling CLs for
other projects.

Test: repo_pull -g [gerrit] [query]
Change-Id: Ied9d400a09c032418cd345dc076948b06058aec4
2018-08-08 17:00:52 +08:00
Vishnu Nair
05bba4bf90 Winscope: Use a unique stableId for all layers and wm entries
Top level of the hierarchy contains the entry with a timestamp. When
navigating the timeline with arrow keys, entry loses focus since
the timestamp changes.

See: https://android-window-manager.teams.x20web.corp.google.com/winscope/winscope-staging-vishnun.html

Test: Open trace in winscope, click on entry & navigate timeline with arrow keys
Change-Id: Ifbd88da717354c66d96a05d25a9d619fa5209e26
2018-08-07 10:36:05 -07:00
Chalard Jean
3e634e3aa6 Add the core connectivity tools directory and a first tool
The first tool is useful to check style manually for repos
where the check can't be enforced automatically yet.

Test: ran this
Change-Id: Ic67daa5df2d60d25e6f48e3d614b5b8cc9bd2210
2018-08-02 16:46:22 +09:00
Adrian Roos
778f819353 Winscope: keep backwards compatibility prior to windowFrames
We should still be able to properly render traces taken prior to the WindowFrames
refactor - if the property is not available, use the legacy property instead.

Test: yarn run dev
Change-Id: Ie10f7d14ac5673e8be844d2d5a4fa752d502b9df
2018-07-25 15:51:45 +02:00
chaviw
7138f343a1 Use windowFrames.frame instead of frame to draw the area.
The code is changed so the frame protobuf is now under another class
called windowFrames. Update the js code so it can properly draw the
frame with the new code change.

Test: Ran on localhost with updated protobuf file
Bug: 111359087
Change-Id: I072daae54601120de5b6eaa0a64ee7c3096e4a43
2018-07-16 16:21:24 -07:00
Logan Chien
4001c9943c Merge "repo-review: Add abandon command line option" am: f35b6297a1 am: dd0c71edcd
am: e3411c674a

Change-Id: I32b26efb177b7c84d381fcf0dead8090d151329d
2018-07-02 21:47:27 -07:00
Logan Chien
dd0c71edcd Merge "repo-review: Add abandon command line option"
am: f35b6297a1

Change-Id: I453bcb6e730cca58bcb9c62e24e37f6a3befc311
2018-07-02 21:40:04 -07:00
Logan Chien
b260a60264 repo-review: Add abandon command line option
This commit adds `--abandon` comand line option to abandon several
change lists.

Test: repo-review.py -g [url] [query] --abandon '[reason]'
Change-Id: I5360e95a284a2d3e77a66d52ea01cec7872b9334
2018-07-03 10:29:30 +08:00
Kevin DuBois
a938f290a0 Winscope: fix .pb location for sf traces
Trace location was incorrect. Changing to correct location.

Test: run capture_sf_trace.sh, upload to winscope, see trace
Change-Id: Ia84501014e6cf83d2fb1d167c1a7aac8b64a06d4
Fixes: b/110715663
2018-06-22 15:41:18 -07:00
Logan Chien
3754c3df16 Merge changes Ie7318b61,Ie0d350f2 am: c85814676d am: 4988d05f98
am: b864b9ea7f

Change-Id: Ie77d0de16006f5b7b2b7c69cdf90ea580117be3d
2018-06-18 20:40:21 -07:00
Logan Chien
4988d05f98 Merge changes Ie7318b61,Ie0d350f2
am: c85814676d

Change-Id: Ibf495f39e93998a542a02bb74413f13f508d3811
2018-06-18 20:33:49 -07:00
Logan Chien
bfb414f033 repo-pull: Fix pylint errors
This commit adds several pylint fixes.

Test: for i in *.py; do pylint $i; done
Change-Id: Ie7318b616ef75c2944a4c03185f49b2a3f02db50
2018-06-15 16:06:56 +08:00
Logan Chien
ecd9846942 repo-pull: Fix undefined variable in except clause
This commit renames `process` to `proc` to eliminate an undefined
variable in the except clause.

Test: pylint repo_pull.py
Change-Id: Ie0d350f2c2e0b0e3eed037227dd15839e460d44e
2018-06-15 14:39:24 +08:00
Xin Li
73dc9d8c41 Merge pi-dev-plus-aosp-without-vendor into stage-aosp-master
Bug: 79597307
Change-Id: Ifaec2119ba82252c290f247f120150b7468886a3
2018-06-08 11:06:50 -07:00
Bowgo Tsai
f4fe0ad4ba Merge "repo-review: Fix missing imports" am: 24657efd31 am: 7e0c470acd
am: ffaa2becd6

Change-Id: Ic56a0c4420db047741632ef043aafd92d7a2c1ee
2018-06-08 04:10:28 -07:00
Bowgo Tsai
ffaa2becd6 Merge "repo-review: Fix missing imports" am: 24657efd31
am: 7e0c470acd

Change-Id: I8c12496f5c795e71ac069cc1fe562ee4c74fba84
2018-06-08 04:05:22 -07:00
Bowgo Tsai
33b91c1932 repo-review: Fix missing imports
Bug: None
Test: ./repo_review.py -g [gerrit] query -l Code-Review +2
Change-Id: Iafac171193299ec3894f9674df08cbdcc213af8b
2018-06-08 17:00:46 +08:00
Po-Chien Hsueh
eb2b6dd7b2 Merge "Compare results across ABIs" am: 02e55c34d8 am: 746049fd39
am: 96f7de1e43

Change-Id: If91df7365ef22492fa6754907c5bc8f420433d09
2018-06-07 11:38:13 -07:00
Po-Chien Hsueh
96f7de1e43 Merge "Compare results across ABIs" am: 02e55c34d8
am: 746049fd39

Change-Id: I31623d7a7196cd3d00c62b0a885babc8aad2b128
2018-06-07 11:28:26 -07:00
Treehugger Robot
02e55c34d8 Merge "Compare results across ABIs" 2018-06-07 17:35:46 +00:00
Po-Chien Hsueh
21d011cc08 Compare results across ABIs
We need to compare results between x86 and arm. 32bit and 64bit.

Bug: 79442777
Test: run the script against x86_64 Emulator and Pixel 2
Change-Id: I47ced1cfed7539c1c8cc0c84eaaa8b4ac69b69be
2018-06-07 15:59:50 +08:00
Logan Chien
66aa0729b4 Merge "repo-patch: Download patch files from Gerrit" am: 7cc827ff88 am: 270f1eeeec
am: 3715eae4db

Change-Id: I4c0c17af63d9f62c7a5c75a2916311d3d38ace3a
2018-06-07 00:39:15 -07:00
Logan Chien
3715eae4db Merge "repo-patch: Download patch files from Gerrit" am: 7cc827ff88
am: 270f1eeeec

Change-Id: Ifc73b2c148ad2228610a3ec13a90d949d03a770d
2018-06-07 00:24:02 -07:00
Logan Chien
4b82fd07b4 Merge changes Iad120cef,I1f819c51,Ia87e5a80,I95e92c08 am: 10dd0c05bc am: 13b3742c58
am: 27ff684538

Change-Id: Ia52707c58d27a6cf5f1ca7800fb0e411a3bb1e1f
2018-06-06 21:59:04 -07:00
Logan Chien
27ff684538 Merge changes Iad120cef,I1f819c51,Ia87e5a80,I95e92c08 am: 10dd0c05bc
am: 13b3742c58

Change-Id: I778c99c29db7550f704e7b0440e7b2085908a91c
2018-06-06 21:54:25 -07:00
Logan Chien
4721aa1eed repo-patch: Download patch files from Gerrit
This commit adds a utility to download multiple patch files from Gerrit
by a change list query.

Test: repo_patch.py -g [gerrit] [query]
Change-Id: I3685c48d2ea4e5a9fa1915c4e31bc6ebb2d4ed97
2018-06-07 11:02:01 +08:00
Logan Chien
e9b0d96cf0 repo-pull: Support more git fetch protocols
This commit adds sso and rpc to git fetch commands.

Test: repo_pull.py pull -g [gerrit] [query]
Change-Id: Iad120cef4460ccc67b723467be638cc9299925fe
2018-06-06 18:32:50 +08:00
Logan Chien
3f67c28b52 repo-pull: Check Gerrit Code Review domain name
This commit adds a search on Gerrit Code Review URL so that a better
error message can be shown to users and the setup instructions can be
presented.

Test: repo_pull.py json -g [gerrit] [query]
Test: repo_review.py -g [gerrit] [query] -l Code-Review 2
Change-Id: I1f819c51e34c573f526ca3e30e237cdaf8a27160
2018-06-06 18:16:31 +08:00
Adrian Roos
2394e4ecac Winscope: apply surface transforms in preview
Test: capture surface trace of screen rotation animation, verify it shows correctly.
Change-Id: Ia9528401a0d8542266a7898be6d032a6cf166946
2018-06-05 19:03:32 +02:00
Vishnu Nair
97c5b512a3 WinScope: Show IME windows
Test: Check trace with IME windows shown

Change-Id: If69e1bc340c0c79a5fb07385cc6921dd093e8fc2
2018-05-22 10:16:14 -07:00
TreeHugger Robot
16cace3a8a Merge "WinScope: Properly show child windows." 2018-05-22 13:51:35 +00:00
Po-Chien Hsueh
cefd329e66 Merge "Add a tool which compares failed tests" am: 08fb698944 am: 668ca492b3
am: d79b1efebb

Change-Id: I5fff935c8bacc7b1d25ab6ecbcf356d445d46689
2018-05-21 16:01:35 -07:00
Po-Chien Hsueh
d79b1efebb Merge "Add a tool which compares failed tests" am: 08fb698944
am: 668ca492b3

Change-Id: I772962e2ba299d638e9d32ae49639b7912d60027
2018-05-21 15:30:31 -07:00
Adrian Roos
45094b9c03 WinScope: Properly show child windows.
Change-Id: I188bb2c327bc61c309f7e3e3746f0af4241a94a9
2018-05-18 15:19:02 +02:00
Po-Chien Hsueh
d08e072414 Add a tool which compares failed tests
Given two test_result.xml's (A and B), this script lists all failed
tests in A, and shows result of the same test in B. This is usually
used for regression detection or device stability analysis.

Bug: 79442777
Test: ./compare_failed_tests.py test_result_a.xml test_result_b.xml
Change-Id: I7778b5d748daccdeadabe6a539e1ce9622e535c5
2018-05-18 17:40:13 +08:00
Scott Lobdell
ceb0b6a273 Complete functionality to add the first seen timestamp to non-upstreamed
commits

Test: Unit tests included, running locally
Change-Id: I0b2fd022a37c2d35ee46127ae17a06bf66580500
2018-05-14 14:26:32 -07:00
Scott Lobdell
849e760f01 Merge "Adding query to find the first occurrence of seeing a commit" 2018-05-03 20:13:08 +00:00
Scott Lobdell
6779d3a5e7 Adding query to find the first occurrence of seeing a commit
Test: Unit tests included
Change-Id: If6e3cc70c65a8b179cb315cbfc95d300c92649d7
2018-05-02 09:03:48 -07:00