Commit Graph

127 Commits

Author SHA1 Message Date
Evan Birenbaum
2817836d75 Fix a crash when exiting the DevTools Connectivity page.
A lock was being released without checking if it was held, which
resulted in a crash because WifiManager.MulticastLock is reference
counted by default.

BUG=28668604

Change-Id: I306731129894d5525e974561c2680ae7db5aff4b
2016-05-24 03:36:25 +00:00
Joe Onorato
795b407460 Add exponential broadcast flood to the BadBehaviorActivity.
Bug: 28196243
Change-Id: I26eb8d5f7f9bcc90bfe5aa52f3d61a44b6105006
2016-04-20 15:44:02 -07:00
Paul Jensen
0991017843 Control WifiManager.MulticastLock from connectivity dev app
Add buttons to acquire and release the WifiManager.MulticastLock.

Change-Id: I28fd7743cb3adfeec055b6bcce2c8128b15cf2d3
2016-04-04 23:51:46 +09:00
Vince Harron
d1731fc950 Fix for IllegalMonitorStateException in Cache Abuser
AsyncTask.wait was being called outside of a synchronize block,
causing an IllegalMonitorStateException.  This replaces the wait
with a Thread.sleep.

BUG=b.android.com/203846

Change-Id: Ib370f702c1e0f76657292955de2406ce7f065e69
2016-03-18 16:40:49 -07:00
Lorenzo Colitti
503abedac9 Change the Development app to use a lambda.
This is a cherry pick and modification of
commit 17f05f5820.

Bug: 26753820
Change-Id: I55419fac85196d86d548d455880d897015d8ea84
2016-03-11 10:31:35 +00:00
Dianne Hackborn
952cb1f15a Fix issue #27385109: control activity behavior without triggering...
...isUserAMonkey for testing purpose

Change-Id: If261bc860d3974796ec382dcd5f625d40ab093a5
2016-02-29 15:15:05 -08:00
Ian Pedowitz
3f63f35fbe Revert "Upgrade the Development app to 1.8, and use a lambda."
This reverts commit 17f05f5820.

Change-Id: Idc8259a5a2fd209c19a6f548ddf8b1a09ed33966
2016-02-18 16:45:52 +00:00
Lorenzo Colitti
17f05f5820 Upgrade the Development app to 1.8, and use a lambda.
Change-Id: Ifa3836a3c5fc36a1932ea0d841e412ef238fb4bb
2016-02-18 22:23:58 +09:00
Lorenzo Colitti
0c87eb6453 Display a progress bar when a network is being brought up.
Change-Id: I5d2c14ffc6010d29ffb832cb924c6b0108fd0048
2016-02-18 16:15:39 +09:00
Lorenzo Colitti
0b3999da19 Add the ability to file a NetworkRequest for TRANSPORT_WIFI.
Change-Id: I3a2cbdbcb94a6d63e853f2dc87ed0ef737620684
2016-02-18 14:13:19 +09:00
Lorenzo Colitti
fd99d399e5 Improve the Connectivity section of the Dev Tools app.
1. Remove one more usage of startUsingNetworkFeature.
2. Use new APIs for bound HTTP requests.

Bug: 25824776
Change-Id: Ic2f30ce9ffc873be198f6ad29cf928dc33574d84
2016-02-17 12:09:09 +09:00
Lorenzo Colitti
29b766e122 Add the ability to request SUPL neworks.
Also:
 - Refactor the code to remove duplication and make it easier
   to add/change the network buttons.
 - Make the MMS network request specify TRANSPORT_CELLULAR as
   well, since that's what the system MMS service uses.

Change-Id: If8e2ca1ae22b3da3fffb0593fbb93a1d479143f3
2015-11-27 19:25:54 +09:00
Lorenzo Colitti
6553b85a96 Remove the crash button from the dev tools connectivity app.
A button that throws an NPE isn't very useful when you can just
swipe the app away from recents.

Change-Id: I62ecfc6f3f4e02a3f9830409ac6a2793eff6a7c1
2015-11-21 21:58:18 +09:00
Marco Loaiza
93a6e5fb1e Change LOCAL_MODULE_TAGS from "eng" to "optional" in Dev Tools app. am: a4404b1a6f am: bde2559e58
am: 4fb761b9a7

* commit '4fb761b9a7345201c646fccc6c421355c06978d5':
  Change LOCAL_MODULE_TAGS from "eng" to "optional" in Dev Tools app.
2015-10-26 17:31:05 +00:00
Marco Loaiza
bde2559e58 Change LOCAL_MODULE_TAGS from "eng" to "optional" in Dev Tools app.
am: a4404b1a6f

* commit 'a4404b1a6f425fc3a8b5f074a80f1df1b2341641':
  Change LOCAL_MODULE_TAGS from "eng" to "optional" in Dev Tools app.
