Commit Graph

151 Commits

Author SHA1 Message Date
Chiachang Wang
03a2b4336b Resolve hidden connectivity dependency
ConnectivityManager and NetwokUtils are parts of incoming
Connectivity mainline module. The hidden methods or members are
no longer accessible outside the module. Caller should either
remove or replace the usage.

The override hidden callbacks and INET_CONDITION_ACTION intent
are not really used in the code. Remove the unncessary usage.

The network id is a part of Network.toString(). The network id
is also not necessary.

Bug: 182859030
Test: m
Change-Id: I3a75afb86f5b60ea530b50771bd76887ccf9f271
2021-04-09 06:45:54 +00:00
Gopinath Elanchezhian
544b9f0fdc Make Development test app S+ compatible.
android:exported attribute is mandatory.
Related to b/150232615

Bug: b/171566956

Test: Development apk builds and install fine in S+ builds.
Change-Id: I10ac27d187e3b5404bc6eff3d40ca67f3786888d
2020-11-12 10:54:00 -08:00
David Su
6e08a584fb Migrate to official API getWifiActivityEnergyInfoAsync()
getControllerActivityEnergyInfo() is an @hide API,
migrate to getWifiActivityEnergyInfoAsync() which is an
@SystemApi.

Bug: 145244073
Test: m Development && adb install Development.apk,
open Dev Tools app, go to Connectivity page, tap on
Link Stats button, ensure link stats printed in text
box below.

Change-Id: I0a9edfff7d924a31c5a3470a89e03bd161f1a8fb
2019-12-04 16:36:03 -08:00
David Su
3c48b7354e Move WifiActivityEnergyInfo to android.os.connectivity
Fix import of WifiActivityEnergyInfo to package
android.os.connectivity

Bug: 145244073
Test: compiles
Change-Id: Ibe16e826bde9017df989e12289b2961a18fab281
2019-12-03 22:31:24 -08:00
gopinath
402e9c8c7c Remove Local compatibility suite from Developement app.
Bug: b/139647239

Test: Builds development app successfully.
Change-Id: Iad56df9b9098b5860f1f61b578db774f3a9775bf
2019-08-22 14:19:58 -07:00
Steven Moreland
c33f3327aa Merge "Remove unused import of ServiceManagerNative." am: 9958d0da90
am: 9a67b9d69e

Change-Id: Ibedc16800360be966fb3e47a802f58147775c461
2019-06-22 17:14:15 -07:00
Steven Moreland
bdc5faa067 Remove unused import of ServiceManagerNative.
Bug: 135768100
Test: N/A
Change-Id: Ieb11d0a7b083ba2518047596241d31887f81a916
2019-06-21 15:37:20 -07:00
Lorenzo Colitti
50445e3e1c Merge changes I1b9dc4d5,I44da96fa am: ee0870d0a2 am: c9ba8a847a
am: fe82e6eba4

Change-Id: Ib0d38141c3313becb1e6329113fd2cac15bc5ed5
2018-10-01 21:13:14 -07:00
Lorenzo Colitti
223fc59aca Log broadcasts in DevToolsConnectivity.
Test: manual
Change-Id: I1b9dc4d56b56dae5da779aec1d99cd7190e94a4e
2018-10-02 10:20:33 +09:00
Lorenzo Colitti
2b9b9b44be Add OWNERS for the connectivity page in the Dev Tools app.
Test: ../../../build/make/tools/checkowners.py src/com/android/development/OWNERS
Change-Id: I44da96fa7daaa6fcd0033797a7ca3f633509364b
2018-10-02 10:20:33 +09:00
gopinath
51c56d2c5f Set property for atest to identify Developement app.
Bug: b/111928925

Change-Id: I65f192791d25ac69589d4f6f281486b1dba0f607
2018-09-03 13:12:10 -07:00
Roshan Pius
d109cfc821 Development: Remove unused param in getControllerActivityEnergyInfo
Bug: 34076874
Test: Compiles
Change-Id: Ib537d7cf75868abc9b6aeff4eb85697aa1dc880a
2018-07-20 09:37:15 -07:00
android-build-prod (mdb)
2c105b6c83 Merge "Set sharedUserId="android.uid.system" to use protected broadcast" am: e2920891c1
am: 09a7cc5318

