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
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
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
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
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
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
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
1. Remove one more usage of startUsingNetworkFeature.
2. Use new APIs for bound HTTP requests.
Bug: 25824776
Change-Id: Ic2f30ce9ffc873be198f6ad29cf928dc33574d84
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
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
1. Stop using the deprecated startUsingNetworkFeature and use
requestNetwork instead.
2. Make use of clearCapabilities().
Bug: 23597341
Change-Id: I65cb813111947d159d2bb18f0d8a93fb726912e5
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
Developer Settings->Dev Tools->Package Browser->Package Summary->Click on ony activity. Force close as ShowActivity is not declared in AndoridManifest.
Change-Id: Ic1b74dc08c83023418912a5f82b127f5537710cd