2015-10-26 17:10:48 +00:00
Marco Loaiza
a4404b1a6f Change LOCAL_MODULE_TAGS from "eng" to "optional" in Dev Tools app.
We don't want to include this app in clockwork emulator images,
but is safe to change since the app is being explicity added
for the phone emulator images in build/target/product/sdk_base.mk

Bug: 24696853
Change-Id: I2e4f73fcffe9eb8957d41cd886124b7db4622c76
2015-10-23 17:46:13 +01:00
Lorenzo Colitti
b28591a2a3 Update the Connectivity debug app to the multinetwork API. am: 28bb8be0da am: bf91969961
am: 7fdd9d113d

* commit '7fdd9d113d1bb29a272e68c91ed04c7cae6e7542':
  Update the Connectivity debug app to the multinetwork API.
2015-10-22 06:22:54 +00:00
Lorenzo Colitti
28bb8be0da Update the Connectivity debug app to the multinetwork API.
1. Stop using the deprecated startUsingNetworkFeature and use
   requestNetwork instead.
2. Make use of clearCapabilities().

Bug: 23597341
Change-Id: I65cb813111947d159d2bb18f0d8a93fb726912e5
2015-10-22 08:42:37 +09:00
Lorenzo Colitti
44458cdb10 am 3af7f82f: am e149ffe2: Add network callback logging to the Connectivity app in dev tools.
* commit '3af7f82ff33a1655fe5431d68391bf070877580c':
  Add network callback logging to the Connectivity app in dev tools.
2015-05-18 15:32:34 +00:00
Lorenzo Colitti
e149ffe2e9 Add network callback logging to the Connectivity app in dev tools.
Change-Id: I6027db6330bca7c8bce1b405c0972690e8db77d9
2015-05-18 23:37:22 +09:00
Elliott Hughes
ce6c2eb5cc am a6e89ce3: Merge "Remove unnecessary theme attribute for Sync Test"
* commit 'a6e89ce3322117825cfd83aa740ea97d8606dd06':
  Remove unnecessary theme attribute for Sync Test
2015-05-05 01:21:50 +00:00
Naman Dwivedi
f6b781683c Remove unnecessary theme attribute for Sync Test
Dont know why but there's a theme attribute for SyncAdapterDrive activity havingvalue as Theme.Light resulting in a beautiful Gingerbread screen.

Change-Id: I4f74243152a212197e1881e8f65acf1cbb7dfad8
2015-05-04 23:29:45 +05:30
Elliott Hughes
c2bdb7bd42 am 4a2828c6: Merge "Fix ActivityNotFound Exception in Dev Tools"
* commit '4a2828c6d29c47421473bdf671c67499130c1e02':
  Fix ActivityNotFound Exception in Dev Tools
2015-05-04 17:25:01 +00:00
Naman Dwivedi
951836c554 Fix ActivityNotFound Exception in Dev Tools
Developer Settings->Dev Tools->Package Browser->Package Summary->Click on ony activity. Force close as ShowActivity is not declared in AndoridManifest.

Change-Id: Ic1b74dc08c83023418912a5f82b127f5537710cd
2015-05-04 19:32:46 +05:30
Etan Cohen
0650f6cdd4 Merge commit 'c84e7b11e598d5a6c07c754755382279e194efcb' into merge 2015-03-30 16:54:20 -07:00
Pierre Vandwalle
c84e7b11e5 add wifi power calculation
Change-Id: I3176d835454b1324403b844d075709ba277a7189
2015-03-24 19:40:32 -07:00
Narayan Kamath
4b952f0df3 Add an explicit dependency on org.apache.http.legacy.
bug: 18027885
Change-Id: Ie3a251fd63ec25a3c5cb46c80236f43724166331
2015-02-05 15:04:30 +00:00
Lorenzo Colitti
8501840869 Add a button to the debug app to call reportBadNetwork.
Bug: 18777225
Change-Id: I964f3deb60ea509dfb647a01d2b7b357dd47209b
2014-12-17 14:22:11 +09:00
Dmitry Shmidt
d00a0a734e Development: Connectivity: Fix receiver leakage
Bug: 18229332

Change-Id: Iadd8a1a6e72cf762f6494b586b53b827edebd25d
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
2014-11-03 17:26:00 -08:00
Dmitry Shmidt
4bef5c56f8 Connectivity: Add current scan amount notification
Change-Id: I717926f804d7e13192b80e59019310dc63cc0df8
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
2014-06-12 13:47:34 -07:00
Sreeram Ramachandran
732d646f51 Use the updated RouteInfo API.
Bug: 15142362
Bug: 13885501
Change-Id: I97f1625e037c889b0cddd3db418c42c1d48b26b9
2014-06-06 14:51:59 -07:00
Narayan Kamath
01347d965e am 361fce55: am d9fb901d: am 479cf9ff: Merge "Track changes to IActivityManager.startInstrumentation."
* commit '361fce55866e220380fdf1c81f29e5498b5fa0a7':
  Track changes to IActivityManager.startInstrumentation.
