686bb2d337517b0b3f4ff4a6062c84a3ee730307 |
20-Mar-2017 |
Sudheer Shanka <sudheersai@google.com> |
Add tests for verifying network availability on activity start. Bug: 27803922 Test: runtest -c com.android.server.net.ConnOnActivityStartTest frameworks-services Change-Id: I771e1fd9edbe14f1ff7a7a84c3896af6dd6f20a0
onntestapp
|
ecc986d430f4b8158f177ed97d2edb741f11ff71 |
27-Oct-2016 |
Lorenzo Colitti <lorenzo@google.com> |
Move the connectivity tests to frameworks/base/tests/net. This will give us a good place to put all the networking tests. Fix: 31479480 Test: adb shell am instrument -w -e notClass com.android.server.connectivity.tethering.TetherInterfaceStateMachineTest 'com.android.frameworks.tests.net/android.support.test.runner.AndroidJUnitRunner' # PASS Change-Id: I4b389f7f4e33a996885b38670f585e58ca66f777
pf.pcap
|
d38fb7662d0e525eee57062ee8c14f661b1aee2d |
08-Jan-2016 |
Paul Jensen <pauljensen@google.com> |
Android packet filtering program interpreter test & program generator Change-Id: I17951bd6320b9eb3b6c43f2ae37f62c2025705c1
pf.pcap
|
01a5aa95d9068f2babdc37ef7a98e280f1d0e6bc |
03-Sep-2014 |
Nick Kralevich <nnk@google.com> |
Revert "SELinuxMMAC unit tests" Broken build. frameworks/base/services/tests/servicestests/src/com/android/server/pm/SELinuxMMACTests.java:89: error: constructor PackageParser in class PackageParser cannot be applied to given types; PackageParser packageParser = new PackageParser(archiveFilePath); ^ required: no arguments found: String reason: actual and formal argument lists differ in length frameworks/base/services/tests/servicestests/src/com/android/server/pm/SELinuxMMACTests.java:93: error: method parsePackage in class PackageParser cannot be applied to given types; PackageParser.Package pkg = packageParser.parsePackage(sourceFile, ^ required: File,int found: File,String,DisplayMetrics,int reason: actual and formal argument lists differ in length frameworks/base/services/tests/servicestests/src/com/android/server/pm/SELinuxMMACTests.java:99: error: incompatible types boolean savedCerts = packageParser.collectCertificates(pkg, 0); ^ required: boolean found: void Note: Some input files use or override a deprecated API. Note: Recompile with -Xlint:deprecation for details. 3 errors make: *** [out/target/common/obj/APPS/FrameworksServicesTests_intermediates/classes-full-debug.jar] Error 41 This reverts commit 2f446561f2f6d1b320b34432854d2f55e5b56f9e. Change-Id: I0aa992d7b9eccce7e38c430a8a96084a6ee99866
mac_cnsps_ds.xml
mac_cnsps_nd.xml
mac_csnp_ds.xml
mac_csnp_nd.xml
mac_csps_ds.xml
mac_csps_nd.xml
mac_nc_ds.xml
mac_nc_nd.xml
igned_platform.apk
igned_release.apk
|
2f446561f2f6d1b320b34432854d2f55e5b56f9e |
02-Sep-2014 |
Robert Craig <rpcraig@tycho.ncsc.mil> |
SELinuxMMAC unit tests Added unit tests to help with future integration and regression testing. Change-Id: I5e7d709e80ccbbe1dde1dc26b3e9a155f5009ad1 Signed-off-by: rpcraig <rpcraig@tycho.ncsc.mil>
mac_cnsps_ds.xml
mac_cnsps_nd.xml
mac_csnp_ds.xml
mac_csnp_nd.xml
mac_csps_ds.xml
mac_csps_nd.xml
mac_nc_ds.xml
mac_nc_nd.xml
igned_platform.apk
igned_release.apk
|
4fbbda4cecb078bd3867f416b02cc75f5455284f |
25-Sep-2012 |
Jeff Sharkey <jsharkey@android.com> |
Handle multi-user mountObb() requests. Since emulated external storage paths differ based on execution context, carefully fix up paths for various use-cases: 1. When sending paths to DefaultContainerService, always scope OBB paths as belonging to USER_OWNER. 2. When sending paths to vold, always build emulated storage paths visible to root. 3. Always use the original untouched path when talking with apps. Mount OBB containers using shared app GID, so that an app can read the mount point across users. Handle legacy paths like "/sdcard" by resolving the canonical path before sending to MountService. Move tests to servicestests, and add tests for new path generation logic. Bug: 7212801 Change-Id: I078c52879cd08d9c8a52cc8c83ac7ced1e8035e7
est1.obb
est1_nosig.obb
est1_wrongpackage.obb
|
63abc37356728c0575d6a62a203102ae6d97953b |
12-Jan-2012 |
Jeff Sharkey <jsharkey@android.com> |
Move network stats to FileRotator pattern. Split existing network stats into two separate classes: a recorder which generates historical data based on periodic counter snapshots, and a collection of historical data with persistance logic. Recorder keeps a pending history in memory until outstanding data crosses a specific threshold. Persisting is handled through a given FileRotator. This pattern significantly reduces disk churn and memory overhead. Separate UID data from UID tag data, enabling a shorter rotation cycle. Migrate existing stats into new structure. Remove "xt" stats until iptables hooks are ready. Avoid consuming Entry values when recording into NetworkStatsHistory. Assign operation counts to default route interface. Introduce "Rewriter" interface in FileRotator with methods to enable rewriteAll(). Introduce IndentingPrintWriter to handle indenting in dump() methods. Bug: 5386531 Change-Id: Ibe086230a17999a197206ca62d45f266225fdff1
etstats_uid_v4
etstats_v1
|
1059c3c30ad96a15695c1a92ae8896e078a6309f |
05-Oct-2011 |
Jeff Sharkey <jsharkey@android.com> |
Move battery stats to xt_qtaguid for data stats. Replace TrafficStats calls by reading values from xt_qtaguid kernel module. To keep BatteryStatsImpl changes lightweight, cache recently parsed stats. Tracks mobile ifaces from ConnectivityService. Refactor xt_qtaguid parsing into factory outside of NMS. Add stats grouping based on UID, and total based on limiting filters like iface prefix and UID. Bug: 4902271 Change-Id: I533f116c434b77f93355bf95b839e7478528505b
et_dev_typical
t_qtaguid_extended
t_qtaguid_iface_typical
t_qtaguid_typical
t_qtaguid_typical_with_set
|
ae2c1810839430c84e4a1172580d9c4b18f568ca |
04-Oct-2011 |
Jeff Sharkey <jsharkey@android.com> |
Read iface stats from single proc file. When available, use single "iface_stat_all" file instead of reading values from dozens of files scattered across proc. Tests to verify. Bug: 5397840 Change-Id: I0247be518436c1f79b32c4b72216739f49a9e8cc
t_qtaguid_iface_typical
|
69b0f63af2e3babc2e9f048c4682032a0c17d9d0 |
12-Sep-2011 |
Jeff Sharkey <jsharkey@android.com> |
Data usage structure optimizations. Driven by traceview hotspots found in Settings UI. Change-Id: I614a049523c526b7fcd12fffdf53a3e4723623e4
t_qtaguid_extended
t_qtaguid_typical
t_qtaguid_typical_with_set
|
b5d55e302d2253e4bfb233ea705caf258cdc4cb9 |
11-Aug-2011 |
Jeff Sharkey <jsharkey@android.com> |
Foreground/background network stats using sets. Teach NetworkStats about "counter sets" coming from kernel, and use them to track usage in foreground/background. Add AID_NET_BW_ACCT to system_server so it can control counter sets. Move to composite key of NetworkIdentitySet, UID, set, and tag when recording historical usage. Persisting still clusters by identity, since that is heaviest object. Request async stats poll during systemReady() to bootstrap later delta calculations. Reset kernel counters when UID removed. Update various tests. Bug: 5105592, 5146067 Change-Id: Idabec9e3ffcaf212879821515602ecde0a03de8c
t_qtaguid_typical_with_set
|
fd8be3e5e7420f3cca591daeec8a44487f5f65aa |
11-Jul-2011 |
Jeff Sharkey <jsharkey@android.com> |
Return stats from inactive ifaces, packet counts. When an iface goes inactive, xt_qtaguid maintains historical counters instead of discarding. Now reading and returning those values in NetworkManagementService summary calls. Tests to verify stats are returned. Modify NetworkStats to include rxPackets and txPackets values, and move to Entry to eventually hide internal storage details. Bug: 4984539 Change-Id: I1ba0bb5580c62e946d9dff2cc2a6f64aff403efc
et_dev_typical
|
4414cea13908b8230640f84ef39603d68ff9c377 |
25-Jun-2011 |
Jeff Sharkey <jsharkey@android.com> |
Better network stats parsing, integer tags, async. Change NMS parsing to handle extended /proc/ stats formats by pairing values with header keys. Move TrafficStats to integer tags to match kernel internals, and offer well-known tags for system services. Async policy event dispatch from NPMS, and update tests to block for event dispatch. Narrow app policy to exclude apps signed with system key, which are usually critical. Bug: 4948913, 4903489, 4585280 Change-Id: Idb357227ccaa617906411f309371cea18d7bc519
t_qtaguid_extended
t_qtaguid_typical
|