Commit Graph

2852 Commits

Author SHA1 Message Date
Treehugger Robot
f1ce8d402c Merge "Use -Werror in development/tools/line_endings" 2017-11-04 04:22:19 +00:00
Chih-Hung Hsieh
4944813847 Use -Werror in development/tools/etc1tool
Bug: 66996870
Test: build with WITH_TIDY=1
Change-Id: I4403d4e304a662f51a1a239f415cc11d97d33a33
2017-10-31 14:54:46 -07:00
Chih-Hung Hsieh
266197aff9 Use -Werror in development/tools/line_endings
Bug: 66996870
Test: build with WITH_TIDY=1
Change-Id: I22e5122f9ebcb0ea063683656fc2a801edf251cd
2017-10-31 09:57:35 -07:00
Chih-Hung Hsieh
62f253dc80 Use -Werror in development
* Fix/suppress existing warnings.

Bug: 66996870
Test: build with WITH_TIDY=1
Change-Id: Iacc9052f81e6fe7e8a10b00a6fcea912a7d636d3
2017-10-27 14:43:17 -07:00
bohu
9fdedf9df7 emulator: merge oc-emu-dev development project
BUG: 64401460

Change-Id: I3fdce5c8aeb4fccb52d04f5da69807da9c86d57a
Merged-In: I3fdce5c8aeb4fccb52d04f5da69807da9c86d57a
Merged-In: I9f757a14d9bb59db2e6c62f4a4c83a4373b7b4d6
2017-10-26 22:08:12 -07:00
Colin Cross
6d7b346407 Convert development/tools to Android.bp
See build/soong/README.md for more information

Also moves rmtypedefs to use the guava prebuilt from
prebuilts/misc/common.

Test: m checkbuild
Change-Id: I9298967275ca40f8d50841b204cd40612a8a5f56
2017-10-24 16:15:15 -07:00
Po-Chien Hsueh
a158515008 Merge changes from topic "repo_diff"
am: 8ee1187ef5

Change-Id: I9e93bc660f32bca7b903acafd44ca4e86d6df37c
2017-09-28 17:31:38 +00:00
Po-Chien Hsueh
79a7b0e8f4 Check project path to make sure it actully exists
Some old projects might be removed for some reason, especially
the downstream ones. It should be fine to just skip analysing them
because people have stopped working on them.

Test: run the script against an old release
Change-Id: I563905565c4c502036159fce6a386bba13ba25ea
2017-09-28 17:15:08 +08:00
Po-Chien Hsueh
95ca7ccb84 Add option --ignore_error_during_sync
Some old SHA1 might be invalid when we use this tool.
Ignore these projects and keep going on.

Test: run the script against an old release
Change-Id: I5c89911759de6d122052e841eef0b016fa8b1422
2017-09-28 16:55:31 +08:00
Po-Chien Hsueh
f9b8f0cce0 Write results to subfolders
We are using this tools on multiple releases (tags).
Create subfolders using release names, so that results won't be
overwitten.

Test: run the script against multiple releases
Change-Id: I9a94940d630874a5b378431f20a6c1182cf11509
2017-09-28 16:55:31 +08:00
Po-Chien Hsueh
fb4ba49c20 Rename exclusions.txt in the script
The file name has been changed in a previous CL

Test: run the script
Change-Id: I7cc1b183989ae674e14e65321e09c51d5c689ad0
2017-09-28 16:55:31 +08:00
Diego Wilson
d82d37b41c Merge "Add README.md"
am: 61268564ca

Change-Id: Id9766a2e1b9d4323d0f1178f9e9785945cb89312
2017-09-28 04:23:13 +00:00
Treehugger Robot
61268564ca Merge "Add README.md" 2017-09-28 04:20:06 +00:00
Diego Wilson
7514722144 Add README.md
Add a document explaining how to create a data studio dashboard using
the repo diff tool.

Renamed repo_diff_downstream.py to repo_diff_trees.py.

Renamed exclusions.txt to android_exclusions.txt.
2017-09-27 11:19:58 -07:00
Dan Willemsen
f5dd447b3c Merge "Always use our copy of libz"
am: d78df25e19

Change-Id: I48dfc1fac19774c51f69b089136111867e77aff3
2017-09-27 00:00:54 +00:00
Dan Willemsen
408776f361 Always use our copy of libz
Instead of hoping that the host libz is compatible with our build time
stubs.

Test: m etc1tool
Change-Id: I4fe25cd0d265895baf8db1f182f96b171e0c84b6
2017-09-26 14:48:51 -07:00
Diego Wilson
2ca86f070c Merge "repo_diff: sync tip of branches of no tag is given"
am: c18174e3c2

Change-Id: I74774fe79242530881200d52eb0b7ad49f29bba4
2017-09-15 19:21:20 +00:00
Diego Wilson
190a725b60 repo_diff: sync tip of branches of no tag is given
Not all Android source trees support build IDs and tags.
When no build tag is requested, rather than try to match
the build IDs just sync the branch tips of the upstream
and downstream source trees.