Change-Id: I0ddf41fbdf44f630525a3eb5916073546fc9700c
2018-04-25 21:15:43 -07:00
Jaekyun Seok
376cc06104 Set sharedUserId="android.uid.system" to use protected broadcast
Bug: 78372687
Test: suceeded building and tested with taimen
Change-Id: Iefa08beffd6377bdd5c0c49065471a59f79f79a1
2018-04-25 23:02:34 +00:00
Anton Hansson
97f205fcc1 Merge "development: Set LOCAL_SDK_VERSION where possible." am: 76ce83e999 am: 132d4f2bc2
am: 5fad00498b

Change-Id: Ib16c0ff647fe0d6da63c6f562458ea047c6756d4
2018-02-26 16:53:23 +00:00
Anton Hansson
44b2e0dfcb development: Set LOCAL_SDK_VERSION where possible.
This change sets LOCAL_SDK_VERSION for all packages where
this is possible without breaking the build, and
LOCAL_PRIVATE_PLATFORM_APIS := true otherwise.

Setting one of these two will be made required soon, and this
is a change in preparation for that. Not setting LOCAL_SDK_VERSION
makes the app implicitly depend on the bootclasspath, which is
often not required. This change effectively makes depending on
private apis opt-in rather than opt-out.

Test: make relevant packages
Bug: 73535841
Change-Id: I371bd0b43e66bcc4be1e26decb95c70519ac3342
2018-02-21 19:02:11 +00:00
Jiyong Park
8c8cb53a4f Use stubs libs for android.test.base/runner/mock
android.test.base/runner/mock libraries are shared libraries that are
built without SDK, but with framework interanl libraries (framework.jar,
etc). Apps or libs that are built with SDK (LOCAL_SDK_VERSION is set)
shouldn't use them, but instead the stubs version of the test framework
libraries, which are built using SDK.

This is because, the build system does not allow a module built with SDK
to depend on another module built without SDK. This has been
exceptionally allowed with warnings, but will soon be errors.

In order to prevent the expected build breakage, direct reference to the
shared libraries are all changed to the stubs libraries.

Note: no one has been using these shared libs statically. So, it is
guaranteed that they won't encounter a problem due to missing
<uses-library name="android.test.runner"/> even after this change.

Bug: 69899800
Test: m -j checkbuild
Change-Id: I7f25e0127c52c56adf288163a760f3dc9aee6586
2018-01-24 15:21:38 +09:00
Weilun Du
f11e49ee42 Fixed the bug where there are multiple developer options
BUG: 69679218

Change-Id: Ib44bf9441ecc7378d810cb55e5d9acdedbde99d6
Signed-off-by: Weilun Du <wdu@google.com>
2017-12-01 17:59:56 -08:00
Sudheer Shanka
5b6205978e Update usage of ActivityManagerNative.
Bug: 30977067
Test: N/A
Change-Id: If76488d9e7b1a33f7f5c9d65eb9254d126ef02b6
2016-11-11 15:01:34 -08:00
Nick Kralevich
d0d2326d0c Delete development_settings.xml am: e800044ab9 am: 8f6ef14178
am: bd4613528b

Change-Id: I5dc15c240bfa5d7410fb65f311626da168644eb1
2016-10-13 20:50:24 +00:00
Nick Kralevich
e800044ab9 Delete development_settings.xml
This does not appear to be used. Also delete stale references
in strings.xml.

Bug: 21388590
Change-Id: I032a3f88624c589e007367693711464401a21a63
2016-10-12 12:21:15 -07:00
Svet Ganov
0d12f27537 Update app using changed private API.
Change-Id: Iced526a2392c7600fe9811dec5b2d1d804aa9610
2016-08-24 07:46:12 -07:00
Svetoslav Ganov
3a65b10528 Update due to a platform change
bug:28163381

Change-Id: I59a4bad7ce947bbb60fbb1dab366efe514324110
2016-08-23 21:45:37 +00:00
Evan Birenbaum
a1770e75d0 Make the DevTools Connectivity lock non reference counted.
To avoid a race on checking if the lock is held.

Change-Id: Iee836447ab0cf6586fa8ece570cc821cd7c6fcd4
2016-06-24 16:08:29 +00:00
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