summaryrefslogtreecommitdiffstats
path: root/tools
Commit message (Collapse)AuthorAgeFilesLines
* Remove references to non-existant directoriesDan Willemsen2019-05-281-3/+0
| | | | | | | frameworks/base/include does not exist. Test: treehugger Change-Id: I05a472b821a384a9f9920f6a25ace562686e334d
* C++17 is the default now.android-wear-8.0.0_r2Elliott Hughes2018-12-031-1/+0
| | | | | Test: builds Change-Id: I0a571168203ddca52e6e79eeea5acc92e2ef6091
* Service and KitchenSink logic to read the kernel's input event queuesEnrico Granata2018-05-2220-0/+1995
| | | | | | | | | | | | | | | | | This patch provides a native service that can manually be built, installed to a device, and launched, e.g. sh# /system/bin/com.android.car.keventreader /dev/input/event* The service will monitor the files provided as input (expecting them to be kernel input queues in the format described at, e.g. https://github.com/torvalds/linux/blob/master/include/uapi/linux/input.h), and generate events upon reading EV_KEY events from each such file. The patch also includes a KitchenSink hook to talk to the native service and receive key events from it. Bug: 78258802 Test: manual on Mojave Change-Id: If7f2f1f72e4dc6a26cd9d32b31e90e494d55650b Merged-In: If7f2f1f72e4dc6a26cd9d32b31e90e494d55650b
* Updated VHAL python emulator constants and sriptsChao Yan2018-04-062-420/+419
| | | | | | | | | Merged-In: Ice5192d9eab275263c68942373d4f04bdfdd9f15 Bug: 77585445 Test: flash device with latest build; run vhal prop simulation script and diagnostic injector. Change-Id: Ice5192d9eab275263c68942373d4f04bdfdd9f15
* Move io_analysis to system/extraWei Wang2018-03-294-1159/+0
| | | | | | Bug: 65481007 Test: Build Change-Id: Iab1a7a71e67afbcf3943c70f81102638d11ecf49
* Move boottime tools to system/extraWei Wang2018-03-2321-2402/+0
| | | | | | Bug: 65481007 Test: Build Change-Id: I250ef87a6b580c30b15ea78fec32bbdb1bc78de7
* Add tool to produce reports and graphs from a FlashApp documentEnrico Granata2018-02-211-0/+266
| | | | | | | Bug: 32512551 Bug: 65846824 Test: manual Change-Id: If88f698a85590c700c0ae5d808d09eca9487ed4e
* Extending vhal_emulator_test to touch VmsAditi Nagaraj2018-02-071-18/+80
| | | | | | | | | Also fixed some error handling that was causing the script to crash before arriving at the Vms test. Bug: 72998031 Test: Ran vhal_emulator_test against mojave Change-Id: I92f7cb99c78c60bcf72ef72c01b8330b5726516f
* Rename HVAC_FAN_POSITION to HVAC_FAN_DIRECTIONSteve Paik2018-01-301-1/+1
| | | | | | | | | | Rename the properties to be consistent with VHAL namings. Also remove FAN_DIRECTION_FACE_AND_FLOOR and FAN_DIRECTION_DEFROST_AND_FLOOR. Bug: 72221544 Test: Unit tests pass Change-Id: Ie26525a2b0e5f6e74678ee33274ee44faa570a4a
* Fix VHAL emulator python scriptsSteve Paik2018-01-256-442/+486
| | | | | | | | | | | | After updating VHAL, need to update the test scripts: - Remove VehiclePropConfig.supportedAreas - Include status for setProperty() - Re-generate protobuf file - Re-generate vhal_consts_2_0.py Bug: 72348165 Test: Manually verify changes work Change-Id: Ic9b45bb43709b04a93cc76ca94ac2a14aa96ed20
* Label files appropriately to pass build testsJeff Vander Stoep2018-01-241-1/+1
| | | | | | Bug: 34980020 Test: build (these are build-time tests) "lunch bat_land-userdebug" Change-Id: Ia7cffb067e9219dc893f670efbabb8985f0add60
* Comment out bootio sepolicy rules for batAnthony Mah2018-01-191-3/+3
| | | | | Change-Id: Icc8a76af5140e4038976cdf94323ad1a07783f2b Signed-off-by: Anthony Mah <amah@codeaurora.org>
* changes required by QC HB.1.1.5-01410-8x96Hans Chang2018-01-191-1/+1
| | | | Change-Id: I02cb70fa3525b5d087b2eb2d226a66bb16461a71
* Removes deprecated audio property in vehicle halHongwei Wang2018-01-181-433/+388
| | | | | | | | | | | | vhal_consts_2_0 is regenerated by vhal_const_generate.py Removes also the libvehiclenetwork-audio-helper project which populates the audio properties in vehicle hal but not seems to be used. Bug: 72054677 Test: None Change-Id: Ie2d05c4bd0f3437e342c152db37f1243b61d7757
* Generate diagnostic live frame for vhal simulationChao Yan2017-11-212-7/+39
| | | | | | | | Bug: 65132450 Test: 1. python vhal_prop_simulator.py --gpx /path/to/route.gpx 2. open diagnostic recorder app to see if diagnostic data is showing up Change-Id: I99e08651b18facab4f89adbc4575f50e7f2a9014
* Rename imported diagnostic sensors indexChao Yan2017-11-212-5/+5
| | | | Change-Id: I6b3d401dcd7c7aaf24c55ba6e14579ce124dae87
* Use -Werror in packages/services/Car/tools am: 7f50f1e4bd am: 20fdefebcfChih-Hung Hsieh2017-11-072-2/+2
|\ | | | | | | | | | | am: 3022022eff Change-Id: I945c8e641d79a885523ea8d196bde06f54443586
| * Use -Werror in packages/services/Car/tools am: 7f50f1e4bdChih-Hung Hsieh2017-11-072-2/+2
| |\ | | | | | | | | | | | | | | | am: 20fdefebcf Change-Id: I348d255ecd58df9db355b2ad920d4c97c5fb21fb
| | * Use -Werror in packages/services/Car/toolsandroid-o-mr1-iot-preview-6o-mr1-iot-preview-6Chih-Hung Hsieh2017-11-072-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | * Remove unused local variables. Bug: 66996870 Test: build with WITH_TIDY=1 Change-Id: Ia5a0e9b5d16b9e5daa51ee8dca30a5756690fa31
| | * Fix format specifier warningsChih-Hung Hsieh2017-11-071-3/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This fixes 14 warnings that look like: warning: format specifies type 'long' but the argument has type '::google::protobuf::int64' (aka 'long long') Using macros makes it easier to read IMO. Bug: None Test: mma. Warnings are gone. Merged-In: I3e029437e7f5d1550dae29a18c05706be16eac65 Change-Id: I3e029437e7f5d1550dae29a18c05706be16eac65 (cherry picked from commit 19b97bb5bb6d7a627d2dd15800d2d9b804f262da)
* | | Added basic vhal property simulatorChao Yan2017-10-163-0/+487
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Support user actions (HVAC) and driving information (speed, odometer, rpm, gear) simulation Bug: 65132450 Test: Step 1: ./vhal_prop_simulator -s deviceid --timeout <num_in_seconds> --gpx <gpxFile> Step 2: Open Kitchen Sink app on device to see if value changes Change-Id: I483a59b3fba1f04a5f498b642a3d0038684b3368
* | | Update to import vhal_const_2_0 as vhal_const_2_1 is goneChao Yan2017-10-043-12/+12
| | | | | | | | | | | | | | | | | | Bug: 66915780 Test: Manual test by running scripts locally with a connected device Change-Id: I46b4e24d37fce6efbb1be5dbb5edd1f051bd874d
* | | Remove LOCAL_CLANG am: 7a3f3ef53e am: 1426ca0155 am: 97f6422cd3Lennart Wieboldt2017-09-271-4/+0
|\| | | | | | | | | | | | | | | | | am: 633e098d12 Change-Id: Idb9e2c2acae2649c49911329b45801cf647c73b0
| * | Remove LOCAL_CLANG am: 7a3f3ef53e am: 1426ca0155Lennart Wieboldt2017-09-271-4/+0
| |\| | | | | | | | | | | | | | | | am: 97f6422cd3 Change-Id: I6f0cdbe22535027189b90c865db9650d28eca012
| | * Remove LOCAL_CLANGLennart Wieboldt2017-09-271-4/+0
| | |\ | | | | | | | | | | | | | | | | | | | | am: 7a3f3ef53e Change-Id: Ie85980614caaf7e622a6deebdd672c507f9e6e63
| | | * Remove LOCAL_CLANGLennart Wieboldt2017-09-111-4/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | clang is the default compiler since Android nougat Change-Id: Ife9f2a75a31dd41ec3db1cc09c33bb226b987e1a Signed-off-by: Lennart Wieboldt <lennart.1997@gmx.de>
* | | | Remove references to Vehicle HAL 2.1 from vhal_const_generate.pyEnrico Granata2017-09-133-434/+397
|/ / / | | | | | | | | | | | | | | | Fixes: 65629619 Test: ran vhal_const_generate.py Change-Id: I3b2ec83f5c1d36f2407e25c012adeace685ff8a8
* | | add bugreport_analyzeKeun-young Park2017-09-072-7/+392
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - extract boot timing information similar to bootanalyze.py from unzipped bugreport txt. - Can be useful for initial investigtion of boot-up issue. - Print all java / native crashes so that crash during boot-up can be easily identified. - also update config.yaml: StartPackageManagerService time was located in two places and were not counted as timing event. bug: 64143231 Test: python packages/services/Car/tools/bootanalyze/bugreport_anayze.py -c packages/services/Car/tools/bootanalyze/config.yaml bugreport.tx Change-Id: I2244074e9f2cdea01e632570c25909f6cd199a43
* | | improve I/O analysys script furtherKeun-young Park2017-09-062-86/+337
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - add IO wait histogram for check_io_trace_all - Check block level acces for check_file_read. Even if it is a single block read in ext4 level, block level can be more efficient or inefficient depending on I/O scheduler. Total read is coming from block layer while ext4 layer can have more access when another read request is made while similar read is still pending. - add separate accounting for write bug: 64810855 Test: run scripts and check results Change-Id: I302d6e8661eec689bc2adb5ab608319b48acefd1
* | | Merge Vehicle HAL 2.1 iface to 2.0Pavel Maltsev2017-08-243-515/+487
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Vehicle HAL is property based and all properties are considered optional. It is quite a bit of pain to create new versions of VHAL only to extend properties. Bug: 64303350 Test: verified system works stable Change-Id: I4c5c891236912651ca1341f7fd515e533a6b4506
* | | add sched trace to check_io_trace_allKeun-young Park2017-08-221-16/+163
| | | | | | | | | | | | | | | | | | | | | | | | | | | - For all processes, calculate execution time and wait time due to I/O. bug: 64810855 Test: python packages/services/Car/tools/io_analysis/check_io_trace_all.py kernel_trace_file Change-Id: Iea53b8de0f7e63806082fbab53e0fb7c4c43ffa4
* | | improve io analysis logKeun-young Park2017-08-171-3/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - add fresh read list as histogram alone was confusing / misleading due to re-read which will mostly hit cache. bug: 64810855 Test: capture boot time IO trace and run the script Change-Id: I616642159a6b71cfe431b589e52576f17b5cbc08
* | | bootanalyze: add shutdown eventsKeun-young Park2017-08-102-15/+153
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - will capture logcat if Timeout event happens during shutdown. - -m option can be used to capture shutdown event taking over certain time like -m ShutdownBtDuration=2.0,ShutdownStorageManagerSerivceDuration=3.0,ShutdownInitFsShutdown=5.0 - Duration for interval with items with Xyz and XyzDone - Shutdown time is counted from the point where shutdown starts. bug: 64568026 Test: python packages/services/Car/tools/bootanalyze/bootanalyze.py -r -c packages/services/Car/tools/bootanalyze/config.yaml -n 2 -m ShutdownBtDuration=5.0,ShutdownStorageManagerSerivceDuration=5.0 Change-Id: I32919c665c74e9a57308264ecc7cbde93106134c
* | | Merge "Fix VHAL Emulator Test" into oc-mr1-devSteve Paik2017-08-033-466/+499
|\ \ \
| * | | Fix VHAL Emulator TestSteve Paik2017-08-023-466/+499
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - update vhal_consts_2_x.py files - use hex values for logging - skip OBD2 and complex values which cannot be properly tested Bug: 38203109 Test: Reduction in errors in test Change-Id: I94d02586b190cdcd4d8f541e0a05c99a99c418e6
* | | | Move the Diagnostics API classes to android.car.diagnosticEnrico Granata2017-08-021-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | Bug: 64024685 Test: build, flash + runtest CarDiagnosticManagerTest Change-Id: I73e079be8910e550ae52f78162680d585949d022
* | | | Remove the CarDiagnosticSensorIndices class as it merely acted as a hollow ↵Enrico Granata2017-07-311-49/+60
|/ / / | | | | | | | | | | | | | | | | | | | | | namespace Bug: 64024685 Test: build Change-Id: Idde0e66904d4d5fd620e38815961af0eda5c1ec3
* | | CarService changes necessary to support the diagnostic enums rename on the ↵Enrico Granata2017-07-272-115/+117
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Vehicle HAL side Test: clean build and flash, then runtest -x packages/services/Car/tests/android_car_api_test/src/android/car/apitest/CarDiagnosticManagerTest.java runtest -x packages/services/Car/tests/carservice_test/src/com/android/car/test/CarDiagnosticManagerTest.java runtest -x packages/services/Car/tests/vehiclehal_test/src/com/android/car/vehiclehal/test/Obd2FreezeFrameTest.java runtest -x packages/services/Car/tests/vehiclehal_test/src/com/android/car/vehiclehal/test/Obd2LiveFrameTest.java Bug: 64024685 Change-Id: Ie6615dc84fcddbb108ad1c58b7a569b8e6ce37d6
* | | Fix format specifier warningsGeorge Burgess IV2017-07-121-3/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This fixes 14 warnings that look like: warning: format specifies type 'long' but the argument has type '::google::protobuf::int64' (aka 'long long') Using macros makes it easier to read IMO. Bug: None Test: mma. Warnings are gone. Change-Id: I3e029437e7f5d1550dae29a18c05706be16eac65
* | | Fix a bug in diagnostic_injector.py where the wrong file list was being ↵Enrico Granata2017-06-301-6/+3
| | | | | | | | | | | | | | | | | | | | | looked at Test: manual Change-Id: Ic8df8fa59c2683137300a35d337919a9bde8c916
* | | Add the ability for VHAL Emulator to select a specific deviceEnrico Granata2017-06-292-12/+24
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | When multiple devices are connected, ADB needs a -s flag to pick a specific one to talk to This commit plumbs the logic to enable this device selection logic to the HAL emulator as well as the diagnostic injector tool Additionally, since multiple HAL emulators might be in flight at a given time on a given host with this change, it also changes the port selection logic to pick any free local port to bind to instead of hardcoding to the same port number on local and remote side Test: manual with one and two devices connected to a host Bug: b/63098807 Change-Id: Idc3336919bbb4edf438f12fd05ff7d186d706faf
* | Add async resonse reader threadScott Randolph2017-06-062-5/+24
| | | | | | | | | | | | | | This reports and consumes the responses from the emulator. Test: Run gui.py Change-Id: I20ac8eb010340d915f70da5b296d7d0f5ae7d145
* | bootanalyze: fix errata am: 40c290051fKeun-young Park2017-06-051-1/+1
|\| | | | | | | | | | | am: 7c582428d6 Change-Id: Ic076085687dd6869808b09cf0fdd82fe19957a77
| * bootanalyze: fix errataKeun-young Park2017-06-051-1/+1
| | | | | | | | | | | | | | | | - args used for testing purpose not removed and broke bootchart capturing bug: 38271495 Test: python packages/services/Car/tools/bootanalyze/bootanalyze.py -r -c packages/services/Car/tools/bootanalyze/config.yaml -n 20 -f -e 15 -w 30 -v -b Change-Id: Ie836822bfdec569700d0ae7df7aa8d2a29abcaa9
* | Merge "add bootchart and systrace support to bootanalyze" into oc-dev am: ↵Keun-young Park2017-06-022-13/+58
|\| | | | | | | | | | | | | | | eb7f3e3364 am: ed67aff7c8 Change-Id: I77c86c375dc8fee0763d186566c4667b588c9798
| * add bootchart and systrace support to bootanalyzeKeun-young Park2017-06-022-13/+58
| | | | | | | | | | | | | | | | | | | | | | - necessary to analyze boot performance issue - -b for enabling bootchart - -y for enabling systrace bug: 38271495 Test: python packages/services/Car/tools/bootanalyze/bootanalyze.py -r -c packages/services/Car/tools/bootanalyze/config.yaml -n 20 -f -e 15 -w 30 -v -y, python packages/services/Car/tools/bootanalyze/bootanalyze.py -r -c packages/services/Car/tools/bootanalyze/config.yaml -n 20 -f -e 15 -w 30 -v -b Change-Id: Ic5324568dc6e14a92ff88c9bce2cae4631340ce6
| * handle duplicate events properlyKeun-young Park2017-05-231-1/+12
| | | | | | | | | | | | | | | | | | | | | | - The same pattern can be matched multiple times and this led into wrong results. - Rename to _(\d) when the same name already exists. bug: 37962756 Test: python packages/services/Car/tools/bootanalyze/bootanalyze.py -r -c packages/services/Car/tools/bootanalyze/config.yaml -n 10 -f -e 16 -w 30 -v Change-Id: Ie60fad6e74c08f0062760ec5ff7f799ed5019460 (cherry picked from commit eb14fdee32dede74b6a818ac6a5b003f690e944f)
* | Merge "Fix up comment, parser.py does vend structs now"TreeHugger Robot2017-05-311-2/+2
|\ \
| * | Fix up comment, parser.py does vend structs nowEnrico Granata2017-05-311-2/+2
| | | | | | | | | | | | | | | Test: none Change-Id: Ifa7830c90dd4cdbaa6af1345dd2de5229f914961
* | | Fix bootanalyze reading of dmesgBryan Eyler2017-05-301-1/+1
|/ / | | | | | | | | | | | | | | Only read when there's output to be read. Bug 36644379 Change-Id: Ia37c2a96b1a888cc5401e32c3838c680e4134c54