2014-05-30 11:50:55 +00:00
Narayan Kamath
fc9e3f6878 Track changes to IActivityManager.startInstrumentation.
Change-Id: Iceaecb720c2824134a1d6d13b1f3e0a16d41d76d
2014-05-30 11:33:02 +01:00
Sreeram Ramachandran
b24ff8773d Update the Dev Tools app to the new route add/remove API.
Cherry-pick of:
https://googleplex-android-review.git.corp.google.com/#/c/450447/

Change-Id: I629123567c907f0979e44998ef8d828b47059ec0
2014-05-14 12:26:23 +00:00
Yuhao Zheng
52245fbc49 Fix UI of testing TDLS in Dev Tools app
The "Stop TDLS" button won't show up on smaller screens such as N4/N5. Fixed
by changing the layout.

Change-Id: I708376468eea5b053a7ed15ec5cebb18393ba235
2013-11-06 16:00:06 -08:00
Vinit Deshapnde
9bfdb7e110 Expose WifiManager.setTdlsEnabled public API
Bug: 10221775

Change-Id: I559e4a2afd525a03c8a13fd151eca4638426d03e
2013-08-16 17:20:45 -07:00
Dmitry Shmidt
81253bc376 Connectivity: Add IP config to TDLS test
Change-Id: I70096a042faaacdaeed7d6aae16a95704202ef1d
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
2013-07-19 15:55:35 -07:00
Dmitry Shmidt
47a5a18431 Connectivity: Add TDLS test
Bug: 8539031

Change-Id: I68e9e2e93d49f29ed915a462570cb8e782e9a4f2
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
2013-07-18 16:32:30 -07:00
Dmitry Shmidt
36b2c791ee Connectivity: Add logs to Wifi Scan test
Change-Id: Iae13a841c01ee00970c0b08d57b16cad08832ff9
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
2013-05-22 13:19:00 -07:00
Dianne Hackborn
cb8739c53f Debugging help for issue #8734824: WATCHDOG KILLING SYSTEM PROCESS
The monkey now gets told about system hangs, and does stuff about
it!  Most especially, it can collect a bug report.  Monkey wins!

Change-Id: Ic8350721e715ef21d1ec813c6aff9a83262d5faa
2013-05-06 11:16:34 -07:00
Elliott Hughes
d4f9f64beb am 2cb06fc1: am a6eaa197: Merge "Remove dead code that\'s keeping other dead code in frameworks/base alive."
* commit '2cb06fc1f079bf089ff7dfd2844b5c0935bcc1d3':
  Remove dead code that's keeping other dead code in frameworks/base alive.
2013-03-22 19:02:25 -07:00
Elliott Hughes
45b42d6c05 Remove dead code that's keeping other dead code in frameworks/base alive.
DateUtils.writeDateTime is @hide, @deprecated, was never in an API level,
but is currently kept alive by this dead code.

Change-Id: Ibafbd39113a7c505ba8ab8e93e6b526505e5eaf1
2013-03-19 11:49:22 -07:00
Dmitry Shmidt
6420ac2c74 Connectivity: Add Wifi Scan test
Initial Revision

Change-Id: I6bf5f65f877980ab889e6d08f206cd9c99e5338c
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
2013-03-11 11:35:58 -07:00
Svetoslav Ganov
b226ef38fa Merge "Refactoring due to removing some private APIs." 2013-01-29 03:16:11 +00:00
HardCorePawn
fdc98b7091 Correcting 2 FC's in Dev Tools
Added in missing permission required by SyncTester
Commented non-existant Google Login Service
2013-01-24 00:49:08 +01:00
Svetoslav Ganov
00fc93c6fe Refactoring due to removing some private APIs.
Change-Id: Id00d9fa974d8cb747cebb99c5a64ed5b438b56e9
2013-01-23 00:20:07 +00:00
Dianne Hackborn
9da0812284 More on issue #7318666: hide developer options from user build
The Dev Tools app now tries to add a link to Development Settings
at the top of its list.

Also add a new "Development Settings" app that directly takes you
to the development settings activity, as a stand-alone app that
could be distributed as a regular third party app.

Change-Id: I8fe2b6a32cf4e37d69f4ce7b8d646a147b492d99
2012-10-10 19:01:09 -07:00
Jeff Sharkey
1d7f24de42 Follow RegisteredServicesCache API changes.
Bug: 7276595
Change-Id: I6064684380b7bbbec87c2345f782931d731ad5cb
2012-10-09 13:05:04 -07:00
Dianne Hackborn
d0689c0328 Remove use of private API.
Change-Id: I6c1e586af108cb1d94120295181d89c5050f5bc2
2012-09-10 14:43:16 -07:00
Dianne Hackborn
077c59a0b9 Track multi-user change.
Change-Id: I0b45ec880f6149fba5d2d83c014e1e71a6524b99
2012-09-07 13:08:27 -07:00