Also select two Android Oreo release candidates
as the default branches. The fact that there are frozen
branches and that the diff is small serve as a good showcase
of the tool.

Change-Id: Ifdefd79fb6b32c6b83e0aee390dd5a435b6a61fc
2017-09-14 15:56:54 -07:00
Diego Wilson
f7ba54a795 Merge "Rename repo_diff_android.py workspace directories"
am: c968b0f53c

Change-Id: Ie497ec83b6796a9447e068482282e56cdc6b33e1
2017-09-11 21:49:30 +00:00
Diego Wilson
dbb1b8d8ef Rename repo_diff_android.py workspace directories
Renamed the upstream and downstream workspaces to
"upstream" and "downstream", respectively.

Change-Id: I28efd32a4fa4c05410940061c18bb463132d9450
2017-09-11 11:10:22 -07:00
Diego Wilson
06ad379c6e Merge "Add repo_diff tools"
am: 725af68e38

Change-Id: Ibb8f4de45c91ed6190d5d7ecce1e7129eeab2f6c
2017-09-08 16:58:01 +00:00
Diego Wilson
61fb65ce4c Add repo_diff tools
These tools help compare android repo workspaces for high level
analysis.

Test: Run python repo_diff/repo_diff_android.py
Change-Id: I645351521c7f61735d3ce65a93569983cd28851c
2017-09-07 17:44:35 -04:00
bohu
4c4bade329 emulator: merge oc-emu-dev development project
BUG: 64401460

Change-Id: I9f757a14d9bb59db2e6c62f4a4c83a4373b7b4d6
Merged-In: I9f757a14d9bb59db2e6c62f4a4c83a4373b7b4d6
2017-08-29 15:06:41 -07:00
Tor Norbye
dcacc725d4 216372: Add metadata for @Duration
Test: Tested in lint in tools/base
Change-Id: I64afb83135a18b904b6dba7d2ed37877c1f2ca20
2017-05-31 14:35:18 -07:00
TreeHugger Robot
5dc7d1bfa9 Merge "Fix typo in time duration printing in logblame script." 2017-05-31 19:15:01 +00:00
Joe Onorato
0e71236dd6 make the logblame power toggle test slightly better
Bug: 37252687
Test: development/tools/logblame/power_toggle_test
Change-Id: Ie218bb0094bf1574de2e9ab51775984f4969307f
2017-05-31 01:25:16 +00:00
Joe Onorato
5d022704e9 Fix typo in time duration printing in logblame script.
Test: development/tools/logblame/medium_idle_test
Change-Id: I1c21f899ac35260a20eabb2d9af197d015b00ce6
2017-05-31 01:23:56 +00:00
Junda Liu
d0484f9b61 Add support for single apk output.
Test: manual
Change-Id: Ie202f37a92bfa904e4c17662428e71db699ff929
2017-05-10 15:26:33 -07:00
Aurimas Liutikas
f2e4985ba0 Update default Java level for idegen.
This sets it to 1.8 instead of 1.7 as Android now allows using
1.8 java language.

Bug: 38140365
Test: Ran idegen and now java language is set to 1.8 in Intellij
Change-Id: I1a1f0970357f42c3bc5ded9b3f17692812ea130a
2017-05-09 08:08:07 -07:00
Joe Onorato
75f444e139 Add logblame and some log buffer tests.
A utility to read a logcat and print statistics about who is spamming the log.
And tests that use it

Bug: 37252687
Test: ./test_analyze.py ; test_logs.py ; test_ps.py
Change-Id: I811ba482b4be9779047f97c3f3b7ea5f996bd503
2017-04-26 19:21:20 -07:00
Colin Cross
6b42baad6e Merge "Use asm-5.2 prebuilts" am: 956ee36d17 am: b4f28cd8a0 am: cb51137278
am: 43d5cee460

Change-Id: I03a3fa19a8997eb54b398f7f531b834902a1821b
2017-02-14 19:27:14 +00:00
Colin Cross
61967edf02 Use asm-5.2 prebuilts
Test: m -j checkbuild tests cts
Change-Id: I737c9293662d1e9a5c47f174f160b9fd88bb3b5f
2017-02-13 12:54:21 -08:00
jackqdyulei
7902c8be05 Fix the build dir for check color
Bug: 32750778
Test: ./gradlew jar
Change-Id: Ib58b1b9a03d2fb78dc756757b8e0e16549312c1c
2017-02-10 14:05:24 -08:00
jackqdyulei
ddf9a631cc Create project to build the lint color check library
This project is used to create the jar library and will be hooked
to config_apps.py to create the build of jar.

The library built in this project will be used in
prebuilts/checkcolor

