Happened IllegalArgumentException on DevTools app.
package : com.android.development
Because PendingIntent requires that one of FLAG_IMMUTABLE or FLAG_MUTABLE.
Test : DevTools - Connectivity - press START SCREEN TOGGLE button
Change-Id: I998c74f974d8f555e8016b2a319e1a9a4a4f2669
Signed-off-by: Sekyeong <sekyeong.heo@samsung.com>
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
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
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
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
1. Stop using the deprecated startUsingNetworkFeature and use
requestNetwork instead.
2. Make use of clearCapabilities().
Bug: 23597341
Change-Id: I65cb813111947d159d2bb18f0d8a93fb726912e5
First test toggles wifi on/off forever (must have wifi associated to start,
or at least a remembered network in range)
Second test toggles the screen on off so you can test wifi cycle from that point.
Lastly adds some network-feature tests using mms or hipri net features.
bug: 2170806