OSDN Git Service

Add bt anomaly action in testing app
authorjackqdyulei <jackqdyulei@google.com>
Tue, 15 Aug 2017 17:12:14 +0000 (10:12 -0700)
committerjackqdyulei <jackqdyulei@google.com>
Thu, 24 Aug 2017 23:15:24 +0000 (16:15 -0700)
commit9d78df0d301e54fe26fdcd363ddbe70915da8ada
treee2c06ef0015bf05c365685dfde1287327698414b
parentefcc8be05c919ca0ac2b6cfb7810c7b722a0f66f
Add bt anomaly action in testing app

This cl adds the action to start bluttooth unoptimized scanning.
With this action we could test whether bt anomaly detector is
effective.

Bug: 62602318
Test: make -j40 AnomalyTester
Change-Id: I7f41dbb07384fbf3c5a81e460a3629306bc33f59
tests/anomaly-tester/AndroidManifest.xml
tests/anomaly-tester/res/layout/bluetooth_anomaly.xml
tests/anomaly-tester/src/com/android/settings/anomaly/tester/AnomalyActivity.java
tests/anomaly-tester/src/com/android/settings/anomaly/tester/service/AnomalyService.java [new file with mode: 0644]
tests/anomaly-tester/src/com/android/settings/anomaly/tester/utils/AnomalyActions.java [new file with mode: 0644]
tests/anomaly-tester/src/com/android/settings/anomaly/tester/utils/AnomalyPolicyBuilder.java [new file with mode: 0644]