Bug: 32750778
Test: ./gradlew jar
Change-Id: I5ba3b94e6fe80ba1de71fdcbda5479a0f14d85ab
2017-02-01 16:10:57 -08:00
Fyodor Kupolov
7fb7f2bca1 Compute permissions against existing whitelists in /etc
Test: manual
Bug: 31008485
Change-Id: Icbcf2331dddabce06781d4c66eb5bd3a2966e49c
2017-01-18 17:40:51 -08:00
Aurimas Liutikas
296aa2e3f9 Merge "Remove checkstyle from development/checkstyle." am: 06b3b45f6f am: 327d16e647 am: 24cc2e3cf0
am: 12839fd97f

Change-Id: I7284363c3d413d193c799d5ea5b62baec3a858ad
2017-01-13 17:53:19 +00:00
Aurimas Liutikas
ecef09bfa1 Remove checkstyle from development/checkstyle.
Checkstyle was moved to prebuilts/checkstyle as it is a better
place for a prebuilt jar. All the usages of checkstyle.py in
PREUPLOAD.cfg files has been updated to use the correct checkstyle
and this change should not affect anyone.

Bug: 33078621
Test: none
Change-Id: Ib2e4272a4bea7d16cccdebaeb407acbd7193f248
2017-01-12 18:34:00 -08:00
Roozbeh Pournader
90689d9044 Rename language+country resources to just language
Bug: 26496609
Test: none
Change-Id: I0c6bbf6f487ad1117dd8dfae11fb0a8534ccaec4
2017-01-10 23:30:24 -08:00
Aurimas Liutikas
4396721c54 Merge "Add androidTest to test folder names." am: 35b0cafbc2 am: 5f503e25b8 am: 3b4f393ca4
am: a94939b2f3

Change-Id: I2c4719bec490113cb3286e6790ae85ea37dd2274
2016-12-09 00:11:17 +00:00
TreeHugger Robot
28c795c54b Merge changes from topic 'monkey and bugreport tools'
* changes:
  Add a command to run monkeys locally over and over again and collect the results.
  Add --logcat which will use an external logcat file instead of the one in the bugreport.
  Add an bugreport command which can format the output of an anr from a monkey run into a nice html file.
  Send monkey logs to logcat as well.
  Add --match-description to Monkey
2016-12-08 03:14:23 +00:00
Yigit Boyar
e6aa64fdad Add androidTest to test folder names.
This conforms the docs here:
http://tools.android.com/tech-docs/new-build-system/user-guide

Change-Id: I6d91073924f578e813986f458b391c9b1dcf923c
2016-12-07 17:30:49 -08:00
Joe Onorato
186e55cfcc Add a command to run monkeys locally over and over again and collect the results.
Change-Id: I1623552582a07ddcd3de79332bbb0b00f0a793e2
2016-12-07 17:07:08 -08:00
Joe Onorato
c898541ae2 Add --logcat which will use an external logcat file instead of the one in the bugreport.
Change-Id: Ifcdafd56edbc0b15207777427f501eb9e00b3a0d
2016-12-07 17:07:00 -08:00
Joe Onorato
978c5dd2c8 Add an bugreport command which can format the output of an anr from a monkey run into a nice html file.
Change-Id: I01a922860a5a90cda27d338ae0f99cd36176af99
2016-12-07 17:06:47 -08:00
Aurimas Liutikas
c5dbc099d6 Merge "Support for ignore checkstyle files" am: 453a71d710 am: 92ae646407 am: 57f03de316
am: 404deced68

Change-Id: I5aa4a2a6b08255d27b07ddd062c986a748469066
2016-12-08 00:09:08 +00:00
Aurimas Liutikas
453a71d710 Merge "Support for ignore checkstyle files" 2016-12-07 23:49:34 +00:00
Yigit Boyar
99f3d7af24 Support for ignore checkstyle files
This CL extends checkstyle check to search for IGNORE_CHECKSTYLE
files in folders which marks them as excluded from checkstyle,
including their sub folders

Change-Id: Id2390bb2a92e03f49c0014888e21549279e4bab6
2016-12-07 10:27:35 -08:00
Alan Viverette
8ec85d6c93 Merge "Allow passing custom checks to checkstyle" am: 32abb71122 am: d5f8802f6c am: c644754416
am: 79ceda2307

Change-Id: Id6390f3c537434061d80866e736cffdb34d72b85
2016-12-05 19:47:48 +00:00
Alan Viverette
50fb0a915b Allow passing custom checks to checkstyle
Bug: 32998581
Change-Id: Icf349a8ff47ebc434958b872f5729b126e67bcbb
2016-12-05 12:44:23 -05:00
Aurimas Liutikas
51ff85e3e6 Merge "Removing pre-push.py git hook for checkstyle." am: fff72bd810 am: 3475b7f16d am: c114d50846
am: 7eee848ae3

Change-Id: I3ee2f0f9fd6ff79be35bd82290fde9e6984f95a9
2016-11-30 22:25:31 +00:00