History log of /cts/hostsidetests/
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
c29098f027437a63931a9c8852c4d3d6618030bc 28-Jun-2017 Andrii Kulian <akulian@google.com> Update tests for new launch restrictions on virtual displays

Only callers with INTERNAL_SYSTEM_WINDOW permission can launch
an activity to a virtual display.

Bug: 63094482
Test: android.server.cts.ActivityManagerDisplayTests
Test: #testLaunchNotEmbeddedOnVirtualDisplay
Change-Id: I5d2c665cdd5164c85a3c70dfa15e1e0cd54d3320
(cherry picked from commit 87ad5fc9b29d4678569e0a973388d1b13af8b01d)
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/ActivityManagerDisplayTests.java
49c958fd6ccadae76c715ecf1229efdad5b1b1b8 23-Jun-2017 Conrad Chen <conradchen@google.com> Fix broken MediaSessionManagerHostTest

Skips the test when managed profile is not available on the test device.

Test: cts-tradefed run cts -m CtsMediaHostTestCases (without the patch,
it fails, with the patch, it passes.)
Test: passed on Sailfish, Fugu, Ryu
Bug: 62909795

Change-Id: Ifacd63503ed95c78b86063d5aab56407171311d8
(cherry picked from commit 5c1a4db25af4a5ad45590bff226d26604bb7667b)
edia/src/android/media/cts/BaseMultiUserTest.java
edia/src/android/media/session/cts/MediaSessionManagerHostTest.java
5e7206fa61abeb8ca17c0966538d85ff9b2d1e20 27-Jun-2017 Andres Celis <celisa@google.com> Removing CTS test for CVE-2017-8265, buganizer issue b/32341313

Bug:63064253
Change-Id: I02da039f4901acb90f2322afe1585a573827094c
(cherry picked from commit 93a0a5a3a04a8f4953b174d0cf29d32e1b773fff)
(cherry picked from commit e2e07e7cafdc3f770aa084ec989f9be4cf09fefb)
ecurity/AndroidTest.xml
ecurity/securityPatch/CVE-2017-8265/Android.mk
ecurity/securityPatch/CVE-2017-8265/poc.c
ecurity/src/android/security/cts/Poc17_07.java
d846b6184dbaea8bad2b898afbbcf6b4ff5b4363 26-Jun-2017 Todd Kennedy <toddke@google.com> Trim output before testing

Change-Id: I5a720c2743abc2395e164ee8b1c4236230fcfa0a
Fixes: 62233495
Test: [on fugu & sailfish] cts-tradefed run commandAndExit cts-dev -m CtsAppSecurityHostTestCases -t android.appsecurity.cts.EphemeralTest#testExposedSystemActivities
(cherry picked from commit 170e06be91a149018291d562e5837ae1766d3dfa)
ppsecurity/src/android/appsecurity/cts/EphemeralTest.java
0be219b366df803d073f9d0c75c178bdd8a8072a 22-Jun-2017 Anton Philippov <philippov@google.com> Rewrites CTS test for key/value backup

Previous implementation used logcat as means of communication between
the test app on the device and the host side of the test. Due to the
nature of logcat that proved to be unreliable and flaky.

New implementation uses device-side test routines to save, read and
verify shared preferences and files. The host side is used to drive the
test flow, install and uninstall the test app, run backup and restore commands.

Test: cts-tradefed run cts -m CtsBackupHostTestCases -t android.cts.backup.KeyValueBackupRestoreHostSideTest
Bug: 38331563
Change-Id: I0d3082c7b0088965f9d018aeb35eae6244f80018
(cherry picked from commit 64816ab1dec643ed308ef7351dccaafb08f93f4b)
ackup/AndroidTest.xml
ackup/KeyValueApp/Android.mk
ackup/KeyValueApp/AndroidManifest.xml
ackup/KeyValueApp/src/android/cts/backup/keyvaluerestoreapp/KeyValueBackupAgent.java
ackup/KeyValueApp/src/android/cts/backup/keyvaluerestoreapp/KeyValueBackupRestoreTest.java
ackup/app/Android.mk
ackup/app/AndroidManifest.xml
ackup/app/src/android/backup/cts/backuprestoreapp/CtsBackupRestoreBackupAgent.java
ackup/app/src/android/backup/cts/backuprestoreapp/KeyValueBackupRandomDataActivity.java
ackup/src/android/cts/backup/BackupRestoreHostSideTest.java
ackup/src/android/cts/backup/BaseBackupHostSideTest.java
ackup/src/android/cts/backup/KeyValueBackupRestoreHostSideTest.java
17f83ed06347565d99d4507f5688ef3bb30265e2 26-Jun-2017 Anton Philippov <philippov@google.com> Add CTS tradefed target preparer for backup tests.

BackupPreparer is used to enable backup and select LocalTransport
on the testdevice before all the tests and return the device
to the original state after all tests are finished.

This is better than the current way of implementing it in the
base test class, which is enabling/disabling backup before/after
each test, which can trigger the device init operation
that can disrupt the execution of the next test since it's run
async and there is no guarantee on when it's going to be executed.

Bug: 62253989
Test: make cts -j32 && cts-tradefed run cts-dev -m
CtsBackupHostTestCases

Change-Id: Iaeb9c62dc77ffce4d96bf992692c7ec9e9caffb3
(cherry picked from commit 8b71b0ca70f4c17048c7fcebd13588ffd8dcee99)
ackup/AndroidTest.xml
ackup/src/android/cts/backup/BackupPreparer.java
ackup/src/android/cts/backup/BaseBackupHostSideTest.java
7eb7c9a3aa14aba0e2302b513a62b17652821aa4 26-Jun-2017 Jeff Sharkey <jsharkey@android.com> Disable all networks during cache test.

We've seen random apps try downloading things while this test is
running, which causes disk space to fluxuate.

Bug: 63004065
Test: cts-tradefed run commandAndExit cts-dev --abi armeabi-v7a -m CtsAppSecurityHostTestCases -t android.appsecurity.cts.StorageHostTest#testCache
Change-Id: I0203490153af5ebddb06a928727ec42e5ab85cf6
(cherry picked from commit ad6de2b3fa0d8876413239e82e8c6d2306baf72f)
ppsecurity/src/android/appsecurity/cts/StorageHostTest.java
df40ce5bf6d296be044799ae38a020300b34e34a 20-Jun-2017 Andres Celis <celisa@google.com> CTS/STS test for Android Security b/32341313

Bug:32341313
Change-Id: I15422f5e42f16c40b865241fcf005529237f3005
(cherry picked from commit d1e637faf06b5203b1b84f0d2c15ce62d6e9c0a8)
ecurity/AndroidTest.xml
ecurity/securityPatch/CVE-2017-8265/Android.mk
ecurity/securityPatch/CVE-2017-8265/poc.c
ecurity/src/android/security/cts/Poc17_07.java
0d5d3d44b9a044186960b4de62816632c400a1d3 20-Jun-2017 Andres Celis <celisa@google.com> CTS/STS test for Android Security b/34126808

Bug:34126808
Change-Id: I5d1f0c8e8699e738363a773ed0155b55b912e9f9
(cherry picked from commit 74e0acf613e1b49e18e0f0aaeba810a667e1d2e6)
ecurity/AndroidTest.xml
ecurity/securityPatch/CVE-2017-8263/Android.mk
ecurity/securityPatch/CVE-2017-8263/local_poc.h
ecurity/securityPatch/CVE-2017-8263/poc.c
ecurity/src/android/security/cts/Poc17_07.java
59a0fedefae00dbd4f60c166aa98e709c36d2ae0 19-Jun-2017 Andres Celis <celisa@google.com> CTS/STS test for Android Security b/34973477

Bug:34973477
Change-Id: I6b9389a0e41b64048b2241dc6478ed8958f5c904
(cherry picked from commit 399c07698b20cba79d245670c7261976186c1f15)
ecurity/AndroidTest.xml
ecurity/securityPatch/CVE-2017-0705/Android.mk
ecurity/securityPatch/CVE-2017-0705/poc.c
ecurity/src/android/security/cts/Poc17_07.java
8fe9a498e368d3ec6a5466d5187389b8b832f472 15-Jun-2017 stachick <stachick@google.com> Adding CTS Tests

Tests being added.
Bug: 35047217
Bug: 35047780
Bug: 35048450

Change-Id: I4c48021ae3e5487e00de14a71f354c6792878499
(cherry picked from commit ce3e7f0c8a5db88ca53f32c8e935e94842db94fb)
ecurity/AndroidTest.xml
ecurity/securityPatch/Bug-35047217/Android.mk
ecurity/securityPatch/Bug-35047217/local_poc.h
ecurity/securityPatch/Bug-35047217/poc.cpp
ecurity/securityPatch/Bug-35047780/Android.mk
ecurity/securityPatch/Bug-35047780/local_poc.h
ecurity/securityPatch/Bug-35047780/poc.cpp
ecurity/securityPatch/Bug-35048450/Android.mk
ecurity/securityPatch/Bug-35048450/local_poc.h
ecurity/securityPatch/Bug-35048450/poc.cpp
ecurity/src/android/security/cts/Poc17_06.java
3946073078659ac7c0dcc404d0257a981d9a6922 23-Jun-2017 Pavel Grafov <pgrafov@google.com> Fix BluetoothRestrictionTest flakiness.

Currently it often times out here.
+ enable bluetooth back in case the test left it turned off.

Bug: 62666981
Test: cts-tradefed run cts -m CtsDevicePolicyManagerTestCases -t com.android.cts.devicepolicy.DeviceOwnerTest#testBluetoothRestriction
Change-Id: I63f24ee589751e4b77e096736f86c7f86aab5d45
(cherry picked from commit e5198bd9692bc81718d37845a71128620f5014a9)
evicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/BluetoothRestrictionTest.java
68a23befca1c9b23115d7e89e074ff2ca044a36e 23-Jun-2017 Julien Desprez <jdesprez@google.com> Merge "DO NOT MERGE Update Jvmti out of JvmtiPreparer" into oc-dev
995c27bd040d865404eba9248d0de942744205fd 23-Jun-2017 jdesprez <jdesprez@google.com> DO NOT MERGE Update Jvmti out of JvmtiPreparer

The special preparer is not needed anymore since b/37579245
Changing back to main stream reporter to avoid filling up
too many sponge label.

Test: build, cts unit tests
Bug: 26548218
Change-Id: Iea3e6a975ea147b293b1250e6a50391e47d574e4
vmti/allocation-tracking/AndroidTest.xml
vmti/redefining/AndroidTest.xml
vmti/run-tests/test-902/AndroidTest.xml
vmti/run-tests/test-903/AndroidTest.xml
vmti/run-tests/test-904/AndroidTest.xml
vmti/run-tests/test-905/AndroidTest.xml
vmti/run-tests/test-906/AndroidTest.xml
vmti/run-tests/test-907/AndroidTest.xml
vmti/run-tests/test-908/AndroidTest.xml
vmti/run-tests/test-910/AndroidTest.xml
vmti/run-tests/test-911/AndroidTest.xml
vmti/run-tests/test-913/AndroidTest.xml
vmti/run-tests/test-914/AndroidTest.xml
vmti/run-tests/test-915/AndroidTest.xml
vmti/run-tests/test-917/AndroidTest.xml
vmti/run-tests/test-918/AndroidTest.xml
vmti/run-tests/test-919/AndroidTest.xml
vmti/run-tests/test-920/AndroidTest.xml
vmti/run-tests/test-922/AndroidTest.xml
vmti/run-tests/test-923/AndroidTest.xml
vmti/run-tests/test-924/AndroidTest.xml
vmti/run-tests/test-926/AndroidTest.xml
vmti/run-tests/test-927/AndroidTest.xml
vmti/run-tests/test-928/AndroidTest.xml
vmti/run-tests/test-930/AndroidTest.xml
vmti/run-tests/test-931/AndroidTest.xml
vmti/run-tests/test-932/AndroidTest.xml
vmti/run-tests/test-940/AndroidTest.xml
vmti/run-tests/test-942/AndroidTest.xml
vmti/run-tests/test-944/AndroidTest.xml
vmti/run-tests/test-945/AndroidTest.xml
vmti/run-tests/test-947/AndroidTest.xml
vmti/run-tests/test-951/AndroidTest.xml
vmti/run-tests/test-981/AndroidTest.xml
vmti/run-tests/test-982/AndroidTest.xml
vmti/run-tests/test-984/AndroidTest.xml
vmti/run-tests/test-985/AndroidTest.xml
vmti/run-tests/test-986/AndroidTest.xml
vmti/tagging/AndroidTest.xml
ba3ccf1e7aea8b02545d40c25608aa4c1fb99fbc 23-Jun-2017 Stan Iliev <stani@google.com> Update golden images for ThemeHostTest and fix generate script

Modify script that generates golden images to run with
"no-window-animation" in the same way as CTS test. This is fixing
54 golden images for material progress bar, which were empty.
Using the new script regenerate golden images with emulator
aosp-emu-master-dev@4125731 and system image
git_oc-emu-release@4116688 OSR1.170620.001.

Test: Ran the ThemeHostTest test on 420dpi device.
Bug: 62264673
Change-Id: Ib54a18e515b6339165bfc46dd5aadea033f7040a
heme/android_device.py
heme/assets/26/360dpi.zip
heme/assets/26/420dpi.zip
heme/assets/26/560dpi.zip
heme/assets/26/hdpi.zip
heme/assets/26/mdpi.zip
heme/assets/26/xhdpi.zip
heme/assets/26/xxhdpi.zip
heme/assets/26/xxxhdpi.zip
29f5aa110f40d1e152994eae8647095dad5fb5a9 21-Jun-2017 Sam Lin <samlin@google.com> Bypass the test if fingerprint feature is not supported

Bug:
Test: run cts -o -m CtsIncidentHostTestCases -t
com.android.server.cts.FingerprintIncidentTest#testNoneRegistered
Test: pass on sailfish, fugu and ryu

Change-Id: Ia4029c430d9f5e2b89bacb976f0982b8160cf598
ncident/src/com/android/server/cts/FingerprintIncidentTest.java
6910a0710b72688e23d9c38990abb85f5da16384 21-Jun-2017 Svetoslav Ganov <svetoslavganov@google.com> Merge "[DO NOT MERGE] Support native shared libs - CTS" into oc-dev
c76e609fd118d5fb84eecd6dbd77a9491bb3d4d1 21-Jun-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Increase threshold for host theme tests." into oc-dev
d805e119b6c14ad09001e6a1064e42c4edac351a 21-Jun-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Only test available intents" into oc-dev
0c8cc89759f30d148e3a267e909b7ba633fd8f47 20-Jun-2017 Svet Ganov <svetoslavganov@google.com> [DO NOT MERGE] Support native shared libs - CTS

Add the shared libs that are APKs to the native library
path when creating application class loaders. Also don't
allow shared libraries hosting native libs to request
extraction of the native libs out of the APK. Lastly,
shared libraries hosting native libs must be declared
as multi-architecture.

Test: These are the tests :)

bug:62720360

Change-Id: Ie673f1c58083e8bbff9d76ccec68ca08c903d8a1
s/src/android/os/cts/StaticSharedLibsHostTests.java
s/test-apps/StaticSharedNativeLibConsumer/Android.mk
s/test-apps/StaticSharedNativeLibConsumer/AndroidManifest.xml
s/test-apps/StaticSharedNativeLibConsumer/jni/version.cpp
s/test-apps/StaticSharedNativeLibConsumer/src/android/os/lib/consumer/UseSharedLibraryTest.java
s/test-apps/StaticSharedNativeLibProvider/Android.mk
s/test-apps/StaticSharedNativeLibProvider/AndroidManifest.xml
s/test-apps/StaticSharedNativeLibProvider/native/version.cpp
s/test-apps/StaticSharedNativeLibProvider/native/version.h
s/test-apps/StaticSharedNativeLibProvider1/Android.mk
s/test-apps/StaticSharedNativeLibProvider1/AndroidManifest.xml
76be3e50148f32f67cd2aae43cd57e40ba64c075 20-Jun-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Bypass JvmtiHostTest at bridged architecture" into oc-dev
28d902a2289e0fe818e243c5b59922c8506eec4a 20-Jun-2017 Aurimas Liutikas <aurimas@google.com> Increase threshold for host theme tests.

To workaround color differences increase the threshold for
the color comparison. There will be a follow up to make this
test more robust.

Bug: 62264673
Test: ran the test locally on sailfish and it passes now
Change-Id: I7e6f1025d8fe26012c69d16285e7eafe03226310
heme/src/android/theme/cts/ComparisonTask.java
eb63da5032ecbb88be59aa0215ff7ca65c1f7902 20-Jun-2017 Sam Lin <samlin@google.com> Bypass JvmtiHostTest at bridged architecture

Bug: 62684679
Test: run cts -o -m CtsJvmtiRedefineClassesHostTestCases
Change-Id: I0e14b164fbd1d14a4573091d53bb0d6598f12ccd
vmti/base/host/src/android/jvmti/cts/JvmtiHostTest.java
c7c0ea87f517b96c1ff0fb39d34083b5932ca2c6 20-Jun-2017 Andrii Kulian <akulian@google.com> Merge "Test launching non-resizeable activities from secondary display" into oc-dev
a5a05565f779c035fce8e88fdd40bdc9395e56c7 20-Jun-2017 Robert Shih <robertshih@google.com> Merge "Parameterize MediaBitstreamsTest" into oc-dev
2cb7d26192a1940b8095608784611c57e0908fd7 20-Jun-2017 Todd Kennedy <toddke@google.com> Only test available intents

because instant applications can't get enough permissions to inspect
the device, they are reliant on system defined pickers/choosers.
ensure the various chooser/pickers have been properly exported to
instant applications; but, only if they're available on the device
for full applications.

Change-Id: Ic9568d5e1f0508d3d49bebade7ea73da25e1fb44
Fixes: 62233495
Test: cts-tradefed run commandAndExit cts-dev -m CtsAppSecurityHostTestCases -t android.appsecurity.cts.EphemeralTest
ppsecurity/src/android/appsecurity/cts/EphemeralTest.java
ppsecurity/src/android/appsecurity/cts/Utils.java
ppsecurity/test-apps/EphemeralTestApp/EphemeralApp1/src/com/android/cts/ephemeralapp1/ClientTest.java
38aba70dee86f7f24850f283bb5d4ea62923df76 17-Jun-2017 Robert Shih <robertshih@google.com> Parameterize MediaBitstreamsTest

Bug: 30268664
Test: cts-tradefed run everything \
-m CtsMediaBitstreamsTestCases \
-t MediaBitstreamsTest#testBitstreamsConformance[path/to/bitstream]
Change-Id: I44a8bf4c6cba93e5d68aa52791f321f402334cc9
edia/bitstreams/Android.mk
edia/bitstreams/app/src/android/media/cts/bitstreams/app/MediaBitstreamsDeviceSideTest.java
edia/bitstreams/common/src/android/media/cts/bitstreams/MediaBitstreams.java
edia/bitstreams/src/android/media/cts/bitstreams/DeviceJUnit4ClassRunnerWithParameters.java
edia/bitstreams/src/android/media/cts/bitstreams/DeviceJUnit4Parameterized.java
edia/bitstreams/src/android/media/cts/bitstreams/MediaBitstreamsTest.java
f4c1d77d3d24d94d096d8a16ed51fb1e69f76cde 19-Jun-2017 stachick <stachick@google.com> Merge "Adding tests to detect information disclosure bugs." into nyc-dev am: 96043fd2fb am: e534e43055 am: 325b204d12 am: ec910c9cff
am: 64d8e94610

Change-Id: Ic84cabcca9300455392bb0651b3ca8b5262d2002
64d8e94610cf8bcb27fb23b031a1ece78da5ecda 19-Jun-2017 stachick <stachick@google.com> Merge "Adding tests to detect information disclosure bugs." into nyc-dev am: 96043fd2fb am: e534e43055 am: 325b204d12
am: ec910c9cff

Change-Id: Ibab85bbfae15d193b7ef0d75416609ffa895bd91
325b204d12e9934d2f6fecbf3446b6da686f7cad 19-Jun-2017 stachick <stachick@google.com> Merge "Adding tests to detect information disclosure bugs." into nyc-dev am: 96043fd2fb
am: e534e43055

Change-Id: Idd3f53cbd2b0c2483834b0d40303abbf38b4b10c
e534e43055e6c2a87d935833e22787c66cd05711 19-Jun-2017 stachick <stachick@google.com> Merge "Adding tests to detect information disclosure bugs." into nyc-dev
am: 96043fd2fb

Change-Id: I8883f8dcdb43235230835e39f44c1db853311e16
00769e5f7311c426c72c645f8e97cd202cb916ab 16-Jun-2017 stachick <stachick@google.com> Adding tests to detect information disclosure bugs.

Bug: 62787340
Change-Id: I8156b89759df4c55ba1a82a654b699967f8fa6d7
ecurity/src/android/security/cts/AdbUtils.java
ecurity/src/android/security/cts/SecurityTestCase.java
6382ce59c32a6e40f4a7fcbaaf74adca37c05420 18-Jun-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Unbreak testInstallEphemeralRequiresV2Signature" into oc-dev
5de33dd99a4ce562150d5d056db344b05ea343df 17-Jun-2017 Andrii Kulian <akulian@google.com> Test launching non-resizeable activities from secondary display

Test launching a non-resizeable activity with same and different
tasks from a secondary display. In first case it should land on
the same display based on resizeabilitiy of the root of the task.
In second case it should land on a different suitable display.

Bug: 62544886
Test: android.server.cts.ActivityManagerDisplayTests
Test: #testLaunchNonResizeableActivityFromSecondaryDisplaySameTask
Test: #testLaunchNonResizeableActivityFromSecondaryDisplayNewTask
Change-Id: If66e48cd7d293f3891547e2e671fccff05433294
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/ActivityManagerDisplayTests.java
ervices/activityandwindowmanager/util/src/android/server/cts/ActivityManagerTestBase.java
e4301f0e2a1c62124defb38ff6fa15916bafa5ac 16-Jun-2017 Alex Klyubin <klyubin@google.com> Unbreak testInstallEphemeralRequiresV2Signature

frameworks/base commit 66c2b228277a2e45bd276abc0c48fbeb4854f312
broke
android.appsecurity.cts.PkgInstallSignatureVerificationTest#testInstallEphemeralRequiresV2Signature
test. This commit adjusts the test to follow the latest rules about
installing an APK as ephemeral using "adb install".

The unsigned-ephemeral.apk was generated by modifying
cts/hostsidetests/appsecurity/test-apps/tinyapp to be built using
SDK 26 and to have targetSdkVersion 26 and targetSandboxVersion 2 in
its AndroidManifest.xml.

Test: cts-tradefed run singleCommand cts --skip-device-info \
--skip-preconditions --skip-connectivity-check \
--abi arm64-v8a --module CtsAppSecurityHostTestCases \
-t android.appsecurity.cts.PkgInstallSignatureVerificationTest#testInstallEphemeralRequiresV2Signature
Bug: 62698063
Change-Id: Iff2b8fa0f348611094db23c401d951a8a6e67744
ppsecurity/res/pkgsigverify/unsigned-ephemeral.apk
ppsecurity/res/pkgsigverify/v1-only-ephemeral.apk
ppsecurity/res/pkgsigverify/v1-v2-ephemeral.apk
ppsecurity/res/pkgsigverify/v2-only-ephemeral.apk
3573dc71085071a75fc0d18fdaee0393be9bb87a 16-Jun-2017 Sudheer Shanka <sudheersai@google.com> Merge "Remove cts tests for validating uid times per cpu freq in dump." into oc-dev
fff08f9ad366ec55f94b7f29627023fd3fce65ae 16-Jun-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Catch Throwable instead of Exception." into oc-dev
af4c655e93b69396dcd6dc2fcbed5f391b3a1ea1 15-Jun-2017 Sudheer Shanka <sudheersai@google.com> Catch Throwable instead of Exception.

AssertionFailedError is a Throwable and hence some logs which will
help debug the failures are not printed.

Bug: 38384021
Test: Verified that when the test throws AssertionFailedError, required
logs are printed.

Change-Id: I6cc8e0172b8e30d268a50bdf9281d6828fc74810
et/app/src/com/android/cts/net/hostside/AbstractRestrictBackgroundNetworkTestCase.java
6ef7ab7b6621dd6c570ecaa0165d6b7a3f17ba01 15-Jun-2017 Joe Onorato <joeo@google.com> Don't run fingerprint tests on devices that don't have fingerprint readers.

Bug: 36686960
Test: cts-tradefed run singleCommand cts --skip-device-info --skip-preconditions --primary-abi-only -m CtsIncidentHostTestCases -t com.android.server.cts.FingerprintIncidentTest\#testNoneRegistered
Change-Id: Ia5e3c51c6c25cb2bde9145ae6e3bf8f234c646aa
ncident/src/com/android/server/cts/FingerprintIncidentTest.java
5557806fff27ac1e560e0b3b2b301ec922c7fb6b 14-Jun-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Increates timeouts and add a retry rule" into oc-dev
c1f7fd18f921f9cc0c2d99f54440ac84ca696f05 14-Jun-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Explicitly invoke keyguard for visibility test" into oc-dev
e1f9458f5139544dd7422259a9ce7943b37da741 13-Jun-2017 Andrii Kulian <akulian@google.com> Explicitly invoke keyguard for visibility test

A device may be configured to have no lock screen, which causes
failure of the visibility test because keyguard will not occlude
app windows.
This CL explicitly sets lock screen before running the visibility
test and moves it into separate test class to ensure proper cleanup
on teardown.

Change-Id: I5b1d90898def9dd6b2bd7e5c861797a5e8c5a810
Fixes: 62528315
Test: android.server.cts.ActivityManagerDisplayTests
Test: #testVirtualDisplayHidesContentWhenLocked
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/ActivityManagerDisplayLockedKeyguardTests.java
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/ActivityManagerDisplayTestBase.java
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/ActivityManagerDisplayTests.java
ad9ac486e0eaa3428aece86c5d95946d20b67a7f 13-Jun-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Fix broken android.theme.cts.ThemeHostTest" into oc-dev
09d605d4db19819ac0140f9517a8ed485b2912b6 13-Jun-2017 Sam Lin <samlin@google.com> Merge "Fix CTS tests related to ephemeral apps on Watch" into oc-dev
65f5281a083a14891c011a45c3d74a155f16078c 08-Jun-2017 Stan Iliev <stani@google.com> Fix broken android.theme.cts.ThemeHostTest

Revert to old image comparison algorithm in RGB space (ag/1954011).
Increase RGB distance threshold from 2 to 4. Test would pass with
a threshold of 3 as well, but with some non consecutive pixel
differences.

Test: ThemeHostTest CTS passed on a phone with 420dpi.
All differences were in antialiasing and gradient pixels
imperceptible to human eye (RGB distance less or equal to 4).
bug: 62264673

Change-Id: I88f6297a9d15e918b6302eb52791bd7960788075
heme/src/android/theme/cts/ComparisonTask.java
f2a905832ad376edeac8f0a9a78f7fe846a9a2e3 13-Jun-2017 Jeffrey Vander Stoep <jeffv@google.com> Merge "Fix file_contexts CTS tests" into oc-dev
40c3f2b44d2e581b82987fd407b3899e5ea0253d 12-Jun-2017 Andres Celis <celisa@google.com> Merge "CTS/STS test for Android Security b/36604779" into nyc-mr2-dev
am: 8e7183ec4c

Change-Id: I65659b420ec2bcf4057c6470fca46cfdbd90bb7a
a0aa73ec2d37bfa7a01b8b210e4cb23bdcdd97bd 12-Jun-2017 Sudheer Shanka <sudheersai@google.com> Merge "Try to fix HostsideRestrictBackgroundNetworkTests flakyness again." into oc-dev
feea9012c87cdb04e563c0cd28daea315617e6db 12-Jun-2017 Sudheer Shanka <sudheersai@google.com> Remove cts tests for validating uid times per cpu freq in dump.

Bug: 62492900
Test: cts-tradefed run singleCommand cts-dev -m ctsIncidentHostTestCases -t \
com.android.server.cts.BatteryStatsValidationTest

Change-Id: I448ef830794d36ac251e431e5417293584d18201
ncident/src/com/android/server/cts/BatteryStatsValidationTest.java
ncident/src/com/android/server/cts/CpuFreqDataHelper.java
69c700109370eec419c12857b42628d8ae1ddb1a 12-Jun-2017 Andres Celis <celisa@google.com> CTS/STS test for Android Security b/36604779

Bug:36604779
Change-Id: I371c762d85c12163b48c8ada9e12c7f2848177f0
ecurity/src/android/security/cts/Poc17_07.java
c18bfa2dcea78a74e9b88cc97c7ac2c02eebcfec 12-Jun-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "properly setup/teardown the test" into oc-dev
6ab5b5fef9841d48c4ef69538447da308a779e3c 09-Jun-2017 Svetoslav Ganov <svetoslavganov@google.com> Increates timeouts and add a retry rule

Unfortunately we don't have a way to know when the account
chagne broadcast is delivered to the sync manager so need
to have a timeout. This change increases this timeout and
also adds a retry rule to make this test more robust. The
test passes locally 100% so hopefully this fixes the prod
failures.

Test: SyncAdapterAccountAccessHostTest pass

bug:62390229

Change-Id: I6cffa9f329a79968b69b4b298175a0269e0b1532
ontent/test-apps/CtsSyncAccountAccessOtherCertTests/Android.mk
ontent/test-apps/CtsSyncAccountAccessOtherCertTests/src/com/android/cts/content/CtsSyncAccountAccessOtherCertTestCases.java
ontent/test-apps/CtsSyncAccountAccessSameCertTests/src/com/android/cts/content/CtsSyncAccountAccessSameCertTestCases.java
ontent/test-apps/CtsSyncAccountAccessSameCertTests/src/com/android/cts/content/FlakyTestRule.java
d9e29eb979c27f55e5cda13660885d57d5d18ca7 09-Jun-2017 Jeff Vander Stoep <jeffv@google.com> Fix file_contexts CTS tests

Bug: 38502071
Test: cts-tradefed run singleCommand cts --skip-device-info \
--skip-preconditions --skip-connectivity-check --abi arm64-v8a \
--module CtsSecurityHostTestCases \
-t android.security.cts.SELinuxHostTest#testAospFileContexts
Test: cts-tradefed run singleCommand cts --skip-device-info \
--skip-preconditions --skip-connectivity-check --abi arm64-v8a \
--module CtsSecurityHostTestCases \
-t android.security.cts.SELinuxHostTest#testValidFileContexts

Change-Id: I1b18d0ddd0840329b8830822f8abbb1b207d7d72
ecurity/src/android/security/cts/SELinuxHostTest.java
8b9d60baa03569c8b0bcc9e26068064f542b9c5c 03-Jun-2017 Sudheer Shanka <sudheersai@google.com> Try to fix HostsideRestrictBackgroundNetworkTests flakyness again.

- Add some logging to dump usage stats if setting an app as inactive
fails.

Bug: 38384021
Test: cts-tradefed run singleCommand cts-dev -m CtsHostsideNetworkTests -t \
com.android.cts.net.HostsideRestrictBackgroundNetworkTests

Change-Id: I96d7acabcf3dc18b4187775bbd2bce17a49dbb7b
et/app/src/com/android/cts/net/hostside/AbstractRestrictBackgroundNetworkTestCase.java
8460121bfb6259d3f91069da1ccb140ffb05f35e 08-Jun-2017 Bookatz <bookatz@google.com> Batterystats logs smeared power model values

Bug: 62302932
Test: cts-tradefed run cts-dev -m CtsDumpsysHostTestCases -t android.dumpsys.cts.BatteryStatsDumpsysTest
Change-Id: I9f0646f21cd066d148ff5c9520b39cfd46b498f4
umpsys/src/android/dumpsys/cts/BatteryStatsDumpsysTest.java
b567eb64500b46b8888dd02b5d55b4e390110cc3 07-Jun-2017 Marco Loaiza <loaizamontoya@google.com> Fix CTS tests related to ephemeral apps on Watch

- Contacts Intent.ACTION_PICK Activity is not supported
- File Storage activities not supported
- No WebView on watches
- Also not running PICK or storage Activity verification
for LEANBACK

Disabled tests that check for these if running on a watch.

Test: Ran the CTS tests on a watch running O.
Bug: 62233495
Change-Id: I12a47c4f9ca4915cb53bfe01b958a7e3b124208e
ppsecurity/test-apps/EphemeralTestApp/EphemeralApp1/src/com/android/cts/ephemeralapp1/ClientTest.java
ppsecurity/test-apps/EphemeralTestApp/EphemeralApp1/src/com/android/cts/ephemeralapp1/WebViewTest.java
2826d6797b9742aa80457838323c5ec5dc44ba08 08-Jun-2017 Andres Celis <celisa@google.com> Merge changes I9b4f1107,Iffd3eada into nyc-mr2-dev
am: 19b4efe419

Change-Id: I5cb5731a1478cabfa7ec05722d14301fa919c440
d9116b4855a9aeaa59fc9f4cb798cab9186dba61 08-Jun-2017 Sang Shin Jung <sangshin@google.com> Merge "CTS test case for Bug 33544431 CTS test case is testPocCVE_2017_0576 (Poc executable: CVE-2017-0576) Fixing conflicts Moved to Poc17_04.java Removed whitespaces and prinft Bug: 33544431" into nyc-mr2-dev
am: 90f992d3c1

Change-Id: Ibfce8c65cdd47a890dc8d2b54e5be1551225052c
19b4efe4194ddb83c640ea6e9684c9e1682cc048 08-Jun-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge changes I9b4f1107,Iffd3eada into nyc-mr2-dev

* changes:
CTS test for b/33863407 Bug: 33863407
CTS test case for Bug 33649808 CTS test case is testPocCVE_2017_0586 Added AndroidTest.xml Moved the test case to Poc17_04.java Remove whitespaces, printfs, and comments Added a missing line in AndroidTest.xml Bug: 33649808
90f992d3c16b0e2cae278d3ad6c01e4fcf2abe2b 08-Jun-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "CTS test case for Bug 33544431 CTS test case is testPocCVE_2017_0576 (Poc executable: CVE-2017-0576) Fixing conflicts Moved to Poc17_04.java Removed whitespaces and prinft Bug: 33544431" into nyc-mr2-dev
4a04a50fab70a5249861c08a1776e14fa076cbc6 08-Jun-2017 Todd Kennedy <toddke@google.com> properly setup/teardown the test

We need to make sure that any packages used during the test
are removed and re-installed before we start the test.

Change-Id: I826404f50d06f5d5dcbd934798d2f2b17c4cc64e
Fixes: 62441221
Test: cts-tradefed run commandAndExit cts-dev -m CtsAppSecurityHostTestCases -t android.appsecurity.cts.PackageVisibilityTest
ppsecurity/src/android/appsecurity/cts/PackageVisibilityTest.java
aa669e68dd1138b087a9a1e89d55f7679586ba5b 08-Jun-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Sets user_setup_complete on autofill tests for secondary users." into oc-dev
d8cb5d87fe42872d9fcefb0a0114071e3c243fd5 07-Jun-2017 Julien Desprez <jdesprez@google.com> Merge "DO NOT MERGE Copy sharding improvements from master" into oc-dev
c7507c8714114345cf0f061cf418af12914c9f0a 07-Jun-2017 Jeff Sharkey <jsharkey@google.com> Merge "Don't follow symlinks when measuring disk space." into oc-dev
cab3cb10c8301cfb22028b6be9f80f00e392d088 07-Jun-2017 jdesprez <jdesprez@google.com> DO NOT MERGE Copy sharding improvements from master

Test: build
./cts-tradefed run cts-suite -m CtsGestureTestCases [--shard-count 2]
Bug: 37211399

Change-Id: I7247a90f12c06f00951bc5ac5ade6f2940ca8120
vmti/base/host/src/android/jvmti/cts/JvmtiHostTest.java
c53b753b80b21e96fa692f83a13c277fc353bf4e 07-Jun-2017 Julien Desprez <jdesprez@google.com> Merge "Avoid redirecting the output if not necessary Also fixing bug 62302163 Output of CVE-2016-8434 is extremly verbose and unnecessary redirecting output to null." into nyc-mr2-dev
am: 2380aeb244

Change-Id: I2af7fbf5adbe781d81e672ded541e8106cf4d8bf
f7d4edc0f0b046df93d894e56e4ca341754772d5 07-Jun-2017 Jeff Sharkey <jsharkey@android.com> Don't follow symlinks when measuring disk space.

When apps are installed in a 32-bit environment, there is a library
symlink in their data directory that we shouldn't try following.

Test: cts-tradefed run commandAndExit cts-dev --abi armeabi-v7a -m CtsAppSecurityHostTestCases -t android.appsecurity.cts.StorageHostTest#testVerifyAppStats
Bug: 62357941
Change-Id: I2fb59e83631f26d5da5f3115758c5adeffb8597a
ppsecurity/test-apps/StorageApp/src/com/android/cts/storageapp/Utils.java
80fba97494d7ec7afc15e41f11928011774f2a6a 06-Jun-2017 Esteban de la Canal <estebandlc@google.com> Fixes ProcfsHostTests

The test was not installing/uninstalling the app correctly.

Based on AbiOverrideTest.java

Bug: 62040581
Change-Id: I013a2d0078b2d4765b6e1114be678763b7757a19
s/src/android/os/cts/ProcfsHostTests.java
e679f43ecac4d6d74004dc5856576c770c27c7f4 07-Jun-2017 Felipe Leme <felipeal@google.com> Sets user_setup_complete on autofill tests for secondary users.

Test: mmm -j60 cts/hostsidetests/devicepolicy && cts-tradefed run commandAndExit cts-dev -m CtsDevicePolicyManagerTestCases -t com.android.cts.devicepolicy.MixedManagedProfileOwnerTest#testDisallowAutofill_allowed

Fixes: 62358715

Change-Id: I08e7605327a9fcc4cbd3e4f5fc70ff03b6773be7
evicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/AutofillRestrictionsTest.java
3ad72cabaf70386f9d87a44339615e296b7e6811 06-Jun-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Fixes CTS AnimationBackgroundTest that would fail from race cond" into oc-dev
43596249b5e4ef89cf55ab28b54de5b511559422 06-Jun-2017 Guang Zhu <guangzhu@google.com> Merge "add component metadata to all CTS module configs" into oc-dev
ff6361d0583a356a5569e3940242183d0b09d4dd 02-Jun-2017 Matthew Ng <ngmatthew@google.com> Fixes CTS AnimationBackgroundTest that would fail from race cond

This test would fail randomly based on the timing if the animation
finishes before the assert occurs such as if the launch activity builder
waits until the animation occurs. Fix this by increasing the duration of
the animation and only wait for the surface background to show before
asserting.

Test: cts/hostsidetests/services/activityandwindowmanager/util/run-test
CtsServicesHostTestCases android.server.cts.
AnimationBackgroundTests#estAnimationBackground_duringAnimation
Fixes: 62219412

Change-Id: Idc824b9b2fc4a90878477547deeef4b5ec241a43
ervices/activityandwindowmanager/activitymanager/app/res/anim/animation_with_background.xml
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/AnimationBackgroundTests.java
ervices/activityandwindowmanager/util/src/android/server/cts/ActivityManagerTestBase.java
52936799fd3aef80a9a93378bde2c6b16815adff 03-Jun-2017 Guang Zhu <guangzhu@google.com> add component metadata to all CTS module configs

Bug: 36140955
Bug: 35360169
Test: new unit test to ensure that all modules have this field
Change-Id: Ie76e4306049eb56e7f4360f63093ab03b3ca2611
Merged-In: Id856f93c0d2a018be65bff33459b4b703d23257d
adb/AndroidTest.xml
bioverride/AndroidTest.xml
ppsecurity/AndroidTest.xml
trace/AndroidTest.xml
ackup/AndroidTest.xml
ootstats/AndroidTest.xml
ompilation/AndroidTest.xml
ontent/AndroidTest.xml
pptools/AndroidTest.xml
evicepolicy/AndroidTest.xml
umpsys/AndroidTest.xml
di/AndroidTest.xml
ncident/AndroidTest.xml
nputmethodservice/hostside/AndroidTest.xml
dwpsecurity/AndroidTest.xml
vmti/allocation-tracking/AndroidTest.xml
vmti/redefining/AndroidTest.xml
vmti/run-tests/test-902/AndroidTest.xml
vmti/run-tests/test-903/AndroidTest.xml
vmti/run-tests/test-904/AndroidTest.xml
vmti/run-tests/test-905/AndroidTest.xml
vmti/run-tests/test-906/AndroidTest.xml
vmti/run-tests/test-907/AndroidTest.xml
vmti/run-tests/test-908/AndroidTest.xml
vmti/run-tests/test-910/AndroidTest.xml
vmti/run-tests/test-911/AndroidTest.xml
vmti/run-tests/test-913/AndroidTest.xml
vmti/run-tests/test-914/AndroidTest.xml
vmti/run-tests/test-915/AndroidTest.xml
vmti/run-tests/test-917/AndroidTest.xml
vmti/run-tests/test-918/AndroidTest.xml
vmti/run-tests/test-919/AndroidTest.xml
vmti/run-tests/test-920/AndroidTest.xml
vmti/run-tests/test-922/AndroidTest.xml
vmti/run-tests/test-923/AndroidTest.xml
vmti/run-tests/test-924/AndroidTest.xml
vmti/run-tests/test-926/AndroidTest.xml
vmti/run-tests/test-927/AndroidTest.xml
vmti/run-tests/test-928/AndroidTest.xml
vmti/run-tests/test-930/AndroidTest.xml
vmti/run-tests/test-931/AndroidTest.xml
vmti/run-tests/test-932/AndroidTest.xml
vmti/run-tests/test-940/AndroidTest.xml
vmti/run-tests/test-942/AndroidTest.xml
vmti/run-tests/test-944/AndroidTest.xml
vmti/run-tests/test-945/AndroidTest.xml
vmti/run-tests/test-947/AndroidTest.xml
vmti/run-tests/test-951/AndroidTest.xml
vmti/run-tests/test-981/AndroidTest.xml
vmti/run-tests/test-982/AndroidTest.xml
vmti/run-tests/test-984/AndroidTest.xml
vmti/run-tests/test-985/AndroidTest.xml
vmti/run-tests/test-986/AndroidTest.xml
vmti/tagging/AndroidTest.xml
edia/AndroidTest.xml
edia/bitstreams/AndroidTest.xml
onkey/AndroidTest.xml
ultiuser/AndroidTest.xml
et/AndroidTest.xml
umberblocking/AndroidTest.xml
s/AndroidTest.xml
ample/AndroidTest.xml
ecurity/AndroidTest.xml
ervices/activityandwindowmanager/activitymanager/AndroidTest.xml
ervices/activityandwindowmanager/windowmanager/AndroidTest.xml
hortcuts/hostside/AndroidTest.xml
ustainedperf/AndroidTest.xml
ystemui/AndroidTest.xml
heme/AndroidTest.xml
rustedvoice/AndroidTest.xml
v/AndroidTest.xml
i/AndroidTest.xml
sage/AndroidTest.xml
sb/AndroidTest.xml
ebkit/AndroidTest.xml
deac5daec4e95247d7c6303e4bd21a9162c900a7 03-Jun-2017 Garfield Tan <xutan@google.com> Disable IME before running DocumentsUI related tests.

GBoard setup instruction obscures the edit text and part of our button
so some of our tests failed.

Test: Related tests pass on angler, marlin & ryu OC-DR/master.
Bug: 62192538
Change-Id: Ibf01809787ebb85ac3499e2224354d340f250211
(cherry picked from commit 41d921460121d3fa6d26bdf7e21bf019607c1671)
ppsecurity/src/android/appsecurity/cts/DocumentsTestCase.java
ppsecurity/test-apps/DocumentClient/src/com/android/cts/documentclient/DocumentsClientTestCase.java
2fdac95fe1f450f11774c97f23f626b5a12a646a 05-Jun-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Batterystats CTS test waits for app to enter bg." into oc-dev
988537c703d1d17f0baa56b78a9494ea106c307d 05-Jun-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "SELinuxHostTest: Replace assertFileEquals with assertFileStartsWith" into oc-dev
29e08dca71bebf0ac8b7ab57f9d780621cb13849 03-Jun-2017 Bookatz <bookatz@google.com> Batterystats CTS test waits for app to enter bg.

Some Batterystats CTS tests require the test app to be in the
background (or foreground) state. If the app is in the wrong state, the
test cannot pass, so the app just quits. However, it seems that certain
devices take longer to enter the correct state, causing the tests to
usually fail on those devices. This cl fixes that: if the app
is in the wrong state, it waits for one second and tries again, repeating
several times before finally giving up. As long as the app enters the
correct state within this wait time, the test can proceed as
planned.

Fixes: 38397188
Test: run cts-dev -m CtsIncidentHostTestCases -t com.android.server.cts.BatteryStatsValidationTest
Change-Id: I6dd7048bf3f93d0f31ec90f37f611f695299b34e
ncident/apps/batterystatsapp/src/com/android/server/cts/device/batterystats/BatteryStatsBackgroundService.java
ncident/apps/batterystatsapp/src/com/android/server/cts/device/batterystats/BatteryStatsBgVsFgActions.java
ncident/apps/batterystatsapp/src/com/android/server/cts/device/batterystats/BatteryStatsForegroundActivity.java
ncident/src/com/android/server/cts/BatteryStatsValidationTest.java
9f183b6e4ffa5d0c199f75e6765ed6aa08f83a90 24-Mar-2017 Julien Desprez <jdesprez@google.com> Avoid redirecting the output if not necessary
Also fixing bug 62302163
Output of CVE-2016-8434 is extremly verbose and unnecessary
redirecting output to null.

Test: ./cts-tradefed run cts-dev CtsSecurityHostTestCases
Bug: 62302163
Change-Id: If0fad126df4a76b06c41488266e5948168f3af1d
ecurity/src/android/security/cts/AdbUtils.java
ecurity/src/android/security/cts/Poc16_12.java
ecurity/src/android/security/cts/Poc17_04.java
4c4617f0874a3dee195d20d666c0df4caa104f52 01-Jun-2017 Andres Celis <celisa@google.com> CTS test for b/33863407
Bug: 33863407

Change-Id: I9b4f11079be6352fc3291b06d170319cd776cc41
ecurity/AndroidTest.xml
ecurity/securityPatch/Bug-33863407/Android.mk
ecurity/securityPatch/Bug-33863407/poc.c
ecurity/src/android/security/cts/Poc17_07.java
f3bc26b0519d7d040a716a40203a97745f8f7875 03-May-2017 Sang Shin Jung <sangshin@google.com> CTS test case for Bug 33649808
CTS test case is testPocCVE_2017_0586
Added AndroidTest.xml
Moved the test case to Poc17_04.java
Remove whitespaces, printfs, and comments
Added a missing line in AndroidTest.xml
Bug: 33649808

Change-Id: Iffd3eadadf99a720b794208fc30d9393bcba9bfc
ecurity/AndroidTest.xml
ecurity/securityPatch/CVE-2017-0586/Android.mk
ecurity/securityPatch/CVE-2017-0586/poc.c
ecurity/src/android/security/cts/Poc17_04.java
17e3d5c6a68316190f4ad709f36edbd12d4bc746 01-May-2017 Sang Shin Jung <sangshin@google.com> CTS test case for Bug 33544431
CTS test case is testPocCVE_2017_0576 (Poc executable: CVE-2017-0576)
Fixing conflicts
Moved to Poc17_04.java
Removed whitespaces and prinft
Bug: 33544431

Change-Id: Ie50369a5866e3fec222eeaacc7498a1e8e882f62
ecurity/AndroidTest.xml
ecurity/securityPatch/CVE-2017-0576/Android.mk
ecurity/securityPatch/CVE-2017-0576/poc.c
240de36289ff75ae2c178b9d8e046ad5262dae38 03-May-2017 jdesprez <jdesprez@google.com> Enable a subset of error prone rules for hostside tests

Enable couple of rules for CTS host sides tests and fix
the errors.
- TryFailThrowable: fail() is throwing and AssertionError
that was caught resulting in the check always passing.

Test: make cts javac-check -j76 TARGET_PRODUCT=aosp_arm64
WITH_DEXPREOPT=false RUN_ERROR_PRONE=true
Bug: 37854485

Change-Id: I99319c3e3083cc01b5be18fb33c6ae2a30ee9c30
(cherry picked from commit b879b5cac4fea3f70f1a274a7ab9781135e707dd)
ppsecurity/src/android/appsecurity/cts/AdoptableHostTest.java
ppsecurity/src/android/appsecurity/cts/PermissionsHostTest.java
aeace3fce9c0169350c0039c2623878c4ad0232a 02-Jun-2017 Guang Zhu <guangzhu@google.com> Merge "Update configurations to avoid using ApkInstaller" into oc-dev
b5379dc5f4d2d757f90288688f7057ca52c22701 02-Jun-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "CTS Keyguard*Tests don't assume screenlock" into oc-dev
16872fedf0f5877c573c37b2566054df195b10c7 12-Apr-2017 jdesprez <jdesprez@google.com> Update configurations to avoid using ApkInstaller

- use the new tradefed version of it.
- add a tests to check configs.

Test: build, run collect-tests-only dry-run
Bug: 37213493
Change-Id: I45e9950aa2731afe9403dd44dd18d0a8d40fdb6b
Merged-In: Ia212b707befe3ffc70ef43cbc292e97be3f364f1
bioverride/AndroidTest.xml
pptools/AndroidTest.xml
nputmethodservice/hostside/AndroidTest.xml
umberblocking/AndroidTest.xml
s/AndroidTest.xml
ample/AndroidTest.xml
ervices/activityandwindowmanager/activitymanager/AndroidTest.xml
ervices/activityandwindowmanager/windowmanager/AndroidTest.xml
ustainedperf/AndroidTest.xml
ystemui/AndroidTest.xml
heme/AndroidTest.xml
rustedvoice/AndroidTest.xml
sage/AndroidTest.xml
ebkit/AndroidTest.xml
8c0630376cfd1a1cdf0a98920da65fad264cda6e 01-Jun-2017 Pavel Grafov <pgrafov@google.com> Merge "Merge "Remove timestamp checking to avoid flakiness." into nougat-cts-dev am: cf309e3f09" into nougat-mr1-cts-dev am: 6ef71d373d am: 11cd44483a am: 1ae9fab03f
am: c6778ff2ad

Change-Id: Id0bfe24aa5447fe3ac3f68d0abd41fc18db0a203
c6778ff2ad30e591cf4fd78979e866c838fbb0fa 01-Jun-2017 Pavel Grafov <pgrafov@google.com> Merge "Merge "Remove timestamp checking to avoid flakiness." into nougat-cts-dev am: cf309e3f09" into nougat-mr1-cts-dev am: 6ef71d373d am: 11cd44483a
am: 1ae9fab03f

Change-Id: I2a4295209a1150239cf83a0b7e5b51ecdeaa6a35
11cd44483a272bc06d92217e622468e58412fcf9 01-Jun-2017 Pavel Grafov <pgrafov@google.com> Merge "Merge "Remove timestamp checking to avoid flakiness." into nougat-cts-dev am: cf309e3f09" into nougat-mr1-cts-dev
am: 6ef71d373d

Change-Id: I6a26ae80e462dfff5a887d6eac21520e2dacf83d
9813498dbcbf20fdc3efe4f1574616c99c6e1858 01-Jun-2017 Pavel Grafov <pgrafov@google.com> Merge "Remove timestamp checking to avoid flakiness." into nougat-cts-dev am: cf309e3f09
am: c314fd2b4a

Change-Id: I2010ef324248037c339f0209dfc90b06de7104cf
c314fd2b4a896ad41a059d777d96108ec3aab89d 01-Jun-2017 Pavel Grafov <pgrafov@google.com> Merge "Remove timestamp checking to avoid flakiness." into nougat-cts-dev
am: cf309e3f09

Change-Id: I88d3f63936bc154e94257ea270126a4d1f525942
daaa1fd63de42cc02bcafdeced9853882f1e86be 01-Jun-2017 Pavel Grafov <pgrafov@google.com> Merge "Remove timestamp checking to avoid flakiness." into nougat-cts-dev
am: cf309e3f09

Change-Id: I12453dd5e78cf0f78531da487c5b6f5fe3c4eed0
c2789a0ab5841cacb05a0c4919320692bc8fd840 01-Jun-2017 Andrii Kulian <akulian@google.com> Merge "Test activity launch after display creation" into oc-dev
c3e9e56dcfefb6d152778241894485874d339d2e 20-Feb-2017 Pavel Grafov <pgrafov@google.com> Remove timestamp checking to avoid flakiness.

These checks report failures when the time is synchronized
after the system boots.

Change-Id: Iec39c4a7d8c67fa0f1f087743d6d8aa461a6733a
Fixed: 35440176
Test:cts-tradefed run cts -m CtsDevicePolicyManagerTestCases -t com.android.cts.devicepolicy.DeviceOwnerTest#testSecurityLoggingWithSingleUser
evicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/SecurityLoggingTest.java
ef121276ee4a69fda6d5042365237a42ec34c063 01-Jun-2017 Alex Light <allight@google.com> Merge "Disable FAILS_VERIFICATION test case" into oc-dev
771cf7a71d9c487619bab666f82ed84f6e8b5f5c 01-Jun-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Try to fix HostsideRestrictBackgroundNetworkTests flakyness." into oc-dev
c88b032a379a2e557933c682c732601f7f32b56a 01-Jun-2017 Alex Light <allight@google.com> Disable FAILS_VERIFICATION test case

There appears to be an underlying bug with the implementation. Disable
that test case until it is fixed.

Test: cts-tradefed
Bug: 37719422
Bug: 62237378
Change-Id: Iecb842a28712382ecda7649ecd7514fc0a8f7225
vmti/redefining/app/src/android/jvmti/cts/JvmtiRedefineClassesTest.java
564d09a3c67dc54dcee9ad126eb251f31e82643d 25-May-2017 Jim Kaye <jameskaye@google.com> CTS Keyguard*Tests don't assume screenlock

KeyguardTests and KeyguardTransitionTests work only if
the device has screenlock enabled.

Explicitly enable screenlock as part of the test set up.

See a similar fix in
https://googleplex-android-review.git.corp.google.com/2156477

(This fix is required by the Emulator because it has
screenlock disabled by default.)

Bug: 62088797

Test: This is test code.

This fix was verified on Emulator from emu-master-dev and on
Nexus 5x running bullhead-userdebug 8.0.0 OPR1.170524.002
4041127 dev-keys.

Change-Id: I986b5afb06ad1f42a1c1098d937ea0822c356eef
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/KeyguardTests.java
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/KeyguardTransitionTests.java
385c1b867d27c5f488904680bfad7b3a00d947aa 31-May-2017 Sudheer Shanka <sudheersai@google.com> Try to fix HostsideRestrictBackgroundNetworkTests flakyness.

Bug: 38384021
Test: cts-tradefed run singleCommand cts-dev -m CtsHostsideNetworkTests -t \
com.android.cts.net.HostsideRestrictBackgroundNetworkTests
Change-Id: I99668396abcf7421cd7ffb9118e309aaecb80f07
et/aidl/com/android/cts/net/hostside/INetworkStateObserver.aidl
et/app/src/com/android/cts/net/hostside/AbstractRestrictBackgroundNetworkTestCase.java
et/app2/src/com/android/cts/net/hostside/app2/Common.java
et/app2/src/com/android/cts/net/hostside/app2/MyActivity.java
da9a1ecf3573a13d221d62c853cf24e999bf9445 31-May-2017 Joe Onorato <joeo@google.com> Merge "Track batterystats background partial wakelock" into oc-dev
baf6bbad0d5b9e9b3a3fa2c514cc2a038caba8a9 31-May-2017 Joe Onorato <joeo@google.com> Merge "Add unoptimized ble scans to batterystats CTS test" into oc-dev
6cc57bc70a32f0c14de1fda4b459049699e23b7a 17-May-2017 Johan Torås Halseth <johanth@google.com> DO NOT MERGE ANYWHERE Add test for files in no_backup folder.

Ensures that files put into the getNoBackupFilesDir() is not restored
after doing backup/restore, while files outside the folder are.

Test: make cts -j40 && cts-tradefed run cts -m CtsBackupHostTestCases
Bug: 20088872
Bug: 38492377
Change-Id: Ib7ee6907562051ce4aecae76cefb145315fd6b47
(cherry picked from commit 980af34e09a033e19a6034743bc60c6e601f6b97)
ackup/AndroidTest.xml
ackup/fullbackupapp/Android.mk
ackup/fullbackupapp/AndroidManifest.xml
ackup/fullbackupapp/src/android/cts/backup/fullbackupapp/FullbackupTest.java
ackup/src/android/backup/cts/BackupRestoreHostSideTest.java
ackup/src/android/cts/backup/BackupRestoreHostSideTest.java
ackup/src/android/cts/backup/BaseBackupHostSideTest.java
ackup/src/android/cts/backup/NoBackupFolderHostSideTest.java
7640f5f688801d5f2139a8a06912cb2d2016023f 31-May-2017 Jeff Sharkey <jsharkey@google.com> Merge "All storage tests should wait for idle." into oc-dev
3766dddbb209f5c6ad5eadd0f5d2045b6c51601a 31-May-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Allow testResetPasswordWithToken to fail if executed out of order" into oc-dev
5c85136ca70428abc7f0f26f9468a8db62a8075a 31-May-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Wait for broadcast queue to be cleared before stopping user" into oc-dev
f2deb69c1e81a1cd06b67f06747efe8131a0f3db 31-May-2017 Andrii Kulian <akulian@google.com> Test activity launch after display creation

Create a virtual display and launch an activity immediately.
Check if a virtual display becomes usable right after it's
registered in display manager.

Bug: 34262188
Test: android.server.cts.ActivityManagerDisplayTests
Test: #testImmediateLaunchOnNewDisplay
Change-Id: I9808a761b8c5b233029653d0dbc8561018e7fe65
ervices/activityandwindowmanager/activitymanager/app/src/android/server/cts/VirtualDisplayActivity.java
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/ActivityManagerDisplayTests.java
987e9ed0d1b8c2ef5d7cbd0bd202ac7425815dff 31-May-2017 Andres Celis <celisa@google.com> CTS test case for Bug 33751424 CTS test case is testPocCVE_2017_7369 Fixing conflicts Bug: 33751424
am: de36163356

Change-Id: Ibc28030360c98d789b0e17c8a6720bdd0ac107ff
8e495b4f9dfc24f418a94961f6227112ff51a209 31-May-2017 Sang Shin Jung <sangshin@google.com> CTS test case for Bug 34276203 CTS test case is testPocCVE_2017_0564 (Poc executable: CVE-2017-0564) Fixing conflicts Removed comments Added a missing line in AndroidTest.xml poc.c is updated Bug: 34276203
am: cd3cab023c

Change-Id: Icecdb9d95f2e30ef5434d43dbbc3ae4323b5e06e
114da9d8edb66371d06bf8d3f8cf632cc12b9efc 31-May-2017 Sang Shin Jung <sangshin@google.com> CTS test case for Bug 33966912 CTS test case is testPocCVE_2016_10231 (Poc executable: CVE-2016_10231) Fixing conflicts Moved to Poc17_04.java Fixed AndroidTest.xml and whitespace in poc.c Bug: 33966912
am: 5b257640b7

Change-Id: I97642329bcab614327cf10fd05e33f321612f228
de3616335670a172367a7a26b1f5a4baca928308 15-May-2017 Andres Celis <celisa@google.com> CTS test case for Bug 33751424
CTS test case is testPocCVE_2017_7369
Fixing conflicts
Bug: 33751424

Change-Id: I85d5a7e56212b46780c1d50e32e089a49996684c
ecurity/AndroidTest.xml
ecurity/securityPatch/CVE-2017-7369/Android.mk
ecurity/securityPatch/CVE-2017-7369/poc.c
ecurity/src/android/security/cts/Poc17_06.java
cd3cab023c0139485364d14723cfdfc6d600512f 29-Apr-2017 Sang Shin Jung <sangshin@google.com> CTS test case for Bug 34276203
CTS test case is testPocCVE_2017_0564 (Poc executable: CVE-2017-0564)
Fixing conflicts
Removed comments
Added a missing line in AndroidTest.xml
poc.c is updated
Bug: 34276203

Change-Id: If3d322ba175211fb67e9ce61cc845746fb8d4c6b
ecurity/AndroidTest.xml
ecurity/securityPatch/CVE-2017-0564/Android.mk
ecurity/securityPatch/CVE-2017-0564/local_poc.h
ecurity/securityPatch/CVE-2017-0564/poc.c
ecurity/src/android/security/cts/Poc17_04.java
5b257640b792850061ad6f6baa2ea4b726e03e9b 02-May-2017 Sang Shin Jung <sangshin@google.com> CTS test case for Bug 33966912
CTS test case is testPocCVE_2016_10231 (Poc executable: CVE-2016_10231)
Fixing conflicts
Moved to Poc17_04.java
Fixed AndroidTest.xml and whitespace in poc.c
Bug: 33966912

Change-Id: I3210d8272a8c76b837786e10d1c2da94a84b223c
ecurity/AndroidTest.xml
ecurity/securityPatch/CVE-2016-10231/Android.mk
ecurity/securityPatch/CVE-2016-10231/poc.c
ecurity/src/android/security/cts/Poc17_04.java
c1d782b2508fb0df47e7a7234d34b5eef2f9454d 31-May-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "pressHomeButton() on tests setUp() and tearDown()" into oc-dev
90db0992f518b700a056a47bb8a660d8897a5559 31-May-2017 Jeff Sharkey <jsharkey@android.com> All storage tests should wait for idle.

I've seen at least flaky test due to broadcast races; let's make all
tests wait for device idle before proceeding.

Bug: 38008706
Test: cts-tradefed run commandAndExit cts-dev -m CtsJobSchedulerTestCases -t android.jobscheduler.cts.StorageConstraintTest
Test: cts-tradefed run commandAndExit cts-dev -m CtsAppSecurityHostTestCases -t android.appsecurity.cts.StorageHostTest
Change-Id: Idd7ceafa4042adb34dc47252f3eed484f4db4a48
ppsecurity/src/android/appsecurity/cts/StorageHostTest.java
ppsecurity/test-apps/StorageStatsApp/src/com/android/cts/storagestatsapp/StorageStatsTest.java
1d5d94bcae32e7ac0c1b628d1e7c8cba78eac0e4 26-May-2017 Bookatz <bookatz@google.com> Track batterystats background partial wakelock

Bug: 62134255
Test: cts-tradefed run cts-dev -m CtsDumpsysHostTestCases -t android.dumpsys.cts.BatteryStatsDumpsysTest
Change-Id: I39e1b46c787e402b04181d55cf0c4daf778c78ee
umpsys/src/android/dumpsys/cts/BatteryStatsDumpsysTest.java
74a75ed05686b38e15fdd68179ca79492fb2ff08 31-May-2017 Sang Shin Jung <sangshin@google.com> CTS test case for Bug 33842951 CTS test case is testPocCVE_2017_0577 Added AndroidTest.xml back Remove printfs Moved to Poc17_04.java Bug: 33842951
am: 16710af122

Change-Id: I8e12f41083e5630956401afda6b4ce2c92d9c3da
471506749a66df48b07e5de59e72d59e7ad3ca46 30-May-2017 Wale Ogunwale <ogunwale@google.com> pressHomeButton() on tests setUp() and tearDown()

Always go home on tests set up and tear down so there is a
consistent starting point for the tests.
Also, made testConfigurationUpdatesWhenResizedFromDockedStack
presubmit.

Test: this
Bug: 62088341
Change-Id: Idb2eed6ccc6177983419d72af1b70f8ad393b7b4
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/ActivityManagerAppConfigurationTests.java
ervices/activityandwindowmanager/util/src/android/server/cts/ActivityManagerTestBase.java
16710af122d8ff658e7318d3edc442eea95bd0e1 11-May-2017 Sang Shin Jung <sangshin@google.com> CTS test case for Bug 33842951
CTS test case is testPocCVE_2017_0577
Added AndroidTest.xml back
Remove printfs
Moved to Poc17_04.java
Bug: 33842951

Change-Id: I4940233b1de777e8ad27d0a8610ab3861c236b2b
ecurity/AndroidTest.xml
ecurity/securityPatch/CVE-2017-0577/Android.mk
ecurity/securityPatch/CVE-2017-0577/poc.c
4a7be481fc842ef37a6676fb7574cfec966dcf94 26-May-2017 Bookatz <bookatz@google.com> Batterystats CTS: check if feature is present

Before doing a GPS, BLE, or Wifi test, it is checked wether the device
has the requisite feature, skipping the test if it does not.

Bug: 62134744
Test: run cts-dev -m CtsIncidentHostTestCases -t com.android.server.cts.BatteryStatsValidationTest
Change-Id: I44af0d46e45da8c6e1f1b237b387798f6f72b324
ncident/src/com/android/server/cts/BatteryStatsValidationTest.java
5b112fe5c90a5c387841577237641530252c2dd1 26-May-2017 Sudheer Shanka <sudheersai@google.com> Merge "Try to fix HostsideRestrictBackgroundNetworkTests flakyness." into oc-dev
542c793a53b745fd1f83ca8d3a92e7b8fe5455d6 25-May-2017 Sudheer Shanka <sudheersai@google.com> Try to fix HostsideRestrictBackgroundNetworkTests flakyness.

- If the screen is not turned on when the activity is starting, then
that process will be in TOP_SLEEPING state and won't have temp access
to network connectivity in restricted modes. So, add a wait time after
turning the screen on.
- Increase the timeout for app standby wait time.

Bug: 38384021
Test: cts-tradefed run singleCommand cts-dev -m CtsHostsideNetworkTests -t \
com.android.cts.net.HostsideRestrictBackgroundNetworkTests
Change-Id: I54563a0c8b3e783ee9279d667faa5cab529ddc7e
et/app/src/com/android/cts/net/hostside/AbstractRestrictBackgroundNetworkTestCase.java
4c60aa23f8dffd7256c4d019b2288ffe1dcf9497 26-May-2017 Jeff Sharkey <jsharkey@google.com> Merge "Make storage and StrictMode tests more robust." into oc-dev
08b6d51c88944b4a037a23ff1d83811af12cd58c 23-May-2017 Bookatz <bookatz@google.com> Add unoptimized ble scans to batterystats CTS test

Bug: 38461344
Test: run cts-dev -m CtsIncidentHostTestCases -t com.android.server.cts.BatteryStatsValidationTest#testUnoptimizedBleScans
Test: cts-tradefed run cts-dev -m CtsDumpsysHostTestCases -t android.dumpsys.cts.BatteryStatsDumpsysTest
Change-Id: Idea05de7dbc14412e7f69fe2035310126268ea0a
umpsys/src/android/dumpsys/cts/BatteryStatsDumpsysTest.java
ncident/apps/batterystatsapp/src/com/android/server/cts/device/batterystats/BatteryStatsBgVsFgActions.java
ncident/src/com/android/server/cts/BatteryStatsValidationTest.java
3ad1bcb4afaffe90dfaf449dd462e02bd9e9fb45 26-May-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Add test for non-ephemeral install time permissions" into oc-dev
c6b8a08f4356649e1ab9f0a043622bdfe4d34c20 24-May-2017 Jeff Sharkey <jsharkey@android.com> Make storage and StrictMode tests more robust.

Many of the AppSecurity tests verify cross-user interactions by
creating and starting temporary users on multi-user devices. Since
user creation adds significant overhead, this change creates a
secondary and tertiary user only once for the entire module, which
individual tests can then efficiently reuse.

Quietly skip testFullDisk() when we're unable to free up more than
90% of disk space, since that's a prerequisite for that test.

Rewrite StrictModeTest to use explicit listener for observing
violations, since reading back raw logcat data recently became
very flaky.

Test: cts-tradefed run commandAndExit cts-dev -m CtsOsTestCases -t android.os.cts.StrictModeTest
Test: cts-tradefed run commandAndExit cts-dev -m CtsAppSecurityHostTestCases
Test: cts-tradefed run commandAndExit cts-dev -m CtsAppSecurityHostTestCases -t android.appsecurity.cts.StorageHostTest
Test: cts-tradefed run commandAndExit cts-dev -m CtsAppSecurityHostTestCases -t android.appsecurity.cts.ExternalStorageHostTest
Bug: 38234598, 37486230, 37915178, 62018992
Change-Id: I97182aaa8c82cdc0a1169d5b4adac053c84a1b11
ppsecurity/AndroidTest.xml
ppsecurity/src/android/appsecurity/cts/AdoptableHostTest.java
ppsecurity/src/android/appsecurity/cts/AppSecurityPreparer.java
ppsecurity/src/android/appsecurity/cts/AppSecurityTests.java
ppsecurity/src/android/appsecurity/cts/BaseAppSecurityTest.java
ppsecurity/src/android/appsecurity/cts/DirectBootHostTest.java
ppsecurity/src/android/appsecurity/cts/DocumentsTestCase.java
ppsecurity/src/android/appsecurity/cts/EphemeralTest.java
ppsecurity/src/android/appsecurity/cts/ExternalStorageHostTest.java
ppsecurity/src/android/appsecurity/cts/InstantAppUserTest.java
ppsecurity/src/android/appsecurity/cts/InstantCookieHostTest.java
ppsecurity/src/android/appsecurity/cts/IsolatedSplitsTests.java
ppsecurity/src/android/appsecurity/cts/KeySetHostTest.java
ppsecurity/src/android/appsecurity/cts/PackageVisibilityTest.java
ppsecurity/src/android/appsecurity/cts/PermissionsHostTest.java
ppsecurity/src/android/appsecurity/cts/PkgInstallSignatureVerificationTest.java
ppsecurity/src/android/appsecurity/cts/PrivilegedUpdateTests.java
ppsecurity/src/android/appsecurity/cts/SplitTests.java
ppsecurity/src/android/appsecurity/cts/StorageHostTest.java
ppsecurity/src/android/appsecurity/cts/UsesLibraryHostTest.java
ppsecurity/src/android/appsecurity/cts/Utils.java
ppsecurity/test-apps/StorageApp/src/com/android/cts/storageapp/StorageTest.java
c9842d12b6cc4f4c6b02d5245991d1089dcb9582 25-May-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Only test for camera intents if the device has FEATURE_CAMERA" into oc-dev
c636f47618105b5404d39469c300ee2f57d25625 25-May-2017 Tony Mak <tonymak@google.com> Wait for broadcast queue to be cleared before stopping user

Bug: 37778488

Test: cts-tradefed run cts-dev --module DevicePolicyManager
I did not wait for it to be completed though :)

Change-Id: I15b57fbbe8908e225d3847790208368953da13c2
evicepolicy/src/com/android/cts/devicepolicy/BaseDevicePolicyTest.java
387f54569e1aebdb4c94700b171f36e6f70b5dae 25-May-2017 Rubin Xu <rubinxu@google.com> Allow testResetPasswordWithToken to fail if executed out of order

If MixedManagedProfileOwnerTest#testResetPasswordWithToken is executed first,
reset password token will be disabled for user 0, causing failures to the same
tests for device owner and user owner. In this case, catch the failure and allow
the test to procceed.

Bug: 38246027
Test: execute the following CTS test in order
cts-tradefed run cts-dev -m CtsDevicePolicyManagerTestCases -t com.android.cts.devicepolicy.MixedManagedProfileOwnerTest#testResetPasswordWithToken
cts-tradefed run cts-dev -m CtsDevicePolicyManagerTestCases -t com.android.cts.devicepolicy.MixedProfileOwnerTest#testResetPasswordWithToken
cts-tradefed run cts-dev -m CtsDevicePolicyManagerTestCases -t com.android.cts.devicepolicy.MixedDeviceOwnerTest#testResetPasswordWithToken

Change-Id: Icabfa49eceb19250c7d034f2a3c3b40a8f318858
evicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/ResetPasswordWithTokenTest.java
d10da795a13a0d56f2d0fc0cfa5be723b102a09c 25-May-2017 Dan Cashman <dcashman@google.com> SELinuxHostTest: Replace assertFileEquals with assertFileStartsWith

commit: 0f0aea19c540f109280bed5157dea3c6b545ac3f introduced
assertFileEquals() to check that the platform sepolicy matched AOSP's
platform policy exactly. Partners are allowed to make a range of extensions
to their platform policies, though, including adding new system services,
properties, and seapp_contexts rules. Remove assertFileEquals() and replace
with assertFileStartsWith() to ensure that AOSP policy is maintained without
prohibiting customization.

Bug: 62066399
Test: SELinuxHostTests pass.
Change-Id: Ic5c1ad9930615e5c93487f66984e1e63919cbf71
ecurity/src/android/security/cts/SELinuxHostTest.java
bdd0a741a808bda88f8e575224e9ea8e562e7a95 25-May-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Made ActivityManagerTransitionSelectionTests @Presubmit" into oc-dev
0d2877dab3c964db5dcdcc6f67b701a659c2a4ec 04-May-2017 Anton Philippov <philippov@google.com> DO NOT MERGE [CTS] Add a test for key/value backup and restore.

This test is intended to replace BackupTest in CTS Verifier (removed in
this change).

The test installs the app that generates random values and saves them in
different shared preferences and files. It uses BackupAgentHelper to do
key/value backup of those values. The tests verifies that the values are
restored after the app is uninstalled and reinstalled.

Test: make cts -j40 && cts-tradefed run cts -m CtsBackupHostTestCases
Bug: 32797101
Bug: 38492377
Change-Id: I580907c4ceb2cafb6d2372fbc05f6d8a9ac70e29
(cherry picked from commit 8b6f771a4c31902ab644396a161e269b69a747fb)
ackup/Android.mk
ackup/AndroidTest.xml
ackup/app/Android.mk
ackup/app/AndroidManifest.xml
ackup/app/src/android/backup/cts/backuprestoreapp/CtsBackupRestoreBackupAgent.java
ackup/app/src/android/backup/cts/backuprestoreapp/KeyValueBackupRandomDataActivity.java
ackup/src/android/backup/cts/BackupRestoreHostSideTest.java
7158e9b4798283f4d6966926ecbbb56b3bab8c74 03-May-2017 Chad Brubaker <cbrubaker@google.com> Add test for non-ephemeral install time permissions

Bug: 37871983
Test: this
Change-Id: Ie01876eb9641040139b3bf0613a6db4a609ee0d0
ppsecurity/src/android/appsecurity/cts/EphemeralTest.java
ppsecurity/test-apps/EphemeralTestApp/EphemeralApp1/AndroidManifest.xml
ppsecurity/test-apps/EphemeralTestApp/EphemeralApp1/src/com/android/cts/ephemeralapp1/ClientTest.java
980af34e09a033e19a6034743bc60c6e601f6b97 17-May-2017 Johan Torås Halseth <johanth@google.com> DO NOT MERGE ANYWHERE Add test for files in no_backup folder.

Ensures that files put into the getNoBackupFilesDir() is not restored
after doing backup/restore, while files outside the folder are.

Test: make cts -j40 && cts-tradefed run cts -m CtsBackupHostTestCases
Bug: 20088872
Bug: 38492377
Change-Id: Ib7ee6907562051ce4aecae76cefb145315fd6b47
ackup/AndroidTest.xml
ackup/fullbackupapp/Android.mk
ackup/fullbackupapp/AndroidManifest.xml
ackup/fullbackupapp/src/android/cts/backup/fullbackupapp/FullbackupTest.java
ackup/src/android/backup/cts/BackupRestoreHostSideTest.java
ackup/src/android/cts/backup/BackupRestoreHostSideTest.java
ackup/src/android/cts/backup/BaseBackupHostSideTest.java
ackup/src/android/cts/backup/NoBackupFolderHostSideTest.java
8b6f771a4c31902ab644396a161e269b69a747fb 04-May-2017 Anton Philippov <philippov@google.com> DO NOT MERGE [CTS] Add a test for key/value backup and restore.

This test is intended to replace BackupTest in CTS Verifier (removed in
this change).

The test installs the app that generates random values and saves them in
different shared preferences and files. It uses BackupAgentHelper to do
key/value backup of those values. The tests verifies that the values are
restored after the app is uninstalled and reinstalled.

Test: make cts -j40 && cts-tradefed run cts -m CtsBackupHostTestCases
Bug: 32797101
Bug: 38492377
Change-Id: I580907c4ceb2cafb6d2372fbc05f6d8a9ac70e29
ackup/Android.mk
ackup/AndroidTest.xml
ackup/app/Android.mk
ackup/app/AndroidManifest.xml
ackup/app/src/android/backup/cts/backuprestoreapp/CtsBackupRestoreBackupAgent.java
ackup/app/src/android/backup/cts/backuprestoreapp/KeyValueBackupRandomDataActivity.java
ackup/src/android/backup/cts/BackupRestoreHostSideTest.java
884c8df98e2f1794203f479c6a3c28577ddc0a56 24-May-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Revert "Add CTS tests to exercise starting activities from different contexts."" into oc-dev
3863595adee520dca6ed3e6a5bdc15a8daffcb4c 24-May-2017 Chad Brubaker <cbrubaker@google.com> Only test for camera intents if the device has FEATURE_CAMERA

Test: this
Bug: 38462030
Change-Id: I6aff2a1877576a8961cf6efce86ffcd51887a68f
ppsecurity/test-apps/EphemeralTestApp/EphemeralApp1/src/com/android/cts/ephemeralapp1/ClientTest.java
27cbe22faa387f1b70a5a63837b726f0bcda8c79 23-May-2017 Bryce Lee <brycelee@google.com> Revert "Add CTS tests to exercise starting activities from different contexts."

This reverts commit fb8969d3deeb1b57db49c1bdce458291855c3d35.

The original CL ag/2302373 was reverted

Reverted in tandem with: https://googleplex-android-review.git.corp.google.com/#/c/2302373/
Bug: 32625589
Bug: 62016780
Bug: 38503053
Change-Id: Ibec7afb347437ccaf9d8c07232e0cc90b9f54d8d
ervices/activityandwindowmanager/activitymanager/app/src/android/server/cts/tools/ActivityLauncher.java
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/StartActivityTests.java
ervices/activityandwindowmanager/util/src/android/server/cts/ActivityManagerTestBase.java
3ff6ed36ba55a2be85a5727840b542846f37c08b 17-Dec-2016 Joshua Lang <joshualang@google.com> DO NOT MERGE Add comment for false-negative test on emulator

Bug: 31773793
Change-Id: I3b71b9b729d3ee853a655a7c2cfe767a2d1b3d67
(cherry picked from commit 5ccab7bcdc31da73c2e460ebda8cbca6ee0db8e2)
ppsecurity/src/android/appsecurity/cts/DirectBootHostTest.java
a4a66ab87386e259dbfd01ea4371608ba6756556 23-May-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Fix PIP CTS test for TVs" into oc-dev
77f6e1274a3689fa3481e7b64f8609537ef0d0ee 23-May-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "CTS test for app manifest include/exclude rules." into oc-dev
8dd18a8e328eb29d505b6f6d64d2772357f34b99 23-May-2017 Wale Ogunwale <ogunwale@google.com> Made ActivityManagerTransitionSelectionTests @Presubmit

Bug: 38505794
Test: this
Change-Id: Ideea40538449eb67a0af4e5ff5eea042e4f0a929
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/ActivityManagerTransitionSelectionTests.java
908d302cc523dd423460ac736dc85d0f28feefe6 23-May-2017 Adam Bookatz <bookatz@google.com> Merge "Move testWifiUpload next to testWifiDownload" into oc-dev
5ffd7064eba6ef108da6c00815b58a5341dfc66b 22-May-2017 Johan Torås Halseth <johanth@google.com> CTS test for app manifest include/exclude rules.

Checks that data produced by the test app is restored according to the
rules in its manifest. Checks filesDir, databaseDir, rootDir,
externalDir and sharedPreferences.

Test: make cts -j40 && cts-tradefed run cts -m CtsBackupHostTestCases -t
android.cts.backup.FullbackupRulesHostSideTest
Bug: 20817292
Change-Id: Ie3183a2d64e283b4b1f7b854329622fad54a3eb0
ackup/AndroidTest.xml
ackup/fullbackupapp/src/android/cts/backup/fullbackupapp/FullbackupTest.java
ackup/includeexcludeapp/Android.mk
ackup/includeexcludeapp/AndroidManifest.xml
ackup/includeexcludeapp/res/xml/my_backup_rules.xml
ackup/includeexcludeapp/src/android/cts/backup/includeexcludeapp/IncludeExcludeTest.java
ackup/src/android/cts/backup/FullbackupRulesHostSideTest.java
ackup/src/android/cts/backup/NoBackupFolderHostSideTest.java
6348dc445f528b014ad79f9dd1c992a992a0a803 23-May-2017 Winson Chung <winsonc@google.com> Fix PIP CTS test for TVs

- When launching directly into the pinned stack, we don't notify task stack
change callbacks, which leaves TV in the initial state. Later when we
try and restart the activity, we only resize the stack if the state
changes, which then fails.

Bug: 38246863
Test: android.server.cts.ActivityManagerPinnedStackTests

Change-Id: I800060fa42555f3f3759eca36af04cf206cd9af8
ervices/activityandwindowmanager/activitymanager/app/src/android/server/cts/TestActivityWithSameAffinity.java
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/ActivityManagerPinnedStackTests.java
a0f62d28300d1f5ab9980a44751b93a7652a0a65 23-May-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Testing that invalid authorities are cleared on boot" into oc-dev
01d0f5026a598c0f2801d7df730f65a9f674347b 22-May-2017 Sang Shin Jung <sangshin@google.com> CTS test for Bug 34125463 CTS Test case is testPocCVE_2017_0579 (PoC executable CVE-2017-0579) Fixing conflicts Fixed a missing '}' and removed comments. Bug: 34125463
am: 490c85ab9c

Change-Id: I79c7eba050060c4ae3a06ea7c72fa332e0b957d3
6400c31531b223b1f0199d77f4fb856cd6c054ed 22-May-2017 Sang Shin Jung <sangshin@google.com> CTS test case for Bug 33353601 CTS test case is testPocCVE_2017_0462 (Poc executable: CVE-2017-0462) Fixing conflicts Moved this test case to Poc17_04.java Bug: 33353601
am: d9e9e9a8b7

Change-Id: Ie7d593df2d481a093dd6d362ca64c610880df52d
dc738ced1e3efff4258edab42afe44657bad4783 22-May-2017 Sang Shin Jung <sangshin@google.com> CTS test case for Bug 34325986 CTS test case: testPocCVE_2017_0580 Fixing conflicts Moved the test case to Poc17_04.java Removed whitespaces and printfs Bug: 34325986
am: 0dc7070726

Change-Id: I0145559cebb8787354d49015625cc7d4fb52fc35
490c85ab9c24b40ac091786a91de5158e7036a99 28-Apr-2017 Sang Shin Jung <sangshin@google.com> CTS test for Bug 34125463
CTS Test case is testPocCVE_2017_0579 (PoC executable CVE-2017-0579)
Fixing conflicts
Fixed a missing '}' and removed comments.
Bug: 34125463

Change-Id: Ia3d348c4226af37f44e1832e9e30a779ae8e8370
ecurity/AndroidTest.xml
ecurity/securityPatch/CVE-2017-0579/Android.mk
ecurity/securityPatch/CVE-2017-0579/poc.c
ecurity/src/android/security/cts/Poc17_06.java
d9e9e9a8b73440f57e02c2d670f46b5ad94d3ca0 29-Apr-2017 Sang Shin Jung <sangshin@google.com> CTS test case for Bug 33353601
CTS test case is testPocCVE_2017_0462 (Poc executable: CVE-2017-0462)
Fixing conflicts
Moved this test case to Poc17_04.java
Bug: 33353601

Change-Id: I03577fcaf0147b2afc3e8bd8162d3f6793c0dbb8
ecurity/AndroidTest.xml
ecurity/securityPatch/CVE-2017-0462/Android.mk
ecurity/securityPatch/CVE-2017-0462/poc.c
ecurity/src/android/security/cts/Poc17_04.java
0dc7070726b5facc71e0bd98e3c1e71b30f3d9f0 02-May-2017 Sang Shin Jung <sangshin@google.com> CTS test case for Bug 34325986
CTS test case: testPocCVE_2017_0580
Fixing conflicts
Moved the test case to Poc17_04.java
Removed whitespaces and printfs
Bug: 34325986

Change-Id: I3d2565722604abbbd4b70d48bd611c42c700a94d
ecurity/AndroidTest.xml
ecurity/securityPatch/CVE-2017-0580/Android.mk
ecurity/securityPatch/CVE-2017-0580/poc.c
ecurity/src/android/security/cts/Poc17_04.java
609b6013467ece8d39ac687b5129d5bfaad94762 22-May-2017 Sang Shin Jung <sangshin@google.com> CTS Test for Bug 31796345. CTS Test case is CVE-2017-0451 (testPocCVE-2017-0451). Fixing conflicts Moved this to Poc17_02.java Removed whitespaces and printfs in poc.c Added a missing line Bug: 31796345 Change-Id: Ie814100db13112af84758c6bb2e5b439e31f45f9
am: 9f340f698c

Change-Id: If4cc1fdc74153931974ee36990769892c34cd7eb
7b6fa479263e265a0cb669120a27280ac2028f21 22-May-2017 Sang Shin Jung <sangshin@google.com> CTS test for Bug 33452365 CTS Test case is testPocBug_33452365 Fixing conflicts Fixed '}' at the end of poc.c Removed whitespaces and printfs Bug: 33452365
am: 7f2dd88586

Change-Id: I9136aaa0fc5afcac787ba3c7f27a66c472edf536
29b94f7df97e82fcc2e60123e1a84511d21b576c 22-May-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Fix CTS test for protobufferized PackageManager dumpsys" into oc-dev
3fc9ccfa923d858017bac3df4942bd1d7b81e55b 22-May-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Revert "Disable some WM cts presubmit tests."" into oc-dev
591cdc60d31a21c3a52b12481c8a8e8edc92dc4d 22-May-2017 Bryce Lee <brycelee@google.com> Merge "Add CTS tests to exercise starting activities from different contexts." into oc-dev
8562f11c08e1d6af7a6ff47539fe6061cf1a2d67 22-May-2017 Wale Ogunwale <ogunwale@google.com> Revert "Disable some WM cts presubmit tests."

This reverts commit 02c63310a2bbf1bd95351e24bc6845a4b12dd6cd.

Problem was fixed by ag/2290067

Change-Id: If193cf26388074ea0eec0090453e3ab4b8986aa6
Fixes: 38445524
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/ActivityManagerActivityVisibilityTests.java
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/ActivityManagerAppConfigurationTests.java
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/ActivityManagerConfigChangeTests.java
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/ActivityManagerDisplayTests.java
9f340f698ccc9f2d0325d05558a8385bc9327375 22-Apr-2017 Sang Shin Jung <sangshin@google.com> CTS Test for Bug 31796345.
CTS Test case is CVE-2017-0451 (testPocCVE-2017-0451).
Fixing conflicts
Moved this to Poc17_02.java
Removed whitespaces and printfs in poc.c
Added a missing line
Bug: 31796345
Change-Id: Ie814100db13112af84758c6bb2e5b439e31f45f9
ecurity/AndroidTest.xml
ecurity/securityPatch/CVE-2017-0451/Android.mk
ecurity/securityPatch/CVE-2017-0451/poc.c
ecurity/src/android/security/cts/Poc17_02.java
7f2dd8858605c78d220d38a173c3228faf9c3656 10-May-2017 Sang Shin Jung <sangshin@google.com> CTS test for Bug 33452365
CTS Test case is testPocBug_33452365
Fixing conflicts
Fixed '}' at the end of poc.c
Removed whitespaces and printfs
Bug: 33452365

Change-Id: I4b088689818eebab14fc680d50be135910a3c304
ecurity/AndroidTest.xml
ecurity/securityPatch/Bug-33452365/Android.mk
ecurity/securityPatch/Bug-33452365/poc.c
ecurity/src/android/security/cts/Poc17_06.java
186c0c1aad3217488d3e8bac8bd63ebbb726cfde 20-May-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Fixing wrong AM call to check split screen support." into oc-dev
ae5d67b1a416e121be5fe9bfb5f8a2241c84f33e 17-May-2017 Suprabh Shukla <suprabh@google.com> Testing that invalid authorities are cleared on boot

This test checks that any invalid data written by calls to
setSyncAutomatically is dropped on reboot.

Test: cts-tradefed run cts-dev -m CtsSyncContentHostTestCases

Bug: 35028827
Change-Id: Ide4fd1461cbbcc6b4e5012f178baf80474e95efa
ontent/src/android/content/cts/InvalidSyncAuthoritiesHostTest.java
ontent/test-apps/CtsSyncInvalidAccountAuthorityTestCases/Android.mk
ontent/test-apps/CtsSyncInvalidAccountAuthorityTestCases/AndroidManifest.xml
ontent/test-apps/CtsSyncInvalidAccountAuthorityTestCases/res/xml/authenticator.xml
ontent/test-apps/CtsSyncInvalidAccountAuthorityTestCases/src/android/content/sync/cts/InvalidSyncAuthoritiesDeviceTest.java
ontent/test-apps/CtsSyncInvalidAccountAuthorityTestCases/src/android/content/sync/cts/StubAuthenticator.java
ontent/test-apps/CtsSyncInvalidAccountAuthorityTestCases/src/android/content/sync/cts/StubProvider.java
48d2e3553be902fb94ddd43fec92fb2f75320b37 20-May-2017 Winson Chung <winsonc@google.com> Fixing wrong AM call to check split screen support.

Bug: 38246863
Test: CrossAppDragAndDropTests
Change-Id: I963ee8b540ba303f93f5c5b2bacd7760bde7cc24
ervices/activityandwindowmanager/util/src/android/server/cts/ActivityManagerTestBase.java
ervices/activityandwindowmanager/windowmanager/src/android/server/cts/CrossAppDragAndDropTests.java
a282f7d9673648947c41df7a16e9ebc299ce786b 19-May-2017 Netta Peterbursky <nettap@google.com> Fix CTS test for protobufferized PackageManager dumpsys

Bug: 38380312
Test: cts-tradefed run cts-dev -m CtsIncidentHostTestCase -t com.android.server.cts.PackageIncidentTest
Change-Id: I07d5844061888c7ba901333094955feb11ed05a6
ncident/src/com/android/server/cts/PackageIncidentTest.java
47dd7cd325f32598c839e0e73c69834630fceb80 19-May-2017 Bookatz <bookatz@google.com> Move testWifiUpload next to testWifiDownload

The CPU frequency tests were recently added between testWifiDownload and
testWifiUpload. Logically, they should be adjacent. But this apparantly
isn't just an asthetic issue: currently, the CPU frequency tests fail,
and this seems to cause the testWifiUpload, which is called immediately
afterwards, to fail too (due to it not entering a background proc
state). Moving testWifiUpload will make it independent of the cpu
frequency tests failing.

Bug: 38397188
Test: run cts-dev -m CtsIncidentHostTestCases -t com.android.server.cts.BatteryStatsValidationTest
Change-Id: I32a18efcd7409237c3a15b58b9821ce617991f34
ncident/src/com/android/server/cts/BatteryStatsValidationTest.java
17694e71cee5b7366a262fe6d41f97269b52712c 19-May-2017 Wale Ogunwale <ogunwale@google.com> Merge "Disable some WM cts presubmit tests." into oc-dev
b5ac30ceaa35635845a5259ee0b8f06d0f0973a0 19-May-2017 Sudheer Shanka <sudheersai@google.com> Merge "Don't fail the test if the required proc file is not present." into oc-dev
941d562cac80e952a56184b97c25a2c8b80db131 19-May-2017 Adam Bookatz <bookatz@google.com> Merge "Add aggregated partial wakelock time per uid" into oc-dev
02c63310a2bbf1bd95351e24bc6845a4b12dd6cd 19-May-2017 Wale Ogunwale <ogunwale@google.com> Disable some WM cts presubmit tests.

Not sure why this started failing. Disabling for now until we figure-out
what if going on.

Bug: 38445524
Test: this
Change-Id: Id32690669355401ce3a6e3a5ca721ea1ec494b4c
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/ActivityManagerActivityVisibilityTests.java
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/ActivityManagerAppConfigurationTests.java
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/ActivityManagerConfigChangeTests.java
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/ActivityManagerDisplayTests.java
f1bbe96437d21de37485ffd5c2f75149d9138a9d 19-May-2017 Sudheer Shanka <sudheersai@google.com> Don't fail the test if the required proc file is not present.

Some of the tests in BatteryStatsValidationTest class depend on
the availability of /proc/uid_time_in_state file. If that proc file is
not preset, just skip the test instead of failing.

Bug: 38411186
Test: cts-tradefed run singleCommand cts-dev -m CtsIncidentHostTestCases -t \
com.android.server.cts.BatteryStatsValidationTest
Change-Id: I7f457577b20d1339e66e21f8bc5fa7485d31846b
ncident/src/com/android/server/cts/BatteryStatsValidationTest.java
ncident/src/com/android/server/cts/CpuFreqDataHelper.java
e061774bf655d45adbd7efcb849a50dee5ba72d2 18-May-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Add test for files in no_backup folder." into oc-dev
140f2fed788faa7c648c95d32b3222dd75a4b9e2 18-May-2017 Bryce Lee <brycelee@google.com> Merge "Fix testLegacyNonFullscreenActivityPermitted." into oc-dev
b8247720aeb50fc3d9249cc08b02894a67822c17 17-May-2017 Johan Torås Halseth <johanth@google.com> Add test for files in no_backup folder.

Ensures that files put into the getNoBackupFilesDir() is not restored
after doing backup/restore, while files outside the folder are.

Test: make cts -j40 && cts-tradefed run cts -m CtsBackupHostTestCases -t
android.cts.backup.NoBackupFolderHostSideTest

Bug: 20088872
Change-Id: Ib7ee6907562051ce4aecae76cefb145315fd6b47
ackup/AndroidTest.xml
ackup/fullbackupapp/Android.mk
ackup/fullbackupapp/AndroidManifest.xml
ackup/fullbackupapp/src/android/cts/backup/fullbackupapp/FullbackupTest.java
ackup/src/android/backup/cts/BackupRestoreHostSideTest.java
ackup/src/android/cts/backup/BackupRestoreHostSideTest.java
ackup/src/android/cts/backup/BaseBackupHostSideTest.java
ackup/src/android/cts/backup/NoBackupFolderHostSideTest.java
a8794cb12d02831a6202eefd2f2fa152ca72ebc8 18-May-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Update golden images for ThemeHostTest" into oc-dev
8487f774b657166b8695d1962cb0289c4ac40bc1 18-May-2017 Bryce Lee <brycelee@google.com> Fix testLegacyNonFullscreenActivityPermitted.

The activity used in this test is shared across packages. We must
use the normalized component name when launching the activity.

This change also renames the test to
testNonFullscreenActivityPermitted.

Change-Id: I9337a1e4f45706fb069a21b0617ea927e91202e0
Fixes: 38383848
Test: cts/hostsidetests/services/activityandwindowmanager/util/run-test CtsServicesHostTestCases android.server.cts.ActivityManagerAppConfigurationTests#testNonFullscreenActivityPermitted
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/ActivityManagerAppConfigurationTests.java
4722e6bd4a0a3cc112b9b6e3675d8b9d1ed9284d 18-May-2017 Aurimas Liutikas <aurimas@google.com> Update golden images for ThemeHostTest

Used Android Emulator OPP2.170420.012 to generate these images.

Bug: 37748362
Test: None
Change-Id: Ia6f97eefe2438bee819df66b421a214878d509d5
heme/assets/26/360dpi.zip
heme/assets/26/420dpi.zip
heme/assets/26/560dpi.zip
heme/assets/26/hdpi.zip
heme/assets/26/mdpi.zip
heme/assets/26/xhdpi.zip
heme/assets/26/xxhdpi.zip
heme/assets/26/xxxhdpi.zip
heme/assets/O/360dpi.zip
heme/assets/O/420dpi.zip
heme/assets/O/560dpi.zip
heme/assets/O/hdpi.zip
heme/assets/O/mdpi.zip
heme/assets/O/xhdpi.zip
heme/assets/O/xxhdpi.zip
heme/assets/O/xxxhdpi.zip
637b1d5812753496fdc95378c3eae32e4768e221 18-May-2017 Bryce Lee <brycelee@google.com> Correct checking whether activity name contains package.

There are cases where the activity name is null, which leads to a NPE
when checking for the presence of the package. This CL adds the
additional null pointer check.

Change-Id: I5c44eaaa9337a4012ce3be4f50726b035f1f4162
Fixes: 38384921
Test: cts/hostsidetests/services/activityandwindowmanager/util/run-test CtsServicesHostTestCases android.server.cts.ActivityManagerDockedStackTests#testLaunchToSide
ervices/activityandwindowmanager/util/src/android/server/cts/ActivityManagerTestBase.java
a63505c98e5b70574d317542a7d4df93af5e0748 18-May-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "host side MediaBitstreamsTest" into oc-dev
97f9abd54e3c2a444c00ee2952b067da0c829350 17-May-2017 Sang Shin Jung <sangshin@google.com> Fixed CTS test case for Bug 34328139 Bug: 34328139
am: 06c86130c9

Change-Id: I886b0e9c019bee05f0002fe25741ea3933da37a8
e389b8b5c1d9007d54611e39e1fa2de21f86dead 17-May-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Another attempt to deflake testScreenCaptureDisabled" into oc-dev
06c86130c9a07a19013ec55b77e380d9f82a5466 17-May-2017 Sang Shin Jung <sangshin@google.com> Fixed CTS test case for Bug 34328139
Bug: 34328139

Change-Id: I3c5ce1b09f387ecfe938e87d72d9556e1012292c
ecurity/src/android/security/cts/Poc17_06.java
6000acf6f62004f620fe30876c624dce03cfc2fe 14-Mar-2017 Robert Shih <robertshih@google.com> host side MediaBitstreamsTest

Bug: 30268664
Test: run cts everything -m CtsMediaBitstreamsTestCases
Change-Id: Iae347d44a27bcc2290dd93f1db6638011b884ef9
edia/bitstreams/Android.mk
edia/bitstreams/AndroidTest.xml
edia/bitstreams/app/Android.mk
edia/bitstreams/app/AndroidManifest.xml
edia/bitstreams/app/src/android/media/cts/bitstreams/app/MediaBitstreamsDeviceSideTest.java
edia/bitstreams/common/Android.mk
edia/bitstreams/common/src/android/media/cts/bitstreams/MediaBitstreams.java
edia/bitstreams/src/android/media/cts/bitstreams/MediaBitstreamsTest.java
edia/bitstreams/src/android/media/cts/bitstreams/ReportProcessor.java
edia/bitstreams/src/android/media/cts/bitstreams/SupportedBitstreamsProcessor.java
39a7d6525c20c251c5092559d14008cec3772f2e 17-May-2017 Sudheer Shanka <sudheersai@google.com> Merge "Add cts for validating uid times per cpu freq in dump." into oc-dev
a1a828c071863ae4eeafe9609e3f54e05b919d23 12-May-2017 Bookatz <bookatz@google.com> Add aggregated partial wakelock time per uid

Bug: 38198272
Test: cts-tradefed run cts-dev -m CtsDumpsysHostTestCases -t android.dumpsys.cts.BatteryStatsDumpsysTest
Change-Id: I4a372572c8f5fdce99619661fb6f9f5bdd5032d2
umpsys/src/android/dumpsys/cts/BatteryStatsDumpsysTest.java
bca6428df05eca8b45d9eccd08825c7b6056f07e 16-May-2017 Sang Shin Jung <sangshin@google.com> CTS test case for Bug 34328139 CTS test case is testPocBug_34328139 Bug: 34328139
am: 3441437b22

Change-Id: I5c0dc58e40efb1d725ef1100e215ce3d5d239dc0
3441437b221a078179c56a97222c227f2751cd34 10-May-2017 Sang Shin Jung <sangshin@google.com> CTS test case for Bug 34328139
CTS test case is testPocBug_34328139
Bug: 34328139

Change-Id: I323cdd1810368b624e19a8930c82a97c33fce546
ecurity/AndroidTest.xml
ecurity/securityPatch/Bug-34328139/Android.mk
ecurity/securityPatch/Bug-34328139/local_poc.h
ecurity/securityPatch/Bug-34328139/poc.c
ecurity/src/android/security/cts/Poc17_06.java
034e7166a481d0b5b48ce99e02b26405cd20bfc2 16-May-2017 Huan Ren <huanr@google.com> Merge "CTS: fix flaky ActivityManagerActivityVisibilityTests" into oc-dev
5b84fa6d15e85b78c12c5d3023013e2be6835d50 16-May-2017 Tony Mak <tonymak@google.com> Another attempt to deflake testScreenCaptureDisabled

setScreenCaptureDisabled offload things to main thread handler.
So introducing a retry loop and hopefuly deflake the test.

Test: cts-tradefed run cts-dev --module DevicePolicyManager --test com.android.cts.devicepolicy.MixedManagedProfileOwnerTest#testScreenCaptureDisabled
Test: cts-tradefed run cts-dev --module DevicePolicyManager --test com.android.cts.devicepolicy.MixedManagedProfileOwnerTest#testScreenCaptureDisabled_allowedPrimaryUser

Fix: 38302396

Change-Id: If1986cf4ac1d108b5374be3186eb0d6987e44eb6
evicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/ScreenCaptureDisabledTest.java
3d1239ab568d5f11aab4ee5f9a92828fba7ff654 15-May-2017 Sudheer Shanka <sudheersai@google.com> Add cts for validating uid times per cpu freq in dump.

Bug: 34133340
Test: cts-tradefed run singleCommand cts-dev -m ctsIncidentHostTestCases -t \
com.android.server.cts.BatteryStatsValidationTest
Change-Id: I74211cae9d3b64bd03ff97d75f53355163dd027f
ncident/src/com/android/server/cts/BatteryStatsValidationTest.java
ncident/src/com/android/server/cts/CpuFreqDataHelper.java
5b9871fe4d7dc533aa1fbdb896bda450eec1406b 16-May-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Support recursive static shared lib dependency - CTS" into oc-dev
b40ed11d8842173b51388a245af59e1637f52eba 15-May-2017 Svet Ganov <svetoslavganov@google.com> Support recursive static shared lib dependency - CTS

Test: Updated the static shared lib CTS tests to verify that
All static shared lib CTS tests pass

bug:35359862

Change-Id: Ie71be9e2e7cdc43caf9ccb84ba613d318dc72e50
s/src/android/os/cts/StaticSharedLibsHostTests.java
s/test-apps/StaticSharedLibConsumerApp1/Android.mk
s/test-apps/StaticSharedLibConsumerApp1/src/android/os/lib/consumer1/UseSharedLibraryTest.java
s/test-apps/StaticSharedLibProviderApp1/Android.mk
s/test-apps/StaticSharedLibProviderApp1/AndroidManifest.xml
s/test-apps/StaticSharedLibProviderApp1/src/android/os/lib/provider/StaticSharedLib.java
s/test-apps/StaticSharedLibProviderAppRecursive/Android.mk
s/test-apps/StaticSharedLibProviderAppRecursive/AndroidManifest.xml
s/test-apps/StaticSharedLibProviderAppRecursive/res/values/integers.xml
s/test-apps/StaticSharedLibProviderAppRecursive/src/android/os/lib/provider/recursive/StaticSharedLibRecursive.java
f488c2751374dba38d8a3c72f3b7ec78c3bfa8cc 13-May-2017 Huan Ren <huanr@google.com> CTS: fix flaky ActivityManagerActivityVisibilityTests

The flakiness comes from waitForHomeActivityVisible which only waits for
the change of activity state while the test checks the visibility of
both activity and window.

Fix it by waiting with waitForValidState.

BUG: 37465076
Test: run cts -s emulator-5554 -m CtsServicesHostTestCases -t
android.server.cts.ActivityManagerActivityVisibilityTests

Change-Id: I08298f10944ee4cb8ea84632639f27cf77ee94df
ervices/activityandwindowmanager/util/src/android/server/cts/ActivityAndWindowManagersState.java
d3ae9da7c01b8d021bce09f2b12dd0b2ec023351 15-May-2017 Sudheer Shanka <sudheersai@google.com> Merge "Add cts to test power-save-except-idle whitelist is correctly used." into oc-dev
feacd831b038f96c6ac44824954cf4f59b0e59cb 14-May-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Make sync adapter account tests more robust" into oc-dev
7658e5f887808875723c8132b7e07b5d098c31e4 14-May-2017 Svet Ganov <svetoslavganov@google.com> Make sync adapter account tests more robust

Increased the timeout to take account for more loaded
device in the test infra

Whitelisted the sync adapter app to run in the background
and to access data in the background

Skip the tests on devices with no notifications

Test: these are the tests and they pass

bug:36215841

Change-Id: I56ef4b82a88f0c11735ce6d6a078398c1210f9ee
ontent/test-apps/CtsSyncAccountAccessOtherCertTests/Android.mk
ontent/test-apps/CtsSyncAccountAccessOtherCertTests/src/com/android/cts/content/CtsSyncAccountAccessOtherCertTestCases.java
ontent/test-apps/CtsSyncAccountAccessSameCertTests/Android.mk
ontent/test-apps/CtsSyncAccountAccessSameCertTests/src/com/android/cts/content/CtsSyncAccountAccessSameCertTestCases.java
76b7c8e503966537c9d5a4ea5894be92a3198532 12-May-2017 Bookatz <bookatz@google.com> Disable batterystats background tests for TVs

Devices that are just TVs are not expected to have a proper battery, in
which case they may not track batterystats properly.

Bug: 38242066
Test: run cts-dev -m CtsIncidentHostTestCases -t com.android.server.cts.BatteryStatsValidationTest

Change-Id: I66745f20c90f413866103cb6b855bf07d5c57fd7
ncident/src/com/android/server/cts/BatteryStatsValidationTest.java
a7f048aad905b44af44c079552bbf4b4174a6bc7 12-May-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Fix CTS test for protobufferized PackageManager dumpsys" into oc-dev
0e2afd2418fe21588469c54841f5a994996864a6 12-May-2017 Mark Salyzyn <salyzyn@google.com> Merge "resolve merge conflicts of c76a85e0c1 to nougat-mr1-cts-dev" into nougat-mr1-cts-dev am: 66a4632493 am: 5aabfd8b69 am: ebb00b2fde
am: 7c2c31adb2

Change-Id: Ib096e180d9c73894116cf4a3d0ff44b35b258c91
7c2c31adb29e86cd19282547abdc6760ac72cdee 12-May-2017 Mark Salyzyn <salyzyn@google.com> Merge "resolve merge conflicts of c76a85e0c1 to nougat-mr1-cts-dev" into nougat-mr1-cts-dev am: 66a4632493 am: 5aabfd8b69
am: ebb00b2fde

Change-Id: I35444ada9c300df12f0e0ae6b8eb45683c950af5
5aabfd8b69f60fb664eab60bff947af681d9270d 12-May-2017 Mark Salyzyn <salyzyn@google.com> Merge "resolve merge conflicts of c76a85e0c1 to nougat-mr1-cts-dev" into nougat-mr1-cts-dev
am: 66a4632493

Change-Id: Ied0384360fa4d62bc95bae4e2610066d7de2f4c5
b58eda0630d385ed6c8f8eb5a7ed1371750df74f 12-May-2017 Mark Salyzyn <salyzyn@google.com> resolve merge conflicts of c76a85e0c1 to nougat-mr1-cts-dev

Test: I solemnly swear I tested this conflict resolution.
Change-Id: Ia8e79da9e339bde730d2bc9582a39cfdce8950c2
5d893bff4579adcced5b38010572be9f50a1f1e7 12-May-2017 Romain Fliedel <rfliedel@freebox.fr> Merge "fix getNodeTimed retry in BasePermissionsTest" into nougat-cts-dev am: c76a85e0c1
am: 1aba6de41a

Change-Id: I3b4cf2669fc4297a513a96aece4959d7e2f3b5e6
1aba6de41a8fc96dc32c015ec5b102284adff9ae 12-May-2017 Romain Fliedel <rfliedel@freebox.fr> Merge "fix getNodeTimed retry in BasePermissionsTest" into nougat-cts-dev
am: c76a85e0c1

Change-Id: I4fc130d19dcbfbd63fb50eab733932d41446090e
c76a85e0c1416aaa1cb79f5e522a4fbd44b325ca 12-May-2017 Treehugger Robot <treehugger-gerrit@google.com> Merge "fix getNodeTimed retry in BasePermissionsTest" into nougat-cts-dev
76c433d6cd0f0f018229c67f73071051579421b8 12-May-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Test display metrics after enter/exit PiP" into oc-dev
1676eec97366aa02f00ef5c7ed55d23df0558cd2 12-May-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "DynamicConfig for host side MediaBitstreamsTest" into oc-dev
c61deb56839e59f0c76aece99bbe21f3ffe007a5 12-May-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Batterystats CTS test: background/foreground GPS" into oc-dev
73d77f23c160d05711601e7edb81f3e7eb5e3bbb 05-May-2017 Andrii Kulian <akulian@google.com> Test display metrics after enter/exit PiP

Bug: 37722714
Test: android.server.cts.ActivityManagerPinnedStackTests
Test: #testDisplayMetricsPinUnpin
Change-Id: If61035a3ab58a2b90a8b2a0bd243f040e7d17134
ervices/activityandwindowmanager/activitymanager/app/src/android/server/cts/AbstractLifecycleLogActivity.java
ervices/activityandwindowmanager/activitymanager/app/src/android/server/cts/PipActivity.java
ervices/activityandwindowmanager/activitymanager/app/src/android/server/cts/TestActivity.java
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/ActivityManagerPinnedStackTests.java
913b333163917366b2366092eabb868211ab15c8 11-May-2017 Bryce Lee <brycelee@google.com> Merge "Modify non fullscreen orientation tests to permit under SDK 26." into oc-dev
0303d37733235ed495834d1615b699a6c99c08c0 11-May-2017 Bryce Lee <brycelee@google.com> Modify non fullscreen orientation tests to permit under SDK 26.

The restriction will be applied in SDK 27 instead. This changelist
updates the associated tests to reflect that.

Bug: 38221413
Test: cts/hostsidetests/services/activityandwindowmanager/util/run-test CtsServicesHostTestCases android.server.cts.ActivityManagerAppConfigurationTests#testNonfullscreenAppOrientationRequests
Test: cts/hostsidetests/services/activityandwindowmanager/util/run-test CtsServicesHostTestCases android.server.cts.ActivityManagerAppConfigurationTests#testLegacyNonFullscreenActivityPermitted
Change-Id: I0599026d11fc54a0670dcee7f7b095de92a5f562
ervices/activityandwindowmanager/activitymanager/AndroidTest.xml
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/ActivityManagerAppConfigurationTests.java
ervices/activityandwindowmanager/activitymanager/translucentappsdk25/Android.mk
ervices/activityandwindowmanager/activitymanager/translucentappsdk25/AndroidManifest.xml
8a6799438fd090c6796510a33a5fd686120d3adf 20-Apr-2017 Robert Shih <robertshih@google.com> DynamicConfig for host side MediaBitstreamsTest

DynamicConfig.xml is a manifest listing relative bitstreams path
and corresponding media formats.

This manifest can be generated by running
android.media.cts.bitstreams.MediaBitstreamsTest#testGetBistreamsFormats
This test pushes all bitstreams on to the device, and serializes the
device reported formats to the file CtsMediaBitstreamsTestCases.config
inside the android-cts/testcases directory.

Bug: 30268664
Test: run cts everything -m CtsMediaBitstreamsTestCases
Change-Id: If42df9279507f8cf01df8b9db41b451dc515ec16
edia/bitstreams/DynamicConfig.xml
801c1e4d7a34bd21d22a8302f49ab969d74aa688 11-May-2017 Winson Chung <winsonc@google.com> Add test to ensure devices supporting MW are larger than the min task size.

Bug: 27620977
Test: android.server.cts.ActivityManagerPinnedStackTests
Test: android.server.cts.ActivityManagerDockedStackTests
Test: #testMinimumDeviceSize
Change-Id: I47b893d2ceaf183e2390ab3c51cb85d50297cf76
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/ActivityManagerDockedStackTests.java
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/ActivityManagerPinnedStackTests.java
ervices/activityandwindowmanager/util/src/android/server/cts/ActivityAndWindowManagersState.java
206d14f1bac3b0c3e94356984bf47370995d46a1 27-Apr-2017 Winson Chung <winsonc@google.com> Removing IME cts test.

- We can't currently rely on the IME to handle the signals
to show, so this test does not guarantee that the PIP will
actually work with the IME.

Bug: 37566959
Test: N/a, removing test
Change-Id: I04ea4998ae6c23cbdc9cfcd9cd9f2ff9ca4ab0c6
ervices/activityandwindowmanager/activitymanager/app/AndroidManifest.xml
ervices/activityandwindowmanager/activitymanager/app/src/android/server/cts/LaunchImeWithPipActivity.java
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/ActivityManagerPinnedStackTests.java
8328f100113860d941e50f366d588f3a2a14912d 04-May-2017 Bookatz <bookatz@google.com> Batterystats CTS test: background/foreground GPS

Performs GPS location request in both foreground and
background processes and ensures that the counts are incremented
correctly.

Change-Id: I444a35427639b13ede92c31312365726137b127d
Fixes: 35673525
Test: run cts-dev -m CtsIncidentHostTestCases -t com.android.server.cts.BatteryStatsValidationTest#testGpsUpdates
ncident/apps/batterystatsapp/src/com/android/server/cts/device/batterystats/BatteryStatsBgVsFgActions.java
ncident/src/com/android/server/cts/BatteryStatsValidationTest.java
5c23ea398d48cd28ec00965f7495f4dda459174d 10-May-2017 Tina Zhou <tinazh@google.com> Merge "DO NOT MERGE: Add mdpi and hdpi assets for theme cts." into nougat-cts-dev
74dbf5f82fa48665abb958f5386af5b7f4425fa0 10-May-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Add missing intent filter action to KeyValueBackupRandomDataActivity" into oc-dev
38f9eafdbfbe389820f813c58f2df853cbb1c156 10-May-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Check for isDeviceLocked in onDismissSucceeded" into oc-dev
66dfeae8aa2cc0334384a023908f93055bd26767 10-May-2017 Bryce Lee <brycelee@google.com> Merge "Additional CTS tests to exercise non-fullscreen activity orientation." into oc-dev
9592b477a399b14fce7424a7e6af41859602649f 10-May-2017 Bryan Mawhinney <bryanmawhinney@google.com> Add missing intent filter action to KeyValueBackupRandomDataActivity

Bug: 38183611
Test: cts-tradefed run cts -m CtsBackupHostTestCases
Change-Id: I36a237cc71d5003eb9d10bf6654d6683eebb2277
ackup/app/AndroidManifest.xml
c6c0d3cf49a6050ed64a10d79a985bf5d4cf2e3e 09-May-2017 Hou-Hsun_Lee <Hou-Hsun_Lee@asus.com> DO NOT MERGE: Update the hdpi resource files

Change 361692 fix the CTS android.theme.cts.ThemeHostTest fail
caused by the 2017#4 CVE-2016-10244.

However, the hdpi device need not only the aboved fix change but
updating resource file to PASS the test case.

Bug: 36773190

Change-Id: Ie81b90965f000559cd7f246acdf34a3df7564695
Signed-off-by: Hou-Hsun_Lee <Hou-Hsun_Lee@asus.com>
heme/assets/24/hdpi.zip
fb8969d3deeb1b57db49c1bdce458291855c3d35 03-May-2017 Bryce Lee <brycelee@google.com> Add CTS tests to exercise starting activities from different contexts.

These tests ensure that you can only start an activity from another
activity's context.

Change-Id: I8f3c1fb4e36c5951bc7931c5ea8e292679f3ab1f
Test: cts/hostsidetests/services/activityandwindowmanager/util/run-test CtsServicesHostTestCases android.server.cts.StartActivityTests
Bug: 32625589
ervices/activityandwindowmanager/activitymanager/app/src/android/server/cts/tools/ActivityLauncher.java
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/StartActivityTests.java
ervices/activityandwindowmanager/util/src/android/server/cts/ActivityManagerTestBase.java
2cd79dce85748d53cf40e2f0a36ca48cc1481505 28-Apr-2017 Bryce Lee <brycelee@google.com> Additional CTS tests to exercise non-fullscreen activity orientation.

These tests ensure that only legacy (SDK <= 25) applications are
allowed to create activities that are non-fullscreen, yet specify a
screen orientation. A test has also been added in preparation for
upcoming changes to suppress unsupported orientation changes in
activities.

Bug: 33483680
Test: cts/hostsidetests/services/activityandwindowmanager/util/run-test CtsServicesHostTestCases android.server.cts.ActivityManagerAppConfigurationTests#testNonFullscreenActivityProhibited
Test: cts/hostsidetests/services/activityandwindowmanager/util/run-test CtsServicesHostTestCases android.server.cts.ActivityManagerAppConfigurationTests#testLegacyNonFullscreenActivityPermitted
Test: cts/hostsidetests/services/activityandwindowmanager/util/run-test CtsServicesHostTestCases android.server.cts.ActivityManagerAppConfigurationTests#testNonfullscreenAppOrientationRequests

Change-Id: I60fe87301da2d1b735a8e5ae45573638b3413241
ervices/activityandwindowmanager/activitymanager/AndroidTest.xml
ervices/activityandwindowmanager/activitymanager/app/src/android/server/cts/AbstractLifecycleLogActivity.java
ervices/activityandwindowmanager/activitymanager/app/src/android/server/cts/LandscapeOrientationActivity.java
ervices/activityandwindowmanager/activitymanager/app/src/android/server/cts/PortraitOrientationActivity.java
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/ActivityManagerAppConfigurationTests.java
ervices/activityandwindowmanager/activitymanager/translucentapp/Android.mk
ervices/activityandwindowmanager/activitymanager/translucentapp/AndroidManifest.xml
ervices/activityandwindowmanager/activitymanager/translucentapp/src/android/server/translucentapp/TranslucentLandscapeActivity.java
ervices/activityandwindowmanager/activitymanager/translucentappsdk25/Android.mk
ervices/activityandwindowmanager/activitymanager/translucentappsdk25/AndroidManifest.xml
ervices/activityandwindowmanager/util/src/android/server/cts/ActivityManagerTestBase.java
90cc207789384bf1af22b05b36b9fe341527db16 09-May-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Added CreateUsersNoAppCrashesTest for basic multi-user testing" into oc-dev
9a78959f0a7c02c416a43a5c5f6352bc2b2629a5 09-May-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Add BLE results counter to batterystats" into oc-dev
61d6017f4dce1538bc472922bf40d8194219bebc 09-May-2017 Jorim Jaggi <jjaggi@google.com> Check for isDeviceLocked in onDismissSucceeded

Such that we catch a flaky test due to race conditions.

Test: KeyguardLockedTest
Bug: 38040006
Change-Id: I1138af33b0a8983358eba46408634e7399c76268
ervices/activityandwindowmanager/activitymanager/app/src/android/server/cts/BroadcastReceiverActivity.java
ervices/activityandwindowmanager/activitymanager/app/src/android/server/cts/DismissKeyguardMethodActivity.java
ervices/activityandwindowmanager/activitymanager/app/src/android/server/cts/KeyguardDismissLoggerCallback.java
ervices/activityandwindowmanager/activitymanager/app/src/android/server/cts/TurnScreenOnDismissKeyguardActivity.java
51dfcc1e1663938ae1e2f0ba2466510f7defe254 05-May-2017 Felipe Leme <felipeal@google.com> Improve how autofill service is enabled / disabled.

On Autofill tests, uses a latch to wait for settings update.
On Device Policy tests, uses the primary user since it's a cloned settings.

Fixes: 37659751
Bug: 37566627
Bug: 38033559

Test: cts-tradefed run commandAndExit cts-dev -m CtsAutoFillServiceTestCases
Test: cts-tradefed run commandAndExit cts-dev -m CtsDevicePolicyManagerTestCases -t com.android.cts.devicepolicy.MixedDeviceOwnerTest#testDisallowAutofill_allowed
Test: cts-tradefed run commandAndExit cts-dev -m CtsDevicePolicyManagerTestCases -t com.android.cts.devicepolicy.MixedProfileOwnerTest#testDisallowAutofill_allowed
Test: cts-tradefed run commandAndExit cts-dev -m CtsDevicePolicyManagerTestCases -t com.android.cts.devicepolicy.MixedManagedProfileOwnerTest#testDisallowAutofill_allowed

Change-Id: I05855cfb517c24f7aa8f0a1d409f96eaf86ec955
evicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/AutofillRestrictionsTest.java
e6db67d0423b18a55dff5ba63eb019c974fa9884 09-May-2017 Winson Chung <winsonc@google.com> Merge "Test MW callbacks are made when launching and dismissing adjacent task." into oc-dev
43ffee060e263b380679b56e23a8ad294f22e4cd 08-May-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Added actual (unpooled) wakelock times." into oc-dev
c090281c73d2da637d3ceb8727dc20e4e9259219 08-May-2017 Winson Chung <winsonc@google.com> Test MW callbacks are made when launching and dismissing adjacent task.

Bug: 38028679
Test: android.server.cts.ActivityManagerDockedStackTests
Test: #testLaunchToSideMultiWindowCallbacks
Change-Id: Ia027efface8a8581c7293238b2f9665dbe96e6e1
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/ActivityManagerDockedStackTests.java
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/ActivityManagerPinnedStackTests.java
ded5f60d89e67f0ec1f8eb244f6c90a6f710dbee 08-May-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge changes I829a79fe,Idfdb1bea into oc-dev

* changes:
Wifi scan CTS test more tolerant of other scans
Whitelist CTS test to allow bg wifi scans
dfb6db295f9ff51f94f0fac15c1440bd7da20b10 02-May-2017 Bookatz <bookatz@google.com> Wifi scan CTS test more tolerant of other scans

Wifi scan test would fail if a pre-existing wifi scan (from some other
uid) was already running. Now we request the wifi scan twice,
back-to-back, requiring at least one of them to succeed. This way, even
if the first would fail (because of a pre-existing scan), the second, which
is run immediately after the first finishes, should succeed (because
after the first test finishes, there shouldn't be a pre-existing scan
from a different uid anymore).

Test: run cts-dev -m CtsIncidentHostTestCases -t com.android.server.cts.BatteryStatsValidationTest
Fixes: 37748887
Change-Id: I829a79feec146f892b244d6b434607abd5056e8f
ncident/apps/batterystatsapp/src/com/android/server/cts/device/batterystats/BatteryStatsBgVsFgActions.java
ncident/src/com/android/server/cts/BatteryStatsValidationTest.java
c0d569e64b6fb46356f2cd68fabe3c00a9862f53 06-May-2017 Jeff Sharkey <jsharkey@google.com> Merge "Wait for idle device, verify OBB and external." into oc-dev
f861e4ac902a77f9b8d2282b2ea555545d1e354a 05-May-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "[CTS] Add a test for key/value backup and restore." into oc-dev
e295fda1e1f97c5ab197c187df0bb375f8308000 03-May-2017 Jeff Sharkey <jsharkey@android.com> Wait for idle device, verify OBB and external.

We've seen evidence of lab devices racing with other apps that are
using cache space immediately after tests wipe it clean, which can
cause test failures. To mitigate this, try our best to wait for the
device to go "idle" by watching for broadcast queues to fully drain.

Verify that OBB files are accounted correctly against app code.

Verify that cached files on external storage are cleared along with
internal storage when backed by the same physical device.

Test: cts-tradefed run commandAndExit cts-dev -m CtsAppSecurityHostTestCases -t android.appsecurity.cts.StorageHostTest
Bug: 37486230, 37566983, 37913442, 37914374
Change-Id: I3c8d304968e6b869a5a70e28e9ce0f1bf6a20123
ppsecurity/src/android/appsecurity/cts/StorageHostTest.java
ppsecurity/test-apps/StorageApp/src/com/android/cts/storageapp/Utils.java
ppsecurity/test-apps/StorageApp/src/com/android/cts/storageapp/UtilsReceiver.java
ppsecurity/test-apps/StorageStatsApp/Android.mk
ppsecurity/test-apps/StorageStatsApp/src/com/android/cts/storagestatsapp/StorageStatsTest.java
a27e6e4c83650129acce5daa18906ede03cfb394 03-May-2017 Bookatz <bookatz@google.com> Whitelist CTS test to allow bg wifi scans

Background wifi scans are now throttled, which would cause this CTS test
to break (unless it is allowed to run for a very long time). This
prevents the throttling for the CTS test app.

Bug: 37748887
Test: run cts-dev -m CtsIncidentHostTestCases -t com.android.server.cts.BatteryStatsValidationTest#testWifiScans
Change-Id: Idfdb1bea05665f4728755d29f9e2ff0645c20271
ncident/src/com/android/server/cts/BatteryStatsValidationTest.java
fb340e7b4f59a47e9e5e1e75237ec748d98bbb66 04-May-2017 Anton Philippov <philippov@google.com> [CTS] Add a test for key/value backup and restore.

This test is intended to replace BackupTest in CTS Verifier (removed in
this change).

The test installs the app that generates random values and saves them in
different shared preferences and files. It uses BackupAgentHelper to do
key/value backup of those values. The tests verifies that the values are
restored after the app is uninstalled and reinstalled.

Test: make cts -j40 && cts-tradefed run cts -m CtsBackupHostTestCases
Bug: 32797101
Change-Id: I75c0ebcd3bef3dae36a21ae704596af678c14ca9
ackup/Android.mk
ackup/AndroidTest.xml
ackup/app/Android.mk
ackup/app/AndroidManifest.xml
ackup/app/src/android/backup/cts/backuprestoreapp/CtsBackupRestoreBackupAgent.java
ackup/app/src/android/backup/cts/backuprestoreapp/KeyValueBackupRandomDataActivity.java
ackup/src/android/backup/cts/BackupRestoreHostSideTest.java
793641e6e351a6bb355dc1a3e20748a7a22968d3 05-May-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Adding CTS to ensure that existing assistant tasks are reused." into oc-dev
1d015f6a64efcf5a7d69453521c1fe78678a189a 29-Apr-2017 Fyodor Kupolov <fkupolov@google.com> Added CreateUsersNoAppCrashesTest for basic multi-user testing

Test verifies that users can be created/switched to without app error dialogs
shown to the user.

It also tests that all BOOT_COMPLETED broadcasts are delivered within a
reasonable time-frame

Test: CreateUsersNoAppCrashesTest pass
Bug: 37751789
Change-Id: Ic593ef68d81d2e8b75622fcc59ac92deca3e69c2
ultiuser/src/android/host/multiuser/BaseMultiUserTest.java
ultiuser/src/android/host/multiuser/CreateUsersNoAppCrashesTest.java
75c278923de50b0f642257c02dc612a47453f45d 03-May-2017 Netta Peterbursky <nettap@google.com> Fix CTS test for protobufferized PackageManager dumpsys

Bug: 37938336
Test: cts-tradefed run cts-dev -m CtsIncidentHostTestCase -t com.android.server.cts.PackageIncidentTest
Change-Id: I44dad11588ae6ce7760238cff1ff7fb1781a9800
ncident/src/com/android/server/cts/PackageIncidentTest.java
ncident/src/com/android/server/cts/ProtoDumpTestCase.java
056d152207f22626fb1f1ed99a7cc2d032336db4 05-May-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Break tests into individual cases" into oc-dev
2a4aeb16e29061d358cfbf9a03a052ddb41e800a 05-May-2017 Winson Chung <winsonc@google.com> Merge "Fixing typo in PIP test" into oc-dev
f88556f8f10cdacf1fa8c0aec2f22efc0a1846ea 04-May-2017 Todd Kennedy <toddke@google.com> Break tests into individual cases

Change-Id: Ic4432c9d14d770b8f7921333e3ba15f90e2cee43
Fixes: 37948570
Test: cts-tradefed run commandAndExit cts-dev -m CtsAppSecurityHostTestCases -t android.appsecurity.cts.EphemeralTest
ppsecurity/src/android/appsecurity/cts/EphemeralTest.java
ppsecurity/test-apps/EphemeralTestApp/EphemeralApp1/src/com/android/cts/ephemeralapp1/ClientTest.java
dcdcbe744cc677e44ce4d14155b39288dfb730f7 05-May-2017 Bryce Lee <brycelee@google.com> Merge "Additional CTS Test for noHistory flag." into oc-dev
6545fa5255846b5ae1a61e8bd4a2bfc8f767c566 05-May-2017 Winson Chung <winsonc@google.com> Fixing typo in PIP test

- Ensure that the we are launching the PIP activity in the same task
before it tries to enter PIP. As a result we need to move the call to
onCreate() otherwise it will try to launch another PIP activity once the
first one pauses and causes the LaunchActivity to resume, and another,
and another... This is the only test that uses that launch activity.

Bug: 34394702
Test: android.server.cts.ActivityManagerPinnedStackTests
Test: #testEnterPipFromTaskWithMultipleActivities
Change-Id: I98d0ddb01bb62b8ec1174d27447f604621c13ee4
ervices/activityandwindowmanager/activitymanager/app/src/android/server/cts/LaunchEnterPipActivity.java
ervices/activityandwindowmanager/activitymanager/app/src/android/server/cts/PipActivity.java
67cad7852029e8d4b2fa80a47851f1a005a0ca5b 05-May-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Stack is visible if behind docked which is behind pinned stack (2/2)" into oc-dev
3b38960433d7487307d2071d49e4700bb4a9cdaa 21-Apr-2017 Winson Chung <winsonc@google.com> Adding CTS to ensure that existing assistant tasks are reused.

Bug: 37526597
Test: android.server.cts.ActivityManagerAssistantStackTests
Test: #testLaunchIntoSameTask
Change-Id: I858ad3f86374fcbe8c758f55ea4c4d5bef6702ed
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/ActivityManagerAssistantStackTests.java
4d8cf2e0c92063fa2dc9efc3efd1b273e3a3da45 02-May-2017 Matthew Ng <ngmatthew@google.com> Stack is visible if behind docked which is behind pinned stack (2/2)

Handles the case if pip is shown with splitscreen when the stack order
is pinned, docked, current stack, etc (top to bottom). Added a condition
to check to make sure that this order of stacks allows the current stack
to be visible. Also added a condition to not hide docked stack when pip
appears (this only occurs with command line or cts tests); added TODO
for refactor.

Change-Id: I53bd55014c08c60f360b95ed7100ef49778f891b
Fixes: 37294521
Test: run-test CtsServicesHostTestCases
android.server.cts.ActivityManagerPinnedStackTests#
testPinnedStackWithDockedStack
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/ActivityManagerPinnedStackTests.java
ervices/activityandwindowmanager/util/src/android/server/cts/ActivityAndWindowManagersState.java
ervices/activityandwindowmanager/util/src/android/server/cts/ActivityManagerState.java
06978f12722a5afc864343a872708fec9b15018d 04-May-2017 Greg Plesur <plesur@google.com> Merge "Increase UPDATE_LOCK_TASK_TIMEOUT_MILLIS in testUpdateWhiteListing()." into nougat-mr1-cts-dev am: c580ac669f am: 9f073ec190
am: 0d7a6f7f42

Change-Id: I2d306ef35d78bcf0e44c88f8c794de9ba4301e73
9f073ec1901d31afe706087426490880257c2efb 04-May-2017 Greg Plesur <plesur@google.com> Merge "Increase UPDATE_LOCK_TASK_TIMEOUT_MILLIS in testUpdateWhiteListing()." into nougat-mr1-cts-dev
am: c580ac669f

Change-Id: Ibae9e5ab2cb7a0a621d4ed75a1cbaba03aac0394
c580ac669f620f82a2365efc2ef83dbbf95472ac 04-May-2017 Treehugger Robot <treehugger-gerrit@google.com> Merge "Increase UPDATE_LOCK_TASK_TIMEOUT_MILLIS in testUpdateWhiteListing()." into nougat-mr1-cts-dev
b2a6c37ef521a98b634ea130546abd855a4288b7 04-May-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge changes I00bfa96c,I0d646aee into oc-dev

* changes:
Download and Upload tests stay in bg or fg
Hostside smarter about waiting for test to finish
bf57b1c8ba86695df039cd2e9f7cf8b80bb3102f 04-May-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Update dumpsys CTS: learnedBatteryCapacity fields" into oc-dev
1e3947373a26561e9231bebf41d6eb2968f05e50 04-May-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Add CTS verification that native FBE is enabled for automotive" into oc-dev
68f5a2a5d36542d443ddc62c213914d877ca8ec8 02-May-2017 Bryce Lee <brycelee@google.com> Additional CTS Test for noHistory flag.

This test ensures that the noHistory flag is honored, even if the
resuming activity does not enter idle. To exercise this constraint,
we start an activity known to not enter idle on top of the noHistory
activity and press back. The expected behavior is that the noHistory
activity will be gone and the launcher will be shown.

Test: cts/hostsidetests/services/activityandwindowmanager/util/run-test CtsServicesHostTestCases android.server.cts.ActivityManagerActivityVisibilityTests#testNoHistoryActivityFinishedResumedActivityNotIdle
Bug: 37234980

Change-Id: I4ccde8428ec0c6bffb2b0614eeb48bc4e0fa6e9c
ervices/activityandwindowmanager/activitymanager/app/Android.mk
ervices/activityandwindowmanager/activitymanager/app/AndroidManifest.xml
ervices/activityandwindowmanager/activitymanager/app/src/android/server/cts/NoHistoryActivity.java
ervices/activityandwindowmanager/activitymanager/app/src/android/server/cts/SwipeRefreshActivity.java
ervices/activityandwindowmanager/activitymanager/app/src/android/server/cts/SwipeRefreshLayout.java
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/ActivityManagerActivityVisibilityTests.java
d0a9c4c8812daba65cea9f3b16263c130afd1941 03-May-2017 Chad Brubaker <cbrubaker@google.com> Merge "Renable exposedSystemActivities test" into oc-dev
e0a44d9f191670493a64ba0ca439bcbf50388c5a 02-May-2017 Enrico Granata <egranata@google.com> Add CTS verification that native FBE is enabled for automotive

Change-Id: Ic677be9716ba38e6c27f96fdd35a48f6c5ca5158
Fixes: 37516195
Test: cts-tradefed run cts-dev --module CtsAppSecurity --test android.appsecurity.cts.DirectBootHostTest#testAutomotiveNativeFbe
ppsecurity/src/android/appsecurity/cts/DirectBootHostTest.java
f9d407d52af27e07a8883608846748f5d1e4d0ce 02-May-2017 Bookatz <bookatz@google.com> Added actual (unpooled) wakelock times.

Wakelocks (full, window, and partial) each have a new field, representing
total duration.

Test: cts-tradefed run cts-dev -m CtsDumpsysHostTestCases -t android.dumpsys.cts.BatteryStatsDumpsysTest
Test: cts-tradefed run cts-dev -m CtsIncidentHostTestCases -t com.android.server.cts.BatteryStatsValidationTest
Bug: 18998184

Change-Id: I7ed1b9348bd3410400bf6299b1cc71f2a27bce82
umpsys/src/android/dumpsys/cts/BatteryStatsDumpsysTest.java
ncident/src/com/android/server/cts/BatteryStatsValidationTest.java
44eeb6d0867a536348850b50c1f656c94e930659 03-May-2017 Bookatz <bookatz@google.com> Update dumpsys CTS: learnedBatteryCapacity fields

Added minLearnedBatteryCapacity and maxLearnedBatteryCapacity to
testBatterystatsOutput.checkBattery.

Test: cts-tradefed run cts-dev -m CtsDumpsysHostTestCases -t android.dumpsys.cts.BatteryStatsDumpsysTest
Bug: 37633884
Change-Id: Ia525baf6830a80cc9eaff3d51bcdcb73dbebcee7
umpsys/src/android/dumpsys/cts/BatteryStatsDumpsysTest.java
6df9c110c7360d34489fee48bf8d77672446b7ce 03-May-2017 Makoto Onuki <omakoto@google.com> Merge "Make the test verbose." into oc-dev
63bcdad6c903d2efda02a854994ff9d629f8a757 03-May-2017 Agatha Man <agathaman@google.com> Merge "EDI - (CTS) Move LibraryDeviceInfo to host-side" into oc-dev
2cfb876d5ba25a9ad3a13b5e13301e88b36e4ccf 03-May-2017 Andrii Kulian <akulian@google.com> Merge "Don't use static stacks in ActivityManagerDisplayTests" into oc-dev
b89b55a72fde5c6cc5e8fe247b70d12f4c6d4aa7 01-May-2017 Makoto Onuki <omakoto@google.com> Make the test verbose.

Test: cts-tradefed run cts-dev --skip-device-info --skip-preconditions --skip-system-status-check com.android.compatibility.common.tradefed.targetprep.NetworkConnectivityChecker -a armeabi-v7a -l VERBOSE -m CtsDevicePolicyManagerTestCases -t com.android.cts.devicepolicy.DeviceAdminServiceDeviceOwnerTest
Test: cts-tradefed run cts-dev --skip-device-info --skip-preconditions --skip-system-status-check com.android.compatibility.common.tradefed.targetprep.NetworkConnectivityChecker -a armeabi-v7a -l VERBOSE -m CtsDevicePolicyManagerTestCases -t com.android.cts.devicepolicy.DeviceAdminServiceProfileOwnerTest

Bug 37711907

Change-Id: I01cfed00ab573a968faf4a3bc3ed5cf627c2bd46
evicepolicy/src/com/android/cts/devicepolicy/BaseDeviceAdminServiceTest.java
59205898665c2ece3890ee5de3ddb5a6ec972054 02-May-2017 Winson Chung <winsonc@google.com> Merge "Add CTS test to ensure the right tasks are matched to an intent." into oc-dev
0371e889e99e935ce731ae449f0a8f4d6db0249b 02-May-2017 Andrii Kulian <akulian@google.com> Don't use static stacks in ActivityManagerDisplayTests

Reduce usages of docked/fullscreen stacks in display tests
for devices where there is no split-screen support or where
fullscreen stack is not the default stack.
Guard remaining split-screen usages by checking if the device
supports it before running the test.

Change-Id: I69b650140a23c54985716e8fc92bc5370790f762
Fixes: 36869692
Test: android.server.cts.ActivityManagerDisplayTests
ervices/activityandwindowmanager/activitymanager/app/src/android/server/cts/VirtualDisplayActivity.java
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/ActivityManagerDisplayTests.java
e18697d92b15590ca75a08577cad89a6d63be0b1 27-Apr-2017 Agatha Man <agathaman@google.com> EDI - (CTS) Move LibraryDeviceInfo to host-side

Bug: 37285788
Test: cts-tradefed run cts -m CtsEdiHostTestCases
Change-Id: I01d17215f83b1470542d53f31d3c02e911899538
di/Android.mk
di/AndroidTest.xml
di/src/android/edi/cts/LibraryDeviceInfo.java
b00c06bd28f1487f41755cc003ff8be4adba9312 02-May-2017 Sudheer Shanka <sudheersai@google.com> Merge "Fix CtsHostsideNetworkTests." into oc-dev
32a2bf10b85a658d28c6c90be1414f5574f7e9d1 02-May-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Wait for ready before asserting" into oc-dev
dc47cf1de2732ae2d94aae1bee1f89bee2454833 01-May-2017 Winson Chung <winsonc@google.com> Add CTS test to ensure the right tasks are matched to an intent.

Bug: 37640324
Test: android.server.cts.ActivityManagerPinnedStackTests
Test: #testLaunchTaskByComponentMatchMultipleTasks
Test: #testLaunchTaskByAffinityMatchMultipleTasks
Test: #testLaunchTaskByAffinityMatchSingleTask

Change-Id: I88f1e9e2e908b7519942bd59c86e4c7c9b704f6d
ervices/activityandwindowmanager/activitymanager/app/AndroidManifest.xml
ervices/activityandwindowmanager/activitymanager/app/src/android/server/cts/PipActivityWithSameAffinity.java
ervices/activityandwindowmanager/activitymanager/app/src/android/server/cts/TestActivityWithSameAffinity.java
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/ActivityManagerPinnedStackTests.java
ddb08871f688f35904e576fe6aefbe335d604bf7 01-May-2017 John Reck <jreck@google.com> Wait for ready before asserting

Ran a few dozen times, so far no flaking with this
change.

Bug: 37438953
Test: this
Change-Id: I09849c56065db3c0f910c0e394daabc341541dba
ncident/apps/graphicsstatsapp/src/com/android/server/cts/device/graphicsstats/DrawFramesActivity.java
ncident/apps/graphicsstatsapp/src/com/android/server/cts/device/graphicsstats/SimpleDrawFrameTests.java
ncident/src/com/android/server/cts/GraphicsStatsValidationTest.java
9a3430e9ff2343ada1d8ef553f7021c3770f3ee0 29-Apr-2017 Sudheer Shanka <sudheersai@google.com> Add cts to test power-save-except-idle whitelist is correctly used.

Bug: 37670935
Test: cts-tradefed run singleCommand cts-dev -m CtsHostsideNetworkTests -t \
com.android.cts.net.HostsideRestrictBackgroundNetworkTests
Change-Id: I03619bec15e14707ab103c77feab08d3520a2914
et/app/src/com/android/cts/net/hostside/AbstractAppIdleTestCase.java
et/app/src/com/android/cts/net/hostside/AbstractBatterySaverModeTestCase.java
et/app/src/com/android/cts/net/hostside/AbstractDozeModeTestCase.java
et/app/src/com/android/cts/net/hostside/AbstractRestrictBackgroundNetworkTestCase.java
et/app/src/com/android/cts/net/hostside/MixedModesTest.java
et/src/com/android/cts/net/HostsideRestrictBackgroundNetworkTests.java
66f47cb6f22bdfc64469d3e3e14216cf3a9a8e57 01-May-2017 Jeff Sharkey <jsharkey@android.com> Rename to follow API council guidance.

Test: builds, boots
Bug: 37422404
Change-Id: I38be2396ae1decf73dee1a1d1c4323442c8ecd32
ppsecurity/test-apps/EphemeralTestApp/EphemeralApp1/src/com/android/cts/ephemeralapp1/ClientTest.java
ppsecurity/test-apps/EphemeralTestApp/NormalApp/src/com/android/cts/normalapp/ClientTest.java
df48b0855a7ffd7eddbffacdb690f64ad6dbdb67 01-May-2017 Sudheer Shanka <sudheersai@google.com> Fix CtsHostsideNetworkTests.

The changes made to ensuring network connectivity on app start
only applies to activities. There is no change in how the services
are handled.

Bug: 27803922
Test: cts-tradefed run singleCommand cts-dev -m CtsHostsideNetworkTests -t \
com.android.cts.net.HostsideRestrictBackgroundNetworkTests

Change-Id: Ib82b07195e395c89701dd525b850c0935d94dfe7
et/app/src/com/android/cts/net/hostside/AbstractRestrictBackgroundNetworkTestCase.java
b15e504ca20247d5cc53e6ec2b32013ea5a1ebd0 01-May-2017 Jeff Sharkey <jsharkey@google.com> Merge "Updates based on API council guidance." into oc-dev
3af5ddab546f4d751bd1c980430f77e5ccbf8d79 30-Apr-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Add device- and host-side utils for checking API level" into oc-dev
fc8caab0a9e39100c6ca6732b4e2043858daeea9 29-Apr-2017 Jeff Sharkey <jsharkey@android.com> Updates based on API council guidance.

Test: builds, boots
Change-Id: I28ea27d22da884b5a75c9dfd836651ac0400d7ae
Fixes: 37775662
Fixes: 37748635
Fixes: 37673408
Fixes: 37672564
Fixes: 37672218
Fixes: 37638323
Fixes: 37637423
ervices/activityandwindowmanager/activitymanager/app/src/android/server/cts/BroadcastReceiverActivity.java
ervices/activityandwindowmanager/activitymanager/app/src/android/server/cts/TurnScreenOnDismissKeyguardActivity.java
4f6941e69ca6dd80d04bed48cd6d9c4073e069bb 29-Apr-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Fix CTS tests according to API change: Array -> List" into oc-dev
e19264cc5ddde8d387fbba0653768f1affd336b5 28-Apr-2017 Pavel Grafov <pgrafov@google.com> Fix CTS tests according to API change: Array -> List

Bug: 37625453
Test: cts-tradefed run cts -m CtsDevicePolicyManagerTestCases -t com.android.cts.devicepolicy.DeviceOwnerTest#testNetworkLoggingWithSingleUser
Change-Id: Idd9789fe661040adc482eff0c2091fdf48af34ed
evicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/NetworkLoggingTest.java
af1e4665c38791bd3caec45805c05ee70a4f656b 26-Apr-2017 Aaron Holden <aaronholden@google.com> Add device- and host-side utils for checking API level

Also use these utils in some CTS tests

bug:37205293
Test: run cts, run gts
Change-Id: I4f92ff1421063d2d23bc364018622dcb6090d068
evicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/SystemUpdatePolicyTest.java
e9749e843286d89a88b25404cc35e5392c234052 28-Apr-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Dismiss docked stack when ShowWhenLocked activity is over keyguard (2/2)" into oc-dev
cfde98bf477fa3fb9a5ce3fe8e15d2b5fae2dc8b 28-Apr-2017 Andrew Scull <ascull@google.com> Merge "Update DPM.lockNow() flag name." into oc-dev
387c3fddcb28a357b2af54a010fd851cfa1e87ef 28-Apr-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Respond to API council feedback." into oc-dev
d4c5e43d0e84c3d735693b41c4f0c917697e366a 28-Apr-2017 Bookatz <bookatz@google.com> Add BLE results counter to batterystats

Verify that batterystats collects ble results counter stats.

Bug: 37720787
Test: cts-tradefed run cts-dev -m CtsDumpsysHostTestCases -t
android.dumpsys.cts.BatteryStatsDumpsysTest

Change-Id: Ia5f781cb039256cea7747bb0b731686a7469d103
umpsys/src/android/dumpsys/cts/BatteryStatsDumpsysTest.java
4ba12242df529685b8c7b45792b34c861461e5b2 28-Apr-2017 Pavel Grafov <pgrafov@google.com> Merge "CTS test for DISALLOW_BLUETOOTH_SHARING." into oc-dev
f1922bee3b9d10859920d2af623b2c35fd7b11d7 28-Apr-2017 Treehugger Robot <treehugger-gerrit@google.com> Merge "Update the mdpi and tvdpi resource files" into nougat-cts-dev
f4e3fd8770e74f2896e72818bda56121f8fa0dbc 28-Apr-2017 Jaehun Rhee <jaehun.rhee@samsung.com> Merge "Modify timeout of testDirectBootEmulated test case" into nougat-cts-dev am: 013bfe3b78 am: 6d713c36df am: 2b5b2e16c9 am: 7ac78f1ecc am: ce6b788c1e
am: 15e033cbbb

Change-Id: Ic259b1493b19277026c448f712c78e9a6b53d2ee
15e033cbbba8c548ff8a7abad538669015e4d367 27-Apr-2017 Jaehun Rhee <jaehun.rhee@samsung.com> Merge "Modify timeout of testDirectBootEmulated test case" into nougat-cts-dev am: 013bfe3b78 am: 6d713c36df am: 2b5b2e16c9 am: 7ac78f1ecc
am: ce6b788c1e

Change-Id: I5ff8647dfa2a11e8b289d32940682dde381c4770
42b961f780ef6eb53ad0264f67033478417499ba 27-Apr-2017 Bookatz <bookatz@google.com> Download and Upload tests stay in bg or fg

For the Batterystats CTS tests, previously the testWifiDownload and
testWifiUpload ran their task async, which means that a foreground
activity could finish while the download/upload was occurring. For the
test, it would be better for the proc stay to stay constant for the
duration of the test.

Test: run cts-dev -m CtsIncidentHostTestCases -t
com.android.server.cts.BatteryStatsValidationTest

Change-Id: I00bfa96c8e123479b57bd2887a65ce3050ea2a81
ncident/apps/batterystatsapp/src/com/android/server/cts/device/batterystats/BatteryStatsBgVsFgActions.java
9aa0982841db68ebbdfae84b733b989efd495af8 27-Apr-2017 Jaehun Rhee <jaehun.rhee@samsung.com> Merge "Modify timeout of testDirectBootEmulated test case" into nougat-cts-dev
am: 013bfe3b78

Change-Id: Ida469abad434c58a0d070d96461fd9987243f6ba
a6685d3f6a7833d862c0f20ced35d136e63b432f 26-Apr-2017 Bookatz <bookatz@google.com> Hostside smarter about waiting for test to finish

For Batterystats CTS tests that use the BgVsFgActions method of
performing actions: previously, the hostside would just sleep while
waiting for the action to be performed on the device, guessing how long
it might take and sleeping for that length of time. Now the device will
send a message via the logcat to indicate that the action is finished,
so the hostside part of the test can scan the logcat to determine when
the action is done (instead of sleeping an arbitrary length of time).

Test: run cts-dev -m CtsIncidentHostTestCases -t
com.android.server.cts.BatteryStatsValidationTest

Change-Id: I0d646aee2b4b0e6f5a6ebefca4e5b55062a05f58
ncident/apps/batterystatsapp/src/com/android/server/cts/device/batterystats/BatteryStatsBackgroundService.java
ncident/apps/batterystatsapp/src/com/android/server/cts/device/batterystats/BatteryStatsBgVsFgActions.java
ncident/apps/batterystatsapp/src/com/android/server/cts/device/batterystats/BatteryStatsForegroundActivity.java
ncident/apps/batterystatsapp/src/com/android/server/cts/device/batterystats/BatteryStatsWifiTransferTests.java
ncident/src/com/android/server/cts/BatteryStatsValidationTest.java
7ac78f1ecce6abf736802e4c91af255c4b29b43e 27-Apr-2017 Jaehun Rhee <jaehun.rhee@samsung.com> Merge "Modify timeout of testDirectBootEmulated test case" into nougat-cts-dev am: 013bfe3b78 am: 6d713c36df
am: 2b5b2e16c9

Change-Id: Ib2a6485e4263b4fb3e43355061a51d67db55b9fd
2b5b2e16c9f70df6f35848e4fa4f3e37d2d306e2 27-Apr-2017 Jaehun Rhee <jaehun.rhee@samsung.com> Merge "Modify timeout of testDirectBootEmulated test case" into nougat-cts-dev am: 013bfe3b78
am: 6d713c36df

Change-Id: I3f901d6438e510decf234d37dce567d11bf51adc
6d713c36dfa3364f2e0389b0aacac2d8387a3f04 27-Apr-2017 Jaehun Rhee <jaehun.rhee@samsung.com> Merge "Modify timeout of testDirectBootEmulated test case" into nougat-cts-dev
am: 013bfe3b78

Change-Id: Ibd89df9f6c69f853e72865af24bbeb7829df9da3
5b3cdebe9a51b4919af28a88bb059b3764281d11 27-Apr-2017 Jorim Jaggi <jjaggi@google.com> Merge "Use new API" into oc-dev
4eb05080e76f52610bc0c2b77490c511cd7a3409 27-Apr-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge changes from topic 'cp-cts' into oc-dev

* changes:
Fix non-run-test jvmti cts tests
Fix of Jvmti tests passing package info
Add jvmti run-tests 985 and 986
CTS: Add run-test-based JVMTI tests
Remove unneeded shims and JNI binding code for jvmti tests
CTS: Add run-test-based JVMTI tests
JVMTI: Remove incorrect Android.mk statements
Add jvmti redefinition tests.
CTS: Add run-test-based JVMTI tests
CTS: Add run-test-based JVMTI tests
CTS: Add run-test-based JVMTI tests
CTS: Add run-test-based JVMTI tests
CTS: Use RunTest Java code from ART
CTS: Use ART's libctstiagent
CTS: Use cmd activity instead of am
CTS: Fix JVMTI CFLAGS
66dc1fe0601d2ee45dd2ed58018ca2291f244b19 27-Apr-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Fix CTS test according to API change." into oc-dev
b30686768bb138948b183c44adb647dcc67f6660 25-Apr-2017 Alex Light <allight@google.com> Fix non-run-test jvmti cts tests

We failed to remove some BindAgentJNI calls and did not update the
manifests correctly.

Bug: 37579245
Test: cts-tradefed run cts-dev \
--compatibility:include-filter CtsJvmtiRedefineClassesHostTestCases \
--compatibility:include-filter CtsJvmtiTaggingHostTestCases \
--compatibility:include-filter CtsJvmtiTrackingHostTestCases

Change-Id: If358a9e3f940f2275a9de5311059fe3e54db262b
(cherry picked from commit b0ac26f2aca2b8b41cb06262db6599be15f16060)
Merged-In: I1e6bb37ede7f4cf0d390cc7e8ac3d7b1863a3797
vmti/allocation-tracking/AndroidTest.xml
vmti/base/run-test-based-app/src/art/Main.java
vmti/redefining/AndroidTest.xml
vmti/redefining/app/src/android/jvmti/cts/JvmtiRedefineClassesTest.java
vmti/tagging/AndroidTest.xml
vmti/tagging/app/src/android/jvmti/cts/JvmtiTaggingTest.java
df7d0fbe67fd315c9b55d987184e4dad73676e73 25-Apr-2017 jdesprez <jdesprez@google.com> Fix of Jvmti tests passing package info

Avoid relying on target_preparer buildinfo to pass target
apk information. Use the direct option in Hosttest to
inject them to the test class.

Test: ./cts-tradefed run cts-dev --compatibility:include-filter
CtsJvmtiRunstTestCases --compatibility:include-filter
CtsJvmtiRunTest904HostTestCases
Bug: 37579245

Change-Id: Ia1ab3e1eec0e5be6b45f1c08b3b55e021f42dd27
(cherry picked from commit d2aa94bb0d3d5ce04f036eb32a38726b14116583)
Merged-In: I1e6bb37ede7f4cf0d390cc7e8ac3d7b1863a3797
vmti/base/host/src/android/jvmti/cts/JvmtiHostTest.java
vmti/run-tests/test-902/AndroidTest.xml
vmti/run-tests/test-903/AndroidTest.xml
vmti/run-tests/test-904/AndroidTest.xml
vmti/run-tests/test-905/AndroidTest.xml
vmti/run-tests/test-906/AndroidTest.xml
vmti/run-tests/test-907/AndroidTest.xml
vmti/run-tests/test-908/AndroidTest.xml
vmti/run-tests/test-910/AndroidTest.xml
vmti/run-tests/test-911/AndroidTest.xml
vmti/run-tests/test-913/AndroidTest.xml
vmti/run-tests/test-914/AndroidTest.xml
vmti/run-tests/test-915/AndroidTest.xml
vmti/run-tests/test-917/AndroidTest.xml
vmti/run-tests/test-918/AndroidTest.xml
vmti/run-tests/test-919/AndroidTest.xml
vmti/run-tests/test-920/AndroidTest.xml
vmti/run-tests/test-922/AndroidTest.xml
vmti/run-tests/test-923/AndroidTest.xml
vmti/run-tests/test-924/AndroidTest.xml
vmti/run-tests/test-926/AndroidTest.xml
vmti/run-tests/test-927/AndroidTest.xml
vmti/run-tests/test-928/AndroidTest.xml
vmti/run-tests/test-930/AndroidTest.xml
vmti/run-tests/test-931/AndroidTest.xml
vmti/run-tests/test-932/AndroidTest.xml
vmti/run-tests/test-940/AndroidTest.xml
vmti/run-tests/test-942/AndroidTest.xml
vmti/run-tests/test-944/AndroidTest.xml
vmti/run-tests/test-945/AndroidTest.xml
vmti/run-tests/test-947/AndroidTest.xml
vmti/run-tests/test-951/AndroidTest.xml
vmti/run-tests/test-981/AndroidTest.xml
vmti/run-tests/test-982/AndroidTest.xml
vmti/run-tests/test-984/AndroidTest.xml
vmti/run-tests/test-985/AndroidTest.xml
vmti/run-tests/test-986/AndroidTest.xml
bf918e1adb997de47e2c1163f7b49bf3f2e3d459 19-Apr-2017 Alex Light <allight@google.com> Add jvmti run-tests 985 and 986

Bug: 32072923
Test: m cts
Test: cts-tradefed run cts-dev --module CtsJvmtiRunTest985HostTestCases
Test: cts-tradefed run cts-dev --module CtsJvmtiRunTest986HostTestCases

Change-Id: I5d908531519aaea8c2bcc34e3bc4cefe24bf6cc6
(cherry picked from commit 79abca7fbd5f700a5ec62ea22274928f6ed94d13)
Merged-In: I1e6bb37ede7f4cf0d390cc7e8ac3d7b1863a3797
vmti/run-tests/test-985/Android.mk
vmti/run-tests/test-985/AndroidTest.xml
vmti/run-tests/test-985/app/Android.mk
vmti/run-tests/test-985/app/AndroidManifest.xml
vmti/run-tests/test-986/Android.mk
vmti/run-tests/test-986/AndroidTest.xml
vmti/run-tests/test-986/app/Android.mk
vmti/run-tests/test-986/app/AndroidManifest.xml
adca9563ab974f8b3070314e1a276077f7b7f35b 24-Apr-2017 Andreas Gampe <agampe@google.com> CTS: Add run-test-based JVMTI tests

Add test 911.

Bug: 32072923
Test: m cts
Test: cts-tradefed run cts-dev --module CtsJvmtiRunTest911HostTestCases
Change-Id: I43e169fc6d110f34ec884042a284a3e70cdfd26a
(cherry picked from commit 7235db36ec4635cb5f145edc11158005f9c68db1)
Merged-In: I1e6bb37ede7f4cf0d390cc7e8ac3d7b1863a3797
vmti/run-tests/test-911/Android.mk
vmti/run-tests/test-911/AndroidTest.xml
vmti/run-tests/test-911/app/Android.mk
vmti/run-tests/test-911/app/AndroidManifest.xml
e5fb3f0dae3ebd86239908314ba93b2c20e68301 21-Apr-2017 Alex Light <allight@google.com> Remove unneeded shims and JNI binding code for jvmti tests

Bug: 37522517
Test: cts-tradefed run cts-dev --module CtsJvmtiRunTest902HostTestCases
Test: cts-tradefed run cts-dev --module CtsJvmtiRunTest981HostTestCases
Test: cts-tradefed run cts-dev --module CtsJvmtiRedefineClassesHostTestCases
Change-Id: I138bc9912676ebffe95ba08067616afb7a49b191
(cherry picked from commit 645ed336e9504c6bb47d86091ffdc0c78986aa1c)
Merged-In: I1e6bb37ede7f4cf0d390cc7e8ac3d7b1863a3797
vmti/base/jni/cts_agent.cpp
cc12fbd73cc4e53d6cdfb39abf764022f5833189 19-Apr-2017 Andreas Gampe <agampe@google.com> CTS: Add run-test-based JVMTI tests

Add test 924.

Bug: 32072923
Test: m cts
Test: cts-tradefed run cts-dev --module CtsJvmtiRunTest924HostTestCases
Change-Id: Ie8ce19b3f6172f98371517a93d47a21a09024bce
(cherry picked from commit 6073db9fb39835bc1472e8449ba357259e678d88)
Merged-In: I1e6bb37ede7f4cf0d390cc7e8ac3d7b1863a3797
vmti/run-tests/test-924/Android.mk
vmti/run-tests/test-924/AndroidTest.xml
vmti/run-tests/test-924/app/Android.mk
vmti/run-tests/test-924/app/AndroidManifest.xml
77d9bfb6de7b51112424c42141728e0db1b6727b 18-Apr-2017 Andreas Gampe <agampe@google.com> JVMTI: Remove incorrect Android.mk statements

Do not include non-existent source files.

Bug: 32072923
Test: m cts
Change-Id: I3d4b82ca4730b3343762c488349eeb392cd5888a
(cherry picked from commit 728f5f6158441f4d4154c66466ca09ceb78eba9a)
Merged-In: I1e6bb37ede7f4cf0d390cc7e8ac3d7b1863a3797
vmti/run-tests/test-903/app/Android.mk
vmti/run-tests/test-904/app/Android.mk
vmti/run-tests/test-905/app/Android.mk
vmti/run-tests/test-906/app/Android.mk
vmti/run-tests/test-907/app/Android.mk
vmti/run-tests/test-908/app/Android.mk
vmti/run-tests/test-910/app/Android.mk
vmti/run-tests/test-913/app/Android.mk
vmti/run-tests/test-918/app/Android.mk
vmti/run-tests/test-920/app/Android.mk
vmti/run-tests/test-922/app/Android.mk
vmti/run-tests/test-923/app/Android.mk
vmti/run-tests/test-927/app/Android.mk
vmti/run-tests/test-928/app/Android.mk
vmti/run-tests/test-931/app/Android.mk
c50b480c22707ca90fd38ccfe4d57cbd2fab726b 15-Apr-2017 Alex Light <allight@google.com> Add jvmti redefinition tests.

This imports a subset of the jvmti run-tests from the art project.

Imported tests are:
* 902-hello-transformation
* 914-hello-obsolescence
* 915-obsolete-2
* 917-fields-transformation
* 919-obsolete-fields
* 926-multi-obsolescence
* 930-hello-retransform
* 932-transform-saves
* 940-recursive-obsolete
* 942-private-recursive
* 944-transform-classloaders
* 945-obsolete-native
* 947-reflect-method
* 951-threaded-obsolete
* 981-dedup-original-dex
* 982-ok-no-retransform
* 984-obsolete-invoke

Bug: 32072923

Test: cts-tradefed run cts-dev --module CtsJvmtiRunTest902HostTestCases
Test: cts-tradefed run cts-dev --module CtsJvmtiRunTest914HostTestCases
Test: cts-tradefed run cts-dev --module CtsJvmtiRunTest915HostTestCases
Test: cts-tradefed run cts-dev --module CtsJvmtiRunTest917HostTestCases
Test: cts-tradefed run cts-dev --module CtsJvmtiRunTest919HostTestCases
Test: cts-tradefed run cts-dev --module CtsJvmtiRunTest926HostTestCases
Test: cts-tradefed run cts-dev --module CtsJvmtiRunTest930HostTestCases
Test: cts-tradefed run cts-dev --module CtsJvmtiRunTest932HostTestCases
Test: cts-tradefed run cts-dev --module CtsJvmtiRunTest940HostTestCases
Test: cts-tradefed run cts-dev --module CtsJvmtiRunTest942HostTestCases
Test: cts-tradefed run cts-dev --module CtsJvmtiRunTest944HostTestCases
Test: cts-tradefed run cts-dev --module CtsJvmtiRunTest945HostTestCases
Test: cts-tradefed run cts-dev --module CtsJvmtiRunTest947HostTestCases
Test: cts-tradefed run cts-dev --module CtsJvmtiRunTest951HostTestCases
Test: cts-tradefed run cts-dev --module CtsJvmtiRunTest981HostTestCases
Test: cts-tradefed run cts-dev --module CtsJvmtiRunTest982HostTestCases
Test: cts-tradefed run cts-dev --module CtsJvmtiRunTest984HostTestCases

Change-Id: I005858a8a2c53057af2650c00287a630b10627f3
(cherry picked from commit fce0a5c2bb1c31e3298e889c96e175f3096740aa)
Merged-In: I1e6bb37ede7f4cf0d390cc7e8ac3d7b1863a3797
vmti/run-tests/test-902/Android.mk
vmti/run-tests/test-902/AndroidTest.xml
vmti/run-tests/test-902/app/Android.mk
vmti/run-tests/test-902/app/AndroidManifest.xml
vmti/run-tests/test-914/Android.mk
vmti/run-tests/test-914/AndroidTest.xml
vmti/run-tests/test-914/app/Android.mk
vmti/run-tests/test-914/app/AndroidManifest.xml
vmti/run-tests/test-915/Android.mk
vmti/run-tests/test-915/AndroidTest.xml
vmti/run-tests/test-915/app/Android.mk
vmti/run-tests/test-915/app/AndroidManifest.xml
vmti/run-tests/test-917/Android.mk
vmti/run-tests/test-917/AndroidTest.xml
vmti/run-tests/test-917/app/Android.mk
vmti/run-tests/test-917/app/AndroidManifest.xml
vmti/run-tests/test-919/Android.mk
vmti/run-tests/test-919/AndroidTest.xml
vmti/run-tests/test-919/app/Android.mk
vmti/run-tests/test-919/app/AndroidManifest.xml
vmti/run-tests/test-926/Android.mk
vmti/run-tests/test-926/AndroidTest.xml
vmti/run-tests/test-926/app/Android.mk
vmti/run-tests/test-926/app/AndroidManifest.xml
vmti/run-tests/test-930/Android.mk
vmti/run-tests/test-930/AndroidTest.xml
vmti/run-tests/test-930/app/Android.mk
vmti/run-tests/test-930/app/AndroidManifest.xml
vmti/run-tests/test-932/Android.mk
vmti/run-tests/test-932/AndroidTest.xml
vmti/run-tests/test-932/app/Android.mk
vmti/run-tests/test-932/app/AndroidManifest.xml
vmti/run-tests/test-940/Android.mk
vmti/run-tests/test-940/AndroidTest.xml
vmti/run-tests/test-940/app/Android.mk
vmti/run-tests/test-940/app/AndroidManifest.xml
vmti/run-tests/test-942/Android.mk
vmti/run-tests/test-942/AndroidTest.xml
vmti/run-tests/test-942/app/Android.mk
vmti/run-tests/test-942/app/AndroidManifest.xml
vmti/run-tests/test-944/Android.mk
vmti/run-tests/test-944/AndroidTest.xml
vmti/run-tests/test-944/app/Android.mk
vmti/run-tests/test-944/app/AndroidManifest.xml
vmti/run-tests/test-945/Android.mk
vmti/run-tests/test-945/AndroidTest.xml
vmti/run-tests/test-945/app/Android.mk
vmti/run-tests/test-945/app/AndroidManifest.xml
vmti/run-tests/test-947/Android.mk
vmti/run-tests/test-947/AndroidTest.xml
vmti/run-tests/test-947/app/Android.mk
vmti/run-tests/test-947/app/AndroidManifest.xml
vmti/run-tests/test-951/Android.mk
vmti/run-tests/test-951/AndroidTest.xml
vmti/run-tests/test-951/app/Android.mk
vmti/run-tests/test-951/app/AndroidManifest.xml
vmti/run-tests/test-981/Android.mk
vmti/run-tests/test-981/AndroidTest.xml
vmti/run-tests/test-981/app/Android.mk
vmti/run-tests/test-981/app/AndroidManifest.xml
vmti/run-tests/test-982/Android.mk
vmti/run-tests/test-982/AndroidTest.xml
vmti/run-tests/test-982/app/Android.mk
vmti/run-tests/test-982/app/AndroidManifest.xml
vmti/run-tests/test-984/Android.mk
vmti/run-tests/test-984/AndroidTest.xml
vmti/run-tests/test-984/app/Android.mk
vmti/run-tests/test-984/app/AndroidManifest.xml
6559c00434a62f0606e50b6a68e157d9243c8404 14-Apr-2017 Andreas Gampe <agampe@google.com> CTS: Add run-test-based JVMTI tests

Add test 913.

Bug: 32072923
Test: m cts
Test: cts-tradefed run cts-dev --module CtsJvmtiRunTest913HostTestCases
Change-Id: I516d66bacde0e0a793b94773672df681a8223051
(cherry picked from commit 9b5f3b30f9375498f302a98a1dfb81fc998a1909)
Merged-In: I1e6bb37ede7f4cf0d390cc7e8ac3d7b1863a3797
vmti/run-tests/test-913/Android.mk
vmti/run-tests/test-913/AndroidTest.xml
vmti/run-tests/test-913/app/Android.mk
vmti/run-tests/test-913/app/AndroidManifest.xml
99d14768179fcccbb78d3c430f1744d097776b71 13-Apr-2017 Andreas Gampe <agampe@google.com> CTS: Add run-test-based JVMTI tests

Add test 910.

Bug: 32072923
Test: m cts
Test: cts-tradefed run cts-dev --module CtsJvmtiRunTest910HostTestCases
Change-Id: Ic66b40b17f77b1f44fbfdea6798fd4f7c5ab1ed9
(cherry picked from commit 39bd5ce511dc4264642ac9d15638865ec1987675)
Merged-In: I1e6bb37ede7f4cf0d390cc7e8ac3d7b1863a3797
vmti/run-tests/test-910/Android.mk
vmti/run-tests/test-910/AndroidTest.xml
vmti/run-tests/test-910/app/Android.mk
vmti/run-tests/test-910/app/AndroidManifest.xml
3557844ccf7845a56008216098f13aa83361681c 27-Apr-2017 Andrii Kulian <akulian@google.com> Merge "Remove tests for onMovedToDisplay callback" into oc-dev
4ab1af34fdda8192ae46b2b7269155066c538d64 13-Apr-2017 Andreas Gampe <agampe@google.com> CTS: Add run-test-based JVMTI tests

Add test 904.

Bug: 32072923
Test: m cts
Test: cts-tradefed run cts-dev --module CtsJvmtiRunTest904HostTestCases
Change-Id: I78c339a66a5585f34ef532da44c6a8d720134932
(cherry picked from commit df5dd957becad3310055e8c7d1d864130444bf04)
Merged-In: I1e6bb37ede7f4cf0d390cc7e8ac3d7b1863a3797
vmti/run-tests/test-904/Android.mk
vmti/run-tests/test-904/AndroidTest.xml
vmti/run-tests/test-904/app/Android.mk
vmti/run-tests/test-904/app/AndroidManifest.xml
ab2bd6be1914b71ae47812cb5123fc5bc18a3e59 11-Apr-2017 Andreas Gampe <agampe@google.com> CTS: Add run-test-based JVMTI tests

Add tests:

* 903 (hello-tagging)
* 905 (object-free)
* 906 (iterate-heap)
* 907 (get-loaded-classes)
* 908 (gc-start-finish)
* 918 (fields)
* 920 (objects)
* 922 (properties)
* 923 (monitors)
* 927 (timers)
* 928 (jni-table)
* 931 (agent-thread)

Test: m cts
Test: cts-tradefed run cts-dev --module CtsJvmtiRunTest903HostTestCases
Test: cts-tradefed run cts-dev --module CtsJvmtiRunTest905HostTestCases
Test: cts-tradefed run cts-dev --module CtsJvmtiRunTest906HostTestCases
Test: cts-tradefed run cts-dev --module CtsJvmtiRunTest907HostTestCases
Test: cts-tradefed run cts-dev --module CtsJvmtiRunTest908HostTestCases
Test: cts-tradefed run cts-dev --module CtsJvmtiRunTest918HostTestCases
Test: cts-tradefed run cts-dev --module CtsJvmtiRunTest920HostTestCases
Test: cts-tradefed run cts-dev --module CtsJvmtiRunTest922HostTestCases
Test: cts-tradefed run cts-dev --module CtsJvmtiRunTest923HostTestCases
Test: cts-tradefed run cts-dev --module CtsJvmtiRunTest927HostTestCases
Test: cts-tradefed run cts-dev --module CtsJvmtiRunTest928HostTestCases
Test: cts-tradefed run cts-dev --module CtsJvmtiRunTest931HostTestCases
Change-Id: I226081d27d583d9855a5145faf1ca785bfd07842
(cherry picked from commit 3433e51de4257549882f3fc9f405f82354a2f6f9)
Merged-In: I1e6bb37ede7f4cf0d390cc7e8ac3d7b1863a3797
vmti/run-tests/Android.mk
vmti/run-tests/test-903/Android.mk
vmti/run-tests/test-903/AndroidTest.xml
vmti/run-tests/test-903/app/Android.mk
vmti/run-tests/test-903/app/AndroidManifest.xml
vmti/run-tests/test-905/Android.mk
vmti/run-tests/test-905/AndroidTest.xml
vmti/run-tests/test-905/app/Android.mk
vmti/run-tests/test-905/app/AndroidManifest.xml
vmti/run-tests/test-906/Android.mk
vmti/run-tests/test-906/AndroidTest.xml
vmti/run-tests/test-906/app/Android.mk
vmti/run-tests/test-906/app/AndroidManifest.xml
vmti/run-tests/test-907/Android.mk
vmti/run-tests/test-907/AndroidTest.xml
vmti/run-tests/test-907/app/Android.mk
vmti/run-tests/test-907/app/AndroidManifest.xml
vmti/run-tests/test-908/Android.mk
vmti/run-tests/test-908/AndroidTest.xml
vmti/run-tests/test-908/app/Android.mk
vmti/run-tests/test-908/app/AndroidManifest.xml
vmti/run-tests/test-918/Android.mk
vmti/run-tests/test-918/AndroidTest.xml
vmti/run-tests/test-918/app/Android.mk
vmti/run-tests/test-918/app/AndroidManifest.xml
vmti/run-tests/test-920/Android.mk
vmti/run-tests/test-920/AndroidTest.xml
vmti/run-tests/test-920/app/Android.mk
vmti/run-tests/test-920/app/AndroidManifest.xml
vmti/run-tests/test-922/Android.mk
vmti/run-tests/test-922/AndroidTest.xml
vmti/run-tests/test-922/app/Android.mk
vmti/run-tests/test-922/app/AndroidManifest.xml
vmti/run-tests/test-923/Android.mk
vmti/run-tests/test-923/AndroidTest.xml
vmti/run-tests/test-923/app/Android.mk
vmti/run-tests/test-923/app/AndroidManifest.xml
vmti/run-tests/test-927/Android.mk
vmti/run-tests/test-927/AndroidTest.xml
vmti/run-tests/test-927/app/Android.mk
vmti/run-tests/test-927/app/AndroidManifest.xml
vmti/run-tests/test-928/Android.mk
vmti/run-tests/test-928/AndroidTest.xml
vmti/run-tests/test-928/app/Android.mk
vmti/run-tests/test-928/app/AndroidManifest.xml
vmti/run-tests/test-931/Android.mk
vmti/run-tests/test-931/AndroidTest.xml
vmti/run-tests/test-931/app/Android.mk
vmti/run-tests/test-931/app/AndroidManifest.xml
d277b3d6e5490f6ee28bdbe650d2418f23dd2d31 11-Apr-2017 Andreas Gampe <agampe@google.com> CTS: Use RunTest Java code from ART

Use the JVMTI run-test Java library exported from ART.
Define a base test case and give a sample manifest.

Test: m cts
Change-Id: Ibbe565213f38f546d68769bbc652201304bd1c63
(cherry picked from commit beef1546bb7da214bb11be769019a43440265495)
Merged-In: I1e6bb37ede7f4cf0d390cc7e8ac3d7b1863a3797
vmti/base/run-test-based-app/Android.mk
vmti/base/run-test-based-app/AndroidManifest.xml
vmti/base/run-test-based-app/src/android/jvmti/cts/JvmtiRunTestBasedTest.java
vmti/base/run-test-based-app/src/art/Main.java
40c3e7a853b3d34a3d28e82209cb2a94a66ed833 05-Apr-2017 Andreas Gampe <agampe@google.com> CTS: Use ART's libctstiagent

Use helper functions from ART's test code.

Bug: 32072923
Test: m cts
Test: cts-tradefed run cts-dev --module CtsJvmtiTrackingHostTestCases
Test: cts-tradefed run cts-dev --module CtsJvmtiTaggingHostTestCases
Test: cts-tradefed run cts-dev --module CtsJvmtiRedefineClassesHostTestCases
Change-Id: I961242ebd27a45506aa6eb1db937ea21a06dc113
(cherry picked from commit 7a10cb40ff6963df539e0b30deaac94cb0a0319b)
Merged-In: I1e6bb37ede7f4cf0d390cc7e8ac3d7b1863a3797
vmti/allocation-tracking/app/src/android/jvmti/cts/JvmtiTrackingTest.java
vmti/allocation-tracking/app/src/art/Main.java
vmti/base/app/src/android/jvmti/cts/JniBindings.java
vmti/base/app/src/android/jvmti/cts/JvmtiTestBase.java
vmti/base/app/src/art/CtsMain.java
vmti/base/jni/Android.mk
vmti/base/jni/common.h
vmti/base/jni/cts_agent.cpp
vmti/base/jni/jni_binder.cpp
vmti/base/jni/jni_binder.h
vmti/base/jni/jni_helper.h
vmti/base/jni/jvmti_helper.cpp
vmti/base/jni/jvmti_helper.h
vmti/base/jni/redefine.cpp
vmti/base/jni/scoped_local_ref.h
vmti/base/jni/scoped_primitive_array.h
vmti/base/jni/scoped_utf_chars.h
vmti/base/jni/tagging.cpp
vmti/base/jni/tracking.cpp
vmti/redefining/app/src/android/jvmti/cts/JvmtiRedefineClassesTest.java
vmti/redefining/app/src/art/Main.java
vmti/tagging/app/src/android/jvmti/cts/JvmtiTaggingTest.java
vmti/tagging/app/src/art/Main.java
14c0c3a2103ce4c9481865d4d1424a12fd9223f5 06-Apr-2017 Andreas Gampe <agampe@google.com> CTS: Use cmd activity instead of am

Switch to using cmd activity. It's the preferred way, and only way
on AOSP.

Bug: 32072923
Test: m cts
Test: cts-tradefed run cts-dev --module CtsJvmtiTrackingHostTestCases
Change-Id: Ie15126ba742cdf2a18c00056b6b099d84f4bf698
(cherry picked from commit faaea3e88f4c8674f19beafebb0f0b1c8c81ca02)
Merged-In: I1e6bb37ede7f4cf0d390cc7e8ac3d7b1863a3797
vmti/base/host/src/android/jvmti/cts/JvmtiHostTest.java
430012c5d37e3052c3107260973318169fe0bcc8 04-Apr-2017 Andreas Gampe <agampe@google.com> CTS: Fix JVMTI CFLAGS

There is no second underscore in LOCAL_CFLAGS...

Bug: 32072923
Test: m cts
Change-Id: I091ffb46deef3cdf2aa646f3227f059681375531
(cherry picked from commit 89e553261f0d2c15ba6b9488b0669c21863d49be)
Merged-In: I1e6bb37ede7f4cf0d390cc7e8ac3d7b1863a3797
vmti/base/jni/Android.mk
vmti/base/jni/cts_agent.cpp
0e8353830c6cfcab844f8dfc844b12b1b9e50c9a 27-Apr-2017 Jeff Sharkey <jsharkey@android.com> Respond to API council feedback.

Move aggressive allocation to @SystemApi, which means we can hide
the "flags" API variants.

Remove UUID APIs, since we should use existing Serializable APIs.

Relax permission checks to allow apps to ask for their own stats.

Improve docs.

Test: cts-tradefed run commandAndExit cts-dev -m CtsAppSecurityHostTestCases -t android.appsecurity.cts.StorageHostTest
Bug: 37534687, 37534941, 37718184, 37738770
Change-Id: Ief858884f3cb5f965ea791c5a15d9f8d96565086
ppsecurity/test-apps/StorageApp/src/com/android/cts/storageapp/StorageTest.java
ppsecurity/test-apps/StorageApp/src/com/android/cts/storageapp/Utils.java
ppsecurity/test-apps/StorageStatsApp/src/com/android/cts/storagestatsapp/StorageStatsTest.java
96a62f4493f15af75fe78077a9a8c8901c0210e7 27-Apr-2017 Igor Murashkin <iam@google.com> Merge "compilation: Fix selinux denial error for primary.prof" into oc-dev
09a86cb72068f7679106aeaf419a4d70b0fddef7 31-Mar-2017 Pavel Grafov <pgrafov@google.com> CTS test for DISALLOW_BLUETOOTH_SHARING.

1) Added a test to ensure that when the restriction is set, bluetooth
sharing activity is not offered and vice versa.
2) Added a managed profile case to user restrictions test.

Change-Id: I96e9b1b45c2aef2e6596d498c7477cde1d56c2bb
Bug: 36249732
Test: run cts -m CtsDevicePolicyManagerTestCases -t com.android.cts.devicepolicy.ManagedProfileTest#testBluetoothSharingRestriction
Test: run cts -m CtsDevicePolicyManagerTestCases -t com.android.cts.devicepolicy.UserRestrictionsTest
Merged-In: I96e9b1b45c2aef2e6596d498c7477cde1d56c2bb
(cherry picked from commit 2ac63f7fac15eb5ec87f7717e597d60f50f83071)
evicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/userrestrictions/BaseUserRestrictionsTest.java
evicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/userrestrictions/ManagedProfileOwnerUserRestrictionsTest.java
evicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/BluetoothRestrictionTest.java
evicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/BluetoothSharingRestrictionPrimaryProfileTest.java
evicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/BluetoothSharingRestrictionTest.java
evicepolicy/src/com/android/cts/devicepolicy/ManagedProfileTest.java
evicepolicy/src/com/android/cts/devicepolicy/UserRestrictionsTest.java
e3c7dcb4bb33b7680678ab04a34ab315dbb6a66e 27-Apr-2017 Jorim Jaggi <jjaggi@google.com> Use new API

Test: KeyguardLockedTests
Bug: 37673408
Change-Id: I7580f7ea3154174bab2f0ba397171073675ac09c
ervices/activityandwindowmanager/activitymanager/app/src/android/server/cts/DismissKeyguardMethodActivity.java
d674d2cf5b5d2df200b76c63489cbe0cd88f16fe 27-Apr-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Dismiss keyguard right before startActivity" into oc-dev
8d06ba5578bde12f7c07df00573f1c357e168072 27-Apr-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Cts to verify assist service can't capture screen when the policy is set" into oc-dev
08d03c8cc4a6e0247754cf62cb2b6efc8c50aea4 26-Apr-2017 Tony Mak <tonymak@google.com> Dismiss keyguard right before startActivity

Screenshots suggest keyguard is in foreground when it failed,
dismiss the keyguard right before we start the activity to see if it
can fix the flakiness. And the test is now working even the screen is OFF.

Also removed the log as the original bug is fixed.

Test: cts-tradefed run cts-dev --module DevicePolicyManager --test com.android.cts.devicepolicy.MixedManagedProfileTest#testScreenCaptureDisabled

Fix: 34213859

Change-Id: I686ac9e3eeed6e4b33c3db2b0527647af6f7553e
evicepolicy/src/com/android/cts/devicepolicy/BaseDevicePolicyTest.java
evicepolicy/src/com/android/cts/devicepolicy/DeviceAndProfileOwnerTest.java
c0516662ac87e2af35ded396efa660aad02d5c40 27-Apr-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge changes from topics 'comp_permission_change', 'comp_affiliation_api_change' into oc-dev

* changes:
Update CTS for bindDeviceAdminService change
Update CTS regards to API change of setAffiliationIds and getAffiliationIds
d41d152d92b1b2fb66e4d8f6a9a40eae715b4085 27-Apr-2017 Tadashi G. Takaoka <takaoka@google.com> Merge "Dismiss lockscreen before running host-side CTS" into oc-dev
1d44eddb728ec6bfc00a5728eaa1d5dad90ee6a4 26-Apr-2017 Tadashi G. Takaoka <takaoka@google.com> Dismiss lockscreen before running host-side CTS

Test APK can run on screen-locked device but test activity can't be
started. Lock screen has to be dismissed before running test activity.

Fixes: 37647307
Test: Running CTS on screen-locked device.
$ cts-tradefed run singleCommand cts-dev -m CtsInputMethodServiceHostTestCases

Change-Id: I0c6cf4ee0d63ba072e305cc60f4bfa8a0dbcb27f
nputmethodservice/hostside/AndroidTest.xml
f0cc39f907efdce213a90401c93f74225916970b 06-Apr-2017 Jaewan Kim <jaewan@google.com> Initial commit of the host-side tests for MediaSessionManager

Bug: 36227938
Test: MediaSessionManagerHostTest.testGetActiveSessions passes with the
fix, but fails without the fix
Change-Id: I5ac04a7b4752013ebcea1818696eb71b3f51125b
edia/Android.mk
edia/AndroidTest.xml
edia/app/MediaSessionTest/Android.mk
edia/app/MediaSessionTest/AndroidManifest.xml
edia/app/MediaSessionTest/src/android/media/session/cts/MediaSessionManagerTest.java
edia/app/MediaSessionTestHelper/Android.mk
edia/app/MediaSessionTestHelper/AndroidManifest.xml
edia/app/MediaSessionTestHelper/res/values/strings.xml
edia/app/MediaSessionTestHelper/src/android/media/app/media_session_test_helper/MediaSessionTestHelperService.java
edia/common/android/media/cts/MediaSessionTestHelperConstants.java
edia/src/android/media/cts/BaseMultiUserTest.java
edia/src/android/media/session/cts/MediaSessionManagerHostTest.java
e66f91cb75872da030759c1087e9a0e0de847400 27-Apr-2017 Andrii Kulian <akulian@google.com> Remove tests for onMovedToDisplay callback

It is hidden in O, so tests should be removed.

Bug: 37638275
Test: android.server.cts.ActivityManagerDisplayTests
Change-Id: I9f4b63fffa8c5fd1dac1bbad7e46e1cac202620d
ervices/activityandwindowmanager/activitymanager/app/src/android/server/cts/AbstractLifecycleLogActivity.java
ervices/activityandwindowmanager/activitymanager/app/src/android/server/cts/LifecycleLogView.java
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/ActivityManagerDisplayTests.java
de015f7587cab1a1eea5e0785dbcf22b1599b651 25-Apr-2017 Winson Chung <winsonc@google.com> Updating CTS to reflect changes in PiP api.

Bug: 35765211
Bug: 37638323
Bug: 37637423
Bug: 37636674
Bug: 36342780
Test: android.server.cts.ActivityManagerPinnedStackTests
Test: android.app.cts.PictureInPictureParamsBuilderTest
Change-Id: Icfa9b5d30fd0918351562e729012422e617164dc
ervices/activityandwindowmanager/activitymanager/app/src/android/server/cts/PipActivity.java
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/ActivityManagerPinnedStackTests.java
ervices/activityandwindowmanager/util/src/android/server/cts/ActivityManagerState.java
51c0c5a0d0d17645bb675f6867a2a7031ecd1780 25-Apr-2017 Winson Chung <winsonc@google.com> Check that activity PiP state matches dispatched state.

Bug: 36845078
Test: android.server.cts.ActivityManagerPinnedStackTests
Change-Id: I1d6a1ab0776d632a89c56cf0972a5eb0ad427f89
ervices/activityandwindowmanager/activitymanager/app/src/android/server/cts/PipActivity.java
dc861f0eb087bda4dacf1c51e4b30db07ff149ee 26-Apr-2017 Pavel Grafov <pgrafov@google.com> Fix CTS test according to API change.

String -> InetAddress in network events.

Bug: 37625453
Test: cts-tradefed run cts -m CtsDevicePolicyManagerTestCases -t com.android.cts.devicepolicy.DeviceOwnerTest#testNetworkLoggingWithSingleUser
Change-Id: Ib606de531305e0163e8037ed18fbcbe93662d4aa
evicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/NetworkLoggingTest.java
ad935e1cbfa44efb8cd3f9fcee5881ee41bf49db 24-Apr-2017 Matthew Ng <ngmatthew@google.com> Dismiss docked stack when ShowWhenLocked activity is over keyguard (2/2)

Activities with ShowWhenLocked flag when docked should dismiss the
docked stack and appear after screen turns back on. This incorporates
missing code from ag/1013634 that was missed during refactoring.

Change-Id: I09ee0308d67f23c29785596b86d61655c3b436bb
Fixes: 36166079
Test: run-test CtsServicesHostTestCases
android.server.cts.KeyguardTests#testShowWhenLockedActivityWhileSplit
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/KeyguardTests.java
3621ed0c7f3a3a864cb41ee654a3995d76b548bd 24-Apr-2017 Tony Mak <tonymak@google.com> Cts to verify assist service can't capture screen when the policy is set

Test: cts-tradefed run cts-dev --module DevicePolicyManager --test com.android.cts.devicepolicy.MixedManagedProfileOwnerTest#testScreenCaptureDisabled_assist_allowedPrimaryUser
Test: cts-tradefed run cts-dev --module DevicePolicyManager --test com.android.cts.devicepolicy.MixedDeviceOwnerTest#testScreenCaptureDisabled_assist
Test: cts-tradefed run cts-dev --module DevicePolicyManager --test com.android.cts.devicepolicy.MixedManagedProfileOwnerTest#testScreenCaptureDisabled_assist
Test: cts-tradefed run cts-dev --module DevicePolicyManager --test com.android.cts.devicepolicy.MixedProfileOwnerTest#testScreenCaptureDisabled_assist

Fix: 22840172

Change-Id: I596e3773cd3045e8431d2ce6621cec53c125567c
evicepolicy/app/Assistant/Android.mk
evicepolicy/app/Assistant/AndroidManifest.xml
evicepolicy/app/Assistant/res/xml/interaction_service.xml
evicepolicy/app/Assistant/src/com/android/cts/devicepolicy/assistapp/MyInteractionService.java
evicepolicy/app/Assistant/src/com/android/cts/devicepolicy/assistapp/MyInteractionSessionService.java
evicepolicy/app/Assistant/src/com/android/cts/devicepolicy/assistapp/SettingsActivity.java
evicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/AssistScreenCaptureDisabledTest.java
evicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/ScreenCaptureDisabledTest.java
evicepolicy/src/com/android/cts/devicepolicy/DeviceAndProfileOwnerTest.java
evicepolicy/src/com/android/cts/devicepolicy/MixedManagedProfileOwnerTest.java
4703f3f991513b3878d181c0b03fb77dd5abc8f4 25-Apr-2017 Tony Mak <tonymak@google.com> Update CTS for bindDeviceAdminService change

Test: cts-tradefed run cts-dev --module DevicePolicyManager --test com.android.cts.devicepolicy.DeviceOwnerPlusProfileOwnerTest

Fix: 37624960

Change-Id: Iab1f6e825f648808798ebbcade80a570c7e3043e
evicepolicy/app/CorpOwnedManagedProfile/AndroidManifest.xml
evicepolicy/app/CorpOwnedManagedProfile/src/com/android/cts/comp/BindDeviceAdminServiceFailsTest.java
evicepolicy/app/CorpOwnedManagedProfile/src/com/android/cts/comp/BindDeviceAdminServiceGoodSetupTest.java
evicepolicy/app/CorpOwnedManagedProfile/src/com/android/cts/comp/CrossUserService.java
evicepolicy/app/CorpOwnedManagedProfile/src/com/android/cts/comp/ExportedCrossUserService.java
evicepolicy/app/CorpOwnedManagedProfile/src/com/android/cts/comp/ProtectedCrossUserService.java
evicepolicy/app/CorpOwnedManagedProfile/src/com/android/cts/comp/UnprotectedCrossUserService.java
90e68aee31ea56235d968229b90fca947f012cfe 25-Apr-2017 Tony Mak <tonymak@google.com> Update CTS regards to API change of setAffiliationIds and getAffiliationIds

Test: cts-tradefed run cts-dev --module DevicePolicyManager --test com.android.cts.devicepolicy.DeviceOwnerTest#testLockTask_unaffiliatedUser
Test: cts-tradefed run cts-dev --module DevicePolicyManager --test com.android.cts.devicepolicy.DeviceOwnerPlusProfileOwnerTest
Test: cts-tradefed run cts-dev --module DevicePolicyManager --test com.android.cts.devicepolicy.DeviceOwnerTest#testSetAffiliationId_IllegalArgumentException

Bug: 37622682

Change-Id: I6c3377f29851e2d4800daa3a6a10da3b95231222
evicepolicy/app/CorpOwnedManagedProfile/src/com/android/cts/comp/provisioning/AffiliationTest.java
evicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/AffiliationTest.java
evicepolicy/src/com/android/cts/devicepolicy/DeviceOwnerTest.java
dc63672e0898b3450d3016db9ca837b99a6100fe 25-Apr-2017 Andrew Scull <ascull@google.com> Update DPM.lockNow() flag name.

FLAG_EVICT_CE_KEY -> FLAG_EVICT_CREDENTIAL_ENCRYPTION_KEY

Test: Build success
Test: cts-tradefed run cts-dev -m CtsDevicePolicyManagerTestCases -t com.android.cts.devicepolicy.ManagedProfileTest#testLockNowWithKeyEviction
Bug: 37621349
Change-Id: I9e6199c5f45b0c933f8904e111d3c3da60087f78
evicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/LockNowTest.java
2d9219e449bbaa18bdf10b1701e40f2c061ed974 20-Apr-2017 CT_Huge <hank_chu@asus.com> Update the mdpi and tvdpi resource files

Change 361692 fix the CTS android.theme.cts.ThemeHostTest fail
caused by the 2017#4 CVE-2016-10244.

However, the mdpi and tvdpi devices need not only the aboved
fix change but updating resource files to PASS the test case.

Bug: 36773190

Change-Id: Ie1ff8d87c7654bc028e2fdf706ed0f1f4814a64e
heme/assets/24/mdpi.zip
heme/assets/24/tvdpi.zip
74f4a41ec144baa5c05b359eb47378bf268b4ce4 26-Apr-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Test implicitly exposed activities" into oc-dev
d07e88c2895da20b8872f48a1e24920153a1dbb6 26-Apr-2017 Igor Murashkin <iam@google.com> compilation: Fix selinux denial error for primary.prof

The test was incorrectly setting up the security context for the
profiles, as evidenced by these logcat errors:

tcontext=u:object_r:shell_data_file:s0 tclass=file permissive=0
04-25 21:35:38.347 9736 9736 W profman : type=1400 audit(0.0:141):
avc: denied { read } for
path="/data/misc/profiles/cur/0/android.cts.compilation/primary.prof"
dev="dm-2" ino=3014661 scontext=u:r:profman:s0
tcontext=u:object_r:shell_data_file:s0 tclass=file permissive=0

To fix, use 'cp' instead of 'mv' after writing file, which will
inherit security context of the directory its placed into (at least
it seems to do so for /data/misc/profiles).

Bug: 37425296
Test: cts-tradefed run cts -m CtsCompilationTestCases
Change-Id: I9c3a21217a7f6baca78a4fe0adbce526bd9412db
ompilation/src/android/cts/compilation/AdbRootDependentCompilationTest.java
5bfe0efc4d11a53f764d14bec572c8aac9a38ee1 26-Apr-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "DeviceAdminService must be protected with BIND_DEVICE_ADMIN." into oc-dev
9a09cfea1160e713edfbfad3a7a5c5aba4843775 25-Apr-2017 Makoto Onuki <omakoto@google.com> DeviceAdminService must be protected with BIND_DEVICE_ADMIN.

Bug: 37625902
Bug: 36226832

Test: cts-tradefed run cts-dev --skip-device-info --skip-preconditions --skip-system-status-check com.android.compatibility.common.tradefed.targetprep.NetworkConnectivityChecker -a armeabi-v7a -l DEBUG -m CtsDevicePolicyManagerTestCases -t com.android.cts.devicepolicy.DeviceAdminServiceDeviceOwnerTest
Test: cts-tradefed run cts-dev --skip-device-info --skip-preconditions --skip-system-status-check com.android.compatibility.common.tradefed.targetprep.NetworkConnectivityChecker -a armeabi-v7a -l DEBUG -m CtsDevicePolicyManagerTestCases -t com.android.cts.devicepolicy.DeviceAdminServiceProfileOwnerTest
Change-Id: I02b8f6d9ba9e8e4b8d99ce91d98e47471172ec09
evicepolicy/app/DeviceAdminService/package1/AndroidManifest.xml
evicepolicy/app/DeviceAdminService/package2/AndroidManifest.xml
evicepolicy/app/DeviceAdminService/package3/AndroidManifest.xml
evicepolicy/app/DeviceAdminService/package4/AndroidManifest.xml
evicepolicy/app/DeviceAdminService/packageb/AndroidManifest.xml
82777c4126db12636f6fbd769d7be2e4c00db713 25-Apr-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Bring back logic removed by botched merge." into oc-dev
645b13e46b1d8fcc927231fa8db9009cbced01f5 25-Apr-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Fix testDisallowAutofill_allowed CTS test." into oc-dev
19471d147871d7b745b503187af033420a38be5a 25-Apr-2017 Adam Lesinski <adamlesinski@google.com> Merge "Add a hostside test for fontScale config changes" into oc-dev
d9e0e76909306728e7a58e085d21899e07ff33e7 25-Apr-2017 Treehugger Robot <treehugger-gerrit@google.com> Merge "Revert "Advancing our amazing bet on PINs." DO NOT MERGE" into nougat-mr1-cts-dev
81e19402a28a643db06226b39c1abb0aa6879666 25-Apr-2017 Todd Kennedy <toddke@google.com> Test implicitly exposed activities

Implicitly exposed activities should not be startable by specifying
a package or component.

Bug: b_37343345
Test: cts-tradefed run commandAndExit cts-dev -m CtsAppSecurityHostTestCases -t android.appsecurity.cts.EphemeralTest
Change-Id: I742310e88f183316f155ac17be44c3b0ea376d68
ppsecurity/src/android/appsecurity/cts/EphemeralTest.java
ppsecurity/test-apps/EphemeralTestApp/EphemeralApp1/src/com/android/cts/ephemeralapp1/ClientTest.java
ppsecurity/test-apps/EphemeralTestApp/ImplicitlyExposedApp/Android.mk
ppsecurity/test-apps/EphemeralTestApp/ImplicitlyExposedApp/AndroidManifest.xml
ppsecurity/test-apps/EphemeralTestApp/ImplicitlyExposedApp/res/values/strings.xml
ppsecurity/test-apps/EphemeralTestApp/ImplicitlyExposedApp/src/com/android/cts/implicitapp/ImplicitActivity.java
679bbe84f4daca5f3a3f7f44401eff0e82441848 25-Apr-2017 Joshua Schwarz <joshuaschwarz@google.com> Revert "Advancing our amazing bet on PINs."
DO NOT MERGE

This reverts commit f487df0ac3d860237c0cc96cb151fc27b6ef9b97.

Change-Id: I61745c1e5a3636a8922c47b7c609504783242ce6
ppsecurity/test-apps/EncryptionApp/src/com/android/cts/encryptionapp/EncryptionAppTest.java
91760dcc4db0c4f7f5062976d610a2844942f9cf 25-Apr-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Attempt to de-flaky GraphicStatsValidationTest" into oc-dev
b4b0f7f69ae9958b2111664ab9b1c7f252b3eb95 25-Apr-2017 Jeff Sharkey <jsharkey@android.com> Bring back logic removed by botched merge.

Test: cts-tradefed run commandAndExit cts-dev -m CtsAppSecurityHostTestCases -t android.appsecurity.cts.DirectBootHostTest#testDirectBootNative
Bug: 36789738
Change-Id: Ic6576736cc840a5602893448bcd635b6db8e3092
ppsecurity/test-apps/EncryptionApp/src/com/android/cts/encryptionapp/EncryptionAppTest.java
ffce6240e676739ce5d5bfd11daed6c0d6826ca3 25-Apr-2017 Jaehun Rhee <jaehun.rhee@samsung.com> Modify timeout of testDirectBootEmulated test case

Changing the timeout from 60 sec to 150 sec as there are devices that take longer for boot complete to happen.

BUG=37220047

Change-Id: Id9b93b91b770a1514cd05b1b1937d80274872afe
ppsecurity/test-apps/EncryptionApp/src/com/android/cts/encryptionapp/EncryptionAppTest.java
5b72ba4bb46657ca96c7295972cde1ec25be0fe3 25-Apr-2017 Pavel Grafov <pgrafov@google.com> Fix testDisallowAutofill_allowed CTS test.

Added a small delay to let settings save before checking its value.

Bug: 37659751
Test: cts-tradefed run cts -m CtsDevicePolicyManagerTestCases -t com.android.cts.devicepolicy.MixedManagedProfileOwnerTest#testDisallowAutofill_allowed
Change-Id: I960a4e4c42233402b3dea2d9889bae9998d7587c
evicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/AutofillRestrictionsTest.java
1beb10346c9f9ca4c35f8d3f26f5fa11de802dc4 25-Apr-2017 Pavel Grafov <pgrafov@google.com> Merge "Fix CTS Mixed*OwnerTest#testPackageInstallUserRestrictions." into oc-dev
0f28312113a744f8283e04953d716bf25f48ad19 25-Apr-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Hide deprecated APIs." into oc-dev
9dfeffacfa66c4ae0d16dbc8777704ff76e60ab6 25-Apr-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Test content provider resolution" into oc-dev
e8da3ac6297928d465933d13fb348c0a9bdd1921 22-Apr-2017 John Reck <jreck@google.com> Attempt to de-flaky GraphicStatsValidationTest

Fix argument ordering on assertEquals.

Switch to FrameMetricsObserver to listen
for real draw completed signal. This results
in spacing out frames on slower to devices
to avoid frame drops from queue stuffing
detection.

Strict assert number of frames on the activity
side to validate that the activity behaved appropriately
to determine if the flakiness is rendering-side or
reporting-side.

Test: this
Bug: 37438953

Change-Id: Ia3e8e51b1df92da15542915b2537ccce528d67bc
ncident/apps/graphicsstatsapp/src/com/android/server/cts/device/graphicsstats/DrawFramesActivity.java
ncident/apps/graphicsstatsapp/src/com/android/server/cts/device/graphicsstats/SimpleDrawFrameTests.java
ncident/src/com/android/server/cts/GraphicsStatsValidationTest.java
0de164fe555ee0522edd796fac60d2869b7c5883 24-Apr-2017 Nick Kralevich <nnk@google.com> Merge "Fix SELinuxHostTest#testNetdDomain failure" into nougat-mr1-cts-dev am: 3d7983f29b am: 7d231295d5
am: d56b67b635

Change-Id: I971e1ee22f974ba2d277c8f2cf296ce077efdeab
fb178be78a65ada2e9f385acff16750985101527 24-Apr-2017 Romain Fliedel <rfliedel@freebox.fr> fix getNodeTimed retry in BasePermissionsTest

The current logic is to retry finding a node for a given time.
The getNodeTimed is reentrant, and before this patch
if we were retrying finding a node in a child
we ended up spending all the given time trying without actually
retrying from the root node.

Also retry timeout was the same as the scroll timeout, so in case
of scroll timeout, no retry was ever attempted.

Change-Id: I5f20f04cb6d5b8346f0f65532c0607dc291fc1c7
Signed-off-by: Romain Fliedel <rfliedel@freebox.fr>
ppsecurity/test-apps/UsePermissionApp23/src/com/android/cts/usepermission/BasePermissionsTest.java
7d231295d5148df9778ce250bc54771bce90b427 24-Apr-2017 Nick Kralevich <nnk@google.com> Merge "Fix SELinuxHostTest#testNetdDomain failure" into nougat-mr1-cts-dev
am: 3d7983f29b

Change-Id: Ieb8872ccd84d1c21c566fff23ccd96f10c4ad5ce
af18a16bc7819fcb4cc23e7654ada7f12f2e557b 24-Apr-2017 Todd Kennedy <toddke@google.com> Test content provider resolution

Bug: 37547666
Test: cts-tradefed run commandAndExit cts-dev -m CtsAppSecurityHostTestCases -t android.appsecurity.cts.EphemeralTest#testEphemeralQuery
Change-Id: Ia258f891565d45a7278cb319b6307b665efb5670
ppsecurity/test-apps/EphemeralTestApp/EphemeralApp1/src/com/android/cts/ephemeralapp1/ClientTest.java
b1c76f16f45d266358ced4993f01b1f0bb9ed4a6 24-Apr-2017 Pavel Grafov <pgrafov@google.com> Fix CTS Mixed*OwnerTest#testPackageInstallUserRestrictions.

REQUEST_INSTALL_PACKAGES is required in manifest to install packages.

Bug: 32758404
Test: cts-tradefed run cts -m CtsDevicePolicyManagerTestCases -t com.android.cts.devicepolicy.MixedDeviceOwnerTest#testPackageInstallUserRestrictions
Change-Id: I42eab74f6a010287a146d5b0f29e448ccf6238e9
evicepolicy/app/PackageInstaller/AndroidManifest.xml
899beb22fa3903c2ea5e11484566bab819650342 24-Apr-2017 Greg Plesur <plesur@google.com> Increase UPDATE_LOCK_TASK_TIMEOUT_MILLIS in testUpdateWhiteListing().

That test is flakey on Wear; 2 seconds looks more stable.

BUG: 37252458

Change-Id: I5d3c95efd1d5904a1d1258588cef7deb9226931b
evicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/LockTaskTest.java
706e514e420037d620afbc42d22d262d8de913f7 24-Apr-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Added some test for pip lockscreen interaction." into oc-dev
975a725ed9bff8e719c7ee3bebee421ea1310249 22-Apr-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Clear more storage before trying to fill disk." into oc-dev
8cca0e4349ef8e3be1c5496c12ee95d3777eaa2b 22-Apr-2017 Felipe Leme <felipeal@google.com> Hide deprecated APIs.

Test: CtsAutoFillServiceTestCases pass

Bug: 37563972

Change-Id: Ifd7e6c4663269f60f866b1bad1eed475e9431375
evicepolicy/app/AutofillApp/src/com/android/cts/devicepolicy/autofillapp/SimpleAutofillService.java
b0f4bb337d04d82987b18f6fff012c5c04959d54 22-Apr-2017 Andrii Kulian <akulian@google.com> Merge "Test non-resizeable activities on secondary displays" into oc-dev
198aec24b8d9d39b1e263d285a696fdd59cec861 21-Apr-2017 Jeff Sharkey <jsharkey@google.com> Merge "Add test for getAppBytes()." into oc-dev
58e9a0eb2264cd046cfcef9bdb2e1c9d95337094 21-Apr-2017 Jeff Sharkey <jsharkey@android.com> Clear more storage before trying to fill disk.

If the total disk usage by everyone else (outside the test app) is
larger than 10%, then it can't really verify the abusive behavior.

Current hunch is that there are other files lurking on external
storage, so try clearing those.

Test: cts-tradefed run commandAndExit cts-dev -m CtsAppSecurityHostTestCases -t android.appsecurity.cts.StorageHostTest
Bug: 37567271, 37566783
Change-Id: I84205475de0ea9c74ff6765a1edf0e2028c9a9fa
ppsecurity/src/android/appsecurity/cts/StorageHostTest.java
67fcb49aae5e29e585249f9f85b38db66cc2df06 21-Apr-2017 Wale Ogunwale <ogunwale@google.com> Added some test for pip lockscreen interaction.

Bug: 37208509
Test: This is it!
Change-Id: I1b8c1974db48bbb563695dbe1427d8bf26ca2576
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/KeyguardLockedTests.java
d82c5956c79658ba9519182ba826aa94a42e14a5 21-Apr-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Test newly added batterystats background stats" into oc-dev
4299239c89c77fac27babd0880af5d94273cdf0b 21-Apr-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Batterystats CTS test: background BLE scan" into oc-dev
6ec7be5f3cbc9f430453f0be464f39155f93e5e2 21-Apr-2017 Sudheer Shanka <sudheersai@google.com> Merge "Revert "Relax the check of network availability in CtsHostsideNetworkTests."" into oc-dev
4c8d261ef8cd88745b0bd805c28620522c57f642 28-Feb-2017 Nick Kralevich <nnk@google.com> Fix SELinuxHostTest#testNetdDomain failure

netd exec()s various iptables commands. Make sure they're allowed so we
don't have CTS failures.

Fixes:

Stack Trace:
=========
junit.framework.AssertionFailedError: Expected 1 process in SELinux
domain "u:r:netd:s0" Found "[label: u:r:netd:s0 user: root pid: 594
ppid: 1 cmd: /system/bin/netd, label: u:r:netd:s0 user: root pid: 968
ppid: 594 cmd: /system/bin/iptables-restore, label: u:r:netd:s0 user:
root pid: 969 ppid: 594 cmd: /system/bin/ip6tables-restore]"
expected:<1> but was:<3>
at junit.framework.Assert.fail(Assert.java:57)
at junit.framework.Assert.failNotEquals(Assert.java:329)
at junit.framework.Assert.assertEquals(Assert.java:78)
at junit.framework.Assert.assertEquals(Assert.java:234)
at junit.framework.TestCase.assertEquals(TestCase.java:401)
at android.security.cts.SELinuxHostTest.assertDomainOne(SELinuxHostTest.java:544)
at android.security.cts.SELinuxHostTest.testNetdDomain(SELinuxHostTest.java:700)

Bug: 34721525
Test: CTS compiles
Change-Id: I2b418affe21e1c6e3f64778fbf0e3b02f95472a6
(cherry picked from commit fe443b2180a7171410c74493af80aeae18b5f304)
ecurity/src/android/security/cts/SELinuxHostTest.java
62cd301c5ee9c36240186c87b5712c0134791337 20-Apr-2017 Chad Brubaker <cbrubaker@google.com> Merge "Track registerReceiver changes" into oc-dev
345ad27229d1d5abee87ef2907f69e9f4480e94c 20-Apr-2017 Bookatz <bookatz@google.com> Batterystats CTS test: background BLE scan

Performs BLE scan when the app is in the foreground and
background and ensures that the counts are incremented correctly.

Change-Id: I69f4da149e041be6e59de0f229a995f97c4f5f8c
Fixes: 35679958
Test: run cts-dev -m CtsIncidentHostTestCases -t com.android.server.cts.BatteryStatsValidationTest
ncident/apps/batterystatsapp/AndroidManifest.xml
ncident/apps/batterystatsapp/src/com/android/server/cts/device/batterystats/BatteryStatsBgVsFgActions.java
ncident/src/com/android/server/cts/BatteryStatsValidationTest.java
7332eabd8adfd9087942f23742d8428a95e38d85 20-Apr-2017 Bryce Lee <brycelee@google.com> Merge "Remove visibleBehindHome tests." into oc-dev
ab53bba172412e6319d68ba2a6f8862b982297e3 20-Apr-2017 Sam Lin <samlin@google.com> DO NOT MERGE: Make the tests permissive for N MR1 and MR2 am: e0caf3aaff
am: d6428ff7ae

Change-Id: Icbc732125f31cc89025595cd2c6fcc060cee4f37
007847d233f10bfd728e6f6bffd3597b16fb34b0 20-Apr-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Address API council comments - CTS" into oc-dev
e0caf3aaffd1dcc74efc7b47940a1dc00ede7681 18-Apr-2017 Sam Lin <samlin@google.com> DO NOT MERGE: Make the tests permissive for N MR1 and MR2

1. android.security.cts.SELinuxHostTest#testAospFileContexts
2. android.security.cts.SELinuxHostTest#testAospServiceContexts

Bug:35640567
Test: Build CTS
Test: Both Sailfish NHG47K and NOF27B passed the following tests
Test: run cts -o -m CtsSecurityHostTestCases -t android.security.cts.SELinuxHostTest#testAospFileContexts
Test: run cts -o -m CtsSecurityHostTestCases -t android.security.cts.SELinuxHostTest#testAospServiceContexts
Change-Id: I7890d1bd6ce76e92b93ee5084e92b0879c2347a5
ecurity/res/ab3857191_file_contexts.bin
ecurity/res/ab3857191_service_contexts
ecurity/src/android/security/cts/SELinuxHostTest.java
82af4c32f587af32d2940b5e38b1fb8be0703c3e 19-Apr-2017 Andrii Kulian <akulian@google.com> Test non-resizeable activities on secondary displays

Test that launching or moving a non-resizeable activity to a
secondary display is not allowed. Check that it also will
dismiss the docked stack if present.

Bug: 36777179
Test: android.server.cts.ActivityManagerDisplayTests
Test: #testLaunchNonResizeableActivityOnSecondaryDisplay
Test: #testLaunchNonResizeableActivityWithSplitScreen
Test: #testMoveNonResizeableActivityToSecondaryDisplay
Change-Id: Ifcbaa6e3c64827432c42fb212f8fa738c1af9623
ervices/activityandwindowmanager/activitymanager/appSecondUid/AndroidManifest.xml
ervices/activityandwindowmanager/activitymanager/appThirdUid/AndroidManifest.xml
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/ActivityManagerDisplayTests.java
84aede76afd2204bc43a937dd4166f483ea1823e 20-Apr-2017 Bryce Lee <brycelee@google.com> Remove visibleBehindHome tests.

The launcher activity for TV is no longer compatible with this mode
and the visibleBehind logic has been deprecated.

Change-Id: Iedc7aba8df387510b360628812ff04e8a6fcdf51
Fixes: 37433505
Test: cts/hostsidetests/services/activityandwindowmanager/util/run-test CtsServicesHostTestCases android.server.cts.ActivityManagerActivityVisibilityTests
ervices/activityandwindowmanager/activitymanager/app/AndroidManifest.xml
ervices/activityandwindowmanager/activitymanager/app/src/android/server/cts/VisibleBehindActivity.java
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/ActivityManagerActivityVisibilityTests.java
f6853730010af475cacbf15f39f28d5f6b8285b8 20-Apr-2017 Winson Chung <winsonc@google.com> Merge "Update CTS to not check focusability of the pinned stack when entering PiP" into oc-dev
3d14ed622b9659f31bb5cd24fb216ab9496df953 19-Apr-2017 Winson Chung <winsonc@google.com> Update CTS to not check focusability of the pinned stack when entering PiP

Bug: 37345544
Test: android.server.cts.ActivityManagerPinnedStackTests
Change-Id: I9615b79e86b1df05d1f1a3d3e72640a23563dcd3
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/ActivityManagerPinnedStackTests.java
49abfedd5abcb4df82519d7af986eae5bed1fc3e 18-Apr-2017 Sam Lin <samlin@google.com> DO NOT MERGE: Make the tests permissive for N MR1 and MR2

1. android.security.cts.SELinuxHostTest#testAospFileContexts
2. android.security.cts.SELinuxHostTest#testAospServiceContexts

Bug:35640567
Test: Build CTS
Test: Both Sailfish NHG47K and NOF27B passed the following tests
Test: run cts -o -m CtsSecurityHostTestCases -t android.security.cts.SELinuxHostTest#testAospFileContexts
Test: run cts -o -m CtsSecurityHostTestCases -t android.security.cts.SELinuxHostTest#testAospServiceContexts
Change-Id: I7890d1bd6ce76e92b93ee5084e92b0879c2347a5
ecurity/res/ab3857191_file_contexts.bin
ecurity/res/ab3857191_service_contexts
ecurity/src/android/security/cts/SELinuxHostTest.java
8861b4ec3e3e9d5e1f25df24f7764b29db2d858e 19-Apr-2017 Chad Brubaker <cbrubaker@google.com> Merge "Add basic webview test for Instant Apps" into oc-dev
32ef0642172056d00982f38d73e4fef3b3147740 19-Apr-2017 Winson Chung <winsonc@google.com> Merge changes from topic 'stop_before_mw_callbacks' into oc-dev

* changes:
Add test related to task overlays and PiP.
Adding test to ensure we get stop before MW/PIP mode changes.
ae9ceffe0eef85ad0adbd16158d67e43c724f8f3 19-Apr-2017 Sudheer Shanka <sudheersai@google.com> Revert "Relax the check of network availability in CtsHostsideNetworkTests."

This reverts commit d283b9fae895b86255c8807d9d7e3fc85fbbf7eb.

Bug: 27803922
Change-Id: I3ccf33779df580ed615f44d0410676cba972ea6c
et/app/src/com/android/cts/net/hostside/AbstractRestrictBackgroundNetworkTestCase.java
eacdbd356a7f929c2a3dae5b5333c88b40bef8bf 19-Apr-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Fix shortcut backup CTS" into oc-dev
a8184240fa27cc3b3adab728d1a59b5af6968307 19-Apr-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Do not require onStartInputView to be called" into oc-dev
68d0179f769482293f80a7dac985395018068ada 19-Apr-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Update cts for LauncherApps api change." into oc-dev
6c4562c5e63f820512eaf4571b06bb43cc1dd9ba 19-Apr-2017 Jeff Sharkey <jsharkey@android.com> Add test for getAppBytes().

Also verify that getUuidForPath() resolves symlinks.

Test: cts-tradefed run commandAndExit cts-dev -m CtsAppSecurityHostTestCases -t android.appsecurity.cts.StorageHostTest
Bug: 35812899, 35844919, 37193650
Change-Id: I2a467bd6c9e1e4fa0edcae790172c78c929b5b44
ppsecurity/test-apps/StorageStatsApp/src/com/android/cts/storagestatsapp/StorageStatsTest.java
38dcebd71270b57acea1733e2be7d9467e9c8e8b 19-Apr-2017 Chad Brubaker <cbrubaker@google.com> Track registerReceiver changes

Test: see fw CL
Change-Id: I7d8542978e6ed7a95dc8c3bea9691d3d714e67ba
ppsecurity/test-apps/EphemeralTestApp/EphemeralApp1/src/com/android/cts/ephemeralapp1/ClientTest.java
ppsecurity/test-apps/EphemeralTestApp/NormalApp/src/com/android/cts/normalapp/ClientTest.java
9b4be83a3770afa03aa1f08549f5c08c8c113f9f 19-Apr-2017 Svetoslav Ganov <svetoslavganov@google.com> Merge "Address API council comments - CTS" into oc-dev
bbfb9de09340de525fbab644a0ef04d18debb2a9 18-Apr-2017 Tadashi G. Takaoka <takaoka@google.com> Do not require onStartInputView to be called

IMS.onStartInputView isn't called when a device has a physical
keyboard connected. This CL removes onStartInputView calling test from
host-side IME CTS. We may want to add tests for onStartInputView
later.

Fixes: 37373843
Test: Run CTS test on Pixel C with physical keyboard attached.
$ cts-tradefed run singleCommand cts-dev -s pixel_c -m CtsInputMethodServiceHostTestCases
Change-Id: I0477c104c895d2a5a2d3b63fd12a6031bb94ed96
nputmethodservice/deviceside/devicetest/src/android/inputmethodservice/cts/devicetest/InputMethodServiceDeviceTest.java
e57bc3dadf3c3f52ff93a34f3528f630d16f4c13 23-Mar-2017 Winson Chung <winsonc@google.com> Add test related to task overlays and PiP.

- Ensure that finishing the last non-task overlay activity also removes
the entire task
- Ensure that finishing the task overlay activity does not cause the next
activity to be resumed

Bug: 36507456
Test: android.server.cts.ActivityManagerPinnedStackTests
Test: #testFinishPipActivityWithTaskOverlay
Test: #testNoResumeAfterTaskOverlayFinishes

Change-Id: I875aa92252d4eee735c8b4350be757d343d35d1e
ervices/activityandwindowmanager/activitymanager/app/AndroidManifest.xml
ervices/activityandwindowmanager/activitymanager/app/res/layout/task_overlay.xml
ervices/activityandwindowmanager/activitymanager/app/src/android/server/cts/AbstractLifecycleLogActivity.java
ervices/activityandwindowmanager/activitymanager/app/src/android/server/cts/PipActivity.java
ervices/activityandwindowmanager/activitymanager/app/src/android/server/cts/TestActivity.java
ervices/activityandwindowmanager/activitymanager/app/src/android/server/cts/TranslucentTestActivity.java
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/ActivityManagerPinnedStackTests.java
ervices/activityandwindowmanager/util/src/android/server/cts/ActivityManagerTestBase.java
b11a0a1b86e3f7ae3bfab25a3903954ac707e7cf 07-Apr-2017 Winson Chung <winsonc@google.com> Adding test to ensure we get stop before MW/PIP mode changes.

- Also fixing tests to check that tasks are moved to the bottom when
dismissing or hiding (not expanding) PIP.

Bug: 36567036
Test: android.server.cts.ActivityManagerPinnedStackTests
Test: #testStopBeforeMultiWindowCallbacksOnDismiss
Change-Id: I84b4aca06b20ed67e66ad3a78681d12025026040
ervices/activityandwindowmanager/activitymanager/app/src/android/server/cts/AbstractLifecycleLogActivity.java
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/ActivityManagerPinnedStackTests.java
ervices/activityandwindowmanager/util/src/android/server/cts/ActivityManagerTestBase.java
67dabd8237d6509d03590d2007d50592ac19221d 18-Apr-2017 Adam Lesinski <adamlesinski@google.com> Add a hostside test for fontScale config changes

When the fontScale changes, ensure that pixel sizes are being
correctly calculated.

Bug: 34120637
Test: cts/hostsidetests/services/activityandwindowmanager/util/run-test CtsServicesHostTestCases android.server.cts.ActivityManagerConfigChangeTests
Change-Id: I3bdf399cbcf9ba2349d26b3b2b674a26be5e40ae
ervices/activityandwindowmanager/activitymanager/app/AndroidManifest.xml
ervices/activityandwindowmanager/activitymanager/app/res/layout/font_scale.xml
ervices/activityandwindowmanager/activitymanager/app/src/android/server/cts/FontScaleActivity.java
ervices/activityandwindowmanager/activitymanager/app/src/android/server/cts/FontScaleNoRelaunchActivity.java
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/ActivityManagerConfigChangeTests.java
1adc0d55fec4b11d6d7a74a67369893018357ca0 19-Apr-2017 Amith Yamasani <yamasani@google.com> Merge "Background network stats tests" into oc-dev
929b030061a6a376e608a2dabd9c5c958080936c 19-Apr-2017 Svetoslav Ganov <svetoslavganov@google.com> Address API council comments - CTS

Test: cookie CTS tests pass

bug:37327624
bug:37325276

Change-Id: Ie03638703706dffecbbe0db1fc3389fd9bf8b217
ppsecurity/test-apps/InstantCookieApp/src/test/instant/cookie/CookieTest.java
a31e0ccda364eb6a458754f8d4c2a86269e60554 19-Apr-2017 Svetoslav Ganov <svetoslavganov@google.com> Address API council comments - CTS

Test: all static shared lib CTS tests pass

bug:37327970

Change-Id: I2ca76c76d76586609640dc01790698654f94d42c
s/test-apps/StaticSharedLibConsumerApp1/src/android/os/lib/consumer1/UseSharedLibraryTest.java
14f4c5bd091ab3b1f903130eb5618bb312c2d2e5 18-Apr-2017 Bryce Lee <brycelee@google.com> Merge "Add test for replacing activity in pinned stack." into oc-dev
25eb45880a6ef8785a4f42926223d0bbab9428fd 18-Apr-2017 Andrii Kulian <akulian@google.com> Merge "Add some tests to presubmit" into oc-dev
db3a383df64c128e1ce352505bb5fe0eb1d1e7c9 18-Apr-2017 Kenny Guy <kennyguy@google.com> Update cts for LauncherApps api change.

LauncherApps.getApplicationInfo now throws
an exception update test to expect that.

Test: cts-tradefed run cts -m CtsDevicePolicyManagerTestCases --test com.android.cts.devicepolicy.LauncherAppsProfileTest#testGetActivitiesWithProfile
Bug: 37461691
Change-Id: I11c8a497f7437eed036b8f98339cde7ba28e2bb2
evicepolicy/app/LauncherTests/src/com/android/cts/launchertests/LauncherAppsTests.java
826d2f5ebda02f61a5f2ca1efc232fe670e09d8e 18-Apr-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Remove reflection from network logging test" into oc-dev
a4774be7ad2256c11e2db70195d5bbebdda20412 14-Apr-2017 Amith Yamasani <yamasani@google.com> Background network stats tests

Refactor the upload/download code to use the newer
foreground/background mechanism as actions.

Bug: 35677165
Test: this
Change-Id: Id19adf216099b4fb9f340d281502243557e399b6
ncident/apps/batterystatsapp/src/com/android/server/cts/device/batterystats/BatteryStatsBackgroundService.java
ncident/apps/batterystatsapp/src/com/android/server/cts/device/batterystats/BatteryStatsBgVsFgActions.java
ncident/apps/batterystatsapp/src/com/android/server/cts/device/batterystats/BatteryStatsWifiTransferTests.java
ncident/src/com/android/server/cts/BatteryStatsValidationTest.java
24a270050ed88423abb2b3ac537ae14c1933d82d 18-Apr-2017 Bartosz Fabianowski <bartfab@google.com> Remove reflection from network logging test

The network logging API has been made public. Call it directly instead
of using reflection.

Bug: 33068581
Test: cts-tradefed run cts-dev --module CtsDevicePolicyManagerTestCases \
--test com.android.cts.devicepolicy.DeviceOwnerTest\
#testAdminActionBookkeeping

Change-Id: I53df6ef3ec06691ea14f78198570bd31df730d17
(cherry picked from commit 886a72b68f8445e165fc886d900b10ca0b272607)
evicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/AdminActionBookkeepingTest.java
1e17373ddff6ee07c2e479fd7f5c798013b19f6b 11-Apr-2017 Edman Anjos <edmanp@google.com> CTS tests for DevicePolicyManager#getDelegatePackages

Hostside tests to fulfil CTS coverage in DPM delegation.

Bug: 37071248
Test: cts-tradefed run cts-dev --module CtsDevicePolicyManagerTestCases --test com.android.cts.devicepolicy.MixedDeviceOwnerTest#testDelegation
Change-Id: Id04fe2b6ab23d61bc44abd6962a0bb0bf0a3ebd5
(cherry picked from commit 281ae1e93a1445d004c0c55d049a4f103a04e524)
evicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/DelegationTest.java
064c707dc0df9eabc98285c459b0fae49c1df949 18-Apr-2017 Andrii Kulian <akulian@google.com> Add some tests to presubmit

Adding some of the most indicative tests that have been known to fail
previously to presubmit. Also make sure that we wait for lifecycle
changes before asserting.

Test: android.server.cts.ActivityManagerAppConfigurationTests
Test: #testConfigurationUpdatesWhenRotatingWhileDocked
Test: #testSameConfigurationFullSplitFullNoRelaunch
Test: android.server.cts.ActivityManagerConfigChangeTests
Test: #testChangeFontScaleRelaunch
Test: #testChangeFontScaleNoRelaunch
Test: android.server.cts.ActivityManagerDisplayTests
Test: #testLaunchActivityOnSecondaryDisplay
Test: #testConsequentLaunchActivity
Test: #testConsequentLaunchActivityFromSecondaryDisplay
Test: #testLaunchActivitiesAffectsVisibility
Test: #testMoveTaskBetweenDisplays
Test: #testStackFocusSwitchOnDisplayRemoved
Test: #testContentDestroyOnDisplayRemoved
Test: #testDisplayResize
Test: #testOnMovedToDisplayCallback
Test: #testForceDisplayMetrics
Change-Id: Id1ff33a7e65401a63e0720568801f0bed58272b7
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/ActivityManagerAppConfigurationTests.java
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/ActivityManagerConfigChangeTests.java
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/ActivityManagerDisplayTests.java
ervices/activityandwindowmanager/util/src/android/server/cts/ActivityAndWindowManagersState.java
ervices/activityandwindowmanager/util/src/android/server/cts/ActivityManagerTestBase.java
44a92fd381c7b5cf75a2e8370c975c3ed41fb366 18-Apr-2017 Sudheer Shanka <sudheersai@google.com> Merge "Skip data saver related tests if the device doesn't support it." into oc-dev
04b2a01a7a3e7735c02bf2dd9991497967d48085 18-Apr-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Remove use of abandoned startServiceInForeground() API" into oc-dev
249f69c573f2d97175e68eb071cb1f53cd320cb5 18-Apr-2017 Christopher Tate <ctate@google.com> Remove use of abandoned startServiceInForeground() API

Bug 36130212
Test: self

Change-Id: I1ed15b8fe1dcc5dbecdad08599606e9edb742e20
ncident/apps/batterystatsapp/src/com/android/server/cts/device/batterystats/BatteryStatsProcessStateTests.java
ncident/apps/batterystatsapp/src/com/android/server/cts/device/batterystats/BatteryStatsWifiTransferTests.java
ncident/apps/batterystatsapp/src/com/android/server/cts/device/batterystats/SimpleForegroundService.java
b6a984678b7db2d101b6982ea3a52b7849061e7b 18-Apr-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Fallback to freeform windows if split screen not supported" into oc-dev
83224f06df8a228679a58bde4cfadea0fb6a8fcb 18-Apr-2017 Chad Brubaker <cbrubaker@google.com> Add basic webview test for Instant Apps

This verifies that Instant Apps can properly load the code required to
start up a WebView.

Test: cts-tradefed run commandAndExit cts-dev -m
CtsAppSecurityHostTestCases -t
android.appsecurity.cts.EphemeralTest#testWebViewLoads

Change-Id: I3aa9c4252423a1a9daf539a4f7d9dd7013fa5a76
ppsecurity/src/android/appsecurity/cts/EphemeralTest.java
ppsecurity/test-apps/EphemeralTestApp/EphemeralApp1/Android.mk
ppsecurity/test-apps/EphemeralTestApp/EphemeralApp1/AndroidManifest.xml
ppsecurity/test-apps/EphemeralTestApp/EphemeralApp1/src/com/android/cts/ephemeralapp1/WebViewTest.java
ppsecurity/test-apps/EphemeralTestApp/EphemeralApp1/src/com/android/cts/ephemeralapp1/WebViewTestActivity.java
e280b43711bbf54223f7bde587e75227446e06d4 18-Apr-2017 Jeff Sharkey <jsharkey@google.com> Merge "Follow storage API polishing." into oc-dev
09edfc01a8eb6272968f1a6a9bb64c8c6e5805de 17-Apr-2017 Bryce Lee <brycelee@google.com> Add test for replacing activity in pinned stack.

Test: cts/hostsidetests/services/activityandwindowmanager/util/run-test CtsServicesHostTestCases android.server.cts.ActivityManagerPinnedStackTests#testDisallowMultipleTasksInPinnedStack
Bug: 36844394
Change-Id: Iaf42afa133aaee6daeb030e2d122fda818e379f4
ervices/activityandwindowmanager/activitymanager/app/AndroidManifest.xml
ervices/activityandwindowmanager/activitymanager/app/src/android/server/cts/PipActivity2.java
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/ActivityManagerPinnedStackTests.java
072149f1866156ed2b7d41a55bb4234301cc7dad 17-Apr-2017 Makoto Onuki <omakoto@google.com> Fix shortcut backup CTS

The issue is sometimes the package broadcasts take a long time to be
delivered. If they arrive after a "bmgr restore" then the shortcut
manager would be confused. This is exactly what happened after
uninstalling 6 packages in a row.

To avoid this, now we wait until all the broadcast queues drain before
proceeding to the next step.

(Uninstalling all the package at once and wait until the queues drain
didn't work probably because even *posting* the package broadcasts in PMS
is asynchronous using a handler, not just *delivering*? There's a window
between PMS deciding to send a broadcast, and it showing up in the activity
manager dumpsys.)

Bug: 37423318
Test: cts-tradefed run cts-dev --skip-device-info --skip-preconditions --skip-system-status-check com.android.compatibility.common.tradefed.targetprep.NetworkConnectivityChecker -a armeabi-v7a -l debug -m CtsShortcutHostTestCases -t 'android.content.pm.cts.shortcuthost.ShortcutManagerBackupTest#testBackupAndRestore'
Change-Id: I16fe8a28a361d75088bda825365d511d6a21d7e2
hortcuts/hostside/src/android/content/pm/cts/shortcuthost/ShortcutManagerBackupTest.java
6631790abe27f92ddef7ed4bda51c54662314dee 17-Apr-2017 Jeff Sharkey <jsharkey@android.com> Follow storage API polishing.

Test: cts-tradefed run commandAndExit cts-dev -m CtsAppSecurityHostTestCases -t android.appsecurity.cts.StorageHostTest
Bug: 37325923, 35812899, 35806020
Change-Id: I4bc5be2a68bf9e4d86d5c302319987281ab54c50
ppsecurity/test-apps/StorageApp/src/com/android/cts/storageapp/StorageTest.java
ppsecurity/test-apps/StorageApp/src/com/android/cts/storageapp/UtilsReceiver.java
ppsecurity/test-apps/StorageStatsApp/src/com/android/cts/storagestatsapp/StorageStatsTest.java
48de1683c55d230410047632a50129479240469d 17-Apr-2017 Tina Zhou <tinazh@google.com> Merge "[CTS]It should be more reasonable to use setBatterySaverMode API to leave power-save mode instead of plugging in charger for "CtsHostsideNetworkTests" test case." into nougat-mr1-cts-dev am: 68ec26e60c am: 22a6d302fe am: da0ecabafd
am: 9d66f94f38

Change-Id: I5e4b1272325ab0f16eb4cfc981b10a05c776a2da
9d66f94f386914a7484c24fcaee29843cda585fb 17-Apr-2017 Tina Zhou <tinazh@google.com> Merge "[CTS]It should be more reasonable to use setBatterySaverMode API to leave power-save mode instead of plugging in charger for "CtsHostsideNetworkTests" test case." into nougat-mr1-cts-dev am: 68ec26e60c am: 22a6d302fe
am: da0ecabafd

Change-Id: I60e8d0a2cc587da5c21a47412d85ba21e8b21836
22a6d302fe8c374d6e2a6580553a7177dbfd9821 17-Apr-2017 Tina Zhou <tinazh@google.com> Merge "[CTS]It should be more reasonable to use setBatterySaverMode API to leave power-save mode instead of plugging in charger for "CtsHostsideNetworkTests" test case." into nougat-mr1-cts-dev
am: 68ec26e60c

Change-Id: Ie16ec6e4e3d139da6bb66d18bba18c97b1ed7a4c
68ec26e60c376ca65a04e750c0d4d0c93bf2ad8f 17-Apr-2017 Tina Zhou <tinazh@google.com> Merge "[CTS]It should be more reasonable to use setBatterySaverMode API to leave power-save mode instead of plugging in charger for "CtsHostsideNetworkTests" test case." into nougat-mr1-cts-dev
0ea3d1170336f719629e5f38c563ecf087e03c2c 17-Apr-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Batterystats CTS test: background syncs" into oc-dev
ba269fa7038aa6309c4e5ebbfa77994c3969b252 11-Apr-2017 Sandeep Patil <sspatil@google.com> SELinuxHostTest: Assert no exception for vendor executing core domain

Bug: 36463595
Test: ./cts-tradefed run cts -m CtsSecurityHostTestCases -t \
android.security.cts.SELinuxHostTest#testNoExemptionsForVendorExecutingCore \
--skip-device-info --skip-preconditions --skip-connectivity-check \
--abi arm64-v8a

Change-Id: Idb45abde4390ed7a412282a094991d8d9f8c4fca
Signed-off-by: Sandeep Patil <sspatil@google.com>
ecurity/src/android/security/cts/SELinuxHostTest.java
a38e47632bcdc5d71ffed7816091f1aa47d4839e 14-Apr-2017 Bookatz <bookatz@google.com> Batterystats CTS test: background syncs

Performs a sync when the app is in the foreground and background
and ensures that the counts are incremented correctly.

Fixes: 35669746
Test: run cts-dev -m CtsIncidentHostTestCases -t
com.android.server.cts.BatteryStatsValidationTest

Change-Id: I4e6b5047a883a7091205917f8e3ebea4c3934a8e
ncident/apps/batterystatsapp/src/com/android/server/cts/device/batterystats/BatteryStatsBgVsFgActions.java
ncident/apps/batterystatsapp/src/com/android/server/cts/device/batterystats/BatteryStatsForegroundActivity.java
ncident/src/com/android/server/cts/BatteryStatsValidationTest.java
f37ac6c6ff9fc3c07ce80399cc79d4bd204f9d49 15-Apr-2017 Sarah Hu <xiaoyinh@google.com> resolve merge conflicts of 982294a598 to oc-dev

Test: I solemnly swear I tested this conflict resolution.

Change-Id: I1cd0cb564becf51536651ed2af7d216b26dfecce
0e286361f2f4bf6575c409363afc73dee476efc7 14-Apr-2017 Arthur Hsu <arthurhsu@google.com> Fallback to freeform windows if split screen not supported

If a device does not support split screen multiwindow mode, but
supports freeform windows, try to run the cross app drag and
drop tests using two side by side freeform windows.

This is a cherry-pick from AOSP Ie999bf0f97c9ecd402baad251be7158f829160d1

Bug: 36869692
Test: cts -m CtsWindowManagerHostTestCases --test android.server.cts.CrossAppDragAndDropTests
Change-Id: I239ca43b05ce5bc1a6c22a2a8c6c14fc2e16ab2e
ervices/activityandwindowmanager/windowmanager/src/android/server/cts/CrossAppDragAndDropTests.java
cfa5a39cdd8f6f2d902527e3d0560967f9c80db7 14-Apr-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Skip tests using dock if split window unsupported." into oc-dev
36cd300c3d253eb36ec710e14be84e7e6ae4ffed 14-Apr-2017 Alex Klyubin <klyubin@google.com> Merge "Remove unnecessary sepolicy attributes" into oc-dev
2656cd932dda1d150f22fd6afa41ad744e7ec16b 14-Apr-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Merge commit '6324d59a46deddde4d2f2ebb30eb31cb69b6990f' into manual_merge_6324d59a46 Test: merge commit" into oc-dev
8053c4d95236f47896ee9af0d22eeda24153c757 13-Apr-2017 Arthur Hsu <arthurhsu@google.com> Skip tests using dock if split window unsupported.

Tests affected:
ActivityManagerActivityVisiblityTests#
testFinishActivityInNonFocusedStack
testTranslucentActivityOverDockedStack
ActivityManagerAppConfigurationTests#
testConfigurationUpdatesWhenResizedFromFullscreen
testConfigurationUpdatesWhenResizedFromDockedStack
testConfigurationUpdatesWhenRotatingWhileDocked
testConfigurationUpdatesWhenRotatingToSideFromDocked
testSameConfigurationFullSplitFullRelaunch
testSameConfigurationFullSplitFullNoRelaunch
testSameConfigurationSplitFullSplitRelaunch
testSameConfigurationSplitFullSplitNoRelaunch
ActivityManagerManifestLayoutTests#testMinimalSizeDocked
ActivityManagerReplaceWindowTests

This cherry-picked AOSP change Id20d1fb6d3e3108f11e1562d265045bce8e6d2cc

Bug: 36869692
Test: m cts_v2
Change-Id: I036d755f02605a1c20e98d78f0f20aca7c1645ab
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/ActivityManagerActivityVisibilityTests.java
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/ActivityManagerAppConfigurationTests.java
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/ActivityManagerManifestLayoutTests.java
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/ActivityManagerReplaceWindowTests.java
6bb3bb9b4b9bbe6f4a09adf45525489f076e8e14 14-Apr-2017 Tina Zhou <tinazh@google.com> Merge "[DO NOT MERGE] Improve image comparision algorithm for ThemeHostTest" into nougat-cts-dev
98791414729a460fc68e9e2646e602af3974c850 14-Apr-2017 Chad Brubaker <cbrubaker@google.com> Renable exposedSystemActivities test

Test: cts-tradefed run commandAndExit cts-dev -m
CtsAppSecurityHostTestCases -t
android.appsecurity.cts.EphemeralTest#testExposedSystemActivities

Change-Id: Ida51448fbb433b7851e96f2240cb666cabc39da5
ppsecurity/src/android/appsecurity/cts/EphemeralTest.java
ppsecurity/test-apps/EphemeralTestApp/EphemeralApp1/src/com/android/cts/ephemeralapp1/ClientTest.java
d793e4256716618d77ef129ce0c0bf519e679b00 13-Apr-2017 Alex Klyubin <klyubin@google.com> Remove unnecessary sepolicy attributes

Test: make cts
Bug: 34980020

(cherry picked from commit 9a05c717ca6ae16344cbe0471cb2e6dff0c7282f)

Change-Id: I501b08dc56e827cb348aa1045e32e0221d9c0b64
ecurity/src/android/security/cts/SELinuxHostTest.java
fef059ecb8cffd42470383a350c2a290ce6dd2a9 14-Apr-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Add CTS for splashscreens" into oc-dev
5f8a897f13ce9c8211bdcfa956681e0c88e9d33a 14-Apr-2017 Joshua Schwarz <joshuaschwarz@google.com> Merge commit '6324d59a46deddde4d2f2ebb30eb31cb69b6990f' into manual_merge_6324d59a46
Test: merge commit

Change-Id: I78235f83c3d43b7ddc5ef99f1f322ba90fbb8826
74547fee7eab51224c257f8d8648ad9a144fec15 14-Apr-2017 Andrii Kulian <akulian@google.com> Merge "Remove tests for flag SHOW_WITH_INSECURE_KEYGUARD" into oc-dev
982294a5984a757b839809ec9c699369a26d00b6 14-Apr-2017 Sarah Hu <xiaoyinh@google.com> Merge "Skip rotation test when it is not supported by the device." into nougat-mr1-cts-dev am: 1f3a258319 am: d66e8bb7bd
am: 1fcbbf91d7

Change-Id: I4d43b43056a36ac69d48b64562adff2b06dad0fd
23375b6849d241e2948075ee49cc1d7d673c3c38 14-Apr-2017 Bookatz <bookatz@google.com> Test newly added batterystats background stats

Verify that batterystats now collects the following stats for app
background usage: syncs, jobs, wifi scans, ble, sensors.

Bug: 35673525
Bug: 35677312
Bug: 35669746
Bug: 35679958
Fixes: 35679958
Test: cts-tradefed run cts-dev -m CtsDumpsysHostTestCases -t android.dumpsys.cts.BatteryStatsDumpsysTest
Change-Id: I379eafcda6fe3ae44d6a81ff5950f92e1d6b6388
umpsys/src/android/dumpsys/cts/BatteryStatsDumpsysTest.java
d66e8bb7bd66e749acfc59b6d5db8a6dcab089b0 14-Apr-2017 Sarah Hu <xiaoyinh@google.com> Merge "Skip rotation test when it is not supported by the device." into nougat-mr1-cts-dev
am: 1f3a258319

Change-Id: I5a2039340e55a852c8093201463b860759fbafc5
eed41c9120f5ee69c8006feb018f9e1095e53c61 14-Apr-2017 Treehugger Robot <treehugger-gerrit@google.com> Merge "DO NOT MERGE: Skip data saver related tests if the device doesn't support it." into nougat-mr1-cts-dev
1f3a258319f70ca68dc3a5aba82346f46b3e5596 14-Apr-2017 Treehugger Robot <treehugger-gerrit@google.com> Merge "Skip rotation test when it is not supported by the device." into nougat-mr1-cts-dev
6324d59a46deddde4d2f2ebb30eb31cb69b6990f 14-Apr-2017 Jeff Sharkey <jsharkey@android.com> Merge "Advancing our amazing bet on PINs." into nougat-mr1-cts-dev am: ec812bf3fa am: 2aaaedb2e7
am: 686f54114f

Change-Id: I56fd5e7d3c98c1fea38bb439f47147bb37d5642a
2aaaedb2e70323fa98f6937c3d50fb461fe78143 14-Apr-2017 Jeff Sharkey <jsharkey@android.com> Merge "Advancing our amazing bet on PINs." into nougat-mr1-cts-dev
am: ec812bf3fa

Change-Id: Ibfdcf376ab29e470ad7b5641f9cb340f1aa8f0d1
ec812bf3fac0a08757a45a5d5b6fd00044e6d69f 14-Apr-2017 Treehugger Robot <treehugger-gerrit@google.com> Merge "Advancing our amazing bet on PINs." into nougat-mr1-cts-dev
43a0aa48b0bf5d565c03fe9b6d46ad7a716f5827 14-Apr-2017 Treehugger Robot <treehugger-gerrit@google.com> Merge "DO NOT MERGE: Skip data saver related tests if the device doesn't support it." into nougat-cts-dev
000cca7fe92d1922e66af07917673ee99181ffea 14-Apr-2017 Jorim Jaggi <jjaggi@google.com> Disable Keyguard tests on non-handheld devices

Test: KeyguardLockedTests, KeyguardTests
Change-Id: I508cdd735d9c331e4c56018a563a438ca2197997
Fixes: 37170112
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/KeyguardLockedTests.java
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/KeyguardTests.java
c80b716b041267e475bb204d2b04e754451b10fe 13-Apr-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "New provider CTS tests" into oc-dev
77c1bab4bcee53652c6db7edff008a568fa7b35b 13-Apr-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Detect support in ActivityManagerDockedStackTests." into oc-dev
b8e10d16165f30b592b9ff57b63d3902e6961928 13-Apr-2017 Jocelyn Dang <jocelyndang@google.com> Merge "Change test to use set-mode cmd." into oc-dev
7cba99e08ade0bb703cd4becbc68be0b8b2c05fa 13-Apr-2017 Andrii Kulian <akulian@google.com> Remove tests for flag SHOW_WITH_INSECURE_KEYGUARD

Bug: 36555156
Test: android.server.cts.ActivityManagerDisplayTests
Change-Id: I89cd00bd602e940175c185c2f1b3b889637f5fe8
ervices/activityandwindowmanager/activitymanager/app/src/android/server/cts/VirtualDisplayActivity.java
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/ActivityManagerDisplayTests.java
2f4d0d00ba6ba25455860e2b5562665865164ee3 11-Apr-2017 Arthur Hsu <arthurhsu@google.com> Detect support in ActivityManagerDockedStackTests.

If split multi-window mode is not supported, skip the tests.

This cherry picks 55ad56e9076ae0ead5d418aa56398bac2f912c48 with conflict
resolution.

Bug: 36869692
Test: cts -m CtsServicesHostTestCases --test android.server.cts.ActivityManagerDockedStackTests
Change-Id: I4b1a876a4efae520efa3f9ff13c469223ed79759
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/ActivityManagerDockedStackTests.java
ervices/activityandwindowmanager/util/src/android/server/cts/ActivityManagerTestBase.java
7df5de231feae05cac2d1e5edd7841c72d3c3a57 13-Apr-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Add TURN_SCREEN_ON_TEST to presubmit." into oc-dev
77c7abeae0199957de07f9c8304ef2d488283782 13-Jan-2017 Kazuhiro Inaba <kinaba@google.com> DO NOT MERGE: Add mdpi and hdpi assets for theme cts.

after security patch "High-CVE-2016-10244: Remote code execution
vulnerability in Freetype" is merged,
CtsThemeHostTestCases test is failed on hdpi.
So, i change the hdpi resource to n mr1 resource.
(cherry picked from commit 9a09bb0b2cc82329a076dba2fde679dce579d2d3)

Change-Id: I429972a2fdc51b01dcdec343fa281bb26a41ba27
heme/assets/hdpi.zip
heme/assets/mdpi.zip
318e73cf4f734444022952d0ba93a92836249cf5 13-Apr-2017 Alex Klyubin <klyubin@google.com> Merge "*_violators are here to stay -- bring up only though" into oc-dev
6e1b8563fd82381f896c91158b93de7748acc192 10-Apr-2017 Todd Kennedy <toddke@google.com> New provider CTS tests

Verify correct exposure of instant app / normal / exposed content providers.

Bug: 35871716
Test: cts-tradefed run commandAndExit cts-dev -m CtsAppSecurityHostTestCases -t android.appsecurity.cts.EphemeralTest
Change-Id: I919c157e2f464604de6d591bbfe9352555af1df6
ppsecurity/test-apps/EphemeralTestApp/EphemeralApp1/AndroidManifest.xml
ppsecurity/test-apps/EphemeralTestApp/EphemeralApp1/src/com/android/cts/ephemeralapp1/ClientTest.java
ppsecurity/test-apps/EphemeralTestApp/EphemeralApp1/src/com/android/cts/ephemeralapp1/EphemeralProvider.java
ppsecurity/test-apps/EphemeralTestApp/EphemeralApp2/AndroidManifest.xml
ppsecurity/test-apps/EphemeralTestApp/NormalApp/AndroidManifest.xml
ppsecurity/test-apps/EphemeralTestApp/NormalApp/src/com/android/cts/normalapp/ClientTest.java
ppsecurity/test-apps/EphemeralTestApp/NormalApp/src/com/android/cts/normalapp/ExposedProvider.java
ppsecurity/test-apps/EphemeralTestApp/NormalApp/src/com/android/cts/normalapp/NormalProvider.java
a8930232b323e0ff90b85e9e28fb96128189cf3e 13-Apr-2017 Robert Carr <racarr@google.com> Add TURN_SCREEN_ON_TEST to presubmit.

Regressions are very nasty here. Test seems to pass
very consistently.

Test: Indeed!
Bug: 37197491
Change-Id: Ib3473aa8517abaa033b2a98404547656e850fe8f
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/ActivityManagerActivityVisibilityTests.java
ef17cb5e0b7b15350211d7d9fa4d19242340feb0 13-Apr-2017 Jocelyn Dang <jocelyndang@google.com> Change test to use set-mode cmd.

Change-Id: I23c0888ba105067f19ebe516ce3fbc6868ed2b17
et/app/src/com/android/cts/net/hostside/AbstractRestrictBackgroundNetworkTestCase.java
5f5a66258c890fb7600c6fd2af7c311265fbd380 12-Apr-2017 Arthur Hsu <arthurhsu@google.com> Merge "Handle Resources$NotFoundException in NoHomeObserver." into nougat-mr1-cts-dev am: 469c71a770 am: 5ad101177e
am: 207c8112e8

Change-Id: I87483a491e351fcdd9d123c07373638c4be5ff8f
5ad101177e62e9e6bb359612f222a75e41cdb394 12-Apr-2017 Arthur Hsu <arthurhsu@google.com> Merge "Handle Resources$NotFoundException in NoHomeObserver." into nougat-mr1-cts-dev
am: 469c71a770

Change-Id: Ib6037e83953ac5f24e186e271e5e914f9091a566
b1d1ec37834422b37dd11cb94bcd22e52e6191b6 12-Apr-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Fix backup & restore CTS" into oc-dev
a7181f16733eae71a4e4e55a1f87784eea395ff1 12-Apr-2017 Calin Juravle <calin@google.com> Merge "Fix CTS compilation tests" into oc-dev
130c67cae03dd76d1f6ee9c79c96fbff04749b77 12-Apr-2017 Aurimas Liutikas <aurimas@google.com> Merge "resolve merge conflicts of 3e54a77095 to oc-dev" into oc-dev
aacef7b6e8037f3f47dbeac1135844b3d80b8ba6 12-Apr-2017 Makoto Onuki <omakoto@google.com> Fix backup & restore CTS

There were two issues:
- "bmgr restore" didn't actually wait until restore finishes.
Fixed in Ice381dc250e2d2a59cff48152dd3c8d6897d0804.

- In the est, we uninstall the test package and run a restore, but there
was no guarantee that all the package broadcasts would be handled
before the restore. If a package removed broadcast arrives after the
restore, it'll erase the restored data.
So, wait until all shortcuts are removed from the shortcut manager
before starting a restore.

Bug: 37246838
Test: cts-tradefed run cts-dev --skip-device-info --skip-preconditions --skip-system-status-check com.android.compatibility.common.tradefed.targetprep.NetworkConnectivityChecker -a armeabi-v7a -l INFO -m CtsShortcutHostTestCases -t android.content.pm.cts.shortcuthost.ShortcutManagerBackupTest
Change-Id: I14288f2a470d31b81a6c89abe63565d442a29c08
hortcuts/hostside/src/android/content/pm/cts/shortcuthost/ShortcutManagerBackupTest.java
e63e799621706f1e52418698c92a907e2ef3c098 12-Apr-2017 Alex Klyubin <klyubin@google.com> *_violators are here to stay -- bring up only though

The *_violators attributes which enable domains to bypass Treble
requirements are staying. They are useful during Android O device
bringup. However, their use is still prohibited on production devices
which is why CTS is still checking that no domains are associated with
*_violators attributes.

Test: make cts -- it's a Javadoc-only change
Bug: 37081151
Change-Id: I3bc630ef6e5a0975a5499b585c0c03257c1a61a6
ecurity/src/android/security/cts/SELinuxHostTest.java
d2cf14aff94d1d7f11f77393674f09835ad7f46d 12-Apr-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Improve waiting for config change in test" into oc-dev
b407fc32371688cb6668a16467fb5a256a120fff 12-Apr-2017 Arthur Hsu <arthurhsu@google.com> resolve merge conflicts of 3e54a77095 to oc-dev

Test: I solemnly swear I tested this conflict resolution.
Change-Id: I90be3af609e4f2c2c757ab1a5b289bf8c0a685ef
76bbeabc24ae12826223416107b195daf7b95c7f 12-Apr-2017 Arthur Hsu <arthurhsu@google.com> Handle Resources$NotFoundException in NoHomeObserver.

Android throws android.content.res.Resources$NotFoundException
if the config_noHomeScreen does not exists.
This fixes regressions caused by
I86525a73a32eae2d40c516d0630d3d0cb346f9c1

Bug: 35323412
Test: cts -m CtsServicesHostTestCases --test android.server.cts.ActivityManagerActivityVisiblityTests
Change-Id: I60c9ba7b8242fd5e8d7774736b6f60fb82c77e20
ervices/activitymanager/app/src/android/server/app/NoHomeScreenObserver.java
9878d0cb323bf8dddb3a5a224f5607ceaeb88987 12-Apr-2017 Treehugger Robot <treehugger-gerrit@google.com> Merge "DO NOT MERGE: Skip multi-window test if not supported" into nougat-cts-dev
a1c4d72f3f4f6881353a64c38c00458a746be375 15-Dec-2016 kenzyun_chen <kenzyun_chen@htc.com> DO NOT MERGE: Add multi-window feature for CrossAppDragAndDropTests

There are some host-side cts tests for multi-window
behavior, if the device does not support multi-window,
the related tests will fail. Because multi-window is
not a must have requirement, use this feature for cts to
distinguish whether to skip test.

Bug: 36377114
Test: make cts

Change-Id: I1f55ab4e83030e408cedbbc76ee5a45eba059226
ervices/windowmanager/src/android/wm/cts/CrossAppDragAndDropTests.java
0aeb355dd13991410e7becc307c616d66f2c9023 11-Apr-2017 riddle_hsu <riddle_hsu@htc.com> DO NOT MERGE: Skip multi-window test if not supported

Bug: 33187393

Change-Id: I6408bf8f45fe772d0e7094a74e33e9c0a4754a02
ervices/activitymanager/src/android/server/cts/ActivityManagerActivityVisiblityTests.java
ervices/activitymanager/src/android/server/cts/ActivityManagerAppConfigurationTests.java
ervices/activitymanager/src/android/server/cts/ActivityManagerDockedStackTests.java
ervices/activitymanager/src/android/server/cts/ActivityManagerManifestLayoutTests.java
f5a2ec8f07ea81fcd5a784654395df96c8ba31fc 11-Apr-2017 Calin Juravle <calin@google.com> Fix CTS compilation tests

mDevice.enableAdbRoot is not actually enabling the root anymore. We have
to manually "su root" all the commands for the test to pass.

Test: cts-tradefed run cts -m CtsCompilationTestCases

Bug: 36651422

(cherry picked from commit a4b3ec33209fe43af6396645b191239a91b5ae08)

Merged-In: Id9cf3cb78c987401e565bac390298349ab240c63
Change-Id: Id9cf3cb78c987401e565bac390298349ab240c63
ompilation/src/android/cts/compilation/AdbRootDependentCompilationTest.java
afb19435b355a8fea1f862c85fd1d19083374463 12-Apr-2017 Andrii Kulian <akulian@google.com> Improve waiting for config change in test

The test was flaky because sometimes we were not
waiting long enough for a configuration change to
happen.

Bug: 34164473
Test: android.server.cts.ActivityManagerDisplayTests
Test: #testDisplayResize
Change-Id: I43c23674aabf0a0428a059f3ce1c371ae520eac3
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/ActivityManagerConfigChangeTests.java
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/ActivityManagerDisplayTests.java
d726c8f87e3dd1a081ef553d772fb5419f82d029 12-Apr-2017 Andrii Kulian <akulian@google.com> Merge "Don't run keyguard test when not on handheld" into oc-dev
3e54a770953efd50da863347b7cd3fec0f203e4e 12-Apr-2017 Arthur Hsu <arthurhsu@google.com> Merge "Skip home related tests if no home screen." into nougat-mr1-cts-dev am: a225defd45 am: a09a312d6f
am: 2bab4713ad

Change-Id: I1a8f7bcc67c4a7a0aab65b7fec5b59c20ce61874
a09a312d6f724e9d048de1f189af9f0fd853d0a5 12-Apr-2017 Arthur Hsu <arthurhsu@google.com> Merge "Skip home related tests if no home screen." into nougat-mr1-cts-dev
am: a225defd45

Change-Id: I308b9c6ecf6b591c17c675bbab13ad9161540051
a225defd45c05d03e306625cd622f39d8878cab3 12-Apr-2017 Treehugger Robot <treehugger-gerrit@google.com> Merge "Skip home related tests if no home screen." into nougat-mr1-cts-dev
596eb3917c9f4ef250c56dda7f401e2ab9805ee2 23-Feb-2017 Jorim Jaggi <jjaggi@google.com> Add CTS for splashscreens

Test: android.server.cts.SplashscreenTests
Bug: 37252694
Change-Id: I271ee981bad0edb34238f21cb27d23b3f7d478ae
ervices/activityandwindowmanager/activitymanager/app/AndroidManifest.xml
ervices/activityandwindowmanager/activitymanager/app/res/values/colors.xml
ervices/activityandwindowmanager/activitymanager/app/res/values/styles.xml
ervices/activityandwindowmanager/activitymanager/app/src/android/server/cts/SplashscreenActivity.java
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/SplashscreenTests.java
ervices/activityandwindowmanager/util/src/android/server/cts/ActivityAndWindowManagersState.java
ervices/activityandwindowmanager/util/src/android/server/cts/ActivityManagerTestBase.java
ervices/activityandwindowmanager/util/src/android/server/cts/WindowManagerState.java
a8d86dac2f94f8d97d76c5ac27a68f1cf3d6ccc1 11-Apr-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Don't try to create user when on a single-user device." into oc-dev
77f687615b7944bcf576b2e77f49a84e47b84c47 11-Apr-2017 Andrii Kulian <akulian@google.com> Don't run keyguard test when not on handheld

Android TV doesn't have a lockscreen window by default,
so it will not hide other windows.

Bug: 34164473
Test: android.server.cts.ActivityManagerDisplayTests
Test: #testVirtualDisplayHidesContentWhenLocked
Change-Id: Ib9a87fc3a42cd8547a2bd25b4776fda03a33113e
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/ActivityManagerDisplayTests.java
8493d4337cef262d1716073a8cdfc44758413171 11-Apr-2017 Makoto Onuki <omakoto@google.com> Don't try to create user when on a single-user device.

Bug: 37131625
Test: cts-tradefed run cts-dev --skip-device-info --skip-preconditions --skip-system-status-check com.android.compatibility.common.tradefed.targetprep.NetworkConnectivityChecker -a armeabi-v7a -l INFO -m CtsDevicePolicyManagerTestCases -t com.android.cts.devicepolicy.DeviceAdminServiceProfileOwnerTest
Change-Id: I98c7cefd7097fd63c319b7c5ead124bc46e00fe4
evicepolicy/src/com/android/cts/devicepolicy/DeviceAdminServiceProfileOwnerTest.java
a799ccc72274aedd71ff102308c2df5da9c0a203 11-Apr-2017 Andrii Kulian <akulian@google.com> Merge "Add log separator to host side tests" into oc-dev
734cbfc4c5b3f27d7c8b3bfebf07abab2454b0e7 11-Apr-2017 Dmitri Plotnikov <dplotnikov@google.com> Merge "Fixing PermissionHostTest CTS tests on TV" into oc-dev
5ad61b90d9bac1665316e941ac6ede3b391e107c 11-Apr-2017 Jatin Majmudar <fjm225@motorola.com> Merge "Adding sleep time in TrustedVoiceHostTest#testUnlock" into nougat-mr1-cts-dev am: 1be9f964f2 am: d513f7dc68 am: 85e32accd3
am: 7a40723a2e

Change-Id: I5948a40183f3dd36d4e41dbc9caffbe4e2c09f7e
936e509f01b6d4fe601c5d22784d3bac06085fc9 11-Apr-2017 Andrii Kulian <akulian@google.com> Add log separator to host side tests

Some of the AM and WM host side tests clear logcat in order
to get logs that are emitted only after some certain action
is executed. However, this is not reliable and doesn't work
in all conditions.
This CL adds a log separator where needed, so tests can check
only part of the logcat which goes after the separator.

Bug: 34164473
Bug: 34163942
Test: android.server.cts
Change-Id: I203527868cc2aacb566b3ed2bd961d5919633fa8
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/ActivityAndWindowManagerOverrideConfigTests.java
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/ActivityManagerAmStartOptionsTests.java
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/ActivityManagerAppConfigurationTests.java
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/ActivityManagerConfigChangeTests.java
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/ActivityManagerDisplayTests.java
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/ActivityManagerDockedStackTests.java
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/ActivityManagerFreeformStackTests.java
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/ActivityManagerPinnedStackTests.java
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/KeyguardLockedTests.java
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/KeyguardTestBase.java
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/KeyguardTests.java
ervices/activityandwindowmanager/util/src/android/server/cts/ActivityManagerTestBase.java
7a40723a2ed791d93476723b8b4d9890e8849170 11-Apr-2017 Jatin Majmudar <fjm225@motorola.com> Merge "Adding sleep time in TrustedVoiceHostTest#testUnlock" into nougat-mr1-cts-dev am: 1be9f964f2 am: d513f7dc68
am: 85e32accd3

Change-Id: I9c5a895e55c55e6803281fe646f54290eecc7005
d513f7dc687b11b4a7d116101114f98a3645ac79 11-Apr-2017 Jatin Majmudar <fjm225@motorola.com> Merge "Adding sleep time in TrustedVoiceHostTest#testUnlock" into nougat-mr1-cts-dev
am: 1be9f964f2

Change-Id: I3a68d7e416c7562159047c76746573bf343921a3
1be9f964f20c65f9f30ab11cc6b1f86dbde27403 11-Apr-2017 Treehugger Robot <treehugger-gerrit@google.com> Merge "Adding sleep time in TrustedVoiceHostTest#testUnlock" into nougat-mr1-cts-dev
cb44a6326e59e03622da74f7381178364578421a 11-Apr-2017 Dmitri Plotnikov <dplotnikov@google.com> Fixing PermissionHostTest CTS tests on TV

Bug: 37158306
Test: cts-tradefed run cts-dev --module CtsAppSecurityHostTestCases -t android.appsecurity.cts.PermissionsHostTest
Change-Id: Iae7f289ba59615034d3f55603510c93f0a1a22c0
ppsecurity/test-apps/UsePermissionApp23/src/com/android/cts/usepermission/BasePermissionsTest.java
4d57c4883d67547d2718332f995f6535009f6685 11-Apr-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Use new sandbox for instant apps." into oc-dev
9862826c7ae0862e85e7e97bd2137f76ba7e4fc8 11-Apr-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Remove RenderProcessCrashTest#testCrash" into oc-dev
60cb0ab9b2ccaa6954f552149f6eb4256871fdec 11-Apr-2017 Svet Ganov <svetoslavganov@google.com> Use new sandbox for instant apps.

Test: test passes

bug:37217355

Change-Id: I79d7b7cc27b095a0a4a8a13a67ff9c30b76de824
ppsecurity/test-apps/InstantCookieApp/AndroidManifest.xml
eb9e09baddea5bca7315e3101063ce66509a7b2f 10-Apr-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Fix testCacheClearing() on non-quota devices." into oc-dev
9798b8e1409915c09ae44698d76056b6c8c1cbfc 10-Apr-2017 Paul Miller <paulmiller@google.com> Remove RenderProcessCrashTest#testCrash

This reverts part of 0bf04408.

Test: ran testOnRenderProcessGoneDefault, testOnRenderProcessGone

BUG:36869571
Change-Id: I85e7eca66e4f352519d02650eece3755aed2dd52
ebkit/AndroidTest.xml
ebkit/renderprocesscrash/Android.mk
ebkit/renderprocesscrash/AndroidManifest.xml
ebkit/renderprocesscrash/src/com/android/cts/webkit/renderprocesscrash/RenderProcessCrashActivity.java
ebkit/src/com/android/cts/webkit/RenderProcessCrashTest.java
fa127ef72bb04024c78455ae607edf32546cdd75 10-Apr-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge changes Ic78dc670,I2d6d12f8 into oc-dev

* changes:
Batterystats CTS test: background job scheduling
Batterystats CTS test: background wifi scan
19083514b57755f77c75baa5b9bc41f24a4e604c 10-Apr-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Increase error margin for wifi download" into oc-dev
574d90fd682f32fa451d87ac44a44003cea03caa 10-Apr-2017 Trevor Smigiel <tsmigiel@google.com> Merge "Fix testExternalStorageReadDefaultUris." into oc-dev
20bee4352230b084d74eb0f879e52e03b4541b78 05-Apr-2017 Bookatz <bookatz@google.com> Batterystats CTS test: background job scheduling

Schedules a job when the app is in the foreground and background
and ensures that the counts are incremented correctly.

Fixes: 35669746
Test: run cts-dev -m CtsIncidentHostTestCases -t com.android.server.cts.BatteryStatsValidationTest
Change-Id: Ic78dc670f691d1970671b02aff9ee81188131231
ncident/apps/batterystatsapp/src/com/android/server/cts/device/batterystats/BatteryStatsBgVsFgActions.java
ncident/apps/batterystatsapp/src/com/android/server/cts/device/batterystats/BatteryStatsForegroundActivity.java
ncident/src/com/android/server/cts/BatteryStatsValidationTest.java
a190263d5872b3e42b42260364aa74eaf1cb37f8 03-Apr-2017 Bookatz <bookatz@google.com> Batterystats CTS test: background wifi scan

Performs wifi scans in both foreground and background processes and
ensures that the counts are incremented correctly.
Note that the previous code for this did not WAI because the
instramentation harness ran everything through a foreground service.

Fixes: 35677312
Test: run cts-dev -m CtsIncidentHostTestCases -t
com.android.server.cts.BatteryStatsValidationTest
Test: Also used st line of
batterystats to ensure that background/foreground usage was as desired.

Change-Id: I2d6d12f84cd3bc236b4db8f5196d0902ab6e9c2d
ncident/apps/batterystatsapp/AndroidManifest.xml
ncident/apps/batterystatsapp/src/com/android/server/cts/device/batterystats/BatteryStatsBackgroundService.java
ncident/apps/batterystatsapp/src/com/android/server/cts/device/batterystats/BatteryStatsBgVsFgActions.java
ncident/apps/batterystatsapp/src/com/android/server/cts/device/batterystats/BatteryStatsForegroundActivity.java
ncident/apps/batterystatsapp/src/com/android/server/cts/device/batterystats/BatteryStatsWifiScanTests.java
ncident/src/com/android/server/cts/BatteryStatsValidationTest.java
509e1783c92347881b4633769ea546ed0dd357dc 10-Apr-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Add test launching app installed in work profile only" into oc-dev
d6f30f465c4c8f257eb4fc2a9b622f97a533d061 07-Apr-2017 Tony Mak <tonymak@google.com> Add test launching app installed in work profile only

Test: cts-tradefed run cts --module DevicePolicyManager --test com.android.cts.devicepolicy.ManagedProfileTest#testSanityCheck
Test: cts-tradefed run cts --module DevicePolicyManager --test com.android.cts.devicepolicy.ManagedProfileTest#ManagedProfileProvisioningTest
Test: cts-tradefed run cts --module DevicePolicyManager --test com.android.cts.devicepolicy.DeviceOwnerTest#testDeviceOwnerProvisioning

Fix: 36502806

Change-Id: Idc7b15f503dc7d378ed3fceaf048caa08d62e0eb
evicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/ManagedProfileTest.java
evicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/SanityTest.java
evicepolicy/src/com/android/cts/devicepolicy/ManagedProfileTest.java
289764535986377bbfa076136802c0f15d157ca9 10-Apr-2017 Bryce Lee <brycelee@google.com> Merge "Add CTS test for DialogWhenLarge and split screen." into oc-dev
b4eef00e9e524d114275a056c42f1464d54556bd 10-Apr-2017 Jeff Sharkey <jsharkey@android.com> Fix testCacheClearing() on non-quota devices.

Devices without quota support can't quickly answer questions about
how much disk space cached data is using, so don't require summary
APIs to track that data.

Relax testVerifyQuota() to not require quota on f2fs filesystems,
since those don't have quota support (yet).

Also add more logging to track down why testVerifyStatsExternal()
might be failing in a test harness.

Test: cts-tradefed run commandAndExit cts-dev -m CtsAppSecurityHostTestCases -t android.appsecurity.cts.StorageHostTest
Bug: 36731175, 37168194
Change-Id: Ib9a5215cb507657c6d7788ab43e192d753d6129e
ppsecurity/test-apps/StorageApp/src/com/android/cts/storageapp/Utils.java
ppsecurity/test-apps/StorageStatsApp/src/com/android/cts/storagestatsapp/StorageStatsTest.java
0c7932a645a18345f8317c276cc04cb9c0a3e18d 10-Apr-2017 Jeff Sharkey <jsharkey@google.com> Merge "Add setLastModified test to testAllPackageDirsWritable" into oc-dev
8b3d35da9bae56e5d58db80a2a99980c73b9d59d 10-Apr-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Fix the sync adapter account access CTS tests" into oc-dev
18c94d6f87885cbc3973feb3b9b2b23f51de4a76 10-Apr-2017 Svet Ganov <svetoslavganov@google.com> Fix the sync adapter account access CTS tests

Accounts are accessed by sync adapters singed with the same
cert as the authenticator managing the account, otherwise the
user has to approve account access. The CTS tests were failing
because the sync manager updates its internal state on an
accounts change via a broadcast which takes time to propagate.
The fix is to wait a bit for the propagation to occur which
unfortunately is not detectable, so a hard-coded wait is used.
Also these tests would not pass if there is no network
connection as no syncs happen if there is no connectivity.

Test: These tests are now passing

bug:36215841

Change-Id: I5d8374802dc10bbd3a597175dce4f4942234a4c4
ontent/test-apps/CtsSyncAccountAccessOtherCertTests/AndroidManifest.xml
ontent/test-apps/CtsSyncAccountAccessOtherCertTests/src/com/android/cts/content/CtsSyncAccountAccessOtherCertTestCases.java
ontent/test-apps/CtsSyncAccountAccessSameCertTests/AndroidManifest.xml
ontent/test-apps/CtsSyncAccountAccessSameCertTests/src/com/android/cts/content/CtsSyncAccountAccessSameCertTestCases.java
70fee0984b123c9d2771499bc9338d0f4536ccc9 09-Apr-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Delete testAllCharacterDevicesAreSecure()" into oc-dev
6243ff729f6652552812ac1198e06cba90fb2d67 08-Apr-2017 Nick Kralevich <nnk@google.com> Delete testAllCharacterDevicesAreSecure()

Delete the test testAllCharacterDevicesAreSecure(). Many of these tests
are already duplicated by SELinux neverallow rules, which are a cleaner
way to perform these kinds of tests and don't involve opening up stat()
permissions on various character device files. In addition, the normal
version of this test (not the host side version) doesn't work because
/dev isn't readable.

This test is a maintenance burden, doesn't meet our partner's needs, and
is a recurring source of waiver requests.

Bug: 36891574
Test: CTS compiles.
Change-Id: Ice9b9c32a87add3a0f16647a46af1be31ad5f044
ecurity/src/android/cts/security/FileSystemPermissionTest.java
72f92dfc112ecdced1d393d4f148f1e95c26e7be 08-Apr-2017 Trevor Smigiel <tsmigiel@google.com> Fix testExternalStorageReadDefaultUris.

Secondary users do not have any default URI's set in the CTS
environment. The test now always sets the default URI to something
for each user before trying to play it.

Test: cts-tradefed run cts --module CtsAppSecurityHostTestCases -t android.appsecurity.cts.ExternalStorageHostTest#testExternalStorageReadDefaultUris
Bug: 37007047
Change-Id: Id700ba0c4aaa88a96f3d2a196a10ad234c2f79c8
ppsecurity/src/android/appsecurity/cts/ExternalStorageHostTest.java
573aad53995ae58c0f13df72f73ced331b3fcbfc 08-Apr-2017 Andrii Kulian <akulian@google.com> Merge "Update CTS tests to check support for MD properly" into oc-dev
0499a58ce9d2c66ce3c119242109c600526a6eed 07-Apr-2017 Bryce Lee <brycelee@google.com> Add CTS test for DialogWhenLarge and split screen.

This test exercises resizing a display containing an Activity with
the DialogWhenLarge theme from a dialog eligible size to a full
screen size. The test ensures the activity is still valid after the
transition.

Bug: 31643268
Test: cts/hostsidetests/services/activityandwindowmanager/util/run-test CtsServicesHostTestCases android.server.cts.ActivityManagerAppConfigurationTests#testDialogWhenLargeSplitSmall
Change-Id: I34f6fd7c49b91b7e4b1a9f023440661245e6010e
ervices/activityandwindowmanager/activitymanager/Android.mk
ervices/activityandwindowmanager/activitymanager/app/AndroidManifest.xml
ervices/activityandwindowmanager/activitymanager/app/src/android/server/cts/DialogWhenLargeActivity.java
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/ActivityManagerAppConfigurationTests.java
e2f151e60113c78d93e65233ec61e29709d301be 08-Apr-2017 Andrii Kulian <akulian@google.com> Update CTS tests to check support for MD properly

Bug: 36776777
Test: android.server.cts.ActivityManagerDisplayTests
Change-Id: I0fdd87cf4797bf18a4b099fd082c757653fd9c99
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/ActivityManagerDisplayTests.java
5c95946a9ff19b892412019ce316a599dd89d0de 08-Apr-2017 Jeff Hao <jeffhao@google.com> Merge "Revert "Remove failing UsesLibrary.testUsesLibrary test."" into oc-dev
f6c51f776138e612fac344f9448ef5cf5ab523c4 07-Apr-2017 Rubin Xu <rubinxu@google.com> Merge "resolve merge conflicts of feb5ef831d to nougat-mr1-cts-dev" into nougat-mr1-cts-dev am: 2fb769bd3c am: 75e137f91e am: 51b8e042d2
am: af00a3da78

Change-Id: I8a24828f2c89bda3aa86851edbd72f9b3da5398a
af00a3da78f1d14b42536cc329df9734e0374a1a 07-Apr-2017 Rubin Xu <rubinxu@google.com> Merge "resolve merge conflicts of feb5ef831d to nougat-mr1-cts-dev" into nougat-mr1-cts-dev am: 2fb769bd3c am: 75e137f91e
am: 51b8e042d2

Change-Id: Ib5c2e795a218847186529f04e5ce6958c084a81d
75e137f91e1096eae624ef988d5cd060b7a29493 07-Apr-2017 Rubin Xu <rubinxu@google.com> Merge "resolve merge conflicts of feb5ef831d to nougat-mr1-cts-dev" into nougat-mr1-cts-dev
am: 2fb769bd3c

Change-Id: I079519779d0674f5917e8078da9beee324337f09
cc760f97cc2cce65fb8b7be3e6ba04a8be8dda6c 07-Apr-2017 Alex Klyubin <klyubin@google.com> Merge "Enforce Treble-only neverallows" into oc-dev
c0828132eb92276ee6cc7d78ca40a2400f16093c 07-Apr-2017 Rubin Xu <rubinxu@google.com> resolve merge conflicts of feb5ef831d to nougat-mr1-cts-dev

Test: I solemnly swear I tested this conflict resolution.
Change-Id: I578cc6052dd4214f521abb67a5f04bb497851ab9
9e17f61f5aededd5d996ebeb8cbdeed5003ae0f4 07-Apr-2017 Rubin Xu <rubinxu@google.com> Merge "Fix DeviceOwnerPasswordTest flakiness" into nougat-cts-dev am: feb5ef831d
am: 649bea0fac

Change-Id: I2cc2920e4066798e33b7bbcd43df042b8b630e8b
649bea0fac68843c36cd99d2d2d611dd6f3fe071 07-Apr-2017 Rubin Xu <rubinxu@google.com> Merge "Fix DeviceOwnerPasswordTest flakiness" into nougat-cts-dev
am: feb5ef831d

Change-Id: I3ad3228881a2efac626f5d9b4ef841bc299e0461
1321141d340badfc75ae0d075f3f7699754cf912 07-Apr-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Remove flaky test line" into oc-dev
46371022de38f7344d500fc3d3b726cdcb9ce445 07-Apr-2017 Julia Reynolds <juliacr@google.com> Remove flaky test line

It makes assumptions about posted notifications that aren't
true on every test device

Fixes: 37104191
Test: CtsIncidentHostTestCases
Change-Id: Iecd2e1fd9ae6f781b6744d1e1e1e05c406fc3768
ncident/src/com/android/server/cts/NotificationTest.java
22e1e3fcea99f244ccde46a66bd9e49089d94eb3 06-Apr-2017 Rubin Xu <rubinxu@google.com> Fix DeviceOwnerPasswordTest flakiness

DevicePolicyManager.isActivePasswordSufficient() now gets its result
updated asynchronously after a password change, so retry a few times
before asserting the expected value.

Bug: 34212737
Test: cts-tradefed run cts-dev -m CtsDevicePolicyManagerTestCases -t com.android.cts.devicepolicy.DeviceAdminHostSideTestApi23#testRunDeviceOwnerPasswordTest
Change-Id: I03c01db32912debd9b61c9d403929325e7ba653c
evicepolicy/app/DeviceAdmin/src/com.android.cts.deviceadmin/DeviceOwnerPasswordTest.java
9dd67db92f66564b8c88eb783be60254981d8c37 07-Apr-2017 Alex Klyubin <klyubin@google.com> Enforce Treble-only neverallows

This changes SELinuxNeverallowRulesTest so that it enforces
Treble-only neverallows only for Treble devices. The companion
change in system/sepolicy is the one which makes CTS include
Treble-only neverallows and annotate them appropriate so that this
test knows which neverallows are Treble-only.

Test: make cts && \
cts-tradefed run singleCommand cts --skip-device-info \
--skip-preconditions --skip-connectivity-check \
--abi arm64-v8a --module CtsSecurityHostTestCases \
-t android.cts.security.SELinuxNeverallowRulesTest
Bug: 37082262

Change-Id: I60738d644c0b6bf9ff684a52b62a20b22719bcbb
ecurity/src/android/security/cts/SELinuxHostTest.java
e11a5fe5e29c94bc1a5510559dd74909d05274eb 07-Apr-2017 Andrii Kulian <akulian@google.com> Merge "Check config in multi-display tests" into oc-dev
a0d4982aec29ab2f1d5948560a56e4e38c24b9f4 06-Apr-2017 Treehugger Robot <treehugger-gerrit@google.com> Merge "DO NOT MERGE: [ThemeHostTest] correct xxxhdpi golden copy" into nougat-mr1-cts-dev
06833ab256d0f678cad38ae70f00ff6257fe8285 06-Apr-2017 Andrii Kulian <akulian@google.com> Check config in multi-display tests

Before running multi-display tests we should check if the device
supports it. Also added new test to verify that launching activities
on a secondary display doesn't work when config says that the
feature is disabled.

Bug: 36776777
Test: android.server.cts.ActivityManagerDisplayTests
Test: #testMultiDisplayDisabled
Change-Id: I73a2d3b14eaa84f52ebdc4677ab368a43e65a08f
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/ActivityManagerDisplayTests.java
f760af5fe9e36ff5b5b6e532178b05c47a584826 22-Feb-2017 Arthur Hsu <arthurhsu@google.com> Skip home related tests if no home screen.

ARC++ does not have home activity and therefore CTS tests using home
screen for verification will fail. Adding capability detection in these
tests make the test pass.

Bug: 35323412
Test: cts -m CtsServicesHostTestCases --test android.server.cts.ActivityManagerActivityVisiblityTests
Change-Id: I86525a73a32eae2d40c516d0630d3d0cb346f9c1
ervices/activitymanager/app/AndroidManifest.xml
ervices/activitymanager/app/src/android/server/app/NoHomeScreenObserver.java
ervices/activitymanager/src/android/server/cts/ActivityManagerActivityVisiblityTests.java
ervices/activitymanager/src/android/server/cts/ActivityManagerTestBase.java
f396ba7001962937b7ac5d94c1f269aec42c2bbb 06-Apr-2017 Rob Carr <racarr@google.com> Merge changes from topic 'fix-cts-early-april' into oc-dev

* changes:
Fix Window movement tests.
DialogFrameTests: Don't test NO_LIMITS in multiwindow.
4bbfc069acad98616ce3e4aeeb9b46f28b7a0c2f 06-Apr-2017 Jocelyn Dang <jocelyndang@google.com> Merge "CTS test for errors: wait for the correct tag in Dropbox broadcast receiver." into oc-dev
9a0bb11d95967038077f59021d1c00bfff96213f 06-Apr-2017 Treehugger Robot <treehugger-gerrit@google.com> Merge "DO NOT MERGE: Adding method to check multiwindow support." into nougat-cts-dev
1ee98270086812783698ecee58eef421c6d0317a 27-Jan-2017 Raj Mamadgi <r.mamadgi@samsung.com> DO NOT MERGE: Adding method to check multiwindow support.

This patch has no dependency on device side api.
It useses hostside/device side sync method using logcat
to determine if the device supports multiwindow.

b/33811269

Change-Id: I7edbcf8dc6ae3dcc1eb78e6e4e726917c6ee9786
Signed-off-by: Raj Mamadgi <r.mamadgi@samsung.com>
ervices/activitymanager/app/AndroidManifest.xml
ervices/activitymanager/app/src/android/server/app/MultiWindowSupportObserver.java
ervices/activitymanager/src/android/server/cts/ActivityManagerTestBase.java
ervices/windowmanager/dndsourceapp/AndroidManifest.xml
ervices/windowmanager/dndsourceapp/src/android/wm/cts/dndsourceapp/MultiWindowSupportObserver.java
ervices/windowmanager/src/android/wm/cts/CrossAppDragAndDropTests.java
6d90deb0683f8c13f018d886f81f9a9c4f963889 06-Apr-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Fix VR tests on unsupported devices." into oc-dev
33eb2020b59cc314404a3cdb713b3104f377a29e 06-Apr-2017 Guang Zhu <guangzhu@google.com> Merge "mitigate test flakiness on certain device types" into oc-dev
949ba187c5906d0bf53271e4486a27c0d7284771 06-Apr-2017 Makoto Onuki <omakoto@google.com> Merge "More CTS for DeviceAdminService" into oc-dev
94e705913748c095ca18be46ff47f16231f2fff4 29-Mar-2017 Jocelyn Dang <jocelyndang@google.com> CTS test for errors: wait for the correct tag in Dropbox broadcast receiver.

There can be other dropbox entries added while the test
is still waiting for the error report, which leads to the test failing.

Bug: 36686383

Test: flashed device with OPR1.170327.002 and ran CTS test.
Change-Id: I87b9eb7d4b2536e04e23b8ab05b2efe22214dd50
(cherry picked from commit e6526022a9291ce8397e8963fd84027fcc794515)
ncident/apps/errorsapp/src/com/android/server/cts/errors/ErrorsTests.java
eeb393393d5b18cce0ceae40aed5d0d4b7ebe99c 05-Apr-2017 Guang Zhu <guangzhu@google.com> mitigate test flakiness on certain device types

... with a gross hack that's less flaky

Some devices goes through a USB mode switch at framework boot
complete. We do 2 things to guard against that:
1. use IDevice API to poll property value and catch exception
that might indicate brief USB disruption
2. sleep() some more after we've detected that framework has
completed boot

Bug: 36783292
Test: cts-tradefed run cts-dev --log-level verbose --module \
CtsAppSecurityHostTestCases --test \
android.appsecurity.cts.DirectBootHostTest#testDirectBootEmulated \
--product-type dragon
# and run it 10 times to ensure passing

Change-Id: I950a4d43350bb3858d82c236de473e9607caf756
ppsecurity/src/android/appsecurity/cts/DirectBootHostTest.java
51d6350813423546b764db80a3b4ea8481d466af 05-Apr-2017 Daniel Rosenberg <drosen@google.com> Add setLastModified test to testAllPackageDirsWritable

Bug: 34955809
Test: Ran the modified test
Change-Id: Ic3b369e7d0fedf0e2a67c0e928e2787e05df378e
ppsecurity/test-apps/ExternalStorageApp/src/com/android/cts/externalstorageapp/CommonExternalStorageTest.java
689c714c332b51330cddfb6de6500b209ac00386 05-Apr-2017 Karthik Ravi Shankar <karthikrs@google.com> Fix VR tests on unsupported devices.

VR tests were failing with an exception on unsupported devices and being
reported as test failure. Address this by checking if the device has VR
feature support or not.

Bug: 36891809
Test: cts/hostsidetests/services/activityandwindowmanager/util/run-test
CtsServicesHostTestCases android.server.cts.ActivityManagerDisplayTests
passes on Marlin.

Change-Id: I09c6d79cd1d5affa1b4608e12292da2812ce61e1
Signed-off-by: Karthik Ravi Shankar <karthikrs@google.com>
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/ActivityManagerDisplayTests.java
ervices/activityandwindowmanager/util/src/android/server/cts/ActivityManagerTestBase.java
876fa1442193fe939f964f9c91febb005520ca4f 05-Apr-2017 Makoto Onuki <omakoto@google.com> More CTS for DeviceAdminService

Make sure the system ignores DEVICE_ADMIN_SERVICE services in non-owner
packages.

Bug: 36226832

Test: cts-tradefed run cts-dev --skip-device-info --skip-preconditions --skip-system-status-check com.android.compatibility.common.tradefed.targetprep.NetworkConnectivityChecker -a armeabi-v7a -l DEBUG -m CtsDevicePolicyManagerTestCases -t com.android.cts.devicepolicy.DeviceAdminServiceDeviceOwnerTest
Test: cts-tradefed run cts-dev --skip-device-info --skip-preconditions --skip-system-status-check com.android.compatibility.common.tradefed.targetprep.NetworkConnectivityChecker -a armeabi-v7a -l DEBUG -m CtsDevicePolicyManagerTestCases -t com.android.cts.devicepolicy.DeviceAdminServiceProfileOwnerTest
Change-Id: I2e6f03c0a9835c94a37d2a022eb6143cc64a69ee
evicepolicy/app/DeviceAdminService/packageb/Android.mk
evicepolicy/app/DeviceAdminService/packageb/AndroidManifest.xml
evicepolicy/src/com/android/cts/devicepolicy/BaseDeviceAdminServiceTest.java
42943c8dec6c762912f0401e65becfad8752d45c 05-Apr-2017 jdesprez <jdesprez@google.com> Fix CTS AndroidTest.xml files to push the correct apk

Some configs were not running anything because of
misconfigurations.

Test: run cts-dev --collect-tests-only
Bug: 36362112
Change-Id: Ifc2ed6e6604411414465999e8e98cca6f9d53448
ontent/Android.mk
vmti/base/host/Android.mk
00f62d55e38c1c65c8dc01ef01f645f0dee47e2d 05-Apr-2017 Jocelyn Dang <jocelyndang@google.com> Increase error margin for wifi download

Test: ran CTS tests

Change-Id: I9650f447ebed3b665d80e9ebf037739be0b571f2
Fixes: 36781359
ncident/src/com/android/server/cts/BatteryStatsValidationTest.java
0aa0ae26b9f035a7d8b8dd766abfb059d24a08f7 05-Apr-2017 Makoto Onuki <omakoto@google.com> Merge "CTS for DeviceAdminService" into oc-dev
a04a6ef102ff90d19245d8e0ce1f4c774a32f466 05-Apr-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Use dedicated cert for static shared lib tests" into oc-dev
f308df76a7699c86929e89dea51ceb053ab584d2 05-Apr-2017 Makoto Onuki <omakoto@google.com> CTS for DeviceAdminService

Bug: 36226832
Test: cts-tradefed run cts-dev --skip-device-info --skip-preconditions --skip-system-status-check com.android.compatibility.common.tradefed.targetprep.NetworkConnectivityChecker -a armeabi-v7a -l DEBUG -m CtsDevicePolicyManagerTestCases -t com.android.cts.devicepolicy.DeviceAdminServiceDeviceOwnerTest
Test: cts-tradefed run cts-dev --skip-device-info --skip-preconditions --skip-system-status-check com.android.compatibility.common.tradefed.targetprep.NetworkConnectivityChecker -a armeabi-v7a -l DEBUG -m CtsDevicePolicyManagerTestCases -t com.android.cts.devicepolicy.DeviceAdminServiceProfileOwnerTest
Change-Id: Ia3904ae2ce920f07a88e34f9212ee98e6bd7d834
evicepolicy/app/DeviceAdminService/Android.mk
evicepolicy/app/DeviceAdminService/package1/Android.mk
evicepolicy/app/DeviceAdminService/package1/AndroidManifest.xml
evicepolicy/app/DeviceAdminService/package2/Android.mk
evicepolicy/app/DeviceAdminService/package2/AndroidManifest.xml
evicepolicy/app/DeviceAdminService/package3/Android.mk
evicepolicy/app/DeviceAdminService/package3/AndroidManifest.xml
evicepolicy/app/DeviceAdminService/package4/Android.mk
evicepolicy/app/DeviceAdminService/package4/AndroidManifest.xml
evicepolicy/app/DeviceAdminService/res/xml/device_admin.xml
evicepolicy/app/DeviceAdminService/src/com/android/cts/deviceadminservice/ComponentController.java
evicepolicy/app/DeviceAdminService/src/com/android/cts/deviceadminservice/MyOwner.java
evicepolicy/app/DeviceAdminService/src/com/android/cts/deviceadminservice/MyService.java
evicepolicy/app/DeviceAdminService/src/com/android/cts/deviceadminservice/MyService2.java
evicepolicy/src/com/android/cts/devicepolicy/BaseDeviceAdminServiceTest.java
evicepolicy/src/com/android/cts/devicepolicy/DeviceAdminServiceDeviceOwnerTest.java
evicepolicy/src/com/android/cts/devicepolicy/DeviceAdminServiceProfileOwnerTest.java
40d4964104ae67c5e528854df9810ad27fb9ca42 05-Apr-2017 Svetoslav Ganov <svetoslavganov@google.com> Use dedicated cert for static shared lib tests

Packages using a static shared lib need to refer it by name,
version, and SHA-256 of signing cert. However, when CTS is
build for release the cert used to sign apps that do not
explicitly specify a signing cert changes as a result the
static shared lib tests fail as the app consumer refers to
the worng cert SHA-256. This change fixes the user cert.

Test: All static shared lib CTS tests now pass

bug:34712107

Change-Id: Ibfc37bf5f136d708bf449a24432e4f4c51f571b0
s/test-apps/StaticSharedLibConsumerApp1/AndroidManifest.xml
s/test-apps/StaticSharedLibProviderApp1/Android.mk
s/test-apps/StaticSharedLibProviderApp2/Android.mk
s/test-apps/StaticSharedLibProviderApp3/Android.mk
s/test-apps/StaticSharedLibProviderApp5/Android.mk
s/test-apps/StaticSharedLibProviderApp6/Android.mk
3b80240c1b2411d1235cf32994c37b39a3622a8c 05-Apr-2017 Robert Carr <racarr@google.com> Fix Window movement tests.

We need to apply PRIVATE_FLAG_NO_MOVE_ANIMATION,
furthermore we need to not use a PopupWindow so that we can
get at the privateFlags.

Bug: 36865695
Test: cts-tradefed run singleCommand cts -d -o --module CtsWindowManagerHostTestCases --test android.server.cts.ChildMovementTests
Change-Id: Id9ac3b64c682a95a6d888d9ff5b3c9a9aa65167d
ervices/activityandwindowmanager/windowmanager/frametestapp/AndroidManifest.xml
ervices/activityandwindowmanager/windowmanager/frametestapp/src/android/server/frametestapp/MovingChildTestActivity.java
ervices/activityandwindowmanager/windowmanager/frametestapp/src/android/server/frametestapp/MovingPopupTestActivity.java
ervices/activityandwindowmanager/windowmanager/src/android/server/cts/ChildMovementTests.java
ervices/activityandwindowmanager/windowmanager/src/android/server/cts/PopupMovementTests.java
9a726d883c793f47abe855e0010f64bfc7b2b8d9 04-Apr-2017 Robert Carr <racarr@google.com> DialogFrameTests: Don't test NO_LIMITS in multiwindow.

It's not really supported.

Bug: 36865695
Test: cts-tradefed run singleCommand cts -d -o --module CtsWindowManagerHostTestCases --test android.server.cts.DialogFrameTests
Change-Id: I7ffa6a040a3d5aef96a6c914bea7bb5e2cf97e78
ervices/activityandwindowmanager/windowmanager/src/android/server/cts/DialogFrameTests.java
d6a99a63bb6d68164e850fb81e03a3f7563c9382 04-Apr-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Clean up tmp file usage in CtsThemeHostTest" into oc-dev
0fa88297b2e1ffd68aab654d3702e0ea9916e7c3 04-Apr-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Tighter timing around allocating disk space." into oc-dev
3b24589df992cdf6ef313c52025f12977dc854db 04-Apr-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Assert no exemptions in core <-> vendor data sharing ban" into oc-dev
0f97e19580e49e4c2c4bb0047401b0b8c58c7004 04-Apr-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Fix some resource related CTS tests" into oc-dev
5b5fed980febfea825212dea4e1047612fb7cba8 04-Apr-2017 Makoto Onuki <omakoto@google.com> Merge "Make sure AccountCheckHostSideTest still passes even with..." into nougat-mr1-cts-dev am: 581366f384 am: 22bc7803bf am: 98132b9c73
am: 545a05e532

Change-Id: Id03f51e43ad258f6c14ee166613f821603090dfc
2c6f0e2e20e39ad12edec715cea7bba35faa9066 04-Apr-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "resolve merge conflicts of e1844707b1 to oc-dev" into oc-dev
f7664fa8705a1433369cde857e15b235c5018749 04-Apr-2017 Jeff Vander Stoep <jeffv@google.com> Assert no exemptions in core <-> vendor data sharing ban

Test: make cts && \
cts-tradefed run singleCommand cts --skip-device-info \
--skip-preconditions --skip-connectivity-check --abi arm64-v8a \
--module CtsSecurityHostTestCases \
-t android.security.cts.SELinuxHostTest#testNoExemptionsForCoreDataInVendor
Test: make cts && \
cts-tradefed run singleCommand cts --skip-device-info \
--skip-preconditions --skip-connectivity-check --abi arm64-v8a \
--module CtsSecurityHostTestCases \
-t android.security.cts.SELinuxHostTest#testNoExemptionsForVendorDataInCore
Bug: 34980020

Change-Id: I05f51adc91fd8eedbf81992154b60e9ba7ffc128
ecurity/src/android/security/cts/SELinuxHostTest.java
3069f2535011bede8cbc357204d5087a27fed8e7 04-Apr-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Core <-> vendor comms bans apply to O+ devices only" into oc-dev
40115c4f0f2bd235f3395c50dd92ca006d8d3daa 04-Apr-2017 Alan Viverette <alanv@google.com> Clean up tmp file usage in CtsThemeHostTest

Bug: 35656462
Test: CtsThemeHostTestCases
Change-Id: I4fbb9d16178f9c9bc3bd6e201caa6a1e064d5a4a
heme/README
heme/src/android/theme/cts/ComparisonTask.java
heme/src/android/theme/cts/ThemeHostTest.java
545a05e532c4844c950a72ad57f05f7531f8c6c6 04-Apr-2017 Makoto Onuki <omakoto@google.com> Merge "Make sure AccountCheckHostSideTest still passes even with..." into nougat-mr1-cts-dev am: 581366f384 am: 22bc7803bf
am: 98132b9c73

Change-Id: I6b228f68465419f43a34a2067a4b556219bb3b9b
22bc7803bf694f7a68d9d0b8820d5af96c2d9b5b 04-Apr-2017 Makoto Onuki <omakoto@google.com> Merge "Make sure AccountCheckHostSideTest still passes even with..." into nougat-mr1-cts-dev
am: 581366f384

Change-Id: I56d0637285afff98702c0046dd6c48713a2f258b
581366f3842f7fe40e27fdffe1e208db5700ee0a 04-Apr-2017 Treehugger Robot <treehugger-gerrit@google.com> Merge "Make sure AccountCheckHostSideTest still passes even with..." into nougat-mr1-cts-dev
02a023fed06a0351d641d6e1e934f8358ceb2c7e 04-Apr-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Temporarily disable testExposedSystemActivites" into oc-dev
3be13a5a177b0a2bbc8e203511e556685b086ede 04-Apr-2017 Adam Lesinski <adamlesinski@google.com> Fix some resource related CTS tests

AAPT had broken density filtering, which allowed these tests
to pass while checking for specific densities.

AAPT2 is smarter about density filtering, meaning that a vanilla
app will have all but the preferred density stripped.

Use the LOCAL_AAPT_INCLUDE_ALL_RESOURCES := true flag to make
sure AAPT2 retains all resources/densities.

Bug: 35671619
Bug: 36733335
Bug: 36812266
Test: bit CtsContentTestCases:android.content.res.cts.ConfigTest
Change-Id: I6ce1bbb6c83791cc448fab3ccbbc0e19df17f40f
heme/app/Android.mk
913fddcac73ece62d2e25cb4f393e3aa50030890 04-Apr-2017 Ahmed Fakhry <afakhry@google.com> resolve merge conflicts of e1844707b1 to oc-dev

Test: I solemnly swear I tested this conflict resolution.
Change-Id: Ib185ed92df808f407377639b3370e041556a428c
79ac4a36acf10d32ec39927ca61ed43e0caf61c9 03-Apr-2017 Jeff Hao <jeffhao@google.com> Revert "Remove failing UsesLibrary.testUsesLibrary test."

This reverts commit 14909e430c33f3ea065d4f61973b885ba0f3c19e.

Change-Id: I3989f3e550a6bfb2997a565e483b382265d64e3e
(cherry picked from commit 7db47c7cbd70458324248404948f53065d6284cc)
ppsecurity/src/android/appsecurity/cts/UsesLibraryHostTest.java
ppsecurity/test-apps/UsesLibraryApp/src/com/android/cts/useslibrary/UsesLibraryTest.java
457a879c55ca84e298e1e57204a6684ff03a5366 04-Apr-2017 Jeff Sharkey <jsharkey@android.com> Tighter timing around allocating disk space.

Instead of going through broadcast queue (which can get backed up
even with FLAG_RECEIVER_FOREGROUND set), switch over to using
ContentProvider.call() to get immediate allocations.

Test: cts-tradefed run commandAndExit cts-dev -m CtsAppSecurityHostTestCases -t android.appsecurity.cts.StorageHostTest
Bug: 36731175
Change-Id: I89d7bde823922dc1d5ba2928b1e9fb8dbcd1f159
ppsecurity/test-apps/StorageApp/src/com/android/cts/storageapp/UtilsProvider.java
ppsecurity/test-apps/StorageApp/src/com/android/cts/storageapp/UtilsReceiver.java
ppsecurity/test-apps/StorageAppA/AndroidManifest.xml
ppsecurity/test-apps/StorageAppB/AndroidManifest.xml
ppsecurity/test-apps/StorageStatsApp/src/com/android/cts/storagestatsapp/StorageStatsTest.java
f487df0ac3d860237c0cc96cb151fc27b6ef9b97 07-Mar-2017 Jeff Sharkey <jsharkey@android.com> Advancing our amazing bet on PINs.

Settings keeps shuffling around their UI targets, so let's switch
over to using the new "locksettings" shell command for both setting
and clearing our test PIN.

Test: cts-tradefed run cts-dev --module CtsAppSecurityHostTestCases --test android.appsecurity.cts.DirectBootHostTest#testDirectBootNative
Bug: 35764215, 35764115
Change-Id: I843cb6e864b2d384121c0b42208de6ff10ed9a01
ppsecurity/test-apps/EncryptionApp/src/com/android/cts/encryptionapp/EncryptionAppTest.java
8a2b05f64c050b1538953b595d332fc4fcd35259 04-Apr-2017 Chad Brubaker <cbrubaker@google.com> Temporarily disable testExposedSystemActivites

The fixes for this test are blocking on prebuilts coming in from google3
and activity-alias visibleToInstantApps support. To keep tests green
disable this for now.

Bug: 36788934
Test: android.appsecurity.cts.EphemeralTest#testExposedSystemActivities
is no longer a part of EphemeralTest

Change-Id: I93c0982ed510baa8858629a51c0d1d6c07a590d6
ppsecurity/src/android/appsecurity/cts/EphemeralTest.java
aa6fdf0a8c922f0093e250301bfc87a16bab1091 04-Apr-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Improve bg check CTS tests." into oc-dev
e1844707b1c14be513b90f99781749dc9149455c 03-Apr-2017 Ahmed Fakhry <afakhry@google.com> Merge "Fix ActivityManagerAppConfigurationTests when devices ignore user rotations" into nougat-mr1-cts-dev am: 54c5541856 am: c46d0014da
am: 7b54dddc1d

Change-Id: Ia72980d8f0d47e752293d3b6e1e20961193c6dac
410b4ee5f545f93ceadd968fba84a431b86a7c05 03-Apr-2017 Jason Monk <jmonk@google.com> Merge "Add check for if QS is supported." into oc-dev
c46d0014dacb29382576c13ed69729c55f3c671f 03-Apr-2017 Ahmed Fakhry <afakhry@google.com> Merge "Fix ActivityManagerAppConfigurationTests when devices ignore user rotations" into nougat-mr1-cts-dev
am: 54c5541856

Change-Id: Ieb9e2b9190ae8f40d18ec0fcb4253bfbdf3668e5
37384a2aaa1696b7372fb2950b62d3e15fdb843e 03-Apr-2017 Winson Chung <winsonc@google.com> Merge "Adding test to ensure consistent PiP callbacks." into oc-dev
267d3b146d62829c1070c8e1048d262e576a4e14 03-Apr-2017 Alex Klyubin <klyubin@google.com> Core <-> vendor comms bans apply to O+ devices only

Restrictions on non-HwBinder communications between vendor and
non-vendor (aka core) domains apply only to devices shipping with
Android O and newer.

Test: make cts && \
cts-tradefed run singleCommand cts --skip-device-info \
--skip-preconditions --skip-connectivity-check --abi arm64-v8a \
--module CtsSecurityHostTestCases \
-t android.security.cts.SELinuxHostTest#testNoExemptionsForBinderInVendorBan
Test: make cts && \
cts-tradefed run singleCommand cts --skip-device-info \
--skip-preconditions --skip-connectivity-check --abi arm64-v8a \
--module CtsSecurityHostTestCases \
-t android.security.cts.SELinuxHostTest#testNoExemptionsForSocketsBetweenCoreAndVendorBan
Bug: 35870313
Bug: 36577153

Change-Id: Icef02bb6c0d75df5e78eb1b2326d505fdd803df7
ecurity/src/android/security/cts/SELinuxHostTest.java
621214a47c2611eb49926abe8ef3b98bdcef983e 03-Apr-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "CTS test service hiding" into oc-dev
31f5662b6ad022cb412ea5607309f53fa3d58105 03-Apr-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Verify well-behaved system under heavy disk load." into oc-dev
33bb194b1be34817996853c7739dc07db19be44f 03-Apr-2017 Jeff Sharkey <jsharkey@android.com> Verify well-behaved system under heavy disk load.

Abusive or broken apps can go crazy and try allocating all of the
disk space on the device. This test emulates one of those apps, and
verifies that the user is able to navigate into Settings to uninstall
or free up disk space.

A typical device implementation will use quotactl() to prevent apps
from using an unreasonable amount of disk space.

Also add a test to ensure that the number of inodes is reasonable
compared to the disk size.

Test: cts-tradefed run commandAndExit cts-dev -m CtsAppSecurityHostTestCases -t android.appsecurity.cts.StorageHostTest
Test: cts-tradefed run commandAndExit cts-dev -m CtsOsTestCases -t android.os.cts.EnvironmentTest#testSaneInodes
Bug: 36450358
Change-Id: I74af56d485addf046d58c7d650f5c4d7bbdeeb51
ppsecurity/src/android/appsecurity/cts/StorageHostTest.java
ppsecurity/test-apps/StorageApp/src/com/android/cts/storageapp/Hoarder.java
ppsecurity/test-apps/StorageApp/src/com/android/cts/storageapp/StorageTest.java
ppsecurity/test-apps/StorageApp/src/com/android/cts/storageapp/Utils.java
ppsecurity/test-apps/StorageStatsApp/src/com/android/cts/storagestatsapp/StorageStatsTest.java
664709a01e1a9130caff671270d2f9c4dac36ca9 23-Sep-2016 Alan Viverette <alanv@google.com> [DO NOT MERGE] Improve image comparision algorithm for ThemeHostTest

Now allows a single consecutive failures along the y-axis before an image
is considered failing. This will ignore text antialiasing differences
while still preserving the intent of the tests.

Also, this CL updates the image comparison algorithm to use LAB color
space for perceptual image comparison. This should be more robust to
subtle renderer changes, including differences between emulator host GPU
and real device GPU.

Bug: 36766162

Change-Id: I60f2e3dceb3a3d849ea433f3d602816750ca29dc
Test: android.theme.cts.ThemeHostTest
heme/src/android/theme/cts/ColorUtils.java
heme/src/android/theme/cts/ComparisonTask.java
d4fbaa754e23f3342de639e2d0c3dedb552cf785 01-Apr-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Fix ActiveTileServiceTest#testRequestListening ?" into oc-dev
c49d22d81945a512da4e5be474627552d8f84604 01-Apr-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Create host-side CTS module CtsInputMethodServiceHostTestCases" into oc-dev
00d4c7dcefd629da850936ce7d5d796b2dd72c24 01-Apr-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Allow the first frame to be >150ms" into oc-dev
e4fab921515e03a58f687c1c7c63e9db48743fde 01-Apr-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "CTS doesn't like swiping." into oc-dev
f0870c482e0a21ee84a4d56e40af70958a1d2124 01-Apr-2017 Calin Juravle <calin@google.com> Merge "Update CTS profile for compilation test" into oc-dev
bf3db54fec0910123ec037acec9888cc189a3b74 01-Apr-2017 Dianne Hackborn <hackbod@google.com> Improve bg check CTS tests.

Move them out into their own suite, robustify, and add a test
for starting a service as part of an activity launch.

Test: this.

Change-Id: I9246c1bacdd43b9bd1da9f576db549427e0674b6
evicepolicy/app/SimpleApp/AndroidManifest.xml
evicepolicy/app/SimpleApp/src/com/android/cts/launcherapps/simpleapp/SimpleActivityStartService.java
cab6a726a644a631fc1c0867dfdcfdadc149170c 01-Apr-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Added a helper APK to help develop AccountCheckHostSideTest." into oc-dev
9c275502e48bcb1434750e9f03c9b38c24d5bf39 27-Mar-2017 Jatin Majmudar <fjm225@motorola.com> Adding sleep time in TrustedVoiceHostTest#testUnlock

This testcase starts an activity and parses logcat searching for a log
string that is printed by the activity after it starts. If the activity
takes some time to start, the testcase will not find the log and will
fail.

Bug: 36284063
rustedvoice/src/android/trustedvoice/cts/TrustedVoiceHostTest.java
dd77a86c4ce4bdc03e290085419131ee49b95a1c 01-Apr-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Test tasks in vr mode" into oc-dev
d3ba0bdf0de7c2756711435742c18d9aca6a03e2 01-Apr-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Adding test to ensure KEYCODE_WINDOW triggers PIP" into oc-dev
7a57c39a32ed3016a13929929dd827b54a30eba1 27-Mar-2017 Sudheer Shanka <sudheersai@google.com> DO NOT MERGE: Skip data saver related tests if the device doesn't support it.

Bug: 36007771
Test: manual
Change-Id: I817d2cc23e5c8d460367ede749ff35e799f48ee0
et/app/src/com/android/cts/net/hostside/AbstractRestrictBackgroundNetworkTestCase.java
et/app/src/com/android/cts/net/hostside/DataSaverModeTest.java
fb185269a9a6f0a02a08d2ec073468657fecfb9d 27-Mar-2017 Sudheer Shanka <sudheersai@google.com> DO NOT MERGE: Skip data saver related tests if the device doesn't support it.

Bug: 36007771
Test: manual
Change-Id: I817d2cc23e5c8d460367ede749ff35e799f48ee0
et/app/src/com/android/cts/net/hostside/AbstractRestrictBackgroundNetworkTestCase.java
et/app/src/com/android/cts/net/hostside/DataSaverModeTest.java
b2ff9797863c59ec4c3377438b2f83c703d785ed 27-Mar-2017 Sudheer Shanka <sudheersai@google.com> Skip data saver related tests if the device doesn't support it.

Bug: 36007771
Test: manual
Change-Id: I817d2cc23e5c8d460367ede749ff35e799f48ee0
et/app/src/com/android/cts/net/hostside/AbstractRestrictBackgroundNetworkTestCase.java
et/app/src/com/android/cts/net/hostside/DataSaverModeTest.java
29614a7099c8492e38430f1c2ad0267f2b7f52e4 31-Mar-2017 Todd Kennedy <toddke@google.com> CTS test service hiding

Bug: 35871716
Test: cts-tradefed run commandAndExit cts-dev -m CtsAppSecurityHostTestCases -t android.appsecurity.cts.EphemeralTest
Change-Id: Ieeee439a82d9e393729431766a4869ee3bbb16ec
ppsecurity/test-apps/EphemeralTestApp/EphemeralApp1/Android.mk
ppsecurity/test-apps/EphemeralTestApp/EphemeralApp1/AndroidManifest.xml
ppsecurity/test-apps/EphemeralTestApp/EphemeralApp1/src/com/android/cts/ephemeralapp1/ClientTest.java
ppsecurity/test-apps/EphemeralTestApp/EphemeralApp1/src/com/android/cts/ephemeralapp1/EphemeralActivity.java
ppsecurity/test-apps/EphemeralTestApp/EphemeralApp1/src/com/android/cts/ephemeralapp1/EphemeralActivity2.java
ppsecurity/test-apps/EphemeralTestApp/EphemeralApp1/src/com/android/cts/ephemeralapp1/EphemeralActivity3.java
ppsecurity/test-apps/EphemeralTestApp/EphemeralApp1/src/com/android/cts/ephemeralapp1/EphemeralService.java
ppsecurity/test-apps/EphemeralTestApp/EphemeralApp2/AndroidManifest.xml
ppsecurity/test-apps/EphemeralTestApp/NormalApp/Android.mk
ppsecurity/test-apps/EphemeralTestApp/NormalApp/AndroidManifest.xml
ppsecurity/test-apps/EphemeralTestApp/NormalApp/src/com/android/cts/normalapp/ClientTest.java
ppsecurity/test-apps/EphemeralTestApp/NormalApp/src/com/android/cts/normalapp/ExposedActivity.java
ppsecurity/test-apps/EphemeralTestApp/NormalApp/src/com/android/cts/normalapp/ExposedService.java
ppsecurity/test-apps/EphemeralTestApp/NormalApp/src/com/android/cts/normalapp/NormalActivity.java
ppsecurity/test-apps/EphemeralTestApp/NormalApp/src/com/android/cts/normalapp/NormalService.java
ppsecurity/test-apps/EphemeralTestApp/NormalApp/src/com/android/cts/normalapp/NormalWebActivity.java
ppsecurity/test-apps/EphemeralTestApp/UserApp/Android.mk
ppsecurity/test-apps/EphemeralTestApp/UserApp/src/com/android/cts/userapp/UserActivity.java
ppsecurity/test-apps/EphemeralTestApp/util/Android.mk
ppsecurity/test-apps/EphemeralTestApp/util/run-test
ppsecurity/test-apps/EphemeralTestApp/util/src/com/android/cts/util/TestResult.java
08ed4de09c75dfd52e60d9c85819879cf67e1045 15-Mar-2017 Sarah Hu <xiaoyinh@google.com> Skip rotation test when it is not supported by the device.

Bug: 35323347
Test: run cts -m CtsServicesHostTestCases
-t android.server.cts.ActivityManagerConfigChangeTests

Signed-off-by: Sarah Hu <xiaoyinh@google.com>

(cherry picked from commit d449c0b38ef41096c2ab2a75484aa16c2f3f7f70)

Change-Id: Ibc5c526cdb140cc2431a09fefeba4ca222ab78f3
ervices/activitymanager/src/android/server/cts/ActivityManagerConfigChangeTests.java
6da0cfad671843cb580f3f6e72e990296ae22042 31-Mar-2017 Makoto Onuki <omakoto@google.com> Make sure AccountCheckHostSideTest still passes even with...

preexisting accounts.

Bug 28928996
Test: cts-tradefed run cts-dev --skip-device-info --skip-preconditions --skip-system-status-check com.android.compatibility.common.tradefed.targetprep.NetworkConnectivityChecker -a armeabi-v7a -l DEBUG -m CtsDevicePolicyManagerTestCases -t com.android.cts.devicepolicy.AccountCheckHostSideTest

Change-Id: I8ef744d7d835b5381687ec44489e93219565bf73
evicepolicy/src/com/android/cts/devicepolicy/AccountCheckHostSideTest.java
6c128e56ba84cfccfd5c4cf0f95d74eb631550b5 31-Mar-2017 Makoto Onuki <omakoto@google.com> Added a helper APK to help develop AccountCheckHostSideTest.

Test: Build. The app is not used or installed unless manually
installed following the attached README.txt.
Bug 28928996

Change-Id: I2219878fe1b00e8fb23ef266541109340e788d74
evicepolicy/app/AccountCheck/Tester/Android.mk
evicepolicy/app/AccountCheck/Tester/AndroidManifest.xml
evicepolicy/app/AccountCheck/Tester/README.txt
evicepolicy/app/AccountCheck/Tester/res/values/strings.xml
evicepolicy/app/AccountCheck/Tester/res/xml/authenticator.xml
evicepolicy/app/AccountCheck/Tester/src/com/android/cts/devicepolicy/accountcheck/tester/TestAuthenticator.java
3ce5f1a703d0b08ae1210bdce7a71165dbd57003 31-Mar-2017 Jesse Badash <badash@google.com> Merge "fix failures in 8434" into nyc-dev am: ea9308fe95 am: 4a3bd9660e am: efd6c3c613 am: a87ca9ba3f
am: dc7bc69d4b

Change-Id: I7b96435f89ec2756f5f73752f951146d199c930d
dc7bc69d4bce59e51ccb2776cba1409bf2dd6bd1 31-Mar-2017 Jesse Badash <badash@google.com> Merge "fix failures in 8434" into nyc-dev am: ea9308fe95 am: 4a3bd9660e am: efd6c3c613
am: a87ca9ba3f

Change-Id: I48022d7c095ca18be715abede93079a7512b86e8
efd6c3c6138649a72e5f5532db31d0b4304db44d 31-Mar-2017 Jesse Badash <badash@google.com> Merge "fix failures in 8434" into nyc-dev am: ea9308fe95
am: 4a3bd9660e

Change-Id: Ic2efc29f9bfb79b23fb1682bcbd9887c4b475bd9
4a3bd9660e7a8f6c6b16c7609dad39e700d8f4b6 31-Mar-2017 Jesse Badash <badash@google.com> Merge "fix failures in 8434" into nyc-dev
am: ea9308fe95

Change-Id: Ie8a6f95a06e628eb1d1e8080c62bc4af87380827
ea9308fe95016da072a62cb3d0cd657cbb6bc7ae 31-Mar-2017 Jesse Badash <badash@google.com> Merge "fix failures in 8434" into nyc-dev
1a39fe54e876ee3d76aa1d5c358ab440453fc4e5 31-Mar-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Tests setting default ringers to external storage." into oc-dev
678ef56f478936d381e180b23f5c87965d3e5ad6 06-Feb-2017 Badash <badash@google.com> fix failures in 8434

Bug: 34508426

Change-Id: I068394260a55182530e187efaee9b3bd6cf0a707
ecurity/securityPatch/CVE-2016-8434/poc.c
984721280397e2216d09f81e39b3a7a8873f1a20 31-Mar-2017 John Reck <jreck@google.com> Allow the first frame to be >150ms

Change-Id: I9c40c6e743c2f950b991a635ded052451cf3b3b1
Fixes: 36787925
Test: this
ncident/src/com/android/server/cts/GraphicsStatsValidationTest.java
f9138adb7366f90d1be17a66a4f672a01146be8f 31-Mar-2017 Jeff Sharkey <jsharkey@android.com> CTS doesn't like swiping.

It sounds like CTS prefers having the "none" lockscreen instead of
a "swipe" lockscreen, so give it what it wants. This brings us back
to matching the original behavior of the NYC test.

Test: cts-tradefed run commandAndExit cts-dev -m CtsAppSecurityHostTestCases -t android.appsecurity.cts.DirectBootHostTest#testDirectBootNative
Bug: 36789738
Change-Id: I198e5bf1b18b2bf97a257a5bcdbacb2af8389d10
ppsecurity/test-apps/EncryptionApp/src/com/android/cts/encryptionapp/EncryptionAppTest.java
2d2e3f016582cc4837c392e44881f0250d71736f 30-Mar-2017 Sean Lu <sean_lu@htc.com> DO NOT MERGE: [ThemeHostTest] correct xxxhdpi golden copy

BUG:36769215

Symptom: ThemeHostTest failed
Root Cause: holo_button_pressed.png in xxxhdpi not correct
Solution: correct the asset
Project: N71
Note:
Test: passed

Change-Id: I3749c2e9769506118fd43e9e46da5225e992117b
heme/assets/xxxhdpi.zip
201097a6bc2c6ab91a3f46dec6b3ebd3ddfcb953 31-Mar-2017 Jason Monk <jmonk@google.com> Fix ActiveTileServiceTest#testRequestListening ?

Test: cts-tradefed run cts-dev -m CtsSystemUiHostTestCases
Bug: 36782477
Change-Id: Ia2b6b04ccb5c09f5752f9cc50a4a2643bb5b4bb8
ystemui/src/android/host/systemui/ActiveTileServiceTest.java
ystemui/src/android/host/systemui/BaseTileServiceTest.java
270fd6cfea52cc3a1f89d6e4b26eb76f3a118d00 31-Mar-2017 Jason Monk <jmonk@google.com> Add check for if QS is supported.

Test: cts-tradefed run cts-dev -m CtsSystemUiHostTestCases
Change-Id: I7feb4998edbdbf75737bf9dd4df667a961d21112
Fixes: 36363728
ystemui/src/android/host/systemui/ActiveTileServiceTest.java
ystemui/src/android/host/systemui/BaseTileServiceTest.java
ystemui/src/android/host/systemui/TileServiceTest.java
893450aced3ae81fae348b18e76fd34cb185b84d 16-Mar-2017 Tadashi G. Takaoka <takaoka@google.com> Create host-side CTS module CtsInputMethodServiceHostTestCases

Bug: 7542467
Fix: 35336548
Test: Manually execute
cts-tradefed run singleCommand cts-dev -m CtsInputMethodServiceHostTestCases
and verify all tests passed.
Change-Id: I64c5195aa3db387853af8236c2b351a4785cc0d6
(cherry picked from commit b9000af75de24df618ba40f71b8f13e4ae161790)
nputmethodservice/hostside/Android.mk
nputmethodservice/hostside/AndroidTest.xml
nputmethodservice/hostside/src/android/inputmethodservice/cts/hostside/InputMethodServiceLifecycleTest.java
979a525cef5ee5e91bbb25f6ac92ec630209cd88 17-Mar-2017 Tadashi G. Takaoka <takaoka@google.com> Add IME device-side test used from host-side test

Bug: 7542467
Test: Install CtsInputMethodServiceDeviceTests.apk, CtsInputMethod1.apk,
CtsInputMethod2.apk, and CtsInputMethodServiceEventProvider.apk. Then
confirm that switching IME test is passed.
adb install -r CtsInputMethodServiceDeviceTests.apk
adb install -r CtsInputMethod1.apk
adb install -r CtsInputMethod2.apk
adb install -r CtsInputMethodServiceEventProvider.apk
adb shell ime enable android.inputmethodservice.cts.ime1/.CtsInputMethod1
adb shell ime enable android.inputmethodservice.cts.ime2/.CtsInputMethod2
adb shell content delete --uri content://android.inputmethodservice.cts.provider/events
adb shell am broadcast -a android.inputmethodservice.cts.action.DEVICE_EVENT \
-e event_type TEST_START \
-e event_sender android.inputmethodservice.cts.devicetest.InputMethodServiceDeviceTest#testSwitchIme1ToIme2 \
--el event_time 1234 \
android.inputmethodservice.cts.provider/android.inputmethodservice.cts.receiver.EventReceiver
adb shell ime set android.inputmethodservice.cts.ime1/.CtsInputMethod1
adb shell am instrument -w \
-e class android.inputmethodservice.cts.devicetest.InputMethodServiceDeviceTest#testSwitchIme1ToIme2 \
android.inputmethodservice.cts.devicetest/android.support.test.runner.AndroidJUnitRunner
Change-Id: I077f0e8824041d3154fdedf5b27d435af33604ef
(cherry picked from commit ff843564ca0ca424baa15e9830d46690eef01148)
nputmethodservice/common/src/android/inputmethodservice/cts/common/DeviceEventConstants.java
nputmethodservice/common/src/android/inputmethodservice/cts/common/test/DeviceTestConstants.java
nputmethodservice/common/src/android/inputmethodservice/cts/common/test/ShellCommandUtils.java
nputmethodservice/common/src/android/inputmethodservice/cts/common/test/TestInfo.java
nputmethodservice/deviceside/devicetest/Android.mk
nputmethodservice/deviceside/devicetest/AndroidManifest.xml
nputmethodservice/deviceside/devicetest/res/layout/activity_inputmethod_test.xml
nputmethodservice/deviceside/devicetest/res/mipmap-hdpi/ic_launcher.png
nputmethodservice/deviceside/devicetest/src/android/inputmethodservice/cts/devicetest/BusyWaitUtils.java
nputmethodservice/deviceside/devicetest/src/android/inputmethodservice/cts/devicetest/InputMethodServiceDeviceTest.java
nputmethodservice/deviceside/devicetest/src/android/inputmethodservice/cts/devicetest/InputMethodServiceTestActivity.java
nputmethodservice/deviceside/devicetest/src/android/inputmethodservice/cts/devicetest/MoreCollectors.java
nputmethodservice/deviceside/devicetest/src/android/inputmethodservice/cts/devicetest/SequenceMatcher.java
nputmethodservice/deviceside/devicetest/src/android/inputmethodservice/cts/devicetest/TestHelper.java
nputmethodservice/deviceside/lib/src/android/inputmethodservice/cts/DeviceEvent.java
a7f825590c4497fc79d450c3e33d18d8a49341a0 24-Mar-2017 Karthik Ravi Shankar <karthikrs@google.com> Test tasks in vr mode

Bug: 36071574
Test: android.server.cts.ActivityManagerDisplayTests
Test: #testVrActivityLaunch
Test: #testVrActivityReLaunch

Change-Id: Ie73a0a6b2ea78b5977748e10894fdd32b9770f6c
Signed-off-by: Karthik Ravi Shankar <karthikrs@google.com>
ervices/activityandwindowmanager/activitymanager/app/Android.mk
ervices/activityandwindowmanager/activitymanager/app/AndroidManifest.xml
ervices/activityandwindowmanager/activitymanager/app/src/android/server/cts/VrTestActivity.java
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/ActivityManagerDisplayTests.java
6eabbe977ac3a3843d1c031bb57292d9cb1346a4 31-Mar-2017 Calin Juravle <calin@google.com> Update CTS profile for compilation test

Test: cts-tradefed run cts -m CtsCompilationTestCases
Bug: 36371709

(cherry picked from commit 679f741535c610dd9257481112122259535b351f)

Change-Id: I39ef6d299ba4a0dbae3ab71777b6a3ab03630be4
ompilation/assets/primary.prof
0b19f9fafc9ef08c7647b126bf990ea46a59c98d 31-Mar-2017 Winson Chung <winsonc@google.com> Adding test to ensure KEYCODE_WINDOW triggers PIP

Bug: 36687605
Test: android.server.cts.ActivityManagerPinnedStackTests
Test: #testWindowButtonEntersPip
Change-Id: Iad8e95daaff187a38d309a59bdc709843301e41e
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/ActivityManagerPinnedStackTests.java
ervices/activityandwindowmanager/util/src/android/server/cts/ActivityManagerTestBase.java
b4649aca9e9dae553a0a15508ad9ea7f7c8eba30 29-Mar-2017 Trevor Smigiel <tsmigiel@google.com> Tests setting default ringers to external storage.

In an app with WRITE_EXTERNAL_STORAGE, add an mp3 from external storage
to the media provider then set the default ringtone URI's to that entry.
In an app without READ_EXTERNAL_STORAGE, play the changed default URI's
as owner and additional users.

Test: cts-tradefed run cts --module CtsAppSecurityHostTestCases -t android.appsecurity.cts.ExternalStorageHostTest#testExternalStorageReadDefaultUris
Bug: 36571322
Bug: 30572189
Change-Id: I6818c751b21a26f3d25fbafb37c9e37688eb33b8
ppsecurity/src/android/appsecurity/cts/ExternalStorageHostTest.java
ppsecurity/test-apps/ExternalStorageApp/src/com/android/cts/externalstorageapp/ReadDefaultUris.java
ppsecurity/test-apps/WriteExternalStorageApp/Android.mk
ppsecurity/test-apps/WriteExternalStorageApp/res/raw/ringer.mp3
ppsecurity/test-apps/WriteExternalStorageApp/src/com/android/cts/writeexternalstorageapp/ChangeDefaultUris.java
42889bf0b9e0f5b7e7334beb055a0471f0f295ca 30-Mar-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Skip battery incident test in case there's no battery present or in case of Android TV. Also auto-formatted the file." into oc-dev
9e6e26ad74d3cd9546c0b52e1849f87e794d934d 30-Mar-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "don't run multi-user tests if not supported" into oc-dev
20f1a7fabf55b9ef4d2fbd8b9016f247568e8ef2 30-Mar-2017 Todd Kennedy <toddke@google.com> don't run multi-user tests if not supported

Change-Id: If62d633fe907d2a0addfb793550a6eb814a17efe
Fixes: 36726919
Test: cts-tradefed run commandAndExit cts-dev -m CtsAppSecurityHostTestCases -t android.appsecurity.cts.InstantAppUserTest
ppsecurity/src/android/appsecurity/cts/InstantAppUserTest.java
418e05106decb2c1cf8b5fd321a82482c985a53d 29-Mar-2017 Winson Chung <winsonc@google.com> Adding test to ensure consistent PiP callbacks.

Bug: 36099777
Test: android.server.cts.ActivityManagerPinnedStackTests
Test: #testConfigurationChangeOrderDuringTransition
Change-Id: Ie86257f434a37bd5ede3b40cf510b993fbeb92cc
ervices/activityandwindowmanager/activitymanager/app/src/android/server/cts/AbstractLifecycleLogActivity.java
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/ActivityManagerPinnedStackTests.java
ervices/activityandwindowmanager/util/src/android/server/cts/ActivityManagerTestBase.java
65d6f5dbc4a0be4d29b29b612498cce1b5b510ec 29-Mar-2017 Netta P <nettap@google.com> Skip battery incident test in case there's no battery present or in case of
Android TV. Also auto-formatted the file.

Bug: 36656281
Test: cts-tradefed run cts-dev -m CtsIncidentHostTestCase -t com.android.server.cts.BatteryIncidentTest
Change-Id: I5cd43a82d98a693abeacbc61e1a4a860b2369af8
ncident/src/com/android/server/cts/BatteryIncidentTest.java
0bf04408a10b58d6b83fdc25bb47cca7f6b50998 22-Dec-2016 Tao Bai <michaelbai@google.com> Cts for WebView crash API

One test checks WebView app crash if the render process crash isn't
handled.

Another test checks render process crash API work correctly.

BUG: 30824898
Test: This is test

Change-Id: I081edc75953ea55483f0260b666d877cec79ce78
ebkit/AndroidTest.xml
ebkit/renderprocesscrash/Android.mk
ebkit/renderprocesscrash/AndroidManifest.xml
ebkit/renderprocesscrash/src/com/android/cts/webkit/renderprocesscrash/RenderProcessCrashActivity.java
ebkit/src/com/android/cts/webkit/RenderProcessCrashTest.java
006190d90dcbfa121c9e6b77059a3ffa2d1111dc 29-Mar-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Test activity moved to display on launch" into oc-dev
c651567f7e8859cef31ba61cba7a979b4297b720 28-Mar-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Test Configuration in onMovedToDisplay" into oc-dev
cc1ee3a3767d90b9633cf12463abd1189465063d 22-Mar-2017 Ahmed Fakhry <afakhry@google.com> Fix ActivityManagerAppConfigurationTests when devices ignore user rotations

This CL fixes 2 things:
- Skips asserting the stack ID on platforms that will override it to the
free form stack ID.
- Skips the rotation checks when the device ignores setting the user rotation.

BUG: 35323336
TEST: run cts -m CtsServicesHostTestCases -t android.server.cts.ActivityManagerAppConfigurationTests#testConfigurationUpdatesWhenRotatingWhileFullscreen

Change-Id: I29d289606a1d64863cf1df034d5f2122c1e23f47
ervices/activitymanager/src/android/server/cts/ActivityManagerAppConfigurationTests.java
ervices/activitymanager/src/android/server/cts/ActivityManagerTestBase.java
817ce0396ee56f078efad4bdbf86f9ce096aad43 28-Mar-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Assert no exemptions from core <-> vendor socket comms ban" into oc-dev
dd49ba11a01b2302a7085079508aae3589d48880 22-Mar-2017 Andrii Kulian <akulian@google.com> Test activity moved to display on launch

Tests that when an activity is launched with displayId specified
and there is an existing matching task on some other display -
that task will moved to the target display.

Test: android.server.cts.ActivityManagerDisplayTests
Test: #testMoveToDisplayOnLaunch
Change-Id: I904043509c36e557212b957566b655ec14a0d11c
(cherry picked from commit 44d9ee44b5cdd6afa0486f662daac3e40a9d5bd7)
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/ActivityManagerDisplayTests.java
c07df8293fe46071206313f6ac698bf3ebc2eaf6 28-Mar-2017 Alex Klyubin <klyubin@google.com> Assert no exemptions from core <-> vendor socket comms ban

Test: make cts
cts-tradefed run singleCommand cts --skip-device-info \
--skip-preconditions --skip-connectivity-check --abi arm64-v8a \
--module CtsSecurityHostTestCases \
-t android.security.cts.SELinuxHostTest#testNoExemptionsForSocketsBetweenCoreAndVendorBan
Bug: 36577153

Change-Id: I9789eedf4bea2c2f0d1fd83f04a371f3f5899efc
ecurity/src/android/security/cts/SELinuxHostTest.java
a1e9ac5d8c0c464481111517c3a250634b56f153 28-Mar-2017 Andrii Kulian <akulian@google.com> Test Configuration in onMovedToDisplay

Check that configuration reported to onMovedToDisplay is the same
as an instance sent in the following onConfigurationChanged call.

Bug: 36649499
Test: android.server.cts.ActivityManagerDisplayTests
Test: #testOnMovedToDisplayCallback
Change-Id: I497284c8e38cbd0531b0d2adf114c049cf71d2b8
(cherry picked from commit 4aa9195870dc0dc6ccb580615c6329b666a3586c)
ervices/activityandwindowmanager/activitymanager/app/src/android/server/cts/AbstractLifecycleLogActivity.java
ervices/activityandwindowmanager/activitymanager/app/src/android/server/cts/LifecycleLogView.java
07418524352c75ca9b293c035246995d2d550f8b 28-Mar-2017 Michal Karpinski <mkarpinski@google.com> [CTS] Remove backup hostside tests

Those tests have been moved to GTS instead.

Bug: 34760953
Test: this is just removing tests
Change-Id: I28c16b7700cf44476a62e16140cb0002d79bd5c9
ackup/Android.mk
ackup/AndroidTest.xml
ackup/app/Android.mk
ackup/app/AndroidManifest.xml
ackup/app/res/values/strings.xml
ackup/app/res/xml/wallpaper.xml
ackup/app/src/android/backup/cts/app/DummyLiveWallpaper.java
ackup/app2/Android.mk
ackup/app2/AndroidManifest.xml
ackup/app2/src/android/backup/cts/app2/WallpaperRestoreTest.java
ackup/assets/wallpaper_green.ab
ackup/assets/wallpaper_live.ab
ackup/assets/wallpaper_live_green.ab
ackup/assets/wallpaper_red_green.ab
ackup/src/android/backup/cts/WallpaperRestoreHostSideTest.java
1c830b175ab0e0e1b3c323fe62ad5142c0417c00 28-Mar-2017 Alex Klyubin <klyubin@google.com> resolve merge conflicts of 72d212c386 to master

Test: make cts
cts-tradefed run singleCommand cts --skip-device-info \
--skip-preconditions --skip-connectivity-check --abi arm64-v8a \
--module CtsSecurityHostTestCases \
-t android.security.cts.SELinuxHostTest#testNoExemptionsForBinderInVendorBan
Test: make cts
cts-tradefed run singleCommand cts --skip-device-info \
--skip-preconditions --skip-connectivity-check --abi arm64-v8a \
--module CtsSecurityHostTestCases \
-t android.security.cts.SELinuxHostTest#testMLSAttributes
Change-Id: I418e1de63be22becada178a48ae27b7e4d69b87f
0271bd7545f7fad493417c89d016a6ada6feb65c 28-Mar-2017 Treehugger Robot <treehugger-gerrit@google.com> Merge "[DO NOT MERGE] ThemeHostTest: Adding mdpi.zip file" into nougat-cts-dev
72d212c3861ff8bcfcbd0155c9b33305d1f3b182 28-Mar-2017 Alex Klyubin <klyubin@google.com> Merge "Assert no exemptions for Binder ban in vendor" am: bc2ff76cda
am: 6d4472005d

Change-Id: I8063610dea3168a4391cbfbfd8a55d9e77389c8e
6d4472005d3e183d4fd41447ac0131b3d42ac2d2 28-Mar-2017 Alex Klyubin <klyubin@google.com> Merge "Assert no exemptions for Binder ban in vendor"
am: bc2ff76cda

Change-Id: I75c0cfde35f6f727c305c2a5dd3b40ac070270a7
9951ba910106bf1983811442640f48ac1009cdb8 16-Mar-2017 Takanori Kubota <takanori.kubota@sonymobile.com> [DO NOT MERGE] ThemeHostTest: Adding mdpi.zip file

TC confirms pass by comparing to a reference file.
Since CTS 7.0 lacks a reference file for mdpi display on SDK 24,
it causes fail.

Change-Id: I1b0b3631206f363050268f9219127905cba6803e
heme/assets/24/mdpi.zip
88257ded398b48fc6a768d3e38500151c6cdc603 24-Mar-2017 Alex Klyubin <klyubin@google.com> Assert no exemptions for Binder ban in vendor

Test: make cts
cts-tradefed run singleCommand cts --skip-device-info \
--skip-preconditions --skip-connectivity-check --abi arm64-v8a \
--module CtsSecurityHostTestCases \
-t android.security.cts.SELinuxHostTest#testNoExemptionsForBinderInVendorBan
Test: make cts
cts-tradefed run singleCommand cts --skip-device-info \
--skip-preconditions --skip-connectivity-check --abi arm64-v8a \
--module CtsSecurityHostTestCases \
-t android.security.cts.SELinuxHostTest#testMLSAttributes
Bug: 35870313
Change-Id: I52ce8415989070547398c3663e6f2d3a04262f13
ecurity/src/android/security/cts/SELinuxHostTest.java
af0fb41585b59647e1a2670f6dcd005a470a9d81 28-Mar-2017 Treehugger Robot <treehugger-gerrit@google.com> Merge "DO NOT MERGE: Regenerate the golden images for N6 (560dpi) for nougat-cts" into nougat-cts-dev
fb3809c4903b68115ec369d54026008a2f562ac3 07-Mar-2017 Winson Chung <winsonc@google.com> Update tests to check new aspect ratio bounds.

Bug: 35949789
Test: android.server.cts.ActivityManagerPinnedStackTests
Change-Id: I12c74410212c58fdf9cdff02b6bfc8d6c137c131
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/ActivityManagerPinnedStackTests.java
739ae9a998d5cf5d3f1622452a764979803ddba6 27-Mar-2017 Julien Desprez <jdesprez@google.com> Merge "Avoid redirecting the output if not necessary"
9637a087b52829411b67846c78308573e73a5c4a 26-Mar-2017 Lorenzo Colitti <lorenzo@google.com> Merge "Require that the VPN tests pass on TVs."
1a0a909996fa3b9a442068eb17c7b2fbd7b798e3 24-Mar-2017 Daniel Rosenberg <drosen@google.com> Merge "Remove testSdcarddDomain"
99bebb7e5d4a1b85ea02de445ede33cf412f180b 23-Mar-2017 Lorenzo Colitti <lorenzo@google.com> Require that the VPN tests pass on TVs.

The tests were skipped for historical reasons that are no longer
valid, and creates a hole in testing because there are now
several VPN apps that work on TVs.

Test: HostsideVpnTests passes on fugu with UID routing kernel bug fixed
Bug: 36465489
Change-Id: Ib0d6a5cec085e1fc09cf0609b08ca897629afe0c
et/app/src/com/android/cts/net/hostside/VpnTest.java
9ecaa1b259751ea4e13c523176d773b5cbffc106 24-Mar-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "New test to ensure a new process starts out idle."
b138f109db3642942bd2dbf64d142094e054d82d 24-Mar-2017 Ricky Wai <rickywai@google.com> Merge "All device policy host side cts should dismiss keyguard before run"
05b68013ebf97f4c9369a46f54e58b2904ccd172 24-Mar-2017 Julien Desprez <jdesprez@google.com> Avoid redirecting the output if not necessary

Output of CVE-2016-8434 is extremly verbose and unnecessary
redirecting output to null.

Test: ./cts-tradefed run cts-dev CtsSecurityHostTestCases
Bug: 36269460
Change-Id: If0fad126df4a76b06c41488266e5948168f3af1d
ecurity/src/android/security/cts/AdbUtils.java
ecurity/src/android/security/cts/Poc16_12.java
f9e98b485248ca1269e04a959a3e8e7c16c1e78d 24-Mar-2017 Ricky Wai <rickywai@google.com> All device policy host side cts should dismiss keyguard before run

Test: testPackageInstallUserRestrictions works even keyguard is shown
Bug: 32758404
Change-Id: I00da43513e63e8c7c4ccdf78d5c73c5e240124d1
evicepolicy/src/com/android/cts/devicepolicy/BaseDevicePolicyTest.java
c06e1a139a65d8b9b93e3bfd7fdc49f248c3345f 24-Mar-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Increase time to wait for restore confirmation button."
cca2c43531977eb9b5e604a5aba8769952e59ba3 24-Mar-2017 Ricky Wai <rickywai@google.com> Merge "Dismiss keyguard before running LockTaskTest cts"
c64d1572344ef23067b6913bcd45635c18e09966 24-Mar-2017 Bryan Mawhinney <bryanmawhinney@google.com> Increase time to wait for restore confirmation button.

In the hope that it may help with b/36363386

Bug: 36363386
Test: cts-tradefed run cts -m CtsBackupHostTestCases
Change-Id: I1911bf37f4c4dfd5deff4873857135ea18075806
ackup/app2/src/android/backup/cts/app2/WallpaperRestoreTest.java
63a4f7d9fe6ff2c2317e4c3246f688ae5b731a38 24-Mar-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Unminimizing after toggle screen on/off shows docked app correctly (2/2)"
0b20b47edcd7741be6dfa5b20398e1986ab80357 24-Mar-2017 Daniel Rosenberg <drosen@google.com> Remove testSdcarddDomain

This implementation detail has changed, making this test no
longer accurate. When running with sdcardfs, sdcardd mounts
sdcardfs and then terminates, with all future interaction
handled by sdcardfs.

Bug: 35919392
Change-Id: Ibbb7185148d9a8d0803fd6d63afd5013619e5135
Test: Test is no longer present
ecurity/src/android/security/cts/SELinuxHostTest.java
92e95c58cc27c08a8446c90b435a3411b759ab4c 24-Mar-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Add a test for SAF's eject."
64491634f9e415e1c601f9a95c9d8b9a4835840b 24-Mar-2017 Yorke Lee <yorkelee@google.com> Merge "Fix for testNonResizeableActivityHasFullDisplayBounds" into nougat-mr1-cts-dev am: 866f50b7dc am: 61c3093295
am: 64c0462ca4

Change-Id: Ic7c4adfcca72c0375bee260742e2ae6c795f7ace
a230d108e95c62dbdb9fd27f795a6bd9d6b06fc9 24-Mar-2017 Yorke Lee <yorkelee@google.com> Merge "Merge "Fix for testNonResizeableActivityHasFullDisplayBounds" into nougat-mr1-cts-dev am: 866f50b7dc" am: d3a1f96752 am: b12f0c66e3
am: dd589da9d1

Change-Id: I55fc92d7e6accf5b1201eba5b281b006f197e84e
dd589da9d1ae225517b669ffe8fb2770615e1c31 24-Mar-2017 Yorke Lee <yorkelee@google.com> Merge "Merge "Fix for testNonResizeableActivityHasFullDisplayBounds" into nougat-mr1-cts-dev am: 866f50b7dc" am: d3a1f96752
am: b12f0c66e3

Change-Id: I17aab296d5c61f5b8d224b83367d558d15d134e3
b12f0c66e310925a43a6fe89e5aa58388cc66852 24-Mar-2017 Yorke Lee <yorkelee@google.com> Merge "Merge "Fix for testNonResizeableActivityHasFullDisplayBounds" into nougat-mr1-cts-dev am: 866f50b7dc"
am: d3a1f96752

Change-Id: I41aa53d568960b5f02fcb7b393f0e771a2b0a34f
61c3093295ad1e3a859ef77e323cbc4505f3167b 24-Mar-2017 Yorke Lee <yorkelee@google.com> Merge "Fix for testNonResizeableActivityHasFullDisplayBounds" into nougat-mr1-cts-dev
am: 866f50b7dc

Change-Id: Ia6b73bfbf0283d3cdfa25280f1ed1fdc619791bb
7b5ea0e1667f477eebec867845e6ebe5dfa97382 24-Mar-2017 Yorke Lee <yorkelee@google.com> Merge "Fix for testNonResizeableActivityHasFullDisplayBounds" into nougat-mr1-cts-dev
am: 866f50b7dc

Change-Id: Ia244e1f160359b4611f4bbd82244d5f44abd8f5e
680132d13fad6624b49d8b18807a05d32cfd11f8 24-Mar-2017 Dianne Hackborn <hackbod@google.com> New test to ensure a new process starts out idle.

Test: it is this.
Change-Id: If05ec0c3d81749e43a8006ef2784234839d185b8
evicepolicy/app/SimpleApp/AndroidManifest.xml
evicepolicy/app/SimpleApp/src/com/android/cts/launcherapps/simpleapp/SimpleReceiverStartService.java
f0c78256b0d7fb15e6efef26a22ee479a053ce7f 23-Mar-2017 Jocelyn Dang <jocelyndang@google.com> Merge "CTS tests for error reporting."
d29f65fb144b45131111359a55753b824683448d 22-Mar-2017 Garfield Tan <xutan@google.com> Add a test for SAF's eject.

Also deflake Documents SAF tests by avoiding possibilities of creating
documents w/ the same ID.

Test: Documents CTS tests pass.
Bug: 36483910
Change-Id: I0bd6bc7b3eb58e0e83597b09bc2dd99e32bd0bdb
ppsecurity/src/android/appsecurity/cts/DocumentsTest.java
ppsecurity/test-apps/DocumentClient/src/com/android/cts/documentclient/DocumentsClientTest.java
ppsecurity/test-apps/DocumentProvider/src/com/android/cts/documentprovider/MyDocumentsProvider.java
ad9423f2ed8e4aee780d7ef7c9a3a13339f91f9b 23-Mar-2017 Amith Yamasani <yamasani@google.com> Merge "Fix CTS regression in BatteryStatsValidationTests"
dcbd52ddc61c150e88852167a275c86bbfc1635b 23-Mar-2017 Matthew Ng <ngmatthew@google.com> Unminimizing after toggle screen on/off shows docked app correctly (2/2)

When turning screen off when in minimized mode with resizable launcher,
then turning screen back on and unminimizing, it would have the
incorrect position of the divider from the started split position and
the docked app would have the wrong task bounds compared to its stack
bounds (so the docked app looks clipped). Block toggling minimized state
when screen turns off when being minimized will fix this.

Change-Id: Ie05059b7ccf555e4421c41d2cf008b15e338b7cd
Fixes: 34937502, 35388501
Test: cts/hostsidetests/services/activityandwindowmanager/util/run-test
CtsServicesHostTestCases
android.server.cts.ActivityManagerDockedStackTests
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/ActivityManagerDockedStackTests.java
ervices/activityandwindowmanager/util/src/android/server/cts/ActivityManagerTestBase.java
b7dd044e62874f1b8c0b44a73e0c855b125d7e13 13-Mar-2017 Jocelyn Dang <jocelyndang@google.com> CTS tests for error reporting.

Test: ran tests.

Change-Id: I8cbd8424ccef5643d64dabb2268d033831f24fbd
ncident/apps/errorsapp/Android.mk
ncident/apps/errorsapp/AndroidManifest.xml
ncident/apps/errorsapp/jni/Android.mk
ncident/apps/errorsapp/jni/crash-jni.c
ncident/apps/errorsapp/src/com/android/server/cts/errors/ANRActivity.java
ncident/apps/errorsapp/src/com/android/server/cts/errors/ErrorsTests.java
ncident/apps/errorsapp/src/com/android/server/cts/errors/ExceptionActivity.java
ncident/apps/errorsapp/src/com/android/server/cts/errors/NativeActivity.java
ncident/src/com/android/server/cts/ErrorsTest.java
2de6ce4fc3f63a4e68a312fa078c9192693a4a83 23-Mar-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "CTS: Add a JVMTI redefineClasses test"
8a1c8889ae96b1aa5a234096b67d7dbab6efa669 23-Mar-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Wait for restore thread to start before checking for confirm button"
f28b78b572f41596233ada8dbcc385e922e097a2 23-Mar-2017 Bryan Mawhinney <bryanmawhinney@google.com> Wait for restore thread to start before checking for confirm button

Attempt to fix b/36363386. It's possible that we may timeout waiting
for the confirm button before the adb restore command has even been sent.

Test: cts-tradefed run cts -m CtsBackupHostTestCases
Bug: 36363386
Change-Id: I9eeb0b6ae79fdd7aa3790448789f95c8029d152e
ackup/src/android/backup/cts/WallpaperRestoreHostSideTest.java
16be1d5406a8ded015a30ee4a77930c12ebcc580 23-Mar-2017 Ricky Wai <rickywai@google.com> Dismiss keyguard before running LockTaskTest cts

LockTaskTest may fail if keyguard is showing

Test: LockTaskTest cts pass after the fix
Bug: 36179399
Change-Id: Iccf2ee7dddb5ee4b74b7f728d69d3d1a31b18008
evicepolicy/app/DeviceOwner/AndroidManifest.xml
8bc24f76dbdb8ec0b20ca706e203bba63fa25cf5 07-Mar-2017 Jocelyn Dang <jocelyndang@google.com> CTS tests for wifi download and upload, in background and foreground.

Test: ran cts tests.
Change-Id: Iee9f23f151e1762ab6dedd38c4875df04ef48a81
ncident/apps/batterystatsapp/Android.mk
ncident/apps/batterystatsapp/AndroidManifest.xml
ncident/apps/batterystatsapp/src/com/android/server/cts/device/batterystats/BatteryStatsWifiTransferTests.java
ncident/src/com/android/server/cts/BatteryStatsValidationTest.java
41dde67f0adcf58603e62836e5bf57fa62cd676a 27-Jan-2017 Alex Light <allight@google.com> CTS: Add a JVMTI redefineClasses test

Bug: 32072923
Test: m cts
Test: cts-tradefed run cts-dev --module CtsJvmtiRedefineClassesHostTestCases
Change-Id: I9fc14e297bc5f2010b89ac043b0e1b20ca53c100
vmti/base/app/src/android/jvmti/cts/JvmtiErrors.java
vmti/base/jni/Android.mk
vmti/base/jni/redefine.cpp
vmti/redefining/Android.mk
vmti/redefining/AndroidTest.xml
vmti/redefining/app/Android.mk
vmti/redefining/app/AndroidManifest.xml
vmti/redefining/app/src/android/jvmti/cts/JvmtiRedefineClassesTest.java
a12842ab1c120636da24373267909119e1ed6cca 23-Mar-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Expose broadcasts/receivers"
0d7d2a3fc557a8454993a3437c51c73ecd6911e4 23-Mar-2017 Yorke Lee <yorkelee@google.com> Fix for testNonResizeableActivityHasFullDisplayBounds

If a task is in the fullscreen stack, its bounds are
never parsed. In that case it is not necessary to
assert its bounds since being in the fullscreen stack
means you fill the display anyway.

Bug: 36478106
Test: run cts -d --module CtsServicesHostTestCases -t
android.server.cts.ActivityManagerFreeformStackTests
devices with freeform disabled, and those with freeform
enabled.

Change-Id: Id7b7d55bef35c571ef6d58f34a250a010e40c5d0
ervices/activitymanager/src/android/server/cts/ActivityManagerFreeformStackTests.java
eacf87c0be18d24093d7c2e5d08c9fe618a0002f 23-Mar-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Check kernel version, group/tombstone behaviors."
afd814317ab9f3350200f9d66674aee933dd5d36 23-Mar-2017 Jeff Sharkey <jsharkey@android.com> Check kernel version, group/tombstone behaviors.

Kernels older than 3.18 don't have solid quota support, so we don't
require it to be enabled on those devices; but for all newer kernels
we really want it enabled because of how much it speeds things up
and decreases flash wear.

Follow refactoring from "atomic" to "group". Verify that
group/tombstone behaviors can't be used on external storage
locations.

Verify group/tombstone behaviors with explicit test.

Test: cts-tradefed run commandAndExit cts-dev -m CtsAppSecurityHostTestCases -t android.appsecurity.cts.StorageHostTest
Bug: 35812899, 35684969, 36482620
Change-Id: I5ae97d5ded0b52cdf24a65360c42a89000e04b2d
ppsecurity/src/android/appsecurity/cts/StorageHostTest.java
ppsecurity/test-apps/StorageApp/src/com/android/cts/storageapp/StorageTest.java
ppsecurity/test-apps/StorageApp/src/com/android/cts/storageapp/Utils.java
ppsecurity/test-apps/StorageStatsApp/Android.mk
ppsecurity/test-apps/StorageStatsApp/src/com/android/cts/storagestatsapp/StorageStatsTest.java
2427d7a64df86311f8ed8a5ac360416283353607 22-Mar-2017 Felipe Leme <felipeal@google.com> Added test case for UserManager.DISALLOW_AUTOFILL restriction.

bug: 35710740
Test: LoginActivityTest#testUserRestriction

Change-Id: I01c8f2b8d2251c4bdea5399fce792e61db2fc41a
evicepolicy/app/AutofillApp/Android.mk
evicepolicy/app/AutofillApp/AndroidManifest.xml
evicepolicy/app/AutofillApp/src/com/android/cts/devicepolicy/autofillapp/SimpleActivity.java
evicepolicy/app/AutofillApp/src/com/android/cts/devicepolicy/autofillapp/SimpleAutofillService.java
evicepolicy/app/DeviceAndProfileOwner/latest/AndroidManifest.xml
evicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/AutofillActivity.java
evicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/AutofillRestrictionsTest.java
evicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/BaseDeviceAdminTest.java
evicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/userrestrictions/DeviceOwnerUserRestrictionsTest.java
evicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/userrestrictions/SecondaryProfileOwnerUserRestrictionsTest.java
evicepolicy/src/com/android/cts/devicepolicy/DeviceAndProfileOwnerTest.java
9103a81cbf0f024516fe08b5ac72c86e0cf276c9 23-Mar-2017 Todd Kennedy <toddke@google.com> Expose broadcasts/receivers

Instant apps need to be explictly opted into sending/receiving
broadcasts from full apps.

Change-Id: Ie9ce5101f8d9e4d639833ed57bbdb1f56f055139
Fixes: 36454346
Test: cts-dev -m CtsAppSecurityHostTestCases -t android.appsecurity.cts.EphemeralTest
ppsecurity/test-apps/EphemeralTestApp/EphemeralApp1/src/com/android/cts/ephemeralapp1/ClientTest.java
ppsecurity/test-apps/EphemeralTestApp/NormalApp/src/com/android/cts/normalapp/ClientTest.java
ppsecurity/test-apps/EphemeralTestApp/NormalApp/src/com/android/cts/normalapp/ExposedActivity.java
ppsecurity/test-apps/EphemeralTestApp/NormalApp/src/com/android/cts/normalapp/NormalActivity.java
d6cb592d7ad6bc5b1382ec391287bd35b750ac23 22-Mar-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Added cts test for minimized state"
68a5a2f01b08ae04159372ee7e80417bc4a2a327 22-Mar-2017 Bryce Lee <brycelee@google.com> Merge "Add CTS tests to ensure rotation is restored when returning to task."
9d7aa4d1ba8fbd008056b8854bf90bb497c7ff37 10-Mar-2017 Matthew Ng <ngmatthew@google.com> Added cts test for minimized state

This test checks for minimized flag and if the docked stack has the
correct stack and task sizes in all orientations.

Test: cts/hostsidetests/services/activityandwindowmanager/util/run-test
CtsServicesHostTestCases
android.server.cts.ActivityManagerDockedStackTests#testDockedMinimized
Fixes: 35643834
Change-Id: I9ff8e9a4e0ef685995e561f650ab3ca5eabe9155
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/ActivityManagerDockedStackTests.java
ervices/activityandwindowmanager/util/src/android/server/cts/ActivityAndWindowManagersState.java
ervices/activityandwindowmanager/util/src/android/server/cts/ActivityManagerState.java
46aef7986e9010ea236fea7c966d7d6d3cb3b419 22-Mar-2017 zhang sanshan <sanshan.zhang@nxp.com> Merge "fix dead loop issue when run android.appsecurity.cts.PermissionsHostTest" into nougat-mr1-cts-dev am: e2e4001cb2 am: c0d6f1fcb7
am: 848187fcdb

Change-Id: Ife85ed789dba3c92341b15665a7a66fa75bae50a
c0d6f1fcb73d5cfabc04626c02ddc508a4231702 22-Mar-2017 zhang sanshan <sanshan.zhang@nxp.com> Merge "fix dead loop issue when run android.appsecurity.cts.PermissionsHostTest" into nougat-mr1-cts-dev
am: e2e4001cb2

Change-Id: I3955e664efbf87f2d78f5f2f7cf95916fa9026cb
74e8c904b7031baca5c4c10eb9b51ad21db15c5d 22-Mar-2017 Amith Yamasani <yamasani@google.com> Fix CTS regression in BatteryStatsValidationTests

Caused by a change in CSV file format for battery stats.

Fixes: 36226837
Test: cts-tradefed run cts-dev -m CtsIncidentHostTestCases -t
com.android.server.cts.BatteryStatsValidationTest

Change-Id: I9110ec228fe9588e770a53533cd07fbd76682075
ncident/apps/batterystatsapp/src/com/android/server/cts/device/batterystats/SimpleJobService.java
ncident/src/com/android/server/cts/BatteryStatsValidationTest.java
5c25a030b5ab699fe89d994a0253018c52442b1b 22-Mar-2017 Ricky Wai <rickywai@google.com> Merge "Add logs for flaky testManagedContactsPolicies cts test"
e7f462f43d7b647cc9d5d59936f8f3524eefc285 22-Mar-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Add dummy IME for tests"
5993e7a2251c7ae83661db276763197b13819743 22-Mar-2017 Alex Klyubin <klyubin@google.com> Assume /dev/hwbinder is secure

This adds /dec/hwbinder to the list of devices ignored (assumed to be
secure) devices in the host-side and device-side
FileSystemPermissionTest.

Test: make cts && \
cts-tradefed run singleCommand cts --skip-device-info \
--skip-preconditions --skip-connectivity-check --abi arm64-v8a \
--module CtsSecurityHostTestCases \
-t android.cts.security.FileSystemPermissionTest#testAllCharacterDevicesAreSecure
Test: make cts && \
cts-tradefed run singleCommand cts --skip-device-info \
--skip-preconditions --skip-connectivity-check --abi arm64-v8a \
--module CtsPermissionTestCases \
-t android.permission.cts.FileSystemPermissionTest#testAllCharacterDevicesAreSecure
Bug: 33304644
Bug: 36370035
Change-Id: I1fc072fe6378ff12f53594250a9263b19e5f3915
ecurity/src/android/cts/security/FileSystemPermissionTest.java
0eaeef2fa917f90d51261a5d2e5d2ecb68188785 20-Mar-2017 Tadashi G. Takaoka <takaoka@google.com> Add dummy IME for tests

A dummy IME can
- record device events on Input Method Service callbacks.
- receive and execute IME commands via intent.

Bug: 7542467
Test: Installs CtsInputMethod1.apk and CtsInputMethodEventProvider.apk
to device, enables it, set it as default IME, and confirms that
CtsInputMethod1 is shown by touching the serch box on the
launcher.
adb install -r CtsInputMethod1.apk
adb install -r CtsInputMethodServiceContentProvider.apk
adb shell ime enable android.inputmethodservice.cts.ime1/.CtsInputMethod1
adb shell ime set android.inputmethodservice.cts.ime1/.CtsInputMethod1
Test: After the above test, confirms that CtsInputMethod1 emits IME
events to CtsInputMethodContentProvider by
adb shell content query --uri content://android.inputmethodservice.cts.provider/events
and confirms the result is
Row: 0 _id=1, who=android.inputmethodservice.cts.ime1.CtsInputMethod1, type=ON_CREATE, time=xxx
Row: 1 _id=2, who=android.inputmethodservice.cts.ime1.CtsInputMethod1, type=ON_START_INPUT, time=yyy
Row: 2 _id=3, who=android.inputmethodservice.cts.ime1.CtsInputMethod1, type=ON_START_INPUT_VIEW, time=zzz
Test: After the above test, confirms that CtsInputMethod1 can commit
text to the search box by
adb shell am broadcast -a android.inputmethodservice.cts.action.IME_COMMAND \
--es command commitText --es arg_charsequence1 sample_text --ei arg_int1 0 \
android.inputmethodservice.cts.ime1
Test: After the above test, installs CtsInputMethod2.apk and confirms
that CtsInputMethod1 can accept switchInputMethod command and
IME is switched to CtsInputMethod2.
adb install -r CtsInputMethod2.apk
adb shell ime enable android.inputmethodservice.cts.ime2/.CtsInputMethod2
adb shell am broadcast -a android.inputmethodservice.cts.action.IME_COMMAND \
-e command switchInputMethod -e s1 android.inputmethodservice.cts.ime2/.CtsInputMethod2
Change-Id: Ic8536f3da8daec58af8f20c2bb5ba25da84afaaa
nputmethodservice/common/src/android/inputmethodservice/cts/common/DeviceEventConstants.java
nputmethodservice/common/src/android/inputmethodservice/cts/common/Ime1Constants.java
nputmethodservice/common/src/android/inputmethodservice/cts/common/Ime2Constants.java
nputmethodservice/common/src/android/inputmethodservice/cts/common/ImeCommandConstants.java
nputmethodservice/deviceside/ime1/Android.mk
nputmethodservice/deviceside/ime1/AndroidManifest.xml
nputmethodservice/deviceside/ime1/res/layout/input_view.xml
nputmethodservice/deviceside/ime1/res/values/colors.xml
nputmethodservice/deviceside/ime1/res/values/strings.xml
nputmethodservice/deviceside/ime1/res/xml/ime1.xml
nputmethodservice/deviceside/ime1/src/android/inputmethodservice/cts/ime1/CtsInputMethod1.java
nputmethodservice/deviceside/ime2/Android.mk
nputmethodservice/deviceside/ime2/AndroidManifest.xml
nputmethodservice/deviceside/ime2/res/layout/input_view.xml
nputmethodservice/deviceside/ime2/res/values/colors.xml
nputmethodservice/deviceside/ime2/res/values/strings.xml
nputmethodservice/deviceside/ime2/res/xml/ime2.xml
nputmethodservice/deviceside/ime2/src/android/inputmethodservice/cts/ime2/CtsInputMethod2.java
nputmethodservice/deviceside/lib/src/android/inputmethodservice/cts/ime/CtsBaseInputMethod.java
nputmethodservice/deviceside/lib/src/android/inputmethodservice/cts/ime/ImeCommandReceiver.java
78b8e1fa448f68e8c63c124512bc1aedb9717d4c 22-Mar-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Test that forced display metrics are persisted correctly"
49bab608e1345c90fd02109b7623226d14d1be5a 22-Mar-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Test updating application info"
5ca3358bf6a5e122f18b917d6ad944631d63196d 22-Mar-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Replace hardcoded SETTING_SYNC_PARENT_SOUNDS"
ee06c17682fba4e519ccd2ca6beab0a068731e32 22-Mar-2017 David Stevens <stevensd@google.com> Merge "Test tasks with multiple uids on secondary displays"
650f05a73cfda1a4ff1b3a6cc99109108fbb9d43 16-Mar-2017 Robin Lee <rgl@google.com> Replace hardcoded SETTING_SYNC_PARENT_SOUNDS

With softcoded SETTING_SYNC_PARENT_SOUNDS.

Test: make cts && cts-tradefed run cts-virtual-device --module CtsDevicePolicyManagerTestCases --test 'com.android.cts.devicepolicy.MixedManagedProfileOwnerTest'
Change-Id: I5da6e33c9df41f9d3dc5ef16101b44d317291796
Fix: 30658854
evicepolicy/app/ManagedProfile/Android.mk
evicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/RingtoneSyncTest.java
44a0026cf7029fad8ee3621b9b9a774db890ee5d 21-Mar-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Don't require PIN to boot FDE devices."
83709ff93a1930ea05514bd3987efe5859a0b1e9 21-Mar-2017 Andrii Kulian <akulian@google.com> Test that forced display metrics are persisted correctly

This test applies override for display size and density
and check if these forced value are still applied after
display change event.

Bug: 35258051
Test: android.server.cts.ActivityManagerDisplayTests
Test: #testForceDisplayMetrics
Change-Id: I184a385d8071b24c163aff69fc0a3f98a26f4206
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/ActivityManagerDisplayTests.java
ba42afd4873ef3b2ec4a7fe518f52884b67faf54 21-Mar-2017 David Stevens <stevensd@google.com> Test tasks with multiple uids on secondary displays

Test: android.server.cts.ActivityManagerDisplayTests
Test: #testPermissionLaunchMultiUidTask
Change-Id: I1ea58054c8dd28b4db454ff8e266a619f8234509
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/ActivityManagerDisplayTests.java
ervices/activityandwindowmanager/util/src/android/server/cts/ActivityManagerTestBase.java
074d68a94800f6bdd8dab4581b3fd2edcb53922e 21-Mar-2017 Jeff Sharkey <jsharkey@android.com> Don't require PIN to boot FDE devices.

Otherwise they boot up in funky CryptKeeper world which we don't
want to bother testing, since it's deprecated.

Test: cts-tradefed run commandAndExit cts-dev --module CtsAppSecurityHostTestCases --test android.appsecurity.cts.DirectBootHostTest#testDirectBootEmulated
Bug: 35764115
Change-Id: I916e3833a6a42a4a6d35dfb66837daf6e7253fde
ppsecurity/test-apps/EncryptionApp/src/com/android/cts/encryptionapp/EncryptionAppTest.java
d3389ea01af8c7388fe7f77b7d4cf0a2e70b2fd7 21-Mar-2017 Jeff Sharkey <jsharkey@android.com> Stop trying to be clever with test ordering.

To avoid the overhead of creating/destroying users for every
individual test, I tried being clever with test name/placement, but
the test harness used in production uses some custom ordering
strategy. So give up and just smash all tests into a single method.

Test: cts-tradefed run commandAndExit cts-dev -m CtsAppSecurityHostTestCases -t android.appsecurity.cts.StorageHostTest
Bug: 36455171
Change-Id: I7818690f409b1c78061c1b6d3e3b94b63d750614
ppsecurity/src/android/appsecurity/cts/StorageHostTest.java
ppsecurity/test-apps/StorageApp/src/com/android/cts/storageapp/Utils.java
ppsecurity/test-apps/StorageStatsApp/src/com/android/cts/storagestatsapp/StorageStatsTest.java
864b91c8d53c7a609f31963f389cfb31fabd0532 21-Mar-2017 Ricky Wai <rickywai@google.com> Add logs for flaky testManagedContactsPolicies cts test

Bug: 36371719
Test: It can dump logs when it cannot access primary directories
Change-Id: Ib77209a7fc60ee20fafadacdf1e8bef52bb88971
evicepolicy/app/ContactDirectoryProvider/src/com/android/cts/contactdirectoryprovider/DirectoryProvider.java
evicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/ContactsTest.java
6193198b8a2f4b2eda3b85158314c0d7c5bca4ec 21-Mar-2017 peter_li <peter_li@htc.com> [CTS]It should be more reasonable to use setBatterySaverMode API to leave power-save mode instead of plugging in charger for "CtsHostsideNetworkTests" test case.

Symptom: It should be more reasonable to use setBatterySaverMode API to leave power-save mode instead of plugging in charger for "CtsHostsideNetworkTests" test case.
Root Cause: It uses setBatterySaverMode API to enter power-save mode and uses plugging in charger to leave power save mode.It should be more reasonable to use setBatterySaverMode API to leave power-save mode instead of plugging in charger.
Solution: To use setBatterySaverMode API to leave power-save mode instead of plugging in charger.
Project: N70
Note: NA
Test done by RD:
Futher testing need Q team's support:

Change-Id: I491c5d0675f340e1c9911b84e41f034663b1454d
et/app/src/com/android/cts/net/hostside/AbstractAppIdleTestCase.java
adf1f5308bbfa66303f75377be6c83dc9c9d9033 28-Feb-2017 Tadashi G. Takaoka <takaoka@google.com> Add IME event intent, receiver, and content provider

The Java classes in android.inputmethodservices.cts.common package
define String constants which are relevant for both device-side and
host-side.

Bug: 7542467
Test: Installing CtsInputMethodServiceEventProvider.apk and confirming that
content provider can handle insert request by
adb install -r CtsInputMethodServiceEventProvider.apk
adb shell content insert --uri content://android.inputmethodservice.cts.provider/events \
--bind sender:s:sender1 --bind type:s:TEST_START --bind time:l:1234
Test: After the above test, confirming that content provider can
handle query request by
adb shell content query --uri content://android.inputmethodservice.cts.provider/events
and confirming the result is
Row: 0 _id=1, sender=sender1, type=TEST_START, time=1234
Change-Id: I9aa37a7237d9f7a4504d702473b599bd4f2c94ec
nputmethodservice/common/Android.mk
nputmethodservice/common/src/android/inputmethodservice/cts/common/ComponentNameUtils.java
nputmethodservice/common/src/android/inputmethodservice/cts/common/DeviceEventConstants.java
nputmethodservice/common/src/android/inputmethodservice/cts/common/EventProviderConstants.java
nputmethodservice/deviceside/lib/Android.mk
nputmethodservice/deviceside/lib/src/android/inputmethodservice/cts/DeviceEvent.java
nputmethodservice/deviceside/provider/Android.mk
nputmethodservice/deviceside/provider/AndroidManifest.xml
nputmethodservice/deviceside/provider/src/android/inputmethodservice/cts/provider/EventProvider.java
nputmethodservice/deviceside/provider/src/android/inputmethodservice/cts/provider/UriHelper.java
nputmethodservice/deviceside/provider/src/android/inputmethodservice/cts/receiver/EventReceiver.java
205d6d6237b8619ff4708ab735462aaf3e7a5ec9 21-Mar-2017 Jeff Hao <jeffhao@google.com> Merge "Remove failing UsesLibrary.testUsesLibrary test." am: 2dad4759ea
am: fce6746111

Change-Id: I073d6d9f4d127478bec5b899c02f4df05ba33fef
fce6746111713fecca1139afb608d45b6ed9f6da 21-Mar-2017 Jeff Hao <jeffhao@google.com> Merge "Remove failing UsesLibrary.testUsesLibrary test."
am: 2dad4759ea

Change-Id: Icf59625a696af5f0bae07371c9b461c64b957048
03042ecb46c09f8254679bda879d34272ece1d9f 21-Mar-2017 Andrii Kulian <akulian@google.com> Test updating application info

Test that updating app info when application is running
restarts an activity with matching package name and
increments applied asset sequence number.

Bug: 35911519
Test: android.server.cts.ActivityManagerConfigChangeTests
Test: #testUpdateApplicationInfo
Change-Id: Ie3951ca029e42c88b8027fd7269e29758a6e8d32
ervices/activityandwindowmanager/activitymanager/app/src/android/server/cts/TestActivity.java
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/ActivityManagerConfigChangeTests.java
3cd97d85b7ade2bdc2c4b4fb15cfdada51a24a31 21-Mar-2017 Winson Chung <winsonc@google.com> Merge "Updating PiP app-ops test to check general case."
821a2c99bf3d64b427c0bf1dc8e16d5ac86192ee 17-Mar-2017 Jeff Hao <jeffhao@google.com> Remove failing UsesLibrary.testUsesLibrary test.

A fix for how duplicate classes were checked went in here:
https://android-review.googlesource.com/#/c/349268/

It exposed an issue with this CTS test. Now that the check works
properly, it's rejecting the test apk, which was declared to have
a shared library, but is compiled with no shared libraries when
installed. It doesn't seem like the runtime knows enough about this
library to pass it through to dex2oat.

There may be similar issues with the other tests in this file. A new
test should be developed to better check uses-library, but I'm removing
the failing test in the meantime.

Bug: 36285180
Test: cts-tradefed run singleCommand cts -d --module
CtsAppSecurityHostTestCases -t
android.appsecurity.cts.UsesLibraryHostTest
Merged-In: I4091e6da796f93df076c26f73f41a679c3dccd57

Change-Id: I677f5262aad18b884b2c2471bba0c14ed4c337d8
ppsecurity/src/android/appsecurity/cts/UsesLibraryHostTest.java
ppsecurity/test-apps/UsesLibraryApp/src/com/android/cts/useslibrary/UsesLibraryTest.java
14909e430c33f3ea065d4f61973b885ba0f3c19e 20-Mar-2017 Jeff Hao <jeffhao@google.com> Remove failing UsesLibrary.testUsesLibrary test.

A fix for how duplicate classes were checked went in here:
https://android-review.googlesource.com/#/c/349268/

It exposed an issue with this CTS test. Now that the check works
properly, it's rejecting the test apk, which was declared to have
a shared library, but is compiled with no shared libraries when
installed. It doesn't seem like the runtime knows enough about this
library to pass it through to dex2oat.

There may be similar issues with the other tests in this file. A new
test should be developed to better check uses-library, but I'm removing
the failing test in the meantime.

Bug: 36285180
Test: cts-tradefed run singleCommand cts -d --module
CtsAppSecurityHostTestCases -t
android.appsecurity.cts.UsesLibraryHostTest

Change-Id: I4091e6da796f93df076c26f73f41a679c3dccd57
ppsecurity/src/android/appsecurity/cts/UsesLibraryHostTest.java
ppsecurity/test-apps/UsesLibraryApp/src/com/android/cts/useslibrary/UsesLibraryTest.java
11c086d028fa315d7f1149c59994c1e390164f1b 20-Mar-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Fix DocumentsTest#testCreateExisting()."
a271a96dd6e1027ba752428663f70ce5bee2eb1e 20-Mar-2017 David Stevens <stevensd@google.com> Merge "Test display preferences when launching activities"
91204941eafa0e1dbfdf138b18dc792b233c822f 20-Mar-2017 Garfield Tan <xutan@google.com> Fix DocumentsTest#testCreateExisting().

Need to press OK to confirm the overwriting now.

Test: CTS tests pass.
Change-Id: Ic264b633635aa3619a9bfe9c0fe2d54fc9251492
(cherry picked from commit db799acce8164ff8576f6a1c6fec389b4bc5d582)
ppsecurity/test-apps/DocumentClient/src/com/android/cts/documentclient/DocumentsClientTest.java
e4495025cb5977b70db09f3a6d0400bd5c445705 16-Mar-2017 Jungshik Shin <jungshik@google.com> DO NOT MERGE: Regenerate the golden images for N6 (560dpi) for nougat-cts

Golden images are regenerated with FreeType 2.7.0 in nyc-dev.

BUG: 35946645
TEST: cts tests
Change-Id: I7ba069d03e978ddadf393647469a53e57ea61291
heme/assets/24/560dpi.zip
917fb1d440f5b068bcd920f97d3c262ff11f286e 20-Mar-2017 Tina Zhou <tinazh@google.com> Merge "Merge "Remove full screen check in ActivityManagerConfigChangeTests." into nougat-mr1-cts-dev am: 63d3339be2" am: 1aaa37a192 am: 7a70be5f88
am: a9ba3658d1

Change-Id: Id373a077e87e04575fcd85842dff701348a305e8
68d48aa34fc22a3b015f87b86dd8b2256e0374ad 26-Dec-2016 zhang sanshan <sanshan.zhang@nxp.com> fix dead loop issue when run android.appsecurity.cts.PermissionsHostTest

All cts cases which call setPermissionGrantState may enter dead loop.
setPermissionGrantState will call click("Permissions"), The device may not so
faster that it can display show 'Permissions' UI. So getRootInActiveWindow in
getRootInActiveWindow get the previous activity InstalledAppDetails.
scrollForward(child) always timeout and TimeoutException can not be catched.

This patch add TimeoutException catch in findByTextInCollection.

Reproduce steps:
run cts -m CtsAppSecurityHostTestCases -t android.appsecurity.cts.PermissionsHostTest --skip-preconditions --disable-reboot --skip-device-info

Change-Id: Id97980f0fd2ee9fdd628ff15de63db0f0feb7854
Signed-off-by: zhang sanshan <sanshan.zhang@nxp.com>
(cherry picked from commit ed3a4d46771a61a786492522c771250c53ccb908)
ppsecurity/test-apps/UsePermissionApp23/src/com/android/cts/usepermission/BasePermissionsTest.java
ebd93177b948b2c0482bdc24f7963e3768d83dd5 18-Mar-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Test activity changing UI mode on creation"
1c7d3584d8d2d064ba90b9c1c4f3d57b19bf9502 18-Mar-2017 Andrii Kulian <akulian@google.com> Test activity changing UI mode on creation

Test that activity that requests UI mode change on creation and
handles corresponding configuration change launches correctly.

Bug: 36396248
Test: android.server.cts.ActivityManagerAppConfigurationTests
Test: #testLaunchWithUiModeChange
Change-Id: Id23967b8c2c1e949c4c32f81949bdc6c53999e14
ervices/activityandwindowmanager/activitymanager/app/AndroidManifest.xml
ervices/activityandwindowmanager/activitymanager/app/src/android/server/cts/NightModeActivity.java
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/ActivityManagerAppConfigurationTests.java
b1e3e01a5434ee107ba6d5e07d12e68449cda744 18-Mar-2017 Winson Chung <winsonc@google.com> Updating PiP app-ops test to check general case.

- The PiP app ops setting will apply to PiP in general, instead of only
when the activity is hidden. This CL updates the CTS test accordingly.

Bug: 35957404
Test: android.server.cts.ActivityManagerPinnedStackTests
Change-Id: Ib9e8dcecde494fa40434b301b5310a18e37729fe
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/ActivityManagerPinnedStackTests.java
764d01cd7d4a5538369398400ca1fb1b49648175 18-Mar-2017 Adam Lesinski <adamlesinski@google.com> Merge "First set of IsolatedSplits tests"
f6d3681736faf7371b68a68e06637ce66a7fef10 17-Mar-2017 TreeHugger Robot <android-build-prod@system.gserviceaccount.com> Merge "CTS for ACTION_USER_RESTRICTIONS_CHANGED"
5dd6f2cc2e7d3412f441ff01d347bb5064897523 16-Mar-2017 Makoto Onuki <omakoto@google.com> CTS for ACTION_USER_RESTRICTIONS_CHANGED

Bug 36355208

Test: cts-tradefed run cts-dev --skip-device-info --skip-preconditions --skip-system-status-check com.android.compatibility.common.tradefed.targetprep.NetworkConnectivityChecker -a armeabi-v7a -l INFO -m CtsDevicePolicyManagerTestCases -t 'com.android.cts.devicepolicy.UserRestrictionsTest#testUserRestrictions_deviceOwnerOnly'
Test: cts-tradefed run cts-dev --skip-device-info --skip-preconditions --skip-system-status-check com.android.compatibility.common.tradefed.targetprep.NetworkConnectivityChecker -a armeabi-v7a -l INFO -m CtsDevicePolicyManagerTestCases -t 'com.android.cts.devicepolicy.UserRestrictionsTest#testUserRestrictions_primaryProfileOwnerOnly'
Test: cts-tradefed run cts-dev --skip-device-info --skip-preconditions --skip-system-status-check com.android.compatibility.common.tradefed.targetprep.NetworkConnectivityChecker -a armeabi-v7a -l INFO -m CtsDevicePolicyManagerTestCases -t 'com.android.cts.devicepolicy.UserRestrictionsTest#testUserRestrictions_secondaryProfileOwnerOnly'
Change-Id: Ib30cb26a68daf55e71e56a33b9f1c89d41f156e7
evicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/userrestrictions/BaseUserRestrictionsTest.java
evicepolicy/src/com/android/cts/devicepolicy/UserRestrictionsTest.java
34f8df55c837da34863db9650135780e3904c185 08-Mar-2017 David Stevens <stevensd@google.com> Test display preferences when launching activities

- Update existing tests to account for the fact that the focused stack
does not influence what display an activity launches on.
- Check that affinity of a task on a different display doesn't affect
the launch display, but that the root component of a task on a
different display does.
- Check that a new task launched by an activity ends up on the same
display as the launching activity.

Bug: 34230873
Test: android.server.cts.ActivityManagerDisplayTests
Test: #testTaskMatchAcrossDisplays
Test: #testNewTaskSameDisplay
Change-Id: Id13088974bd92aa90c3caba6e937a6c9be3c594d
ervices/activityandwindowmanager/activitymanager/app/src/android/server/cts/BroadcastReceiverActivity.java
ervices/activityandwindowmanager/activitymanager/appSecondUid/src/android/server/cts/second/LaunchBroadcastReceiver.java
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/ActivityManagerDisplayTests.java
adbd8e3766b6cc7c1ed61b53bd0fb090d469612d 17-Mar-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Add tests for Instant App access to PackageInfo"
957ad4941a3c2d4df2a883be70a1cf7054575890 17-Mar-2017 Tina Zhou <tinazh@google.com> Merge "Fix flaky testWipeData cts test." into nougat-cts-dev am: 9f3f3d1e89
am: 57d342a39b

Change-Id: I39b0e36eb4f5868e3bcef1172ca0a2fec832547d
54f8a7daae1a37c24d07fa3bfbad17902af8dc7c 17-Mar-2017 Chad Brubaker <cbrubaker@google.com> Add tests for Instant App access to PackageInfo

InstantApps should only be able to access their own PackageInfo and the
PackageInfo for installed apps that have explicitly exposed a component
to Instant Apps.

Bug: 34087569
Test: this
Change-Id: I66b39e1893a39d3a9fe22d5e308d67e8e4b66239
ppsecurity/src/android/appsecurity/cts/EphemeralTest.java
ppsecurity/test-apps/EphemeralTestApp/EphemeralApp1/src/com/android/cts/ephemeralapp1/ClientTest.java
ppsecurity/test-apps/EphemeralTestApp/EphemeralApp2/AndroidManifest.xml
ppsecurity/test-apps/EphemeralTestApp/UnexposedApp/Android.mk
ppsecurity/test-apps/EphemeralTestApp/UnexposedApp/AndroidManifest.xml
ppsecurity/test-apps/EphemeralTestApp/UnexposedApp/res/values/strings.xml
d44c5265090d444a799673b86b187a021e6e344d 17-Mar-2017 Bryce Lee <brycelee@google.com> Merge "Refactor how virtual displays are created in CTS tests."
97d7c2e46ee0e4909b8c1e6c59dd2986ac3ba321 17-Mar-2017 Tina Zhou <tinazh@google.com> Merge "AlwaysOnVpnMultiStageTest: Fix error seen in newer kernels" into nougat-mr1-cts-dev am: 46d52b5d68 am: a2db76c1f4
am: c8c71e6c8b

Change-Id: I584cbdb9bfca3a5b4a41a98c22be81be7f669b9a
a2db76c1f4b3676cdd22f8c30a47d5a0605b6bcf 17-Mar-2017 Tina Zhou <tinazh@google.com> Merge "AlwaysOnVpnMultiStageTest: Fix error seen in newer kernels" into nougat-mr1-cts-dev
am: 46d52b5d68

Change-Id: Idbe8281c3e45ba39a3de35bcd916e6447d71f0da
2d50c48838ac3abdcfeeba9fdc093355364a3854 17-Mar-2017 Tina Zhou <tinazh@google.com> Merge "Fix for CTS testNonResizeableActivityNotLaunchedToFreeform" into nougat-mr1-cts-dev am: b83b61b8cd am: 337db8d11e
am: e451b3034d

Change-Id: Ibc16bce66a51ee3de7647f4bfecd295489aa5cc2
02aebd29ccffb1c7c066793fe4944b645eb66580 17-Mar-2017 Tina Zhou <tinazh@google.com> Merge "Remove full screen check in ActivityManagerConfigChangeTests." into nougat-mr1-cts-dev am: 63d3339be2 am: 59e96edf6b
am: 947e3cfcbb

Change-Id: I3fd5bdf55425e10b00f26f878eb0e466e7ff8116
1eee855f5e6d6b494b2d32c4d1ce1e83381fca0a 17-Mar-2017 Tina Zhou <tinazh@google.com> Merge "Merge "Fix for CTS testNonResizeableActivityNotLaunchedToFreeform" into nougat-mr1-cts-dev am: b83b61b8cd" am: 6bd563c80c
am: 4d9813d033

Change-Id: If8c2ac3eb45d7d292f04143f36338b14d68c3cde
46d52b5d68ad4102c3d111ff31a6b9f7f15ca215 17-Mar-2017 Tina Zhou <tinazh@google.com> Merge "AlwaysOnVpnMultiStageTest: Fix error seen in newer kernels" into nougat-mr1-cts-dev
4d9813d03318f536350b2c9d2768fa0e6d15c1ec 17-Mar-2017 Tina Zhou <tinazh@google.com> Merge "Merge "Fix for CTS testNonResizeableActivityNotLaunchedToFreeform" into nougat-mr1-cts-dev am: b83b61b8cd"
am: 6bd563c80c

Change-Id: Ie21cb6d42263cc59ac8956f943ac41dca471e9cd
a9ba3658d1ef980906008318d567a7329446de01 17-Mar-2017 Tina Zhou <tinazh@google.com> Merge "Merge "Remove full screen check in ActivityManagerConfigChangeTests." into nougat-mr1-cts-dev am: 63d3339be2" am: 1aaa37a192
am: 7a70be5f88

Change-Id: I425f9f78c3c89c90e97ebbe231ac3778c74dc7f1
7a70be5f88784c27d763b4f607721049428e9cc4 17-Mar-2017 Tina Zhou <tinazh@google.com> Merge "Merge "Remove full screen check in ActivityManagerConfigChangeTests." into nougat-mr1-cts-dev am: 63d3339be2"
am: 1aaa37a192

Change-Id: Ic6ebd9100369f6a6a6ba6f38ffb9e940bf639625
337db8d11efac9fd9646536164ed0295c5ca6705 17-Mar-2017 Tina Zhou <tinazh@google.com> Merge "Fix for CTS testNonResizeableActivityNotLaunchedToFreeform" into nougat-mr1-cts-dev
am: b83b61b8cd

Change-Id: I87f3ccda3abaafc0e54479448a93e3ca233a7231
4c42d8c7ca649b8719c2b5fc5e517b8e0f4a24f6 17-Mar-2017 Tina Zhou <tinazh@google.com> Merge "Fix for CTS testNonResizeableActivityNotLaunchedToFreeform" into nougat-mr1-cts-dev
am: b83b61b8cd

Change-Id: I05d53fbb210d3eb3b46ae53880ec9c612244f08f
59e96edf6b1c7244f3bdf1ba85e6e1a0605194d2 17-Mar-2017 Tina Zhou <tinazh@google.com> Merge "Remove full screen check in ActivityManagerConfigChangeTests." into nougat-mr1-cts-dev
am: 63d3339be2

Change-Id: I86a3357834bf93a6aa602a91b9ce2bc4fe21cb6d
ce16f95ec1d9a72ed604abd603c0c43899fc4dca 17-Mar-2017 Tina Zhou <tinazh@google.com> Merge "Remove full screen check in ActivityManagerConfigChangeTests." into nougat-mr1-cts-dev
am: 63d3339be2

Change-Id: I555dd3410d91d15184862c6703fb37b492c30969
b83b61b8cd2b4ded822a7da00b7e825dfad611f2 17-Mar-2017 Tina Zhou <tinazh@google.com> Merge "Fix for CTS testNonResizeableActivityNotLaunchedToFreeform" into nougat-mr1-cts-dev
63d3339be25262693bb0162b4b41e6959a83652c 17-Mar-2017 Tina Zhou <tinazh@google.com> Merge "Remove full screen check in ActivityManagerConfigChangeTests." into nougat-mr1-cts-dev
87425910c565d9456049a9a329646ff274643f9d 17-Mar-2017 Tina Zhou <tinazh@google.com> Merge "Merge "Merge "Fix flaky testWipeData cts test." into nougat-cts-dev am: 9f3f3d1e89" into nougat-mr1-cts-dev am: b3e1c3615a" am: 6ff76dba41
am: 8e9a360154

Change-Id: Id1e5275b398299014606e936ca9b933a8224f136
a569b8b4aebf72f372f00a767096ecab8b88491e 17-Mar-2017 Tina Zhou <tinazh@google.com> Merge "Merge "Fix flaky testWipeData cts test." into nougat-cts-dev am: 9f3f3d1e89" into nougat-mr1-cts-dev am: b3e1c3615a am: a88727c22e
am: d4c7a807ff

Change-Id: Iee127c584af084df2bd933508915848128f3b10c
8e9a36015450adb354bcf4ee08bbcb748d66f485 17-Mar-2017 Tina Zhou <tinazh@google.com> Merge "Merge "Merge "Fix flaky testWipeData cts test." into nougat-cts-dev am: 9f3f3d1e89" into nougat-mr1-cts-dev am: b3e1c3615a"
am: 6ff76dba41

Change-Id: I18c5af48c98ea5b2fff70ebead5ab337472235df
a88727c22e386ca9d1515805f9c606156df56691 17-Mar-2017 Tina Zhou <tinazh@google.com> Merge "Merge "Fix flaky testWipeData cts test." into nougat-cts-dev am: 9f3f3d1e89" into nougat-mr1-cts-dev
am: b3e1c3615a

Change-Id: I157d981c097180c24f15cbcf77ceebdc751a7b07
dec799f18c0d03d00c68aff998d384e85bc0b6fd 17-Mar-2017 Tina Zhou <tinazh@google.com> Merge "Merge "Fix flaky testWipeData cts test." into nougat-cts-dev am: 9f3f3d1e89" into nougat-mr1-cts-dev
am: b3e1c3615a

Change-Id: I943646065f1b03dbf321c6c4dd951e705b0e13ea
9d4cee81746038f5ec8c237f62a4f30164360779 17-Mar-2017 Tina Zhou <tinazh@google.com> Merge "Fix flaky testWipeData cts test." into nougat-cts-dev
am: 9f3f3d1e89

Change-Id: Iae45ae68df599f5ef34fb6178a2d47d9414c7d01
57d342a39bc89c2b4fbfe1ee15b89fef075903a3 17-Mar-2017 Tina Zhou <tinazh@google.com> Merge "Fix flaky testWipeData cts test." into nougat-cts-dev
am: 9f3f3d1e89

Change-Id: Id59ef52f2c9a0a751f18ca45ea7125c5c29e98bc
9f3f3d1e89f4c932be644a14e5f15e21619ad720 17-Mar-2017 Tina Zhou <tinazh@google.com> Merge "Fix flaky testWipeData cts test." into nougat-cts-dev
1acea450337c208c86e50565dc726c85b8af7fa8 17-Mar-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Add device-side library for SQLite database"
dad8db493bf3e6ab9a822e5333ac05031da46367 28-Feb-2017 Tadashi G. Takaoka <takaoka@google.com> Add device-side library for SQLite database

Bug: 7542467
Test: No test because this CL only adding library code.
Change-Id: I0fc262c7571436c9b7c5874f42c180aaa3dddc47
nputmethodservice/Android.mk
nputmethodservice/deviceside/Android.mk
nputmethodservice/deviceside/lib/Android.mk
nputmethodservice/deviceside/lib/src/android/inputmethodservice/cts/db/Database.java
nputmethodservice/deviceside/lib/src/android/inputmethodservice/cts/db/Entity.java
nputmethodservice/deviceside/lib/src/android/inputmethodservice/cts/db/Field.java
nputmethodservice/deviceside/lib/src/android/inputmethodservice/cts/db/Table.java
df7323114b75f8468f3b120350fe872fbeeb5d4a 16-Mar-2017 Chad Brubaker <cbrubaker@google.com> Merge "Exand CTS test for exposed activities"
6c79e072f176474aa6e599dacddef5ea8e399bb0 16-Mar-2017 Kazuhiro Inaba <kinaba@google.com> DO NOT MERGE: Allow failing CtsSystemUiHostTestCases in some cases.

A comment is added to clarify that this test may fail in some
circumstances that cannot be programatically determined.

Bug: 33430575
Test: None (no change in behavior by this CL.)
Change-Id: Iccf361275233b70692279a9a1ebba9ad93d0b4f4
ystemui/src/android/host/systemui/BaseTileServiceTest.java
e5ca9bd69f294883d47594875963c52376c8c913 16-Mar-2017 Bryce Lee <brycelee@google.com> Refactor how virtual displays are created in CTS tests.

This changelist introduces a builder to handle the different
permutations of virtual displays exercised in the tests. It also adds
the ability to create multiple displays at once from the
VirtualDisplayActivity. A new test has been added to test this
feature.

Test: cts/hostsidetests/services/activityandwindowmanager/util/run-test CtsServicesHostTestCases android.server.cts.ActivityManagerDisplayTests#testCreateMultipleVirtualDisplays

Change-Id: I72e5e1f99e0369ef43f576810ef3ffc2993d2b88
ervices/activityandwindowmanager/activitymanager/app/res/layout/virtual_display_layout.xml
ervices/activityandwindowmanager/activitymanager/app/src/android/server/cts/VirtualDisplayActivity.java
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/ActivityManagerDisplayTests.java
2bbd313607a7f951de651f831029ec77e18aac4b 16-Mar-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Added TODO for replacing shell move task command to long press recents"
cf3ddf8c2f3d9cea5e476ee4cc4d49843333a8be 15-Mar-2017 Matthew Ng <ngmatthew@google.com> Added TODO for replacing shell move task command to long press recents

The way we launch an activity into the docked stack is different from
what the user actually does. We want to change this to be consistent
long term. Adding TODO so we remember.

Bug: 36279415
Test: none
Change-Id: Ie262e8322d9f3d9db4a4211c2aa7abd3c6f19784
ervices/activityandwindowmanager/util/src/android/server/cts/ActivityManagerTestBase.java
4fd46fe9c8ed1a518df63c9ae4b43e5516c86b08 16-Mar-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Add test to ensure requested orientation is respected once fullscreen."
924253b1dfac2d7d77a19b5b1802421ced24ff04 16-Mar-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge changes If4bd7f56,I20147b82,Ieb1d31c0

* changes:
CTS: Add a JVMTI allocation tracking test
CTS: Add a JVMTI tagging test
CTS: Add skeleton for JVMTI tests
0c5f797dc250f308f3cc16330c7e3aa8bf380fd4 16-Mar-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Add retry mechanism in assertLockTaskModeInactive"
8525e4040ec442f082471576491e72a2cfbf031b 16-Mar-2017 Lorenzo Colitti <lorenzo@google.com> Merge "Dup fds to stop finalizers from invalidating them." am: 7830062b2a am: 69a276ac2f
am: a851ae13c4

Change-Id: I5054509fcc60b1eaae11723f6aaf0d1bdc770335
a851ae13c4421b6cfd42592a03465bd4b8af01e0 16-Mar-2017 Lorenzo Colitti <lorenzo@google.com> Merge "Dup fds to stop finalizers from invalidating them." am: 7830062b2a
am: 69a276ac2f

Change-Id: I98e89a7d0e7f25dab92e278a319d502713489979
69a276ac2f97f668d33057169d75a8131311b447 16-Mar-2017 Lorenzo Colitti <lorenzo@google.com> Merge "Dup fds to stop finalizers from invalidating them."
am: 7830062b2a

Change-Id: Ia0aedcf2cd8d56f8a8c31b3af95ae8a2ae0dedd0
7830062b2a63cedeca1d1e10f498b3cb60ee4855 16-Mar-2017 Lorenzo Colitti <lorenzo@google.com> Merge "Dup fds to stop finalizers from invalidating them."
18b6c651e968fd50d04537adee7d5bb0b94dcf12 06-Mar-2017 Lorenzo Colitti <lorenzo@google.com> Dup fds to stop finalizers from invalidating them.

The hostside VPN tests were failing because finalizers were
closing the ParcelFileDescriptors that we use to get socekt fds.
The close operations were causing the fds to be marked as invalid
(i.e., -1), causing the tests' system calls on them to fail with
EBADF.

Fix this by dup(2)ing the fds and closing the original objects.

Also, add some asserts to debug this sort of failure.

Fix: 35927643
Test: HostsideVpnTests passed 20/20 times on bullhead
Change-Id: If88530b5bd32622bd4726cd6f0907f731209bb43
et/app/src/com/android/cts/net/hostside/RemoteSocketFactoryClient.java
et/app/src/com/android/cts/net/hostside/VpnTest.java
8475b2159c6b654f7fd3738e44e4988d7a33d0aa 30-Jan-2017 Andreas Gampe <agampe@google.com> CTS: Add a JVMTI allocation tracking test

Copy ART run-test for basic tracking functionality to CTS. Change
implementation to compare in code instead of text output.

Bug: 32072923
Test: m cts
Test: cts-tradefed run cts-dev --module CtsJvmtiTrackingHostTestCases
Change-Id: If4bd7f563ae93793697ba0abbaa01c31cf47aca2
vmti/allocation-tracking/Android.mk
vmti/allocation-tracking/AndroidTest.xml
vmti/allocation-tracking/app/Android.mk
vmti/allocation-tracking/app/AndroidManifest.xml
vmti/allocation-tracking/app/src/android/jvmti/cts/JvmtiTrackingTest.java
vmti/base/app/src/android/jvmti/cts/JniBindings.java
vmti/base/jni/Android.mk
vmti/base/jni/tagging.cpp
vmti/base/jni/tracking.cpp
vmti/tagging/app/src/android/jvmti/cts/JvmtiTaggingTest.java
5358ee6cfd8f22790e90ca46345b76787e00d8a8 27-Jan-2017 Andreas Gampe <agampe@google.com> CTS: Add a JVMTI tagging test

Copy ART run-test for basic tagging functionality to CTS. Change
implementation to compare in code instead of text output.

Bug: 32072923
Test: m cts
Test: cts-tradefed run cts-dev --module CtsJvmtiTaggingHostTestCases
Change-Id: I20147b823a8f9e5d288e8e5edc195ab1101375b4
vmti/base/jni/Android.mk
vmti/base/jni/tagging.cpp
vmti/tagging/Android.mk
vmti/tagging/AndroidTest.xml
vmti/tagging/app/Android.mk
vmti/tagging/app/AndroidManifest.xml
vmti/tagging/app/src/android/jvmti/cts/JvmtiTaggingTest.java
1d4892d1e8705ce1bf8d47976c21125f8a7ce5ae 27-Jan-2017 Andreas Gampe <agampe@google.com> CTS: Add skeleton for JVMTI tests

Create a hostside CTS test for JVMTI on Android.

Add a base device test library that contains an empty activity,
a special bindings class and an instrumentation test that uses
the binding class to wait for an agent.

Add an initial agent implementation with some helpers. Add binding
code that looks for the well-known bindings class and searches for
C implementations (using the Java mangling scheme) of all native
methods found in the bindings class. Then call a well-known method
to let the Java side know that the agent has attached.

Add a host test library that implements a host test. The host test
takes an APK and package name as input from a properties file. The
host test constructs a remote runner to run the given test. When
the test run on device is started, the test will extract the agent,
which is expected to be in the device test APK, send it to the device
into the test's data directory, and call attach-agent to attach the
test.

Bug: 32072923
Test: m cts
Change-Id: Ieb1d31c09e642d719929e4369dc8b4d316842b4a
vmti/Android.mk
vmti/base/Android.mk
vmti/base/app/Android.mk
vmti/base/app/src/android/jvmti/JvmtiActivity.java
vmti/base/app/src/android/jvmti/cts/JniBindings.java
vmti/base/app/src/android/jvmti/cts/JvmtiTestBase.java
vmti/base/host/Android.mk
vmti/base/host/src/android/jvmti/cts/JvmtiHostTest.java
vmti/base/host/src/android/jvmti/cts/JvmtiPreparer.java
vmti/base/jni/Android.mk
vmti/base/jni/common.h
vmti/base/jni/cts_agent.cpp
vmti/base/jni/jni_binder.cpp
vmti/base/jni/jni_binder.h
vmti/base/jni/jni_helper.h
vmti/base/jni/jvmti_helper.cpp
vmti/base/jni/jvmti_helper.h
vmti/base/jni/scoped_local_ref.h
vmti/base/jni/scoped_primitive_array.h
vmti/base/jni/scoped_utf_chars.h
8448929266ce38ed2cd5681ba940d1b9d7443fa0 15-Mar-2017 Winson Chung <winsonc@google.com> Add test to ensure requested orientation is respected once fullscreen.

Bug: 36240543
Test: android.server.cts.ActivityManagerPinnedStackTests
Test: #testSetRequestedOrientationWhilePinned
Change-Id: Ia21b9916cd1cb86b39653bc778be04c57c83dd07
ervices/activityandwindowmanager/activitymanager/app/src/android/server/cts/PipActivity.java
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/ActivityManagerPinnedStackTests.java
22b1866d369b33a860a32cdbc1e4a3de3d63aa13 15-Mar-2017 Chris Wren <cwren@android.com> port bootstats CTS to v2 format

Also clean up the test to make reusable parts more obvious,
and to eliminate magic constants where possible.

Bug: 36232290
Test: cts-tradefed run cts-dev --module CtsBootStatsTestCases
Change-Id: I49d14540bef731089cc88f79949bee77f6952f6c
ootstats/Android.mk
ootstats/src/android/bootstats/cts/BootStatsHostTest.java
89cbe4350202db9082bbd5dce9dca1e0b6cbc954 13-Mar-2017 Chad Brubaker <cbrubaker@google.com> Exand CTS test for exposed activities

The test is not currently passing due to some apps needing to expose
activities.

Bug: 36101625
Test: this is the test :)
Change-Id: Icca5c10d7bb32db94191fd6df42742013b070bcb
ppsecurity/test-apps/EphemeralTestApp/EphemeralApp1/src/com/android/cts/ephemeralapp1/ClientTest.java
9dbf18ab5416afdc27ca2f1e73ed564134596dd7 15-Mar-2017 Tony Mak <tonymak@google.com> Add retry mechanism in assertLockTaskModeInactive

Can't reproduce the issue, but guess the reason is the "lock task mode"
state in AMS is updated asynchronously.
In ActivityStackSupervisor.removeLockedTaskLocked, a message is en-queued
to the handler, which eventually setting
mLockTaskModeState = LOCK_TASK_MODE_NONE. So it is possibly that the
task is just not executed yet.

Fix: 36179399
Test: cts-tradefed run cts --skip-connectivity-check --skip-preconditions --module DevicePolicyManager --test com.android.cts.devicepolicy.DeviceOwnerTest#testLockTask_deviceOwnerUser
Change-Id: I15b2e133e7476a8b82c11ddcb8f0f3ff42973e0e
evicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/LockTaskTest.java
b8f9ada9f267680fb116aabf1595f71cbef89888 15-Mar-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "More quota/cache storage tests."
9b59cd19490ac60eddfe09c88b48e15a2c7021ac 15-Mar-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Fix surface matcher pattern in CTS"
721b71489ca5b0157a5f678c6a89460b09243624 15-Mar-2017 Jeff Sharkey <jsharkey@android.com> More quota/cache storage tests.

Have our two test apps allocate cached data proportional to their
calculated quota (one under, one over), and then slowly allocate
space to eat away at the files inside. This verifies the new cache
behavior that targets apps most over their quota first, and that we
only compare file modified times within a specific app. Also
verifies that new allocateBytes() API will offer to clear away cached
files on behalf of normal apps.

Add test that allocates space on external storage, and verifies that
manual measurement is equal to what the stats API returns.

Add a few missing child tests to the parent host harness. Fix a
manual calculation bug that was excluding the root directory size.

Bug: 35684969
Test: cts-tradefed run commandAndExit cts-dev -m CtsAppSecurityHostTestCases -t android.appsecurity.cts.StorageHostTest
Change-Id: I7a385cf68cd20731f574aa0cd84502b78595ccd3
ppsecurity/src/android/appsecurity/cts/StorageHostTest.java
ppsecurity/test-apps/StorageApp/src/com/android/cts/storageapp/Utils.java
ppsecurity/test-apps/StorageApp/src/com/android/cts/storageapp/UtilsReceiver.java
ppsecurity/test-apps/StorageAppA/AndroidManifest.xml
ppsecurity/test-apps/StorageAppB/AndroidManifest.xml
ppsecurity/test-apps/StorageStatsApp/src/com/android/cts/storagestatsapp/StorageStatsTest.java
c5a32848cf5c382db6d52cc8581ad6c14a8f0aa0 15-Mar-2017 Jeff Vander Stoep <jeffv@google.com> Merge "Fix style and resource leakage" am: 4c0707a97a am: 1c6f3e798e
am: 39b2701229

Change-Id: I0a1b25e77c69a290ffa53d01ed08624f3915fa8f
39b270122979a16996b7c845d63f7e4abbefc544 15-Mar-2017 Jeff Vander Stoep <jeffv@google.com> Merge "Fix style and resource leakage" am: 4c0707a97a
am: 1c6f3e798e

Change-Id: I7922cd4834c86d972e12cd1e069c6f7bb7145ed1
1c6f3e798e2fcba21c2c79e16e99a64dddeb22ea 15-Mar-2017 Jeff Vander Stoep <jeffv@google.com> Merge "Fix style and resource leakage"
am: 4c0707a97a

Change-Id: I9238a037f6dfd29e0cbcac364575464a6eb0fca4
851c40c0e8331c68835b53e1bba0ef5a106fd3a3 14-Mar-2017 Jeff Vander Stoep <jeffv@google.com> Fix style and resource leakage

Test: cts-tradefed run singleCommand cts --skip-device-info \
--skip-preconditions --skip-connectivity-check \
--abi arm64-v8a --module CtsSecurityHostTestCases \
-t android.security.cts.SELinuxHostTest#testAospFileContexts
Test: cts-tradefed run singleCommand cts --skip-device-info \
--skip-preconditions --skip-connectivity-check \
--abi arm64-v8a --module CtsSecurityHostTestCases \
-t android.security.cts.SELinuxHostTest#testValidFileContexts
Bug: 36002414
Change-Id: I43f498f0aeec64933c3379d64dac52eb740b1096
ecurity/src/android/security/cts/SELinuxHostTest.java
a17cee86f33ff7e83fd3b71e65286a35d3e20220 14-Mar-2017 Andrii Kulian <akulian@google.com> Fix surface matcher pattern in CTS

Surface dump format changed in ag/1954859,
need to match it in CTS.

Test: android.server.cts
Change-Id: I85248d27b5a06b8aa2d8a5739328b8d02c5a229d
ervices/activityandwindowmanager/util/src/android/server/cts/WindowManagerState.java
44de5e5e9367198f3df01e14892eb3c3906ac3e3 14-Mar-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Add test for Build.Serial from Instant App"
d827f847e4767f0ef5be1662228ac063f364afc4 13-Mar-2017 Bryce Lee <brycelee@google.com> Add CTS tests to ensure rotation is restored when returning to task.

These tests cover returning to a task when the front task closes and
also when the cront task is moved to back.

Bug: 35699615
Test: cts/hostsidetests/services/activityandwindowmanager/util/run-test CtsServicesHostTestCases android.server.cts.ActivityManagerAppConfigurationTests#testTaskCloseRestoreOrientation
Test: cts/hostsidetests/services/activityandwindowmanager/util/run-test CtsServicesHostTestCases android.server.cts.ActivityManagerAppConfigurationTests#testTaskMoveToBackOrientation
Change-Id: If7c9a035c2d996f19c90ac5ebc739a39b9dc6dfc
ervices/activityandwindowmanager/activitymanager/app/src/android/server/cts/BroadcastReceiverActivity.java
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/ActivityManagerAppConfigurationTests.java
ervices/activityandwindowmanager/util/src/android/server/cts/ActivityManagerTestBase.java
db85e60c6a550c307f70502e99db9c023a391081 14-Mar-2017 Rob Carr <racarr@google.com> Merge "Delete some SurfaceView WM interaction tests."
9ed9198d9500b389e387e678d38acbef0dd70751 14-Mar-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Adding test to ensure setting PiP args don't clobber transition."
17d40262cc137e82af525dfdebc77d0dd48cc072 10-Mar-2017 Winson Chung <winsonc@google.com> Adding test to ensure setting PiP args don't clobber transition.

Bug: 35588768
Test: android.server.cts.ActivityManagerPinnedStackTests
Test: #testPreventSettingPipArgsWhileDismissing
Change-Id: I9cd5aa47e026f4d01eadee6ff7ef8a338f7274a1
ervices/activityandwindowmanager/activitymanager/app/src/android/server/cts/PipActivity.java
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/ActivityManagerPinnedStackTests.java
8794179278e0052ab335de49b14ff2d60f57bd1d 14-Mar-2017 Jeff Vander Stoep <jeffv@google.com> Merge "Support split and combined file_contexts" am: 0ce3173e0e am: baf6d788d8
am: 3853b97bde

Change-Id: Ib9fbee2e2716ad1b49e14416014b386a144dde96
3853b97bde4abea143a8cf4d27b64055b12cd7de 14-Mar-2017 Jeff Vander Stoep <jeffv@google.com> Merge "Support split and combined file_contexts" am: 0ce3173e0e
am: baf6d788d8

Change-Id: Ifa55957effb6f3c8a2d9057f1220bc7570f41cc8
baf6d788d85ee6f7ca9b79083fb5b1de720c125d 14-Mar-2017 Jeff Vander Stoep <jeffv@google.com> Merge "Support split and combined file_contexts"
am: 0ce3173e0e

Change-Id: I3b6c682ad955c4d03fa34464235aa64635a8c0e2
f93526e7fad3ce6dcf7077f459640d9a0b46e347 14-Mar-2017 Robert Carr <racarr@google.com> Delete some SurfaceView WM interaction tests.

SurfaceView no longer talks to the WM, interaction no longer needs
testing :) Some tests were migrated in earlier CL to Dialog tests,
others cover specific WM regression scenarios, and the rest should
be covered by the device side SurfaceView tests.

Bug: 33300710
Test: This branch deletes them.
Change-Id: I7fc7cb9290ecc015846ff600b56f59bdb5f40433
ervices/activityandwindowmanager/windowmanager/frametestapp/AndroidManifest.xml
ervices/activityandwindowmanager/windowmanager/frametestapp/src/android/server/frametestapp/SurfaceViewTestActivity.java
ervices/activityandwindowmanager/windowmanager/src/android/server/cts/SurfaceViewTests.java
8015fa9947e89c5277868ba28408641ae93336f7 14-Mar-2017 Jeff Vander Stoep <jeffv@google.com> Support split and combined file_contexts

Test: cts-tradefed run singleCommand cts --skip-device-info \
--skip-preconditions --skip-connectivity-check \
--abi arm64-v8a --module CtsSecurityHostTestCases \
-t android.security.cts.SELinuxHostTest#testAospFileContexts
Test: cts-tradefed run singleCommand cts --skip-device-info \
--skip-preconditions --skip-connectivity-check \
--abi arm64-v8a --module CtsSecurityHostTestCases \
-t android.security.cts.SELinuxHostTest#testValidFileContexts
Bug: 36002414

Change-Id: I134b4e21097e13fe43c9a53e58fbe9b3ad5c42e4
ecurity/src/android/security/cts/SELinuxHostTest.java
6569dc6dcb27ef3bf536c65fe9654db39f20bc47 13-Mar-2017 Chad Brubaker <cbrubaker@google.com> Add test for Build.Serial from Instant App

Bug: 35882064
Test: this is the test
Change-Id: I38780ad468a36b29bec67b6e367170bb353f62f0
ppsecurity/src/android/appsecurity/cts/EphemeralTest.java
ppsecurity/test-apps/EphemeralTestApp/EphemeralApp1/src/com/android/cts/ephemeralapp1/ClientTest.java
87ac6dab576b4581b34e1dbf6ab68ccb311d5332 13-Mar-2017 Andrii Kulian <akulian@google.com> Merge "Test rotation of a display does not affect other displays"
c87f6a07f801ae5d483eef0ebba7393f4859ed8f 13-Mar-2017 Fyodor Kupolov <fkupolov@google.com> Merge "[DO NOT MERGE] Added CTS test for media provider case" into nyc-dev am: 31fd5bff1d am: d27e6ef51a am: 6fc431e57e am: 03fb1055f0
am: 3a88a327a3

Change-Id: Ife76ee738ed7b121746346c90db24dba71c88f79
3a88a327a3f5bc1028af030e90695858bf7e33b4 13-Mar-2017 Fyodor Kupolov <fkupolov@google.com> Merge "[DO NOT MERGE] Added CTS test for media provider case" into nyc-dev am: 31fd5bff1d am: d27e6ef51a am: 6fc431e57e
am: 03fb1055f0

Change-Id: Iaeb452b44298aa29a95e8d2494f9eb8d90adddbe
6fc431e57eb454a75d5cc88492090b01cf3bd3ab 13-Mar-2017 Fyodor Kupolov <fkupolov@google.com> Merge "[DO NOT MERGE] Added CTS test for media provider case" into nyc-dev am: 31fd5bff1d
am: d27e6ef51a

Change-Id: Ia8568f8527ef66c49b37deacc8b04c289b692300
d27e6ef51a8562e4a33d0894ee617d1071f08af6 13-Mar-2017 Fyodor Kupolov <fkupolov@google.com> Merge "[DO NOT MERGE] Added CTS test for media provider case" into nyc-dev
am: 31fd5bff1d

Change-Id: Ib152057a4c2b086290e505b45fcd2800c67b5474
3be9354dff4053f7205c48419a2a2e6caa35b597 12-Mar-2017 Jeff Sharkey <jsharkey@android.com> Run storage tests under multiple users.

Use a hacky strategy to create multiple users just once for our
entire test suite, to keep it running reasonably fast.

Add test to verify that files under package-specific external
directories aren't counted as media types.

Bug: 35684969, 35441006, 34945234, 34723223
Test: cts-tradefed run commandAndExit cts-dev -m CtsAppSecurityHostTestCases -t android.appsecurity.cts.StorageHostTest
Change-Id: If4c26a6f9ece7d1190fabfbbcd02a1332d205421
ppsecurity/src/android/appsecurity/cts/StorageHostTest.java
ppsecurity/test-apps/StorageApp/src/com/android/cts/storageapp/Utils.java
ppsecurity/test-apps/StorageStatsApp/src/com/android/cts/storagestatsapp/StorageStatsTest.java
bcff524a6a63709129e07df1da1c1c63d7ed858a 10-Mar-2017 Andrii Kulian <akulian@google.com> Test rotation of a display does not affect other displays

This adds test to verify that secondary display is not affected
by rotations of the primary one.

Bug: 34242678
Test: android.server.cts.ActivityManagerDisplayTests
Test: #testRotationNotAffectingSecondaryScreen
Change-Id: I92b08f2fbe286f91a711eaf83807dc919357a111
ervices/activityandwindowmanager/activitymanager/app/src/android/server/cts/VirtualDisplayActivity.java
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/ActivityManagerDisplayTests.java
ervices/activityandwindowmanager/util/src/android/server/cts/ActivityManagerTestBase.java
4c0816b252b2cf51746096d0795931fc830cba30 19-Jan-2017 Adam Lesinski <adamlesinski@google.com> First set of IsolatedSplits tests

These tests test that a set of splits with the
android:isolatedSplits=true attribute set in the
<manifest> tag will have their splits loaded into
isolated ClassLoaders and Resources.

Activities and Receivers are tested here.

TODO:
- Services
- Providers
- Context#createContextForSplit()

Bug: 30999713
Test: cts-tradefed run cts --module CtsAppSecurityHostTestCases --test android.appsecurity.cts.IsolatedSplitsTests
Change-Id: Ia70d0867d78376ba51e8327060de271008c24196
ppsecurity/src/android/appsecurity/cts/AdoptableHostTest.java
ppsecurity/src/android/appsecurity/cts/BaseInstallMultiple.java
ppsecurity/src/android/appsecurity/cts/DirectBootHostTest.java
ppsecurity/src/android/appsecurity/cts/IsolatedSplitsTests.java
ppsecurity/src/android/appsecurity/cts/SplitTests.java
ppsecurity/test-apps/IsolatedSplitApp/Android.mk
ppsecurity/test-apps/IsolatedSplitApp/AndroidManifest.xml
ppsecurity/test-apps/IsolatedSplitApp/feature_a/Android.mk
ppsecurity/test-apps/IsolatedSplitApp/feature_a/AndroidManifest.xml
ppsecurity/test-apps/IsolatedSplitApp/feature_a/res/values-pl/values.xml
ppsecurity/test-apps/IsolatedSplitApp/feature_a/res/values/values.xml
ppsecurity/test-apps/IsolatedSplitApp/feature_a/src/com/android/cts/isolatedsplitapp/feature_a/FeatureAActivity.java
ppsecurity/test-apps/IsolatedSplitApp/feature_a/src/com/android/cts/isolatedsplitapp/feature_a/FeatureAReceiver.java
ppsecurity/test-apps/IsolatedSplitApp/feature_b/Android.mk
ppsecurity/test-apps/IsolatedSplitApp/feature_b/AndroidManifest.xml
ppsecurity/test-apps/IsolatedSplitApp/feature_b/res/values-pl/values.xml
ppsecurity/test-apps/IsolatedSplitApp/feature_b/res/values/values.xml
ppsecurity/test-apps/IsolatedSplitApp/feature_b/src/com/android/cts/isolatedsplitapp/feature_b/FeatureBActivity.java
ppsecurity/test-apps/IsolatedSplitApp/feature_b/src/com/android/cts/isolatedsplitapp/feature_b/FeatureBReceiver.java
ppsecurity/test-apps/IsolatedSplitApp/feature_c/Android.mk
ppsecurity/test-apps/IsolatedSplitApp/feature_c/AndroidManifest.xml
ppsecurity/test-apps/IsolatedSplitApp/feature_c/res/values-pl/values.xml
ppsecurity/test-apps/IsolatedSplitApp/feature_c/res/values/values.xml
ppsecurity/test-apps/IsolatedSplitApp/feature_c/src/com/android/cts/isolatedsplitapp/feature_c/FeatureCActivity.java
ppsecurity/test-apps/IsolatedSplitApp/feature_c/src/com/android/cts/isolatedsplitapp/feature_c/FeatureCReceiver.java
ppsecurity/test-apps/IsolatedSplitApp/res/values-pl/values.xml
ppsecurity/test-apps/IsolatedSplitApp/res/values/values.xml
ppsecurity/test-apps/IsolatedSplitApp/src/com/android/cts/isolatedsplitapp/BaseActivity.java
ppsecurity/test-apps/IsolatedSplitApp/src/com/android/cts/isolatedsplitapp/BaseReceiver.java
ppsecurity/test-apps/IsolatedSplitApp/src/com/android/cts/isolatedsplitapp/SplitAppTest.java
b875e22ebd657fca39e7f6a112d8759f4f6929af 07-Mar-2017 Fyodor Kupolov <fkupolov@google.com> [DO NOT MERGE] Added CTS test for media provider case

It tests cross-user separation by exposing files to media provider

Test: cts-tradefed run cts --module CtsAppSecurityHostTestCases
--test android.appsecurity.cts.ExternalStorageHostTest
Bug: 34114752

Change-Id: I544997dbbc745ef5c3b6667a64e2b8144450f951
(cherry picked from commit 8e1b999e85365121a3f3a0b6e169a02417b16c18)
ppsecurity/src/android/appsecurity/cts/ExternalStorageHostTest.java
ppsecurity/test-apps/MultiUserStorageApp/src/com/android/cts/multiuserstorageapp/MultiUserStorageTest.java
17a60d1f014a772be2b0fc8a141cd15aa4b917e4 10-Mar-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Annotate AlertWindowsTests classes with @Presubmit"
fc6cee589e5ce05a04c622fd1185d63d9bf7cc04 10-Mar-2017 Wale Ogunwale <ogunwale@google.com> Annotate AlertWindowsTests classes with @Presubmit

First step in trying to see how possible it is to have some CTS
tests run as part of presubmit.

Bug: 35977397
Bug: 36120620
Test: AlertWindowsTests
Change-Id: Ia684709af9297ed5b5bbf7c682cb37ecf185ec6b
ervices/activityandwindowmanager/windowmanager/Android.mk
ervices/activityandwindowmanager/windowmanager/src/android/server/cts/AlertWindowsTests.java
091d0b57f33b8635cf14b0c782427b587a37d305 10-Mar-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Address comment from API council."
5153f972a5c09ba660db6e6ed0e270e61f2e8217 10-Mar-2017 Fyodor Kupolov <fkupolov@google.com> Merge "Added CTS test for media provider case"
451ba371b2d7b33e9ff1181bee42a5c3ddb7d8d5 10-Mar-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "DO NOT MERGE: resolve merge conflicts of 69bf457648 to nyc-mr2-dev-plus-aosp" into nyc-mr2-dev-plus-aosp
0afc9400da5d0e65f512f7a748985ab10267b23d 09-Mar-2017 Zach Jang <zachjang@google.com> DO NOT MERGE: resolve merge conflicts of 69bf457648 to nyc-mr2-dev-plus-aosp

Test: N/A (Merge conflict resolution)

Change-Id: Ibeea664708348ad140893caa55e88465f9475748
5d8770ba24c12d292ce4bea7230c3c2427f1aca6 09-Mar-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Added test to verify minimized state when the dock is dismissed"
d3911117f6124957deb366979805ff6561071741 09-Mar-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Ensure that all pinned stack tasks are larger than minimum size."
d4acc87df2c2d77b6687ebd2ba1429b0df3e965e 09-Mar-2017 Jeff Vander Stoep <jeffv@google.com> Merge "Support both locations for seapp/service contexts" am: 7f9242fd48 am: f06d40eed2
am: d956f2f7f5

Change-Id: Ia041c01f7c29fffc3cea9bd04cbffcd8f7b1e243
d956f2f7f5d7a5ec536e0161f5822b356a336315 09-Mar-2017 Jeff Vander Stoep <jeffv@google.com> Merge "Support both locations for seapp/service contexts" am: 7f9242fd48
am: f06d40eed2

Change-Id: I939cb106ed83262109f28cbf2692b92d1a426416
f06d40eed223ce8f81937973d2120e2fc81f65be 09-Mar-2017 Jeff Vander Stoep <jeffv@google.com> Merge "Support both locations for seapp/service contexts"
am: 7f9242fd48

Change-Id: If9f1c4772ed5e2782b64500c6d99c919a197a0b3
7f9242fd48bb94c165134f16353acc55ecc5f921 09-Mar-2017 Treehugger Robot <treehugger-gerrit@google.com> Merge "Support both locations for seapp/service contexts"
1dc19cc78ff6ebc14ccc0fa922eba9d1260e0fb6 16-Dec-2016 Matthew Ng <ngmatthew@google.com> Added test to verify minimized state when the dock is dismissed

This is for the change 1707522

Test: run-test
CtsServicesHostTestCases android.server.cts.
ActivityManagerDockedStackTests#testFinishDockActivityWhileMinimized
Change-Id: Idd54f2c6e004b8f3792d9ab25fbe18f811e18ec8
ervices/activityandwindowmanager/activitymanager/app/AndroidManifest.xml
ervices/activityandwindowmanager/activitymanager/app/src/android/server/cts/FinishableActivity.java
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/ActivityManagerDockedStackTests.java
ervices/activityandwindowmanager/util/src/android/server/cts/WindowManagerState.java
d571a5d06330dc58d19f3989799b88c6fe052531 09-Mar-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Corrects the recents and home stacks position around docked state (2/2)"
69bf457648bb53d166202305f6ff9665ebece6b0 09-Mar-2017 Svetoslav Ganov <svetoslavganov@google.com> Merge "[DO NOT MERGE] Don't allow permission change to runtime - tests" into nyc-dev am: f8bc2e047b am: 9dd78e39e6 am: b9aeebec16
am: 4a1d5571a6

Change-Id: I57d6d87e992d48fad87b845abae4c7dd2d07a6fe
ddb1465f0be9fc042363e14808113c5ba33e435e 09-Mar-2017 Alex Klyubin <klyubin@google.com> Merge "Support both locations of plat_property_contexts" am: 522690f450 am: c9d6d3a1d9
am: 9586d54d2c

Change-Id: I1969d066b4d3f9bc367f0dc7f27fa2a03cbe2e98
b9aeebec164f099e5217f45b29f9593fc6758ee2 09-Mar-2017 Svetoslav Ganov <svetoslavganov@google.com> Merge "[DO NOT MERGE] Don't allow permission change to runtime - tests" into nyc-dev am: f8bc2e047b
am: 9dd78e39e6

Change-Id: I3d8810939aad762b737f10102796a720235d8259
9586d54d2c5ab26ae357cec04514ce31f69e1a3a 09-Mar-2017 Alex Klyubin <klyubin@google.com> Merge "Support both locations of plat_property_contexts" am: 522690f450
am: c9d6d3a1d9

Change-Id: I638f671b7c2fc0b3674f61e421ccfab6263a79cc
c9d6d3a1d9f76027c3f21e9101432e2d2e369a12 09-Mar-2017 Alex Klyubin <klyubin@google.com> Merge "Support both locations of plat_property_contexts"
am: 522690f450

Change-Id: I68c3bfa380ddefc9e8756d8df57a26c44fed3b59
9dd78e39e60515c76548fb8374151d8d26a08dec 09-Mar-2017 Svetoslav Ganov <svetoslavganov@google.com> Merge "[DO NOT MERGE] Don't allow permission change to runtime - tests" into nyc-dev
am: f8bc2e047b

Change-Id: Ife820426e0ef64bc11e3498aaf5358365baabbd3
522690f450072dc2f6f915d19833dd197cc7c404 09-Mar-2017 Treehugger Robot <treehugger-gerrit@google.com> Merge "Support both locations of plat_property_contexts"
f8bc2e047b72fa0a997acc907e89c0334da0398f 09-Mar-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "[DO NOT MERGE] Don't allow permission change to runtime - tests" into nyc-dev
d07a73d166478f7cc826a8ed7038371fe1b2a710 29-Dec-2016 Svetoslav Ganov <svetoslavganov@google.com> [DO NOT MERGE] Don't allow permission change to runtime - tests

Prevent apps to change permission protection level to dangerous
from any other type as this would allow a privilege escalation
where an app adds a normal permission in other app's group and
then redefines it as dangerous leading to the group auto-grant.

Test: Added a CTS test which passes.

Bug: 33860747
b/34114230

Change-Id: I30c0ed5bf27127c6c189b81037a165f5a96ef61e
ppsecurity/src/android/appsecurity/cts/PermissionsHostTest.java
ppsecurity/test-apps/DeclareNotRuntimePermissions/Android.mk
ppsecurity/test-apps/DeclareNotRuntimePermissions/AndroidManifest.xml
ppsecurity/test-apps/EscalateToRuntimePermissions/Android.mk
ppsecurity/test-apps/EscalateToRuntimePermissions/AndroidManifest.xml
ppsecurity/test-apps/EscalateToRuntimePermissions/res/values/strings.xml
ppsecurity/test-apps/EscalateToRuntimePermissions/src/com/android/cts/escalatepermission/PermissionEscalationTest.java
976c783c13b408e43f549dc63be158ea3264c960 09-Mar-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "[CTS] Dismiss keyguard before running backup tests"
f7f58fc4ec2b0bdbee41039ade4ad67afed603ce 09-Mar-2017 Jeff Vander Stoep <jeffv@google.com> Support both locations for seapp/service contexts

Test: cts-tradefed run singleCommand cts --skip-device-info \
--skip-preconditions --skip-connectivity-check \
--abi arm64-v8a --module CtsSecurityHostTestCases \
-t android.security.cts.SELinuxHostTest#testAospSeappContexts
Test: cts-tradefed run singleCommand cts --skip-device-info \
--skip-preconditions --skip-connectivity-check \
--abi arm64-v8a --module CtsSecurityHostTestCases \
-t android.security.cts.SELinuxHostTest#testValidSeappContexts
Test: cts-tradefed run singleCommand cts --skip-device-info \
--skip-preconditions --skip-connectivity-check \
--abi arm64-v8a --module CtsSecurityHostTestCases \
-t android.security.cts.SELinuxHostTest#testAospServiceContexts
Bug: 36002816
Bug: 36002427

Change-Id: Id2bdf16fd2b98c4443a8812840329071c7f85fd4
ecurity/src/android/security/cts/SELinuxHostTest.java
8e1b999e85365121a3f3a0b6e169a02417b16c18 07-Mar-2017 Fyodor Kupolov <fkupolov@google.com> Added CTS test for media provider case

It tests cross-user separation by exposing files to media provider

Test: cts-tradefed run cts --module CtsAppSecurityHostTestCases
--test android.appsecurity.cts.ExternalStorageHostTest
Bug: 34114752

Change-Id: I544997dbbc745ef5c3b6667a64e2b8144450f951
ppsecurity/src/android/appsecurity/cts/ExternalStorageHostTest.java
ppsecurity/test-apps/MultiUserStorageApp/src/com/android/cts/multiuserstorageapp/MultiUserStorageTest.java
de8fddca0f388293572dbf44a45dcc68451429f2 09-Mar-2017 Michal Karpinski <mkarpinski@google.com> [CTS] Dismiss keyguard before running backup tests

Tests were flaky, because if there was lock screen, uiautomator couldn't do it's job.

Test: cts-tradefed run cts -m CtsBackupHostTestCases, both with lock screen visible and dismissed
Bug: 36053976
Change-Id: I5a695c2960d05012de3d5ae21bc02705b3e2c3c8
ackup/src/android/backup/cts/WallpaperRestoreHostSideTest.java
5d05f10ef98681494e91bbd6397cf0f700ca259b 09-Mar-2017 Tina Zhou <tinazh@google.com> Merge "Increase arbitrary wait for boot." into nougat-cts-dev am: 9804a4532c
am: af98056c36

Change-Id: I4d3a5ee05eb6aaf0e478c26bd110fca5518a3540
af98056c3697f054601d8db573f604b22561f188 09-Mar-2017 Tina Zhou <tinazh@google.com> Merge "Increase arbitrary wait for boot." into nougat-cts-dev
am: 9804a4532c

Change-Id: I2fcbacb9ecbecdbeec8be272d9e86d2fc9fe2b1d
d88e016656aded7c8f4e808287225a80f829cf8b 03-Mar-2017 Christine Franks <christyfranks@google.com> Remove CtsRetailModeHostTestCases

Bug: 33659098
Test: run cts-dev -m CtsRetailModeHostTestCases (with output 'No
modules found matching CtsRetailModeHostTestCases')
Change-Id: Ia41c7c9396c9266d39c716ff19379ac70ce820b7
etaildemo/Android.mk
etaildemo/AndroidTest.xml
etaildemo/app/Android.mk
etaildemo/app/AndroidManifest.xml
etaildemo/app/src/com/android/cts/retaildemo/DemoModeUiAutomationTest.java
etaildemo/app/src/com/android/cts/retaildemo/DemoUserTest.java
etaildemo/src/android/host/retaildemo/BaseTestCase.java
etaildemo/src/android/host/retaildemo/DemoModeTest.java
etaildemo/src/android/host/retaildemo/DemoModeUiAutomationHostTest.java
403403eb00bc7e977013c7b370254afd060d1a0c 09-Mar-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Fix restricted broadcast receivers in CTS"
7f166b40ef439b5a97df1093ab6645ea41d3ea1f 08-Mar-2017 Alex Klyubin <klyubin@google.com> Support both locations of plat_property_contexts

During boot, plat_property_contexts is loaded from
/system/etc/selinux, falling back to /. This change updates the
host-side SELinux tests to look up the file accordingly.

Test: cts-tradefed run singleCommand cts --skip-device-info \
--skip-preconditions --skip-connectivity-check \
--abi arm64-v8a --module CtsSecurityHostTestCases \
-t android.security.cts.SELinuxHostTest#testAospPropertyContexts
Bug: 36002573

Change-Id: I261e0933b73179db0a2cdb1279a04cab14e88f69
ecurity/src/android/security/cts/SELinuxHostTest.java
014b88da1ca088e3bc5fdc9d7ca9aa477084b447 08-Mar-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Improve wallpaper CTS reliability"
28d572b25c8e616ab0dbf5159a9c968fbbd1d6f4 08-Mar-2017 Andrii Kulian <akulian@google.com> Fix restricted broadcast receivers in CTS

This CL makes some of the broadcast receivers explicit by
adding their package name.

Bug: 34164473
Test: android.server.cts.ActivityManagerDisplayTests
Change-Id: Ie5894110cf7463f6feaa67dd544842b12763c4d5
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/ActivityManagerDisplayTests.java
60ce41d6231f2f96d54abdc867e9af61a11f4093 08-Mar-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge changes I0913d68e,I8f3b1b21

* changes:
Adding test to ensure that moveToBack works for PiP activities
Removing obsolete PiP test.
e130c75300253b8710799c6716470a983a8d88f9 08-Mar-2017 Bryan Mawhinney <bryanmawhinney@google.com> Improve wallpaper CTS reliability

Move DummyLiveWallpaper into its own apk. This ensures that the live
wallpaper doesn't crash when the device side instrumentation tests are
run, which makes the tests less flaky.

"app" and "app2" aren't great package names, but:
1) The package name is already embedded in the golden backups, so harder
to change
2) It's not clear yet whether or not this will be useful for things other
than wallpaper
3) This pattern is already used by other hostsidetests

Bug: 33616476
Test: cts-tradefed run cts -m CtsBackupHostTestCases
Change-Id: I4c201326d0ced831d1eb3926e60386bb250eb892
ackup/AndroidTest.xml
ackup/app/Android.mk
ackup/app/AndroidManifest.xml
ackup/app/src/android/backup/cts/app/WallpaperRestoreTest.java
ackup/app2/Android.mk
ackup/app2/AndroidManifest.xml
ackup/app2/src/android/backup/cts/app2/WallpaperRestoreTest.java
ackup/src/android/backup/cts/WallpaperRestoreHostSideTest.java
ce282bed8d960aa5002e86e49c2a01e822905706 08-Mar-2017 Winson Chung <winsonc@google.com> Adding test to ensure that moveToBack works for PiP activities

- Ensures that it works with/without/visible fullscreen stacks and is
the same behaviour as removing the stack and moving the pinned tasks
to the fullscreen stack.
- Fixing issue where activity dump extraction was not stopping and reading
the wrong state

Bug: 36034065
Test: android.server.cts.ActivityManagerPinnedStackTests
Test: #testMovePipToBackWithNoFullscreenStack
Test: #testMovePipToBackWithVisibleFullscreenStack
Test: #testMovePipToBackWithHiddenFullscreenStack
Change-Id: I0913d68e4e892407195cc3160a26f985fbfb3d12
ervices/activityandwindowmanager/activitymanager/app/src/android/server/cts/PipActivity.java
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/ActivityManagerPinnedStackTests.java
ervices/activityandwindowmanager/util/src/android/server/cts/ActivityManagerState.java
8baf601f7fa5145faf63f8f4160762cf40c96f89 08-Mar-2017 Makoto Onuki <omakoto@google.com> Merge "CTS for wakeup alarm known-bad"
00f6e2580a706e6e643b3ca651d6f9326b1d21b5 08-Mar-2017 Makoto Onuki <omakoto@google.com> CTS for wakeup alarm known-bad

Fix: 34233085
Test: cts-tradefed run cts-dev --skip-device-info --skip-preconditions --skip-system-status-check com.android.compatibility.common.tradefed.targetprep.NetworkConnectivityChecker -a armeabi-v7a -l INFO -m CtsIncidentHostTestCases -t com.android.server.cts.BatteryStatsValidationTest
Change-Id: I96db39a094bf9f609d7d65d2386ebdd24387c392
ncident/apps/batterystatsapp/src/com/android/server/cts/device/batterystats/BatteryStatsAlarmTest.java
ncident/src/com/android/server/cts/BatteryStatsValidationTest.java
33ceb4edec6ece7a09825318527adbe4cc8aff6f 08-Mar-2017 Bryce Lee <brycelee@google.com> Merge "Fix ActivityManagerActivityVisibilityTests#testReorderToFrontBackstack"
a5490e3637d0742bf4fb54c5e3c324c718406d75 08-Mar-2017 Calin Juravle <calin@google.com> Merge "Update android.cts.compilation assets" am: 1bbdbb9c64 am: 05534f8e95
am: 45c3d3f336

Change-Id: I46387b38e6977181ae94badcfd391a010c1f9efe
45c3d3f3369c6c5ab4063368f4368762e20e0a58 08-Mar-2017 Calin Juravle <calin@google.com> Merge "Update android.cts.compilation assets" am: 1bbdbb9c64
am: 05534f8e95

Change-Id: I535bbdb303c9f24dfcb3cf28ae4e698a955d0bc4
05534f8e95eb0ec7013287ded167149b32f1ced9 08-Mar-2017 Calin Juravle <calin@google.com> Merge "Update android.cts.compilation assets"
am: 1bbdbb9c64

Change-Id: I90f0077af833f71747aa1a491395f1407058fc18
2b66c905950dbd87045ba1d3d5046c2c5778a3d3 08-Mar-2017 Calin Juravle <calin@google.com> Update android.cts.compilation assets

Update the profile to match the current version (0.4.0).

Test: make cts && cts-tradefed run cts -m CtsCompilationTestCases
Bug: 35420088
Change-Id: Ica1b7915544838dd6f95d101d3e8004b190c1de3
ompilation/assets/primary.prof
89ad05f196f350831050af78b5513c317cf6112f 08-Mar-2017 Svetoslav Ganov <svetoslavganov@google.com> Merge "Adjust tests due to platform behavior change"
0de3256ad42936e7c6ab6a24d93412a7b51c6ebb 08-Mar-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "CTS for known-bad for excessive syncs."
44f1cf268cff22424b1795a8f338b579bacc5854 08-Mar-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Advancing our amazing bet on PINs."
3ecad0e529059530deb6e815872c2fcac821e5ce 07-Mar-2017 Makoto Onuki <omakoto@google.com> CTS for known-bad for excessive syncs.

Run a sync adapter 10 times and make sure batterystas catches it.

Change-Id: Icffc8700f347fd3e33d4ffe1206a9d9441fccd15
Fix: 35669746
Test: cts-tradefed run cts-dev --skip-device-info --skip-preconditions --skip-system-status-check com.android.compatibility.common.tradefed.targetprep.NetworkConnectivityChecker -a armeabi-v7a -l INFO -m CtsIncidentHostTestCases -t 'com.android.server.cts.BatteryStatsValidationTest#testSyncs'
ncident/apps/batterystatsapp/AndroidManifest.xml
ncident/apps/batterystatsapp/res/values/strings.xml
ncident/apps/batterystatsapp/res/xml/authenticator.xml
ncident/apps/batterystatsapp/res/xml/syncadapter.xml
ncident/apps/batterystatsapp/src/com/android/server/cts/device/batterystats/BatteryStatsAuthenticator.java
ncident/apps/batterystatsapp/src/com/android/server/cts/device/batterystats/BatteryStatsProvider.java
ncident/apps/batterystatsapp/src/com/android/server/cts/device/batterystats/BatteryStatsSyncAdapter.java
ncident/apps/batterystatsapp/src/com/android/server/cts/device/batterystats/BatteryStatsSyncService.java
ncident/apps/batterystatsapp/src/com/android/server/cts/device/batterystats/BatteryStatsSyncTest.java
ncident/src/com/android/server/cts/BatteryStatsValidationTest.java
d0443645c7779a520f3e861c0c263dcda8910b9f 07-Mar-2017 Jeff Sharkey <jsharkey@android.com> Advancing our amazing bet on PINs.

Settings keeps shuffling around their UI targets, so let's switch
over to using the new "locksettings" shell command for both setting
and clearing our test PIN.

Test: cts-tradefed run cts-dev --module CtsAppSecurityHostTestCases --test android.appsecurity.cts.DirectBootHostTest#testDirectBootNative
Bug: 35764215, 35764115
Change-Id: I843cb6e864b2d384121c0b42208de6ff10ed9a01
ppsecurity/test-apps/EncryptionApp/src/com/android/cts/encryptionapp/EncryptionAppTest.java
58f2130e5208d7e4f2979df8af96ccfb7ec7a176 07-Mar-2017 Amith Yamasani <yamasani@google.com> Merge "Test newly added background network transfer stats"
b32ac7dbde3c5adf50f1cf0b8a853a544cc227eb 07-Mar-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Add timeout for Android Enterprise host side tests"
541497d5f1bc5d116bd2acc872e7d12d5531834f 07-Mar-2017 Esteban Talavera <etalavera@google.com> Add timeout for Android Enterprise host side tests

Bug: 35100316
Test: cts-tradefed run cts-dev --module DevicePolicyManager --test com.android.cts.devicepolicy.DeviceOwnerTest
Change-Id: Iffd34a4f27a1b5d80f4a42f9ab9dc06b8132ad92
evicepolicy/src/com/android/cts/devicepolicy/BaseDevicePolicyTest.java
7166244312a84d08088d6385c5022ef30ba52b49 10-Feb-2017 Bartosz Fabianowski <bartfab@google.com> Tests for checking whether a CA cert was installed by the PO/DO

This CL adds CTS tests verifying that we keep track whether a given
CA cert was installed by the Device Owner/Profile owner or the user.

Bug: 32692748
Test: cts-tradefed run cts-dev --module CtsDevicePolicyManagerTestCases

Change-Id: I7e231e8a689181ded111010025f11975e4a405fe
evicepolicy/app/DeviceAndProfileOwner/api23/Android.mk
evicepolicy/app/DeviceAndProfileOwner/api25/Android.mk
evicepolicy/app/DeviceAndProfileOwner/latest/Android.mk
evicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/DelegatedCertInstallerTest.java
evicepolicy/app/DeviceOwner/Android.mk
evicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/AdminActionBookkeepingTest.java
evicepolicy/app/ProfileOwner/Android.mk
evicepolicy/app/ProfileOwner/src/com/android/cts/profileowner/AdminActionBookkeepingTest.java
e9b50a0b87dec390e998fec00d17f1db10ebefb7 07-Mar-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Add missing feature check"
a5f510b4f3e9a940eca41ca63025029c3ca09ff7 07-Mar-2017 Makoto Onuki <omakoto@google.com> Add missing feature check

Change-Id: I74cfa3d5de493eebd083008fb63b2dc22f114353
Test: cts-tradefed run cts-dev --skip-device-info --skip-preconditions --skip-system-status-check com.android.compatibility.common.tradefed.targetprep.NetworkConnectivityChecker -a armeabi-v7a -l INFO -m CtsDevicePolicyManagerTestCases -t 'com.android.cts.devicepolicy.ManagedProfileTest#testCurrentApiHelper'
Fix: 35888852
evicepolicy/src/com/android/cts/devicepolicy/ManagedProfileTest.java
e3432ac8de1debd4e9b6bd9c4e5682d62c8caa66 06-Mar-2017 Winson Chung <winsonc@google.com> Ensure that all pinned stack tasks are larger than minimum size.

Bug: 35950317
Test: android.server.cts.ActivityManagerPinnedStackTests

Change-Id: Ia156395e3e98d5f73fd4c68cf9615f4fd81d96fd
ervices/activityandwindowmanager/util/src/android/server/cts/ActivityAndWindowManagersState.java
20f70f59aa7edc8290a2114b8a868ad761f69655 06-Mar-2017 Amith Yamasani <yamasani@google.com> Test newly added background network transfer stats

Verify that batterystats now collects network stats for apps
when running in the background and compare them with total
stats.

Bug: 35677165
Test: cts-tradefed run cts-dev -m CtsDumpsysHostTestCases
Change-Id: I65acb33934693732826ec6db89cde79aaa2932d8
umpsys/src/android/dumpsys/cts/BatteryStatsDumpsysTest.java
43f467e3656c493d552d9d3a88d8fa3573dfbb84 06-Mar-2017 Bartosz Fabianowski <bartfab@google.com> Rename and DPM.isDefaultInputMethodSetByOwner()

DPM.isDefaultInputMethodSetByOwner() was a misnomer and
isCurrentInputMethodSetByOwner() is a more accurate name.

Bug: 32692748
Test: cts-tradefed run cts-dev --module CtsDevicePolicyManagerTestCases

Change-Id: I68faeba2eb7b57a8d913182b6dc6776326152505
evicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/AdminActionBookkeepingTest.java
evicepolicy/app/ProfileOwner/src/com/android/cts/profileowner/AdminActionBookkeepingTest.java
775b8400d28f935548545922def142bd93585b16 04-Mar-2017 Svet Ganov <svetoslavganov@google.com> Adjust tests due to platform behavior change

bug:35389743

Test: CTS tests pass

Change-Id: I6382169de43af92ba2c6dfe4cda83bff5665f24c
ppsecurity/src/android/appsecurity/cts/InstantCookieHostTest.java
d25a9428e4fb43a4d8b5c7781e114aaa27436ff0 02-Mar-2017 Matthew Ng <ngmatthew@google.com> Corrects the recents and home stacks position around docked state (2/2)

Added test to make sure when docking the recents stack is above the
homestack by their index positions.

Test: cts/hostsidetests/services/activityandwindowmanager/util/run-test
CtsServicesHostTestCases
android.server.cts.ActivityManagerDockedStackTests#
testStackListOrderLaunchDockedActivity
Change-Id: I254e7c460c159cd2afc8d9f9de3c79c9955dc07a
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/ActivityManagerDockedStackTests.java
ervices/activityandwindowmanager/util/src/android/server/cts/ActivityAndWindowManagersState.java
ervices/activityandwindowmanager/util/src/android/server/cts/ActivityManagerState.java
ervices/activityandwindowmanager/util/src/android/server/cts/WindowManagerState.java
b38b1323335037dd0803d168b7cb964c9467168b 03-Mar-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Improvements to CTS theme tests, updated golden images for O preview"
05f5d329376a08edbc056575c0ff9046a46ff536 02-Mar-2017 Alan Viverette <alanv@google.com> Improvements to CTS theme tests, updated golden images for O preview

Assets were being overwritten by changes in downstream branches, which
caused breakages. As a result, we've regenerated all the assets to ensure
we're in a good state for SDK 26 and fixed handling of pre-release SDK
versions.

Also, this CL updates the image comparison algorithm to use LAB color
space for perceptual image comparison. This should be more robust to
subtle renderer changes, including differences between emulator host GPU
and real device GPU.


Bug: 33081354
Bug: 33631603
Test: android.theme.cts.ThemeHostTest
Change-Id: I5e079073b044b5e3d3f6ba72cef7aba0e8511749
heme/Android.mk
heme/README
heme/android_device.py
heme/app/AndroidManifest.xml
heme/assets/24/360dpi.zip
heme/assets/24/hdpi.zip
heme/assets/24/tvdpi.zip
heme/assets/420dpi.zip
heme/assets/560dpi.zip
heme/assets/O/360dpi.zip
heme/assets/O/420dpi.zip
heme/assets/O/560dpi.zip
heme/assets/O/hdpi.zip
heme/assets/O/mdpi.zip
heme/assets/O/xhdpi.zip
heme/assets/O/xxhdpi.zip
heme/assets/O/xxxhdpi.zip
heme/assets/hdpi.zip
heme/assets/mdpi.zip
heme/assets/tvdpi.zip
heme/assets/xhdpi.zip
heme/assets/xxhdpi.zip
heme/assets/xxxhdpi.zip
heme/run_theme_capture_device.py
heme/src/android/theme/cts/ColorUtils.java
heme/src/android/theme/cts/ComparisonTask.java
heme/src/android/theme/cts/ThemeHostTest.java
6ef7c4c20e083e5ee0088dae6c9c26862fac92a0 01-Mar-2017 Garfield Tan <xutan@google.com> Address comment from API council.

Test: Documents CTS pass.
Bug: 35812990
Change-Id: Idd9015761025859f6d2c60659619a6ba0ba26b62
ppsecurity/test-apps/DocumentClient/src/com/android/cts/documentclient/DocumentsClientTest.java
ppsecurity/test-apps/DocumentProvider/src/com/android/cts/documentprovider/MyDocumentsProvider.java
4e0825b5118d7937da7cb72ff6c04a1ffd01ccb8 02-Mar-2017 Dianne Hackborn <hackbod@google.com> Test for issue #35365651: ActivityManager.getPackageImportance() doesn't...

...return the highest importance of all processes

Expand uid state tests to test changes to multiple processes of the same app.

Test: this is a test.

Change-Id: I8ed2ab661a11ace02cd2d28e1ac22631b98dc377
evicepolicy/app/SimpleApp/AndroidManifest.xml
evicepolicy/app/SimpleApp/src/com/android/cts/launcherapps/simpleapp/SimpleService2.java
ac4a3dc4e0b0faa67b4e7099c1e5bb705aba8d82 02-Mar-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Fix CTS tests for DPM delegation with credentials on managed profile"
f50668d9c46caa7d458bb62b2bc3efcfec4248dd 02-Mar-2017 Rob Carr <racarr@google.com> Merge "WM tests: Port SurfaceView SurfaceTrace tests to use Popup"
e3414ce5983efacd7d9fd794304ebfd3c8ec3a23 02-Mar-2017 Robert Carr <racarr@google.com> WM tests: Port SurfaceView SurfaceTrace tests to use Popup

Now that SurfaceView doesn't talk to the WM, the SurfaceView WM tests
won't pass. Most of them can be deleted, but this movement test is useful
for verifying a general property of child windows which should still
apply to PopupWindows.

Bug: 33300710
Test: cts-tradefed run singleCommand cts -d -o --module CtsWindowManagerHostTestCases --test android.server.cts.PopupMovementTests
Change-Id: I5b17f80f2b22871c5ab8d8d52a32ce48426dfe4d
ervices/activityandwindowmanager/util/src/android/server/cts/WindowManagerState.java
ervices/activityandwindowmanager/windowmanager/frametestapp/AndroidManifest.xml
ervices/activityandwindowmanager/windowmanager/frametestapp/src/android/server/frametestapp/MovingPopupTestActivity.java
ervices/activityandwindowmanager/windowmanager/frametestapp/src/android/server/frametestapp/MovingSurfaceViewTestActivity.java
ervices/activityandwindowmanager/windowmanager/src/android/server/cts/PopupMovementTests.java
ervices/activityandwindowmanager/windowmanager/src/android/server/cts/SurfaceViewMovementTests.java
8ecfad121c7a0b7a420db45fa707e1d95b0768c1 02-Mar-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Test battery stats values for realtime"
56a42b8b87fbdde0b245848bea29b0877543485d 02-Mar-2017 Andrii Kulian <akulian@google.com> Merge "Fix onMovedToDisplay callback test"
52876be95c80ea49fbffb963842782c385c806b2 01-Mar-2017 Amith Yamasani <yamasani@google.com> Test battery stats values for realtime

Tests totalRealtime and batteryRealtime values by spending a few seconds
in on-battery state and in off-battery.

Bug: 34233085
Test: cts-tradefed run cts-dev -m CtsIncidentHostTestCases -t
com.android.server.cts.BatteryStatsValidationTest

Change-Id: Icf1cab5ec3d5438529fdfb2875141c5c1d032ae6
ncident/src/com/android/server/cts/BatteryStatsValidationTest.java
47e9aa2f37c0f70c9624859d153b236cacb1d0a6 22-Feb-2017 Bryce Lee <brycelee@google.com> Fix ActivityManagerActivityVisibilityTests#testReorderToFrontBackstack

This CL corrects the expected end condition for the test and inserts
the proper conditional delays.

Fixes: 35485220
Test: cts/hostsidetests/services/activityandwindowmanager/util/run-test CtsServicesHostTestCases android.server.cts.ActivityManagerActivityVisibilityTests#testReorderToFrontBackstack

Change-Id: I94c12b4dbbee8988e71986c2f5468eac1e867c69
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/ActivityManagerActivityVisibilityTests.java
7edad2d6ccb0e4135837c75949bf865960676af9 28-Feb-2017 Edman Anjos <edmanp@google.com> Fix CTS tests for DPM delegation with credentials on managed profile

Bug: 35700256
Test: cts-tradefed run cts-dev --module CtsDevicePolicyManagerTestCases --test com.android.cts.devicepolicy.MixedManagedProfileOwnerTest#testDelegation
Change-Id: Iac32fb0fa5bcadf9e45edf450ed2206bdc17ff53
evicepolicy/src/com/android/cts/devicepolicy/DeviceAndProfileOwnerTest.java
574dc78ef4f9c3d3193586f14213cc4e6c50c82f 31-Jan-2017 Joshua Schwarz <joshuaschwarz@google.com> Increase arbitrary wait for boot.

Bug: 34824902
Change-Id: I35b74cfe06cc145eb7cb94ba0d16f637944da59f
(cherry picked from commit c4dd18f81dca978372a4be0385182d14fbbe84e5)
evicepolicy/src/com/android/cts/devicepolicy/BaseDevicePolicyTest.java
a7f2c3067fdb39888f587e4eec7e6910e51094fa 01-Mar-2017 Julien Desprez <jdesprez@google.com> Merge "IRunTime is implemented in base class now"
00f0f9a4a96c84f13b21a02d448196ba41ef41ba 01-Mar-2017 Calin Juravle <calin@google.com> Merge "Update android.cts.compilation assets" am: d06fb6181f am: ab7ae0bbdf
am: 27c5f6df51

Change-Id: I7e71bc1d47458817c26279b490996df578356c88
27c5f6df513e49916a12517e74a93f719b7fe888 01-Mar-2017 Calin Juravle <calin@google.com> Merge "Update android.cts.compilation assets" am: d06fb6181f
am: ab7ae0bbdf

Change-Id: Ia2118ec5242c713da1203c66ab28e21d8c8096e6
ab7ae0bbdf1f3e9cd9d9df10985482b473270bc0 01-Mar-2017 Calin Juravle <calin@google.com> Merge "Update android.cts.compilation assets"
am: d06fb6181f

Change-Id: I528890646c593cb5275fdffcb116e06b287c4785
d06fb6181f9cc3bf53360b9521bab62c19a84d42 01-Mar-2017 Calin Juravle <calin@google.com> Merge "Update android.cts.compilation assets"
92beb4a08cf56e919395a4736033cf9de3c270ec 01-Mar-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "test instantAppAvailable is set correctly"
1c934b88612c37ee35c1b102c51dcc31abc256b1 01-Mar-2017 Calin Juravle <calin@google.com> Update android.cts.compilation assets

Update the profile to match the current version.

Test: make cts && cts-tradefed run cts -m CtsCompilationTestCases
Bug: 35420088
Change-Id: Ied66fe67a03a9ed2193f3cb73ade854fdb8df62f
ompilation/assets/primary.prof
5e8116ad14762c3c8ebaa1354efbc7ac8993d36a 28-Feb-2017 Andrii Kulian <akulian@google.com> Fix onMovedToDisplay callback test

When activity is moved from virtual display to a primary one,
color mode and density will change in addition to metrics changes.
This CL makes an activity that's being moved also handle those
changes, so it won't be relaunched, but will receive configuration
change and onMovedToDisplay callback.

Bug: 34164473
Test: android.server.cts.ActivityManagerDisplayTests
Test: #testOnMovedToDisplayCallback
Change-Id: Ic9daa6a33a81c98fdb114c09763a5a83cef9b7a4
ervices/activityandwindowmanager/activitymanager/app/AndroidManifest.xml
c2bc987d1dfd35b1488d2ee5d08006046652f743 28-Feb-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Jobs time validation tests"
754ea7b85ec972c1d98c52d9d35b4be475f31276 24-Feb-2017 Amith Yamasani <yamasani@google.com> Jobs time validation tests

Schedule jobs and verify that battery stats reports the
total job duration correctly.

Bug: 34233085
Test: cts-tradefed run cts-dev -m CtsIncidentHostTestCases
Change-Id: I856221a678a92989e72f7cda747abe5b2cb33067
ncident/apps/batterystatsapp/AndroidManifest.xml
ncident/apps/batterystatsapp/src/com/android/server/cts/device/batterystats/BatteryStatsJobDurationTests.java
ncident/apps/batterystatsapp/src/com/android/server/cts/device/batterystats/SimpleJobService.java
ncident/src/com/android/server/cts/BatteryStatsValidationTest.java
ca1f24091b3c2f4afefec5955719c896011183aa 28-Feb-2017 Edman Anjos <edmanp@google.com> Merge "CTS tests for delegation to non installed packages."
e67303319c1d62512616bfff5bba1b0eb5051738 28-Feb-2017 Nick Kralevich <nnk@google.com> Merge "Fix SELinuxHostTest#testNetdDomain failure" am: 31fab96251 am: 6839f8e576
am: 307432fde7

Change-Id: I03e8c713eaa246b653be3dd950e2c13120edef28
307432fde70f5a2008b8a8f2e89542f018b2e6ff 28-Feb-2017 Nick Kralevich <nnk@google.com> Merge "Fix SELinuxHostTest#testNetdDomain failure" am: 31fab96251
am: 6839f8e576

Change-Id: Ib4b1f124aafb1437fce7311c16be32db377dc380
6839f8e5761b365c4c85d2931f134353b9c8cc70 28-Feb-2017 Nick Kralevich <nnk@google.com> Merge "Fix SELinuxHostTest#testNetdDomain failure"
am: 31fab96251

Change-Id: I7c2c77b5621233a51860933b1d1883895d691194
fe443b2180a7171410c74493af80aeae18b5f304 28-Feb-2017 Nick Kralevich <nnk@google.com> Fix SELinuxHostTest#testNetdDomain failure

netd exec()s various iptables commands. Make sure they're allowed so we
don't have CTS failures.

Fixes:

Stack Trace:
=========
junit.framework.AssertionFailedError: Expected 1 process in SELinux
domain "u:r:netd:s0" Found "[label: u:r:netd:s0 user: root pid: 594
ppid: 1 cmd: /system/bin/netd, label: u:r:netd:s0 user: root pid: 968
ppid: 594 cmd: /system/bin/iptables-restore, label: u:r:netd:s0 user:
root pid: 969 ppid: 594 cmd: /system/bin/ip6tables-restore]"
expected:<1> but was:<3>
at junit.framework.Assert.fail(Assert.java:57)
at junit.framework.Assert.failNotEquals(Assert.java:329)
at junit.framework.Assert.assertEquals(Assert.java:78)
at junit.framework.Assert.assertEquals(Assert.java:234)
at junit.framework.TestCase.assertEquals(TestCase.java:401)
at android.security.cts.SELinuxHostTest.assertDomainOne(SELinuxHostTest.java:544)
at android.security.cts.SELinuxHostTest.testNetdDomain(SELinuxHostTest.java:700)

Bug: 34721525
Test: CTS compiles
Change-Id: I2b418affe21e1c6e3f64778fbf0e3b02f95472a6
ecurity/src/android/security/cts/SELinuxHostTest.java
84273343b11ad3c18e717e1247235bfdaf041995 23-Feb-2017 Subash Abhinov Kasiviswanathan <subashab@codeaurora.org> AlwaysOnVpnMultiStageTest: Fix error seen in newer kernels

Failures in testAlwaysOnVpnLockDown was seen specifically in a device
using 4.4 kernel.

Commit 0315e382704817b279e5693dca8ab9d89aa20b3f ("net: Fix behaviour
of unreachable, blackhole and prohibit routes") in kernel changed
the behavior of IPv4 routes to function based on the definition
of ip-route. As a result, we get error EACCESS instead of the fixed
ENETUNREACH for this scenario.

Change-Id: I77d0f48fa14bc3f0598aace63be5ce5976cb300c
(cherry picked from commit 1aae8a29a8e291eda24909dc2247d82e3af4cf0b)
evicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/AlwaysOnVpnMultiStageTest.java
81a5c7b968aa548ae83a1290542c44dca7b63429 28-Feb-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "uninstall packages during setup"
022a978acf3e329e1839d1a2d5e997aa6465ef3a 28-Feb-2017 Andrii Kulian <akulian@google.com> Merge "Update focus switch test when display is removed"
7654c3adedcea55acb75b54744c82a337d58c9b8 28-Feb-2017 Todd Kennedy <toddke@google.com> uninstall packages during setup

Change-Id: Ic8a15a41b38515df73afc649fb01a988505db46a
Fixes: 35249844
Test: cts-tradefed run commandAndExit cts-dev -m CtsAppSecurityHostTestCases -t android.appsecurity.cts.EphemeralTest
ppsecurity/src/android/appsecurity/cts/EphemeralTest.java
c64cf13bb8fba0ddfe96734fa3f651ef19282ac5 27-Feb-2017 Todd Kennedy <toddke@google.com> test instantAppAvailable is set correctly

bug: 34168547
Test: cts-tradefed run commandAndExit cts-dev -m CtsAppSecurityHostTestCases -t android.appsecurity.cts.EphemeralTest
Change-Id: I18b33350595f9b629386f370974f51f9664a7b2c
ppsecurity/test-apps/EphemeralTestApp/EphemeralApp1/src/com/android/cts/ephemeralapp1/ClientTest.java
ppsecurity/test-apps/EphemeralTestApp/NormalApp/src/com/android/cts/normalapp/ClientTest.java
87fe7d8d7a538d3918d322cbfb80176d6810f8a8 27-Feb-2017 Subash Abhinov Kasiviswanathan <subashab@codeaurora.org> Merge "AlwaysOnVpnMultiStageTest: Fix error seen in newer kernels" am: 234fdd455d am: 8f10c30e32
am: 7fe9bcbd44

Change-Id: If7e0460a20a8e3be2aaae548061f96a9b58abe40
7fe9bcbd44ca43a479f6a13196aa7793179d0672 27-Feb-2017 Subash Abhinov Kasiviswanathan <subashab@codeaurora.org> Merge "AlwaysOnVpnMultiStageTest: Fix error seen in newer kernels" am: 234fdd455d
am: 8f10c30e32

Change-Id: Ic3c850f6ceb7262b1731dee075e163717a6394da
8f10c30e326cf12eb51ed0defb931ffd050761c7 27-Feb-2017 Subash Abhinov Kasiviswanathan <subashab@codeaurora.org> Merge "AlwaysOnVpnMultiStageTest: Fix error seen in newer kernels"
am: 234fdd455d

Change-Id: If79cde67c5a5c051cd0e648a4354544db0647b97
40c6293967558f5b509eb6f308f0e4130768e3d2 27-Feb-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "MOAR GRAPHICSSTATS TESTS"
d5e72c88757285a727b087b62f40da77779b4676 25-Feb-2017 John Reck <jreck@google.com> MOAR GRAPHICSSTATS TESTS

Test some jank stuff & test daveys
assert less janky in regular drawing
take a completely blind guess at preventing
flakiness from log rotation

Bug: 34227724
Test: this
Change-Id: I8937b384fb0b251350388521ae9d7c11d1ab7cf9
ncident/apps/graphicsstatsapp/src/com/android/server/cts/device/graphicsstats/DrawFramesActivity.java
ncident/apps/graphicsstatsapp/src/com/android/server/cts/device/graphicsstats/SimpleDrawFrameTests.java
ncident/src/com/android/server/cts/GraphicsStatsValidationTest.java
1aae8a29a8e291eda24909dc2247d82e3af4cf0b 23-Feb-2017 Subash Abhinov Kasiviswanathan <subashab@codeaurora.org> AlwaysOnVpnMultiStageTest: Fix error seen in newer kernels

Failures in testAlwaysOnVpnLockDown was seen specifically in a device
using 4.4 kernel.

Commit 0315e382704817b279e5693dca8ab9d89aa20b3f ("net: Fix behaviour
of unreachable, blackhole and prohibit routes") in kernel changed
the behavior of IPv4 routes to function based on the definition
of ip-route. As a result, we get error EACCESS instead of the fixed
ENETUNREACH for this scenario.

Change-Id: I77d0f48fa14bc3f0598aace63be5ce5976cb300c
evicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/AlwaysOnVpnMultiStageTest.java
f2daf3523a4d1b24c96ecf8503ab5dbd5171e6a9 24-Feb-2017 Netta Peterbursky <nettap@google.com> Merge "CTS test for protobufferized PowerManager dumpsys"
e78b78d676b13019c60981f395ddc8db0c8d76ae 24-Feb-2017 Netta Peterbursky <nettap@google.com> Merge "CTS test for protobufferized PackageManager dumpsys"
ac86021e754df7a8a1273dfbe913fdcb480db5d2 24-Feb-2017 Edman Anjos <edmanp@google.com> CTS tests for delegation to non installed packages.

Bug: 35234284
Test: cts-tradefed run cts-dev --module CtsDevicePolicyManagerTestCases --test com.android.cts.devicepolicy.MixedDeviceOwnerTest#testDelegation
Test: cts-tradefed run cts-dev --module CtsDevicePolicyManagerTestCases --test com.android.cts.devicepolicy.ProfileOwnerTestApi23#testDelegatedCertInstaller
Change-Id: I99def95c44275e8e4bbff6cd18f53a4a0b874410
evicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/DelegatedCertInstallerTest.java
evicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/DelegationTest.java
evicepolicy/src/com/android/cts/devicepolicy/DeviceAndProfileOwnerTest.java
f0ed623853e0885733c78e74afc7aafeefcd24c4 23-Feb-2017 Todd Kennedy <toddke@google.com> New test for starting instant apps

Test the ability for a normal app to start an instant app
using a VIEW/BROWSABLE intent.

Test: cts-tradefed run commandAndExit cts-dev -m CtsAppSecurityHostTestCases -t android.appsecurity.cts.EphemeralTest
Bug: 25119046
Change-Id: I530a1b35044f78420e820fff27e8613b2a77bced
ppsecurity/test-apps/EphemeralTestApp/EphemeralApp1/src/com/android/cts/ephemeralapp1/ClientTest.java
ppsecurity/test-apps/EphemeralTestApp/NormalApp/src/com/android/cts/normalapp/ClientTest.java
6b81eb1500fce8a967aac67994a82023bf41e1ba 23-Feb-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Initial set of graphicsstats tests"
4811530a61a57785c62801a7bddce5959a328c3d 23-Feb-2017 John Reck <jreck@google.com> Initial set of graphicsstats tests

Bug: 34227724
Test: ran the tests, they passed
Change-Id: Icdc319301f07a3b12375dbab5ad080624a53d7b7
ncident/apps/graphicsstatsapp/Android.mk
ncident/apps/graphicsstatsapp/AndroidManifest.xml
ncident/apps/graphicsstatsapp/src/com/android/server/cts/device/graphicsstats/DrawFramesActivity.java
ncident/apps/graphicsstatsapp/src/com/android/server/cts/device/graphicsstats/SimpleDrawFrameTests.java
ncident/src/com/android/server/cts/GraphicsStatsValidationTest.java
2e9cdcb9ce94c3e8eda1fce30e70fc15ac5b6aeb 23-Feb-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Batterystats validation tests - wifi scans"
92b403abec6a36b1f3e9cdebf29b15a9401a86c9 01-Feb-2017 Arthur Hsu <arthurhsu@google.com> Skip tests using dock if split window unsupported.

Tests affected:
ActivityManagerActivityVisiblityTests#
testFinishActivityInNonFocusedStack
testTranslucentActivityOverDockedStack
ActivityManagerAppConfigurationTests#
testConfigurationUpdatesWhenResizedFromFullscreen
testConfigurationUpdatesWhenResizedFromDockedStack
testConfigurationUpdatesWhenRotatingWhileDocked
testConfigurationUpdatesWhenRotatingToSideFromDocked
testSameConfigurationFullSplitFullRelaunch
testSameConfigurationFullSplitFullNoRelaunch
testSameConfigurationSplitFullSplitRelaunch
testSameConfigurationSplitFullSplitNoRelaunch
ActivityManagerManifestLayoutTests#testMinimalSizeDocked
ActivityManagerReplaceWindowTests

Bug: 33456072
Test: cts -m CtsServicesHostTestCases --test android.server.cts.<test afftected>

Change-Id: Id20d1fb6d3e3108f11e1562d265045bce8e6d2cc
(Reland skipped merge 3ff85c8e425234d5f69560c7d3f158b1718a35f0)
ervices/activitymanager/src/android/server/cts/ActivityManagerActivityVisiblityTests.java
ervices/activitymanager/src/android/server/cts/ActivityManagerAppConfigurationTests.java
ervices/activitymanager/src/android/server/cts/ActivityManagerManifestLayoutTests.java
ervices/activitymanager/src/android/server/cts/ActivityManagerReplaceWindowTests.java
65f5af6f0e02845efe0c94d8e8ec51922678bee6 23-Feb-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Verify cancelling ringtone sync keeps old setting"
659f081a961a922fcc09cad2cf501294db00880e 21-Feb-2017 Robin Lee <rgl@google.com> Verify cancelling ringtone sync keeps old setting

Instead of keeping the parent setting as was previous behaviour.

Test: RingtoneSyncTest
Bug: 34730524
Change-Id: I2945f57ea9f04dc11df93b5d95d1d98d91b37a37
evicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/RingtoneSyncTest.java
5891fa23aafd837a5cc364b091cd776a8d2655b4 23-Feb-2017 Winson Chung <winsonc@google.com> Merge "DO NOT MERGE Disable CTS test using private attribute." into nyc-mr2-dev
am: 1d221507d8

Change-Id: I9bf6c7b7b95c49ae315db8baf33febf14d8ffb56
1d221507d8a6c479c3f4344932ffc16d4c3223e7 23-Feb-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "DO NOT MERGE Disable CTS test using private attribute." into nyc-mr2-dev
cc44ee6e5c553fd4420ed57839bfa1f9b26c3a1d 22-Feb-2017 Treehugger Robot <treehugger-gerrit@google.com> Merge "Revert "DO NOT MERGE: test app must be streamed"" into nougat-cts-dev
95f216eb0bfdfe93b9d8eeedffd55568519ce1e2 22-Feb-2017 Tina Zhou <tinazh@google.com> Revert "DO NOT MERGE: test app must be streamed"

This reverts commit 3c50012e35bdcf66a39aa3e333cb416a71b5258a.

Change-Id: I71a9fd75c93482add962a75d38b087510739f917
ppsecurity/src/android/appsecurity/cts/AppSecurityTests.java
86eda00193f7997e1f7848b0e95f8364734f87a9 22-Feb-2017 Winson Chung <winsonc@google.com> DO NOT MERGE Disable CTS test using private attribute.

Bug: 35314835
Test: android.server.cts.ActivityManagerPinnedStackTests
Change-Id: I76f26668fbf5dc2ffa686ae6a2040ef1a604b4cc
ervices/activitymanager/src/android/server/cts/ActivityManagerPinnedStackTests.java
3475d09171224073c2f85fe3c8bb329023ff84a8 22-Feb-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Add test to ensure assistant stack does not occlude other stacks."
8b886dc1d42ca9925e76f739cbfc8a2ab0eeb9ea 22-Feb-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Adding tests for assistant stack."
f1cffff80e79f06e091ab859fb63e59fad71e64c 22-Feb-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Test that PiP has right bounds when launching in forced orientation."
92ceeaead17639b18ba165a1bea4d1dc658f054f 22-Feb-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Add test to ensure single configuration change during PiP transition."
36caa8e18cf3aaa4efdcf3f6a28ed58656ec09a9 08-Feb-2017 Netta P <nettap@google.com> CTS test for protobufferized PowerManager dumpsys

Bug: 34230125
Test: cts-tradefed run cts-dev -m CtsIncidentHostTestCase -t com.android.server.cts.PowerIncidentTest
Change-Id: I3c977cc32f936483e524c2e6cebb8b5944727fcf
ncident/src/com/android/server/cts/PowerIncidentTest.java
5b65ac5308fe74836f2db775b64742c93da15a52 21-Feb-2017 Winson Chung <winsonc@google.com> Add test to ensure assistant stack does not occlude other stacks.

- This applies when the assistant stack has a translucent activity.

Bug: 35363819
Test: android.server.cts.ActivityManagerAssistantStackTests
Test: #testTranslucentAssistantActivityStackVisibility
Change-Id: I07d51c382e1df88d7fdf41890e9bbefc710970ac
ervices/activityandwindowmanager/activitymanager/app/AndroidManifest.xml
ervices/activityandwindowmanager/activitymanager/app/res/layout/assistant.xml
ervices/activityandwindowmanager/activitymanager/app/res/layout/main.xml
ervices/activityandwindowmanager/activitymanager/app/src/android/server/cts/AssistantActivity.java
ervices/activityandwindowmanager/activitymanager/app/src/android/server/cts/LaunchAssistantActivityIntoAssistantStack.java
ervices/activityandwindowmanager/activitymanager/app/src/android/server/cts/TranslucentAssistantActivity.java
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/ActivityManagerAssistantStackTests.java
d7490f1361ab3aa54eda4e2be500364252f6485d 05-Jan-2017 Winson Chung <winsonc@google.com> Adding tests for assistant stack.

Bug: 30999386
Test: android.server.cts.ActivityManagerAssistantStackTests

Change-Id: Ife68f9029ef7cfc8565f1b4ed9e205236f3caded
ervices/activityandwindowmanager/activitymanager/app/AndroidManifest.xml
ervices/activityandwindowmanager/activitymanager/app/res/xml/interaction_service.xml
ervices/activityandwindowmanager/activitymanager/app/src/android/server/cts/AssistantActivity.java
ervices/activityandwindowmanager/activitymanager/app/src/android/server/cts/AssistantVoiceInteractionService.java
ervices/activityandwindowmanager/activitymanager/app/src/android/server/cts/AssistantVoiceInteractionSessionService.java
ervices/activityandwindowmanager/activitymanager/app/src/android/server/cts/LaunchAssistantActivityFromSession.java
ervices/activityandwindowmanager/activitymanager/app/src/android/server/cts/LaunchAssistantActivityIntoAssistantStack.java
ervices/activityandwindowmanager/activitymanager/app/src/android/server/cts/PipActivity.java
ervices/activityandwindowmanager/activitymanager/app/src/android/server/cts/TestActivity.java
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/ActivityManagerAssistantStackTests.java
ervices/activityandwindowmanager/util/src/android/server/cts/ActivityManagerTestBase.java
ddf240023954813eb42d94242b88741eef5f801b 17-Feb-2017 Winson Chung <winsonc@google.com> Test that PiP has right bounds when launching in forced orientation.

Bug: 35402420
Test: android.server.cts.ActivityManagerPinnedStackTests
Test: #testEnterPipToOtherOrientation
Change-Id: I0f76aa971ebc6e228219ef23a41e77f8b6908a6a
ervices/activityandwindowmanager/activitymanager/app/src/android/server/cts/PipActivity.java
ervices/activityandwindowmanager/activitymanager/app/src/android/server/cts/TestActivity.java
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/ActivityManagerPinnedStackTests.java
03844b088b140261aeec9297aa3b5557b8daae17 13-Feb-2017 Winson Chung <winsonc@google.com> Add test to ensure single configuration change during PiP transition.

Bug: 33779483
Test: android.server.cts.ActivityManagerPinnedStackTests
Test: #testSingleConfigurationChangeDuringTransition
Change-Id: I4ab29860c12b7aef3e436aa354a7c3e0b5a78863
ervices/activityandwindowmanager/activitymanager/app/src/android/server/cts/PipActivity.java
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/ActivityManagerPinnedStackTests.java
d19bd3ea40e90b18a3666562ba5ad885d17f81fd 22-Feb-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Replace DPM.resetPassword with hostside setup steps"
5a90756784e288f4092cd94e461d5d264daaa346 21-Feb-2017 Rubin Xu <rubinxu@google.com> Replace DPM.resetPassword with hostside setup steps

resetPassword() is no longer available to new DPCs, so rely on
hostside ADB commands to set/clear lockscreen password instead.

Test: cts-tradefed run cts-dev -m CtsDevicePolicyManagerTestCases -t com.android.cts.devicepolicy.MixedDeviceOwnerTest#testDelegatedCertInstaller
Test: cts-tradefed run cts-dev -m CtsDevicePolicyManagerTestCases -t com.android.cts.devicepolicy.MixedDeviceOwnerTest#testDelegation
Test: cts-tradefed run cts-dev -m CtsDevicePolicyManagerTestCases -t com.android.cts.devicepolicy.DeviceOwnerTest#testKeyManagement
Test: cts-tradefed run cts-dev -m CtsDevicePolicyManagerTestCases -t com.android.cts.devicepolicy.ManagedProfileTest#testLockNowWithKeyEviction
Test: cts-tradefed run cts-dev -m CtsDevicePolicyManagerTestCases -t com.android.cts.devicepolicy.ManagedProfileTest#testTrustAgentInfo
Bug: 35417075
Change-Id: I32bb4ee6e57ded77019fb22ee1b2e70f54a748d6
evicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/ResetPasswordHelper.java
evicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/KeyManagementTest.java
evicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/LockNowTest.java
evicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/TrustAgentInfoTest.java
evicepolicy/src/com/android/cts/devicepolicy/BaseDevicePolicyTest.java
evicepolicy/src/com/android/cts/devicepolicy/DeviceAndProfileOwnerTest.java
evicepolicy/src/com/android/cts/devicepolicy/DeviceOwnerTest.java
evicepolicy/src/com/android/cts/devicepolicy/ManagedProfileTest.java
417eb78a15a6aaa4a25c899598b3e9a576d5b283 22-Feb-2017 Tony Mak <tonymak@google.com> Missing userid in appops command

Fix: 35654279

Test: cts-tradefed run cts --module DevicePolicyManager --test com.android.cts.devicepolicy.MixedManagedProfileOwnerTest#testPackageInstallUserRestrictions

Change-Id: If2f6c4152e7de3fb995c97bc872df60a9a848e62
evicepolicy/src/com/android/cts/devicepolicy/DeviceAndProfileOwnerTest.java
8dda6e8488fa2a7d9f2133d0c0856b0f85c369b5 22-Feb-2017 Julien Desprez <jdesprez@google.com> IRunTime is implemented in base class now

Re-evaluate the runtime hint of CtsThemeHostTestCases.

Test: unit tests
Bug: 30449039
Change-Id: Ifd2d474609f626cf77473fc93829ec10a8ea158b
heme/AndroidTest.xml
8db8333872c891b31be8646f805d122b102e324d 22-Feb-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Update storaged CTS test"
9e2fe16372e461ce2e2d31d0fee35273abdbe0cf 22-Feb-2017 Shuichi.Noguchi <Shuichi.Noguchi@jp.sony.com> Merge "Merge "Merge "Add string resources to support GB_en" into nougat-cts-dev am: fec6bc662a" into nougat-mr1-cts-dev am: 6b8aeb3eaf" am: 5c744ffb93 am: e0a3e32cb3
am: 244d5a658b

Change-Id: I82f8360c55ac890fb36ec87f9927978ea1b00d3a
901037b6e2c89fbc636082b10712d88979451b58 22-Feb-2017 Shuichi.Noguchi <Shuichi.Noguchi@jp.sony.com> Merge "Merge "Add string resources to support GB_en" into nougat-cts-dev am: fec6bc662a" into nougat-mr1-cts-dev am: 6b8aeb3eaf am: e55cc52840
am: 49d6c5c0b6

Change-Id: I2995c5dc121a33f125026a6cfe045fc96bc43319
e0a3e32cb365d0456fdac7248d7aecc9147fe2d2 22-Feb-2017 Shuichi.Noguchi <Shuichi.Noguchi@jp.sony.com> Merge "Merge "Merge "Add string resources to support GB_en" into nougat-cts-dev am: fec6bc662a" into nougat-mr1-cts-dev am: 6b8aeb3eaf"
am: 5c744ffb93

Change-Id: Ib461779c6bd52683c26d1532d36199c2661825f1
e55cc52840350321234336f7c1fb2c15098b3659 22-Feb-2017 Shuichi.Noguchi <Shuichi.Noguchi@jp.sony.com> Merge "Merge "Add string resources to support GB_en" into nougat-cts-dev am: fec6bc662a" into nougat-mr1-cts-dev
am: 6b8aeb3eaf

Change-Id: I4ae81934368699749de4aa9922e7de9d55a18b7b
53a57cc00073356bf84a01c6edd93416dcdf2ff3 22-Feb-2017 Shuichi.Noguchi <Shuichi.Noguchi@jp.sony.com> Merge "Add string resources to support GB_en" into nougat-cts-dev am: fec6bc662a
am: a33ac38eb0

Change-Id: Ibe944135623aff91e65a97e33020b4d12e1bc148
a33ac38eb0e5dd265752f358e22fff0099189dd4 22-Feb-2017 Shuichi.Noguchi <Shuichi.Noguchi@jp.sony.com> Merge "Add string resources to support GB_en" into nougat-cts-dev
am: fec6bc662a

Change-Id: Ibb141c091174e3f9e2ca4ebffcce5a9a3f5f2711
c4bc76a322910b58ecc197830258cb8fef9530fa 22-Feb-2017 Shuichi.Noguchi <Shuichi.Noguchi@jp.sony.com> Merge "Merge "Add string resources to support GB_en" into nougat-cts-dev am: fec6bc662a" into nougat-mr1-cts-dev
am: 6b8aeb3eaf

Change-Id: I1ad82a1d5c62e189826787a00b6221850810b09a
6b6c17507dca9fe5b841151d201e805898e546db 22-Feb-2017 Shuichi.Noguchi <Shuichi.Noguchi@jp.sony.com> Merge "Add string resources to support GB_en" into nougat-cts-dev
am: fec6bc662a

Change-Id: Id6300408585146946c96cebd12af18a63f2197a9
a33e1a75cf0fa8f29f85125c47aa00d32117eb05 21-Feb-2017 Jin Qian <jinqian@google.com> Update storaged CTS test

Test: cts-tradefed run cts -m CtsDumpsysHostTestCases -t android.dumpsys.cts.StoragedDumpsysTest
Bug: 34845096
Change-Id: Idbe4f817f4644d171ed381bacebcb6198ace355a
umpsys/src/android/dumpsys/cts/StoragedDumpsysTest.java
131716a04ea9fc3f6ef774b2c39a5aa32a9dd7d5 22-Feb-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Relax the check of network availability in CtsHostsideNetworkTests."
d283b9fae895b86255c8807d9d7e3fc85fbbf7eb 21-Feb-2017 Sudheer Shanka <sudheersai@google.com> Relax the check of network availability in CtsHostsideNetworkTests.

Bug: 35523062
Test: cts-tradefed run singleCommand cts-dev --module CtsHostsideNetworkTests -t \
com.android.cts.net.HostsideRestrictBackgroundNetworkTests

Change-Id: I6c2df38fd7282a0cb9861afbb624018297d400fd
et/app/src/com/android/cts/net/hostside/AbstractRestrictBackgroundNetworkTestCase.java
7d36e01b3ee03de41e220d143ae604eb445da2fe 21-Feb-2017 Jeff Sharkey <jsharkey@google.com> Merge "Follow storage API refactoring."
ff2290cca610ed88655e8753a4df76b213207376 21-Feb-2017 Luis Hector Chavez <lhchavez@google.com> Merge "Better support test for DirectBootHostTest" into nougat-mr1-cts-dev am: b1f21857be am: 70dcd5800c
am: f20f35cb5e

Change-Id: Ib03682f7af89a36b9b5910a80ee48a8aa9e2923c
70dcd5800caf8a20090e451083bc387a32bdcb6c 21-Feb-2017 Luis Hector Chavez <lhchavez@google.com> Merge "Better support test for DirectBootHostTest" into nougat-mr1-cts-dev
am: b1f21857be

Change-Id: I538e1b4a77372b9626f69cb7f66df77bd787e6c8
3d279bd8b184385cf602da2798bfde61cdf37680 21-Feb-2017 Bjoern Johansson <bjoernj@google.com> Merge "resolve merge conflicts of a2989b5078 to nougat-mr1-cts-dev" into nougat-mr1-cts-dev
am: 4acb742c40

Change-Id: I06e42332244bdec51588491d73a0f78950e546a8
33d0dafc262b3f1d4e637d89a643051c09642a88 21-Feb-2017 Jeff Sharkey <jsharkey@android.com> Follow storage API refactoring.

Test: cts-tradefed run commandAndExit cts-dev -m CtsAppSecurityHostTestCases -t android.appsecurity.cts.StorageHostTest
Bug: 34690590
Change-Id: Id2838da1a07f73067d5fbd2ded8eb332d7c9c1be
ppsecurity/test-apps/StorageApp/src/com/android/cts/storageapp/StorageTest.java
68dfc8b2022cbc4cc4863f265c90a6fbbb91dd93 21-Feb-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Fix Keyguard CTS"
9f80b548f78e649d6cb166603cc12166daf150ee 21-Feb-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Move resetPasswordTest to pre-O DPC package"
41a4492ccc756f7dcde6a16c6e5184195ebc9ff3 21-Feb-2017 Ricky Wai <rickywai@google.com> Merge "Set cts testCrossProfileWidgets provider idle whitelisted"
e8ae40ee26afa335e88e7fea0acd6e49ad3c3f8f 21-Feb-2017 Ricky Wai <rickywai@google.com> Merge "Fix MixedDeviceOwnerTest#testPackageInstallUserRestrictions fails"
5c18b9727bc2e9ce91a948a677be33aaeb9c4214 20-Feb-2017 Rubin Xu <rubinxu@google.com> Move resetPasswordTest to pre-O DPC package

DPM.resetPassword is being deprecated in O and only DPC who targets SDK level
below O can still call it. As a result, move the CTS test to its own DPC package

Also try to clear device lockscreen password in tearDown() in case test fails.

Bug: 35417075
Test: cts-tradefed run cts-dev -m CtsDevicePolicyManagerTestCases -t com.android.cts.devicepolicy.MixedProfileOwnerTestApi25
Test: cts-tradefed run cts-dev -m CtsDevicePolicyManagerTestCases -t com.android.cts.devicepolicy.MixedDeviceOwnerTestApi25
Test: cts-tradefed run cts-dev -m CtsDevicePolicyManagerTestCases -t com.android.cts.devicepolicy.MixedManagedProfileOwnerTestApi25
Change-Id: I482f84587dc567410dd6df5e61fe94ec29dadaf5
evicepolicy/app/DeviceAndProfileOwner/Android.mk
evicepolicy/app/DeviceAndProfileOwner/api25/Android.mk
evicepolicy/app/DeviceAndProfileOwner/api25/AndroidManifest.xml
evicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/ResetPasswordTest.java
evicepolicy/src/com/android/cts/devicepolicy/DeviceAndProfileOwnerTest.java
evicepolicy/src/com/android/cts/devicepolicy/DeviceAndProfileOwnerTestApi25.java
evicepolicy/src/com/android/cts/devicepolicy/MixedDeviceOwnerTestApi25.java
evicepolicy/src/com/android/cts/devicepolicy/MixedManagedProfileOwnerTest.java
evicepolicy/src/com/android/cts/devicepolicy/MixedManagedProfileOwnerTestApi25.java
evicepolicy/src/com/android/cts/devicepolicy/MixedProfileOwnerTestApi25.java
8c1907e78ce8274dacf5eea4d034d6028594ac02 21-Feb-2017 Jorim Jaggi <jjaggi@google.com> Fix Keyguard CTS

- Update tests to new behavior
- Fix timing issue with new animations..*sigh*

Bug: 33645392
Change-Id: I8ec308793e04a78db66ade9588d03969362d687b
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/KeyguardLockedTests.java
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/KeyguardTests.java
ervices/activityandwindowmanager/util/src/android/server/cts/ActivityManagerTestBase.java
ed0e9f7a8adff7a04b5c25cea97e356bfd375266 21-Feb-2017 Shuichi.Noguchi <Shuichi.Noguchi@jp.sony.com> Add string resources to support GB_en

Change findByText("Permissions")) to use string resouces instead of
hard coding for no US_en SKU

Bug: 35230866
Change-Id: I2251fc7d216bbcfc4d320e2b3b8c9171e6e28112
ppsecurity/test-apps/UsePermissionApp22/res/values-en-rGB/strings.xml
ppsecurity/test-apps/UsePermissionApp22/res/values/strings.xml
ppsecurity/test-apps/UsePermissionApp23/res/values-en-rGB/strings.xml
ppsecurity/test-apps/UsePermissionApp23/res/values/strings.xml
ppsecurity/test-apps/UsePermissionApp23/src/com/android/cts/usepermission/BasePermissionsTest.java
ppsecurity/test-apps/UsePermissionApp24/res/values-en-rGB/strings.xml
ppsecurity/test-apps/UsePermissionApp24/res/values/strings.xml
32aeaf5fe4e6b365da190a97b22d5245419802cc 20-Feb-2017 Ricky Wai <rickywai@google.com> Set cts testCrossProfileWidgets provider idle whitelisted

Test: testCrossProfileWidgets pass
Bug: 35431789
Change-Id: I29e1cf79e67df0c02907e4d599321ab5df8a18ad
evicepolicy/src/com/android/cts/devicepolicy/ManagedProfileTest.java
7b228b1ddf1705a0daa3fd4927a61cf87cec5c81 20-Feb-2017 Ricky Wai <rickywai@google.com> Fix MixedDeviceOwnerTest#testPackageInstallUserRestrictions fails

Test: testPackageInstallUserRestrictions pass now
Bug: 35419889
Change-Id: Iaf3649b4de896568d28c2331f290aafd2fe817ab
evicepolicy/src/com/android/cts/devicepolicy/DeviceAndProfileOwnerTest.java
939ff4db655c7142ca5bf6dd9b1afd785df41a01 17-Feb-2017 Rubin Xu <rubinxu@google.com> Dismiss keyguard durint tearDown()

In case some test case fails, dismiss the residue keyguard asking for
the now non-existent device lock.

Also add a small timeout between unlocking and entering credentials to
accommodate the keyguard animation, hopefully making tests less flaky.

Bug: 35121157
Test: cts-tradefed run cts-dev -m CtsServicesHostTestCases --test android.server.cts.KeyguardLockedTests
Change-Id: I70ccea643b2854c20fb2aa8ab0582a8629ff5502
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/KeyguardLockedTests.java
ervices/activityandwindowmanager/util/src/android/server/cts/ActivityManagerTestBase.java
8021ab30f51cc8db2ba994eb741d5d17e59b9848 18-Feb-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "New CTS tests"
661e9379de67a8e594f59fb6e2e3e470db10a6d2 13-Feb-2017 Netta P <nettap@google.com> CTS test for protobufferized PackageManager dumpsys

Bug: 34230809
Test: cts-tradefed run cts-dev -m CtsIncidentHostTestCase -t com.android.server.cts.PackageIncidentTest
Change-Id: I791843a9e8d98fd8c7e61011b6d0a4b867c9bc3b
ncident/src/com/android/server/cts/PackageIncidentTest.java
a21f6dfb5608c4935061a498868d9aba0ff9bd6a 17-Feb-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Test alert window process importance when permission is revoked"
39bf395161160f99f7eee57cd96378a6aca613f1 17-Feb-2017 Todd Kennedy <toddke@google.com> New CTS tests

Resolving intents with a specified component goes down a different
path than regular resolution. For Instant Apps, that meant that
sometimes the Instant App was not able to resolve it's own
activities. Added some new CTS tests to verify that this works.

Test: cts-tradefed run commandAndExit cts-dev -m CtsAppSecurityHostTestCases -t android.appsecurity.cts.EphemeralTest
Change-Id: I5a57dd09452e493ad5710630803884701d2fba34
ppsecurity/test-apps/EphemeralTestApp/EphemeralApp1/AndroidManifest.xml
ppsecurity/test-apps/EphemeralTestApp/EphemeralApp1/src/com/android/cts/ephemeralapp1/ClientTest.java
ppsecurity/test-apps/EphemeralTestApp/EphemeralApp1/src/com/android/cts/ephemeralapp1/EphemeralActivity2.java
ppsecurity/test-apps/EphemeralTestApp/EphemeralApp1/src/com/android/cts/ephemeralapp1/EphemeralActivity3.java
303b80ed276aebff0fe80ce1ac61c7fe45b9481f 17-Feb-2017 sanshan zhang <sanshan.zhang@nxp.com> Merge "make sure UI displayed after click 'Permissions'" am: 63b21b1962 am: 0325059d84
am: 5e7e730ca6

Change-Id: I7c4da5476f116d4245b18824e0ffda0ed2b624a5
5e7e730ca65ae34dc2a77d7623f0188022229cd8 17-Feb-2017 sanshan zhang <sanshan.zhang@nxp.com> Merge "make sure UI displayed after click 'Permissions'" am: 63b21b1962
am: 0325059d84

Change-Id: I5d6207f5667aec7bc86c9d8b8ca830959fc65593
63b21b19625ae995581595986cd45c28f2a34dfc 17-Feb-2017 Treehugger Robot <treehugger-gerrit@google.com> Merge "make sure UI displayed after click 'Permissions'"
5985f3cf4236a92dbf13ec8e0d03703e15f1dcab 17-Feb-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Tests for checking whether the default IME was set by the DO/PO"
84ff422c230e3834b0c2ca9f562e58419db669f3 17-Feb-2017 Andrii Kulian <akulian@google.com> Merge "Test onMovedToDisplay callback"
2fc679792807ca9255bc5b8bda9059d47eb5d6f8 09-Feb-2017 Yorke Lee <yorkelee@google.com> Fix for CTS testNonResizeableActivityNotLaunchedToFreeform

Instead of enforcing that non-resizable activities are placed
on the fullscreen stack, simply check that the bounds are fullscreen
instead. This allows devices that don't support the fullscreen stack
to pass the test yet still ensures that non-resizable activities
always get the full display.

Bug: 35323487
Test: run cts-dev -d -m CtsServicesHostTestCases -t
android.server.cts.ActivityManagerFreeformStackTests

Change-Id: I9f5887f63e74e6326eef6f8d4da51ab64cdfb527
ervices/activitymanager/src/android/server/cts/ActivityManagerFreeformStackTests.java
6e632e582bd62ed64251eee61dc5c1394784b641 16-Feb-2017 Wale Ogunwale <ogunwale@google.com> Test alert window process importance when permission is revoked

Bug: 33256752
Test: cts/.../run-test CtsAppTestCases android.app.cts.AlertWindowsTests
Change-Id: I24df2e0a5f89cf28dec8d426bf6f4045e89af5e1
ervices/activityandwindowmanager/windowmanager/alertwindowapp/AndroidManifest.xml
ervices/activityandwindowmanager/windowmanager/alertwindowappsdk25/AndroidManifest.xml
2acd32bd34066d9c0dc02404a71a4c5f766894a2 17-Feb-2017 Luis Hector Chavez <lhchavez@google.com> Merge "Better support test for DirectBootHostTest" am: 51bad2de0c am: 5025a429ae am: eed9c21c7e
am: 3171e9d539

Change-Id: I0aade9aa76417b1a80bb9dacbae122a04273158a
3171e9d5393c41167e7e2d4fb62bcb78ed280276 17-Feb-2017 Luis Hector Chavez <lhchavez@google.com> Merge "Better support test for DirectBootHostTest" am: 51bad2de0c am: 5025a429ae
am: eed9c21c7e

Change-Id: I8741db04a86447733a08286b48af0ba9a4a9f4c6
eed9c21c7edb137c917618b73834e8c45e810fe6 17-Feb-2017 Luis Hector Chavez <lhchavez@google.com> Merge "Better support test for DirectBootHostTest" am: 51bad2de0c
am: 5025a429ae

Change-Id: I8801389fddd392aa17cbf637ccc799205bac4485
51bad2de0c2e30e2f835f122e11a7ee5cd8f9319 17-Feb-2017 Treehugger Robot <treehugger-gerrit@google.com> Merge "Better support test for DirectBootHostTest"
b1f21857becc14ee477f7884087b72174c27543d 17-Feb-2017 Treehugger Robot <treehugger-gerrit@google.com> Merge "Better support test for DirectBootHostTest" into nougat-mr1-cts-dev
ebd1326ce738af4a6cd7ec55b64b7e74a14e7ba6 17-Feb-2017 Yorke Lee <yorkelee@google.com> Merge "Fix for CTS testNonResizeableActivityNotLaunchedToFreeform"
e92e61fd6aeae50704e558ad948a2210c9f29b9b 17-Feb-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Improve error output when test fails"
0a800f683cd853a731972e6f62efc0a199d6f800 17-Feb-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Skip backup tests if backup feature not present"
c89409af533292c0d404e960457b6a933e486c5d 17-Feb-2017 sanshan zhang <sanshan.zhang@nxp.com> make sure UI displayed after click 'Permissions'

UI thread may have not finish drawing 'Permissions' ui in low-performance device.
So findByText can't find the permissionLabel.

This patch make UI displayed after click 'Permissions'.

Signed-off-by: sanshan zhang <sanshan.zhang@nxp.com>
Change-Id: I9eb04436e6bda8a7f3194ab9197e51cbd41bb653
ppsecurity/test-apps/UsePermissionApp23/src/com/android/cts/usepermission/BasePermissionsTest.java
2f858bf2f3070086c155892312f187870de87f7c 17-Feb-2017 Esteban Talavera <etalavera@google.com> Improve error output when test fails

That way we can see the methods that made the test fail from
the stack trace, rather than having to look at the logs

Bug: 35432611
Test: cts-tradefed run cts-dev --module DevicePolicyManager --test com.android.cts.devicepolicy.ManagedProfileTest#testParentProfileApiDisabled
Change-Id: I07b169569bc66460d0094d51cf76959af96cb3d1
evicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/ParentProfileTest.java
e5976d88d9c3e78e8ef43dca716db50fee995818 17-Feb-2017 Eugene Susla <eugenesusla@google.com> Merge "Add test case for settings proto dumping."
7002c5f6d2c405aa86e22431b140bacfe858d93d 17-Feb-2017 Andrii Kulian <akulian@google.com> Update focus switch test when display is removed

This updates the test that ensures that activities from
a secondary screen are moved to the primary display on
display removal. Now all activities are moved to the
fullscreen stack, as it is guaranteed to be a valid launch
stack for any activity.
Also we now ensure that task bounds are resized correctly
when moved to fullscreen stack, as the device may be in
split-screen mode.

Bug: 34263289
Bug: 35258038
Test: android.server.cts.ActivityManagerDisplayTests
Test: #testStackFocusSwitchOnDisplayRemoved
Test: #testStackFocusSwitchOnDisplayRemoved2
Change-Id: I753f39daba7bd4a1a6c122a9b33a0516c06230ab
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/ActivityManagerDisplayTests.java
378860f8867fb5f7043a06547a6c4251c77932fd 17-Feb-2017 Bjoern Johansson <bjoernj@google.com> Merge "resolve merge conflicts of 78054372b0 to nyc-mr1-dev" into nyc-mr1-dev am: a888e825f7 am: 16fe17e138 am: 5717d105fb
am: 01b3ac8fd7

Change-Id: I24c8e3105c28dcae49de0ec98ff003662421cf3e
01b3ac8fd7da6ebfe2adc78a53ed0973238d5223 17-Feb-2017 Bjoern Johansson <bjoernj@google.com> Merge "resolve merge conflicts of 78054372b0 to nyc-mr1-dev" into nyc-mr1-dev am: a888e825f7 am: 16fe17e138
am: 5717d105fb

Change-Id: Ibb393dbff3b7c1534958312c4bcd31ddb155dbde
1f671a2faebd56728abf43fc130f30cbecc8bfa2 17-Feb-2017 Bjoern Johansson <bjoernj@google.com> Merge "resolve merge conflicts of 78054372b0 to nyc-mr1-dev" into nyc-mr1-dev am: a888e825f7
am: 16fe17e138

Change-Id: I77e30b9ff5bc30869c40a03c6655fd6471caa37c
5717d105fb3fe03af9a6a3b8ec5d6be967dfbd5a 17-Feb-2017 Bjoern Johansson <bjoernj@google.com> Merge "resolve merge conflicts of 78054372b0 to nyc-mr1-dev" into nyc-mr1-dev am: a888e825f7
am: 16fe17e138

Change-Id: Iafdc223f051580619ba25ac8457e0e3e652e20f5
06bf20ff259d3f9de08ed84dc769b0c19850d517 16-Feb-2017 Yorke Lee <yorkelee@google.com> Fix for CTS testNonResizeableActivityNotLaunchedToFreeform

Instead of enforcing that non-resizable activities are placed
on the fullscreen stack, simply check that the bounds are fullscreen
instead. This allows devices that don't support the fullscreen stack
to pass the test yet still ensures that non-resizable activities
always get the full display.

Bug: 35323487
Test: run cts-dev -d -m CtsServicesHostTestCases -t
android.server.cts.ActivityManagerFreeformStackTests#
testNonResizeableActivityHasFullDisplayBounds

Change-Id: I2db79b975cad7bb7c337e7a8e5936806023296db
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/ActivityManagerFreeformStackTests.java
7cc0aad5d171ae09e12d8dd8c8aadb3af2cd19ef 16-Feb-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "CTS for account-related provisioning API"
e9163ecd3526da3b923424253f52096281d6d5a1 01-Feb-2017 Victor Chang <vichang@google.com> CTS for account-related provisioning API

- EXTRA_PROVISIONING_KEEP_ACCOUNT_ON_MIGRATION
- EXTRA_PROVISIONING_ACCOUNT_TO_MIGRATE

Fix: 34103405
Test: cts-tradefed run cts --module DevicePolicyManager --test com.android.cts.devicepolicy.ManagedProfileProvisioningTest
Change-Id: I8ae26afb2bb79c2394e1a1d66de616d770749322
evicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/AccountAuthenticator.java
evicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/ProvisioningTest.java
evicepolicy/src/com/android/cts/devicepolicy/ManagedProfileProvisioningTest.java
0225177adffa9399e732157de73fcb851b665b33 16-Feb-2017 Makoto Onuki <omakoto@google.com> Merge "Revive the DPM account feature CTS"
2c3706a852d8dd8e16030a76b972a21521fb626d 16-Feb-2017 Bryan Mawhinney <bryanmawhinney@google.com> Skip backup tests if backup feature not present

Bug: 33616476
Test: cts-tradefed run cts -m CtsBackupHostTestCases
Change-Id: Ifd483e52420eb8c0c68c2bd0082163cde99bb992
ackup/src/android/backup/cts/WallpaperRestoreHostSideTest.java
0c5b679972847d364c367bd473c7803181c8254e 16-Feb-2017 Christine Franks <christyfranks@google.com> Merge "Reduce failures and flakiness of DemoMode tests"
d5cc8b548e4d5ff95cc0d2b51a21d24356e90f47 16-Feb-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "CTS tests for wallpaper restore"
400b19f20d3c43236aed826929533f99ba0412f0 25-Jan-2017 Bartosz Fabianowski <bartfab@google.com> Tests for checking whether the default IME was set by the DO/PO

This CL adds CTS tests verifying that we keep track whether the
Device Owner/Profile owner or the user set the default IME.

Bug: 32692748
Test: cts-tradefed run cts-dev --module CtsDevicePolicyManagerTestCases

Change-Id: If66375bda2202bee5521e14b807a9745c6d4cc6b
evicepolicy/app/DeviceOwner/AndroidManifest.xml
evicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/AdminActionBookkeepingTest.java
evicepolicy/app/ProfileOwner/Android.mk
evicepolicy/app/ProfileOwner/AndroidManifest.xml
evicepolicy/app/ProfileOwner/src/com/android/cts/profileowner/AdminActionBookkeepingTest.java
evicepolicy/src/com/android/cts/devicepolicy/ProfileOwnerTest.java
eb57990bf3d9ee92e49eb6b303dc539a0262e6ce 10-Feb-2017 Bryan Mawhinney <bryanmawhinney@google.com> CTS tests for wallpaper restore

Uses "adb restore" on host to restore golden wallpaper backups
containing a mixture of static images and a dummy live wallpaper.
Results are validated on the device by querying WallpaperManager

Test: cts-tradefed run cts -m CtsBackupHostTestCases
Change-Id: I0cfafd2c0a16ea552ec37ac89246d2b2321abc7c
ackup/Android.mk
ackup/AndroidTest.xml
ackup/app/Android.mk
ackup/app/AndroidManifest.xml
ackup/app/res/values/strings.xml
ackup/app/res/xml/wallpaper.xml
ackup/app/src/android/backup/cts/app/DummyLiveWallpaper.java
ackup/app/src/android/backup/cts/app/WallpaperRestoreTest.java
ackup/assets/wallpaper_green.ab
ackup/assets/wallpaper_live.ab
ackup/assets/wallpaper_live_green.ab
ackup/assets/wallpaper_red_green.ab
ackup/src/android/backup/cts/WallpaperRestoreHostSideTest.java
934755f54e4cec3eb81fdf6f5488c188826ef00d 16-Feb-2017 Fyodor Kupolov <fkupolov@google.com> Batterystats validation tests - wifi scans

Make foreground/background wifi scans and ensure counts are incremented
appropriately

Test: run cts --module CtsIncidentHostTestCases --test
com.android.server.cts.BatteryStatsValidationTest
Bug: 34233085
Change-Id: Ic443662ec75e6a2d20346c0fa19d8a7bad3ade2d
ncident/apps/batterystatsapp/AndroidManifest.xml
ncident/apps/batterystatsapp/src/com/android/server/cts/device/batterystats/BatteryStatsWifiScanTests.java
ncident/apps/batterystatsapp/src/com/android/server/cts/device/batterystats/SimpleActivity.java
ncident/src/com/android/server/cts/BatteryStatsValidationTest.java
72a03f6bbc0a4a502b9c2357f2fe87bdec532d4e 16-Feb-2017 Josh Gao <jmgao@google.com> Merge "security: delete obsolete debuggerd test." am: 9318face43 am: f66023b4eb am: 0a0fb05db1
am: d6e6866f0b

Change-Id: I29c880d29ec7aaccfe1a89ed40fed988e8e372b3
3747b9fe9a50d3ae38633c60e65d23a0003d84ad 15-Feb-2017 Christine Franks <christyfranks@google.com> Reduce failures and flakiness of DemoMode tests

Bug: 33659098
Test: run cts-dev -m CtsRetailDemoHostTestCases (it's still flaky;
experimentally all tests pass about 80% of the time)

Change-Id: I8b165a2a10c122be3b8d24cc3ca81eed61151a93
etaildemo/src/android/host/retaildemo/BaseTestCase.java
etaildemo/src/android/host/retaildemo/DemoModeTest.java
etaildemo/src/android/host/retaildemo/DemoModeUiAutomationHostTest.java
d6e6866f0b9e6336dc7d503fbb8fea4412797b4a 16-Feb-2017 Josh Gao <jmgao@google.com> Merge "security: delete obsolete debuggerd test." am: 9318face43 am: f66023b4eb
am: 0a0fb05db1

Change-Id: Ibe39dbfbdc8a57f0451338e0029d525aec1ac6f9
bcf8d21ac91fd20aa18d65703d98b81d11519260 16-Feb-2017 Rubin Xu <rubinxu@google.com> Merge "Add CTS test for resetPasswordWithToken"
0a0fb05db18ed242374b13691551b9c9d9cc3fb3 16-Feb-2017 Josh Gao <jmgao@google.com> Merge "security: delete obsolete debuggerd test." am: 9318face43
am: f66023b4eb

Change-Id: Ibfe430f5d69000525ebdf6d1c81e4782e51aa24c
9318face436122a9e876ba1072d630ecc777c856 16-Feb-2017 Treehugger Robot <treehugger-gerrit@google.com> Merge "security: delete obsolete debuggerd test."
5eb19bfe1bda7f6dfe75b55e320a01ee15bae035 16-Feb-2017 Josh Gao <jmgao@google.com> security: delete obsolete debuggerd test.

Bug: http://b/34721521
Test: none
Change-Id: I62d28ea3097322fc8065815953876e555a2ba477
ecurity/src/android/security/cts/SELinuxHostTest.java
e3f88ffdce2fd8c5b4b0499c6bb72e338c4ab466 15-Feb-2017 zhang sanshan <sanshan.zhang@nxp.com> Merge "fix dead loop issue when run android.appsecurity.cts.PermissionsHostTest" am: 208f288d10 am: d4ce79946e am: dbccb860b0
am: 42135892f5

Change-Id: I105daa2ceb6ae4c416f6539ea4d81a0874c0ddd7
3c279fcd51848237dac262726247611c5aa77617 15-Feb-2017 Julia Reynolds <juliacr@google.com> Merge "zen mode proto dump tests"
50dc699441643b1d6991c65899485f6439fdc5dc 15-Feb-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Test multi-user instant apps"
42135892f583e865a625bdced7180ed776ba23b7 15-Feb-2017 zhang sanshan <sanshan.zhang@nxp.com> Merge "fix dead loop issue when run android.appsecurity.cts.PermissionsHostTest" am: 208f288d10 am: d4ce79946e
am: dbccb860b0

Change-Id: Ib7d42d00f4c8aa76125133df71cd0a299b571953
dbccb860b020f36df71c27c5b26e2afd60778dda 15-Feb-2017 zhang sanshan <sanshan.zhang@nxp.com> Merge "fix dead loop issue when run android.appsecurity.cts.PermissionsHostTest" am: 208f288d10
am: d4ce79946e

Change-Id: I791255a57b988f0e0313a6442e1aa5672059c3d5
d7839407e14df28f05114941e50d72e54eb357b1 15-Feb-2017 Bjoern Johansson <bjoernj@google.com> resolve merge conflicts of 78054372b0 to nyc-mr1-dev

Change-Id: Ic1e35bab2f426fabf4b15b1e60b186124778c9a8
c155c49305e0f9d6821b29270f9c73cd83976735 15-Feb-2017 Bjoern Johansson <bjoernj@google.com> resolve merge conflicts of a2989b5078 to nougat-mr1-cts-dev

Change-Id: Ie0b71a29966154a8590b3e4749f7713acaab0325
ed3a4d46771a61a786492522c771250c53ccb908 26-Dec-2016 zhang sanshan <sanshan.zhang@nxp.com> fix dead loop issue when run android.appsecurity.cts.PermissionsHostTest

All cts cases which call setPermissionGrantState may enter dead loop.
setPermissionGrantState will call click("Permissions"), The device may not so
faster that it can display show 'Permissions' UI. So getRootInActiveWindow in
getRootInActiveWindow get the previous activity InstalledAppDetails.
scrollForward(child) always timeout and TimeoutException can not be catched.

This patch add TimeoutException catch in findByTextInCollection.

Reproduce steps:
run cts -m CtsAppSecurityHostTestCases -t android.appsecurity.cts.PermissionsHostTest --skip-preconditions --disable-reboot --skip-device-info

Change-Id: Id97980f0fd2ee9fdd628ff15de63db0f0feb7854
Signed-off-by: zhang sanshan <sanshan.zhang@nxp.com>
ppsecurity/test-apps/UsePermissionApp23/src/com/android/cts/usepermission/BasePermissionsTest.java
78054372b0f6819c8713c6b713f80dda9633d929 15-Feb-2017 Tina Zhou <tinazh@google.com> Merge "Merge "Don't require WiFi in CtsHostsideNetworkTests" into nougat-cts-dev am: a2989b5078" into nyc-dev
am: 2be6d78c13

Change-Id: I578972101d3b4c46132fc360be18a5dd947a4113
3e0e72838f950cb9303a71f16f57b763df34358d 15-Feb-2017 Tina Zhou <tinazh@google.com> Merge "Don't require WiFi in CtsHostsideNetworkTests" into nougat-cts-dev
am: a2989b5078

Change-Id: I7ff23d2936d7e9e21eaf8909b2e07c5c816cc32c
a2989b50781807a4531119c46d54302894dce86a 15-Feb-2017 Tina Zhou <tinazh@google.com> Merge "Don't require WiFi in CtsHostsideNetworkTests" into nougat-cts-dev
6638d3a5a5f179b4996ba6e9321dd9782a3e448e 15-Feb-2017 Tina Zhou <tinazh@google.com> Merge "DO NOT MERGE: test app must be streamed" into nougat-cts-dev
38b524bc5b788482bd5e723df56ae8b106769388 15-Feb-2017 Sunny Goyal <sunnygoyal@google.com> Merge "Moving some package installer tests out of hostsidetests"
f01ea3898178c67ac5ca72f25c1afa36bd2bcf08 09-Feb-2017 Andrii Kulian <akulian@google.com> Test onMovedToDisplay callback

Add tests that verify that if activity handles all config changes
when moved to a different display, it and its views receive a
configuration change and an onMovedToDisplay callback.

Bug: 34862802
Test: android.server.cts.ActivityManagerDisplayTests
Test: #testOnMovedToDisplayCallback
Change-Id: Ie11232902ce33d5d3b33ffd1d65e51e313ea082f
ervices/activityandwindowmanager/activitymanager/app/res/layout/resizeable_activity.xml
ervices/activityandwindowmanager/activitymanager/app/src/android/server/cts/AbstractLifecycleLogActivity.java
ervices/activityandwindowmanager/activitymanager/app/src/android/server/cts/LifecycleLogView.java
ervices/activityandwindowmanager/activitymanager/app/src/android/server/cts/ResizeableActivity.java
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/ActivityManagerDisplayTests.java
ervices/activityandwindowmanager/util/src/android/server/cts/ActivityManagerTestBase.java
ba7b0ad726d69f557e3c3cadf71894f302f5af65 14-Feb-2017 Sudheer Shanka <sudheersai@google.com> Merge "Update network tests to make sure app has connectivity on start."
8588c1770148af84d2a47296ae44b6cc9c7fe897 24-Jan-2017 Rubin Xu <rubinxu@google.com> Add CTS test for resetPasswordWithToken

Test: cts-tradefed run cts -m CtsDevicePolicyManagerTestCases -t com.android.cts.devicepolicy.MixedManagedProfileOwnerTest#testResetPasswordWithToken --skip-device-info
Bug: 31000522
Change-Id: I770dad9d0db98e1e6119ef77376fbf4a2676e224
evicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/ResetPasswordWithTokenTest.java
evicepolicy/src/com/android/cts/devicepolicy/DeviceAndProfileOwnerTest.java
266348664b719e1ceb871bdf6ba10e592790e432 14-Feb-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Check features before running audio restrictions tests"
04f26d3584008ee4619ee7419f49ad5df4d27907 14-Feb-2017 Julia Reynolds <juliacr@google.com> zen mode proto dump tests

Test: this
Change-Id: Iac8e254f03b9f2cdc129aa2b16fa16dc6858dfcf
ncident/src/com/android/server/cts/NotificationTest.java
ff3a9ffccb89be2ecf34aa95b90792f79b2a0ff9 13-Feb-2017 Eugene Susla <eugenesusla@google.com> Add test case for settings proto dumping.

Test: Ran new test
Change-Id: I115a16481767395b761c8774061a4c209aaa72ca
ncident/src/com/android/server/cts/SettingsIncidentTest.java
f389d7a47857400708e61e96a3146d185c2bc10f 14-Feb-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Test that display content is resized when metrics change"
04aa7754bcfc16bf0d39c76b11de480a8cac702a 14-Feb-2017 Makoto Onuki <omakoto@google.com> Revive the DPM account feature CTS

Bug: 33670246
Test: cts-tradefed run cts --skip-device-info --skip-preconditions --skip-system-status-check com.android.compatibility.common.tradefed.targetprep.NetworkConnectivityChecker -a armeabi-v7a -l INFO -m CtsDevicePolicyManagerTestCases -t com.android.cts.devicepolicy.AccountCheckHostSideTest
Change-Id: I02832d1b004ce71916d2cc0833fd60f828ba2d08
evicepolicy/app/AccountCheck/Auth/Android.mk
evicepolicy/app/AccountCheck/Auth/src/com/android/cts/devicepolicy/accountcheck/AccountCheckTest.java
evicepolicy/src/com/android/cts/devicepolicy/AccountCheckHostSideTest.java
1c2c381547e40814c16603170cba0e6085698e25 14-Feb-2017 Andrii Kulian <akulian@google.com> Test that display content is resized when metrics change

This test creates a virtual display and resizes it to check
if activities that are on this display are resized properly.

Bug: 35258051
Test: android.server.cts.ActivityManagerDisplayTests
Test: #testDisplayResize
Change-Id: Id6bb34157a8ec0deac5be6780db962c10ca01d1b
ervices/activityandwindowmanager/activitymanager/app/AndroidManifest.xml
ervices/activityandwindowmanager/activitymanager/app/src/android/server/cts/VirtualDisplayActivity.java
ervices/activityandwindowmanager/activitymanager/app/src/android/server/cts/tools/ActivityLauncher.java
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/ActivityManagerDisplayTests.java
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/ActivityManagerDockedStackTests.java
ervices/activityandwindowmanager/util/src/android/server/cts/ActivityAndWindowManagersState.java
4f7e8f5e145290082b3fb933d0114a32f5e5754f 13-Feb-2017 Arthur Hsu <arthurhsu@google.com> Remove full screen check in ActivityManagerConfigChangeTests.

It is sufficient to just check the activity we launch is visible.
It also solves the case when FULLSCREEN_WORKSPACE_STACK is not
supported.

Bug: 35323347
Test: cts -m CtsServicesHostTestCases --test
android.server.cts.ActivityManagerConfigChangeTests

Change-Id: If9fdfcb9b6100d361fa052832d118be1fe77ec14
ervices/activitymanager/src/android/server/cts/ActivityManagerConfigChangeTests.java
47e9d66db843fd863c07c02745a315cd5e9913d6 13-Feb-2017 Makoto Onuki <omakoto@google.com> Merge "CTS for LauncherApps lock-down (take 2)"
86a27655d915708490a2d2ca631f5366b07a50a5 13-Feb-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "CTS for dumpsys storaged"
1c5832e6f54aa75ee133ff338a752c598c6ef308 10-Jan-2017 Sudheer Shanka <sudheersai@google.com> Update network tests to make sure app has connectivity on start.

In the tests, we check the ouput from "am get-uid-state" command to see
if the app is coming to foreground and check for network access. But the
command gives internal uid state info in AMS and it's possible that the
activity/service is not started yet. Update this behavior so that we check
for network access only after the activity/service is started.

Bug: 27803922
Test: cts-tradefed run singleCommand cts-dev --module CtsHostsideNetworkTests
Change-Id: Ic0d94a585439c1d8629a897a8b56bcbf178a4371
et/aidl/Android.mk
et/aidl/com/android/cts/net/hostside/INetworkStateObserver.aidl
et/app/src/com/android/cts/net/hostside/AbstractAppIdleTestCase.java
et/app/src/com/android/cts/net/hostside/AbstractBatterySaverModeTestCase.java
et/app/src/com/android/cts/net/hostside/AbstractDozeModeTestCase.java
et/app/src/com/android/cts/net/hostside/AbstractRestrictBackgroundNetworkTestCase.java
et/app/src/com/android/cts/net/hostside/DataSaverModeTest.java
et/app2/src/com/android/cts/net/hostside/app2/Common.java
et/app2/src/com/android/cts/net/hostside/app2/MyActivity.java
et/app2/src/com/android/cts/net/hostside/app2/MyForegroundService.java
aa3fbf07b36ceb1045468cef034069c39c9fdd61 13-Feb-2017 David Stevens <stevensd@google.com> Merge "Test taps move focus with stacks on multiple displays"
d5e2ad433cf900f6475664ea61247a4f648fda3c 09-Feb-2017 Jin Qian <jinqian@google.com> CTS for dumpsys storaged

Test: cts-tradefed run cts -m CtsDumpsysHostTestCases -t android.dumpsys.cts.StoragedDumpsysTest
Bug: 34845096
Change-Id: I41dd3c3b498047ea94f7c90ba184e5ee61639f07
umpsys/src/android/dumpsys/cts/StoragedDumpsysTest.java
ncident/apps/storagedapp/Android.mk
ncident/apps/storagedapp/AndroidManifest.xml
ncident/apps/storagedapp/src/com/android/server/cts/storaged/SimpleIOActivity.java
ncident/apps/storagedapp/src/com/android/server/cts/storaged/SimpleIOService.java
ncident/apps/storagedapp/src/com/android/server/cts/storaged/StoragedTest.java
6639098362cd8ec3656d6f96c9b193046cc23af4 13-Feb-2017 Tina Zhou <tinazh@google.com> Merge "Merge "Merge "Wrong log filter in TrustedVoiceHostTest#testUnlock" into nougat-cts-dev am: d3fd52b73b" into nougat-mr1-cts-dev am: 781a5aa652" am: 6b076315c9 am: 13302bcd64 am: bf2371fbc0
am: 1acede9f0b

Change-Id: I40d33c93fc7a45a4a964f88b16f8c9ae91bc6ee1
1acede9f0b7d1bf1cc60684eb9fce414dd12c10c 13-Feb-2017 Tina Zhou <tinazh@google.com> Merge "Merge "Merge "Wrong log filter in TrustedVoiceHostTest#testUnlock" into nougat-cts-dev am: d3fd52b73b" into nougat-mr1-cts-dev am: 781a5aa652" am: 6b076315c9 am: 13302bcd64
am: bf2371fbc0

Change-Id: I9f1b605a8599a19214dc1a59d41f258aee8024b5
f0a78d01c1157c3a89f2655380d433430bdec0c2 13-Feb-2017 Tina Zhou <tinazh@google.com> Merge "Merge "Wrong log filter in TrustedVoiceHostTest#testUnlock" into nougat-cts-dev am: d3fd52b73b" into nougat-mr1-cts-dev am: 781a5aa652 am: 7647142bac
am: dc56a7f73d

Change-Id: I893ec43e71c7e85ad68f6d2eb83d92f8d8357ca0
bf2371fbc073d837af150384cc290f1c2fc364f9 13-Feb-2017 Tina Zhou <tinazh@google.com> Merge "Merge "Merge "Wrong log filter in TrustedVoiceHostTest#testUnlock" into nougat-cts-dev am: d3fd52b73b" into nougat-mr1-cts-dev am: 781a5aa652" am: 6b076315c9
am: 13302bcd64

Change-Id: Id5919d77a66e28ac035ece9a15c3e904f3a4f9ae
29147d2564dec1e1641f1dc3eee62d68db84486a 19-Jan-2017 Makoto Onuki <omakoto@google.com> CTS for LauncherApps lock-down (take 2)

Bug: 34340531

Test: cts-tradefed run cts --skip-device-info --skip-preconditions --skip-system-status-check com.android.compatibility.common.tradefed.targetprep.NetworkConnectivityChecker -a armeabi-v7a -m CtsShortcutHostTestCases -t 'android.content.pm.cts.shortcuthost.ShortcutManagerMultiuserTest#testManagedUser'
Test: cts-tradefed run cts --skip-device-info --skip-preconditions --skip-system-status-check com.android.compatibility.common.tradefed.targetprep.NetworkConnectivityChecker -a armeabi-v7a -m CtsDevicePolicyManagerTestCases -t 'com.android.cts.devicepolicy.LauncherAppsProfileTest'
Change-Id: Ic5959ff4d1e6be495a2556cfb3f040014a465b63
evicepolicy/app/LauncherTests/src/com/android/cts/launchertests/LauncherAppsTests.java
evicepolicy/src/com/android/cts/devicepolicy/BaseLauncherAppsTest.java
evicepolicy/src/com/android/cts/devicepolicy/LauncherAppsProfileTest.java
hortcuts/deviceside/multiuser/src/android/content/pm/cts/shortcut/multiuser/ShortcutManagerManagedUserTest.java
hortcuts/hostside/src/android/content/pm/cts/shortcuthost/ShortcutManagerMultiuserTest.java
ebf090907f89ab8873e3179be65c9e9fd2cfe8d8 13-Feb-2017 Tina Zhou <tinazh@google.com> Merge "Wrong log filter in TrustedVoiceHostTest#testUnlock" into nougat-cts-dev am: d3fd52b73b
am: 5aa882f500

Change-Id: I6896643cd4ee0e13b041cce5898ce6f56cd1c527
1082f51c1542203c816a778f4170bfe8598133b7 13-Feb-2017 Esteban Talavera <etalavera@google.com> Check features before running audio restrictions tests

Bug: 34320522
Test: cts-tradefed run cts-dev --module DevicePolicyManager --test com.android.cts.devicepolicy.MixedProfileOwnerTest#testAudioRestriction
Test: cts-tradefed run cts-dev --module DevicePolicyManager --test com.android.cts.devicepolicy.MixedDeviceOwnerTest#testAudioRestriction
Test: cts-tradefed run cts-dev --module DevicePolicyManager --test com.android.cts.devicepolicy.MixedManagedProfileOwnerTest#testAudioRestriction
Change-Id: Iec4a889ef36206b60039fa1bcf9d4948e59d52a0
evicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/AudioRestrictionTest.java
7647142bac033650d1df0fea3fc52a29c95606e1 13-Feb-2017 Tina Zhou <tinazh@google.com> Merge "Merge "Wrong log filter in TrustedVoiceHostTest#testUnlock" into nougat-cts-dev am: d3fd52b73b" into nougat-mr1-cts-dev
am: 781a5aa652

Change-Id: I5cf6d34dcb99fc0a335a58b555a84c0b8568c03a
5aa882f50065b0755f239b9f89f82fd1ea48700c 13-Feb-2017 Tina Zhou <tinazh@google.com> Merge "Wrong log filter in TrustedVoiceHostTest#testUnlock" into nougat-cts-dev
am: d3fd52b73b

Change-Id: I7cc1fac7ff47568bfb2dbcd09db938e7dde3388b
e0e91252a1545590a6d6845d5bb830c9d644c681 13-Feb-2017 Tina Zhou <tinazh@google.com> Merge "Merge "Wrong log filter in TrustedVoiceHostTest#testUnlock" into nougat-cts-dev am: d3fd52b73b" into nougat-mr1-cts-dev
am: 781a5aa652

Change-Id: Ieed76f427662103b64f2f44e9563acf2c3342843
f75f611cb8c6f1d4c2d646d4d11cb3b2c47293fa 13-Feb-2017 Tina Zhou <tinazh@google.com> Merge "Wrong log filter in TrustedVoiceHostTest#testUnlock" into nougat-cts-dev
am: d3fd52b73b

Change-Id: I00d6f7256d2e72247729fd6bd91f7298382f5273
d3fd52b73bd55f415dcabf82265fc634d9d95aa4 13-Feb-2017 Tina Zhou <tinazh@google.com> Merge "Wrong log filter in TrustedVoiceHostTest#testUnlock" into nougat-cts-dev
01a227f9097866635d6900bd37519a9bcc80617f 13-Feb-2017 Treehugger Robot <treehugger-gerrit@google.com> Merge "DO NOT MERGE Fallback to freeform windows if split screen not supported" into nougat-mr1-cts-dev
ac6664a7c737c02f95618b10acac6a875359ca7f 13-Feb-2017 Treehugger Robot <treehugger-gerrit@google.com> Merge "DO NOT MERGE Improve parsing of "am stack list" in CTS drag and drop tests" into nougat-mr1-cts-dev
2f4598b9fa69e1874de380f8ecca0e2c4e8986dc 13-Feb-2017 Makoto Onuki <omakoto@google.com> Merge "Change the target SDK version"
223a71d2cc3424487867f60f6419f7a5c86afb3f 11-Feb-2017 Makoto Onuki <omakoto@google.com> Change the target SDK version

Test: cts-tradefed run cts --skip-device-info --skip-preconditions --skip-system-status-check com.android.compatibility.common.tradefed.targetprep.NetworkConnectivityChecker -a armeabi-v7a -m CtsDevicePolicyManagerTestCases -t 'com.android.cts.devicepolicy.LauncherAppsProfileTest' </dev/null

Bug 35257419

Change-Id: I0fc1c185311437ea2f75f9686cd449eb57b899be
evicepolicy/app/LauncherTests/AndroidManifest.xml
evicepolicy/app/LauncherTestsSupport/AndroidManifest.xml
bd014fb0e2129bd8eb7eded46ebe934c5037e66d 13-Feb-2017 Paul Duffin <paulduffin@google.com> Merge "Prepare for removal of legacy-test from default targets" into nyc-mr2-dev-plus-aosp
4bb4f15491ca580e670d79799be2604ec937ba9c 12-Feb-2017 Jeff Sharkey <jsharkey@android.com> Tests for newly added allocation APIs.

Test: newly added CTS tests
Bug: 34690590
Change-Id: Ibd3d8111552b9416d87fef41f6755801941daba1
ppsecurity/src/android/appsecurity/cts/StorageHostTest.java
ppsecurity/test-apps/StorageApp/src/com/android/cts/storageapp/StorageTest.java
17b32b4c27411dc8e4aefa0efa78edb099bbb7b1 11-Feb-2017 Arthur Hsu <arthurhsu@google.com> Detect support in ActivityManagerDockedStackTests.
am: 55ad56e907

Change-Id: I4ebf7db9b3e1e228334004a6963f90b550aea3f2
495845cf489fe5147117b03e4b2de52e33178836 11-Feb-2017 Arthur Hsu <arthurhsu@google.com> Detect support in ActivityManagerDockedStackTests. am: 55ad56e907 am: a1e6daf930 am: d6ab9bff66
am: 4140c20043

Change-Id: I542e0790505e412802fa16e43d56002bae28d073
321264a3778f07c0d7918aa9d93448e501c12693 11-Feb-2017 Arthur Hsu <arthurhsu@google.com> Merge "Skip tests using dock if split window unsupported." into nougat-mr1-cts-dev am: 450b379138 am: 3ad9a129a0 am: 72d94b0d55
am: 2837d3f78d

Change-Id: I78fb27283dba8fb5794a4272b4b273d055a5f502
1700881522b5a067bf81f35fd8fbc9e9f66d2430 11-Feb-2017 Arthur Hsu <arthurhsu@google.com> Detect support in ActivityManagerDockedStackTests. am: 55ad56e907 am: a1e6daf930
am: d6ab9bff66

Change-Id: Id8e18d8b7aa26f0fb17d4d015deb28fb9ab661a9
4140c20043bd959793fba3b96d5d22a758bc4410 11-Feb-2017 Arthur Hsu <arthurhsu@google.com> Detect support in ActivityManagerDockedStackTests. am: 55ad56e907 am: a1e6daf930
am: d6ab9bff66

Change-Id: Id63a8b73e0f8e7fb0ca6e54cb706e4c7009141be
57f03380fec2af6694df8d8c34358f90770a537e 11-Feb-2017 Arthur Hsu <arthurhsu@google.com> Merge "Skip tests using dock if split window unsupported." into nougat-mr1-cts-dev am: 450b379138 am: 3ad9a129a0
am: 72d94b0d55

Change-Id: I6b5ccbe00fdba2497158ce7268f21786200e5187
2837d3f78d9c64343ea6b55c8f7d3d5a33689922 11-Feb-2017 Arthur Hsu <arthurhsu@google.com> Merge "Skip tests using dock if split window unsupported." into nougat-mr1-cts-dev am: 450b379138 am: 3ad9a129a0
am: 72d94b0d55

Change-Id: Ie61756b66ec0e8fefd43ccc0cc301629376af518
a1e6daf9300e138834702343659d2e88d824019f 11-Feb-2017 Arthur Hsu <arthurhsu@google.com> Detect support in ActivityManagerDockedStackTests.
am: 55ad56e907

Change-Id: I0e7686b490936b96047684e32c75580c77c8a047
3ad9a129a056ded547a71eca2ba6f3f84511c28f 11-Feb-2017 Arthur Hsu <arthurhsu@google.com> Merge "Skip tests using dock if split window unsupported." into nougat-mr1-cts-dev
am: 450b379138

Change-Id: I58716e0a46ff50f1e618d00593e2494ffd0a0283
9341692aaa195255fb7c0ea69e35beae43ccfd68 11-Feb-2017 Treehugger Robot <treehugger-gerrit@google.com> Merge "Detect support in ActivityManagerDockedStackTests." into nougat-mr1-cts-dev
450b379138375c9f3f5e688da0166125a2cee021 11-Feb-2017 Treehugger Robot <treehugger-gerrit@google.com> Merge "Skip tests using dock if split window unsupported." into nougat-mr1-cts-dev
a53a32c59b748ee323a5ff8199423c7260acdec1 11-Feb-2017 David Stevens <stevensd@google.com> Test taps move focus with stacks on multiple displays

Test: android.server.cts.ActivityManagerDisplayTests
Test: #testStackFocusSwitchOnTouchEvent
Bug: 35214007
Change-Id: Ic2bcc36753507bc4a2bf6c1b6b11ad48f543c770
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/ActivityManagerDisplayTests.java
877c4923f6178857b6978733a835be2f7fc614b9 10-Feb-2017 Andrii Kulian <akulian@google.com> Merge "Test that content on private display is destroyed on remove"
d794912060d8433a2b6084eaeb81b5e2a8ab1516 10-Feb-2017 Bryce Lee <brycelee@google.com> Merge "Add tests to verify activity ordering behavior."
60e4b34abdba08423d798afeaceb44a76ab32ba0 10-Feb-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Add one more IPv4 URL to LOGGED_URLS_LIST"
ac606a2aebefb9e42c1a524441b5e95621ec0222 10-Feb-2017 Michal Karpinski <mkarpinski@google.com> Add one more IPv4 URL to LOGGED_URLS_LIST

The reason was that remote CTS devices had problems connecting to
IPv6 addresses.
Also fix the wrong assumption that there's always at least one IP
in DNS resolution.

Bug: 34318556
Test: cts-tradefed run cts --module DevicePolicyManager --test com.android.cts.devicepolicy.DeviceOwnerTest#testNetworkLoggingWithSingleUser
Change-Id: I4290d4e86ce023df08b9e3cb83cfc1dc3df23615
evicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/NetworkLoggingTest.java
ae9e20def9cd742e5a343609d59171fee254be76 10-Jan-2017 Paul Duffin <paulduffin@google.com> Prepare for removal of legacy-test from default targets

In preparation for removing junit classes from the Android API
the legacy-test target will be removed from the
TARGET_DEFAULT_JAVA_LIBRARIES. This change adds explicit
dependencies on junit and/or legacy-android-test to ensure that
modules will compile properly once it is removed.

Bug: 30188076
Test: make checkbuild
Change-Id: I2bbe603b1344d3eef4b48c498311f91b756b85e3
Merged-In: I0f34fe97154240e8f8eef6816df1c794da60351e
ppsecurity/test-apps/UsePermissionApp22/Android.mk
ppsecurity/test-apps/UsePermissionApp23/Android.mk
336f27d39cc678f6860b46b4f3fe24e2e5b6788d 10-Feb-2017 Makoto Onuki <omakoto@google.com> Merge "More CTS for dumpsys procstats -- check duration times."
2de596ea9d44b6fc2583e4d58746310857b7f88f 10-Feb-2017 mist_liao <mist_liao@asus.com> Merge "Add 360dpi.zip for theme test am: d560f77d2a am: dfb906148b am: 0378a4889d am: 51e25bd76c am: 4e0005282d" into nyc-mr2-dev-plus-aosp
am: c4f8d9074c

Change-Id: Ie92fce243ceb9ea17741844089f29ccacdd55cb8
f5034f0c08413c6fae51e2982328d9db741000ca 10-Feb-2017 Takeshi Katae <takeshi.katae.xm@kyocera.jp> Merge "upport the #testAppLinks for the device which implemented browsers am: b808f74172 am: d510e7de1c am: ff7953f62f" am: e31f27d36f am: 8e509abc44 am: e68a31654b
am: 138d8da2d3

Change-Id: I54e502eb53b0e88fc1bae5ed404c2c7e54e0f840
535b25a7da6ac7834235ab5f1b40adc88d99148c 10-Feb-2017 mist_liao <mist_liao@asus.com> Add 360dpi.zip for theme test am: d560f77d2a am: dfb906148b am: 0378a4889d am: 51e25bd76c
am: 4e0005282d

Change-Id: Iaf6a7f04df30f395b26ab1838591b74bcd6ee7e2
57a10c9d9d99d454b0b6d1fc26f87376b98ed967 10-Feb-2017 mist_liao <mist_liao@asus.com> Merge "Add 360dpi.zip for theme test am: d560f77d2a am: dfb906148b" am: 06fe7b0e7a
am: af9c0b657d

Change-Id: Id57f7a26c79c70d733b7956b89d09ec88f9f8994
4e0005282d6a84363c561462b486c183f0c60364 10-Feb-2017 mist_liao <mist_liao@asus.com> Add 360dpi.zip for theme test am: d560f77d2a am: dfb906148b am: 0378a4889d
am: 51e25bd76c

Change-Id: I30a486cb98bfb29e15f4d94bb8d62917afb10a58
138d8da2d3d82f7415a5a074242a07a6d16c6058 10-Feb-2017 Takeshi Katae <takeshi.katae.xm@kyocera.jp> Merge "upport the #testAppLinks for the device which implemented browsers am: b808f74172 am: d510e7de1c am: ff7953f62f" am: e31f27d36f am: 8e509abc44
am: e68a31654b

Change-Id: I80fe93639c8de0d16ef843ad6822416c3fc79025
c44e9284f32d575b0a22806d3adeb3205dd57149 09-Feb-2017 Takeshi Katae <takeshi.katae.xm@kyocera.jp> upport the #testAppLinks for the device which implemented browsers am: b808f74172 am: d510e7de1c am: ff7953f62f am: c4e9908fdd
am: a5cc1dca41

Change-Id: Ibdae2541b40f7ae937a0b308825b4cbb47839cb7
e68a31654b88ecb659b0a88f5dd1f8c0d116ade4 09-Feb-2017 Takeshi Katae <takeshi.katae.xm@kyocera.jp> Merge "upport the #testAppLinks for the device which implemented browsers am: b808f74172 am: d510e7de1c am: ff7953f62f" am: e31f27d36f
am: 8e509abc44

Change-Id: Id22081364e14b2d440630a65a5fe9a29c9272330
0378a4889d3cb17cca92e0c06e4e8d2c6b3c576e 09-Feb-2017 mist_liao <mist_liao@asus.com> Add 360dpi.zip for theme test am: d560f77d2a
am: dfb906148b

Change-Id: Ifc1595738aad0e9d70f4054fc859e885301e0e93
54cf28c2d39d9940587dacc5aa38d6a971dfd874 09-Feb-2017 mist_liao <mist_liao@asus.com> Add 360dpi.zip for theme test am: d560f77d2a
am: ceb5f9610c

Change-Id: I49e1433631725fbfb31627d6afe3ce462c53b059
61fe88831bebe7d1c5dfdf2145ab3e9d58a18953 08-Feb-2017 Makoto Onuki <omakoto@google.com> More CTS for dumpsys procstats -- check duration times.

Test: cts-tradefed run cts --skip-device-info --skip-preconditions --skip-system-status-check com.android.compatibility.common.tradefed.targetprep.NetworkConnectivityChecker -a armeabi-v7a -l INFO -m CtsDumpsysHostTestCases -t android.dumpsys.cts.ProcessStatsDumpsysTest

Bug: 34228624
Change-Id: If76401d03ba8cdcac7a884f15140e83ced0d9f9c
umpsys/apps/ProcStatsHelperApp/AndroidManifest.xml
umpsys/apps/ProcStatsHelperApp/src/com/android/server/cts/procstatshelper/FlashingActivity.java
umpsys/apps/ProcStatsHelperApp/src/com/android/server/cts/procstatshelper/MainActivity.java
umpsys/apps/ProcStatsTestApp/src/com/android/server/cts/procstats/ProcStatsTest.java
umpsys/src/android/dumpsys/cts/BaseDumpsysTest.java
umpsys/src/android/dumpsys/cts/ProcessStatsDumpsysTest.java
3ad832d145d4ebddb5d0133e072ea70020a6b4c4 09-Feb-2017 Takeshi Katae <takeshi.katae.xm@kyocera.jp> upport the #testAppLinks for the device which implemented browsers am: b808f74172 am: d510e7de1c
am: 1803ef04d7

Change-Id: If27d6e9976819509bd88fef3c0767f393dbdbefe
c4e9908fdd42ee0e783591596b3811e15143959e 09-Feb-2017 Takeshi Katae <takeshi.katae.xm@kyocera.jp> upport the #testAppLinks for the device which implemented browsers am: b808f74172 am: d510e7de1c
am: ff7953f62f

Change-Id: I7599194a0432b561fcb1edbeeb2bf8b2607de536
ceb5f9610c9d543635b2fb3b00fb92e399f26d23 09-Feb-2017 mist_liao <mist_liao@asus.com> Add 360dpi.zip for theme test
am: d560f77d2a

Change-Id: If76e7d6a62f7b08c303e57dd5908f37fe112c87b
631453ad23f396725b8dadcdc60502c993f663d6 09-Feb-2017 mist_liao <mist_liao@asus.com> Add 360dpi.zip for theme test am: d560f77d2a
am: dfb906148b

Change-Id: I8135e6aaf5ee8ceee9125f5c49b94ff6dffedcf1
1803ef04d7a8468782acad3e063ed1d274b305d4 09-Feb-2017 Takeshi Katae <takeshi.katae.xm@kyocera.jp> upport the #testAppLinks for the device which implemented browsers am: b808f74172
am: d510e7de1c

Change-Id: I1c8acfc08880748435110cf7f0c016374d4f9f5f
dfb906148b3840579ca0d62b7f7fbf9fec0beec9 09-Feb-2017 mist_liao <mist_liao@asus.com> Add 360dpi.zip for theme test
am: d560f77d2a

Change-Id: I4fe7ea9536589ca3adda0d80fcaf7fa90846a71e
138f5d2f01ef7d2f1bd97eae8e4be3d2c4dff797 09-Feb-2017 Takeshi Katae <takeshi.katae.xm@kyocera.jp> upport the #testAppLinks for the device which implemented browsers am: b808f74172 am: d510e7de1c
am: ff7953f62f

Change-Id: I876e38c8f0b9d4bcce774f6440d7040a062cf8e4
ff7953f62f333d2b8dc4cb3100a3a66440264089 09-Feb-2017 Takeshi Katae <takeshi.katae.xm@kyocera.jp> upport the #testAppLinks for the device which implemented browsers am: b808f74172
am: d510e7de1c

Change-Id: I27e1df365c6a4cc993c25df370fa62394595df4c
5756a7e766503690303708996b64ed47ab8717a5 09-Feb-2017 Tina Zhou <tinazh@google.com> Merge "Add 360dpi.zip for theme test" into nougat-cts-dev
d510e7de1cd2a9b6fdf01e5c5f6b9b8521e61908 09-Feb-2017 Takeshi Katae <takeshi.katae.xm@kyocera.jp> upport the #testAppLinks for the device which implemented browsers
am: b808f74172

Change-Id: Ibbd6855510451852508beb25405fe77220d498aa
4b62adcb9445c39de5130feaca4201ce0e3d3b77 08-Feb-2017 Bryce Lee <brycelee@google.com> Add tests to verify activity ordering behavior.

This changelist adds two tests which ensures the correct behavior when
using the FLAG_ACTIVITY_REORDER_TO_FRONT flag. The first ensures that
the correct activity history is present when moving to and from a
root activity. The second exercises that the history and focus is
correct for an activity when moving to and from the home stack.

This changelist also adds a builder for launching an activity from
LaunchingActivity. Additionaly, an additional activity,
AltLaunchingActivity, has been added so that we can return to the
LaunchingActivity in the same manner.

Bug: 25784754
Bug: 25487874
Test: cts/hostsidetests/services/activityandwindowmanager/util/run-test CtsServicesHostTestCases android.server.cts.ActivityManagerActivityVisibilityTests#testReorderToFrontBackstack
Test: cts/hostsidetests/services/activityandwindowmanager/util/run-test CtsServicesHostTestCases android.server.cts.ActivityManagerActivityVisibilityTests#testReorderToFrontChangingStack
Change-Id: I482a687bd2bb8cd3800517bafc2ba47c17a7f625
ervices/activityandwindowmanager/activitymanager/app/AndroidManifest.xml
ervices/activityandwindowmanager/activitymanager/app/src/android/server/cts/AltLaunchingActivity.java
ervices/activityandwindowmanager/activitymanager/app/src/android/server/cts/tools/ActivityLauncher.java
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/ActivityManagerActivityVisibilityTests.java
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/ActivityManagerAppConfigurationTests.java
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/ActivityManagerDisplayTests.java
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/ActivityManagerDockedStackTests.java
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/AnimationBackgroundTests.java
ervices/activityandwindowmanager/util/src/android/server/cts/ActivityManagerTestBase.java
8f23400fdf3c0038b512503cd7b78668b8fa51cd 01-Feb-2017 Andrii Kulian <akulian@google.com> Test that content on private display is destroyed on remove

Verifies that all activities and windows are gone and activities
were destroyed correctly.

Bug: 34263289
Test: android.server.cts.ActivityManagerDisplayTests
Test: #testContentDestroyOnDisplayRemoved
Change-Id: I1fcac01c1d548b93e96b0d9b53cedba08ce72898
ervices/activityandwindowmanager/activitymanager/app/src/android/server/cts/VirtualDisplayActivity.java
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/ActivityManagerDisplayTests.java
ervices/activityandwindowmanager/util/src/android/server/cts/ActivityManagerState.java
ervices/activityandwindowmanager/util/src/android/server/cts/ActivityManagerTestBase.java
ervices/activityandwindowmanager/util/src/android/server/cts/WindowManagerState.java
73ce569899313f0f9497770f9e6584f47adf93c7 08-Feb-2017 Sunny Goyal <sunnygoyal@google.com> Moving some package installer tests out of hostsidetests

Test: Verified using runtest
Change-Id: Ica04951efb09c924f04e92be3b09a43d185b88e1
evicepolicy/app/PackageInstaller/src/com/android/cts/packageinstaller/BasePackageInstallTest.java
evicepolicy/app/PackageInstaller/src/com/android/cts/packageinstaller/InstallReasonTest.java
evicepolicy/app/PackageInstaller/src/com/android/cts/packageinstaller/SilentPackageInstallTest.java
evicepolicy/src/com/android/cts/devicepolicy/CustomDeviceOwnerTest.java
8f05bd111ca34ae32725b24a6a784c1608629cb4 08-Feb-2017 The Android Automerger <android-build-merger@google.com> Manually merge commit 'd47e3f8f03'

* commit 'd47e3f8f03':
Backport MediaCodec-based test to StagefrighTest
Track test runtime
DO NOT MERGE: Cherry pick CTS test fixes from mr1.
Re-word "Disallow USB File Transfer" manual test.
more annonations

BUG:33487978
d47e3f8f038873b5c1cc0883adad111975c02e46 08-Feb-2017 The Android Automerger <android-build-merger@google.com> Manually Merge remote-tracking branch 'origin/nyc-mr2-dev' into nyc-mr2-dev-plus-aosp

* origin/nyc-mr2-dev:
Backport MediaCodec-based test to StagefrighTest
Track test runtime
DO NOT MERGE: Cherry pick CTS test fixes from mr1.
Re-word "Disallow USB File Transfer" manual test.
more annonations

BUG:33487978
361f9ac9e888fc261e52c423badd717a0836b2be 08-Feb-2017 The Android Automerger <android-build-merger@google.com> Manually merge remote-tracking branch 'origin/cw-f-dev' into nyc-mr1-dev-plus-aosp

* origin/cw-f-dev:
more annonations

BUG:33487978
7a768c9fd58f8da9ac25cc4cb7d06dd0854e1def 08-Feb-2017 Badash <badash@google.com> more annonations am: 68640bfd77 am: d9a7787c54 am: 05d15e67c7
am: 5b43347003

Change-Id: Ice12d1d2a5eeadae90f54757e56a8f23b6dff9b7
05d15e67c7760a68493f9b4d5e4a53680673f6a4 08-Feb-2017 Badash <badash@google.com> more annonations am: 68640bfd77
am: d9a7787c54

Change-Id: I6db73b9671e68dd2dcbb83ad0ec88c9b520869d3
d9a7787c547b964da65868aa28e9f6cedbe361e7 08-Feb-2017 Badash <badash@google.com> more annonations
am: 68640bfd77

Change-Id: Ib9d4fd39497f743970a02c861cbc2868118311d3
67a4f803c05bffd51ada2743774712096b8d6585 08-Feb-2017 Julia Reynolds <juliacr@google.com> Merge changes from topics 'lights', 'proto'

* changes:
Tests for notificationchannel light color.
Cts tests for notification dumpsys --proto
c89ec049b020d911c9f1591a51c28849ec1f90e4 27-Jan-2017 Luis Hector Chavez <lhchavez@google.com> Better support test for DirectBootHostTest

Instead of relying on a feature/intent blacklist, depending on
android.software.device_admin seems to be more robust for
DirectBootHostTest.

Bug: 33754525
Test: run cts -m CtsAppSecurityHostTestCases -t android.appsecurity.cts.DirectBootHostTest
Change-Id: I03fb0ad9313baa5e2c74a3b0756a6e83eb1d5597
ppsecurity/src/android/appsecurity/cts/DirectBootHostTest.java
fe0f07b73259b01a1286c0393b30f07199fafb53 07-Feb-2017 Julia Reynolds <juliacr@google.com> Cts tests for notification dumpsys --proto

Test: this
Change-Id: Iaedfd79eda200fbf949fb11fbd9e48fe910f6a66
ncident/src/com/android/server/cts/NotificationTest.java
4ebc4360d903f676b3d71a554d1adc0eed51204c 30-Jan-2017 Makoto Onuki <omakoto@google.com> More CTS for dumpsys procstats

Test: cts-tradefed run cts --skip-device-info --skip-preconditions --skip-system-status-check com.android.compatibility.common.tradefed.targetprep.NetworkConnectivityChecker -a armeabi-v7a -l INFO -m CtsDumpsysHostTestCases -t android.dumpsys.cts.ProcessStatsDumpsysTest

Bug: 34228624
Change-Id: I8233751fe0afec76b86457c3d1062a19b055f123
umpsys/apps/ProcStatsHelperApp/Android.mk
umpsys/apps/ProcStatsHelperApp/AndroidManifest.xml
umpsys/apps/ProcStatsHelperApp/src/com/android/server/cts/procstatshelper/FlashingActivity.java
umpsys/apps/ProcStatsHelperApp/src/com/android/server/cts/procstatshelper/MainActivity.java
umpsys/apps/ProcStatsHelperApp/src/com/android/server/cts/procstatshelper/ProcStatsHelperServiceBase.java
umpsys/apps/ProcStatsHelperApp/src/com/android/server/cts/procstatshelper/ProcStatsHelperServiceMain.java
umpsys/apps/ProcStatsHelperApp/src/com/android/server/cts/procstatshelper/ProcStatsHelperServiceSub.java
umpsys/apps/ProcStatsTestApp/Android.mk
umpsys/apps/ProcStatsTestApp/AndroidManifest.xml
umpsys/apps/ProcStatsTestApp/src/com/android/server/cts/procstats/ProcStatsTest.java
umpsys/src/android/dumpsys/cts/BaseDumpsysTest.java
umpsys/src/android/dumpsys/cts/ProcessStatsDumpsysTest.java
9f7ce1dbbc344e4fd2472648e414ed70a8a06fab 03-Feb-2017 Todd Kennedy <toddke@google.com> Test multi-user instant apps

Bug: 25119046
Test: cts-tradefed run commandAndExit cts-dev -m CtsAppSecurityHostTestCases -t android.appsecurity.cts.InstantAppUserTest
Change-Id: Id362a3bb1b50e9510f110079694e596cf6ab5092
ppsecurity/src/android/appsecurity/cts/InstantAppUserTest.java
ppsecurity/test-apps/EphemeralTestApp/UserApp/Android.mk
ppsecurity/test-apps/EphemeralTestApp/UserApp/AndroidManifest.xml
ppsecurity/test-apps/EphemeralTestApp/UserApp/res/values/strings.xml
ppsecurity/test-apps/EphemeralTestApp/UserApp/src/com/android/cts/userapp/UserActivity.java
ppsecurity/test-apps/EphemeralTestApp/UserAppTest/Android.mk
ppsecurity/test-apps/EphemeralTestApp/UserAppTest/AndroidManifest.xml
ppsecurity/test-apps/EphemeralTestApp/UserAppTest/res/values/strings.xml
ppsecurity/test-apps/EphemeralTestApp/UserAppTest/src/com/android/cts/userapptest/ClientTest.java
874a2b459d4d84ae56ba0d6d76676797ddf08bbd 07-Feb-2017 Esteban Talavera <etalavera@google.com> Merge "Add tests for getLockTaskPackages"
d972ad806b7119abfc70c7a57973a21f196d28f7 06-Feb-2017 Amith Yamasani <yamasani@google.com> Fix ordering of comments to match the data

Bug: 34983922
Test: cts-tradefed run cts-dev -m CtsDumpsysHostTestCases
Change-Id: I6dd4bfd2db8c2d21481e6ad22b29da45b295378e
umpsys/src/android/dumpsys/cts/BatteryStatsDumpsysTest.java
fc22058c66ac0e7bbe6fed0936a2f22bbba8c805 06-Feb-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Allow MixedManagedProfileTest to run on a server"
ca22566206634339ff6e2f8dd9b6088fb8f38362 06-Feb-2017 Robin Lee <rgl@google.com> Allow MixedManagedProfileTest to run on a server

Removed @RequiresDevice from this test by explicitly overriding it
without the annotation.

Other DeviceAndProfileOwnerTest-s keep the same behaviour as before if
the overrides with the same annotations are removed, so cleaned them up
too.

Bug: 34048346
Test: make cts -j14 && cts-tradefed run cts-virtual-device --module CtsDevicePolicyManagerTestCases --test 'com.android.cts.devicepolicy.MixedManagedProfileOwnerTest#testAlwaysOnVpn' </dev/null 2>&1 # builds & runs at all
Test: cts-tradefed run cts-virtual-device --module CtsDevicePolicyManagerTestCases </dev/null 2>&1 # Expected: MixedManagedProfileOwnerTest runs vpn, MixedProfileOwnerTest does not run vpn
Test: cts-tradefed run cts --module CtsDevicePolicyManagerTestCases </dev/null 2>&1 # Expected: MixedManagedProfileOwnerTest and MixedProfileOwnerTest both run vpn
Change-Id: Idb81a1d7a57595cf22b42a25e90c72a60c6977f0
evicepolicy/src/com/android/cts/devicepolicy/DeviceAndProfileOwnerTest.java
evicepolicy/src/com/android/cts/devicepolicy/MixedDeviceOwnerTest.java
evicepolicy/src/com/android/cts/devicepolicy/MixedManagedProfileOwnerTest.java
evicepolicy/src/com/android/cts/devicepolicy/MixedProfileOwnerTest.java
77f017c2b1076d464811fc9c61c49f8f5dd39ced 03-Feb-2017 Esteban Talavera <etalavera@google.com> Add tests for getLockTaskPackages

Bug: 34614754

Test: cts-tradefed run cts-dev --module DevicePolicyManager --test com.android.cts.devicepolicy.DeviceOwnerTest#testLockTask_affiliatedSecondaryUser
Test: cts-tradefed run cts-dev --module DevicePolicyManager --test com.android.cts.devicepolicy.DeviceOwnerTest#testLockTask_unaffiliatedUser
Test: cts-tradefed run cts-dev --module DevicePolicyManager --test com.android.cts.devicepolicy.DeviceOwnerTest#testLockTask_deviceOwnerUser

Change-Id: If8807f258a067acb0ba9a0a02a407242f3501fe0
evicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/AffiliationTest.java
evicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/LockTaskTest.java
evicepolicy/src/com/android/cts/devicepolicy/DeviceOwnerTest.java
9bcac9f5b51514bfdf467818f579db4d0374141e 06-Feb-2017 Winson Chung <winsonc@google.com> Merge "Adding check to skip PiP tests if the device does not support it."
59ba27763d20bf75027a2e60ed7b1999a62fac81 04-Feb-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Batterystats validation tests - Foreground Service"
0444010020a02fc17be0dc849e86be37ac6261c5 04-Feb-2017 Amith Yamasani <yamasani@google.com> Batterystats validation tests - Foreground Service

Verify foreground service time tracking in batterystats dumpsys

Also fix batterystats dumpsys format verification tests that
were outdated

Change-Id: I74a61c6f2be1b6b84e5fd3f1a7596e142c870616
Fixes: 34983922
Bug: 34233085
Test: cts-tradefed run cts-dev -m CtsIncidentHostTestCases
umpsys/src/android/dumpsys/cts/BatteryStatsDumpsysTest.java
ncident/apps/batterystatsapp/AndroidManifest.xml
ncident/apps/batterystatsapp/src/com/android/server/cts/device/batterystats/BatteryStatsProcessStateTests.java
ncident/apps/batterystatsapp/src/com/android/server/cts/device/batterystats/SimpleActivity.java
ncident/apps/batterystatsapp/src/com/android/server/cts/device/batterystats/SimpleForegroundService.java
ncident/src/com/android/server/cts/BatteryStatsValidationTest.java
57990729c0a898eabd2cdc075583ac92fbaf4ce0 02-Feb-2017 Dianne Hackborn <hackbod@google.com> New CTS tests for multi-process instrumentation.

Test: this is it!
Change-Id: I010047a0d53430ee4298f93db7d4adf655a24a36
evicepolicy/app/SimpleApp/AndroidManifest.xml
evicepolicy/app/SimpleApp/src/com/android/cts/launcherapps/simpleapp/SimpleReceiver.java
evicepolicy/app/SimpleApp/src/com/android/cts/launcherapps/simpleapp/SimpleRemoteReceiver.java
cbceb69156680aa7e307b4c3108470e5cc895b4d 03-Feb-2017 Netta Peterbursky <nettap@google.com> Merge "CTS test for protobufferized BatteryManager dumpsys"
32db1a1f737fafc7b7cf7bb642c37bed63c36d0f 03-Feb-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Test lock task mode for affiliated secondary user"
cebce48c5d121e6e8f3e0e96a02e73dfc146c2a7 01-Feb-2017 Esteban Talavera <etalavera@google.com> Test lock task mode for affiliated secondary user

Bug: 34614754

Test: cts-tradefed run cts-dev --module DevicePolicyManager --test com.android.cts.devicepolicy.DeviceOwnerTest#testLockTask_affiliatedSecondaryUser
Test: cts-tradefed run cts-dev --module DevicePolicyManager --test com.android.cts.devicepolicy.DeviceOwnerTest#testLockTask_unaffiliatedUser
Test: cts-tradefed run cts-dev --module DevicePolicyManager --test com.android.cts.devicepolicy.DeviceOwnerTest#testLockTask_deviceOwnerUser
Change-Id: I0838df1a19e0bd87bceb48c51006037ea2e35a62
evicepolicy/app/CorpOwnedManagedProfile/src/com/android/cts/comp/provisioning/AffiliationTest.java
evicepolicy/app/DeviceOwner/Android.mk
evicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/AffiliationTest.java
evicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/LockTaskTest.java
evicepolicy/src/com/android/cts/devicepolicy/DeviceOwnerTest.java
3ff85c8e425234d5f69560c7d3f158b1718a35f0 01-Feb-2017 Arthur Hsu <arthurhsu@google.com> Skip tests using dock if split window unsupported.

Tests affected:
ActivityManagerActivityVisiblityTests#
testFinishActivityInNonFocusedStack
testTranslucentActivityOverDockedStack
ActivityManagerAppConfigurationTests#
testConfigurationUpdatesWhenResizedFromFullscreen
testConfigurationUpdatesWhenResizedFromDockedStack
testConfigurationUpdatesWhenRotatingWhileDocked
testConfigurationUpdatesWhenRotatingToSideFromDocked
testSameConfigurationFullSplitFullRelaunch
testSameConfigurationFullSplitFullNoRelaunch
testSameConfigurationSplitFullSplitRelaunch
testSameConfigurationSplitFullSplitNoRelaunch
ActivityManagerManifestLayoutTests#testMinimalSizeDocked
ActivityManagerReplaceWindowTests

Bug: 33456072
Test: cts -m CtsServicesHostTestCases --test android.server.cts.<test afftected>

Change-Id: Id20d1fb6d3e3108f11e1562d265045bce8e6d2cc
ervices/activitymanager/src/android/server/cts/ActivityManagerActivityVisiblityTests.java
ervices/activitymanager/src/android/server/cts/ActivityManagerAppConfigurationTests.java
ervices/activitymanager/src/android/server/cts/ActivityManagerManifestLayoutTests.java
ervices/activitymanager/src/android/server/cts/ActivityManagerReplaceWindowTests.java
3d38cb6ceb6f50e1ac853b52d4182a675682224d 03-Feb-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Validate wakelock reporting"
9d1fe9cd8083bf52680e04fd790ad413fb5b4946 03-Feb-2017 Joshua Schwarz <joshuaschwarz@google.com> Merge "Increase arbitrary wait for boot. am: c4dd18f81d" am: b80edd7c50 am: 9fa13f1052 am: 7c89141299
am: eb2be7e778

Change-Id: Ief2e37af4e3c2b5033b99205ba740de7a6f75095
ff88c386f82e663334eb7e74502f93d41bd4b0b3 03-Feb-2017 Joshua Schwarz <joshuaschwarz@google.com> Increase arbitrary wait for boot. am: c4dd18f81d am: b06ed29504
am: c6f2643511

Change-Id: I084c579b8d63ab3d535864e6687353f49b6ae6ee
eb2be7e778bc41b38fc26b7ad2ca738b91d20c1e 03-Feb-2017 Joshua Schwarz <joshuaschwarz@google.com> Merge "Increase arbitrary wait for boot. am: c4dd18f81d" am: b80edd7c50 am: 9fa13f1052
am: 7c89141299

Change-Id: I25a51b904c6f7d02c11f3f0e27045a193ba6ad09
7c89141299a0badac5fee1d22097024760c5d6fb 03-Feb-2017 Joshua Schwarz <joshuaschwarz@google.com> Merge "Increase arbitrary wait for boot. am: c4dd18f81d" am: b80edd7c50
am: 9fa13f1052

Change-Id: I0961b9ac5d1f0d649a1e2246e70854f390e37fab
b06ed29504d0a685f782243974b4659d0af98680 03-Feb-2017 Joshua Schwarz <joshuaschwarz@google.com> Increase arbitrary wait for boot.
am: c4dd18f81d

Change-Id: I0a8615f879bc91cf8e0da35c8d678696fea59793
62e5f0d1ca938bef6cd012efb220d36e7c23bfbb 03-Feb-2017 Chris Manton <cmanton@google.com> Include Wear device idle settings
am: ce1208ad12

Change-Id: Iea4eb54b1baa1df7a7eb680bd51db8bbdb237ce4
8504a253db56c35548e8b4fdfb453e4f971618a2 03-Feb-2017 Joshua Schwarz <joshuaschwarz@google.com> Increase arbitrary wait for boot.
am: c4dd18f81d

Change-Id: I9c8220e8d951318d80d2d1f4a5e7065183ba4f77
97949dbbbe1757789878400710ba4ef2a3aec70b 03-Feb-2017 Treehugger Robot <treehugger-gerrit@google.com> Merge "Include Wear device idle settings" into nougat-mr1-cts-dev
c4dd18f81dca978372a4be0385182d14fbbe84e5 31-Jan-2017 Joshua Schwarz <joshuaschwarz@google.com> Increase arbitrary wait for boot.

Bug: 34824902
Change-Id: I35b74cfe06cc145eb7cb94ba0d16f637944da59f
evicepolicy/src/com/android/cts/devicepolicy/BaseDevicePolicyTest.java
23e80747d5387d0929e3e06a9a86d659f73bf0f3 02-Feb-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Added CTS tests for alert windows"
3f0252c6bacaf0ca0fec5442562e3ae269e17878 31-Jan-2017 Wale Ogunwale <ogunwale@google.com> Added CTS tests for alert windows

Used for testing alert windows APIs.

Test: android.server.cts.AlertWindowsTests
Bug: 33256752
Change-Id: I9e5b4955d9f103a572eb12244ba40bbc9445c38d
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/ActivityAndWindowManagerOverrideConfigTests.java
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/ActivityManagerActivityVisibilityTests.java
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/ActivityManagerAmStartOptionsTests.java
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/ActivityManagerAppConfigurationTests.java
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/ActivityManagerConfigChangeTests.java
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/ActivityManagerDisplayTests.java
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/ActivityManagerDockedStackTests.java
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/ActivityManagerFreeformStackTests.java
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/ActivityManagerManifestLayoutTests.java
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/ActivityManagerPinnedStackTests.java
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/ActivityManagerReplaceWindowTests.java
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/ActivityManagerTransitionSelectionTests.java
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/AnimationBackgroundTests.java
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/DisplaySizeTest.java
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/KeyguardLockedTests.java
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/KeyguardTests.java
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/KeyguardTransitionTests.java
ervices/activityandwindowmanager/util/run-test
ervices/activityandwindowmanager/util/src/android/server/cts/WindowManagerState.java
ervices/activityandwindowmanager/windowmanager/AndroidTest.xml
ervices/activityandwindowmanager/windowmanager/alertwindowapp/Android.mk
ervices/activityandwindowmanager/windowmanager/alertwindowapp/AndroidManifest.xml
ervices/activityandwindowmanager/windowmanager/alertwindowapp/src/android/server/alertwindowapp/AlertWindowTestActivity.java
ervices/activityandwindowmanager/windowmanager/alertwindowappsdk25/Android.mk
ervices/activityandwindowmanager/windowmanager/alertwindowappsdk25/AndroidManifest.xml
ervices/activityandwindowmanager/windowmanager/alertwindowappsdk25/src/android/server/alertwindowappsdk25/AlertWindowTestActivitySdk25.java
ervices/activityandwindowmanager/windowmanager/alertwindowappsdk25/src/android/server/alertwindowappsdk25/AlertWindowTestBaseActivity.java
ervices/activityandwindowmanager/windowmanager/src/android/server/cts/AlertWindowsTests.java
e8227d3bc35d65229a86251477ac2168699f7169 02-Feb-2017 Chris Wren <cwren@android.com> Merge "framework for boot stats tests"
14a19d7d5c28bf5765f502f511b9be918129888a 02-Feb-2017 Michael Kwan <mkwan@google.com> Fix failure due to accessibility node not updated after scrolling.
am: e3e99db4ff

Change-Id: I39a40960388bfefb0fb62b99fefc8ad5925fec31
1b84010b9b156d0352a3c21258b7f3e898753dbc 27-Jan-2017 Netta P <nettap@google.com> CTS test for protobufferized BatteryManager dumpsys

Bug: 34227623
Test: cts-tradefed run cts-dev -t CtsIncidentHostTestCases
Change-Id: Ib652d6adeb78d1d15034e232a743bc0b422e7a69
ncident/src/com/android/server/cts/BatteryIncidentTest.java
cc607df16504e3930ef2f80ae7432411e8528fda 02-Feb-2017 Greg Plesur <plesur@google.com> Exempt Watch from testPackageInstallUserRestrictions.
am: 591c82b42c

Change-Id: If8803fcfbbd6dae21e23e9eb0f9aed519d1743a8
3c6561b491b66a54e4ba47cf0d51b44ea0e0d6e6 02-Feb-2017 Makoto Onuki <omakoto@google.com> Skip shortcut backup CTS when device has no FEATURE_BACKUP
am: d1a8bc3ea8

Change-Id: I44a124ee97821ee5659a43ce2aef4c04e6af07da
0a286abd837292bd880231bf7118d51f5379bc00 02-Feb-2017 Sergey Beliakov <sbeliakov@google.com> Added skip of android.host.retaildemo.DemoModeTest#testIsDemoUser_inDemoUser if device doesn't support multiple users
am: 37e097ec6b

Change-Id: I536ddcba590a3e3a001bc192864bf34c450b080d
91594f24258384dc54301556bcd5ecf39e809d12 02-Feb-2017 Winson Chung <winsonc@google.com> Adding check to skip PiP tests if the device does not support it.

Test: android.server.cts.ActivityManagerPinnedStackTests
Test: android.server.cts.KeyguardLockedTests
Change-Id: Ief6098348b18152572f5b5736eed2ccf55dfc0c1
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/ActivityManagerPinnedStackTests.java
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/KeyguardLockedTests.java
246878e78818236cc3360aed9736d1312fa8b72b 02-Feb-2017 Marco Nelissen <marcone@google.com> Merge "Merge remote-tracking branch 'aosp/nougat-mr1-cts-dev' into master"
afc75dd63eaf56f13fbe0e4230aaae8a10dc54bb 02-Feb-2017 Marco Nelissen <marcone@google.com> Merge remote-tracking branch 'aosp/nougat-mr1-cts-dev' into master
am: 17bc21c9a9

Change-Id: Ic39865d5adfc660c8134f4c271c243dea24239ff
b39dc77ded2fd6406fc751f981e34659ffd9b23b 02-Feb-2017 Marco Nelissen <marcone@google.com> Merge "Merge remote-tracking branch 'aosp/nougat-mr1-cts-dev' into master" into nyc-mr1-dev-plus-aosp
9ca812291af0a9b256e1ab87120062096de54247 02-Feb-2017 Marco Nelissen <marcone@google.com> Merge "Merge remote-tracking branch 'aosp/nougat-mr1-cts-dev' into master"
c3b56412a438b9cf6e41b914cf9f31915b1a49c4 02-Feb-2017 Winson Chung <winsonc@google.com> Merge changes I3050fa9f,I1a335e42,I7efb9320,I22685560

* changes:
Adding test to ensure that activities can not enter PiP when locked.
Test to ensure PiP activities don't get stopped.
Add test to enter PiP from task with multiple activities.
Removing workaround in PIP CTS tests.
907b253c87cb340f66f9635821c1b30fd5f02174 01-Feb-2017 Amith Yamasani <yamasani@google.com> Validate wakelock reporting

Grab wakelocks and verify that batterystats dumpsys
reports the correct duration.

Bug: 34233085
Test: cts-tradefed run cts-dev -m CtsIncidentHostTestCases
Change-Id: Iab5e8c1ef86b36f74d8fefa95851911455df4f4e
ncident/apps/batterystatsapp/Android.mk
ncident/apps/batterystatsapp/AndroidManifest.xml
ncident/apps/batterystatsapp/src/com/android/server/cts/device/batterystats/BatteryStatsDeviceTestBase.java
ncident/apps/batterystatsapp/src/com/android/server/cts/device/batterystats/BatteryStatsWakeLockTests.java
ncident/src/com/android/server/cts/BatteryStatsValidationTest.java
88e87c4826fad0d80fe130c981685a0e845eea3c 01-Feb-2017 Yorke Lee <yorkelee@google.com> DO NOT MERGE Fallback to freeform windows if split screen not supported

If a device does not support split screen multiwindow mode, but
supports freeform windows, try to run the cross app drag and
drop tests using two side by side freeform windows.

Bug: 33454236
Test: run cts -m CtsDragAndDropHostTestCases runs and passes on
device that supports docked stack

run cts -m CtsDragAndDropHostTestCases runs and passes on
device that supports freeform stack only

Change-Id: Ie999bf0f97c9ecd402baad251be7158f829160d1
ervices/windowmanager/src/android/wm/cts/CrossAppDragAndDropTests.java
943e5da97b02016237ed6b52a9990a2cd5786476 11-Jan-2017 Yorke Lee <yorkelee@google.com> DO NOT MERGE Improve parsing of "am stack list" in CTS drag and drop tests

Speculative fix for CTSCrossAppDragAndDropTests with the
assumption that some unexpected adb shell am stack list output
is causing the test to fail on CTS test bots.

This fix uses a regular expression to correctly identify the
intended task to reduce false positives.

Test: Tests pass locally with instrumented build of nyc-mr2-dev
with modified ActivityManager that outputs the same output as shown
on CTS test bots host logs.
Without the fix, the tests fail on the modified ActivityManager output.
Bug: 32905009

Change-Id: I33297e239686ad9ddea8cace9353f4557dc65232
ervices/windowmanager/src/android/wm/cts/CrossAppDragAndDropTests.java
aa6542883e333f214cc25cb1fd0c77d2ec272327 01-Feb-2017 Mario Bertschler <bmario@google.com> Merge "CTS tests for appwidget dumpsys in protobuf format"
34a549c0479a98a74f87914e1074aa1ec4959a2d 30-Jan-2017 Winson Chung <winsonc@google.com> Adding test to ensure that activities can not enter PiP when locked.

Test: android.server.cts.ActivityManagerPinnedStackTests
Test: #testDisallowEnterPipActivityLocked
Change-Id: I3050fa9f9e210bef23515c1675bec2a029268a25
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/ActivityManagerPinnedStackTests.java
aab9fafd370caa8a6387cd6e0f044303fb9338cd 28-Jan-2017 Winson Chung <winsonc@google.com> Test to ensure PiP activities don't get stopped.

Test: android.server.cts.ActivityManagerPinnedStackTests
Test: #testEnterPipWithResumeWhilePausingActivityNoStop
Change-Id: I1a335e42589654ebb96715ba23e952555e31ff54
ervices/activityandwindowmanager/activitymanager/app/AndroidManifest.xml
ervices/activityandwindowmanager/activitymanager/app/src/android/server/cts/PipActivity.java
ervices/activityandwindowmanager/activitymanager/app/src/android/server/cts/ResumeWhilePausingActivity.java
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/ActivityManagerPinnedStackTests.java
ervices/activityandwindowmanager/util/src/android/server/cts/ActivityManagerTestBase.java
4fcde107cfe99de459dd16c581cfeede29958665 27-Jan-2017 Winson Chung <winsonc@google.com> Add test to enter PiP from task with multiple activities.

- Existing tests with multiple activities start activities directly
into the pinned stack, which was not testing the alternate logic to
move the top activity to the pinned stack instead of moving the
entire task to the pinned stack when enterPictureInPictureMode() is
called.
- Also repurpose the activity which launches a PiP activity to test
tap-to-finish to use the generic PipActivity.

Bug: 34394702
Test: android.server.cts.ActivityManagerPinnedStackTests
Test: #testEnterPipFromTaskWithMultipleActivities
Change-Id: I7efb9320383fd09fb694f18ae1623c08e255bfcd
ervices/activityandwindowmanager/activitymanager/app/AndroidManifest.xml
ervices/activityandwindowmanager/activitymanager/app/src/android/server/cts/LaunchEnterPipActivity.java
ervices/activityandwindowmanager/activitymanager/app/src/android/server/cts/LaunchImeWithPipActivity.java
ervices/activityandwindowmanager/activitymanager/app/src/android/server/cts/LaunchTapToFinishPipActivity.java
ervices/activityandwindowmanager/activitymanager/app/src/android/server/cts/PipActivity.java
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/ActivityManagerPinnedStackTests.java
6eaa3f3feb48f6d6e964d60baf253bbd1b373094 25-Jan-2017 Winson Chung <winsonc@google.com> Removing workaround in PIP CTS tests.

- We were previously relying on touching the screen to trigger it back
into fullscreen. Now, we can simply relaunch the activity to trigger
it to expand.

Test: android.server.cts.ActivityManagerPinnedStackTests
Change-Id: I22685560f9b399f920689fb22dff24818f99c755
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/ActivityManagerPinnedStackTests.java
6bee5b0c049d88c407672a5555e832d806ad1d9d 01-Feb-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "All cts uses notification channels and new Builder constructor"
bfe4204461bb95ceed076f2bdf913fc35ee9324b 01-Feb-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Use sandbox v2"
68640bfd779e4b2200379d516507a8d99f346eeb 01-Feb-2017 Badash <badash@google.com> more annonations

Change-Id: I07744978741b5313e6a03b450612c16c74b26335
ecurity/src/android/security/cts/Poc16_10.java
ecurity/src/android/security/cts/Poc16_12.java
ecurity/src/android/security/cts/Poc17_01.java
11ded1a3720a1bcf9cd64de05c9e4e6ee73e5f65 01-Feb-2017 Andrii Kulian <akulian@google.com> Merge "Test that moveTaskToBack finishes not visible activity"
55ad56e9076ae0ead5d418aa56398bac2f912c48 31-Jan-2017 Arthur Hsu <arthurhsu@google.com> Detect support in ActivityManagerDockedStackTests.

If split multi-window mode is not supported, skip the tests.

Bug: 33456072
Test: cts -m CtsServicesHostTestCases --test android.server.cts.ActivityManagerDockedStackTests
Change-Id: Ia662693b92cece3abaa903940a4191abb98b0f88
ervices/activitymanager/src/android/server/cts/ActivityManagerDockedStackTests.java
ervices/activitymanager/src/android/server/cts/ActivityManagerTestBase.java
b0bbf679972b4e624294550324a1c03992986300 30-Jan-2017 Geoffrey Pitsch <gpitsch@google.com> All cts uses notification channels and new Builder constructor

Test: ran cts for all *Test.java files in CL
Change-Id: I62f6eae53b539a1cfc79a05a2aa4070bf30fbfc0
evicepolicy/app/VpnApp/src/com/android/cts/vpnfirewall/ReflectorVpnService.java
et/app2/src/com/android/cts/net/hostside/app2/MyBroadcastReceiver.java
et/app2/src/com/android/cts/net/hostside/app2/MyForegroundService.java
et/app2/src/com/android/cts/net/hostside/app2/MyService.java
a268f3065c73f900688f0df3cf960ac6551dbb4e 31-Jan-2017 Chris Wren <cwren@android.com> framework for boot stats tests

Bug: 34228874
Test: cts-tradefed run cts-dev --module CtsBootStatsTestCases
Change-Id: Ic045a333be22e651f3cab5b408e5a4e20ab53eba
ootstats/Android.mk
ootstats/AndroidTest.xml
ootstats/src/android/bootstats/cts/BootStatsHostTest.java
a8308401cec4342fe5d7d3426dcaeaaf65488d85 27-Jan-2017 Marco Nelissen <marcone@google.com> Merge remote-tracking branch 'aosp/nougat-mr1-cts-dev' into master

Test: built
Change-Id: I0e9438d5fdb01c94077aa22cdf402dee8bf5ec97
ustainedperf/src/android/SustainedPerformance/cts/SustainedPerformanceHostTest.java
29467cdcf43ce5e8b3be553f2eaa33acf8bb77cd 31-Jan-2017 Andrii Kulian <akulian@google.com> Test that moveTaskToBack finishes not visible activity

Check that if activity that is covered by other activity calls
moveTaskToBack, it will finish successfully and won't be shown
again in back stack.

Bug: 34195099
Test: android.server.cts.ActivityManagerActivityVisibilityTests
Test: #testFinishActivityWithMoveTaskToBackAfterPause
Test: #testFinishActivityWithMoveTaskToBackAfterStop
Change-Id: I606e3ff5ff4df2ff1fc7be7c21fe214a90f92446
ervices/activityandwindowmanager/activitymanager/app/AndroidManifest.xml
ervices/activityandwindowmanager/activitymanager/app/src/android/server/cts/BroadcastReceiverActivity.java
ervices/activityandwindowmanager/activitymanager/app/src/android/server/cts/MoveTaskToBackActivity.java
ervices/activityandwindowmanager/activitymanager/app/src/android/server/cts/tools/ActivityLauncher.java
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/ActivityManagerActivityVisibilityTests.java
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/ActivityManagerDisplayTests.java
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/KeyguardTests.java
ervices/activityandwindowmanager/util/src/android/server/cts/ActivityManagerTestBase.java
ervices/activityandwindowmanager/util/src/android/server/cts/WindowManagerState.java
82c1a822b6264e9cab59afa6fb611f15f8a1ba93 31-Jan-2017 Todd Kennedy <toddke@google.com> Use sandbox v2

Bug: 25119046
Test: cts-tradefed run commandAndExit cts-dev -m CtsAppSecurityHostTestCases -t android.appsecurity.cts.EphemeralTest
Change-Id: I0dae2035c7c457543dbcc525aa51bb2424dea0eb
ppsecurity/test-apps/EphemeralTestApp/EphemeralApp1/AndroidManifest.xml
ppsecurity/test-apps/EphemeralTestApp/EphemeralApp2/AndroidManifest.xml
c84b1ae46370afa45075fe962d695ffc757e3386 31-Jan-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Add instant cookie APIs - CTS"
1e7292fe280d93b1eb74e3b6c3e4ec9dbb0f65e3 31-Jan-2017 Svetoslav Ganov <svetoslavganov@google.com> Add instant cookie APIs - CTS

This change adds APIs for instant apps to store cookie data
that is presisted across instant installs and acorss the
upgrade from an instant to a standard app. Standard apps
can use the cookie APIs but when they are uninstalled the
cookie is also deleted. The cookies are kept longer than
the instant apps as they are much smaller - 16KB by default.
We can change the cookie size via a system setting i.e.
after we ship we can increase size if needed.

We also add internal APIs to surface information about
installed and uninstalled instant apps which should be
used for showing them in the UI. For this puporse we store
the icon, permissions, and label of unisntalled apps. If
the app is re-installed we drop this meta-data but keep
the cookie around.

Test: CTS tests pass; hiddent APIs tested manually

Change-Id: Iefcf1f0aae79756b7354789cd9b47c607aabda9f
ppsecurity/src/android/appsecurity/cts/InstantCookieHostTest.java
ppsecurity/test-apps/InstantCookieApp/Android.mk
ppsecurity/test-apps/InstantCookieApp/AndroidManifest.xml
ppsecurity/test-apps/InstantCookieApp/src/test/instant/cookie/CookieTest.java
s/src/android/os/cts/StaticSharedLibsHostTests.java
fa36583e1d941428a9788ad2d791b47a1b728b76 25-Jan-2017 Mario Bertschler <bmario@google.com> CTS tests for appwidget dumpsys in protobuf format

Test: tests the proto format of the dump for widgets
Bug: 33088921
Change-Id: I04fa48ffcde716133fa3a064db7830d47f7b9487
ncident/apps/boundwidgetapp/Android.mk
ncident/apps/boundwidgetapp/AndroidManifest.xml
ncident/apps/boundwidgetapp/res/xml/appwidget_info.xml
ncident/apps/boundwidgetapp/src/android/appwidget/cts/AppWidgetTest.java
ncident/apps/boundwidgetapp/src/android/appwidget/cts/provider/FirstAppWidgetProvider.java
ncident/apps/boundwidgetapp/src/android/appwidget/cts/provider/SecondAppWidgetProvider.java
ncident/src/com/android/server/cts/AppWidgetIncidentTest.java
223f2fb903c2d7c5029028ae30054d6da1fcb516 31-Jan-2017 Makoto Onuki <omakoto@google.com> Merge "Move FramestatsTestApp to apps/"
34737e52a42f776a346d51c00f9b3605d6835918 31-Jan-2017 Sandeep Patil <sspatil@google.com> Merge "security: hostsidetest: fix file_context resourse in build" am: 2b9c668814 am: 163131e2fb am: 32b3bfe2ad
am: 2152462608

Change-Id: Ibf3807dbbf13abcc75400d7b5d706a7496a0b726
2152462608a0df819c2767403e39c04522efb6ea 31-Jan-2017 Sandeep Patil <sspatil@google.com> Merge "security: hostsidetest: fix file_context resourse in build" am: 2b9c668814 am: 163131e2fb
am: 32b3bfe2ad

Change-Id: I11d1b63a9bc16e8f0861d5ef94ec6492ec939421
4550e18ea1bd75e3ab6fda635b32f4bfe7892097 31-Jan-2017 Makoto Onuki <omakoto@google.com> Merge "CTS for dumpsys netstats"
32b3bfe2ade243074432c4f9a835f688a9e4f1d1 31-Jan-2017 Sandeep Patil <sspatil@google.com> Merge "security: hostsidetest: fix file_context resourse in build" am: 2b9c668814
am: 163131e2fb

Change-Id: I2d8e5a316d0fbc06764e4f442614132b23419e36
b527361fd3ffaecc3a60141352220505262d4454 25-Jan-2017 Makoto Onuki <omakoto@google.com> Move FramestatsTestApp to apps/

Test: cts-tradefed run cts --skip-device-info --skip-preconditions --skip-system-status-check com.android.compatibility.common.tradefed.targetprep.NetworkConnectivityChecker -a armeabi-v7a -l INFO -m CtsDumpsysHostTestCases

Change-Id: I66920d107dd4ddf09bbf10a98d03f7ea50134acd
umpsys/FramestatsTestApp/Android.mk
umpsys/FramestatsTestApp/AndroidManifest.xml
umpsys/FramestatsTestApp/src/com/android/cts/framestatstestapp/FramestatsTestAppActivity.java
umpsys/apps/Android.mk
umpsys/apps/FramestatsTestApp/Android.mk
umpsys/apps/FramestatsTestApp/AndroidManifest.xml
umpsys/apps/FramestatsTestApp/src/com/android/cts/framestatstestapp/FramestatsTestAppActivity.java
ce1208ad129057e5219e4078768710b24f6574f0 15-Oct-2016 Chris Manton <cmanton@google.com> Include Wear device idle settings

Certain tests interacting with device idle
must set correctly both the normal and wear
device idle setting space.

Bug: 32183373

Test: Run on wear device and Nexus6P
run cts --skip-device-info -m CtsHostsideNetworkTests -t com.android.cts.net.HostsideRestrictBackgroundNetworkTests#testDozeModeMetered_enabledButWhitelistedOnNotificationAction
run cts --skip-device-info -m CtsHostsideNetworkTests -t com.android.cts.net.HostsideRestrictBackgroundNetworkTests#testDozeModeNonMetered_enabledButWhitelistedOnNotificationAction

Change-Id: I6a53d29021a7d4a257b102a4d3bd5d2cc845c16f
et/app/src/com/android/cts/net/hostside/AbstractRestrictBackgroundNetworkTestCase.java
11c7c8b46dcae9b8ce6ff7e716764a2c90204095 30-Jan-2017 Sandeep Patil <sspatil@google.com> Merge "security: update tests after property_context split" am: a5a6974000 am: 63b1169af6 am: 636e39a104
am: 178b3a6a11

Change-Id: If2402c830a9e58c58939c8b2e9cc46de73d4d299
178b3a6a11c64e2b79efabd15c4251d501b0908f 30-Jan-2017 Sandeep Patil <sspatil@google.com> Merge "security: update tests after property_context split" am: a5a6974000 am: 63b1169af6
am: 636e39a104

Change-Id: Ie80e495bebe25c080cbd3f5f3a3fe4efda115b25
636e39a10497d133d4aebfe1c46a058132df24d8 30-Jan-2017 Sandeep Patil <sspatil@google.com> Merge "security: update tests after property_context split" am: a5a6974000
am: 63b1169af6

Change-Id: I44b76d4e2413037257e02eebc5eebe317469227c
2c3bd4263d701f29e367be4b9faa6e2004fb37dc 27-Jan-2017 Sandeep Patil <sspatil@google.com> security: hostsidetest: fix file_context resourse in build

Change Ic64eeab7fc183abc4b9f403dff54aab4c3877832 missed
updating the changed name of the target in resources.

Test: make CtsSecurityHostTestCases

Change-Id: I798eee1a33915f5a1e98ff5b8ce97bceadacb521
Signed-off-by: Sandeep Patil <sspatil@google.com>
ecurity/Android.mk
b7e958732b19ff8613925198c6af5056ed70ff27 27-Jan-2017 Makoto Onuki <omakoto@google.com> CTS for dumpsys netstats

Test: cts-tradefed run cts --skip-device-info --skip-preconditions --skip-system-status-check com.android.compatibility.common.tradefed.targetprep.NetworkConnectivityChecker -a armeabi-v7a -l INFO -m CtsIncidentHostTestCases -t 'com.android.server.cts.NetstatsIncidentTest#testSanityCheck'

Change-Id: I35f77ebf6aa5bfc837b15e0502b47dc43e39d972
ncident/apps/netstatsapp/src/com/android/server/cts/netstats/NetstatsDeviceTest.java
ncident/src/com/android/server/cts/NetstatsIncidentTest.java
ncident/src/com/android/server/cts/ProtoDumpTestCase.java
233ad042310aafb56113a7774f3fce483d7f3a25 25-Jan-2017 Edman Anjos <edmanp@google.com> CTS tests for DPMS delegation refactor and block uninstall.

Implement hostside test function
DeviceAndProfileOwnerTest#testDelegation along with a client side
DelegateApp. This covers basic delegation properties and the
DELEGATION_CERT_INSTALL, DELEGATION_APP_RESTRICTIONS, and
DELEGATION_BLOCK_UNINSTALL scopes.

Bug: 33099995, 33105718
Test: cts-tradefed run cts-dev --module CtsDevicePolicyManagerTestCases --test com.android.cts.devicepolicy.MixedDeviceOwnerTest#testDelegation
Change-Id: I4fc7a4587e87a4784a1e122859e7353dd8a2d69a
evicepolicy/app/AppRestrictionsManagingApp/Android.mk
evicepolicy/app/AppRestrictionsManagingApp/AndroidManifest.xml
evicepolicy/app/AppRestrictionsManagingApp/src/com/android/cts/apprestrictions/managingapp/ApplicationRestrictionsManagerTest.java
evicepolicy/app/DelegateApp/Android.mk
evicepolicy/app/DelegateApp/AndroidManifest.xml
evicepolicy/app/DelegateApp/src/com/android/cts/delegate/AppRestrictionsDelegateTest.java
evicepolicy/app/DelegateApp/src/com/android/cts/delegate/BlockUninstallDelegateTest.java
evicepolicy/app/DelegateApp/src/com/android/cts/delegate/CertInstallDelegateTest.java
evicepolicy/app/DelegateApp/src/com/android/cts/delegate/DelegatedScopesReceiverActivity.java
evicepolicy/app/DelegateApp/src/com/android/cts/delegate/GeneralDelegateTest.java
evicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/ApplicationRestrictionsTest.java
evicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/DelegationTest.java
evicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/SetPolicyActivity.java
evicepolicy/src/com/android/cts/devicepolicy/DeviceAndProfileOwnerTest.java
594b88810f6702261b08fe94bd7213aeab781a92 30-Jan-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Test that profile owners on user can communicate with device owners"
043099b678b0a231cec86606780215fd2776f2c1 26-Jan-2017 Esteban Talavera <etalavera@google.com> Test that profile owners on user can communicate with device owners

Bug: 34429083

Test: cts-tradefed run cts -a armeabi-v7a --module DevicePolicyManager --test com.android.cts.devicepolicy.DeviceOwnerPlusProfileOwnerTest

Change-Id: Ia356d45ef901e3bd1deddcb27606a2a8cedcf0e6
evicepolicy/app/CorpOwnedManagedProfile/src/com/android/cts/comp/BindDeviceAdminServiceFailsTest.java
evicepolicy/app/CorpOwnedManagedProfile/src/com/android/cts/comp/BindDeviceAdminServiceGoodSetupTest.java
evicepolicy/app/CorpOwnedManagedProfile/src/com/android/cts/comp/ManagementTest.java
evicepolicy/app/CorpOwnedManagedProfile/src/com/android/cts/comp/Utils.java
evicepolicy/app/CorpOwnedManagedProfile/src/com/android/cts/comp/provisioning/UserRestrictionTest.java
evicepolicy/src/com/android/cts/devicepolicy/BaseDevicePolicyTest.java
evicepolicy/src/com/android/cts/devicepolicy/DeviceOwnerPlusManagedProfileTest.java
evicepolicy/src/com/android/cts/devicepolicy/DeviceOwnerPlusProfileOwnerTest.java
45448be83e56c832c7b896852d25509e51b50ef6 28-Jan-2017 Andrii Kulian <akulian@google.com> Merge "Rename flag that enables showing display content with keyguard"
263ea5133482db840d108b8c960a52017fd63901 28-Jan-2017 Amith Yamasani <yamasani@google.com> Merge "Fix a typo in test name"
968e724ffa6dead8b3a3b2b893a91ff719bf03b9 28-Jan-2017 Andrii Kulian <akulian@google.com> Rename flag that enables showing display content with keyguard

Renamed SHOW_WITH_INSECURE_LOCKSCREEN to CAN_SHOW_WITH_INSECURE_KEYGUARD.

Test: android.server.cts.ActivityManagerDisplayTests
Change-Id: Ib61888e8fef5cdaafd602c8fcc838b918e331c96
ervices/activityandwindowmanager/activitymanager/app/src/android/server/cts/VirtualDisplayActivity.java
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/ActivityManagerDisplayTests.java
6a9c82fd02966115c1edfc24ecd9c4e5036f260a 28-Jan-2017 Badash <badash@google.com> Initial commit for cts-sts am: ad8f575f1a am: b90735e8c9 am: 960b18d6f8 am: cb0415fe94 am: b6e6ba84fe
am: f2e266f845

Change-Id: I6dd58e114bc2181b6acd29e317e6ef3876a1a7b7
f2e266f845691a60944b8689ec6c25786581c066 28-Jan-2017 Badash <badash@google.com> Initial commit for cts-sts am: ad8f575f1a am: b90735e8c9 am: 960b18d6f8 am: cb0415fe94
am: b6e6ba84fe

Change-Id: I02d80f870cdaefe2b9fe2ae1aff51c7d5a69618f
1088fc93f1f1c1e10275bbca665bbbc13d09c07b 28-Jan-2017 Badash <badash@google.com> Initial commit for cts-sts am: ad8f575f1a am: b90735e8c9 am: 960b18d6f8
am: cb0415fe94

Change-Id: I1e0954b4169a43c7f50966a15410d6ec62c8fa39
b6e6ba84fe01d75d3e6c3229b99f93a06c8581d6 28-Jan-2017 Badash <badash@google.com> Initial commit for cts-sts am: ad8f575f1a am: b90735e8c9 am: 960b18d6f8
am: cb0415fe94

Change-Id: Ibf37da03b29d38256613e2ec30f0aca61d60a3bc
960b18d6f8de0d147dfeddb126256b8108bd3281 28-Jan-2017 Badash <badash@google.com> Initial commit for cts-sts am: ad8f575f1a
am: b90735e8c9

Change-Id: I3fa52a0438f924207482c7bb2e27b6f4ac67eec4
b90735e8c94eaa1c9f3f2f8f75d3b105d48de030 28-Jan-2017 Badash <badash@google.com> Initial commit for cts-sts
am: ad8f575f1a

Change-Id: I16d1932b3452f14e573c70d9efc83292b9e25036
0ae1272403b5159b327dcf4e66c671e2fc81e0e5 27-Jan-2017 Marco Nelissen <marcone@google.com> Merge remote-tracking branch 'aosp/nougat-mr1-cts-dev' into master

Test: built
Merged-In: I0e9438d5fdb01c94077aa22cdf402dee8bf5ec97
Change-Id: Idbd20b12eec0440369b37316f9ab2c84978f7725
e75f8acc6e677f642f46848c54afc98d9915f79d 28-Jan-2017 Amith Yamasani <yamasani@google.com> Fix a typo in test name

Bug: NA
Test: NA
Change-Id: Ic4382bd0b68c6291635bec3f18316cccaba04539
umpsys/src/android/dumpsys/cts/BatteryStatsDumpsysTesst.java
umpsys/src/android/dumpsys/cts/BatteryStatsDumpsysTest.java
17bc21c9a9f44c7347605df5f7ef76907318ce4d 27-Jan-2017 Marco Nelissen <marcone@google.com> Merge remote-tracking branch 'aosp/nougat-mr1-cts-dev' into master

Test: built
Change-Id: I0e9438d5fdb01c94077aa22cdf402dee8bf5ec97
ustainedperf/src/android/SustainedPerformance/cts/SustainedPerformanceHostTest.java
9d8b641f0207e5a431931cf3f7b3d31d2d9c854d 27-Jan-2017 Luis Hector Chavez <lhchavez@google.com> Better support test for DirectBootHostTest

Instead of relying on a feature/intent blacklist, depending on
android.software.device_admin seems to be more robust for
DirectBootHostTest.

Bug: 33754525
Test: run cts -m CtsAppSecurityHostTestCases -t android.appsecurity.cts.DirectBootHostTest
Change-Id: I03fb0ad9313baa5e2c74a3b0756a6e83eb1d5597
ppsecurity/src/android/appsecurity/cts/DirectBootHostTest.java
d21387ccaea8fa528c2c9568fc2cd9c106d20a31 27-Jan-2017 Takeshi Katae <takeshi.katae.xm@kyocera.jp> Wrong log filter in TrustedVoiceHostTest#testUnlock

This testcase ensure that log output is restricted to tag TrustedVoiceActivity only.
The log output filter is not correct, and will go fail even if the log output correctly.
We'd check this with below patch and found it went PASS.
<https://android-review.googlesource.com//#/c/310963/>
Signed-off-by: Takeshi Katae <takeshi.katae.xm@kyocera.jp>

Change-Id: Ie1de24e7134acb918d743c764ce0f7cabf1be897
rustedvoice/src/android/trustedvoice/cts/TrustedVoiceHostTest.java
4cd691906bd390319fa9cd62cf30cd93f5d890ed 26-Jan-2017 Andrii Kulian <akulian@google.com> Test showing content on virtual displays with locked

This adds tests for show-when-locked flag for virtual display
that changes its behavior when keyguard is shown, but can be
dismissed without entering credentials.

Bug: 34280365
Test: android.server.cts.ActivityManagerDisplayTests
Test: #testVirtualDisplayHidesContentWhenLocked
Test: #testShowWhenLockedVirtualDisplay
Test: #testShowWhenLockedPublicVirtualDisplay
Change-Id: I75528f1bec1e2448c8912ef09de22cc7f5e47430
ervices/activityandwindowmanager/activitymanager/app/src/android/server/cts/VirtualDisplayActivity.java
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/ActivityManagerDisplayTests.java
5215a54774db8c0e2c4324b908db9702d43fd714 27-Jan-2017 Tina Zhou <tinazh@google.com> Merge changes from topic 'CrossAppDragAndDropTests' into nougat-mr1-cts-dev

* changes:
DO NOT MERGE Fix CrossAppDragAndDropTests.
Disable drag and drop tests on Wear
6f336ac1f77e1a22e50ffbe248452653ae50ddf2 27-Jan-2017 Tina Zhou <tinazh@google.com> Merge "DO NOT MERGE: Skip "to side" test if not capable of multi-window or screen rotations" into nougat-mr1-cts-dev
41c9827c2938b5946193314c32cfdc0181268aa9 27-Jan-2017 Tina Zhou <tinazh@google.com> Merge "Fix failure due to accessibility node not updated after scrolling." into nougat-mr1-cts-dev
32ea375334e4b721af8b6a414873c893cf1ff3a2 27-Jan-2017 Tina Zhou <tinazh@google.com> Merge "Exempt Watch from testPackageInstallUserRestrictions." into nougat-mr1-cts-dev
bdbf3880f72bc9184f22a4c8488016362bae6a3a 27-Jan-2017 Tina Zhou <tinazh@google.com> Merge "Skip shortcut backup CTS when device has no FEATURE_BACKUP" into nougat-mr1-cts-dev
313864c792217b28eb638374d1316bec6ab6b57d 28-Dec-2016 Sandeep Patil <sspatil@google.com> security: update tests after property_context split

Bug: 33746484
Test: Build CtsSecurityHostTestCases

Change-Id: Ic1ea79625c23835559256a42ce30caade27dd20a
Signed-off-by: Sandeep Patil <sspatil@google.com>
ecurity/Android.mk
ecurity/src/android/security/cts/SELinuxHostTest.java
55250c811d02de528da827b9713bd7b06f46ea54 17-Sep-2016 Erik Wolsheimer <ewol@google.com> DO NOT MERGE Fix CrossAppDragAndDropTests.

BUG: 30120559
Change-Id: I5a37ecc21441684479c5dc2a65f1ac90dbdaa0e3
ervices/windowmanager/src/android/wm/cts/CrossAppDragAndDropTests.java
91e1658f36d984cd7f88d34eb80a73a25a91aafc 26-Jul-2016 Erik Wolsheimer <ewol@google.com> Disable drag and drop tests on Wear

BUG: 30120559
Change-Id: I7af87aa20cef0419a4525b72d8798361598919a8
ervices/windowmanager/src/android/wm/cts/CrossAppDragAndDropTests.java
4ddab430e167ffbfb2b228d91f7e31b4464c5fb3 02-Nov-2016 Ivan Podogov <ginkage@google.com> DO NOT MERGE: Skip "to side" test if not capable of multi-window or screen rotations

This fixes a race between change I38cf350f0fac3b4f9fb54f3b153e4ccd91eca6aa
(that introduced a new test) and Iae9908bca1d6681e3a29fe7ee8608b8942a6d6d3
(taht fixed old ones), adding the same check to the new test.

Bug: 32490449
Change-Id: Ifa72bdd9e58c540356d2d7690dfd4987e0fbaef0
ervices/activitymanager/src/android/server/cts/ActivityManagerAppConfigurationTests.java
37e097ec6b6714a90ace6e71748ea95383de3f42 24-Oct-2016 Sergey Beliakov <sbeliakov@google.com> Added skip of android.host.retaildemo.DemoModeTest#testIsDemoUser_inDemoUser if device doesn't support multiple users

Skipping the test if getDevice().isMultiUserSupported() reports no
multi user support.

Bug: 31944896
Change-Id: I8a3d1a2a50d1141d64517db3b13d3e922b4277fc
Merged-In: Ia64671e3a5e117d488b9f1890a22212267bc6a3d
etaildemo/src/android/host/retaildemo/DemoModeTest.java
d1a8bc3ea807c8e3b34188a6a61545410bc94bee 18-Oct-2016 Makoto Onuki <omakoto@google.com> Skip shortcut backup CTS when device has no FEATURE_BACKUP

Bug 31944895

Change-Id: I1839ac30ba924f8020bcc0da4127d42c3aff0649
hortcuts/hostside/src/android/content/pm/cts/shortcuthost/ShortcutManagerBackupTest.java
e3e99db4ffa9f2837228a78c7db22279aea74f2f 17-Nov-2016 Michael Kwan <mkwan@google.com> Fix failure due to accessibility node not updated after scrolling.

Bug: 32919327
Change-Id: Id368c6b379cd0a286007efd6e57a965103346e0f
ppsecurity/test-apps/UsePermissionApp23/src/com/android/cts/usepermission/BasePermissionsTest.java
591c82b42c4483b11c0faf519832792a2f03a3b5 03-Nov-2016 Greg Plesur <plesur@google.com> Exempt Watch from testPackageInstallUserRestrictions.

The PackageInstaller implemenation in AOSP does not allow apps
to initiate installation on Watch devices

BUG: 32020212
Change-Id: I4bcfab0b0a0be3421a9629a7cbc2f3a279ffaeeb
evicepolicy/src/com/android/cts/devicepolicy/DeviceAndProfileOwnerTest.java
38c1d6fad209d87a36456e977792b35e5a052ded 26-Jan-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Tests for app "category" API."
f8c7944eb578a0b40509208846e7d478fe506f3c 26-Jan-2017 Jeff Sharkey <jsharkey@android.com> Tests for app "category" API.

Define a category in the manifest and verify that it flows through.

Test: cts-tradefed run commandAndExit cts-dev -m CtsAppSecurityHostTestCases -t android.appsecurity.cts.StorageHostTest#testVerifyCategory
Bug: 33815939
Change-Id: I7c994d054544682a7ad82c4e5ad5a7a993d785e3
ppsecurity/src/android/appsecurity/cts/StorageHostTest.java
ppsecurity/test-apps/StorageAppA/AndroidManifest.xml
ppsecurity/test-apps/StorageStatsApp/src/com/android/cts/storagestatsapp/StorageStatsTest.java
8ed64ea121b14a1b5205bb5d841623732e59fc0a 26-Jan-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "CTS test for createAdminSupportIntent()"
1f7bbc500054e206cd6db6a40a0bb53dbb580d82 25-Jan-2017 phweiss <phweiss@google.com> CTS test for createAdminSupportIntent()

Bug:31215663
Test: cts-tradefed run cts --module CtsDevicePolicyManagerTestCases --test com.android.cts.devicepolicy.MixedDeviceOwnerTest#testCreateAdminSupportIntent
Test: cts-tradefed run cts --module CtsAdminTestCases --test android.admin.cts.DevicePolicyManagerTest#testCreateAdminSupportIntent_returnNullIfRestrictionIsNotSet

Change-Id: I7e8159b449bdd9db0a9820da936aa016449333a1
evicepolicy/app/DeviceAndProfileOwner/res/xml/device_admin.xml
evicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/PolicyTransparencyTest.java
evicepolicy/src/com/android/cts/devicepolicy/DeviceAndProfileOwnerTest.java
b329a5f6b9827985ec44e4b39e69d04a99e8dd0a 26-Jan-2017 Julien Desprez <jdesprez@google.com> Merge "Ensure DynamicConfig names do not conflict"
aa4c14ef6623a07385a000023f5b4e4032a2e121 26-Jan-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "CTS tests for new storage/quota APIs."
06198d67134dd54eb2ff09cdb7e70b797286f614 26-Jan-2017 Jeff Sharkey <jsharkey@android.com> CTS tests for new storage/quota APIs.

Consists of a single host app that drives three separate apps
which can be asked to allocate disk space in different ways. The
final app holds the PACKAGE_USAGE_STATS permission, so it can query
stats for the first two packages.

Each package uses Utils.useSpace() which allocates blobs of various
types in different storage locations, all of which we expect to be
tracked correctly by the OS. The size of each blob is a prime number
to aid debugging. Test writing blobs both manually and using
fallocate().

Start testing cache behavior flags, which will be finished in a
future CL once we have better adb commands for control.

Test: cts-tradefed run commandAndExit cts-dev -m CtsAppSecurityHostTestCases -t android.appsecurity.cts.StorageHostTest
Bug: 27948817, 30927649, 33811826
Change-Id: Ie6bd172f02c1ae17f6b4e33acddc43bc693e55f2
ppsecurity/src/android/appsecurity/cts/StorageHostTest.java
ppsecurity/test-apps/StorageApp/src/com/android/cts/storageapp/StorageTest.java
ppsecurity/test-apps/StorageApp/src/com/android/cts/storageapp/Utils.java
ppsecurity/test-apps/StorageAppA/Android.mk
ppsecurity/test-apps/StorageAppA/AndroidManifest.xml
ppsecurity/test-apps/StorageAppB/Android.mk
ppsecurity/test-apps/StorageAppB/AndroidManifest.xml
ppsecurity/test-apps/StorageStatsApp/Android.mk
ppsecurity/test-apps/StorageStatsApp/AndroidManifest.xml
ppsecurity/test-apps/StorageStatsApp/src/com/android/cts/storagestatsapp/StorageStatsTest.java
ad8f575f1a1bd792fac5af19fa87b75d214b90d8 19-Jan-2017 Badash <badash@google.com> Initial commit for cts-sts

Change-Id: Ibc2fee58f0411b0f9170205f6b1116ee1d85667f
ecurity/src/android/security/cts/Poc16_10.java
ecurity/src/android/security/cts/Poc16_12.java
ecurity/src/android/security/cts/Poc17_01.java
4fb02da44ff5fa7cf99ea67976f8c2024a9d7077 25-Jan-2017 Makoto Onuki <omakoto@google.com> Merge "Split DumpsysHostTest and make one test class for each service"
07459b983e24580123125b171339d1bf4f17a69e 25-Jan-2017 Luis Hector Chavez <lhchavez@google.com> Merge "Add android.app.action.SET_NEW_PASSWORD support as prerequisite of DirectBootHostTest" am: 4da4393cb9 am: a6a7090eb5 am: 560cdfb285
am: 24a0fea5d4

Change-Id: I0fbd281eeef068e3592c94bd1a95b48b2e579d91
24a0fea5d444313a208d8b3273d8a857eeb7edcd 25-Jan-2017 Luis Hector Chavez <lhchavez@google.com> Merge "Add android.app.action.SET_NEW_PASSWORD support as prerequisite of DirectBootHostTest" am: 4da4393cb9 am: a6a7090eb5
am: 560cdfb285

Change-Id: I2b9e53f9a54d059e2f88e13456568ae4e3dd3b3a
560cdfb2857d253d86e4779ba56a47ef7fd26417 25-Jan-2017 Luis Hector Chavez <lhchavez@google.com> Merge "Add android.app.action.SET_NEW_PASSWORD support as prerequisite of DirectBootHostTest" am: 4da4393cb9
am: a6a7090eb5

Change-Id: I7a6c80407b597c70e604c37b1bc5ecfbbdd41743
4da4393cb91a1c59e4b12b79d9e773a2b0ada631 25-Jan-2017 Treehugger Robot <treehugger-gerrit@google.com> Merge "Add android.app.action.SET_NEW_PASSWORD support as prerequisite of DirectBootHostTest"
d4a416590b959e1d8e28ab435f8f68e4719f710e 25-Jan-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "CTS: ACTION_PROVISIONING_SUCCESSFUL"
97d96b629ad082e753c496f5b16eea813a7bdd9e 24-Jan-2017 Mahaver <mahaver@google.com> CTS: ACTION_PROVISIONING_SUCCESSFUL

Added test to verify that ACTION_PROVISIONING_SUCCESSFUL intent is fired
after managed provisioning has successfully finished. Currently added
test only to test with managed profile flow.

Test: cts-tradefed run cts-dev -m CtsDevicePolicyManagerTestCases -t
com.android.cts.devicepolicy.ManagedProfileProvisioningTest

Bug: 33138551
Change-Id: I16115b1ff688eee3a8e76b436dff936338d53809
evicepolicy/app/ManagedProfile/AndroidManifest.xml
evicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/ProvisioningSuccessActivity.java
evicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/ProvisioningTest.java
evicepolicy/src/com/android/cts/devicepolicy/ManagedProfileProvisioningTest.java
3ae2463bd0b1aebfe6ab25d96836138d612a8a76 25-Jan-2017 Nicolas Prévot <nprevot@google.com> Merge "Update cts to the change in DISALLOW_REMOVE_MANAGED_PROFILE."
5336f0820d87eeb431603b804650a838c782f515 25-Jan-2017 Tomasz Mikolajewski <mtomasz@google.com> Merge "Follow up for CTS test for Web Links API."
75971284234bb859f33f45f8797919210c33e8b7 25-Jan-2017 Makoto Onuki <omakoto@google.com> Split DumpsysHostTest and make one test class for each service

Test: cts-tradefed run cts --skip-device-info --skip-preconditions --skip-system-status-check com.android.compatibility.common.tradefed.targetprep.NetworkConnectivityChecker -a armeabi-v7a -m CtsIncidentHostTestCases
Change-Id: I445a649008bb0c0a6670c31130ec10ce95b42e89
umpsys/src/android/dumpsys/cts/BaseDumpsysTest.java
umpsys/src/android/dumpsys/cts/BatteryStatsDumpsysTesst.java
umpsys/src/android/dumpsys/cts/DumpsysHostTest.java
umpsys/src/android/dumpsys/cts/ProcessStatsDumpsysTest.java
81ab2b2741e3eb47ab50ef18065227d644d897c4 24-Jan-2017 Winson Chung <winsonc@google.com> Merge "Removing resizability for PiP activities."
397054ab989b7a8b566e2abfbf1013645e6b6364 24-Jan-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "CTS for netstats proto"
745399dc6c1fd50b9825a1060eeff8d883a30203 24-Jan-2017 Makoto Onuki <omakoto@google.com> CTS for netstats proto

Bug: 34228873
Test: cts-tradefed run cts --skip-device-info --skip-preconditions --skip-system-status-check com.android.compatibility.common.tradefed.targetprep.NetworkConnectivityChecker -a armeabi-v7a -m CtsIncidentHostTestCases -t com.android.server.cts.NetstatsIncidentTest
Change-Id: I7915de735acbd8dac73dffc7b6960ea3a70c5bd2
ncident/src/com/android/server/cts/NetstatsIncidentTest.java
a4e3a9508618c411994bd40c14a499a22c2c58b9 24-Jan-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Adding CTS test for app-op controlling entering pip on hide."
1ebb482fd8020a1eb46758e21742d18d6a14b631 24-Jan-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Revert "CTS for LauncherApps lock-down""
15f2f8c63cb66d292860cb7c408bc12528ffb779 24-Jan-2017 The Android Automerger <android-build-merger@google.com> Manually merge branch 'nyc-mr2-dev-plus-aosp'

* nyc-mr2-dev-plus-aosp:
Ensure instrumentationRunFinished callback is called
Fix build, MediaPreparer unit tests
DO NOT MERGE StagefrightTest: add test for bug 32577290
DO NOT MERGE Test for potential overflow in Visualizer effect
DO NOT MERGE CTS Test for security vulnerability fix: Effect command might allow negative indexes
DO NOT MERGE: After we merge the commit for CVE-2014-9675,we updated the FreeType to the version 2.6.2. But after this modification, when we run cts case: android.theme.cts.ThemeHostTest#testHoloThemes, there are many fails.
CP MediaStress and MediaPreparer dynamic config changes to nougat
Fix for testFreeformWindowManagementSupport

BUG:34636041
498566a794db0481f0c7d3008a0d0e79754810bc 24-Jan-2017 Winson Chung <winsonc@google.com> Adding CTS test for app-op controlling entering pip on hide.

Bug: 34520451
Test: android.server.cts.ActivityManagerPinnedStackTests
Test: #testAppOpsDenyPipOnPause
Change-Id: I886070472370472ff930b6600079c434e6e9f2b8
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/ActivityManagerPinnedStackTests.java
639ea8ac68c171f3edc1fdd5938bf122da89cf5a 24-Jan-2017 Makoto Onuki <omakoto@google.com> Revert "CTS for LauncherApps lock-down"

This reverts commit d61f52ec3dc8955173c897aebde485e26ba490f4.

Change-Id: Ib963676c7919c751c36a858109969c35f35bde17
evicepolicy/app/LauncherTests/src/com/android/cts/launchertests/LauncherAppsTests.java
evicepolicy/src/com/android/cts/devicepolicy/BaseLauncherAppsTest.java
evicepolicy/src/com/android/cts/devicepolicy/LauncherAppsProfileTest.java
hortcuts/deviceside/multiuser/src/android/content/pm/cts/shortcut/multiuser/ShortcutManagerManagedUserTest.java
hortcuts/hostside/src/android/content/pm/cts/shortcuthost/ShortcutManagerMultiuserTest.java
f098778c598038f2225be549f89a9f0211d82e7d 24-Jan-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "CTS test: EXTRA_USER in ACTION_MANAGED_PROFILE_PROVISIONED"
1fc4b10593d726f1342ceb93792b792d2314fa8a 23-Jan-2017 Mahaver <mahaver@google.com> CTS test: EXTRA_USER in ACTION_MANAGED_PROFILE_PROVISIONED

Test: cts-tradefed run cts-dev -m CtsDevicePolicyManagerTestCases -t
com.android.cts.devicepolicy.DeviceOwnerPlusManagedProfileTest

Bug: 34597224
Change-Id: I82b54132d3fc05d5af2141342a866be9e2e84619
evicepolicy/app/CorpOwnedManagedProfile/src/com/android/cts/comp/provisioning/ManagedProfileProvisioningTest.java
1b97a6a1ae4fa0d76b5998fb61b619148b55f0cb 24-Jan-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "[CTS] tests for auto ringtone sync disable"
7bb6e29f7d29d8fb5d18f6f1a6722cc6ce558998 29-Sep-2016 Andre Lago <andrelago@google.com> [CTS] tests for auto ringtone sync disable

Tests that setting a ringtone disables the secure setting
SYNC_PARENT_SOUNDS automatically

Bug: 30658854
Test: make cts && cts-tradefed run cts --module CtsDevicePolicyManagerTestCases --test 'com.android.cts.devicepolicy.ManagedProfileTest#testRingtoneSyncAutoDisableRingtone' </dev/null 2>&1
Change-Id: I21b9f1a6f667ffff0485d1eee8a4e3339e5fe08f
evicepolicy/app/ManagedProfile/AndroidManifest.xml
evicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/RingtoneSyncTest.java
evicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/Utils.java
evicepolicy/src/com/android/cts/devicepolicy/ManagedProfileTest.java
ed98282747f701ad78c38cc7301163680d68bf41 24-Jan-2017 Lingfeng Yang <lfy@google.com> emulator: fix DPM security logging test am: 94b65e3907 am: bdf231eea4 am: a3ee43739f am: 8613c46fc8 am: b27510dcd6
am: c478996f97

Change-Id: I25a6872aa41276a4a1bec56863e22b509f9e3c2c
b359c116bb45bfecc71bd1bdc46bbe6c4c7d5b60 17-Jan-2017 Julien Desprez <jdesprez@google.com> Ensure DynamicConfig names do not conflict

Cts hardcoded folder names to download some dynamic config,
changed it to be unique names on host side.

Test: unit tests, run CtsMediaStressTestCase preparers
Bug: 34201533
Change-Id: I5e8eeabb6a3342f8c114a3d094fb44ee63610aeb
v/src/com/android/cts/tv/TvInputManagerHostTest.java
ab4553fa6804e19826ecd359710c2ae86212ecfb 24-Jan-2017 The Android Automerger <android-build-merger@google.com> Merge branch 'nyc-mr1-dev-plus-aosp' into nyc-mr2-dev-plus-aosp

* nyc-mr1-dev-plus-aosp:
DO NOT MERGE StagefrightTest: add test for bug 32577290
Fix for testFreeformWindowManagementSupport

BUG:34636041
6fb3b494cd2e177e962faca779ac80b4f5cccda3 24-Jan-2017 The Android Automerger <android-build-merger@google.com> Manually merge branch 'cw-f-dev' into nyc-mr1-dev-plus-aosp

* cw-f-dev:
DO NOT MERGE StagefrightTest: add test for bug 32577290
Fix for testFreeformWindowManagementSupport

BUG:34636041
8a57d14f2a37b8c5e4a777d95f60107d6ba360a6 24-Jan-2017 Raj Mamadgi <rmamadgi@sta.samsung.com> Fix for testFreeformWindowManagementSupport am: c3c7ece14b am: 92ade68a4c am: 0abcb4e6c9
am: 6b707f2a7e

Change-Id: If950a85afa89d1ce2c1180c4343eebcb82fd704e
c8ca8a2309e5e62cca6cf01697e9144bc5eb6e6a 24-Jan-2017 Makoto Onuki <omakoto@google.com> Disable part of CTS that relies on non-public strings am: 858887b3aa am: b8608e9871 am: 290edb2375 am: 2e08948a6b
am: 66b3905ae3

Change-Id: Id9e830ad3ac3ee693a741df850c508edac07812c
0abcb4e6c9284da21c89ce81d9df94c5cd1fceaf 24-Jan-2017 Raj Mamadgi <rmamadgi@sta.samsung.com> Fix for testFreeformWindowManagementSupport am: c3c7ece14b
am: 92ade68a4c

Change-Id: I75aa4b07e010670a683d16b09d22936ce0a2d1d0
62db961d0f04e117b76b66d19b56f43ed6dd1a93 24-Jan-2017 Raj Mamadgi <rmamadgi@sta.samsung.com> Fix for testFreeformWindowManagementSupport am: c3c7ece14b
am: 7b22407e72

Change-Id: I0140a20b548d12453348a34df1ea487302ac6da4
7b22407e7216465190f3688930f591916abe3df0 24-Jan-2017 Raj Mamadgi <rmamadgi@sta.samsung.com> Fix for testFreeformWindowManagementSupport
am: c3c7ece14b

Change-Id: I95f6d0ad0e03f5c5b3ecc66912aa6e318c386658
92ade68a4c67e7855ba69eaff9ca116308e95a87 24-Jan-2017 Raj Mamadgi <rmamadgi@sta.samsung.com> Fix for testFreeformWindowManagementSupport
am: c3c7ece14b

Change-Id: I320b4860b2599fd88cb07ad6a75b8482509a9210
8768185b30f4a24d73fed629a821401ccd1f92b2 24-Jan-2017 Tina Zhou <tinazh@google.com> Merge "Fix for testFreeformWindowManagementSupport" into nougat-cts-dev
c478996f975e9ac41e1f719ba1dd8308c4ba014d 23-Jan-2017 Lingfeng Yang <lfy@google.com> emulator: fix DPM security logging test am: 94b65e3907 am: bdf231eea4 am: a3ee43739f am: 8613c46fc8
am: b27510dcd6

Change-Id: I9cdd5e8b171c840e8e5e20afa5ddebfa424d5903
b0755903d9f2dcb3d9d4cda697e246e2f6022732 23-Jan-2017 Lingfeng Yang <lfy@google.com> emulator: fix DPM security logging test am: 94b65e3907 am: bdf231eea4 am: a3ee43739f
am: 8613c46fc8

Change-Id: Ie22820bf053029bf7323ef6c0d6b4cc5a2b0e6ab
67c7138e7a74ea1556ea29b03d1abec4a141d08f 23-Jan-2017 Svetoslav Ganov <svetoslavganov@google.com> Allow shared lib and package name to match - CTS

The old package manager implementation was guarding for
shared libs to not match any package name but due to a
bug this was not enfroced and as a result we have apps
where the package and lib match, e.g. GCore. The new
static shared lib support properly enforced the rule
breaking apps. So, this CL relexes the constraint.

Test: These are the tests

bug:34598313

Change-Id: I6883e0e05ff8d239de8ff7946a6725eca3fc04f6
s/src/android/os/cts/StaticSharedLibsHostTests.java
s/test-apps/StaticSharedLibProviderApp5/Android.mk
s/test-apps/StaticSharedLibProviderApp5/AndroidManifest.xml
s/test-apps/StaticSharedLibProviderApp6/Android.mk
s/test-apps/StaticSharedLibProviderApp6/AndroidManifest.xml
dfbf25544383b6097a192e0513f8be81ae64f31a 23-Jan-2017 Makoto Onuki <omakoto@google.com> Disable part of CTS that relies on non-public strings am: 858887b3aa am: b8608e9871
am: 290edb2375

Change-Id: Idb82799978b4b8fd3fe979a57144d738417a5cf2
66b3905ae3f12a690109d6b5f823764e9c0ecac4 23-Jan-2017 Makoto Onuki <omakoto@google.com> Disable part of CTS that relies on non-public strings am: 858887b3aa am: b8608e9871 am: 290edb2375
am: 2e08948a6b

Change-Id: I5e745e9587c9aa7ca4daf5ae5a2f4445a1fe1938
3c50012e35bdcf66a39aa3e333cb416a71b5258a 07-Oct-2016 Todd Kennedy <toddke@google.com> DO NOT MERGE: test app must be streamed

When using the 'cmd' command to install apps, apps can only be
streamed. Add a CTS test that guarnatees that behaviour.

Fixes: 31251489
Test: cts-tradefed run commandAndExit cts-dev -m CtsAppSecurityHostTestCases -t android.appsecurity.cts.AppSecurityTests#testAdbInstallFile

Change-Id: I75daebe3456812cadf86ac170c680c0984068f65
ppsecurity/src/android/appsecurity/cts/AppSecurityTests.java
b27510dcd6ead82d70e9029077d9a51fc05b9fe8 23-Jan-2017 Lingfeng Yang <lfy@google.com> emulator: fix DPM security logging test am: 94b65e3907 am: bdf231eea4 am: a3ee43739f
am: 8613c46fc8

Change-Id: I9af6b17da3684d0ed1b806535eda4995c394a61b
a3ee43739f615dd000557df403cfe8828fc7fa29 23-Jan-2017 Lingfeng Yang <lfy@google.com> emulator: fix DPM security logging test am: 94b65e3907
am: bdf231eea4

Change-Id: Iaa9437e982e045358b73a62474fe52cf4361fdb3
3c2325a74797d803e0fbd9ee0088314373775b46 23-Jan-2017 Lingfeng Yang <lfy@google.com> emulator: fix DPM security logging test am: 94b65e3907
am: 90fbab134a

Change-Id: Icb995c7d4583683bd8a922730d52403a303ed173
bdf231eea46e97f1204cf3a75d13c9b3c89ab82d 23-Jan-2017 Lingfeng Yang <lfy@google.com> emulator: fix DPM security logging test
am: 94b65e3907

Change-Id: I4bc137d82b6a5627a364acb63e7dd35caf7f61d6
90fbab134ade3dd14675ec439d8955f907b5844a 23-Jan-2017 Lingfeng Yang <lfy@google.com> emulator: fix DPM security logging test
am: 94b65e3907

Change-Id: Idc7c9b3a9ef2427899fc197119d1034cd1c831f9
2e08948a6bd274e5b2e0069554f93a314f95acd1 23-Jan-2017 Makoto Onuki <omakoto@google.com> Disable part of CTS that relies on non-public strings am: 858887b3aa am: b8608e9871
am: 290edb2375

Change-Id: I48f74817b8458c4f8a648c27fc6c9230e27c4e79
b8608e987184d14f20d69972e504ee649d02bb10 23-Jan-2017 Makoto Onuki <omakoto@google.com> Disable part of CTS that relies on non-public strings
am: 858887b3aa

Change-Id: I66734efb8e07c2002750d197e2d78a7acffd26b9
6e8e1cbd4fedaec94fa3c9a870d567b6b6d0d4b7 23-Jan-2017 Tina Zhou <tinazh@google.com> Merge "Disable part of CTS that relies on non-public strings" into nougat-mr1-cts-dev
5392121163166fe4f0c039bd9468d2d5c9e09630 23-Jan-2017 Kazuhiro Inaba <kinaba@google.com> Add mdpi and hdpi assets for theme cts. am: 9a09bb0b2c am: 75dd7a205e am: b3e4a706a4 am: 77de0ca44c
am: 19ecdfaabf

Change-Id: I28816e4d97d853ce000977c9867069bc4f11098e
f6e3c67dae06975fb4684f712f8b94bdb96c73ba 23-Jan-2017 Michal Karpinski <mkarpinski@google.com> Merge "Strong auth timeout CTS test"
1cdad5794a95b1bf902345225a2d589bc009c737 23-Jan-2017 Tony Mak <tonymak@google.com> Add dismiss keyguard flag to fix disableScreenCapture test am: 051b570478 am: 3c8d1a9537 am: 1abf03c2ed am: a022194d4c
am: d691193938

Change-Id: Idc87e2d37453bff1b92576017fcc6933488775b0
c2a2db9ea4759e53dcc033a1ae47cfa50512ef88 23-Jan-2017 Tomasz Mikolajewski <mtomasz@google.com> Follow up for CTS test for Web Links API.

Test: CTS.
Bug: 30152711
Change-Id: Icb68620e59c7ecb1533e8ea7044c4451f900cb0e
ppsecurity/test-apps/DocumentClient/src/com/android/cts/documentclient/DocumentsClientTest.java
94b65e3907c7da03fdc5b3bbb3eb574a275fef94 22-Jan-2017 Lingfeng Yang <lfy@google.com> emulator: fix DPM security logging test

bug: 34528569

The test needs actual security log events, which are
stuffed if no ro.device_owner.

The test itself sets DO mode and reboots in
order for ro.device_owner to take effect, but
it needs to be a real reboot for that property to refresh,
not shell stop and start, which is what is used for
the emulator currently.

Change-Id: I79884d9cc3e7686d5888dfb7a5b8f1b945577094
evicepolicy/src/com/android/cts/devicepolicy/BaseDevicePolicyTest.java
d200f928a1f34d73beb0d5c3391474b695593bc4 10-Dec-2016 Svet Ganov <svetoslavganov@google.com> Platform support for static shared libraries - CTS

Test: These are the tests

Change-Id: I379680d2c7f41fdbfa5bf911e4789e2705198787
s/src/android/os/cts/StaticSharedLibsHostTests.java
s/test-apps/StaticSharedLibConsumerApp1/Android.mk
s/test-apps/StaticSharedLibConsumerApp1/AndroidManifest.xml
s/test-apps/StaticSharedLibConsumerApp1/src/android/os/lib/consumer1/UseSharedLibraryTest.java
s/test-apps/StaticSharedLibConsumerApp2/Android.mk
s/test-apps/StaticSharedLibConsumerApp2/AndroidManifest.xml
s/test-apps/StaticSharedLibConsumerApp2/src/android/os/lib/consumer2/UseSharedLibraryTest.java
s/test-apps/StaticSharedLibProviderApp1/Android.mk
s/test-apps/StaticSharedLibProviderApp1/AndroidManifest.xml
s/test-apps/StaticSharedLibProviderApp1/res/values/integers.xml
s/test-apps/StaticSharedLibProviderApp1/src/android/os/lib/provider/StaticSharedLib.java
s/test-apps/StaticSharedLibProviderApp2/Android.mk
s/test-apps/StaticSharedLibProviderApp2/AndroidManifest.xml
s/test-apps/StaticSharedLibProviderApp3/Android.mk
s/test-apps/StaticSharedLibProviderApp3/AndroidManifest.xml
s/test-apps/StaticSharedLibProviderApp4/Android.mk
s/test-apps/StaticSharedLibProviderApp4/AndroidManifest.xml
s/test-apps/StaticSharedLibProviderApp4/res/values/integers.xml
s/test-apps/StaticSharedLibProviderApp4/src/android/os/lib/provider/StaticSharedLib.java
e5b1f66406140c9925be8d2474cf3f8f1ab7a5f5 16-Dec-2016 Michal Karpinski <mkarpinski@google.com> Strong auth timeout CTS test

Adds a CTS test for strong auth timeout feature.
This test can be extended to handle 2 admins cases.

Test: cts-tradefed run cts --module DevicePolicyManager --test com.android.cts.devicepolicy.MixedManagedProfileOwnerTest#testRequiredStrongAuthTimeout
Change-Id: I0c639e94fc5ede1a88018a31bc7b81d95cebcf1a
evicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/RequiredStrongAuthTimeoutTest.java
evicepolicy/src/com/android/cts/devicepolicy/DeviceAndProfileOwnerTest.java
155d030ebe4f2f35a5c40d816daa9b3b9e4c110c 21-Jan-2017 Chad Brubaker <cbrubaker@google.com> Merge "Track visibleToEphemeral rename"
26110f403aabf352da7e225589edc79c719d0a9c 21-Jan-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Updating CTS to reflect changes in PIP api."
2fd754ab6d2cbe9f67db77f74a37e8c0fe16f853 21-Jan-2017 Andres Oportus <andresoportus@google.com> Do not turn Wifi off for sustained performance test am: 2cefbc6b61 am: f1acbb9473 am: 33cbe62830 am: 40bc2c9993 am: 9422bed17e
am: f5d3b97492

Change-Id: I88c7f74a46159bbe2352f4a116a164ce9e2828e8
f00793a727c3ea1552ab6e99755df4516e84b125 21-Jan-2017 Makoto Onuki <omakoto@google.com> Merge "CTS for LauncherApps lock-down"
888bf150ad7a0abe350c7cd61c251aabda4e4798 21-Jan-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Test permissions to launch activities on secondary displays"
dd7689b76f790c7235f8259fbd85e66ae9204dc0 20-Jan-2017 Chad Brubaker <cbrubaker@google.com> Track visibleToEphemeral rename

Test: See framework CL
Change-Id: I67ae49b06ffcdd3f06940bc635e443963c8af178
ppsecurity/test-apps/EphemeralTestApp/NormalApp/AndroidManifest.xml
19ecdfaabf24f80237b4e79f42d0221108bf320b 20-Jan-2017 Kazuhiro Inaba <kinaba@google.com> Add mdpi and hdpi assets for theme cts. am: 9a09bb0b2c am: 75dd7a205e am: b3e4a706a4
am: 77de0ca44c

Change-Id: I3959bbfa8348e150bfaa90ffe7f3ce81b04184fe
d54ef1e003df810172e6bee405497847d968f4b1 20-Jan-2017 Kazuhiro Inaba <kinaba@google.com> Add mdpi and hdpi assets for theme cts. am: 9a09bb0b2c am: 75dd7a205e
am: b3e4a706a4

Change-Id: Ic916a6c17168318c28dbbc347a752bab85c2d3d7
77de0ca44c54b83d683c2ba0b40a8111a1bdbd6d 20-Jan-2017 Kazuhiro Inaba <kinaba@google.com> Add mdpi and hdpi assets for theme cts. am: 9a09bb0b2c am: 75dd7a205e
am: b3e4a706a4

Change-Id: Icbc1be82665e9e919786c7e5d838cbac9ad87118
d6911939389c49011831ddd4dd6bcc9e025b7d55 20-Jan-2017 Tony Mak <tonymak@google.com> Add dismiss keyguard flag to fix disableScreenCapture test am: 051b570478 am: 3c8d1a9537 am: 1abf03c2ed
am: a022194d4c

Change-Id: I9670b89310cff26dbc7e6a2b9d965ff253b935e6
33f7ac008936671345705e8f56548fbcdd42f32b 20-Jan-2017 Tony Mak <tonymak@google.com> Add dismiss keyguard flag to fix disableScreenCapture test am: 051b570478 am: 3c8d1a9537
am: 1abf03c2ed

Change-Id: Ibefe999b0461e63550beebad02efe958eb1a6385
a022194d4c5a35b4140ea5b1ae9157b97f597ee0 20-Jan-2017 Tony Mak <tonymak@google.com> Add dismiss keyguard flag to fix disableScreenCapture test am: 051b570478 am: 3c8d1a9537
am: 1abf03c2ed

Change-Id: Ie41169d15481867f007de1f7ef76d49574235711
75dd7a205efd42cb1f7b162b9a73a266124a8773 20-Jan-2017 Kazuhiro Inaba <kinaba@google.com> Add mdpi and hdpi assets for theme cts.
am: 9a09bb0b2c

Change-Id: I68827036cf3600256376735c3e7bd67b02365fc7
3c8d1a9537b6e967be911408e8bd1d9cf2c9a28f 20-Jan-2017 Tony Mak <tonymak@google.com> Add dismiss keyguard flag to fix disableScreenCapture test
am: 051b570478

Change-Id: I31f39354ab70334d4e6f57cc61bd4a4595390303
610b3bd0ec0aad3d120cd4180e05bbe9735cda9f 20-Jan-2017 Tina Zhou <tinazh@google.com> Merge "Add mdpi and hdpi assets for theme cts." into nougat-mr1-cts-dev
f34f8a16849e407e60e1ea1032767c419156bbf6 20-Jan-2017 Tina Zhou <tinazh@google.com> Merge "Add dismiss keyguard flag to fix disableScreenCapture test" into nougat-mr1-cts-dev
f5d3b97492e946f34ea99c8edde8c89b22be77b4 20-Jan-2017 Andres Oportus <andresoportus@google.com> Do not turn Wifi off for sustained performance test am: 2cefbc6b61 am: f1acbb9473 am: 33cbe62830 am: 40bc2c9993
am: 9422bed17e

Change-Id: I31c01f3a243f0be3f718123e8b2fb2f47e8e51a6
31af6cec7203080abae12402b1e870d332a6caca 20-Jan-2017 Chad Brubaker <cbrubaker@google.com> Merge "Add tests for expected exposed activities"
689da7132e65f342fe2735d5300002005fd6a0dc 20-Jan-2017 Andres Oportus <andresoportus@google.com> Do not turn Wifi off for sustained performance test am: 2cefbc6b61 am: f1acbb9473 am: 33cbe62830
am: 40bc2c9993

Change-Id: I289e4492e51091b204dc5951600abef292f92fcd
9422bed17ee7b2051bee38362af538a6173b75b2 20-Jan-2017 Andres Oportus <andresoportus@google.com> Do not turn Wifi off for sustained performance test am: 2cefbc6b61 am: f1acbb9473 am: 33cbe62830
am: 40bc2c9993

Change-Id: I1c813abb44cf34c99d7980812c2fef5006fc167b
2272d2697c50ca43120480e78e6aa2d3ec977b3c 20-Jan-2017 Unsuk Jung <unsuk@google.com> Merge "DO NOT MERGE Add comment for false-negative test on emulator" into nougat-cts-dev
5ccab7bcdc31da73c2e460ebda8cbca6ee0db8e2 17-Dec-2016 Joshua Lang <joshualang@google.com> DO NOT MERGE Add comment for false-negative test on emulator

Bug: 31773793
Change-Id: I3b71b9b729d3ee853a655a7c2cfe767a2d1b3d67
ppsecurity/src/android/appsecurity/cts/DirectBootHostTest.java
33cbe62830ea718d584e50fbce5ba915b214713c 20-Jan-2017 Andres Oportus <andresoportus@google.com> Do not turn Wifi off for sustained performance test am: 2cefbc6b61
am: f1acbb9473

Change-Id: Ic6367d40f6590c4224b6729860ad63288cc814e3
3f43b7befbd34d3ab2c29904cca6f47e0e3e5722 20-Jan-2017 Andres Oportus <andresoportus@google.com> Do not turn Wifi off for sustained performance test am: 2cefbc6b61
am: 04d425c04c

Change-Id: Ibec22a545ae7784f942fc5312ea7241b60087236
04d425c04c85a38ec8adba0b503742e58b1f5959 20-Jan-2017 Andres Oportus <andresoportus@google.com> Do not turn Wifi off for sustained performance test
am: 2cefbc6b61

Change-Id: Id8e952866da81c1bf791d7d71d0db707018b05ef
f1acbb94731876923c1436dec525379e6b29e3c2 20-Jan-2017 Andres Oportus <andresoportus@google.com> Do not turn Wifi off for sustained performance test
am: 2cefbc6b61

Change-Id: I4daed5ce7c1a01ef51b6ae9b741f5a2a6dde372d
d61f52ec3dc8955173c897aebde485e26ba490f4 19-Jan-2017 Makoto Onuki <omakoto@google.com> CTS for LauncherApps lock-down

Bug: 34340531

Test: cts-tradefed run cts --skip-device-info --skip-preconditions --skip-system-status-check com.android.compatibility.common.tradefed.targetprep.NetworkConnectivityChecker -a armeabi-v7a -m CtsShortcutHostTestCases -t 'android.content.pm.cts.shortcuthost.ShortcutManagerMultiuserTest#testManagedUser'
Test: cts-tradefed run cts --skip-device-info --skip-preconditions --skip-system-status-check com.android.compatibility.common.tradefed.targetprep.NetworkConnectivityChecker -a armeabi-v7a -m CtsDevicePolicyManagerTestCases -t 'com.android.cts.devicepolicy.LauncherAppsProfileTest'
Change-Id: Iba92997d63eeb0b81e6d7299a2bd15c2c5753fd6
evicepolicy/app/LauncherTests/src/com/android/cts/launchertests/LauncherAppsTests.java
evicepolicy/src/com/android/cts/devicepolicy/BaseLauncherAppsTest.java
evicepolicy/src/com/android/cts/devicepolicy/LauncherAppsProfileTest.java
hortcuts/deviceside/multiuser/src/android/content/pm/cts/shortcut/multiuser/ShortcutManagerManagedUserTest.java
hortcuts/hostside/src/android/content/pm/cts/shortcuthost/ShortcutManagerMultiuserTest.java
2d83c978c559804b6f416f8299eaf239001dcaf5 20-Jan-2017 Michal Karpinski <mkarpinski@google.com> Merge "Add CTS tests for 'BackupServiceEnable' methods in DevicePolicyManager."
f2bb57d661211fc894c82811b44a75d733722269 20-Jan-2017 Paul Duffin <paulduffin@google.com> Merge "Prepare for removal of legacy-test from default targets" am: 4548e73622
am: 2d7a0786b5

Change-Id: I3d450f4890825f5ad261b01ae9bd1a1b01a640c7
2abd3d1195886dc449ddcbb142d601c9ebdcfd06 20-Jan-2017 Nicolas Prevot <nprevot@google.com> Update cts to the change in DISALLOW_REMOVE_MANAGED_PROFILE.

BUG:34116228
Test: cts-tradefed run cts --module CtsDevicePolicyManagerTestCases
--test com.android.cts.devicepolicy.DeviceOwnerPlusManagedProfileTest#testIsProvisioningAllowed

Change-Id: If056ee9ecb0b5a06831d3ca0f8bb2a72672334b5
evicepolicy/src/com/android/cts/devicepolicy/DeviceOwnerPlusManagedProfileTest.java
06979143f7e3a3a9632dd39c762fd16dfc2f7c22 10-Jan-2017 Paul Duffin <paulduffin@google.com> Prepare for removal of legacy-test from default targets

In preparation for removing junit classes from the Android API
the legacy-test target will be removed from the
TARGET_DEFAULT_JAVA_LIBRARIES. This change adds explicit
dependencies on junit and/or legacy-android-test to ensure that
modules will compile properly once it is removed.

Bug: 30188076
Test: make checkbuild
Merged-In: I0f34fe97154240e8f8eef6816df1c794da60351e
Change-Id: I7e3b028321c42b7427d79365eb3f51ddf896f930
ppsecurity/test-apps/UsePermissionApp22/Android.mk
ppsecurity/test-apps/UsePermissionApp23/Android.mk
228b45e7fb294754835c002da61ff25021d4585b 10-Jan-2017 Paul Duffin <paulduffin@google.com> Prepare for removal of legacy-test from default targets

In preparation for removing junit classes from the Android API
the legacy-test target will be removed from the
TARGET_DEFAULT_JAVA_LIBRARIES. This change adds explicit
dependencies on junit and/or legacy-android-test to ensure that
modules will compile properly once it is removed.

Bug: 30188076
Test: make checkbuild
Change-Id: I0f34fe97154240e8f8eef6816df1c794da60351e
ppsecurity/test-apps/EphemeralTestApp/EphemeralApp1/Android.mk
ppsecurity/test-apps/EphemeralTestApp/NormalApp/Android.mk
ppsecurity/test-apps/UsePermissionApp22/Android.mk
ppsecurity/test-apps/UsePermissionApp23/Android.mk
1464662e051b342b5fc9555f3e9e078300a69c72 13-Jan-2017 Winson Chung <winsonc@google.com> Updating CTS to reflect changes in PIP api.

- Removing calls to enterPictureInPictureOnMoveToBg()

Bug: 33692987
Test: android.server.cts.ActivityManagerPinnedStackTests

Change-Id: I4fd9413628d7378986eecca7156256e4ec88d85e
ervices/activityandwindowmanager/activitymanager/app/src/android/server/cts/PipActivity.java
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/ActivityManagerPinnedStackTests.java
c86fd49ecee59cd54d629df6cb4624e919ecfcc4 19-Jan-2017 Todd Kennedy <toddke@google.com> Add tests for ephemeral grants

When an ephemeral app starts an activity in a normal app, the
ephemeral app becomes exposed to the normal app. Test that, in
the default case, the ephemeral app is hidden, but, when it
explicitly launches a normal app, it becomes visible to the
normal app [and only that normal app]

Test: cts-tradefed run commandAndExit cts-dev -m CtsAppSecurityHostTestCases -t android.appsecurity.cts.EphemeralTest
Change-Id: I424cdfdd77dbbf2f9827a3735c55ca029cbc5482
ppsecurity/test-apps/EphemeralTestApp/EphemeralApp1/src/com/android/cts/ephemeralapp1/ClientTest.java
ppsecurity/test-apps/EphemeralTestApp/NormalApp/AndroidManifest.xml
ppsecurity/test-apps/EphemeralTestApp/NormalApp/src/com/android/cts/normalapp/ClientTest.java
ppsecurity/test-apps/EphemeralTestApp/NormalApp/src/com/android/cts/normalapp/ExposedActivity.java
ppsecurity/test-apps/EphemeralTestApp/NormalApp/src/com/android/cts/normalapp/NormalActivity.java
ppsecurity/test-apps/EphemeralTestApp/NormalApp/src/com/android/cts/normalapp/NormalWebActivity.java
17e911e449859f4e2701bf214fd7976fb68209eb 19-Jan-2017 Amith Yamasani <yamasani@google.com> Merge "CTS test for diskstats protobuf dump"
4bcf6a4224c774bebc42d04bc05fa0c57ed6ead1 19-Jan-2017 Andrii Kulian <akulian@google.com> Merge "Test moving task between displays"
2cefbc6b61a95b05b41d999ef5e8803b2b208b8f 19-Jan-2017 Andres Oportus <andresoportus@google.com> Do not turn Wifi off for sustained performance test

Turning Wifi off does not significantly affect the output of this
test, airplane mode is used duing the test.
Turning Wifi off without restoring was causing other tests that
expect Wifi on to fail, tests should not change the global system
state.

Bug: 34178572

Change-Id: Ia3a1388d768689c30af2e789861d9a85d36aa7b0
Signed-off-by: Andres Oportus <andresoportus@google.com>
ustainedperf/src/android/SustainedPerformance/cts/SustainedPerformanceHostTest.java
03998cb69d98d4f84e95310f0cafea71e99f3213 18-Jan-2017 Sergey Poromov <poromov@google.com> Add CTS tests for 'BackupServiceEnable' methods in DevicePolicyManager.

Add cts tests into DevicePolicyManagerTest.java
as well as new cts host-side tests into
DeviceOwnerTest.java

Tested on ORG12D OC Release build.

Test: Run 'run cts -m CtsDevicePolicyManagerTestCases -t
com.android.cts.devicepolicy.DeviceOwnerTest#testBackupServiceEnabling'
Test: Run 'run cts -m CtsAdminTestCases -t
android.admin.cts.DevicePolicyManagerTest'

Change-Id: Icd96dee4436d5520e0287861b4cd01a873097a88
evicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/BackupServiceEnabledTest.java
evicepolicy/src/com/android/cts/devicepolicy/DeviceOwnerTest.java
80ff846105064d3b28d9af7080194663cb678d12 19-Jan-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Add cts for DISALLOW_FACTORY_RESET."
e1aa3a8e09033c038e97d01a5446fe5797de4f4d 18-Jan-2017 Nicolas Prevot <nprevot@google.com> Add cts for DISALLOW_FACTORY_RESET.

BUG:31952368
Test: cts-tradefed run cts --module CtsDevicePolicyManagerTestCases
--test
com.android.cts.devicepolicy.DeviceOwnerTest#testDisallowFactoryReset
cts-tradefed run cts --module CtsDevicePolicyManagerTestCases --test
com.android.cts.devicepolicy.DeviceAdminHostSideTestApi23
cts-tradefed run cts --module CtsDevicePolicyManagerTestCases --test
com.android.cts.devicepolicy.DeviceAdminHostSideTestApi24

Change-Id: I876210f38899032846de6c7ba702f9a2b9785b00
evicepolicy/app/DeviceAdmin/src/com.android.cts.deviceadmin/WipeDataTest.java
evicepolicy/app/DeviceOwner/AndroidManifest.xml
evicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/SetPolicyActivity.java
evicepolicy/src/com/android/cts/devicepolicy/BaseDeviceAdminHostSideTest.java
evicepolicy/src/com/android/cts/devicepolicy/BaseDevicePolicyTest.java
evicepolicy/src/com/android/cts/devicepolicy/DeviceAdminHelper.java
evicepolicy/src/com/android/cts/devicepolicy/DeviceAndProfileOwnerTest.java
evicepolicy/src/com/android/cts/devicepolicy/DeviceOwnerTest.java
evicepolicy/src/com/android/cts/devicepolicy/ManagedProfileTest.java
5af5f029d6b48e8a063752b6e9255840ce88d4da 19-Jan-2017 Julien Desprez <jdesprez@google.com> Merge "Replace system.err by real logging"
323035c74b336f8e05973114d5c2b950295cd3e7 19-Jan-2017 Julien Desprez <jdesprez@google.com> Replace system.err by real logging

Test: build
Change-Id: Iab4e25c2a62da97bf3afcf7e9ad69a8f2e638a20
trace/src/android/atrace/cts/AtraceHostTest.java
8f3dd71faf419f0484832b49102bd99ed19fb22d 19-Jan-2017 Tomasz Mikolajewski <mtomasz@google.com> Merge "Add CTS for Web Links API."
6c82cb08e05f74f63d0c0255b3cfa1496ac9f3e1 19-Jan-2017 Mark Rathjen <mrathjen@google.com> Merge "Revert "Compatibility tests for the updates to SSAID tracked in same bug.""
8b9f2a468aa8fc6c542256066c400ffd3a2fd48f 19-Jan-2017 Mark Rathjen <mrathjen@google.com> Revert "Compatibility tests for the updates to SSAID tracked in same bug."

This reverts commit 48eb162532cb33875f1a8d761a22e704790714f2.

Change-Id: I4217394565fdc54bbeaf9b58e0c7f26fa63838ac
ppsecurity/src/android/appsecurity/cts/SsaidTest.java
ppsecurity/test-apps/SsaidTestApp/Android.mk
ppsecurity/test-apps/SsaidTestApp/SsaidApp1/Android.mk
ppsecurity/test-apps/SsaidTestApp/SsaidApp1/AndroidManifest.xml
ppsecurity/test-apps/SsaidTestApp/SsaidApp1/res/values/strings.xml
ppsecurity/test-apps/SsaidTestApp/SsaidApp1/src/com/android/cts/ssaidapp1/ClientTest.java
ppsecurity/test-apps/SsaidTestApp/SsaidApp1/src/com/android/cts/ssaidapp1/SsaidActivity.java
ppsecurity/test-apps/SsaidTestApp/SsaidApp2/Android.mk
ppsecurity/test-apps/SsaidTestApp/SsaidApp2/AndroidManifest.xml
ppsecurity/test-apps/SsaidTestApp/SsaidApp2/res/values/strings.xml
ppsecurity/test-apps/SsaidTestApp/SsaidApp2/src/com/android/cts/ssaidapp2/SsaidActivity.java
bb0d417aa7cd7360fe4f4b434e87ae35c2809aaf 18-Jan-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "CTS for dumpsys netstats --proto"
b688284c9b10fbd151753749eb2a3c5a314fcb52 18-Jan-2017 Andrii Kulian <akulian@google.com> Test moving task between displays

Bug: 34176283
Test: android.server.cts.ActivityManagerDisplayTests
Test: #testMoveTaskBetweenDisplays
Change-Id: Id9172dd6f72487a1faaed03681a6b9c43e90d6e7
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/ActivityManagerDisplayTests.java
af03aeaabe8bb0614de8393e62b82c884b3458a1 18-Jan-2017 Jesse Badash <badash@google.com> Merge "Some High PoC CTS tests for December (10) Test: this is a test Change-Id: If68e2f868fb9debe0875a79fa94c62a6483688c0 (cherry picked from commit d8fe6172a8448969c7216f31be3e31ccc9370449)" into nyc-dev am: 1c59481579 am: 912140847b am: d2bb9f2c40 am: 23367be881
am: 590fcd52eb

Change-Id: Ieacc5b2eb174c9b5ced584e6c1155614e568bfbb
08fddd403e5d9addd9135532a28716a34df2f237 18-Jan-2017 Chad Brubaker <cbrubaker@google.com> Add tests for expected exposed activities

This allows us to ensure that Pickers and other system compontents that
we expect to exposed to ephemeral apps properly are.

Currently this is limited to the file picker, will add more as more
compontents are exposed.

Test: cts-tradefed run commandAndExit cts-dev -m
CtsAppSecurityHostTestCases -t
android.appsecurity.cts.EphemeralTest#testExposedSystemActivities

Change-Id: I3f79040caa8d4ac7bd6f38efbe16e62c9d68918a
ppsecurity/src/android/appsecurity/cts/EphemeralTest.java
ppsecurity/test-apps/EphemeralTestApp/EphemeralApp1/src/com/android/cts/ephemeralapp1/ClientTest.java
590fcd52eba62d42255325c63acfabeb9daeb955 18-Jan-2017 Jesse Badash <badash@google.com> Merge "Some High PoC CTS tests for December (10) Test: this is a test Change-Id: If68e2f868fb9debe0875a79fa94c62a6483688c0 (cherry picked from commit d8fe6172a8448969c7216f31be3e31ccc9370449)" into nyc-dev am: 1c59481579 am: 912140847b am: d2bb9f2c40
am: 23367be881

Change-Id: Iaf5b150a5428b48db8b42079bb9694872e44ba2f
8a78835724cf1b189742529929b5eb31812fb7b1 18-Jan-2017 Jesse Badash <badash@google.com> Merge "Some High PoC CTS tests for December (10) Test: this is a test Change-Id: If68e2f868fb9debe0875a79fa94c62a6483688c0 (cherry picked from commit d8fe6172a8448969c7216f31be3e31ccc9370449)" into nyc-dev am: 1c59481579 am: 912140847b am: d2bb9f2c40
am: 23367be881

Change-Id: I7c3bba5e2723040186dd333e249a530baae2f072
d2bb9f2c40fdb47a3387c226bff7f6d52927aa20 18-Jan-2017 Jesse Badash <badash@google.com> Merge "Some High PoC CTS tests for December (10) Test: this is a test Change-Id: If68e2f868fb9debe0875a79fa94c62a6483688c0 (cherry picked from commit d8fe6172a8448969c7216f31be3e31ccc9370449)" into nyc-dev am: 1c59481579
am: 912140847b

Change-Id: If9ec23722b8a6f09a90f1de7d8b7fd750632b6b3
787a7899381151881bef4f620b8c5c6fd046fc47 17-Jan-2017 Amith Yamasani <yamasani@google.com> CTS test for diskstats protobuf dump

Test: cts-tradefed run cts-dev -t CtsIncidentHostTestCases
Bug: 34227723
Change-Id: I7ea11fde260b7ba6ccc3d65e1b9e2771c2322df3
ncident/src/com/android/server/cts/DiskStatsProtoTest.java
46bb60d1e725364a9226e57ea5296d3ff5604198 18-Jan-2017 Makoto Onuki <omakoto@google.com> CTS for dumpsys netstats --proto

First cut -- add utility methods to the base class and a device side
test app.

Bug: 34228873
Test: cts-tradefed run cts --skip-device-info --skip-preconditions --skip-system-status-check com.android.compatibility.common.tradefed.targetprep.NetworkConnectivityChecker -a armeabi-v7a -m CtsIncidentHostTestCases -t com.android.server.cts.NetstatsIncidentTest

Change-Id: I89472635fb9168713604e16fc99946fed5963e7a
ncident/apps/Android.mk
ncident/apps/netstatsapp/Android.mk
ncident/apps/netstatsapp/AndroidManifest.xml
ncident/apps/netstatsapp/src/com/android/server/cts/netstats/NetstatsDeviceTest.java
ncident/src/com/android/server/cts/NetstatsIncidentTest.java
ncident/src/com/android/server/cts/ProtoDumpTestCase.java
912140847be2e0a945f987c15dfdec5f919b9561 18-Jan-2017 Jesse Badash <badash@google.com> Merge "Some High PoC CTS tests for December (10) Test: this is a test Change-Id: If68e2f868fb9debe0875a79fa94c62a6483688c0 (cherry picked from commit d8fe6172a8448969c7216f31be3e31ccc9370449)" into nyc-dev
am: 1c59481579

Change-Id: I2c27370f43e21dffa9dcfaaa05e65cc5f18a48db
42e7ca15e262f005bb682c654c50c5074d4e21d4 18-Jan-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Verify install reason in PackageManager"
e674434351b1feeda78c51dc400268d916c52676 29-Dec-2016 Badash <badash@google.com> Some High PoC CTS tests for December (10)
Test: this is a test
Change-Id: If68e2f868fb9debe0875a79fa94c62a6483688c0
(cherry picked from commit d8fe6172a8448969c7216f31be3e31ccc9370449)
ecurity/securityPatch/CVE-2016-8412/Android.mk
ecurity/securityPatch/CVE-2016-8412/poc.c
ecurity/securityPatch/CVE-2016-8444/Android.mk
ecurity/securityPatch/CVE-2016-8444/poc.c
ecurity/securityPatch/CVE-2016-8448/Android.mk
ecurity/securityPatch/CVE-2016-8448/mtkfb.h
ecurity/securityPatch/CVE-2016-8448/mtkfb_info.h
ecurity/securityPatch/CVE-2016-8448/poc.c
ecurity/securityPatch/CVE-2016-8449/Android.mk
ecurity/securityPatch/CVE-2016-8449/poc.c
ecurity/securityPatch/CVE-2016-8460/Android.mk
ecurity/securityPatch/CVE-2016-8460/poc.c
ecurity/securityPatch/CVE-2017-0403/Android.mk
ecurity/securityPatch/CVE-2017-0403/poc.c
ecurity/securityPatch/CVE-2017-0404/Android.mk
ecurity/securityPatch/CVE-2017-0404/poc.c
ecurity/src/android/security/cts/Poc16_12.java
01f81571eac24db8ed1769de13a8a259821c67d7 18-Jan-2017 Glen Kuhne <kuh@google.com> Merge "CTS: WifiManager.addNetwork with HttpProxy" am: b99788eb24 am: 155a81349f
am: 02f1a21092

Change-Id: Id70c0b0c95edf0615400cfe59f089d9411d48d12
d84e8e698ae6ab8f2ced18691ef6cb25721f50df 18-Jan-2017 Mark Rathjen <mrathjen@google.com> Merge "Compatibility tests for the updates to SSAID tracked in same bug."
02f1a21092bb66d4fc2ffe71e9df2d4e1fd9c6ba 18-Jan-2017 Glen Kuhne <kuh@google.com> Merge "CTS: WifiManager.addNetwork with HttpProxy" am: b99788eb24
am: 155a81349f

Change-Id: I0b4f12d41263db0fd69cce933af915f46fa3ff31
7a3381c9b091e094803e1674b6fd1dc33074f6a5 18-Jan-2017 Jorim Jaggi <jjaggi@google.com> Merge "Revert "security: update tests after property_context split"" am: e36f2187d8 am: 9626268fd2
am: 442927a37c

Change-Id: Icb71f1fda8553365023bffb3a9de73333b36469b
b99788eb24c936988588a1aff7e9889d6c47443d 18-Jan-2017 Glen Kuhne <kuh@google.com> Merge "CTS: WifiManager.addNetwork with HttpProxy"
442927a37cd430453161f84610c83202760afe83 18-Jan-2017 Jorim Jaggi <jjaggi@google.com> Merge "Revert "security: update tests after property_context split"" am: e36f2187d8
am: 9626268fd2

Change-Id: Idfa77e9446244656e3dd7ef51c25ea5ca495b082
5229c207f4cc05f9ceee9631c922be6bb7f3a701 18-Jan-2017 Jorim Jaggi <jjaggi@google.com> Revert "security: update tests after property_context split"

This reverts commit b8ec0764dc814c2c0185428babee7da878574823.

Change-Id: I24f88cd356217b28d2b861dff5c12b58ce897ffb
ecurity/Android.mk
ecurity/src/android/security/cts/SELinuxHostTest.java
5bf22d00689704f3cf62689d9c18d887b4738a07 18-Jan-2017 Jorim Jaggi <jjaggi@google.com> Revert "security: update tests after property_context split"

This reverts commit b8ec0764dc814c2c0185428babee7da878574823.

Change-Id: I24f88cd356217b28d2b861dff5c12b58ce897ffb
ecurity/Android.mk
ecurity/src/android/security/cts/SELinuxHostTest.java
b97765e60d3e166cddec6b6f9eab13a2043cebd1 13-Jan-2017 Bartosz Fabianowski <bartfab@google.com> Verify install reason in PackageManager

When a package is installed on behalf of an enterprise (e.g. by the
Device Owner app that the enterprise uses to enforce policies on the
device), its install reason should be recorded as policy. Otherwise,
the install reason should be considered unknown.

Bug: 32692748
Bug: 33415829

Test: cts-tradefed run cts-dev --module CtsDevicePolicyManagerTestCases \
--test com.android.cts.devicepolicy.CustomDeviceOwnerTest\
#testInstallReason

Change-Id: Ie0e3fd91746f6b7d47f842548c737e8f2008f8d8
evicepolicy/app/PackageInstaller/Android.mk
evicepolicy/app/PackageInstaller/src/com/android/cts/packageinstaller/BasePackageInstallTest.java
evicepolicy/app/PackageInstaller/src/com/android/cts/packageinstaller/InstallReasonTest.java
evicepolicy/src/com/android/cts/devicepolicy/CustomDeviceOwnerTest.java
dd4c088f3b7ad248900aae6a64231fb07bfecfce 18-Jan-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Cts test that DO cannot communicate with a secondary user."
69da559df61d50f869c9029a09ae006d98cccb9f 18-Jan-2017 Victor Chang <vichang@google.com> Merge changes I8fa1f08d,I49750577

* changes:
CTS EXTRA_PROVISIONING_ADMIN_EXTRAS_BUNDLE
CTS PO provisioning
2bcfa5574f1779783a90987c911e7fc56244d04e 18-Jan-2017 Pavel Grafov <pgrafov@google.com> Merge "CTS test to verify that ENSURE_VERIFY_APPS is enforced globally."
7c0ef75983d62e65f93464185b7713d1043653a4 13-Jan-2017 Victor Chang <vichang@google.com> CTS EXTRA_PROVISIONING_ADMIN_EXTRAS_BUNDLE

Bug: 31856203
Test: cts-tradefed run cts --module DevicePolicyManager --test com.android.cts.devicepolicy.ManagedProfileProvisioningTest
Change-Id: I8fa1f08df8d7eaae5736e388455577f330290b91
evicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/ProvisioningTest.java
evicepolicy/src/com/android/cts/devicepolicy/ManagedProfileProvisioningTest.java
c845f462566c1777bcbb222eb40f044245948d70 13-Jan-2017 Victor Chang <vichang@google.com> CTS PO provisioning

Bug: 31856203
Test: cts-tradefed run cts --module DevicePolicyManandroid.cts.devicepolicy.ManagedProfileProvisioningTest#testManagedProfileProvisioning
Change-Id: I49750577a28060b3cfa3a99ece1be57c31dff105
evicepolicy/app/CorpOwnedManagedProfile/src/com/android/cts/comp/AdminReceiver.java
evicepolicy/app/ManagedProfile/AndroidManifest.xml
evicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/ProvisioningTest.java
evicepolicy/src/com/android/cts/devicepolicy/ManagedProfileProvisioningTest.java
6aa36adea6c28a8fdd3f751d8bc9e4c472d793f2 13-Jan-2017 Nicolas Prevot <nprevot@google.com> Cts test that DO cannot communicate with a secondary user.

Test: cts-tradefed run cts --module CtsDevicePolicyManagerTestCases --test
com.android.cts.devicepolicy.DeviceOwnerPlusManagedProfileTest#testCannotBindToSecondaryUser
cts-tradefed run cts --module CtsDevicePolicyManagerTestCases --test
com.android.cts.devicepolicy.DeviceOwnerTest#testCreateAndManageEphemeralUser
BUG:32764274
Change-Id: Ie259715707597a7a072e88393e9488e242091ff2
evicepolicy/app/CorpOwnedManagedProfile/src/com/android/cts/comp/ManagementTest.java
evicepolicy/src/com/android/cts/devicepolicy/BaseDevicePolicyTest.java
evicepolicy/src/com/android/cts/devicepolicy/DeviceOwnerPlusManagedProfileTest.java
evicepolicy/src/com/android/cts/devicepolicy/DeviceOwnerTest.java
03ce990abc2991fc7605a48b61123a879546278f 18-Jan-2017 Sandeep Patil <sspatil@google.com> Merge "security: update tests after property_context split" am: c7b9674de8 am: db07acdd23 am: 7249e5f068
am: 809a736470

Change-Id: If0f3dbdbe6e79641ea6e4849a165ded9ad5e6c09
809a736470bfe89ceee0d01ce02d07d01deffb39 18-Jan-2017 Sandeep Patil <sspatil@google.com> Merge "security: update tests after property_context split" am: c7b9674de8 am: db07acdd23
am: 7249e5f068

Change-Id: I2953a62ccf35e13cdf2ef9f7e3bee0399002d20c
7249e5f0687e554b88b17a1ff29011b23d9b5c11 18-Jan-2017 Sandeep Patil <sspatil@google.com> Merge "security: update tests after property_context split" am: c7b9674de8
am: db07acdd23

Change-Id: I0adc3af168c19ffd5c73da55f70973e63add429d
48eb162532cb33875f1a8d761a22e704790714f2 18-Jan-2017 Mark Rathjen <mrathjen@google.com> Compatibility tests for the updates to SSAID tracked in same bug.

Tests validate:
- Ssaid is non-null, 16 character string.
- Different applications receive different ssaids.
- The same application will receive the same ssaid across installs.

Bug: 30979321
Test: CTS tests passed
Change-Id: Ia86e8c23024d42c6c8eba2da56d7205de884c7ce
ppsecurity/src/android/appsecurity/cts/SsaidTest.java
ppsecurity/test-apps/SsaidTestApp/Android.mk
ppsecurity/test-apps/SsaidTestApp/SsaidApp1/Android.mk
ppsecurity/test-apps/SsaidTestApp/SsaidApp1/AndroidManifest.xml
ppsecurity/test-apps/SsaidTestApp/SsaidApp1/res/values/strings.xml
ppsecurity/test-apps/SsaidTestApp/SsaidApp1/src/com/android/cts/ssaidapp1/ClientTest.java
ppsecurity/test-apps/SsaidTestApp/SsaidApp1/src/com/android/cts/ssaidapp1/SsaidActivity.java
ppsecurity/test-apps/SsaidTestApp/SsaidApp2/Android.mk
ppsecurity/test-apps/SsaidTestApp/SsaidApp2/AndroidManifest.xml
ppsecurity/test-apps/SsaidTestApp/SsaidApp2/res/values/strings.xml
ppsecurity/test-apps/SsaidTestApp/SsaidApp2/src/com/android/cts/ssaidapp2/SsaidActivity.java
d18c462a89d3cc89fa234cb4e679c8dfa330d643 18-Jan-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "CTS for LauncherApps.getApplicationInfo()."
2d01671c5be316eafbc33ac0d902cc61e300c913 18-Jan-2017 Makoto Onuki <omakoto@google.com> CTS for LauncherApps.getApplicationInfo().

Test: cts-tradefed run cts --skip-device-info --skip-preconditions --skip-system-status-check com.android.compatibility.common.tradefed.targetprep.NetworkConnectivityChecker -a armeabi-v7a -m CtsDevicePolicyManagerTestCases -t 'com.android.cts.devicepolicy.LauncherAppsProfileTest#testGetActivitiesWithProfile'

Bug: 34250638
Change-Id: I5ddc5eafa0cb69ff62286fc350330ce5a5d3a81e
evicepolicy/app/LauncherTests/src/com/android/cts/launchertests/LauncherAppsTests.java
6afff0d6a77c6369a275cf2a40da6d180ffd9578 18-Jan-2017 Sandeep Patil <sspatil@google.com> Merge "security: update tests after service_context split" am: a47860a909 am: b89d8c583b am: 30134654f8
am: 968e8f4578

Change-Id: I3dac8bb6685d8eb5f77e154cf1ba276e00ca8586
968e8f4578953b21dd75e6a66311327bc49eb109 18-Jan-2017 Sandeep Patil <sspatil@google.com> Merge "security: update tests after service_context split" am: a47860a909 am: b89d8c583b
am: 30134654f8

Change-Id: I31cbec47ee0f5ebdf47a3a6fedb51dda1024cb00
30134654f8a118825188e92b607e41ad4d6bf0ed 18-Jan-2017 Sandeep Patil <sspatil@google.com> Merge "security: update tests after service_context split" am: a47860a909
am: b89d8c583b

Change-Id: Id137bbdfcee3899551628f107bbf4d5013a208ab
b8ec0764dc814c2c0185428babee7da878574823 28-Dec-2016 Sandeep Patil <sspatil@google.com> security: update tests after property_context split

Bug: 33746484
Test: Build CtsSecurityHostTestCases

Change-Id: I272eb22256310e68a11f7a0ec06b472972b021d6
Signed-off-by: Sandeep Patil <sspatil@google.com>
ecurity/Android.mk
ecurity/src/android/security/cts/SELinuxHostTest.java
e5909258bd375a74569bbcf5b15297db7f0de6a3 13-Dec-2016 Winson Chung <winsonc@google.com> Removing resizability for PiP activities.

Test: android.server.cts.ActivityManagerPinnedStackTests
Change-Id: I803bf16dd56507afd89a71ebf1d5dcadfd69fa8b
ervices/activityandwindowmanager/activitymanager/app/AndroidManifest.xml
a4c9ea6c9d67897692bbd39080b0fc105f64186b 10-Jan-2017 Glen Kuhne <kuh@google.com> CTS: WifiManager.addNetwork with HttpProxy

Added CTS tests verifying, that adding a WifiConfiguration containing an
httpProxy will:
-Succeed if caller is DeviceOwner
-Fail if caller is not DeviceOwner

Test: Added two CTS tests
Bug: 14669153
Change-Id: I2c81492dba5052117a03a2aa7b3cc8ffb5d52d5f
Merged-In: I2c81492dba5052117a03a2aa7b3cc8ffb5d52d5f
evicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/WifiSetHttpProxyTest.java
evicepolicy/src/com/android/cts/devicepolicy/DeviceOwnerTest.java
5c8238f8e3493c00a6ba868900c0075410c91b4f 17-Jan-2017 Glen Kuhne <kuh@google.com> Merge "CTS: WifiManager.addNetwork with HttpProxy"
dd03a8d9510b18677b498aae52d1479f56438c9f 10-Jan-2017 Glen Kuhne <kuh@google.com> CTS: WifiManager.addNetwork with HttpProxy

Added CTS tests verifying, that adding a WifiConfiguration containing an
httpProxy will:
-Succeed if caller is DeviceOwner
-Fail if caller is not DeviceOwner

Test: Added two CTS tests
Bug: 14669153
Change-Id: I2c81492dba5052117a03a2aa7b3cc8ffb5d52d5f
evicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/WifiSetHttpProxyTest.java
evicepolicy/src/com/android/cts/devicepolicy/DeviceOwnerTest.java
d34cbeca35f1f0df72e8974eff97d4a6edf8bfd6 17-Jan-2017 Xin Li <delphij@google.com> Merge commit 'b7c6333548cfba65349d500d5d94d138acbcfeac' into nougat-mr1-cts-dev.

BUG: 33090058
Change-Id: Iecc3c7bf9eaa852416f1756d016d6975836df82e
62a83b78d7fbc1a07f04b3707990a7baa03b5c7f 17-Jan-2017 Xin Li <delphij@google.com> Merge commit '3c2efe51bd5c62eca3216a9c1eac0334aa541dd1' into nougat-mr1-cts-dev

BUG: 33090058
Change-Id: I1be75dca980c776acdb516a5ca30aa9bc4605c96
0c24814541029ec37242a0da3a96eb971c2fac7f 28-Dec-2016 Sandeep Patil <sspatil@google.com> security: update tests after service_context split

Bug: 33746484
Test: Build CtsSecurityHostTestCases

Change-Id: Ifa5e6c49e83edfe2e9e2601c7a644c17f272c05b
Signed-off-by: Sandeep Patil <sspatil@google.com>
ecurity/Android.mk
ecurity/src/android/security/cts/SELinuxHostTest.java
8090da693d970c7f7a02bd657a2b6abfa05ce604 17-Jan-2017 Andrii Kulian <akulian@google.com> Test permissions to launch activities on secondary displays

- System UIDs must be allowed to launch anything and everywhere.
- Display owner must be allowed to launch activities on it.
- Apps that are already on target display must be allowed to launch
there.
- All other apps mustn't be allowed to launch on private displays.

Bug: 34230873
Test: android.server.cts.ActivityManagerDisplayTests
Test: #testPermissionLaunchFromSystem
Test: #testPermissionLaunchFromAppOnSecondary
Test: #testPermissionLaunchFromOwner
Test: #testPermissionLaunchFromDifferentApp
Change-Id: I92f734af4cd4bfc2dff4b08c50e2dd4150755d27
ervices/activityandwindowmanager/activitymanager/AndroidTest.xml
ervices/activityandwindowmanager/activitymanager/app/AndroidManifest.xml
ervices/activityandwindowmanager/activitymanager/app/src/android/server/cts/LaunchBroadcastReceiver.java
ervices/activityandwindowmanager/activitymanager/app/src/android/server/cts/LaunchingActivity.java
ervices/activityandwindowmanager/activitymanager/app/src/android/server/cts/tools/ActivityLauncher.java
ervices/activityandwindowmanager/activitymanager/appSecondUid/Android.mk
ervices/activityandwindowmanager/activitymanager/appSecondUid/AndroidManifest.xml
ervices/activityandwindowmanager/activitymanager/appSecondUid/src/android/server/cts/second/LaunchBroadcastReceiver.java
ervices/activityandwindowmanager/activitymanager/appSecondUid/src/android/server/cts/second/SecondActivity.java
ervices/activityandwindowmanager/activitymanager/appThirdUid/Android.mk
ervices/activityandwindowmanager/activitymanager/appThirdUid/AndroidManifest.xml
ervices/activityandwindowmanager/activitymanager/appThirdUid/src/android/server/cts/third/ThirdActivity.java
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/ActivityManagerDisplayTests.java
ervices/activityandwindowmanager/util/src/android/server/cts/ActivityAndWindowManagersState.java
ervices/activityandwindowmanager/util/src/android/server/cts/ActivityManagerTestBase.java
a87a656a10ce2430c7aed66d876fd365cff3405f 05-Jan-2017 Esteban Talavera <etalavera@google.com> Device wide features are available if all users are affiliated

Test: cts-tradefed run cts -a armeabi-v7a --module CtsDevicePolicyManagerTestCases --test com.android.cts.devicepolicy.DeviceOwnerTest
Test: cts-tradefed run cts --module DevicePolicyManager --test com.android.cts.devicepolicy.DeviceOwnerPlusManagedProfileTest

Bug: 32326223
Change-Id: Icb932cdaa77c64d9cb67be1eeda2c8f879e44838
evicepolicy/app/CorpOwnedManagedProfile/src/com/android/cts/comp/DeviceWideLoggingFeaturesTest.java
evicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/AdminActionBookkeepingTest.java
evicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/NetworkLoggingTest.java
evicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/RemoteBugreportTest.java
evicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/SecurityLoggingTest.java
evicepolicy/src/com/android/cts/devicepolicy/DeviceOwnerPlusManagedProfileTest.java
evicepolicy/src/com/android/cts/devicepolicy/DeviceOwnerTest.java
dc84ffd10f74ad9d1c55a5bdd48efe15c7b809f9 13-Jan-2017 Victor Chang <vichang@google.com> CTS EXTRA_PROVISIONING_LEAVE_ALL_SYSTEM_APPS_ENABLED

Bug: 31856203
Test: cts-tradefed run cts --module DevicePolicyManager --test com.android.cts.devicepolicy.DeviceOwnerTest#testDeviceOwnerProvisioning

Change-Id: I46db73379519608b92a6e93f4953a05a003dfaa6
evicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/DeviceOwnerProvisioningTest.java
evicepolicy/src/com/android/cts/devicepolicy/DeviceOwnerTest.java
06df256c7bb545376f76e58543f3467128f5a766 12-Jan-2017 Victor Chang <vichang@google.com> Refactor SilentProvisioningTestManager into common lib

Bug:31856203
Test: cts-tradefed run cts --module DevicePolicyManager --test com.android.cts.devicepolicy.DeviceOwnerPlusManagedProfileTest#testBindDeviceAdminServiceAsUser_corpOwnedManagedProfileWithManagedProvisioning
Test: cts-tradefed run cts --module DevicePolicyManager --test com.android.cts.devicepolicy.DeviceOwnerTest#testDeviceOwnerProvisioning

Change-Id: Id40b0ca81a2fefaa0402f5c28840ccb12808420d
evicepolicy/app/CorpOwnedManagedProfile/AndroidManifest.xml
evicepolicy/app/CorpOwnedManagedProfile/src/com/android/cts/comp/provisioning/ManagedProfileProvisioningTest.java
evicepolicy/app/CorpOwnedManagedProfile/src/com/android/cts/comp/provisioning/SilentProvisioningTestManager.java
evicepolicy/app/CorpOwnedManagedProfile/src/com/android/cts/comp/provisioning/StartProvisioningActivity.java
evicepolicy/app/DeviceOwner/AndroidManifest.xml
evicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/DeviceOwnerProvisioningTest.java
evicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/provisioning/SilentProvisioningTestManager.java
evicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/provisioning/StartProvisioningActivity.java
fa23c316454f1321fe0d5415a5044cd45ed61581 16-Jan-2017 Xin Li <delphij@google.com> DO NOT MERGE: resolve merge conflicts of c7d46bb20e to nyc-mr1-dev am: a8cda6656b am: 3e56c3a673
am: 18673cbc10

Change-Id: I67dd83793af7330456a58d873c4c91080a9ebe0e
18673cbc101cf89abd3b243834ef9e0f1991f3ba 16-Jan-2017 Xin Li <delphij@google.com> DO NOT MERGE: resolve merge conflicts of c7d46bb20e to nyc-mr1-dev am: a8cda6656b
am: 3e56c3a673

Change-Id: I526c71e9e59d721b5347cc156211d5f7cc0c569f
d59632f8620808c45cd4fead95fb31157a29460d 16-Jan-2017 Xin Li <delphij@google.com> DO NOT MERGE: resolve merge conflicts of c7d46bb20e to nyc-mr1-dev am: a8cda6656b
am: 3e56c3a673

Change-Id: I08d236692c5b823c8feef3a0e90ad57e3143640a
a8cda6656b32086ca28ca3afc18966db6d7f976e 14-Jan-2017 Xin Li <delphij@google.com> DO NOT MERGE: resolve merge conflicts of c7d46bb20e to nyc-mr1-dev

Change-Id: I8bf4272b52f5ddece95cf80aa278a0da1998dfbb
838cd780a24c5cdc71540cf86e345ae2ffedf515 14-Jan-2017 Xin Li <delphij@google.com> Merge commit '5e1de224b2df8e8bcdee3f3f49d9e6e026e2c834' into nougat-mr1-cts-dev

BUG: 33090058
Change-Id: I74ed19215a4f8f33fd890b22ae9f40c643a99032
c7d46bb20e0ec0d2490cfbbc16338c6423eff076 14-Jan-2017 Xin Li <delphij@google.com> Merge commit '7ab68a1394235eb5762d21608c16cb5664767e2b' into
nougat-mr1-cts-dev

BUG: 33090058
Change-Id: Id24b66edaf0ed4833e59ff778a04f0d1ff6f9428
2aa6ce0463f5ae3de2dc04e5bb27adbd49499d24 13-Jan-2017 Xin Li <delphij@google.com> Merge commit '5fa2972939fbeb5b3691db2762a7c7eb1ecce74c' into nougat-mr1-cts-dev

BUG: 33090058
Change-Id: Ib1c023c4c6c624d5d66809c7ec88d99f3721b662
c61ac2f012114084a8e3c91012ea771e5aebd790 31-Oct-2016 Grigory Dzhavadyan <grigoryj@google.com> Merge of commit 91996d74 from nougat-cts-dev:

Fix activity & window manager tests on emulator

bug: 31647943

Most of those are timing issues. The tests rely on executing
activity manager commands in a certain sequence, but sending
a command before the previous one finishes seems to affect the
outcome. For example: attempting to launch TestActivity from
LaunchToSideActivity *before* the latter becomes visible will
fail.

Original change Id I2cbee39b724524169f753624b91b5093e610aff5

Change-Id: I2cbee39b724524169f753624b91b5093e610aff6
ervices/activitymanager/src/android/server/cts/ActivityManagerActivityVisiblityTests.java
ervices/activitymanager/src/android/server/cts/ActivityManagerDockedStackTests.java
5da9259e15562966f23c88ebf5a55ff84fedf063 19-Dec-2016 Pavel Grafov <pgrafov@google.com> CTS test to verify that ENSURE_VERIFY_APPS is enforced globally.

Bug:31000521
Test: cts-tradefed run cts -m CtsDevicePolicyManagerTestCases -t com.android.cts.devicepolicy.UserRestrictionsTest

Change-Id: Ib745ba91d29f7c9ff039ff0f648a3a9029f86068
evicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/userrestrictions/ProfileGlobalRestrictionsTest.java
evicepolicy/src/com/android/cts/devicepolicy/UserRestrictionsTest.java
2f6fda3e1f11ae31697f1c7d67f81b1aa1900c26 13-Jan-2017 Nicolas Prévot <nprevot@google.com> Merge "Additional cts tests for removing a managed profile."
32c0fdcb4d90e7e881c39f73275d91b1e9a1cebf 13-Jan-2017 Sandeep Patil <sspatil@google.com> Merge "hostsidetests: security: fix AospSeappContexts test" am: e95520c69b am: fa7aada371 am: 9dbc3da2a6
am: 3bc6f2769e

Change-Id: Ied1ca4c7b236fa04ca010d19a94d486b90e972d8
3bc6f2769ef6cbff0641abf4815808f3832e75d5 13-Jan-2017 Sandeep Patil <sspatil@google.com> Merge "hostsidetests: security: fix AospSeappContexts test" am: e95520c69b am: fa7aada371
am: 9dbc3da2a6

Change-Id: I53423af1a3a33ae841037118ebc0e9272c0ce390
9dbc3da2a61b3ef178c7a3414ab78e12ad09f1d1 13-Jan-2017 Sandeep Patil <sspatil@google.com> Merge "hostsidetests: security: fix AospSeappContexts test" am: e95520c69b
am: fa7aada371

Change-Id: Ia2870805a579685ff2c1be1399eb6338851c803e
9a09bb0b2cc82329a076dba2fde679dce579d2d3 13-Jan-2017 Kazuhiro Inaba <kinaba@google.com> Add mdpi and hdpi assets for theme cts.

Bug: 33428704
Test: cts-tradefed run cts -m CtsThemeHostTestCases
heme/assets/hdpi.zip
heme/assets/mdpi.zip
0f0aea19c540f109280bed5157dea3c6b545ac3f 12-Jan-2017 Sandeep Patil <sspatil@google.com> hostsidetests: security: fix AospSeappContexts test

Also correctly name the platform seapp contexts targets in
the makefile.

Bug: 34234038

Change-Id: I504544ea31449f2028f3eeb844c94293ad5ad31e
Signed-off-by: Sandeep Patil <sspatil@google.com>
ecurity/Android.mk
ecurity/src/android/security/cts/SELinuxHostTest.java
35b6e135fc1037227594104a8642869656f65a1a 13-Jan-2017 Todd Kennedy <toddke@google.com> Merge "Add ephemeral query test"
5c44c4efe4414fc48d45fd7cba12c3f3902a33b3 13-Jan-2017 Colin Cross <ccross@android.com> Merge "Remove references to non-existent directories"
8dafb4578268dd1bf31c8e66d2e2c72eb09c68e9 12-Jan-2017 Xin Li <delphij@google.com> Merge commit 'b16a82e23ca86d8e0a6292d9a64ef7575011ed02' from
nougat-cts-dev to nougat-cts-mr1-dev.

BUG: 33090058
Change-Id: I007a36ad5c9d83feea80b27dadcff5bf0fffd559
1d8f1195901e1d6718364f3f0e11175f7ccf0680 12-Jan-2017 Colin Cross <ccross@android.com> Remove references to non-existent directories

Fixes warnings during makefile parsing:
FindEmulator: find: `cts/hostsidetests/appsecurity/test-apps/EphemeralTestApp/EphemeralApp2/src': No such file or directory
FindEmulator: cd: cts/hostsidetests/content/res: No such file or directory

Test: builds
Change-Id: I1b0e49e9d9cf1ff7014df4412b6f7aaee380fb17
ppsecurity/test-apps/EphemeralTestApp/EphemeralApp2/Android.mk
ontent/Android.mk
81153800452b31f4c2426e3142bd30f35b4fff20 12-Jan-2017 Nicolas Prevot <nprevot@google.com> Additional cts tests for removing a managed profile.

Cts tests that:
- The managed profile can be removed with adb even if
DISALLOW_REMOVE_USER is set
- The managed profile can be removed by the DO even if it
has set DISALLOW_REMOVE_USER and DISALLOW_REMOVE_MANAGED_PROFILE

BUG:31952368
Test: cts-tradefed run cts --module CtsDevicePolicyManagerTestCases
--test com.android.cts.devicepolicy.DeviceOwnerPlusManagedProfileTest#testCanRemoveProfileEvenIfDisallowRemoveUserSet
cts-tradefed run cts --module CtsDevicePolicyManagerTestCases
--test com.android.cts.devicepolicy.DeviceOwnerPlusManagedProfileTest#testDoCanRemoveProfileEvenIfUserRestrictionSet

Change-Id: I7e22b84a5ab5b1c559342f7254c0ccb7386debf7
evicepolicy/app/CorpOwnedManagedProfile/src/com/android/cts/comp/ManagementTest.java
evicepolicy/app/CorpOwnedManagedProfile/src/com/android/cts/comp/provisioning/UserRestrictionTest.java
evicepolicy/src/com/android/cts/devicepolicy/DeviceOwnerPlusManagedProfileTest.java
a34f3603622e0361cacdee5012f2f5fd51ca11de 12-Jan-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Cts test for wipeData with disallow remove profile restriction."
7f49961ff3ebd884353b528290b1ebd192d61ab5 10-Jan-2017 Nicolas Prevot <nprevot@google.com> Cts test for wipeData with disallow remove profile restriction.

BUG:31952368
Test: cts-tradefed run cts --module CtsDevicePolicyManagerTestCases --test com.android.cts.devicepolicy.ManagedProfileTest#testWipeData
cts-tradefed run cts --module CtsDevicePolicyManagerTestCases --test
com.android.cts.devicepolicy.DeviceOwnerPlusManagedProfileTest#testWipeData

Change-Id: I4de3c5addec3d0ab2f4f567a325739b12e59282e
evicepolicy/app/CorpOwnedManagedProfile/res/xml/device_admin.xml
evicepolicy/app/CorpOwnedManagedProfile/src/com/android/cts/comp/ManagementTest.java
evicepolicy/src/com/android/cts/devicepolicy/BaseDevicePolicyTest.java
evicepolicy/src/com/android/cts/devicepolicy/DeviceOwnerPlusManagedProfileTest.java
evicepolicy/src/com/android/cts/devicepolicy/ManagedProfileTest.java
a08ab49d9e68b20647edae446164330aa794dcba 12-Jan-2017 Badash <badash@google.com> resolve merge conflicts of d1f53fa1fb to master

Test: this is a test
Change-Id: If1eaf5b41a6b869deba2d5f93b4ce0fef9ae0e97
a984bde13749ca2b2ae2b4295ac75dfa01cc8bc6 12-Jan-2017 Badash <badash@google.com> Security Patch Tests for critical bugs October 2016 am: dc76200bfb am: 5db0735c05 am: ca200df92d am: 107237cff0
am: 50516cac80

Change-Id: Ie6f7997fdec3a1a21e8d231e286c1fccb563ca2d
50516cac80a8ca6738cfd2207c1f5a0305090f9b 12-Jan-2017 Badash <badash@google.com> Security Patch Tests for critical bugs October 2016 am: dc76200bfb am: 5db0735c05 am: ca200df92d
am: 107237cff0

Change-Id: I454240e60877969262848dd2e59b5e659f7dbf5b
588d8d40429a1d63683c183db10238d9fa02003d 12-Jan-2017 Badash <badash@google.com> Security Patch Tests for critical bugs October 2016 am: dc76200bfb am: 5db0735c05 am: ca200df92d
am: 107237cff0

Change-Id: I898154d86d8f2254744c60f5a391a2308861b91f
ca200df92d47ee69ed47f48b2f9a83b987a74c35 12-Jan-2017 Badash <badash@google.com> Security Patch Tests for critical bugs October 2016 am: dc76200bfb
am: 5db0735c05

Change-Id: Ib59d760c75bc6016152a5d9f5375e3d9b0ae080e
f2b1a504d0cb9041e68781d17def543f70ebac0d 12-Jan-2017 Badash <badash@google.com> 2 CTS test for January bulletin Critical am: 1b963fcc9e am: 0573b42f1a am: 4ba115953c am: 8fee3335a9
am: 90ac49e2c1

Change-Id: Ibce8d516f2e0de1b3e18bf6fc34b6cd7b9efb138
5db0735c05090726f52614c5411408ea591ada93 12-Jan-2017 Badash <badash@google.com> Security Patch Tests for critical bugs October 2016
am: dc76200bfb

Change-Id: I1efb1d257f18e318f435075e7a6013fc0c7f6f44
d1f53fa1fb5504a3be12a76e54c73050a3aa08c4 12-Jan-2017 Badash <badash@google.com> Commit for some of the critical bugs in December 20016 am: ec0328c01d am: 86f03accd8 am: 137c4894af am: e59815d984
am: a3eedcba38

Change-Id: Ie710b5177eb7730d4503f564e6bd74a4a6ec93ff
e46d31511c3c12b25b094b409cd927fd9028ed75 12-Jan-2017 Badash <badash@google.com> 2 CTS test for January bulletin Critical am: 1b963fcc9e am: 0573b42f1a am: 4ba115953c
am: 8fee3335a9

Change-Id: I9b4f34adb4a7706c58d8d22fba3419ac17a063ad
90ac49e2c18e4f78d70548c09ead732ab1eacf14 12-Jan-2017 Badash <badash@google.com> 2 CTS test for January bulletin Critical am: 1b963fcc9e am: 0573b42f1a am: 4ba115953c
am: 8fee3335a9

Change-Id: I522b9d7e58dffae0ce2a4c263415f34f3a46ce5a
a3eedcba38ecf93623658889fe219a9aebc24846 12-Jan-2017 Badash <badash@google.com> Commit for some of the critical bugs in December 20016 am: ec0328c01d am: 86f03accd8 am: 137c4894af
am: e59815d984

Change-Id: I0f8aa87ef9355a4ad339a3d2fd7323ede5fd1b78
c704f30d731baedd4c205fde0f8c56f77755ef59 12-Jan-2017 Badash <badash@google.com> Commit for some of the critical bugs in December 20016 am: ec0328c01d am: 86f03accd8 am: 137c4894af
am: e59815d984

Change-Id: Ia57c2d739a4eb4814c02b1dbb100be00e0b6fd3e
c8feb25eecd4ff94d265a038d215276bf3acd66c 12-Jan-2017 Jesse Badash <badash@google.com> Merge "Security Patch Tests for critical bugs October 2016" into nyc-dev
4ba115953c551e01f3e9760b6fa3a1aa8518e19a 12-Jan-2017 Badash <badash@google.com> 2 CTS test for January bulletin Critical am: 1b963fcc9e
am: 0573b42f1a

Change-Id: I7f9566b37f9f869fc37a9f80d8ed2bc97c4401fd
137c4894af86b1dd42225e3f8033d479b242813e 12-Jan-2017 Badash <badash@google.com> Commit for some of the critical bugs in December 20016 am: ec0328c01d
am: 86f03accd8

Change-Id: I46a866912e38d1dfa327a9c8dc5d4c168608f8d1
0573b42f1a46a8086e43cf3bb1a5627e0f266b32 12-Jan-2017 Badash <badash@google.com> 2 CTS test for January bulletin Critical
am: 1b963fcc9e

Change-Id: I62a8351ceb32e2066d18f7b5a1fb746aaf935e70
86f03accd87179b6884c6b8de68e46c07b878d15 12-Jan-2017 Badash <badash@google.com> Commit for some of the critical bugs in December 20016
am: ec0328c01d

Change-Id: I1c1baf2bb9b51199f982ffbff47f22e8e42703e8
3247c57f1da4ac17083fe66d69671f7a0cb823ac 12-Jan-2017 Jesse Badash <badash@google.com> Merge "2 CTS test for January bulletin Critical" into nyc-dev
1b963fcc9e545fdbf3bdab752c8c55693a35d8e1 28-Dec-2016 Badash <badash@google.com> 2 CTS test for January bulletin Critical

Test: this is a test
Change-Id: I1b9c7f28d70235a39385934b9283c904adb3058e
(cherry picked from commit 48d7b6c836bd579c8365d3296d69861ff5e8b66c)
ecurity/securityPatch/CVE-2016-8482/Android.mk
ecurity/securityPatch/CVE-2016-8482/poc.c
ecurity/securityPatch/CVE-2017-0429/Android.mk
ecurity/securityPatch/CVE-2017-0429/poc.c
ecurity/src/android/security/cts/Poc17_01.java
dc76200bfbc89a32e3b27b8b5c29b5b8c8c78f4e 23-Dec-2016 Badash <badash@google.com> Security Patch Tests for critical bugs October 2016

Test: these are tests

Change-Id: Iacce8a7e210fd393586a87128e04c74ea99ecb49
(cherry picked from commit d9bc4ddd89f8746b9341313908a63b088bc10a5a)
ecurity/AndroidTest.xml
ecurity/securityPatch/CVE-2016-6730/Android.mk
ecurity/securityPatch/CVE-2016-6730/poc.c
ecurity/securityPatch/CVE-2016-6731/Android.mk
ecurity/securityPatch/CVE-2016-6731/poc.c
ecurity/securityPatch/CVE-2016-6732/Android.mk
ecurity/securityPatch/CVE-2016-6732/poc.c
ecurity/securityPatch/CVE-2016-6733/Android.mk
ecurity/securityPatch/CVE-2016-6733/local_pwn.h
ecurity/securityPatch/CVE-2016-6733/poc.c
ecurity/securityPatch/CVE-2016-6734/Android.mk
ecurity/securityPatch/CVE-2016-6734/poc.c
ecurity/securityPatch/CVE-2016-6735/Android.mk
ecurity/securityPatch/CVE-2016-6735/poc.c
ecurity/securityPatch/CVE-2016-6736/Android.mk
ecurity/securityPatch/CVE-2016-6736/poc.c
ecurity/src/android/security/cts/AdbUtils.java
ecurity/src/android/security/cts/Poc16_10.java
e4d633555464d354e721462346e8a55798229c0e 11-Jan-2017 Yorke Lee <yorkelee@google.com> DO NOT MERGE Improve parsing of "am stack list" in CTS drag and drop tests
am: 6bf9abd878

Change-Id: I34f4bababfbb86459aeed88c35e08a5666ff42b8
48d7b6c836bd579c8365d3296d69861ff5e8b66c 28-Dec-2016 Badash <badash@google.com> 2 CTS test for January bulletin Critical

Test: this is a test
Change-Id: I1b9c7f28d70235a39385934b9283c904adb3058e
ecurity/securityPatch/CVE-2016-8482/Android.mk
ecurity/securityPatch/CVE-2016-8482/poc.c
ecurity/securityPatch/CVE-2017-0429/Android.mk
ecurity/securityPatch/CVE-2017-0429/poc.c
ecurity/src/android/security/cts/Poc17_01.java
d8fe6172a8448969c7216f31be3e31ccc9370449 29-Dec-2016 Badash <badash@google.com> Some High PoC CTS tests for December (10)
Test: this is a test
Change-Id: If68e2f868fb9debe0875a79fa94c62a6483688c0
ecurity/securityPatch/CVE-2016-8412/Android.mk
ecurity/securityPatch/CVE-2016-8412/poc.c
ecurity/securityPatch/CVE-2016-8444/Android.mk
ecurity/securityPatch/CVE-2016-8444/poc.c
ecurity/securityPatch/CVE-2016-8448/Android.mk
ecurity/securityPatch/CVE-2016-8448/mtkfb.h
ecurity/securityPatch/CVE-2016-8448/mtkfb_info.h
ecurity/securityPatch/CVE-2016-8448/poc.c
ecurity/securityPatch/CVE-2016-8449/Android.mk
ecurity/securityPatch/CVE-2016-8449/poc.c
ecurity/securityPatch/CVE-2016-8460/Android.mk
ecurity/securityPatch/CVE-2016-8460/poc.c
ecurity/securityPatch/CVE-2017-0403/Android.mk
ecurity/securityPatch/CVE-2017-0403/poc.c
ecurity/securityPatch/CVE-2017-0404/Android.mk
ecurity/securityPatch/CVE-2017-0404/poc.c
ecurity/src/android/security/cts/Poc16_12.java
6bf9abd878755e8b4326eeca276f84f47c073b70 11-Jan-2017 Yorke Lee <yorkelee@google.com> DO NOT MERGE Improve parsing of "am stack list" in CTS drag and drop tests

Speculative fix for CTSCrossAppDragAndDropTests with the
assumption that some unexpected adb shell am stack list output
is causing the test to fail on CTS test bots.

This fix uses a regular expression to correctly identify the
intended task to reduce false positives.

Test: Tests pass locally with instrumented build of nyc-mr2-dev
with modified ActivityManager that outputs the same output as shown
on CTS test bots host logs.
Without the fix, the tests fail on the modified ActivityManager output.
Bug: 32905009

Change-Id: I33297e239686ad9ddea8cace9353f4557dc65232
ervices/windowmanager/src/android/wm/cts/CrossAppDragAndDropTests.java
995954fff0374ebf70a944a967d7f8b51874a894 07-Jan-2017 Luis Hector Chavez <lhchavez@google.com> Add android.app.action.SET_NEW_PASSWORD support as prerequisite of DirectBootHostTest

DirectBootHostTest uses the android.app.action.SET_NEW_PASSWORD intent
to launch the password settings activity. Some devices provide full-disk
encryption and authentication outside of Android, and therefore can
never be run in a state where the device has been powered on but the
user has not unlocked the device.

Bug: 33754525
Test: run cts -m CtsAppSecurityHostTestCases -t android.appsecurity.cts.DirectBootHostTest
Change-Id: Ic37c74dabe6cfa30a25ac18618da06a09091f803
ppsecurity/src/android/appsecurity/cts/DirectBootHostTest.java
ec0328c01df83fc65c3ca6a2855262d5a191fa20 20-Dec-2016 Badash <badash@google.com> Commit for some of the critical bugs in December 20016

Test: this is a test

Change-Id: I8844dd82b0a7be912166746bd330ad3e819b81e9
ecurity/AndroidTest.xml
ecurity/securityPatch/CVE-2016-8424/Android.mk
ecurity/securityPatch/CVE-2016-8424/poc.c
ecurity/securityPatch/CVE-2016-8425/Android.mk
ecurity/securityPatch/CVE-2016-8425/poc.c
ecurity/securityPatch/CVE-2016-8426/Android.mk
ecurity/securityPatch/CVE-2016-8426/poc.c
ecurity/securityPatch/CVE-2016-8427/Android.mk
ecurity/securityPatch/CVE-2016-8427/poc.c
ecurity/securityPatch/CVE-2016-8428/Android.mk
ecurity/securityPatch/CVE-2016-8428/poc.c
ecurity/securityPatch/CVE-2016-8429/Android.mk
ecurity/securityPatch/CVE-2016-8429/poc.c
ecurity/securityPatch/CVE-2016-8431/Android.mk
ecurity/securityPatch/CVE-2016-8431/local_poc.h
ecurity/securityPatch/CVE-2016-8431/poc.c
ecurity/securityPatch/CVE-2016-8432/Android.mk
ecurity/securityPatch/CVE-2016-8432/local_poc.h
ecurity/securityPatch/CVE-2016-8432/poc.c
ecurity/securityPatch/CVE-2016-8434/Android.mk
ecurity/securityPatch/CVE-2016-8434/poc.c
ecurity/securityPatch/CVE-2016-8435/Android.mk
ecurity/securityPatch/CVE-2016-8435/local_pwn.h
ecurity/securityPatch/CVE-2016-8435/poc.c
ecurity/securityPatch/CVE-2016-9120/Android.mk
ecurity/securityPatch/CVE-2016-9120/poc.c
ecurity/src/android/security/cts/AdbUtils.java
ecurity/src/android/security/cts/Poc16_12.java
6a0787a944c5264a5d003a6e13e78e45f1feb2e9 20-Dec-2016 Badash <badash@google.com> Initial hostside commit for CVE-2016-8430 b/32225180
Test: this is a test
Change-Id: I985d2416eea9f38d09f4d9628c651c06a4b78db2
ecurity/securityPatch/CVE-2016-8430/poc.c
ecurity/src/android/security/cts/AdbUtils.java
ecurity/src/android/security/cts/Poc16_12.java
ecurity/src/android/security/cts/SecurityTestCase.java
d9bc4ddd89f8746b9341313908a63b088bc10a5a 23-Dec-2016 Badash <badash@google.com> Security Patch Tests for critical bugs October 2016

Test: these are tests

Change-Id: Iacce8a7e210fd393586a87128e04c74ea99ecb49
ecurity/AndroidTest.xml
ecurity/securityPatch/CVE-2016-6730/Android.mk
ecurity/securityPatch/CVE-2016-6730/poc.c
ecurity/securityPatch/CVE-2016-6731/Android.mk
ecurity/securityPatch/CVE-2016-6731/poc.c
ecurity/securityPatch/CVE-2016-6732/Android.mk
ecurity/securityPatch/CVE-2016-6732/poc.c
ecurity/securityPatch/CVE-2016-6733/Android.mk
ecurity/securityPatch/CVE-2016-6733/local_pwn.h
ecurity/securityPatch/CVE-2016-6733/poc.c
ecurity/securityPatch/CVE-2016-6734/Android.mk
ecurity/securityPatch/CVE-2016-6734/poc.c
ecurity/securityPatch/CVE-2016-6735/Android.mk
ecurity/securityPatch/CVE-2016-6735/poc.c
ecurity/securityPatch/CVE-2016-6736/Android.mk
ecurity/securityPatch/CVE-2016-6736/poc.c
ecurity/src/android/security/cts/AdbUtils.java
ecurity/src/android/security/cts/Poc16_10.java
74596a72513e12d6b67348d82255d25390ebb7ba 11-Jan-2017 Jesse Badash <badash@google.com> Merge "Commit for some of the critical bugs in December 20016"
629df45dffd983bc768b1ae6f3a8e71f0a4cd5da 11-Jan-2017 Lenka Trochtova <ltrochtova@google.com> Merge "Test BluetoothOppLauncherActivity is disabled when BT is disallowed." am: 4cede4cc7e am: cae15328e5 am: 8ca99a8eb8
am: c09f60eddf

Change-Id: Ib91e04055ce785c918d83a3801eb91dbd0c46296
c09f60eddf608e7f4735ab5652b82f5f5a02ec1f 11-Jan-2017 Lenka Trochtova <ltrochtova@google.com> Merge "Test BluetoothOppLauncherActivity is disabled when BT is disallowed." am: 4cede4cc7e am: cae15328e5
am: 8ca99a8eb8

Change-Id: I189b8b5fee227d0e3659bed8036b37d8bcf6ebf4
8ca99a8eb8cb5ba5025f02aa60638399fc00061e 11-Jan-2017 Lenka Trochtova <ltrochtova@google.com> Merge "Test BluetoothOppLauncherActivity is disabled when BT is disallowed." am: 4cede4cc7e
am: cae15328e5

Change-Id: I626de9a9e0446d3707fd94ad3c09d5cba881f882
5105cf5ce34269feeb7f129fd63dc68c159f7543 16-Sep-2016 Nicolas Prevot <nprevot@google.com> Fix flaky testWipeData cts test.

Don't try to ensure in a managed profile device-side test that the
managed profile is being removed.
Just ensure in the host that the managed profile has indeed been
removed.

BUG: 31508902
Change-Id: Ic0fc6a167a469843653f0c3910ce81ef8ab9fc46
evicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/WipeDataTest.java
evicepolicy/src/com/android/cts/devicepolicy/ManagedProfileTest.java
2ee2cb3efb91e9cbf60b9ce1301bccd577739f6f 20-Dec-2016 Michal Karpinski <mkarpinski@google.com> Network logging CTS test

Added a test that generates enough network traffic so that a new
network logs batch is created. The batch is then verified to check
that the logging was done correctly.

Test: cts-tradefed run cts --module DevicePolicyManager --test com.android.cts.devicepolicy.DeviceOwnerTest#testNetworkLoggingWithSingleUser
Bug: 29748723
Change-Id: I1a6e6f29e05de3c5224b7b5eda2a4b200935fb07
evicepolicy/app/DeviceOwner/AndroidManifest.xml
evicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/BaseDeviceOwnerTest.java
evicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/NetworkLoggingTest.java
evicepolicy/src/com/android/cts/devicepolicy/DeviceOwnerTest.java
31c77f25a8fcca543bea16e9de8ebc493727b118 20-Dec-2016 Badash <badash@google.com> Commit for some of the critical bugs in December 20016

Test: this is a test

Change-Id: I8844dd82b0a7be912166746bd330ad3e819b81e9
ecurity/securityPatch/CVE-2016-8424/Android.mk
ecurity/securityPatch/CVE-2016-8424/poc.c
ecurity/securityPatch/CVE-2016-8425/Android.mk
ecurity/securityPatch/CVE-2016-8425/poc.c
ecurity/securityPatch/CVE-2016-8426/Android.mk
ecurity/securityPatch/CVE-2016-8426/poc.c
ecurity/securityPatch/CVE-2016-8427/Android.mk
ecurity/securityPatch/CVE-2016-8427/poc.c
ecurity/securityPatch/CVE-2016-8428/Android.mk
ecurity/securityPatch/CVE-2016-8428/poc.c
ecurity/securityPatch/CVE-2016-8429/Android.mk
ecurity/securityPatch/CVE-2016-8429/poc.c
ecurity/securityPatch/CVE-2016-8431/Android.mk
ecurity/securityPatch/CVE-2016-8431/local_poc.h
ecurity/securityPatch/CVE-2016-8431/poc.c
ecurity/securityPatch/CVE-2016-8432/Android.mk
ecurity/securityPatch/CVE-2016-8432/local_poc.h
ecurity/securityPatch/CVE-2016-8432/poc.c
ecurity/securityPatch/CVE-2016-8434/Android.mk
ecurity/securityPatch/CVE-2016-8434/poc.c
ecurity/securityPatch/CVE-2016-8435/Android.mk
ecurity/securityPatch/CVE-2016-8435/local_pwn.h
ecurity/securityPatch/CVE-2016-8435/poc.c
ecurity/securityPatch/CVE-2016-9120/Android.mk
ecurity/securityPatch/CVE-2016-9120/poc.c
858887b3aac84c40cf588b07ad68895ad14dbe2a 09-Dec-2016 Makoto Onuki <omakoto@google.com> Disable part of CTS that relies on non-public strings

Bug 28928996

Change-Id: Id49f2bd5dfa80ecf35b3a23c789100ade38c2656
evicepolicy/app/AccountCheck/Auth/src/com/android/cts/devicepolicy/accountcheck/AccountCheckTest.java
evicepolicy/src/com/android/cts/devicepolicy/AccountCheckHostSideTest.java
7c241a675eb35432924cc9ae4186a233aeb5b0ac 10-Jan-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Test for non-blocking Surface draw notification path."
d36f0ca47a5079fed2a7995142e71856a55bc880 10-Jan-2017 Yorke Lee <yorkelee@google.com> Log output of adb shell am output in CrossAppDragAndDropTests am: 9626456281
am: 3fae5b685d

Change-Id: I281b1cee32ed4e040f44906d2c4a28818124ff9d
3fae5b685ddfed388de6f4e435deaaa0cf0e496c 10-Jan-2017 Yorke Lee <yorkelee@google.com> Log output of adb shell am output in CrossAppDragAndDropTests
am: 9626456281

Change-Id: Ifaaf893cbe0e174cf681f6cd390491dc67b4009d
96264562812fc3d0e4c5c833c33fef5975757d20 10-Jan-2017 Yorke Lee <yorkelee@google.com> Log output of adb shell am output in CrossAppDragAndDropTests

Adding more logging to help track down test failures when
running on test bots.

Bug: 32905009
Test: run cts -m CtsDragAndDropHostTestCases

Change-Id: Ie206b93c00d3420c45b84bc233686b0b14a3de86
ervices/windowmanager/src/android/wm/cts/CrossAppDragAndDropTests.java
ca298d81fbd4593489bc0ade2f3c5198a9571696 10-Jan-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Adding PiP over lockscreen test"
2f7fdffbfe64117bfd637a89b7855fcd90760d71 10-Jan-2017 Todd Kennedy <toddke@google.com> Add ephemeral query test

Any app can specify they want to resolve ephemeral activities. Test that
this query flag is not honoured and we don't leak ephemeral activites.

Bug: 33458220
Test: cts-tradefed run commandAndExit cts-dev -m CtsAppSecurityHostTestCases -t android.appsecurity.cts.EphemeralTest
Change-Id: I643e8703e6a1cdd74e519671654016c6df3aa334
ppsecurity/src/android/appsecurity/cts/EphemeralTest.java
ppsecurity/test-apps/EphemeralTestApp/EphemeralApp1/src/com/android/cts/ephemeralapp1/ClientTest.java
ppsecurity/test-apps/EphemeralTestApp/NormalApp/src/com/android/cts/normalapp/ClientTest.java
dec3a2bf4a66d0545f762ea1dfcbfa592e5bc518 10-Jan-2017 Nicolas Prevot <nprevot@google.com> Test can't provision managed profile if there's a PO in user 0

BUG:32629873
Test: cts-tradefed run cts --module CtsDevicePolicyManagerTestCases --test com.android.cts.devicepolicy.ProfileOwnerTest
Change-Id: I01f9a5d885034f318b896e6d4cc803d1aafb3a5a
evicepolicy/app/ProfileOwner/src/com/android/cts/profileowner/ClearProfileOwnerTest.java
evicepolicy/app/ProfileOwner/src/com/android/cts/profileowner/ManagementTest.java
evicepolicy/src/com/android/cts/devicepolicy/ProfileOwnerTest.java
8750913a420bf12d3c294b0c2699c120419f9b40 10-Jan-2017 Andrew Scull <ascull@google.com> Merge "Tests for DevicePolicyManager#lockNow with key eviction."
e17b591ff58af048c7eaf3e4b7c0b5791cc7e970 10-Jan-2017 Nicolas Prévot <nprevot@google.com> Merge "Reintroduce wifi mac address cts tests for PO."
54cc0079519ffc8ff26c2b710d9f14efccf706c3 09-Jan-2017 Lenka Trochtova <ltrochtova@google.com> Test BluetoothOppLauncherActivity is disabled when BT is disallowed.

Test: cts-tradefed run cts -m CtsDevicePolicyManagerTestCases --test com.android.cts.devicepolicy.DeviceOwnerTest#testBluetoothRestriction

Bug: 32895060

Change-Id: I6f0552026dda8c9180b8c8ddfaf3e8c82d2e1a58
evicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/BluetoothRestrictionTest.java
f0f88919d6846c1ae279ca9e324b85e6c4ef6108 10-Jan-2017 Julien Desprez <jdesprez@google.com> Minimal commit for security test patches am: af0f5a8374 am: 20a5ba8f7d am: 4fbbc0e159 am: 4ee956fba5
am: ddbd0c32c9

Change-Id: Ib251279f387d7ebd2b479e422aa6952c9e8bd560
3aba366e9c68af7896fda5316db64d31ce26f9ad 10-Jan-2017 Julien Desprez <jdesprez@google.com> Minimal commit for security test patches am: af0f5a8374 am: 20a5ba8f7d am: 4fbbc0e159
am: 4ee956fba5

Change-Id: Icd9178152a88513ddf125d01a92170346c6c6920
4fbbc0e1593fb83e67462a90b639ef3a31176acb 10-Jan-2017 Julien Desprez <jdesprez@google.com> Minimal commit for security test patches am: af0f5a8374
am: 20a5ba8f7d

Change-Id: I91838560a080d37dd04931c3931eb6da34be97a3
20a5ba8f7dfaa403b132cb94e1b9de92abddcfc2 10-Jan-2017 Julien Desprez <jdesprez@google.com> Minimal commit for security test patches
am: af0f5a8374

Change-Id: Ic4425116951eed3d5d6a41f357c00df7e033e901
5f2b3c8c94e4480dfd88bba88e9c8aa93ab76a14 10-Jan-2017 Badash <badash@google.com> DO NOT MERGE Initial hostside commit for CVE-2016-8430 b/32225180 am: 1ddb568c2a am: 70ecd13465 am: 95ed2fb20e
am: aa0e8febc8

Change-Id: I54d95d168463ec67a8380dedb86f1dcde0fdc994
95ed2fb20e7fd5c0ded5cec11e22bd648f7df6a4 10-Jan-2017 Badash <badash@google.com> DO NOT MERGE Initial hostside commit for CVE-2016-8430 b/32225180 am: 1ddb568c2a
am: 70ecd13465

Change-Id: I9b82b28ca00c1f6ea744308123e4acf877959758
70ecd134658a57648278d0755793ec1fe2e66dcb 10-Jan-2017 Badash <badash@google.com> DO NOT MERGE Initial hostside commit for CVE-2016-8430 b/32225180
am: 1ddb568c2a

Change-Id: I8d067dea73f2d200cbab88b6644ae8533243a201
af0f5a837440425d5f585911aa679ffd5aecb2a6 20-Dec-2016 Julien Desprez <jdesprez@google.com> Minimal commit for security test patches

Commit on of the security patch tests artifact required
for testing.

Test: build -> binary available in testcases/
./cts-tradefed run cts --module CtsSecurityHostTestCases
binary is pushed to /data/local/tmp/

Change-Id: Icd30f28f54d59c8f45579196ebf051c8b8cd9f73
(cherry picked from commit fceafdf0c08ae28759c5a62a57ba5513ab095500)
ecurity/AndroidTest.xml
ecurity/securityPatch/Android.mk
ecurity/securityPatch/CVE-2016-8430/Android.mk
54e18c34d856ccae703feef411348196d0dac9b8 10-Jan-2017 Jesse Badash <badash@google.com> Merge "DO NOT MERGE Initial hostside commit for CVE-2016-8430 b/32225180" into nyc-dev
1ddb568c2a4f6f9a33a9082a6b450c5c3506e2e7 20-Dec-2016 Badash <badash@google.com> DO NOT MERGE Initial hostside commit for CVE-2016-8430 b/32225180

Change-Id: I985d2416eea9f38d09f4d9628c651c06a4b78db2
ecurity/securityPatch/CVE-2016-8430/poc.c
ecurity/src/android/security/cts/AdbUtils.java
ecurity/src/android/security/cts/Poc16_12.java
ecurity/src/android/security/cts/SecurityTestCase.java
79fe2bb615d0a14eb1ec3d7bcb2171468be08022 09-Jan-2017 Dan Cashman <dcashman@google.com> Merge "Adjust seapp_contexts target after split." am: 21a159542b am: 8ae11d5ce3 am: ef80c5885f
am: 447fb23005

Change-Id: I7819f820fba73da6334c43e6790434c5dcbd6c19
ef80c5885f9e4bebefe75d16f1ef115e358eb9c5 09-Jan-2017 Dan Cashman <dcashman@google.com> Merge "Adjust seapp_contexts target after split." am: 21a159542b
am: 8ae11d5ce3

Change-Id: I416bde957e5ab97748a3f6bc81037db3a407da90
010c93a1abdd4cd50bdacacb9a5a44047e5f7a7f 09-Jan-2017 Nicolas Prevot <nprevot@google.com> Cts for isProvisioningAllowed with user restrictions.

Test the behavior of isProvisioningAllowed depending on
disallow add/remove managed profile user restriction.

Test: cts-tradefed run cts --module CtsDevicePolicyManagerTestCases --test
com.android.cts.devicepolicy.DeviceOwnerPlusManagedProfileTest#testIsProvisioningAllowed
BUG:32629873

Change-Id: I93a16cc5553c74ec1de041bee973a4532fab695c
evicepolicy/app/CorpOwnedManagedProfile/src/com/android/cts/comp/DeviceOwnerCompTest.java
evicepolicy/app/CorpOwnedManagedProfile/src/com/android/cts/comp/ManagementTest.java
evicepolicy/src/com/android/cts/devicepolicy/DeviceOwnerPlusManagedProfileTest.java
8832678e057cd9fed36eed89ba5316b949c8b922 09-Jan-2017 Nicolas Prevot <nprevot@google.com> Reintroduce wifi mac address cts tests for PO.

BUG:34158452
Test: cts-tradefed run cts --module CtsDevicePolicyManagerTestCases --test
com.android.cts.devicepolicy.ManagedProfileTest#testWifiMacAddress
cts-tradefed run cts --module CtsDevicePolicyManagerTestCases --test
com.android.cts.devicepolicy.ProfileOwnerTest

Change-Id: Idb0d1767d8020c039c114e3f7d920f37fd656f2b
evicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/WifiTest.java
evicepolicy/app/ProfileOwner/src/com/android/cts/profileowner/ClearProfileOwnerTest.java
evicepolicy/app/ProfileOwner/src/com/android/cts/profileowner/WifiTest.java
evicepolicy/src/com/android/cts/devicepolicy/ManagedProfileTest.java
evicepolicy/src/com/android/cts/devicepolicy/ProfileOwnerTest.java
051b5704781292d71545eea5e66f7733bf654111 09-Jan-2017 Tony Mak <tonymak@google.com> Add dismiss keyguard flag to fix disableScreenCapture test

Fix: 34049587

Test: cts-tradefed run cts --module CtsDevicePolicyManagerTestCases --test com.android.cts.devicepolicy.MixedManagedProfileOwnerTest#testScreenCaptureDisabled_allowedPrimaryUser
evicepolicy/app/SimpleApp/src/com/android/cts/launcherapps/simpleapp/SimpleActivity.java
23fd68a7e7dcaafd8319dd178fbecff690567e59 09-Jan-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Cts tests for disallow add/remove managed profile user restrictions."
656722ddedf3703080da57c466656ef499593d83 05-Jan-2017 Nicolas Prevot <nprevot@google.com> Cts tests for disallow add/remove managed profile user restrictions.

BUG:31952368
Test: cts-tradefed run cts --module CtsDevicePolicyManagerTestCases --test com.android.cts.devicepolicy.DeviceOwnerPlusManagedProfileTest

Change-Id: I483825c9eefdadaf74db3cd004a86b931c7b4883
evicepolicy/app/CorpOwnedManagedProfile/src/com/android/cts/comp/provisioning/UserRestrictionTest.java
evicepolicy/src/com/android/cts/devicepolicy/BaseDevicePolicyTest.java
evicepolicy/src/com/android/cts/devicepolicy/DeviceOwnerPlusManagedProfileTest.java
a52caf2c01d6b67742ef34c28d7350acc14f869b 06-Jan-2017 Sandeep Patil <sspatil@google.com> Merge "security: update tests after file_context split" am: 109ad25878 am: a5bc353c84 am: 9fd6a436f9
am: 3d7d8935df

Change-Id: I741aefe7c23cdc6b855716148504c9d175427ec3
9fd6a436f9c19618550326122a6c1162b5a7ff3c 06-Jan-2017 Sandeep Patil <sspatil@google.com> Merge "security: update tests after file_context split" am: 109ad25878
am: a5bc353c84

Change-Id: I9e72fede7b52d828f28086daa56fd2aa4a427868
0df066684bbee8c5e2091b3c068054619b768a42 06-Jan-2017 Nicolas Prévot <nprevot@google.com> Merge "Test isProvisioningAllowed with DISALLOW_REMOVE_MANAGED_PROFILE."
10f5db5a37bd2237ca64c0f189121240df66aea5 21-Nov-2016 Nicolas Prevot <nprevot@google.com> Test isProvisioningAllowed with DISALLOW_REMOVE_MANAGED_PROFILE.

If there is already a managed profile and
DISALLOW_REMOVE_MANAGED_PROFILE is set:
Test that isProvisioningAllowed returns false.
BUG:32629873
Test: cts-tradefed run cts --module CtsDevicePolicyManagerTestCases --test
com.android.cts.devicepolicy.DeviceOwnerPlusManagedProfileTest#testBindDeviceAdminServiceAsUser_corpOwnedManagedProfile

Change-Id: Ided1394532bec8831b616877dba7ff71d035c3e2
evicepolicy/app/CorpOwnedManagedProfile/src/com/android/cts/comp/DeviceOwnerCompTest.java
evicepolicy/src/com/android/cts/devicepolicy/DeviceOwnerPlusManagedProfileTest.java
e7f50350e2adbcd4a402ad4bdeb18f424f48f259 04-Jan-2017 Tony Mak <tonymak@google.com> Disabling keyguard for DeviceAndProfileOwner CTS package

There are some UI related CTS inside it, we should disable
keyguard as other UI CTS do.

TODO: Have the similar change for other DevicePolicy CTS that
requires to show UI as well.

Bug: 34049587

Test: make cts -j20 && cts-tradefed run cts --module CtsDevicePolicyManagerTestCases --test com.android.cts.devicepolicy.MixedManagedProfileOwnerTest#testScreenCaptureDisabled_allowedPrimaryUser
Run the CTS with keyguard, observing that keyguard is dismissed and it passes.

Change-Id: I155419b3a4a49d6b311895b903866b22a82a219b
evicepolicy/app/DeviceAndProfileOwner/api23/AndroidManifest.xml
evicepolicy/app/DeviceAndProfileOwner/latest/AndroidManifest.xml
fde29045762297d5c35722c50e5922eed1f50f5b 22-Dec-2016 Dan Cashman <dcashman@google.com> Adjust seapp_contexts target after split.

Bug: 33746381
Test: CTS builds.
Change-Id: I8df74d65fd5db7c80ec5eaf4198055608eb1efeb
Signed-off-by: Sandeep Patil <sspatil@google.com>
ecurity/Android.mk
ecurity/src/android/security/cts/SELinuxHostTest.java
8532c64201ad3b2c103bd2d5aff933026cc596bf 06-Jan-2017 Sandeep Patil <sspatil@google.com> security: update tests after file_context split

Bug: 31363362
Test: CTS Builds

Change-Id: Ic64eeab7fc183abc4b9f403dff54aab4c3877832
Signed-off-by: Sandeep Patil <sspatil@google.com>
ecurity/Android.mk
ecurity/src/android/security/cts/SELinuxHostTest.java
1cbd996b5d0f6f23d449fff0e44513a1b4dec042 05-Jan-2017 Andrii Kulian <akulian@google.com> Merge "Test for focus switching from secondary display"
e7467123e3e9433c800bd19fa6cc64a5fba38822 05-Jan-2017 Badash <badash@google.com> Remove Sample tests am: b9e35bec52 am: 06659cef18 am: d2b771a3c9 am: c75de2bcfd
am: 63177dfb4b

Change-Id: I4acb5f848287ab65d5291bd42f0369ad96ec50f3
c75de2bcfdf4467d523ec7cd4626b9810a070b97 05-Jan-2017 Badash <badash@google.com> Remove Sample tests am: b9e35bec52 am: 06659cef18
am: d2b771a3c9

Change-Id: I6ff32fe0eab3adbd2851ad3909bcf1dbb96c76b8
d2b771a3c96645ba9f03730cfa9a7b8bbde4666f 05-Jan-2017 Badash <badash@google.com> Remove Sample tests am: b9e35bec52
am: 06659cef18

Change-Id: Iecfd1b67fa2ccd6f87375bf8eea9c799b98dd871
06659cef188ad44ca16c93e469230c82a827db67 05-Jan-2017 Badash <badash@google.com> Remove Sample tests
am: b9e35bec52

Change-Id: If50c5d05d64105f7d92f464f6e7fdae24953b7f6
b9e35bec52f153260a8a2a800762e15008fdb38b 04-Jan-2017 Badash <badash@google.com> Remove Sample tests

Change-Id: I5a5dbef2e3ef6b301c0f11176e88fcb18b24c019
ecurity/src/android/security/cts/SampleRootTestCase.java
4cc4b8b0459049aee78c82c0b508a6d719519bfa 05-Jan-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Limit number of retries for checking displays state"
4fa663d4880a5b8f0fd4d66d24f21c8e8765f324 05-Jan-2017 Nicolas Prévot <nprevot@google.com> Merge "Test that DO can bind to managed profile before it's enabled."
f1538b9f459f8d0cca77799e1add42eec0f6d37e 05-Jan-2017 Nicolas Prévot <nprevot@google.com> Merge "Update cts since disallow add/remove managed profile not global."
f734aa60e8524882ef7664e6d574844f3803e17f 08-Dec-2016 Nicolas Prevot <nprevot@google.com> Test that DO can bind to managed profile before it's enabled.

Also do some cleanup by using the same test class for managed
profile and device owner bind service.

BUG:32433112
BUG:33605748
Test: cts-tradefed run cts --module CtsDevicePolicyManagerTestCases
--test com.android.cts.devicepolicy.DeviceOwnerPlusManagedProfileTest

Change-Id: I2575019556b63f3995a418bf52734879215edc4a
evicepolicy/app/CorpOwnedManagedProfile/src/com/android/cts/comp/AdminReceiver.java
evicepolicy/app/CorpOwnedManagedProfile/src/com/android/cts/comp/BaseDeviceOwnerCompTest.java
evicepolicy/app/CorpOwnedManagedProfile/src/com/android/cts/comp/BaseManagedProfileCompTest.java
evicepolicy/app/CorpOwnedManagedProfile/src/com/android/cts/comp/BindDeviceAdminServiceFailsTest.java
evicepolicy/app/CorpOwnedManagedProfile/src/com/android/cts/comp/BindDeviceAdminServiceGoodSetupTest.java
evicepolicy/app/CorpOwnedManagedProfile/src/com/android/cts/comp/DeviceOwnerBindDeviceAdminServiceTest.java
evicepolicy/app/CorpOwnedManagedProfile/src/com/android/cts/comp/ManagedProfileBindDeviceAdminServiceTest.java
evicepolicy/app/CorpOwnedManagedProfile/src/com/android/cts/comp/ManagementTest.java
evicepolicy/app/CorpOwnedManagedProfile/src/com/android/cts/comp/Utils.java
evicepolicy/app/CorpOwnedManagedProfile/src/com/android/cts/comp/bindservice/BindDeviceAdminServiceCorpOwnedManagedProfileTestSuite.java
evicepolicy/app/CorpOwnedManagedProfile/src/com/android/cts/comp/bindservice/BindDeviceAdminServiceFailsTestSuite.java
evicepolicy/app/CorpOwnedManagedProfile/src/com/android/cts/comp/provisioning/ManagedProfileProvisioningTest.java
evicepolicy/app/CorpOwnedManagedProfile/src/com/android/cts/comp/provisioning/SilentProvisioningTestManager.java
evicepolicy/src/com/android/cts/devicepolicy/DeviceOwnerPlusManagedProfileTest.java
a9adc7b0e4e1dbdeb2c343dde8f8c1dda354e2fd 05-Jan-2017 Nicolas Prevot <nprevot@google.com> Update cts since disallow add/remove managed profile not global.

BUG:33854430
Test: cts-tradefed run cts --module CtsDevicePolicyManagerTestCases
--test com.android.cts.devicepolicy.UserRestrictionsTest
Change-Id: I952a3c6d63b7e7a7bd4716acc67d2ba6d9a660bc
evicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/userrestrictions/BaseUserRestrictionsTest.java
evicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/userrestrictions/SecondaryProfileOwnerUserRestrictionsTest.java
4460fd20fa64c64769e000b5ef96f7a48f2f4e56 05-Jan-2017 Badash <badash@google.com> Remove Sample tests am: a6644df308
am: 56e76b9330

Change-Id: Ic3506bc272192027973c84f3001f1bdfb40c527e
56e76b93305c61c454f692373f8f14e621e2b5a1 05-Jan-2017 Badash <badash@google.com> Remove Sample tests
am: a6644df308

Change-Id: Iaa4b4cdd26aadd9f1847d73ad9d3254889876287
5a6b0b56f5a37ce2dbc4dabeb5ea7f062201231f 05-Jan-2017 Andrii Kulian <akulian@google.com> Limit number of retries for checking displays state

In ActivityManagerDisplayTests if crash occured and we started
waiting for some specific number of displays, we were falling in
an infinite loop.
This CL limits the number of retries for this check.

Test: android.server.cts.ActivityManagerDisplayTests
Change-Id: I69d0e6c9be983b2b3e11d18d446c70f9820f61c6
Fixes: 33782102
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/ActivityManagerDisplayTests.java
581a186bd58dc4a5a1d1f6b7143dbc5e89eaaecd 28-Dec-2016 Andrii Kulian <akulian@google.com> Test for focus switching from secondary display

Check focus switching when a secondary display is removed
or there are no more activities left there.

Test: android.server.cts.ActivityManagerDisplayTests
Test: #testStackFocusSwitchOnDisplayRemoved
Test: #testStackFocusSwitchOnStackEmptied
Change-Id: I537e99b6f2aeea90fe4e72ba851fd8933f0c4063
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/ActivityManagerActivityVisibilityTests.java
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/ActivityManagerDisplayTests.java
ervices/activityandwindowmanager/util/src/android/server/cts/ActivityManagerTestBase.java
a6644df3082ba5b4f8e47198ba80c7d739cc00d9 04-Jan-2017 Badash <badash@google.com> Remove Sample tests

Change-Id: I5a5dbef2e3ef6b301c0f11176e88fcb18b24c019
ecurity/src/android/security/cts/SampleRootTestCase.java
c1fbf401c7d8e07473304758206bb3c841dc5893 04-Jan-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Assert that v2 signatures required for ephemeral APKs"
45f59090e8d39d9061f2c427fa48f165b9fa6589 04-Jan-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Test that pinned stack is always on top"
044f35a240c92e9eb9810d5533cca7dd02b72772 04-Jan-2017 Andrii Kulian <akulian@google.com> Test that pinned stack is always on top

Change-Id: I40cfab447223987540b8bc340e2feb43883b953c
Fixes: 34049027
Test: android.server.cts.ActivityManagerPinnedStackTests
Test: #testPinnedStackAlwaysOnTop
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/ActivityManagerPinnedStackTests.java
ad128dccff9a882039d22a0a458c1f3e802ec946 04-Jan-2017 Alex Klyubin <klyubin@google.com> Assert that v2 signatures required for ephemeral APKs

This makes CTS assert that PackageManager requires ephemeral APKs to
be signed using APK Signature Scheme v2.

Test: run singleCommand cts --skip-device-info --skip-preconditions --skip-connectivity-check --abi arm64-v8a --module CtsAppSecurityHostTestCases -t android.appsecurity.cts.PkgInstallSignatureVerificationTest
Bug: 33700225
Change-Id: I88e88323a77f04a6526b21ee2a0f20b3888e37ff
ppsecurity/res/pkgsigverify/unsigned-ephemeral.apk
ppsecurity/res/pkgsigverify/v1-only-ephemeral.apk
ppsecurity/res/pkgsigverify/v1-v2-ephemeral.apk
ppsecurity/res/pkgsigverify/v2-only-ephemeral.apk
ppsecurity/src/android/appsecurity/cts/PkgInstallSignatureVerificationTest.java
8317906b3dd1fde437d44c320facab49c0193205 04-Jan-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Verify ServiceConnection callback is always run in main thread"
c9b93e79b5cca8ed5f36af233655fbd339747db8 28-Dec-2016 Tony Mak <tonymak@google.com> Verify ServiceConnection callback is always run in main thread

Test: cts-tradefed run cts --module CtsDevicePolicyManagerTestCases
--test com.android.cts.devicepolicy.DeviceOwnerPlusManagedProfileTest

Bug: 33568999
Change-Id: I8a6b6749652df987afb3a9884f797e3a94c826b4
evicepolicy/app/CorpOwnedManagedProfile/src/com/android/cts/comp/bindservice/BindDeviceAdminServiceCorpOwnedManagedProfileTestSuite.java
3b02e645e79c5b46a76a0f384930d6a07313bd02 30-Nov-2016 Robert Carr <racarr@google.com> Test for non-blocking Surface draw notification path.

A simple test, verifying at least that clients using it
still appear on screen and things don't crash.

Test: cts-tradefed run singleCommand cts -d -o --module CtsWindowManagerHostTestCases --test android.server.cts.SurfaceViewTests
Bug: 31850030
Change-Id: I8e6444a3ab7f0e7f2b1ac6edac5c71b5bbb76f06
ervices/activityandwindowmanager/windowmanager/frametestapp/src/android/server/frametestapp/SurfaceViewTestActivity.java
ervices/activityandwindowmanager/windowmanager/src/android/server/cts/SurfaceViewTests.java
7f059a30c2acc6dd953074b45bcfdca1c1246833 03-Jan-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Partial revert of change 10737163eb75062f7ec42c45d526f4d5cad60678"
6c961d51772fec5a99f1c99cda15a3e52c9b1828 03-Jan-2017 Robin Lee <rgl@google.com> Partial revert of change 10737163eb75062f7ec42c45d526f4d5cad60678

The overridden @RequiresDevice is not picked up by cts-tradefed,
so networking continues to be broken.

This temporary fix prevents that.

Bug: 34048346
Test: cts-tradefed local
Change-Id: I495d7f8c41727e10c74b1e140e74baf9cfb61c32
evicepolicy/src/com/android/cts/devicepolicy/DeviceAndProfileOwnerTest.java
bc83c04996cb2eb946926096f717297091d5b8b2 03-Jan-2017 Tony Mak <tonymak@google.com> clear DISALLOW_ADD_MANAGED_PROFILE before creating profile in CTS

Test: cts-tradefed run cts --module CtsDevicePolicyManagerTestCases --test com.android.cts.devicepolicy.DeviceOwnerPlusManagedProfileTest

Fix: 33830303

Change-Id: I1db52109cb5fe93724476b7b6aad2701dc9fcef5
evicepolicy/app/CorpOwnedManagedProfile/src/com/android/cts/comp/provisioning/UserRestrictionTest.java
evicepolicy/src/com/android/cts/devicepolicy/DeviceOwnerPlusManagedProfileTest.java
6dd648eb166f2eff0c8e6fc428619e04854e8bf8 30-Dec-2016 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Require a device for networking test on primary PO"
1e77cd1e5f27f8efea6b5315dbaf15adeaef5256 30-Dec-2016 Robin Lee <rgl@google.com> Require a device for networking test on primary PO

This has the same issues on cloud devices as primary DO, network
lockdown kills the connection to the instance. See issue 31585407.

Change-Id: I25c6ccd3ac8739d8290e1db32358360d1b671371
evicepolicy/src/com/android/cts/devicepolicy/MixedProfileOwnerTest.java
5d52efc017dc1ee570507c74ff215e31772ca3c5 29-Dec-2016 Svetoslav Ganov <svetoslavganov@google.com> Don't allow permission change to runtime - tests

Prevent apps to change permission protection level to dangerous
from any other type as this would allow a privilege escalation
where an app adds a normal permission in other app's group and
then redefines it as dangerous leading to the group auto-grant.

Test: Added a CTS test which passes.

bug:33860747

Change-Id: Ic38f59438bf065bd03d3bc3397989470c036f763
ppsecurity/src/android/appsecurity/cts/PermissionsHostTest.java
ppsecurity/test-apps/DeclareNotRuntimePermissions/Android.mk
ppsecurity/test-apps/DeclareNotRuntimePermissions/AndroidManifest.xml
ppsecurity/test-apps/EscalateToRuntimePermissions/Android.mk
ppsecurity/test-apps/EscalateToRuntimePermissions/AndroidManifest.xml
ppsecurity/test-apps/EscalateToRuntimePermissions/res/values/strings.xml
ppsecurity/test-apps/EscalateToRuntimePermissions/src/com/android/cts/escalatepermission/PermissionEscalationTest.java
5ea35eccd97afb1583118c92e2953205ece25835 29-Dec-2016 Svetoslav Ganov <svetoslavganov@google.com> Merge "Revert "Don't allow permission change to runtime - tests""
3bb2f327a046fb1389d3c71cb2ef26baada0eb96 29-Dec-2016 Svetoslav Ganov <svetoslavganov@google.com> Revert "Don't allow permission change to runtime - tests"

This reverts commit ee8e5c25e7239ee42ac9f817d5a40dbf5ed9cc8b.

Change-Id: I21a515419b43ee707a72bf7a1eef40f2813d85e9
ppsecurity/src/android/appsecurity/cts/PermissionsHostTest.java
ppsecurity/test-apps/DeclareNormalPermission/Android.mk
ppsecurity/test-apps/DeclareNormalPermission/AndroidManifest.xml
ppsecurity/test-apps/EscalateNormalPermission/Android.mk
ppsecurity/test-apps/EscalateNormalPermission/AndroidManifest.xml
93a98184c8e896a7f3c795d5e9407b37ea0e9dbd 29-Dec-2016 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Put @RequiresDevice on device owner vpn tests only"
10737163eb75062f7ec42c45d526f4d5cad60678 29-Dec-2016 Robin Lee <rgl@google.com> Put @RequiresDevice on device owner vpn tests only

But allow all of them to run on profile owner again, because managed
profile owner tests don't run in USER_SYSTEM so they aren't going to
break root's network connections.

Change-Id: I11ddb68998b8388a57746e96b9fe97b60bbcddaf
Fix: 31585407
evicepolicy/src/com/android/cts/devicepolicy/DeviceAndProfileOwnerTest.java
evicepolicy/src/com/android/cts/devicepolicy/MixedDeviceOwnerTest.java
ee8e5c25e7239ee42ac9f817d5a40dbf5ed9cc8b 28-Dec-2016 Svetoslav Ganov <svetoslavganov@google.com> Don't allow permission change to runtime - tests

Prevent apps to change permission protection level to dangerous
from any other type as this would allow a privilege escalation
where an app adds a normal permission in other app's group and
then redefines it as dangerous leading to the group auto-grant.

Test: Added a CTS test which passes.

bug:33860747

Change-Id: I360a1d28c33385b9ba2312416781f88eb09185df
ppsecurity/src/android/appsecurity/cts/PermissionsHostTest.java
ppsecurity/test-apps/DeclareNormalPermission/Android.mk
ppsecurity/test-apps/DeclareNormalPermission/AndroidManifest.xml
ppsecurity/test-apps/EscalateNormalPermission/Android.mk
ppsecurity/test-apps/EscalateNormalPermission/AndroidManifest.xml
2a5366bb5b4959d0f483b4560426667bdd3475d8 22-Dec-2016 Colin Cross <ccross@android.com> Merge "Uninstall devicepolicy test packages"
b1e53e7a8f9dc7d755e24bac35e7ed95773f06fe 28-Nov-2016 Koji Fukui <koji.fukui@sonymobile.com> Uninstall devicepolicy test packages

Some devicepolicy test packages weren't uninstalled after test.
Ensure uninstalling these packages.

Change-Id: I576c53a391888751100ba905b63ac26f169b1e16
(cherry picked from commit 43eb4114fa2bd60778d58714bc3aa84449336781)
evicepolicy/src/com/android/cts/devicepolicy/DeviceAndProfileOwnerTest.java
evicepolicy/src/com/android/cts/devicepolicy/DeviceOwnerTest.java
evicepolicy/src/com/android/cts/devicepolicy/MixedDeviceOwnerTest.java
evicepolicy/src/com/android/cts/devicepolicy/MixedProfileOwnerTest.java
evicepolicy/src/com/android/cts/devicepolicy/ProfileOwnerTest.java
evicepolicy/src/com/android/cts/devicepolicy/ProfileOwnerTestApi23.java
dacf41a96ad060909a557d8b6ffc601e3a11c4cc 22-Dec-2016 juanjuan.hou <houjuanjuan2000@gmail.com> Bug #225396 Add hdpi.zip for theme test am: 5b64fbb906 am: 991d3b62d5 am: 099ebcd693 am: a05f395a59 am: 342fecb722 am: bd73cabb50
am: f6d7bcfb10

Change-Id: I8f6e3b5ee13db8a2adcf997be6e65c97a890074f
197c0f618c7f1b9b7afe7dd4936f64fde6403293 22-Dec-2016 jaehoon.kim <jaehoon.kim@lge.com> Add tvdpi images for theme test am: b0e9f556ae am: 97c9f72dba am: 1d592ee232 am: 996d6cb411 am: bb367c32a7 am: 9ad309c85d
am: 066d68b027

Change-Id: I51274e4093c712c19639bf825ab03a5b89b9a7ef
a7c6a0b0e5b6263857676069f0cd8d1910e9fe5c 22-Dec-2016 zhang sanshan <sanshan.zhang@nxp.com> Fix com.android.cts.devicepolicy.MixedDeviceOwnerTest#testPackageInstallUserRestrictions am: a7f30013d8 am: b48ed76d0e am: 902f75bd8d am: e2d8b5b5ee am: 245f94d6d7 am: c49f886d5b
am: 6f67610e38

Change-Id: I5752fc81c9262545cbbbd171565e1cc8e49f9727
20f75d2a726a48cfe70d44447602e0675e90c804 22-Dec-2016 Yahan Zhou <yahan@google.com> Fix wrong variable name in permission tests am: 17930a2e27 am: 9551bf7418 am: b3ac3cc9e2 am: a43c23478a am: eecb1bc616 am: 954fb23bdb
am: 55d4df3e47

Change-Id: I03185ee58ae92472d43705eab4687136377a2f13
f6d7bcfb10355a14a3a73512a18a71fcd786b39b 22-Dec-2016 juanjuan.hou <houjuanjuan2000@gmail.com> Bug #225396 Add hdpi.zip for theme test am: 5b64fbb906 am: 991d3b62d5 am: 099ebcd693 am: a05f395a59 am: 342fecb722
am: bd73cabb50

Change-Id: I6e325748a2a9a1319d83bf38bf2295989973755a
d2e4fcef36f0451ccb7be85c843a00b6e4eb7eb8 22-Dec-2016 Koji Fukui <koji.fukui@sonymobile.com> Uninstall devicepolicy test packages am: 43eb4114fa am: c61ab3f5a8 am: 0ddc55d776 am: d04701ffc7 am: fc7b5843bf
am: c47d319f2e

Change-Id: Ie07beb202f9c2457b7c437933ab69769caef9fdd
52c1aa90a45bd5793727ee903f5a28872256229b 22-Dec-2016 juanjuan.hou <houjuanjuan2000@gmail.com> Bug #225396 Add hdpi.zip for theme test am: 5b64fbb906 am: 991d3b62d5 am: 099ebcd693 am: a05f395a59
am: 342fecb722

Change-Id: Id77647c5fb311cfab8eef62dae32e87484e2d237
00ea5e48514c23e0029fa73a70dada3c31e0afe8 22-Dec-2016 Koji Fukui <koji.fukui@sonymobile.com> Uninstall devicepolicy test packages am: 43eb4114fa am: c61ab3f5a8 am: 0ddc55d776 am: d04701ffc7
am: fc7b5843bf

Change-Id: I17cf4731760457701b84d3df3fccea492fa49f92
066d68b027d3bc8c48cea5e395c369522931e9ab 22-Dec-2016 jaehoon.kim <jaehoon.kim@lge.com> Add tvdpi images for theme test am: b0e9f556ae am: 97c9f72dba am: 1d592ee232 am: 996d6cb411 am: bb367c32a7
am: 9ad309c85d

Change-Id: Iea0136bcb1f69e4e62dbecd4b46b691b613cba4e
31bf367909498109f534384bbdab394bb85afbf7 22-Dec-2016 jaehoon.kim <jaehoon.kim@lge.com> Add tvdpi images for theme test am: b0e9f556ae am: 97c9f72dba am: 1d592ee232 am: 996d6cb411
am: bb367c32a7

Change-Id: Ibff8bca99e4f16af7d3a8d557a0a4c92f28308eb
6f67610e38519d38116140009ac8416e7466d50c 22-Dec-2016 zhang sanshan <sanshan.zhang@nxp.com> Fix com.android.cts.devicepolicy.MixedDeviceOwnerTest#testPackageInstallUserRestrictions am: a7f30013d8 am: b48ed76d0e am: 902f75bd8d am: e2d8b5b5ee am: 245f94d6d7
am: c49f886d5b

Change-Id: I8584132fa5dfa1ab3da582bd9fbe6583f9a9b9e0
55d4df3e47e1f03586b4712ed45cd70dccd7b4c3 22-Dec-2016 Yahan Zhou <yahan@google.com> Fix wrong variable name in permission tests am: 17930a2e27 am: 9551bf7418 am: b3ac3cc9e2 am: a43c23478a am: eecb1bc616
am: 954fb23bdb

Change-Id: Id0124ea9d7d18d2c479f2f8a55effbbb66886471
0f166df7bcf31ea19e1e25d1d79311b6f0c549cc 22-Dec-2016 zhang sanshan <sanshan.zhang@nxp.com> Fix com.android.cts.devicepolicy.MixedDeviceOwnerTest#testPackageInstallUserRestrictions am: a7f30013d8 am: b48ed76d0e am: 902f75bd8d am: e2d8b5b5ee
am: 245f94d6d7

Change-Id: I555e8252393a0c5aeee617110d7728a7c23c89a4
059df3653e47d1e43a1debc9dee918b1ed940db8 22-Dec-2016 Yahan Zhou <yahan@google.com> Fix wrong variable name in permission tests am: 17930a2e27 am: 9551bf7418 am: b3ac3cc9e2 am: a43c23478a
am: eecb1bc616

Change-Id: I3178c6bf6872d6539e61954e6240a00934b8d8ba
16ae915a571e7623bd73e50408934035113f9e69 22-Dec-2016 Charles He <qiurui@google.com> Enable wifi before device policy wifi tests start. am: e2462c8cc7 am: 87712e50d9 am: 53227aba91 am: 13abcb9ed4 am: 7f2fc660ab am: 2a566aff80
am: 204e0fb33f

Change-Id: I5f15c820847656593e29497fdba39b0ce9e7264c
9de8f6aed04dbf903f87062d4483da8b2403de4f 22-Dec-2016 Charles He <qiurui@google.com> Enable wifi before device policy wifi tests start. am: e2462c8cc7 am: 87712e50d9 am: 53227aba91 am: 13abcb9ed4 am: 7f2fc660ab
am: 2a566aff80

Change-Id: Ia566ea08545f32bd6908de16e0acadfba258c940
a05f395a59cad08e4870872ec8929794378504d2 22-Dec-2016 juanjuan.hou <houjuanjuan2000@gmail.com> Bug #225396 Add hdpi.zip for theme test am: 5b64fbb906 am: 991d3b62d5
am: 099ebcd693

Change-Id: I22a7366e448b2c79a322f3973e66cd943a6bfc53
b5b88cf68720521ea5796bb77679dec5633569b2 22-Dec-2016 Greg Plesur <plesur@google.com> Increase the timeout for dpm.removeActiveAdmin(). am: f0564c9ad5
am: 7c3834ba2b

Change-Id: I455e3c1803384b7e0b272cea6d711491bed68c5e
d04701ffc70b8134ddf82471a5faf8d0bd4aa1ac 22-Dec-2016 Koji Fukui <koji.fukui@sonymobile.com> Uninstall devicepolicy test packages am: 43eb4114fa am: c61ab3f5a8
am: 0ddc55d776

Change-Id: I06c776292ad85c980c5c8d6d9b47a6a6c777e5ff
996d6cb4115a56e86d0dc777305a8ff2801ba6fa 22-Dec-2016 jaehoon.kim <jaehoon.kim@lge.com> Add tvdpi images for theme test am: b0e9f556ae am: 97c9f72dba
am: 1d592ee232

Change-Id: Ib5b9ab033028477b29bbdded5e2f7e1d7523988e
e2d8b5b5ee0d54c17d7b321c82f710d2fa8684c3 21-Dec-2016 zhang sanshan <sanshan.zhang@nxp.com> Fix com.android.cts.devicepolicy.MixedDeviceOwnerTest#testPackageInstallUserRestrictions am: a7f30013d8 am: b48ed76d0e
am: 902f75bd8d

Change-Id: Ia7644c0c5a33887927ebc7d8b650f68a394b379f
099ebcd6937d6901091afc73883a3dc23bbc67ef 21-Dec-2016 juanjuan.hou <houjuanjuan2000@gmail.com> Bug #225396 Add hdpi.zip for theme test am: 5b64fbb906
am: 991d3b62d5

Change-Id: Icc25d89dbcb22b506d4cd86f7ca0609370211e2e
0ddc55d776393b1bbf8536e3634c766455fce5ce 21-Dec-2016 Koji Fukui <koji.fukui@sonymobile.com> Uninstall devicepolicy test packages am: 43eb4114fa
am: c61ab3f5a8

Change-Id: I96f3a0e8e688c72bba392f7b5e94e3110239b824
7c3834ba2b9895cff00172332bdf9d922e7d7dd8 21-Dec-2016 Greg Plesur <plesur@google.com> Increase the timeout for dpm.removeActiveAdmin().
am: f0564c9ad5

Change-Id: I63ceb887e0267ea331c02ba677e1a9fa2b5fdf0c
1d592ee2326bb7006b6f0683f7b72a4005cbec5f 21-Dec-2016 jaehoon.kim <jaehoon.kim@lge.com> Add tvdpi images for theme test am: b0e9f556ae
am: 97c9f72dba

Change-Id: Ie37e49f6f1404ec773752683a5757f00224953d5
902f75bd8d913d9c659ccd388af4527f81da662e 21-Dec-2016 zhang sanshan <sanshan.zhang@nxp.com> Fix com.android.cts.devicepolicy.MixedDeviceOwnerTest#testPackageInstallUserRestrictions am: a7f30013d8
am: b48ed76d0e

Change-Id: I89af8d889c4b95970c757501902df28e8e5fc492
40700c132d43ea7c0de53d8a089c7c563623665f 21-Dec-2016 Tina Zhou <tinazh@google.com> Merge "Increase the timeout for dpm.removeActiveAdmin()." into nougat-cts-dev
991d3b62d56dbf778e0292bd1a03e6dd2e7ab461 21-Dec-2016 juanjuan.hou <houjuanjuan2000@gmail.com> Bug #225396 Add hdpi.zip for theme test
am: 5b64fbb906

Change-Id: I8f077dd4b5bffbd176028845265d9e1d5aa14c1d
c61ab3f5a8078f4c8fa2d5fffe60794a02a33ff2 21-Dec-2016 Koji Fukui <koji.fukui@sonymobile.com> Uninstall devicepolicy test packages
am: 43eb4114fa

Change-Id: Ied89ceb053500cd6427a5de4a79eb4cb924aae1c
97c9f72dbac9ea74bd7b126eb556ae921b5a5907 21-Dec-2016 jaehoon.kim <jaehoon.kim@lge.com> Add tvdpi images for theme test
am: b0e9f556ae

Change-Id: Id3dfe99abcf883e538c65aaa3b1d00c58062e546
b48ed76d0e0b25576fa98d617924e7aaae93ec01 21-Dec-2016 zhang sanshan <sanshan.zhang@nxp.com> Fix com.android.cts.devicepolicy.MixedDeviceOwnerTest#testPackageInstallUserRestrictions
am: a7f30013d8

Change-Id: Id918688d8af71c90cc29d66af3f727dad31e7119
c3730add10795997e771f897c68f3da0db3a6ac4 21-Dec-2016 Tina Zhou <tinazh@google.com> Merge "Bug #225396 Add hdpi.zip for theme test" into nougat-cts-dev
867cac1da67ef760dee7de4a5048635ea45e8427 21-Dec-2016 Tina Zhou <tinazh@google.com> Merge "Uninstall devicepolicy test packages" into nougat-cts-dev
0fa93df8a48f12c320e889888b67820415762227 21-Dec-2016 Tina Zhou <tinazh@google.com> Merge "Add tvdpi images for theme test" into nougat-cts-dev
25718228fc818627c518023473313534cdeb763d 21-Dec-2016 Tina Zhou <tinazh@google.com> Merge "Fix com.android.cts.devicepolicy.MixedDeviceOwnerTest#testPackageInstallUserRestrictions" into nougat-cts-dev
5b8daaa19d4fe6dd69ff414989a301ed94198d57 09-Dec-2016 Andres Oportus <andresoportus@google.com> DO NOT MERGE: Add sustained performance test results warning

When the SustainedPerformanceHostTest fails, there is no indication of
what level of performance did occur during the test. This change adds
a host side warning with the performance values if they fall behind
the original thresholds for the test (5% for both Dhrystone and app).

Bug: 31215027

Signed-off-by: Andres Oportus <andresoportus@google.com>
(cherry picked from commit 00168f1321840f9fadbed0f3eb7c67ee69cbff16)
(cherry picked from commit 73e9d208bb440a713c454ae637058057e69f9d7c)
ustainedperf/src/android/SustainedPerformance/cts/SustainedPerformanceHostTest.java
a43c23478abc8cec9498beab8a0d5392590d1175 21-Dec-2016 Yahan Zhou <yahan@google.com> Fix wrong variable name in permission tests am: 17930a2e27 am: 9551bf7418
am: b3ac3cc9e2

Change-Id: Ife236ef69627d19347d7f007202ecf2a5e9e7af2
b3ac3cc9e2431c9f6ffe3b4cacdee4b1fefe31c5 21-Dec-2016 Yahan Zhou <yahan@google.com> Fix wrong variable name in permission tests am: 17930a2e27
am: 9551bf7418

Change-Id: I9cee95958710288f8b767a32ee80f044597dc636
9551bf7418817e9136054978cc15eff3e74bbc01 21-Dec-2016 Yahan Zhou <yahan@google.com> Fix wrong variable name in permission tests
am: 17930a2e27

Change-Id: I881bc2d9ebeb51fc3901b27768a03dc213cba3c0
3650a4b0f2ffe2f4d5db8b401857d6a3bf74a653 21-Dec-2016 Treehugger Robot <treehugger-gerrit@google.com> Merge "Fix wrong variable name in permission tests" into nougat-cts-dev
f5b4ccf10aab424deb451dbc9e5fc271b3b84583 15-Dec-2016 Joe Onorato <joeo@google.com> Host side tests for protobuf encoded dumpsys

Test: cts-tradefed run singleCommand cts -d --module CtsIncidentHostTestCases
Change-Id: I4490ea1d33581e24be730c6b254d5dfbcea48ba0
ncident/Android.mk
ncident/AndroidTest.xml
ncident/src/com/android/server/cts/FingerprintIncidentTest.java
ncident/src/com/android/server/cts/ProtoDumpTestCase.java
9800b941e280ce0bc24420e4ac54372c0d7b3882 26-Oct-2016 Anthony Hugh <ahugh@google.com> DO NOT MERGE Fix second dialog CTS issues to be more generic

CTS test was trying to do a text comparison to find a UI element
using upper case letters, but some devices may use lower case letters.
Fix is to use a case-insensitive matching instead.

BUG: 31779188
Change-Id: Ia2652af6ad0f30509145808ac538418cdb76a142
(cherry picked from commit 8fc93f7c34f506615b41ef25351dc2a56fc0d623)
ppsecurity/test-apps/UsePermissionApp23/src/com/android/cts/usepermission/BasePermissionsTest.java
7f2fc660ab13074b95451e00455c92293df35ed3 21-Dec-2016 Charles He <qiurui@google.com> Enable wifi before device policy wifi tests start. am: e2462c8cc7 am: 87712e50d9 am: 53227aba91
am: 13abcb9ed4

Change-Id: I89cbaad86178ade7cb10b60a1c7559432ce12e6e
13abcb9ed46a9d36c68ad622bc668043a29191a6 20-Dec-2016 Charles He <qiurui@google.com> Enable wifi before device policy wifi tests start. am: e2462c8cc7 am: 87712e50d9
am: 53227aba91

Change-Id: I9c441392c383f066bf9e7c906032223a1d68e3c6
53227aba9188c418771a60266737924de92482d3 20-Dec-2016 Charles He <qiurui@google.com> Enable wifi before device policy wifi tests start. am: e2462c8cc7
am: 87712e50d9

Change-Id: Ia9da6c268463c10d0f236313212b835d1847bfaa
87712e50d956af444ab666b5f3ee3e99753c1b56 20-Dec-2016 Charles He <qiurui@google.com> Enable wifi before device policy wifi tests start.
am: e2462c8cc7

Change-Id: Idb790ecf26ca6fa4f8e29dc9ee3bfc8ca1178932
d9e494c78bec07b1bfc3a2dcdb3fe41c6cf3347f 20-Dec-2016 Alex Klyubin <klyubin@google.com> Merge "Test empty APKs and APKs with max-sized EoCD comment" am: 00d05bd911 am: ab75150a69 am: 07230c51e1
am: a9012fadbb

Change-Id: Ifa2dee7ba62917575d7ffeff617d01912477a9a9
07230c51e1542e002e90021346f543cca5f7f1c9 20-Dec-2016 Alex Klyubin <klyubin@google.com> Merge "Test empty APKs and APKs with max-sized EoCD comment" am: 00d05bd911
am: ab75150a69

Change-Id: I4bc305c6a58265d38b2885073975a748d329e7e0
cad39060db158e6b4a7886f6ea27fe641a600b5c 20-Dec-2016 Andres Oportus <andresoportus@google.com> Increase sustained performance test bar for Dhrystone from 10% to 15% am: 0a27f9d2ff
am: 620d6adf18

Change-Id: Ic504fa819f3fc5b9aee0acae304251aa047d2825
620d6adf1845a4ad572bf929ca42914b315124e0 20-Dec-2016 Andres Oportus <andresoportus@google.com> Increase sustained performance test bar for Dhrystone from 10% to 15%
am: 0a27f9d2ff

Change-Id: I5a45a82c6aa2f0fa5a5a69aa35e02920c10c136f
03fda785074e92670d3ae3dcf0e0f43600bf6fe8 26-Oct-2016 Andrew Scull <ascull@google.com> Tests for DevicePolicyManager#lockNow with key eviction.

Test: This is the test
Bug: 31000719
Change-Id: I06cf9ea4396806bf9a966d059d497e67ee7fa715
evicepolicy/app/ManagedProfile/res/xml/device_admin.xml
evicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/LockNowTest.java
evicepolicy/src/com/android/cts/devicepolicy/ManagedProfileTest.java
fceafdf0c08ae28759c5a62a57ba5513ab095500 20-Dec-2016 Julien Desprez <jdesprez@google.com> Minimal commit for security test patches

Commit on of the security patch tests artifact required
for testing.

Test: build -> binary available in testcases/
./cts-tradefed run cts --module CtsSecurityHostTestCases
binary is pushed to /data/local/tmp/

Change-Id: Icd30f28f54d59c8f45579196ebf051c8b8cd9f73
ecurity/AndroidTest.xml
ecurity/securityPatch/Android.mk
ecurity/securityPatch/CVE-2016-8430/Android.mk
ecurity/securityPatch/CVE-2016-8430/poc.c
f0564c9ad5acdbe7d483332bc3fe2a602b63a4c4 07-Oct-2016 Greg Plesur <plesur@google.com> Increase the timeout for dpm.removeActiveAdmin().

Some devices apparently need more time. Our fastest devices need
~10.2 seconds, so I'm leaving room for our slowest devices.

BUG: 32019838

Change-Id: I680bcfe53f13625cf3b0e374188087b39ce499d7
evicepolicy/app/DeviceAdmin/src/com.android.cts.deviceadmin/ClearDeviceAdminWithNoProtectionTest.java
5d59308386b53d9a7b53c965afedbbd96596ec7b 20-Dec-2016 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Break out web intent-filter"
fc28a9d6635ba14fee6c8169f62250b26e0b1403 19-Dec-2016 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Convert to junit4"
ec3487c97277c8ed56faf25e3ac0e4898a92d8ca 19-Dec-2016 Todd Kennedy <toddke@google.com> Break out web intent-filter

Since having a VIEW/BROWSABLE intent filter implicitly exposes
that activity, the directed intent is able to launch NormalActivity.
We don't want that, so, define a separate activity just for
the web intent.

Bug: 25119046
Test: cts-tradefed run commandAndExit cts-dev -m CtsAppSecurityHostTestCases -t android.appsecurity.cts.EphemeralTest
Change-Id: Ibd7194f2969f5bb32f5b18a491a6c6f2f4c1460e
ppsecurity/test-apps/EphemeralTestApp/EphemeralApp1/AndroidManifest.xml
ppsecurity/test-apps/EphemeralTestApp/EphemeralApp1/src/com/android/cts/ephemeralapp1/ClientTest.java
ppsecurity/test-apps/EphemeralTestApp/EphemeralApp2/AndroidManifest.xml
ppsecurity/test-apps/EphemeralTestApp/NormalApp/AndroidManifest.xml
ppsecurity/test-apps/EphemeralTestApp/NormalApp/src/com/android/cts/normalapp/NormalWebActivity.java
f03733deff473188e04f41f9fd8724d11baf9f6b 19-Dec-2016 Alex Klyubin <klyubin@google.com> Test empty APKs and APKs with max-sized EoCD comment

Test: cts-tradefed run singleCommand cts --skip-device-info --skip-preconditions --skip-connectivity-check --abi arm64-v8a --module CtsAppSecurityHostTestCases -t android.appsecurity.cts.PkgInstallSignatureVerificationTest
Change-Id: I5d21d148f99eb73726987e4611f00ef46955a41a
ppsecurity/res/pkgsigverify/empty-unsigned.apk
ppsecurity/res/pkgsigverify/v1-only-empty.apk
ppsecurity/res/pkgsigverify/v1-only-max-sized-eocd-comment.apk
ppsecurity/res/pkgsigverify/v2-only-empty.apk
ppsecurity/res/pkgsigverify/v2-only-max-sized-eocd-comment.apk
ppsecurity/src/android/appsecurity/cts/PkgInstallSignatureVerificationTest.java
dc090b230d6a3aa7cb4c5a49c063488bd865f1a7 19-Dec-2016 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Fix user restrictions CTS tests"
206387a27db7938bd0cea5a436779341cd3d6e32 19-Dec-2016 Esteban Talavera <etalavera@google.com> Fix user restrictions CTS tests

DISALLOW_{ADD,REMOVE}_MANAGED_PROFILE were set as DO
only restrictions in the end. Marking them as such
in the CTS tests.

Test: cts-tradefed run cts -a armeabi-v7a -m CtsDevicePolicyManagerTestCases -t com.android.cts.devicepolicy.UserRestrictionsTest
Bug: 31952368
Change-Id: Idf7c16c35a3cc50f934ac7eec03f3738b409ea7a
evicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/userrestrictions/BaseUserRestrictionsTest.java
ddbfe76ecc31e8361d9fe4414bff314b272f9c7d 19-Dec-2016 Julien Desprez <jdesprez@google.com> Replace manual adb root/unroot call

Replace them by controlled API for root access.

Test: run --module CtsCompilationTestCases --module
CtsSecurityHostTestCases
Bug: 33635577

Change-Id: If807ccbf8265b343221c27e54bb63fde25718bd1
ompilation/src/android/cts/compilation/AdbRootDependentCompilationTest.java
ecurity/src/android/security/cts/SecurityTestCase.java
a9f36ce4db6a6056f77c474d0323fa2f3b56bfdb 19-Dec-2016 Tomasz Mikolajewski <mtomasz@google.com> Add CTS for Web Links API.

Test: CTS.
Bug: 30152711
Change-Id: Ib4c7c411b8898b4179afecee35ca3d2ca5c9d4fa
ppsecurity/src/android/appsecurity/cts/DocumentsTest.java
ppsecurity/test-apps/DocumentClient/src/com/android/cts/documentclient/DocumentsClientTest.java
ppsecurity/test-apps/DocumentProvider/AndroidManifest.xml
ppsecurity/test-apps/DocumentProvider/src/com/android/cts/documentprovider/MyDocumentsProvider.java
ppsecurity/test-apps/DocumentProvider/src/com/android/cts/documentprovider/WebLinkActivity.java
e2e6a81468a4b8c9d6a7cc16ef840c721704807d 17-Dec-2016 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Adding tests for removing pinned stack functionality."
8d447f59c66d21aad1334a7c6dd715742c4e6301 17-Dec-2016 TreeHugger Robot <treehugger-gerrit@google.com> Merge "New tests for ephemeral apps"
86b0dcaf2ee8e10a0f0dd6fb2cfef4c43f963422 17-Dec-2016 Todd Kennedy <toddke@google.com> Convert to junit4

it's the new hotness!

Bug: 25119046
Test: cts-tradefed run commandAndExit cts-dev -m CtsAppSecurityHostTestCases -t android.appsecurity.cts.EphemeralTest
Change-Id: I7b1c85cd15f18ba1f85359e7a6ae482eb811076a
ppsecurity/test-apps/EphemeralTestApp/EphemeralApp1/src/com/android/cts/ephemeralapp1/ClientTest.java
ppsecurity/test-apps/EphemeralTestApp/NormalApp/src/com/android/cts/normalapp/ClientTest.java
1ef56e7ceb48f5bd09df5a6117b69d911e3807e1 16-Dec-2016 Todd Kennedy <toddke@google.com> New tests for ephemeral apps

Many more coming, but, this is a start.

Bug: 25119046
Test: cts-tradefed run commandAndExit cts-dev -m CtsAppSecurityHostTestCases -t android.appsecurity.cts.EphemeralTest
Change-Id: I3bbe7e9100280d0d2a680a9150c1a5322c08c17c
ppsecurity/src/android/appsecurity/cts/EphemeralTest.java
ppsecurity/test-apps/EphemeralTestApp/Android.mk
ppsecurity/test-apps/EphemeralTestApp/EphemeralApp1/Android.mk
ppsecurity/test-apps/EphemeralTestApp/EphemeralApp1/AndroidManifest.xml
ppsecurity/test-apps/EphemeralTestApp/EphemeralApp1/res/values/strings.xml
ppsecurity/test-apps/EphemeralTestApp/EphemeralApp1/src/com/android/cts/ephemeralapp1/ClientTest.java
ppsecurity/test-apps/EphemeralTestApp/EphemeralApp1/src/com/android/cts/ephemeralapp1/EphemeralActivity.java
ppsecurity/test-apps/EphemeralTestApp/EphemeralApp2/Android.mk
ppsecurity/test-apps/EphemeralTestApp/EphemeralApp2/AndroidManifest.xml
ppsecurity/test-apps/EphemeralTestApp/EphemeralApp2/res/values/strings.xml
ppsecurity/test-apps/EphemeralTestApp/NormalApp/Android.mk
ppsecurity/test-apps/EphemeralTestApp/NormalApp/AndroidManifest.xml
ppsecurity/test-apps/EphemeralTestApp/NormalApp/res/values/strings.xml
ppsecurity/test-apps/EphemeralTestApp/NormalApp/src/com/android/cts/normalapp/ClientTest.java
ppsecurity/test-apps/EphemeralTestApp/NormalApp/src/com/android/cts/normalapp/ExposedActivity.java
ppsecurity/test-apps/EphemeralTestApp/NormalApp/src/com/android/cts/normalapp/NormalActivity.java
3c756593eef93fb816d036dcc5c09be4042780f7 16-Dec-2016 Winson Chung <winsonc@google.com> Adding PiP over lockscreen test

- When a show-on-lockscreen activity attempts to enter
picture-in-picture ensure that we prompt the device
to be unlocked first.

Bug: 33660880
Test: android.server.cts.KeyguardLockedTests
Test: testEnterPipOverKeyguard
Change-Id: I4739b805a575d2cf90f561e8632df8a7f4a925b5
ervices/activityandwindowmanager/activitymanager/app/src/android/server/cts/PipActivity.java
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/KeyguardLockedTests.java
ervices/activityandwindowmanager/util/src/android/server/cts/ActivityAndWindowManagersState.java
aa8441cdde90ccfe00f431509a58a2b4a69e5741 15-Dec-2016 Winson Chung <winsonc@google.com> Adding tests for removing pinned stack functionality.

- Also cleaning up some calls to assert pinned stack state
and launching the home activity

Test: android.server.cts.ActivityManagerPinnedStackTests
Test: #testRemovePipWithNoFullscreenStack
Test: #testRemovePipWithVisibleFullscreenStack
Test: #testRemovePipWithHiddenFullscreenStack
Change-Id: I360a6fb23a2e0c85658cf4a034e95994797cb696
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/ActivityManagerActivityVisibilityTests.java
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/ActivityManagerPinnedStackTests.java
ervices/activityandwindowmanager/util/src/android/server/cts/ActivityAndWindowManagersState.java
ervices/activityandwindowmanager/util/src/android/server/cts/ActivityManagerState.java
ervices/activityandwindowmanager/util/src/android/server/cts/ActivityManagerTestBase.java
ervices/activityandwindowmanager/util/src/android/server/cts/WindowManagerState.java
0a27f9d2ff8ffdac3b9ce8ee9c7a7d0897d58bd1 15-Dec-2016 Andres Oportus <andresoportus@google.com> Increase sustained performance test bar for Dhrystone from 10% to 15%

Bug: 31215027

Signed-off-by: Andres Oportus <andresoportus@google.com>
ustainedperf/src/android/SustainedPerformance/cts/SustainedPerformanceHostTest.java
df41027883a94a3c6b3c6b3bdbd7cd3c54b2b1d6 15-Dec-2016 Nicolas Prévot <nprevot@google.com> Merge "Test we can only bind to affiliated users."
17b03c4925fa8462e7e64488662dbdd913c8b9e8 15-Dec-2016 TreeHugger Robot <treehugger-gerrit@google.com> Merge "DeviceOwner provisioning CTS"
8da0f95b407b7bb3ee4ba1f528bf7fec8c330edb 25-Nov-2016 Victor Chang <vichang@google.com> DeviceOwner provisioning CTS

- The test first calls adb shell dpm set-device-owner <Component>
- Secondly, it calls ManagedProvisioning to set device owner policy without setting it as device owner again
- It only works for android:testOnly="true" app, installed by adb command. Normal DPC can't do this.
- It's different than normal provisioning flow, but the device status after provisioning should be the same as the one after normal provisioning

Bug: 31856203
Test: cts-tradefed run cts --module DevicePolicyManager --test com.android.cts.devicepolicy.DeviceOwnerTest#testDeviceOwnerProvisioning
Change-Id: I4a4393a121f224cb05f6a133bb66991a9ce1ba55
evicepolicy/app/DeviceOwner/AndroidManifest.xml
evicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/BaseDeviceOwnerTest.java
evicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/DeviceOwnerProvisioningTest.java
evicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/provisioning/SilentProvisioningTestManager.java
evicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/provisioning/StartProvisioningActivity.java
evicepolicy/src/com/android/cts/devicepolicy/DeviceOwnerTest.java
4a7e03dd53c02838bcd766a079d065d67555cf0d 06-Dec-2016 Nicolas Prevot <nprevot@google.com> Test we can only bind to affiliated users.

With DO + Managed profile: test that we can only bind if both have
set the same affiliation ids.

BUG:32764274
Test: cts-tradefed run cts --module CtsDevicePolicyManagerTestCases
--test com.android.cts.devicepolicy.DeviceOwnerPlusManagedProfileTest

Change-Id: Ie76a0e542f4693e258e4fd9276142eb13f6f24c4
evicepolicy/app/CorpOwnedManagedProfile/src/com/android/cts/comp/DeviceOwnerBindDeviceAdminServiceTest.java
evicepolicy/app/CorpOwnedManagedProfile/src/com/android/cts/comp/ManagedProfileBindDeviceAdminServiceTest.java
evicepolicy/app/CorpOwnedManagedProfile/src/com/android/cts/comp/bindservice/BindDeviceAdminServiceByodPlusDeviceOwnerTestSuite.java
evicepolicy/app/CorpOwnedManagedProfile/src/com/android/cts/comp/bindservice/BindDeviceAdminServiceFailsTestSuite.java
evicepolicy/app/CorpOwnedManagedProfile/src/com/android/cts/comp/provisioning/AffiliationTest.java
evicepolicy/src/com/android/cts/devicepolicy/DeviceOwnerPlusManagedProfileTest.java
bb136f5dcbb467a672add89dc5fe597bf652660c 14-Dec-2016 jangwon86.seo <jangwon86.seo@lge.com> CTS: change resource file on hdpi density am: 31f6c84a1a am: fee2d74abc
am: 9167c5b8c9

Change-Id: Ibdeb839955c90f8eb823f1540a0de817c09c5fcf
9167c5b8c96505403e8cc4a7404ec6e16c355a02 14-Dec-2016 jangwon86.seo <jangwon86.seo@lge.com> CTS: change resource file on hdpi density am: 31f6c84a1a
am: fee2d74abc

Change-Id: I680a489d419c9035c30fdbeddc6a8107df22d5c1
fee2d74abcd065ae5615ecf917dc8e19149914a2 14-Dec-2016 jangwon86.seo <jangwon86.seo@lge.com> CTS: change resource file on hdpi density
am: 31f6c84a1a

Change-Id: I5fe2fd28f3483c77a5fe328437a0b3c13183820a
226f14fd7963647d8b579be5a6c1f89098c4ca33 14-Dec-2016 Esteban Talavera <etalavera@google.com> Merge "CTS for DISALLOW_{ADD,REMOVE}_MANAGED_PROFILE"
e2462c8cc7458e8eb2e7805f91699b0e80f1ab06 13-Dec-2016 Charles He <qiurui@google.com> Enable wifi before device policy wifi tests start.

This change makes sure wifi is on in setUp() before any wifi test in
managed profile, and restores it to the original on/off state after the
test.

Bug: 32814821
Bug: 33380760
Test: cts-tradefed run cts -t com.android.cts.devicepolicy.ManagedProfileTest#testProfileWifiCleanup
Change-Id: Iaebc2dd772b6f18c07d11db550c3bf1808574b75
evicepolicy/app/ManagedProfile/AndroidManifest.xml
evicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/WifiTest.java
e1762200bf7f6abff9779c2daf2feff1c94c45d4 14-Dec-2016 Pavel Grafov <pgrafov@google.com> NEW-CTS: test for SecurityLog.SecurityEvent am: 2c7e5170a2 am: 0d2316306f am: 0375484997 am: 9af3b1b28f
am: 30aed57f6d

Change-Id: I5b872f53a9e40232a8fde883de3cbb93cae41eab
9af3b1b28f2e7227c9e19f59bde10054109ed990 14-Dec-2016 Pavel Grafov <pgrafov@google.com> NEW-CTS: test for SecurityLog.SecurityEvent am: 2c7e5170a2 am: 0d2316306f
am: 0375484997

Change-Id: I7883f293ce002ed9bd88b76c559c69af1b74a706
037548499785bc75aff240e52f28a2db9e9f1f25 14-Dec-2016 Pavel Grafov <pgrafov@google.com> NEW-CTS: test for SecurityLog.SecurityEvent am: 2c7e5170a2
am: 0d2316306f

Change-Id: I254d9cc0d962c8344e18f298e09e5e6e655ec339
0d2316306fd54875468ff2898f66215678cd8789 14-Dec-2016 Pavel Grafov <pgrafov@google.com> NEW-CTS: test for SecurityLog.SecurityEvent
am: 2c7e5170a2

Change-Id: I2ce341652b697544c7b9d14a81d03da1da44036b
5bb5631b796bcad62cb399df47f40c59bd056914 14-Dec-2016 Treehugger Robot <treehugger-gerrit@google.com> Merge "NEW-CTS: test for SecurityLog.SecurityEvent" into nougat-cts-dev
5b64fbb906c704082093152105434d22d5c33fc6 14-Dec-2016 juanjuan.hou <houjuanjuan2000@gmail.com> Bug #225396 Add hdpi.zip for theme test

[root cause ]There is no hdpi resource in the folder of "hostsidetests/theme/assets/24",so the case fail on 240dpi device
[changes ]Add hdpi.zip for theme test
[side effects]no
[self test ]<7731c, testThemes>
[reviewers ]aurimas@google.com
[change_type ]AOB --> google_original
[tag_product ]specific

Change-Id: I25b5c5332c1480bb4a2f63d31a1d0f271bd387bb
heme/assets/24/hdpi.zip
31f6c84a1abd1043b5dbbbc8da43c434d745008a 09-Dec-2016 jangwon86.seo <jangwon86.seo@lge.com> CTS: change resource file on hdpi density

after updated Google Security patch 2016#11 CVE-2014-9675 Freetype version up,android.theme.cts.ThemeHostTest#testHoloThemes is failed all hdpi devices.
We generated new hdpi resources to fix CTS test fail.

Change-Id: I101eacff9977d73171d1d2952eeac42d2eab9387
heme/assets/22/hdpi.zip
heme/assets/22/xhdpi.zip
heme/assets/22/xxhdpi.zip
b78578365bc0a4527cb5a19cef8903ea52dd53a6 14-Dec-2016 TreeHugger Robot <treehugger-gerrit@google.com> Merge changes I76adfc8d,I5466e481,I2bb1b368

* changes:
Adding tests for enter/exit PIP preserving the visible stack
Adding tests for auto-enter picture-in-picture.
Adding test to disallow activities from entering PIP when stopped.
a4cb2897274b4344296bd13f39f1480a1df974b0 06-Dec-2016 Winson Chung <winsonc@google.com> Adding tests for enter/exit PIP preserving the visible stack

Test: android.server.cts.ActivityManagerPinnedStackTests
Test: #testPipUnPipOverHome
Test: #testPipUnPipOverApp
Change-Id: I76adfc8dd1174af87163d29721cf170928234308
ervices/activityandwindowmanager/activitymanager/app/src/android/server/cts/PipActivity.java
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/ActivityManagerPinnedStackTests.java
ervices/activityandwindowmanager/util/src/android/server/cts/ActivityAndWindowManagersState.java
25899a487aaeb6d0c9718cabd31f3f1271d08ae8 06-Dec-2016 Winson Chung <winsonc@google.com> Adding tests for auto-enter picture-in-picture.

Test: android.server.cts.ActivityManagerPinnedStackTests
Test: #testAutoEnterPictureInPicture
Test: #testAutoEnterPictureInPictureLaunchActivity
Test: #testAutoEnterPictureInPictureFinish
Test: #testAutoEnterPictureInPictureAspectRatio
Test: #testAutoEnterPictureInPictureOverPip

Change-Id: I5466e4813fc1bcf27ca003e6b06af7771d1af0e2
ervices/activityandwindowmanager/activitymanager/app/src/android/server/cts/PipActivity.java
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/ActivityManagerPinnedStackTests.java
540ceb1d3cd6d7f0c38a1a79dbc8f0668b51de40 06-Dec-2016 Winson Chung <winsonc@google.com> Adding test to disallow activities from entering PIP when stopped.

Test: android.server.cts.ActivityManagerPinnedStackTests
Test: #testDisallowPipLaunchFromStoppedActivity

Change-Id: I2bb1b3680b742be827f8b27fa8115db917312c1d
ervices/activityandwindowmanager/activitymanager/app/AndroidManifest.xml
ervices/activityandwindowmanager/activitymanager/app/src/android/server/cts/PipOnStopActivity.java
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/ActivityManagerPinnedStackTests.java
ervices/activityandwindowmanager/util/src/android/server/cts/ActivityAndWindowManagersState.java
ervices/activityandwindowmanager/util/src/android/server/cts/ActivityManagerState.java
6eccae98e80166607da25dec0adfe262f069e607 30-Nov-2016 Esteban Talavera <etalavera@google.com> CTS for DISALLOW_{ADD,REMOVE}_MANAGED_PROFILE

Bug: 31952368
Test: TODO Add actual tests that check correct behaviour for COMP
Change-Id: Iaf8d3f6ff215e9e9b0e8c8327dd11650fa20a027
evicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/userrestrictions/BaseUserRestrictionsTest.java
evicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/userrestrictions/DeviceOwnerUserRestrictionsTest.java
evicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/userrestrictions/PrimaryProfileOwnerUserRestrictionsTest.java
evicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/userrestrictions/SecondaryProfileOwnerUserRestrictionsTest.java
evicepolicy/src/com/android/cts/devicepolicy/UserRestrictionsTest.java
5a589a8ca7092215335b8b9bcf877719836e7456 13-Dec-2016 Badash <badash@google.com> Remove apk test until I figure out why it is failing am: cd84f30323 am: be4e209c9c am: fcc9c4f58a am: 72359268cb am: d86597482b am: c620834716
am: 555bd360f8

Change-Id: I682b56f95f71288065d7602ac71f98fe8f223d10
c6208347160007007aacfb23236de9f1da7540cb 13-Dec-2016 Badash <badash@google.com> Remove apk test until I figure out why it is failing am: cd84f30323 am: be4e209c9c am: fcc9c4f58a am: 72359268cb
am: d86597482b

Change-Id: Id98ee98e3c61aa4674bb3366cffd255bb9f4ab5a
72359268cb6fbf0a4390634284e0bb9bd9dd7147 13-Dec-2016 Badash <badash@google.com> Remove apk test until I figure out why it is failing am: cd84f30323 am: be4e209c9c
am: fcc9c4f58a

Change-Id: I43013beaf48116427b32a337bf14e3c9c6adbc94
fcc9c4f58a8d4a29a23ae158d703f67be03f840a 13-Dec-2016 Badash <badash@google.com> Remove apk test until I figure out why it is failing am: cd84f30323
am: be4e209c9c

Change-Id: If11ee6219f1f214ca15395d67522a34be6ed4379
be4e209c9c5e80af1e15254146aac199315240fa 13-Dec-2016 Badash <badash@google.com> Remove apk test until I figure out why it is failing
am: cd84f30323

Change-Id: I7a7361dbbeb94b855130a46232babb41f8a4449e
e1abc7e766835d84306d62640dc6aab34ed60b64 13-Dec-2016 Treehugger Robot <treehugger-gerrit@google.com> Merge "Remove apk test until I figure out why it is failing" into nougat-cts-dev
85e4ba720e630ba01c22fff61e7839ec5ca6369c 13-Dec-2016 Andres Oportus <andresoportus@google.com> Add sustained performance test results warning am: 00168f1321
am: 47c4f3d15c

Change-Id: Ie216ab218b74724e7cf1eb1d22efacfd57422a6b
47c4f3d15c455e2781a597265033e02070d2c500 13-Dec-2016 Andres Oportus <andresoportus@google.com> Add sustained performance test results warning
am: 00168f1321

Change-Id: Iabfa78b31a55d10d1e36b1efd9baebfd9e25d695
cd84f30323a3fd206daeebd7b319eab1b919108f 13-Dec-2016 Badash <badash@google.com> Remove apk test until I figure out why it is failing

Change-Id: I198e25a3d0627604d8c1671fcc261457a536598a
ecurity/src/android/security/cts/SampleRootTestCase.java
00168f1321840f9fadbed0f3eb7c67ee69cbff16 09-Dec-2016 Andres Oportus <andresoportus@google.com> Add sustained performance test results warning

When the SustainedPerformanceHostTest fails, there is no indication of
what level of performance did occur during the test. This change adds
a host side warning with the performance values if they fall behind
the original thresholds for the test (5% for both Dhrystone and app).

Bug: 31215027

Signed-off-by: Andres Oportus <andresoportus@google.com>
ustainedperf/src/android/SustainedPerformance/cts/SustainedPerformanceHostTest.java
9259176007f5aad8fb9c79abb725b40c89327c40 08-Dec-2016 Aaron Holden <aaronholden@google.com> Move libs/deviceutil to device-side/util

Test: build cts, run unit tests
bug:21762834
Change-Id: Ifd164ced7f040e312e3553f27adf59a648f463ab
bioverride/app/Android.mk
ppsecurity/test-apps/DocumentClient/Android.mk
ppsecurity/test-apps/DocumentClient/src/com/android/cts/documentclient/DocumentsClientTestCase.java
ppsecurity/test-apps/DocumentProvider/Android.mk
ppsecurity/test-apps/EncryptionApp/Android.mk
ppsecurity/test-apps/PrivilegedUpdateApp/Android.mk
ppsecurity/test-apps/UsePermissionApp22/Android.mk
ppsecurity/test-apps/UsePermissionApp23/Android.mk
ppsecurity/test-apps/UsePermissionApp24/Android.mk
ppsecurity/test-apps/UsesLibraryApp/Android.mk
evicepolicy/app/CorpOwnedManagedProfile/Android.mk
evicepolicy/app/CustomizationApp/Android.mk
evicepolicy/app/CustomizationApp/src/com/android/cts/customizationapp/CustomizationTest.java
evicepolicy/app/DeviceAndProfileOwner/api23/Android.mk
evicepolicy/app/DeviceAndProfileOwner/latest/Android.mk
evicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/CaCertManagementTest.java
evicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/CustomizationRestrictionsTest.java
evicepolicy/app/DeviceOwner/Android.mk
evicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/KeyManagementTest.java
et/app/Android.mk
et/app/src/com/android/cts/net/hostside/AbstractRestrictBackgroundNetworkTestCase.java
hortcuts/deviceside/backup/launcher1/Android.mk
hortcuts/deviceside/backup/launcher2/Android.mk
hortcuts/deviceside/backup/launcher3/Android.mk
hortcuts/deviceside/backup/publisher1/Android.mk
hortcuts/deviceside/backup/publisher2/Android.mk
hortcuts/deviceside/backup/publisher3/Android.mk
hortcuts/deviceside/multiuser/Android.mk
hortcuts/deviceside/upgrade/Android.mk
v/app/Android.mk
v/app2/Android.mk
i/appA/Android.mk
i/appB/Android.mk
i/control/Android.mk
i/control/src/android/taskswitching/control/cts/TaskSwitchingDeviceTest.java
ebkit/app/Android.mk
ebkit/app/src/com/android/cts/webkit/WebViewDeviceSideStartupTest.java
43fa4fc329d6ba6f1d405cb7e5c46166a2bded72 07-Dec-2016 Bjoern Johansson <bjoernj@google.com> Don't require WiFi in CtsHostsideNetworkTests

WiFi is not a CDD requirement so these tests should not fail when the
device under test does not have WiFi. The behavior is changed so that if
there is WiFi then both metered and unmetered tests will run. If there
is no WiFi and the current connection is metered then only metered tests
will run. If there is no WiFi and the current connection is not metered
then only unmetered tests will run.

Test: Successfully ran CTS test on both emulator and shamu.

BUG: 31648368
Change-Id: Ic643d2490e0a7e69b57a44599f1a4c57c67da873
et/app/src/com/android/cts/net/hostside/AbstractAppIdleTestCase.java
et/app/src/com/android/cts/net/hostside/AbstractBatterySaverModeTestCase.java
et/app/src/com/android/cts/net/hostside/AbstractDozeModeTestCase.java
et/app/src/com/android/cts/net/hostside/AbstractRestrictBackgroundNetworkTestCase.java
et/app/src/com/android/cts/net/hostside/AppIdleMeteredTest.java
et/app/src/com/android/cts/net/hostside/AppIdleNonMeteredTest.java
et/app/src/com/android/cts/net/hostside/BatterySaverModeMeteredTest.java
et/app/src/com/android/cts/net/hostside/BatterySaverModeNonMeteredTest.java
et/app/src/com/android/cts/net/hostside/DataSaverModeTest.java
et/app/src/com/android/cts/net/hostside/DozeModeMeteredTest.java
et/app/src/com/android/cts/net/hostside/DozeModeNonMeteredTest.java
et/app/src/com/android/cts/net/hostside/MixedModesTest.java
et/src/com/android/cts/net/HostsideNetworkTestCase.java
2c7e5170a20547c236819d56593d8b8b7d2f0f21 11-Oct-2016 Pavel Grafov <pgrafov@google.com> NEW-CTS: test for SecurityLog.SecurityEvent

Test is not too thorough since we cannot assume anything about those
events.

The test is a bit time consuming: it reboots the device and waits for 70
seconds to get logs. (this interval is an implementation detail, but
there is no better way currently.)

Fixes:28015901
Test: cts-tradefed run cts -m CtsDevicePolicyManagerTestCases -t
com.android.cts.devicepolicy.DeviceOwnerTest#testSecurityLoggingWithSingleUser

(cherry picked from commit bb6f8c5bb585c4df1f036e3855636e2bfda34245)

Change-Id: I7e9715a566c830dd5e8193fa204293d56c85c056
evicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/SecurityLoggingTest.java
evicepolicy/src/com/android/cts/devicepolicy/BaseDevicePolicyTest.java
evicepolicy/src/com/android/cts/devicepolicy/DeviceOwnerTest.java
60dc8daf04e13ea6907e1be89e4f4834d1999f34 09-Dec-2016 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Only sync adapters with access can see an account - CTS"
eba6b1b26a17432dbe0cb9b0b725a6bd1697c078 09-Dec-2016 Svet Ganov <svetoslavganov@google.com> Only sync adapters with access can see an account - CTS

Test: run these tests

bug:28163381

Change-Id: Ic980ca2330cfe25b53a0eaff31d544680db5b381
ontent/Android.mk
ontent/AndroidTest.xml
ontent/src/android/content/cts/SyncAdapterAccountAccessHostTest.java
ontent/test-apps/CtsSyncAccountAccessOtherCertTests/Android.mk
ontent/test-apps/CtsSyncAccountAccessOtherCertTests/AndroidManifest.xml
ontent/test-apps/CtsSyncAccountAccessOtherCertTests/res/xml/syncadapter.xml
ontent/test-apps/CtsSyncAccountAccessOtherCertTests/src/com/android/cts/content/CtsSyncAccountAccessOtherCertTestCases.java
ontent/test-apps/CtsSyncAccountAccessSameCertTests/Android.mk
ontent/test-apps/CtsSyncAccountAccessSameCertTests/AndroidManifest.xml
ontent/test-apps/CtsSyncAccountAccessSameCertTests/res/xml/syncadapter.xml
ontent/test-apps/CtsSyncAccountAccessSameCertTests/src/com/android/cts/content/CtsSyncAccountAccessSameCertTestCases.java
ontent/test-apps/CtsSyncAccountAccessSameCertTests/src/com/android/cts/content/StubActivity.java
ontent/test-apps/CtsSyncAccountAccessSameCertTests/src/com/android/cts/content/SyncAdapter.java
ontent/test-apps/CtsSyncAccountAccessSameCertTests/src/com/android/cts/content/SyncService.java
ontent/test-apps/SyncAccountAccessStubs/Android.mk
ontent/test-apps/SyncAccountAccessStubs/AndroidManifest.xml
ontent/test-apps/SyncAccountAccessStubs/res/xml/authenticator.xml
ontent/test-apps/SyncAccountAccessStubs/src/com/android/cts/stub/StubAuthenticator.java
ontent/test-apps/SyncAccountAccessStubs/src/com/android/cts/stub/StubProvider.java
9c8e1ee11994ae56ee6ef005975cce2b35ed27c9 06-Dec-2016 Ricky Wai <rickywai@google.com> Wifi should be enabled when wifi test starts

Bug: 32814821
Test: cts-tradefed run cts --module CtsDevicePolicyManagerTestCases --test 'com.android.cts.devicepolicy.ManagedProfileTest#testProfileWifiCleanup' </dev/null 2>&1
Change-Id: I13e3043f17cb4b08151192c69d1c1cfbb328f412
evicepolicy/app/ManagedProfile/AndroidManifest.xml
evicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/WifiTest.java
e9da359eb5aff884281b687f7a3640ac810b20c1 07-Dec-2016 Badash <badash@google.com> Initial commit for root hostside adb tests. am: fe79bbb2f2 am: 14e4ef883b am: ce49909cad am: 2a2a81a8eb am: 62bec64b78 am: 612739b23b
am: a963253eec

Change-Id: I3419b63df25287e9d309a7fead1238bfb86c6ae8
612739b23b8eecfe633adfa3ef2f969117847562 07-Dec-2016 Badash <badash@google.com> Initial commit for root hostside adb tests. am: fe79bbb2f2 am: 14e4ef883b am: ce49909cad am: 2a2a81a8eb
am: 62bec64b78

Change-Id: I1e48819f2d0fdf84f94d3902123dc94e13b5a0ac
2a2a81a8eb5f8a02f95cf8087750696ab4bcb3d4 07-Dec-2016 Badash <badash@google.com> Initial commit for root hostside adb tests. am: fe79bbb2f2 am: 14e4ef883b
am: ce49909cad

Change-Id: Ia28df1126d9dec1c8772f977693803776c341d10
ce49909cad6c39c391e14242dc9f0950c5d71b00 07-Dec-2016 Badash <badash@google.com> Initial commit for root hostside adb tests. am: fe79bbb2f2
am: 14e4ef883b

Change-Id: I228fffc89fcfaa5cd305812a23c375b44d03add7
14e4ef883b88c9cd61f8e9a7d92f903e3ded5596 07-Dec-2016 Badash <badash@google.com> Initial commit for root hostside adb tests.
am: fe79bbb2f2

Change-Id: Ic03c7b001f906ae109eaf47fea6f9f373e0205ca
fe79bbb2f28bd821a821e6c47b3bc9d801cb2aed 09-Nov-2016 Badash <badash@google.com> Initial commit for root hostside adb tests.

Change-Id: I36bb3108dcefc917ffbf381cf02267757a268e73
ecurity/Android.mk
ecurity/res/add-debug.apk
ecurity/res/crash_mod.apk
ecurity/res/poc
ecurity/res/test-case
ecurity/src/android/security/cts/AdbUtils.java
ecurity/src/android/security/cts/SampleRootTestCase.java
ecurity/src/android/security/cts/SecurityTestCase.java
27484158eba4a2e97e618e4302751b6d0e56a98b 07-Dec-2016 Ricky Wai <rickywai@google.com> Merge "Add dpm.get/setRequiredStrongAuthTimeout to whitelist"
5a24c87bb85ac0707e3769a7dbbdf2b3b46fa6f8 06-Dec-2016 Ricky Wai <rickywai@google.com> Add dpm.get/setRequiredStrongAuthTimeout to whitelist

Bug: 33165688
Test: "cts-tradefed run cts -m CtsDevicePolicyManagerTestCases -t com.android.cts.devicepolicy.ManagedProfileTest#testParentProfileApiDisabled" works
Change-Id: I67ec563224e190490f372e679a391947d99bd50f
evicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/ParentProfileTest.java
e72fe1967b405df102c766307ae20ceb673e1a7e 06-Dec-2016 Michal Karpinski <mkarpinski@google.com> Merge "User model and DeviceAdminReceiver related CTS tests for network logging"
09af4218fa0720628e401cd57f6453cce2ad6ac0 06-Dec-2016 Andrii Kulian <akulian@google.com> Merge "Add CTS for consequent fixed orientation app launches"
c72ea7a150ad8429764d04102dd7f2fcaaf4fa0d 06-Dec-2016 Michal Karpinski <mkarpinski@google.com> User model and DeviceAdminReceiver related CTS tests
for network logging

This is user model and DeviceAdminReceiver tests for now,
the tests for actual logging and UI verifying will be done
in a follow up CL.

Test: I'm a test, run me with:
1) cts-tradefed run cts --module DevicePolicyManager --test com.android.cts.devicepolicy.DeviceOwnerTest#testNetworkLoggingWithSingleUser
2) cts-tradefed run cts --module DevicePolicyManager --test com.android.cts.devicepolicy.DeviceOwnerTest#testNetworkLoggingWithTwoUsers
3) cts-tradefed run cts --module CtsAdminTestCases --test android.admin.cts.DevicePolicyManagerTest
4) cts-tradefed run cts --module CtsAdminTestCases --test android.admin.cts.DeviceAdminReceiverTest

Bug: 29748723
Change-Id: I2c5b74eac6585131fbedf56e952d5667a441748a
evicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/NetworkLoggingTest.java
evicepolicy/src/com/android/cts/devicepolicy/DeviceOwnerTest.java
12bdf168062e1c9fa7bca069f16d7760c9d3fa4a 06-Dec-2016 ltrochtova <ltrochtova@google.com> Merge "Host-side test for DISALLOW_BLUETOOTH user restriction." am: ed402f1f63 am: 10b71a11d4 am: 8e7eeb0080
am: 165838d176

Change-Id: If8b405a2a6e1a9d8e32fd5f7f05caa17c09af0ab
8e7eeb0080e193696dd69c11d539355ed244feca 06-Dec-2016 ltrochtova <ltrochtova@google.com> Merge "Host-side test for DISALLOW_BLUETOOTH user restriction." am: ed402f1f63
am: 10b71a11d4

Change-Id: Ie8d4f6d4ffa632b46ab9b856d2ef01bfebf45ae6
10b71a11d495f1d1e1447e595d16ee3e21a78d21 06-Dec-2016 ltrochtova <ltrochtova@google.com> Merge "Host-side test for DISALLOW_BLUETOOTH user restriction."
am: ed402f1f63

Change-Id: I228891e145e56794c2e4cd11ddb260b0045a510e
cbdc73687415e0b18fe6afec5c566b343a57a894 02-Dec-2016 Lenka Trochtova <ltrochtova@google.com> Host-side test for DISALLOW_BLUETOOTH user restriction.

Test: cts-tradefed run cts -m CtsDevicePolicyManagerTestCases --test com.android.cts.devicepolicy.UserRestrictionsTest
Test: cts-tradefed run cts -m CtsDevicePolicyManagerTestCases --test com.android.cts.devicepolicy.DeviceOwnerTest#testBluetoothRestriction

Bug: 32895300

Change-Id: I857de13cc5c24ba05c1d000e8c2b41ce28a788fc
evicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/userrestrictions/BaseUserRestrictionsTest.java
evicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/userrestrictions/DeviceOwnerUserRestrictionsTest.java
evicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/userrestrictions/SecondaryProfileOwnerUserRestrictionsTest.java
evicepolicy/app/DeviceOwner/AndroidManifest.xml
evicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/BluetoothRestrictionTest.java
evicepolicy/src/com/android/cts/devicepolicy/DeviceOwnerTest.java
c937883d11a066b2869d10a4ab4fb488d4be90fb 01-Dec-2016 Andrii Kulian <akulian@google.com> Add CTS for consequent fixed orientation app launches

Bug: 32576174
Test: android.server.cts.ActivityManagerAppConfigurationTests
Test: #testRequestedOrientationHandling
Change-Id: Ifc199647291dc4e63f15562645078886fd9b1f23
ervices/activityandwindowmanager/activitymanager/app/AndroidManifest.xml
ervices/activityandwindowmanager/activitymanager/app/src/android/server/cts/LandscapeOrientationActivity.java
ervices/activityandwindowmanager/activitymanager/app/src/android/server/cts/PortraitOrientationActivity.java
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/ActivityManagerAppConfigurationTests.java
ervices/activityandwindowmanager/util/src/android/server/cts/WindowManagerState.java
43eb4114fa2bd60778d58714bc3aa84449336781 28-Nov-2016 Koji Fukui <koji.fukui@sonymobile.com> Uninstall devicepolicy test packages

Some devicepolicy test packages weren't uninstalled after test.
Ensure uninstalling these packages.

Change-Id: Ic8cd3b569bd904a433a23921e5d13b6447e6fca8
evicepolicy/src/com/android/cts/devicepolicy/DeviceAndProfileOwnerTest.java
evicepolicy/src/com/android/cts/devicepolicy/DeviceOwnerTest.java
evicepolicy/src/com/android/cts/devicepolicy/MixedDeviceOwnerTest.java
evicepolicy/src/com/android/cts/devicepolicy/MixedProfileOwnerTest.java
evicepolicy/src/com/android/cts/devicepolicy/ProfileOwnerTest.java
evicepolicy/src/com/android/cts/devicepolicy/ProfileOwnerTestApi23.java
evicepolicy/src/com/android/cts/devicepolicy/UserRestrictionsTest.java
b69b175c73d89000058bbb563c020cfa66558ba6 03-Dec-2016 Nick Kralevich <nnk@google.com> Change location of healthd

system/sepolicy commit renamed /sbin/healthd to /system/bin/healthd.
See commit c73d0022ade4855ab72849e1fe97856c737fdcef.

Update the CTS test accordingly.

Test: CTS compiles.
Bug: 33304167
Change-Id: Ic0aaa7ba4ddc2727aaed26804cea412ec3fab5e5
ecurity/src/android/security/cts/SELinuxHostTest.java
c1d4082fa2e5822b9c9010017d8a94d838b24f9e 02-Dec-2016 Jorim Jaggi <jjaggi@google.com> Merge "Add test for homescreen visible after rotation unoccluding"
d560f77d2a1489a08daf83b7d62222429e562ee8 02-Dec-2016 mist_liao <mist_liao@asus.com> Add 360dpi.zip for theme test

Fix the test case CtsThemeHostTestCases fail on 360dpi device.

Change-Id: If86c61e28a74c851adf993a48faeda936ca64ef5
heme/assets/24/360dpi.zip
a766a9d389bc32a7d47b1510a222bffa727ce883 01-Dec-2016 ltrochtova <ltrochtova@google.com> Merge "Revert "Host-side test for DISALLOW_BLUETOOTH user restriction."" am: 63941e2841 am: d232ab7693 am: ccb6ef3a59
am: dde633259d

Change-Id: I1eb33b7dc40591bb2e74c9f1e91d2ce31d6c66e0
69ea94fc9e20cd50cb49056f2488d444c8caaddd 01-Dec-2016 ltrochtova <ltrochtova@google.com> Merge "Host-side test for DISALLOW_BLUETOOTH user restriction." am: 9780029c98 am: 13917ae0f0 am: 308c8d3104
am: b03ac0d19e

Change-Id: I4bfbe08abef2e942d7ba8ef3665e3781bbc6a2f1
ccb6ef3a59285a0b0d05e97cb2094ded55d706ce 01-Dec-2016 ltrochtova <ltrochtova@google.com> Merge "Revert "Host-side test for DISALLOW_BLUETOOTH user restriction."" am: 63941e2841
am: d232ab7693

Change-Id: I017062be650e3926fdd57d14d8a3b3d6fdf7f23c
d232ab769368d90f6406c19b9c927b53f70402de 01-Dec-2016 ltrochtova <ltrochtova@google.com> Merge "Revert "Host-side test for DISALLOW_BLUETOOTH user restriction.""
am: 63941e2841

Change-Id: I4454212be52eb3915b6a278e71eb0e96d560fd52
308c8d31049d9944e030d9ea259c2c6142250c9b 01-Dec-2016 ltrochtova <ltrochtova@google.com> Merge "Host-side test for DISALLOW_BLUETOOTH user restriction." am: 9780029c98
am: 13917ae0f0

Change-Id: Icb2a43c97d9c3519b917aacb1330df4a6b367e29
13917ae0f0ffecd06b96a1babb6a1696e1ee85bd 01-Dec-2016 ltrochtova <ltrochtova@google.com> Merge "Host-side test for DISALLOW_BLUETOOTH user restriction."
am: 9780029c98

Change-Id: I67c2967ce65410873d0a36f0145c11706f4087e9
76d27ce7c94d7559716fa779051f3cdc1af488b0 01-Dec-2016 ltrochtova <ltrochtova@google.com> Revert "Host-side test for DISALLOW_BLUETOOTH user restriction."

This reverts commit 2d3020b24fbc9db60e3fc94a075a9dce0ff9d4d6.

Change-Id: Id0ed64e10bd25f5de7abcc4f284102b3c48e1b84
evicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/userrestrictions/BaseUserRestrictionsTest.java
evicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/userrestrictions/DeviceOwnerUserRestrictionsTest.java
evicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/userrestrictions/SecondaryProfileOwnerUserRestrictionsTest.java
evicepolicy/app/DeviceOwner/AndroidManifest.xml
evicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/BluetoothRestrictionTest.java
evicepolicy/src/com/android/cts/devicepolicy/DeviceOwnerTest.java
8df985f038416aacc8b706d410ea6d5f37169c59 01-Dec-2016 Aaron Holden <aaronholden@google.com> Merge "Add JUnit4 compatible base test class"
ac85d38d712d4683f7ab90d1f3cc06724a2f534f 01-Dec-2016 Amith Yamasani <yamasani@google.com> Merge "Tests for uninstalled packages query"
357c77c89ebec3a50f19c7a779b7f74da802954b 01-Dec-2016 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Add strictmode startup test for WebView."
fe6248c1e2e3f29383e3db9aadbe7d44bc226c31 01-Dec-2016 Nicolas Prévot <nprevot@google.com> Merge "Test device owner callbacks when a user is added/removed."
4837b36c3897e97bcb7703a7667a9df5a8c6839f 01-Dec-2016 Jorim Jaggi <jjaggi@google.com> Add test for homescreen visible after rotation unoccluding

Test: cts/hostsidetests/services/activityandwindowmanager/util/run-test
android.server.cts.KeyguardTests#testUnoccludeRotationChange

Bug: 32771855
Change-Id: Ie8c11945425359a36bf059781fd52f335e870b06
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/KeyguardTests.java
ervices/activityandwindowmanager/util/src/android/server/cts/ActivityAndWindowManagersState.java
ervices/activityandwindowmanager/util/src/android/server/cts/ActivityManagerState.java
ervices/activityandwindowmanager/util/src/android/server/cts/WindowManagerState.java
b0ae9af584feabfb64046e9747994d45794f4130 01-Dec-2016 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Remove unnecessary log in bindDeviceAdminServiceAsUserTest"
655aa04bf08e456886dd81c6a393aca7b371d2ca 01-Dec-2016 TreeHugger Robot <treehugger-gerrit@google.com> Merge "CTS for EXTRA_PROVISIONING_SKIP_USER_CONSENT"
2f6fa45eeb9c3537694d46e5d5226be9f702d5fb 01-Dec-2016 Tony Mak <tonymak@google.com> Remove unnecessary log in bindDeviceAdminServiceAsUserTest

Change-Id: I676b598a9f67dfd8986870601720f99ce1297c63
Test: N/A
evicepolicy/app/CorpOwnedManagedProfile/src/com/android/cts/comp/bindservice/BindDeviceAdminServiceCorpOwnedManagedProfileTestSuite.java
2e43a1d600a6fb2092af27a3ea4ec6cf9c5081c1 01-Dec-2016 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Update bindDeviceAdminServiceAsUser test"
2d3020b24fbc9db60e3fc94a075a9dce0ff9d4d6 24-Nov-2016 Lenka Trochtova <ltrochtova@google.com> Host-side test for DISALLOW_BLUETOOTH user restriction.

Test: cts-tradefed run cts -m CtsDevicePolicyManagerTestCases --test com.android.cts.devicepolicy.UserRestrictionsTest
Test: cts-tradefed run cts -m CtsDevicePolicyManagerTestCases --test com.android.cts.devicepolicy.DeviceOwnerTest#testBluetoothRestriction

Bug: 32895300

Change-Id: Ic5ea38bdba17bc6353a0b9303db349144f6f7457
evicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/userrestrictions/BaseUserRestrictionsTest.java
evicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/userrestrictions/DeviceOwnerUserRestrictionsTest.java
evicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/userrestrictions/SecondaryProfileOwnerUserRestrictionsTest.java
evicepolicy/app/DeviceOwner/AndroidManifest.xml
evicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/BluetoothRestrictionTest.java
evicepolicy/src/com/android/cts/devicepolicy/DeviceOwnerTest.java
16ff34785f8378ab153b51a9b86b91a6baf19c6a 25-Nov-2016 Bartosz Fabianowski <bartfab@google.com> Add CTS test for DevicePolicyManager.isDeviceManaged()

This tests the positive case of DPM.isDeviceManaged(). The negative
case can only be tested by GTS, as it requires a system|signature
permission.

Bug: 32692748
Test: cts-tradefed run cts-dev --module CtsDevicePolicyManagerTestCases
Change-Id: I11cea8ac18d60604bc383f3a5087999b113eabef
evicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/AdminActionBookkeepingTest.java
9025b1d1521dacee45930ae3d4c6d8b022fb2853 23-Nov-2016 Bartosz Fabianowski <bartfab@google.com> Add CTS tests for allowing the DO to set the managing organization

This CL adds CTS tests for the DevicePolicyManager APIs
setOrganizationName() and getDeviceOwnerOrganizationName().

Bug: 32692748
Test: cts-tradefed run cts-dev --module CtsDevicePolicyManagerTestCases
Change-Id: I55e8e2ec4d60449e36ecec278cb84f3365e71eb2
evicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/AdminActionBookkeepingTest.java
36a491aceab0307b1c0aea560544700618baea59 01-Nov-2016 Amith Yamasani <yamasani@google.com> Tests for uninstalled packages query

Test changes in behavior for MATCH_UNINSTALLED_PACKAGES.
The flag should only apply to apps that are installed for the
specific user, even if temporarily unavailable.

Bug: 31000380
Test: cts-tradefed run cts -m CtsAppSecurityHostTestCases -t android.appsecurity.cts.PackageVisibilityTest
Change-Id: I53863851ba8a7db14c66c83eafa7ba8091ec766d
ppsecurity/src/android/appsecurity/cts/BaseAppSecurityTest.java
ppsecurity/src/android/appsecurity/cts/PackageVisibilityTest.java
ppsecurity/test-apps/PackageAccessApp/Android.mk
ppsecurity/test-apps/PackageAccessApp/AndroidManifest.xml
ppsecurity/test-apps/PackageAccessApp/src/com/android/cts/packageaccessapp/PackageAccessTest.java
ultiuser/src/android/host/multiuser/BaseMultiUserTest.java
2d2966f0a2a772187d57e03cc26e9aaaed849d33 30-Nov-2016 Andrii Kulian <akulian@google.com> Reduce flakiness of some AM tests

Some host side tests were flaky because we're not waiting
for the activity to appear after it was launched.

Test: android.server.cts package
Test: ActivityManagerActivityVisibilityTests#testVisibleBehindOtherActivity_NotOverHome
Test: ActivityManagerActivityVisibilityTests#testVisibleBehindOtherActivity_OverHome
Change-Id: I93864b9d66e73a74d9e371c144baef6c628e75d3
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/ActivityManagerActivityVisibilityTests.java
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/ActivityManagerDisplayTests.java
ervices/activityandwindowmanager/util/src/android/server/cts/ActivityAndWindowManagersState.java
ervices/activityandwindowmanager/util/src/android/server/cts/ActivityManagerTestBase.java
8e80896ba52a4b67e17d6509b14adabb7a33b8bc 30-Nov-2016 Colin Cross <ccross@android.com> Merge "Remove references to non-existant directories" am: 977698ff45
am: 0baccce0e7

Change-Id: Ib70e3546119862b74ac5faee71ca3d37f8813a56
0baccce0e7ce6e88c577fe1150afe2df5e5a4e80 30-Nov-2016 Colin Cross <ccross@android.com> Merge "Remove references to non-existant directories"
am: 977698ff45

Change-Id: I4cab8e795c8eeb653053626e8ace18a6cfcc78f3
e98e7387e39f62bc07df6f40731e8352391ccede 29-Nov-2016 Colin Cross <ccross@android.com> Remove references to non-existant directories

Fixes warnings during makefile parsing:
FindEmulator: find: `cts/apps/CtsVerifier/src/android': No such file or directory
FindEmulator: find: `cts/hostsidetests/os/test-apps/HostLinkVerificationApp/src': No such file or directory
FindEmulator: find: `cts/libs/commonutil/src': No such file or directory
FindEmulator: cd: cts/tests/libcore/ojluni/resources: No such file or directory
FindEmulator: find: `cts/tests/tests/icu/tools': No such file or directory

(cherry-picked from commit 1363888e566d9d35c171619bbc0ebc603c244f71)
Test: m -j cts
Merged-In: I8ea57a714cdae6a89490a1d6e4be93cc7ae3d316
Change-Id: I8ea57a714cdae6a89490a1d6e4be93cc7ae3d316
s/test-apps/HostLinkVerificationApp/Android.mk
a3797cec969d98c7325a3bc15bc2987d8a5dc897 30-Nov-2016 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Remove references to non-existant directories"
8cc91265db01632cf5f34e83072192a6363141a2 22-Nov-2016 Victor Chang <vichang@google.com> CTS for EXTRA_PROVISIONING_SKIP_USER_CONSENT

The extra only works in corp-owned managed profile
Bug: 32299699
Test: cts-tradefed run cts --module DevicePolicyManager --test com.android.cts.devicepolicy.DeviceOwnerPlusManagedProfileTest

Change-Id: If8ad9b9dcb3271acd08c3fbffe3df566af2ae464
evicepolicy/app/CorpOwnedManagedProfile/AndroidManifest.xml
evicepolicy/app/CorpOwnedManagedProfile/src/com/android/cts/comp/AdminReceiver.java
evicepolicy/app/CorpOwnedManagedProfile/src/com/android/cts/comp/provisioning/ManagedProfileProvisioningTest.java
evicepolicy/app/CorpOwnedManagedProfile/src/com/android/cts/comp/provisioning/SilentProvisioningTestManager.java
evicepolicy/app/CorpOwnedManagedProfile/src/com/android/cts/comp/provisioning/StartProvisioningActivity.java
evicepolicy/src/com/android/cts/devicepolicy/BaseDevicePolicyTest.java
evicepolicy/src/com/android/cts/devicepolicy/DeviceOwnerPlusManagedProfileTest.java
06941cf0676bac2fb218976676f4b6e1cc3eb9ed 30-Nov-2016 Tony Mak <tonymak@google.com> Update bindDeviceAdminServiceAsUser test

To align with the new exception message in ag/1665556

Bug: 33197200

Test: cts-tradefed run cts --module DevicePolicyManager --test com.android.cts.devicepolicy.DeviceOwnerPlusManagedProfileTest

Change-Id: I605c0b273cbf00d4fe79e37e7757383912cf6a8c
evicepolicy/app/CorpOwnedManagedProfile/src/com/android/cts/comp/bindservice/BindDeviceAdminServiceCorpOwnedManagedProfileTestSuite.java
569f72dc7d28c7a13f9d2e2814842a116ef7bfcf 29-Nov-2016 Nicolas Prevot <nprevot@google.com> Test device owner callbacks when a user is added/removed.

BUG:33162837
Test: cts-tradefed run cts --module CtsDevicePolicyManagerTestCases --test
com.android.cts.devicepolicy.DeviceOwnerTest#testUserAddedOrRemovedBroadcasts

Change-Id: I3fe1e0386289152c51a43aae5984298683372aee
evicepolicy/app/DeviceOwner/Android.mk
evicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/BaseDeviceOwnerTest.java
evicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/CreateAndManageUserTest.java
evicepolicy/src/com/android/cts/devicepolicy/DeviceOwnerTest.java
9ee94bc0dab2483a9b88a43510ac9c95ca17711e 30-Nov-2016 Andrii Kulian <akulian@google.com> Test if launching doesn't affect visibility on other displays

Also cleaned up activity launching in CTS.

Test: ActivityManagerDisplayTests
Test: #testLaunchActivitiesAffectsVisibility
Change-Id: If5f0cb9470a5fc1db220d74e29262ac6ba8faf52
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/ActivityManagerActivityVisibilityTests.java
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/ActivityManagerAppConfigurationTests.java
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/ActivityManagerConfigChangeTests.java
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/ActivityManagerDisplayTests.java
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/ActivityManagerDockedStackTests.java
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/ActivityManagerPinnedStackTests.java
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/AnimationBackgroundTests.java
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/KeyguardLockedTests.java
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/KeyguardTests.java
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/KeyguardTransitionTests.java
ervices/activityandwindowmanager/util/src/android/server/cts/ActivityManagerTestBase.java
1363888e566d9d35c171619bbc0ebc603c244f71 29-Nov-2016 Colin Cross <ccross@android.com> Remove references to non-existant directories

Fixes warnings during makefile parsing:
FindEmulator: find: `cts/apps/CtsVerifier/src/android': No such file or directory
FindEmulator: find: `cts/hostsidetests/os/test-apps/HostLinkVerificationApp/src': No such file or directory
FindEmulator: find: `cts/libs/commonutil/src': No such file or directory
FindEmulator: cd: cts/tests/libcore/ojluni/resources: No such file or directory
FindEmulator: find: `cts/tests/tests/icu/tools': No such file or directory

Test: m -j cts
Change-Id: I8ea57a714cdae6a89490a1d6e4be93cc7ae3d316
s/test-apps/HostLinkVerificationApp/Android.mk
0982e931b64396716d19c9faadb262f3089396d2 29-Nov-2016 Jeff Hao <jeffhao@google.com> Merge "Update test profile to new profile version." am: f1387dccd1 am: 3b775581ad am: bf1907bcb0
am: 16b9e05834

Change-Id: I668c2c1604df1383a2d3fa65b8f5a4354e4c3c06
bf1907bcb057d573e3182706bad0b697790904dc 29-Nov-2016 Jeff Hao <jeffhao@google.com> Merge "Update test profile to new profile version." am: f1387dccd1
am: 3b775581ad

Change-Id: I3f832ffda5d1d44618ff2f456b39919483b7026d
3b775581ad684fe5d52e8346313360f85f6e2197 29-Nov-2016 Jeff Hao <jeffhao@google.com> Merge "Update test profile to new profile version."
am: f1387dccd1

Change-Id: I85c28a8a78de942e03e397a99a592acb35166f80
dd16ab264313724a51557e693261d7f1c4411b0f 29-Nov-2016 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Add CTS for KeyguardManager.dismiss()"
8a17df0256533a5ec56bde78fb2107dd4ca8c67f 02-Nov-2016 Aaron Holden <aaronholden@google.com> Add JUnit4 compatible base test class

Test: cts-tradefed run everything -m CtsSampleHostTestCases
bug:32671788
Change-Id: I214a422f5c318209f77cd5da11534a85584bf660
ample/app2/Android.mk
ample/app2/AndroidManifest.xml
ample/app2/src/android/sample/cts/app2/SampleDeviceTest.java
ample/src/android/sample/cts/SampleHostJUnit4DeviceTest.java
ample/src/android/sample/cts/SampleHostJUnit4Test.java
ample/src/android/sample/cts/SampleHostTest.java
646ebbd88247f459fe7afb3dfe40daaa3a9be6a5 29-Nov-2016 Jeff Hao <jeffhao@google.com> Update test profile to new profile version.

Profile version was bumped after this:
https://android-review.googlesource.com/#/c/304486/

Bug: 33111101
Test: cts-tradefed run cts --abi armeabi-v7a -m CtsCompilationTestCases
Change-Id: Iaea5e5a86440987cd320b9196bcef774762fc970
ompilation/assets/primary.prof
ef61c3b4f985b9ee40cc2b66d3104dfd23d09da3 28-Nov-2016 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Add CTS tests for admin action bookkeeping in DPM"
dfa5b46b5881e0411f0b2983321f1b2d823969b3 28-Nov-2016 Aaron Holden <aaronholden@google.com> Merge "Nuke CTS Migration Library, extend CompatibilityBuildHelper"
e3fea6b1749a0c1688335666f128f5ab6213810e 28-Sep-2016 Gustav Sennton <gsennton@google.com> Add strictmode startup test for WebView.

Bug: 30157678
Test: run the test with an older version of WebView installed (e.g. 51)
to ensure it fails when WebView startup causes StrictMode violations.
Test: run the test with a new enough version of WebView that doesn't
cause StrictMode violations (version dropped into master).
Test: run the test on a Wear device to ensure it doesn't fail.

Change-Id: If9b3e024d303a2c3338841b743839d5e7c6f022e
ebkit/app/src/com/android/cts/webkit/WebViewDeviceSideStartupTest.java
ebkit/src/com/android/cts/webkit/WebViewHostSideStartupTest.java
a3f785c8c70ea5ab2f2ceea1af2f6d77db8d8cda 28-Nov-2016 Robin Lee <rgl@google.com> [vpn] put the network settle wait back in

On x86 targets there is still a gap between the network being reported
available and actually being available.

Until this can be fixed the NETWORK_SETTLE_GRACE_MS sleep needs to go
back in.

Bug: 31585407
Test: CtsDevicePolicyManagerTestCases
Change-Id: I177f6ef49e28a62dc80d8feba65065bc29f7054b
evicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/vpn/VpnTestHelper.java
2f16322d86e4248b241611da00053cee6dfb1f1f 23-Nov-2016 Bartosz Fabianowski <bartfab@google.com> Add CTS tests for admin action bookkeeping in DPM

This CL adds CTS tests for the DevicePolicyManager APIs
getLastSecurityLogRetrievalTime(), getLastBugReportRequestTime() and
getLastNetworkLogRetrievalTime().

Bug: 32692748
Test: cts-tradefed run cts-dev --module CtsDevicePolicyManagerTestCases
Change-Id: I5711e79d614836f1cc067f8161f3b8f1d618d1f3
evicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/AdminActionBookkeepingTest.java
evicepolicy/src/com/android/cts/devicepolicy/DeviceOwnerTest.java
1d478e24df989a7b6509954d0b7ab35509730278 25-Nov-2016 Nicolas Prévot <nprevot@google.com> Merge "Fix testCannotRemoveUserIfRestrictionSet for a managed profile."
b0e9f556aef92654823d1061679989ac19886b97 17-Nov-2016 jaehoon.kim <jaehoon.kim@lge.com> Add tvdpi images for theme test

Change-Id: I9d9fc6391093c89f5ffbc7b732813048aee384b5
heme/assets/24/tvdpi.zip
c3ddf27541488e076fb284f5c6f7c2bc9d1028b5 24-Nov-2016 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Tests for new getBindDeviceAdminTargetUsers API"
69be10bc000b2d46b80acdc51146a66d31783e8d 24-Nov-2016 Nicolas Prevot <nprevot@google.com> Fix testCannotRemoveUserIfRestrictionSet for a managed profile.

When the PO is running in a managed profile: setting
DISALLOW_REMOVE_USER has no effect. So don't run the test
testCannotRemoveUserIfRestrictionSet

BUG:33098551
Test: cts-tradefed run cts --module CtsDevicePolicyManagerTestCases --test
com.android.cts.devicepolicy.MixedManagedProfileOwnerTest#testCannotRemoveUserIfRestrictionSet

Change-Id: I507708ca89dd3b7f2b45ed5856e750de9b5de7dd
evicepolicy/src/com/android/cts/devicepolicy/DeviceAndProfileOwnerTest.java
abe925f72997bf1052c045d6bfd3dd3d52316b44 21-Nov-2016 Esteban Talavera <etalavera@google.com> Tests for new getBindDeviceAdminTargetUsers API

Bug: 32764274
Test: cts-tradefed run cts --module DevicePolicyManager --test com.android.cts.devicepolicy.DeviceOwnerPlusManagedProfileTest

Change-Id: If931272fb44db39d8b64c54d08db4c8cf94f273b
evicepolicy/app/CorpOwnedManagedProfile/src/com/android/cts/comp/BaseDeviceOwnerCompTest.java
evicepolicy/app/CorpOwnedManagedProfile/src/com/android/cts/comp/BaseManagedProfileCompTest.java
evicepolicy/app/CorpOwnedManagedProfile/src/com/android/cts/comp/DeviceOwnerBindDeviceAdminServiceTest.java
evicepolicy/app/CorpOwnedManagedProfile/src/com/android/cts/comp/ManagedProfileBindDeviceAdminServiceTest.java
evicepolicy/app/CorpOwnedManagedProfile/src/com/android/cts/comp/bindservice/BindDeviceAdminServiceByodPlusDeviceOwnerTestSuite.java
evicepolicy/app/LauncherTestsSupport/src/com/android/cts/launchertests/support/LauncherCallbackTestsService.java
24f2d31c991ee9edc5671abae911b268f1f909c5 24-Nov-2016 TreeHugger Robot <treehugger-gerrit@google.com> Merge "CTS to verify enabling/disabling package component of DO/PO is disallowed"
dd6d39740513b4814212d6c02cb10fa9e3e5d1be 23-Nov-2016 Tony Mak <tonymak@google.com> CTS to verify enabling/disabling package component of DO/PO is disallowed

Fix: 32738326

Test: cts-tradefed run cts --module DevicePolicyManager --test com.android.cts.devicepolicy.MixedDeviceOwnerTest#testCannotEnableOrDisableDeviceOwnerOrProfileOwner

Change-Id: Ib60adf6d231e2f2904abbda5e45a8c2a0a366b15
evicepolicy/src/com/android/cts/devicepolicy/BaseDevicePolicyTest.java
evicepolicy/src/com/android/cts/devicepolicy/DeviceAndProfileOwnerTest.java
evicepolicy/src/com/android/cts/devicepolicy/ManagedProfileTest.java
d16ae8f4ac4694486472532bf9cb1fb5e1f78146 23-Nov-2016 Aaron Holden <aaronholden@google.com> Nuke CTS Migration Library, extend CompatibilityBuildHelper

bug: 21762834
Test: cts-tradefed run cts -m CtsAppSecurityHostTestCases
Change-Id: I72296ca84c76e4af2de0249e4cdb57fed3065e07
bioverride/Android.mk
bioverride/src/android/abioverride/cts/AbiOverrideTest.java
ppsecurity/Android.mk
ppsecurity/src/android/appsecurity/cts/AdoptableHostTest.java
ppsecurity/src/android/appsecurity/cts/AppSecurityTests.java
ppsecurity/src/android/appsecurity/cts/DocumentsTest.java
ppsecurity/src/android/appsecurity/cts/DocumentsTestCase.java
ppsecurity/src/android/appsecurity/cts/ExternalStorageHostTest.java
ppsecurity/src/android/appsecurity/cts/KeySetHostTest.java
ppsecurity/src/android/appsecurity/cts/PermissionsHostTest.java
ppsecurity/src/android/appsecurity/cts/PrivilegedUpdateTests.java
ppsecurity/src/android/appsecurity/cts/SplitTests.java
ppsecurity/src/android/appsecurity/cts/UsesLibraryHostTest.java
trace/Android.mk
trace/src/android/atrace/cts/AtraceHostTest.java
evicepolicy/Android.mk
evicepolicy/src/com/android/cts/devicepolicy/BaseDevicePolicyTest.java
evicepolicy/src/com/android/cts/devicepolicy/CustomDeviceOwnerTest.java
evicepolicy/src/com/android/cts/devicepolicy/DeviceAndProfileOwnerTest.java
umpsys/Android.mk
umpsys/src/android/dumpsys/cts/DumpsysHostTest.java
dwpsecurity/Android.mk
dwpsecurity/src/android/jdwpsecurity/cts/JdwpSecurityHostTest.java
onkey/Android.mk
onkey/src/com/android/cts/monkey/AbstractMonkeyTest.java
ultiuser/Android.mk
et/Android.mk
et/src/com/android/cts/net/HostsideNetworkTestCase.java
umberblocking/Android.mk
umberblocking/src/com/android/cts/numberblocking/hostside/NumberBlockingTest.java
s/Android.mk
s/src/android/os/cts/OsHostTests.java
ecurity/Android.mk
ecurity/src/android/security/cts/SELinuxHostTest.java
hortcuts/hostside/Android.mk
hortcuts/hostside/src/android/content/pm/cts/shortcuthost/BaseShortcutManagerHostTest.java
ystemui/Android.mk
heme/Android.mk
heme/src/android/theme/cts/ThemeHostTest.java
v/Android.mk
v/src/com/android/cts/tv/TvInputManagerHostTest.java
i/Android.mk
i/src/android/ui/cts/InstallTimeTest.java
i/src/android/ui/cts/TaskSwitchingTest.java
sb/Android.mk
sb/src/com/android/cts/usb/TestUsbTest.java
a56fe14755963c89bcdd5935d71db7c575877430 23-Nov-2016 Baligh Uddin <baligh@google.com> Merge remote-tracking branch 'goog/cw-f-dev' into fix_merger

Bug: 32849428
* goog/cw-f-dev: (122 commits)
Fixed CTS unit tests
Fixing layout of several test suites for round screens.
Fix test case context which is not fully visible on wear.
Fix build for nyc-dr1-dev
Check that H.264 is available before checking max frame rate
DO NOT MERGE: Bump CTS and CTS Verifier to 5.1_r14
DO NOT MERGE: Bump CTS and CTS Verifier to 6.0_r13
Run DynamicConfig setup twice
DO NOT MERGE: Bump CTS and CTS Verifier to 7.0_r4
Fix UserRestrictionsTest.testUserRestrictions_secondaryProfileOwnerOnly
Generate and include checksum data with CTS report submissions Test: Used exploratory tests and unit tests in ChecksumReporterTest.java to verify the behavior. * All TestResults are added from an InvocationResult * Able to verify TestResult against previously calculated checksum * CRCs are created for all files in a directory including subdirectories * Checksum integrity is maintained while serializing to/from disk * When possible checksum data is compressed before report submission
Add retry logic for adoptable storage tests
Catch case where browser is protected by a permission
Fix failure due to accessibility node not updated after scrolling.
Fix DO/PO Wifi CTS
Test: Fix testFindAll result listener not set issue
Updating CTS Security patch to 2017-01
DO NOT MERGE ANYWHERE: bump cts for 201701 security public bulletin
DO NOT MERGE ANYWHERE: bump cts for 201701 security public bulletin
CTS Test for security vulnerability fix: Effect command might allow negative indexes
...

Change-Id: I07b3bb0249eebcae5760d08c98cdde1ac5b01601
a7f30013d8712ae01ca9e5ad3e74937ea1a46922 26-Oct-2016 zhang sanshan <sanshan.zhang@nxp.com> Fix com.android.cts.devicepolicy.MixedDeviceOwnerTest#testPackageInstallUserRestrictions

Selector can't find button in package com.google.android.packageinstaller.
The device just include package com.android.packageinstaller.

Test:
run cts -m CtsDevicePolicyManagerTestCases -t
com.android.cts.devicepolicy.MixedDeviceOwnerTest#testPackageInstallUserRestrictions

Signed-off-by: zhang sanshan <sanshan.zhang@nxp.com>
Change-Id: I14b0d186a840d8f80d3e24a673b190db13eb10a3
evicepolicy/app/PackageInstaller/src/com/android/cts/packageinstaller/ManualPackageInstallTest.java
3d2b67d0a4a0c5e69dc41dbe9f41cbaead74c28c 22-Nov-2016 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Dumpsys to debug testLockTask failure"
93a69952d2fd8251be8e22d041bf73ca5f14b73e 22-Nov-2016 Makoto Onuki <omakoto@google.com> Fix UserRestrictionsTest.testUserRestrictions_secondaryProfileOwnerOnly
am: 2ff42451c2

Change-Id: Ie217570bf991c9bea06e9107a11e86dc9ec2d3b5
36fb37540948ab6784216c84e063064afecd2b72 22-Nov-2016 Tony Mak <tonymak@google.com> Dumpsys to debug testLockTask failure

Bug:32771855

Test: run cts --module DevicePolicyManager --test com.android.cts.devicepolicy.DeviceOwnerTest#testLockTask

Change-Id: I8807f353ced1d320f4fc459cb4cac6ff7f492e25
evicepolicy/src/com/android/cts/devicepolicy/BaseDevicePolicyTest.java
evicepolicy/src/com/android/cts/devicepolicy/DeviceOwnerTest.java
f0472a98d4e29ba7d05f9ac9bb04187f764a893b 22-Nov-2016 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Start AlwaysOnVpnTest as a foreground service"
24f76e364099a4640bda768f61a348ffdec9a3b8 26-Oct-2016 Robin Lee <rgl@google.com> Start AlwaysOnVpnTest as a foreground service

Bug: 31585407
Test: cts-tradefed run cts --module CtsDevicePolicyManagerTestCases --test 'com.android.cts.devicepolicy.MixedDeviceOwnerTest#testAlwaysOnVpn'
Change-Id: If2c6827ec14c40809ca93d52baa3a429a6ee30ca
evicepolicy/app/VpnApp/src/com/android/cts/vpnfirewall/ReflectorVpnService.java
b53eb6e2e9a17803e79702e6c302db40f1c20813 03-Nov-2016 Jorim Jaggi <jjaggi@google.com> Add CTS for KeyguardManager.dismiss()

Test: cts/hostsidetests/services/activityandwindowmanager/util/run-test
android.server.cts.KeyguardTests

Test: cts/hostsidetests/services/activityandwindowmanager/util/run-test
android.server.cts.KeyguardLockedTests

Bug: 30961403
Bug: 27422134
Change-Id: Ife1360b7021d0efab5e17ad8512bbe79ca70bd41
ervices/activityandwindowmanager/activitymanager/app/AndroidManifest.xml
ervices/activityandwindowmanager/activitymanager/app/src/android/server/cts/BroadcastReceiverActivity.java
ervices/activityandwindowmanager/activitymanager/app/src/android/server/cts/DismissKeyguardMethodActivity.java
ervices/activityandwindowmanager/activitymanager/app/src/android/server/cts/KeyguardDismissLoggerCallback.java
ervices/activityandwindowmanager/activitymanager/app/src/android/server/cts/TurnScreenOnDismissKeyguardActivity.java
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/KeyguardLockedTests.java
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/KeyguardTestBase.java
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/KeyguardTests.java
ervices/activityandwindowmanager/util/src/android/server/cts/ActivityManagerTestBase.java
6bd809f4342cbbc2172f84da76796c39cebb1bab 19-Nov-2016 jansene <jansene@google.com> Add retry logic for adoptable storage tests am: 729c4723c9 am: f7b6140144 am: 09a9605504 am: 664ccf995c am: 262aca9fbc am: a279a02da4
am: 60849f0c7a

Change-Id: I88277f91bceb8075c4025e18bf7a7e619392455b
a81092e997ba6985da9491b81234e1bd9bb4ec80 19-Nov-2016 Grigory Dzhavadyan <grigoryj@google.com> Fix build for nyc-dr1-dev
am: 4643ab6f73

Change-Id: I19d1bdfeff2f4d74c7aa513e9b6fff4283ac768b
d9a6f2fc69145620189a86803399fe8503b3e67c 19-Nov-2016 Grigory Dzhavadyan <grigoryj@google.com> Merge "Fix build for nyc-dr1-dev" into nyc-dr1-dev
4643ab6f73696725a773d77872ff9792ca22f9d1 19-Nov-2016 Grigory Dzhavadyan <grigoryj@google.com> Fix build for nyc-dr1-dev

Change-Id: I9b450b3a37d0b98696387351975cae4fa971bbb3
ervices/activitymanager/src/android/server/cts/ActivityManagerDockedStackTests.java
c67f170221aa7b6054e8ffaf7ea84906c8d46a26 19-Nov-2016 Grigory Dzhavadyan <grigoryj@google.com> Merge commit 'd7eacf2bdb7aedf9afee036d02c1a49330ca22fc' into manual_merge_d7eacf2

Test: build
Change-Id: I9ebb318f8b0af2f00448e343a3fee31114f5e5d4
60849f0c7ae09fa8fd9c84e6b2f02f8d693e7bc3 19-Nov-2016 jansene <jansene@google.com> Add retry logic for adoptable storage tests am: 729c4723c9 am: f7b6140144 am: 09a9605504 am: 664ccf995c am: 262aca9fbc
am: a279a02da4

Change-Id: I43b355fc9b9c876da3a612df45c315358fcb09b0
d7eacf2bdb7aedf9afee036d02c1a49330ca22fc 19-Nov-2016 Grigory Dzhavadyan <grigoryj@google.com> Merge commit '3f6aaea140da13e02f481883bc64224dbf42c611' into manual_merge_3f6aaea am: 82fb413cbf am: 52f3d1b9c1
am: f54db606cd

Change-Id: I7c99862fc70ea8ad3321b12cc07fa38c5955c938
664ccf995c66174660203a5ef9ed90bf9f981998 19-Nov-2016 jansene <jansene@google.com> Add retry logic for adoptable storage tests am: 729c4723c9 am: f7b6140144
am: 09a9605504

Change-Id: I863aff4c0ba93c72470e6a8d2aaeb6490101e760
82fb413cbf67ba919ec5956577963e3fad7c0498 18-Nov-2016 Grigory Dzhavadyan <grigoryj@google.com> Merge commit '3f6aaea140da13e02f481883bc64224dbf42c611' into manual_merge_3f6aaea

Change-Id: I49de9b430a261d691d7e1d159844ca61cdff411d
17930a2e275a630ec84c7f2c1c2d556286952aed 18-Nov-2016 Yahan Zhou <yahan@google.com> Fix wrong variable name in permission tests

BUG: 31170273
BUG: 33004578
Change-Id: I12ec0bf421487e2ec0591b6b885001135d7018ee
ppsecurity/test-apps/UsePermissionApp23/src/com/android/cts/usepermission/BasePermissionsTest.java
09a9605504688c1ea60382d4f713a30ac9bb4328 18-Nov-2016 jansene <jansene@google.com> Add retry logic for adoptable storage tests am: 729c4723c9
am: f7b6140144

Change-Id: I24614c70750a6725d886686c77b9d118c38bb410
3f6aaea140da13e02f481883bc64224dbf42c611 18-Nov-2016 Grigory Dzhavadyan <grigoryj@google.com> resolve merge conflicts of b9d5d2b to nyc-dr1-dev

Change-Id: Ic9eed965939ccbc560df16f10bd2935479dd51e2
f9529cdb574e9c1f6b212ff965255624397ec3f5 18-Nov-2016 Gustav Sennton <gsennton@google.com> Merge "Add CTS tests for WebView.getCurrentWebViewPackage()."
f37beaee35a9280bb02690b45f3913da6ab24a25 04-Nov-2016 Gustav Sennton <gsennton@google.com> Add CTS tests for WebView.getCurrentWebViewPackage().

Bug: 32655772
Test: Ensure the tests pass on an Angler.

Change-Id: Icbb8c54bf27f3b0e3bd4af9b081a9174a32aa506
ebkit/app/src/com/android/cts/webkit/WebViewDeviceSideStartupTest.java
ebkit/src/com/android/cts/webkit/WebViewHostSideStartupTest.java
a62942fb469a88d305a50c6b36e03eb3111db975 18-Nov-2016 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Base test framework for COMP and tests for bindDeviceAdminServiceAsUser"
622a1b63440604cc7cb3efb1486eb78749731ec0 18-Nov-2016 Tony Mak <tonymak@google.com> Base test framework for COMP and tests for bindDeviceAdminServiceAsUser

DeviceOwnerPlusManagedProfileTest is the test class hosting DO + MP tests.
CorpOwnedManagedProfile is the COMP DPC package and build two apks
using the same source so that we can test DO + BYOD.

Test: cts-tradefed run cts --module DevicePolicyManager --test com.android.cts.devicepolicy.DeviceOwnerPlusManagedProfileTest

Bug: 31895999

Change-Id: I68e9c209c45b2dd3afac24e33e54c050828f07c3
evicepolicy/app/CorpOwnedManagedProfile/Android.mk
evicepolicy/app/CorpOwnedManagedProfile/AndroidManifest.xml
evicepolicy/app/CorpOwnedManagedProfile/res/xml/device_admin.xml
evicepolicy/app/CorpOwnedManagedProfile/src/com/android/cts/comp/AdminReceiver.java
evicepolicy/app/CorpOwnedManagedProfile/src/com/android/cts/comp/BaseDeviceOwnerCompTest.java
evicepolicy/app/CorpOwnedManagedProfile/src/com/android/cts/comp/BaseManagedProfileCompTest.java
evicepolicy/app/CorpOwnedManagedProfile/src/com/android/cts/comp/CrossUserService.java
evicepolicy/app/CorpOwnedManagedProfile/src/com/android/cts/comp/DeviceOwnerBindDeviceAdminServiceTest.java
evicepolicy/app/CorpOwnedManagedProfile/src/com/android/cts/comp/ExportedCrossUserService.java
evicepolicy/app/CorpOwnedManagedProfile/src/com/android/cts/comp/ICrossUserService.aidl
evicepolicy/app/CorpOwnedManagedProfile/src/com/android/cts/comp/ManagedProfileBindDeviceAdminServiceTest.java
evicepolicy/app/CorpOwnedManagedProfile/src/com/android/cts/comp/bindservice/BindDeviceAdminServiceByodPlusDeviceOwnerTestSuite.java
evicepolicy/app/CorpOwnedManagedProfile/src/com/android/cts/comp/bindservice/BindDeviceAdminServiceCorpOwnedManagedProfileTestSuite.java
evicepolicy/src/com/android/cts/devicepolicy/DeviceOwnerPlusManagedProfileTest.java
f77d9ed2631b87931c5d8da3cf1f82f34e74ab6e 18-Nov-2016 Tina Zhou <tinazh@google.com> Merge "Fix UserRestrictionsTest.testUserRestrictions_secondaryProfileOwnerOnly" into nougat-cts-dev
2ff42451c29ce7e170089211e134463dda33a098 09-Nov-2016 Makoto Onuki <omakoto@google.com> Fix UserRestrictionsTest.testUserRestrictions_secondaryProfileOwnerOnly

In CTS 7.0 and later.

Bug 32738225

Change-Id: I1c8183fd85c4689655060eab1fe1cad6f5b00a46
evicepolicy/src/com/android/cts/devicepolicy/UserRestrictionsTest.java
373d40a49116411c10d37d36d45ed1f1a7c94290 18-Nov-2016 Michael Kwan <mkwan@google.com> Fix failure due to accessibility node not updated after scrolling. am: 734ac0fe52 am: 72b8b3535d am: 3806adb1c0
am: 45302ffea6

Change-Id: Ib343f8b04af802b1a2b9465013a33af9deb58fc5
f7b61401448f3cae5ba8c525d32e9e2335936a27 17-Nov-2016 jansene <jansene@google.com> Add retry logic for adoptable storage tests
am: 729c4723c9

Change-Id: Ie2c52f586701ac0f2b58ba3363a9a62e2674af54
b9d5d2b84caaad0c46d66de3814d7eac5e3596bf 17-Nov-2016 Grigory Dzhavadyan <grigoryj@google.com> Fix activity & window manager tests on emulator
am: 91996d7408

Change-Id: Iea115603aeacf4440c5a94e85256233e9ed266f5
5fa2972939fbeb5b3691db2762a7c7eb1ecce74c 17-Nov-2016 Tina Zhou <tinazh@google.com> Merge "Add retry logic for adoptable storage tests" into nougat-cts-dev
45302ffea6a3fe6563d047c034ec25c92cf3d69e 17-Nov-2016 Michael Kwan <mkwan@google.com> Fix failure due to accessibility node not updated after scrolling. am: 734ac0fe52 am: 72b8b3535d
am: 3806adb1c0

Change-Id: I881c976a9fd0b4ee4765b9f684ccdebe466b1bdd
2f2ef9bb096ea52b13812be006b96980bd947604 17-Nov-2016 Tina Zhou <tinazh@google.com> Merge "Fix activity & window manager tests on emulator" into nougat-cts-dev
72b8b3535dd6413924d4b1e8a285e4cadde4f507 17-Nov-2016 Michael Kwan <mkwan@google.com> Fix failure due to accessibility node not updated after scrolling.
am: 734ac0fe52

Change-Id: I17542a972aba3f64bafd0c9ac22c77fb40f931f0
c5663d1cc143ea2b4424a214c02519ef20333d3a 17-Nov-2016 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Fix failure due to accessibility node not updated after scrolling." into nyc-mr1-dev
e7750d0fa2d3441f2077b1841f7fe8feef635b92 17-Nov-2016 Makoto Onuki <omakoto@google.com> Fix DO/PO Wifi CTS am: 11a3fe766d
am: 41c8364a42

Change-Id: I6b4c9cac18506dd9bf0fba96e5dbcb4aa98f6572
41c8364a42c37c71c70be45f783cca47b8f475c8 17-Nov-2016 Makoto Onuki <omakoto@google.com> Fix DO/PO Wifi CTS
am: 11a3fe766d

Change-Id: I28272288218a1b6fb0738ebc732fa68254e5c980
bd900f42d8d3d7cccf52bc3bcc0bd742462c86d7 17-Nov-2016 Jeff Sharkey <jsharkey@android.com> Devices may not support Direct Boot emulation. am: a596c33172 am: 977fa9c715 am: 9d7d8005f6 am: 32c003a327 am: e48826a99e
am: ee3e88942c

Change-Id: I9d602c496d14d12caad57227919afefc2533ba50
84767d5fd2261b2171fd7bf23cee3cc77d6f4dc1 17-Nov-2016 Treehugger Robot <treehugger-gerrit@google.com> Merge "Fix DO/PO Wifi CTS" into nougat-cts-dev
32c003a3274fedac49b8959b60f4876f30e4d08f 17-Nov-2016 Jeff Sharkey <jsharkey@android.com> Devices may not support Direct Boot emulation. am: a596c33172 am: 977fa9c715
am: 9d7d8005f6

Change-Id: Id8ced8114a1d5106f2d0148bde3f9c6966091a98
9d7d8005f60f9c027502d26512bf83b3f99a82ac 17-Nov-2016 Jeff Sharkey <jsharkey@android.com> Devices may not support Direct Boot emulation. am: a596c33172
am: 977fa9c715

Change-Id: I8342712f0971fa764f0cbb9fcbefab8481216227
977fa9c715eef4b11a118abf3352af1e8f71ce25 17-Nov-2016 Jeff Sharkey <jsharkey@android.com> Devices may not support Direct Boot emulation.
am: a596c33172

Change-Id: Ie35587e7af81779258ab141efae4a5c9dcca2b11
17a070dfc822e00d392c7d238af711396814f493 17-Nov-2016 Tina Zhou <tinazh@google.com> Merge "Devices may not support Direct Boot emulation." into nougat-cts-dev
729c4723c934197bc41c88b7635f4a4e6fe8e284 17-Nov-2016 jansene <jansene@google.com> Add retry logic for adoptable storage tests

- After a call is made to "sm forget all" there is a short window where
the adoptable disks are not available. If we check for disk
availability within this window the test would fail. We add retry
logic to reduce these failures.

Bug: 32305664
Test: cts-tradefed run cts -m CtsAppSecurityHostTestCases -t
android.appsecurity.cts.AdoptableHostTest
Change-Id: I0eb4d0914055df28e8fe998c2154caaf61915de1
ppsecurity/src/android/appsecurity/cts/AdoptableHostTest.java
c540c53b6e4ee8a45944166690217527b90293de 17-Nov-2016 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Allow DeviceAndProfileOwner app to toggle zen mode."
4a2287c16f604d93f7b5bac1fed51528111801ae 09-Nov-2016 Nicolas Prevot <nprevot@google.com> Allow DeviceAndProfileOwner app to toggle zen mode.

If for some reason, the device was set in zen mode, this app
should be able to unset it.

BUG:32758900
Test: cts-tradefed run cts --module CtsDevicePolicyManagerTestCases --test com.android.cts.devicepolicy.MixedProfileOwnerTest#testAudioRestriction
Change-Id: I94af838a706d99c208868ebdb8217dcbaae53478
evicepolicy/src/com/android/cts/devicepolicy/DeviceAndProfileOwnerTest.java
734ac0fe5252d6101d01783fde98dda354c1a7f3 17-Nov-2016 Michael Kwan <mkwan@google.com> Fix failure due to accessibility node not updated after scrolling.

Bug: 32919327
Change-Id: Id368c6b379cd0a286007efd6e57a965103346e0f
ppsecurity/test-apps/UsePermissionApp23/src/com/android/cts/usepermission/BasePermissionsTest.java
11a3fe766d7e32f24517010c34e3e1d137a4d44d 27-Sep-2016 Makoto Onuki <omakoto@google.com> Fix DO/PO Wifi CTS

- Flip the feature check
- PO can't access the MAC address. Removed the test.

Bug 31767129

Change-Id: I9ab72e491df22849f8755899217d207e326f011f
evicepolicy/src/com/android/cts/devicepolicy/DeviceOwnerTest.java
evicepolicy/src/com/android/cts/devicepolicy/ProfileOwnerTest.java
a8f4f07e6931f0961853a6ea3a3cbacdcc4fecc0 16-Nov-2016 Julien Desprez <jdesprez@google.com> Merge "Build CTS out of TF source"
c3c7ece14bb7ff1d0e8bc0094563f13ee52cc9f1 16-Nov-2016 Raj Mamadgi <rmamadgi@sta.samsung.com> Fix for testFreeformWindowManagementSupport

This change was missing from the previous fix that was
submitted to fix the test testFreeformWindowManagementSupport.
The patch got merged and discussion is in b below.

b/31715134

Change-Id: I61f82d22fe916bd2f979aa4167dc29458b41f1b8
Signed-off-by: Raj Mamadgi <rmamadgi@sta.samsung.com>
ervices/activitymanager/app/AndroidManifest.xml
c64c45d1813355d2ac371a97ab68f2a025d14b11 15-Nov-2016 Keyvan Amiri <keyvana@google.com> Merge "Fixed freezing CTS host tests and enabled them for TV"
91996d7408123081f30c839bf0515b73205eb1c0 31-Oct-2016 Grigory Dzhavadyan <grigoryj@google.com> Fix activity & window manager tests on emulator

bug: 31647943

Most of those are timing issues. The tests rely on executing
activity manager commands in a certain sequence, but sending
a command before the previous one finishes seems to affect the
outcome. For example: attempting to launch TestActivity from
LaunchToSideActivity *before* the latter becomes visible will
fail.

Change-Id: I2cbee39b724524169f753624b91b5093e610aff5
ervices/activitymanager/src/android/server/cts/ActivityManagerActivityVisiblityTests.java
ervices/activitymanager/src/android/server/cts/ActivityManagerDockedStackTests.java
d4a4056d99a2a04be8615dc7eced8db1bb8a86ff 15-Nov-2016 Andrii Kulian <akulian@google.com> Merge "Add new CTS tests for external display launch APIs"
2a1c20787f9ad401fdc0f8ffb8962e65d6e3814f 15-Nov-2016 Keyvan Amiri <keyvana@google.com> Fixed freezing CTS host tests and enabled them for TV

CTS theme host tests were freezing for TV or any other device with
landscape screen orientation. Multiple instances of
GenerateImagesActivity was created on configuration change resulting in
waiting on the wrong CountDownLatch instance. Now the activity handles
all the configuration changes.
Also enabled these tests for TV which require special handling since TV
uses leanback material themes which differ from the reference images
generated on devices of similar TV densities.

Change-Id: I18c4c64331c443280cea3e315100c6b57773914a
Fixes: 32889451
Fixes: 29828197
Fixes: 29778488
Test: ./cts/hostsidetests/theme/generate_images.sh
cts-tradefed run singleCommand cts-dev --module CtsThemeHostTestCases
--test android.theme.cts.ThemeHostTest
heme/android_device.py
heme/app/AndroidManifest.xml
heme/assets/tvdpi.zip
heme/run_theme_capture_device.py
heme/src/android/theme/cts/ThemeHostTest.java
c00c3efaa053cba39ccc442d3a8a7d9a532a4c9a 14-Nov-2016 ajanth prem <ajanth.prem@sonymobile.com> Continuously #checkCanOpenCamera until camera policy has been enforced am: bd09c9a4b5 am: e19e0c7230 am: 4376599d1c am: 36f8e76ab5 am: a2f670bb99 am: 7e8a570ae2
am: fc710aeaaa

Change-Id: I7d9ec59f4439068d06122d2fe2691ad37fe21078
00c14cb86c6cea4a059338f2cba8b884001b7052 14-Nov-2016 Raj Mamadgi <rmamadgi@sta.samsung.com> Fix for testManagedContactsPolicies am: a828442313 am: 7587c0be16 am: dfe37a7b6a am: 7b6b1b2f8b am: bf96b2634d am: e5a7f9b1bc
am: 7a5cf57376

Change-Id: I3895f783c1769bdea05dea2d03bf4488e598b927
fc710aeaaaa01158a31c679ce6dac6a72c6cce22 14-Nov-2016 ajanth prem <ajanth.prem@sonymobile.com> Continuously #checkCanOpenCamera until camera policy has been enforced am: bd09c9a4b5 am: e19e0c7230 am: 4376599d1c am: 36f8e76ab5 am: a2f670bb99
am: 7e8a570ae2

Change-Id: Ib164e99832420ff8c0bbd0d17415d074117ab80f
7a5cf57376ab77e152e64a2f7f69fdf7c6e427ea 14-Nov-2016 Raj Mamadgi <rmamadgi@sta.samsung.com> Fix for testManagedContactsPolicies am: a828442313 am: 7587c0be16 am: dfe37a7b6a am: 7b6b1b2f8b am: bf96b2634d
am: e5a7f9b1bc

Change-Id: I03c0d3d79131be13d06b640469eb41fd97a60645
36f8e76ab5bcf03ad2323babdd37458c1d495b40 14-Nov-2016 ajanth prem <ajanth.prem@sonymobile.com> Continuously #checkCanOpenCamera until camera policy has been enforced am: bd09c9a4b5 am: e19e0c7230
am: 4376599d1c

Change-Id: I0d650550642b188b7a5675a4cbde22e4d2198195
7b6b1b2f8b2a69ec28ce509c6e42c23dbb9691f9 14-Nov-2016 Raj Mamadgi <rmamadgi@sta.samsung.com> Fix for testManagedContactsPolicies am: a828442313 am: 7587c0be16
am: dfe37a7b6a

Change-Id: I2657eee51bcd227903cf9789e6938968ae35fdef
4376599d1c3cee7bc8714f3907da954236f5de62 14-Nov-2016 ajanth prem <ajanth.prem@sonymobile.com> Continuously #checkCanOpenCamera until camera policy has been enforced am: bd09c9a4b5
am: e19e0c7230

Change-Id: Idc7431ee025167146df1abf53bf56468fe8c57aa
dfe37a7b6a95127f02ed2ab54b55d9a065056789 14-Nov-2016 Raj Mamadgi <rmamadgi@sta.samsung.com> Fix for testManagedContactsPolicies am: a828442313
am: 7587c0be16

Change-Id: Ic6b13b8aa43d0af3cc1c83470414dd1e9bff5063
e19e0c723042f22ac2ac9779f245cdada2a1fc2e 14-Nov-2016 ajanth prem <ajanth.prem@sonymobile.com> Continuously #checkCanOpenCamera until camera policy has been enforced
am: bd09c9a4b5

Change-Id: I52297ac6eb357f3d4ef5888fe095ffc0ad93dd6e
7587c0be1665630f04555999c009f04c6b9e5630 14-Nov-2016 Raj Mamadgi <rmamadgi@sta.samsung.com> Fix for testManagedContactsPolicies
am: a828442313

Change-Id: I5feb10902ae7a85a886b1fef1fbf81183b3c439b
a62e76d7c0d3602ca7184d5e96b73b1c89a2842c 14-Nov-2016 Treehugger Robot <treehugger-gerrit@google.com> Merge "Continuously #checkCanOpenCamera until camera policy has been enforced" into nougat-cts-dev
42e74c94fa01cf0142a980fe1b10a1ee1c8837f2 14-Nov-2016 Treehugger Robot <treehugger-gerrit@google.com> Merge "Fix for testManagedContactsPolicies" into nougat-cts-dev
e1399c7aec18d5b2fa088191ba886a26843f6970 11-Nov-2016 Andrii Kulian <akulian@google.com> Add new CTS tests for external display launch APIs

New tests are added to ActivityManagerDisplayTests for
ActivityOptions#setLaunchDisplayId() and an extension for
adb launch command. They check that activity is launched
on proper display in different cases.

Change-Id: Ia3564b4d75d6a92dd2d0d1d222e76bc3c10bc425
Test: See ActivityManagerDisplayTests for instructions.
ervices/activityandwindowmanager/activitymanager/app/AndroidManifest.xml
ervices/activityandwindowmanager/activitymanager/app/src/android/server/cts/AbstractLifecycleLogActivity.java
ervices/activityandwindowmanager/activitymanager/app/src/android/server/cts/LaunchingActivity.java
ervices/activityandwindowmanager/activitymanager/app/src/android/server/cts/VirtualDisplayActivity.java
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/ActivityManagerDisplayTests.java
ervices/activityandwindowmanager/util/src/android/server/cts/ActivityAndWindowManagersState.java
ervices/activityandwindowmanager/util/src/android/server/cts/ActivityManagerState.java
ervices/activityandwindowmanager/util/src/android/server/cts/ActivityManagerTestBase.java
ervices/activityandwindowmanager/util/src/android/server/cts/WindowManagerState.java
26d92f2d043e1efffcb6d4636daabc78a3cdbe13 11-Nov-2016 Julien Desprez <jdesprez@google.com> Build CTS out of TF source

Test: make cts dist, run unit tests
Bug: 32819381
Change-Id: I202c2a35e3745a372df8bec4903162d933ae04fb
adb/Android.mk
bioverride/Android.mk
ppsecurity/Android.mk
trace/Android.mk
ompilation/Android.mk
pptools/Android.mk
evicepolicy/Android.mk
umpsys/Android.mk
dwpsecurity/Android.mk
onkey/Android.mk
ultiuser/Android.mk
et/Android.mk
umberblocking/Android.mk
s/Android.mk
etaildemo/Android.mk
ample/Android.mk
ecurity/Android.mk
ervices/activityandwindowmanager/activitymanager/Android.mk
ervices/activityandwindowmanager/util/Android.mk
ervices/activityandwindowmanager/windowmanager/Android.mk
hortcuts/hostside/Android.mk
ustainedperf/Android.mk
ystemui/Android.mk
heme/Android.mk
rustedvoice/Android.mk
v/Android.mk
i/Android.mk
sage/Android.mk
sb/Android.mk
ebkit/Android.mk
4d0b97dadd7a17ea25c2477c9bb2880eb5a2022e 11-Nov-2016 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Dismiss the dialog in SuspendPackageTest"
939a9a27e6223489b6858497f1b08dc3ad25bb9b 11-Nov-2016 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Adding tests for entering/resizing PIP to specific aspect ratios."
838061500a278383552e8e26f2addac4c1e9215a 10-Nov-2016 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Add CTS tests for findDocumentPath() and launch picker at location."
9434b47dbf339300c75dd8d1325917620239ec57 07-Nov-2016 Garfield Tan <xutan@google.com> Add CTS tests for findDocumentPath() and launch picker at location.

Test: Tests pass.

Bug: 32581385
Change-Id: I84e13c7b5c3dd4dda0597e9c8136dd61118293f5
ppsecurity/src/android/appsecurity/cts/DocumentsTest.java
ppsecurity/test-apps/DocumentClient/src/com/android/cts/documentclient/DocumentsClientTest.java
ppsecurity/test-apps/DocumentClient/src/com/android/cts/documentclient/DocumentsClientTestCase.java
ppsecurity/test-apps/DocumentProvider/src/com/android/cts/documentprovider/MyDocumentsProvider.java
3007d850c20152e44e158bbf4ca94b1290e71ade 10-Nov-2016 Tony Mak <tonymak@google.com> Dismiss the dialog in SuspendPackageTest

Test: cts-tradefed run cts --module DevicePolicyManager --test com.android.cts.devicepolicy.MixedProfileOwnerTest#testSuspendPackage

Bug: 31648062

Change-Id: I2e08e399dd8575ca71ce0f630ab9f3897212bdad
evicepolicy/app/IntentSender/Android.mk
evicepolicy/app/IntentSender/src/com/android/cts/intent/sender/SuspendPackageTest.java
1fe1a587a040dd729fed74a086d095baf97a4134 15-Oct-2016 Chris Manton <cmanton@google.com> Include Wear device idle settings

Certain tests interacting with device idle
must set correctly both the normal and wear
device idle setting space.

Bug: 32183373

Test: Run on wear device and Nexus6P
run cts --skip-device-info -m CtsHostsideNetworkTests -t com.android.cts.net.HostsideRestrictBackgroundNetworkTests#testDozeModeMetered_enabledButWhitelistedOnNotificationAction
run cts --skip-device-info -m CtsHostsideNetworkTests -t com.android.cts.net.HostsideRestrictBackgroundNetworkTests#testDozeModeNonMetered_enabledButWhitelistedOnNotificationAction

Change-Id: I6a53d29021a7d4a257b102a4d3bd5d2cc845c16f
(cherry picked from commit 883c729b260abc680ff620f2c942887f7cbe9381)
et/app/src/com/android/cts/net/hostside/AbstractRestrictBackgroundNetworkTestCase.java
7ac5cdb0f5518c217ea17acdb74aacff8b00c86d 08-Nov-2016 Tony Mak <tonymak@google.com> Add test only to IntentReceiver package

Test: cts-tradefed run cts --module DevicePolicyManager --test com.android.cts.devicepolicy.ManagedProfileTest#testAppLinks_enabledStatus

Change-Id: I0f9badb80804436cd937095838586a6b0ade5eb4
evicepolicy/app/IntentReceiver/AndroidManifest.xml
8ab0f272c45399a23fd64b59aaa442655b671397 09-Nov-2016 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Add CTS for Keyguard with credential"
987a932048f3b0581ef1b3e56916c66fe4bd3b0a 07-Nov-2016 Winson Chung <winsonc@google.com> Adding tests for entering/resizing PIP to specific aspect ratios.

- Cleaning up the number of PIP activities, consolidating them where
possible to enter PIP, change aspect ratio, and tap to finish
- Adding call to start activity with multiple extra key/value pairs

Test: android.server.cts.ActivityManagerPinnedStackTests
Test: #testEnterPipAspectRatio
Test: #testResizePipAspectRatio
Test: #testEnterResizePipExtremeAspectRatios

Change-Id: I695735a940d88a18e07c33703167ae4535438507
Signed-off-by: Winson Chung <winsonc@google.com>
ervices/activityandwindowmanager/activitymanager/app/AndroidManifest.xml
ervices/activityandwindowmanager/activitymanager/app/src/android/server/cts/AutoEnterPipActivity.java
ervices/activityandwindowmanager/activitymanager/app/src/android/server/cts/LaunchImeWithPipActivity.java
ervices/activityandwindowmanager/activitymanager/app/src/android/server/cts/LaunchTapToFinishPipActivity.java
ervices/activityandwindowmanager/activitymanager/app/src/android/server/cts/PipActivity.java
ervices/activityandwindowmanager/activitymanager/app/src/android/server/cts/PipOnStopActivity.java
ervices/activityandwindowmanager/activitymanager/app/src/android/server/cts/TapToFinishPipActivity.java
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/ActivityManagerPinnedStackTests.java
ervices/activityandwindowmanager/util/src/android/server/cts/ActivityManagerState.java
ervices/activityandwindowmanager/util/src/android/server/cts/ActivityManagerTestBase.java
ed1024e513838b022cbdf298bb39ec2edaadef9f 08-Nov-2016 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Start WebView Startup tests from hostside so each runs in own process."
6cfcca1ca565c0fd7b1a331ac2e4430ffce73897 08-Nov-2016 Anthony Hugh <ahugh@google.com> Fix second dialog CTS issues to be more generic am: 8fc93f7c34 am: 96d540a359 am: bb3dcc11ba
am: 5e7cf25b5a

Change-Id: I18b4d2303dbfcde8fa4cc7a0faf71a5c0a7685e9
5e7cf25b5acb3a0fea61a67415d8e48381e32872 08-Nov-2016 Anthony Hugh <ahugh@google.com> Fix second dialog CTS issues to be more generic am: 8fc93f7c34 am: 96d540a359
am: bb3dcc11ba

Change-Id: I10c05cd7326d2fa287dfe6d841c1623d2eef68bc
96d540a359f5703c12e8bba012c28ff417b91aa9 08-Nov-2016 Anthony Hugh <ahugh@google.com> Fix second dialog CTS issues to be more generic
am: 8fc93f7c34

Change-Id: I8f596edff783bc193fdb81d13fa1881765b8bcd1
6ea10288272422bc0dacff385d501c4ddf76caee 08-Nov-2016 Anthony Hugh <ahugh@google.com> Merge "Fix second dialog CTS issues to be more generic" into nyc-mr1-dev
a0c06bf4366b220f2dcce0cfbeaa1c7a6404371d 28-Sep-2016 Gustav Sennton <gsennton@google.com> Start WebView Startup tests from hostside so each runs in own process.

When running a module of device-side tests in CTS all the tests will be
run in the same process. For WebView startup tests we explicitly want to
run each test in a different process so that WebView hasn't been loaded
into the current process before the test runs.

Move existing CookieManager startup test to hostside-tests.
A test for avoiding StrictMode violations on WebView startup will be
added in a follow-up when a new version of WebView has been dropped
into Android (right now that test won't pass / is flaky).

Bug: 30157678
Test: run the tests on Master (note that the StrictMode test is flaky
with WebView version 55.0.2883.18 because of crbug.com/647291).
Test: run the tests with an older version of WebView installed (e.g. 51)
to ensure the StrictMode test fails when WebView startup causes
StrictMode violations.
Test: run these tests on a Wear device to ensure they don't fail.

Change-Id: I77fe9a28c25e373acdfb296be27efdb2fe8c2de7
ebkit/Android.mk
ebkit/AndroidTest.xml
ebkit/app/Android.mk
ebkit/app/AndroidManifest.xml
ebkit/app/src/com/android/cts/webkit/WebViewDeviceSideStartupTest.java
ebkit/app/src/com/android/cts/webkit/WebViewStartupCtsActivity.java
ebkit/src/com/android/cts/webkit/WebViewHostSideStartupTest.java
9778d419ef2568af4d345f81324e6ec8bd1ea986 08-Nov-2016 Nicolas Prévot <nprevot@google.com> Merge "Check if can add user in each cts test instead of in setUp()"
6b05203c59c212cf7c7ca4c5992a462cb137eb6f 08-Nov-2016 Nicolas Prevot <nprevot@google.com> Check if can add user in each cts test instead of in setUp()

Test: cts-tradefed run cts --module CtsDevicePolicyManagerTestCases --test com.android.cts.devicepolicy.DeviceOwnerTest#testCreateAndManageUser_AddRestrictionSet
BUG:32300784
Change-Id: Ia5f7bfb4ea94f5d43887fc6b92cfc8252804cf72
evicepolicy/src/com/android/cts/devicepolicy/BaseDevicePolicyTest.java
evicepolicy/src/com/android/cts/devicepolicy/DeviceAndProfileOwnerTest.java
evicepolicy/src/com/android/cts/devicepolicy/DeviceOwnerTest.java
b8c4a491db6e4e1e87be797244c89bba437f6b4a 08-Nov-2016 Chris Manton <cmanton@google.com> resolve merge conflicts of 185ef28 to master

Test: Run on Nexus6P
run cts --skip-device-info -m CtsHostsideNetworkTests -t com.android.cts.net.HostsideRestrictBackgroundNetworkTests#testDozeModeMetered_enabledButWhitelistedOnNotificationAction
run cts --skip-device-info -m CtsHostsideNetworkTests -t com.android.cts.net.HostsideRestrictBackgroundNetworkTests#testDozeModeNonMetered_enabledButWhitelistedOnNotificationAction

Change-Id: I63a08f5fd0111e183411324ceb53e66fab254222
185ef28b80d8bdb2dd9c99f7f45a6db99bf123de 08-Nov-2016 Chris Manton <cmanton@google.com> Include Wear device idle settings am: 883c729b26
am: 418581d2aa

Change-Id: Ie5a0640553a9825e41a0ac7defc9564b1beb79e5
883c729b260abc680ff620f2c942887f7cbe9381 15-Oct-2016 Chris Manton <cmanton@google.com> Include Wear device idle settings

Certain tests interacting with device idle
must set correctly both the normal and wear
device idle setting space.

Bug: 32183373

Test: Run on wear device and Nexus6P
run cts --skip-device-info -m CtsHostsideNetworkTests -t com.android.cts.net.HostsideRestrictBackgroundNetworkTests#testDozeModeMetered_enabledButWhitelistedOnNotificationAction
run cts --skip-device-info -m CtsHostsideNetworkTests -t com.android.cts.net.HostsideRestrictBackgroundNetworkTests#testDozeModeNonMetered_enabledButWhitelistedOnNotificationAction

Change-Id: I6a53d29021a7d4a257b102a4d3bd5d2cc845c16f
et/app/src/com/android/cts/net/hostside/AbstractRestrictBackgroundNetworkTestCase.java
c5c2791db835e533002cbe3ce97248ebffb3219e 07-Nov-2016 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Log command output in case of test failure."
1997dfffcc54eca1fadedfb6cba60ca671b5aed4 01-Nov-2016 Sudheer Shanka <sudheersai@google.com> Log command output in case of test failure.

This will help in debugging in case of any issues.

Test: manual
Change-Id: I7291d36bf64f2801ce8f7773da5555c7c94a04e4
ultiuser/src/android/host/multiuser/CreateUsersPermissionTest.java
0b321fc9cb0715c08ecad03474af520c03ff5392 07-Nov-2016 Dianne Hackborn <hackbod@google.com> Merge "Add new CTS test for new importance monitoring API."
819d6db9f2cda90faeb6a249cfcb5e907bd79223 07-Nov-2016 Nicolas Prévot <nprevot@google.com> Merge "Test that DISALLOW_REMOVE_USER prevents removing user with adb."
6eccf737dbdc08c3dd4c2daa9f153a98b8214cff 05-Nov-2016 Jeff Sharkey <jsharkey@google.com> Merge "Devices may not support Direct Boot emulation."
3797352700240e9452e431aee980936f6eaec7cf 03-Nov-2016 Dianne Hackborn <hackbod@google.com> Add new CTS test for new importance monitoring API.

Test: this is one
Change-Id: I1ddeb06746020f0664b5f32302c42f25ca1bdec4
evicepolicy/app/SimpleApp/AndroidManifest.xml
evicepolicy/app/SimpleApp/src/com/android/cts/launcherapps/simpleapp/SimpleService.java
a596c33172f1631ca987f771e7a2d77114839fc3 04-Nov-2016 Jeff Sharkey <jsharkey@android.com> Devices may not support Direct Boot emulation.

Direct Boot emulation is encouraged to help developers test their
apps, but it's not required. If a device responds with "Emulation
not supported" then we pass the test.

However, note that both testDirectBootNative() and
testDirectBootNone() absolutely must always pass, since they verify
the device behavior in whatever the factory default state is.

Test: cts-tradefed run cts-dev --module CtsAppSecurityHostTestCases --test android.appsecurity.cts.DirectBootHostTest#testDirectBootEmulated
Bug: 30686636
Change-Id: Ie18e42eda43a0f69c3e4f9e80b280014f90579ca
ppsecurity/src/android/appsecurity/cts/DirectBootHostTest.java
cb581656fd8cead0836c07b5073e3d3f408d5788 04-Nov-2016 Jeff Sharkey <jsharkey@android.com> Devices may not support Direct Boot emulation.

Direct Boot emulation is encouraged to help developers test their
apps, but it's not required. If a device responds with "Emulation
not supported" then we pass the test.

However, note that both testDirectBootNative() and
testDirectBootNone() absolutely must always pass, since they verify
the device behavior in whatever the factory default state is.

Test: cts-tradefed run cts-dev --module CtsAppSecurityHostTestCases --test android.appsecurity.cts.DirectBootHostTest#testDirectBootEmulated
Bug: 30686636
Change-Id: Ie18e42eda43a0f69c3e4f9e80b280014f90579ca
ppsecurity/src/android/appsecurity/cts/DirectBootHostTest.java
713a08d8e9949ed2f411045825d7eba2dd81b68c 04-Nov-2016 Greg Plesur <plesur@google.com> Exempt Watch from testPackageInstallUserRestrictions. am: 8d09feba3f am: 8988959b5d am: b772419f8f
am: 04ac8d6983

Change-Id: I54f04ebcfdba33fe6e6383847a0a80676037e9d2
04ac8d6983162bd7ee3600fc79a2bd9add5ec446 04-Nov-2016 Greg Plesur <plesur@google.com> Exempt Watch from testPackageInstallUserRestrictions. am: 8d09feba3f am: 8988959b5d
am: b772419f8f

Change-Id: I6f3d61ae5a4fe02f753fea5e1b2ca5e09ef4fcf9
8d09feba3ffa2e73daa26e89bce558f116415d52 03-Nov-2016 Greg Plesur <plesur@google.com> Exempt Watch from testPackageInstallUserRestrictions.

The PackageInstaller implemenation in AOSP does not allow apps
to initiate installation on Watch devices

BUG: 32020212
Change-Id: I4bcfab0b0a0be3421a9629a7cbc2f3a279ffaeeb
evicepolicy/src/com/android/cts/devicepolicy/DeviceAndProfileOwnerTest.java
3908519551b2f773181e7a0ebdfaa83bc0e48754 04-Nov-2016 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Added more app links test to catch the regrssion"
7fff9d4ad74a923d1b2a822764d4d55c2373c138 01-Nov-2016 Nicolas Prevot <nprevot@google.com> Test that DISALLOW_REMOVE_USER prevents removing user with adb.

BUG: 32300784
Test: cts-tradefed run cts --module CtsDevicePolicyManagerTestCases --test
com.android.cts.devicepolicy.DeviceOwnerTest#testCannotRemoveUserIfRestrictionSet

Change-Id: I041f3ac61ed701a39262ff70220f5a84962d5a8b
evicepolicy/app/DeviceAndProfileOwner/latest/AndroidManifest.xml
evicepolicy/app/ManagedProfile/AndroidManifest.xml
evicepolicy/src/com/android/cts/devicepolicy/BaseDevicePolicyTest.java
evicepolicy/src/com/android/cts/devicepolicy/DeviceAndProfileOwnerTest.java
evicepolicy/src/com/android/cts/devicepolicy/DeviceOwnerTest.java
a95ebc4aba3dbc3015415c28d2b2802c3142706d 04-Nov-2016 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Rename usages of move task shell command in CTS"
487d6b1c81c663a8713eccfe7bf3da90c8a4b8e0 04-Nov-2016 Andrii Kulian <akulian@google.com> Merge "Fix timing issues when evaluating state in CTS"
bb1450dd961de09898e22682fb1ba6edf5dbc27d 04-Nov-2016 Andrii Kulian <akulian@google.com> Merge "Fix ActivityAndWindowManagerOverrideConfigTests"
a2c5b77d789de4ad7e558b043a1452631586fa9c 04-Nov-2016 Michael Kwan <mkwan@google.com> resolve merge conflicts of a251778 to master

Test: m cts -j32 && out/host/linux-x86/cts/android-cts/tools/cts-tradefed run singleCommand cts-dev --module CtsDragAndDropHostTestCases --test android.wm.cts.CrossAppDragAndDropTests
Change-Id: Ifcb602d6d5fe3dc58bc7c01f4d478230c7250a3e
b23d5f88a23a1394b79c0e11ddadbaeb791af78a 03-Nov-2016 Andrii Kulian <akulian@google.com> Fix ActivityAndWindowManagerOverrideConfigTests

Looks like this test was missing part of the implementation and was
always failing. Now it looks for config change on resize and check if
there is no config change on 180 degree rotation.

Test: See ActivityAndWindowManagerOverrideConfigTests.
Change-Id: I59e9679239a7af562d4f089302338dbe2fac6b4e
ervices/activityandwindowmanager/activitymanager/app/AndroidManifest.xml
ervices/activityandwindowmanager/activitymanager/app/src/android/server/cts/LogConfigurationActivity.java
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/ActivityAndWindowManagerOverrideConfigTests.java
582532065c83d2bc284919b69df28ad8b3377e8f 03-Nov-2016 Andrii Kulian <akulian@google.com> Fix timing issues when evaluating state in CTS

Sometimes host side AM and WM tests were getting wrong values
because transitions haven't finished yet. Added extra waitings
for valid state for activity launches.

Test: See android.server.cts tests.
Change-Id: I140b011d159808016124ce04dbbf2fcaf5dbcb39
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/ActivityManagerActivityVisibilityTests.java
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/ActivityManagerAmStartOptionsTests.java
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/ActivityManagerAppConfigurationTests.java
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/ActivityManagerDockedStackTests.java
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/ActivityManagerManifestLayoutTests.java
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/ActivityManagerPinnedStackTests.java
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/ActivityManagerReplaceWindowTests.java
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/ActivityManagerTransitionSelectionTests.java
ervices/activityandwindowmanager/util/src/android/server/cts/ActivityAndWindowManagersState.java
ervices/activityandwindowmanager/util/src/android/server/cts/ActivityManagerTestBase.java
a251778951e01e9598f4f4527a455c361a616dd9 03-Nov-2016 Michael Kwan <mkwan@google.com> resolve merge conflicts of a91c65c to cw-f-dev am: 36da67667f
am: 4b4b9fc921

Change-Id: Iffb660739ca6b8142a1aed26f126d46b3fe28e34
36da67667fe6eeae27bc2739b4fe14cf6f0952f5 03-Nov-2016 Michael Kwan <mkwan@google.com> resolve merge conflicts of a91c65c to cw-f-dev

Change-Id: I15cb4d051e8e2ee3b464343c2eca7b5b7dd74fad
f7346cb60f1f00373a3b73acfdfd445a532fe664 03-Nov-2016 Jorim Jaggi <jjaggi@google.com> Merge "Add CTS for KeyguardLock"
d2f745f9070a2cb5aedff59bd736456a5789f9ef 03-Nov-2016 Michael Kwan <mkwan@google.com> Merge "Disable drag and drop tests on devices without multi-window support." into nyc-mr1-dev
a91c65cd4dbd6bbb76574f4f48c1c3d983621f98 26-Jul-2016 Erik Wolsheimer <ewol@google.com> Disable drag and drop tests on devices without multi-window support.

BUG: 30120559
Change-Id: I7af87aa20cef0419a4525b72d8798361598919a8
ervices/windowmanager/src/android/wm/cts/CrossAppDragAndDropTests.java
9add87488a153d2c18bdcd1b42b09d893dedfcbd 03-Nov-2016 Tony Mak <tonymak@google.com> Added more app links test to catch the regrssion

Fix: 32547783

Test: cts-tradefed run cts --module DevicePolicyManager --test com.android.cts.devicepolicy.ManagedProfileTest#testAppLinks_enabledStatus

Change-Id: I5f8f780535092857eeeb5bcb6c76f8cad9400886
evicepolicy/app/IntentSender/src/com/android/cts/intent/sender/AppLinkTest.java
evicepolicy/src/com/android/cts/devicepolicy/BaseDevicePolicyTest.java
evicepolicy/src/com/android/cts/devicepolicy/ManagedProfileTest.java
229afe3d739e3aa68893134024a860705375870b 03-Nov-2016 Tony Mak <tonymak@google.com> Include device side stacktrace in the hostside stacktrace

Key changes:
1. BaseDevicePolicyTest.runDeviceTests* now throw AssertionError
instead of return false for fail tests.

2. Device side stack trace is put in the detail error message in the
AssertionError

3. Move the failed reason from host side to device side. If the reason
is not meaningful, simply drop it.

Test: Try to write a fail test and I can observe the device side
stacktrace is embeded in the host side stacktrace
In theory, I should run every test to make sure it doesn't break anything.
But it will takes my the whole day to run all the CTS... I will monitor
the status of CTS after merging it.

Fix: 32468481

Change-Id: I7827a0568dc5675e02f0d6a27e51f8129081ca83
evicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/userrestrictions/CheckNoOwnerRestrictionsTest.java
evicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/PrimaryUserAdminHelper.java
evicepolicy/src/com/android/cts/devicepolicy/AccountCheckHostSideTest.java
evicepolicy/src/com/android/cts/devicepolicy/BaseDeviceAdminHostSideTest.java
evicepolicy/src/com/android/cts/devicepolicy/BaseDevicePolicyTest.java
evicepolicy/src/com/android/cts/devicepolicy/CustomDeviceOwnerTest.java
evicepolicy/src/com/android/cts/devicepolicy/CustomManagedProfileTest.java
evicepolicy/src/com/android/cts/devicepolicy/DeviceAdminHostSideTestApi23.java
evicepolicy/src/com/android/cts/devicepolicy/DeviceAndProfileOwnerTest.java
evicepolicy/src/com/android/cts/devicepolicy/DeviceOwnerTest.java
evicepolicy/src/com/android/cts/devicepolicy/LauncherAppsMultiUserTest.java
evicepolicy/src/com/android/cts/devicepolicy/LauncherAppsProfileTest.java
evicepolicy/src/com/android/cts/devicepolicy/LauncherAppsSingleUserTest.java
evicepolicy/src/com/android/cts/devicepolicy/ManagedProfileTest.java
evicepolicy/src/com/android/cts/devicepolicy/MixedManagedProfileOwnerTest.java
evicepolicy/src/com/android/cts/devicepolicy/ProfileOwnerTest.java
evicepolicy/src/com/android/cts/devicepolicy/ProfileOwnerTestApi23.java
evicepolicy/src/com/android/cts/devicepolicy/UserRestrictionsTest.java
6f3cc6db547c98755717fdf2a726b3ea9b19f25d 03-Nov-2016 Ivan Podogov <ginkage@google.com> DO NOT MERGE: Skip "to side" test if not capable of multi-window or screen rotations am: 62ea0b4e26 am: 4f354355ec
am: 1be25f5fd5

Change-Id: Ifcc05a2ac559bf8e9d055f6d88da026570a96bbc
4f354355ec0dd09912750d9e3b7eb9d3ed938160 03-Nov-2016 Ivan Podogov <ginkage@google.com> DO NOT MERGE: Skip "to side" test if not capable of multi-window or screen rotations
am: 62ea0b4e26

Change-Id: Ie7916a4e25ae046ddb8b85dcacc190008ba39c92
88d751c14706e9e507ffc598db165c15eb37ee3b 03-Nov-2016 TreeHugger Robot <treehugger-gerrit@google.com> Merge "DO NOT MERGE: Skip "to side" test if not capable of multi-window or screen rotations" into nyc-mr1-dev
8f6dcd8ae5e9d9d07e01d9a7c1715d99dd5724f3 03-Nov-2016 Andrii Kulian <akulian@google.com> Rename usages of move task shell command in CTS

Test: No change in logic. Existing tests still pass.
Change-Id: Idacb7b574c341fbc4c8ae260b306925e93f34322
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/ActivityManagerReplaceWindowTests.java
ervices/activityandwindowmanager/util/src/android/server/cts/ActivityManagerTestBase.java
ervices/activityandwindowmanager/windowmanager/src/android/server/cts/CrossAppDragAndDropTests.java
f6f7d4ac7c5e5d460d53468e60630d6802617af3 03-Nov-2016 Jorim Jaggi <jjaggi@google.com> Add CTS for Keyguard with credential

Test: cts/hostsidetests/services/activityandwindowmanager/util/run-test android.server.cts.KeyguardLockedTests
Change-Id: I11bf0be09af2a705813c7bafa5978e6a69b77c71
ervices/activityandwindowmanager/activitymanager/app/src/android/server/cts/BroadcastReceiverActivity.java
ervices/activityandwindowmanager/activitymanager/app/src/android/server/cts/ShowWhenLockedActivity.java
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/KeyguardLockedTests.java
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/KeyguardTestBase.java
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/KeyguardTests.java
ervices/activityandwindowmanager/util/src/android/server/cts/ActivityManagerTestBase.java
57c5e5898c340c9b08602cb4a515034e35cfd8b3 03-Nov-2016 Jorim Jaggi <jjaggi@google.com> Add CTS for KeyguardLock

Test: cts/hostsidetests/services/activityandwindowmanager/util/run-test android.server.cts.KeyguardTests#testKeyguardLock

Change-Id: I5cce3633a9218257626a81358c05ef1c9bfaea63
ervices/activityandwindowmanager/activitymanager/app/AndroidManifest.xml
ervices/activityandwindowmanager/activitymanager/app/src/android/server/cts/KeyguardLockActivity.java
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/KeyguardTests.java
ervices/activityandwindowmanager/util/src/android/server/cts/ActivityAndWindowManagersState.java
0a40df0844c7a0c77ba361ddfd3faee43e97e7a9 29-Oct-2016 Jorim Jaggi <jjaggi@google.com> Add CTS for Keyguard behaviors

Bug: 32057734
Change-Id: I5e3a9516bb40ce46d37d5a245e45c7f7209e3861
ervices/activityandwindowmanager/activitymanager/app/AndroidManifest.xml
ervices/activityandwindowmanager/activitymanager/app/res/layout/translucent.xml
ervices/activityandwindowmanager/activitymanager/app/src/android/server/cts/BottomActivity.java
ervices/activityandwindowmanager/activitymanager/app/src/android/server/cts/DismissKeyguardActivity.java
ervices/activityandwindowmanager/activitymanager/app/src/android/server/cts/ShowWhenLockedActivity.java
ervices/activityandwindowmanager/activitymanager/app/src/android/server/cts/ShowWhenLockedDialogActivity.java
ervices/activityandwindowmanager/activitymanager/app/src/android/server/cts/ShowWhenLockedTranslucentActivity.java
ervices/activityandwindowmanager/activitymanager/app/src/android/server/cts/ShowWhenLockedWithDialogActivity.java
ervices/activityandwindowmanager/activitymanager/app/src/android/server/cts/WallpaperActivity.java
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/ActivityManagerActivityVisibilityTests.java
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/ActivityManagerAppConfigurationTests.java
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/ActivityManagerDockedStackTests.java
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/ActivityManagerManifestLayoutTests.java
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/ActivityManagerPinnedStackTests.java
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/ActivityManagerTransitionSelectionTests.java
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/KeyguardTests.java
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/KeyguardTransitionTests.java
ervices/activityandwindowmanager/util/src/android/server/cts/ActivityAndWindowManagersState.java
ervices/activityandwindowmanager/util/src/android/server/cts/ActivityManagerState.java
ervices/activityandwindowmanager/util/src/android/server/cts/ActivityManagerTestBase.java
ervices/activityandwindowmanager/util/src/android/server/cts/WindowManagerState.java
ervices/activityandwindowmanager/windowmanager/src/android/server/cts/DialogFrameTests.java
ervices/activityandwindowmanager/windowmanager/src/android/server/cts/SurfaceViewTests.java
cec703d0eb146a24f49a2aafd34d43105ea91df4 02-Nov-2016 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Adding test to ensure that the pinned stack is offset with the IME."
8fc93f7c34f506615b41ef25351dc2a56fc0d623 26-Oct-2016 Anthony Hugh <ahugh@google.com> Fix second dialog CTS issues to be more generic

CTS test was trying to do a text comparison to find a UI element
using upper case letters, but some devices may use lower case letters.
Fix is to use a case-insensitive matching instead.

BUG: 31779188
Change-Id: Ia2652af6ad0f30509145808ac538418cdb76a142
ppsecurity/test-apps/UsePermissionApp23/src/com/android/cts/usepermission/BasePermissionsTest.java
dd4f3ffd3fea740ea52835e27ec2856b17bfd6f2 01-Nov-2016 Winson Chung <winsonc@google.com> Adding test to ensure that the pinned stack is offset with the IME.

Test: android.server.cts.ActivityManagerPinnedStackTests
Test: #testPinnedStackOffsetForIME
Change-Id: Idc528d15a6162911c6adb64848de11bf3d8437be
ervices/activityandwindowmanager/activitymanager/app/AndroidManifest.xml
ervices/activityandwindowmanager/activitymanager/app/res/layout/tap_to_finish_pip_layout.xml
ervices/activityandwindowmanager/activitymanager/app/src/android/server/cts/LaunchImeWithPipActivity.java
ervices/activityandwindowmanager/activitymanager/app/src/android/server/cts/LaunchTapToFinishActivity.java
ervices/activityandwindowmanager/activitymanager/app/src/android/server/cts/LaunchTapToFinishPipActivity.java
ervices/activityandwindowmanager/activitymanager/app/src/android/server/cts/TapToFinishActivity.java
ervices/activityandwindowmanager/activitymanager/app/src/android/server/cts/TapToFinishPipActivity.java
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/ActivityManagerPinnedStackTests.java
ervices/activityandwindowmanager/util/src/android/server/cts/WindowManagerState.java
2174c6e84dc73de3233d0a1a124246a7cfcd84f0 02-Nov-2016 jansene <jansene@google.com> Fix CtsAadbHostTestCases#testSyncFiles_extStorageVariable am: 9e2cbdda32 am: 75d232806e am: 8f1da5357e am: ce784b3d93 am: 62c7ee042c am: 32b0a1a538
am: ce394bbe4d

Change-Id: I6f40c7a5b3d3e6ce37da55e0aca9f74b499a715d
ce394bbe4df6c1a3338aad5a02399086a7763a7b 02-Nov-2016 jansene <jansene@google.com> Fix CtsAadbHostTestCases#testSyncFiles_extStorageVariable am: 9e2cbdda32 am: 75d232806e am: 8f1da5357e am: ce784b3d93 am: 62c7ee042c
am: 32b0a1a538

Change-Id: Ib47eaf74753115dc0eba60b67d9c9781ab90a89a
bd09c9a4b51806640ecda86a9c741b2f94ae8254 02-Nov-2016 ajanth prem <ajanth.prem@sonymobile.com> Continuously #checkCanOpenCamera until camera policy has been enforced

Camera restriction policy is set through DevicePolicyManager first and
then this policy will be propagated to UserManagerService immediately.
However, UserManagerService does not send this policy to AppOpsService
immediately, instead, it just post such job to its main thread, so the
restriction cannot be synced down to AppOpsService synchronously, even
though #onOpChanged() will eventually get invoked once the restriction
policy arrives in AppOpsService, due to the delay, camera device could
be opened before AppOpsService receiving the camera restriction policy
from UserManagerService.

This issue does not occur on those Android OS prior to N, since system
property ("sys.secpolicy.camera.off_<userId>") was used to keep camera
restrction policy, CameraService will read it from the property before
opening camera.

Change-Id: I7f0cc412861d616fec0cb61e8b791eff9b4260a8
evicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/CameraPolicyTest.java
62c7ee042c9e786de570e5c7c34d2dedee7739e7 02-Nov-2016 jansene <jansene@google.com> Fix CtsAadbHostTestCases#testSyncFiles_extStorageVariable am: 9e2cbdda32 am: 75d232806e am: 8f1da5357e
am: ce784b3d93

Change-Id: I35467ac9319409b6b9553efffab022665e3cee20
ce784b3d93d25aa07b2142797ea2c973a88d6a64 02-Nov-2016 jansene <jansene@google.com> Fix CtsAadbHostTestCases#testSyncFiles_extStorageVariable am: 9e2cbdda32 am: 75d232806e
am: 8f1da5357e

Change-Id: Idecc7a48cd7f02772d77b344e037c48f466a29b8
8f1da5357e11b83f3fbdee2dc59c0f492045260e 02-Nov-2016 jansene <jansene@google.com> Fix CtsAadbHostTestCases#testSyncFiles_extStorageVariable am: 9e2cbdda32
am: 75d232806e

Change-Id: I246121d761c28272841f4141742de9cc320470a2
75d232806e16e18218a09af255bdef2a7671f837 02-Nov-2016 jansene <jansene@google.com> Fix CtsAadbHostTestCases#testSyncFiles_extStorageVariable
am: 9e2cbdda32

Change-Id: Ibf795fcef8f3747a2cfb8e0002ea9da2410fea86
62ea0b4e2603a612f126eb0f62db12c06e6ed53b 02-Nov-2016 Ivan Podogov <ginkage@google.com> DO NOT MERGE: Skip "to side" test if not capable of multi-window or screen rotations

This fixes a race between change I38cf350f0fac3b4f9fb54f3b153e4ccd91eca6aa
(that introduced a new test) and Iae9908bca1d6681e3a29fe7ee8608b8942a6d6d3
(taht fixed old ones), adding the same check to the new test.

Bug: 32490449
Change-Id: Ifa72bdd9e58c540356d2d7690dfd4987e0fbaef0
ervices/activitymanager/src/android/server/cts/ActivityManagerAppConfigurationTests.java
34a8fa5de3c6e820b270386a7a1f76b6a3fd395b 02-Nov-2016 Julien Desprez <jdesprez@google.com> Refresh on runtime-hint for all modules

Based on emulators run P95.
Test: make cts, run cts
Bug: 30449039

Change-Id: I2a8326629fd5e669217013a795dea9720a97e944
bioverride/AndroidTest.xml
trace/AndroidTest.xml
ompilation/AndroidTest.xml
pptools/AndroidTest.xml
dwpsecurity/AndroidTest.xml
ultiuser/AndroidTest.xml
umberblocking/AndroidTest.xml
s/AndroidTest.xml
ervices/activityandwindowmanager/windowmanager/AndroidTest.xml
hortcuts/hostside/AndroidTest.xml
ustainedperf/AndroidTest.xml
ystemui/AndroidTest.xml
rustedvoice/AndroidTest.xml
v/AndroidTest.xml
sage/AndroidTest.xml
9e2cbdda3228e47c5f33d09171628e9b21460b08 27-Oct-2016 jansene <jansene@google.com> Fix CtsAadbHostTestCases#testSyncFiles_extStorageVariable

A device has its own clock and timezone which can be off from the
host on which we run the test.

A file could get synchronized twice if the lastModified timestamp
was lower or within a certain leeway of the lastModified time on the
device.

This test will fail if the second synchronization results in a timestamp
with a different minute. An example is where the first sync happens at
11:00:59, and the next sync happens at 11:01:00

Bug: 32409804
Change-Id: Ie8d26ea536cb29ec6316cb0bf05ce82f47074a15
adb/src/android/aadb/cts/TestDeviceFuncTest.java
9c17c077bf75ad7ba2902a50b1e8f7613ad2d06e 01-Nov-2016 Charles He <qiurui@google.com> Merge "Add method to parent profile whitelist"
588c279aa62f36fa0de58435d5713ce4b195c30a 01-Nov-2016 Charles He <qiurui@google.com> Merge "Test unsupported APIs when called on a parent profile"
a59e7fdae0e22fc5c6ed9012accfbed6aa2ed02e 25-Oct-2016 Charles He <qiurui@google.com> Add method to parent profile whitelist

DevicePolicyManager.getPasswordMaximumLength(int) is added to the
whitelist of methods which are supported on the parent profile of a
managed profile

Change-Id: I4be2538cfd27864e27af6a34459aa5e28c765801
Fixes: 32063080
Test: cts-tradefed run cts --module DevicePolicyManager --test com.android.cts.devicepolicy.ManagedProfileTest#testParentProfileApiDisabled
evicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/ParentProfileTest.java
cb0e179b6d8aab18777fbdcc349937df6666b6fc 24-Oct-2016 Charles He <qiurui@google.com> Test unsupported APIs when called on a parent profile

This new test verifies that all unsupported public API methods of
DevicePolicyManager will throw a SecurityException when called on the
parent profile of a Managed Profile.

Change-Id: I0834dcf07e8094574794b1f778f5c3fdffe447f4
Fixes: 28062358
Test: cts-tradefed run cts --module DevicePolicyManager --test com.android.cts.devicepolicy.ManagedProfileTest#testParentProfileApiDisabled
Test: cts-tradefed run cts --module DevicePolicyManager --test com.android.cts.devicepolicy.ManagedProfileTest#testCurrentApiHelper
evicepolicy/AndroidTest.xml
evicepolicy/app/ManagedProfile/Android.mk
evicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/CurrentApiHelper.java
evicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/CurrentApiHelperTest.java
evicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/ParentProfileTest.java
evicepolicy/src/com/android/cts/devicepolicy/ManagedProfileTest.java
c621151de82540edf308ef9907a01320102f5059 31-Oct-2016 Winson Chung <winsonc@google.com> Merge "Updating CTS for refactoring of PIP calls to WM."
38eef33912fe4ecbb47034513d8c946e9b8fc089 31-Oct-2016 Sergey Beliakov <sbeliakov@google.com> Added skip of android.host.retaildemo.DemoModeTest#testIsDemoUser_inDemoUser if device doesn't support multiple users am: 0bafa55b38 am: 3ecc09a7d1
am: 934515ca35

Change-Id: I8157fe8994c5e95724e2d5853d1fe9e2d408ef03
3ecc09a7d174731a407ea1fbd2a1b33cdd039386 31-Oct-2016 Sergey Beliakov <sbeliakov@google.com> Added skip of android.host.retaildemo.DemoModeTest#testIsDemoUser_inDemoUser if device doesn't support multiple users
am: 0bafa55b38

Change-Id: I1a64dca716aa2c79a48dfae7699b2421f517ce5f
b73dbf96553f6e69c7eb815aaab2b1d1a9fb6287 31-Oct-2016 Sergey Beliakov <sbeliakov@google.com> Merge "Added skip of android.host.retaildemo.DemoModeTest#testIsDemoUser_inDemoUser if device doesn't support multiple users" into nyc-mr1-dev
a35a5db2a35607b9203397f1ce19b6fcb3bf9e6f 31-Oct-2016 Nicolas Prévot <nprevot@google.com> Merge "Update DISALLOW_REMOVE_USER test when set by DO."
4a95fec01f9323e09dc5c9cec73cc92f480247d7 31-Oct-2016 Makoto Onuki <omakoto@google.com> Skip shortcut backup CTS when device has no FEATURE_BACKUP am: 05f2f853e2 am: 09f5792ccf am: 9a70a39511
am: 0047a03338

Change-Id: I0ee2580d13fb4419bdb542073a2ecaf5781c7b46
0047a033383df8d3466aa22d6ca6731f2067cbb4 31-Oct-2016 Makoto Onuki <omakoto@google.com> Skip shortcut backup CTS when device has no FEATURE_BACKUP am: 05f2f853e2 am: 09f5792ccf
am: 9a70a39511

Change-Id: I456a56cf044ec2fcd9a9afab154e82a01aaace70
09f5792ccf0f16ace20bf25db04357e34f846ec5 31-Oct-2016 Makoto Onuki <omakoto@google.com> Skip shortcut backup CTS when device has no FEATURE_BACKUP
am: 05f2f853e2

Change-Id: I5699fa30b88169b6773893d3ca215292c311af70
71575b8c0943d48732335568e19f6541958e98c1 31-Oct-2016 Makoto Onuki <omakoto@google.com> Merge "Skip shortcut backup CTS when device has no FEATURE_BACKUP" into nyc-mr1-dev
f3cf192ff167e3e9d946779b33466d0244a047ea 31-Oct-2016 Nicolas Prevot <nprevot@google.com> Update DISALLOW_REMOVE_USER test when set by DO.

When the DO sets DISALLOW_REMOVE_USER, it should still
be allowed to remove a user.

BUG:32300784
Test: cts-tradefed run cts --module CtsDevicePolicyManagerTestCases --test com.android.cts.devicepolicy.DeviceOwnerTest#testCreateAndManageUser_RemoveRestrictionSet
Change-Id: Ife62672465f16979520fad2554984508040f1bfa
evicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/CreateAndManageUserTest.java
58669d6becc9259b5d58ed9155596965f0851e37 28-Oct-2016 Winson Chung <winsonc@google.com> Updating CTS for refactoring of PIP calls to WM.

Test: android.server.cts.ActivityManagerPinnedStackTests

Change-Id: I30b0c1ade7f99674abad80eb7aa3739034a66ee1
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/ActivityManagerPinnedStackTests.java
ervices/activityandwindowmanager/util/src/android/server/cts/ActivityManagerState.java
ervices/activityandwindowmanager/util/src/android/server/cts/WindowManagerState.java
c289be86a22ff8caa3ddf9c05538103ba1120ed8 25-Oct-2016 Andrii Kulian <akulian@google.com> Test configurations applied to connected displays

This adds CTS tests for changes added in ag/1551198 - every display
attached has an override configuration with corresponding settings.
It creates new virtual display and checks if it has a proper config.

Test: mmma -j32 cts/hostsidetests/services
Test: cts/hostsidetests/services/activityandwindowmanager/util/run-test android.server.cts.ActivityManagerDisplayTests
Change-Id: I6a4e650269ea77a62a304c2b37b7d465601f0812
ervices/activityandwindowmanager/activitymanager/app/AndroidManifest.xml
ervices/activityandwindowmanager/activitymanager/app/res/layout/virtual_display_layout.xml
ervices/activityandwindowmanager/activitymanager/app/src/android/server/cts/VirtualDisplayActivity.java
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/ActivityManagerDisplayTests.java
a08f8fe48f2053a09607d4d59fa648f305e3f009 26-Oct-2016 Winson Chung <winsonc@google.com> Adding CTS test to ensure pinned stack is in bounds in all orientations.

Test: android.server.cts.ActivityManagerPinnedStackTests
Test: #testPinnedStackInBoundsAfterRotation
Change-Id: I7550f205ec840b19c744b8f6fd9ecca0150633e4
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/ActivityManagerPinnedStackTests.java
022b6e794c066a33544d4707308acf3970d642a7 25-Oct-2016 Winson Chung <winsonc@google.com> Fixing CTS tests for pinned stack.

- Ensure the bounds checks are run in both orientations
- Fix non-tappable test due to change in SysUI behavior (tapping now
expands the pinned stack, but still does not pass through to the
activity)

Test: android.server.cts.ActivityManagerPinnedStackTests

Change-Id: Ib1d411f50f6468c2e173658a80ff416e7f446880
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/ActivityManagerPinnedStackTests.java
ervices/activityandwindowmanager/util/src/android/server/cts/ActivityManagerTestBase.java
a37d5066e383cf2b208e11339c4007043b4efa20 26-Oct-2016 Michael Kwan <mkwan@google.com> Fixed themes test for watches with different DPI settings. am: 670c270a76 am: bd9f88587a am: 4ef7753e35
am: 6f8825a3bc

Change-Id: I0ff15ae30254913fe1804075bd353efa71d450a5
6f8825a3bc702beacfa081ef1b2f60f68c2aa58c 26-Oct-2016 Michael Kwan <mkwan@google.com> Fixed themes test for watches with different DPI settings. am: 670c270a76 am: bd9f88587a
am: 4ef7753e35

Change-Id: I5eac3904771b4fa262a8d9b255e453777b03c0e3
bd9f88587a24965b679be5c21dc1e9415e46850a 26-Oct-2016 Michael Kwan <mkwan@google.com> Fixed themes test for watches with different DPI settings.
am: 670c270a76

Change-Id: Ica44c9f7de57c58978a5166e02cca5b3204bdec5
670c270a760f5cd5f527ebc942d93ee3ff78574a 25-Oct-2016 Michael Kwan <mkwan@google.com> Fixed themes test for watches with different DPI settings.

Resolved issue caused by missing resources for DPI that applies
to watch devices only. As the test is skipped on watch type
devices, the fix makes the test ignores the missing resources
issue if the test is run on a watch type device.

Bug: 30124611
Change-Id: I0d0619d4b9390f6b664f2c73023d0f736bc1cdeb
heme/src/android/theme/cts/ThemeHostTest.java
d6de0c86c063b780566639cd5218ea8a4db532a8 25-Oct-2016 Jorim Jaggi <jjaggi@google.com> Add CTS for lingering animation background surface

Bug: 32375010
Change-Id: I0c2981ff94f618cc9f97a169c2c5d1fc1459aa3a
ervices/activityandwindowmanager/activitymanager/app/AndroidManifest.xml
ervices/activityandwindowmanager/activitymanager/app/res/anim/animation_with_background.xml
ervices/activityandwindowmanager/activitymanager/app/src/android/server/cts/AnimationTestActivity.java
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/AnimationBackgroundTests.java
ervices/activityandwindowmanager/util/src/android/server/cts/WindowManagerState.java
0bafa55b38c522244e7c10900cea300f0cd07d52 24-Oct-2016 Sergey Beliakov <sbeliakov@google.com> Added skip of android.host.retaildemo.DemoModeTest#testIsDemoUser_inDemoUser if device doesn't support multiple users

Skipping the test if getDevice().isMultiUserSupported() reports no
multi user support.

Bug: 31944896
Change-Id: I8a3d1a2a50d1141d64517db3b13d3e922b4277fc
Merged-In: Ia64671e3a5e117d488b9f1890a22212267bc6a3d
etaildemo/src/android/host/retaildemo/DemoModeTest.java
ed85533fa030ca397a36a0b8bac3189eae9d23c9 24-Oct-2016 Charles He <qiurui@google.com> Remove redundant code from managed profile owner test

MixedManagedProfileOwnerTest does not need to override
testDelegatedCertInstaller, since tearDown() and setUp() methods already
serve the purpose of resetting the test environment.

Change-Id: I937ac8fdeb38e4383510d8e1f2d5fa65cf5be31c
Fixes: 31924544
Test: cts-tradefed run cts --module DevicePolicyManager --test com.android.cts.devicepolicy.MixedManagedProfileOwnerTest#testDelegatedCertInstaller
evicepolicy/src/com/android/cts/devicepolicy/MixedManagedProfileOwnerTest.java
1c20fab6a297519059363ae9597e9c999a719c6c 21-Oct-2016 Andrii Kulian <akulian@google.com> Fix rotation while docked CTS am: a5f9766d77 am: 4e6e04d42b
am: b2b6a8ecb7

Change-Id: Ic57630a66006e52ecaa883adfba83e0f885989d5
b2b6a8ecb70abcbf6a18bc7e84952c2a1c4022d3 21-Oct-2016 Andrii Kulian <akulian@google.com> Fix rotation while docked CTS am: a5f9766d77
am: 4e6e04d42b

Change-Id: I4d0b0c3b7d66d1a9c43122e53a111f75ac494d69
eed634be1a3e555dffa743ba8ba83aa0efbf2a80 21-Oct-2016 Winson Chung <winsonc@google.com> Merge "Adding CTS test to ensure non-negative insets for offscreen pinned stack"
b75221101227d2ed75b0153e8813f85396f4448f 21-Oct-2016 Winson Chung <winsonc@google.com> Merge "Adding test to ensure that there are valid pinned stack bounds."
4e6e04d42b089e37b6480d94492a3f234dc6af7f 20-Oct-2016 Andrii Kulian <akulian@google.com> Fix rotation while docked CTS
am: a5f9766d77

Change-Id: I76121010752a3d0622e080eed07285232d76a369
8660bb426095ea641f4c9368ffcc0e484dd4144b 20-Oct-2016 Winson <winsonc@google.com> Adding CTS test to ensure non-negative insets for offscreen pinned stack

Test: android.server.cts.ActivityManagerPinnedStackTests
Test: #testPinnedStackOutOfBoundsInsetsNonNegative
Change-Id: Ic56b70ef64c40d089efed02b20460f225d002b99
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/ActivityManagerPinnedStackTests.java
ervices/activityandwindowmanager/util/src/android/server/cts/WindowManagerState.java
a5f9766d77230103e021e44de857d2a6a9502c77 20-Oct-2016 Andrii Kulian <akulian@google.com> Fix rotation while docked CTS

Rotation while docked test was failing on fugu because recents
on TV doesn't support rotation and was dismissing, causing
docked stack to minimize.

Bug: 32133693
Change-Id: I0aa7943d9958aa3a6644c1ef796403be11c66258
ervices/activitymanager/src/android/server/cts/ActivityManagerAppConfigurationTests.java
3c6f3f3fece5148161f4d0b5596f42ac1dd4f09e 19-Oct-2016 Michael Kwan <mkwan@google.com> Fix deny with prejudice button click for watch. am: 7add708cc4 am: 693d6d3232
am: a0ea6072f0

Change-Id: I7203a2a58fae620633b911a236c7400e1a4551a2
a0ea6072f065dd37655df0054773b4f559878c5c 19-Oct-2016 Michael Kwan <mkwan@google.com> Fix deny with prejudice button click for watch. am: 7add708cc4
am: 693d6d3232

Change-Id: Ibe8a80314923919f87387b1c506724d08b48a34b
34e5fea78d518ce4ba3a5a2070afa5f2e7fb2aa9 19-Oct-2016 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Correct visibility timeout issue in SurfaceView tests."
693d6d323285f4b6a6a07d32be5ec6a34551aa7a 19-Oct-2016 Michael Kwan <mkwan@google.com> Fix deny with prejudice button click for watch.
am: 7add708cc4

Change-Id: Iace9a776c0a3aaa5a5f8bfb16eb2f36fbe1331ba
a57d72c71fe8be831a6dedd7c909fc6d75901574 19-Oct-2016 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Fix deny with prejudice button click for watch." into nyc-mr1-dev
1d210730cc2f8b8774f87122fd8aa02f63da4a07 19-Oct-2016 Ye Ouyang <yeouyang@motorola.com> Extend wait time for testTRacingContent am: 582fabfeb7 am: 0e28dcd420 am: 5295a65f50 am: d354b7403a am: 01b063f689 am: 5f8857dcdb am: 773ecd63f5 am: 7a24e138a4 am: 029f6b9e8a
am: b296e3f513

Change-Id: If308ef2123f49c7c3b0ed0081dcdc09af089c6eb
b296e3f513c53eca859d9cbd219a4d9a312427cb 19-Oct-2016 Ye Ouyang <yeouyang@motorola.com> Extend wait time for testTRacingContent am: 582fabfeb7 am: 0e28dcd420 am: 5295a65f50 am: d354b7403a am: 01b063f689 am: 5f8857dcdb am: 773ecd63f5 am: 7a24e138a4
am: 029f6b9e8a

Change-Id: I44d48bcf29a4823f7da7a1a0f059489bd761ab00
2fd5cbe971547c35b188494406f85c461931e8bd 19-Oct-2016 Todd Kennedy <toddke@google.com> Add device ID to adb command am: e21f3fda35 am: 1a38bd5338 am: 23515547d7 am: 8cd85aef1e
am: 7d11587fe0

Change-Id: I5b480c70e9a759a006ec352c76ad58a782cdafe8
6598c4bb8c272814d2e8e6cded40681f778ec466 19-Oct-2016 Raj Mamadgi <rmamadgi@sta.samsung.com> Fix for testFreeformWindowManagementSupport am: 0fe8e72c2f am: e1cfbf8c19 am: 983115c3dc am: 059958fbfa am: 28ee6a986e
am: df3627fb3f

Change-Id: I6a64036a92148560556f69cac6f40ce576b3648b
029f6b9e8a30681123901e0d7d235b469e363c8b 19-Oct-2016 Ye Ouyang <yeouyang@motorola.com> Extend wait time for testTRacingContent am: 582fabfeb7 am: 0e28dcd420 am: 5295a65f50 am: d354b7403a am: 01b063f689 am: 5f8857dcdb am: 773ecd63f5
am: 7a24e138a4

Change-Id: Id03ce026511c0bb80964eee86423e8fda44f4803
e5522aa93fadc2b69b9f478d757bd0e7765ebb6b 19-Oct-2016 Ray Kim <raysbkim@gmail.com> Let package of encryption be set by resolving information am: 78bba113cb am: 62bb93ca6c am: a311e5ae51 am: aa6e309c0f am: 3e8ba20911
am: 61cdc716c5

Change-Id: I0188b87145551c1c06fa316b31900d15f057e4a9
7d11587fe06fffe356063fe72e2c3e490aadc623 19-Oct-2016 Todd Kennedy <toddke@google.com> Add device ID to adb command am: e21f3fda35 am: 1a38bd5338 am: 23515547d7
am: 8cd85aef1e

Change-Id: I770dddb1670faea397bca5e1c0f3129d4b17f0bd
df3627fb3fa6a572c5c05c8eb8372c2156f5ad88 19-Oct-2016 Raj Mamadgi <rmamadgi@sta.samsung.com> Fix for testFreeformWindowManagementSupport am: 0fe8e72c2f am: e1cfbf8c19 am: 983115c3dc am: 059958fbfa
am: 28ee6a986e

Change-Id: I51700675e1c8768a34389517238f5f32705e0ca4
61cdc716c5cfd73c49ba9198f12f0b66c76ad7ca 19-Oct-2016 Ray Kim <raysbkim@gmail.com> Let package of encryption be set by resolving information am: 78bba113cb am: 62bb93ca6c am: a311e5ae51 am: aa6e309c0f
am: 3e8ba20911

Change-Id: Iade86eea81a8e82bafc83d6c9dd8a1474d909992
7a24e138a47ec2fba327ebacaef0c7957fbcf7d4 19-Oct-2016 Ye Ouyang <yeouyang@motorola.com> Extend wait time for testTRacingContent am: 582fabfeb7 am: 0e28dcd420 am: 5295a65f50 am: d354b7403a am: 01b063f689 am: 5f8857dcdb
am: 773ecd63f5

Change-Id: I95874432197154bc29d8091c8a91e217a8f071f4
8cd85aef1e35051804e880e15afced121a1b05be 19-Oct-2016 Todd Kennedy <toddke@google.com> Add device ID to adb command am: e21f3fda35 am: 1a38bd5338
am: 23515547d7

Change-Id: Ia2215851a0c9bf82c68aa214e8f99686e2ec18b2
28ee6a986ed4b082577eb2603f234ad55713d38b 19-Oct-2016 Raj Mamadgi <rmamadgi@sta.samsung.com> Fix for testFreeformWindowManagementSupport am: 0fe8e72c2f am: e1cfbf8c19 am: 983115c3dc
am: 059958fbfa

Change-Id: Idbeb7c843d92eb357ecb33a7d703c246a7aa9a5a
3e8ba209110f1f07344da0570190a534517bcf8a 19-Oct-2016 Ray Kim <raysbkim@gmail.com> Let package of encryption be set by resolving information am: 78bba113cb am: 62bb93ca6c am: a311e5ae51
am: aa6e309c0f

Change-Id: I183d8f0b89c8ef6696c06ce6739e12cf58cd92b5
23515547d79da180f3e815577af67b1fd2b46985 19-Oct-2016 Todd Kennedy <toddke@google.com> Add device ID to adb command am: e21f3fda35
am: 1a38bd5338

Change-Id: I1b37280f2183880f56e11e9542903b0a66c595e8
290c2a7c865f0d73260a47f48a738d6458e98ad1 19-Oct-2016 Aurimas Liutikas <aurimas@google.com> Update XXXHDPI theme tests golden images. am: 442bc02984
am: 020a3d2ae4

Change-Id: I82b64d30b50e51e4368a1259b98f02ffaf9520ca
059958fbfa429e97625216c845db88e7760156b2 19-Oct-2016 Raj Mamadgi <rmamadgi@sta.samsung.com> Fix for testFreeformWindowManagementSupport am: 0fe8e72c2f am: e1cfbf8c19
am: 983115c3dc

Change-Id: I04ddd44261e7cd230618cb90a8c3de1e342ee947
8cd0fd6ac73edf7e2a1f093dc47db113f5909321 04-Oct-2016 Robert Carr <racarr@google.com> Correct visibility timeout issue in SurfaceView tests.

SurfaceView tests were taking a long time to run because
the initial visibility check was timing out due to looking
for the wrong window name. It's a bit of an awkward situation
in the tests dealing with shortened window names v. full window names
but so far shortened are used about 10x more so it seems best
to optimize for that.

Test: cts-tradefed run singleCommand cts -d -o --module CtsWindowManagerHostTestCases --test android.server.cts.SurfaceViewTests
Change-Id: I5fd255fd992fc8e07385b837612ed2174453d4c0
ervices/activityandwindowmanager/util/src/android/server/cts/ActivityAndWindowManagersState.java
ervices/activityandwindowmanager/windowmanager/src/android/server/cts/SurfaceViewTests.java
aa6e309c0fa7c0d543e5706e42a7b1b819baade9 19-Oct-2016 Ray Kim <raysbkim@gmail.com> Let package of encryption be set by resolving information am: 78bba113cb am: 62bb93ca6c
am: a311e5ae51

Change-Id: I366e82ae259926e7f2a670b0233dea6b2a19270a
020a3d2ae4be65c720fd7103bbe066ac986249cf 19-Oct-2016 Aurimas Liutikas <aurimas@google.com> Update XXXHDPI theme tests golden images.
am: 442bc02984

Change-Id: I08a035753692f49b286f865db7f926bef44d8a3c
7add708cc446340188385de33a9fc9c9699ff9cc 13-Oct-2016 Michael Kwan <mkwan@google.com> Fix deny with prejudice button click for watch.

Bug: 31779188
Change-Id: Ieccbaba9028f563d74dcb94ee16a5f8dd5fc8753
ppsecurity/test-apps/UsePermissionApp23/src/com/android/cts/usepermission/BasePermissionsTest.java
ppsecurity/test-apps/UsePermissionApp23/src/com/android/cts/usepermission/UsePermissionTest23.java
773ecd63f59b848599a7ee63def62ec880eb63d8 19-Oct-2016 Ye Ouyang <yeouyang@motorola.com> Extend wait time for testTRacingContent am: 582fabfeb7 am: 0e28dcd420 am: 5295a65f50 am: d354b7403a am: 01b063f689
am: 5f8857dcdb

Change-Id: I17d483282d0ca03b65df2669bbc4441dc0e55ab9
1a38bd533831107894cc84ed577a22f213377146 19-Oct-2016 Todd Kennedy <toddke@google.com> Add device ID to adb command
am: e21f3fda35

Change-Id: Idd65ed3e8a0dd20425f9aa80188b31b12230376c
442bc0298466eac99daeb0707fb6256971fe8342 05-Oct-2016 Aurimas Liutikas <aurimas@google.com> Update XXXHDPI theme tests golden images.

SearchView UI has changed and golden images in all the other densities
have been updated to match the change except for xxxhdpi.

Generated these images using Nexus 5X that was set up to have xxxhdpi density.

Test: I ran ThemeHostTest before updating the images and it was only failing SearchView
related tests and after updating the golden images it now passes.
Bug: 31689892

Change-Id: Ib92bfed24274bd38903771c7ca5a7ad0d6eab3e0
heme/assets/24/xxxhdpi.zip
bb6f8c5bb585c4df1f036e3855636e2bfda34245 11-Oct-2016 Pavel Grafov <pgrafov@google.com> CTS test for SecurityLog.SecurityEvent

Test is not too thorough since we cannot assume anything about those
events. A more comprehensive test will be done as a part of AfW test
harness.

The test is a bit time consuming: it reboots the device and waits for 70
seconds to get logs. (this interval is an implementation detail, but
there is no better way currently.)

Fixes:30495467
Test: cts-tradefed run cts -m CtsDevicePolicyManagerTestCases -t
com.android.cts.devicepolicy.DeviceOwnerTest#testSecurityLoggingWithSingleUser
Change-Id: I535c2f1e6deb72187bc785eb3092dc8341c84888
evicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/SecurityLoggingTest.java
evicepolicy/src/com/android/cts/devicepolicy/DeviceOwnerTest.java
742059d4e5078cd9627f48fafe9bc4098bcbb354 19-Oct-2016 Erik Wolsheimer <ewol@google.com> DO NOT MERGE Skip tests if not capable of multi-window or screen rotations am: 10c80f80b8
am: d530ae8b38

Change-Id: I32707a1df4a652dbf5c0ef3959a3a6eacffab273
d530ae8b38a3b853e5e80f06c0fbccd6b938bc09 19-Oct-2016 Erik Wolsheimer <ewol@google.com> DO NOT MERGE Skip tests if not capable of multi-window or screen rotations
am: 10c80f80b8

Change-Id: Ic138fbf1c791204f0803d16b335143fb8226a4b9
5969288ab6cf8cb90a70d458fe86d771ceac6094 19-Oct-2016 TreeHugger Robot <treehugger-gerrit@google.com> Merge "DO NOT MERGE Skip tests if not capable of multi-window or screen rotations" into nyc-mr1-dev
21d140ed524a4aefd8f863b74c18a763c8a62cef 18-Oct-2016 Winson <winsonc@google.com> Adding test to ensure that there are valid pinned stack bounds.

- Ensure that the calculation of the default pinned stack bounds and
movement bounds are in view and non-zero.

Test: android.server.cts.ActivityManagerPinnedStackTests
Test: #testPinnedStackDefaultBounds
Test: #testPinnedStackMovementBounds

Change-Id: I46818eb9c6cf52eeb53a3d42868eddcafc50efa5
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/ActivityManagerPinnedStackTests.java
ervices/activityandwindowmanager/util/src/android/server/cts/ActivityManagerState.java
ervices/activityandwindowmanager/util/src/android/server/cts/WindowManagerState.java
05f2f853e2765a05d31c84130909d4fd557cae2f 18-Oct-2016 Makoto Onuki <omakoto@google.com> Skip shortcut backup CTS when device has no FEATURE_BACKUP

Bug 31944895

Change-Id: I1839ac30ba924f8020bcc0da4127d42c3aff0649
hortcuts/hostside/src/android/content/pm/cts/shortcuthost/ShortcutManagerBackupTest.java
c4a1c329574c37a290cc9b8e3ab7f493c21ea6bb 18-Oct-2016 Ye Ouyang <yeouyang@motorola.com> Extend wait time for testTRacingContent
am: 582fabfeb7

Change-Id: I983ffc87c3e75db8965fa90766951ae9b7e47316
dea3f345b991bad057a472efc6cbf527803573d7 18-Oct-2016 TreeHugger Robot <treehugger-gerrit@google.com> Merge "isManagedProfile CTS"
3ed2c8f43aebd71e48e3b7d16ee31b142bec4bdf 18-Oct-2016 Tony Mak <tonymak@google.com> isManagedProfile CTS

Test: cts-tradefed run cts --module DevicePolicyManager --test com.android.cts.devicepolicy.ManagedProfileTest

Change-Id: I52fb19c8070934b72415aeea49da9b2d40a49a51
Fix: 31301896
evicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/BaseDeviceOwnerTest.java
evicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/BaseManagedProfileTest.java
5f8857dcdba01d2b523e6bffd638a83cfc60d1a9 18-Oct-2016 Ye Ouyang <yeouyang@motorola.com> Extend wait time for testTRacingContent am: 582fabfeb7 am: 0e28dcd420 am: 5295a65f50 am: d354b7403a
am: 01b063f689

Change-Id: I2f44f1a939e32ef7757532f398262049e5febb76
0e28dcd420ef2bd10aa9faba5bf172b4bca718e7 17-Oct-2016 Ye Ouyang <yeouyang@motorola.com> Extend wait time for testTRacingContent
am: 582fabfeb7

Change-Id: I30d795327039aa950f1e7336f972bdc4fbf260cb
a9d663f9261c5ab029bacd2f9917b43157cb31a0 17-Oct-2016 Nicolas Boichat <drinkcat@google.com> PacketReflector: Ignore IPv6 flow labels in ICMPv6 test
am: c80693fffb

Change-Id: Ic7b755d02b3d1b85fbbff7d22554128079fc5a37
1f0ad081137f59517b100a8da23819f1f2836e9e 17-Oct-2016 Nick Kralevich <nnk@google.com> resolve merge conflicts of 6e0e851 to nyc-mr1-dev-plus-aosp
am: 571603a545

Change-Id: Ifdd44cf19160613fbdc4ea38652f84d99aa49867
6281ecc64ec1a3b6674a92d51491943de02a4a9f 17-Oct-2016 Nicolas Boichat <drinkcat@google.com> PacketReflector: Ignore IPv6 flow labels in ICMPv6 test am: c80693fffb am: 8682620339 am: 9ca537d597 am: f56a54b94f am: 5514f68425 am: da83f33afc
am: e02d706f55

Change-Id: Id0edf811ee808a3ae85211cd3dc23fb14a9b4eb4
e21f3fda35bc110c0fe01eec311c55b99bb45fc9 17-Oct-2016 Todd Kennedy <toddke@google.com> Add device ID to adb command

The test lab has more than one device connected at a time. We need
to target the specific device that's currently undergoing test.

Change-Id: I8d2e39c1edb522708cae42842a0bb981e3a02531
Fixes: 32109324
Test: cts-tradefed run commandAndExit cts-dev -m CtsAppSecurityHostTestCases -t android.appsecurity.cts.AppSecurityTests#testAdbInstallFile
ppsecurity/src/android/appsecurity/cts/AppSecurityTests.java
983115c3dcdc5ff1e2f13c23d24c3c1a1d9826a5 17-Oct-2016 Raj Mamadgi <rmamadgi@sta.samsung.com> Fix for testFreeformWindowManagementSupport am: 0fe8e72c2f
am: e1cfbf8c19

Change-Id: I48d47a1760f69c22900ca15be01c5c6fd4b72ace
e1cfbf8c198590c3b5c01139c553055da00e2fe2 17-Oct-2016 Raj Mamadgi <rmamadgi@sta.samsung.com> Fix for testFreeformWindowManagementSupport
am: 0fe8e72c2f

Change-Id: Id7b696cd0d2bc481d12096b3bdf893eca82e5520
f6dda996016826529fb79e6581cbf2dfba81fb05 17-Oct-2016 Tina Zhou <tinazh@google.com> Merge "Fix for testFreeformWindowManagementSupport" into nougat-cts-dev
571603a545c515eb1bb9e36d49d04a37a19a9e2c 17-Oct-2016 Nick Kralevich <nnk@google.com> resolve merge conflicts of 6e0e851 to nyc-mr1-dev-plus-aosp

Change-Id: I3aeb9e425cf87cd0e4a5772cfc347f0c5d7d472f
a311e5ae51bf125742ecf0b55f2fce936ab081d7 17-Oct-2016 Ray Kim <raysbkim@gmail.com> Let package of encryption be set by resolving information am: 78bba113cb
am: 62bb93ca6c

Change-Id: I17d1024a683cb33c360a5dc4e4c95864e71cff79
62bb93ca6c920176210bbb317c4168f58adfe86f 17-Oct-2016 Ray Kim <raysbkim@gmail.com> Let package of encryption be set by resolving information
am: 78bba113cb

Change-Id: Idd88336dcdb9682f7b9ccd4e678e90777c47f55b
e294d0ac2643abe520e8dc7d9cf14d947235c75a 17-Oct-2016 Tina Zhou <tinazh@google.com> Merge "Let package of encryption be set by resolving information" into nougat-cts-dev
e02d706f55090da22d0dfb901317d2db16fade30 17-Oct-2016 Nicolas Boichat <drinkcat@google.com> PacketReflector: Ignore IPv6 flow labels in ICMPv6 test am: c80693fffb am: 8682620339 am: 9ca537d597 am: f56a54b94f am: 5514f68425
am: da83f33afc

Change-Id: I1363706a3bd646cb07043f5dc906ddc315667a0e
da83f33afc9f3a5145024645370098f38bc26945 17-Oct-2016 Nicolas Boichat <drinkcat@google.com> PacketReflector: Ignore IPv6 flow labels in ICMPv6 test am: c80693fffb am: 8682620339 am: 9ca537d597 am: f56a54b94f
am: 5514f68425

Change-Id: Iac196b898d4c5231dd5229514b2e9bea7186aa19
5514f684257ab169eb0081e13f4ff3033db5ae35 17-Oct-2016 Nicolas Boichat <drinkcat@google.com> PacketReflector: Ignore IPv6 flow labels in ICMPv6 test am: c80693fffb am: 8682620339 am: 9ca537d597
am: f56a54b94f

Change-Id: I66ef990f1d3e84590409a546f0b5eff307c32bba
f56a54b94f48ee4e92ecac3a431afb6de1b58aa0 17-Oct-2016 Nicolas Boichat <drinkcat@google.com> PacketReflector: Ignore IPv6 flow labels in ICMPv6 test am: c80693fffb am: 8682620339
am: 9ca537d597

Change-Id: Ib46e30a62620b942afc54d92b1da62412308095a
08a7c1c90b3890e27cf10d08a067f868369783f5 17-Oct-2016 Tina Zhou <tinazh@google.com> Merge "Add xxxhdpi assets for CTS theme host test" into nougat-cts-dev
9ca537d597c762aecc11c559da5cc256b9c10643 17-Oct-2016 Nicolas Boichat <drinkcat@google.com> PacketReflector: Ignore IPv6 flow labels in ICMPv6 test am: c80693fffb
am: 8682620339

Change-Id: Ib0bdd7ba610c8206356233620c8941695eeaf9a6
8682620339aa6636c72add6b57d25341080773f7 17-Oct-2016 Nicolas Boichat <drinkcat@google.com> PacketReflector: Ignore IPv6 flow labels in ICMPv6 test
am: c80693fffb

Change-Id: Icc98803ea5d4f52cefb43b40d2dcfbd76de1b464
5922894384e688c90ed0683d3ee688e11c65ed06 15-Oct-2016 Winson Chung <winsonc@google.com> Merge "Adding CTS Test for pinned stack input consumer."
1fd7ba18f9753fc8181193a98a1afbb2730b7914 14-Oct-2016 Srinath Sridharan <srinathsr@google.com> Increasing dhrystone failure threshold to 10%.
am: 0717ba4c81

Change-Id: I11ce47bfc0c74552bd585346b0dd5b3301868beb
07e288cf159aeba07f5fc71b1b57118c122e99f4 14-Oct-2016 Srinath Sridharan <srinathsr@google.com> Fix sustained performance CTS test failures.
am: 57f9e9f32f

Change-Id: Iede249a797da91ed3e0a05ba3c7a7801f1e8e017
d2478759b08a69e6c3c26059369ed394c557392f 14-Oct-2016 Tina Zhou <tinazh@google.com> Merge "Increasing dhrystone failure threshold to 10%." into nougat-cts-dev
8b7aaf64b5b89d8605586b8dc5a18fc5c8ac742e 14-Oct-2016 Tina Zhou <tinazh@google.com> Merge "Fix sustained performance CTS test failures." into nougat-cts-dev
844d11c5589e5ffe4934a69e154beb6cb260fc59 13-Oct-2016 Winson <winsonc@google.com> Adding CTS Test for pinned stack input consumer.

Test: android.server.cts.ActivityManagerPinnedStackTests#testNonTappablePipActivity
Change-Id: Ide3dc6e840b27077c04142f8da4dd54dd522a08c
ervices/activityandwindowmanager/activitymanager/app/AndroidManifest.xml
ervices/activityandwindowmanager/activitymanager/app/src/android/server/cts/LaunchTapToFinishActivity.java
ervices/activityandwindowmanager/activitymanager/app/src/android/server/cts/TapToFinishActivity.java
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/ActivityManagerPinnedStackTests.java
af0625222133bf96d191aa97b4465b0286d60ec2 14-Oct-2016 Makoto Onuki <omakoto@google.com> Merge "More CTS for caller-package name for GAL provider"
e9a6e1608c79f1696d4296bb85080799be85e751 14-Oct-2016 Agatha Man <agathaman@google.com> resolve merge conflicts of d5989e4 to nyc-dr1-dev am: cb78bbbe3b am: 1d565b0371 am: 1f8184aa1b
am: 0bd9b4001c

Change-Id: I503112c986e8bee8c72366c8d5fecfa3fcc48389
0bd9b4001c489251b52cffc09522915c9166d7ca 14-Oct-2016 Agatha Man <agathaman@google.com> resolve merge conflicts of d5989e4 to nyc-dr1-dev am: cb78bbbe3b am: 1d565b0371
am: 1f8184aa1b

Change-Id: I5905d5ef281baf5749d1ce4ebe7ce8fa4ac5a241
1f8184aa1bee8f7aebe80e98fc9fcd502ccf9360 14-Oct-2016 Agatha Man <agathaman@google.com> resolve merge conflicts of d5989e4 to nyc-dr1-dev am: cb78bbbe3b
am: 1d565b0371

Change-Id: I2de048611496a779cda7a6da74287c4643a68e28
1d565b0371f29dcb81c894fb8c8591c9fe765adf 14-Oct-2016 Agatha Man <agathaman@google.com> resolve merge conflicts of d5989e4 to nyc-dr1-dev
am: cb78bbbe3b

Change-Id: I27f3bf07cd6482c6dfb9863bc769d12a5966d0f7
9dd824a185fb1cc48fe884d1fdb6fb4ad24be50b 14-Oct-2016 Makoto Onuki <omakoto@google.com> More CTS for caller-package name for GAL provider

(Search via work profile case.)

Bug 32072962
Test: cts-tradefed run cts-dev --skip-device-info --skip-preconditions \
--skip-system-status-check \
com.android.compatibility.common.tradefed.targetprep.NetworkConnectivityChecker \
-a armeabi-v7a -m CtsDevicePolicyManagerTestCases \
-t 'com.android.cts.devicepolicy.ManagedProfileTest#testManagedContactsUris'

Change-Id: I73bf6b9e9d56d3a87089bed36b22d9338706b453
evicepolicy/app/ContactDirectoryProvider/src/com/android/cts/contactdirectoryprovider/DirectoryProvider.java
dcb813ff64d1d9d59dbd4a2bebe5901fc5da926a 14-Oct-2016 Tina Zhou <tinazh@google.com> Merge "Extend wait time for testTRacingContent" into marshmallow-cts-dev
cb78bbbe3bb31c4028a51b1cd6bbadd285d90ab6 14-Oct-2016 Agatha Man <agathaman@google.com> resolve merge conflicts of d5989e4 to nyc-dr1-dev

Change-Id: Ib7cc134051e721c33a0994424200ea7f982f2a84
d5989e473319d3d523b6187760424a4d1cfb9119 13-Oct-2016 Agatha Man <agathaman@google.com> CTS: Add host-side EDI
am: 4cc4075c19

Change-Id: Id313251b910108a9942286c83e3c525b8a56fa5f
dae95ffe4be5e3128e9b44a471ad7090f0282a23 13-Oct-2016 Tina Zhou <tinazh@google.com> Merge "CTS: Add host-side EDI" into nougat-cts-dev
71da05100ce43b1f2934b3245891fe15809c15f5 13-Oct-2016 Greg Plesur <plesur@google.com> Increase the timeout for dpm.removeActiveAdmin(). am: 5e5a53e949 am: 7128fd325e
am: cacde71514

Change-Id: I488dbbd02dccbb9465b7b02397f14a069eec0ec9
cacde71514781bf2393ce04731903e3f77467ed1 13-Oct-2016 Greg Plesur <plesur@google.com> Increase the timeout for dpm.removeActiveAdmin(). am: 5e5a53e949
am: 7128fd325e

Change-Id: I7b1cc30b8334b7800fa4e8160cddc58d3ac05565
7128fd325e332949648baa1aeb4946b4e1ff20c7 13-Oct-2016 Greg Plesur <plesur@google.com> Increase the timeout for dpm.removeActiveAdmin().
am: 5e5a53e949

Change-Id: Ie2ce577564e7090df1172f146149b32c0c89d31f
b266783a8a43b18c260d5fbc5b19c41c17cadc1d 13-Oct-2016 Greg Plesur <plesur@google.com> Merge "Increase the timeout for dpm.removeActiveAdmin()." into nyc-mr1-dev
a828442313ae2757b717ec4acb23a21a8e62dc4c 11-Oct-2016 Raj Mamadgi <rmamadgi@sta.samsung.com> Fix for testManagedContactsPolicies

The test is failing becuase we have a preloaded directory
provider. Fixing the CTS to handle this scenario. We are checking
if the test authority is same.

b/32077396

Change-Id: I57f3207dc66d7805c5af51b3ef794f3856263423
Signed-off-by: Raj Mamadgi <rmamadgi@sta.samsung.com>
evicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/ContactsTest.java
5e5a53e9491eccfc9282ff5273e50b21d35d25a1 07-Oct-2016 Greg Plesur <plesur@google.com> Increase the timeout for dpm.removeActiveAdmin().

Some devices apparently need more time. Our fastest devices need
~10.2 seconds, so I'm leaving room for our slowest devices.

BUG: 32019838

Change-Id: I680bcfe53f13625cf3b0e374188087b39ce499d7
evicepolicy/app/DeviceAdmin/src/com.android.cts.deviceadmin/ClearDeviceAdminWithNoProtectionTest.java
8648955a3e4046dfd8d7d1447d753efcacd9355b 13-Oct-2016 peter_li <peter_li@htc.com> [CTS]It should be more reasonable to control battery saver function from setting DB instead of plugging/unplugging charger for CtsHostsideNetworkTests test case. am: 1b1619fafe am: d12b454fe3 am: de7e2dfdb4
am: 5f063e278b

Change-Id: I3bf7f653472978babd2a639cf79cbca2500faf3b
bf819beb7c9ad8ab7b2646edb070f28a89f1398d 13-Oct-2016 peter_li <peter_li@htc.com> [CTS]It should be more reasonable to control battery saver function from setting DB instead of plugging/unplugging charger for CtsHostsideNetworkTests test case. am: 1b1619fafe am: d12b454fe3 am: 1adb8ba16a
am: adde6b5313

Change-Id: I97f5aa84b291e02e98fd6392d10c3879eceff19d
5f063e278b36ea67c3fe357ad48016fd59eea192 13-Oct-2016 peter_li <peter_li@htc.com> [CTS]It should be more reasonable to control battery saver function from setting DB instead of plugging/unplugging charger for CtsHostsideNetworkTests test case. am: 1b1619fafe am: d12b454fe3
am: de7e2dfdb4

Change-Id: Ib41d8d3c39c5eaf256541883ec9462af544ed605
adde6b5313770a42db61f2fb1b13a18915225e45 13-Oct-2016 peter_li <peter_li@htc.com> [CTS]It should be more reasonable to control battery saver function from setting DB instead of plugging/unplugging charger for CtsHostsideNetworkTests test case. am: 1b1619fafe am: d12b454fe3
am: 1adb8ba16a

Change-Id: I5955ae432dfe4fd5f751bcf79d307b556e38ac37
de7e2dfdb4bb15de08bb76e5a9b5d523a13387cf 13-Oct-2016 peter_li <peter_li@htc.com> [CTS]It should be more reasonable to control battery saver function from setting DB instead of plugging/unplugging charger for CtsHostsideNetworkTests test case. am: 1b1619fafe
am: d12b454fe3

Change-Id: I4a497994d5e6c9f8de979ac9bcf05b6be4ce846c
1adb8ba16a5f2c6b960ba8410d275aa7b76d2752 13-Oct-2016 peter_li <peter_li@htc.com> [CTS]It should be more reasonable to control battery saver function from setting DB instead of plugging/unplugging charger for CtsHostsideNetworkTests test case. am: 1b1619fafe
am: d12b454fe3

Change-Id: Id254c85d140dd854e095e47c1465b73426053fc5
d12b454fe3ebddd217b0f102b15cb73673262b84 13-Oct-2016 peter_li <peter_li@htc.com> [CTS]It should be more reasonable to control battery saver function from setting DB instead of plugging/unplugging charger for CtsHostsideNetworkTests test case.
am: 1b1619fafe

Change-Id: If9c72d61d403b37ecd398179d5d3b447d252d7dc
eafb384f68fbba99a60ef2ceb2b89814f2029c62 13-Oct-2016 Tina Zhou <tinazh@google.com> Merge "[CTS]It should be more reasonable to control battery saver function from setting DB instead of plugging/unplugging charger for “CtsHostsideNetworkTests” test case." into nougat-cts-dev
1b1619fafe4585ff01240e972806b58e9c710a3e 04-Oct-2016 peter_li <peter_li@htc.com> [CTS]It should be more reasonable to control battery saver function from setting DB instead of plugging/unplugging charger for “CtsHostsideNetworkTests” test case.

Symptom: It should be more reasonable to control battery saver function from setting DB instead of plugging/unplugging charger for “CtsHostsideNetworkTests” test case.
Root Cause: The test function “setBatterySaverMode” of “CtsHostsideNetworkTests” use command to set setting DB when trying to turn on battery saver. But while trying to turn off battery saver, it only use charger plug-in event. It should be more reasonable to turn off battery saver through similar DB setting as this function did at turning on.
Solution: To control battery saver function from setting DB.
Project:
Note:
Test done by RD:
Futher testing need Q team's support:

Bug: 31897608

Change-Id: Id70ba458e85f98393d7652bb4e79bd182172c60f
et/app/src/com/android/cts/net/hostside/AbstractRestrictBackgroundNetworkTestCase.java
70f86c4131ed5e8ab8f613049f744b9236cf9767 13-Oct-2016 Aurimas Liutikas <aurimas@google.com> Force GenerateImagesActivity to portrait orientation. am: 4b601e8b14 am: ce2e6fce09
am: 934450367b

Change-Id: Ib0aaa6951d7cc80d75410bc8913c1c688105820d
10c80f80b8d8fe9a29675c7e00731a837b51a31a 04-Oct-2016 Erik Wolsheimer <ewol@google.com> DO NOT MERGE Skip tests if not capable of multi-window or screen rotations

BUG: 30119049
Change-Id: Iae9908bca1d6681e3a29fe7ee8608b8942a6d6d3
ervices/activitymanager/src/android/server/cts/ActivityManagerActivityVisiblityTests.java
ervices/activitymanager/src/android/server/cts/ActivityManagerAppConfigurationTests.java
ervices/activitymanager/src/android/server/cts/ActivityManagerConfigChangeTests.java
ervices/activitymanager/src/android/server/cts/ActivityManagerDockedStackTests.java
ervices/activitymanager/src/android/server/cts/ActivityManagerManifestLayoutTests.java
ervices/activitymanager/src/android/server/cts/ActivityManagerTestBase.java
934450367b7c432541ccf611ce4beaded253b218 12-Oct-2016 Aurimas Liutikas <aurimas@google.com> Force GenerateImagesActivity to portrait orientation. am: 4b601e8b14
am: ce2e6fce09

Change-Id: Idfcf83a5c1607699b7b8ce5de2f08d6221426d50
ce2e6fce099bc30addbf9b51bf087522f8ca4861 12-Oct-2016 Aurimas Liutikas <aurimas@google.com> Force GenerateImagesActivity to portrait orientation.
am: 4b601e8b14

Change-Id: If15d07166ae3cdc3d624d820b1c7affddcf15851
4b601e8b1475a1827a9f976b46aff53420184de0 12-Oct-2016 Aurimas Liutikas <aurimas@google.com> Force GenerateImagesActivity to portrait orientation.

We landed a fix that force ThemeDeviceActivity to be in portrait orientation (ag/1138692)
however I missed to also force GenerateImagesActivity to the same orientation.

Bug: 31681138
Test: ran this test while rotating the device a bunch of times. It fails without this patch.
Change-Id: Ie1c4028389ad43b0ea2dcde063441a667506e0e4
heme/app/AndroidManifest.xml
0c2a38f23d671ec149a635efeab1fce47663a26d 11-Oct-2016 Andrii Kulian <akulian@google.com> Check if smallestWidthDp doesn't change during rotation am: 361fb7e046 am: a02d86b1f9
am: ff1c4308a9

Change-Id: Ia7013305334e64c0c55ea3fe826dc9ee3a3f098b
ff1c4308a99920e667c56e3829ffc805d183480b 11-Oct-2016 Andrii Kulian <akulian@google.com> Check if smallestWidthDp doesn't change during rotation am: 361fb7e046
am: a02d86b1f9

Change-Id: Ib45e92dbb957a3c23017a4d766edc81042d7c241
a02d86b1f9396e26b08b36301ed1c4e5ca34339e 11-Oct-2016 Andrii Kulian <akulian@google.com> Check if smallestWidthDp doesn't change during rotation
am: 361fb7e046

Change-Id: If9f1dfe04ea0e79ac45773560549581a3083d254
338b90f6b8e125131944bde5e5ca30d1c372a0d5 11-Oct-2016 Andrii Kulian <akulian@google.com> Merge "Check if smallestWidthDp doesn't change during rotation" into nyc-mr1-dev
ac5fe6969b01189e1dd9fe5b8b0dab9af6aa787f 11-Oct-2016 Aurimas Liutikas <aurimas@google.com> Update the rest of golden images for theme test. am: d218bfe978 am: 3d4c81a9f2
am: f7604ed6a9

Change-Id: Ib359c9da11e2b80f58246fc7b5afeaffaf259f9d
da7b2cbd79ef09f7569899e750072e9e735af807 11-Oct-2016 Todd Kennedy <toddke@google.com> resolve merge conflicts of 3152048 to master

Test: manual
Change-Id: I5302cd93fe53415de5535e0b76d6feeb0f38acca
82e9157b09dcd2c41aacdc89c3a063b2a1e53995 11-Oct-2016 Tony Mak <tonymak@google.com> Merge "Update CTS for isProvisoningAllowed change"
9e9acb9a6c7aec6cc22ca8e09f6f6731c3ac960f 11-Oct-2016 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Uses bound service instead of ordered broadcast for IPC."
f7604ed6a9a02ca4ac1ba0e38271ba4076cab9ca 11-Oct-2016 Aurimas Liutikas <aurimas@google.com> Update the rest of golden images for theme test. am: d218bfe978
am: 3d4c81a9f2

Change-Id: I477774434895f4357ce247b9414e86b6f78b633e
3d4c81a9f2a61c8275df998f565ea507ee3304dd 11-Oct-2016 Aurimas Liutikas <aurimas@google.com> Update the rest of golden images for theme test.
am: d218bfe978

Change-Id: I554e7b7c2bd56225f332765842ce8a4bd416584d
e890d940a9bab95cb4319f810e210a154ca8b39b 11-Oct-2016 Aurimas Liutikas <aurimas@google.com> Merge "Update the rest of golden images for theme test." into nyc-mr1-dev
5e1ddb0689cf1427ac68a15067fd6fc33f9372bb 11-Oct-2016 Todd Kennedy <toddke@google.com> test app must be streamed am: a2e47d0af9 am: c7efd99450
am: f89bea26b3

Change-Id: I19dd5bde2a0bdb3e79b80700dc1e06382504aa41
d218bfe978fa140f555ae00136b9e72efbc76488 10-Oct-2016 Aurimas Liutikas <aurimas@google.com> Update the rest of golden images for theme test.

We enabled text antialiasing in NYC MR1 and so the golden images
need to be updated. ag/1522878 updated xhdpi and this CL updates
the rest of the golden images for ThemeHostTest.

Generated the following densities:
420dpi - Nexus 5X
560dpi - Nexus 6 (normal build)
xxhdpi - Nexus 6 (custom build)
xxxhdpi - Nexus 6 (custom build)

Bug: 31681138

Change-Id: Ic646d4a623f626a337fe959ab83943bc7d5f1b4d
heme/assets/420dpi.zip
heme/assets/560dpi.zip
heme/assets/xxhdpi.zip
heme/assets/xxxhdpi.zip
315204864fbcdd449fe5a5582fa0e0ab7b8c22dd 11-Oct-2016 Todd Kennedy <toddke@google.com> test app must be streamed am: a2e47d0af9
am: 2e5ff7e1a1

Change-Id: I817bd77b378aa46ac677d47cfedf416648d0517a
f89bea26b3cdb78f8bb5642082ad38db9499afe9 11-Oct-2016 Todd Kennedy <toddke@google.com> test app must be streamed am: a2e47d0af9
am: c7efd99450

Change-Id: I7b5b1351f72524212c011972815000696fe28bd8
2e5ff7e1a14e50e1a3df0c5eb9beab68d1483668 11-Oct-2016 Todd Kennedy <toddke@google.com> test app must be streamed
am: a2e47d0af9

Change-Id: I91a3c1cdb524f6c8230e2eed27153a00b9211689
c7efd9945062a997c51f15668f1f779d4273f7e9 11-Oct-2016 Todd Kennedy <toddke@google.com> test app must be streamed
am: a2e47d0af9

Change-Id: I9bb18934735bc8dc12df2e30142d48e54da49011
545e5f264db47b4d2730d2216ef62847a7e2b8e9 10-Oct-2016 Aurimas Liutikas <aurimas@google.com> Update ThemeTest golden images for xhdpi density. am: f2658e89bb am: 89dbe38863
am: 0fb4cf7d33

Change-Id: I00b8dc08bf77dd7587a87e48ef35a767d60ba353
0fb4cf7d335a0cdc3f3248c993ec7438df063e4d 10-Oct-2016 Aurimas Liutikas <aurimas@google.com> Update ThemeTest golden images for xhdpi density. am: f2658e89bb
am: 89dbe38863

Change-Id: I36859ea7c975ae39f27d2776f46ac503d3bcf49c
89dbe3886313dcaa82f33fdf8aea8c49375153f9 10-Oct-2016 Aurimas Liutikas <aurimas@google.com> Update ThemeTest golden images for xhdpi density.
am: f2658e89bb

Change-Id: I611f622b5c1b6f2ebef51d112f975f75c49b8a59
dc243b91a134f9fa0cd58a0fc33501930af72a63 10-Oct-2016 Aurimas Liutikas <aurimas@google.com> Merge "Update ThemeTest golden images for xhdpi density." into nyc-mr1-dev
f2658e89bbc914fb5ff6fbc03ae49f62a043a5fd 10-Oct-2016 Aurimas Liutikas <aurimas@google.com> Update ThemeTest golden images for xhdpi density.

We enabled text antialiasing in NYC MR1 and so the golden images
need to be updated as they are not "close enough" within the fudge
factor on xhdpi density.

Bug: 31681138
Test: tested by passing the test on Pixel C and Nexus 9 running N MR1
Change-Id: I12fda1c1e1d01b1289bddbe9b5da0c02aa5debf8
heme/README
heme/assets/xhdpi.zip
heme/run_theme_capture_device.py
a2e47d0af92c7de1f1c6f173080f369c5b97bbeb 07-Oct-2016 Todd Kennedy <toddke@google.com> test app must be streamed

When using the 'cmd' command to install apps, apps can only be
streamed. Add a CTS test that guarnatees that behaviour.

Fixes: 31251489
Test: cts-tradefed run commandAndExit cts-dev -m CtsAppSecurityHostTestCases -t android.appsecurity.cts.AppSecurityTests#testAdbInstallFile

Change-Id: I75daebe3456812cadf86ac170c680c0984068f65
ppsecurity/src/android/appsecurity/cts/AppSecurityTests.java
5a9edfb2bed483b5327a2ffe4fc6bba569350240 07-Oct-2016 Felipe Leme <felipeal@google.com> Uses bound service instead of ordered broadcast for IPC.

BUG: 32017623
Test: m -j 32 cts && cts-tradefed run commandAndExit cts -m CtsHostsideNetworkTests
Change-Id: Ibdb84048b04405f234aa5ad9124eb70e9e592498
et/aidl/Android.mk
et/aidl/com/android/cts/net/hostside/IMyService.aidl
et/app/src/com/android/cts/net/hostside/AbstractRestrictBackgroundNetworkTestCase.java
et/app/src/com/android/cts/net/hostside/MyServiceClient.java
et/app2/src/com/android/cts/net/hostside/app2/Common.java
et/app2/src/com/android/cts/net/hostside/app2/MyBroadcastReceiver.java
et/app2/src/com/android/cts/net/hostside/app2/MyService.java
9e5a89c8e9195a4d10b47a46b49da8500442544d 07-Oct-2016 Guang Zhu <guangzhu@google.com> Merge "remove use of CTS_TESTCASES_OUT" am: 7ec91f0556 am: c56e0f152d
am: 5126518503

Change-Id: I9a049dce2f25db6a5e518f6a5cc39176c57365d1
5126518503269951669d7759226ec83e5d363025 07-Oct-2016 Guang Zhu <guangzhu@google.com> Merge "remove use of CTS_TESTCASES_OUT" am: 7ec91f0556
am: c56e0f152d

Change-Id: I8b316b104a3cf99b0fca3dc7dca5acb3e867965d
99e815d2f2d629b385e07f4785888ed9b278f7bc 07-Oct-2016 Srinath Sridharan <srinathsr@google.com> Fix sustained performance CTS test failures. am: 4799a3c961 am: 6f48ce8151
am: 3e7afbc9aa

Change-Id: I0f4b352b3d4ac76948f3375e4c06ac6073d96d66
a7cd06c09c9de73732e297b9712d3d152d04eaf5 05-Oct-2016 Guang Zhu <guangzhu@google.com> remove use of CTS_TESTCASES_OUT

Bug: 31788743
Test: $ make cts dist
# check contents of generated package and API coverage
# report
$ make checkbuild

Merged-In: I703434a70b22415ce233a34b127022cffe7ce030
Change-Id: I703434a70b22415ce233a34b127022cffe7ce030
(cherry picked from commit 927bbcf87ca8fbb54f540f9e9b097fc1149ef9e7)
ppsecurity/test-apps/PrivilegedUpdateApp/Android.mk
dwpsecurity/app/Android.mk
s/Android.mk
s/OldAndroidTest.xml
ecurity/Android.mk
ervices/activitymanager/Android.mk
ervices/activitymanager/OldAndroidTest.xml
ervices/windowmanager/Android.mk
ervices/windowmanager/OldAndroidTest.xml
ystemui/Android.mk
ystemui/OldAndroidTest.xml
4f6268aa9d542e16ecb8c4ed38655c66ebdb4476 07-Oct-2016 Guang Zhu <guangzhu@google.com> Merge "remove use of CTS_TESTCASES_OUT"
70b963d5facb5604d349753ba729e063b5ea0969 06-Oct-2016 Jeff Sharkey <jsharkey@android.com> Clean up files after download finishes. am: edb93f953a
am: 7d385b7525

Change-Id: I7e892aaa6d8079902d4e67eb7fa71052ed4facba
fb9a864817464d6010892dc179100f1ce5ec346d 06-Oct-2016 Jeff Sharkey <jsharkey@android.com> Switch to rebootUntilOnline(). am: 127c044719
am: ffea68d4d2

Change-Id: If8a786c14825bd73fee37c0fdd16dcedf8c193d4
361fb7e04606dbde88fb74d5f548b57b4866ce54 06-Oct-2016 Andrii Kulian <akulian@google.com> Check if smallestWidthDp doesn't change during rotation

Modified some tests to set all possible orientations and check
if smallestWidthDp from reported config doesn't change for
fullscreen and both sides of split-screen.

Bug: 31005451
Bug: 29586417
Change-Id: I38cf350f0fac3b4f9fb54f3b153e4ccd91eca6aa
ervices/activitymanager/app/src/android/server/app/AbstractLifecycleLogActivity.java
ervices/activitymanager/src/android/server/cts/ActivityManagerAppConfigurationTests.java
ervices/activitymanager/src/android/server/cts/ActivityManagerDockedStackTests.java
ervices/activitymanager/src/android/server/cts/ActivityManagerTestBase.java
fa58ab5997f216aef46e1a203816a263ec30c50b 06-Oct-2016 Jeff Sharkey <jsharkey@android.com> Some fingerprint devices need double-confirmation. am: 6dfd84af85
am: 895d81f05d

Change-Id: I897accf2ba08d009398160c24bb8ab56e9f276f7
3e7afbc9aaa8e02033e91a499cbc9d570b090d77 06-Oct-2016 Srinath Sridharan <srinathsr@google.com> Fix sustained performance CTS test failures. am: 4799a3c961
am: 6f48ce8151

Change-Id: Ide8ae573c9373d677ba41ba4c8856d70a2645fab
7d385b75255fd8eed1e39111b3932328e20de9a9 06-Oct-2016 Jeff Sharkey <jsharkey@android.com> Clean up files after download finishes.
am: edb93f953a

Change-Id: Iae116b429f5f5853748898fd32b3511f9d40e620
ffea68d4d2ac31a0af98aedc5085c5fd24da8654 06-Oct-2016 Jeff Sharkey <jsharkey@android.com> Switch to rebootUntilOnline().
am: 127c044719

Change-Id: I93287a0aa308077344f506eda2b123cfe27d2f5e
895d81f05dbb908017a2239acdecba5e7d288108 06-Oct-2016 Jeff Sharkey <jsharkey@android.com> Some fingerprint devices need double-confirmation.
am: 6dfd84af85

Change-Id: Ife988a93de0107c59452140f5f4026f724345cad
6f48ce81511070a7a3ccf964a1747080530aacb0 06-Oct-2016 Srinath Sridharan <srinathsr@google.com> Fix sustained performance CTS test failures.
am: 4799a3c961

Change-Id: I3457409a42dcf4b81474fa971d15ec39433c5d21
bf9c441b585b8853ed2d5f343d68138288468a65 06-Oct-2016 Wale Ogunwale <ogunwale@google.com> Some changes to AM/WM CTS tests

- Added helper script for running CTS tests.
- Changed running instructions for all tests to use the new script.
- Always run device unlock sequence regardless of if the device is on.
We always want the device unlocked.

Test: Existing tests pass.
Change-Id: I43665ab144c4236ee1c26d4ada4a7f50aa9009a6
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/ActivityAndWindowManagerOverrideConfigTests.java
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/ActivityManagerActivityVisibilityTests.java
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/ActivityManagerActivityVisiblityTests.java
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/ActivityManagerAmStartOptionsTests.java
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/ActivityManagerAppConfigurationTests.java
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/ActivityManagerConfigChangeTests.java
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/ActivityManagerDockedStackTests.java
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/ActivityManagerFreeformStackTests.java
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/ActivityManagerManifestLayoutTests.java
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/ActivityManagerPinnedStackTests.java
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/ActivityManagerReplaceWindowTests.java
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/ActivityManagerTransitionSelectionTests.java
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/DisplaySizeTest.java
ervices/activityandwindowmanager/util/run-test
ervices/activityandwindowmanager/util/src/android/server/cts/ActivityManagerTestBase.java
8d24d1bae20d13af8ded76949d70b49531fcafff 05-Oct-2016 Guang Zhu <guangzhu@google.com> remove use of CTS_TESTCASES_OUT

Bug: 31788743
Test: $ make cts dist
# check contents of generated package and API coverage
# report
$ make checkbuild

Change-Id: I703434a70b22415ce233a34b127022cffe7ce030
ppsecurity/test-apps/PrivilegedUpdateApp/Android.mk
dwpsecurity/app/Android.mk
s/Android.mk
s/OldAndroidTest.xml
ecurity/Android.mk
ervices/activityandwindowmanager/activitymanager/Android.mk
ervices/activityandwindowmanager/activitymanager/OldAndroidTest.xml
ervices/activityandwindowmanager/windowmanager/Android.mk
ervices/activityandwindowmanager/windowmanager/OldAndroidTest.xml
ystemui/Android.mk
ystemui/OldAndroidTest.xml
3f6ddd6a2d417410c19cc123e03b5b8b10c9fb81 05-Oct-2016 Jeff Sharkey <jsharkey@google.com> Merge "Clean up files after download finishes." into nyc-mr1-dev
794dc613b29cfb94f9f19a9572e3db3e2e5f8e24 05-Oct-2016 Samuel Saccone <samccone@google.com> Merge "Clean up files after download finishes."
edb93f953a4a818d0fd58841af1924cc5ba11b23 05-Oct-2016 Jeff Sharkey <jsharkey@android.com> Clean up files after download finishes.

Test: cts-tradefed run cts-dev --module CtsAppSecurityHostTestCases --test android.appsecurity.cts.ExternalStorageHostTest
Bug: 31764288
Change-Id: I53d2ceb62ae64abdf6fe79bf89c520ce4c1e34fc
ppsecurity/test-apps/ExternalStorageApp/src/com/android/cts/externalstorageapp/ExternalStorageTest.java
cf5cfd1c62e83a3cf8134081e6cdbf1b1d1004c3 05-Oct-2016 Jeff Sharkey <jsharkey@android.com> Clean up files after download finishes.

Test: cts-tradefed run cts-dev --module CtsAppSecurityHostTestCases --test android.appsecurity.cts.ExternalStorageHostTest
Bug: 31764288
Change-Id: I53d2ceb62ae64abdf6fe79bf89c520ce4c1e34fc
ppsecurity/test-apps/ExternalStorageApp/src/com/android/cts/externalstorageapp/ExternalStorageTest.java
d7d521b441b48761eed81d47224e03e77bc80005 05-Oct-2016 Tony Mak <tonymak@google.com> Update CTS for isProvisoningAllowed change

Bug: 31895999

Test: This is a CTS CL

Change-Id: I55a39fbb96df401b88d4510c500161232ba82f57
evicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/PreDeviceOwnerTest.java
evicepolicy/src/com/android/cts/devicepolicy/DeviceOwnerTest.java
fd7312fc8ac5350d39c672ae807b5920c7008cd2 05-Oct-2016 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Switch to rebootUntilOnline()."
c55cdb34fb060d19d4f0205b53072ab75e7b2de8 05-Oct-2016 Guang Zhu <guangzhu@google.com> resolve merge conflicts of 7fd64ec to nyc-mr1-dev-plus-aosp

Change-Id: I9aa73d05ee57e0ee7bcf85dcb212296a35e8b1a2
7fd64ec741d62bbf0cd1588c93ff0c012882bebf 05-Oct-2016 Guang Zhu <guangzhu@google.com> Merge "remove CTSv1 tradefed harness" am: 10b3842993
am: 404592e94f

Change-Id: Ic5c9b8caf222c14c1b01b07e609a7f85838167c6
10b38429939363ccee7d2c48520ba352aa039a55 05-Oct-2016 Guang Zhu <guangzhu@google.com> Merge "remove CTSv1 tradefed harness"
127c0447193dd80bae709fc60aa3ef7726be1ea2 05-Oct-2016 Jeff Sharkey <jsharkey@android.com> Switch to rebootUntilOnline().

Based on feedback from testing team, switch to different method.

Test: cts-tradefed run cts-dev --module CtsAppSecurityHostTestCases --test android.appsecurity.cts.DirectBootHostTest
Bug: 31906151
Change-Id: I63fbc63979358a3c599b91ad725dc162b540a555
ppsecurity/src/android/appsecurity/cts/DirectBootHostTest.java
e41c22d770e817555539813da646dda481fb39d0 05-Oct-2016 Jeff Sharkey <jsharkey@android.com> Switch to rebootUntilOnline().

Based on feedback from testing team, switch to different method.

Test: cts-tradefed run cts-dev --module CtsAppSecurityHostTestCases --test android.appsecurity.cts.DirectBootHostTest
Bug: 31906151
Change-Id: I63fbc63979358a3c599b91ad725dc162b540a555
ppsecurity/src/android/appsecurity/cts/DirectBootHostTest.java
f8a8d41a7d822a8f719a8987ba0a83b6ddac5be0 05-Oct-2016 Jeff Sharkey <jsharkey@google.com> Merge "Some fingerprint devices need double-confirmation."
1d0c7d270e8a7f7e1b4d6e2137fe07fd54271555 04-Oct-2016 Colin Cross <ccross@android.com> Merge "Replace usages of my_register_name with my_all_targets" am: c009984a5a am: 898068eaa1 am: 0fd8d5ab62
am: 0a976a50b4

Change-Id: Ib54393edadfe958b05ad8bd9c2ce0395c392915d
0a976a50b48d298c9861dab6a222fb04616233c9 04-Oct-2016 Colin Cross <ccross@android.com> Merge "Replace usages of my_register_name with my_all_targets" am: c009984a5a am: 898068eaa1
am: 0fd8d5ab62

Change-Id: I827f5feaafc35119b6961d1122c0df015eb90c1f
0fd8d5ab62586e81cbcad2a363099a4e5e1667b8 04-Oct-2016 Colin Cross <ccross@android.com> Merge "Replace usages of my_register_name with my_all_targets" am: c009984a5a
am: 898068eaa1

Change-Id: I4c6fcbcbd7e4f62e98124cdad7fb2f543508c818
6dfd84af85ab105fdd2e6de515d6a6b4d58662bd 04-Oct-2016 Jeff Sharkey <jsharkey@android.com> Some fingerprint devices need double-confirmation.

A new flow was recently added for fingerprints, so we might need to
pick the "none" option twice in order to clear the PIN set by earlier
tests.

Test: cts-tradefed run cts-dev --module CtsAppSecurityHostTestCases --test android.appsecurity.cts.DirectBootHostTest
Bug: 31160946
Change-Id: I3c63cb687bc90653bf78802e0da7ebee7b2e907e
ppsecurity/test-apps/EncryptionApp/src/com/android/cts/encryptionapp/EncryptionAppTest.java
4bd0df846dc592a9d8d8ac9bb9d77acaa63442a1 04-Oct-2016 Jeff Sharkey <jsharkey@android.com> Some fingerprint devices need double-confirmation.

A new flow was recently added for fingerprints, so we might need to
pick the "none" option twice in order to clear the PIN set by earlier
tests.

Test: cts-tradefed run cts-dev --module CtsAppSecurityHostTestCases --test android.appsecurity.cts.DirectBootHostTest
Bug: 31160946
Change-Id: I3c63cb687bc90653bf78802e0da7ebee7b2e907e
ppsecurity/test-apps/EncryptionApp/src/com/android/cts/encryptionapp/EncryptionAppTest.java
2426c02fc99c3797264cd870051d9c34999e737a 04-Oct-2016 Guang Zhu <guangzhu@google.com> remove CTSv1 tradefed harness

Bug: 31788743
Test: $ make ... cts dist
# verify number of modules, API coverage report

Change-Id: Ia5bb36af210f886c8efdc7956b30aed6f74f45d9
(cherry picked from commit 1418a40f30d0316108794a8acd8da82a8b4b3b03)
pptools/Android.mk
1418a40f30d0316108794a8acd8da82a8b4b3b03 04-Oct-2016 Guang Zhu <guangzhu@google.com> remove CTSv1 tradefed harness

Bug: 31788743
Test: $ make ... cts dist
# verify number of modules, API coverage report
$ cts-tradefed run collect-tests-only \
--product-type bullhead --skip-preconditions \
--skip-device-info --skip-connectivity-check \
--primary-abi-only
# verify that test lists are identical before/after
$ make ... checkbuild

Change-Id: Ia5bb36af210f886c8efdc7956b30aed6f74f45d9
pptools/Android.mk
4799a3c9610103653c47d97ced8957a1f1b7c42c 04-Oct-2016 Srinath Sridharan <srinathsr@google.com> Fix sustained performance CTS test failures.

bug: 31215027
Change-Id: Iad347a0f0f54672dadaa71699290e62283f948af
ustainedperf/src/android/SustainedPerformance/cts/SustainedPerformanceHostTest.java
540dd152d89a3ef9647058741e14bc31e1b9c58d 03-Oct-2016 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Add CTS tests for DPM.resetPassword()"
167f23b4b7d966d9f5ac20b09a11e043f2e89a2e 28-Sep-2016 Charles He <qiurui@google.com> Add CTS tests for DPM.resetPassword()

This change expands the existing host-side CTS tests for
DevicePolicyManager.resetPassword(). In specific, test cases are added
to verify that the password

1) cannot be changed or removed when FBE is locked

2) can be changed but not removed by a managed Profile Owner.

Bug: 28902173
Test: cts-tradefed run cts --module DevicePolicyManager --test com.android.cts.devicepolicy.MixedDeviceOwnerTest#testResetPassword
Test: cts-tradefed run cts --module DevicePolicyManager --test com.android.cts.devicepolicy.MixedDeviceOwnerTest#testResetPasswordFbe
Test: cts-tradefed run cts --module DevicePolicyManager --test com.android.cts.devicepolicy.MixedProfileOwnerTest#testResetPassword
Test: cts-tradefed run cts --module DevicePolicyManager --test com.android.cts.devicepolicy.MixedProfileOwnerTest#testResetPasswordFbe
Test: cts-tradefed run cts --module DevicePolicyManager --test com.android.cts.devicepolicy.MixedManagedProfileOwnerTest#testResetPassword
Test: cts-tradefed run cts --module DevicePolicyManager --test com.android.cts.devicepolicy.MixedManagedProfileOwnerTest#testResetPasswordFbe
Change-Id: Iaad6d867de5d438055cca52b40f117ad34b55783
evicepolicy/app/DeviceAndProfileOwner/latest/AndroidManifest.xml
evicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/FbeHelper.java
evicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/ResetPasswordTest.java
evicepolicy/src/com/android/cts/devicepolicy/BaseDevicePolicyTest.java
evicepolicy/src/com/android/cts/devicepolicy/DeviceAndProfileOwnerTest.java
evicepolicy/src/com/android/cts/devicepolicy/MixedManagedProfileOwnerTest.java
7457e4a3c7c6cdfdf554ed8a6d7f75d5b4e11ed7 30-Sep-2016 Makoto Onuki <omakoto@google.com> Fix DO/PO Wifi CTS am: 616c3c4ff9 am: 3c407216a8
am: 365d22304d

Change-Id: I051bf5609198a8acbca62bf70e872f1aa8def0a7
365d22304d6fc5f038cf4d21eb7f4fbc2dfc3dd2 30-Sep-2016 Makoto Onuki <omakoto@google.com> Fix DO/PO Wifi CTS am: 616c3c4ff9
am: 3c407216a8

Change-Id: Id532f97703d1613f54e3661adc6bc937ef031950
3c407216a896146d4cbf5bda0295d1f31890d34f 30-Sep-2016 Makoto Onuki <omakoto@google.com> Fix DO/PO Wifi CTS
am: 616c3c4ff9

Change-Id: I66352329ebce4105088448e7f2a021fecdfc13da
ac412f6b31024a05facd27344d7385b8f5e0dc48 30-Sep-2016 Makoto Onuki <omakoto@google.com> Merge "Fix DO/PO Wifi CTS" into nyc-mr1-dev
5e10b748e325a0e0ebfd2cb7b0a52d634654ea37 02-Sep-2016 Sudheer Shanka <sudheersai@google.com> Cts: Add tests for retail demo mode - part1

Bug: 31342350
Test: cts-tradefed run singleCommand cts-dev --module CtsRetailDemoHostTestCases
Change-Id: Ia64671e3a5e117d488b9f1890a22212267bc6a3d
etaildemo/Android.mk
etaildemo/app/Android.mk
etaildemo/app/src/com/android/cts/retaildemo/DemoModeUiAutomationTest.java
etaildemo/app/src/com/android/cts/retaildemo/DemoUserTest.java
etaildemo/src/android/host/retaildemo/BaseTestCase.java
etaildemo/src/android/host/retaildemo/DemoModeTest.java
etaildemo/src/android/host/retaildemo/DemoModeUiAutomationHostTest.java
a9db38f2838232462b0307039f397f255596272f 28-Sep-2016 Colin Cross <ccross@android.com> Replace usages of my_register_name with my_all_targets

A few module types add extra dependencies on $(my_register_name), move
them to $(my_all_targets) so that they are built for mm and mma too.

Bug: 31526036
Bug: 31754426
Test: mmm cts/tests/tests/animation
Change-Id: I5054779ae0fd8d9ed8ca1cb808d8f345f60f8de4
ppsecurity/test-apps/PrivilegedUpdateApp/Android.mk
dwpsecurity/app/Android.mk
750905a2fdcb8f34ddfe01d29f0235935d380568 30-Sep-2016 Tony Mak <tonymak@google.com> Remove the retry logic of testScreenCaptureImpossible am: 6d3650f9c1
am: dbef0ba761

Change-Id: Ie431c3d9def5c73af807cde8716648eb10b097b7
9a79fa9234b5806f94fc05bedd7695a1dd59bba6 30-Sep-2016 Tony Mak <tonymak@google.com> Adding log / workaround for flaky testScreenCaptureDisabled test am: b5432229f1
am: 05cfa8f156

Change-Id: I7047bca0d52c258234e491d065719d10179db0d2
dbef0ba76187ba9108bb8b9d38b06f73f752b808 30-Sep-2016 Tony Mak <tonymak@google.com> Remove the retry logic of testScreenCaptureImpossible
am: 6d3650f9c1

Change-Id: I4b4aeb6c0ebe1163817024bfbdaacfa5ca3245af
05cfa8f156ccb0e3b9551c43cedd236291f97253 30-Sep-2016 Tony Mak <tonymak@google.com> Adding log / workaround for flaky testScreenCaptureDisabled test
am: b5432229f1

Change-Id: I32d378e637739e9b8d233106e4be28347e5c6e58
41ab189fcced879e6c20d420f017e687574b86f9 30-Sep-2016 Tony Mak <tonymak@google.com> Merge changes Id913da7a,I08f9c6a7 into nyc-mr1-dev

* changes:
Remove the retry logic of testScreenCaptureImpossible
Adding log / workaround for flaky testScreenCaptureDisabled test
623de4309821751c5b921fce39ed6cd664dbb8c0 03-Aug-2016 Alan Viverette <alanv@google.com> Add xxxhdpi assets for CTS theme host test

Updates theme test to work with non-default density so that we can use
"adb shell wm density <dpi>" if we don't possess the right devices. This
mostly works, except for a few assets where rounding error means the
scaled version doesn't match up.

Also updates the test results to push all the diff images into a ZIP for
easier consumption.

Bug: 30000597
Change-Id: I6bb5229cc30e6da8df1df0a49ede93d1e5ec52f9
heme/README
heme/app/src/android/theme/app/ThemeTestUtils.java
heme/assets/24/xxxhdpi.zip
heme/src/android/theme/cts/ComparisonTask.java
heme/src/android/theme/cts/ThemeHostTest.java
5746d983f8e4729a67db24114bf1b5ffa6bf1288 29-Sep-2016 Tony Mak <tonymak@google.com> Fix testPackageInstallUserRestrictions am: 88dc4ada98 am: 7384c5e7c4
am: fd5499e29b

Change-Id: I0929ec3c874e8a9555a01f6e44dd936e0820ed54
fd5499e29b0b543e0e1fbd7e4d9ceccb47302e92 29-Sep-2016 Tony Mak <tonymak@google.com> Fix testPackageInstallUserRestrictions am: 88dc4ada98
am: 7384c5e7c4

Change-Id: I01ec3039c25ebdbce80136b24386efae1c2debb6
7384c5e7c47b6e6f05f5a83f8d4e62e687a073d7 29-Sep-2016 Tony Mak <tonymak@google.com> Fix testPackageInstallUserRestrictions
am: 88dc4ada98

Change-Id: I80c95bcb0085e64eddfa11c96d0eb68a67a17af2
2b92b09195bb885e599d36683891a417cc98ff4e 29-Sep-2016 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Fix testPackageInstallUserRestrictions" into nyc-mr1-dev
101f2cca7ccf25e07079e5243a605ba92d5e2e3f 28-Sep-2016 Alan Viverette <alanv@google.com> Ignore sub-pixel failures in CTS theme tests am: 7557d8832d am: 6f1f580efe
am: dd23a92b20

Change-Id: I436c71aa2b2168e67fd863d6c48d38efe6fd40e4
dd23a92b20e11cc05f95f9aeff3c32a4dfda8f4f 28-Sep-2016 Alan Viverette <alanv@google.com> Ignore sub-pixel failures in CTS theme tests am: 7557d8832d
am: 6f1f580efe

Change-Id: I060fb3af59589cbfbadec260af7d59bfd6862836
6f1f580efe2540862dcfc7b855900fb4c8f4f30d 28-Sep-2016 Alan Viverette <alanv@google.com> Ignore sub-pixel failures in CTS theme tests
am: 7557d8832d

Change-Id: I00a935f55434c4b84de4016bbbc19c3601cc5163
726301e75d71977c36d43b7e35f4b5f6688e38eb 28-Sep-2016 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Ignore sub-pixel failures in CTS theme tests" into nyc-mr1-dev
6d3650f9c1eb67250273a929771b3b6a92d7ed46 26-Sep-2016 Tony Mak <tonymak@google.com> Remove the retry logic of testScreenCaptureImpossible

Seems that the test can be passed without retry logic.
Also not dumping window policy log as it seems not interesting to us.

Bug: 31509470
Change-Id: Id913da7a3427a1c72b85a097d56496972e8910b2
evicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/ScreenCaptureDisabledTest.java
evicepolicy/src/com/android/cts/devicepolicy/DeviceAndProfileOwnerTest.java
b5432229f136c3b78042ef73e8aa0c14511688a2 23-Sep-2016 Tony Mak <tonymak@google.com> Adding log / workaround for flaky testScreenCaptureDisabled test

***
This is picked from master branch and fixed the flakiness of the CTS
test.
***

1. We did add log previously, but we dump the log before
starting the activity. Break down the test into multi steps so that
we can now dump the log right after the activity is started.
And We also dump activity now.

2. The package will be restarted when its instrumentation is ran, that
means the activity launched will be killed when the test to verify
capiblity of taking screenshot. Removed ScreenCaptureDisabledActivity
and reuse SimpleActivity in CtsSimpleApp package instead.

3. Also, try to give another shot after 5 second if the screen
capture still working. This can check whether the flakiness is
caused by insufficient delay.

Bug: 31509470
Change-Id: I08f9c6a764bd7fc022f866b0b405864242575e6e
(cherry picked from commit c598218f80e43220a271bd7045b930b49463cdc7)
evicepolicy/app/DeviceAndProfileOwner/latest/AndroidManifest.xml
evicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/ScreenCaptureDisabledActivity.java
evicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/ScreenCaptureDisabledTest.java
evicepolicy/src/com/android/cts/devicepolicy/DeviceAndProfileOwnerTest.java
evicepolicy/src/com/android/cts/devicepolicy/MixedManagedProfileOwnerTest.java
70f6fb2c2ce399e1c13a4abb7babd3aed6e6bf06 28-Sep-2016 Tony Mak <tonymak@google.com> Install WifiConfigCreator APK before testRemoveWifiNetworkIfExists

testRemoveWifiNetworkIfExists requires WifiConfigCreator to work
if network exists.

Test: Fix CTS test

Change-Id: I2935ac514d09e7c2995c6ae7021fa4a3feacb1a5
Fix: 31584787
evicepolicy/src/com/android/cts/devicepolicy/ManagedProfileTest.java
88dc4ada9873bf7f442eabf77a9b1285b4b42815 28-Sep-2016 Tony Mak <tonymak@google.com> Fix testPackageInstallUserRestrictions

Value of package_verifier_enable is reset and its value is migrated to
to the package_verifier_user_consent instead.

Test: CTS fix

Change-Id: Idc4a98cf6438e1bd5b5afb41e44aef4b8f603586
Fix: 29168644
evicepolicy/src/com/android/cts/devicepolicy/DeviceAndProfileOwnerTest.java
616c3c4ff953538324d3b85b2f3d682a0bfd1cdb 27-Sep-2016 Makoto Onuki <omakoto@google.com> Fix DO/PO Wifi CTS

- Flip the feature check
- PO can't access the MAC address. Removed the test.

Bug 31767129

Change-Id: I9ab72e491df22849f8755899217d207e326f011f
evicepolicy/src/com/android/cts/devicepolicy/DeviceOwnerTest.java
evicepolicy/src/com/android/cts/devicepolicy/ProfileOwnerTest.java
78bba113cb0279d76f2d9a9ffc6525147da958f5 27-Sep-2016 Ray Kim <raysbkim@gmail.com> Let package of encryption be set by resolving information

additional : Add next button case to fit for variable ux design

bug:30380246
Change-Id: Ie7e7f0bb91c73e3672252ddbad540b2b8e1c9ad0
ppsecurity/test-apps/EncryptionApp/src/com/android/cts/encryptionapp/EncryptionAppTest.java
15c4b329f116b3d65068d3775b7c4cbb0e30edc3 26-Sep-2016 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Use the correct timeout value in LockTaskTest"
db9cbd53bda8b1be30bfb1875b7aea40da296ced 26-Sep-2016 Tony Mak <tonymak@google.com> Use the correct timeout value in LockTaskTest

setLockTaskPackages is quick, but we are actually waiting for onDestroy
to happen after calling setLockTaskPackages.
So we should use the ACTIVITY_DESTROYED_TIMEOUT_MILLIS timeout instead.
(PS: The original timeout UPDATE_LOCK_TASK_TIMEOUT_MILLIS is only 1 second)

Test: This is a CTS fix.

Fix: 31510001

Change-Id: I18cb651fa56ef632ac92fb47f3a7372c6a56a274
evicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/LockTaskTest.java
evicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/LockTaskUtilityActivity.java
d56ce93b4f0dd846601fca4a79164ddb3c9f6073 26-Sep-2016 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Remove the retry logic of testScreenCaptureImpossible"
5afc5c6666877def48891ee55d9b0900e7d108e3 26-Sep-2016 Tony Mak <tonymak@google.com> Remove the retry logic of testScreenCaptureImpossible

Seems that the test can be passed without retry logic.
Also not dumping window policy log as it seems not interesting to us.

Bug: 31509470
Change-Id: Id913da7a3427a1c72b85a097d56496972e8910b2
evicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/ScreenCaptureDisabledTest.java
evicepolicy/src/com/android/cts/devicepolicy/DeviceAndProfileOwnerTest.java
0fe8e72c2f7fa688db45a958a92c1f644aeac8ad 24-Sep-2016 Raj Mamadgi <rmamadgi@sta.samsung.com> Fix for testFreeformWindowManagementSupport

Adding support for xxxdpi devices for this test cases.

b/31715134

Change-Id: Ic7742296a5733ffa0971583743caf05909961e0d
Signed-off-by: Raj Mamadgi <rmamadgi@sta.samsung.com>
ervices/activitymanager/app/src/android/server/app/FreeformActivity.java
ervices/activitymanager/src/android/server/cts/ActivityManagerFreeformStackTests.java
7557d8832d24ddd1ba116fc8b33d2a9971eef687 23-Sep-2016 Alan Viverette <alanv@google.com> Ignore sub-pixel failures in CTS theme tests

Now allows a single consecutive failures along the y-axis before an image
is considered failing. This will ignore text antialiasing differences
while still preserving the intent of the tests.

Also moves the xxxhdpi.zip asset into the correct directory.

Bug: 31681138
Test: passed
Change-Id: I985faf34fbe36931124f2188a4e5dcb60e3264b2
heme/assets/24/xxxhdpi.zip
heme/assets/xxxhdpi.zip
heme/src/android/theme/cts/ComparisonTask.java
fe0218be5b258f397add634b262651dbe2678e17 23-Sep-2016 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Adding log / workaround for flaky testScreenCaptureDisabled test"
c598218f80e43220a271bd7045b930b49463cdc7 23-Sep-2016 Tony Mak <tonymak@google.com> Adding log / workaround for flaky testScreenCaptureDisabled test

1. We did add log previously, but we dump the log before
starting the activity. Break down the test into multi steps so that
we can now dump the log right after the activity is started.
And We also dump activity now.

2. The package will be restarted when its instrumentation is ran, that
means the activity launched will be killed when the test to verify
capiblity of taking screenshot. Removed ScreenCaptureDisabledActivity
and reuse SimpleActivity in CtsSimpleApp package instead.

3. Also, try to give another shot after 5 second if the screen
capture still working. This can check whether the flakiness is
caused by insufficient delay.

Bug: 31509470
Change-Id: I08f9c6a764bd7fc022f866b0b405864242575e6e
evicepolicy/app/DeviceAndProfileOwner/latest/AndroidManifest.xml
evicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/ScreenCaptureDisabledActivity.java
evicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/ScreenCaptureDisabledTest.java
evicepolicy/src/com/android/cts/devicepolicy/DeviceAndProfileOwnerTest.java
evicepolicy/src/com/android/cts/devicepolicy/MixedManagedProfileOwnerTest.java
cd9dddd1cbef176ab7e85678f7a501144a672f35 22-Sep-2016 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Fix the flakiness of LockTaskTest"
5ba40bedf6af4820cba64b7936996dd5c5b137f5 22-Sep-2016 Tony Mak <tonymak@google.com> Fix the flakiness of LockTaskTest

1. Use foreground broadcast
2. Added volatile keyword to fix thread safe issue.
3. Do not silent the InterruptException

Bug: 31510001
Change-Id: Ib15facddc60838a4ca17bcbbb7c82f957a6d18c2
evicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/LockTaskTest.java
evicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/LockTaskUtilityActivity.java
5e937c1f7d1dbafedf35b4c20947d849096bf09f 22-Sep-2016 Amith Yamasani <yamasani@google.com> Test to ensure a toast doesn't affect app standby am: f351abf02f am: ccfc0ddf90
am: 98c83ce566

Change-Id: I6adbbddbb61d79119d57352d0a6299deb1fea0d7
98c83ce566b589475a432b247d8bdffbd6c699bd 22-Sep-2016 Amith Yamasani <yamasani@google.com> Test to ensure a toast doesn't affect app standby am: f351abf02f
am: ccfc0ddf90

Change-Id: Ifc27411d8075cd7174037707f80f4be36e2581a6
ccfc0ddf90a05a40d6d19ec7416fa348700dcc3e 21-Sep-2016 Amith Yamasani <yamasani@google.com> Test to ensure a toast doesn't affect app standby
am: f351abf02f

Change-Id: Ib0d657b8f6ca5fe4d25f96031fe8a662c7b5302f
f351abf02fb6de1765b2a2870467fa0c19c87541 21-Sep-2016 Amith Yamasani <yamasani@google.com> Test to ensure a toast doesn't affect app standby

Put an app in standby, make it show a toast and ensure
that it doesn't come out of standby. This is to test
for a bug fix for the same behavior.

Bug: 31544592
Test: cts-tradefed run commandAndExit cts -m CtsHostsideNetworkTests -t com.android.cts.net.HostsideRestrictBackgroundNetworkTests#testAppIdle_toast
Change-Id: I796ecde8e346c308a27969d873e3ce384414fee3
et/app/src/com/android/cts/net/hostside/AbstractAppIdleTestCase.java
et/app/src/com/android/cts/net/hostside/AbstractRestrictBackgroundNetworkTestCase.java
et/app2/AndroidManifest.xml
et/app2/src/com/android/cts/net/hostside/app2/Common.java
et/app2/src/com/android/cts/net/hostside/app2/MyBroadcastReceiver.java
et/src/com/android/cts/net/HostsideRestrictBackgroundNetworkTests.java
50a6c1c936bb0957e36faf27480df85d0cf56c82 21-Sep-2016 Jiaquan He <hejq@google.com> Merge "Revert "Add OnTopLauncher CTS.""
8c40479d73b0b99c01826895a30c7f84d5291579 21-Sep-2016 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Add infrastructure for consuming WindowManager traces."
11d52886d3166eefa87f11d55e5fcc5cf3e734b3 20-Sep-2016 Jiaquan He <hejq@google.com> Revert "Add OnTopLauncher CTS."

We cannot guarantee OnTopLauncherActivity running in the home stack
currently, which makes testing fail.

This reverts commit 8ccec50e916dd2a72ad6f5bdc9a5af7b54a8a426.

Change-Id: Ibada90f032469b5021c6f23ecedec8ee2d86db57
ervices/activityandwindowmanager/activitymanager/app/AndroidManifest.xml
ervices/activityandwindowmanager/activitymanager/app/src/android/server/cts/OnTopLauncherActivity.java
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/ActivityManagerOnTopLauncherTests.java
ervices/activityandwindowmanager/util/src/android/server/cts/ActivityAndWindowManagersState.java
ervices/activityandwindowmanager/util/src/android/server/cts/ActivityManagerState.java
5ff5dd6b021dc1ef05b4c2f32efa76bcc2878f67 20-Sep-2016 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Changed WM test pattern match from mFullscreen to mFillsParent"
52cc57a837d1a8633746bb50d03157fd3d651a14 20-Sep-2016 Felipe Leme <felipeal@google.com> Disable testDeniesOnceForAllClearedWhenPackageRemoved when not supported. am: c07b7f9a61 am: d4a95b4fa6
am: 810494e4db

Change-Id: I3f00bdbe0c8515ee995d8955fc4b1fae143489cd
5c81253cb0df1f713ff8f58eb86d781e8b8b8ea6 20-Sep-2016 Amith Yamasani <yamasani@google.com> Tests for idle parole when charging am: 5a818e3416 am: 79a37cb152
am: 10ebd0c03b

Change-Id: I70a480298152988668cce2521f955dfb7071312e
464d09f935dac00a1000a134631e1cefe36fba14 19-Sep-2016 Wale Ogunwale <ogunwale@google.com> Changed WM test pattern match from mFullscreen to mFillsParent

To match changes in WM for WindowContainer.
Also, added command for building and running each cts test since
I keep forgetting the right combination for flags to use.

Test: Current tests pass.
Change-Id: I40b0b869275a2b99aba2346abe08b22d9c4081a2
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/ActivityAndWindowManagerOverrideConfigTests.java
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/ActivityManagerActivityVisiblityTests.java
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/ActivityManagerAmStartOptionsTests.java
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/ActivityManagerAppConfigurationTests.java
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/ActivityManagerConfigChangeTests.java
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/ActivityManagerDockedStackTests.java
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/ActivityManagerFreeformStackTests.java
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/ActivityManagerManifestLayoutTests.java
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/ActivityManagerOnTopLauncherTests.java
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/ActivityManagerPinnedStackTests.java
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/ActivityManagerReplaceWindowTests.java
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/ActivityManagerTransitionSelectionTests.java
ervices/activityandwindowmanager/util/src/android/server/cts/WindowManagerState.java
e08a3556e1504cac23582e36e597ce483a2e037d 20-Sep-2016 Dan Willemsen <dwillemsen@google.com> DO NOT MERGE ANYWHERE Actually fix cts in nyc-dev-plus-aosp

I did this manually first, but came up with a much better way that
produced a slightly better result (verified the diffs against the next
branch). Sequence of commands:

# Checkout the last good commit (right before the first bad merge)
git checkout 59ae2061d0c24e8c8c81f0106c94046644221f41^
# Reset the HEAD pointer to the last bad merge, but not the worktree
git reset 3c197891b50d9ac5e5016f55551b6dff82f62f33
# Update the index
git add -A
# Apply all the changes that mattered between the above to commits
git cherry-pick -n 29cb19b774b6e0cb73851feb6877da5e42bba78e
git cherry-pick -n 0e9d107fcfbd3421b7988a4252a9965896019aba
git cherry-pick -n f19496887beb974c3bc9df9a57f6214a696417b1
git cherry-pick -n 939e2b253b798386ce53954626fd8044ecb18db6
git cherry-pick -n 02f07b5d5994b8345ebc86546e5f66524ac04dac
# Commit the changes
git commit
# Rebase the diffs on top of the latest nyc-dev-plus-aosp, since some
# changes have been manually applied, there will be a few merge
# conflicts
git rebase goog/nyc-dev-plus-aosp

All the SHA-1s above were discovered using a combination of this command
to find the changes actually submitted into nyc-dev-plus-aosp itself:

git log --oneline --first-parent goog/nyc-dev-plus-aosp

and then to find the original commits (that weren't marked as DO NOT
MERGE ANYWHERE):

git log --oneline --no-merges --stat 59ae206..goog/nyc-dev-plus-aosp

Change-Id: Iec12619678cb8d011d2c6df26a34ce26e042b854
ecurity/src/android/cts/security/FileSystemPermissionTest.java
810494e4dbf8c14eb8dd866eec88391e008fc797 20-Sep-2016 Felipe Leme <felipeal@google.com> Disable testDeniesOnceForAllClearedWhenPackageRemoved when not supported. am: c07b7f9a61
am: d4a95b4fa6

Change-Id: I5602f3b62d20bade84735662a695a36fd52d583f
d4a95b4fa636f67d14b7568d235259536093345f 20-Sep-2016 Felipe Leme <felipeal@google.com> Disable testDeniesOnceForAllClearedWhenPackageRemoved when not supported.
am: c07b7f9a61

Change-Id: I717cd107d587d30a899f8db6a85ea1b088999f46
10ebd0c03b9e70e5faf4ae16f09842fa8dd7173d 20-Sep-2016 Amith Yamasani <yamasani@google.com> Tests for idle parole when charging am: 5a818e3416
am: 79a37cb152

Change-Id: Ie0dbb02f9c06aa2dfd358847aa624f07c1cff28f
1926fbe4d7e477a6ff56458623b7086db39c0c18 20-Sep-2016 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Disable testDeniesOnceForAllClearedWhenPackageRemoved when not supported." into nyc-mr1-dev
79a37cb15213a10c744a7454a74fa1bb46a33b73 20-Sep-2016 Amith Yamasani <yamasani@google.com> Tests for idle parole when charging
am: 5a818e3416

Change-Id: I4482f77607b9952c1fd601a2885dde0ef953cf84
5a818e3416e5a88b55be1e74ce641201fbc350ca 19-Sep-2016 Amith Yamasani <yamasani@google.com> Tests for idle parole when charging

Make sure that when switching between idle, paroled
and battery saver, the network availability of the app
is correctly updated.

Bug: 31399882
Test: cts-tradefed run commandAndExit cts -m CtsHostsideNetworkTests -t com.android.cts.net.HostsideRestrictBackgroundNetworkTests#testAppIdleNonMetered_whenCharging
Test: cts-tradefed run commandAndExit cts -m CtsHostsideNetworkTests -t com.android.cts.net.HostsideRestrictBackgroundNetworkTests#testAppIdleMetered_whenCharging
Change-Id: I060a0d5f9c3297430b5b623b389c1afdf6abde87
et/app/src/com/android/cts/net/hostside/AbstractAppIdleTestCase.java
et/src/com/android/cts/net/HostsideRestrictBackgroundNetworkTests.java
739fdbd2b55f5d1c9d38bb8cda4bcfae5efd36e0 17-Sep-2016 Shukang Zhou <shukang@google.com> Merge "Add a host-side test to verify /proc/[PID]/task/[TID]/stat exists."
f87389bcf6fd77744f000fb1f75d6f0062682158 17-Sep-2016 Erik Wolsheimer <ewol@google.com> DO NOT MERGE Fix CrossAppDragAndDropTests.
am: 0aaf0758c3

Change-Id: I99c24b9445b5d5d36d97fc4c8cd12a803ba7f653
eabecf212b43a58a99d8e1c414f7d8663b82d6ae 15-Sep-2016 Robert Carr <racarr@google.com> Add infrastructure for consuming WindowManager traces.

Add a parser for the SurfaceTrace format and an observer
interface. Includes a test demonstrating the functionality,
which verifies that a parent window and a SurfaceView will
be moved in the same transaction by listening to
transaction state and position updates.

Change-Id: Ief0f642dd4b4c28b1896e56579671e9320f6c876
ervices/activityandwindowmanager/util/src/android/server/cts/ActivityManagerTestBase.java
ervices/activityandwindowmanager/util/src/android/server/cts/SurfaceTraceReceiver.java
ervices/activityandwindowmanager/windowmanager/frametestapp/AndroidManifest.xml
ervices/activityandwindowmanager/windowmanager/frametestapp/src/android/server/frametestapp/MovingSurfaceViewTestActivity.java
ervices/activityandwindowmanager/windowmanager/src/android/server/cts/SurfaceViewMovementTests.java
0aaf0758c3963e1d05e982e93881f86aae569307 17-Sep-2016 Erik Wolsheimer <ewol@google.com> DO NOT MERGE Fix CrossAppDragAndDropTests.

BUG: 30120559
Change-Id: I5a37ecc21441684479c5dc2a65f1ac90dbdaa0e3
ervices/windowmanager/src/android/wm/cts/CrossAppDragAndDropTests.java
573e1fda3839edb9d1b9de23248aa685ea0940f7 30-Aug-2016 Shukang Zhou <shukang@google.com> Add a host-side test to verify /proc/[PID]/task/[TID]/stat exists.

Android Studio Performance Tools needs, as the shell user, to read
the files to collect live metrics data. It requires the files are in
a reasonable shape.

I have verified this test passing on a Nexus 6P running master branch.
I have also verified this test passing on a non-Nexus device (Samsung
S7 running 6.0.1). In order to run the test on the non-Nexus device,
I have ported this CL into mnc-dev branch (http://ag/1390776) which
will not be submitted. I will only submit this CL on master branch.

http://b/31183357 is tracking this work.

Change-Id: I8637481d72b3e2d2ebb1441f63d71a1e10c679a5
s/src/android/os/cts/ProcfsHostTests.java
c07b7f9a619b8ac0b773bfa88e4359c3596c6209 16-Sep-2016 Felipe Leme <felipeal@google.com> Disable testDeniesOnceForAllClearedWhenPackageRemoved when not supported.

Fixes: 31526269

Test: cts-tradefed run commandAndExit cts -m CtsAppSecurityHostTestCases -t android.appsecurity.cts.ScopedDirectoryAccessTest#testDeniesOnceForAllClearedWhenPackageRemoved
Change-Id: Ifd175c5362ac46b2d1efe028a82632b36916f48c
ppsecurity/test-apps/DocumentClient/src/com/android/cts/documentclient/ScopedDirectoryAccessClientTest.java
5b5b3f4679f3f47cb370aa3c6a501dd1501b6e5e 16-Sep-2016 Nicolas Prévot <nprevot@google.com> Merge "Fix flaky testWipeData cts test."
2274248675fa5e4dd5d5a735319ae6a7e0782bf9 16-Sep-2016 Nicolas Prevot <nprevot@google.com> Fix flaky testWipeData cts test.

Don't try to ensure in a managed profile device-side test that the
managed profile is being removed.
Just ensure in the host that the managed profile has indeed been
removed.

BUG: 31508902
Change-Id: Ic0fc6a167a469843653f0c3910ce81ef8ab9fc46
evicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/WipeDataTest.java
evicepolicy/src/com/android/cts/devicepolicy/ManagedProfileTest.java
f04aa2103ea5205db3fac2954a82d443fd676b7f 15-Sep-2016 Alex Klyubin <klyubin@google.com> Merge "Assert that all supported JAR signing algorithms are accepted" am: e060a2f1c9 am: 9921d54ac0 am: 6a1e8ecb71
am: cf05616d77

Change-Id: I5f0fc7ce0ddaf85f7856548ac1592326f9f4cad5
cf05616d77b50622c560db6b59017e692943b175 15-Sep-2016 Alex Klyubin <klyubin@google.com> Merge "Assert that all supported JAR signing algorithms are accepted" am: e060a2f1c9 am: 9921d54ac0
am: 6a1e8ecb71

Change-Id: If85b1f9000a7c49d6e0c40b3607cb754d2fb9f02
6a1e8ecb7162788afbc97b9967a9d0d50327e03a 15-Sep-2016 Alex Klyubin <klyubin@google.com> Merge "Assert that all supported JAR signing algorithms are accepted" am: e060a2f1c9
am: 9921d54ac0

Change-Id: I3dcdc582e2c5494e3ce584400ea779455ce90eab
e060a2f1c9415fe7379623085fe6b4eb1ffe5e69 15-Sep-2016 Treehugger Robot <treehugger-gerrit@google.com> Merge "Assert that all supported JAR signing algorithms are accepted"
2486026d748ca0a1df2f82070ddb9577541b409c 15-Sep-2016 Stephen Li <stephenli@google.com> Revert "Manually merge commit 'd3d4725f08ac2f27368cda123e87751231c9bd14' into nyc-dev"
am: d9006caf57

Change-Id: I33126a859f4cf14227f743b74fd965b3a0737e9b
d9006caf57db7fe3a5f563d70ef60169d07e7ff7 15-Sep-2016 Stephen Li <stephenli@google.com> Revert "Manually merge commit 'd3d4725f08ac2f27368cda123e87751231c9bd14' into nyc-dev"

This reverts commit 1192f209d52a9efd25d56a72a4805b61df9f3b24.

Change-Id: If8862e289eb6693650713ff819c8b05f65cdeda5
ecurity/src/android/cts/security/FileSystemPermissionTest.java
f684504f461432b3688cd61350765ff48754d65e 07-Sep-2016 Julius D'souza <jdsouza@google.com> Use tradefed AbiUtils

Bug: 31234712

Change-Id: I8803accae69a9fe8609acfe58f0a191b5c56b7c6
ppsecurity/src/android/appsecurity/cts/AppSecurityTests.java
ppsecurity/src/android/appsecurity/cts/ExternalStorageHostTest.java
ppsecurity/src/android/appsecurity/cts/PrivilegedUpdateTests.java
ppsecurity/src/android/appsecurity/cts/SplitTests.java
onkey/src/com/android/cts/monkey/AbstractMonkeyTest.java
s/src/android/os/cts/OsHostTests.java
heme/src/android/theme/cts/ThemeHostTest.java
i/src/android/ui/cts/InstallTimeTest.java
i/src/android/ui/cts/TaskSwitchingTest.java
sb/src/com/android/cts/usb/TestUsbTest.java
1192f209d52a9efd25d56a72a4805b61df9f3b24 14-Sep-2016 The Android Automerger <android-build-merger@google.com> Manually merge commit 'd3d4725f08ac2f27368cda123e87751231c9bd14' into nyc-dev

* commit 'd3d4725f08ac2f27368cda123e87751231c9bd14': (75 commits)
CameraITS scene5 should be skipped if read_3a is not supported
Added Bluetooth LE tests
Add CTS tests for LocalSocket read/write timeouts
Replace libziparchive-host with libziparchive
Fix clang-tidy warnings in libjnitest.
Fix clang-tidy warnings in librscpptest.
Fix clang-tidy warnings in openglperf2.
Fix clang-tidy warnings in audio_quality.
Replaces pcre with pcre2
Add Mockito to deps for Conscrypt tests and remove core-tests
simpleperf_cts_test: link libevent.
Add the new android kernel path to includes.
FileSystemPermisionTest: Drop unused method
Use mockito-target-minus-junit4.
android.core.tests.libcore.package.tests: add mockito to the dependencies
Fix misc-macro-parentheses warnings in cts.
[RenderScript] Fix refocus test to accommodate different rounding behavior for half_sqrt().
Remove data race from refocus test
Remove one test from MediaCodecTest#testCreateInputSurfaceErrors.
Return all errors, not only the first one.
...
939e2b253b798386ce53954626fd8044ecb18db6 14-Sep-2016 Alex Klyubin <klyubin@google.com> Assert that all supported JAR signing algorithms are accepted

JAR signing of APK produces a PKCS #7 CMS SignedData block. Inside
the block's SignerInfo objects, the signature algorithm (e.g., RSA
with SHA-256) can be referenced in two ways:
1. signatureAlgorithm field specifies both the public key algorithm
and the digest algorithm (e.g., 1.2.840.113549.1.1.11 for RSA with
SHA-256) in which case digestAlgorithm field is ignored, or
2. signatureAlgorithm field specifies just the public key algorithm
(e.g., 1.2.840.113549.1.1.1 for RSA) and digestAlgorithm field
specifies the digest (e.g., 2.16.840.1.101.3.4.2.1 for SHA-256).

This commit adds test vector APKs for the missing combinations:
* DSA specified using signatureAlgorithm + digestAlgorithm,
* ECDSA specified using signatureAlgorithm + digestAlgorithm,
* RSA specified using just the signatureAlgorithm.

This commit also renames the existing JAR signing test vector APKs
to match the naming scheme of the APKs added by this commit. APK names
now reflect the value of SignerInfo.signatureAlgorithm field of their
PKCS #7 CMS signature.

Bug: 27461702
Change-Id: Id7f4d48ab9b753a3aaa24170eb98a690faf5b70a
ppsecurity/res/pkgsigverify/v1-only-with-dsa-sha1-1.2.840.10040.4.1-1024.apk
ppsecurity/res/pkgsigverify/v1-only-with-dsa-sha1-1.2.840.10040.4.1-2048.apk
ppsecurity/res/pkgsigverify/v1-only-with-dsa-sha1-1.2.840.10040.4.1-3072.apk
ppsecurity/res/pkgsigverify/v1-only-with-dsa-sha1-1.2.840.10040.4.3-1024.apk
ppsecurity/res/pkgsigverify/v1-only-with-dsa-sha1-1.2.840.10040.4.3-2048.apk
ppsecurity/res/pkgsigverify/v1-only-with-dsa-sha1-1.2.840.10040.4.3-3072.apk
ppsecurity/res/pkgsigverify/v1-only-with-dsa-sha1-1024.apk
ppsecurity/res/pkgsigverify/v1-only-with-dsa-sha1-2048.apk
ppsecurity/res/pkgsigverify/v1-only-with-dsa-sha1-3072.apk
ppsecurity/res/pkgsigverify/v1-only-with-dsa-sha224-1.2.840.10040.4.1-1024.apk
ppsecurity/res/pkgsigverify/v1-only-with-dsa-sha224-1.2.840.10040.4.1-2048.apk
ppsecurity/res/pkgsigverify/v1-only-with-dsa-sha224-1.2.840.10040.4.1-3072.apk
ppsecurity/res/pkgsigverify/v1-only-with-dsa-sha224-1024.apk
ppsecurity/res/pkgsigverify/v1-only-with-dsa-sha224-2.16.840.1.101.3.4.3.1-1024.apk
ppsecurity/res/pkgsigverify/v1-only-with-dsa-sha224-2.16.840.1.101.3.4.3.1-2048.apk
ppsecurity/res/pkgsigverify/v1-only-with-dsa-sha224-2.16.840.1.101.3.4.3.1-3072.apk
ppsecurity/res/pkgsigverify/v1-only-with-dsa-sha224-2048.apk
ppsecurity/res/pkgsigverify/v1-only-with-dsa-sha224-3072.apk
ppsecurity/res/pkgsigverify/v1-only-with-dsa-sha256-1.2.840.10040.4.1-1024.apk
ppsecurity/res/pkgsigverify/v1-only-with-dsa-sha256-1.2.840.10040.4.1-2048.apk
ppsecurity/res/pkgsigverify/v1-only-with-dsa-sha256-1.2.840.10040.4.1-3072.apk
ppsecurity/res/pkgsigverify/v1-only-with-dsa-sha256-1024.apk
ppsecurity/res/pkgsigverify/v1-only-with-dsa-sha256-2.16.840.1.101.3.4.3.2-1024.apk
ppsecurity/res/pkgsigverify/v1-only-with-dsa-sha256-2.16.840.1.101.3.4.3.2-2048.apk
ppsecurity/res/pkgsigverify/v1-only-with-dsa-sha256-2.16.840.1.101.3.4.3.2-3072.apk
ppsecurity/res/pkgsigverify/v1-only-with-dsa-sha256-2048.apk
ppsecurity/res/pkgsigverify/v1-only-with-dsa-sha256-3072.apk
ppsecurity/res/pkgsigverify/v1-only-with-dsa-sha384-1024.apk
ppsecurity/res/pkgsigverify/v1-only-with-dsa-sha384-2.16.840.1.101.3.4.3.3-1024.apk
ppsecurity/res/pkgsigverify/v1-only-with-dsa-sha384-2.16.840.1.101.3.4.3.3-2048.apk
ppsecurity/res/pkgsigverify/v1-only-with-dsa-sha384-2.16.840.1.101.3.4.3.3-3072.apk
ppsecurity/res/pkgsigverify/v1-only-with-dsa-sha384-2048.apk
ppsecurity/res/pkgsigverify/v1-only-with-dsa-sha384-3072.apk
ppsecurity/res/pkgsigverify/v1-only-with-dsa-sha512-1024.apk
ppsecurity/res/pkgsigverify/v1-only-with-dsa-sha512-2.16.840.1.101.3.4.3.4-1024.apk
ppsecurity/res/pkgsigverify/v1-only-with-dsa-sha512-2.16.840.1.101.3.4.3.4-2048.apk
ppsecurity/res/pkgsigverify/v1-only-with-dsa-sha512-2.16.840.1.101.3.4.3.4-3072.apk
ppsecurity/res/pkgsigverify/v1-only-with-dsa-sha512-2048.apk
ppsecurity/res/pkgsigverify/v1-only-with-dsa-sha512-3072.apk
ppsecurity/res/pkgsigverify/v1-only-with-ecdsa-sha1-1.2.840.10045.2.1-p256.apk
ppsecurity/res/pkgsigverify/v1-only-with-ecdsa-sha1-1.2.840.10045.2.1-p384.apk
ppsecurity/res/pkgsigverify/v1-only-with-ecdsa-sha1-1.2.840.10045.2.1-p521.apk
ppsecurity/res/pkgsigverify/v1-only-with-ecdsa-sha1-1.2.840.10045.4.1-p256.apk
ppsecurity/res/pkgsigverify/v1-only-with-ecdsa-sha1-1.2.840.10045.4.1-p384.apk
ppsecurity/res/pkgsigverify/v1-only-with-ecdsa-sha1-1.2.840.10045.4.1-p521.apk
ppsecurity/res/pkgsigverify/v1-only-with-ecdsa-sha1-p256.apk
ppsecurity/res/pkgsigverify/v1-only-with-ecdsa-sha1-p384.apk
ppsecurity/res/pkgsigverify/v1-only-with-ecdsa-sha1-p521.apk
ppsecurity/res/pkgsigverify/v1-only-with-ecdsa-sha224-1.2.840.10045.2.1-p256.apk
ppsecurity/res/pkgsigverify/v1-only-with-ecdsa-sha224-1.2.840.10045.2.1-p384.apk
ppsecurity/res/pkgsigverify/v1-only-with-ecdsa-sha224-1.2.840.10045.2.1-p521.apk
ppsecurity/res/pkgsigverify/v1-only-with-ecdsa-sha224-1.2.840.10045.4.3.1-p256.apk
ppsecurity/res/pkgsigverify/v1-only-with-ecdsa-sha224-1.2.840.10045.4.3.1-p384.apk
ppsecurity/res/pkgsigverify/v1-only-with-ecdsa-sha224-1.2.840.10045.4.3.1-p521.apk
ppsecurity/res/pkgsigverify/v1-only-with-ecdsa-sha224-p256.apk
ppsecurity/res/pkgsigverify/v1-only-with-ecdsa-sha224-p384.apk
ppsecurity/res/pkgsigverify/v1-only-with-ecdsa-sha224-p521.apk
ppsecurity/res/pkgsigverify/v1-only-with-ecdsa-sha256-1.2.840.10045.2.1-p256.apk
ppsecurity/res/pkgsigverify/v1-only-with-ecdsa-sha256-1.2.840.10045.2.1-p384.apk
ppsecurity/res/pkgsigverify/v1-only-with-ecdsa-sha256-1.2.840.10045.2.1-p521.apk
ppsecurity/res/pkgsigverify/v1-only-with-ecdsa-sha256-1.2.840.10045.4.3.2-p256.apk
ppsecurity/res/pkgsigverify/v1-only-with-ecdsa-sha256-1.2.840.10045.4.3.2-p384.apk
ppsecurity/res/pkgsigverify/v1-only-with-ecdsa-sha256-1.2.840.10045.4.3.2-p521.apk
ppsecurity/res/pkgsigverify/v1-only-with-ecdsa-sha256-p256.apk
ppsecurity/res/pkgsigverify/v1-only-with-ecdsa-sha256-p384.apk
ppsecurity/res/pkgsigverify/v1-only-with-ecdsa-sha256-p521.apk
ppsecurity/res/pkgsigverify/v1-only-with-ecdsa-sha384-1.2.840.10045.2.1-p256.apk
ppsecurity/res/pkgsigverify/v1-only-with-ecdsa-sha384-1.2.840.10045.2.1-p384.apk
ppsecurity/res/pkgsigverify/v1-only-with-ecdsa-sha384-1.2.840.10045.2.1-p521.apk
ppsecurity/res/pkgsigverify/v1-only-with-ecdsa-sha384-1.2.840.10045.4.3.3-p256.apk
ppsecurity/res/pkgsigverify/v1-only-with-ecdsa-sha384-1.2.840.10045.4.3.3-p384.apk
ppsecurity/res/pkgsigverify/v1-only-with-ecdsa-sha384-1.2.840.10045.4.3.3-p521.apk
ppsecurity/res/pkgsigverify/v1-only-with-ecdsa-sha384-p256.apk
ppsecurity/res/pkgsigverify/v1-only-with-ecdsa-sha384-p384.apk
ppsecurity/res/pkgsigverify/v1-only-with-ecdsa-sha384-p521.apk
ppsecurity/res/pkgsigverify/v1-only-with-ecdsa-sha512-1.2.840.10045.2.1-p256.apk
ppsecurity/res/pkgsigverify/v1-only-with-ecdsa-sha512-1.2.840.10045.2.1-p384.apk
ppsecurity/res/pkgsigverify/v1-only-with-ecdsa-sha512-1.2.840.10045.2.1-p521.apk
ppsecurity/res/pkgsigverify/v1-only-with-ecdsa-sha512-1.2.840.10045.4.3.4-p256.apk
ppsecurity/res/pkgsigverify/v1-only-with-ecdsa-sha512-1.2.840.10045.4.3.4-p384.apk
ppsecurity/res/pkgsigverify/v1-only-with-ecdsa-sha512-1.2.840.10045.4.3.4-p521.apk
ppsecurity/res/pkgsigverify/v1-only-with-ecdsa-sha512-p256.apk
ppsecurity/res/pkgsigverify/v1-only-with-ecdsa-sha512-p384.apk
ppsecurity/res/pkgsigverify/v1-only-with-ecdsa-sha512-p521.apk
ppsecurity/res/pkgsigverify/v1-only-with-rsa-pkcs1-md5-1.2.840.113549.1.1.1-1024.apk
ppsecurity/res/pkgsigverify/v1-only-with-rsa-pkcs1-md5-1.2.840.113549.1.1.1-16384.apk
ppsecurity/res/pkgsigverify/v1-only-with-rsa-pkcs1-md5-1.2.840.113549.1.1.1-2048.apk
ppsecurity/res/pkgsigverify/v1-only-with-rsa-pkcs1-md5-1.2.840.113549.1.1.1-3072.apk
ppsecurity/res/pkgsigverify/v1-only-with-rsa-pkcs1-md5-1.2.840.113549.1.1.1-4096.apk
ppsecurity/res/pkgsigverify/v1-only-with-rsa-pkcs1-md5-1.2.840.113549.1.1.1-8192.apk
ppsecurity/res/pkgsigverify/v1-only-with-rsa-pkcs1-md5-1.2.840.113549.1.1.4-1024.apk
ppsecurity/res/pkgsigverify/v1-only-with-rsa-pkcs1-md5-1.2.840.113549.1.1.4-16384.apk
ppsecurity/res/pkgsigverify/v1-only-with-rsa-pkcs1-md5-1.2.840.113549.1.1.4-2048.apk
ppsecurity/res/pkgsigverify/v1-only-with-rsa-pkcs1-md5-1.2.840.113549.1.1.4-3072.apk
ppsecurity/res/pkgsigverify/v1-only-with-rsa-pkcs1-md5-1.2.840.113549.1.1.4-4096.apk
ppsecurity/res/pkgsigverify/v1-only-with-rsa-pkcs1-md5-1.2.840.113549.1.1.4-8192.apk
ppsecurity/res/pkgsigverify/v1-only-with-rsa-pkcs1-md5-1024.apk
ppsecurity/res/pkgsigverify/v1-only-with-rsa-pkcs1-md5-16384.apk
ppsecurity/res/pkgsigverify/v1-only-with-rsa-pkcs1-md5-2048.apk
ppsecurity/res/pkgsigverify/v1-only-with-rsa-pkcs1-md5-3072.apk
ppsecurity/res/pkgsigverify/v1-only-with-rsa-pkcs1-md5-4096.apk
ppsecurity/res/pkgsigverify/v1-only-with-rsa-pkcs1-md5-8192.apk
ppsecurity/res/pkgsigverify/v1-only-with-rsa-pkcs1-sha1-1.2.840.113549.1.1.1-1024.apk
ppsecurity/res/pkgsigverify/v1-only-with-rsa-pkcs1-sha1-1.2.840.113549.1.1.1-16384.apk
ppsecurity/res/pkgsigverify/v1-only-with-rsa-pkcs1-sha1-1.2.840.113549.1.1.1-2048.apk
ppsecurity/res/pkgsigverify/v1-only-with-rsa-pkcs1-sha1-1.2.840.113549.1.1.1-3072.apk
ppsecurity/res/pkgsigverify/v1-only-with-rsa-pkcs1-sha1-1.2.840.113549.1.1.1-4096.apk
ppsecurity/res/pkgsigverify/v1-only-with-rsa-pkcs1-sha1-1.2.840.113549.1.1.1-8192.apk
ppsecurity/res/pkgsigverify/v1-only-with-rsa-pkcs1-sha1-1.2.840.113549.1.1.5-1024.apk
ppsecurity/res/pkgsigverify/v1-only-with-rsa-pkcs1-sha1-1.2.840.113549.1.1.5-16384.apk
ppsecurity/res/pkgsigverify/v1-only-with-rsa-pkcs1-sha1-1.2.840.113549.1.1.5-2048.apk
ppsecurity/res/pkgsigverify/v1-only-with-rsa-pkcs1-sha1-1.2.840.113549.1.1.5-3072.apk
ppsecurity/res/pkgsigverify/v1-only-with-rsa-pkcs1-sha1-1.2.840.113549.1.1.5-4096.apk
ppsecurity/res/pkgsigverify/v1-only-with-rsa-pkcs1-sha1-1.2.840.113549.1.1.5-8192.apk
ppsecurity/res/pkgsigverify/v1-only-with-rsa-pkcs1-sha1-1024.apk
ppsecurity/res/pkgsigverify/v1-only-with-rsa-pkcs1-sha1-16384.apk
ppsecurity/res/pkgsigverify/v1-only-with-rsa-pkcs1-sha1-2048.apk
ppsecurity/res/pkgsigverify/v1-only-with-rsa-pkcs1-sha1-3072.apk
ppsecurity/res/pkgsigverify/v1-only-with-rsa-pkcs1-sha1-4096.apk
ppsecurity/res/pkgsigverify/v1-only-with-rsa-pkcs1-sha1-8192.apk
ppsecurity/res/pkgsigverify/v1-only-with-rsa-pkcs1-sha224-1.2.840.113549.1.1.1-1024.apk
ppsecurity/res/pkgsigverify/v1-only-with-rsa-pkcs1-sha224-1.2.840.113549.1.1.1-16384.apk
ppsecurity/res/pkgsigverify/v1-only-with-rsa-pkcs1-sha224-1.2.840.113549.1.1.1-2048.apk
ppsecurity/res/pkgsigverify/v1-only-with-rsa-pkcs1-sha224-1.2.840.113549.1.1.1-3072.apk
ppsecurity/res/pkgsigverify/v1-only-with-rsa-pkcs1-sha224-1.2.840.113549.1.1.1-4096.apk
ppsecurity/res/pkgsigverify/v1-only-with-rsa-pkcs1-sha224-1.2.840.113549.1.1.1-8192.apk
ppsecurity/res/pkgsigverify/v1-only-with-rsa-pkcs1-sha224-1.2.840.113549.1.1.14-1024.apk
ppsecurity/res/pkgsigverify/v1-only-with-rsa-pkcs1-sha224-1.2.840.113549.1.1.14-16384.apk
ppsecurity/res/pkgsigverify/v1-only-with-rsa-pkcs1-sha224-1.2.840.113549.1.1.14-2048.apk
ppsecurity/res/pkgsigverify/v1-only-with-rsa-pkcs1-sha224-1.2.840.113549.1.1.14-3072.apk
ppsecurity/res/pkgsigverify/v1-only-with-rsa-pkcs1-sha224-1.2.840.113549.1.1.14-4096.apk
ppsecurity/res/pkgsigverify/v1-only-with-rsa-pkcs1-sha224-1.2.840.113549.1.1.14-8192.apk
ppsecurity/res/pkgsigverify/v1-only-with-rsa-pkcs1-sha224-1024.apk
ppsecurity/res/pkgsigverify/v1-only-with-rsa-pkcs1-sha224-16384.apk
ppsecurity/res/pkgsigverify/v1-only-with-rsa-pkcs1-sha224-2048.apk
ppsecurity/res/pkgsigverify/v1-only-with-rsa-pkcs1-sha224-3072.apk
ppsecurity/res/pkgsigverify/v1-only-with-rsa-pkcs1-sha224-4096.apk
ppsecurity/res/pkgsigverify/v1-only-with-rsa-pkcs1-sha224-8192.apk
ppsecurity/res/pkgsigverify/v1-only-with-rsa-pkcs1-sha256-1.2.840.113549.1.1.1-1024.apk
ppsecurity/res/pkgsigverify/v1-only-with-rsa-pkcs1-sha256-1.2.840.113549.1.1.1-16384.apk
ppsecurity/res/pkgsigverify/v1-only-with-rsa-pkcs1-sha256-1.2.840.113549.1.1.1-2048.apk
ppsecurity/res/pkgsigverify/v1-only-with-rsa-pkcs1-sha256-1.2.840.113549.1.1.1-3072.apk
ppsecurity/res/pkgsigverify/v1-only-with-rsa-pkcs1-sha256-1.2.840.113549.1.1.1-4096.apk
ppsecurity/res/pkgsigverify/v1-only-with-rsa-pkcs1-sha256-1.2.840.113549.1.1.1-8192.apk
ppsecurity/res/pkgsigverify/v1-only-with-rsa-pkcs1-sha256-1.2.840.113549.1.1.11-1024.apk
ppsecurity/res/pkgsigverify/v1-only-with-rsa-pkcs1-sha256-1.2.840.113549.1.1.11-16384.apk
ppsecurity/res/pkgsigverify/v1-only-with-rsa-pkcs1-sha256-1.2.840.113549.1.1.11-2048.apk
ppsecurity/res/pkgsigverify/v1-only-with-rsa-pkcs1-sha256-1.2.840.113549.1.1.11-3072.apk
ppsecurity/res/pkgsigverify/v1-only-with-rsa-pkcs1-sha256-1.2.840.113549.1.1.11-4096.apk
ppsecurity/res/pkgsigverify/v1-only-with-rsa-pkcs1-sha256-1.2.840.113549.1.1.11-8192.apk
ppsecurity/res/pkgsigverify/v1-only-with-rsa-pkcs1-sha256-1024.apk
ppsecurity/res/pkgsigverify/v1-only-with-rsa-pkcs1-sha256-16384.apk
ppsecurity/res/pkgsigverify/v1-only-with-rsa-pkcs1-sha256-2048.apk
ppsecurity/res/pkgsigverify/v1-only-with-rsa-pkcs1-sha256-3072.apk
ppsecurity/res/pkgsigverify/v1-only-with-rsa-pkcs1-sha256-4096.apk
ppsecurity/res/pkgsigverify/v1-only-with-rsa-pkcs1-sha256-8192.apk
ppsecurity/res/pkgsigverify/v1-only-with-rsa-pkcs1-sha384-1.2.840.113549.1.1.1-1024.apk
ppsecurity/res/pkgsigverify/v1-only-with-rsa-pkcs1-sha384-1.2.840.113549.1.1.1-16384.apk
ppsecurity/res/pkgsigverify/v1-only-with-rsa-pkcs1-sha384-1.2.840.113549.1.1.1-2048.apk
ppsecurity/res/pkgsigverify/v1-only-with-rsa-pkcs1-sha384-1.2.840.113549.1.1.1-3072.apk
ppsecurity/res/pkgsigverify/v1-only-with-rsa-pkcs1-sha384-1.2.840.113549.1.1.1-4096.apk
ppsecurity/res/pkgsigverify/v1-only-with-rsa-pkcs1-sha384-1.2.840.113549.1.1.1-8192.apk
ppsecurity/res/pkgsigverify/v1-only-with-rsa-pkcs1-sha384-1.2.840.113549.1.1.12-1024.apk
ppsecurity/res/pkgsigverify/v1-only-with-rsa-pkcs1-sha384-1.2.840.113549.1.1.12-16384.apk
ppsecurity/res/pkgsigverify/v1-only-with-rsa-pkcs1-sha384-1.2.840.113549.1.1.12-2048.apk
ppsecurity/res/pkgsigverify/v1-only-with-rsa-pkcs1-sha384-1.2.840.113549.1.1.12-3072.apk
ppsecurity/res/pkgsigverify/v1-only-with-rsa-pkcs1-sha384-1.2.840.113549.1.1.12-4096.apk
ppsecurity/res/pkgsigverify/v1-only-with-rsa-pkcs1-sha384-1.2.840.113549.1.1.12-8192.apk
ppsecurity/res/pkgsigverify/v1-only-with-rsa-pkcs1-sha384-1024.apk
ppsecurity/res/pkgsigverify/v1-only-with-rsa-pkcs1-sha384-16384.apk
ppsecurity/res/pkgsigverify/v1-only-with-rsa-pkcs1-sha384-2048.apk
ppsecurity/res/pkgsigverify/v1-only-with-rsa-pkcs1-sha384-3072.apk
ppsecurity/res/pkgsigverify/v1-only-with-rsa-pkcs1-sha384-4096.apk
ppsecurity/res/pkgsigverify/v1-only-with-rsa-pkcs1-sha384-8192.apk
ppsecurity/res/pkgsigverify/v1-only-with-rsa-pkcs1-sha512-1.2.840.113549.1.1.1-1024.apk
ppsecurity/res/pkgsigverify/v1-only-with-rsa-pkcs1-sha512-1.2.840.113549.1.1.1-16384.apk
ppsecurity/res/pkgsigverify/v1-only-with-rsa-pkcs1-sha512-1.2.840.113549.1.1.1-2048.apk
ppsecurity/res/pkgsigverify/v1-only-with-rsa-pkcs1-sha512-1.2.840.113549.1.1.1-3072.apk
ppsecurity/res/pkgsigverify/v1-only-with-rsa-pkcs1-sha512-1.2.840.113549.1.1.1-4096.apk
ppsecurity/res/pkgsigverify/v1-only-with-rsa-pkcs1-sha512-1.2.840.113549.1.1.1-8192.apk
ppsecurity/res/pkgsigverify/v1-only-with-rsa-pkcs1-sha512-1.2.840.113549.1.1.13-1024.apk
ppsecurity/res/pkgsigverify/v1-only-with-rsa-pkcs1-sha512-1.2.840.113549.1.1.13-16384.apk
ppsecurity/res/pkgsigverify/v1-only-with-rsa-pkcs1-sha512-1.2.840.113549.1.1.13-2048.apk
ppsecurity/res/pkgsigverify/v1-only-with-rsa-pkcs1-sha512-1.2.840.113549.1.1.13-3072.apk
ppsecurity/res/pkgsigverify/v1-only-with-rsa-pkcs1-sha512-1.2.840.113549.1.1.13-4096.apk
ppsecurity/res/pkgsigverify/v1-only-with-rsa-pkcs1-sha512-1.2.840.113549.1.1.13-8192.apk
ppsecurity/res/pkgsigverify/v1-only-with-rsa-pkcs1-sha512-1024.apk
ppsecurity/res/pkgsigverify/v1-only-with-rsa-pkcs1-sha512-16384.apk
ppsecurity/res/pkgsigverify/v1-only-with-rsa-pkcs1-sha512-2048.apk
ppsecurity/res/pkgsigverify/v1-only-with-rsa-pkcs1-sha512-3072.apk
ppsecurity/res/pkgsigverify/v1-only-with-rsa-pkcs1-sha512-4096.apk
ppsecurity/res/pkgsigverify/v1-only-with-rsa-pkcs1-sha512-8192.apk
ppsecurity/src/android/appsecurity/cts/PkgInstallSignatureVerificationTest.java
875315e11383c8434aa4b6fea22614d90c99475a 13-Sep-2016 Daniel Rosenberg <drosen@google.com> Merge "Add multiview consistency test" am: 4ea14d5d20 am: 3e371dd388 am: 520abbce98
am: b8e8e245e1

Change-Id: I87304795f2e2069a41d072ddda2d0e6a42f97f3f
b8e8e245e180029916eaa7ce74901eb591a747bb 13-Sep-2016 Daniel Rosenberg <drosen@google.com> Merge "Add multiview consistency test" am: 4ea14d5d20 am: 3e371dd388
am: 520abbce98

Change-Id: Ie979142adb08e6bfe9c0691313b2bce61a7eeec3
520abbce98b19e0134ab652c534a75dccbb366fa 13-Sep-2016 Daniel Rosenberg <drosen@google.com> Merge "Add multiview consistency test" am: 4ea14d5d20
am: 3e371dd388

Change-Id: I9057f839b25b775d10d8037ccc80598a9838783e
4ea14d5d20b96ce95ca7da9070d04d42ef641b6b 13-Sep-2016 Daniel Rosenberg <drosen@google.com> Merge "Add multiview consistency test"
c80693fffb0c30ac24a4c4fc221693722d57f2b2 13-Sep-2016 Nicolas Boichat <drinkcat@google.com> PacketReflector: Ignore IPv6 flow labels in ICMPv6 test

Since Linux kernel 4.2, net.ipv6.auto_flowlabels is set by default, and
therefore the request and reply may have different IPv6 flow label.

Bug: 31444338
Test: On a kernel 4.4 board, run com.android.cts.net.HostsideNetworkTests#testVpn
Test: On a kernel 3.18 board, run echo 1 > /proc/sys/net/ipv6/auto_flowlabels, then
com.android.cts.net.HostsideNetworkTests#testVpn
Change-Id: I913bbf91574239a24cb32ae908834eb951ea2010
et/app/src/com/android/cts/net/hostside/PacketReflector.java
8b62d242e29a08846b24f6d381cb88c53d8f525b 13-Sep-2016 Makoto Onuki <omakoto@google.com> CTS for test-only-flag inheritance am: 1feec9ea45 am: 75104fc3c7
am: 4ed1d12ee5

Change-Id: Id29b183ce78634d553597d8f6a3467647f50c121
4ed1d12ee5bfcbb7f77723bf2a49e711e58da957 12-Sep-2016 Makoto Onuki <omakoto@google.com> CTS for test-only-flag inheritance am: 1feec9ea45
am: 75104fc3c7

Change-Id: Ia9bc204e6337ddf7ca79a9255576643c48fd2db0
75104fc3c72be34bee17b40575ccb337129eb517 12-Sep-2016 Makoto Onuki <omakoto@google.com> CTS for test-only-flag inheritance
am: 1feec9ea45

Change-Id: I6ad82afe13fbe4e906a6e8f7c86360964246e0f8
1feec9ea45f2c604ec5fbd62da62f7d8f218173d 09-Sep-2016 Makoto Onuki <omakoto@google.com> CTS for test-only-flag inheritance

Bug 31382361

Change-Id: I121bf9de24a9d995f89954d944a9f8485c89ef3b
evicepolicy/app/AccountCheck/TestOnlyOwnerUpdate/Android.mk
evicepolicy/app/AccountCheck/TestOnlyOwnerUpdate/AndroidManifest.xml
evicepolicy/app/AccountCheck/TestOnlyOwnerUpdate/res/xml/device_admin.xml
evicepolicy/src/com/android/cts/devicepolicy/AccountCheckHostSideTest.java
0717ba4c819b12cebc72ae39ba71afefa6853a7d 03-Sep-2016 Srinath Sridharan <srinathsr@google.com> Increasing dhrystone failure threshold to 10%.

bug: 31215027
Change-Id: Id38d029a6d874c4afd9fa70df682d0b5c515cab8

Signed-off-by: Christian Bejram <cbejram@google.com>
ustainedperf/src/android/SustainedPerformance/cts/SustainedPerformanceHostTest.java
57f9e9f32f1bcf3532201e312120cc6f678566bf 23-Aug-2016 Srinath Sridharan <srinathsr@google.com> Fix sustained performance CTS test failures.

Two problems:
1) Dhrystone loop count is too low causing too much deviation in
performance across runs

2) It is possible that dhrystone instances can shuffle
between heterogeneous cores introducing performance variabilities.

Fix to the test is two fold:
1) Increase the number of loop iterations.
2) Pin Dhrystone instances on one of the clusters.

bug: 30711691
Change-Id: Ifc07d8c3999c38465a96d7105a05091888bda9b0

Signed-off-by: Christian Bejram <cbejram@google.com>
ustainedperf/src/android/SustainedPerformance/cts/SustainedPerformanceHostTest.java
d3d4725f08ac2f27368cda123e87751231c9bd14 09-Sep-2016 Daniel Xie <dxie@google.com> Merge "CameraITS scene5 should be skipped if read_3a is not supported" into nougat-cts-dev
ea5147724098030f29477f56214af050b1799f95 09-Sep-2016 Guang Zhu <guangzhu@google.com> create a dedicated test config for running CTS on virtual devices

- the test config can be added with exclusion rules incrementally
to select out only those test cases that'd make sense for
virtual devices
- also excluded some test cases in CtsDevicePolicyManagerTestCases
known to be not working on virtual devices because they affects
network connectivity which breaks host/device connection

Bug: 30971839
Bug: 31015577
Change-Id: Ibfc31ba49ffb8ce0702bef4717a652078fd3e87e
evicepolicy/Android.mk
evicepolicy/src/com/android/cts/devicepolicy/DeviceAndProfileOwnerTest.java
ad3e88443eb4a8420ab57f1d8a59b0f1d0a839c0 08-Sep-2016 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Restore right number of expected intents."
24488369d21d8522aaf47fec8d5470e1cb72f6e0 08-Sep-2016 Makoto Onuki <omakoto@google.com> resolve merge conflicts of 4eeec83 to master

Change-Id: I4da52a444576f47348f00a636219f7c300dad671
a79464d27106249c17ff903c9afe8b1bc5a5b984 08-Sep-2016 Felipe Leme <felipeal@google.com> Restore right number of expected intents.

They were changed during a refactoring, which is now finished.

Test: cts-tradefed run commandAndExit cts -m CtsHostsideNetworkTests -t com.android.cts.net.HostsideRestrictBackgroundNetworkTests#testDataSaverMode_enabled

Fixes: 28791717
Change-Id: Ia5e99c0c3d421b7d3b58e11ddde4da222d5f8c15
et/app/src/com/android/cts/net/hostside/DataSaverModeTest.java
4eeec8399b3436d6a734e13f55d2fdc232a0dbab 08-Sep-2016 Makoto Onuki <omakoto@google.com> CTS for the new account check before installing PO/DO. am: 6e2e5fd86f
am: 5c8e4d24d6

Change-Id: I4f2d7f8a48735e1df5c7a50a47050839812cf887
5c8e4d24d63ddf0be3cdd30e2ed34083ca71de8c 08-Sep-2016 Makoto Onuki <omakoto@google.com> CTS for the new account check before installing PO/DO.
am: 6e2e5fd86f

Change-Id: Iac3a5d150c98ec67bd7ab32479899a1d59b527c1
0bc67f5fd24d94dc9c1cecd80951677b1698875b 08-Sep-2016 Makoto Onuki <omakoto@google.com> Merge "CTS for the new account check before installing PO/DO." into nyc-mr1-dev
9254134d5b469fc56a8f5b8988a86de4c2650ea2 08-Sep-2016 Nicolas Prévot <nprevot@google.com> Merge "Cts test that uri change notifications work across profiles."
af5f471ed0c8265694f675bdf63ce029e46e451a 08-Sep-2016 Ian Rogers <irogers@google.com> Fix to CtsHostsideNetworkTestsAidl Java library kind. am: ffef2ad192 am: 2984490109
am: 6a3429f7df

Change-Id: I9c7829dbf1798003294da17dfd8e11ca128bd2f2
6a3429f7df5deb4510b55fa330fbad49fe2a3dbf 08-Sep-2016 Ian Rogers <irogers@google.com> Fix to CtsHostsideNetworkTestsAidl Java library kind. am: ffef2ad192
am: 2984490109

Change-Id: I2892485750d0fb055b20af40a54ea601e9ff5a0e
0d15ec71225920ab61593764e1954c83f8aca4d5 08-Sep-2016 Ian Rogers <irogers@google.com> Fix Java library dependencies am: 92c4c226b3
am: 8896190e87

Change-Id: I11cf95511f9ad2cd830be24551f0d68cdeac476d
ffef2ad192cabd0cbaf105d87276dd0cc16c28dd 26-May-2016 Ian Rogers <irogers@google.com> Fix to CtsHostsideNetworkTestsAidl Java library kind.

Fixes Error Prone build.
Bug: 27723540

(cherry picked from commit ad015ac64d0e510cc040a83b1d545e3a1405b1f7)

Change-Id: I150aefde61615023e86e19645a46e432a0183705
et/aidl/Android.mk
92c4c226b352cf6724327f449f524c3803a46f33 04-May-2016 Ian Rogers <irogers@google.com> Fix Java library dependencies

Fixes javac-check build.

(cherry picked from commit df81761e0a334f2079a86004fab5edd816db5dea)
Bug: 27723540

Change-Id: Id82a83fd1154f9f7358afac2ff8ed88c30b221ed
evicepolicy/app/LauncherTests/Android.mk
evicepolicy/app/ManagedProfile/Android.mk
umberblocking/app/Android.mk
9d5651c9f3d65630cea874caae5c7c4cec4f0d06 08-Sep-2016 sj.cha <sj.cha@lge.com> Merge "Add some failure comments in VpnTest" am: 42751b84d7 am: 060aa462cb am: 34296956da
am: dd40eb6d29

Change-Id: I778fe7e00000ad936855b76feacf69a030c92a60
dd40eb6d297f83c5aedbb3f51af9afe343ff9dda 08-Sep-2016 sj.cha <sj.cha@lge.com> Merge "Add some failure comments in VpnTest" am: 42751b84d7 am: 060aa462cb
am: 34296956da

Change-Id: I225d762890934b8f2355d4a2783cc6d2227a90f3
34296956da512d7e614d34b219b4dc7968613c7a 08-Sep-2016 sj.cha <sj.cha@lge.com> Merge "Add some failure comments in VpnTest" am: 42751b84d7
am: 060aa462cb

Change-Id: Ifb3c10aa186d99add321102d503007b857eba78e
4cc4075c19862d1c5245365de41b290983ed01ac 07-Sep-2016 Agatha Man <agathaman@google.com> CTS: Add host-side EDI

Bug: 31042083
Change-Id: I131f5831bf4448d2fd2ada4285e6c2fb2c0b5180
ample/src/android/sample/cts/SampleHostDeviceInfo.java
6a63f5d46e4e06d0e96982181eb66df258a22fb7 01-Sep-2016 Daniel Rosenberg <drosen@google.com> Add multiview consistency test

This tests that apps with different permission levels cannot
cause eachother to see stale permission values by moving
folders between eachother.

Change-Id: Ib102cb59028396f01f0a348dbf42b0bfe93192fb
ppsecurity/src/android/appsecurity/cts/ExternalStorageHostTest.java
ppsecurity/test-apps/ReadExternalStorageApp/src/com/android/cts/readexternalstorageapp/ReadMultiViewTest.java
ppsecurity/test-apps/WriteExternalStorageApp/src/com/android/cts/writeexternalstorageapp/WriteMultiViewTest.java
bd7ae17424edb47db58cd9b1f7a19ccc3562394e 07-Sep-2016 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Don't run testCantSetUserRestriction() on rooted devices."
bd82ec675153b6f2b59904a0b455e16b35d91752 07-Sep-2016 Sudheer Shanka <sudheersai@google.com> Don't run testCantSetUserRestriction() on rooted devices.

This will also help in confirming if this is reason for the test
failures.

Bug: 31307295
Test: cts-tradefed run singleCommand cts-dev --module CtsMultiUserHostTestCases
Change-Id: I8f1f229c26955a3b27c6b3d68513a96b49d22afb
ultiuser/src/android/host/multiuser/CreateUsersPermissionTest.java
23f7892190d294e2152fbc1d9571ea38a1a35228 18-Aug-2016 Vladislav Kaznacheev <kaznacheev@google.com> DO NOT MERGE: Improve task list parsing in CrossAppDragAndDropTests

In order to find a specific activity CrossAppDragAndDropTests looks
for this activity's name in the output of "am stack list" command.

Turns out that in addition to the usual place (the second token
in the line) an activity name may also occur in lines related
to other activities (after the "topActivity" key). This breaks the test.

This is fixed by looking for the activity name only before the first
occurrence of "topActivity" substring.

Bug: 30919524
Change-Id: I112f0ea3997177032882984b97dcf9212f327cec
ervices/windowmanager/src/android/wm/cts/CrossAppDragAndDropTests.java
6e2e5fd86fff6cebe2d26bd4b0b1c55f98c7fce0 02-Sep-2016 Makoto Onuki <omakoto@google.com> CTS for the new account check before installing PO/DO.

- Non-test-only PO/DO must not be installable when there are
accounts.

- Test-only PO/DO must be installable when there are only
"compatible" accounts, but not when there are "incompatible"
accounts.

Bug 28928996

Change-Id: I9cdc9d59e45500e454b4c5de01fb0626cf236488
evicepolicy/app/AccountCheck/Android.mk
evicepolicy/app/AccountCheck/Auth/Android.mk
evicepolicy/app/AccountCheck/Auth/AndroidManifest.xml
evicepolicy/app/AccountCheck/Auth/res/xml/authenticator.xml
evicepolicy/app/AccountCheck/Auth/src/com/android/cts/devicepolicy/accountcheck/AccountCheckTest.java
evicepolicy/app/AccountCheck/Auth/src/com/android/cts/devicepolicy/accountcheck/TestAuthenticator.java
evicepolicy/app/AccountCheck/NonTestOnlyOwner/Android.mk
evicepolicy/app/AccountCheck/NonTestOnlyOwner/AndroidManifest.xml
evicepolicy/app/AccountCheck/NonTestOnlyOwner/res/xml/device_admin.xml
evicepolicy/app/AccountCheck/TestOnlyOwner/Android.mk
evicepolicy/app/AccountCheck/TestOnlyOwner/AndroidManifest.xml
evicepolicy/app/AccountCheck/TestOnlyOwner/res/xml/device_admin.xml
evicepolicy/app/AccountCheck/src-owner/com/android/cts/devicepolicy/accountcheck/owner/AdminReceiver.java
evicepolicy/src/com/android/cts/devicepolicy/AccountCheckHostSideTest.java
evicepolicy/src/com/android/cts/devicepolicy/BaseDevicePolicyTest.java
bcdec1840af6057a5548b58c87f6bdf26076bda7 23-May-2016 Nicolas Prevot <nprevot@google.com> Cts test that uri change notifications work across profiles.

Test that:
- an app can notify a uri change across profiles.
- an app can observe a uri change across profiles.

BUG:28830382
Change-Id: I5d1450d953cb0f59eb216ed84393150edb553645
evicepolicy/app/IntentReceiver/AndroidManifest.xml
evicepolicy/app/IntentReceiver/src/com/android/cts/intent/receiver/IntentReceiverActivity.java
evicepolicy/app/IntentSender/src/com/android/cts/intent/sender/ContentTest.java
evicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/CrossProfileUtils.java
a92993b3d6e45f66266e87acd6612ae98af51218 03-Sep-2016 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Fixed number wrong number of expected intents."
54b8de171abe67fb9daecfc0f9c4fae3e8dd90a0 03-Sep-2016 Srinath Sridharan <srinathsr@google.com> Increasing dhrystone failure threshold to 10%. am: 02cc465c0b am: 3f29d22cb6 am: eba9301a1d
am: 9ec1d844ad

Change-Id: I0f2e1fc1a884bd0dc7227f10e3f36349bb38ee57
9ec1d844ad344c532eb135874db25d1b2e2bb863 03-Sep-2016 Srinath Sridharan <srinathsr@google.com> Increasing dhrystone failure threshold to 10%. am: 02cc465c0b am: 3f29d22cb6
am: eba9301a1d

Change-Id: I7916d5bbbc28d5cb12fbab361554e41250ba9d28
eba9301a1dd9239ccf6f7eee9d4ed511e5a7532f 03-Sep-2016 Srinath Sridharan <srinathsr@google.com> Increasing dhrystone failure threshold to 10%. am: 02cc465c0b
am: 3f29d22cb6

Change-Id: Ic61eaab09aa090f3b7c8f21d5284675c98bbe821
3f29d22cb6d2fa215a2d45c82b3a8d0e522537d0 03-Sep-2016 Srinath Sridharan <srinathsr@google.com> Increasing dhrystone failure threshold to 10%.
am: 02cc465c0b

Change-Id: Ifb670d0164ea29d35e095231f2ccb2a05b96c6a8
ccce44522505a6cfbfd992b85add7540c560228f 03-Sep-2016 Andrew Scull <ascull@google.com> Correct CTS's use of isActivePasswordSufficient. am: 0c1055d574 am: d98b1e3f62
am: 819f2212f3

Change-Id: I6bfc8f5ca25bfccfdabd77f8ecc29578c22d522f
819f2212f3de3ad655182ff7842eae0fc08f8c52 03-Sep-2016 Andrew Scull <ascull@google.com> Correct CTS's use of isActivePasswordSufficient. am: 0c1055d574
am: d98b1e3f62

Change-Id: I93b63d00f395f7054fd39b2538153dc84a2e759b
d98b1e3f622f6400a84ddab068aaa1c4df28a1fb 03-Sep-2016 Andrew Scull <ascull@google.com> Correct CTS's use of isActivePasswordSufficient.
am: 0c1055d574

Change-Id: I1b58e2fc90798ebbb86bd2b56c62177a461740be
5180f2e2c4c399aaf146a35ac22de0bdfe2b8343 03-Sep-2016 Makoto Onuki <omakoto@google.com> Merge "Correct CTS's use of isActivePasswordSufficient." into nyc-mr1-dev
02cc465c0bda841760864d6ae9a62b737e6a830f 03-Sep-2016 Srinath Sridharan <srinathsr@google.com> Increasing dhrystone failure threshold to 10%.

bug: 31215027
Change-Id: Id38d029a6d874c4afd9fa70df682d0b5c515cab8
ustainedperf/src/android/SustainedPerformance/cts/SustainedPerformanceHostTest.java
8ad796c79e58fc874c24c29fac229aa47c363267 01-Sep-2016 Sudheer Shanka <sudheersai@google.com> CTS: Add tests for UserManager.isDemoUser() api. am: 3584c43f1b am: c6511bb7bb
am: 981891fd96

Change-Id: If1279b8a9c6677e1e4e45c0775ac410c2b50b6a6
981891fd969c67d7592bae857d73ecb2198aff04 01-Sep-2016 Sudheer Shanka <sudheersai@google.com> CTS: Add tests for UserManager.isDemoUser() api. am: 3584c43f1b
am: c6511bb7bb

Change-Id: I9dd2e43b47018e514df27033f30e1e7fa14f7cc3
c6511bb7bb51623b1ee7c870be94ab51a2869f2f 01-Sep-2016 Sudheer Shanka <sudheersai@google.com> CTS: Add tests for UserManager.isDemoUser() api.
am: 3584c43f1b

Change-Id: I22854b452e88a5f6bbc88d29c0588b07e78da853
41385d8d9e963f76c786fa70b00fa50765dd56f9 01-Sep-2016 Sudheer Shanka <sudheersai@google.com> Merge "CTS: Add tests for UserManager.isDemoUser() api." into nyc-mr1-dev
6ee66360c979567f2adc0544126a9a5be1918e94 29-Aug-2016 sj.cha <sj.cha@lge.com> Add some failure comments in VpnTest

Symptom : Sockets are not instantly destroyed during VpnTest.

Root Cause : If CONFIG_INET_DIAG_DESTROY kernel config is not set in Android N, when network interface going to down, sockets are not instantly destroyed.

Solution : Enable CONFIG_INET_DIAG_DESTROY kernel feature. But developer cannot check all of configurations on kernel, so adding some comments in VpnTest.

Signed-off-by: SangJin Cha <sj.cha@lge.com>
Change-Id: Ib97b93dfbfb62fe61bd3688ea7545708ec3ea2a2
et/app/src/com/android/cts/net/hostside/VpnTest.java
f232684c333ba2463e3fd943e857b00944353da3 31-Aug-2016 Nicholas Sauer <nicksauer@google.com> CDD Coverage am: b2493d6fd5 am: 2c3ba0e8a4
am: 0ad4d32a5f

Change-Id: Ibc54a3f04d9a837f52ee4a67880e952f049043cf
0c1055d574e6f5126dddd06742f492e397c1178b 31-Aug-2016 Andrew Scull <ascull@google.com> Correct CTS's use of isActivePasswordSufficient.

It was originally using a bug to check there is no password set but that
bug was fixed so a new approach was needed.

BUG: 31160794
Change-Id: I19138c61558f4e291c8eaf44c8b823005ae68004
evicepolicy/app/DeviceAdmin/src/com.android.cts.deviceadmin/DeviceAdminPasswordTest.java
evicepolicy/app/DeviceAdmin/src/com.android.cts.deviceadmin/DeviceOwnerPasswordTest.java
733fafce1252d4cc970fc4ee1f23d04e2ce74074 30-Aug-2016 Makoto Onuki <omakoto@google.com> Merge "CTS for improved restore logic"
bd5cfb5a1b66120bc3a6d10b37af563d5a8aa641 30-Aug-2016 Robin Lee <rgl@google.com> Merge "CTS tests for work ringtones and ringtone sync"
582fabfeb77a9aaa685a8d2d5570cc801bcafab6 29-Aug-2016 Ye Ouyang <yeouyang@motorola.com> Extend wait time for testTRacingContent

Current 1s wait for atrace is not enough for some phones due to performance.
Extend it to 5s to ensure writing is done.

Change-Id: I6b4b795a050a2bb400e2f6dc7d814739c00904e9
trace/src/android/atrace/cts/AtraceHostTest.java
3584c43f1bc0123ea542e6787545dbc436216ed4 28-Aug-2016 Sudheer Shanka <sudheersai@google.com> CTS: Add tests for UserManager.isDemoUser() api.

Bug: 31092477
Test: cts-tradefed run singleCommand cts --module CtsRetailDemoHostTestCases
Change-Id: I6a17515dac13e8a8cef629f87dfbc999d022e162
etaildemo/Android.mk
etaildemo/AndroidTest.xml
etaildemo/app/Android.mk
etaildemo/app/AndroidManifest.xml
etaildemo/app/src/com/android/cts/retaildemo/DemoUserTest.java
etaildemo/src/android/host/retaildemo/BaseTestCase.java
etaildemo/src/android/host/retaildemo/DemoModeTest.java
0ad4d32a5fbaedeff6d614007e28c92513ede962 27-Aug-2016 Nicholas Sauer <nicksauer@google.com> CDD Coverage am: b2493d6fd5
am: 2c3ba0e8a4

Change-Id: I5d51c4c464866f607a7a90e7dc0576c44e8a764c
2c3ba0e8a491935062371fa671593e13bc573b64 27-Aug-2016 Nicholas Sauer <nicksauer@google.com> CDD Coverage
am: b2493d6fd5

Change-Id: Id1697a6fa57fac84e8c1880a723d8b8004f8435c
f51cf25b775df6fc7b4254c861751a0a05a4a4c1 26-Aug-2016 Chong Zhang <chz@google.com> cts: disable logcat check in ActivityManagerAmStartOptionsTests

Logcat check of AM is still missing logs and fail intermittantly,
don't use them for now and only check shell output which should
cover most failures.

bug: 30932035
Change-Id: I43584c5dc40c5b53b79012526f1e64746a36200b
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/ActivityManagerAmStartOptionsTests.java
b2493d6fd57d4822fa1d655057b630522d3f94e6 18-Aug-2016 Nicholas Sauer <nicksauer@google.com> CDD Coverage

bug: 31095155

Change-Id: I65b827329e9557ef85f1d41aa5e305c4c389dd66
ecurity/src/android/security/cts/SELinuxHostTest.java
8d34c899702567afe26c2b4149561708875b18b3 26-Aug-2016 Kazuhiro Inaba <kinaba@google.com> resolve merge conflicts of 5db3b81 to nougat-cts-dev

Change-Id: I83585a8fee7c046ed4ec05d324028c6aead690e6
50b842f2692a99e054a8e636ad8118b4a0a662e1 25-Aug-2016 Makoto Onuki <omakoto@google.com> CTS for improved restore logic

Change-Id: Ib4d933e3e6ad4bc586f64fbc33c363f8bebbd180
hortcuts/deviceside/backup/publisher3/src/android/content/pm/cts/shortcut/backup/publisher3/ShortcutManagerPostBackupTest.java
hortcuts/hostside/src/android/content/pm/cts/shortcuthost/ShortcutManagerBackupTest.java
b4be6a5eb49690759c8a6c921050909a178bb880 24-Aug-2016 Makoto Onuki <omakoto@google.com> Backport shortcut manager CTS to DR

Bug 29612099
Bug 31033599

Change-Id: I74be3588387ff0ae952cb912d946ce6d62936f0f
hortcuts/Android.mk
hortcuts/deviceside/Android.mk
hortcuts/deviceside/backup/Android.mk
hortcuts/deviceside/backup/launcher1/Android.mk
hortcuts/deviceside/backup/launcher1/AndroidManifest.xml
hortcuts/deviceside/backup/launcher1/src/android/content/pm/cts/shortcut/backup/launcher1/MainActivity.java
hortcuts/deviceside/backup/launcher1/src/android/content/pm/cts/shortcut/backup/launcher1/ShortcutManagerPostBackupTest.java
hortcuts/deviceside/backup/launcher1/src/android/content/pm/cts/shortcut/backup/launcher1/ShortcutManagerPreBackupTest.java
hortcuts/deviceside/backup/launcher2/Android.mk
hortcuts/deviceside/backup/launcher2/AndroidManifest.xml
hortcuts/deviceside/backup/launcher2/src/android/content/pm/cts/shortcut/backup/launcher2/MainActivity.java
hortcuts/deviceside/backup/launcher2/src/android/content/pm/cts/shortcut/backup/launcher2/ShortcutManagerPostBackupTest.java
hortcuts/deviceside/backup/launcher2/src/android/content/pm/cts/shortcut/backup/launcher2/ShortcutManagerPreBackupTest.java
hortcuts/deviceside/backup/launcher3/Android.mk
hortcuts/deviceside/backup/launcher3/AndroidManifest.xml
hortcuts/deviceside/backup/launcher3/src/android/content/pm/cts/shortcut/backup/launcher3/MainActivity.java
hortcuts/deviceside/backup/launcher3/src/android/content/pm/cts/shortcut/backup/launcher3/ShortcutManagerPostBackupTest.java
hortcuts/deviceside/backup/launcher3/src/android/content/pm/cts/shortcut/backup/launcher3/ShortcutManagerPreBackupTest.java
hortcuts/deviceside/backup/publisher1/Android.mk
hortcuts/deviceside/backup/publisher1/AndroidManifest.xml
hortcuts/deviceside/backup/publisher1/res/drawable-nodpi/black_16x16.png
hortcuts/deviceside/backup/publisher1/res/drawable-nodpi/black_16x64.png
hortcuts/deviceside/backup/publisher1/res/drawable-nodpi/black_64x16.png
hortcuts/deviceside/backup/publisher1/res/values/strings.xml
hortcuts/deviceside/backup/publisher1/res/xml/shortcuts.xml
hortcuts/deviceside/backup/publisher1/src/android/content/pm/cts/shortcut/backup/publisher1/MainActivity.java
hortcuts/deviceside/backup/publisher1/src/android/content/pm/cts/shortcut/backup/publisher1/ShortcutManagerPostBackupTest.java
hortcuts/deviceside/backup/publisher1/src/android/content/pm/cts/shortcut/backup/publisher1/ShortcutManagerPreBackupTest.java
hortcuts/deviceside/backup/publisher2/Android.mk
hortcuts/deviceside/backup/publisher2/AndroidManifest.xml
hortcuts/deviceside/backup/publisher2/res/drawable-nodpi/black_16x16.png
hortcuts/deviceside/backup/publisher2/res/drawable-nodpi/black_16x64.png
hortcuts/deviceside/backup/publisher2/res/drawable-nodpi/black_64x16.png
hortcuts/deviceside/backup/publisher2/res/values/strings.xml
hortcuts/deviceside/backup/publisher2/res/xml/shortcuts.xml
hortcuts/deviceside/backup/publisher2/res/xml/shortcuts_b.xml
hortcuts/deviceside/backup/publisher2/src/android/content/pm/cts/shortcut/backup/publisher2/MainActivity.java
hortcuts/deviceside/backup/publisher2/src/android/content/pm/cts/shortcut/backup/publisher2/ShortcutManagerPostBackupTest.java
hortcuts/deviceside/backup/publisher2/src/android/content/pm/cts/shortcut/backup/publisher2/ShortcutManagerPreBackup2Test.java
hortcuts/deviceside/backup/publisher2/src/android/content/pm/cts/shortcut/backup/publisher2/ShortcutManagerPreBackupTest.java
hortcuts/deviceside/backup/publisher3/Android.mk
hortcuts/deviceside/backup/publisher3/AndroidManifest.xml
hortcuts/deviceside/backup/publisher3/res/drawable-nodpi/black_16x16.png
hortcuts/deviceside/backup/publisher3/res/drawable-nodpi/black_16x64.png
hortcuts/deviceside/backup/publisher3/res/drawable-nodpi/black_64x16.png
hortcuts/deviceside/backup/publisher3/res/values/strings.xml
hortcuts/deviceside/backup/publisher3/res/xml/shortcuts.xml
hortcuts/deviceside/backup/publisher3/src/android/content/pm/cts/shortcut/backup/publisher3/MainActivity.java
hortcuts/deviceside/backup/publisher3/src/android/content/pm/cts/shortcut/backup/publisher3/ShortcutManagerPostBackupTest.java
hortcuts/deviceside/backup/publisher3/src/android/content/pm/cts/shortcut/backup/publisher3/ShortcutManagerPreBackupTest.java
hortcuts/deviceside/common/src/android/content/pm/cts/shortcut/device/common/ShortcutManagerDeviceTestBase.java
hortcuts/deviceside/multiuser/Android.mk
hortcuts/deviceside/multiuser/AndroidManifest.xml
hortcuts/deviceside/multiuser/src/android/content/pm/cts/shortcut/multiuser/Consts.java
hortcuts/deviceside/multiuser/src/android/content/pm/cts/shortcut/multiuser/Launcher.java
hortcuts/deviceside/multiuser/src/android/content/pm/cts/shortcut/multiuser/MainActivity.java
hortcuts/deviceside/multiuser/src/android/content/pm/cts/shortcut/multiuser/ShortcutManagerManagedUserTest.java
hortcuts/deviceside/multiuser/src/android/content/pm/cts/shortcut/multiuser/ShortcutManagerSecondaryUserTest.java
hortcuts/deviceside/upgrade/Android.mk
hortcuts/deviceside/upgrade/AndroidManifest.xml
hortcuts/deviceside/upgrade/src/android/content/pm/cts/shortcut/upgrade/Consts.java
hortcuts/deviceside/upgrade/src/android/content/pm/cts/shortcut/upgrade/Launcher.java
hortcuts/deviceside/upgrade/src/android/content/pm/cts/shortcut/upgrade/MainActivity.java
hortcuts/deviceside/upgrade/src/android/content/pm/cts/shortcut/upgrade/ShortcutManagerPostUpgradeTest.java
hortcuts/deviceside/upgrade/src/android/content/pm/cts/shortcut/upgrade/ShortcutManagerPreUpgradeTest.java
hortcuts/deviceside/upgrade/version1/res/drawable-nodpi/black_16x16.png
hortcuts/deviceside/upgrade/version1/res/drawable-nodpi/black_16x64.png
hortcuts/deviceside/upgrade/version1/res/drawable-nodpi/black_32x32.png
hortcuts/deviceside/upgrade/version1/res/drawable-nodpi/black_64x16.png
hortcuts/deviceside/upgrade/version1/res/drawable-nodpi/black_64x64.png
hortcuts/deviceside/upgrade/version2/res/drawable-nodpi/black_32x32.png
hortcuts/deviceside/upgrade/version2/res/drawable-nodpi/black_64x64.png
hortcuts/hostside/Android.mk
hortcuts/hostside/AndroidTest.xml
hortcuts/hostside/src/android/content/pm/cts/shortcuthost/BaseShortcutManagerHostTest.java
hortcuts/hostside/src/android/content/pm/cts/shortcuthost/ShortcutManagerBackupTest.java
hortcuts/hostside/src/android/content/pm/cts/shortcuthost/ShortcutManagerMultiuserTest.java
hortcuts/hostside/src/android/content/pm/cts/shortcuthost/ShortcutManagerUpgradeTest.java
589d2c9b6bf659eea0137fbc21ae3314922bbda0 24-Aug-2016 Felipe Leme <felipeal@google.com> Fixed number wrong number of expected intents.

Test: cts-tradefed run commandAndExit cts --skip-device-info --skip-system-status-check com.android.compatibility.common.tradefed.targetprep.NetworkConnectivityChecker --skip-preconditions -m CtsHostsideNetworkTests --abi armeabi-v7a -t com.android.cts.net.HostsideRestrictBackgroundNetworkTests

BUG: 28791717

Change-Id: I5f3db14723cc94057715f241579922c5dbf2db8f
et/app/src/com/android/cts/net/hostside/DataSaverModeTest.java
7096ebc90713a28b419b94744e73dc8126436766 24-Aug-2016 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Updated Data Saver blacklist assumptions."
48369050625d7d1d0c2669dee2d3d4c25547aab2 24-Aug-2016 Makoto Onuki <omakoto@google.com> Backporting shortcut manager CTS to mr1 am: 24fee45e90
am: c3eeb6b12f

Change-Id: Id70b9e12d821c400a35e6c36d07d5741d6c41fb0
c3eeb6b12f0dfefc9ff1e9aae9a720cd57dd2d2e 24-Aug-2016 Makoto Onuki <omakoto@google.com> Backporting shortcut manager CTS to mr1
am: 24fee45e90

Change-Id: I660c7354d84480a66364374390b0499a765b780e
e0c52428161f7292269fb70ff0f0d4b241e07542 24-Aug-2016 Makoto Onuki <omakoto@google.com> Merge "Backporting shortcut manager CTS to mr1" into nyc-mr1-dev
24fee45e900df980543f9248238b3854ad2a258d 22-Aug-2016 Makoto Onuki <omakoto@google.com> Backporting shortcut manager CTS to mr1

Bug 29612099

Change-Id: I620c7190b17c4ff9abd9f20f06ac0ab3d9cb7c3a
hortcuts/Android.mk
hortcuts/deviceside/Android.mk
hortcuts/deviceside/backup/Android.mk
hortcuts/deviceside/backup/launcher1/Android.mk
hortcuts/deviceside/backup/launcher1/AndroidManifest.xml
hortcuts/deviceside/backup/launcher1/src/android/content/pm/cts/shortcut/backup/launcher1/MainActivity.java
hortcuts/deviceside/backup/launcher1/src/android/content/pm/cts/shortcut/backup/launcher1/ShortcutManagerPostBackupTest.java
hortcuts/deviceside/backup/launcher1/src/android/content/pm/cts/shortcut/backup/launcher1/ShortcutManagerPreBackupTest.java
hortcuts/deviceside/backup/launcher2/Android.mk
hortcuts/deviceside/backup/launcher2/AndroidManifest.xml
hortcuts/deviceside/backup/launcher2/src/android/content/pm/cts/shortcut/backup/launcher2/MainActivity.java
hortcuts/deviceside/backup/launcher2/src/android/content/pm/cts/shortcut/backup/launcher2/ShortcutManagerPostBackupTest.java
hortcuts/deviceside/backup/launcher2/src/android/content/pm/cts/shortcut/backup/launcher2/ShortcutManagerPreBackupTest.java
hortcuts/deviceside/backup/launcher3/Android.mk
hortcuts/deviceside/backup/launcher3/AndroidManifest.xml
hortcuts/deviceside/backup/launcher3/src/android/content/pm/cts/shortcut/backup/launcher3/MainActivity.java
hortcuts/deviceside/backup/launcher3/src/android/content/pm/cts/shortcut/backup/launcher3/ShortcutManagerPostBackupTest.java
hortcuts/deviceside/backup/launcher3/src/android/content/pm/cts/shortcut/backup/launcher3/ShortcutManagerPreBackupTest.java
hortcuts/deviceside/backup/publisher1/Android.mk
hortcuts/deviceside/backup/publisher1/AndroidManifest.xml
hortcuts/deviceside/backup/publisher1/res/drawable-nodpi/black_16x16.png
hortcuts/deviceside/backup/publisher1/res/drawable-nodpi/black_16x64.png
hortcuts/deviceside/backup/publisher1/res/drawable-nodpi/black_64x16.png
hortcuts/deviceside/backup/publisher1/res/values/strings.xml
hortcuts/deviceside/backup/publisher1/res/xml/shortcuts.xml
hortcuts/deviceside/backup/publisher1/src/android/content/pm/cts/shortcut/backup/publisher1/MainActivity.java
hortcuts/deviceside/backup/publisher1/src/android/content/pm/cts/shortcut/backup/publisher1/ShortcutManagerPostBackupTest.java
hortcuts/deviceside/backup/publisher1/src/android/content/pm/cts/shortcut/backup/publisher1/ShortcutManagerPreBackupTest.java
hortcuts/deviceside/backup/publisher2/Android.mk
hortcuts/deviceside/backup/publisher2/AndroidManifest.xml
hortcuts/deviceside/backup/publisher2/res/drawable-nodpi/black_16x16.png
hortcuts/deviceside/backup/publisher2/res/drawable-nodpi/black_16x64.png
hortcuts/deviceside/backup/publisher2/res/drawable-nodpi/black_64x16.png
hortcuts/deviceside/backup/publisher2/res/values/strings.xml
hortcuts/deviceside/backup/publisher2/res/xml/shortcuts.xml
hortcuts/deviceside/backup/publisher2/res/xml/shortcuts_b.xml
hortcuts/deviceside/backup/publisher2/src/android/content/pm/cts/shortcut/backup/publisher2/MainActivity.java
hortcuts/deviceside/backup/publisher2/src/android/content/pm/cts/shortcut/backup/publisher2/ShortcutManagerPostBackupTest.java
hortcuts/deviceside/backup/publisher2/src/android/content/pm/cts/shortcut/backup/publisher2/ShortcutManagerPreBackup2Test.java
hortcuts/deviceside/backup/publisher2/src/android/content/pm/cts/shortcut/backup/publisher2/ShortcutManagerPreBackupTest.java
hortcuts/deviceside/backup/publisher3/Android.mk
hortcuts/deviceside/backup/publisher3/AndroidManifest.xml
hortcuts/deviceside/backup/publisher3/res/drawable-nodpi/black_16x16.png
hortcuts/deviceside/backup/publisher3/res/drawable-nodpi/black_16x64.png
hortcuts/deviceside/backup/publisher3/res/drawable-nodpi/black_64x16.png
hortcuts/deviceside/backup/publisher3/res/values/strings.xml
hortcuts/deviceside/backup/publisher3/res/xml/shortcuts.xml
hortcuts/deviceside/backup/publisher3/src/android/content/pm/cts/shortcut/backup/publisher3/MainActivity.java
hortcuts/deviceside/backup/publisher3/src/android/content/pm/cts/shortcut/backup/publisher3/ShortcutManagerPostBackupTest.java
hortcuts/deviceside/backup/publisher3/src/android/content/pm/cts/shortcut/backup/publisher3/ShortcutManagerPreBackupTest.java
hortcuts/deviceside/common/src/android/content/pm/cts/shortcut/device/common/ShortcutManagerDeviceTestBase.java
hortcuts/deviceside/multiuser/Android.mk
hortcuts/deviceside/multiuser/AndroidManifest.xml
hortcuts/deviceside/multiuser/src/android/content/pm/cts/shortcut/multiuser/Consts.java
hortcuts/deviceside/multiuser/src/android/content/pm/cts/shortcut/multiuser/Launcher.java
hortcuts/deviceside/multiuser/src/android/content/pm/cts/shortcut/multiuser/MainActivity.java
hortcuts/deviceside/multiuser/src/android/content/pm/cts/shortcut/multiuser/ShortcutManagerManagedUserTest.java
hortcuts/deviceside/multiuser/src/android/content/pm/cts/shortcut/multiuser/ShortcutManagerSecondaryUserTest.java
hortcuts/deviceside/upgrade/Android.mk
hortcuts/deviceside/upgrade/AndroidManifest.xml
hortcuts/deviceside/upgrade/src/android/content/pm/cts/shortcut/upgrade/Consts.java
hortcuts/deviceside/upgrade/src/android/content/pm/cts/shortcut/upgrade/Launcher.java
hortcuts/deviceside/upgrade/src/android/content/pm/cts/shortcut/upgrade/MainActivity.java
hortcuts/deviceside/upgrade/src/android/content/pm/cts/shortcut/upgrade/ShortcutManagerPostUpgradeTest.java
hortcuts/deviceside/upgrade/src/android/content/pm/cts/shortcut/upgrade/ShortcutManagerPreUpgradeTest.java
hortcuts/deviceside/upgrade/version1/res/drawable-nodpi/black_16x16.png
hortcuts/deviceside/upgrade/version1/res/drawable-nodpi/black_16x64.png
hortcuts/deviceside/upgrade/version1/res/drawable-nodpi/black_32x32.png
hortcuts/deviceside/upgrade/version1/res/drawable-nodpi/black_64x16.png
hortcuts/deviceside/upgrade/version1/res/drawable-nodpi/black_64x64.png
hortcuts/deviceside/upgrade/version2/res/drawable-nodpi/black_32x32.png
hortcuts/deviceside/upgrade/version2/res/drawable-nodpi/black_64x64.png
hortcuts/hostside/Android.mk
hortcuts/hostside/AndroidTest.xml
hortcuts/hostside/src/android/content/pm/cts/shortcuthost/BaseShortcutManagerHostTest.java
hortcuts/hostside/src/android/content/pm/cts/shortcuthost/ShortcutManagerBackupTest.java
hortcuts/hostside/src/android/content/pm/cts/shortcuthost/ShortcutManagerMultiuserTest.java
hortcuts/hostside/src/android/content/pm/cts/shortcuthost/ShortcutManagerUpgradeTest.java
74945a458aa8a70dcecc15b13da9b87941fce802 23-Aug-2016 TreeHugger Robot <treehugger-gerrit@google.com> Merge "WindowManagerTests: Also run SurfaceView tests in docked."
f7e6bcc5d18c7a08b53630ed38218137f007798b 09-Aug-2016 Robert Carr <racarr@google.com> WindowManagerTests: Also run SurfaceView tests in docked.

Do some cleanup to enable SurfaceView and Dialog tests
to share more harness in the process.

Change-Id: Ia69fd40fef18add62296c8904737291e496819ef
ervices/activityandwindowmanager/util/src/android/server/cts/ActivityManagerTestBase.java
ervices/activityandwindowmanager/windowmanager/src/android/server/cts/DialogFrameTests.java
ervices/activityandwindowmanager/windowmanager/src/android/server/cts/ParentChildTestBase.java
ervices/activityandwindowmanager/windowmanager/src/android/server/cts/SurfaceViewTests.java
a80f6c096ce0c4aad6ea55253eace2dbdc79052c 23-Aug-2016 Srinath Sridharan <srinathsr@google.com> Fix sustained performance CTS test failures. am: 22cbea0a66 am: 1824244aa8 am: fbeeedbe04
am: 891e5df3e0

Change-Id: Icc469db911ec15a1fcd53723234fdff00b19d7f6
891e5df3e0102eb0bd94970ce19386b53d56acb3 23-Aug-2016 Srinath Sridharan <srinathsr@google.com> Fix sustained performance CTS test failures. am: 22cbea0a66 am: 1824244aa8
am: fbeeedbe04

Change-Id: I98cd2947c7225f07a59ca203f8d8fec4cb378b02
fbeeedbe046a8979d6e3b0676ad9e888d58d46bd 23-Aug-2016 Srinath Sridharan <srinathsr@google.com> Fix sustained performance CTS test failures. am: 22cbea0a66
am: 1824244aa8

Change-Id: I81fed6a0a51b286b0b3ba3c8466c2599f14f4e83
1824244aa8f3e74069193bf910bb7fbd74c1aedd 23-Aug-2016 Srinath Sridharan <srinathsr@google.com> Fix sustained performance CTS test failures.
am: 22cbea0a66

Change-Id: I0ddf3e1fc849a1970d3dcc459b5d3ab33f57e136
22cbea0a668abed7bb17f132168e656801290cfd 23-Aug-2016 Srinath Sridharan <srinathsr@google.com> Fix sustained performance CTS test failures.

Two problems:
1) Dhrystone loop count is too low causing too much deviation in
performance across runs

2) It is possible that dhrystone instances can shuffle
between heterogeneous cores introducing performance variabilities.

Fix to the test is two fold:
1) Increase the number of loop iterations.
2) Pin Dhrystone instances on one of the clusters.

bug: 30711691
Change-Id: Ifc07d8c3999c38465a96d7105a05091888bda9b0
ustainedperf/src/android/SustainedPerformance/cts/SustainedPerformanceHostTest.java
4b3ae511fdb4dc5ea991c2c90de99481c42296bc 23-Aug-2016 Makoto Onuki <omakoto@google.com> Merge "Fix shortcut CTS for fugu"
0656796ba4bc58fe2112a3a9863d3198f03dbba1 23-Aug-2016 Makoto Onuki <omakoto@google.com> Fix shortcut CTS for fugu

Change-Id: I6867273498e3c5b311214f6c8637156d17796686
hortcuts/hostside/src/android/content/pm/cts/shortcuthost/BaseShortcutManagerHostTest.java
hortcuts/hostside/src/android/content/pm/cts/shortcuthost/ShortcutManagerMultiuserTest.java
071126eb0ed8ca0e297b5e92ecab75ab0a616db5 22-Aug-2016 Felipe Leme <felipeal@google.com> Updated Data Saver blacklist assumptions.

On Android N, Data Saver's whitelist and blacklist UIDs were stored
separately, hence it would be possible for app to be present in
both (although only through adb commands - the UI only allows one
state).

Now the both lists are stored in the same data structure (UID policies),
hence they comply with the Highlander rule: There Can Be Only One.

Test: cts-tradefed run commandAndExit cts --skip-device-info --skip-system-status-check com.android.compatibility.common.tradefed.targetprep.NetworkConnectivityChecker --skip-preconditions -m CtsHostsideNetworkTests --abi armeabi-v7a -t com.android.cts.net.HostsideRestrictBackgroundNetworkTests

BUG: 28791717
Change-Id: I8649972088b439a2ef87f8630269033f116866bf
et/app/src/com/android/cts/net/hostside/AbstractRestrictBackgroundNetworkTestCase.java
et/app/src/com/android/cts/net/hostside/DataSaverModeTest.java
dcbf8f7d30d09f18d639d6ea5d9e2cb2a14585c5 05-Aug-2016 Chong Zhang <chz@google.com> cts: Wait for debugger window instead of activity when using -D

With -D option real activity window won't show up when we wait for
debugger, so we always try 5 times and exit. We only need to wait
for debugger window.

Also do not use adb logcat to get proc id, get it from AM dump
instead to reduce chance of missing logs.

bug: 30932035
Change-Id: Ifa1093884a6608e6be612fd2092143a689cc5a3e
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/ActivityManagerAmStartOptionsTests.java
ervices/activityandwindowmanager/util/src/android/server/cts/ActivityAndWindowManagersState.java
ervices/activityandwindowmanager/util/src/android/server/cts/ActivityManagerState.java
ervices/activityandwindowmanager/util/src/android/server/cts/WindowManagerState.java
02d29fc7090fa8ad10c4d8c439767ab8ac485a41 20-Aug-2016 Felipe Leme <felipeal@google.com> Added tests for network restrictions while the screen is off. am: 1291d07592
am: f602c8fd12

Change-Id: Ie4ac91c0b23ceb0c3ed56cfba16ea2651f5bfb7c
f602c8fd129186ff4eb95f3314cdafbb8c95ed5d 20-Aug-2016 Felipe Leme <felipeal@google.com> Added tests for network restrictions while the screen is off.
am: 1291d07592

Change-Id: I4961e21b5f8e430f37ca6c48366637b1af82e75b
1291d07592adc8fb065eb8167ddcccf18bc1a755 10-Aug-2016 Felipe Leme <felipeal@google.com> Added tests for network restrictions while the screen is off.

BUG: 30785671
Change-Id: I1b211e545ff234272ff6acadfda9ce97765695a9
(cherry picked from commit b80a93061aa7d0a19b47a7dbb82f0dc06e3afb7e)
et/app/src/com/android/cts/net/hostside/AbstractBatterySaverModeTestCase.java
et/app/src/com/android/cts/net/hostside/AbstractRestrictBackgroundNetworkTestCase.java
et/app/src/com/android/cts/net/hostside/DataSaverModeTest.java
06664cacc5de5bace0db37450c5458df61fadeff 20-Aug-2016 Felipe Leme <felipeal@google.com> Tests Scoped Access Directory 'do not ask again' is cleared when package is removed. am: dab78b32d2
am: ef77071252

Change-Id: I62e891c2df212876574c1f0780a74e77cbc0809c
ef77071252c5179fd28abaf4b6e6d92526b9f963 20-Aug-2016 Felipe Leme <felipeal@google.com> Tests Scoped Access Directory 'do not ask again' is cleared when package is removed.
am: dab78b32d2

Change-Id: I93c009fbd0baffaa7d891773a9ce4d5974d1912b
21e492a5b11c01fd30799125ec5effbb7d6d21b3 20-Aug-2016 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Tests Scoped Access Directory 'do not ask again' is cleared when package is removed." into nyc-mr1-dev
4c7b18e85be78095069bbfb59c6ecf4046dce466 19-Aug-2016 Makoto Onuki <omakoto@google.com> Merge "Shortcut multi-user CTS"
ef800467fd525b54aa9bf259608a56664c5ad7d6 19-Aug-2016 Makoto Onuki <omakoto@google.com> Shortcut multi-user CTS

Bug 29612099

Change-Id: I8130586dbf787c2ac3e76fecb9f60998da1adeb1
hortcuts/deviceside/multiuser/Android.mk
hortcuts/deviceside/multiuser/AndroidManifest.xml
hortcuts/deviceside/multiuser/src/android/content/pm/cts/shortcut/multiuser/Consts.java
hortcuts/deviceside/multiuser/src/android/content/pm/cts/shortcut/multiuser/Launcher.java
hortcuts/deviceside/multiuser/src/android/content/pm/cts/shortcut/multiuser/MainActivity.java
hortcuts/deviceside/multiuser/src/android/content/pm/cts/shortcut/multiuser/ShortcutManagerManagedUserTest.java
hortcuts/deviceside/multiuser/src/android/content/pm/cts/shortcut/multiuser/ShortcutManagerSecondaryUserTest.java
hortcuts/deviceside/upgrade/src/android/content/pm/cts/shortcut/upgrade/Launcher.java
hortcuts/hostside/src/android/content/pm/cts/shortcuthost/BaseShortcutManagerHostTest.java
hortcuts/hostside/src/android/content/pm/cts/shortcuthost/ShortcutManagerMultiuserTest.java
hortcuts/hostside/src/android/content/pm/cts/shortcuthost/ShortcutManagerUpgradeTest.java
e52cb13a84e8301f06106e97eb37ef19374a11b3 19-Aug-2016 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Improve task list parsing in CrossAppDragAndDropTests"
1144f1d0c58244be2e0363e3b111a4d76c8d30ee 19-Aug-2016 Shukang Zhou <shukang@google.com> Merge "Add a host-side test to verify /proc/[PID]/stat exists."
08246874ec885b853d1bcaefa90188a746762bf3 09-Aug-2016 Shukang Zhou <shukang@google.com> Add a host-side test to verify /proc/[PID]/stat exists.

Android Studio Performance Tools needs, as the shell user, to read
/proc/[PID]/stat file to collect live metrics data. It requires this
file is in a reasonable shape, and being actively updated.

I have verified this test passing on a Nexus 6P running master branch.
I have also verified this test passing on a non-Nexus device (Samsung 6
running 6.0.1). In order to run the test on the non-Nexus device,
I have ported this CL into mnc-dev branch (http://ag/1301529) which
will not be submitted. I will only submit this CL on master branch.

http://b/30744631 is tracking this work.

Change-Id: I39ec13d321539303955dd05d6587ae0b51c6cc16
s/AndroidTest.xml
s/src/android/os/cts/ProcfsHostTests.java
s/test-apps/ProcfsTestApp/Android.mk
s/test-apps/ProcfsTestApp/AndroidManifest.xml
s/test-apps/ProcfsTestApp/src/android/os/procfs/ProcfsTest.java
42d023a5ced91e68a8df9f7f344dff47330b0552 18-Aug-2016 Vladislav Kaznacheev <kaznacheev@google.com> Improve task list parsing in CrossAppDragAndDropTests

In order to find a specific activity CrossAppDragAndDropTests looks
for this activity's name in the output of "am stack list" command.

Turns out that in addition to the usual place (the second token
in the line) an activity name may also occur in lines related
to other activities (after the "topActivity" key). This breaks the test.

This is fixed by looking for the activity name only before the first
occurrence of "topActivity" substring.

Bug: 30919524
Change-Id: I112f0ea3997177032882984b97dcf9212f327cec
ervices/activityandwindowmanager/windowmanager/src/android/server/cts/CrossAppDragAndDropTests.java
4e88699b8bbda54c0f654ff63e97de5fac04b001 18-Aug-2016 Robin Lee <rgl@google.com> Merge "Hostside: Warn about and remove leftover packages"
3df3e00baf714e084540807b74e2faec46598653 18-Aug-2016 Makoto Onuki <omakoto@google.com> Press HOME after each CTS test to close left-over dialogs am: ce605aa48e am: 9cf252831a
am: a44db627db

Change-Id: Ia471d4ce7ce694c9bb5d15cf58657042dd379acb
a44db627db1f1c4c60d27d184c6c91652828a054 18-Aug-2016 Makoto Onuki <omakoto@google.com> Press HOME after each CTS test to close left-over dialogs am: ce605aa48e
am: 9cf252831a

Change-Id: Ie75fd6764a03e4a3bb5389d6085033e5bc756f4d
9cf252831a4407cb0f451c7124cac9ab595214c6 18-Aug-2016 Makoto Onuki <omakoto@google.com> Press HOME after each CTS test to close left-over dialogs
am: ce605aa48e

Change-Id: Ie44a98a2d92efea1f8e78d0587ff541b702e39d1
ce605aa48e9e760bc7705863d71e399109f46348 17-Aug-2016 Makoto Onuki <omakoto@google.com> Press HOME after each CTS test to close left-over dialogs

Fixes 30918229

Change-Id: I1db515bb46c9bf6134824694828399859bbe4106
evicepolicy/src/com/android/cts/devicepolicy/DeviceAndProfileOwnerTest.java
dab78b32d253aedf7e1344b16d1f690364aa5b12 17-Aug-2016 Felipe Leme <felipeal@google.com> Tests Scoped Access Directory 'do not ask again' is cleared when package
is removed.

BUG: 30900628
Change-Id: If48a1e3e519665e7b066eca628d1280f7292d63c
(cherry picked from commit b23b2283696a9be0c6add4231ba1c928ec36f999)
ppsecurity/src/android/appsecurity/cts/DocumentsTestCase.java
ppsecurity/src/android/appsecurity/cts/ScopedDirectoryAccessTest.java
ppsecurity/test-apps/DocumentClient/src/com/android/cts/documentclient/DocumentsClientTestCase.java
ppsecurity/test-apps/DocumentClient/src/com/android/cts/documentclient/ScopedDirectoryAccessClientTest.java
e3dae5b2efbedd072dd1013a8e324799b9bbd030 17-Aug-2016 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Tests Scoped Access Directory 'do not ask again' is cleared when package is removed."
b23b2283696a9be0c6add4231ba1c928ec36f999 17-Aug-2016 Felipe Leme <felipeal@google.com> Tests Scoped Access Directory 'do not ask again' is cleared when package
is removed.

BUG: 30900628
Change-Id: If48a1e3e519665e7b066eca628d1280f7292d63c
ppsecurity/src/android/appsecurity/cts/DocumentsTestCase.java
ppsecurity/src/android/appsecurity/cts/ScopedDirectoryAccessTest.java
ppsecurity/test-apps/DocumentClient/src/com/android/cts/documentclient/DocumentsClientTestCase.java
ppsecurity/test-apps/DocumentClient/src/com/android/cts/documentclient/ScopedDirectoryAccessClientTest.java
5b2da751a3c8611a1abf3ca3dc179b90ffccc569 12-Aug-2016 Andre Lago <andrelago@google.com> CTS tests for work ringtones and ringtone sync

Bug: 30658854
Change-Id: I7b99855ca5f63c110c65ae1b1e1ee2ed74319daf
evicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/RingtoneSyncTest.java
evicepolicy/src/com/android/cts/devicepolicy/ManagedProfileTest.java
f36a7010f65f352cf32cf6c2b01249457137ba04 16-Aug-2016 Felipe Leme <felipeal@google.com> Improve check for activity on top after launch. am: 90d2022819 am: 3e83a447dd
am: 9354a09c36

Change-Id: Ia97c366eea2ababd3488d1cfef2931c5f863c5f9
9354a09c367e49680a91ef8ce8d06122a746c90e 16-Aug-2016 Felipe Leme <felipeal@google.com> Improve check for activity on top after launch. am: 90d2022819
am: 3e83a447dd

Change-Id: I9b9d517236994d6ddc42e0550bce9284eec98949
b27e249370eaba2a560c4369b7208e15d79a0d29 16-Aug-2016 Felipe Leme <felipeal@google.com> Improve check for activity on top after launch. am: 90d2022819
am: 5119c548fc

Change-Id: I1a1bff24fca797ccd946d03318d1d1e2f16d31b5
5119c548fc28e70ea216393ba882d06af7f5d648 16-Aug-2016 Felipe Leme <felipeal@google.com> Improve check for activity on top after launch.
am: 90d2022819

Change-Id: Ia2ae617d0c181eaed536ac81c6086d632fee6b24
3e83a447dd53f6592f75d049d5095c186b0dc5a4 16-Aug-2016 Felipe Leme <felipeal@google.com> Improve check for activity on top after launch.
am: 90d2022819

Change-Id: I5b1569ca013d964dec23077f70eaa29c1af4a5b0
a1f672ed6f3351824e5ea2ec760f15bf0bd78871 16-Aug-2016 Felipe Leme <felipeal@google.com> DO NOT MERGE:Improve check for activity on top after launch.

BUG: 30875754
Fixes: 30868243

Change-Id: Iad3d6ce80fcf24281e98251799c23abc9b83b52d
Change-Id: I8b7624e35caef107743d6 1f312e220f8bc21b9b8
et/app/src/com/android/cts/net/hostside/AbstractRestrictBackgroundNetworkTestCase.java
90d2022819ae833233b643d4b9227dafcc3c933c 16-Aug-2016 Felipe Leme <felipeal@google.com> Improve check for activity on top after launch.

BUG: 30875754
Fixes: 30868243

Change-Id: I8b7624e35caef107743d61f312e220f8bc21b9b8
et/app/src/com/android/cts/net/hostside/AbstractRestrictBackgroundNetworkTestCase.java
a21da06482d90665ba1da7e03fed61ca845d5293 15-Aug-2016 Guang Zhu <guangzhu@google.com> Avoid JUnit4 collision in android-support-test, mockito-target

Bug: 30875057
Change-Id: Ib48f3d5aca127474ca5bd3ba1b91eeae33ddbef7
hortcuts/deviceside/backup/launcher1/Android.mk
hortcuts/deviceside/backup/launcher2/Android.mk
hortcuts/deviceside/backup/launcher3/Android.mk
hortcuts/deviceside/backup/publisher1/Android.mk
hortcuts/deviceside/backup/publisher2/Android.mk
hortcuts/deviceside/backup/publisher3/Android.mk
hortcuts/deviceside/upgrade/Android.mk
e72f85010537ace874a9e8cadd6d77127f3d7426 15-Aug-2016 Makoto Onuki <omakoto@google.com> Merge "ShortcutManager host side test."
416f42bb32cbd991facbe7d9d11416473a6702a8 03-Aug-2016 Makoto Onuki <omakoto@google.com> ShortcutManager host side test.

Bug 29612099

Change-Id: Ia1878781aac8052b3a657fef1623e7376d06de50
hortcuts/deviceside/backup/Android.mk
hortcuts/deviceside/backup/launcher1/Android.mk
hortcuts/deviceside/backup/launcher1/AndroidManifest.xml
hortcuts/deviceside/backup/launcher1/src/android/content/pm/cts/shortcut/backup/launcher1/MainActivity.java
hortcuts/deviceside/backup/launcher1/src/android/content/pm/cts/shortcut/backup/launcher1/ShortcutManagerPostBackupTest.java
hortcuts/deviceside/backup/launcher1/src/android/content/pm/cts/shortcut/backup/launcher1/ShortcutManagerPreBackupTest.java
hortcuts/deviceside/backup/launcher2/Android.mk
hortcuts/deviceside/backup/launcher2/AndroidManifest.xml
hortcuts/deviceside/backup/launcher2/src/android/content/pm/cts/shortcut/backup/launcher2/MainActivity.java
hortcuts/deviceside/backup/launcher2/src/android/content/pm/cts/shortcut/backup/launcher2/ShortcutManagerPostBackupTest.java
hortcuts/deviceside/backup/launcher2/src/android/content/pm/cts/shortcut/backup/launcher2/ShortcutManagerPreBackupTest.java
hortcuts/deviceside/backup/launcher3/Android.mk
hortcuts/deviceside/backup/launcher3/AndroidManifest.xml
hortcuts/deviceside/backup/launcher3/src/android/content/pm/cts/shortcut/backup/launcher3/MainActivity.java
hortcuts/deviceside/backup/launcher3/src/android/content/pm/cts/shortcut/backup/launcher3/ShortcutManagerPostBackupTest.java
hortcuts/deviceside/backup/launcher3/src/android/content/pm/cts/shortcut/backup/launcher3/ShortcutManagerPreBackupTest.java
hortcuts/deviceside/backup/publisher1/Android.mk
hortcuts/deviceside/backup/publisher1/AndroidManifest.xml
hortcuts/deviceside/backup/publisher1/res/drawable-nodpi/black_16x16.png
hortcuts/deviceside/backup/publisher1/res/drawable-nodpi/black_16x64.png
hortcuts/deviceside/backup/publisher1/res/drawable-nodpi/black_64x16.png
hortcuts/deviceside/backup/publisher1/res/values/strings.xml
hortcuts/deviceside/backup/publisher1/res/xml/shortcuts.xml
hortcuts/deviceside/backup/publisher1/src/android/content/pm/cts/shortcut/backup/publisher1/MainActivity.java
hortcuts/deviceside/backup/publisher1/src/android/content/pm/cts/shortcut/backup/publisher1/ShortcutManagerPostBackupTest.java
hortcuts/deviceside/backup/publisher1/src/android/content/pm/cts/shortcut/backup/publisher1/ShortcutManagerPreBackupTest.java
hortcuts/deviceside/backup/publisher2/Android.mk
hortcuts/deviceside/backup/publisher2/AndroidManifest.xml
hortcuts/deviceside/backup/publisher2/res/drawable-nodpi/black_16x16.png
hortcuts/deviceside/backup/publisher2/res/drawable-nodpi/black_16x64.png
hortcuts/deviceside/backup/publisher2/res/drawable-nodpi/black_64x16.png
hortcuts/deviceside/backup/publisher2/res/values/strings.xml
hortcuts/deviceside/backup/publisher2/res/xml/shortcuts.xml
hortcuts/deviceside/backup/publisher2/res/xml/shortcuts_b.xml
hortcuts/deviceside/backup/publisher2/src/android/content/pm/cts/shortcut/backup/publisher2/MainActivity.java
hortcuts/deviceside/backup/publisher2/src/android/content/pm/cts/shortcut/backup/publisher2/ShortcutManagerPostBackupTest.java
hortcuts/deviceside/backup/publisher2/src/android/content/pm/cts/shortcut/backup/publisher2/ShortcutManagerPreBackup2Test.java
hortcuts/deviceside/backup/publisher2/src/android/content/pm/cts/shortcut/backup/publisher2/ShortcutManagerPreBackupTest.java
hortcuts/deviceside/backup/publisher3/Android.mk
hortcuts/deviceside/backup/publisher3/AndroidManifest.xml
hortcuts/deviceside/backup/publisher3/res/drawable-nodpi/black_16x16.png
hortcuts/deviceside/backup/publisher3/res/drawable-nodpi/black_16x64.png
hortcuts/deviceside/backup/publisher3/res/drawable-nodpi/black_64x16.png
hortcuts/deviceside/backup/publisher3/res/values/strings.xml
hortcuts/deviceside/backup/publisher3/res/xml/shortcuts.xml
hortcuts/deviceside/backup/publisher3/src/android/content/pm/cts/shortcut/backup/publisher3/MainActivity.java
hortcuts/deviceside/backup/publisher3/src/android/content/pm/cts/shortcut/backup/publisher3/ShortcutManagerPostBackupTest.java
hortcuts/deviceside/backup/publisher3/src/android/content/pm/cts/shortcut/backup/publisher3/ShortcutManagerPreBackupTest.java
hortcuts/deviceside/common/src/android/content/pm/cts/shortcut/device/common/ShortcutManagerDeviceTestBase.java
hortcuts/hostside/src/android/content/pm/cts/shortcuthost/BaseShortcutManagerHostTest.java
hortcuts/hostside/src/android/content/pm/cts/shortcuthost/ShortcutManagerBackupTest.java
hortcuts/hostside/src/android/content/pm/cts/shortcuthost/ShortcutManagerUpgradeTest.java
8770be349e17ce4c758ab04f6bf286569354ea37 12-Aug-2016 TreeHugger Robot <treehugger-gerrit@google.com> Merge "CTS test for StrictMode.detectFileUriExposure in DragAndDrop"
729bfdca2302ff5381cc51c8e93e4cab3ae878da 12-Aug-2016 Robin Lee <rgl@google.com> Hostside: Warn about and remove leftover packages

Leaving test packages installed during tests can cause problems. For
example:

- tests may be developed inadvertently to depend on the previous test
installing a certain package instead of installing for itself.

- failure of one test can cascade to failures of other tests which try
to install another package with the same name but a different
signature or older version.

Bug: 30809746
Change-Id: I7b4fd015e90a57c87595fed180f073143f3b8602
evicepolicy/src/com/android/cts/devicepolicy/BaseDevicePolicyTest.java
ccf75895d9f04c3fd783b2eec94ab42aa51b90d4 11-Aug-2016 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Added tests for network restrictions while the screen is off."
76c455d1189933ff58b4c895aa3d63394a8b2d94 11-Aug-2016 Vladislav Kaznacheev <kaznacheev@google.com> CTS test for StrictMode.detectFileUriExposure in DragAndDrop

Check that:
- global drag and drop with ClipData containing file:// uri fails
(specifically, View.startDragAndDrop throws FileUriExposedException).
- local drag and drop with ClipData containing file:// uri doesn't fail.

Also cache the result of "feature:android.hardware.type.watch" feature
check (this gives the test 2x speedup).

Bug: 30772435
Change-Id: Ib7acfeb419b11d5574fdd6dc1454e238c869ac72
ervices/activityandwindowmanager/windowmanager/dndsourceapp/src/android/wm/cts/dndsourceapp/DragSource.java
ervices/activityandwindowmanager/windowmanager/src/android/server/cts/CrossAppDragAndDropTests.java
20d73e6a393cd9be6579ca85dd452aac65116b8e 11-Aug-2016 Robin Lee <rgl@google.com> Uninstall package after UserRestrictionsTest am: 3891cd360a
am: dcf64b8ab5

Change-Id: Ie3d7cdb6285f9b6a3cb57c24cf0a2f7b2b627cab
dcf64b8ab54f2a84bbf0724120a67c5f41e13c5c 11-Aug-2016 Robin Lee <rgl@google.com> Uninstall package after UserRestrictionsTest
am: 3891cd360a

Change-Id: I304f4f1efc8a8f453569ae066318b63694f637fa
37b56acd052788f6b92801fbe7418ecf8199154e 10-Aug-2016 Robin Lee <rgl@google.com> Merge "Uninstall package after UserRestrictionsTest"
b80a93061aa7d0a19b47a7dbb82f0dc06e3afb7e 10-Aug-2016 Felipe Leme <felipeal@google.com> Added tests for network restrictions while the screen is off.

BUG: 30785671
Change-Id: I1b211e545ff234272ff6acadfda9ce97765695a9
et/app/src/com/android/cts/net/hostside/AbstractBatterySaverModeTestCase.java
et/app/src/com/android/cts/net/hostside/AbstractRestrictBackgroundNetworkTestCase.java
et/app/src/com/android/cts/net/hostside/DataSaverModeTest.java
3891cd360ad6ae06d8fbaef3b1d1e829c514933a 08-Aug-2016 Robin Lee <rgl@google.com> Uninstall package after UserRestrictionsTest

Bug: 30698529
Change-Id: Ia58a2b51b75af506ab6751a668dbe364ce536c19
evicepolicy/src/com/android/cts/devicepolicy/UserRestrictionsTest.java
838d9e54f51dfbc49c2e43d3c27fd7e26e7cacf4 08-Aug-2016 Robin Lee <rgl@google.com> Uninstall package after UserRestrictionsTest

Bug: 30698529
Change-Id: Ia58a2b51b75af506ab6751a668dbe364ce536c19
evicepolicy/src/com/android/cts/devicepolicy/UserRestrictionsTest.java
2b6d2b8f9005099d5c8ad621e8395401abcadd18 09-Aug-2016 Alan Viverette <alanv@google.com> Add xxxhdpi assets for CTS theme host test am: b246d9695c am: 1a4f1b045b am: 55cea901e4
am: 77bf98ec15

Change-Id: If1f1de4789be0e0fd4241ab75c21797d03587436
77bf98ec15dbe0c3511d563a52b7628718afd6ca 09-Aug-2016 Alan Viverette <alanv@google.com> Add xxxhdpi assets for CTS theme host test am: b246d9695c am: 1a4f1b045b
am: 55cea901e4

Change-Id: Ibcd924514e27625e7aa5a87a83dbe9041ed5096d
55cea901e44039c7f7e5fd5649868b508882e2df 09-Aug-2016 Alan Viverette <alanv@google.com> Add xxxhdpi assets for CTS theme host test am: b246d9695c
am: 1a4f1b045b

Change-Id: I201fe23a21203215dbdd9da4b2c12fd4e947598e
546efb0c43a4a8b58830f22332bedbc5e54724e8 09-Aug-2016 Alan Viverette <alanv@google.com> Add xxxhdpi assets for CTS theme host test
am: b246d9695c

Change-Id: I5edb6792f9f085b492e2bbe36d271bfcc3eeb9fd
1a4f1b045b863f17f56ab994dd16674dbad13bc6 09-Aug-2016 Alan Viverette <alanv@google.com> Add xxxhdpi assets for CTS theme host test
am: b246d9695c

Change-Id: I5ce6bcda410ba72832056f19f2c62db2cf648d37
0ef780e4f3dec2cb45613e5bacc2abbc369e461d 09-Aug-2016 Chong Zhang <chz@google.com> cts: fix test crash in supportsDragAndDrop()

Change-Id: I0edd6cf5626269e7e3d464423f6bd5f2bd15f673
ervices/activityandwindowmanager/windowmanager/src/android/server/cts/CrossAppDragAndDropTests.java
68be6d1729daaec07d1e591c7b1e38ac94ec8d2e 16-Jun-2016 Sudheer Shanka <sudheersai@google.com> DO NOT MERGE: Cts: Add checks for testing CREATE_USERS permission.

Bug: 29189712
Change-Id: Icff148ee55e8339cbde030b547788d424509b9a3
ultiuser/Android.mk
ultiuser/src/android/host/multiuser/BaseMultiUserTest.java
ultiuser/src/android/host/multiuser/CreateUsersPermissionTest.java
37b56df24650ac310c7fdbf57e63d23e12a5c5fb 16-Jun-2016 Sudheer Shanka <sudheersai@google.com> DO NOT MERGE: Cts: Add checks for testing CREATE_USERS permission.

Bug: 29189712
Change-Id: Icff148ee55e8339cbde030b547788d424509b9a3
ultiuser/Android.mk
ultiuser/src/android/host/multiuser/BaseMultiUserTest.java
ultiuser/src/android/host/multiuser/CreateUsersPermissionTest.java
ee9e788052a0c56dab50d16ff6be9c40dfa60b43 04-Aug-2016 Chong Zhang <chz@google.com> cts: adding test cases for translucent activity closing

bug: 28463843
Change-Id: I6bac84cbfa3c2b42d5d5049c2c2d7aacc9e384f1
ervices/activityandwindowmanager/activitymanager/app/AndroidManifest.xml
ervices/activityandwindowmanager/activitymanager/app/res/values/styles.xml
ervices/activityandwindowmanager/activitymanager/app/src/android/server/cts/TranslucentTopActivity.java
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/ActivityManagerTransitionSelectionTests.java
52ca0f68da568b428556fea956b8719a98dc615f 03-Aug-2016 Chong Zhang <chz@google.com> Move cts transition selection tests to correct folder

Change-Id: I8c76e529e4a038acdec85d7d0092b204ac4d6986
ervices/activityandwindowmanager/activitymanager/app/res/layout/floating.xml
ervices/activityandwindowmanager/activitymanager/app/res/layout/main.xml
ervices/activityandwindowmanager/activitymanager/app/src/android/server/cts/BottomActivity.java
ervices/activityandwindowmanager/activitymanager/app/src/android/server/cts/TopActivity.java
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/ActivityManagerTransitionSelectionTests.java
ervices/activitymanager/app/res/layout/floating.xml
ervices/activitymanager/app/res/layout/main.xml
ervices/activitymanager/app/src/android/server/app/BottomActivity.java
ervices/activitymanager/app/src/android/server/app/TopActivity.java
ervices/activitymanager/src/android/server/cts/ActivityManagerTransitionSelectionTests.java
29a50f453c2bb5cb610d814ae1170d3032f517fe 03-Aug-2016 ewol <ewol@google.com> Merge "Disable drag and drop tests on Wear"
b90e751fd811afd0e15f32198af36b66642102ad 03-Aug-2016 Chong Zhang <chz@google.com> Merge "cts: more test cases for transition animation selection"
dc1e8332ebe1a464bad90875dd2e0077515df5d1 26-Jul-2016 Erik Wolsheimer <ewol@google.com> Disable drag and drop tests on Wear

BUG: 30120559
Change-Id: I7af87aa20cef0419a4525b72d8798361598919a8
ervices/activityandwindowmanager/windowmanager/src/android/server/cts/CrossAppDragAndDropTests.java
b246d9695ccc2b025c3171b64a001588694921c6 03-Aug-2016 Alan Viverette <alanv@google.com> Add xxxhdpi assets for CTS theme host test

Updates theme test to work with non-default density so that we can use
"adb shell wm density <dpi>" if we don't possess the right devices. This
mostly works, except for a few assets where rounding error means the
scaled version doesn't match up.

Also updates the test results to push all the diff images into a ZIP for
easier consumption.

Bug: 30000597
Change-Id: I6bb5229cc30e6da8df1df0a49ede93d1e5ec52f9
heme/README
heme/app/src/android/theme/app/ThemeTestUtils.java
heme/assets/24/xxxhdpi.zip
heme/src/android/theme/cts/ComparisonTask.java
heme/src/android/theme/cts/ThemeHostTest.java
5ca9f6e6415a5e187d0902f45dac024ef6386ccd 03-Aug-2016 Makoto Onuki <omakoto@google.com> Merge "ShortcutManager CTS: Test for upgrade behavior"
2488e1aed4564b060092c42a66669ea196eb8fe7 01-Aug-2016 Chong Zhang <chz@google.com> cts: more test cases for transition animation selection

Construct a better test case to simulate failures due to
resuming before activityStopped() as in b/30255354. Stalling
onStop of the bottom activity by a certain amount, and let the
top activity finish before that ends. Use a second window to
allow the bottom activity to start animation even without
the main window (wallpaper target) relayout.

bug: 30255354

Change-Id: I8a6e9a9ca736165a439ab3a3b61c3226e8c8964a
ervices/activitymanager/app/res/layout/floating.xml
ervices/activitymanager/app/res/layout/main.xml
ervices/activitymanager/app/src/android/server/app/BottomActivity.java
ervices/activitymanager/src/android/server/cts/ActivityManagerTransitionSelectionTests.java
fa0a36d3a30d088de84310fb56b1703db99ed938 03-Aug-2016 Felipe Leme <felipeal@google.com> Improvements on retry mechanism on network tests: am: 0cd4ef0b80 am: a0eb87471d
am: cd97ebf9d7

Change-Id: I2f12d28f3fe36cd3406e3f8b0d96b19b31189632
cd97ebf9d7b25c8f0a4be1aa57810f5f57092083 03-Aug-2016 Felipe Leme <felipeal@google.com> Improvements on retry mechanism on network tests: am: 0cd4ef0b80
am: a0eb87471d

Change-Id: I0324e12cfd625ac102046d438e5ec8a5801c6688
a0eb87471da3d0ad900a1cbb6daf45c74c411b3e 03-Aug-2016 Felipe Leme <felipeal@google.com> Improvements on retry mechanism on network tests:
am: 0cd4ef0b80

Change-Id: I8c7df9a4cbad0df6decab6653d0c34f552574664
778c90c6490c656b4668bda4981177dabdc5236b 03-Aug-2016 Shukang Zhou <shukang@google.com> Merge "Add a host-side test to verify /proc/stat exists."
13afee5a8427a2a131fea11d8fbd1bc5dca30c96 02-Aug-2016 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Improvements on retry mechanism on network tests:" into nyc-mr1-dev
62138012d5462f1c447b8741ec1a08760db42f35 02-Aug-2016 Makoto Onuki <omakoto@google.com> ShortcutManager CTS: Test for upgrade behavior

- This is the first shortcut manager host-side test.

Bug 29612099

Change-Id: I1f30325c8f6b13d5f88b00fad643e71cb862577e
hortcuts/Android.mk
hortcuts/deviceside/Android.mk
hortcuts/deviceside/common/src/android/content/pm/cts/shortcut/device/common/ShortcutManagerDeviceTestBase.java
hortcuts/deviceside/upgrade/Android.mk
hortcuts/deviceside/upgrade/AndroidManifest.xml
hortcuts/deviceside/upgrade/src/android/content/pm/cts/shortcut/upgrade/Consts.java
hortcuts/deviceside/upgrade/src/android/content/pm/cts/shortcut/upgrade/Launcher.java
hortcuts/deviceside/upgrade/src/android/content/pm/cts/shortcut/upgrade/MainActivity.java
hortcuts/deviceside/upgrade/src/android/content/pm/cts/shortcut/upgrade/ShortcutManagerPostUpgradeTest.java
hortcuts/deviceside/upgrade/src/android/content/pm/cts/shortcut/upgrade/ShortcutManagerPreUpgradeTest.java
hortcuts/deviceside/upgrade/version1/res/drawable-nodpi/black_16x16.png
hortcuts/deviceside/upgrade/version1/res/drawable-nodpi/black_16x64.png
hortcuts/deviceside/upgrade/version1/res/drawable-nodpi/black_32x32.png
hortcuts/deviceside/upgrade/version1/res/drawable-nodpi/black_64x16.png
hortcuts/deviceside/upgrade/version1/res/drawable-nodpi/black_64x64.png
hortcuts/deviceside/upgrade/version2/res/drawable-nodpi/black_32x32.png
hortcuts/deviceside/upgrade/version2/res/drawable-nodpi/black_64x64.png
hortcuts/hostside/Android.mk
hortcuts/hostside/AndroidTest.xml
hortcuts/hostside/src/android/content/pm/cts/shortcuthost/BaseShortcutManagerHostTest.java
hortcuts/hostside/src/android/content/pm/cts/shortcuthost/ShortcutManagerUpgradeTest.java
1cb36ce3333678fa5700abfa10cffd5b64d199c9 28-Jul-2016 Shukang Zhou <shukang@google.com> Add a host-side test to verify /proc/stat exists.

Android Studio Performance Tools needs, as the shell user, to read
/proc/stat file to collect live metrics data. It requires this
file is in a reasonable shape, and being actively updated.

I have verified this test passing on a Nexus 6P running O. I have
also verified this test passing on a non-Nexus device (Samsung 6
running 6.0.1). In order to run the test on the non-Nexus device,
I have ported this CL into mnc-dev branch (http://ag/1282570) which
will not be submitted. I will only submit this CL on master branch.

http://b/30595738 is tracking this work.

Change-Id: I4ba82662b2e4b263fb732082238940f9e135ce48
s/src/android/os/cts/ProcfsHostTests.java
6b0c3a7b3d6745594a10d3a9854a1d5a5d10e679 02-Aug-2016 Andrii Kulian <akulian@google.com> Add CTS for applying latest config on app side am: 75de6e3f1d am: 55c0fb9427
am: 3645771061

Change-Id: I1e1c6d0f59468ba5e03ef04dee9ed073bf7131e6
364577106181701b9958c7af92cd2b2cb2d1ad1c 02-Aug-2016 Andrii Kulian <akulian@google.com> Add CTS for applying latest config on app side am: 75de6e3f1d
am: 55c0fb9427

Change-Id: I364a88a6bcb35726f17a5131b500ddbc89610098
55c0fb94275e08dcc2de971abc4be9eb89c3f207 02-Aug-2016 Andrii Kulian <akulian@google.com> Add CTS for applying latest config on app side
am: 75de6e3f1d

Change-Id: I19f1dea4fe2b2d5643b6bbe56997957b1c85accf
75de6e3f1d130b0c2eebcfed21f4931df2602690 30-Jul-2016 Andrii Kulian <akulian@google.com> Add CTS for applying latest config on app side

Sometimes latest override configuration was not applied when
activity was moved between stacks. Adding tests for these cases.

Bug: 30185335
Change-Id: If60f71aed9ca88586662614530249dd25d95dcf9
ervices/activitymanager/app/src/android/server/app/AbstractLifecycleLogActivity.java
ervices/activitymanager/app/src/android/server/app/ResizeableActivity.java
ervices/activitymanager/app/src/android/server/app/TestActivity.java
ervices/activitymanager/src/android/server/cts/ActivityManagerAppConfigurationTests.java
0cd4ef0b80f8a0ac43cfbd971b9ea3282ae2f920 02-Aug-2016 Felipe Leme <felipeal@google.com> Improvements on retry mechanism on network tests:

- Retry on all cases (not only when expecting connected).
- Uses exponential back-off for timeout.

BUG: 27803922
Fixes: 30509643

Change-Id: I42454f43158598a72e30f290c27c5a02e80ea6d2
et/app/src/com/android/cts/net/hostside/AbstractRestrictBackgroundNetworkTestCase.java
et/app2/src/com/android/cts/net/hostside/app2/MyBroadcastReceiver.java
ad81710f975c273010916173d4f12032178e2b2f 29-Jul-2016 Chong Zhang <chz@google.com> Add cts test for transition type selection

b/30255354

Change-Id: Id0c1acd3fe78107d42e674d47fbb2310417becf9
ervices/activityandwindowmanager/activitymanager/app/AndroidManifest.xml
ervices/activityandwindowmanager/activitymanager/app/res/values/styles.xml
ervices/activityandwindowmanager/util/src/android/server/cts/WindowManagerState.java
ervices/activitymanager/app/src/android/server/app/BottomActivity.java
ervices/activitymanager/app/src/android/server/app/TopActivity.java
ervices/activitymanager/src/android/server/cts/ActivityManagerTransitionSelectionTests.java
cb694c33f59967acbfa93308bbbadfda85563b90 01-Aug-2016 Erik Wolsheimer <ewol@google.com> Disable drag and drop tests on Wear
am: bd18627a7d

Change-Id: I2b70ca4b7217980ec2f7012d5ab638a612f91c84
9ab4793bd2eca2c1db7dbbaf8a8b726a73b6330a 01-Aug-2016 ewol <ewol@google.com> Merge "Disable drag and drop tests on Wear" into cw-f-dev
604a26dc425ff0e704faa98fd4ab827bb51466d4 29-Jul-2016 Andrii Kulian <akulian@google.com> Add CTS for finishing activity in non-focused stack case

This also required refactoring current launching mechanism.

Bug: 29458854
Change-Id: I15a5edecd427aa11513b3fd950d9037eb892e22f
ervices/activityandwindowmanager/activitymanager/app/AndroidManifest.xml
ervices/activityandwindowmanager/activitymanager/app/src/android/server/app/OnTopLauncherActivity.java
ervices/activityandwindowmanager/activitymanager/app/src/android/server/cts/BroadcastReceiverActivity.java
ervices/activityandwindowmanager/activitymanager/app/src/android/server/cts/LaunchToSideActivity.java
ervices/activityandwindowmanager/activitymanager/app/src/android/server/cts/LaunchingActivity.java
ervices/activityandwindowmanager/activitymanager/app/src/android/server/cts/OnTopLauncherActivity.java
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/ActivityManagerActivityVisiblityTests.java
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/ActivityManagerDockedStackTests.java
ervices/activityandwindowmanager/util/src/android/server/cts/ActivityManagerTestBase.java
fd7f784244d9a0e9b9c8ee26c4d4f7e10c70bfe1 29-Jul-2016 Andrii Kulian <akulian@google.com> Add CTS for finishing activity in non-focused stack case am: d5a8825a65
am: f460cfb56d

Change-Id: Ia68d7835d4785ce844bb869eb9e6e87135b521e5
f460cfb56d737c096732929e3d88870018e3ce62 29-Jul-2016 Andrii Kulian <akulian@google.com> Add CTS for finishing activity in non-focused stack case
am: d5a8825a65

Change-Id: Ibac3ef98ac92bad1a18a46ea4c70a5a9c07c4f28
3b6e3b22d7c9cbfc069e4fdcb760f509a7ebab2a 29-Jul-2016 Andrii Kulian <akulian@google.com> Merge "Add CTS for finishing activity in non-focused stack case" into nyc-mr1-dev
1a8b21890f16829eb0331778311d016592fc2f17 28-Jul-2016 Jiaquan He <hejq@google.com> Merge "Add OnTopLauncher CTS."
bd18627a7d0879022001065d1e06f14d96ddac3f 26-Jul-2016 Erik Wolsheimer <ewol@google.com> Disable drag and drop tests on Wear

BUG: 30120559
Change-Id: I7af87aa20cef0419a4525b72d8798361598919a8
ervices/windowmanager/src/android/wm/cts/CrossAppDragAndDropTests.java
8ccec50e916dd2a72ad6f5bdc9a5af7b54a8a426 19-Jul-2016 Jiaquan He <hejq@google.com> Add OnTopLauncher CTS.

This commit adds OnTopLauncher tests on fullscreen, docked and freeform
mode, including activity visibility and the z-order of the activity
windows.

Bug: 28425537
Change-Id: I4f0022a524ed2c7914c887dbdf4aa33e9b83476b
ervices/activityandwindowmanager/activitymanager/app/AndroidManifest.xml
ervices/activityandwindowmanager/activitymanager/app/src/android/server/app/OnTopLauncherActivity.java
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/ActivityManagerOnTopLauncherTests.java
ervices/activityandwindowmanager/util/src/android/server/cts/ActivityAndWindowManagersState.java
ervices/activityandwindowmanager/util/src/android/server/cts/ActivityManagerState.java
ce3bfba54a51db1fa952930a9815599a0a776e57 27-Jul-2016 Clara Bayarri <clarabayarri@google.com> Fix CTS Theme tests am: eeed0867be am: 05e78e7a3c
am: 7a9887e6d0

Change-Id: I8fe0bd0bc0d6b40b89edfa6d0e61be459b518878
7a9887e6d07ec4b5d970e30a90d2ad64b3c46050 27-Jul-2016 Clara Bayarri <clarabayarri@google.com> Fix CTS Theme tests am: eeed0867be
am: 05e78e7a3c

Change-Id: Ib3eb9f7c6af0c5049e8c2a640b485414a20488a7
05e78e7a3ceeb553fd9a6efcbcf8b7057f52494c 27-Jul-2016 Clara Bayarri <clarabayarri@google.com> Fix CTS Theme tests
am: eeed0867be

Change-Id: I4e387c4b598134e0a3d8cd8aab46b1a0427111e4
e7683f31a10de65a1eb25dae5619f721bd13cd1b 27-Jul-2016 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Fix CTS Theme tests" into nyc-mr1-dev
c6c957f401d44699ad02e83dad3f13aba92b7303 27-Jul-2016 Vladislav Kaznacheev <kaznacheev@google.com> Check validity of DragEvent getters in CrossAppDragAndDropTests

Check that DragEvent.getClipData() and DragEvent.getClipDescription()
are null or not null exactly as JavaDoc says they shoud be.

Check that DragEvent.getLocalState() is always null for a cross-app
drag.

Bug: 30410068
Change-Id: I86fa9612219eaf57f94926384810a2e08df45483
ervices/activityandwindowmanager/windowmanager/dndtargetapp/src/android/wm/cts/dndtargetapp/DropTarget.java
ervices/activityandwindowmanager/windowmanager/src/android/server/cts/CrossAppDragAndDropTests.java
eeed0867bebe6ffb57a37f330700c7198bb5cc6d 19-Jul-2016 Clara Bayarri <clarabayarri@google.com> Fix CTS Theme tests

These tests depended on a folder with the expected screenshots
according to API level, and we only had up to 24

Given that CTS tests only run for the current sdk level, this
change removes the different API level folders. The new golden
images are the same as were in the 24 folder, no changes have
been made for API 25.

Bug: 30216089
Change-Id: If653212acddf1324fcc447d434033cf623720bd0
heme/Android.mk
heme/assets/17/400dpi.zip
heme/assets/17/hdpi.zip
heme/assets/17/ldpi.zip
heme/assets/17/mdpi.zip
heme/assets/17/tvdpi.zip
heme/assets/17/xhdpi.zip
heme/assets/18/400dpi.zip
heme/assets/18/hdpi.zip
heme/assets/18/ldpi.zip
heme/assets/18/mdpi.zip
heme/assets/18/tvdpi.zip
heme/assets/18/xhdpi.zip
heme/assets/19/400dpi.zip
heme/assets/19/hdpi.zip
heme/assets/19/ldpi.zip
heme/assets/19/mdpi.zip
heme/assets/19/tvdpi.zip
heme/assets/19/xhdpi.zip
heme/assets/19/xxhdpi.zip
heme/assets/21/400dpi.zip
heme/assets/21/560dpi.zip
heme/assets/21/hdpi.zip
heme/assets/21/ldpi.zip
heme/assets/21/mdpi.zip
heme/assets/21/tvdpi.zip
heme/assets/21/xhdpi.zip
heme/assets/21/xxhdpi.zip
heme/assets/22/400dpi.zip
heme/assets/22/560dpi.zip
heme/assets/22/hdpi.zip
heme/assets/22/ldpi.zip
heme/assets/22/mdpi.zip
heme/assets/22/tvdpi.zip
heme/assets/22/xhdpi.zip
heme/assets/22/xxhdpi.zip
heme/assets/23/400dpi.zip
heme/assets/23/420dpi.zip
heme/assets/23/560dpi.zip
heme/assets/23/hdpi.zip
heme/assets/23/ldpi.zip
heme/assets/23/mdpi.zip
heme/assets/23/tvdpi.zip
heme/assets/23/xhdpi.zip
heme/assets/23/xxhdpi.zip
heme/assets/24/420dpi.zip
heme/assets/24/560dpi.zip
heme/assets/24/xhdpi.zip
heme/assets/24/xxhdpi.zip
heme/assets/420dpi.zip
heme/assets/560dpi.zip
heme/assets/xhdpi.zip
heme/assets/xxhdpi.zip
1fd0078abfe920360e9258c04e2973550acea1d6 25-Jul-2016 Robert Carr <racarr@google.com> Add directory lost in test reorg.

Bug: 30314665
Change-Id: Iac018f3c1efed8c152d88008d2300d5886667160
ervices/activityandwindowmanager/activitymanager/app/src/android/server/cts/AbstractLifecycleLogActivity.java
ervices/activityandwindowmanager/activitymanager/app/src/android/server/cts/AlwaysFocusablePipActivity.java
ervices/activityandwindowmanager/activitymanager/app/src/android/server/cts/AutoEnterPipActivity.java
ervices/activityandwindowmanager/activitymanager/app/src/android/server/cts/BottomLeftLayoutActivity.java
ervices/activityandwindowmanager/activitymanager/app/src/android/server/cts/BottomRightLayoutActivity.java
ervices/activityandwindowmanager/activitymanager/app/src/android/server/cts/DockedActivity.java
ervices/activityandwindowmanager/activitymanager/app/src/android/server/cts/FreeformActivity.java
ervices/activityandwindowmanager/activitymanager/app/src/android/server/cts/LaunchIntoPinnedStackPipActivity.java
ervices/activityandwindowmanager/activitymanager/app/src/android/server/cts/LaunchPipOnPipActivity.java
ervices/activityandwindowmanager/activitymanager/app/src/android/server/cts/LaunchToSideActivity.java
ervices/activityandwindowmanager/activitymanager/app/src/android/server/cts/NoRelaunchActivity.java
ervices/activityandwindowmanager/activitymanager/app/src/android/server/cts/NonResizeableActivity.java
ervices/activityandwindowmanager/activitymanager/app/src/android/server/cts/PipActivity.java
ervices/activityandwindowmanager/activitymanager/app/src/android/server/cts/ResizeableActivity.java
ervices/activityandwindowmanager/activitymanager/app/src/android/server/cts/SingleInstanceActivity.java
ervices/activityandwindowmanager/activitymanager/app/src/android/server/cts/SingleTaskActivity.java
ervices/activityandwindowmanager/activitymanager/app/src/android/server/cts/SlowCreateActivity.java
ervices/activityandwindowmanager/activitymanager/app/src/android/server/cts/TestActivity.java
ervices/activityandwindowmanager/activitymanager/app/src/android/server/cts/TopLeftLayoutActivity.java
ervices/activityandwindowmanager/activitymanager/app/src/android/server/cts/TopRightLayoutActivity.java
ervices/activityandwindowmanager/activitymanager/app/src/android/server/cts/TrampolineActivity.java
ervices/activityandwindowmanager/activitymanager/app/src/android/server/cts/TranslucentActivity.java
ervices/activityandwindowmanager/activitymanager/app/src/android/server/cts/TurnScreenOnActivity.java
ervices/activityandwindowmanager/activitymanager/app/src/android/server/cts/VisibleBehindActivity.java
d5a8825a654f551b929f0335f937000e3ae60541 22-Jul-2016 Andrii Kulian <akulian@google.com> Add CTS for finishing activity in non-focused stack case

This also required refactoring current launching mechanism.

Bug: 29458854
Change-Id: I1b14ff03cefa1614f902f2d73a5dab80c1528e6e
ervices/activitymanager/app/AndroidManifest.xml
ervices/activitymanager/app/src/android/server/app/BroadcastReceiverActivity.java
ervices/activitymanager/app/src/android/server/app/LaunchToSideActivity.java
ervices/activitymanager/app/src/android/server/app/LaunchingActivity.java
ervices/activitymanager/src/android/server/cts/ActivityManagerActivityVisiblityTests.java
ervices/activitymanager/src/android/server/cts/ActivityManagerDockedStackTests.java
ervices/activitymanager/src/android/server/cts/ActivityManagerTestBase.java
508e44395e9c8c5ad9ddd80fc7f979b2bc934818 21-Jul-2016 Vladislav Kaznacheev <kaznacheev@google.com> Make CtsDragAndDropHostTestCases stricter

Check that the content is not accessible before the permissions have been
requested or after they have been released.

Bug: 30284061
Change-Id: Ic746c8d09f11d8105e7992c117adfdf8dabe0da0
ervices/activityandwindowmanager/windowmanager/dndtargetapp/src/android/wm/cts/dndtargetapp/DropTarget.java
ervices/activityandwindowmanager/windowmanager/src/android/server/cts/CrossAppDragAndDropTests.java
fa016e139b97a01bef88ad72944fc50e09a81adb 22-Jul-2016 Robert Carr <racarr@google.com> Enable disabled window frame test in docked.

Test was disabled in docked mode for b/30225290 but can be enabled
following fix.

Change-Id: I5c1c091ea5c2e576094b6c8b8bad881469931778
ervices/activityandwindowmanager/windowmanager/src/android/server/cts/DialogFrameTests.java
e0212bb78b63118cabfd4ef51b50bfdd40d8289a 21-Jul-2016 Robert Carr <racarr@google.com> Correct and enable Dialog Margin test.

There wasn't a bug...I think I just got confused by the host side
and the android side code using different rectangle representations.

Change-Id: I53b62beb275ad15b88602ba196aa21628bae56fb
ervices/activityandwindowmanager/windowmanager/src/android/server/cts/DialogFrameTests.java
9ea53bc567b329986d9c6a5bd06f9998876abf54 21-Jul-2016 Robert Carr <racarr@google.com> Add SurfaceView/WM interaction test harness.

Just very basic tests so far. Also want to test frames,
clipping, multiple SurfaceViews, and docked adjustment.

Change-Id: I731a676369321fb8eaa94fa2fb069d7d3e64bfcb
ervices/activityandwindowmanager/util/src/android/server/cts/WindowManagerState.java
ervices/activityandwindowmanager/windowmanager/frametestapp/AndroidManifest.xml
ervices/activityandwindowmanager/windowmanager/frametestapp/src/android/server/frametestapp/SurfaceViewTestActivity.java
ervices/activityandwindowmanager/windowmanager/src/android/server/cts/SurfaceViewTests.java
a622b07cb4607287fa00bcd32c485b53b04fb669 21-Jul-2016 Chong Zhang <chz@google.com> Merge \\"Don\\'t fail test if fontScale key is undefined\\" into nyc-mr1-dev am: 816b5243fa
am: 20994e47fb

Change-Id: I766e63369cefc1b097391b433a3346095451631e
20994e47fb4671e68acf75c87f3eec0839da195d 21-Jul-2016 Chong Zhang <chz@google.com> Merge \"Don\'t fail test if fontScale key is undefined\" into nyc-mr1-dev
am: 816b5243fa

Change-Id: I91aab0ace3acf9c574a4674bc3649d661be4213a
816b5243faf117ef5a18ae7c923341d8a50348f6 21-Jul-2016 Chong Zhang <chz@google.com> Merge "Don't fail test if fontScale key is undefined" into nyc-mr1-dev
66eb34b46b4277e533b4b4817eccc2c2beec685e 20-Jul-2016 TreeHugger Robot <treehugger-gerrit@google.com> Merge changes Ie81a3bfa,I8d3e9dd3,I17e2c6ab

* changes:
Run DialogFrameTests docked as well.
More WindowManager/Dialog interaction tests.
Reorganize AM/WM host side tests.
4be4cded619d75940c7525949cc7b21b3eab2e68 19-Jul-2016 Robert Carr <racarr@google.com> Run DialogFrameTests docked as well.

Also run DialogFrameTests in the docked stack. One test in
docked disabled due to suspected bug.

Change-Id: Ie81a3bfae211287378abbd3b4aef9e762af197c2
ervices/activityandwindowmanager/windowmanager/Android.mk
ervices/activityandwindowmanager/windowmanager/frametestapp/src/android/server/frametestapp/DialogTestActivity.java
ervices/activityandwindowmanager/windowmanager/src/android/server/cts/DialogFrameTests.java
7a24b338f94be82f1c7a2658b94d1f53b17540ff 15-Jul-2016 Robert Carr <racarr@google.com> More WindowManager/Dialog interaction tests.

Plus some fixes to existing tests (which weren't running properly
sequentially). Includes some superficial cleanup: avoid repeating
dialog so much, and rename test case package appropriately.

Change-Id: I8d3e9dd3b0d29ef699bed7b7a43dc6b7fde16cc1
ervices/activityandwindowmanager/util/src/android/server/cts/WindowManagerState.java
ervices/activityandwindowmanager/windowmanager/Android.mk
ervices/activityandwindowmanager/windowmanager/AndroidTest.xml
ervices/activityandwindowmanager/windowmanager/frametestapp/src/android/server/frametestapp/DialogTestActivity.java
ervices/activityandwindowmanager/windowmanager/src/android/server/cts/DialogFrameTests.java
bc4b9b212df04f087df3a6439b85111c4c258d7d 15-Jul-2016 Robert Carr <racarr@google.com> Reorganize AM/WM host side tests.

Move AM and WM tests in to the same package for
easier sharing of utility code.

Change-Id: I17e2c6ab20497469943b28960f6bfc5e2de541ef
ervices/activityandwindowmanager/Android.mk
ervices/activityandwindowmanager/activitymanager/Android.mk
ervices/activityandwindowmanager/activitymanager/AndroidTest.xml
ervices/activityandwindowmanager/activitymanager/OldAndroidTest.xml
ervices/activityandwindowmanager/activitymanager/app/Android.mk
ervices/activityandwindowmanager/activitymanager/app/AndroidManifest.xml
ervices/activityandwindowmanager/activitymanager/app/res/values/styles.xml
ervices/activityandwindowmanager/activitymanager/appDisplaySize/Android.mk
ervices/activityandwindowmanager/activitymanager/appDisplaySize/AndroidManifest.xml
ervices/activityandwindowmanager/activitymanager/appDisplaySize/src/android/displaysize/app/SmallestWidthActivity.java
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/ActivityAndWindowManagerOverrideConfigTests.java
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/ActivityManagerActivityVisiblityTests.java
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/ActivityManagerAmStartOptionsTests.java
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/ActivityManagerAppConfigurationTests.java
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/ActivityManagerConfigChangeTests.java
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/ActivityManagerDockedStackTests.java
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/ActivityManagerFreeformStackTests.java
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/ActivityManagerManifestLayoutTests.java
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/ActivityManagerPinnedStackTests.java
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/ActivityManagerReplaceWindowTests.java
ervices/activityandwindowmanager/activitymanager/src/android/server/cts/DisplaySizeTest.java
ervices/activityandwindowmanager/util/Android.mk
ervices/activityandwindowmanager/util/src/android/server/cts/ActivityAndWindowManagersState.java
ervices/activityandwindowmanager/util/src/android/server/cts/ActivityManagerState.java
ervices/activityandwindowmanager/util/src/android/server/cts/ActivityManagerTestBase.java
ervices/activityandwindowmanager/util/src/android/server/cts/StateLogger.java
ervices/activityandwindowmanager/util/src/android/server/cts/WindowManagerState.java
ervices/activityandwindowmanager/windowmanager/Android.mk
ervices/activityandwindowmanager/windowmanager/AndroidTest.xml
ervices/activityandwindowmanager/windowmanager/OldAndroidTest.xml
ervices/activityandwindowmanager/windowmanager/dndsourceapp/Android.mk
ervices/activityandwindowmanager/windowmanager/dndsourceapp/AndroidManifest.xml
ervices/activityandwindowmanager/windowmanager/dndsourceapp/res/layout/source_activity.xml
ervices/activityandwindowmanager/windowmanager/dndsourceapp/src/android/wm/cts/dndsourceapp/DragSource.java
ervices/activityandwindowmanager/windowmanager/dndsourceapp/src/android/wm/cts/dndsourceapp/DragSourceContentProvider.java
ervices/activityandwindowmanager/windowmanager/dndsourceapp/src/android/wm/cts/dndsourceapp/DragSourceCursor.java
ervices/activityandwindowmanager/windowmanager/dndtargetapp/Android.mk
ervices/activityandwindowmanager/windowmanager/dndtargetapp/AndroidManifest.xml
ervices/activityandwindowmanager/windowmanager/dndtargetapp/res/layout/target_activity.xml
ervices/activityandwindowmanager/windowmanager/dndtargetapp/src/android/wm/cts/dndtargetapp/DropTarget.java
ervices/activityandwindowmanager/windowmanager/dndtargetappsdk23/Android.mk
ervices/activityandwindowmanager/windowmanager/dndtargetappsdk23/AndroidManifest.xml
ervices/activityandwindowmanager/windowmanager/dndtargetappsdk23/res/layout/target_activity.xml
ervices/activityandwindowmanager/windowmanager/dndtargetappsdk23/src/android/wm/cts/dndtargetappsdk23/DropTarget.java
ervices/activityandwindowmanager/windowmanager/frametestapp/Android.mk
ervices/activityandwindowmanager/windowmanager/frametestapp/AndroidManifest.xml
ervices/activityandwindowmanager/windowmanager/frametestapp/src/android/server/frametestapp/DialogTestActivity.java
ervices/activityandwindowmanager/windowmanager/src/android/server/cts/CrossAppDragAndDropTests.java
ervices/activityandwindowmanager/windowmanager/src/android/server/cts/DialogFrameTests.java
ervices/activitymanager/Android.mk
ervices/activitymanager/AndroidTest.xml
ervices/activitymanager/OldAndroidTest.xml
ervices/activitymanager/app/Android.mk
ervices/activitymanager/app/AndroidManifest.xml
ervices/activitymanager/app/res/values/styles.xml
ervices/activitymanager/app/src/android/server/app/AbstractLifecycleLogActivity.java
ervices/activitymanager/app/src/android/server/app/AlwaysFocusablePipActivity.java
ervices/activitymanager/app/src/android/server/app/AutoEnterPipActivity.java
ervices/activitymanager/app/src/android/server/app/BottomLeftLayoutActivity.java
ervices/activitymanager/app/src/android/server/app/BottomRightLayoutActivity.java
ervices/activitymanager/app/src/android/server/app/DockedActivity.java
ervices/activitymanager/app/src/android/server/app/FreeformActivity.java
ervices/activitymanager/app/src/android/server/app/LaunchIntoPinnedStackPipActivity.java
ervices/activitymanager/app/src/android/server/app/LaunchPipOnPipActivity.java
ervices/activitymanager/app/src/android/server/app/LaunchToSideActivity.java
ervices/activitymanager/app/src/android/server/app/NoRelaunchActivity.java
ervices/activitymanager/app/src/android/server/app/NonResizeableActivity.java
ervices/activitymanager/app/src/android/server/app/PipActivity.java
ervices/activitymanager/app/src/android/server/app/ResizeableActivity.java
ervices/activitymanager/app/src/android/server/app/SingleInstanceActivity.java
ervices/activitymanager/app/src/android/server/app/SingleTaskActivity.java
ervices/activitymanager/app/src/android/server/app/SlowCreateActivity.java
ervices/activitymanager/app/src/android/server/app/TestActivity.java
ervices/activitymanager/app/src/android/server/app/TopLeftLayoutActivity.java
ervices/activitymanager/app/src/android/server/app/TopRightLayoutActivity.java
ervices/activitymanager/app/src/android/server/app/TrampolineActivity.java
ervices/activitymanager/app/src/android/server/app/TranslucentActivity.java
ervices/activitymanager/app/src/android/server/app/TurnScreenOnActivity.java
ervices/activitymanager/app/src/android/server/app/VisibleBehindActivity.java
ervices/activitymanager/appDisplaySize/Android.mk
ervices/activitymanager/appDisplaySize/AndroidManifest.xml
ervices/activitymanager/appDisplaySize/src/android/displaysize/app/SmallestWidthActivity.java
ervices/activitymanager/src/android/server/cts/ActivityAndWindowManagersState.java
ervices/activitymanager/src/android/server/cts/ActivityManagerActivityVisiblityTests.java
ervices/activitymanager/src/android/server/cts/ActivityManagerAmStartOptionsTests.java
ervices/activitymanager/src/android/server/cts/ActivityManagerAppConfigurationTests.java
ervices/activitymanager/src/android/server/cts/ActivityManagerConfigChangeTests.java
ervices/activitymanager/src/android/server/cts/ActivityManagerDockedStackTests.java
ervices/activitymanager/src/android/server/cts/ActivityManagerFreeformStackTests.java
ervices/activitymanager/src/android/server/cts/ActivityManagerManifestLayoutTests.java
ervices/activitymanager/src/android/server/cts/ActivityManagerPinnedStackTests.java
ervices/activitymanager/src/android/server/cts/ActivityManagerReplaceWindowTests.java
ervices/activitymanager/src/android/server/cts/ActivityManagerState.java
ervices/activitymanager/src/android/server/cts/ActivityManagerTestBase.java
ervices/activitymanager/src/android/server/cts/DisplaySizeTest.java
ervices/activitymanager/src/android/server/cts/StateLogger.java
ervices/activitymanager/src/android/server/cts/WindowManagerState.java
ervices/windowmanager/Android.mk
ervices/windowmanager/AndroidTest.xml
ervices/windowmanager/OldAndroidTest.xml
ervices/windowmanager/dndsourceapp/Android.mk
ervices/windowmanager/dndsourceapp/AndroidManifest.xml
ervices/windowmanager/dndsourceapp/res/layout/source_activity.xml
ervices/windowmanager/dndsourceapp/src/android/wm/cts/dndsourceapp/DragSource.java
ervices/windowmanager/dndsourceapp/src/android/wm/cts/dndsourceapp/DragSourceContentProvider.java
ervices/windowmanager/dndsourceapp/src/android/wm/cts/dndsourceapp/DragSourceCursor.java
ervices/windowmanager/dndtargetapp/Android.mk
ervices/windowmanager/dndtargetapp/AndroidManifest.xml
ervices/windowmanager/dndtargetapp/res/layout/target_activity.xml
ervices/windowmanager/dndtargetapp/src/android/wm/cts/dndtargetapp/DropTarget.java
ervices/windowmanager/dndtargetappsdk23/Android.mk
ervices/windowmanager/dndtargetappsdk23/AndroidManifest.xml
ervices/windowmanager/dndtargetappsdk23/res/layout/target_activity.xml
ervices/windowmanager/dndtargetappsdk23/src/android/wm/cts/dndtargetappsdk23/DropTarget.java
ervices/windowmanager/frametestapp/Android.mk
ervices/windowmanager/frametestapp/AndroidManifest.xml
ervices/windowmanager/frametestapp/src/android/server/frametestapp/DialogTestActivity.java
ervices/windowmanager/src/android/wm/cts/CrossAppDragAndDropTests.java
ervices/windowmanager/src/android/wm/cts/DialogFrameTests.java
b442dcbe87329b00b08e8735730976a712fe5673 19-Jul-2016 Chong Zhang <chz@google.com> Don't fail test if fontScale key is undefined

Make sure to delete the key we set during test, but don't fail
the test if the initial value is undefined.

bug: 30119049
Change-Id: Ice1bf0c965cb22ebaf560ba808888fc0d7f72125
ervices/activitymanager/src/android/server/cts/ActivityManagerTestBase.java
6350af500e01c24f6e71c331ee3616badf710eb0 19-Jul-2016 Alex Klyubin <klyubin@google.com> Merge \\"Assert that certs are not re-encoded during APK verification.\\" into nyc-mr1-dev am: 2d045c5f3f
am: d32c078135

Change-Id: Ib12f987e6b954983e512c23762b6f0369d7c3a4e
d32c078135d90b3cf7adc43c8dcbff46894149c3 19-Jul-2016 Alex Klyubin <klyubin@google.com> Merge \"Assert that certs are not re-encoded during APK verification.\" into nyc-mr1-dev
am: 2d045c5f3f

Change-Id: I5f06f6feb813c9cd454cc0abf2ae2143e6fa05c2
d1b6836ee8d4a6f4fc624eb055c24659d04c7a7b 19-Jul-2016 Alex Klyubin <klyubin@google.com> Assert that certs are not re-encoded during APK verification.

This adds CTS tests which assert that PackageManager does not
re-encode APKs' signing certs into DER form.

Bug: 30148997
Change-Id: Ie8c578b9fc4a6d83aeecfccd857498ada28d4e08
ppsecurity/res/pkgsigverify/v1-only-with-rsa-1024-cert-not-der.apk
ppsecurity/res/pkgsigverify/v1-only-with-rsa-1024.apk
ppsecurity/res/pkgsigverify/v2-only-with-rsa-pkcs1-sha256-1024-cert-not-der.apk
ppsecurity/src/android/appsecurity/cts/PkgInstallSignatureVerificationTest.java
d46ba0c88e5109fe9c8df9bdf76b65362948d252 15-Jul-2016 Daniel Xie <dxie@google.com> resolve merge conflicts of e8a3ce9 to nyc-dev am: 4e6701d279 am: 3bc0527664
am: 8e58045f02

Change-Id: I8d5c9c2f11ceefe87df7b13abb5a443e3417121f
482c4b1b5190bcaaaa3b469df7cbf9acf1535dc3 15-Jul-2016 Daniel Xie <dxie@google.com> resolve merge conflicts of e8a3ce9 to nyc-dev
am: 4e6701d279

Change-Id: I0a336dcda4ed4da7b1c43fd081cb7bea8456d028
8e58045f02df03ba1403f455302363960489a9b7 15-Jul-2016 Kazuhiro Inaba <kinaba@google.com> resolve merge conflicts of e8a3ce9 to nyc-dev am: 4e6701d279
am: 3bc0527664

Change-Id: Ia6a4d2a8c6fea3bed88ab56410f4fa22eba7cc8f
3bc052766411d23df602e667bd7e691ca0f88435 15-Jul-2016 Daniel Xie <dxie@google.com> resolve merge conflicts of e8a3ce9 to nyc-dev
am: 4e6701d279

Change-Id: If716fc69d1c51b6ebda373b2d8d236291238c82f
4e6701d27971dfc4847f33a8953add01c4ab21ec 15-Jul-2016 Kazuhiro Inaba <kinaba@google.com> resolve merge conflicts of e8a3ce9 to nyc-dev

Change-Id: I9f403c486603459515fe7000cfd49c0ae6f4b8df
6e54045a2079216cab227e07063da19d52b4aab2 15-Jul-2016 Vadim Tryshev <vadimt@google.com> Merge \"Closing test activity created by testGetRecentTasksLimitedToCurrentAPK\" into marshmallow-cts-dev
am: 7e51e59574

Change-Id: Ia75c8d6990f67d55ae301f7e9a4cb7002a10869d
7e51e595747dac9b152eae2a81e7d577ec9e02e6 15-Jul-2016 Daniel Xie <dxie@google.com> Merge "Closing test activity created by testGetRecentTasksLimitedToCurrentAPK" into marshmallow-cts-dev
7f87a245b6fb4503df903b7f3e755bb01f98fac0 15-Jul-2016 Rob Carr <racarr@google.com> Merge "Tests for various window manager layout scenarios."
9d2bb7704b5084d52f07490224c33a9c4455d9c5 14-Jul-2016 Chong Zhang <chz@google.com> Merge "Rename mFocusedActivity to mResumedActivity to match am output"
fdcecf1cc3ebcc1ef1385af7d704503f4f106af8 14-Jul-2016 Robert Carr <racarr@google.com> Tests for various window manager layout scenarios.

Initial start at test for various window manager layout scenarios.
Many tests left to write even just for Dialog. Some changes to
ActivityManagerTestBase and assosciated classes to let the windowmanager
test package make use of it. Probably need to do some source directory
reorg there.

Change-Id: I17d12913031712ee4cbc7b1210e6027116a5830a
ervices/activitymanager/src/android/server/cts/ActivityAndWindowManagersState.java
ervices/activitymanager/src/android/server/cts/ActivityManagerTestBase.java
ervices/activitymanager/src/android/server/cts/WindowManagerState.java
ervices/windowmanager/Android.mk
ervices/windowmanager/AndroidTest.xml
ervices/windowmanager/frametestapp/Android.mk
ervices/windowmanager/frametestapp/AndroidManifest.xml
ervices/windowmanager/frametestapp/src/android/server/frametestapp/DialogTestActivity.java
ervices/windowmanager/src/android/wm/cts/DialogFrameTests.java
5dc98c1d93988cd2cf8b3818ee666f0297ea84db 13-Jul-2016 Chong Zhang <chz@google.com> Rename mFocusedActivity to mResumedActivity to match am output

bug: 29937415

Change-Id: I308a6be5c5675662cbda5cfd48113214bc8ab0c9
ervices/activitymanager/src/android/server/cts/ActivityManagerState.java
6a532106671c1723e56b00ba40501113a0ad092a 13-Jul-2016 Mahaver Chopra <mahaver@google.com> Merge \\"Add \\"no_oem_unlock\\" in hidden restrictions.\\" into nyc-mr1-dev am: 9cd23f24fb
am: 7ed2e4dc59

Change-Id: I5ea35b668b849bdcadc72c5461d4880233d38966
7ed2e4dc59f4f9edefa49f48c6a83033900216a8 13-Jul-2016 Mahaver Chopra <mahaver@google.com> Merge \"Add \"no_oem_unlock\" in hidden restrictions.\" into nyc-mr1-dev
am: 9cd23f24fb

Change-Id: I8313c4538073d62186b9fed3e8f96ed5fe4207ed
772dcdc8a15b4c861acfc914a5781d53afe877be 09-Jun-2016 Mohamad Ayyash <mkayyash@google.com> DO NOT MERGE, re-apply, Adjust testAppFailAccessPrivateData to fail on non-tagged sockets

Also avoid failing on expecting to find other sockets in qtaguid stats
since we already test we can access our stats in
CreatePrivateDataTest:testCreatePrivateData test

BUG: 29071701
BUG: 27577101
Change-Id: Ibb3befdcf0f9433c7d54a579af282d5c2569409d
Signed-off-by: Mohamad Ayyash <mkayyash@google.com>
ppsecurity/test-apps/AppAccessData/src/com/android/cts/appaccessdata/AccessPrivateDataTest.java
d4d3b01b53f9efe340f28bdaa8d5ee15e8a6cbeb 12-Jul-2016 Mahaver Chopra <mahaver@google.com> Add "no_oem_unlock" in hidden restrictions.

Bug: 29893399
Change-Id: I2519acbc16ec36908a3377afa370809bd117a5f3
evicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/userrestrictions/BaseUserRestrictionsTest.java
f850009408c81ee906dd1097b2b82b60444cf77a 12-Jul-2016 Daniel Xie <dxie@google.com> Revert "DO NOT MERGE Adjust testAppFailAccessPrivateData to fail on non-tagged sockets"

This reverts commit 09c52c6c52945f0f5da5f47d531b94e10802c01b.

Change-Id: I68e822ed42707dca92946215f838fc18a981378a
ppsecurity/test-apps/AppAccessData/src/com/android/cts/appaccessdata/AccessPrivateDataTest.java
753d212e385259c38258d4a1864e79d6020bae6c 12-Jul-2016 Mohamad Ayyash <mkayyash@google.com> Merge changes I99614045,Ib6f66b2b into marshmallow-cts-dev
am: 5c58c28144

Change-Id: Id8763c6ac28144866cbf451950e7c39990b20551
09c52c6c52945f0f5da5f47d531b94e10802c01b 09-Jun-2016 Mohamad Ayyash <mkayyash@google.com> DO NOT MERGE
Adjust testAppFailAccessPrivateData to fail on non-tagged sockets

Also avoid failing on expecting to find other sockets in qtaguid stats
since we already test we can access our stats in
CreatePrivateDataTest:testCreatePrivateData test

BUG: 29071701
BUG: 27577101
Change-Id: I99614045f0263284933b4a98bbb0e9aabd55fe1b
Signed-off-by: Mohamad Ayyash <mkayyash@google.com>
ppsecurity/test-apps/AppAccessData/src/com/android/cts/appaccessdata/AccessPrivateDataTest.java
bfcd19392ce230c53fb4714250fbeccc0efe6ce8 30-Jun-2016 Felipe Leme <felipeal@google.com> Merge \\"Cover more PendingIntent whitelist scenarios.\\" into nyc-mr1-dev am: 7ad28a9f49
am: 7e9b8c2f42

Change-Id: Ie1068e4ea6e6d43081ad30dc45242599b62cc350
7e9b8c2f429e45fd0b9cf252c7f53e4d435114be 30-Jun-2016 Felipe Leme <felipeal@google.com> Merge \"Cover more PendingIntent whitelist scenarios.\" into nyc-mr1-dev
am: 7ad28a9f49

Change-Id: I44317faff3ba4243f6a91e7b27384288bdc94f7c
7ad28a9f490b243bd91c8a61881ca44026a3b1a4 30-Jun-2016 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Cover more PendingIntent whitelist scenarios." into nyc-mr1-dev
5db3b8167d7a588374b322b600e533f6fe24e997 30-Jun-2016 Vadim Tryshev <vadimt@google.com> Closing test activity created by testGetRecentTasksLimitedToCurrentAPK

testGetRecentTasksLimitedToCurrentAPK() creates a SimpleActivity and
doesn’t finish it. The activity remains, and interferes with tests
run after testGetRecentTasksLimitedToCurrentAPK().

For example, in general Android,
testTimeTrackingAPI_SimpleStartExit() succeeds only by a chance,
because switching from its activity to still lingering
SimpleActivity behave similarly to switching to GEL launcher.
In ARC, the timing is different, and the launcher is different;
as a result the test doesn’t succeed by a chance, and fails.
More details in the bug:
https://b.corp.google.com/u/0/issues/29062062#comment8

The fix fixes this bug in CTS tests.

The fin will be landed in marshmallow-cts-dev, which is the AOSP
branch for cts for M release, and from there will be automerged
to ARC development branch.

Bug: 29062062
Change-Id: Ifa7eda73c5a596abd98a9537a1301098dbeefcfc
evicepolicy/app/SimpleApp/src/com/android/cts/launcherapps/simpleapp/SimpleActivity.java
458ee2820a899b4e5d2c5ae5f3f993555a84a9b2 30-Jun-2016 Chad Brubaker <cbrubaker@google.com> Merge "Remove calls to NetworkSecurityPolicy.handleTrustStorageUpdate"
7ca5b82c8b44abc452da1f059ec57e91ec2045aa 29-Jun-2016 Chong Zhang <chz@google.com> cts: fix random failure in AmStartOptionsTests am: 13e1bb1427
am: 4feafeb0c4

Change-Id: Ibb7c7cfe63abc514b4278b316eaae5aa9c8d4608
4feafeb0c4d5adf7d3fff6452ae23db7cabe3cc5 29-Jun-2016 Chong Zhang <chz@google.com> cts: fix random failure in AmStartOptionsTests
am: 13e1bb1427

Change-Id: I7dc333632a7f3a88bdbfbff462541078da8aaa31
13e1bb142723fbcb8a8a1672e15618201e62bc10 29-Jun-2016 Chong Zhang <chz@google.com> cts: fix random failure in AmStartOptionsTests

Restrict display app checking to test packages.

During the test some other components may be launched because of
unrelated crashes, ignore app display traces from packages other
than the test ("android.server.app").

bug: 29451567
bug: 28333487
Change-Id: Ib6d465e07f5f9044d4964e02c575eb9df0a0a0e2
ervices/activitymanager/src/android/server/cts/ActivityManagerAmStartOptionsTests.java
10c1f6af20ad2c6a0794bb8a9ce564cf52992060 29-Jun-2016 Chong Zhang <chz@google.com> Merge \\"cts: test am start -D & -W\\" into nyc-mr1-dev am: 6da6b20dc6
am: 8669867ddc

Change-Id: I02405c81e51859c954805fe2855c7fc089fb346d
8669867ddc0918d677e02c6af4f9857bd28e392a 29-Jun-2016 Chong Zhang <chz@google.com> Merge \"cts: test am start -D & -W\" into nyc-mr1-dev
am: 6da6b20dc6

Change-Id: I95dab04c3443afc8f4ef00ce3695127456a5323d
6da6b20dc6927331b23794772e2f466b76a4a6a0 29-Jun-2016 Chong Zhang <chz@google.com> Merge "cts: test am start -D & -W" into nyc-mr1-dev
14ed3f65427c915089427faff4e5abba57570c13 28-Apr-2016 Chad Brubaker <cbrubaker@google.com> Remove calls to NetworkSecurityPolicy.handleTrustStorageUpdate

This is now called on certificate changes and is no longer needed nor is
it a TestApi now.

Change-Id: I0f1185b87c1ff153b78864e0f153e412d96673a9
evicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/CaCertManagementTest.java
9b74fe73ae85a28b79ed3c3626ff81c845ac7a87 28-Jun-2016 Aurimas Liutikas <aurimas@google.com> Disable ThemeHostTest for Android TV. am: 64e87aa342 am: 4c982fc448
am: 7f5bbf8a98

Change-Id: I9dac392b79b411383697298264597d5848e9ef9e
7f5bbf8a9860ea517ce379f1e5de984b476ce537 28-Jun-2016 Aurimas Liutikas <aurimas@google.com> Disable ThemeHostTest for Android TV. am: 64e87aa342
am: 4c982fc448

Change-Id: I9a5e4006d1a19de279bc10f9edfc958a78db2356
4c982fc448f1420cae19e307b3934fd0fd4de037 28-Jun-2016 Aurimas Liutikas <aurimas@google.com> Disable ThemeHostTest for Android TV.
am: 64e87aa342

Change-Id: I0f2ad81416a3e190b326c8b5d0371686d4f40041
8f5c81ad4de63e9e8cfa8dfaa79af83bc37e328d 28-Jun-2016 Aurimas Liutikas <aurimas@google.com> Disable ThemeHostTest for Android TV.
am: 64e87aa342

Change-Id: I7db929a6344e40d8013d3e8d9efaba8bb19d666b
150bdd24ccb971cfd05da6b82dd47dbc10462433 27-Jun-2016 Chong Zhang <chz@google.com> cts: test am start -D & -W

bug: 29451567
bug: 28980761
bug: 28333487
bug: 27931552

Change-Id: I378ac5c4125102aabdf49223c59c2705deed530d
ervices/activitymanager/app/AndroidManifest.xml
ervices/activitymanager/app/src/android/server/app/TrampolineActivity.java
ervices/activitymanager/src/android/server/cts/ActivityManagerAmStartOptionsTests.java
ervices/activitymanager/src/android/server/cts/ActivityManagerTestBase.java
ervices/activitymanager/src/android/server/cts/WindowManagerState.java
64e87aa34257c4699808343f2f02b585d97420c4 28-Jun-2016 Aurimas Liutikas <aurimas@google.com> Disable ThemeHostTest for Android TV.

The tests are failing due to some discrepancies between phone
and tv default theme attribute differences. Will try to address for
nyc-mr1

Bug: 29778488
Change-Id: I3dd31a2f80c0c03f2cb51e7a8e1b18be6f356cfd
heme/src/android/theme/cts/ThemeHostTest.java
877c50bac055f5d98c23f6a5354846e296522ed1 28-Jun-2016 Felipe Leme <felipeal@google.com> Cover more PendingIntent whitelist scenarios.

BUG: 29480440
Change-Id: I961b765f40135efc06fbb3e5a4a94e8e333453da
et/app/src/com/android/cts/net/hostside/AbstractDozeModeTestCase.java
et/app/src/com/android/cts/net/hostside/AbstractRestrictBackgroundNetworkTestCase.java
et/app/src/com/android/cts/net/hostside/MyNotificationListenerService.java
et/app2/src/com/android/cts/net/hostside/app2/Common.java
et/app2/src/com/android/cts/net/hostside/app2/MyBroadcastReceiver.java
b6a0d1a9b79d0a3fc1aa4578ce6bf148bf72f6bb 28-Jun-2016 Tony Mak <tonymak@google.com> Merge "Add cts to verify DPC can set always-on-vpn when DISALLOW_CONFIG_VPN is ON"
671bf0aa07f4b25f071e2fd99be5aae573125b7a 27-Jun-2016 Tony Mak <tonymak@google.com> Add cts to verify DPC can set always-on-vpn when DISALLOW_CONFIG_VPN is ON

Change-Id: Id283c80df0cd36d672f09a79e3d553ee0c0b2b3b
Fix: 29095784
evicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/AlwaysOnVpnTest.java
c211736844ad3b8e20cdcf8f48d17d30df99c0d3 27-Jun-2016 Jeff Sharkey <jsharkey@android.com> Merge \\\"Give ourselves a long timeout on the way back.\\\" into nyc-dev am: c5609d9f7a am: 63f156e552
am: a9dca37549

Change-Id: If0c0442d1435d28b318ee3716907cf1b525e9290
a9dca375494a6b8bc6fb01e29df6b6c63a0bf997 27-Jun-2016 Jeff Sharkey <jsharkey@android.com> Merge \\"Give ourselves a long timeout on the way back.\\" into nyc-dev am: c5609d9f7a
am: 63f156e552

Change-Id: I003c9d82981b1348d8182ce743d3e26cef9f382c
36f87c42017fc0e77134c0051fc7febfd6d7c79c 27-Jun-2016 Jeff Sharkey <jsharkey@android.com> Merge \"Give ourselves a long timeout on the way back.\" into nyc-dev
am: c5609d9f7a

Change-Id: I3c6fec747c9e97b8716cdaf05545a65d692be2a4
63f156e552b57e61aa39bcee211abea4d209b25e 27-Jun-2016 Jeff Sharkey <jsharkey@android.com> Merge \"Give ourselves a long timeout on the way back.\" into nyc-dev
am: c5609d9f7a

Change-Id: I502dc8307779aae2a00265799fd1f35dcdce8406
e2b8c850917d542d9fcb5ce2bbbc8b3f20b4e77b 27-Jun-2016 Victor Chang <vichang@google.com> resolve merge conflicts of cdfcb63 to master

It conflicts with cl/1133417

Change-Id: I7dff7afed0e1f6b6f1b1b4b4e3b13fec1c41f9a6
cdfcb635244fa4867bb5611564bf0e23c0e9647d 27-Jun-2016 Victor Chang <vichang@google.com> Merge \"Test network is not blocked after always-on package is removed\" into nyc-mr1-dev
am: 578899559b

Change-Id: Ib8244150804366c9b9d09e35df4ae21e585c718f
578899559b8e2b7ddb5ff1b12e6fdf3ff702facc 27-Jun-2016 Victor Chang <vichang@google.com> Merge "Test network is not blocked after always-on package is removed" into nyc-mr1-dev
8591f9750a51e4e0afd9aa31cdc0c3047874d1b2 25-Jun-2016 Jeff Sharkey <jsharkey@android.com> Give ourselves a long timeout on the way back.

Awhile back we gave migration a generous 2 hours to copy all files
to the newly adopted storage device. However, we didn't do the same
for copying the files back to internal storage; oops.

Bug: 29585755
Change-Id: Iec12fcc33c4d68f59268b0a3dea7826874eb2e92
ppsecurity/src/android/appsecurity/cts/AdoptableHostTest.java
c6819e9960f213af3eaa3c30161d4f5c87dfa7e2 25-Jun-2016 Gaurav Mishra <mishragaurav@google.com> Merge \\\"CTS: Replace deviceSerial with startTime as MetricsStore key.\\\" into nyc-dev am: 6a2a6975fe am: d55c26261a
am: e644a7e11f

Change-Id: Iaa71b173e5902549f82c623f484759404ea5a7e7
e644a7e11f4af14ece3e497f647c7f22ba38d6e8 25-Jun-2016 Gaurav Mishra <mishragaurav@google.com> Merge \\"CTS: Replace deviceSerial with startTime as MetricsStore key.\\" into nyc-dev am: 6a2a6975fe
am: d55c26261a

Change-Id: I2e93325fa76b54dde6f4992e6843c8bed888ba14
d55c26261a5cc639f4db5d8b41a4e817de7f8c31 25-Jun-2016 Gaurav Mishra <mishragaurav@google.com> Merge \"CTS: Replace deviceSerial with startTime as MetricsStore key.\" into nyc-dev
am: 6a2a6975fe

Change-Id: I93ce754df192136790ef098309dc9826890bbb46
b1acb6bc5d944007f63939e19d4686de93fa05e2 25-Jun-2016 Gaurav Mishra <mishragaurav@google.com> Merge \"CTS: Replace deviceSerial with startTime as MetricsStore key.\" into nyc-dev
am: 6a2a6975fe

Change-Id: If8141504446e743e4a80fdb1f362e9cd840dcb74
6a2a6975fe2787da296c6f06cf68680b4b7a58d9 25-Jun-2016 Gaurav Mishra <mishragaurav@google.com> Merge "CTS: Replace deviceSerial with startTime as MetricsStore key." into nyc-dev
026a538d2c5d488774df7d187362b77ec9256cbd 25-Jun-2016 Adam Lesinski <adamlesinski@google.com> Merge \"Add testing of DisplayMetrics during Activity resizing\" into nyc-dev
am: a8c825ea8c

Change-Id: Ieda06920b91cb040cb8a3631a3d7dcbdbfd477bb
b26592b6aa1a08b1297ca5768dd5027f3ba0026b 25-Jun-2016 Chong Zhang <chz@google.com> Merge \\"cts: test config changes\\" into nyc-mr1-dev am: 587362319b
am: 8fa4f1785d

Change-Id: Ieb30ed03933ed1a3785aaf098e1939a3f7b1e451
8fa4f1785d050cf3831b12d80c307b4d7a5804e4 25-Jun-2016 Chong Zhang <chz@google.com> Merge \"cts: test config changes\" into nyc-mr1-dev
am: 587362319b

Change-Id: I872e6d586f281138460df307412381d5d2e02c73
587362319b7836834f77896fcd92ef6cfa92cc12 25-Jun-2016 Chong Zhang <chz@google.com> Merge "cts: test config changes" into nyc-mr1-dev
e68e9269bd76b128e4ca5d0c92270b13920d4f0b 23-Jun-2016 Chong Zhang <chz@google.com> cts: test config changes

Check that app either gets relaunched if it doesn't handle the change,
or receives onConfigurationChanged().

bug: 29367672
Change-Id: I370b82a3315a04939e10a90d04f8292d9738737d
ervices/activitymanager/app/AndroidManifest.xml
ervices/activitymanager/src/android/server/cts/ActivityManagerConfigChangeTests.java
ervices/activitymanager/src/android/server/cts/ActivityManagerTestBase.java
0511f2db3b7a878a9dfa109016387f83e0db39c3 25-Jun-2016 Adam Lesinski <adamlesinski@google.com> Merge \\"Add testing of DisplayMetrics during Activity resizing\\" into nyc-mr1-dev am: 37f7cda40f
am: f5ec0f496f

Change-Id: I1f5a9ae72e46a83109f28457621699c517058bcb
b25980759c8966c4e3511e805195a844a73e9599 24-Jun-2016 Adam Lesinski <adamlesinski@google.com> Add testing of DisplayMetrics during Activity resizing

DisplayMetrics should also update during window resizing
and rotation changes.

Bug:29619314
Change-Id: I76eef4e74aab713944bcb2ef971780f7f01ef765
(cherry picked from commit 97538a1afa3775217fb338c73b0b39a7e9b897a6)
ervices/activitymanager/app/src/android/server/app/ResizeableActivity.java
ervices/activitymanager/src/android/server/cts/ActivityManagerAppConfigurationTests.java
ervices/activitymanager/src/android/server/cts/ActivityManagerTestBase.java
f5ec0f496f62b4866f76f8f9f5333436eb9d895b 25-Jun-2016 Adam Lesinski <adamlesinski@google.com> Merge \"Add testing of DisplayMetrics during Activity resizing\" into nyc-mr1-dev
am: 37f7cda40f

Change-Id: I0d5a451daedb3abfd8c629c3afe4816fd9d8057b
37f7cda40f8462f87bbc77e8adb702bd2f4fe217 25-Jun-2016 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Add testing of DisplayMetrics during Activity resizing" into nyc-mr1-dev
97538a1afa3775217fb338c73b0b39a7e9b897a6 24-Jun-2016 Adam Lesinski <adamlesinski@google.com> Add testing of DisplayMetrics during Activity resizing

DisplayMetrics should also update during window resizing
and rotation changes.

Bug:29619314
Change-Id: I76eef4e74aab713944bcb2ef971780f7f01ef765
ervices/activitymanager/app/src/android/server/app/ResizeableActivity.java
ervices/activitymanager/src/android/server/cts/ActivityManagerAppConfigurationTests.java
ervices/activitymanager/src/android/server/cts/ActivityManagerTestBase.java
fc7114511b6e6b7d392f23c5fddb0d082d4ad62b 24-Jun-2016 Daniel Xie <dxie@google.com> resolve merge conflicts of 1568722 to nyc-dev am: 9cf7a57e5b am: 66afab3e5a
am: a48ebc8025

Change-Id: Ie77bbd3290c077907ed0fa7b9c9fa97ca99824aa
a48ebc80253333f81ed0e5e5cab1573d4284fa9c 24-Jun-2016 Daichi Hirono <hirono@google.com> resolve merge conflicts of 1568722 to nyc-dev am: 9cf7a57e5b
am: 66afab3e5a

Change-Id: I487a0e8d7a39a215386fa18ac418f21fbf968904
9bc44fcfc904c9f1fb346a73bd5f1437f072e96e 24-Jun-2016 Daniel Xie <dxie@google.com> resolve merge conflicts of 1568722 to nyc-dev
am: 9cf7a57e5b

Change-Id: I984e7f0ad15e1acb5d4610a67465c8f4d5dffb7f
66afab3e5a440de72b4bb0e9592a3597c4fb9529 24-Jun-2016 Daniel Xie <dxie@google.com> resolve merge conflicts of 1568722 to nyc-dev
am: 9cf7a57e5b

Change-Id: I36edd487996e04a45f8aa8f9cde73620f94981fa
0acef6b92f237fa3a6d81b7c944ef31769b30363 24-Jun-2016 Oren Laadan <orenl@cellrox.com> Merge changes from topic \'backport-selinux-test\' into marshmallow-cts-dev
am: 057b418149

Change-Id: I9e75ccae6b8d8c252873af3a2946cef6aae22593
9cf7a57e5b78c9ae7bfe59e790de066bdd2a9c76 24-Jun-2016 Daichi Hirono <hirono@google.com> resolve merge conflicts of 1568722 to nyc-dev
9b9acd16a12f644deb132fd1396d02ec61b53fac 24-Jun-2016 Andrii Kulian <akulian@google.com> Merge \\\"Fix testConfigurationUpdatesWhenResizedFromFullscreen\\\" into nyc-dev am: 1551ff999d am: d798d52006
am: 74d41e81b7

Change-Id: I8c5ccc164a6be77d51e0476f2f228c16905e4835
74d41e81b71f2e0b11de525109c0acf5cf691578 24-Jun-2016 Andrii Kulian <akulian@google.com> Merge \\"Fix testConfigurationUpdatesWhenResizedFromFullscreen\\" into nyc-dev am: 1551ff999d
am: d798d52006

Change-Id: Icbf754fa21a6c27f94fb1d539a0cfebb31d68a6d
d798d520067fb75c08f4bce575298d1d099bb313 24-Jun-2016 Andrii Kulian <akulian@google.com> Merge \"Fix testConfigurationUpdatesWhenResizedFromFullscreen\" into nyc-dev
am: 1551ff999d

Change-Id: Ia21b2f8de682293c6c3008e0a69fc051e5393275
8c43b556b451334d4257618e9ea8edd9e3d7b23f 24-Jun-2016 Andrii Kulian <akulian@google.com> Merge \"Fix testConfigurationUpdatesWhenResizedFromFullscreen\" into nyc-dev
am: 1551ff999d

Change-Id: Ifd7b282584f8562201aa89249e7850a431e950df
1551ff999d7e26d2477b047e0ac999c5a5b0c66c 24-Jun-2016 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Fix testConfigurationUpdatesWhenResizedFromFullscreen" into nyc-dev
4a9ed27c731b598b2bba673edbcdc21a7af05341 24-Jun-2016 Andrii Kulian <akulian@google.com> Fix testConfigurationUpdatesWhenResizedFromFullscreen

Test was flaky because we didn't wait long enough for task bounds
to settle in AM and WM.

Bug: 29619461
Change-Id: If68ff067dbaac488d4eb525bba2a97f136d1d4ca
ervices/activitymanager/src/android/server/cts/ActivityAndWindowManagersState.java
ervices/activitymanager/src/android/server/cts/ActivityManagerActivityVisiblityTests.java
ervices/activitymanager/src/android/server/cts/ActivityManagerPinnedStackTests.java
24004b211bf00e99b345fc5b0a49cdbb647a7cc8 24-Jun-2016 Andrii Kulian <akulian@google.com> Merge \\\"Add tests for singleTask and singleInstance adjacent launch\\\" into nyc-dev am: ebe6fcc0bb am: 1094f08d46
am: 95340a5afc

Change-Id: I3f28ed2149acdc46ec85328078e2a616c111df72
5cf8f7dbe912ca3d4b88fe4e599e4268668c43c3 23-Jun-2016 Gaurav Mishra <mishragaurav@google.com> CTS: Replace deviceSerial with startTime as MetricsStore key.

Bug:2953947
Change-Id: I94bdf95c8f363962d6f5b437a862efab1433f408
ample/src/android/sample/cts/SampleHostResultTest.java
i/src/android/ui/cts/InstallTimeTest.java
i/src/android/ui/cts/TaskSwitchingTest.java
95340a5afc6cdb9cf3d8b38765cd86bea6529448 24-Jun-2016 Andrii Kulian <akulian@google.com> Merge \\"Add tests for singleTask and singleInstance adjacent launch\\" into nyc-dev am: ebe6fcc0bb
am: 1094f08d46

Change-Id: I9967226c47e8d249db77f82ecddb915d82f70bbf
3c538485d68a66a7fa4812cfb4739890847ac991 23-Jun-2016 Andrii Kulian <akulian@google.com> Merge \"Add tests for singleTask and singleInstance adjacent launch\" into nyc-dev
am: ebe6fcc0bb

Change-Id: Ifa3d8e36916274dd5343e33c48903a1592cb97e1
1094f08d465f8deb398cf880f4e9ee701cbc1f44 23-Jun-2016 Andrii Kulian <akulian@google.com> Merge \"Add tests for singleTask and singleInstance adjacent launch\" into nyc-dev
am: ebe6fcc0bb

Change-Id: I987cfa168c80f67e82cbe76b3173f7c1a2139437
ebe6fcc0bb106fca6f77dcc8afce0163dc2b5464 23-Jun-2016 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Add tests for singleTask and singleInstance adjacent launch" into nyc-dev
627da074c62960a65f681e7915c01145055e8170 23-Jun-2016 Yorke Lee <yorkelee@google.com> Merge \\\"Make sure test package is fully stopped before starting test\\\" into nyc-dev am: 336bf3c566 am: ada70f00b8
am: 1df80aac43

Change-Id: I28c39195f84fa088adcb973ecd20d325ddb6111a
1df80aac43030dcfd13bee6c4dc42412e8b660eb 23-Jun-2016 Yorke Lee <yorkelee@google.com> Merge \\"Make sure test package is fully stopped before starting test\\" into nyc-dev am: 336bf3c566
am: ada70f00b8

Change-Id: Ia9383b99759dea197ee47a941e243fb1dfa14a69
bd6b2a68c06e711c76ac9aa541feb633a08fe9a2 23-Jun-2016 Jeffrey Vander Stoep <jeffv@google.com> Merge "Require CONFIG_SECURITY_PERF_EVENTS_RESTRICT" into mnc-dev
ada70f00b89eb150acc007bc015bb70c23fc20cc 23-Jun-2016 Yorke Lee <yorkelee@google.com> Merge \"Make sure test package is fully stopped before starting test\" into nyc-dev
am: 336bf3c566

Change-Id: I2a99e2b8de2838c013314cd6a703ba4bbffa8fad
8e332dd18027b098f33ae296bef2c3dc5dd7cedd 23-Jun-2016 Yorke Lee <yorkelee@google.com> Merge \"Make sure test package is fully stopped before starting test\" into nyc-dev
am: 336bf3c566

Change-Id: I9a299648082083ba89b36814d868b725a81dd1ff
3343ab276e39296427f8794d92b3ac3b5efbedb3 23-Jun-2016 Andrii Kulian <akulian@google.com> Add tests for singleTask and singleInstance adjacent launch

Bug: 29578845
Change-Id: Ic129222562c5d7610174ceeb2c62b12cb6411f30
ervices/activitymanager/app/AndroidManifest.xml
ervices/activitymanager/app/src/android/server/app/LaunchToSideActivity.java
ervices/activitymanager/app/src/android/server/app/SingleInstanceActivity.java
ervices/activitymanager/app/src/android/server/app/SingleTaskActivity.java
ervices/activitymanager/src/android/server/cts/ActivityManagerDockedStackTests.java
de5458cdab77a0070665e7ce71e7e0c637ebdab0 23-Jun-2016 Yorke Lee <yorkelee@google.com> Make sure test package is fully stopped before starting test

Also allow for a slight delay before checking that the test activity
is resumed.

Bug: 29385449
Change-Id: I563456fe22bef003e447895c5243356d6c870f31
ervices/windowmanager/src/android/wm/cts/CrossAppDragAndDropTests.java
bfb8c4d6b8abad0d179f134350e037830461069a 23-Jun-2016 Ricky Wai <rickywai@google.com> Add logs for tracking testScreenCaptureDisabled_allowedPrimaryUser() fails am: b883841def
am: f2f4726f04

Change-Id: I8e369c03f7739d3f6f1b1401065dff32aae8785a
f2f4726f046186c8fac29ffbe7fc038211853d7b 23-Jun-2016 Ricky Wai <rickywai@google.com> Add logs for tracking testScreenCaptureDisabled_allowedPrimaryUser() fails
am: b883841def

Change-Id: I6ca482bb1cce19c3adaa78672c382c06aed8e86c
b883841def9946a6a77913ee2497685ac38d5763 23-Jun-2016 Ricky Wai <rickywai@google.com> Add logs for tracking testScreenCaptureDisabled_allowedPrimaryUser() fails

Here are the things we want to track when test fails:
- Keyguard screen is visible or not
- Foreground activities

Bug: 28995242
Change-Id: Ic293fb379c0d0680f72c48d48c9a2346b647317d
evicepolicy/src/com/android/cts/devicepolicy/MixedManagedProfileOwnerTest.java
86c506935f7de28ce9219c4f8b85bcef26f3badf 22-Jun-2016 Victor Chang <vichang@google.com> Test network is not blocked after always-on package is removed

It's a feature in first release in NYC.
Now test the feature by CTS in MR1.

1. test turning off always-on when vpn is uninstalled
2. test network lockdown after vpn app is force-stopped
3. test non-existing package and non-vpn app

small fix:
1. remove unused latch in testAlwaysOnVpn
2. close socket after sending icmp message

Bug: 29086237
Change-Id: I12eae11d5fbbd33c5159d8b2dd0fa34142ff5646
evicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/AlwaysOnVpnMultiStageTest.java
evicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/AlwaysOnVpnTest.java
evicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/vpn/VpnTestHelper.java
evicepolicy/src/com/android/cts/devicepolicy/BaseDevicePolicyTest.java
evicepolicy/src/com/android/cts/devicepolicy/DeviceAndProfileOwnerTest.java
56b7aa376fab553d4ccb935b4407bbdbbfa39785 23-Jun-2016 Andrii Kulian <akulian@google.com> Merge \\\"Perform density changes inside test activity in CTS\\\" into nyc-dev am: 9aa40d1f38 am: 76c6b7377d
am: ebfab1ac52

Change-Id: I0814b54abc1a0fc31bc50825f774f8c27ea7954e
ebfab1ac528e2f4214e85c849b6b59f12bdd6903 23-Jun-2016 Andrii Kulian <akulian@google.com> Merge \\"Perform density changes inside test activity in CTS\\" into nyc-dev am: 9aa40d1f38
am: 76c6b7377d

Change-Id: I319c54055204b9ea4ca0b3ec5342c00fd1cb177f
c1a5d17d1613faacfafa170801e445174483154f 23-Jun-2016 Andrii Kulian <akulian@google.com> Merge \"Perform density changes inside test activity in CTS\" into nyc-dev
am: 9aa40d1f38

Change-Id: I2bc3b6996c0bcddd2aabc06a6a91878712b812d5
76c6b7377d1c1e86a6858d586abeb5bb14ba2039 23-Jun-2016 Andrii Kulian <akulian@google.com> Merge \"Perform density changes inside test activity in CTS\" into nyc-dev
am: 9aa40d1f38

Change-Id: Ifbc3115eb00793f59f87afaa576c653077817ee9
9aa40d1f38c64036a4b0c6022a62944b1afe73bb 23-Jun-2016 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Perform density changes inside test activity in CTS" into nyc-dev
25d9e4cd26d122173dd97db2f8d86da569aace97 22-Jun-2016 Andrii Kulian <akulian@google.com> Perform density changes inside test activity in CTS

Workaround to make tests pass while b/29551109 is investigated.
Also added tests for cases when app is already focused or it
was launched previously and is brought to front after density
change.

Bug: 29322470
Change-Id: Icfee411e52e31192c76b7c5ad197a29cbfb72ae1
ervices/activitymanager/appDisplaySize/src/android/displaysize/app/SmallestWidthActivity.java
ervices/activitymanager/src/android/server/cts/DisplaySizeTest.java
88a32369b196bc1a0311714658e3de467fbd1c57 23-Jun-2016 Adam Lesinski <adamlesinski@google.com> Merge \\\"Improve hostside test for App window resize\\\" into nyc-dev am: 19b5464ef8 am: 63108d9075
am: 2b97e25411

Change-Id: I67bdd24c0790d22b543d6e7b4f4282f3b2c40af1
2b97e25411bb8fafe3c70bbb6098f458c9d3bc00 23-Jun-2016 Adam Lesinski <adamlesinski@google.com> Merge \\"Improve hostside test for App window resize\\" into nyc-dev am: 19b5464ef8
am: 63108d9075

Change-Id: I0c655996502d95edf818d591fab18a6233fa62c8
63108d9075bf6617e0b3e84b49104adb52241375 23-Jun-2016 Adam Lesinski <adamlesinski@google.com> Merge \"Improve hostside test for App window resize\" into nyc-dev
am: 19b5464ef8

Change-Id: Ifcc8c7cb29851e6c4a87c494ef34554ecd66e38b
f57d4053e53a95276742596db322c4bcf9cc7640 23-Jun-2016 Adam Lesinski <adamlesinski@google.com> Merge \"Improve hostside test for App window resize\" into nyc-dev
am: 19b5464ef8

Change-Id: I59082015294b17cea9032439f5554b8336058d99
19b5464ef8f5d6d862140fde311a7ac1be3560f7 23-Jun-2016 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Improve hostside test for App window resize" into nyc-dev
d67b49c5ccc86dda9c1828f780e965f0457048bd 23-Jun-2016 Gaurav Mishra <mishragaurav@google.com> Merge \\\"CTS: Migrate TaskSwitchingTest to new metric logging system.\\\" into nyc-dev am: 6e5a0f646c am: 403b79dcb9
am: 9f8611870c

Change-Id: I42fb56339e2cdb4564e2a2d057396facba497993
9f8611870c95f84b2f408feee4a3398613117cc2 23-Jun-2016 Gaurav Mishra <mishragaurav@google.com> Merge \\"CTS: Migrate TaskSwitchingTest to new metric logging system.\\" into nyc-dev am: 6e5a0f646c
am: 403b79dcb9

Change-Id: I24e73d7d3396d86c9984e12434b0c9268001acd8
87fea243512e7757f5ac338747e73d8566f8e028 23-Jun-2016 Gaurav Mishra <mishragaurav@google.com> Merge \"CTS: Migrate TaskSwitchingTest to new metric logging system.\" into nyc-dev
am: 6e5a0f646c

Change-Id: I5e3d91b6d20b93eb45c6966837059fab6f8a8ac1
403b79dcb938bd14cdce250ba2aee93a03530e9d 23-Jun-2016 Gaurav Mishra <mishragaurav@google.com> Merge \"CTS: Migrate TaskSwitchingTest to new metric logging system.\" into nyc-dev
am: 6e5a0f646c

Change-Id: I152cd5c0ff9454973028d143ed8ba2346a744f8a
6e5a0f646cf4d8106a9934e31c9919255581c4cb 23-Jun-2016 Gaurav Mishra <mishragaurav@google.com> Merge "CTS: Migrate TaskSwitchingTest to new metric logging system." into nyc-dev
4003df1f273c98e6c86c2916f45a9fc50c084d05 23-Jun-2016 Gaurav Mishra <mishragaurav@google.com> CTS: Migrate TaskSwitchingTest to new metric logging system.

Bug:27950009
Bug:27925818
Change-Id: Ifa125ee309be9c6cf1e2c67c1eeed383bdbdc3b8
i/control/src/android/taskswitching/control/cts/TaskSwitchingDeviceTest.java
fd5500ac55f378c686fb076c9dff510f59f764dc 22-Jun-2016 Adam Lesinski <adamlesinski@google.com> Improve hostside test for App window resize

The case of an Activity resizing from fullscreen to docked
is currently tested and verified that some key properties are
being correctly updated (Display, Configuration).

This change adds the reverse case, where the Activity starts in
docked mode and transitions to fullscreen.

Bug:28388969
Change-Id: I9b7d37a5250af36e9255a57d873717251d72cc9e
ervices/activitymanager/src/android/server/cts/ActivityManagerAppConfigurationTests.java
ervices/activitymanager/src/android/server/cts/ActivityManagerTestBase.java
aa1857f82533eeafdffa87d4e62130b2289f933a 22-Jun-2016 Jeff Sharkey <jsharkey@android.com> Merge \\\"Try dismissing crash dialog.\\\" into nyc-dev am: 456e98b832 am: 3f2dbc57c7
am: bb34aee77d

Change-Id: Ic375979da5d70fee430dcfc2584d095117fbc336
bb34aee77db349080e477fe19e6f5fd1205fd633 22-Jun-2016 Jeff Sharkey <jsharkey@android.com> Merge \\"Try dismissing crash dialog.\\" into nyc-dev am: 456e98b832
am: 3f2dbc57c7

Change-Id: I15d9fcbfbde75f4040d1d330ccad9fb98a4c4d54
89065c6af036f424eb2661409cb76edbda169d51 22-Jun-2016 Jeff Sharkey <jsharkey@android.com> Merge \"Try dismissing crash dialog.\" into nyc-dev
am: 456e98b832

Change-Id: I22992c9b7ba93b8ad685009975168f31501daff8
3f2dbc57c7183d16c5654aa7aab39466b740f11d 22-Jun-2016 Jeff Sharkey <jsharkey@android.com> Merge \"Try dismissing crash dialog.\" into nyc-dev
am: 456e98b832

Change-Id: I2ba832995638f3138d3a0003c68bc5a43677ffda
e12aa7a3b8ba17a7d562ffd18a77c82241090cf4 22-Jun-2016 Adam Lesinski <adamlesinski@google.com> Merge \\\"Fix build due to merge issue\\\" into nyc-dev am: b94aa06af4 am: f0ca93fa41
am: af663167ea

Change-Id: I8a9f1ef7c72e1bae0f02fe1989b1f1cda4716f58
456e98b832b6f63be8acc208d0066fe469033f91 22-Jun-2016 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Try dismissing crash dialog." into nyc-dev
af663167eade561d8d5536bd708eb20114fee1d8 22-Jun-2016 Adam Lesinski <adamlesinski@google.com> Merge \\"Fix build due to merge issue\\" into nyc-dev am: b94aa06af4
am: f0ca93fa41

Change-Id: I6cb650d639a7e0c2b754caf2936366dd37d9b015
3faf045e4bbe3dcb1b96ca48e90f8512f9dd7b02 22-Jun-2016 Adam Lesinski <adamlesinski@google.com> Merge \"Fix build due to merge issue\" into nyc-dev
am: b94aa06af4

Change-Id: I2c8c5d1c30433a5b6a27fa149931573b69156ea3
f0ca93fa414b8c9111e8cf8f5c22dab5c0ea2f74 22-Jun-2016 Adam Lesinski <adamlesinski@google.com> Merge \"Fix build due to merge issue\" into nyc-dev
am: b94aa06af4

Change-Id: Ib60646e01fb6bca02140d32259d0bb0cf75d72a3
492b9184bba6b4b688485e27d630df5446debff4 22-Jun-2016 Adam Lesinski <adamlesinski@google.com> Merge \\\"Multiwindow config and display size test\\\" into nyc-dev am: 5666b66053 am: a0f602d922
am: 4d3b246de0

Change-Id: I8dd563edcb3dbf5840416146ef3503b588529030
58ca7cb13c3085925f86a52775a692775f238238 22-Jun-2016 Adam Lesinski <adamlesinski@google.com> Fix build due to merge issue

Bug:28388969
Change-Id: I7be1ef05b3533762d51d9d26f3aad36a331fc470
ervices/activitymanager/src/android/server/cts/ActivityManagerTestBase.java
37825148f4e6a3b246baa53fbf71ddd83c652907 22-Jun-2016 Jeff Sharkey <jsharkey@android.com> Try dismissing crash dialog.

We've seen evidence that a crash dialog can pop up during this test,
so try dismissing it once before failing the test.

Bug: 29518291
Change-Id: I2e8993aebb1eed94e44f45e6dcd6b8e6f5079d51
ppsecurity/test-apps/EncryptionApp/src/com/android/cts/encryptionapp/EncryptionAppTest.java
4d3b246de0ede3f48cafb42327e8b8286e4ff892 22-Jun-2016 Adam Lesinski <adamlesinski@google.com> Merge \\"Multiwindow config and display size test\\" into nyc-dev am: 5666b66053
am: a0f602d922

Change-Id: I91bc0af83eee21e85b41e1f5a5e999cd1b7b5479
a0f602d92214adfd1b7b01d1b3ada0a48444209e 22-Jun-2016 Adam Lesinski <adamlesinski@google.com> Merge \"Multiwindow config and display size test\" into nyc-dev
am: 5666b66053

Change-Id: Ib714b877005a8b053df1ae40b343e20931813c2a
1680fe19aeeffce2f1c8e71dc59c700b09eef533 22-Jun-2016 Adam Lesinski <adamlesinski@google.com> Merge \"Multiwindow config and display size test\" into nyc-dev
am: 5666b66053

Change-Id: Iffc6a13dda17be63b5501d06870f0f4d92a0422b
5666b6605323a17c72ca9db74361b6dd0eaec588 22-Jun-2016 Adam Lesinski <adamlesinski@google.com> Merge "Multiwindow config and display size test" into nyc-dev
34ef5efb5309e9ca843439c8dcbb9c34bb4a8e3a 20-Jun-2016 Adam Lesinski <adamlesinski@google.com> Multiwindow config and display size test

Added test to ensure configuration sizes and display
sizes are updated when an Activity is resized.

Bug:28388969

Change-Id: I602aefac2445fe1d7125f83934a8810d1fc85590
ervices/activitymanager/app/AndroidManifest.xml
ervices/activitymanager/app/src/android/server/app/ResizeableActivity.java
ervices/activitymanager/src/android/server/cts/ActivityManagerAppConfigurationTests.java
ervices/activitymanager/src/android/server/cts/ActivityManagerTestBase.java
10c23a76924810fc364c9f0f8a9898a546d856c7 22-Jun-2016 Todd Kennedy <toddke@google.com> Update prebuilts from build server am: bf4b3f85f5 am: 98af66e2d2
am: 0f240af0d5

Change-Id: Idbcd51dbc60ae8130a53d6eb55010a95560b391e
5caa201a2f7552cb763893427cc2a844c1cd2dc3 22-Jun-2016 Todd Kennedy <toddke@google.com> Merge \\\"remove apk\\\" into nyc-dev am: c11190bc76 am: 8ff4b36769
am: 87c81e0803

Change-Id: Iaa9738da7a0a43ef60c581fb517a348eeeb3e2c7
0f240af0d5b390abc03c9f058ae788a21e9934ba 22-Jun-2016 Todd Kennedy <toddke@google.com> Update prebuilts from build server am: bf4b3f85f5
am: 98af66e2d2

Change-Id: I6b335f401c90b492b29020367079c8521e9a7619
87c81e0803b4e2fb0ac7e5039c4e419044513601 22-Jun-2016 Todd Kennedy <toddke@google.com> Merge \\"remove apk\\" into nyc-dev am: c11190bc76
am: 8ff4b36769

Change-Id: I1922a537ebe3eb1d58a03dfa5de85c961e3e6899
ca44df50842e288c3e0b082f06af7431d3ed21af 22-Jun-2016 Todd Kennedy <toddke@google.com> Update prebuilts from build server
am: bf4b3f85f5

Change-Id: I0b6ce91156443a5f10fec9209e73e25160084187
98af66e2d2df92f1f765d6e453c89e7ed8281ee7 22-Jun-2016 Todd Kennedy <toddke@google.com> Update prebuilts from build server
am: bf4b3f85f5

Change-Id: I4f0af09934b5fed49acb0cfb2cde82fa507e5f08
89442696b38138cf2488c8c10df720e13bc96bc9 22-Jun-2016 Todd Kennedy <toddke@google.com> Merge \"remove apk\" into nyc-dev
am: c11190bc76

Change-Id: I010666f27182f705233f09f60b1ead27461fe428
8ff4b36769c4d4a7ebe83945d296eb9b4d29c025 22-Jun-2016 Todd Kennedy <toddke@google.com> Merge \"remove apk\" into nyc-dev
am: c11190bc76

Change-Id: Ia90dce0803f2fc18682ef8fd3444be18062aff50
bf4b3f85f588f4822b464790a38a3d1e3c418deb 22-Jun-2016 Todd Kennedy <toddke@google.com> Update prebuilts from build server

CtsShimPrivUpgrade.apk
versionCode='24' versionName='7.0-2996264'

CtsShimPrivUpgradeWrongSHA.apk
versionCode='24' versionName='WrongSHA'

Built here:
https://android-build.googleplex.com/builds/submitted/2996264/CtsShim/latest

This build is suitable for public release.

Bug: 29122339
Change-Id: I4adde79a6de8253f423b36eaaf3f0067005015d0
ppsecurity/test-apps/PrivilegedUpdateApp/CtsShimPrivUpgrade.apk
ppsecurity/test-apps/PrivilegedUpdateApp/CtsShimPrivUpgradeWrongSHA.apk
c11190bc76007bc34e6cec93655265fa5cc72c67 22-Jun-2016 Todd Kennedy <toddke@google.com> Merge "remove apk" into nyc-dev
d6bdd1383be17ac94cc321e16c02771c47d206ec 22-Jun-2016 Todd Kennedy <toddke@google.com> remove apk

... so we can copy it from the build machine

Change-Id: I6ddf2dec814580ff3d61bb59907382c4e00c219d
ppsecurity/test-apps/PrivilegedUpdateApp/CtsShimPrivUpgradeWrongSHA.apk
d7fc75c76aa041437848d147a5641f3d23e3d663 22-Jun-2016 Ricky Wai <rickywai@google.com> Disable user consent before testing Unknow source apk installation am: 29b57b1c9b am: e21e37d0fb
am: 3e95ca78e9

Change-Id: I0d15088b63b2b8ba4840b3a0633fef9e0f152717
3e95ca78e9611db27796b2cc9312d36e39095066 22-Jun-2016 Ricky Wai <rickywai@google.com> Disable user consent before testing Unknow source apk installation am: 29b57b1c9b
am: e21e37d0fb

Change-Id: I2776222ede3ce9dfbcd3611acad9bc6b03281195
a368aa1d4c7b6494f5537eeb5736ea4cbdd9d36b 22-Jun-2016 Ricky Wai <rickywai@google.com> Disable user consent before testing Unknow source apk installation
am: 29b57b1c9b

Change-Id: I8cc581445a0581281328eb728321ba1f441af53f
e21e37d0fb59ca38ee669363d2d8bac15d051c14 22-Jun-2016 Ricky Wai <rickywai@google.com> Disable user consent before testing Unknow source apk installation
am: 29b57b1c9b

Change-Id: I02d774841e32f07448fd258f91587c7a5a40b97f
29b57b1c9b4daed786518d4222c25750031e6df0 22-Jun-2016 Ricky Wai <rickywai@google.com> Disable user consent before testing Unknow source apk installation

Bug: 29168644
Change-Id: Idbb42cd41e6b955884e4d6e12c6e987de9d15d07
evicepolicy/src/com/android/cts/devicepolicy/DeviceAndProfileOwnerTest.java
2c9bcae18cd9d0250978c59c541a4d7155713701 22-Jun-2016 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Include CaCert hostside test in profile owner runs"
4e51969e7d43cd4848b665be9d4de39edd558de7 22-Jun-2016 Mohamad Ayyash <mkayyash@google.com> Merge \\\"Adjust testAppFailAccessPrivateData to fail on non-tagged sockets\\\" into nyc-dev am: a82a9fedc8 am: e39702d0d4
am: 83e3f1e2e0

Change-Id: I19e5ea2bc1664e112ab36fab3eba2846d7d34b98
83e3f1e2e0746081415076574f7b47da987ba28f 22-Jun-2016 Thierry Strudel <tstrudel@google.com> Merge \\"Adjust testAppFailAccessPrivateData to fail on non-tagged sockets\\" into nyc-dev am: a82a9fedc8
am: e39702d0d4

Change-Id: Ic5e1e4814630015e676d2f98c7dac33dd3fe67fc
e39702d0d4c1d99acf3b7216f7fdd12e095d2e93 22-Jun-2016 Mohamad Ayyash <mkayyash@google.com> Merge \"Adjust testAppFailAccessPrivateData to fail on non-tagged sockets\" into nyc-dev
am: a82a9fedc8

Change-Id: I145e98651ce31573b07c7ece1858a68f1e084067
b0d9789acc5489df752aa3f9383ea9f6586d7161 22-Jun-2016 Mohamad Ayyash <mkayyash@google.com> Merge \"Adjust testAppFailAccessPrivateData to fail on non-tagged sockets\" into nyc-dev
am: a82a9fedc8

Change-Id: I156360e3698c50cdf1270b05fd840696b595e8dc
a82a9fedc855ece95650c17e53a4149a858650ac 22-Jun-2016 Thierry Strudel <tstrudel@google.com> Merge "Adjust testAppFailAccessPrivateData to fail on non-tagged sockets" into nyc-dev
e1e6c359ca6db8f3562fe3d8e1bcc53896bbc896 22-Jun-2016 Sudheer Shanka <sudheersai@google.com> Merge \"DO NOT MERGE: Cts: Add checks for testing CREATE_USERS permission.\" into mnc-dev
am: db9c324b0b

Change-Id: Ia530292dea633339c99b61105d155191bafed885
82bf0f47468c225bc3a31eaaba9e77b7b3ef5267 22-Jun-2016 Sudheer Shanka <sudheersai@google.com> Merge \\\"Cts: Add checks for testing CREATE_USERS permission.\\\" into nyc-dev am: ff5a317491 am: 53ab3e4e99
am: a9dd4b16fe

Change-Id: I5115d59f9efac350b3620d1b4daaee8610a2ce33
424ac709ddefd1e9dc6c6c85ba9b28780e01b0eb 09-Jun-2016 Mohamad Ayyash <mkayyash@google.com> Adjust testAppFailAccessPrivateData to fail on non-tagged sockets

Also avoid failing on expecting to find other sockets in qtaguid stats
since we already test we can access our stats in
CreatePrivateDataTest:testCreatePrivateData test

BUG: 29071701
BUG: 27577101
Bug: 29327123
Change-Id: Ic6a0b388039a446d3940543ee2ebd32f7c72f4b1
Signed-off-by: Mohamad Ayyash <mkayyash@google.com>
ppsecurity/test-apps/AppAccessData/src/com/android/cts/appaccessdata/AccessPrivateDataTest.java
a9dd4b16fe84c9ad8d10cc9037530671a55c842f 22-Jun-2016 Sudheer Shanka <sudheersai@google.com> Merge \\"Cts: Add checks for testing CREATE_USERS permission.\\" into nyc-dev am: ff5a317491
am: 53ab3e4e99

Change-Id: Iccf3476df16475b3d55eeb1e2f528da4e69eebcf
53ab3e4e99ff23e4848fcc10e2788f8d838c1435 22-Jun-2016 Sudheer Shanka <sudheersai@google.com> Merge \"Cts: Add checks for testing CREATE_USERS permission.\" into nyc-dev
am: ff5a317491

Change-Id: Iec2ae4fdbe8d2ad459ce27112bf76b2eab757698
81b36609bf69f1c6c8d1469471f88f1e01d68ef1 22-Jun-2016 Sudheer Shanka <sudheersai@google.com> Merge \"Cts: Add checks for testing CREATE_USERS permission.\" into nyc-dev
am: ff5a317491

Change-Id: I90e9e16fa817cf36fa98555237c4b701a8312724
ff5a317491e637a3909c1f31cb140ca3ae29588f 22-Jun-2016 Sudheer Shanka <sudheersai@google.com> Merge "Cts: Add checks for testing CREATE_USERS permission." into nyc-dev
600032707c58715a9484ff3fd1ec2d19f1693dcf 22-Jun-2016 Andrii Kulian <akulian@google.com> Merge \\\"Unlock device only if it is already locked in CTS\\\" into nyc-dev am: 4e1e10cefa am: 35363f0c49
am: 0339ffa20f

Change-Id: Ic13c662367ace13dcf326cbacf5d44b3f97892f9
0339ffa20fd6b5c3c2140457d3b5dcfe6ed73fc2 22-Jun-2016 Andrii Kulian <akulian@google.com> Merge \\"Unlock device only if it is already locked in CTS\\" into nyc-dev am: 4e1e10cefa
am: 35363f0c49

Change-Id: Ib8962b5e210ab34670d5d17550c5b574ce2e5afb
a0adeebbf196d5d3a6d718f2d99b622d51c68eb4 16-Jun-2016 Sudheer Shanka <sudheersai@google.com> DO NOT MERGE: Cts: Add checks for testing CREATE_USERS permission.

Bug: 29189712
Change-Id: Icff148ee55e8339cbde030b547788d424509b9a3
ultiuser/Android.mk
ultiuser/src/android/host/multiuser/BaseMultiUserTest.java
ultiuser/src/android/host/multiuser/CreateUsersPermissionTest.java
221293e1059ef7179cafe08de62e47003ed62726 22-Jun-2016 Andrii Kulian <akulian@google.com> Merge \"Unlock device only if it is already locked in CTS\" into nyc-dev
am: 4e1e10cefa

Change-Id: I0b1e6586c3f8e54815c13c016ec008606f288939
35363f0c49ea89be00922d210eb10b1668c162e6 22-Jun-2016 Andrii Kulian <akulian@google.com> Merge \"Unlock device only if it is already locked in CTS\" into nyc-dev
am: 4e1e10cefa

Change-Id: I7404c3f593c5148d550726e8ba2b98208363fa55
4e1e10cefa6bb971801ea7213477319688ff2d6c 22-Jun-2016 Andrii Kulian <akulian@google.com> Merge "Unlock device only if it is already locked in CTS" into nyc-dev
369f911221e85677926853c61ceea3d287938870 21-Jun-2016 Yorke Lee <yorkelee@google.com> Merge \\\"Cleanup stacks before performing drag and drop tests\\\" into nyc-dev am: 59672422c7 am: 299177a2d8
am: 318ef0b927

Change-Id: I85897dd2933d94a3b53b53d3ac1d7f6ed7014405
74aa6cd0ae2790fdf6967e976bfaaac133d83c18 21-Jun-2016 Yorke Lee <yorkelee@google.com> Merge \"Cleanup stacks before performing drag and drop tests\" into nyc-dev
am: 59672422c7

Change-Id: Ic53896981b70603f4f84ed5e54966bf357438a6e
318ef0b927f5368c2bfb0e0a045f72a2705c6d23 21-Jun-2016 Yorke Lee <yorkelee@google.com> Merge \\"Cleanup stacks before performing drag and drop tests\\" into nyc-dev am: 59672422c7
am: 299177a2d8

Change-Id: Iaec17bd44ff4c4ee4df33a46741504c006659c92
299177a2d8b094e7edc71b13be58abf717f0606d 21-Jun-2016 Yorke Lee <yorkelee@google.com> Merge \"Cleanup stacks before performing drag and drop tests\" into nyc-dev
am: 59672422c7

Change-Id: Ica4eb499208b097e8e4377f3d1bbf5e5918e5b98
59672422c73938472409f7f7ea95b3a5d667ea55 21-Jun-2016 Yorke Lee <yorkelee@google.com> Merge "Cleanup stacks before performing drag and drop tests" into nyc-dev
51c6be5966623515068bad896ef1e225c9eed2fa 21-Jun-2016 Andrii Kulian <akulian@google.com> Unlock device only if it is already locked in CTS

Bug: 29425724
Bug: 29497152
Change-Id: Ib5688dc3ee0d7ee4a4f95c38a5eda4fcf74d2a57
ervices/activitymanager/src/android/server/cts/ActivityManagerTestBase.java
c24596afdf3021dcb6470482a54522c2a0110fbf 21-Jun-2016 Yorke Lee <yorkelee@google.com> Cleanup stacks before performing drag and drop tests

This is a speculative fix for b/29385449, based on the assumption
that the test devices are getting into a bad state based on
previous tests due to b/29068935.

Bug: 29385449
Change-Id: I84bc272101591fef892c6781836659bdd60ea97d
ervices/windowmanager/src/android/wm/cts/CrossAppDragAndDropTests.java
32bdac49a682bf788c8d5a0413656f1b4e5de84f 21-Jun-2016 Alan Viverette <alanv@google.com> Export activity, verify activity start and display size changes am: abce77cb71 am: 5df2051819
am: 77ea025e36

Change-Id: I36d351658c0ed949871ab845f25db3b20fc401a8
77ea025e361724fd5e88394143a4ddb7dd5f86b7 21-Jun-2016 Alan Viverette <alanv@google.com> Export activity, verify activity start and display size changes am: abce77cb71
am: 5df2051819

Change-Id: I0edb3b0eb220411d9e86c0369e33ff914e2bb16d
4e4406a7071a139956ac7f3bdb4ca4bb0c1194b5 21-Jun-2016 Alan Viverette <alanv@google.com> Export activity, verify activity start and display size changes
am: abce77cb71

Change-Id: I425fdb80197fcf100dd0b98cd1e6d389b544c759
5df20518193d4ff3a55e64b712a2dd315ab0f13e 21-Jun-2016 Alan Viverette <alanv@google.com> Export activity, verify activity start and display size changes
am: abce77cb71

Change-Id: Icb0f4ae793723ee2009fde2df1dce6ac9a806154
abce77cb71dca591fb7e904cb7e6f07cfbdac31c 21-Jun-2016 Alan Viverette <alanv@google.com> Export activity, verify activity start and display size changes

Bug: 29499595
Change-Id: I18aa3e5d4f65d8b4711fbbcb0adffd634ff6377d
ervices/activitymanager/appDisplaySize/AndroidManifest.xml
ervices/activitymanager/src/android/server/cts/DisplaySizeTest.java
e1568c91025e6b9efc3222c27e18c44022d68740 19-Jun-2015 Oren Laadan <orenl@cellrox.com> security: fix change in SELinux for kernel threads test

Commit b13e4d490524cdb6364af8fc269cc2c4862eb924 had good intentions but
forgot to test for procs==null, risking a pointer dereference bug. Fix.

Change-Id: I34741fe627a65d718ac700f11dd4a16711631692
(cherry picked from commit 021537c55006af35c7a5d5e2296bd391ecd5a56d)
ecurity/src/android/cts/security/SELinuxHostTest.java
ac0620b2f7b92b858f8a6c06b7f0cfccfe92233e 10-Jun-2015 Oren Laadan <orenl@cellrox.com> security: adjust test on SELinux for kernel threads

The test currently verifies that all processes running in kernel domain
are kernel threads. It also tests that there is at least one such kernel
thread. However the latter test fails inside a child pid namespace since
all kernel threads always reside in the initial pid-namespace. To fix
this breakage remove the test for existence which is anyway not strictly
needed to validate proper SELinux setup.

Change-Id: I438600a875a1ba3af94c5cffa1c183150aa0036a
(cherry picked from commit b13e4d490524cdb6364af8fc269cc2c4862eb924)
ecurity/src/android/cts/security/SELinuxHostTest.java
9ca08d86a6e279489a885d31606df49a682e48d5 21-Jun-2016 Andrii Kulian <akulian@google.com> Merge \\\"Add CTS tests for adjacent launch with different intents\\\" into nyc-dev am: 1c48ef0713 am: 70a3c8b1ea
am: 9e02520eb9

Change-Id: I58c7d6e44f2704d749302839cfd5438b05125032
9e02520eb945fee574cfc5a774b2192ad2a21b1d 21-Jun-2016 Andrii Kulian <akulian@google.com> Merge \\"Add CTS tests for adjacent launch with different intents\\" into nyc-dev am: 1c48ef0713
am: 70a3c8b1ea

Change-Id: Ide1337b2a37beb678d0cd51dab125fd06dc3a372
70a3c8b1ea614e35f82cd5c8734905088e138c45 21-Jun-2016 Andrii Kulian <akulian@google.com> Merge \"Add CTS tests for adjacent launch with different intents\" into nyc-dev
am: 1c48ef0713

Change-Id: I68128f9fcf6158191c1cf81ac242db04a7be8f8d
04ef3cbb8673efd9f510b0fb830633d1b45ab60b 21-Jun-2016 Andrii Kulian <akulian@google.com> Merge \"Add CTS tests for adjacent launch with different intents\" into nyc-dev
am: 1c48ef0713

Change-Id: I175e0d6a46662537a502acf0afb7fb30ccf8306e
1c48ef0713e9537d38001eda7079eeb54fd74f02 21-Jun-2016 Andrii Kulian <akulian@google.com> Merge "Add CTS tests for adjacent launch with different intents" into nyc-dev
71396377c7f03fa43f9eab5eaeb6447c5471640c 21-Jun-2016 Wale Ogunwale <ogunwale@google.com> Merge \\\"Added test to verify activity can turn on screen.\\\" into nyc-dev am: d67395283e am: fb3fcc2198
am: 3f154a86df

Change-Id: I39b2806bcfa69c5f1c42188cb4011979ccca555c
3f154a86df45ebeca8f3bfb8cd7d0378d5db0bb5 21-Jun-2016 Wale Ogunwale <ogunwale@google.com> Merge \\"Added test to verify activity can turn on screen.\\" into nyc-dev am: d67395283e
am: fb3fcc2198

Change-Id: Ib92bee02fb055bb6b3f601dba8bf9cda7e4122a6
12bc8026eed371d322a59521737898e3280e43a2 21-Jun-2016 Wale Ogunwale <ogunwale@google.com> Merge \"Added test to verify activity can turn on screen.\" into nyc-dev
am: d67395283e

Change-Id: I47daea98f8b63feec5dc8bafb7cb9c1e5bd00efe
fb3fcc21983d28786439bdbea82403145488d9db 21-Jun-2016 Wale Ogunwale <ogunwale@google.com> Merge \"Added test to verify activity can turn on screen.\" into nyc-dev
am: d67395283e

Change-Id: I8209f0406e573ca07e11d8cb8696d8d439b34d37
ad06b9aadee4a280442c1aeb28bdb8c36bac0195 21-Jun-2016 Andrii Kulian <akulian@google.com> Add CTS tests for adjacent launch with different intents

Added two tests to verify:
- launch with different data and without FLAG_ACTIVITY_MULTIPLE_TASK
- launch with same intent and with FLAG_ACTIVITY_MULTIPLE_TASK

Bug: 29424577
Change-Id: I4bd55a4b1de747c0c4a9fec08487a571fb9d3477
ervices/activitymanager/app/src/android/server/app/LaunchToSideActivity.java
ervices/activitymanager/src/android/server/cts/ActivityManagerDockedStackTests.java
32e193c58b4fb297db2be3cb0e3837a24a5cfffb 20-Jun-2016 Wale Ogunwale <ogunwale@google.com> Added test to verify activity can turn on screen.

Bug: 29497152
Change-Id: I7a5a380bb3ef2b589fa4ec774cac36f01297af46
ervices/activitymanager/app/AndroidManifest.xml
ervices/activitymanager/app/src/android/server/app/TurnScreenOnActivity.java
ervices/activitymanager/src/android/server/cts/ActivityManagerActivityVisiblityTests.java
ervices/activitymanager/src/android/server/cts/ActivityManagerTestBase.java
f520f93dc4f0fb9e78e2d0af54c1fb9d1d16b8e1 13-Jun-2016 Robin Lee <rgl@google.com> Include CaCert hostside test in profile owner runs

Bug: 29384715
Change-Id: I3b684849898c8be3a70ff64a45e587cb25d06654
evicepolicy/app/DeviceAndProfileOwner/api23/Android.mk
evicepolicy/app/DeviceAndProfileOwner/latest/Android.mk
evicepolicy/app/DeviceAndProfileOwner/latest/AndroidManifest.xml
evicepolicy/app/DeviceAndProfileOwner/res/xml/network_security_config.xml
evicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/CaCertManagementTest.java
evicepolicy/app/DeviceOwner/Android.mk
evicepolicy/app/DeviceOwner/AndroidManifest.xml
evicepolicy/app/DeviceOwner/res/xml/network_security_config.xml
evicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/CaCertManagementTest.java
evicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/FakeKeys.java
evicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/KeyManagementTest.java
evicepolicy/src/com/android/cts/devicepolicy/DeviceAndProfileOwnerTest.java
evicepolicy/src/com/android/cts/devicepolicy/DeviceOwnerTest.java
b43e12c1365b9c77002401bab40d0bd50d945d3b 20-Jun-2016 phweiss <phweiss@google.com> Merge \\\"Reenable working tests for DPM.createAndManageUser\\\" into nyc-dev am: 8b1c2b777d am: feb3463f0c
am: d92e21ea92

Change-Id: I6af2b295ab8f860e49073298af71bc1b7c95e80e
d92e21ea925e8a5a4e58cd8411f786d2c47b851b 20-Jun-2016 Philipp Weiß <phweiss@google.com> Merge \\"Reenable working tests for DPM.createAndManageUser\\" into nyc-dev am: 8b1c2b777d
am: feb3463f0c

Change-Id: Ie3e2506194157904a43ca4e2143ab4ef3278cf49
f9de2e5f3603f55b787cb4e4ff5f732cc526938f 20-Jun-2016 phweiss <phweiss@google.com> Merge \"Reenable working tests for DPM.createAndManageUser\" into nyc-dev
am: 8b1c2b777d

Change-Id: Icfa02f6533ccb90b66b941657637565f71b34e77
feb3463f0c8d4b27606cd1b0cd2bc6acecbad289 20-Jun-2016 phweiss <phweiss@google.com> Merge \"Reenable working tests for DPM.createAndManageUser\" into nyc-dev
am: 8b1c2b777d

Change-Id: I45590e194597c3d64e14168c861fba3283fbdaf3
8b1c2b777d076f056a660af7498d90d37fcbd123 20-Jun-2016 Philipp Weiß <phweiss@google.com> Merge "Reenable working tests for DPM.createAndManageUser" into nyc-dev
12a241ec559b20af4c59eda4a3cde95d22b90397 18-Jun-2016 Nicholas Sauer <nicksauer@google.com> Merge \\\"Ensure TrustedVoiceHostTest unlocks the device\\\" into nyc-dev am: 7ab8795e39 am: 9cdc9bfaaa
am: b7ad8baaf6

Change-Id: I748e0172d242ba78f95d4a5d4efe47e8c30c4125
b7ad8baaf6b0d822df4530b50202d0fe4acca445 18-Jun-2016 Nicholas Sauer <nicksauer@google.com> Merge \\"Ensure TrustedVoiceHostTest unlocks the device\\" into nyc-dev am: 7ab8795e39
am: 9cdc9bfaaa

Change-Id: I8964a3f9c71c20f7848aee24c0b34f54cfad35fe
8b142990708141b0841c9ecc33bbc90a6d7a38f7 18-Jun-2016 Nicholas Sauer <nicksauer@google.com> Merge \"Ensure TrustedVoiceHostTest unlocks the device\" into nyc-dev
am: 7ab8795e39

Change-Id: Ieaf5e3562c6f5e9f64f9015de7e7acda0bc8756d
9cdc9bfaaae7b1944bc401a76b9c8d68aad4aac5 18-Jun-2016 Nicholas Sauer <nicksauer@google.com> Merge \"Ensure TrustedVoiceHostTest unlocks the device\" into nyc-dev
am: 7ab8795e39

Change-Id: Ibe093026ba422a22d23db2997f85b66b860418b9
7ab8795e3944b7c8ad3e19f30b1fbe0da27ed8f9 18-Jun-2016 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Ensure TrustedVoiceHostTest unlocks the device" into nyc-dev
cc0f9fa06601fd55cb83f55f0e749cb0ea574ed3 18-Jun-2016 Alan Viverette <alanv@google.com> Merge \"CTS test for notifying user about unsupported display zoom\" into nyc-dev
am: f4deeeebdf

Change-Id: I47954dcb29b89ff7a61256dfbb77da5163cf309c
85622adcd4d074354df40f62cdda2b2947a3cf8e 18-Jun-2016 Alan Viverette <alanv@google.com> Merge \"Add xxhdpi golden images for theme test\" into nyc-dev
am: dbc6a1c14c

Change-Id: I28e019ce0a00382abe77d31acd7b33c767c45610
de5aea800f94d6709489721d38ec10851f6ce79a 18-Jun-2016 Nicholas Sauer <nicksauer@google.com> Ensure TrustedVoiceHostTest unlocks the device

bug: 29461260
Change-Id: Id88fbf7f63716772d8d71745d8e5980131acbcab
rustedvoice/app/src/android/trustedvoice/app/TrustedVoiceActivity.java
rustedvoice/src/android/trustedvoice/cts/TrustedVoiceHostTest.java
87cc7c0f8385bb76ddfdbd1dae9fec7d694b7f1f 17-Jun-2016 Alan Viverette <alanv@google.com> Merge \\\"CTS test for notifying user about unsupported display zoom\\\" into nyc-dev am: f4deeeebdf am: 18275fd301
am: c319ddc0ab

Change-Id: I9af692d7dbc884e78aada33457f1d11dfac9d237
3831312c80f037e46e5654eb527a0c32c95edd3b 17-Jun-2016 Alan Viverette <alanv@google.com> Merge \\\"Add xxhdpi golden images for theme test\\\" into nyc-dev am: dbc6a1c14c am: db407d75c0
am: 6109554246

Change-Id: Ie56e472b8ff4f690a7fa191ed4d4f85a806c0b62
6901ce7752ecd76e6265c50364be0f50491a2726 17-Jun-2016 sean.cho <sean.cho@lge.com> Merge \\\"Fix the logical failure in the testOwnerChangedBroadcast test case.\\\" into nyc-dev am: 626382d12b am: 383241394f
am: 90e32406f0

Change-Id: Ib048e943faad828d5a4e5f336dcf71344dedc16e
15feb5eb0bf6b84ee40eb9599b77f6f503f83255 17-Jun-2016 Ruchi Kandoi <kandoiruchi@google.com> Merge \\\"sustainedperf: Skip the first set of readings for the app.\\\" into nyc-dev am: 5f9dd24e66 am: 579e454f99
am: ab5c7795e9

Change-Id: If19c6360bc968fd4016a0da4331f5a3207ecc7ad
c801a36c28fac30e33a8e758ffb445c85fc29628 17-Jun-2016 Yorke Lee <yorkelee@google.com> Merge \\\"Add CTS test to validate SDK check for global drags\\\" into nyc-dev am: 35eb9aee3e am: 4f72cd217e
am: 95c37d18cc

Change-Id: I17edf1d3c98125c9c8ebd5bda0a5e8830bb1f8c3
c319ddc0ab68396873acce3ef14fcfe14181e248 17-Jun-2016 Alan Viverette <alanv@google.com> Merge \\"CTS test for notifying user about unsupported display zoom\\" into nyc-dev am: f4deeeebdf
am: 18275fd301

Change-Id: I957b418521b33889a1fc44ac58d0cd45a20de4b5
6109554246e099a6190101a4d32e9278c29f1a6d 17-Jun-2016 Alan Viverette <alanv@google.com> Merge \\"Add xxhdpi golden images for theme test\\" into nyc-dev am: dbc6a1c14c
am: db407d75c0

Change-Id: I0c44c59f784b01553c19ce845cd12fc232bf0075
18275fd301b61b13395aabae38f77de84aab8d35 17-Jun-2016 Alan Viverette <alanv@google.com> Merge \"CTS test for notifying user about unsupported display zoom\" into nyc-dev
am: f4deeeebdf

Change-Id: I2982340c85280e89f432a639d645c7139964bfdf
f4deeeebdf1d2d58cfeb9d8f506c0d668462d8d2 17-Jun-2016 Alan Viverette <alanv@google.com> Merge "CTS test for notifying user about unsupported display zoom" into nyc-dev
9a0a844a2bd6e042f6d4dcf7b242b49911c301b5 17-Jun-2016 Alan Viverette <alanv@google.com> CTS test for notifying user about unsupported display zoom

Bug: 29322470
Change-Id: I3e5a64ae8bdbd66545d8ce9721f96b08147e059f
ervices/activitymanager/AndroidTest.xml
ervices/activitymanager/appDisplaySize/Android.mk
ervices/activitymanager/appDisplaySize/AndroidManifest.xml
ervices/activitymanager/appDisplaySize/src/android/displaysize/app/SmallestWidthActivity.java
ervices/activitymanager/src/android/server/cts/DisplaySizeTest.java
db407d75c07203108845e11f587ef2ed7aec4038 17-Jun-2016 Alan Viverette <alanv@google.com> Merge \"Add xxhdpi golden images for theme test\" into nyc-dev
am: dbc6a1c14c

Change-Id: I31872162bf40b998ed6384ec0da0fb5fe8ee78a1
dbc6a1c14c99eb737d7ac45a45d60d06fc199cce 17-Jun-2016 Alan Viverette <alanv@google.com> Merge "Add xxhdpi golden images for theme test" into nyc-dev
450b1701243c8c0261017f994d9ec04fc42bf7f8 17-Jun-2016 Robin Lee <rgl@google.com> Merge "Remove grace period for VPN connections"
1502462936dda59b5bad9cdbce601550ade7ec03 17-Jun-2016 sean.cho <sean.cho@lge.com> Merge \"Fix the logical failure in the testOwnerChangedBroadcast test case.\" into nyc-dev
am: 626382d12b

Change-Id: Ibdc80f661919758cc53ec0ed91d7498704b48530
90e32406f02b128c6bb7aea46dbf65d6e7921660 17-Jun-2016 Nicolas Prévot <nprevot@google.com> Merge \\"Fix the logical failure in the testOwnerChangedBroadcast test case.\\" into nyc-dev am: 626382d12b
am: 383241394f

Change-Id: I5cc8856e204d07d853f20d11a830d4e5138191a2
383241394f52839dba732a62cae4a98d6d754048 17-Jun-2016 sean.cho <sean.cho@lge.com> Merge \"Fix the logical failure in the testOwnerChangedBroadcast test case.\" into nyc-dev
am: 626382d12b

Change-Id: Iaaea217df71d33c8b00cead5faee9857ee140f5b
626382d12bb3a29b615fd7c361f00e37f27e9536 17-Jun-2016 Nicolas Prévot <nprevot@google.com> Merge "Fix the logical failure in the testOwnerChangedBroadcast test case." into nyc-dev
2b3a2d78e95f923f47414d36cfe14b0e7fd117a5 17-Jun-2016 Ruchi Kandoi <kandoiruchi@google.com> Merge \"sustainedperf: Skip the first set of readings for the app.\" into nyc-dev
am: 5f9dd24e66

Change-Id: Ib381f53a11f82757bd1560d2b7c56c22eb7583ab
ab5c7795e9560f981b07804dee757474b6c0ab28 17-Jun-2016 Ruchi Kandoi <kandoiruchi@google.com> Merge \\"sustainedperf: Skip the first set of readings for the app.\\" into nyc-dev am: 5f9dd24e66
am: 579e454f99

Change-Id: I26cc3cb65881dbc102e5b85bddeab13dfe028c5f
579e454f994e015867a6650e4b81447fc1ca7aa4 17-Jun-2016 Ruchi Kandoi <kandoiruchi@google.com> Merge \"sustainedperf: Skip the first set of readings for the app.\" into nyc-dev
am: 5f9dd24e66

Change-Id: I7a63dbc4cf240b3a21b3aeeea484d9bd8f6076e4
5f9dd24e669d7f7a80fe7f6aeaa980633d94e5dc 17-Jun-2016 TreeHugger Robot <treehugger-gerrit@google.com> Merge "sustainedperf: Skip the first set of readings for the app." into nyc-dev
95c37d18cc882be11397db191f6e728121c94661 16-Jun-2016 Yorke Lee <yorkelee@google.com> Merge \\"Add CTS test to validate SDK check for global drags\\" into nyc-dev am: 35eb9aee3e
am: 4f72cd217e

Change-Id: Ie4da57b97136ada783a0b4882456172d4f73e211
4f72cd217e54e85712496ec2cfc8d43f6005ec42 16-Jun-2016 Yorke Lee <yorkelee@google.com> Merge \"Add CTS test to validate SDK check for global drags\" into nyc-dev
am: 35eb9aee3e

Change-Id: I1fbbb241f9e1bc92dd87793442e9b0f2a319189d
c1399f0f1f1067bc6e56b1cc05e2b10d24bafaed 16-Jun-2016 Yorke Lee <yorkelee@google.com> Merge \"Add CTS test to validate SDK check for global drags\" into nyc-dev
am: 35eb9aee3e

Change-Id: I49e224ab08b93766820a15e412078f34092ad09c
35eb9aee3eca9ea67aabfac739ddc8ead41ef7d3 16-Jun-2016 Yorke Lee <yorkelee@google.com> Merge "Add CTS test to validate SDK check for global drags" into nyc-dev
93daac5abaf4a90dab8817414918978f60afee9e 16-Jun-2016 Ruchi Kandoi <kandoiruchi@google.com> sustainedperf: Skip the first set of readings for the app.

Ignore the first set of readings to make sure that Sustained Performance
is set and readings are consistent.

Bug: 29384727
Change-Id: I4586c593e4687e422b70d5c7677d02d6d9f2a957
Signed-off-by: Ruchi Kandoi<kandoiruchi@google.com>
ustainedperf/src/android/SustainedPerformance/cts/SustainedPerformanceHostTest.java
5a33bcd3f419c18526b33ec62c75e942a048fa39 16-Jun-2016 Felipe Leme <felipeal@google.com> Merge \\\"Add non-parcelable extras to notification to make sure it does not crash the app.\\\" into nyc-dev am: c72edd7a89 am: 677eb31ed4
am: b1d40eb3c0

Change-Id: If24d2cbe8cdbd544781a3d4da9f89ef596f936f4
b1d40eb3c08f548f2d1e8c88fc5a30251ecc3318 16-Jun-2016 Felipe Leme <felipeal@google.com> Merge \\"Add non-parcelable extras to notification to make sure it does not crash the app.\\" into nyc-dev am: c72edd7a89
am: 677eb31ed4

Change-Id: I76f5d5b31abbf329d4a59d11b74020319a65bd9d
677eb31ed48e61af4f74e27eeb68f37a0b6cefea 16-Jun-2016 Felipe Leme <felipeal@google.com> Merge \"Add non-parcelable extras to notification to make sure it does not crash the app.\" into nyc-dev
am: c72edd7a89

Change-Id: Ie8bdb70dd0096328f2ca59b89fe443914d39d28c
baff30d0a7d54127667e0e1dd0b9c02a7c06c2e5 16-Jun-2016 Felipe Leme <felipeal@google.com> Merge \"Add non-parcelable extras to notification to make sure it does not crash the app.\" into nyc-dev
am: c72edd7a89

Change-Id: Icc8449c663d6fd97c8f8aff13afad936534a39a1
c72edd7a89936d3228fb71dbbefaed245fb36704 16-Jun-2016 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Add non-parcelable extras to notification to make sure it does not crash the app." into nyc-dev
cb20318c36ccb7fc1d8b2ab0e613b315bd792cb1 16-Jun-2016 Yorke Lee <yorkelee@google.com> Add CTS test to validate SDK check for global drags

Add a test app targeting SDK 23 and verify that global
drags are not delivered to it.

Bug: 29127791
Change-Id: Ib562f95f4c14c5841a533fdb65aedab010e82d53
ervices/windowmanager/AndroidTest.xml
ervices/windowmanager/OldAndroidTest.xml
ervices/windowmanager/dndtargetappsdk23/Android.mk
ervices/windowmanager/dndtargetappsdk23/AndroidManifest.xml
ervices/windowmanager/dndtargetappsdk23/res/layout/target_activity.xml
ervices/windowmanager/dndtargetappsdk23/src/android/wm/cts/dndtargetappsdk23/DropTarget.java
ervices/windowmanager/src/android/wm/cts/CrossAppDragAndDropTests.java
f0fee7988642d9ee3390a72794de59b4b9320bec 16-Jun-2016 Felipe Leme <felipeal@google.com> Add non-parcelable extras to notification to make sure it does not crash
the app.

BUG: 29402928
Change-Id: I4fc47535ae14e71c50b25285b2fe5375abdb4f11
et/app2/src/com/android/cts/net/hostside/app2/MyBroadcastReceiver.java
4cd87761303094d053807f958b3390ec1f9f7e1d 16-Jun-2016 Sudheer Shanka <sudheersai@google.com> Cts: Add checks for testing CREATE_USERS permission.

Bug: 29189712
Change-Id: Icff148ee55e8339cbde030b547788d424509b9a3
ultiuser/Android.mk
ultiuser/AndroidTest.xml
ultiuser/src/android/host/multiuser/BaseMultiUserTest.java
ultiuser/src/android/host/multiuser/CreateUsersPermissionTest.java
7b6af4028149d44dbfed7c4c76e02b970820054e 16-Jun-2016 Guang Zhu <guangzhu@google.com> Merge \\\"annotate tests that requires restricted builds to pass\\\" into nyc-dev am: c5b8eaf8f7 am: 307259de09
am: d7e7d81be8

Change-Id: Ie3692f19cc0083d12452153b8c4cb48ffee04b0f
d7e7d81be8a66aefcbf93920b1273bd02d73065f 16-Jun-2016 Guang Zhu <guangzhu@google.com> Merge \\"annotate tests that requires restricted builds to pass\\" into nyc-dev am: c5b8eaf8f7
am: 307259de09

Change-Id: I6e7aad4a8ccfc23e3a518e1d1c30273ff5daa331
307259de09ee618e9c53cf493aea33fd9747804b 16-Jun-2016 Guang Zhu <guangzhu@google.com> Merge \"annotate tests that requires restricted builds to pass\" into nyc-dev
am: c5b8eaf8f7

Change-Id: I18ec64a5cf139099784f59a4eb5c0e06c66332cf
e4dad82a8638df9dd0dbfeff2bfd1416ace4b404 16-Jun-2016 Guang Zhu <guangzhu@google.com> Merge \"annotate tests that requires restricted builds to pass\" into nyc-dev
am: c5b8eaf8f7

Change-Id: I8d2198607a0c3b774f9efcc8ebcd6eb2db6aa237
c5b8eaf8f7fe3ad1f30b54448676207f791f2c33 16-Jun-2016 TreeHugger Robot <treehugger-gerrit@google.com> Merge "annotate tests that requires restricted builds to pass" into nyc-dev
b808f74172797d9181ec59937a71a8788ef0e758 16-Jun-2016 Takeshi Katae <takeshi.katae.xm@kyocera.jp> upport the #testAppLinks for the device which implemented browsers

devicepolicy.ManagedProfileTest#testAppLinks will go fail when the device has
browsers and one of them is set as default.
The sequence that has goes fail is as follows:
1) previous testcase, #testDisableAllBrowsers will disable Browsers
2) #testDisableAllBrowsers check the browsers through the api
pm.queryIntentActivities(webIntent, 0 /* no flags*/) and disable these
3) When #testAppLinks goes start, it will install CtsIntentReceiverApp.apk and
it cause the disable settings of browser will clear
4) pm.queryIntentActivities(getHttpIntent(), /* flags = */ 0) will return the
browser that has not lbeen listed in step 2) and it assertNumberOfReceivers()
will goes fail
To avoid the wrong judgement in 4), it should be used the flag MATCH_ALL
instead of 0.

Change-Id: I460bc63136988e8f7be08ddec51861faafc8b489
Signed-off-by: Takeshi Katae <takeshi.katae.xm@kyocera.jp>
evicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/CrossProfileUtils.java
9f21ee35f1fb96ecea921ef7eba11fadd8587767 16-Jun-2016 Julien Desprez <jdesprez@google.com> Merge \\\"Fix Adb root/unroot for encryption test\\\" into nyc-dev am: f4db828ea6 am: 0f7982f8fb
am: 9cb1de9dbd

Change-Id: Ic15479968b5fc2c248c1dcabf311fbf63b38b7f8
9cb1de9dbda94706fba195016e988893982fc12f 16-Jun-2016 Julien Desprez <jdesprez@google.com> Merge \\"Fix Adb root/unroot for encryption test\\" into nyc-dev am: f4db828ea6
am: 0f7982f8fb

Change-Id: I4185ac335029fdd16c825394875d682a7c697507
0f7982f8fb3c00d42f85054cc4c934d9e622ef45 16-Jun-2016 Julien Desprez <jdesprez@google.com> Merge \"Fix Adb root/unroot for encryption test\" into nyc-dev
am: f4db828ea6

Change-Id: Idd1181f7dc235ef2c3089cc174d125b692fc3182
d5e399702e7e375d54de7b67998eeeff86199ca6 16-Jun-2016 Julien Desprez <jdesprez@google.com> Merge \"Fix Adb root/unroot for encryption test\" into nyc-dev
am: f4db828ea6

Change-Id: Ib4be8bd5073e719c23be93a825968d2a724bf6b4
f4db828ea616c74fc83087d88a901456902f8ebe 16-Jun-2016 Julien Desprez <jdesprez@google.com> Merge "Fix Adb root/unroot for encryption test" into nyc-dev
56de5e84fb0b8a7d8d4f4bbdc24b2911558f2de7 15-Jun-2016 Guang Zhu <guangzhu@google.com> annotate tests that requires restricted builds to pass

Bug: 27536153
Change-Id: Ic1517223900ddf5943b548627f561baac0a5402b
ecurity/Android.mk
ecurity/src/android/security/cts/SELinuxHostTest.java
b030fc213bfeb9ef5e18d8261b59fcc8456f0f53 15-Jun-2016 Chris Tate <ctate@android.com> Merge \\"Re-enable web-link autoVerify wildcard policy test\\" into nyc-mr1-dev am: 6d9959c529
am: 510173fca3

Change-Id: I0358d625f1334e6b6ec5dc5f312f20a7f9f02ace
510173fca3e9e9a482f7c0e6a061c5e5a83b21a9 15-Jun-2016 Christopher Tate <ctate@google.com> Merge \"Re-enable web-link autoVerify wildcard policy test\" into nyc-mr1-dev
am: 6d9959c529

Change-Id: I41da074090bb3c0cb802369e2593e4a30fc29a22
6d9959c529e0b48f3c8b4c161469ea3a0ec63908 15-Jun-2016 Chris Tate <ctate@android.com> Merge "Re-enable web-link autoVerify wildcard policy test" into nyc-mr1-dev
4b6ebad524d396d9dcd658576612bb5bffc4a7a7 13-Jun-2016 Julien Desprez <jdesprez@google.com> Fix Adb root/unroot for encryption test

These steps are causing issue with Gce devices, root
should be done via the ITestDevice API enableAdbRoot.

Bug: 29127775
Change-Id: I0abc2f0d8d173f72ae2c6eb93bbcf58ffe95efd1
ecurity/src/android/security/cts/EncryptionHostTest.java
584593725b6a95c8c41770b162b6c155a876633b 15-Jun-2016 Alan Viverette <alanv@google.com> Add xxhdpi golden images for theme test

Bug: 29312381
Change-Id: Ie6e676b22109715f2d1e2c98cc6c835830b7d5f3
heme/assets/24/xxhdpi.zip
a0ed6286cdb34f153c091e92da9c8ca7a476f0c2 15-Jun-2016 Todd Kennedy <toddke@google.com> Merge \\\"Update CTS tests\\\" into nyc-dev am: 556fab9ee3 am: a29e8b310d
am: e5b29a06fe

Change-Id: I40b136a00a3199158c49e9399e4427609bf251c2
a29e8b310d033014a1be4e07371ddf19f5c3ac3e 15-Jun-2016 Todd Kennedy <toddke@google.com> Merge \"Update CTS tests\" into nyc-dev
am: 556fab9ee3

Change-Id: I43ca3f0e9af5ff8d6966817091c2b3bf1f2cd7dc
556fab9ee3659793f4e183f9ddd193ebcb1ad05a 15-Jun-2016 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Update CTS tests" into nyc-dev
082823c3505b6613ebea49ccf3b8969eb5e848df 15-Jun-2016 Christopher Tate <ctate@google.com> Re-enable web-link autoVerify wildcard policy test

The handling wildcard statements in web link intent filters
is an API-milestone feature.

Bug 28851367

Change-Id: I0ea5263df9d85e6365e0ebc3d094020b0d905938
s/src/android/os/cts/OsHostTests.java
e3c8081131b2178f9d9d4b1f536d0346bdb48290 15-Jun-2016 Christopher Tate <ctate@google.com> Merge \\\"Disable CTS wildcard-policy autoVerify test\\\" into nyc-dev am: 5ef048c114 am: 825d5e4690
am: 8c67ea8f13

Change-Id: I43a22404927e590b71b42eb5324cf6ed6ac10e8e
825d5e46904ea988ba68637ced0ebd66ecbd659d 15-Jun-2016 Christopher Tate <ctate@google.com> Merge \"Disable CTS wildcard-policy autoVerify test\" into nyc-dev
am: 5ef048c114

Change-Id: Ia9067ba05e996d9526260d071650081db4a0642e
5ef048c114075fcda76190a29f3571ac228465a6 15-Jun-2016 Chris Tate <ctate@android.com> Merge "Disable CTS wildcard-policy autoVerify test" into nyc-dev
be86ca7fd00759f55a2ef47695e8bb4c4d55ca0e 15-Jun-2016 Wale Ogunwale <ogunwale@google.com> Merge \\\"Make testVisibleBehindHomeActivity less flaky.\\\" into nyc-dev am: f0921aa900 am: 3cf7c042ac
am: fdba5bcf50

Change-Id: I24182843beaceaac501f5e88a0dc377a923615d7
60aa6cd7d819ea410b0d6822bfe4871ad213a928 14-Jun-2016 Todd Kennedy <toddke@google.com> Update CTS tests

* Create new CTS test that verifies the update hash prevents
updates where the hash doesn't match
* Exclude com.android.cts.ctsshim from the package signature test

Bug: 29311441
Change-Id: Ia466c17118f103b227963595d857e33dd2df7805
ppsecurity/src/android/appsecurity/cts/PrivilegedUpdateTests.java
ppsecurity/test-apps/PrivilegedUpdateApp/Android.mk
ppsecurity/test-apps/PrivilegedUpdateApp/CtsShimPrivUpgrade.apk
ppsecurity/test-apps/PrivilegedUpdateApp/CtsShimPrivUpgradeWrongSHA.apk
fdba5bcf504b7366051bb7c87cf9d412db52f46c 15-Jun-2016 Wale Ogunwale <ogunwale@google.com> Merge \\"Make testVisibleBehindHomeActivity less flaky.\\" into nyc-dev am: f0921aa900
am: 3cf7c042ac

Change-Id: I75754a8875857fe7ab2edb1459e0d2997e0b2053
ce0956003f6bc275ceec8d7abe669d1c137a25ca 15-Jun-2016 Wale Ogunwale <ogunwale@google.com> Merge \"Make testVisibleBehindHomeActivity less flaky.\" into nyc-dev
am: f0921aa900

Change-Id: Ib74b90840474e09e36d67e1d254abe65a7a6bcbe
73d79f492288c4574ed08d0c753f3cc435d9598f 15-Jun-2016 Aurimas Liutikas <aurimas@google.com> Merge \\\"Force portrait orientation for ThemeHostTest.\\\" into nyc-dev am: 2bcaac0cae am: f2a77e92c8
am: b199af0418

Change-Id: I3a9d9d983e732a04bfadd0db07b3d751955039e0
f0921aa9005df7ac40a94018818543b0af738659 15-Jun-2016 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Make testVisibleBehindHomeActivity less flaky." into nyc-dev
c9e6b39091592e4664a2550e3ae9ee29deda8372 15-Jun-2016 Christopher Tate <ctate@google.com> Disable CTS wildcard-policy autoVerify test

This feature will be introduced with a future API level bump.

Bug 28851367

Change-Id: I47405cbf2ccd22c618cc755f4707095599589a02
s/src/android/os/cts/OsHostTests.java
f2a77e92c8bb52a5212dd193ab9fb343d6c2288d 15-Jun-2016 Aurimas Liutikas <aurimas@google.com> Merge \"Force portrait orientation for ThemeHostTest.\" into nyc-dev
am: 2bcaac0cae

Change-Id: I84b2d78cf1779be0b1960c3737f9195fe7bb0557
e09f83253469b19071941ff62ca3f5448aec2f86 14-Jun-2016 Aurimas Liutikas <aurimas@google.com> Force portrait orientation for ThemeHostTest.

Bug: 28064307
Change-Id: I2e99670c169d66ab0ec6ea85a0a21191207c9744
heme/app/AndroidManifest.xml
07bc76a0293f8540aa6aba28d97b68939b44dc4e 14-Jun-2016 Wale Ogunwale <ogunwale@google.com> Make testVisibleBehindHomeActivity less flaky.

Wait for the home activity to be visible when we launch it before
computing the AM and WM states.

Bug: 29266517
Change-Id: If40119b61659588ad58c40e9cf9f728b8c74ae68
ervices/activitymanager/src/android/server/cts/ActivityAndWindowManagersState.java
ervices/activitymanager/src/android/server/cts/ActivityManagerActivityVisiblityTests.java
51ba916c797de32c04454c3a274269f649984586 14-Jun-2016 Robin Lee <rgl@google.com> Remove grace period for VPN connections

Because the broadcast isn't sent out any more until the network is
fully connected, this kind of guessing game shouldn't be necessary now.

Change-Id: Ifd676123e0b49a363186d82ab89015f48aeb7665
evicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/AlwaysOnVpnTest.java
71337874b083cca6d4ca8658b540e63fc6c57e5e 14-Jun-2016 phweiss <phweiss@google.com> Reenable working tests for DPM.createAndManageUser

These tests were disabled after b/29072728. This CL
enables the working tests again.

Bug: 29072728
Change-Id: I16d08bcddf209a7d1892ac264f04ff3b3c28268d
evicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/CreateAndManageUserTest.java
evicepolicy/src/com/android/cts/devicepolicy/DeviceOwnerTest.java
b22f8f2794effc201dd4bbcd38109cd471841237 03-Jun-2016 Jeff Vander Stoep <jeffv@google.com> Require CONFIG_SECURITY_PERF_EVENTS_RESTRICT

(Cherry picked from commit f9b94f16fce1700721756f423feab18231eedb38)

Bug: 29054680
Change-Id: I9b10e668ff164db16975b6473476da38f509faaf
ecurity/src/android/cts/security/PerfEventParanoidTest.java
6412f6bc0ef4aa9bdd27bbacb046c2c940df9028 09-Jun-2016 Mohamad Ayyash <mkayyash@google.com> Adjust testAppFailAccessPrivateData to fail on non-tagged sockets

Also avoid failing on expecting to find other sockets in qtaguid stats
since we already test we can access our stats in
CreatePrivateDataTest:testCreatePrivateData test

BUG: 29071701
BUG: 27577101
Change-Id: I99614045f0263284933b4a98bbb0e9aabd55fe1b
Signed-off-by: Mohamad Ayyash <mkayyash@google.com>
ppsecurity/test-apps/AppAccessData/src/com/android/cts/appaccessdata/AccessPrivateDataTest.java
20a849e69e617e248487e421ee1b4c52a84bb946 09-Jun-2016 Tobias Thierer <tobiast@google.com> Rebuild CtsCompilationTestCases assets for N release builds. am: eb69dcc6b2 am: 47790e5cca
am: 3039ad24e5

Change-Id: Ifac8bf4552862e39dcd84dab5f33f6efdbb8963d
47790e5cca4b105ad390ec74cedf5498873ad002 09-Jun-2016 Tobias Thierer <tobiast@google.com> Rebuild CtsCompilationTestCases assets for N release builds.
am: eb69dcc6b2

Change-Id: I8ae2c84859ea7bd9ed63f45e7bb098996c5bd1f3
eb69dcc6b290520b1552b9e09dbf9321217be617 09-Jun-2016 Tobias Thierer <tobiast@google.com> Rebuild CtsCompilationTestCases assets for N release builds.

The test started failing because the old APK was apparently specific to
development builds of N.

I derived the APK and .prof by following the steps in README.txt, using
a Nexus 5X.

Tested:

make cts && cts-tradefed run cts -m CtsCompilationTestCases

Bug: 29232666
Change-Id: Ia5b1b7cacb7e70600047fa9f3a78cd7182c49561
ompilation/assets/CtsCompilationApp.apk
ompilation/assets/README.txt
ompilation/assets/primary.prof
0eda9837c7ea7db5f8eb801efe82ecd7b530e7eb 09-Jun-2016 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Require CONFIG_SECURITY_PERF_EVENTS_RESTRICT" into nyc-dev
30d33359d80a8478d3d6a00f175327696d1af900 08-Jun-2016 Yorke Lee <yorkelee@google.com> Merge \\\"Fix flakiness of CrossAppDragAndDropTests\\\" into nyc-dev am: 4a2e4fad32 am: e411e0eb0b
am: 3848c0434b

Change-Id: I7a3d84dca4cde62504192d29be34e6544e69d348
e411e0eb0b30c073b0004894504a1f53b54a4cbd 08-Jun-2016 Yorke Lee <yorkelee@google.com> Merge \"Fix flakiness of CrossAppDragAndDropTests\" into nyc-dev
am: 4a2e4fad32

Change-Id: I72dd187eb97c6a0eae09c82d521f858220e07e68
4a2e4fad32fffc6f4a82c5008b46758a929cd5bd 08-Jun-2016 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Fix flakiness of CrossAppDragAndDropTests" into nyc-dev
5e0c1bcf164d75e99e928b16864c1932c71e0975 08-Jun-2016 Yorke Lee <yorkelee@google.com> Fix flakiness of CrossAppDragAndDropTests

The test was previously launching the target task into the
freeform stack, which has undefined behavior in devices that do
not support the freeform workspace. For the most part this would
default to the fullscreen stack, which would result in the test
working correctly, but sometimes the target task would be launched into
the docked stack instead, replacing the source task and causing
the test failure.

Also launch the source task into the docked stack directly instead
of using "am movetask", which can be occasionally flaky.

Bug: 29186280
Change-Id: I9566c1db3f141df7d28d54f416cfac3fe3820775
ervices/windowmanager/src/android/wm/cts/CrossAppDragAndDropTests.java
62beb274f96af1278350fb13f009435d30f4efc3 08-Jun-2016 Abhijith Shastry <ashastry@google.com> Merge \\\"Skip hostside numberblocking tests in devices without telecom.\\\" into nyc-dev am: 0fdde31230 am: 691b842b18
am: 7f2c3bff7e

Change-Id: Ie5b32c10c41bd73dd624ecc4b7cab97fc2b748a7
7f2c3bff7ef6ff65f88662685bd2092db5657bfe 08-Jun-2016 Abhijith Shastry <ashastry@google.com> Merge \\"Skip hostside numberblocking tests in devices without telecom.\\" into nyc-dev am: 0fdde31230
am: 691b842b18

Change-Id: I62191f113e2ab2b73cbe4ce3c496e7964f26c252
181862268d016565e4098ff0c16782e78fd83990 08-Jun-2016 Abhijith Shastry <ashastry@google.com> Merge \"Skip hostside numberblocking tests in devices without telecom.\" into nyc-dev
am: 0fdde31230

Change-Id: I51429f14022d2bb1e9e687046da8ccdff7ece17b
8b515a5ea10f6f6dd8c5227c597c935fd24a4301 08-Jun-2016 Abhijith Shastry <ashastry@google.com> Skip hostside numberblocking tests in devices without telecom.

BUG: 29191385
Change-Id: I06b34731a03a7e3d24f83b35b9f01b0ebd86a840
umberblocking/src/com/android/cts/numberblocking/hostside/NumberBlockingTest.java
0b4c1ea93f019ac56c1251aa74ad816ebace0e41 07-Jun-2016 Haobo Hu <huhaobo@huawei.com> Merge "Resolve CTS apk can\'t get PackageInstaller\'s widget." into marshmallow-cts-dev
am: 514de72f7f

* commit '514de72f7f811bc00d7edcdf4ced086decb70f86':
Resolve CTS apk can't get PackageInstaller's widget.

Change-Id: Id78add6115d583dcbf4358fb76fc6b97feb55e03
3e4ef9691457931670e2df10899615852a050d1e 20-May-2016 sean.cho <sean.cho@lge.com> Fix the logical failure in the testOwnerChangedBroadcast test case.

The runDeviceTests function uses the intrumentation command.
The instrumentation calls the forceStopPackageLocked function before starting the process.
The queued intent for this package in the BroadCastQueue is cleaned up
by forceStopPackageLocked function in approximately 1 second.
If a device can't deliver a DEVICE_OWNER_CHANGED within one second,
this test case always fail.
So, waiting for the broadcast idle state after sending a DEVICE_OWNER_CHANGED.
Signed-off-by: Seong kyu cho <sean.cho@lge.com>

Change-Id: I3b89cd16acd3731a8c6134cd431e41b9828b5eaf
evicepolicy/src/com/android/cts/devicepolicy/CustomDeviceOwnerTest.java
e3a3d8f201930825d220141730d8bb8a8ff9b33f 06-Jun-2016 Gaurav Mishra <mishragaurav@google.com> Merge "Migrate cts tests to new metric logging system." into nyc-dev am: 3d3962eb01 am: ba35f8749c
am: 9c4e9b106d

* commit '9c4e9b106de5affdf4babe29352fc6d0f3f69946':
Migrate cts tests to new metric logging system.

Change-Id: I0df5d0debbdb7ac22ae9f3a8ece17221b2d8d2e9
ae419dc2fb63969bd6615020cdd5e690c85409fd 06-Jun-2016 Gaurav Mishra <mishragaurav@google.com> Merge "Migrate cts tests to new metric logging system." into nyc-dev
am: 3d3962eb01

* commit '3d3962eb015b49c468e2e65fca242081fea5b2a3':
Migrate cts tests to new metric logging system.

Change-Id: I304b11c1dd6b66509cc800ec3fb71ee4472d2a46
9c4e9b106de5affdf4babe29352fc6d0f3f69946 06-Jun-2016 Gaurav Mishra <mishragaurav@google.com> Merge "Migrate cts tests to new metric logging system." into nyc-dev am: 3d3962eb01
am: ba35f8749c

* commit 'ba35f8749c0d97f9406d6aecafc99b6bede2bcae':
Migrate cts tests to new metric logging system.

Change-Id: Iac796a65732907fc72e64c89fde60a4decb1dc20
3d3962eb015b49c468e2e65fca242081fea5b2a3 06-Jun-2016 Gaurav Mishra <mishragaurav@google.com> Merge "Migrate cts tests to new metric logging system." into nyc-dev
524a30248144f692f9c5cc0bbe3cb0f87e6173ec 06-Jun-2016 Felipe Leme <felipeal@google.com> Merge "Changed network check URL." into nyc-dev am: aeafa63309 am: e3bb2200b7
am: c2bd8a6d2b

* commit 'c2bd8a6d2b1edfc5d8be920438ea9953f2ef4974':
Changed network check URL.

Change-Id: Ida8085fb73b4eba460ea4afc603e7268eeb61b79
c2bd8a6d2b1edfc5d8be920438ea9953f2ef4974 06-Jun-2016 Felipe Leme <felipeal@google.com> Merge "Changed network check URL." into nyc-dev am: aeafa63309
am: e3bb2200b7

* commit 'e3bb2200b7f6474df0a790c8f5c28b697ff3b4fa':
Changed network check URL.

Change-Id: I717a9026aed020c06a8ab814685343e65197a208
091a6d5780d0a5cae27c993898e3629987d4011e 06-Jun-2016 Felipe Leme <felipeal@google.com> Merge "Changed network check URL." into nyc-dev
am: aeafa63309

* commit 'aeafa63309df386086f96398f4e76b0be1c9ec1b':
Changed network check URL.

Change-Id: I7722ad944c8d19a26412eb798f39dcfb74bc9dfe
aeafa63309df386086f96398f4e76b0be1c9ec1b 06-Jun-2016 Felipe Leme <felipeal@google.com> Merge "Changed network check URL." into nyc-dev
781a0e3c9625a2f5865ab2f385ebc7529644fb2b 06-Jun-2016 Felipe Leme <felipeal@google.com> Changed network check URL.

It cannot use google.com because it's blocked in some countries where
CTS tests are run.

BUG: 29082308

Change-Id: I749659ec2cd33248fddbe5b4ab02bd6e90f24a67
et/app2/src/com/android/cts/net/hostside/app2/MyBroadcastReceiver.java
a7d4ca59d9b639abbd4e6fa07553c45966ac2091 06-Jun-2016 Alan Viverette <alanv@google.com> Merge "Remove display info test, update tests again for API 24" into nyc-dev am: 5a50ca957c am: a2944991c8
am: b27372cc26

* commit 'b27372cc262d430897d127f57e03a0d1b026188a':
Remove display info test, update tests again for API 24

Change-Id: Id23b1b1f88dfd4ba0993d6d80ab4373aebbdadd6
a2944991c81cde51f3d853e86953f6deec2e25f7 06-Jun-2016 Alan Viverette <alanv@google.com> Merge "Remove display info test, update tests again for API 24" into nyc-dev
am: 5a50ca957c

* commit '5a50ca957c6c6b788dc1a19fcdf4c70bbb2cd149':
Remove display info test, update tests again for API 24

Change-Id: I58963c076ee63f6d0061aff6972577b9b9bc9552
5a50ca957c6c6b788dc1a19fcdf4c70bbb2cd149 06-Jun-2016 Alan Viverette <alanv@google.com> Merge "Remove display info test, update tests again for API 24" into nyc-dev
4f560b61fca03bf1ac656daaa9005b130d515664 06-Jun-2016 Alan Viverette <alanv@google.com> Remove display info test, update tests again for API 24

The display info test was broken, and if fixed wouldn't pass on any
device other than the one on which the golden image was generated.

Bug: 28064307
Change-Id: Ia1c4268fbc697d2167a6fb4ad93bddd014073d57
heme/README
heme/app/AndroidManifest.xml
heme/app/res/drawable-400dpi/display_info.png
heme/app/res/drawable-560dpi/display_info.png
heme/app/res/drawable-hdpi/display_info.png
heme/app/res/drawable-ldpi/display_info.png
heme/app/res/drawable-mdpi/display_info.png
heme/app/res/drawable-tvdpi/display_info.png
heme/app/res/drawable-xhdpi/display_info.png
heme/app/res/drawable-xxhdpi/display_info.png
heme/app/res/drawable-xxxhdpi/display_info.png
heme/app/res/layout/display_info.xml
heme/app/src/android/theme/app/DisplayInfoActivity.java
heme/app/src/android/theme/app/ThemeDeviceActivity.java
heme/assets/24/420dpi.zip
heme/assets/24/560dpi.zip
heme/assets/24/xhdpi.zip
8a3f541145c02c307f72600a353529a0c3292a5a 06-Jun-2016 Haobo Hu <huhaobo@huawei.com> Resolve CTS apk can't get PackageInstaller's widget.

Bug 29084996

Change-Id: Ic2ac0ff8cc662ce11f51e6dd3d5346ecaff93235
evicepolicy/app/PackageInstaller/src/com/android/cts/packageinstaller/BasePackageInstallTest.java
evicepolicy/app/PackageInstaller/src/com/android/cts/packageinstaller/ManualPackageInstallTest.java
59d5460cd7eafa264efe25fb6d455c491b944a79 04-Jun-2016 Jeff Vander Stoep <jeffv@google.com> Merge "Merge "Require CONFIG_SECURITY_PERF_EVENTS_RESTRICT" am: 9771e69af7 am: 32ef37ad66 am: b35c97ad6a" into nyc-mr1-dev-plus-aosp
am: f114cfe1db

* commit 'f114cfe1dbf724007210d1cbb2f757e140cd7667':
Require CONFIG_SECURITY_PERF_EVENTS_RESTRICT

Change-Id: If61ee1e7e5c6a0ea78c87e30b51218884b1f533c
7aa5b2821affb541774b18e5c980ad66ba65c382 04-Jun-2016 Philipp Weiß <phweiss@google.com> Merge "Merge "Disable CreateAndManageUser hostside tests" into nyc-dev am: b7d1733c03 am: 7b059b5821" into nyc-mr1-dev-plus-aosp
am: 1e3c015008

* commit '1e3c015008ac3de7bb084401851865f7587bc052':
Disable CreateAndManageUser hostside tests

Change-Id: I668c4ec6cd6e507ae4390887edcdbf19a280e096
f114cfe1dbf724007210d1cbb2f757e140cd7667 04-Jun-2016 Android Build Merger (Role) <android-build-merger@google.com> Merge "Merge "Require CONFIG_SECURITY_PERF_EVENTS_RESTRICT" am: 9771e69af7 am: 32ef37ad66 am: b35c97ad6a" into nyc-mr1-dev-plus-aosp
a72c61983183391915acd2e63896778b06c16891 04-Jun-2016 Philipp Weiß <phweiss@google.com> Merge "Disable CreateAndManageUser hostside tests" into nyc-dev am: b7d1733c03
am: 7b059b5821

* commit '7b059b5821455fae53372c107d726aa7efff08aa':
Disable CreateAndManageUser hostside tests

Change-Id: I5c75bc17df71af0c9f261068447a4653227ac3d9
242b3efc3ea0af669b4b180eb72a7183e77d4cb3 04-Jun-2016 phweiss <phweiss@google.com> Merge "Disable CreateAndManageUser hostside tests" into nyc-dev
am: b7d1733c03

* commit 'b7d1733c031b689e29451218c2c9f01b22d2a185':
Disable CreateAndManageUser hostside tests

Change-Id: I789d2cb36f4507d875bfa7b67a69bbc2368f56c4
b7d1733c031b689e29451218c2c9f01b22d2a185 04-Jun-2016 Philipp Weiß <phweiss@google.com> Merge "Disable CreateAndManageUser hostside tests" into nyc-dev
b35c97ad6ae47b5b66fcd6e842cc9be3f48422fa 04-Jun-2016 Jeff Vander Stoep <jeffv@google.com> Merge "Require CONFIG_SECURITY_PERF_EVENTS_RESTRICT" am: 9771e69af7
am: 32ef37ad66

* commit '32ef37ad66ec5e32e060b0a7331302ff3eab3edb':
Require CONFIG_SECURITY_PERF_EVENTS_RESTRICT

Change-Id: I5fba344ca47c7761a697367dc4c567e3ae7f9ff1
53c6a21b8069c98482ed4115a0846f898919dd1c 03-Jun-2016 Jeff Vander Stoep <jeffv@google.com> Require CONFIG_SECURITY_PERF_EVENTS_RESTRICT

(cherry-picked from commit f9b94f16fce1700721756f423feab18231eedb38)

Bug: 29054680
Change-Id: I9b10e668ff164db16975b6473476da38f509faaf
ecurity/src/android/cts/security/PerfEventParanoidTest.java
f9b94f16fce1700721756f423feab18231eedb38 03-Jun-2016 Jeff Vander Stoep <jeffv@google.com> Require CONFIG_SECURITY_PERF_EVENTS_RESTRICT

Bug: 29054680
Change-Id: I9b10e668ff164db16975b6473476da38f509faaf
ecurity/src/android/cts/security/PerfEventParanoidTest.java
1d31b885b7b464031fd46f4127e9c8aeca8ab988 03-Jun-2016 Ian Pedowitz <ijpedowitz@google.com> Merge commit \'1ae17e3fa9f423e4340322028cf9cbee85953cc2\' into manual_merge_1ae17e3 am: 7756f12976
am: cf95aace5f

* commit 'cf95aace5f1b5da36b8ceadb1161eab210db37f7':
New prebuilt

Change-Id: Ia298944fb8fa97815dcb0634d8a8a0d6ee3927b4
cf95aace5f1b5da36b8ceadb1161eab210db37f7 03-Jun-2016 Todd Kennedy <toddke@google.com> Merge commit \'1ae17e3fa9f423e4340322028cf9cbee85953cc2\' into manual_merge_1ae17e3
am: 7756f12976

* commit '7756f12976cbf166f912f62f5f2086f8d4b00674':
New prebuilt

Change-Id: I92e1af6f7e18a1c835891343edfaf39d8aa3960d
5a4b1095b153672be7e692dae889af6076fd5bcc 29-Apr-2016 Gaurav Mishra <mishragaurav@google.com> Migrate cts tests to new metric logging system.

Bug: 27950009
Bug: 27925818
Change-Id: Ifcb3141198fe0812afeb40b87ea3ec7bcb342458
ample/src/android/sample/cts/SampleHostResultTest.java
i/src/android/ui/cts/InstallTimeTest.java
b58a8cce58bacd4e1f10ebc04e9fbd518bd9fab7 03-Jun-2016 Todd Kennedy <toddke@google.com> New prebuilt
am: 1ae17e3fa9

* commit '1ae17e3fa9f423e4340322028cf9cbee85953cc2':
New prebuilt

Change-Id: I68db67106e5c0969c0b48e4c5d131c684f768c49
f13cf4947850b3aad778ac8ea4b81477e23d352a 03-Jun-2016 phweiss <phweiss@google.com> Disable CreateAndManageUser hostside tests

Remove Host side tests whose implementation where removed in ag/1097074

Bug 29072728

Change-Id: If26e3529aa254fef9a85d5836302dba6a347bc45
evicepolicy/src/com/android/cts/devicepolicy/DeviceOwnerTest.java
b2e95e45d4b8d454f7690f861df5751f966036a8 03-Jun-2016 Jiabin <jiabin@google.com> Merge "TIF: Improve the reliability of the TvInputManagerHostTest." into nyc-dev am: 618f8a58fb am: 86d11b1324
am: ce527f31f7

* commit 'ce527f31f7b1b3cffc8120026e3368df7fa398e3':
TIF: Improve the reliability of the TvInputManagerHostTest.

Change-Id: I2d851a89d3a35e65b580a625b1624923be475ce6
86d11b132435a2136b3234bdcdb379399cd29c3f 03-Jun-2016 Jiabin <jiabin@google.com> Merge "TIF: Improve the reliability of the TvInputManagerHostTest." into nyc-dev
am: 618f8a58fb

* commit '618f8a58fbe81cd5a64e76e7e7efae5ba1a11cf9':
TIF: Improve the reliability of the TvInputManagerHostTest.

Change-Id: I87fd0d61b867499f1682004aee333d58792f2151
1ae17e3fa9f423e4340322028cf9cbee85953cc2 03-Jun-2016 Todd Kennedy <toddke@google.com> New prebuilt

Need to target API 24 and not 'N'.

Bug: 29116156

Change-Id: I23b3dc5027e756a544c299c5663b0fa5faff6d36
ppsecurity/test-apps/PrivilegedUpdateApp/CtsShimPrivUpgrade.apk
618f8a58fbe81cd5a64e76e7e7efae5ba1a11cf9 03-Jun-2016 Dongwon Kang <dwkang@google.com> Merge "TIF: Improve the reliability of the TvInputManagerHostTest." into nyc-dev
7a834899977bec47b576d8ed690ebcb20948bebe 03-Jun-2016 Tobias Thierer <tobiast@google.com> Merge "Integration test for bg-dexopt compilation"
50e71cda082197632af1b94906cc8c6ad9a57538 02-Jun-2016 Felipe Leme <felipeal@google.com> Merge "Skip Doze Mode-related tests when device does not support it." into nyc-dev am: 07924c0489 am: b27df68aad
am: af1f6f3114

* commit 'af1f6f3114f6efdcf1f38475148e2598447ff73c':
Skip Doze Mode-related tests when device does not support it.

Change-Id: I504ca7e2b6cb9e9fffa6d9bb3bd2d106ef87d8df
b27df68aadc2ed04a1efcdd1a89a9c97f84eaeda 02-Jun-2016 Felipe Leme <felipeal@google.com> Merge "Skip Doze Mode-related tests when device does not support it." into nyc-dev
am: 07924c0489

* commit '07924c0489b60f460b285eddc69533cbda51f5a9':
Skip Doze Mode-related tests when device does not support it.

Change-Id: Ibbe3e77b88ffdcf7fe773aa18314661b59afca75
07924c0489b60f460b285eddc69533cbda51f5a9 02-Jun-2016 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Skip Doze Mode-related tests when device does not support it." into nyc-dev
f2e4fbf226e0ae274647bababcecf7cb8f116dca 02-Jun-2016 Alex Klyubin <klyubin@google.com> Merge "Assert correct cert is looked up from PKCS#7 SignedData." into nyc-dev am: 0eb1f98e06 am: 74126d0333
am: b94bcf4cfc

* commit 'b94bcf4cfc9541bb5c7f6af5df5eb36c9423bafa':
Assert correct cert is looked up from PKCS#7 SignedData.

Change-Id: I047634c59bdd9d980e0e823259013f6eff1502a9
b94bcf4cfc9541bb5c7f6af5df5eb36c9423bafa 02-Jun-2016 Alex Klyubin <klyubin@google.com> Merge "Assert correct cert is looked up from PKCS#7 SignedData." into nyc-dev am: 0eb1f98e06
am: 74126d0333

* commit '74126d0333f413eafb0a7208000912ee03e34d19':
Assert correct cert is looked up from PKCS#7 SignedData.

Change-Id: I789d8d730bc51da68a68f431c26e228266da4b4a
57a882f4cca08521acbece3f57bbaa1a2795c47b 02-Jun-2016 Alex Klyubin <klyubin@google.com> Merge "Assert correct cert is looked up from PKCS#7 SignedData." into nyc-dev
am: 0eb1f98e06

* commit '0eb1f98e06a8a39b90819ee00c5ffba3477d8076':
Assert correct cert is looked up from PKCS#7 SignedData.

Change-Id: I92b1db856fa15cbce2aa5bef4c7e286dac3a2331
0eb1f98e06a8a39b90819ee00c5ffba3477d8076 02-Jun-2016 Alex Klyubin <klyubin@google.com> Merge "Assert correct cert is looked up from PKCS#7 SignedData." into nyc-dev
d600368efb7dc5d51620d2a43aa41cdf88413e81 02-Jun-2016 Felipe Leme <felipeal@google.com> Skip Doze Mode-related tests when device does not support it.

Fixes: 29072117
Change-Id: I7ca37eae58258c021ed6297a9f1ee3b2749da7d7
et/app/src/com/android/cts/net/hostside/AbstractAppIdleTestCase.java
et/app/src/com/android/cts/net/hostside/AbstractBatterySaverModeTestCase.java
et/app/src/com/android/cts/net/hostside/AbstractDozeModeTestCase.java
et/app/src/com/android/cts/net/hostside/AbstractRestrictBackgroundNetworkTestCase.java
et/app/src/com/android/cts/net/hostside/DataSaverModeTest.java
et/app/src/com/android/cts/net/hostside/MixedModesTest.java
et/src/com/android/cts/net/HostsideRestrictBackgroundNetworkTests.java
9d3de9076844ce66be815cb335026233b6fa4f8b 26-May-2016 Tobias Thierer <tobiast@google.com> Integration test for bg-dexopt compilation

Since this test relies on adb root, it exits early (passes
without doing anything) when running on a 'user' build.

Tested:
On user, and userdebug with/without dalvik.vm.usejitprofiles:
cts-tradefed run cts -m CtsCompilationTestCases

Bug: 27217443
Change-Id: I5991fd15ad74de95103c7bf8d8fadd835abc1fe9
ompilation/src/android/cts/compilation/AdbRootDependentCompilationTest.java
63cb4ed5f9d28592665ecc8d9391be7b23e9c3b7 01-Jun-2016 Alex Klyubin <klyubin@google.com> Assert correct cert is looked up from PKCS#7 SignedData.

This adds a test where the APK JAR signature's PKCS#7 SignedData block
contains two certificates such that the second certificate is the one
which contains the signer's public key. The test checks that the first
certificate is ignored and the second one is returned as the signer
certificate.

Bug: 29055836
Change-Id: I4afa44136118915958279dd3f176e19356434c64
ppsecurity/res/pkgsigverify/v1-only-pkcs7-cert-bag-first-cert-not-used.apk
ppsecurity/src/android/appsecurity/cts/PkgInstallSignatureVerificationTest.java
83fdd3648315e0aaf91fc60d78aee153742e2002 02-Jun-2016 Felipe Leme <felipeal@google.com> Merge "Add flakyness check when a valid connection is expected." into nyc-dev am: 8ee60199fd am: 91010028de
am: 97ef21fe2b

* commit '97ef21fe2bca9f3cba93386ace26db1c43de3813':
Add flakyness check when a valid connection is expected.

Change-Id: I88855d920b8698571b702b95b400d0a7997e95e8
97ef21fe2bca9f3cba93386ace26db1c43de3813 02-Jun-2016 Felipe Leme <felipeal@google.com> Merge "Add flakyness check when a valid connection is expected." into nyc-dev am: 8ee60199fd
am: 91010028de

* commit '91010028de430e59112f7ea26fbc052159612a4f':
Add flakyness check when a valid connection is expected.

Change-Id: Iec06367d36204aed0eb7e6f40a398ce76a23cf7f
def10b1fd8b103f200ae2c8b4dfb80ebedb95902 02-Jun-2016 sean.cho <sean.cho@lge.com> Merge "Fix the logical failure in the testOwnerChangedBroadcast test case." into marshmallow-cts-dev
am: 5557f20190

* commit '5557f20190106280c2994b18aa875f3952b636e3':
Fix the logical failure in the testOwnerChangedBroadcast test case.

Change-Id: I0a1837c3d49c3474c4ab552fdde072fb905fc4ec
585b4c15d9f367e7afd7a554b5e66e14011e4676 02-Jun-2016 Felipe Leme <felipeal@google.com> Merge "Add flakyness check when a valid connection is expected." into nyc-dev
am: 8ee60199fd

* commit '8ee60199fd55b1ceefbb6c98a36a3d688c892f3f':
Add flakyness check when a valid connection is expected.

Change-Id: I5dcd03e34fc6ada0e8f49429f2a25f3cdb10e476
98c48513171279dbfb711ce0cc2ab6d052e4a242 02-Jun-2016 Felipe Leme <felipeal@google.com> Add flakyness check when a valid connection is expected.

BUG: 29082308

Change-Id: Iadb9a0bd7fbd307d799af7a7a5dabc0ed000bc6d
et/app/src/com/android/cts/net/hostside/AbstractRestrictBackgroundNetworkTestCase.java
et/app2/src/com/android/cts/net/hostside/app2/MyBroadcastReceiver.java
6c6c6efbbd548fef6b37969fc2d77faa3dc2d5f1 02-Jun-2016 Makoto Onuki <omakoto@google.com> Disable CreateAndManageUserTest as it has issues on user build am: c84c2fbc89 am: 6fcda3e31f
am: bb874cc07c

* commit 'bb874cc07c7be45fd237b2d133f1ec5651b31af7':
Disable CreateAndManageUserTest as it has issues on user build

Change-Id: I6b1228bf3cf242e97aec4fe7c2b8262043a33257
febccc119d1140041f5cd0a628e6f3dca02c2a93 02-Jun-2016 Selim Gurun <sgurun@google.com> Merge "Revert "Verify that installation of a large apk succeeds""
89ab1d4a7a140736aaa8f53ac211ebd8b0a3b4b9 02-Jun-2016 Selim Gurun <sgurun@google.com> Revert "Verify that installation of a large apk succeeds"

This reverts commit e7114fdc88400aad8480d376a6d95bc1924cd1fc.

Bug: 28808317

Change-Id: Ifbdcd2266ccdc6b20a65a6b4bcf7c860e58f82b7
argeapk/Android.mk
argeapk/AndroidTest.xml
argeapk/app/Android.mk
argeapk/app/AndroidManifest.xml
argeapk/app/res/raw/zerofile.png
argeapk/app/src/android/largeapk/app/LargeApkActivity.java
argeapk/src/android/largeapk/cts/LargeApkTest.java
bb874cc07c7be45fd237b2d133f1ec5651b31af7 02-Jun-2016 Makoto Onuki <omakoto@google.com> Disable CreateAndManageUserTest as it has issues on user build am: c84c2fbc89
am: 6fcda3e31f

* commit '6fcda3e31f559f68f1fcc2150da857a0aac9cb96':
Disable CreateAndManageUserTest as it has issues on user build

Change-Id: I3de2bed6b780e8f29c980530893f6f5f91057485
4a2b6df30e7a8b0d81cdc72aac6137b11ade8314 02-Jun-2016 Makoto Onuki <omakoto@google.com> Disable CreateAndManageUserTest as it has issues on user build
am: c84c2fbc89

* commit 'c84c2fbc89b2208775b9cadba2f6e8f0153a47af':
Disable CreateAndManageUserTest as it has issues on user build

Change-Id: Ib98f60d61fc138ccf0cfbd2c9a97a41467032ac6
c84c2fbc89b2208775b9cadba2f6e8f0153a47af 02-Jun-2016 Makoto Onuki <omakoto@google.com> Disable CreateAndManageUserTest as it has issues on user build

Bug 29072728

Change-Id: If0bcacf45c2199968056d0ef0a3e50b95f35aa93
evicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/CreateAndManageUserTest.java
5d4cd975449adfbe128adce6f89a82e856a76996 01-Jun-2016 Vladislav Kaznacheev <kaznacheev@google.com> Merge "Add host side CTS test for cross-app drag and drop" into nyc-dev am: c085041010 am: bbbac16075
am: ee2be0620e

* commit 'ee2be0620e42052a39c77990651dff2ea4d417ee':
Add host side CTS test for cross-app drag and drop

Change-Id: I0020f079cf6b2ec06d049df7503524291678d23f
bbbac16075a4e54fdcbc18baf237e8bae79c6221 01-Jun-2016 Vladislav Kaznacheev <kaznacheev@google.com> Merge "Add host side CTS test for cross-app drag and drop" into nyc-dev
am: c085041010

* commit 'c0850410102620f5961facaebc7440ba4499aa4d':
Add host side CTS test for cross-app drag and drop

Change-Id: Icde8a3e9343792b8e2b54996a276f305336bc029
c0850410102620f5961facaebc7440ba4499aa4d 01-Jun-2016 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Add host side CTS test for cross-app drag and drop" into nyc-dev
9972c792d6589c2a7b0298c2823d9eb8d32e0498 01-Jun-2016 Vladislav Kaznacheev <kaznacheev@google.com> Add host side CTS test for cross-app drag and drop

This is a host side replacement for android.dnd.cts.DragAndDropTest.
This should resolve the UIAutomator flakiness problem.

Bug: 28508640
Change-Id: I27b5a2724807e4805560cc0a9c69886129496e9f
ervices/windowmanager/Android.mk
ervices/windowmanager/AndroidTest.xml
ervices/windowmanager/OldAndroidTest.xml
ervices/windowmanager/dndsourceapp/Android.mk
ervices/windowmanager/dndsourceapp/AndroidManifest.xml
ervices/windowmanager/dndsourceapp/res/layout/source_activity.xml
ervices/windowmanager/dndsourceapp/src/android/wm/cts/dndsourceapp/DragSource.java
ervices/windowmanager/dndsourceapp/src/android/wm/cts/dndsourceapp/DragSourceContentProvider.java
ervices/windowmanager/dndsourceapp/src/android/wm/cts/dndsourceapp/DragSourceCursor.java
ervices/windowmanager/dndtargetapp/Android.mk
ervices/windowmanager/dndtargetapp/AndroidManifest.xml
ervices/windowmanager/dndtargetapp/res/layout/target_activity.xml
ervices/windowmanager/dndtargetapp/src/android/wm/cts/dndtargetapp/DropTarget.java
ervices/windowmanager/src/android/wm/cts/CrossAppDragAndDropTests.java
e581afef74bc00edb67c2008c63d2c42073edf55 01-Jun-2016 Alan Viverette <alanv@google.com> Merge "Fix theme test reference generation script, update reference for API 24" into nyc-dev am: f03480e4ec am: cb6a24f69e
am: bb3fa6e5f6

* commit 'bb3fa6e5f663065c97366ae6f149f0adc383b389':
Fix theme test reference generation script, update reference for API 24

Change-Id: I3faf2b21bc1768b369b69a05b783d112990c154e
cb6a24f69eb4e40f8bec547fde33df8c5156153f 01-Jun-2016 Alan Viverette <alanv@google.com> Merge "Fix theme test reference generation script, update reference for API 24" into nyc-dev
am: f03480e4ec

* commit 'f03480e4ec58010bc69fdccb5c0083b2dd340aee':
Fix theme test reference generation script, update reference for API 24

Change-Id: Ic8f1f2f0afd17fcebf56c8136c9752ff1f7f662f
e2da81e900302fb939ee83039427b70d4414198c 31-May-2016 Alan Viverette <alanv@google.com> Fix theme test reference generation script, update reference for API 24

Bug: 28064307
Change-Id: Ie7a97972b98e511f8901238a48377538f55614ae
heme/README
heme/android_device.py
heme/assets/24/420dpi.zip
heme/assets/24/560dpi.zip
heme/assets/24/xhdpi.zip
heme/run_theme_capture_device.py
bdcbcd2504d87b0f7690c7fd4f09933a7492064e 20-May-2016 sean.cho <sean.cho@lge.com> Fix the logical failure in the testOwnerChangedBroadcast test case.

The runDeviceTests function uses the intrumentation command.
The instrumentation calls the forceStopPackageLocked function before starting the process.
The queued intent for this package in the BroadCastQueue is cleaned up
by forceStopPackageLocked function in approximately 1 second.
If a device can't deliver a DEVICE_OWNER_CHANGED within one second,
this test case always fail.
So, waiting for the broadcast idle state after sending a DEVICE_OWNER_CHANGED.
Signed-off-by: Seong kyu cho <sean.cho@lge.com>

Change-Id: I3b89cd16acd3731a8c6134cd431e41b9828b5eaf
evicepolicy/src/com/android/cts/devicepolicy/CustomDeviceOwnerTest.java
c907d8377c4d5b701ba519ca0ba084f873ad473b 28-May-2016 Felipe Leme <felipeal@google.com> Merge "Added test for whitelisting pending intent for Doze Mode." into nyc-dev am: 12a8e761d2 am: be0249dc08
am: d337407691

* commit 'd337407691f64cdb71c61ee1eee318e6701374a7':
Added test for whitelisting pending intent for Doze Mode.

Change-Id: I8afa1e0cbef1cbe7fa66eae7343882927f00f4c2
d337407691f64cdb71c61ee1eee318e6701374a7 28-May-2016 Felipe Leme <felipeal@google.com> Merge "Added test for whitelisting pending intent for Doze Mode." into nyc-dev am: 12a8e761d2
am: be0249dc08

* commit 'be0249dc08eb557b3d00f5bdfe440bbc41af6c8b':
Added test for whitelisting pending intent for Doze Mode.

Change-Id: I1f4539e33138c2c31c796fe18496126b405d9fdd
93332abf74712db48301fd3c3b3232d0f497f77b 28-May-2016 Felipe Leme <felipeal@google.com> Merge "Added test for whitelisting pending intent for Doze Mode." into nyc-dev
am: 12a8e761d2

* commit '12a8e761d2598672db4c4e221868985073f73ada':
Added test for whitelisting pending intent for Doze Mode.

Change-Id: Id56c18de63d9d1e617110506a3aaa0baffd73d16
12a8e761d2598672db4c4e221868985073f73ada 28-May-2016 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Added test for whitelisting pending intent for Doze Mode." into nyc-dev
3d8d4334b15d2ecd8efd2453ad725a66eb733da5 24-May-2016 Felipe Leme <felipeal@google.com> Added test for whitelisting pending intent for Doze Mode.

BUG: 28818704

Change-Id: I927364e78cd73133899d67be23e0b274829686af
et/app/AndroidManifest.xml
et/app/src/com/android/cts/net/hostside/AbstractDozeModeTestCase.java
et/app/src/com/android/cts/net/hostside/AbstractRestrictBackgroundNetworkTestCase.java
et/app/src/com/android/cts/net/hostside/MyNotificationListenerService.java
et/app2/AndroidManifest.xml
et/app2/res/drawable/ic_notification.png
et/app2/src/com/android/cts/net/hostside/app2/Common.java
et/app2/src/com/android/cts/net/hostside/app2/MyBroadcastReceiver.java
et/src/com/android/cts/net/HostsideRestrictBackgroundNetworkTests.java
7ff974eae9d135aaffd2f7d5fd023c707ea6542b 27-May-2016 Tony Mak <tonymak@google.com> Merge "Update CTS to use android:networkSecurityConfig" into nyc-dev am: ded3b93a59 am: 81ea258963
am: 8c03fd276d

* commit '8c03fd276d54d18bf13defd53c2e045ff6ef155b':
Update CTS to use android:networkSecurityConfig

Change-Id: I1805dc579e61a83c01ff8257a25b8fe496020319
330decbe8bfc62d278b15863ca3ce79520b9889d 27-May-2016 Ruchi Kandoi <kandoiruchi@google.com> Merge "sustained perf: Adds a CTS test for Sustained Performance Mode" into nyc-dev am: 45fe5c3339 am: 961af1d738
am: 8d8ddc8b69

* commit '8d8ddc8b69c2405f2f1da09d27e4df38fa2185b0':
sustained perf: Adds a CTS test for Sustained Performance Mode

Change-Id: I4362ca9a6857c90c0d561a77291f898fa2125bb8
81ea258963c22ca79bed164e24a6aa9b6b3cdf41 27-May-2016 Tony Mak <tonymak@google.com> Merge "Update CTS to use android:networkSecurityConfig" into nyc-dev
am: ded3b93a59

* commit 'ded3b93a5946a8976e00126d535af9028df5369d':
Update CTS to use android:networkSecurityConfig

Change-Id: I17c12b409a4adf052bdeaffcdf1771a85b25992f
961af1d7384d6281156b190e592dc7fc60e81686 27-May-2016 Ruchi Kandoi <kandoiruchi@google.com> Merge "sustained perf: Adds a CTS test for Sustained Performance Mode" into nyc-dev
am: 45fe5c3339

* commit '45fe5c3339a2dc498be36e308c81f6bc2bd5b692':
sustained perf: Adds a CTS test for Sustained Performance Mode

Change-Id: I6e82096dbc378f058ea2d52b2d73d990ae040cbe
ded3b93a5946a8976e00126d535af9028df5369d 27-May-2016 Tony Mak <tonymak@google.com> Merge "Update CTS to use android:networkSecurityConfig" into nyc-dev
45fe5c3339a2dc498be36e308c81f6bc2bd5b692 27-May-2016 Ruchi Kandoi <kandoiruchi@google.com> Merge "sustained perf: Adds a CTS test for Sustained Performance Mode" into nyc-dev
a9cb9879448f7925d04e2d46a0fa89b0510fdd58 27-May-2016 Ian Rogers <irogers@google.com> Merge "Fix to CtsHostsideNetworkTestsAidl Java library kind."
0e352bcd032a75753f90042f80a35dee1478037f 27-May-2016 Tony Mak <tonymak@google.com> Update CTS to use android:networkSecurityConfig

Fix: 28941320
Change-Id: I0efa2804400ee970b7fd1a4fc5eb02591700e0ba
evicepolicy/app/DeviceOwner/AndroidManifest.xml
5e8bafd0f57bf640295231fc8d69b9ab2a0fb061 27-May-2016 Robin Lee <rgl@google.com> Merge "Modify the VPN always-on test to account for blocking" into nyc-dev am: 18013e30b1 am: 4abba7909d
am: 6c202dd7db

* commit '6c202dd7db91381113c4bc207e5a3ed46df9c251':
Modify the VPN always-on test to account for blocking

Change-Id: I8a6601a50ffe86824807a630e9b91cf7f4abd4c5
6c202dd7db91381113c4bc207e5a3ed46df9c251 27-May-2016 Robin Lee <rgl@google.com> Merge "Modify the VPN always-on test to account for blocking" into nyc-dev am: 18013e30b1
am: 4abba7909d

* commit '4abba7909df33020e305062720f0923537416029':
Modify the VPN always-on test to account for blocking

Change-Id: I9a97bb35db8f7eb60216f5b2f2f3939f075c77cd
9fa650399d791750f63d633ea3da598d1e8b489d 27-May-2016 Robin Lee <rgl@google.com> Merge "Modify the VPN always-on test to account for blocking" into nyc-dev
am: 18013e30b1

* commit '18013e30b1051c89c3b0028960f7f31169e6a413':
Modify the VPN always-on test to account for blocking

Change-Id: I01a546c5e3543225638d28d072ec9fcf5ff32db3
18013e30b1051c89c3b0028960f7f31169e6a413 27-May-2016 Robin Lee <rgl@google.com> Merge "Modify the VPN always-on test to account for blocking" into nyc-dev
ad015ac64d0e510cc040a83b1d545e3a1405b1f7 26-May-2016 Ian Rogers <irogers@google.com> Fix to CtsHostsideNetworkTestsAidl Java library kind.

Fixes Error Prone build.
Bug: 27723540

Change-Id: I414b23e81258bd2a0da3fe5e4585e1dbd2085db5
et/aidl/Android.mk
2d50c1e67f476bef11b0b9f52e078c2d39924eed 26-May-2016 Philip P. Moltmann <moltmann@google.com> Merge "Make sure all activities are gone." into nyc-dev am: 11053d2370 am: 18a40a96c2
am: 4b422137ef

* commit '4b422137efd6d2c622e1ea913e0eb4f0bc605cb7':
Make sure all activities are gone.

Change-Id: Ie02412d6e0760cc1a1375d7f7e97a5d8633eb371
d26ea7e2806f6d3d7bd72471e76244614687f659 26-May-2016 Victor Chang <vichang@google.com> Merge "Fix CTS: MixedManagedProfileOwnerTest#testDelegatedCertInstaller failure" into nyc-dev am: 0d73fc7fe1 am: 1ea0a3ecf7
am: 39b84a27c6

* commit '39b84a27c6492b181fc9e3f3c5de17b689aae625':
Fix CTS: MixedManagedProfileOwnerTest#testDelegatedCertInstaller failure

Change-Id: I379fd6d1da93bcca424382ea848aa333868c93b5
4b422137efd6d2c622e1ea913e0eb4f0bc605cb7 26-May-2016 Philip P. Moltmann <moltmann@google.com> Merge "Make sure all activities are gone." into nyc-dev am: 11053d2370
am: 18a40a96c2

* commit '18a40a96c2111918bab7f89d1670c1bb284b462b':
Make sure all activities are gone.

Change-Id: If14c8a5f9efcabb3e7646c8bd0960f420ed628e0
39b84a27c6492b181fc9e3f3c5de17b689aae625 26-May-2016 Victor Chang <vichang@google.com> Merge "Fix CTS: MixedManagedProfileOwnerTest#testDelegatedCertInstaller failure" into nyc-dev am: 0d73fc7fe1
am: 1ea0a3ecf7

* commit '1ea0a3ecf7d703354018f55da4eaa5ca85ab7d99':
Fix CTS: MixedManagedProfileOwnerTest#testDelegatedCertInstaller failure

Change-Id: Ida04c0bc90e9347d37d73d0131cec539c91eb5ea
4195ff7fb5dc1238b6c1de0789b58490b3b86233 26-May-2016 Philip P. Moltmann <moltmann@google.com> Merge "Make sure all activities are gone." into nyc-dev
am: 11053d2370

* commit '11053d2370bfb031a1579d30130f6753f0bd3e9b':
Make sure all activities are gone.

Change-Id: I6206654c3498b13732d121051a70a0d89696f0e3
68f064825a79b4368e17cc40b33584f29915e01d 26-May-2016 Victor Chang <vichang@google.com> Merge "Fix CTS: MixedManagedProfileOwnerTest#testDelegatedCertInstaller failure" into nyc-dev
am: 0d73fc7fe1

* commit '0d73fc7fe1a3d292095c09ffbc415a535f58d087':
Fix CTS: MixedManagedProfileOwnerTest#testDelegatedCertInstaller failure

Change-Id: I6040dbfc3a198d93bc3002cde48b2c77d45c45e3
11053d2370bfb031a1579d30130f6753f0bd3e9b 26-May-2016 Philip P. Moltmann <moltmann@google.com> Merge "Make sure all activities are gone." into nyc-dev
0d73fc7fe1a3d292095c09ffbc415a535f58d087 26-May-2016 Victor Chang <vichang@google.com> Merge "Fix CTS: MixedManagedProfileOwnerTest#testDelegatedCertInstaller failure" into nyc-dev
78782c545d138b50035f4c92eb2233d514dcd7ac 26-May-2016 Robin Lee <rgl@google.com> Modify the VPN always-on test to account for blocking

The network will not return isConnected = true any more if we are not
actually allowed to use the network. Instead the status returned will
be DetailedState.BLOCKED

Bug: 28909500
Change-Id: I2eb040e458d9dbe74204dbcea556d729d4448a22
evicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/AlwaysOnVpnTest.java
c76fc3188768046693c504484fd08dea87c332e4 26-May-2016 Andrii Kulian <akulian@google.com> Merge "Wait for windows that are in WM but not in AM." into nyc-dev am: b70f43993a am: 159c72312d
am: 0517fdbb33

* commit '0517fdbb33bd05b1332aeb824bff72f8051e908e':
Wait for windows that are in WM but not in AM.

Change-Id: I4f3c3ce6b48bb35d8c2310694887ec7e456b0f47
0517fdbb33bd05b1332aeb824bff72f8051e908e 26-May-2016 Andrii Kulian <akulian@google.com> Merge "Wait for windows that are in WM but not in AM." into nyc-dev am: b70f43993a
am: 159c72312d

* commit '159c72312d1bb284045dacc28032993cf0b3989d':
Wait for windows that are in WM but not in AM.

Change-Id: I4d9a181b355de43dce95703eb3fbaa67837a19ab
6fa4e718efa80b4c14f57aa23f103be4d7b573e8 26-May-2016 Andrii Kulian <akulian@google.com> Merge "Wait for windows that are in WM but not in AM." into nyc-dev
am: b70f43993a

* commit 'b70f43993a5f1322b510a88b040dbb0341b20796':
Wait for windows that are in WM but not in AM.

Change-Id: I0a9480804c1edbd33dfb468e8a195c51ba3c027f
455fba986c21b206f48da6910a50113907d1882d 26-May-2016 Andrii Kulian <akulian@google.com> Wait for windows that are in WM but not in AM.

It is possible that between request of states from AM and
WM activity will show up, which will result in window reported
in WM state and no corresponding activity in AM state.

Bug: 28786255
Change-Id: I196e03b69f548a8862299a78d53cb70f247b2e76
ervices/activitymanager/src/android/server/cts/ActivityAndWindowManagersState.java
ervices/activitymanager/src/android/server/cts/ActivityManagerFreeformStackTests.java
ervices/activitymanager/src/android/server/cts/ActivityManagerState.java
9afe5af86bacfc33dd5f4998fc125780ae38cf30 26-May-2016 Andrii Kulian <akulian@google.com> Merge "Add adb command logging for host side CTS" into nyc-dev am: 727ed70efb am: 1b51eba984
am: 6304d8f942

* commit '6304d8f94278be9f76fe38d27a42c29090ad0fca':
Add adb command logging for host side CTS

Change-Id: I871c37d2072a00fd7c788b5b4572aba67fd7629f
ded3f9dc3d1e0dbdfba530106ab89c3cfb45ec72 26-May-2016 Andrii Kulian <akulian@google.com> Merge "Wait for all window transitions to finish in CTS" into nyc-dev am: 83361f3a71 am: b388b74b7f
am: f47813028d

* commit 'f47813028d8d1b48290c8278a23612800fecf36b':
Wait for all window transitions to finish in CTS

Change-Id: I518f7c2119d085d381120ca80b84aecce9873608
a518055383de1aebde75d866e70e73a85ed551cf 26-May-2016 Andrii Kulian <akulian@google.com> Merge "Fix waiting algorithm in CTS" into nyc-dev am: 8258e5baf0 am: 759ba27a34
am: bd9071dd61

* commit 'bd9071dd614920ba2f385dc2a40f4cc629e388f1':
Fix waiting algorithm in CTS

Change-Id: I7efbcef29643f33a510ef41e6e7e17b31d9a1f67
1b51eba9841a5a6a1fb2b027ce305ebbc62b65f4 26-May-2016 Andrii Kulian <akulian@google.com> Merge "Add adb command logging for host side CTS" into nyc-dev
am: 727ed70efb

* commit '727ed70efb9cf0da3dce40b2e6a536799557a717':
Add adb command logging for host side CTS

Change-Id: I34fe092a40aa75ed49bd9beae572feee8f602634
b388b74b7fe7318fcd2fa61c87104a742681cb1d 26-May-2016 Andrii Kulian <akulian@google.com> Merge "Wait for all window transitions to finish in CTS" into nyc-dev
am: 83361f3a71

* commit '83361f3a7195c329e3d3985f2ed3bbf11cec26f7':
Wait for all window transitions to finish in CTS

Change-Id: I6e4cc90510d42ec5b87fe33b526c422f7ae8845f
759ba27a349487229325baf65fdbffa196c25f64 26-May-2016 Andrii Kulian <akulian@google.com> Merge "Fix waiting algorithm in CTS" into nyc-dev
am: 8258e5baf0

* commit '8258e5baf0b491e3b232c303182241fdf298a35d':
Fix waiting algorithm in CTS

Change-Id: I41dc35e236331530c396fb7de480d757987f766f
727ed70efb9cf0da3dce40b2e6a536799557a717 26-May-2016 Andrii Kulian <akulian@google.com> Merge "Add adb command logging for host side CTS" into nyc-dev
83361f3a7195c329e3d3985f2ed3bbf11cec26f7 26-May-2016 Andrii Kulian <akulian@google.com> Merge "Wait for all window transitions to finish in CTS" into nyc-dev
8258e5baf0b491e3b232c303182241fdf298a35d 26-May-2016 Andrii Kulian <akulian@google.com> Merge "Fix waiting algorithm in CTS" into nyc-dev
ee50c38aa5a92aa3af5b1312372036291477e580 26-May-2016 Makoto Onuki <omakoto@google.com> Merge "Suppress DeviceAndProfileOwnerTest.testPermissionPrompts()" into nyc-dev am: 744ea43d33 am: 3e77960842
am: 09f4376bc4

* commit '09f4376bc4e0aac26fbf0ac8b4a519642f647143':
Suppress DeviceAndProfileOwnerTest.testPermissionPrompts()

Change-Id: I16ae1fde44ec0acf0d524f8dfec59172ab78d0b1
09f4376bc4e0aac26fbf0ac8b4a519642f647143 26-May-2016 Makoto Onuki <omakoto@google.com> Merge "Suppress DeviceAndProfileOwnerTest.testPermissionPrompts()" into nyc-dev am: 744ea43d33
am: 3e77960842

* commit '3e7796084253a51c79b301ac9f40f553adee1a3d':
Suppress DeviceAndProfileOwnerTest.testPermissionPrompts()

Change-Id: I311bb1cb80f16d1fd401ead40be17368c22d386c
f9d94db7676699fe7d2cd29c77c92d91a344a9e7 26-May-2016 Makoto Onuki <omakoto@google.com> Merge "Suppress DeviceAndProfileOwnerTest.testPermissionPrompts()" into nyc-dev
am: 744ea43d33

* commit '744ea43d3395e0d9374b8b9afc6bece5936047ae':
Suppress DeviceAndProfileOwnerTest.testPermissionPrompts()

Change-Id: I4f38d3217843c0edb7c12075f9dfdcd018903dd9
744ea43d3395e0d9374b8b9afc6bece5936047ae 26-May-2016 Makoto Onuki <omakoto@google.com> Merge "Suppress DeviceAndProfileOwnerTest.testPermissionPrompts()" into nyc-dev
a486c837e395ce5fe6b0301917c52b6ac65f730e 26-May-2016 Nicholas Sauer <nicksauer@google.com> Merge "Revert change to OsHostTests" into nyc-dev am: 1f0a95e689 am: f1453b56a4
am: 75289c6fe5

* commit '75289c6fe5fac10723615a0810694178c260017f':
Revert change to OsHostTests

Change-Id: Iebbd85daf9e1eaf95b8cb4f58c64508b9e6bae30
a243ba5b9452fc9254ec9d7a9361365b5f925f08 26-May-2016 Andrii Kulian <akulian@google.com> Add adb command logging for host side CTS

Bug: 28786255
Change-Id: I41774f8e1338915994d22358b57073634b4fbb5a
ervices/activitymanager/src/android/server/cts/ActivityManagerActivityVisiblityTests.java
ervices/activitymanager/src/android/server/cts/ActivityManagerDockedStackTests.java
ervices/activitymanager/src/android/server/cts/ActivityManagerPinnedStackTests.java
ervices/activitymanager/src/android/server/cts/ActivityManagerReplaceWindowTests.java
ervices/activitymanager/src/android/server/cts/ActivityManagerTestBase.java
75289c6fe5fac10723615a0810694178c260017f 26-May-2016 Nicholas Sauer <nicksauer@google.com> Merge "Revert change to OsHostTests" into nyc-dev am: 1f0a95e689
am: f1453b56a4

* commit 'f1453b56a48754d94834cc2d3e7bb7dffa8b6878':
Revert change to OsHostTests

Change-Id: Ibf783badc20b64f9e2ddc6a8b2047c1d4a02744a
51174dd2c2594d86cecdb5c79d641661ae4f70b3 26-May-2016 Nicholas Sauer <nicksauer@google.com> Merge "Revert change to OsHostTests" into nyc-dev
am: 1f0a95e689

* commit '1f0a95e68970ccba20c1ffb5fda60c1aae22820f':
Revert change to OsHostTests

Change-Id: I1139f203e2509d0aa613c93eba58d4e84ec29ac9
fb025b8a63b2511dffe3195ac3f4a46293bced9b 26-May-2016 Andrii Kulian <akulian@google.com> Wait for all window transitions to finish in CTS

In ActivityManagerActivityVisiblityTests#testVisibleBehindHomeActivity
on devices that doesn't support leanback we were not waiting long enough
for the VisibleBehindHomeActivity to go away.

Bug: 28786255
Change-Id: I9c2b292ee0cf98ec855ea0bd219b71c5518a3be6
ervices/activitymanager/src/android/server/cts/WindowManagerState.java
1f0a95e68970ccba20c1ffb5fda60c1aae22820f 26-May-2016 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Revert change to OsHostTests" into nyc-dev
84820c1d891a7440f3c47c819cbd783e336b91fb 27-Apr-2016 Ruchi Kandoi <kandoiruchi@google.com> sustained perf: Adds a CTS test for Sustained Performance Mode

The test runs a GPU intensive application and a CPU intensive excutable
for 30 mins with and without the mode and compares the results.

The results with the mode should be consistent and shouldn't vary more
than 5%.

For devices which do not support sustained performance mode, the test
will return immediately.

Bug: 27856676
Change-Id: I01e4224bc92fbab57a4078f58223a8aec81a4f37
Signed-off-by: Ruchi Kandoi <kandoiruchi@google.com>
Signed-off-by: Vangelis Kokkevis <vangelis@google.com>
ustainedperf/Android.mk
ustainedperf/AndroidTest.xml
ustainedperf/app/Android.mk
ustainedperf/app/AndroidManifest.xml
ustainedperf/app/src/android/test/app/DeviceTestActivity.java
ustainedperf/dhrystone/Android.mk
ustainedperf/dhrystone/Drystone-2.1.sh
ustainedperf/dhrystone/LICENSE.TXT
ustainedperf/dhrystone/Rationale
ustainedperf/dhrystone/dhry.h
ustainedperf/dhrystone/dhry_1.c
ustainedperf/dhrystone/dhry_2.c
ustainedperf/shadertoy_android/Android.mk
ustainedperf/shadertoy_android/AndroidManifest.xml
ustainedperf/shadertoy_android/jni/Android.mk
ustainedperf/shadertoy_android/jni/Application.mk
ustainedperf/shadertoy_android/jni/hooks_android.cpp
ustainedperf/shadertoy_android/jni/shaders.cpp
ustainedperf/shadertoy_android/jni/shadertoy_renderer.cpp
ustainedperf/shadertoy_android/jni/shadertoy_shader.cpp
ustainedperf/shadertoy_android/jni/shadertoy_shader.h
ustainedperf/shadertoy_android/jni/utils.cpp
ustainedperf/shadertoy_android/jni/utils.h
ustainedperf/shadertoy_android/res/values/strings.xml
ustainedperf/shadertoy_android/src/GLtestLib.java
ustainedperf/shadertoy_android/src/GLtestView.java
ustainedperf/shadertoy_android/src/GPUStressTestActivity.java
ustainedperf/src/android/SustainedPerformance/cts/SustainedPerformanceHostTest.java
5744997a46b7c66df7af9401f65f215e1d95e092 25-May-2016 Nicholas Sauer <nicksauer@google.com> Revert change to OsHostTests

wildcard.tld is the correct value to compare against.

See ag/1054888

Note: This causes testIntentFilterHostValidation to fail until
required changes to GmsCore are made.

bug: 28851367
Change-Id: I8c94fb3f09842a382e08c193d14563d01465e870
s/src/android/os/cts/OsHostTests.java
0caafaa6b20cfed2a2f8d199d01e42c03d7aa091 25-May-2016 Ruchi Kandoi <kandoiruchi@google.com> Merge "Revert "sustained perf: Adds a CTS test for Sustained Performance Mode"" into nyc-dev am: 8127c7f643 am: 2189ccfd4f
am: 4a043f2f5a

* commit '4a043f2f5a556a704e56f16e435fa9102930aad5':
Revert "sustained perf: Adds a CTS test for Sustained Performance Mode"

Change-Id: I3fc84deba8016731fb4e182c1b49519aa6d3eeca
e063657f2dab4dce1d6aff5293fd167715a72b36 25-May-2016 Victor Chang <vichang@google.com> Fix CTS: MixedManagedProfileOwnerTest#testDelegatedCertInstaller failure

Cause: isKeyguardSecure api change KeyguardManager.isSecure()
to observe work profile in ag/1026084 (b/28666104). Only when
managed profile has password and work challenge,
KeyguardManager.isSecure() returns true.

Convert the activity into receiver as activity can't bypass
work challenge even using showForAllUser flag, b/28935539

BUG: 28888625
Change-Id: I3d995be3452a1339116022477d6c8f2d32dc30a1
evicepolicy/app/CertInstaller/AndroidManifest.xml
evicepolicy/app/CertInstaller/src/com/android/cts/certinstaller/CertInstallerActivity.java
evicepolicy/app/CertInstaller/src/com/android/cts/certinstaller/CertInstallerReceiver.java
evicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/DelegatedCertInstallerTest.java
evicepolicy/src/com/android/cts/devicepolicy/DeviceAndProfileOwnerTest.java
evicepolicy/src/com/android/cts/devicepolicy/MixedManagedProfileOwnerTest.java
2189ccfd4f1188e2715b5ee18d451d199e3999fd 25-May-2016 Ruchi Kandoi <kandoiruchi@google.com> Merge "Revert "sustained perf: Adds a CTS test for Sustained Performance Mode"" into nyc-dev
am: 8127c7f643

* commit '8127c7f64306c024b70131cf57b6e96746e89c5d':
Revert "sustained perf: Adds a CTS test for Sustained Performance Mode"

Change-Id: Ib133305a81f1f5a615b6e73b8fd8ee2b549f7573
8127c7f64306c024b70131cf57b6e96746e89c5d 25-May-2016 Ruchi Kandoi <kandoiruchi@google.com> Merge "Revert "sustained perf: Adds a CTS test for Sustained Performance Mode"" into nyc-dev
06999f2521c0b5d39ab919319e9c84989a9e1d6a 25-May-2016 Philip P. Moltmann <moltmann@google.com> Make sure all activities are gone.

Otherwise we might not get a window-state-changed event which times out
the test.

Before the test failed ~50% of the time. Afterwards I ran 12 runs
without any issues.

Fixes: 28867635
Change-Id: Ic8e1687382e476ee3332b6669cd99c3039843d2e
ppsecurity/test-apps/UsePermissionApp23/src/com/android/cts/usepermission/BasePermissionsTest.java
2349d88103b1f0b8dc515dd3dc0b981226215336 25-May-2016 Makoto Onuki <omakoto@google.com> Suppress DeviceAndProfileOwnerTest.testPermissionPrompts()

Bug 28909500

Change-Id: Ib50ee2053a3617d1ff8158173c408864cfbf4c9b
evicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/PermissionsTest.java
evicepolicy/src/com/android/cts/devicepolicy/DeviceAndProfileOwnerTest.java
a38203be4426aed9f4f52d4a34b077337e337fd7 25-May-2016 Felipe Leme <felipeal@google.com> Merge "Use ConnectionManager API to check if network is metered." into nyc-dev am: 8043cb1bce am: b49b3aee3f
am: 12965af3d3

* commit '12965af3d33b399ccf73244719af81ecf4d8504e':
Use ConnectionManager API to check if network is metered.

Change-Id: Idf9feb8d8719479c48f3c3c31fc0db489798e6e6
038eee470bcc0c2629adb183b332c923ce739c14 25-May-2016 Philip P. Moltmann <moltmann@google.com> Merge changes I56c1197a,I111f4110 into nyc-dev am: 76bf35405b am: 8f38de4c42
am: c3fccc8088

* commit 'c3fccc8088e3f3e282bdb82c73ce3f4daa3efa77':
Ignore NPE's while searching for A11yNodeInfo.
Apply trivial fixes to Permissions CTS tests.

Change-Id: I0d96dd245697ec39d80a6ec369c4a2b2e2e41551
b49b3aee3f31e753317c12d4544cca9d03c2559e 25-May-2016 Felipe Leme <felipeal@google.com> Merge "Use ConnectionManager API to check if network is metered." into nyc-dev
am: 8043cb1bce

* commit '8043cb1bcee598e89bac3ee1e1f3953b269bf8d0':
Use ConnectionManager API to check if network is metered.

Change-Id: I5f092fcc9b2220af3c033d84271c29e641027e4e
c3fccc8088e3f3e282bdb82c73ce3f4daa3efa77 25-May-2016 Philip P. Moltmann <moltmann@google.com> Merge changes I56c1197a,I111f4110 into nyc-dev am: 76bf35405b
am: 8f38de4c42

* commit '8f38de4c426e5eb25668b377d1effc16d447c6f9':
Ignore NPE's while searching for A11yNodeInfo.
Apply trivial fixes to Permissions CTS tests.

Change-Id: I992d847645aa9d003d9c24b66dc52dd9e4ee0fe1
ab1259432ea051cdc5a75ef1be2f6870b9aa45c8 25-May-2016 Philip P. Moltmann <moltmann@google.com> Merge changes I56c1197a,I111f4110 into nyc-dev
am: 76bf35405b

* commit '76bf35405b282f9909b2f3be5007f50aaa461cd8':
Ignore NPE's while searching for A11yNodeInfo.
Apply trivial fixes to Permissions CTS tests.

Change-Id: Ifd5cc8ab8878bf202d2c38c1330fff48170421df
1d9207f4426374749088757954df80562efbb254 25-May-2016 Ruchi Kandoi <kandoiruchi@google.com> Revert "sustained perf: Adds a CTS test for Sustained Performance Mode"

This reverts commit 24e4936458d92528733f6692df9233e74e254e0c.

Change-Id: If64d14ba178548e56977d3c94177178ec7f395a7
ustainedperf/Android.mk
ustainedperf/AndroidTest.xml
ustainedperf/app/Android.mk
ustainedperf/app/AndroidManifest.xml
ustainedperf/app/src/android/test/app/DeviceTestActivity.java
ustainedperf/dhrystone/Android.mk
ustainedperf/dhrystone/Drystone-2.1.sh
ustainedperf/dhrystone/LICENSE.TXT
ustainedperf/dhrystone/Rationale
ustainedperf/dhrystone/dhry.h
ustainedperf/dhrystone/dhry_1.c
ustainedperf/dhrystone/dhry_2.c
ustainedperf/shadertoy_android/Android.mk
ustainedperf/shadertoy_android/AndroidManifest.xml
ustainedperf/shadertoy_android/jni/Android.mk
ustainedperf/shadertoy_android/jni/Application.mk
ustainedperf/shadertoy_android/jni/hooks_android.cpp
ustainedperf/shadertoy_android/jni/shaders.cpp
ustainedperf/shadertoy_android/jni/shadertoy_renderer.cpp
ustainedperf/shadertoy_android/jni/shadertoy_shader.cpp
ustainedperf/shadertoy_android/jni/shadertoy_shader.h
ustainedperf/shadertoy_android/jni/utils.cpp
ustainedperf/shadertoy_android/jni/utils.h
ustainedperf/shadertoy_android/res/values/strings.xml
ustainedperf/shadertoy_android/src/GLtestLib.java
ustainedperf/shadertoy_android/src/GLtestView.java
ustainedperf/shadertoy_android/src/GPUStressTestActivity.java
ustainedperf/src/android/SustainedPerformance/cts/SustainedPerformanceHostTest.java
8043cb1bcee598e89bac3ee1e1f3953b269bf8d0 25-May-2016 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Use ConnectionManager API to check if network is metered." into nyc-dev
76bf35405b282f9909b2f3be5007f50aaa461cd8 25-May-2016 Philip P. Moltmann <moltmann@google.com> Merge changes I56c1197a,I111f4110 into nyc-dev

* changes:
Ignore NPE's while searching for A11yNodeInfo.
Apply trivial fixes to Permissions CTS tests.
bbe502237320d07deb5ce94fc171facb23fa2ca9 25-May-2016 Tobias Thierer <tobiast@google.com> Merge "Skip (let it pass) rather than fail CompilationTest on \'user\' builds." into nyc-dev am: 3918195666 am: 260a3f93c0
am: f844249516

* commit 'f8442495164d960a0d4aed8f20552546cf06093a':
Skip (let it pass) rather than fail CompilationTest on 'user' builds.

Change-Id: Iac26fbbef7a6bafb35cdc8317c6f09c77b037226
260a3f93c0cd1d8e125102a856521252ed7fc69b 25-May-2016 Tobias Thierer <tobiast@google.com> Merge "Skip (let it pass) rather than fail CompilationTest on \'user\' builds." into nyc-dev
am: 3918195666

* commit '39181956664b201d22dc935c9c2c4c57db9233cf':
Skip (let it pass) rather than fail CompilationTest on 'user' builds.

Change-Id: Ie8b020d595cab5eb6f3533fd7e79142f7a6243c1
ed4ebd66e3e863c9083cd50011be81a5dc804a1b 24-May-2016 Jiabin <jiabin@google.com> TIF: Improve the reliability of the TvInputManagerHostTest.

Sometimes the we can't get the log from onInputUpdated because of timing
issue, that will cause the test failed. Adding a thread sleep to wait for
the log to improve the reliability of the test.

Bug: 28857014
Change-Id: Ic4064f48431ad1a6cd60ad095d9f26b2cef60b44
v/src/com/android/cts/tv/TvInputManagerHostTest.java
19d896a95579132cbc1249a562ddaa61b2a5a5ff 25-May-2016 Philip P. Moltmann <moltmann@google.com> Ignore NPE's while searching for A11yNodeInfo.

It might take some time until the view appears. Before that happens we
might get a NPE.

Fixes: 28867635
Change-Id: I56c1197a7798ea27986d3b3f2ca7e2487df3ee45
ppsecurity/test-apps/UsePermissionApp23/src/com/android/cts/usepermission/BasePermissionsTest.java
678de8812116d04bf32531ac401e4fc5e44e58c9 25-May-2016 Philip P. Moltmann <moltmann@google.com> Apply trivial fixes to Permissions CTS tests.

- Make test functions executable by test runner by adding @Test
- Correct name of packages and test functions
- Add missing functions
- Remove duplicate permissions in list of permissions

Bug: 28867635
Change-Id: I111f41101a7a3c6dad6f47968340e0d0bd7b1176
ppsecurity/src/android/appsecurity/cts/PermissionsHostTest.java
ppsecurity/test-apps/UsePermissionApp22/src/com/android/cts/usepermission/UsePermissionTest22.java
ppsecurity/test-apps/UsePermissionApp23/src/com/android/cts/usepermission/UsePermissionTest23.java
e61e8812d89d1c311da94faee92417ee46c04cc8 24-May-2016 Tobias Thierer <tobiast@google.com> Skip (let it pass) rather than fail CompilationTest on 'user' builds.

CTS tests must pass on 'user' builds, but CompilationTest relies on
'adb root'. There is currently no way to test this without root.
I considered moving the test out of CTS, however there are currently
no usages of the ITestDevice tradefed API in tests outside of CTS.
Therefore, for now I'm just making the test exit early on unrooted
device.

Acquiring root is still a little dodgy, but at least we're now
reverting to the pre-test state afterwards. We're now also
unlinking the temporary apk file in tearDown().

Tested on both user and userdebug builds:
make cts && cts-tradefed run cts -m CtsCompilationTestCases

Bug: 27464570
Change-Id: Id4604d4427c7cf1cab31d27b91a5fe49173cad1b
ompilation/src/android/cts/compilation/AdbRootDependentCompilationTest.java
ompilation/src/android/cts/compilation/CompilationTest.java
3a1ba366cf0e7a3049bb0f5ed53a7051208bc2ce 24-May-2016 Lorenzo Colitti <lorenzo@google.com> Merge "Add a test for closing sockets when a VPN comes up." into nyc-dev am: bf19348cb7 am: 3cb83a57e7
am: 79012773ab

* commit '79012773abd429774622c321b97e7f3db8c8ba23':
Add a test for closing sockets when a VPN comes up.

Change-Id: I80815193da4fc063baf3a36b86607ff7f303d168
79012773abd429774622c321b97e7f3db8c8ba23 24-May-2016 Lorenzo Colitti <lorenzo@google.com> Merge "Add a test for closing sockets when a VPN comes up." into nyc-dev am: bf19348cb7
am: 3cb83a57e7

* commit '3cb83a57e728c35058ff030b8521ac299b3e3996':
Add a test for closing sockets when a VPN comes up.

Change-Id: Ic2bcf6036f861ba6fa2a4f42f2109eb0ce26385a
0230c53404a371ab71f6fbedf4ad3862bddf6f00 24-May-2016 Lorenzo Colitti <lorenzo@google.com> Merge "Add a test for closing sockets when a VPN comes up." into nyc-dev
am: bf19348cb7

* commit 'bf19348cb7b9c69216df689ca343e71dd2b4a0a2':
Add a test for closing sockets when a VPN comes up.

Change-Id: I0b23a38566afd96448a202d7a3b258d1960a53a3
bf19348cb7b9c69216df689ca343e71dd2b4a0a2 24-May-2016 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Add a test for closing sockets when a VPN comes up." into nyc-dev
193efa2767d5eff0a4e79581cfba325fd9cef454 24-May-2016 Selim Gurun <sgurun@google.com> Merge "Verify that installation of a large apk succeeds"
e7114fdc88400aad8480d376a6d95bc1924cd1fc 20-May-2016 Selim Gurun <sgurun@google.com> Verify that installation of a large apk succeeds

Bug: 28808317

Change-Id: Iad7329bed8bcdf0c3a05da389060edff11e4ef9d
argeapk/Android.mk
argeapk/AndroidTest.xml
argeapk/app/Android.mk
argeapk/app/AndroidManifest.xml
argeapk/app/res/raw/zerofile.png
argeapk/app/src/android/largeapk/app/LargeApkActivity.java
argeapk/src/android/largeapk/cts/LargeApkTest.java
5956cc71efb1eb36ea1a89505e0eab795b1a5181 23-May-2016 Nicholas Sauer <nicksauer@google.com> Merge "Fix DumpsysHostTest#testProcstatsOutput" into nyc-dev am: e188ebbbc7 am: 63476dbd2b
am: 7832748605

* commit '783274860567042b32f12365b96913336b7a765d':
Fix DumpsysHostTest#testProcstatsOutput

Change-Id: I6cdbd09037f8c578b27faabc190f70a6706a1433
63476dbd2ba3b475e3de3f3fe63e4d3e4b73a024 23-May-2016 Nicholas Sauer <nicksauer@google.com> Merge "Fix DumpsysHostTest#testProcstatsOutput" into nyc-dev
am: e188ebbbc7

* commit 'e188ebbbc7a6cb588b41f15b59d63c5336f773cf':
Fix DumpsysHostTest#testProcstatsOutput

Change-Id: I305bf81e0b70bf23e3d7f5f72e52badbaf5ce9c1
e188ebbbc7a6cb588b41f15b59d63c5336f773cf 23-May-2016 Nicholas Sauer <nicksauer@google.com> Merge "Fix DumpsysHostTest#testProcstatsOutput" into nyc-dev
6a01f329daccb374e74f0a8f05eefac2844a76cc 20-May-2016 Felipe Leme <felipeal@google.com> Use ConnectionManager API to check if network is metered.

Also retry when getActiveNetworkInfo() returns null.

BUG: 28870582
BUG: 28909522
Change-Id: I4a43f171a7d6c73ea50555b66f858a54da65ae58
et/app/src/com/android/cts/net/hostside/AbstractRestrictBackgroundNetworkTestCase.java
799a0b3f2434d1f89273d7df725921550a06b8fb 23-May-2016 Nicholas Sauer <nicksauer@google.com> Fix DumpsysHostTest#testProcstatsOutput

Accommodate the inclusion of swapped-out-pss added in ag/1029162

bug: 28888039
Change-Id: I474b1671d9614f469bf64ad4fa2073b8d1cccec1
umpsys/src/android/dumpsys/cts/DumpsysHostTest.java
e643c7598fd92c73a3e8fd9691350fead46bb4ae 23-May-2016 Tobias Thierer <tobiast@google.com> Fix CtsCompilationTestCases by bundling an updated profile and APK. am: da76726807 am: a874c35dc3
am: fffc6d192d

* commit 'fffc6d192d1c8f3ea52bce589f50a4cf342cc0c7':
Fix CtsCompilationTestCases by bundling an updated profile and APK.

Change-Id: I125d2a0194ed299191dacc1739843d59dc281fb5
a874c35dc33c17d4bcaa94e472d3196cc2330137 23-May-2016 Tobias Thierer <tobiast@google.com> Fix CtsCompilationTestCases by bundling an updated profile and APK.
am: da76726807

* commit 'da767268072ce22e6df75db6e694033434d5b5a7':
Fix CtsCompilationTestCases by bundling an updated profile and APK.

Change-Id: If217c42885e1ba72bfa81e41fbd3c95e3bef2820
da767268072ce22e6df75db6e694033434d5b5a7 20-May-2016 Tobias Thierer <tobiast@google.com> Fix CtsCompilationTestCases by bundling an updated profile and APK.

The profile becomes invalid if the dex changes. Previously we only
bundled the profile but this broke the test when the compiler (jack)
changed.

Tested:
make cts && cts-tradefed run cts -m CtsCompilationTestCases

Bug: 27217443
Change-Id: I400330ed7152b43005c6339641138783d692078e
ompilation/AndroidTest.xml
ompilation/app/AndroidManifest.xml
ompilation/app/src/android/cts/compilation/CompilationTargetActivity.java
ompilation/assets/CtsCompilationApp.apk
ompilation/assets/README.txt
ompilation/assets/primary.prof
ompilation/src/android/cts/compilation/CompilationTest.java
5132ea912b9704086b2fea3fe3b1ebfd7bfa4771 21-May-2016 Andrii Kulian <akulian@google.com> Fix waiting algorithm in CTS

Fixed stack bounds comparison in AM and WM and other issues
hidden by prolonged waiting.

Bug: 28786255
Change-Id: I7887e3a2bc425c57478cad9575d76195c94f65eb
ervices/activitymanager/src/android/server/cts/ActivityAndWindowManagersState.java
ervices/activitymanager/src/android/server/cts/ActivityManagerPinnedStackTests.java
ervices/activitymanager/src/android/server/cts/ActivityManagerState.java
ervices/activitymanager/src/android/server/cts/WindowManagerState.java
1c035a65f43ba93b3d797c644c094597dc5e9f66 20-May-2016 Ruchi Kandoi <kandoiruchi@google.com> Merge "sustained perf: Adds a CTS test for Sustained Performance Mode" into nyc-dev am: 231ad4330a am: 2f1fe42a2d
am: 7197703568

* commit '71977035685f148571cd257d225da39ed8870308':
sustained perf: Adds a CTS test for Sustained Performance Mode

Change-Id: I2cfda07dae02bf46e7bcf26b02f20c5edcd7dc51
2f1fe42a2d0be6f9c22c273f6fbe12f0208016ad 20-May-2016 Ruchi Kandoi <kandoiruchi@google.com> Merge "sustained perf: Adds a CTS test for Sustained Performance Mode" into nyc-dev
am: 231ad4330a

* commit '231ad4330ad3ff52eb90caf638ba963298576659':
sustained perf: Adds a CTS test for Sustained Performance Mode

Change-Id: Ic11011711c8a2dd4a707dd3e5bd5e7571ba140bb
231ad4330ad3ff52eb90caf638ba963298576659 20-May-2016 Ruchi Kandoi <kandoiruchi@google.com> Merge "sustained perf: Adds a CTS test for Sustained Performance Mode" into nyc-dev
ef1e237bbd0a1fa4ec75bfc215007bda7d110569 20-May-2016 Andrii Kulian <akulian@google.com> Merge "Fix focused stack regexp pattern in CTS" into nyc-dev am: c8276c0c4f am: ca797424de
am: 34bbb0ed4f

* commit '34bbb0ed4fc00160afb2552423d66601d22dc224':
Fix focused stack regexp pattern in CTS

Change-Id: Iccf9f72bcae12a491bc3685d85ee95e1d3e7996b
ca797424de54dbafb997d9f178626555e8c095a3 20-May-2016 Andrii Kulian <akulian@google.com> Merge "Fix focused stack regexp pattern in CTS" into nyc-dev
am: c8276c0c4f

* commit 'c8276c0c4f0c7c0e9cbe0595d5a9c1aa3e58f9f6':
Fix focused stack regexp pattern in CTS

Change-Id: Iead5ed07474bef3b65bc6da1ee416311f07b337e
21b78a254f61ecd55d3c44421c60dcb2234dc0a9 20-May-2016 Andrii Kulian <akulian@google.com> Fix focused stack regexp pattern in CTS

The current pattern catches mLastFocusedStack id instead of
mFocusedStack id.

Bug: 28786255
Change-Id: Id2ddaa83c606cccbc910e138bbee9f4e85f0e6af
ervices/activitymanager/src/android/server/cts/ActivityManagerState.java
eb28e7b7d1735e5a5dd6d76d692c04aea8bd0cd8 19-May-2016 Nicholas Sauer <nicksauer@google.com> Merge "Fix testIntentFilterHostValidation" into nyc-dev am: 3d0f771d61 am: 41680f03ad
am: 3979c50d71

* commit '3979c50d71ae8a075811b97f3b5ff8b7f42cdb7e':
Fix testIntentFilterHostValidation

Change-Id: I53369f353abbd8302c131d517e6f34cddcbcebb8
3979c50d71ae8a075811b97f3b5ff8b7f42cdb7e 19-May-2016 Nicholas Sauer <nicksauer@google.com> Merge "Fix testIntentFilterHostValidation" into nyc-dev am: 3d0f771d61
am: 41680f03ad

* commit '41680f03ad8a53ede9a9fb9a8b9e602c9cf561bd':
Fix testIntentFilterHostValidation

Change-Id: I122aa7157d0a6ff9db54bcd388388d96850bc991
a903ac1ad1e6af15d2d0acfaa5843a8078aa371d 19-May-2016 Nicholas Sauer <nicksauer@google.com> Merge "Fix testIntentFilterHostValidation" into nyc-dev
am: 3d0f771d61

* commit '3d0f771d61e450b06be1a480db754eef65d7a7e3':
Fix testIntentFilterHostValidation

Change-Id: Iba80e1619cea072b5658d13abd0dea6c67f102ec
3d0f771d61e450b06be1a480db754eef65d7a7e3 19-May-2016 Nicholas Sauer <nicksauer@google.com> Merge "Fix testIntentFilterHostValidation" into nyc-dev
a5677a4d7c26678d291638c2aaeef90de66673bc 19-May-2016 Nicholas Sauer <nicksauer@google.com> Fix testIntentFilterHostValidation

bug: 28851367
Change-Id: Ic6dd0182d03e65d61694fdefebf03ec17f631b06
s/src/android/os/cts/OsHostTests.java
5437393a9f13dc366950197471e419e70cace498 19-May-2016 Andrii Kulian <akulian@google.com> Merge "Rename minWidth/Height attributes" into nyc-dev am: a926ec80cc am: 34da2935a8
am: 268597dd66

* commit '268597dd66913d3b9fa7d110b03603b7addbfb8a':
Rename minWidth/Height attributes

Change-Id: Icb8a3beefaa5351d0cc231cb008fdaed2b9b18b2
34da2935a8f2f516510731669fd6ed8fef5c84cc 19-May-2016 Andrii Kulian <akulian@google.com> Merge "Rename minWidth/Height attributes" into nyc-dev
am: a926ec80cc

* commit 'a926ec80cc303ff7fbe8b8c401f0a4bfa8f74029':
Rename minWidth/Height attributes

Change-Id: I3869e53e17c3957aa9b449f92b1f765596c2bf0d
a926ec80cc303ff7fbe8b8c401f0a4bfa8f74029 19-May-2016 Andrii Kulian <akulian@google.com> Merge "Rename minWidth/Height attributes" into nyc-dev
bd5bdd7955540070f4e205969f9ba76d74d3ec9b 19-May-2016 Svet Ganov <svetoslavganov@google.com> Merge "Make permissions tests more robust" into nyc-dev am: cf21c91b12 am: c012ac2fa1
am: fc8d3b81b8

* commit 'fc8d3b81b81882fb5cb5514ee34db6ebe249e842':
Make permissions tests more robust

Change-Id: I613af392a4169c2dfcd12e33aae8c2d23de37883
c012ac2fa1e57edfbb16063b7d3ffd13aba77eed 19-May-2016 Svet Ganov <svetoslavganov@google.com> Merge "Make permissions tests more robust" into nyc-dev
am: cf21c91b12

* commit 'cf21c91b121a7c29eeb928c1a90b3e68c98c6b27':
Make permissions tests more robust

Change-Id: I3ca35277e6c7147f6e7cf8fedf353d7c752852a8
cf21c91b121a7c29eeb928c1a90b3e68c98c6b27 19-May-2016 Svetoslav Ganov <svetoslavganov@google.com> Merge "Make permissions tests more robust" into nyc-dev
efdfafa92ace68a31512a060fb7c16a4c6d23b4d 18-May-2016 Tobias Thierer <tobiast@google.com> Merge "CompilationTest + corresponding app to (integration) test dex2oat compilation." into nyc-dev am: 8c0e7f50a6 am: 6d4e3de064
am: 180a4851e9

* commit '180a4851e9693a4b94e0024d50b4d28a69f22798':
CompilationTest + corresponding app to (integration) test dex2oat compilation.

Change-Id: I6359f2b61530b9ddce1b9b472145e729930e6ce9
180a4851e9693a4b94e0024d50b4d28a69f22798 18-May-2016 Tobias Thierer <tobiast@google.com> Merge "CompilationTest + corresponding app to (integration) test dex2oat compilation." into nyc-dev am: 8c0e7f50a6
am: 6d4e3de064

* commit '6d4e3de064d32da5fe73acdd3ad800f19fd3d646':
CompilationTest + corresponding app to (integration) test dex2oat compilation.

Change-Id: I950141a2a0684cd0cc829a46c810a8e9bbde3653
0007c50bce8a42e1b7d4e391bf44724237fbda88 18-May-2016 Tobias Thierer <tobiast@google.com> Merge "CompilationTest + corresponding app to (integration) test dex2oat compilation." into nyc-dev
am: 8c0e7f50a6

* commit '8c0e7f50a659b8eeeb62243495928043b7054534':
CompilationTest + corresponding app to (integration) test dex2oat compilation.

Change-Id: I9868c1772c159cb49891d5f7a2a6c0e021e4e69c
8c0e7f50a659b8eeeb62243495928043b7054534 18-May-2016 Tobias Thierer <tobiast@google.com> Merge "CompilationTest + corresponding app to (integration) test dex2oat compilation." into nyc-dev
2257f7191fc1e23b6a7c2cfb12052bbbf0f25c84 18-May-2016 Svet Ganov <svetoslavganov@google.com> Make permissions tests more robust

The tests are now looking for the permisison to toggle by
scrolling the list in both directions as in landscape only
few permissions are shown at a time.

bug:28770688

Change-Id: Ieea8807f8609a4dcc328efb2b34f3e3344722a87
ppsecurity/test-apps/UsePermissionApp23/src/com/android/cts/usepermission/BasePermissionsTest.java
6c862629b94d0179cfe35d1d5ef62bf547cb0e43 18-May-2016 Grigory Dzhavadyan <grigoryj@google.com> Merge "Fix \'Run-As\' CTS test in N" into nyc-dev am: 8240ce44bc am: e49f474f95
am: df0042e53b

* commit 'df0042e53b4d9b83a3556dd95087bb39f3221c06':
Fix 'Run-As' CTS test in N

Change-Id: I093e80a7e82b91e65946546c8e4946dbab626efd
e49f474f95fbbbe31674880119093ef262e55d39 18-May-2016 Grigory Dzhavadyan <grigoryj@google.com> Merge "Fix \'Run-As\' CTS test in N" into nyc-dev
am: 8240ce44bc

* commit '8240ce44bcd2a4a948e8cf73439e95cb83fb4e05':
Fix 'Run-As' CTS test in N

Change-Id: Ieebb5c1809f349f9f2e604b714411e52d166643f
8240ce44bcd2a4a948e8cf73439e95cb83fb4e05 18-May-2016 Grigory Dzhavadyan <grigoryj@google.com> Merge "Fix 'Run-As' CTS test in N" into nyc-dev
27cdbbc9b111e4c5efa4dad32b97df920b470c44 18-May-2016 Felipe Leme <felipeal@google.com> Merge "Added tests for idle apps and doze mode." into nyc-dev am: 0566a9a4bc am: ee32b82217
am: af5c6429e5

* commit 'af5c6429e555c42c464b8b477f0cc6ba7a1e30fa':
Added tests for idle apps and doze mode.

Change-Id: I25e6e1db3929884b4324af7a45bb1ac8bee43454
1fde261e6f045004a495e0a66c6b65d41af8ee55 18-May-2016 Grigory Dzhavadyan <grigoryj@google.com> Fix 'Run-As' CTS test in N

Change-Id: Ie28d3353ae5f844a7fae3b29522b2c548c89ce4c
pptools/src/com/android/cts/cpptools/RunAsHostTest.java
af5c6429e555c42c464b8b477f0cc6ba7a1e30fa 18-May-2016 Felipe Leme <felipeal@google.com> Merge "Added tests for idle apps and doze mode." into nyc-dev am: 0566a9a4bc
am: ee32b82217

* commit 'ee32b82217a1e4e7cbd01eb68333c7aa1e4b8102':
Added tests for idle apps and doze mode.

Change-Id: Id4f876b2abaff405af3c32375807f7d1771c047e
46bc46c5e8261a85fdea2e80a641e4da45b7dc62 18-May-2016 Felipe Leme <felipeal@google.com> Merge "Added tests for idle apps and doze mode." into nyc-dev
am: 0566a9a4bc

* commit '0566a9a4bca8f24735a7252598187f1c42fb1edf':
Added tests for idle apps and doze mode.

Change-Id: I9acd82ca0cb163ea12281418e23dfea0f5cb32ac
0566a9a4bca8f24735a7252598187f1c42fb1edf 18-May-2016 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Added tests for idle apps and doze mode." into nyc-dev
3ce49bab845e7429aee05c23e5be7c6a71b20bcc 17-May-2016 Andrii Kulian <akulian@google.com> Rename minWidth/Height attributes

Rename WindowLayout#minimalWidth and #minimalHeight to #minWidth
and #minHeight to be consistent with other APIs.

Bug: 28775586
Change-Id: I0548eb1008f48270aa1376ab5f75939294c2e5c6
ervices/activitymanager/app/AndroidManifest.xml
ervices/activitymanager/src/android/server/cts/ActivityAndWindowManagersState.java
ervices/activitymanager/src/android/server/cts/ActivityManagerManifestLayoutTests.java
ervices/activitymanager/src/android/server/cts/ActivityManagerState.java
75c229de5c63dedce37eb6bbcfe8a1e539a1df3b 17-May-2016 Amith Yamasani <yamasani@google.com> Merge "CTS tests to allow updated system apps to be disabled" into nyc-dev am: 7acb164034 am: dc4e8a41a1
am: 9a492a168e

* commit '9a492a168e63f302b8af481321c7247f0f0ae969':
CTS tests to allow updated system apps to be disabled

Change-Id: I58e1ab1822d7dabaeabc30cf8375a6976a566652
9a492a168e63f302b8af481321c7247f0f0ae969 17-May-2016 Amith Yamasani <yamasani@google.com> Merge "CTS tests to allow updated system apps to be disabled" into nyc-dev am: 7acb164034
am: dc4e8a41a1

* commit 'dc4e8a41a1679d50c78001cd7b6f701b48b99ae2':
CTS tests to allow updated system apps to be disabled

Change-Id: I6e0b3e9155fa84d5af4ae60bf323b0bb04753bf6
a48570d6f3bbbf1ef0aba295aae8923169b30169 17-May-2016 Amith Yamasani <yamasani@google.com> Merge "CTS tests to allow updated system apps to be disabled" into nyc-dev
am: 7acb164034

* commit '7acb1640340fa57f888b8fcabf76d6eb395d2d00':
CTS tests to allow updated system apps to be disabled

Change-Id: I1f882091e6b9705088a9e3b17c865f3f3c41a994
02176bc1ea01d0e65f0eec3458544030d00bd6b5 13-May-2016 Amith Yamasani <yamasani@google.com> CTS tests to allow updated system apps to be disabled

This change also fixes a priv-app upgrade CTS test
that wasn't properly running due to a package name typo.

Bug: 27924655
Change-Id: I1e4b9d3065d92e0b7e8bc0754cea1af2432df7f1
ppsecurity/src/android/appsecurity/cts/PrivilegedUpdateTests.java
ppsecurity/src/android/appsecurity/cts/Utils.java
ppsecurity/test-apps/PrivilegedUpdateApp/src/com/android/cts/privilegedupdate/PrivilegedAppDisableTest.java
ppsecurity/test-apps/PrivilegedUpdateApp/src/com/android/cts/privilegedupdate/PrivilegedUpdateTest.java
bb988415005e7b643d3b39d4b258697a45f40f48 15-Apr-2016 Lorenzo Colitti <lorenzo@google.com> Add a test for closing sockets when a VPN comes up.

Bug: 28251576
Change-Id: Iab0a8643cff3c54eb04168a7cdfa116c0b8e30b1
et/aidl/Android.mk
et/aidl/com/android/cts/net/hostside/IRemoteSocketFactory.aidl
et/app/Android.mk
et/app/src/com/android/cts/net/hostside/RemoteSocketFactoryClient.java
et/app/src/com/android/cts/net/hostside/VpnTest.java
et/app2/Android.mk
et/app2/AndroidManifest.xml
et/app2/src/com/android/cts/net/hostside/app2/RemoteSocketFactoryService.java
et/src/com/android/cts/net/HostsideNetworkTestCase.java
et/src/com/android/cts/net/HostsideRestrictBackgroundNetworkTests.java
et/src/com/android/cts/net/HostsideVpnTests.java
e0ab22a0d53e8d9a15f6652609f0e3fa2d5c64b5 10-May-2016 Felipe Leme <felipeal@google.com> Added tests for idle apps and doze mode.

BUG: 28473659
BUG: 28521946
Change-Id: I4bc9166bf2050136fa86e374aac59f80afd76f1c
et/app/src/com/android/cts/net/hostside/AbstractAppIdleTestCase.java
et/app/src/com/android/cts/net/hostside/AbstractBatterySaverModeTestCase.java
et/app/src/com/android/cts/net/hostside/AbstractDozeModeTestCase.java
et/app/src/com/android/cts/net/hostside/AbstractRestrictBackgroundNetworkTestCase.java
et/app/src/com/android/cts/net/hostside/AppIdleMeteredTest.java
et/app/src/com/android/cts/net/hostside/AppIdleNonMeteredTest.java
et/app/src/com/android/cts/net/hostside/BatterySaverModeMeteredTest.java
et/app/src/com/android/cts/net/hostside/BatterySaverModeNonMeteredTest.java
et/app/src/com/android/cts/net/hostside/BatterySaverModeTest.java
et/app/src/com/android/cts/net/hostside/DozeModeMeteredTest.java
et/app/src/com/android/cts/net/hostside/DozeModeNonMeteredTest.java
et/app/src/com/android/cts/net/hostside/MixedModesTest.java
et/app2/src/com/android/cts/net/hostside/app2/MyForegroundService.java
et/src/com/android/cts/net/HostsideRestrictBackgroundNetworkTests.java
80ed08ba3d6d57cc76028f6349ee79ddd196fbee 13-May-2016 Ben Cheng <bccheng@google.com> Merge "Increase the timeout for the aadb test to 15 minutes." into marshmallow-cts-dev
am: c701607de8

* commit 'c701607de82a1edfb765d24fe51746c19895ed3c':
Increase the timeout for the aadb test to 15 minutes.

Change-Id: I46eb0920cde9eb481a23179a574d77cbb94d7ad8
c701607de82a1edfb765d24fe51746c19895ed3c 13-May-2016 Unsuk Jung <unsuk@google.com> Merge "Increase the timeout for the aadb test to 15 minutes." into marshmallow-cts-dev
e39e27c0d3b1d72a21cfdca7d91fe42701d22b71 13-May-2016 Daniel Xie <dxie@google.com> Merge "Fix getProvider for testHasCrossProfileWidgetProvider_false" into marshmallow-cts-dev am: 4b3d771c84 am: 0551e12ed6 am: b58968521b am: 72172eb145 am: 0d570e3ae6 am: 6efee3a3fc am: 27b4c39578
am: fae1fd4e02

* commit 'fae1fd4e024be4763ea3a4ce30216a487f4a5328':
Fix getProvider for testHasCrossProfileWidgetProvider_false

Change-Id: Ic6b3056e35173e4f73c1eaa59c1217c05cff983c
27b4c3957834800b7758823b3e5c19a609ef13bd 13-May-2016 Daniel Xie <dxie@google.com> Merge "Fix getProvider for testHasCrossProfileWidgetProvider_false" into marshmallow-cts-dev am: 4b3d771c84 am: 0551e12ed6 am: b58968521b am: 72172eb145 am: 0d570e3ae6
am: 6efee3a3fc

* commit '6efee3a3fc6c1475a4c5619eec68c4b22094a265':
Fix getProvider for testHasCrossProfileWidgetProvider_false

Change-Id: Ic75afd8a9fd466c8da867d81de8aa0c99604c852
6efee3a3fc6c1475a4c5619eec68c4b22094a265 13-May-2016 Satoshi Sanno <satoshi.x.sanno@sonymobile.com> Merge "Fix getProvider for testHasCrossProfileWidgetProvider_false" into marshmallow-cts-dev am: 4b3d771c84 am: 0551e12ed6 am: b58968521b am: 72172eb145
am: 0d570e3ae6

* commit '0d570e3ae6b0883e334d4f71df4882f68805e0a4':
Fix getProvider for testHasCrossProfileWidgetProvider_false

Change-Id: Ia75687b2a1d0d38a8e3cc542317831a0c1aa5ad9
0551e12ed6f012a5ceda026f941ae5201119e62e 13-May-2016 Satoshi Sanno <satoshi.x.sanno@sonymobile.com> Merge "Fix getProvider for testHasCrossProfileWidgetProvider_false" into marshmallow-cts-dev
am: 4b3d771c84

* commit '4b3d771c842a5e418b48e54114eba0b390a9f1ad':
Fix getProvider for testHasCrossProfileWidgetProvider_false

Change-Id: I04371fa9a129daa126a15f37cae538c5506ff550
126401b8f739acba1f5fdffd6807366bc91bcbfe 12-May-2016 Felipe Leme <felipeal@google.com> Merge "Covers more corner cases on restricted network modes:" into nyc-dev am: b10c777ceb am: 0504559360
am: bf5a9c0ff5

* commit 'bf5a9c0ff5a5466380be6ac5b995e3d2c0253498':
Covers more corner cases on restricted network modes:

Change-Id: I59619f0b209051a0764075801d8f8a3a4883dc4f
0504559360ce4196cbfa3fbf393bdb0dee7ff1b8 12-May-2016 Felipe Leme <felipeal@google.com> Merge "Covers more corner cases on restricted network modes:" into nyc-dev
am: b10c777ceb

* commit 'b10c777cebf2a86605f850c4181f45dc67d2a9a6':
Covers more corner cases on restricted network modes:

Change-Id: I8fd7ddb841e40f9e5697be2e5f2b109fcc71bf33
b10c777cebf2a86605f850c4181f45dc67d2a9a6 12-May-2016 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Covers more corner cases on restricted network modes:" into nyc-dev
b835b21675bf4a6a0ef67f9c2817ce22c6b4a0c8 03-May-2016 Tobias Thierer <tobiast@google.com> CompilationTest + corresponding app to (integration) test dex2oat compilation.

- This is a hostside test, i.e. it runs in a Java process on the host
but instruments behavior of the (Android) client via adb commands.

- The test contains hard coded profile data which I collected by running
the app manually on a Nexus 6P running Android N build 2834242.

- The test checks all four combinations of the "ref" and "cur" profiles
being present / absent.

Tested:
cts-tradefed run cts -m CtsCompilationTestCases

Bug: 27217443
Change-Id: Icfaf5db2ec102451109e2060dc2af2290716ed45
ompilation/Android.mk
ompilation/app/src/android/cts/compilation/CompilationTargetActivity.java
ompilation/assets/primary.prof
ompilation/src/android/cts/compilation/CompilationTest.java
c62deff1432dd0c8198d39a31b9bfad3aac4d150 29-Mar-2016 Satoshi Sanno <satoshi.x.sanno@sonymobile.com> Fix getProvider for testHasCrossProfileWidgetProvider_false

Symptom:
ManagedProfileTest.testCrossProfileWidgets fails on some devices
because testHasCrossProfileWidgetProvider_false of
CrossProfileWidgetPrimaryUserTest returns "RESULT_TIMEOUT".

Root cause:
The test method waits for a response of
SimpleAppWidgetHost.getProvider() with timeout of 120 seconds
to confirm there is no target widget provider which has been
removed prior to this test method.
SimpleAppWidgetHost.getProvider() checks if there is a target
widget provider or not with timeout of 30 seconds.
However, if onProvidersChanged() callback occurs in background
for other packages while waiting in SimpleAppWidgetHost.getProvider(),
the check is repeated again with new 30 seconds timeout.
For example, when a user account is switched during this test,
several applications like "com.google.android.music" calls
PackageManager.setComponentEnabledSetting().
They trigger onProvidersChanged() callback.
Due to this repeated 30 seconds timeout phenomenon on getProvider(),
testHasCrossProfileWidgetProvider_false is possibly failed
with the reason of RESULT_TIMEOUT.

Solution:
Set the value obtained by subtracting the elapsed time
as new timeout of SimpleAppWidgetHost.getProvider().

Bug: 28654737

Change-Id: Id9537fab6936f4c0fddb62bc47cca5c24ac4c517
evicepolicy/app/WidgetProvider/src/com/android/cts/widgetprovider/SimpleAppWidgetHostService.java
00621b037ba19fd68feb26410d07a3eca88f0d1d 10-May-2016 Ben Cheng <bccheng@google.com> Increase the timeout for the aadb test to 15 minutes.

To better accomodate the test setup with ADB over TCP/IP

BUG:27325804
Change-Id: Id2d28bfdd1e99542bd4319b70996d1fb9cee57e8
adb/src/com/android/cts/aadb/TestDeviceStressTest.java
230af3fdcc30f36d8902164d919602241ca32f6e 11-May-2016 Tobias Thierer <tobiast@google.com> Merge "Add CompilationTest for the case where no profile is available." into nyc-dev am: a3d3f04ffa am: 6e9c4888f0
am: 0a272d3791

* commit '0a272d37918f31b499a3a95a77e5d93b91390391':
Add CompilationTest for the case where no profile is available.

Change-Id: I310d6cc2b5fbc50e5aab88174c1d7ecb93a52fc8
6e9c4888f0fbcfa4803e8d9e3d852538620587a9 11-May-2016 Tobias Thierer <tobiast@google.com> Merge "Add CompilationTest for the case where no profile is available." into nyc-dev
am: a3d3f04ffa

* commit 'a3d3f04ffa284560cfe6a27901631fc20109b4ba':
Add CompilationTest for the case where no profile is available.

Change-Id: Iee9585e01c37a6549b5e167045560e0623e04764
a3d3f04ffa284560cfe6a27901631fc20109b4ba 11-May-2016 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Add CompilationTest for the case where no profile is available." into nyc-dev
24e4936458d92528733f6692df9233e74e254e0c 27-Apr-2016 Ruchi Kandoi <kandoiruchi@google.com> sustained perf: Adds a CTS test for Sustained Performance Mode

The test runs a GPU intensive application and a CPU intensive excutable
for 30 mins with and without the mode and compares the results.

The results with the mode should be consistent and shouldn't vary more
than 5%.

For devices which do not support sustained performance mode, the test
will return immediately.

Bug: 27856676
Change-Id: I30435d1b4be763d3cea78511a16561884f981437
Signed-off-by: Ruchi Kandoi <kandoiruchi@google.com>
Signed-off-by: Vangelis Kokkevis <vangelis@google.com>
ustainedperf/Android.mk
ustainedperf/AndroidTest.xml
ustainedperf/app/Android.mk
ustainedperf/app/AndroidManifest.xml
ustainedperf/app/src/android/test/app/DeviceTestActivity.java
ustainedperf/dhrystone/Android.mk
ustainedperf/dhrystone/Drystone-2.1.sh
ustainedperf/dhrystone/LICENSE.TXT
ustainedperf/dhrystone/Rationale
ustainedperf/dhrystone/dhry.h
ustainedperf/dhrystone/dhry_1.c
ustainedperf/dhrystone/dhry_2.c
ustainedperf/shadertoy_android/Android.mk
ustainedperf/shadertoy_android/AndroidManifest.xml
ustainedperf/shadertoy_android/jni/Android.mk
ustainedperf/shadertoy_android/jni/Application.mk
ustainedperf/shadertoy_android/jni/hooks_android.cpp
ustainedperf/shadertoy_android/jni/shaders.cpp
ustainedperf/shadertoy_android/jni/shadertoy_renderer.cpp
ustainedperf/shadertoy_android/jni/shadertoy_shader.cpp
ustainedperf/shadertoy_android/jni/shadertoy_shader.h
ustainedperf/shadertoy_android/jni/utils.cpp
ustainedperf/shadertoy_android/jni/utils.h
ustainedperf/shadertoy_android/res/values/strings.xml
ustainedperf/shadertoy_android/src/GLtestLib.java
ustainedperf/shadertoy_android/src/GLtestView.java
ustainedperf/shadertoy_android/src/GPUStressTestActivity.java
ustainedperf/src/android/SustainedPerformance/cts/SustainedPerformanceHostTest.java
cdc51eafac1ef3d43ac05c987d77337e6ac5a050 10-May-2016 Svetoslav Ganov <svetoslavganov@google.com> Merge "Fix permission CTS tests on Fugu" into nyc-dev am: b04c516d38 am: 9ddaaca72c
am: 05a6ecdca0

* commit '05a6ecdca066655807a75d9b3f293f25774cf6b0':
Fix permission CTS tests on Fugu

Change-Id: I9a29d002dd7d534a9e5ae8d922123ff85de57a89
05a6ecdca066655807a75d9b3f293f25774cf6b0 10-May-2016 Svetoslav Ganov <svetoslavganov@google.com> Merge "Fix permission CTS tests on Fugu" into nyc-dev am: b04c516d38
am: 9ddaaca72c

* commit '9ddaaca72cde6d2bf1574420c16c7f5d923a885e':
Fix permission CTS tests on Fugu

Change-Id: I8799214913f42bf361da05b706b0c4f013f1017c
c1f964a7f32bd2cec3ba5c573a8a4b3259cf94b9 10-May-2016 Svetoslav Ganov <svetoslavganov@google.com> Merge "Fix permission CTS tests on Fugu" into nyc-dev
am: b04c516d38

* commit 'b04c516d38ae4ab3322c46bd8e7f37bc08145374':
Fix permission CTS tests on Fugu

Change-Id: I68ee9210d0c33f76878b1e248ac2741f969d2c60
c97e04290412c0852ebf142a3922f46c8ca11fb2 03-May-2016 Tobias Thierer <tobiast@google.com> Add CompilationTest for the case where no profile is available.

This is an integration test instrumenting dex2oat compilation
exposed to the command line via adb.

To run:
# ensure device is connected and has WiFi, else test setup will fail
$ make cts && cts-tradefed run cts -m CtsCompilationTestCases

Note: I plan to expand the test in follow-up changesets.

Bug: 27217443
Change-Id: Ie3d005871d18b5a7d80fc7d2fee3d0731e6c8b17
ompilation/Android.mk
ompilation/AndroidTest.xml
ompilation/app/Android.mk
ompilation/app/AndroidManifest.xml
ompilation/app/src/android/cts/compilation/CompilationTargetActivity.java
ompilation/src/android/cts/compilation/CompilationTest.java
880746bc427f34588e18330897ccfba87a0b969c 10-May-2016 Svetoslav Ganov <svetoslavganov@google.com> Fix permission CTS tests on Fugu

The Leanback UI on TV required some tweaks in the
permission tests. Due to bugs in UiAutomator we
had to fall-back to the raw accessibility APIs to
make the tests robust.

bug:28657926

Change-Id: Icefa05fb97094de3a76eb34325ff43212dab898a
ppsecurity/test-apps/UsePermissionApp23/src/com/android/cts/usepermission/BasePermissionsTest.java
ppsecurity/test-apps/UsePermissionApp23/src/com/android/cts/usepermission/UsePermissionTest23.java
dde832d4a3ff12f045d1f0728dce933df65660e8 06-May-2016 Felipe Leme <felipeal@google.com> Covers more corner cases on restricted network modes:

- Tests what happens on foreground applications when a restriction (like
Data Saver or Battery Saver modes) is turned on (prior tests would
turn the restriction on *before* switching the app to foreground).
- Tests multiple restrictions simultaneously enabled.

Also improved existing code:

- Fixed background state check.
- Reused some common checks in helper methods.
- Retries checks for process state.

BUG: 28473659

Change-Id: Ifcf9cc6d895ccde0ab5177f9f5d8c347ce53b811
et/app/src/com/android/cts/net/hostside/AbstractRestrictBackgroundNetworkTestCase.java
et/app/src/com/android/cts/net/hostside/BatterySaverModeNonMeteredTest.java
et/app/src/com/android/cts/net/hostside/BatterySaverModeTest.java
et/app/src/com/android/cts/net/hostside/DataSaverModeTest.java
et/app/src/com/android/cts/net/hostside/MixedModesTest.java
et/app2/src/com/android/cts/net/hostside/app2/Common.java
et/app2/src/com/android/cts/net/hostside/app2/MyActivity.java
et/app2/src/com/android/cts/net/hostside/app2/MyBroadcastReceiver.java
et/app2/src/com/android/cts/net/hostside/app2/MyForegroundService.java
et/src/com/android/cts/net/HostsideRestrictBackgroundNetworkTests.java
f0390bd7aecee3354dc9f22bb152622d44103349 09-May-2016 Kenny Guy <kennyguy@google.com> Merge "Enable cross profile contacts search before running tests." into nyc-dev am: 4cbbfb451f am: be33b51614
am: 7dd2c3909f

* commit '7dd2c3909f285cbcba5f62db22304cd6e1b3b3c7':
Enable cross profile contacts search before running tests.

Change-Id: I7d1f527bda9c9ac88a52f15e1eea16576339550c
7dd2c3909f285cbcba5f62db22304cd6e1b3b3c7 09-May-2016 Kenny Guy <kennyguy@google.com> Merge "Enable cross profile contacts search before running tests." into nyc-dev am: 4cbbfb451f
am: be33b51614

* commit 'be33b51614f3d9fe982b6e2b65891ccfa00fb9ef':
Enable cross profile contacts search before running tests.

Change-Id: I6f90e52b5ff9432c19b226ccaa26a8fd7fe6ac1e
437ae182a7e054eed5ceee36614bb85affb7ba8f 09-May-2016 Kenny Guy <kennyguy@google.com> Merge "Enable cross profile contacts search before running tests." into nyc-dev
am: 4cbbfb451f

* commit '4cbbfb451fd3998baf44307c6915e95768000c70':
Enable cross profile contacts search before running tests.

Change-Id: I0d7ed79ff6ec3cf962d79c0ed63f3af466b4ec4d
4cbbfb451fd3998baf44307c6915e95768000c70 09-May-2016 Kenny Guy <kennyguy@google.com> Merge "Enable cross profile contacts search before running tests." into nyc-dev
b9fc59411f9b2d637d9feb0359048a6d3fcc7bb9 09-May-2016 Kenny Guy <kennyguy@google.com> Enable cross profile contacts search before running tests.

Fixes failures due to new user setting controlling
cross profile contacts search.

Bug: 28334569
Change-Id: Ib6cdb0e968c293922fb225eb8a9992db3fad5e89
evicepolicy/src/com/android/cts/devicepolicy/ManagedProfileTest.java
6ae8187e15e28639d16ea2d6befeca26c6b22f19 09-May-2016 Tony Mak <tonymak@google.com> Merge "Should not run telecom test with device that have no telephony support" into nyc-dev am: b59b747034 am: dc5419dea3
am: 6aac9a8346

* commit '6aac9a83463ebb1467b50863ade50fae9d8f2c73':
Should not run telecom test with device that have no telephony support

Change-Id: I2fa3c04d5ececbb1a2ae9f1ae5e16ee781f9d525
6aac9a83463ebb1467b50863ade50fae9d8f2c73 09-May-2016 Tony Mak <tonymak@google.com> Merge "Should not run telecom test with device that have no telephony support" into nyc-dev am: b59b747034
am: dc5419dea3

* commit 'dc5419dea300bb2b28b476af1b98e6c5fc296cf4':
Should not run telecom test with device that have no telephony support

Change-Id: Ida3ac3b248e38719c93075b38ee420f3ce902636
2f6a5040939e87ac8337c61ea67b9ac3e3b2e703 09-May-2016 Tony Mak <tonymak@google.com> Merge "Should not run telecom test with device that have no telephony support" into nyc-dev
am: b59b747034

* commit 'b59b747034ec1c5da32a4abbfcc9d959bcf29017':
Should not run telecom test with device that have no telephony support

Change-Id: I2576f44f57fb005db7886e73d1ecc4c5c3aac531
b59b747034ec1c5da32a4abbfcc9d959bcf29017 09-May-2016 Tony Mak <tonymak@google.com> Merge "Should not run telecom test with device that have no telephony support" into nyc-dev
d73dc32793dd8e8d4a94824eafcbadc3c1a1c9cf 09-May-2016 Tony Mak <tonymak@google.com> Should not run telecom test with device that have no telephony support

Bug: 28652905

Change-Id: I33955e87e6d67de562288726cfa8f36f23030377
evicepolicy/src/com/android/cts/devicepolicy/ManagedProfileTest.java
fc5c08cc08447b636735dca4284ad6177cbf4a81 07-May-2016 Felipe Leme <felipeal@google.com> Merge "Asserts foreground apps always have network access." into nyc-dev am: 68aeb4d914 am: fb83bb3bf7
am: f7bb826f9f

* commit 'f7bb826f9f50833af7a3c7a3dcebc5822e3ec15e':
Asserts foreground apps always have network access.

Change-Id: I9366a2ad1bbc5e756fbf6565758e92e1e7d71172
f7bb826f9f50833af7a3c7a3dcebc5822e3ec15e 07-May-2016 Felipe Leme <felipeal@google.com> Merge "Asserts foreground apps always have network access." into nyc-dev am: 68aeb4d914
am: fb83bb3bf7

* commit 'fb83bb3bf780fa1dfbed71b7e20f3b61bf5f2173':
Asserts foreground apps always have network access.

Change-Id: Ie752cd0240f4700be4c8e1ea2fada625de685365
49e1a109d47322333f71e73a7553ab998e6cee5d 07-May-2016 Felipe Leme <felipeal@google.com> Merge "Asserts foreground apps always have network access." into nyc-dev
am: 68aeb4d914

* commit '68aeb4d9147942496beb2bf5fa78ae2428f15c82':
Asserts foreground apps always have network access.

Change-Id: I32dd08add98d57c3feca224920d8028254102aab
68aeb4d9147942496beb2bf5fa78ae2428f15c82 07-May-2016 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Asserts foreground apps always have network access." into nyc-dev
0ea873e4c241db2473f22859accdf2c6ad27b13b 07-May-2016 Wale Ogunwale <ogunwale@google.com> Merge "Fixed NPE in CTS test." into nyc-dev am: c093a3dbe3 am: c1bf964040
am: 6b1ccb491f

* commit '6b1ccb491fff1c42afad50d5f42ed7ba7c562e7e':
Fixed NPE in CTS test.

Change-Id: I6d08d062cb351f7f3da2633ebfa5165d9310b2c4
c1bf964040640750d1386958cb2480b325085b45 07-May-2016 Wale Ogunwale <ogunwale@google.com> Merge "Fixed NPE in CTS test." into nyc-dev
am: c093a3dbe3

* commit 'c093a3dbe3e8d045a6e877fb3c9a610a1c735a23':
Fixed NPE in CTS test.

Change-Id: Ia14c63d48897a427e24c006928a40a0327160438
c093a3dbe3e8d045a6e877fb3c9a610a1c735a23 07-May-2016 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Fixed NPE in CTS test." into nyc-dev
638cad6b1b0de845d07e05eed045730e68ea2663 30-Apr-2016 Felipe Leme <felipeal@google.com> Asserts foreground apps always have network access.

BUG: 28473659
Change-Id: Iea6933a4630ff2e9c00a2d2e9e4a6f1a51de70f2
et/app/src/com/android/cts/net/hostside/AbstractRestrictBackgroundNetworkTestCase.java
et/app/src/com/android/cts/net/hostside/BatterySaverModeNonMeteredTest.java
et/app/src/com/android/cts/net/hostside/BatterySaverModeTest.java
et/app/src/com/android/cts/net/hostside/DataSaverModeTest.java
et/app2/AndroidManifest.xml
et/app2/src/com/android/cts/net/hostside/app2/Common.java
et/app2/src/com/android/cts/net/hostside/app2/MyActivity.java
et/app2/src/com/android/cts/net/hostside/app2/MyBroadcastReceiver.java
et/src/com/android/cts/net/HostsideRestrictBackgroundNetworkTests.java
27b83fb9f105919c98cd0a2551a8c1aee5b7e721 06-May-2016 Wale Ogunwale <ogunwale@google.com> Fixed NPE in CTS test.

Bug: 28637235
Change-Id: I337cb3c156129f8741481fa74361896834bb8bcc
ervices/activitymanager/src/android/server/cts/WindowManagerState.java
593f6666963bf5d3bb49d8a942c7492cbd0bf965 06-May-2016 Christopher Tate <ctate@google.com> Merge "CTS test for web link autoVerify" into nyc-dev am: 0e458d8d93 am: a01e0db3a9
am: 125795d844

* commit '125795d844383cb72d91abe524f57c07ec104def':
CTS test for web link autoVerify

Change-Id: I612e81695f46df12cd8ded90031870ac7aa1a738
a01e0db3a9386926a91a168ac15021737384712e 06-May-2016 Christopher Tate <ctate@google.com> Merge "CTS test for web link autoVerify" into nyc-dev
am: 0e458d8d93

* commit '0e458d8d93677baa2a496d7ad1ef779adcca469f':
CTS test for web link autoVerify

Change-Id: I83f0bf57aebc7c004aacae20135b12e6cb51c390
c18dd979e856c93a1dc945629e818b5de0301289 06-May-2016 Felipe Leme <felipeal@google.com> Merge "Assert whitelists are revoked on uninstall." into nyc-dev am: cd8e99563b am: c180707aa4
am: 374c0afd3c

* commit '374c0afd3c7cffd3e1cb5250ddd603eff1aa9670':
Assert whitelists are revoked on uninstall.

Change-Id: Icf948146332df57fb24e11e4800635acb377a368
374c0afd3c7cffd3e1cb5250ddd603eff1aa9670 06-May-2016 Felipe Leme <felipeal@google.com> Merge "Assert whitelists are revoked on uninstall." into nyc-dev am: cd8e99563b
am: c180707aa4

* commit 'c180707aa4ca9a14f38c118103d003cbe0624ae2':
Assert whitelists are revoked on uninstall.

Change-Id: I624660ebae235bd8cf5c5b80d471237bbc3db818
0e458d8d93677baa2a496d7ad1ef779adcca469f 06-May-2016 Chris Tate <ctate@android.com> Merge "CTS test for web link autoVerify" into nyc-dev
21fd3aab7833bc9c8157082cd4fba2fefd401d50 06-May-2016 Felipe Leme <felipeal@google.com> Merge "Assert whitelists are revoked on uninstall." into nyc-dev
am: cd8e99563b

* commit 'cd8e99563b4accd3162bff1f002468971f4dc771':
Assert whitelists are revoked on uninstall.

Change-Id: Ic91c283812b15a0db5ca26dc771c25f5aa8603a6
cd8e99563b4accd3162bff1f002468971f4dc771 06-May-2016 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Assert whitelists are revoked on uninstall." into nyc-dev
79ccdccfe79864ccab802382fd80607cccf88c5c 05-May-2016 Felipe Leme <felipeal@google.com> Assert whitelists are revoked on uninstall.

BUG: 28616418
Change-Id: I909fd4c6024afe5b42560090c6e2f11b43c220de
et/app/src/com/android/cts/net/hostside/DataSaverModeTest.java
et/src/com/android/cts/net/HostsideRestrictBackgroundNetworkTests.java
b6bdd969443727f5e583b36a8d6adde4490058a9 06-May-2016 Ricky Wai <rickywai@google.com> Merge "Fix enterprise contacts APIs naming and docs" into nyc-dev am: 4908e96584 am: 43f2703f24
am: e992074939

* commit 'e992074939fc7b100fbffdcb1b86fd1f1664c882':
Fix enterprise contacts APIs naming and docs

Change-Id: I1f32effda697f49c0e1db32e9b973d38a9315ce7
e992074939fc7b100fbffdcb1b86fd1f1664c882 06-May-2016 Tony Mak <tonymak@google.com> Merge "Fix enterprise contacts APIs naming and docs" into nyc-dev am: 4908e96584
am: 43f2703f24

* commit '43f2703f244c657691478c8d327b6c2341794e04':
Fix enterprise contacts APIs naming and docs

Change-Id: I5b0234cbc53e7c56e2f40a7bbb654b06bfc4636d
2b9e93d504d4622361a944a02c9397ed52ca9efc 06-May-2016 Ricky Wai <rickywai@google.com> Merge "Fix enterprise contacts APIs naming and docs" into nyc-dev
am: 4908e96584

* commit '4908e9658493ed7ed27c54084a01fe33a4bf7ba6':
Fix enterprise contacts APIs naming and docs

Change-Id: I38d6a345529606b05e859956b512a52fe1aed9ec
4908e9658493ed7ed27c54084a01fe33a4bf7ba6 06-May-2016 Tony Mak <tonymak@google.com> Merge "Fix enterprise contacts APIs naming and docs" into nyc-dev
e42bd93095a24e28c85da7369ad686af00674e5a 06-May-2016 Vladislav Kaznacheev <kaznacheev@google.com> Merge "Merge "Use ActivityOptions.setLaunchStackId directly in AlwaysFocusablePipActivity" into nyc-dev am: 055fdd819e am: 799aa30aee" into nyc-mr1-dev-plus-aosp
am: e4f560660a

* commit 'e4f560660ab4079789abc5cd3be15db0bad04f51':
Use ActivityOptions.setLaunchStackId directly in AlwaysFocusablePipActivity

Change-Id: I9d518c26a86bb837fa7e20c77220bbe5b29a66cd
45258e19293e61b8d80323582147dc13889f72db 06-May-2016 Vladislav Kaznacheev <kaznacheev@google.com> Merge "Use ActivityOptions.setLaunchStackId directly in AlwaysFocusablePipActivity" into nyc-dev am: 055fdd819e
am: 799aa30aee

* commit '799aa30aee8622cedd7362000331175a2db6b9ed':
Use ActivityOptions.setLaunchStackId directly in AlwaysFocusablePipActivity

Change-Id: Ibe2e465a0d2ac023e1a251ba31fadcd2f2275c61
29395873c69bd136e8d66e126c902ade5278c64a 06-May-2016 Vladislav Kaznacheev <kaznacheev@google.com> Merge "Use ActivityOptions.setLaunchStackId directly in AlwaysFocusablePipActivity" into nyc-dev
am: 055fdd819e

* commit '055fdd819e70786c7d0196ab9e675a894c6ab6a5':
Use ActivityOptions.setLaunchStackId directly in AlwaysFocusablePipActivity

Change-Id: I7cff3913e2af0a80177a3c6bdfd2b7c10e8b5a03
055fdd819e70786c7d0196ab9e675a894c6ab6a5 06-May-2016 Vladislav Kaznacheev <kaznacheev@google.com> Merge "Use ActivityOptions.setLaunchStackId directly in AlwaysFocusablePipActivity" into nyc-dev
b4f3476ef93bae5ee963248a04c8430e380e323b 05-May-2016 Vladislav Kaznacheev <kaznacheev@google.com> Use ActivityOptions.setLaunchStackId directly in AlwaysFocusablePipActivity

This hidden method now has @TestApi annotation.

Bug: 28506739
Change-Id: I78f5fa4289a4dcdd59589821d41211e17ec6c658
ervices/activitymanager/app/Android.mk
ervices/activitymanager/app/src/android/server/app/AlwaysFocusablePipActivity.java
5452dbdbcee7325aab17c926c772b891355931c5 05-May-2016 Svetoslav Ganov <svetoslavganov@google.com> Merge "Disble a CTS test not needed in N" into nyc-dev am: 0e2ba4c3c3 am: d0ea4d22db
am: 13c3ad18d4

* commit '13c3ad18d406727ecf74b098a6288edd5431d88c':
Disble a CTS test not needed in N

Change-Id: I757b5545b798551b8dc2a1559a2bd507e1c05140
13c3ad18d406727ecf74b098a6288edd5431d88c 05-May-2016 Svetoslav Ganov <svetoslavganov@google.com> Merge "Disble a CTS test not needed in N" into nyc-dev am: 0e2ba4c3c3
am: d0ea4d22db

* commit 'd0ea4d22dbd02971984431829f200c5df3817f15':
Disble a CTS test not needed in N

Change-Id: I22627e54763c0d9588530a170c93b147c106f96c
ce9369dfd8e33ed758dc76deaac362f073b40ce8 05-May-2016 Svetoslav Ganov <svetoslavganov@google.com> Merge "Disble a CTS test not needed in N" into nyc-dev
am: 0e2ba4c3c3

* commit '0e2ba4c3c3da6f076d449406e9cdceb2c6271f37':
Disble a CTS test not needed in N

Change-Id: Ia719932c179c6655777d4ef65671f3cca766d1c3
0e2ba4c3c3da6f076d449406e9cdceb2c6271f37 05-May-2016 Svetoslav Ganov <svetoslavganov@google.com> Merge "Disble a CTS test not needed in N" into nyc-dev
5e051e4ecce662083562475ce77272a15a01b88c 05-May-2016 Svetoslav Ganov <svetoslavganov@google.com> Disble a CTS test not needed in N

The change that was tested by the test was moved
to master and the test should be disabled in N.

bug:28599506

Change-Id: Iec90b448c17438e8ee847bc706cbca62505009fd
ppsecurity/src/android/appsecurity/cts/PermissionsHostTest.java
b317fd489157fb6092c54bcda41d6a184e8ea1a8 04-May-2016 Robin Lee <rgl@google.com> Merge "Application whitelisting test for always on vpn" into nyc-dev am: 7f96c07f00 am: e88509d217
am: 81a5f05907

* commit '81a5f05907c34670040680be7b78c51ba4c7a54e':
Application whitelisting test for always on vpn

Change-Id: I023cae6016878a45e858e47a4d46179624206415
81a5f05907c34670040680be7b78c51ba4c7a54e 04-May-2016 Robin Lee <rgl@google.com> Merge "Application whitelisting test for always on vpn" into nyc-dev am: 7f96c07f00
am: e88509d217

* commit 'e88509d2175e5c4d951a9d8913f3ae2f11ddf771':
Application whitelisting test for always on vpn

Change-Id: I530aca8dc58e36da8730aef0d03e4a1144aef24d
99b72a7d4db67c19720b543483444553c23b86da 04-May-2016 Felipe Leme <felipeal@google.com> Merge "Temporarily disable NetworkInfo check." into nyc-dev am: cdb30f18e4 am: 4c2f58f62e
am: f45265686b

* commit 'f45265686b39622288aec8cc8f2cfbcb7331f43e':
Temporarily disable NetworkInfo check.

Change-Id: I41c57f03fd94e69325bb08b2493f2526c67f01b1
9077635fbf5785d85e70c0e886475b6933787beb 04-May-2016 Robin Lee <rgl@google.com> Merge "Application whitelisting test for always on vpn" into nyc-dev
am: 7f96c07f00

* commit '7f96c07f009a1f2e61af74cf482c42b7521af392':
Application whitelisting test for always on vpn

Change-Id: Ide885347f86685297c4248fc0235f812833c022d
7f96c07f009a1f2e61af74cf482c42b7521af392 04-May-2016 Robin Lee <rgl@google.com> Merge "Application whitelisting test for always on vpn" into nyc-dev
4c2f58f62e871fa432445da4f4daff76654526d1 04-May-2016 Felipe Leme <felipeal@google.com> Merge "Temporarily disable NetworkInfo check." into nyc-dev
am: cdb30f18e4

* commit 'cdb30f18e44f14b32cfe76c572af22f82a816a00':
Temporarily disable NetworkInfo check.

Change-Id: I2092f714c8db0b024e1ee9d5ba35e7a9a4023747
6323516dda9e4c442be076ab468481e8b97a44eb 04-May-2016 Robin Lee <rgl@google.com> Merge "Merge "Add lockdownEnabled parameter to always-on VPN API" into nyc-dev am: a873ce76de" into nyc-dev-plus-aosp am: ad20a06c6f
am: 45f2f91404

* commit '45f2f914049aecd7b4071239c2a2a7cb47418f34':
Add lockdownEnabled parameter to always-on VPN API

Change-Id: I999cde428fac555545b9ff4c55cdbef52f797f11
23dfb36ab3f1fbcc44e860324dc0895d7ce203ab 04-May-2016 Abhijith Shastry <ashastry@google.com> Merge "Fix Number Blocking CTS for secondary users." into nyc-dev am: d2ef643f7a am: 98d432d305
am: d1d00a340e

* commit 'd1d00a340e241b51f10ee68f6b783625bde7fed2':
Fix Number Blocking CTS for secondary users.

Change-Id: I03ef1854a1de8df4d2490b1de1bce7b24547a7ca
7f63ebcf9bba25a895e034da6e2cff87989a4112 04-May-2016 Ian Rogers <irogers@google.com> Merge "Fix Java library dependencies"
9a98e3b1e2670ed20fa2a30f4e195bcdbb3d36e1 04-May-2016 Robin Lee <rgl@google.com> Merge "Add lockdownEnabled parameter to always-on VPN API" into nyc-dev
am: a873ce76de

* commit 'a873ce76de9623235ba23ea56272aff90ffb7a9f':
Add lockdownEnabled parameter to always-on VPN API

Change-Id: I2f71c060c9705b146cac4263adefb4244d2ddc98
aeb58beb98cfc3f2b10e421cda1e28f4a39fed44 04-May-2016 Felipe Leme <felipeal@google.com> Temporarily disable NetworkInfo check.

There are known issues that cause these check to fail, and the fix has
not been submitted yet.

BUG: 28473659
BUG: 28521946
Change-Id: I26dfbebc2d07396ef89ac78230645e4791c708ee
et/app/src/com/android/cts/net/hostside/AbstractRestrictBackgroundNetworkTestCase.java
f158daeb57f93e8e27bb61ece9b82755cd7ef2ad 28-Apr-2016 Robin Lee <rgl@google.com> Application whitelisting test for always on vpn

Extends the test for regular always-on to include blacklisting and
whitelisting the test package from VPN too.

This is verified by looking up the active Network and inspecting its
capabilities as returned by ConnectivityManager.

Fix: 27155246
Change-Id: I6e57238f800ce979c2ff77c07f1959d513ffa1b6
evicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/AlwaysOnVpnTest.java
a873ce76de9623235ba23ea56272aff90ffb7a9f 04-May-2016 Robin Lee <rgl@google.com> Merge "Add lockdownEnabled parameter to always-on VPN API" into nyc-dev
98d432d30570358e8d82ddfefc82b7dd7b930238 04-May-2016 Abhijith Shastry <ashastry@google.com> Merge "Fix Number Blocking CTS for secondary users." into nyc-dev
am: d2ef643f7a

* commit 'd2ef643f7a3a1f12e35d23545cc63dbfe277f084':
Fix Number Blocking CTS for secondary users.

Change-Id: I0f68428935dfb9cecbcf19314b34018746441234
d2ef643f7a3a1f12e35d23545cc63dbfe277f084 04-May-2016 Abhijith Shastry <ashastry@google.com> Merge "Fix Number Blocking CTS for secondary users." into nyc-dev
ad1ae1ce2a8c433e982643f24c0b154994ce7e07 04-May-2016 Kenny Guy <kennyguy@google.com> Merge "Remove device admins using dpm remove-active-admin" into nyc-dev
am: 6ed78d173a

* commit '6ed78d173a9a267ad2526770ed639b9bc26a7119':
Remove device admins using dpm remove-active-admin

Change-Id: I75542c3d4d1f1d20d4a227d9f40b34ec449dda41
6ed78d173a9a267ad2526770ed639b9bc26a7119 04-May-2016 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Remove device admins using dpm remove-active-admin" into nyc-dev
e91f1a61e8f1cede1cc994c9e9477f4700a3c1c4 19-Apr-2016 Kenny Guy <kennyguy@google.com> Remove device admins using dpm remove-active-admin

Make tests less flakey by using remove-active-admin
dpm command rather than relying on broadcast to admin
to clean up after tests.
Tidy up logging so its clearer what are failures
and what aren't.
Also start users when creating them.

Bug: 28027468
Bug: 28578782
Change-Id: I4729478976e84444e92216df8b723660354af775
evicepolicy/app/DeviceAdmin/api23/AndroidManifest.xml
evicepolicy/app/DeviceAdmin/api24/AndroidManifest.xml
evicepolicy/app/DeviceAdmin/src/com.android.cts.deviceadmin/ClearDeviceOwnerTest.java
evicepolicy/app/DeviceAndProfileOwner/api23/AndroidManifest.xml
evicepolicy/app/DeviceAndProfileOwner/latest/AndroidManifest.xml
evicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/ClearDeviceOwnerTest.java
evicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/ClearProfileOwnerTest.java
evicepolicy/app/DeviceOwner/AndroidManifest.xml
evicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/ClearDeviceOwnerTest.java
evicepolicy/app/ManagedProfile/AndroidManifest.xml
evicepolicy/app/PackageInstaller/AndroidManifest.xml
evicepolicy/app/ProfileOwner/AndroidManifest.xml
evicepolicy/src/com/android/cts/devicepolicy/BaseDeviceAdminHostSideTest.java
evicepolicy/src/com/android/cts/devicepolicy/BaseDevicePolicyTest.java
evicepolicy/src/com/android/cts/devicepolicy/BaseLauncherAppsTest.java
evicepolicy/src/com/android/cts/devicepolicy/CustomDeviceOwnerTest.java
evicepolicy/src/com/android/cts/devicepolicy/DeviceAndProfileOwnerTest.java
evicepolicy/src/com/android/cts/devicepolicy/DeviceOwnerTest.java
evicepolicy/src/com/android/cts/devicepolicy/ManagedProfileTest.java
evicepolicy/src/com/android/cts/devicepolicy/MixedDeviceOwnerTest.java
evicepolicy/src/com/android/cts/devicepolicy/MixedProfileOwnerTest.java
evicepolicy/src/com/android/cts/devicepolicy/ProfileOwnerTest.java
evicepolicy/src/com/android/cts/devicepolicy/ProfileOwnerTestApi23.java
evicepolicy/src/com/android/cts/devicepolicy/UserRestrictionsTest.java
aa583e37876d91882360a2d161c89fcbd9c26571 04-May-2016 Robin Lee <rgl@google.com> Add lockdownEnabled parameter to always-on VPN API

Allows callers to opt-out of blockading network traffic during boot and
on VPN app failure.

Bug: 26694104
Change-Id: I01572241eec5b21501b79a030ccd1c3aff0f21d9
evicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/AlwaysOnVpnTest.java
df81761e0a334f2079a86004fab5edd816db5dea 04-May-2016 Ian Rogers <irogers@google.com> Fix Java library dependencies

Fixes javac-check build.

Bug: 27723540
Change-Id: I0d41addccfd96d80aa23ffe6e675e5658715f28d
evicepolicy/app/LauncherTests/Android.mk
evicepolicy/app/ManagedProfile/Android.mk
umberblocking/app/Android.mk
c0e148b45e333d9d1b5034ed807e2606d706a7ee 04-May-2016 Felipe Leme <felipeal@google.com> Merge "Improved connectivity check by also asserting NetworkInfo states." into nyc-dev
am: fe6dc2b966

* commit 'fe6dc2b966686da65dae3e0766e56bf25844500c':
Improved connectivity check by also asserting NetworkInfo states.

Change-Id: Icba9139f192182fe6adaf03ef813dc20bd66f681
768198cb5b84c5dd36afef4b88d8ff41a474b86b 04-May-2016 Abhijith Shastry <ashastry@google.com> Fix Number Blocking CTS for secondary users.

Expect SecurityException instead of UnsupportedOperationException when secondary user attempts to use the provider.

BUG: 28294786
Change-Id: I501d0951be741719a8e0ac9e4646bb999db5b393
umberblocking/app/src/com/android/cts/numberblocking/hostside/NumberBlockingAppTest.java
65efe3d03413da36f41944e5e6cfe1328d8a3cd8 30-Apr-2016 Felipe Leme <felipeal@google.com> Improved connectivity check by also asserting NetworkInfo states.

BUG: 28473659
BUG: 26571724
Change-Id: Iba687003431ed5c353412268726967a798f538da
et/app/src/com/android/cts/net/hostside/AbstractRestrictBackgroundNetworkTestCase.java
et/app/src/com/android/cts/net/hostside/BatterySaverModeTest.java
et/app2/src/com/android/cts/net/hostside/app2/Common.java
et/app2/src/com/android/cts/net/hostside/app2/MyBroadcastReceiver.java
et/src/com/android/cts/net/HostsideRestrictBackgroundNetworkTests.java
488140e85296cda8f7019803d0ef6312c63debc9 03-May-2016 Ricky Wai <rickywai@google.com> Merge "Add retry to get contacts directory api" into nyc-dev
am: c7723419c4

* commit 'c7723419c4d31c0ded61acec20d85c32d40080be':
Add retry to get contacts directory api

Change-Id: I6b248803f147a2e7574ac41f19f651161bc07520
c7723419c4d31c0ded61acec20d85c32d40080be 03-May-2016 Ricky Wai <rickywai@google.com> Merge "Add retry to get contacts directory api" into nyc-dev
de20b54c07bbc0825db46bf857849217db8f8389 29-Apr-2016 Ricky Wai <rickywai@google.com> Add retry to get contacts directory api

To make sure cp2 directory content is updated

Bug: 28334569
Change-Id: I7686cbbf58f87869f39a7d57d0039bea0cb5e018
evicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/ContactsTest.java
665976b521c437a4fcb701b48fc6bc9811429a14 03-May-2016 Rubin Xu <rubinxu@google.com> Merge "Skip testDelegatedCertInstaller if feature is not available" into nyc-dev
am: 28ac3cfb24

* commit '28ac3cfb24e85e0a84a1f976be46d1d94cc42c6f':
Skip testDelegatedCertInstaller if feature is not available

Change-Id: Ia9bdf91f504c7758350a918edadd89b7d3210e07
28ac3cfb24e85e0a84a1f976be46d1d94cc42c6f 03-May-2016 Daniel Xie <dxie@google.com> Merge "Skip testDelegatedCertInstaller if feature is not available" into nyc-dev
ed134205033f0c02afcd33d841f901a24313bc63 03-May-2016 Svet Ganov <svetoslavganov@google.com> Merge "Add runtime permissions CTS tests" into nyc-dev
am: 0fec180af7

* commit '0fec180af7752f601be1508d4f64029f076281a1':
Add runtime permissions CTS tests

Change-Id: I70a53cdb55da3d39f24f53c137094b70d693e8b5
0fec180af7752f601be1508d4f64029f076281a1 03-May-2016 Svetoslav Ganov <svetoslavganov@google.com> Merge "Add runtime permissions CTS tests" into nyc-dev
1a761d37d96c42714a2f758f5194c3da836e4619 27-Apr-2016 Svet Ganov <svetoslavganov@google.com> Add runtime permissions CTS tests

In order to confirm the fix of b/28347872 we needed a CTS
test suite to make sure nothing is borken by the fix.

bug:28440521

Change-Id: I8e2bcd51287a38fec5794b007bcf64bbe8a807c3
ppsecurity/src/android/appsecurity/cts/PermissionsHostTest.java
ppsecurity/test-apps/ExternalStorageApp/src/com/android/cts/externalstorageapp/CommonExternalStorageTest.java
ppsecurity/test-apps/UsePermissionApp/Android.mk
ppsecurity/test-apps/UsePermissionApp/AndroidManifest.xml
ppsecurity/test-apps/UsePermissionApp/src/com/android/cts/usepermission/MyActivity.java
ppsecurity/test-apps/UsePermissionApp/src/com/android/cts/usepermission/UsePermissionTest.java
ppsecurity/test-apps/UsePermissionApp22/Android.mk
ppsecurity/test-apps/UsePermissionApp22/AndroidManifest.xml
ppsecurity/test-apps/UsePermissionApp22/src/com/android/cts/usepermission/UsePermissionTest22.java
ppsecurity/test-apps/UsePermissionApp23/Android.mk
ppsecurity/test-apps/UsePermissionApp23/AndroidManifest.xml
ppsecurity/test-apps/UsePermissionApp23/src/com/android/cts/usepermission/BasePermissionActivity.java
ppsecurity/test-apps/UsePermissionApp23/src/com/android/cts/usepermission/BasePermissionsTest.java
ppsecurity/test-apps/UsePermissionApp23/src/com/android/cts/usepermission/UsePermissionTest23.java
ppsecurity/test-apps/UsePermissionApp24/Android.mk
ppsecurity/test-apps/UsePermissionApp24/AndroidManifest.xml
ppsecurity/test-apps/UsePermissionApp24/src/com/android/cts/usepermission/UsePermissionTest24.java
ppsecurity/test-apps/UsePermissionAppCompat/Android.mk
ppsecurity/test-apps/UsePermissionAppCompat/AndroidManifest.xml
ppsecurity/test-apps/UsePermissionAppCompat/src/com/android/cts/usepermission/UsePermissionCompatTest.java
e12f57a9ec6bcc495b9e8ff9b0e940c40bced1ca 03-May-2016 Andrii Kulian <akulian@google.com> Merge "Allow negative bounds values while parsing in CTS" into nyc-dev
am: a89992329e

* commit 'a89992329eb2abe042d9d98628eed6240606790c':
Allow negative bounds values while parsing in CTS

Change-Id: Ia76b09ce7657e3d5c5eccf652976e0cb58533da4
13708d42a5f91d04052af4e74ec7a777cbf811c4 03-May-2016 Todd Kennedy <toddke@google.com> Merge "Test intent filter priorities" into nyc-dev
am: bb5511deaf

* commit 'bb5511deafe685c8c487aad85a47142c6d5c00ef':
Test intent filter priorities

Change-Id: I87ec4e606b3ffadef42036a72129b6e711947a76
a89992329eb2abe042d9d98628eed6240606790c 03-May-2016 Andrii Kulian <akulian@google.com> Merge "Allow negative bounds values while parsing in CTS" into nyc-dev
bb5511deafe685c8c487aad85a47142c6d5c00ef 03-May-2016 Todd Kennedy <toddke@google.com> Merge "Test intent filter priorities" into nyc-dev
8ef460a243692c7c176a036539f6b13063045250 30-Mar-2016 Todd Kennedy <toddke@google.com> Test intent filter priorities

We want to ensure that filter priorities are properly adhered to.
This includes:
* generic system applications cannot obtain >0 priorities on any
intent filter
* privileged applications can obtain >0 priority on all filters
EXCEPT for those with protected actions [eg. VIEW, SEND, ...]
* upgrading an application does not allow increasing the priority
of the intent filter

Bug: 27450489
Change-Id: I6ed3019b7259a87f73b621d347933f251db4bcb3
ppsecurity/src/android/appsecurity/cts/PrivilegedUpdateTests.java
ppsecurity/test-apps/PrivilegedUpdateApp/Android.mk
ppsecurity/test-apps/PrivilegedUpdateApp/AndroidManifest.xml
ppsecurity/test-apps/PrivilegedUpdateApp/CtsShimPrivUpgrade.apk
ppsecurity/test-apps/PrivilegedUpdateApp/src/com/android/cts/privilegedupdate/PrivilegedUpdateTest.java
535521ca537301d3da191e211e263752faa73403 02-May-2016 Andrii Kulian <akulian@google.com> Allow negative bounds values while parsing in CTS

Bounds can have negative values. E.g., minimized docked stack.

Bug: 27906038
Change-Id: I34144d63a5f7126ab3ca1ed3fd0d626b400f6137
ervices/activitymanager/src/android/server/cts/WindowManagerState.java
ad41d1fc11f100ea036cadeb17ed27bf0f5a03d8 02-May-2016 Makoto Onuki <omakoto@google.com> Merge "Don\'t run DPM tests if the feature is not available." into nyc-dev
am: e83a86f820

* commit 'e83a86f8207742b7b38286308da7ee6240361ef0':
Don't run DPM tests if the feature is not available.

Change-Id: I72a209228931aaee9f23772581ccfd4083616ab9
e83a86f8207742b7b38286308da7ee6240361ef0 02-May-2016 Makoto Onuki <omakoto@google.com> Merge "Don't run DPM tests if the feature is not available." into nyc-dev
2a5f6a72ac049166c00af04c9d4087c5e3ac1a3b 02-May-2016 Makoto Onuki <omakoto@google.com> Don't run DPM tests if the feature is not available.

Bug 28452459

Change-Id: If5536563e586b571265cd43ad72f71eea149a130
evicepolicy/src/com/android/cts/devicepolicy/DeviceOwnerTest.java
bad09fb7601f6b1359ce87e27cdbd62641b57019 01-May-2016 Alex Klyubin <klyubin@google.com> Merge "Assert v2-signed APK rejected when signatures missing." into nyc-dev
am: 230f668ce9

* commit '230f668ce9ae3319feccdbdaf3ec62be021d1fed':
Assert v2-signed APK rejected when signatures missing.

Change-Id: I4eaf48fb546450c4d0cf273830507a2f2bf92d6f
230f668ce9ae3319feccdbdaf3ec62be021d1fed 01-May-2016 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Assert v2-signed APK rejected when signatures missing." into nyc-dev
213d0860189d628617c696aa5fd9b44eb0fb50f7 30-Apr-2016 Felipe Leme <felipeal@google.com> Merge "Added test for required packages whitelisted for Data Saver Mode." into nyc-dev
am: 16ae24badd

* commit '16ae24badd79bf100b26dc4e6dfb3ed649a0c3ad':
Added test for required packages whitelisted for Data Saver Mode.

Change-Id: I1916d82a0fcc883679e200f79594381d29afd6b2
16ae24badd79bf100b26dc4e6dfb3ed649a0c3ad 30-Apr-2016 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Added test for required packages whitelisted for Data Saver Mode." into nyc-dev
bf59e6625085a30130f8059598c24b0bef2749b7 29-Apr-2016 Jeff Hao <jeffhao@google.com> Merge "Add test for uses-library functionality." into nyc-dev
am: 6803fdb8ef

* commit '6803fdb8ef1893a63247d00367a58c7a906d8b11':
Add test for uses-library functionality.

Change-Id: If96b675646bd0fe69dedf937822b3f3dd7412744
fc724b707f11faedd64850e121349add68edbcb2 28-Apr-2016 Felipe Leme <felipeal@google.com> Added test for required packages whitelisted for Data Saver Mode.

Also fixed code that checks for whitelist uids, otherwise it would pass
when the required uid is missing but a superset was present (for
example, when asking for 1009 but 10090 was whitelisted).

BUG: 28431507
Change-Id: Iaaa67e586907dba215496460445ad627ba7b63c5
et/app/src/com/android/cts/net/hostside/AbstractRestrictBackgroundNetworkTestCase.java
et/app/src/com/android/cts/net/hostside/DataSaverModeTest.java
et/src/com/android/cts/net/HostsideRestrictBackgroundNetworkTests.java
6803fdb8ef1893a63247d00367a58c7a906d8b11 29-Apr-2016 Jeff Hao <jeffhao@google.com> Merge "Add test for uses-library functionality." into nyc-dev
fc31ecb8eb7e746f5f2164bde9484bd2998284c4 29-Apr-2016 Rubin Xu <rubinxu@google.com> Skip testDelegatedCertInstaller if feature is not available

Bug: 28451116
Change-Id: I94caa242c073292c0e91a449643be6569f2d043c
evicepolicy/src/com/android/cts/devicepolicy/ProfileOwnerTestApi23.java
e48c1673242c1e8b5e3f9043987aa62a55720b43 29-Apr-2016 Michal Karpinski <mkarpinski@google.com> Merge "Moving failing testRemoteBugreportWithSingleUser test to CtsVerifier" into nyc-dev
am: bfd5650281

* commit 'bfd56502810b259e5f45048cec315e2dcc42c4fb':
Moving failing testRemoteBugreportWithSingleUser test to CtsVerifier

Change-Id: Ifc0e64a16436c8343282a333ddb6d8732152c6a9
bfd56502810b259e5f45048cec315e2dcc42c4fb 29-Apr-2016 Michal Karpinski <mkarpinski@google.com> Merge "Moving failing testRemoteBugreportWithSingleUser test to CtsVerifier" into nyc-dev
744153ebe93c01cd59d459a14531061ac2f6f785 29-Apr-2016 Christopher Tate <ctate@google.com> CTS test for web link autoVerify

Host-side test that installs an apk with a known set of hosts that
it publishes http/https ACTION_VIEW handling of in an autoVerify="true"
intent filter. Both explicit hostname and wildcard host specifications
are represented.

The test observes the behavior of the system's verifier, not the
end-to-end result; and so is not subject to connectivity requirements.
In so doing it also requires that the bundled verifier behave
correctly.

Bug 27482754

Change-Id: I38c37266fa7505980b48593f3f467217f0217b76
s/Android.mk
s/src/android/os/cts/OsHostTests.java
s/test-apps/Android.mk
s/test-apps/HostLinkVerificationApp/Android.mk
s/test-apps/HostLinkVerificationApp/AndroidManifest.xml
0e9d5965121de5c8b895fb368a30f83cb456d0b6 29-Apr-2016 William Roberts <william.c.roberts@intel.com> Merge "testAllBlockDevicesAreSecure: move to host side test" am: 04b40329b2
am: 8277c776ff

* commit '8277c776ffa145ed8ca4bfe1c29726f0d42ebbf8':
testAllBlockDevicesAreSecure: move to host side test

Change-Id: I5c60784e1d3433887371988e5b8e6ea49dd79287
9023598e21e3972f6deb58fcf9864a853ca38766 05-Apr-2016 William Roberts <william.c.roberts@intel.com> testAllBlockDevicesAreSecure: move to host side test

The testAllBlockDevicesAreSecure test is broken. Having
testAllBlockDevicesAreSecure as a device side test would require
granting permissions to the untrusted_app domain, which was
undesirable.

Move this test to host side and add permissions for shell to getattr
on block devices.

bug: 28306036
Change-Id: I36566e0b28b5c8ca69dc99a49e4cf9518b8323e2
Signed-off-by: William Roberts <william.c.roberts@intel.com>
ecurity/src/android/cts/security/FileSystemPermissionTest.java
6fa82840a61621d60208c02f54e26825d65624c6 28-Apr-2016 William Roberts <william.c.roberts@intel.com> Merge "testAllCharacterDevicesAreSecure: move to host side" am: a96231f250
am: 71411643bb

* commit '71411643bb06f5811e3fdfdd54659559b57f24d0':
testAllCharacterDevicesAreSecure: move to host side

Change-Id: I9c1db49b7b67bdcdc6205c2003a0cbc47e405647
b31309adaea488cad8c3cdcd4ece21bb6f3a5eac 21-Apr-2016 Jeff Hao <jeffhao@google.com> Add test for uses-library functionality.

Relies heavily on reflection and internals.

Part of a multi-project change.

Bug: 26880306

(cherry-picked from commit 4eee53985d725bcd8536f8f236e4d2d20a14219e)

Change-Id: Icf6888b58a95e8b0bc7e80c0399be3590a188fc4
ppsecurity/src/android/appsecurity/cts/UsesLibraryHostTest.java
ppsecurity/test-apps/UsesLibraryApp/Android.mk
ppsecurity/test-apps/UsesLibraryApp/AndroidManifest.xml
ppsecurity/test-apps/UsesLibraryApp/src/com/android/cts/useslibrary/UsesLibraryTest.java
f0d9375f6bb9365b651ee2c26aceacd16621cd1d 28-Apr-2016 Jason Monk <jmonk@google.com> Don't run QS tests on TVs/Watches

Change-Id: I310df473f1d26e0fecef9ff4df01a0edc3a128c2
Fixes: 28349812
ystemui/src/android/host/systemui/ActiveTileServiceTest.java
ystemui/src/android/host/systemui/BaseTileServiceTest.java
ystemui/src/android/host/systemui/TileServiceTest.java
6169437b960f4efe35b5e6aee67a088804f14910 28-Apr-2016 Alex Klyubin <klyubin@google.com> Merge "Fix bugs in RSA v2-signed APKs used in CTS." into nyc-dev
da91df1ce6e5d3663d7944891d7e74a7113d7d56 27-Apr-2016 Alex Klyubin <klyubin@google.com> Assert v2-signed APK rejected when signatures missing.

This asserts that a v2-signed APK is rejected at install time if one
of the signers does not offer any signatures (or any supported
signatures).

Bug: 28426277
Change-Id: I1a1fcaf4718b2045adc1b3546ea95bee3813d890
ppsecurity/res/pkgsigverify/v2-only-two-signers-second-signer-no-sig.apk
ppsecurity/res/pkgsigverify/v2-only-two-signers-second-signer-no-supported-sig.apk
ppsecurity/src/android/appsecurity/cts/PkgInstallSignatureVerificationTest.java
a91aed395de0dc9f3c09d874cac1c4e139749d85 27-Apr-2016 Alex Klyubin <klyubin@google.com> Fix bugs in RSA v2-signed APKs used in CTS.

CTS test PkgInstallSignatureVerificationTest asserts that APK
signature verification works as expected when installing APKs. Two of
the APK files used by the test have issues:
* v2-only-with-rsa-pkcs1-sha256-2048.apk -- signed with RSA-PSS with
SHA-512 instead of RSA-PKCS1 with SHA-256.
* v2-only-with-rsa-pkcs1-sha256-4096.apk -- signed with RSA-PSS with
SHA-512 instead of RSA-PKCS1 with SHA-256.

This commit fixes the issues.

Bug: 28424994
Change-Id: If6797c6aaf827f4be99a18df89272a0b3b6574e7
ppsecurity/res/pkgsigverify/v2-only-with-rsa-pkcs1-sha256-2048.apk
ppsecurity/res/pkgsigverify/v2-only-with-rsa-pkcs1-sha256-4096.apk
574df88eb78de1d47595b6421e86f2a06b92ffe8 27-Apr-2016 Rubin Xu <rubinxu@google.com> Merge "Test for DevicePolicyManager.installKeyPair() variant" into nyc-dev
7a82cbfd37914e0a003bca61b4d07074e4194440 26-Apr-2016 Rubin Xu <rubinxu@google.com> Test for DevicePolicyManager.installKeyPair() variant

Add a new test to cover installKeyPair() variant which installs a
client certificate chain.

Bug: 28289854
Change-Id: Iec8f1745631f08bb260a03b0d6b675e812e5a186
evicepolicy/app/DeviceOwner/assets/ca.conf
evicepolicy/app/DeviceOwner/assets/generate-client-cert-chain.sh
evicepolicy/app/DeviceOwner/assets/user-cert-chain.crt
evicepolicy/app/DeviceOwner/assets/user-cert-chain.key
evicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/KeyManagementTest.java
c5f8d14918579d1589017fc75fad836b70b43191 27-Apr-2016 Ricky Wai <rickywai@google.com> Fix enterprise contacts APIs naming and docs

Bug: 28295752
Change-Id: I9c1df1fc1eb5b5e914ea3da4643484aa950baf4b
evicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/ContactsTest.java
b01c8c44ca6b13704c449a0343ad28343d2214db 27-Apr-2016 Andrii Kulian <akulian@google.com> Merge "Fix command order in testTranslucentActivityOverDockedStack" into nyc-dev
cb110945359143235bddb765ee3bce10fd546859 26-Apr-2016 Andrii Kulian <akulian@google.com> Fix finding task id in CTS

"am stack list" command now prints also activity that is on top
of stack for each entry.
ActivityManagerTestBase#getActivityTaskId chose incorrect task id if
topActivity of some entry contained name of target activity.

Bug: 27906038
Change-Id: I338658b1f82a9b8b2dd78e25b470a501fac1a59b
ervices/activitymanager/src/android/server/cts/ActivityManagerTestBase.java
ba2dcb52cb97033f6021e474dc4e355bdead6f15 26-Apr-2016 Andrii Kulian <akulian@google.com> Merge "Fix CTS failures on fugu" into nyc-dev
e5568ab58b78b17b1a6e4a3656f432e753e4324a 26-Apr-2016 Todd Kennedy <toddke@google.com> Merge "Test install without restart" into nyc-dev
0e3c0dc9685ea026afe0bb8061a14c1c4db78e4c 26-Apr-2016 Robin Lee <rgl@google.com> Merge "Keep KeyManagementActivity alive for longer" into nyc-dev
b689ddc9fbe8a4ffdbf96220b33d13d7096856dd 26-Apr-2016 Andrii Kulian <akulian@google.com> Fix command order in testTranslucentActivityOverDockedStack

As we're now always showing recents after moving task to docked stack,
we need to launch something in fullscreen stack only after docked is
created.
Also fixed incorrect usages of launchActivityToSide.

Bug: 27906038
Change-Id: I0cefd6f6f0621be163fbf84e63b1945992bb8267
ervices/activitymanager/src/android/server/cts/ActivityManagerActivityVisiblityTests.java
ervices/activitymanager/src/android/server/cts/ActivityManagerDockedStackTests.java
026dc5dcac05d901e1105304f239e89a06d9613f 23-Apr-2016 Andrii Kulian <akulian@google.com> Fix CTS failures on fugu

1. Correctly restore user_rotation after each test.
2. Remove DEBUG guard for some important logs.

Bug: 27906038
Change-Id: I532720aa1c3ca2628805980d18c3dbdaaac04279
ervices/activitymanager/src/android/server/cts/ActivityAndWindowManagersState.java
ervices/activitymanager/src/android/server/cts/ActivityManagerState.java
ervices/activitymanager/src/android/server/cts/ActivityManagerTestBase.java
ervices/activitymanager/src/android/server/cts/StateLogger.java
ervices/activitymanager/src/android/server/cts/WindowManagerState.java
f4ad4fc52f71d1e15af296a5f3e44cfacaf00c36 25-Apr-2016 Michal Karpinski <mkarpinski@google.com> Merge "Fix CTS testOrganizationInfo()" into nyc-dev
7850b90263745d8c824bee427e30fe83cc77ed44 25-Apr-2016 Robin Lee <rgl@google.com> Keep KeyManagementActivity alive for longer

The activity can be gone by the time binding succeeds.

Change-Id: Ic23564a6386f545ae66f7a39b76a63dc3ad041c7
Fix: 28372046
evicepolicy/app/DeviceOwner/AndroidManifest.xml
evicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/KeyManagementActivity.java
3f071d64780d4598023a4fcbd3b695c8e814a979 25-Apr-2016 Michal Karpinski <mkarpinski@google.com> Fix CTS testOrganizationInfo()

Bug: 28293489
Change-Id: I9afbb9ececc60f3401fa9380073efd373792eff2
evicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/OrganizationInfoTest.java
evicepolicy/src/com/android/cts/devicepolicy/ManagedProfileTest.java
32514ec1fb877f89b80d880c6ec99a36d79ec599 25-Apr-2016 Michal Karpinski <mkarpinski@google.com> Run testCannotClearProfileOwner() on managed profile userId, rather than primary userId.

Bug: 28294407
Change-Id: I66143b49612553c0fcb839e76d4ea413beb9092b
evicepolicy/src/com/android/cts/devicepolicy/MixedManagedProfileOwnerTest.java
8e9105e40d96799593a3e4fa4b42ccdf9ec1b0c3 22-Apr-2016 Jorim Jaggi <jjaggi@google.com> Merge "Add CTS for translucent activity in docked stack" into nyc-dev
dc56ccf40747fed0aeda565bf802070fdea046cd 22-Apr-2016 Jorim Jaggi <jjaggi@google.com> Add CTS for translucent activity in docked stack

Bug: 27715071
Change-Id: I9b18e3e375e48237b84fdf465fb65a167cb94eb5
ervices/activitymanager/app/AndroidManifest.xml
ervices/activitymanager/app/src/android/server/app/TranslucentActivity.java
ervices/activitymanager/src/android/server/cts/ActivityManagerActivityVisiblityTests.java
7992dfc42428eeed6ebef200c8bb47b32e65110a 22-Apr-2016 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Fixed testAudioRestriction for managed profile owner." into nyc-dev
973f69303f0d2c27e347ca6c02abe642135e0786 22-Apr-2016 Andrii Kulian <akulian@google.com> Merge "Don't always check focused window in CTS" into nyc-dev
1f8d6e865939d4ca00157216f70edd02eadc1cac 22-Apr-2016 Chad Brubaker <cbrubaker@google.com> Merge "Rewrite X509TrustManagerExtensionsTest" into nyc-dev
d024365293b05aaa94b9015a27702b7d1ce7a0c6 22-Apr-2016 Michal Karpinski <mkarpinski@google.com> Moving failing testRemoteBugreportWithSingleUser test to CtsVerifier

Due to notification dismissal failures that mechanism has been removed
and the test has been replaced with a relevant test in CtsVerifier.

Bug: 27727880
Change-Id: I6712630e6019895d7064321bb39ea582ffba1720
evicepolicy/app/DeviceOwner/Android.mk
evicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/RemoteBugreportTest.java
evicepolicy/src/com/android/cts/devicepolicy/DeviceOwnerTest.java
6b15fbbd5b6fa35ba9daf8229ffdfb126d694703 13-Apr-2016 Oleksandr Peletskyi <peletskyi@google.com> Fixed testAudioRestriction for managed profile owner.

Disabled testAudioRestriction for managed profile, because
DISALLOW_UNMUTE_MICROPHONE can only be set by device owners
and profile owners on the primary user. Added/enabled
tests for DISALLOW_ADJUST_VOLUME. Also added permission
to run AudioManager.setMicrophoneMute().

BUG:27743508
Change-Id: Ieb5aeb07fc352bd1de7b67c61a46b0198ba38237
evicepolicy/app/DeviceAndProfileOwner/latest/AndroidManifest.xml
evicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/AudioRestrictionTest.java
evicepolicy/src/com/android/cts/devicepolicy/MixedManagedProfileOwnerTest.java
ab72e386268e871c8aca4c364c382f6c970adb4b 22-Apr-2016 Oleksandr Peletskyi <peletskyi@google.com> Merge "Fixed testDisallowSetWallpaper_allowed CTS test." into nyc-dev
8de4a1468f121bf1befe0eb9ac695499ba0243d7 22-Apr-2016 Daniel Xie <dxie@google.com> Merge "Use the primary external storage for gift tests" into nyc-dev
e72d82e61b3410351902650a256466064e1116c6 19-Apr-2016 Todd Kennedy <toddke@google.com> Test install without restart

Bug: 27780548
Change-Id: I04ded2d964ff82a68a8758d4dfb9bd0b866e82f6
ppsecurity/src/android/appsecurity/cts/SplitTests.java
ppsecurity/test-apps/NoRestartApp/Android.mk
ppsecurity/test-apps/NoRestartApp/AndroidManifest.xml
ppsecurity/test-apps/NoRestartApp/feature/Android.mk
ppsecurity/test-apps/NoRestartApp/feature/AndroidManifest.xml
ppsecurity/test-apps/NoRestartApp/feature/res/layout/no_restart_feature_activity.xml
ppsecurity/test-apps/NoRestartApp/feature/res/values/strings.xml
ppsecurity/test-apps/NoRestartApp/feature/src/com/android/cts/norestart/feature/NoRestartFeatureActivity.java
ppsecurity/test-apps/NoRestartApp/res/layout/no_restart_activity.xml
ppsecurity/test-apps/NoRestartApp/res/values/strings.xml
ppsecurity/test-apps/NoRestartApp/src/com/android/cts/norestart/NoRestartActivity.java
ppsecurity/test-apps/SplitApp/res/values/values.xml
ppsecurity/test-apps/SplitApp/src/com/android/cts/splitapp/SplitAppTest.java
7a9c0418f5153976aa47177ed928289d0804dc29 24-Mar-2016 William Roberts <william.c.roberts@intel.com> testAllCharacterDevicesAreSecure: move to host side

Move testAllCharacterDevicesAreSecure() to a host side test.
Currently, this CTS test is unable to enumerate devices on /dev
becuase SE Linux policy is blocking it. Rather then open this
access to untrusted_app domain, move the test host side where
shell domain shall be granted access.

bug: 28306036
Change-Id: Ie75366f0efe88a0d265d62b6cdc8014827e2e069
ecurity/src/android/cts/security/FileSystemPermissionTest.java
0523c13e2f14fea509d9c684e12a888ff19cac26 21-Apr-2016 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Consider default task minimal size in CTS" into nyc-dev
3840a459acfdd28d8dff7f732fff5b1e38b71ce7 21-Apr-2016 Oleksandr Peletskyi <peletskyi@google.com> Fixed testDisallowSetWallpaper_allowed CTS test.

Fixed testDisallowSetWallpaper_allowed CTS test. The reason of failure
was rescale of the original bitmap, which lead to failure of
pixel-by-pixel comparison.
The similar problem may appear in future testDisallowSetUserIcon_allowed.
So, the same fix applied to this test as well.

BUG: 28285898
Change-Id: Ifbc0fb02256f90ca2ced8103f092ec92c74ae348
evicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/CustomizationRestrictionsTest.java
b92f71f74af6ccfd964f2f68e54c7ac8572976cb 21-Apr-2016 Andrii Kulian <akulian@google.com> Don't always check focused window in CTS

If device was in fullscreen mode and task has moved to
docked stack, recents will be focused. In this case
it's enough to check visibility only.

Bug: 28215216
Change-Id: I35b510e68f336c5ee22647f617e1dfb9e8a32641
ervices/activitymanager/src/android/server/cts/ActivityManagerDockedStackTests.java
ervices/activitymanager/src/android/server/cts/ActivityManagerManifestLayoutTests.java
ervices/activitymanager/src/android/server/cts/ActivityManagerReplaceWindowTests.java
ervices/activitymanager/src/android/server/cts/ActivityManagerTestBase.java
fe9883f2e9025d8f86982749e631bbef14b10361 20-Apr-2016 Chad Brubaker <cbrubaker@google.com> Rewrite X509TrustManagerExtensionsTest

X509TrustManagerExtensionsTest used internal implementation details to
test X509TrustManagerExtensions#isUserAddedCertificate, these
implementation details are no longer the same and so this test failed to
catch the API being broken and then incorrectly flagged the fixed API as
broken.

To ensure that isUserAddedCertificate is properly covered the tests for
the API are split into two places: X509TrustManagerExtensionsTest covers
tests for the default case where there are no added CAs and
CaCertManagementTest to test the behavior when CAs have been added.

Bug:28262103
Change-Id: I14f3211c277fdc9c8bfc3d4ac932be375961fa28
evicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/CaCertManagementTest.java
361470d36135f893594908a4975a4a7644586101 19-Apr-2016 Johan Redestig <johan.redestig@sonymobile.com> Use the primary external storage for gift tests

Only use the primary external storage paths to verify the
WRITE_EXTERNAL_STORAGE permission. Apps should not granted
write permission to secondary external storage based on
the WRITE_EXTERNAL_STORAGE permission.

Bug: 28240400
Change-Id: Iecd50dd63c630522424046e1323c8673a29694d3
ppsecurity/test-apps/ExternalStorageApp/src/com/android/cts/externalstorageapp/CommonExternalStorageTest.java
23630f2965bbd257df48d4c8d4f3094e19330e1e 04-Apr-2016 Lenka Trochtova <ltrochtova@google.com> DO NOT MERGE: Fix the profile-wifi-cleanup test by increasing
the timeout.

The removal of wifi config takes sometimes very long time.
The test hasn't been waiting long enough for it to complete
and it has been failing as a result.

BUG: 27732922

Change-Id: I749ab9dabc6021c5e737c9262361017db81cb1f4
evicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/WifiTest.java
eafe28494dfc8cc03cad092ff0562085fd27794d 16-Apr-2016 Dongwon Kang <dwkang@google.com> Merge "TIF: Add TvInputManagerHostTest to test TvInputCallback#onInputUpdated" into nyc-dev
92e842b96673a33d54cf5f0add985b79f2aa3b96 15-Apr-2016 Andrii Kulian <akulian@google.com> Consider default task minimal size in CTS

Some CTS tests that required task resizing were failing
because default minimal task size was not considered.
This CL computes target dimensions considering default minimal
task size and compares real task size with them when needed.

Bug: 28177271
Change-Id: I7dd1d337662c9d4f54ebf1cafc3a09d00edaf350
ervices/activitymanager/src/android/server/cts/ActivityAndWindowManagersState.java
ervices/activitymanager/src/android/server/cts/ActivityManagerDockedStackTests.java
ervices/activitymanager/src/android/server/cts/ActivityManagerManifestLayoutTests.java
ervices/activitymanager/src/android/server/cts/ActivityManagerState.java
c9ba4546bf306f965583648c4b75a55cc5e0f047 14-Apr-2016 Jiabin <jiabin@google.com> TIF: Add TvInputManagerHostTest to test TvInputCallback#onInputUpdated

Bug: 27344945
Change-Id: I644dac13e23aafc475004bbb66aed5218b9ff71a
v/Android.mk
v/AndroidTest.xml
v/app/Android.mk
v/app/AndroidManifest.xml
v/app/res/xml/stub_tv_input_service.xml
v/app/src/com/android/cts/tv/hostside/StubSetupActivity.java
v/app/src/com/android/cts/tv/hostside/StubTvInputService.java
v/app2/Android.mk
v/app2/AndroidManifest.xml
v/app2/src/com/android/cts/tv/hostside/app2/TvViewMonitorActivity.java
v/src/com/android/cts/tv/TvInputManagerHostTest.java
73a48a52c31bba90aa59a48dad3e35df5c3aeb53 15-Apr-2016 Tony Mak <tonymak@google.com> Merge "Cts for xxxTrustAgentConfiguration for DO and PO cases" into nyc-dev
c0dbf1f4c92a9b7241bb77463e7ee895de0ce445 14-Apr-2016 Felipe Leme <felipeal@google.com> Changed order of metered network check.

BUG: 27808364
Change-Id: I8a1088673cdd2c310a787a0b0708ad58876e9ac0
et/app/src/com/android/cts/net/hostside/AbstractRestrictBackgroundNetworkTestCase.java
3a5a588d6aaeb09d936ee2137c323d32bd583332 14-Apr-2016 Felipe Leme <felipeal@google.com> Improvements on test case setup.

- On hostside, checks if wi-fi is on instead of checking for connectivity (which can be very slow).
- Don't automatically reset metered network on superclass' tearDown().
- Make sure tearDown() cleans up all state changes.

BUG: 27808364
Change-Id: I4818047c5fb8f6f430b0aab5ecfa77717f860db3
et/app/src/com/android/cts/net/hostside/AbstractRestrictBackgroundNetworkTestCase.java
et/app/src/com/android/cts/net/hostside/BatterySaverModeTest.java
et/app/src/com/android/cts/net/hostside/DataSaverModeTest.java
et/src/com/android/cts/net/HostsideNetworkTestCase.java
a15c1f4c622df20f233cd46e62ec0258e8c41344 14-Apr-2016 Tony Mak <tonymak@google.com> Cts for xxxTrustAgentConfiguration for DO and PO cases

Change-Id: I43213c7b799b8fb2c4ccd4472747ba0361fa5a92
Fixes: 28184752
evicepolicy/app/DeviceAndProfileOwner/res/xml/device_admin.xml
evicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/TrustAgentInfoTest.java
evicepolicy/src/com/android/cts/devicepolicy/DeviceAndProfileOwnerTest.java
a57b6e8f4752a5fb6694854fa633edc8665caf7a 14-Apr-2016 Andrii Kulian <akulian@google.com> Merge "Gate window and activity manager state logging in CTS" into nyc-dev
71205ff599e0bfb8cac8f9c2616bda4b7c5b798e 13-Apr-2016 Sudheer Shanka <sudheersai@google.com> Merge "Update the usage of DPM support message APIs." into nyc-dev
705e73579af3f211d64f5c3fa9d6beef5ab0e0fb 13-Apr-2016 Andrii Kulian <akulian@google.com> Gate window and activity manager state logging in CTS

This adds DEBUG flag to gate logging in ActivityManagerState and
WindowManagerState classes in CTS.

Bug: 27528142
Change-Id: I9d184067c52824eae42d43fd519707098b4d88e7
ervices/activitymanager/src/android/server/cts/ActivityAndWindowManagersState.java
ervices/activitymanager/src/android/server/cts/ActivityManagerState.java
ervices/activitymanager/src/android/server/cts/StateLogger.java
ervices/activitymanager/src/android/server/cts/WindowManagerState.java
fddddbee23b424ee787288f9662143a2fcc0fe24 13-Apr-2016 Tony Mak <tonymak@google.com> Merge "CTS for xxxTrustAgentConfiguration" into nyc-dev
a33b25d40e355d78cc671d22689d18a57915c503 13-Apr-2016 Abhijith Shastry <ashastry@google.com> Merge "Revert "Disable package verifier in Number blocking hostside tests."" into nyc-dev
13466b23edac4fde968a6318122d0e939bcd0d38 13-Apr-2016 Tony Mak <tonymak@google.com> CTS for xxxTrustAgentConfiguration

Bug: 28039032
Change-Id: I946256b5fc50ef1559e264e2ab2a1992a4ae1b27
evicepolicy/app/ManagedProfile/res/xml/device_admin.xml
evicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/BaseManagedProfileTest.java
evicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/TrustAgentInfoTest.java
evicepolicy/src/com/android/cts/devicepolicy/ManagedProfileTest.java
d4a5c973f9c6fad1a05eeddf35a4299c12edc436 13-Apr-2016 Michal Karpinski <mkarpinski@google.com> Merge "Adjusting CTS test after API change to DPM#getOrganizationName()" into nyc-dev
f1439153bbe4d0e67eecdc08aa47f4fabbf47d78 13-Apr-2016 Kenny Guy <kennyguy@google.com> Merge "Stop test users before removing them." into nyc-dev
e341447f45b8e3dceac4ee7e63b78571dfa139a1 12-Apr-2016 Abhijith Shastry <ashastry@google.com> Revert "Disable package verifier in Number blocking hostside tests."

This reverts commit 63d3f8f6485f397cf9d89829359e90fbb409c63b.

Change-Id: I51c7fa8d9a2c29fa70c8e24920ef4111ab5e4517
BUG: 28075593
umberblocking/src/com/android/cts/numberblocking/hostside/NumberBlockingTest.java
9f10371b2c3b7a5dfe3aae23b3d3d4376391d1f9 12-Apr-2016 dcashman <dcashman@google.com> Add debuggerd:signaller to allowed debuggerd domain cmds.

commit: f3dde2f869801f2b5f5fb9cd9ee1a9356a0a1726 added cmdnames for
debuggerd signal-sending processes which currently run in the debuggerd
domain. Add them to the list of allowed processes.

Bug: 28062765
Change-Id: I03467c8af50d41855fed4add3fc9d3e4ef443948
ecurity/src/android/security/cts/SELinuxHostTest.java
2c7ae49abf836e46a9dcd733e6b96abb1dee0be8 12-Apr-2016 Michal Karpinski <mkarpinski@google.com> Adjusting CTS test after API change to DPM#getOrganizationName()

Bug: 27531295
Change-Id: I6c0ab165d92df38986578b8e27ef3665c127461d
evicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/OrganizationInfoTest.java
ac7a839a34a919c90629b525077780e9ae7f2b8b 12-Apr-2016 Kenny Guy <kennyguy@google.com> Stop test users before removing them.

This allows tests to wait for the user to be
stopped, hopefully making the test more reliable.
Also only block removing primary user and user 0
rather than other users present at the start of
the test so if a user is left around following
tests recover.

Bug: 28027468
Change-Id: I747dfb795d5f4b32587bda782d8f4ec17d912f7d
evicepolicy/src/com/android/cts/devicepolicy/BaseDevicePolicyTest.java
71c3eff26d58a2ed157c726838771951cfad6068 12-Apr-2016 Sudheer Shanka <sudheersai@google.com> Update the usage of DPM support message APIs.

Bug: 27531295
Change-Id: Id7628173d19c39f79429a04d483d0d5571bf2985
evicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/SupportMessageTest.java
6b208de106480b3ff53dbd69b7e1541616fae0bd 11-Apr-2016 Benjamin Franz <bfranz@google.com> Merge "Add feature check to testPackageInstallUserRestrictions" into marshmallow-cts-dev am: 8327934 am: 42a3ed3 am: 744b7b6 am: bc765b9
am: f911a87

* commit 'f911a87e023e83cbcb1907a744f3d50f014e3e44':
Add feature check to testPackageInstallUserRestrictions

Change-Id: Ic80f530e2e2961c2480b7ce1da2aaa8a943e906d
640bc1b7edb8b0352148462bd60794f82f5c5120 11-Apr-2016 Abhijith Shastry <ashastry@google.com> Merge "Disable package verifier in Number blocking hostside tests." into nyc-dev
63d3f8f6485f397cf9d89829359e90fbb409c63b 11-Apr-2016 Abhijith Shastry <ashastry@google.com> Disable package verifier in Number blocking hostside tests.

Without this installing the test apk for secondary users fails when preconditions are skipped.
BUG: 28075593

Change-Id: I13d38b8c375b5f394b2a5605bcff74515ebbb44d
umberblocking/src/com/android/cts/numberblocking/hostside/NumberBlockingTest.java
42a3ed325909cc8d486ba50657aff5090dfe5f41 11-Apr-2016 Benjamin Franz <bfranz@google.com> Merge "Add feature check to testPackageInstallUserRestrictions" into marshmallow-cts-dev
am: 8327934

* commit '83279341c3bf46cc8fa276562c109f5e5f701f89':
Add feature check to testPackageInstallUserRestrictions

Change-Id: I5aaed425ef078517c48a0197f7985d3a78f8a535
27a5c01fa821e1af5e69e1e0b1585f3c7e37f05c 11-Apr-2016 Keisuke Hasegawa <hasegawa.keisuke@sharp.co.jp> Merge "patch for the BYOD test testManagedContacts" into marshmallow-cts-dev
am: 2e4bce4

* commit '2e4bce462e110fe31818f29d6669a1337406441d':
patch for the BYOD test testManagedContacts

Change-Id: I92d0705b8e982a26cbead119ba459c8dc8cf4e75
83279341c3bf46cc8fa276562c109f5e5f701f89 11-Apr-2016 Daniel Xie <dxie@google.com> Merge "Add feature check to testPackageInstallUserRestrictions" into marshmallow-cts-dev
388969bdee6034cc78bb78bbf3a4506adec3a27e 11-Mar-2016 Keisuke Hasegawa <hasegawa.keisuke@sharp.co.jp> patch for the BYOD test testManagedContacts

In this test,
the work profile is stored to system before the test.
But account for this test is not registered to account data base.

modification:
1.add account registration part to testAddTestAccount() in class ContactsTest.
2.add account deletion part to removeAllTestContactsInProfile().
3.add new classes AccountAuthenticator and AccountService

Change-Id: I3b7a05227ea789f8c1c766445558d882151105b9
evicepolicy/app/ManagedProfile/AndroidManifest.xml
evicepolicy/app/ManagedProfile/res/xml/authenticator.xml
evicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/AccountAuthenticator.java
evicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/AccountService.java
evicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/ContactsTest.java
evicepolicy/src/com/android/cts/devicepolicy/ManagedProfileTest.java
25411e4d1ff01e0d0d4949268b119bdfa508b493 11-Apr-2016 Jeff Sharkey <jsharkey@android.com> Give vold enough time to update keys.

Bug: 26498834
Change-Id: I4f689fece82126d12b9b390ef1a4cedbc3cbea08
ppsecurity/src/android/appsecurity/cts/DirectBootHostTest.java
921a596e0a1635690b7d3f16c847ad074987a6ca 08-Apr-2016 Jason Monk <jmonk@google.com> Merge "Follow API changes for TileService" into nyc-dev
a59ea904ee1b25d5c83fe49590f0b19ae8aa4a4e 07-Apr-2016 Jason Monk <jmonk@google.com> Follow API changes for TileService

Bug: 28043969
Change-Id: Ia5fc3ea829193e46b98936215f97f13dcc72e871
ystemui/app/AndroidManifest.xml
ystemui/app/src/android/systemui/cts/TestActiveTileService.java
ystemui/app/src/android/systemui/cts/TestTileService.java
f1b225ae660ef4fddf5e0e4b9b22bbbdf35b379b 07-Apr-2016 Gaurav Mishra <mishragaurav@google.com> CTS: Fix TaskSwitchingTest

Add write permissions to the device side android project.

Bug: 27827772
Bug: 27925818
Change-Id: If3f899bbfbdf035d43172e254b435e5fe7825096
i/control/AndroidManifest.xml
1bd1db50e348a89cce3114a3306a11d8d0e94439 05-Apr-2016 Michal Karpinski <mkarpinski@google.com> [CTS] Fix flaky remote bugreport cancelling mechanism

Attempt to locate the notification by scrolling down in the notification area.

Bug: 27727880
Change-Id: I7cc794fe1df382f26d048d67c77f400e9f193143
evicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/RemoteBugreportTest.java
c307ec33acf107d7388e42a41c4543dab79de00c 02-Apr-2016 Craig Donner <cdonner@google.com> Adds VR high-performance temperature CTS test.

Bug: 27934667
Change-Id: I45108565621aa9e4232e33fb369834dd18d4a451
evicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/VrTemperatureTest.java
evicepolicy/src/com/android/cts/devicepolicy/DeviceOwnerTest.java
d9b568d86872f69dacbe467abe0683e4a4af1e43 06-Apr-2016 Benjamin Franz <bfranz@google.com> Add feature check to testPackageInstallUserRestrictions

The test was previously failing on Android TV, because it wasn't
checking for the feature flag.

Bug: 27949133
Change-Id: I67d64691c66d057b9dd3dc7411272e3c5bcc09ee
evicepolicy/src/com/android/cts/devicepolicy/DeviceAndProfileOwnerTest.java
d2d3572401afeb7d460c1f15d4567aafcb6f19a0 05-Apr-2016 Alex Klyubin <klyubin@google.com> Merge "Asssert that APKs signed with large RSA keys are accepted." into nyc-dev
36c3f3e8f8f1ee20ac1ea8f41b825bc762f679f8 05-Apr-2016 Lenka Trochtova <ltrochtova@google.com> Merge "Fix the profile-wifi-cleanup test by increasing the timeout." into nyc-dev
3de93d98567e0043c4ddbe1641a31e3419b0581c 04-Apr-2016 Jeff Sharkey <jsharkey@google.com> Merge "Be a bit more aggressive with storage checks." into nyc-dev
4b365260ea375f3e0a6a11c94299a005a3544626 04-Apr-2016 Alex Klyubin <klyubin@google.com> Asssert that APKs signed with large RSA keys are accepted.

This adds tests which check that APKs signed with 8192- and 16384-bit
RSA keys are accepted.

Bug: 24331392
Change-Id: I8eae7f73611030d4789b21d013077b34d456ffb1
ppsecurity/certs/pkgsigverify/rsa-16384.pk8
ppsecurity/certs/pkgsigverify/rsa-16384.x509.pem
ppsecurity/certs/pkgsigverify/rsa-8192.pk8
ppsecurity/certs/pkgsigverify/rsa-8192.x509.pem
ppsecurity/res/pkgsigverify/v1-only-with-rsa-pkcs1-md5-16384.apk
ppsecurity/res/pkgsigverify/v1-only-with-rsa-pkcs1-md5-8192.apk
ppsecurity/res/pkgsigverify/v1-only-with-rsa-pkcs1-sha1-16384.apk
ppsecurity/res/pkgsigverify/v1-only-with-rsa-pkcs1-sha1-8192.apk
ppsecurity/res/pkgsigverify/v1-only-with-rsa-pkcs1-sha224-16384.apk
ppsecurity/res/pkgsigverify/v1-only-with-rsa-pkcs1-sha224-8192.apk
ppsecurity/res/pkgsigverify/v1-only-with-rsa-pkcs1-sha256-16384.apk
ppsecurity/res/pkgsigverify/v1-only-with-rsa-pkcs1-sha256-8192.apk
ppsecurity/res/pkgsigverify/v1-only-with-rsa-pkcs1-sha384-16384.apk
ppsecurity/res/pkgsigverify/v1-only-with-rsa-pkcs1-sha384-8192.apk
ppsecurity/res/pkgsigverify/v1-only-with-rsa-pkcs1-sha512-16384.apk
ppsecurity/res/pkgsigverify/v1-only-with-rsa-pkcs1-sha512-8192.apk
ppsecurity/res/pkgsigverify/v2-only-with-rsa-pkcs1-sha256-16384.apk
ppsecurity/res/pkgsigverify/v2-only-with-rsa-pkcs1-sha256-8192.apk
ppsecurity/res/pkgsigverify/v2-only-with-rsa-pkcs1-sha512-16384.apk
ppsecurity/res/pkgsigverify/v2-only-with-rsa-pkcs1-sha512-8192.apk
ppsecurity/res/pkgsigverify/v2-only-with-rsa-pss-sha256-16384.apk
ppsecurity/res/pkgsigverify/v2-only-with-rsa-pss-sha256-8192.apk
ppsecurity/res/pkgsigverify/v2-only-with-rsa-pss-sha512-16384.apk
ppsecurity/res/pkgsigverify/v2-only-with-rsa-pss-sha512-8192.apk
ppsecurity/src/android/appsecurity/cts/PkgInstallSignatureVerificationTest.java
97220f040b20229eee77cbb52da9d1f521887128 04-Apr-2016 Jeff Sharkey <jsharkey@android.com> Be a bit more aggressive with storage checks.

Bug: 27974011
Change-Id: I9f6d604fbc06f4368170b0cabec30a25aa95c514
ppsecurity/test-apps/ExternalStorageApp/src/com/android/cts/externalstorageapp/CommonExternalStorageTest.java
ppsecurity/test-apps/ReadExternalStorageApp/src/com/android/cts/readexternalstorageapp/ReadExternalStorageTest.java
ppsecurity/test-apps/WriteExternalStorageApp/src/com/android/cts/writeexternalstorageapp/WriteExternalStorageTest.java
283400b9d7c0105b1331f4921f801013afcb7f6f 04-Apr-2016 Lenka Trochtova <ltrochtova@google.com> Fix the profile-wifi-cleanup test by increasing the timeout.

The removal of wifi config takes sometimes very long time.
The test hasn't been waiting long enough for it to complete
and it has been failing as a result.

BUG: 27732922

Change-Id: I749ab9dabc6021c5e737c9262361017db81cb1f4
evicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/WifiTest.java
6e5595a36de2fe9fa650dbeef1e855d04e8db110 03-Apr-2016 Gaurav Mishra <mishragaurav@google.com> Merge "Test Metrics Host Side Implementation." into nyc-dev
080a6f87639156faaf5783aa14f8a30b6e034809 03-Apr-2016 Jeff Sharkey <jsharkey@google.com> Merge "Flesh out direct-boot tests." into nyc-dev
d837c4602350a4d8effaca693bee79143ce80eb3 02-Apr-2016 Jeff Sharkey <jsharkey@android.com> Flesh out direct-boot tests.

These tests are designed to verify that direct-boot capable devices
conform to the public API contract.

When a direct-boot device with a secure lock screen starts, the
default data storage must be "locked" until valid user credentials
are entered. The LOCKED_BOOT_COMPLETED broadcast must be sent while
in this state, and once unlocked the USER_UNLOCKED and normal
BOOT_COMPLETED broadcasts must be sent.

This test runs and verifies three possible FBE modes: native,
emulated, and none. It sets a user PIN, and then reboots to ensure
that keys are evicted from the kernel. When finished, it restores
the device to its original state without a PIN.

Bug: 26498834
Change-Id: I57b63e5f118a5b5878080d2ec107f0406b226ab9
ppsecurity/src/android/appsecurity/cts/DirectBootHostTest.java
ppsecurity/test-apps/EncryptionApp/Android.mk
ppsecurity/test-apps/EncryptionApp/AndroidManifest.xml
ppsecurity/test-apps/EncryptionApp/src/com/android/cts/encryptionapp/AwareActivity.java
ppsecurity/test-apps/EncryptionApp/src/com/android/cts/encryptionapp/AwareProvider.java
ppsecurity/test-apps/EncryptionApp/src/com/android/cts/encryptionapp/EncryptionAppTest.java
ppsecurity/test-apps/EncryptionApp/src/com/android/cts/encryptionapp/UnawareActivity.java
ppsecurity/test-apps/EncryptionApp/src/com/android/cts/encryptionapp/UnawareProvider.java
ppsecurity/test-apps/SplitApp/AndroidManifest.xml
ppsecurity/test-apps/SplitApp/src/com/android/cts/splitapp/BaseBootReceiver.java
ppsecurity/test-apps/SplitApp/src/com/android/cts/splitapp/BootReceiver.java
ppsecurity/test-apps/SplitApp/src/com/android/cts/splitapp/LockedBootReceiver.java
ppsecurity/test-apps/SplitApp/src/com/android/cts/splitapp/MyActivity.java
204f3e835668d606ae175bc55e3af3223e106364 02-Apr-2016 Felipe Leme <felipeal@google.com> Merge "Refactored tests to use 'list wifi-networks'." into nyc-dev
79ca363ba862558a81892272adf5809d76e1fceb 02-Apr-2016 Felipe Leme <felipeal@google.com> Refactored tests to use 'list wifi-networks'.

BUG: 27808364
Change-Id: Ife3f35e9c3c6a4285b671eeb7d7d0223be908a1b
et/app/src/com/android/cts/net/hostside/AbstractRestrictBackgroundNetworkTestCase.java
d00162cf0d7426704475f3acaf726afbec0aee7d 01-Apr-2016 Alex Klyubin <klyubin@google.com> Merge "CTS tests for APK signature verification during install." into nyc-dev
18c83691efefd162b3bbf5f134794538d9b76aed 01-Apr-2016 Daniel Cashman <dcashman@google.com> Merge "Fix SELinuxHostTest for ctsv1." into nyc-dev
9cf20dff86d7c7c0943a950ef7c1f1b6fe7acd17 01-Apr-2016 dcashman <dcashman@google.com> Fix SELinuxHostTest for ctsv1.

Use MigrationHelper instead of CompatibilityBuildHelper.

Bug: 27959253
Change-Id: I0078311d0e1f05fdcc9ed099b371c7a37bdf38cc
ecurity/Android.mk
ecurity/src/android/security/cts/SELinuxHostTest.java
4d6e70b1da8402330e1a7626461f8a40405d9dd1 01-Apr-2016 Alex Klyubin <klyubin@google.com> CTS tests for APK signature verification during install.

This commit adds CTS tests that install various APKs to assert that
APK signature verification logic is working as expected. The tests
are heavily biased towards APK Signature Scheme v2 (aka v2 signature
scheme) because JAR Signature Scheme (aka v1 signature scheme) is
indirectly exercised elsewhere in CTS.

Bug: 24331392
Change-Id: Icd9d8e7282c09b82c39a53f66cd40a8f5fa6a114
ppsecurity/Android.mk
ppsecurity/certs/pkgsigverify/dsa-1024.pk8
ppsecurity/certs/pkgsigverify/dsa-1024.x509.pem
ppsecurity/certs/pkgsigverify/dsa-2048.pk8
ppsecurity/certs/pkgsigverify/dsa-2048.x509.pem
ppsecurity/certs/pkgsigverify/dsa-3072.pk8
ppsecurity/certs/pkgsigverify/dsa-3072.x509.pem
ppsecurity/certs/pkgsigverify/ec-p256.pk8
ppsecurity/certs/pkgsigverify/ec-p256.x509.pem
ppsecurity/certs/pkgsigverify/ec-p384.pk8
ppsecurity/certs/pkgsigverify/ec-p384.x509.pem
ppsecurity/certs/pkgsigverify/ec-p521.pk8
ppsecurity/certs/pkgsigverify/ec-p521.x509.pem
ppsecurity/certs/pkgsigverify/rsa-1024.pk8
ppsecurity/certs/pkgsigverify/rsa-1024.x509.pem
ppsecurity/certs/pkgsigverify/rsa-2048.pk8
ppsecurity/certs/pkgsigverify/rsa-2048.x509.pem
ppsecurity/certs/pkgsigverify/rsa-3072.pk8
ppsecurity/certs/pkgsigverify/rsa-3072.x509.pem
ppsecurity/certs/pkgsigverify/rsa-4096.pk8
ppsecurity/certs/pkgsigverify/rsa-4096.x509.pem
ppsecurity/res/pkgsigverify/README.txt
ppsecurity/res/pkgsigverify/original.apk
ppsecurity/res/pkgsigverify/two-signers-second-signer-v2-broken.apk
ppsecurity/res/pkgsigverify/two-signers.apk
ppsecurity/res/pkgsigverify/v1-only-two-signers.apk
ppsecurity/res/pkgsigverify/v1-only-with-dsa-sha1-1024.apk
ppsecurity/res/pkgsigverify/v1-only-with-dsa-sha1-2048.apk
ppsecurity/res/pkgsigverify/v1-only-with-dsa-sha1-3072.apk
ppsecurity/res/pkgsigverify/v1-only-with-dsa-sha224-1024.apk
ppsecurity/res/pkgsigverify/v1-only-with-dsa-sha224-2048.apk
ppsecurity/res/pkgsigverify/v1-only-with-dsa-sha224-3072.apk
ppsecurity/res/pkgsigverify/v1-only-with-dsa-sha256-1024.apk
ppsecurity/res/pkgsigverify/v1-only-with-dsa-sha256-2048.apk
ppsecurity/res/pkgsigverify/v1-only-with-dsa-sha256-3072.apk
ppsecurity/res/pkgsigverify/v1-only-with-dsa-sha384-1024.apk
ppsecurity/res/pkgsigverify/v1-only-with-dsa-sha384-2048.apk
ppsecurity/res/pkgsigverify/v1-only-with-dsa-sha384-3072.apk
ppsecurity/res/pkgsigverify/v1-only-with-dsa-sha512-1024.apk
ppsecurity/res/pkgsigverify/v1-only-with-dsa-sha512-2048.apk
ppsecurity/res/pkgsigverify/v1-only-with-dsa-sha512-3072.apk
ppsecurity/res/pkgsigverify/v1-only-with-ecdsa-sha1-p256.apk
ppsecurity/res/pkgsigverify/v1-only-with-ecdsa-sha1-p384.apk
ppsecurity/res/pkgsigverify/v1-only-with-ecdsa-sha1-p521.apk
ppsecurity/res/pkgsigverify/v1-only-with-ecdsa-sha224-p256.apk
ppsecurity/res/pkgsigverify/v1-only-with-ecdsa-sha224-p384.apk
ppsecurity/res/pkgsigverify/v1-only-with-ecdsa-sha224-p521.apk
ppsecurity/res/pkgsigverify/v1-only-with-ecdsa-sha256-p256.apk
ppsecurity/res/pkgsigverify/v1-only-with-ecdsa-sha256-p384.apk
ppsecurity/res/pkgsigverify/v1-only-with-ecdsa-sha256-p521.apk
ppsecurity/res/pkgsigverify/v1-only-with-ecdsa-sha384-p256.apk
ppsecurity/res/pkgsigverify/v1-only-with-ecdsa-sha384-p384.apk
ppsecurity/res/pkgsigverify/v1-only-with-ecdsa-sha384-p521.apk
ppsecurity/res/pkgsigverify/v1-only-with-ecdsa-sha512-p256.apk
ppsecurity/res/pkgsigverify/v1-only-with-ecdsa-sha512-p384.apk
ppsecurity/res/pkgsigverify/v1-only-with-ecdsa-sha512-p521.apk
ppsecurity/res/pkgsigverify/v1-only-with-rsa-pkcs1-md5-1024.apk
ppsecurity/res/pkgsigverify/v1-only-with-rsa-pkcs1-md5-2048.apk
ppsecurity/res/pkgsigverify/v1-only-with-rsa-pkcs1-md5-3072.apk
ppsecurity/res/pkgsigverify/v1-only-with-rsa-pkcs1-md5-4096.apk
ppsecurity/res/pkgsigverify/v1-only-with-rsa-pkcs1-sha1-1024.apk
ppsecurity/res/pkgsigverify/v1-only-with-rsa-pkcs1-sha1-2048.apk
ppsecurity/res/pkgsigverify/v1-only-with-rsa-pkcs1-sha1-3072.apk
ppsecurity/res/pkgsigverify/v1-only-with-rsa-pkcs1-sha1-4096.apk
ppsecurity/res/pkgsigverify/v1-only-with-rsa-pkcs1-sha224-1024.apk
ppsecurity/res/pkgsigverify/v1-only-with-rsa-pkcs1-sha224-2048.apk
ppsecurity/res/pkgsigverify/v1-only-with-rsa-pkcs1-sha224-3072.apk
ppsecurity/res/pkgsigverify/v1-only-with-rsa-pkcs1-sha224-4096.apk
ppsecurity/res/pkgsigverify/v1-only-with-rsa-pkcs1-sha256-1024.apk
ppsecurity/res/pkgsigverify/v1-only-with-rsa-pkcs1-sha256-2048.apk
ppsecurity/res/pkgsigverify/v1-only-with-rsa-pkcs1-sha256-3072.apk
ppsecurity/res/pkgsigverify/v1-only-with-rsa-pkcs1-sha256-4096.apk
ppsecurity/res/pkgsigverify/v1-only-with-rsa-pkcs1-sha384-1024.apk
ppsecurity/res/pkgsigverify/v1-only-with-rsa-pkcs1-sha384-2048.apk
ppsecurity/res/pkgsigverify/v1-only-with-rsa-pkcs1-sha384-3072.apk
ppsecurity/res/pkgsigverify/v1-only-with-rsa-pkcs1-sha384-4096.apk
ppsecurity/res/pkgsigverify/v1-only-with-rsa-pkcs1-sha512-1024.apk
ppsecurity/res/pkgsigverify/v1-only-with-rsa-pkcs1-sha512-2048.apk
ppsecurity/res/pkgsigverify/v1-only-with-rsa-pkcs1-sha512-3072.apk
ppsecurity/res/pkgsigverify/v1-only-with-rsa-pkcs1-sha512-4096.apk
ppsecurity/res/pkgsigverify/v1-with-apk-sig-block-but-without-apk-sig-scheme-v2-block.apk
ppsecurity/res/pkgsigverify/v2-only-apk-sig-block-size-mismatch.apk
ppsecurity/res/pkgsigverify/v2-only-cert-and-public-key-mismatch.apk
ppsecurity/res/pkgsigverify/v2-only-garbage-between-cd-and-eocd.apk
ppsecurity/res/pkgsigverify/v2-only-missing-classes.dex.apk
ppsecurity/res/pkgsigverify/v2-only-no-certs-in-sig.apk
ppsecurity/res/pkgsigverify/v2-only-signatures-and-digests-block-mismatch.apk
ppsecurity/res/pkgsigverify/v2-only-truncated-cd.apk
ppsecurity/res/pkgsigverify/v2-only-two-signers.apk
ppsecurity/res/pkgsigverify/v2-only-unknown-pair-in-apk-sig-block.apk
ppsecurity/res/pkgsigverify/v2-only-with-dsa-sha256-1024-sig-does-not-verify.apk
ppsecurity/res/pkgsigverify/v2-only-with-dsa-sha256-1024.apk
ppsecurity/res/pkgsigverify/v2-only-with-dsa-sha256-2048.apk
ppsecurity/res/pkgsigverify/v2-only-with-dsa-sha256-3072.apk
ppsecurity/res/pkgsigverify/v2-only-with-ecdsa-sha256-p256-digest-mismatch.apk
ppsecurity/res/pkgsigverify/v2-only-with-ecdsa-sha256-p256-sig-does-not-verify.apk
ppsecurity/res/pkgsigverify/v2-only-with-ecdsa-sha256-p256.apk
ppsecurity/res/pkgsigverify/v2-only-with-ecdsa-sha256-p384.apk
ppsecurity/res/pkgsigverify/v2-only-with-ecdsa-sha256-p521.apk
ppsecurity/res/pkgsigverify/v2-only-with-ecdsa-sha512-p256.apk
ppsecurity/res/pkgsigverify/v2-only-with-ecdsa-sha512-p384.apk
ppsecurity/res/pkgsigverify/v2-only-with-ecdsa-sha512-p521.apk
ppsecurity/res/pkgsigverify/v2-only-with-ignorable-unsupported-sig-algs.apk
ppsecurity/res/pkgsigverify/v2-only-with-rsa-pkcs1-sha256-1024.apk
ppsecurity/res/pkgsigverify/v2-only-with-rsa-pkcs1-sha256-2048-sig-does-not-verify.apk
ppsecurity/res/pkgsigverify/v2-only-with-rsa-pkcs1-sha256-2048.apk
ppsecurity/res/pkgsigverify/v2-only-with-rsa-pkcs1-sha256-3072.apk
ppsecurity/res/pkgsigverify/v2-only-with-rsa-pkcs1-sha256-4096.apk
ppsecurity/res/pkgsigverify/v2-only-with-rsa-pkcs1-sha512-1024.apk
ppsecurity/res/pkgsigverify/v2-only-with-rsa-pkcs1-sha512-2048.apk
ppsecurity/res/pkgsigverify/v2-only-with-rsa-pkcs1-sha512-3072.apk
ppsecurity/res/pkgsigverify/v2-only-with-rsa-pkcs1-sha512-4096-digest-mismatch.apk
ppsecurity/res/pkgsigverify/v2-only-with-rsa-pkcs1-sha512-4096.apk
ppsecurity/res/pkgsigverify/v2-only-with-rsa-pss-sha256-1024.apk
ppsecurity/res/pkgsigverify/v2-only-with-rsa-pss-sha256-2048-sig-does-not-verify.apk
ppsecurity/res/pkgsigverify/v2-only-with-rsa-pss-sha256-2048.apk
ppsecurity/res/pkgsigverify/v2-only-with-rsa-pss-sha256-3072.apk
ppsecurity/res/pkgsigverify/v2-only-with-rsa-pss-sha256-4096.apk
ppsecurity/res/pkgsigverify/v2-only-with-rsa-pss-sha512-2048.apk
ppsecurity/res/pkgsigverify/v2-only-with-rsa-pss-sha512-3072.apk
ppsecurity/res/pkgsigverify/v2-only-with-rsa-pss-sha512-4096.apk
ppsecurity/res/pkgsigverify/v2-only-wrong-apk-sig-block-magic.apk
ppsecurity/res/pkgsigverify/v2-stripped-with-ignorable-signing-schemes.apk
ppsecurity/res/pkgsigverify/v2-stripped.apk
ppsecurity/src/android/appsecurity/cts/PkgInstallSignatureVerificationTest.java
ppsecurity/test-apps/tinyapp/Android.mk
ppsecurity/test-apps/tinyapp/AndroidManifest.xml
ppsecurity/test-apps/tinyapp/res/values/strings.xml
ppsecurity/test-apps/tinyapp/src/android/appsecurity/cts/tinyapp/MainActivity.java
f658604b46476894b72027a57d792cca3937fc62 01-Apr-2016 Felipe Leme <felipeal@google.com> Merge "Moved wi-fi switch to hostside." into nyc-dev
0ed233937e690346d6ea01699e76b43d79e2ad31 01-Apr-2016 Polina Bondarenko <pbond@google.com> Merge "Fixed failure in HardwarePropertiesManagerTest." into nyc-dev
a9e88754c14a780ad3afefe038d7b26410ed92c5 01-Apr-2016 Victor Chang <vichang@google.com> Merge "CTS: getAlwaysOnVpnPackage not covered by CTS tests" into nyc-dev
d93cd5ad551d44f86f8105524ac8da7aeefa7cff 01-Apr-2016 Polina Bondarenko <pbond@google.com> Fixed failure in HardwarePropertiesManagerTest.

Added temp=UNDEFINED_TEMPERATURE case.

Bug: 27957186
Change-Id: I4f988c4f67ac44bc1870e402c8ec6c3a46eaef9f
evicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/HardwarePropertiesManagerTest.java
72c363a7ca7b503b875f2813f31dd4d850f96b5e 31-Mar-2016 Victor Chang <vichang@google.com> CTS: getAlwaysOnVpnPackage not covered by CTS tests

Bug: 27553776
Change-Id: I29ba98142d0dd2e8c75537bb7a1c04877f203264
evicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/AlwaysOnVpnTest.java
b654457ace42c533936de0f8d2928aa84a71ac37 01-Apr-2016 Victor Chang <vichang@google.com> Merge "Fix that inserted contacts in ManagedProfileTest uses a non-existing account" into nyc-dev
0355f69ecbf9fa1be305abb4c833167094fc5ab3 31-Mar-2016 Gaurav Mishra <mishragaurav@google.com> Test Metrics Host Side Implementation.

Bug: 27925818

Change-Id: I378b3731fed1a7aa7fcfc5587f7afb529acc569a
ample/src/android/sample/cts/SampleHostResultTest.java
9e9bb209e19be7fce1c2e84cae41b26df53a5e5d 11-Mar-2016 Keisuke Hasegawa <hasegawa.keisuke@sharp.co.jp> Fix that inserted contacts in ManagedProfileTest uses a non-existing account

The fix is similar to https://android-review.googlesource.com/#/c/207760/
but it fixes directory contact test too, which is new test in nyc

In this test,
the work profile is stored to system before the test.
But account for this test is not registered to account data base.

modification:
1.add account registration test method
2.add account deletion part to removeAllTestContactsInProfile().
3.add new classes AccountAuthenticator and AccountService

Bug: 27732834
Change-Id: I3b7a05227ea789f8c1c766445558d882151105b9
evicepolicy/app/ContactDirectoryProvider/src/com/android/cts/contactdirectoryprovider/DirectoryProvider.java
evicepolicy/app/ManagedProfile/AndroidManifest.xml
evicepolicy/app/ManagedProfile/res/xml/authenticator.xml
evicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/AccountAuthenticator.java
evicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/AccountService.java
evicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/ContactsTest.java
evicepolicy/src/com/android/cts/devicepolicy/ManagedProfileTest.java
a4fcf3587e4f62f062a1aecdfa6afa85bf22efde 31-Mar-2016 Andrei Stingaceanu <stg@google.com> Merge "AfW - suspend apps - API polish - CTS fixes" into nyc-dev
2875084b0a9525095343d5ed3084f1857e1a562c 31-Mar-2016 Felipe Leme <felipeal@google.com> Moved wi-fi switch to hostside.

BUG: 27808364
Change-Id: I89bca5f5ba90a7dc145d2ac170fd505161fd073d
et/app/src/com/android/cts/net/hostside/AbstractRestrictBackgroundNetworkTestCase.java
et/src/com/android/cts/net/HostsideNetworkTestCase.java
02960bc8312cb915cc3dd44e9a872feb14e1108c 31-Mar-2016 Alan Viverette <alanv@google.com> Merge "Avoid relying on logcat output for ThemeHostTest results" into nyc-dev
322cb2024693801f90dd8235a221e85b84af9d51 31-Mar-2016 Andrii Kulian <akulian@google.com> Merge "Refactor usages of Picture In Picture and Multi Window (2/4)" into nyc-dev
89ed37b8db00c25be28c232697af2515955a21f8 31-Mar-2016 Felipe Leme <felipeal@google.com> Merge "Minor tweaks on Scoped Directory Access: - Only allow entire directory access on non-primary volumes. - Do not display primary storage label on scoped access." into nyc-dev
a2db723e1cc17757e71ae74761e2dde7a592c625 31-Mar-2016 Felipe Leme <felipeal@google.com> Fixed build broken by bad merge.

BUG: 27324964
Change-Id: Idbe6f8237b560db31eb949971358db41ac00d530
et/app/src/com/android/cts/net/hostside/AbstractRestrictBackgroundNetworkTestCase.java
625e5b6a86c408a4ec2d5559661fd228d9db8a9f 30-Mar-2016 Felipe Leme <felipeal@google.com> Minor tweaks on Scoped Directory Access:
- Only allow entire directory access on non-primary volumes.
- Do not display primary storage label on scoped access.

BUG: 27743842
BUG: 27676858

Change-Id: I06a8192e0d43e4206a3b1e68af939d5595faa496
ppsecurity/test-apps/DocumentClient/src/com/android/cts/documentclient/ScopedDirectoryAccessClientTest.java
0d149c1081bca4026cf28942e151df04e03842a8 30-Mar-2016 Felipe Leme <felipeal@google.com> Test network restrictions while on foreground service state.

BUG: 27324964
BUG: 26776313

Change-Id: Idcd0a391333d243d17b6bd68c67becaad2b37fdd
et/app/src/com/android/cts/net/hostside/AbstractRestrictBackgroundNetworkTestCase.java
et/app/src/com/android/cts/net/hostside/BatterySaverModeNonMeteredTest.java
et/app/src/com/android/cts/net/hostside/BatterySaverModeTest.java
et/app/src/com/android/cts/net/hostside/DataSaverModeTest.java
et/app2/AndroidManifest.xml
et/app2/src/com/android/cts/net/hostside/app2/MyForegroundService.java
et/app2/src/com/android/cts/net/hostside/app2/MyService.java
f297ff0fcba818382408bb102e972d1fa4900404 26-Mar-2016 Felipe Leme <felipeal@google.com> Improved test case for blacklist access.

BUG: 27127112
BUG: 26685616

Change-Id: I8b183cdb1cf5ebbc446176a042e4196ab063f1a3
et/app/src/com/android/cts/net/hostside/DataSaverModeTest.java
f190d0c3c43c1f863c0dd159025f034b4a3dc47a 30-Mar-2016 Alan Viverette <alanv@google.com> Avoid relying on logcat output for ThemeHostTest results

Now relies on instrumentation timeout and output.

Also moves generated image compression into GenerateImagesActivity,
disables window animations so we finish a bit faster, and updates
560dpi reference images for API 23, which previously were incorrectly
labeled xxhdpi images.

Bug: 27919393
Change-Id: I033f2dd7d2c3f2b26c126aca506c8ffe1cc6dd85
heme/app/src/android/theme/app/GenerateImagesActivity.java
heme/app/src/android/theme/app/ReferenceImagesTest.java
heme/assets/23/560dpi.zip
heme/src/android/theme/cts/ComparisonTask.java
heme/src/android/theme/cts/ThemeHostTest.java
94c5aa12c50ca9d85b3f5a9b7e48652cdc73c31b 30-Mar-2016 Daniel Cashman <dcashman@google.com> Merge "Speed up SELinux host tests." into nyc-dev
4371f0014d3b78772c50236cdd1571035cb749f9 29-Mar-2016 dcashman <dcashman@google.com> Speed up SELinux host tests.

ctsv2 now allows us to tag cts-artifacts to place resources in the cts
"home dir." Place sepolicy-analyze in this directory to avoid the need
to extract it from the CtsSecurityHostTests jar on each test
invocation. This reduces runtime by approximately 95%. Also clean up
unused SELinuxNeverallowRulesTest frame code.

Adjust SELinuxHostTest to reflect the new location of sepolicy-analyze,
and move most of the file-extraction and pulling to individual tests
from the setUp() method to the methods in which they are used. This
also reduces runtime by ober 90%, even with some files still extracted
from the jar in selected tests. Leave some jar extraction for now so as
not to pollute the cts out dir for minimal gains.

Bug: 21266225
Change-Id: Iee4a7c34e48287ba8c613660b715ca641c227b8b
ecurity/Android.mk
ecurity/AndroidTest.xml
ecurity/src/android/security/cts/SELinuxHostTest.java
9076a6aebdae9ed934ef45ca4b2663ee1f3f27e8 30-Mar-2016 Jeff Sharkey <jsharkey@google.com> Merge "Only check for .nomedia in non-media dirs." into nyc-dev
caf1c9b00ace75735ab7fb09629894f0d0664118 30-Mar-2016 Jeff Sharkey <jsharkey@android.com> Only check for .nomedia in non-media dirs.

Bug: 27776845
Change-Id: Ic5fa1e795d96d35315e49f647f8282397e840cc5
ppsecurity/test-apps/ExternalStorageApp/src/com/android/cts/externalstorageapp/CommonExternalStorageTest.java
ppsecurity/test-apps/WriteExternalStorageApp/src/com/android/cts/writeexternalstorageapp/WriteExternalStorageTest.java
fd5e26c24d5d57fbfa4fc6323790dda78755e80b 30-Mar-2016 Rubin Xu <rubinxu@google.com> Merge "Replace installKeyPair API" into nyc-dev
989641ef229b69084e9d042a55ca8d4284ef83ff 30-Mar-2016 Felipe Leme <felipeal@google.com> Merge "Refactored method to get UIDs." into nyc-dev
7d2a2a73f56fa4a653cd9fbd4d9fe22d01a404a0 29-Mar-2016 Felipe Leme <felipeal@google.com> Refactored method to get UIDs.

BUG: 27904062
Change-Id: Ib0d3911f40e0a5deed833f71e75abd10a224768f
et/app/src/com/android/cts/net/hostside/AbstractRestrictBackgroundNetworkTestCase.java
728bb968a33ce3d9315a9b491dcec03e6e3ab60e 30-Mar-2016 Felipe Leme <felipeal@google.com> Merge "Added sanity check to verify process state." into nyc-dev
ad73523608768b51870da35c50e118dbc9f5b7f1 30-Mar-2016 Oleksandr Peletskyi <peletskyi@google.com> Merge "CTS tests for customization user restrictions." into nyc-dev
2f03fa2a87bc636687de0f566fd1d8e646d68086 25-Feb-2016 Oleksandr Peletskyi <peletskyi@google.com> CTS tests for customization user restrictions.

Added CTS tests for DISALLOW_SET_WALLPAPER and DISALLOW_SET_USER_ICON
user restrictions.

BUG: 27353283
Change-Id: Ica9296704a45e623c0b11d6ce70b854230449440
evicepolicy/app/CustomizationApp/Android.mk
evicepolicy/app/CustomizationApp/AndroidManifest.xml
evicepolicy/app/CustomizationApp/res/raw/wallpaper.png
evicepolicy/app/CustomizationApp/src/com/android/cts/customizationapp/CustomizationTest.java
evicepolicy/app/DeviceAndProfileOwner/api23/Android.mk
evicepolicy/app/DeviceAndProfileOwner/latest/Android.mk
evicepolicy/app/DeviceAndProfileOwner/latest/AndroidManifest.xml
evicepolicy/app/DeviceAndProfileOwner/res/raw/wallpaper.png
evicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/CustomizationRestrictionsTest.java
evicepolicy/src/com/android/cts/devicepolicy/DeviceAndProfileOwnerTest.java
evicepolicy/src/com/android/cts/devicepolicy/MixedManagedProfileOwnerTest.java
ad0f9dbeb187cb3b78d4657ff7c574597a89a99c 30-Mar-2016 Rubin Xu <rubinxu@google.com> Replace installKeyPair API

Bug: 18239590
Change-Id: Ibdbe526a82c60f057065b2ae89c45f27d626b0b2
evicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/KeyManagementTest.java
201e4f3bd1ab6bf386fa2913a426ade9c57030c8 30-Mar-2016 Andrei Stingaceanu <stg@google.com> Merge "AfW custom lock screen message - API polish - CTS fixes" into nyc-dev
6ce60b8afe383111d24a9a82f037d1762435e51d 26-Mar-2016 Felipe Leme <felipeal@google.com> Added sanity check to verify process state.

BUG: 26776313
BUG: 27324964

Change-Id: I209c04d5c6d89acdac9b5bdaee5a4dbd7700c53e
et/app/src/com/android/cts/net/hostside/AbstractRestrictBackgroundNetworkTestCase.java
et/app/src/com/android/cts/net/hostside/DataSaverModeTest.java
et/src/com/android/cts/net/HostsideRestrictBackgroundNetworkTests.java
f986270bdc2fc78fec95a8f9e6e886d829846433 30-Mar-2016 Andrii Kulian <akulian@google.com> Merge "Add CTS tests for some adjacent launch cases" into nyc-dev
a7fa4dceead8b1aa1db479d431b1ffdfdbcf641c 30-Mar-2016 Andrii Kulian <akulian@google.com> Refactor usages of Picture In Picture and Multi Window (2/4)

Bug: 27365860
Change-Id: Ic334ffc90a8610803975ab765e1016f2827a3c54
ervices/activitymanager/app/src/android/server/app/AutoEnterPipActivity.java
ervices/activitymanager/app/src/android/server/app/LaunchPipOnPipActivity.java
efb523f9d5ee498717b1452bf0b05a12a8c17f2a 30-Mar-2016 Andrii Kulian <akulian@google.com> Add CTS tests for some adjacent launch cases

Adding tests for issues described in original bug:
1. Launch adjacent activity, cover it with something and
launch again - it should be brought to front.
2. Launch adjacent activity multiple times - it should
stay in adjacent stack.

Bug: 27729085
Change-Id: I9648d622c15011c6583ab8dc8aed0ce0f1d620a1
ervices/activitymanager/src/android/server/cts/ActivityManagerDockedStackTests.java
ervices/activitymanager/src/android/server/cts/ActivityManagerState.java
3f668e13aa10179955c8781a134dc8bf115819cd 29-Mar-2016 Andrii Kulian <akulian@google.com> Merge "Fix stack and task size comparison in CTS" into nyc-dev
f34a3d8b6e369c4276a4970dbc16ea0117db6212 29-Mar-2016 Jason Monk <jmonk@google.com> Merge "Increase number of retries for QS tests" into nyc-dev
4c91ce416018eff1b6ae70facf0606eee1f55d9d 29-Mar-2016 Jason Monk <jmonk@google.com> Increase number of retries for QS tests

To avoid flakiness in the ActiveTileServiceTest#testClick.

Bug: 27788004
Change-Id: Ic6c0ecd9971c653a61fb070c5e19c16b3a4fdb52
ystemui/src/android/host/systemui/BaseTileServiceTest.java
195937996df1000d61db2b5c120feb7a591c5fc5 29-Mar-2016 Michal Karpinski <mkarpinski@google.com> [CTS] Add test for enabling and disabling of security logging

Bug: 26735203
Change-Id: Icc6965ce9bd2f18086a476298513ab3477a523c2
evicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/SecurityLoggingTest.java
evicepolicy/src/com/android/cts/devicepolicy/DeviceOwnerTest.java
02b920d08fbeb161692ce9520161cb4e9799c0db 29-Mar-2016 Andrei Stingaceanu <stg@google.com> AfW - suspend apps - API polish - CTS fixes

Bug: 27532430
Bug: 22776761
Change-Id: I4541ac7002480b670a1ebcb8fd67223f3b8ecd1d
evicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/SuspendPackageTest.java
b717684e8c5028db371666908462aed803ee0a5d 29-Mar-2016 Andrei Stingaceanu <stg@google.com> AfW custom lock screen message - API polish - CTS fixes

Bug: 27531295
Change-Id: I732409df5c0ff64ffef247cf52647e8a6840f931
evicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/LockScreenInfoTest.java
f4f173c5bdfbe9237f9fd2e53d9bcd4a2a0eba49 29-Mar-2016 Andrii Kulian <akulian@google.com> Fix stack and task size comparison in CTS

1. Added an option not to compare task and stack bounds.
2. Fixed bounds validation in case when task has minimal
width and/or height set.

Bug: 27785974
Change-Id: If14978219cd9333ce68481110ac18912a417435b
ervices/activitymanager/src/android/server/cts/ActivityAndWindowManagersState.java
ervices/activitymanager/src/android/server/cts/ActivityManagerDockedStackTests.java
ervices/activitymanager/src/android/server/cts/ActivityManagerState.java
3ec73b234b58ea24a07318d50c53b5dc90971c65 28-Mar-2016 Jeff Sharkey <jsharkey@google.com> Merge "Follow updated framework APIs." into nyc-dev
bd9f11b422e08e93459d4762579ff636e2d17b19 28-Mar-2016 Jeff Sharkey <jsharkey@android.com> Follow updated framework APIs.

Bug: 27615770
Change-Id: I923e7bf864ce414c0a4fe663a44eab4854c6c4b8
ppsecurity/test-apps/DocumentClient/src/com/android/cts/documentclient/ScopedDirectoryAccessClientTest.java
8c9b6dcb65fc4a5035ba4278d291993d88302546 19-Mar-2016 Jeff Sharkey <jsharkey@android.com> DO NOT MERGE: Increase AdoptableHostTest timeout.

Bug: 26829428
Change-Id: I1ce6b64275d18ad4881d53e5aa26642720155d0f
ppsecurity/src/com/android/cts/appsecurity/AdoptableHostTest.java
90de62e99ef7edd50ccd99b84be28524f152735d 28-Mar-2016 Andrii Kulian <akulian@google.com> Merge "Update ActivityInfo#WindowLayout apis (2/3)" into nyc-dev
90f0eb28b997cd238fe26fac7430601b86c8c3bf 17-Mar-2016 Andrii Kulian <akulian@google.com> Update ActivityInfo#WindowLayout apis (2/3)

Splits minimalSize param to minimalWidth and minimalHeight in cts.

Bug: 27528326
Change-Id: I180be1a8e9795c50d1f61113992ec34962496c40
ervices/activitymanager/app/AndroidManifest.xml
ervices/activitymanager/src/android/server/cts/ActivityAndWindowManagersState.java
ervices/activitymanager/src/android/server/cts/ActivityManagerManifestLayoutTests.java
21d2c96584946c4deaf68332da45b43395dbc3ad 27-Mar-2016 Jeff Sharkey <jsharkey@google.com> Merge "Increase AdoptableHostTest timeout." into nyc-dev
d28331f64013299d7adac4e4947d24e8a6499c14 26-Mar-2016 Chad Brubaker <cbrubaker@google.com> Merge "Fix CA cert tests" into nyc-dev
7e31de6819e21b1289ae95be76b71d749581bc59 25-Mar-2016 dcashman <dcashman@google.com> Add global enforcing test.

SELinux tests are primarily enforced via host-side tests to take
advantage of privileges available to the shell user that are not
available to cts. Add a check that explicitly checks to make sure
SELinux policy is being enforced on the system, rather than relying on
results from various checkAccess() tests in SELinuxHostTest.

(cherry-pick of internal commit: f4c87b375f2a449978ba0774098075f2aa069aa1)

Bug: 27756382
Bug: 27763829
Change-Id: I369e7ab78a41718c464a3fd70163ba398a040730
ecurity/src/android/cts/security/SELinuxHostTest.java
93e6bdb3c953776cd30635ba501dd06840b91c05 26-Mar-2016 Daniel Cashman <dcashman@google.com> Merge "Add global enforcing test." into nyc-dev
a9e61dc6c3a29aa460e40b8c4a2807eda9d813e4 25-Mar-2016 Selim Gurun <sgurun@google.com> Merge "Fix the APK name" into nyc-dev
6af6aec317ca783ecc151a1ff4e80c769d983d3b 25-Mar-2016 Selim Gurun <sgurun@google.com> Fix the APK name

Bug: 27598738

Test apk name was changed in the configuration during the code review
but not in the source file causing the test to fail. Make it compatible.

Change-Id: I120b40d0593c683c7f9dfbc14c71685f64d47685
bioverride/src/android/abioverride/cts/AbiOverrideTest.java
f6a85eb33c2683c54df9be620a47de7465fc018c 25-Mar-2016 Chad Brubaker <cbrubaker@google.com> Fix CA cert tests

There were two issues with the current test:
1) Apps targeting N that want to trust the user added CA store must
opt-into it with a Network Security Config.
2) The test relied on TrustManagers seeing updates to the user CA store,
this isn't really the case (yet) so take advantage of a testApi to
inform the NetworkSecurityConfig of a trusted storage change.

Bug:27526668
Change-Id: If1d425746379fde86e8da8a70e27fa6254671066
evicepolicy/app/DeviceOwner/Android.mk
evicepolicy/app/DeviceOwner/AndroidManifest.xml
evicepolicy/app/DeviceOwner/res/xml/network_security_config.xml
evicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/CaCertManagementTest.java
f4c87b375f2a449978ba0774098075f2aa069aa1 25-Mar-2016 dcashman <dcashman@google.com> Add global enforcing test.

SELinux tests are primarily enforced via host-side tests to take
advantage of privileges available to the shell user that are not
available to cts. Add a check that explicitly checks to make sure
SELinux policy is being enforced on the system, rather than relying on
results from various checkAccess() tests in SELinuxHostTest.

Bug: 27756382
Bug: 27763829
Change-Id: Ic7e94267ef1ad23491539e12d960014b0440872a
ecurity/src/android/security/cts/SELinuxHostTest.java
b01113faf4a64d85779e96a5242c71621c5a67a0 25-Mar-2016 Michal Karpinski <mkarpinski@google.com> Merge "[CTS] Attempt to fix flaky remote bugreport notification clicking" into nyc-dev
fea5ce45f6359291a1084ad61924f4f972fbf2d6 24-Mar-2016 Abhijith Shastry <ashastry@google.com> Add instructions with commands to run NumberBlocking CTS test.

BUG: 26681494
Change-Id: Ic183da1d0325fcafe17006cad0adfef37233303f
umberblocking/src/com/android/cts/numberblocking/hostside/NumberBlockingTest.java
2f0a783854a4e97c974821793d6d99b2eacb91f4 24-Mar-2016 Michal Karpinski <mkarpinski@google.com> [CTS] Attempt to fix flaky remote bugreport notification clicking

Increasing UI timeout and cancelling all notifications before each test,
so that the notification panel is empty.

Bug: 27727880
Change-Id: I0f68b578d15b31ff408555d466acc5a1b8260c70
evicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/RemoteBugreportTest.java
6e73ea9f3471ecfe27a1151822cbdfebe3743fa9 23-Mar-2016 Guang Zhu <guangzhu@google.com> Merge "remove obsolete GL jank test" into nyc-dev
e0c0d064fcca9c4355614da2077d31cdbb10c930 23-Mar-2016 Felipe Leme <felipeal@google.com> Merge "Added test for root directory access." into nyc-dev
d52005f6648639eaba7dffadf13a8988aede7285 23-Mar-2016 Alan Viverette <alanv@google.com> Merge "Variety of fixes for CTS theme tests" into nyc-dev
aad8a7e62744e858c0bd73b61703b1398b6bf93d 23-Mar-2016 Alan Viverette <alanv@google.com> Variety of fixes for CTS theme tests

- Pin SDK to 23 to match assets
- Adds 420dpi assets for Nexus 5X
- Adds timeouts for overall test length and reading logcat output
- Updates image generation script for new CTS directory structure
- Passes error with result of GenerateImagesActivity
- Only applies delay when testing Holo calendar view

Bug: 27147168
Change-Id: I9606c297b8945856facca4b200929e470a388d61
heme/app/Android.mk
heme/app/src/android/theme/app/GenerateImagesActivity.java
heme/app/src/android/theme/app/ThemeDeviceActivity.java
heme/assets/23/420dpi.zip
heme/generate_images.sh
heme/src/android/theme/cts/ThemeHostTest.java
b5c11f23c012175eaa4608b8e5bc72c1f66bfc73 23-Mar-2016 Guang Zhu <guangzhu@google.com> remove obsolete GL jank test

Bug: 27600015
Change-Id: Ie819c532b49eeb1447509e247d46974bbfbf426a
ank/Android.mk
ank/AndroidTest.xml
ank/app/Android.mk
ank/app/src/android/jank/cts/CtsJankTestBase.java
ank/app/src/android/jank/cts/opengl/CtsDeviceJankOpenGl.java
ank/src/android/jank/cts/CtsHostJankTest.java
ank/src/android/jank/cts/opengl/CtsHostJankOpenGl.java
c17bf968fd11c55649e289a7d460bf151b6fbe65 22-Mar-2016 Nick Kralevich <nnk@google.com> Merge "Delete testMediaserverDomain test" into nyc-dev
2d82709451bda4243a2b542e69f61c09423ec248 22-Mar-2016 Nick Kralevich <nnk@google.com> Delete testMediaserverDomain test

Mediaserver was refactored, and this old test isn't relevant
anymore. Delete the test.

Bug: 27795382
Change-Id: I7c99e76c84471d1bc14c560ec0a930350c645711
ecurity/src/android/security/cts/SELinuxHostTest.java
dcc281a50c9deca8d934446107b2815c013ff3c7 22-Mar-2016 Todd Kennedy <toddke@google.com> Merge "Fix test" into nyc-dev
376eb071977f7d82657fcba1b5f39acaedaf4ed0 22-Mar-2016 Todd Kennedy <toddke@google.com> Fix test

It's mandatory that a <manifest> element contains an <application> element.
Without such, the install still "works", but, certain flags [such as
ApplicationInfo.FLAG_HAS_CODE] aren't set the way we need them for the
tests.

Bug: 26518106
Change-Id: Ib941efe37a47c4e4a32d84e8c4a5a5483e7beb1d
ppsecurity/test-apps/TargetInstrumentationApp/AndroidManifest.xml
d381028726343e041812721067918d57a4a8e0f3 22-Mar-2016 Todd Kennedy <toddke@google.com> Merge "fix tests" into nyc-dev
bc3fe68ead36060deb5c730bcae87eb4ab582517 22-Mar-2016 Todd Kennedy <toddke@google.com> fix tests

world readable files can no longer be created. don't make them
and fail if we're able to read one.

Bug: 26518106
Change-Id: I753729c69d6ce9e0f64a7b85253b2efbf0400482
ppsecurity/test-apps/AppAccessData/src/com/android/cts/appaccessdata/AccessPrivateDataTest.java
ppsecurity/test-apps/AppWithData/src/com/android/cts/appwithdata/CreatePrivateDataTest.java
dc9c833757ba11fda80c17d9f629d7ac2e48c61a 26-Feb-2016 Victor Chang <vichang@google.com> CTS for DevicePolicyManager.isProvisioningAllowed

This test covers the following cases of DevicePolicyManager.isProvisioningAllowed
1. When feature flag is off, DevicePolicyManager.isProvisioningAllowed returns false for DO and PO
2. When feature flag is on, and before provisioning, DevicePolicyManager.isProvisioningAllowed returns true for PO
3. When feature flag is on, and before provisioning, DevicePolicyManager.isProvisioningAllowed returns false for DO, since setup wizard is complete
4. When feature flag is on, after DO provisioned, DevicePolicyManager.isProvisioningAllowed returns false for DO and PO
5. When feature is on, after PO provisioned, DevicePolicyManager.isProvisioningAllowed returns false in Managed Profile User
6. When feature is on, after PO provisioned, DevicePolicyManager.isProvisioningAllowed returns true for primary user

Bug:25710621

Change-Id: I03b99adc6ba19e6a149b1a807897232849761307
evicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/PreDeviceOwnerTest.java
evicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/PreManagedProfileTest.java
evicepolicy/src/com/android/cts/devicepolicy/BaseDevicePolicyTest.java
evicepolicy/src/com/android/cts/devicepolicy/CustomDeviceOwnerTest.java
evicepolicy/src/com/android/cts/devicepolicy/CustomManagedProfileTest.java
evicepolicy/src/com/android/cts/devicepolicy/DeviceOwnerTest.java
evicepolicy/src/com/android/cts/devicepolicy/ManagedProfileTest.java
d9fde7049b1097723e7057ae5a72d5620b4295d4 21-Mar-2016 Felipe Leme <felipeal@google.com> Added test for root directory access.

BUG: 27676858
Change-Id: Id5619e0409496afd9d4d3ad419713cdbbc4aeb17
ppsecurity/test-apps/DocumentClient/src/com/android/cts/documentclient/DocumentsClientTestCase.java
ppsecurity/test-apps/DocumentClient/src/com/android/cts/documentclient/ScopedDirectoryAccessClientTest.java
8eaeb3958e7f123c2738245e9ec4b98fabb60fae 21-Mar-2016 Victor Chang <vichang@google.com> Merge "Fix MixedProfileOwnerTest#testApplicationRestrictions" into nyc-dev
f5e9c86985dc87c7d3be381db851e61109bfc343 20-Mar-2016 Nicholas Sauer <nicksauer@google.com> Merge "[CTS] - Set test runtimes" into nyc-dev
dad3ccd1185b23e26b0876ce47527bc0272d97e0 19-Mar-2016 Polina Bondarenko <pbond@google.com> Merge "Fixed cts test HardwarePropertiesManagerTest." into nyc-dev
fdebe6dba5a316f42e3694b843185f38de545c5f 19-Mar-2016 Nicholas Sauer <nicksauer@google.com> [CTS] - Set test runtimes

bug: 27747405
Change-Id: If08ec156678d5435c88d9f179d3bacd064493aff
et/AndroidTest.xml
ervices/activitymanager/AndroidTest.xml
heme/AndroidTest.xml
8f2d307693d088e260b95f9b006420929ea7b5b3 19-Mar-2016 Felipe Leme <felipeal@google.com> Merge "Improved Scoped Directory Access tests." into nyc-dev
c33b2a665272a2731ffe1cd95ea37a62ca36877e 19-Mar-2016 Jeff Sharkey <jsharkey@android.com> Increase AdoptableHostTest timeout.

Bug: 26829428
Change-Id: I1ce6b64275d18ad4881d53e5aa26642720155d0f
ppsecurity/src/android/appsecurity/cts/AdoptableHostTest.java
40dfd3782acefb0a92d30f7ab58346cd793d41bb 18-Mar-2016 Rob Carr <racarr@google.com> Merge changes If20040ce,Ib02cbb20 into nyc-dev

* changes:
Assert sanity while computing state.
CTS for non-resizeable activities.
2a855feb22706cf2e757938e19bd9cf9f4c749c2 18-Mar-2016 Felipe Leme <felipeal@google.com> Improved Scoped Directory Access tests.

Although the Scoped Directory Access is implemented by DocumentsUI, it
uses a different UI and different semantics, so it makes sense to have
different test cases as well.

Splitting the tests makes development more productive because the tests
run faster and isolated from each other. Examples:

- DocumentsTests needs a file provider while ScopedDirectoryAccessTests
doesn't.
- ScopedDirectoryAccessTests needs to clear the DocumentsUI cache, which
could interfere with DocumentsTests tests.

This change not only splits them, but also makes some other improvements
in the Scoped Directory Access tests:

- Moved all logic (including removing a directory) to client side.
- Clear the DocumentsUI app before each test.

BUG: 27743842

Change-Id: I84011aab7319cf60af10de03e97dd31ee5ab53e1
ppsecurity/src/android/appsecurity/cts/DocumentsTest.java
ppsecurity/src/android/appsecurity/cts/DocumentsTestCase.java
ppsecurity/src/android/appsecurity/cts/ScopedDirectoryAccessTest.java
ppsecurity/test-apps/DocumentClient/src/com/android/cts/documentclient/DocumentsClientTest.java
ppsecurity/test-apps/DocumentClient/src/com/android/cts/documentclient/DocumentsClientTestCase.java
ppsecurity/test-apps/DocumentClient/src/com/android/cts/documentclient/ScopedDirectoryAccessClientTest.java
3eb8b6c0171f047f9d9cbaf9cdda9290164b1c5f 15-Mar-2016 Robert Carr <racarr@google.com> Assert sanity while computing state.

Assert sanity while computing activity and
window manager state, so that we can avoid
each test having to do so.

Change-Id: If20040ce8d7a58e6d49785c1e685466c412a858d
ervices/activitymanager/src/android/server/cts/ActivityAndWindowManagersState.java
ervices/activitymanager/src/android/server/cts/ActivityManagerActivityVisiblityTests.java
ervices/activitymanager/src/android/server/cts/ActivityManagerDockedStackTests.java
ervices/activitymanager/src/android/server/cts/ActivityManagerFreeformStackTests.java
ervices/activitymanager/src/android/server/cts/ActivityManagerManifestLayoutTests.java
ervices/activitymanager/src/android/server/cts/ActivityManagerPinnedStackTests.java
ervices/activitymanager/src/android/server/cts/ActivityManagerReplaceWindowTests.java
22150a260213b740fe20515a0c1a68da6a998d09 17-Mar-2016 Jeff Sharkey <jsharkey@google.com> Merge "Follow framework refactoring." into nyc-dev
2fb5f5dd39c00e612d7ab1aab85eea54a929f578 17-Mar-2016 Felipe Leme <felipeal@google.com> Merge "Re-try commands that set/get metered networks." into nyc-dev
0fb0ceea389cc1f7e2a9a1fca996a20257e0b042 17-Mar-2016 Felipe Leme <felipeal@google.com> Re-try commands that set/get metered networks.

BUG: 27671582
Change-Id: I9160a964b44e6d48d8932dc1e1ea7702a5359885
et/app/src/com/android/cts/net/hostside/AbstractRestrictBackgroundNetworkTestCase.java
f99c78fa6a4b5f2304bb7eff93c0572153e17420 17-Mar-2016 Jeff Sharkey <jsharkey@android.com> Follow framework refactoring.

Bug: 27531029
Change-Id: I5ca76afecef0819cceae29074ed41fe0f81f7120
ppsecurity/test-apps/EncryptionApp/AndroidManifest.xml
012a22bbcb3dcb7e88901bafc088fd0f3adc533b 08-Mar-2016 Victor Chang <vichang@google.com> Fix MixedProfileOwnerTest#testApplicationRestrictions

MixedDeviceOwnerTest#testApplicationRestrictions is also fixed

This CTS failure is caused by API behavior change in ag/863785

Also, fix CTS corresponding to setApplicationRestrictionsManagingPackage API change in b/27532565

BUG: 27450018, 27532565

Change-Id: Idb20bccf5dfc2c81ca28633ac4184a605d402d8b
evicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/ApplicationRestrictionsTest.java
evicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/SetPolicyActivity.java
dc88bdc2f7be1fdfea659a24734ce2e3cde43f01 17-Mar-2016 Rubin Xu <rubinxu@google.com> Merge "Adjusting CTS tests after unifying logging naming to security logging" into nyc-dev
9ab6d91d753a810ef631a7270b85879a4700249b 14-Mar-2016 Polina Bondarenko <pbond@google.com> Fixed cts test HardwarePropertiesManagerTest.

Run HardwarePropertiesManagerTest as Device Owner.

Bug: 27367751
Change-Id: I323a2c7dff3ef3f9244f832961bbf7fbf7236783
evicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/HardwarePropertiesManagerTest.java
evicepolicy/src/com/android/cts/devicepolicy/DeviceOwnerTest.java
1a7fa8ffab51663cc4bc97d7f251d6b835ce8032 15-Mar-2016 Robert Carr <racarr@google.com> CTS for non-resizeable activities.

Add CTS tests that non-resizeable activities which
should always be launched in the fullscreen stack.

Bug: 27157784
Change-Id: Ib02cbb208151b288e079fd0fb8ca68b94c72dbd4
ervices/activitymanager/app/AndroidManifest.xml
ervices/activitymanager/app/src/android/server/app/NonResizeableActivity.java
ervices/activitymanager/src/android/server/cts/ActivityAndWindowManagersState.java
ervices/activitymanager/src/android/server/cts/ActivityManagerDockedStackTests.java
ervices/activitymanager/src/android/server/cts/ActivityManagerFreeformStackTests.java
ervices/activitymanager/src/android/server/cts/ActivityManagerPinnedStackTests.java
eceb394dd7385ab944b1e775b90a7dedafe0377a 15-Mar-2016 Michal Karpinski <mkarpinski@google.com> Adjusting CTS tests after unifying logging naming to security logging

Bug: 27532425
Change-Id: Ic5b9c23f4a6ab8b7444c60806feb64a87bd347d6
evicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/DeviceLoggingTest.java
evicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/SecurityLoggingTest.java
evicepolicy/src/com/android/cts/devicepolicy/DeviceOwnerTest.java
64dcecf5c35583b04a593da6ba811003683eda60 16-Mar-2016 Jason Monk <jmonk@google.com> Merge "Fix QS in old-cts" into nyc-dev
8173abc9cb8721353665ada00fca20fbcfa3c49b 15-Mar-2016 Jason Monk <jmonk@google.com> Fix QS in old-cts

Bug: 27646362
Change-Id: I9eecf38e58a5d3a767798130c2e5ff0e570ccd71
ystemui/Android.mk
ystemui/OldAndroidTest.xml
91e452e85261cdd16c6b62b302f286fe3b8e882a 15-Mar-2016 Felipe Leme <felipeal@google.com> Merge "Added test cases for 'Do not ask again' scenario." into nyc-dev
a1db096b424d093acd99ae71a7e058bae8f04bc4 15-Mar-2016 phweiss <phweiss@google.com> Disable test in test harness

When running in a test harness, the setup wizard is skipped by default,
so this test which checks that the setup wizard is not skipped after
creating a new user is always failing.

Bug: 26953522
Change-Id: Iee19e8770ec1fbdc0dacbf323a7e7b7be7c7226d
evicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/CreateAndManageUserTest.java
540afe507c78042a6f8b69bbf74abe152e634b20 15-Mar-2016 Benjamin Franz <bfranz@google.com> Update UI test for package installation

With policy transparency we changed the dialog that is shown when
trying to install a package but a user restriction is applied. Update
the corresponding UI automator test.

Bug: 27645571
Change-Id: I9d978c34f6519aaec83b96475185cc63321e45c8
evicepolicy/app/PackageInstaller/src/com/android/cts/packageinstaller/ManualPackageInstallTest.java
a247a86dcfcc234131cb3f056d9d152daec88e23 10-Mar-2016 Felipe Leme <felipeal@google.com> Added test cases for 'Do not ask again' scenario.

BUG: 26750152

Change-Id: Iea7c38d59c47dc67836ad8eedcf9f5877425a47d
ppsecurity/src/android/appsecurity/cts/DocumentsTest.java
ppsecurity/test-apps/DocumentClient/src/com/android/cts/documentclient/DocumentsClientTest.java
3abcd7c1652a1e0052c832717b713ccffb5a3a01 11-Mar-2016 Wale Ogunwale <ogunwale@google.com> Merge "Added some activity visibility tests." into nyc-dev
a15811ffaaaac92c1a262f7fd536d5a9a8811261 11-Mar-2016 Wale Ogunwale <ogunwale@google.com> Added some activity visibility tests.

- testTranslucentActivityOnTopOfHome to assert that the home activity
is visible when a translucent activity is launched in the fullscreen
stack over the home activity.

- testHomeVisibleOnActivityTaskPinned to assert that the home activity
is visible if a task that was launched from home is pinned and also
assert the next task in the fullscreen stack isn't visible.

Bug: 27566650
Bug: 26697763
Change-Id: I83344ac1a9084a9efe5b258532fcb3964bb30a23
ervices/activitymanager/src/android/server/cts/ActivityAndWindowManagersState.java
ervices/activitymanager/src/android/server/cts/ActivityManagerActivityVisiblityTests.java
ervices/activitymanager/src/android/server/cts/ActivityManagerState.java
ervices/activitymanager/src/android/server/cts/ActivityManagerVisibleBehindActivityTests.java
72cafeb97ff5fb518823a3eee5f14bd1503f352e 11-Mar-2016 Abhijith Shastry <ashastry@google.com> Merge "Add multi-user cts tests for number blocking." into nyc-dev
7b0d5573f14bf66dd9a2cc4cbe60c11de64bf971 10-Mar-2016 Abhijith Shastry <ashastry@google.com> Add multi-user cts tests for number blocking.

BUG: 26681494

Change-Id: I7c4820900c4dc4ef4ac55fb0e3d42f41b83689e1
umberblocking/Android.mk
umberblocking/AndroidTest.xml
umberblocking/app/Android.mk
umberblocking/app/AndroidManifest.xml
umberblocking/app/src/com/android/cts/numberblocking/hostside/BaseNumberBlockingClientTest.java
umberblocking/app/src/com/android/cts/numberblocking/hostside/CallBlockingTest.java
umberblocking/app/src/com/android/cts/numberblocking/hostside/NumberBlockingAppTest.java
umberblocking/src/com/android/cts/numberblocking/hostside/NumberBlockingTest.java
e8168db59cf07f50795304480e6e5fec69fb8e21 11-Mar-2016 Neha Sharma <sharmneha@google.com> Merge "Updating trusted voice test for cts v2." into nyc-dev
23da53854f8077f5b42f48af62bbd5be460d49ee 11-Mar-2016 Jeff Sharkey <jsharkey@google.com> Merge "Add getExternalMediaDirs() to storage tests." into nyc-dev
c5e020124bd90601db7e9da2c5ac984142099cfb 10-Mar-2016 Jeff Sharkey <jsharkey@android.com> Add getExternalMediaDirs() to storage tests.

Bug: 25810732
Change-Id: I55b9b5ebdc0130de9cf5da02785d086122e00d7c
ppsecurity/test-apps/ExternalStorageApp/src/com/android/cts/externalstorageapp/CommonExternalStorageTest.java
dde286ada270728cbc53592df48d8a9e665b69b9 10-Mar-2016 Tony Mak <tonymak@google.com> Merge "Add cts for getPackageSuspended" into nyc-dev
85e84e10a7e43781308daaef20ddd23aa1a45402 09-Mar-2016 Neha Sharma <sharmneha@google.com> Updating trusted voice test for cts v2.

Change-Id: I933fea5da42abce0a0bc457da47f1db39cc6dce0
rustedvoice/Android.mk
rustedvoice/AndroidTest.xml
rustedvoice/app/Android.mk
rustedvoice/src/android/trustedvoice/cts/TrustedVoiceHostTest.java
231a1372ed2373572db3ed526ed3f9b5e0ee0017 10-Mar-2016 Felipe Leme <felipeal@google.com> Merge "Print uid when running network checks." into nyc-dev
d0187a26516d52a6cd6e4e5f3046212074b45995 09-Mar-2016 Felipe Leme <felipeal@google.com> Print uid when running network checks.

BUG: 27570398
Change-Id: I4dcbd4e41641c406c687a0e29e2637581d91b17c
et/app2/src/com/android/cts/net/hostside/app2/Common.java
et/app2/src/com/android/cts/net/hostside/app2/MyBroadcastReceiver.java
c6a9515d7cd83cf52ac2789761e84444366b60d8 10-Mar-2016 Felipe Leme <felipeal@google.com> Merge "Added tests for battery save mode on non-metered networks." into nyc-dev
1b93a3ef5617f15611a26f0e6e7b3f50524bfc6b 08-Mar-2016 Felipe Leme <felipeal@google.com> Added tests for battery save mode on non-metered networks.

BUG: 27127112
Change-Id: I4a05194a32294d15badfaa4156606e728f943a9a
et/app/src/com/android/cts/net/hostside/AbstractRestrictBackgroundNetworkTestCase.java
et/app/src/com/android/cts/net/hostside/BatterySaverModeNonMeteredTest.java
et/app/src/com/android/cts/net/hostside/BatterySaverModeTest.java
et/app/src/com/android/cts/net/hostside/DataSaverModeTest.java
et/src/com/android/cts/net/HostsideRestrictBackgroundNetworkTests.java
ab40eeae6b40445a4293cd385b5b7e4815b281b2 09-Mar-2016 Amith Yamasani <yamasani@google.com> Merge "Don't try to remove user 0 in CTS tests" into nyc-dev
3f15e10e6b95f3878a03b59a39e5a54e18a806b5 09-Mar-2016 Wale Ogunwale <ogunwale@google.com> Merge "Fix activity life cycle tests in freeform and split-screen modes" into nyc-dev
8d0b3a55c61623778af4464838192b78e6a4d884 09-Mar-2016 Wale Ogunwale <ogunwale@google.com> Fix activity life cycle tests in freeform and split-screen modes

- In Docked mode, resize twice based on the device current orientation
to make sure both activities cross an orientation change threshold since
we don't send configuration changes for all size changes, but we always
send for orientation changes
- Don't run freeform activity life cycle test on devices that don't support
freeform window management. Also, use more reasonable values for resizing.
- Fixed pattern matching for activity visiblity to match new dump format.

Bug: 27372742
Bug: 27376254
Bug: 27530976
Bug: 27531078
Change-Id: I97d503c8db0cefd91a7c2ce66282765f5032ebab
ervices/activitymanager/src/android/server/cts/ActivityManagerDockedStackTests.java
ervices/activitymanager/src/android/server/cts/ActivityManagerFreeformStackTests.java
ervices/activitymanager/src/android/server/cts/ActivityManagerState.java
2566eae1833de34db5fd75eeb225e0a997ce72b4 09-Mar-2016 Amith Yamasani <yamasani@google.com> Don't try to remove user 0 in CTS tests

There was a change in the usermanager that results in failure
when a non-removable/stoppable user is attempted to be removed.
Adjusting CTS test accordingly.

Bug: 27550623
Change-Id: I88409a632e333e863bb2df37e4bc7751246cd07c
evicepolicy/src/com/android/cts/devicepolicy/BaseDevicePolicyTest.java
fa172a800aa5b9e50d7b6a9d11826b787d1a6a5d 09-Mar-2016 Michal Karpinski <mkarpinski@google.com> Merge "[CTS] Fixing up uiautomator usage to stop remote bugreport flow" into nyc-dev
9a42c1a915efa3225241a3831fce7de05d2e882f 09-Mar-2016 Victor Chang <vichang@google.com> Merge "Fix permission test in MixedProfileOwnerTest and MixedDeviceOwnerTest" into nyc-dev
ccb56d8984b2e2f7622800e124c8b13bf5089b7e 09-Mar-2016 Victor Chang <vichang@google.com> Fix permission test in MixedProfileOwnerTest and MixedDeviceOwnerTest

The root cause is that when installing CtsPermissionApp.apk, -g option is provided.
Add a new method to avoid -g option

This CL fixes the following test cases in MixedProfileOwnerTest and MixedDeviceOwnerTest
testPermissionGrant
testPermissionPrompts
testPermissionMixedPolicies
testPermissionAppUpdate

BUG=27450018

Change-Id: Icebea836eefb6716661adf5b356e47a4bf90fd6b
evicepolicy/src/com/android/cts/devicepolicy/BaseDevicePolicyTest.java
evicepolicy/src/com/android/cts/devicepolicy/DeviceAndProfileOwnerTest.java
e2a866d2982371c60d6d4b430158fe9098f6781f 09-Mar-2016 Tony Mak <tonymak@google.com> Add cts for getPackageSuspended

Bug: 27411218
Change-Id: Iad0207d567be20a8e958a1c6a8c470723b130ceb
evicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/SuspendPackageTest.java
be16c9e42da6532fbf6d0487855088d1f82fb7b4 09-Mar-2016 Brian Carlstrom <bdc@google.com> Fix build of CtsTrustedVoiceHostTestCases which needs old-cts-tradefed

Change-Id: Ic43f2189f982d1d65590bbc01e82f85f3fc23da7
rustedvoice/Android.mk
9d25511916174a9ddf9498320ed4f609778be2bb 08-Mar-2016 Sudheer Shanka <sudheersai@google.com> Merge "Cts: Update DPM.getWifiMacAddress usage." into nyc-dev
6186db0d75e65091b9a698320f7712a7b68a8f4a 08-Mar-2016 Sudheer Shanka <sudheersai@google.com> Cts: Update DPM.getWifiMacAddress usage.

Bug: 27532280
Change-Id: Ic0f0b24bb33ac75d7ff50079a23523f331abb3e8
evicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/WifiTest.java
evicepolicy/app/ProfileOwner/src/com/android/cts/profileowner/WifiTest.java
bf4f1b956467aa765a22da6a7cde1e96b37bbc44 08-Mar-2016 Neha Sharma <sharmneha@google.com> resolve merge conflicts of 349865d85a to nyc-dev

Change-Id: I1af6024c342bf12e738f9211d471fa48f1eee133
104c569aa836bd2cfbb290c496ca2f1015a6e20e 08-Mar-2016 Neha Sharma <sharmneha@google.com> resolve merge conflicts of 19ae519cb8 to marshmallow-cts-dev

Change-Id: Ic6a394ed6fdef8c253d737c81fa40fc01a3be026
7f12f24c7c13b55dd591a4338f375d0eca55dc3e 08-Mar-2016 Jason Monk <jmonk@google.com> Fix QS CTS tests

Bug: 27527037
Change-Id: I58593c6277e732521bb4ef37e8592cea31e46fdf
ystemui/Android.mk
ystemui/src/android/host/systemui/BaseTileServiceTest.java
19ae519cb81783ca188be0ca946095e012f85606 08-Mar-2016 Neha Sharma <sharmneha@google.com> Merge "resolve merge conflicts of 9b1c0e13ed to lollipop-cts-dev" into lollipop-cts-dev
am: 1091a8c33c

* commit '1091a8c33c87a9a26bbd5241e0e3b99c2ee3e57c':
Adding a new cts test to verify Trusted Voice functionality. The test app automatically unlocks the device and then verifies that the device was correctly unlocked.
279ecb40dc687f9078409cca6f05ed324929d269 08-Mar-2016 Neha Sharma <sharmneha@google.com> resolve merge conflicts of 9b1c0e13ed to lollipop-cts-dev

Change-Id: I8958f6d2c711fb856253cce06398a02c6030bbcd
c3333eeb6a479edded644ae0235dbb3a6d9fa219 08-Mar-2016 Michal Karpinski <mkarpinski@google.com> [CTS] Fixing up uiautomator usage to stop remote bugreport flow

Now tapping the notification and then DECLINE button on the dialog,
as per changes in the UX of the feature.

Bug: 27475124
Change-Id: Ib759f96ddc8d7085c87a295dd39bdedf5a54bfe9
evicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/RemoteBugreportTest.java
b4b3bc29b45c9923f95df0df692718e74ce57ec8 22-Feb-2016 Neha Sharma <sharmneha@google.com> Adding a new cts test to verify Trusted Voice functionality. The test app automatically unlocks the device and then verifies that the device was correctly unlocked.

Change-Id: I429741883284a871516740dc7727e80305a002d1
rustedvoice/Android.mk
rustedvoice/app/Android.mk
rustedvoice/app/AndroidManifest.xml
rustedvoice/app/src/android/trustedvoice/app/TrustedVoiceActivity.java
rustedvoice/src/android/trustedvoice/cts/TrustedVoiceHostTest.java
f875dfb111d3a3c7dfc82c33287ca07b79f8ebb1 04-Mar-2016 apple <houjuanjuan2000@gmail.com> Merge "Issue 186618:run cts com.android.cts.appsecurity.DocumentsTest--testTree--fail5.1_r5 [root cause]in testTree method, the second writeFully(...) task may be executed in the AsyncTask after readFully(...) task, or they may be executed at the same time. Since the read and write operation is not protected by synchronized. Two tasks running on different thread my access doc.contents at the same time, and may lead to a null pointer crash [changesY] using AsyncTask.SERIAL_EXECUTOR instead of AsyncTask.THREAD_POOL_EXECUTOR" into lollipop-mr1-cts-dev
am: 305539635c

* commit '305539635ca5012bb53a168a1c8f3215d81bd167':
Issue 186618:run cts com.android.cts.appsecurity.DocumentsTest--testTree--fail5.1_r5 [root cause]in testTree method, the second writeFully(...) task may be executed in the AsyncTask after readFully(...) task, or they may be executed at the same time. Since the read and write operation is not protected by synchronized. Two tasks running on different thread my access doc.contents at the same time, and may lead to a null pointer crash [changesY] using AsyncTask.SERIAL_EXECUTOR instead of AsyncTask.THREAD_POOL_EXECUTOR
f0fd1a60a6f389bed1eaf2959d581506de8d84dc 04-Mar-2016 Tony Mak <tonymak@google.com> CTS test for new behaviour of setDelegatedCertInstaller

1. Added CtsDeviceAndProfileOwnerApp23 to verify behavior of API targeting
23.

2. Fixed an issue that MoreAsserts is not found after the cts_v2 CL by
including "<uses-library android:name="android.test.runner" />".

Bug: 27285599
Bug: 27493070

Change-Id: Id78f512818c7fef963c8d93f597a413611cf302b
evicepolicy/app/DeviceAndProfileOwner/Android.mk
evicepolicy/app/DeviceAndProfileOwner/AndroidManifest.xml
evicepolicy/app/DeviceAndProfileOwner/api23/Android.mk
evicepolicy/app/DeviceAndProfileOwner/api23/AndroidManifest.xml
evicepolicy/app/DeviceAndProfileOwner/latest/Android.mk
evicepolicy/app/DeviceAndProfileOwner/latest/AndroidManifest.xml
evicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/BaseDeviceAdminTest.java
evicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/DelegatedCertInstallerTest.java
evicepolicy/src/com/android/cts/devicepolicy/ProfileOwnerTestApi23.java
a25335a0d7a4cf0eb39b82d3277d9a88e4e22b4f 04-Mar-2016 Felipe Leme <felipeal@google.com> Merge "Added CTS tests for apps that are blacklisted for restricted background data." into nyc-dev
594eec0aa6baedd70fb86c75b6c21222dd226ddb 03-Mar-2016 Ricky Wai <rickywai@google.com> Merge "Don't assume that the primary user is user 0" into nyc-dev
61d932652ae141b155aa50d828166b8514fc1b65 03-Mar-2016 Stuart Scott <stuartscott@google.com> Merge "Migrate CppTools to CTSv2" into nyc-dev
e472f22bd4ececc38235f791093e50e8954dbcb0 03-Mar-2016 Ricky Wai <rickywai@google.com> Don't assume that the primary user is user 0

This way tests can also run on devices with split user enabled

Bug: 25906481
Change-Id: Ica0c99eccf90c032bc65728720b93f03313706ad
evicepolicy/app/IntentSender/src/com/android/cts/intent/sender/AppLinkTest.java
evicepolicy/src/com/android/cts/devicepolicy/BaseDeviceAdminHostSideTest.java
evicepolicy/src/com/android/cts/devicepolicy/BaseDevicePolicyTest.java
evicepolicy/src/com/android/cts/devicepolicy/BaseLauncherAppsTest.java
evicepolicy/src/com/android/cts/devicepolicy/CustomDeviceOwnerTest.java
evicepolicy/src/com/android/cts/devicepolicy/DeviceAdminHostSideTestApi23.java
evicepolicy/src/com/android/cts/devicepolicy/DeviceAdminHostSideTestApi24.java
evicepolicy/src/com/android/cts/devicepolicy/DeviceAndProfileOwnerTest.java
evicepolicy/src/com/android/cts/devicepolicy/DeviceOwnerTest.java
evicepolicy/src/com/android/cts/devicepolicy/LauncherAppsMultiUserTest.java
evicepolicy/src/com/android/cts/devicepolicy/LauncherAppsProfileTest.java
evicepolicy/src/com/android/cts/devicepolicy/LauncherAppsSingleUserTest.java
evicepolicy/src/com/android/cts/devicepolicy/ManagedProfileTest.java
evicepolicy/src/com/android/cts/devicepolicy/MixedDeviceOwnerTest.java
evicepolicy/src/com/android/cts/devicepolicy/MixedManagedProfileOwnerTest.java
evicepolicy/src/com/android/cts/devicepolicy/MixedProfileOwnerTest.java
evicepolicy/src/com/android/cts/devicepolicy/ProfileOwnerTest.java
evicepolicy/src/com/android/cts/devicepolicy/UserRestrictionsTest.java
1e56b20a3a5b8baf707c58c1b2fbb8b92de3f892 03-Mar-2016 Tony Mak <tonymak@google.com> CTS tests for suspend applications

Things are tested:
1. Activity can't be launched if the pkg is suspended.
2. PackageManager can still find the package if the pkg is suspended.
3. Undo suspension should work
4. Launcher and DPC app can't be suspended.

Things are not tested:
1. Notification should not be shown during and after suspension.
2. Audio and vibration should be disabled during suspension.
3. Suspended app should not be shown in recent app
4. Privileged app can't be suspended.

BUG: 27411218

Change-Id: Iebcf5491607b83893fbedbf65bdfeeaeab4da060
evicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/SuspendPackageTest.java
evicepolicy/app/IntentSender/src/com/android/cts/intent/sender/SuspendPackageTest.java
evicepolicy/src/com/android/cts/devicepolicy/DeviceAndProfileOwnerTest.java
04f5d2e98ee1780ba4a83fb457efa593b1efe3d0 01-Mar-2016 Felipe Leme <felipeal@google.com> Added CTS tests for apps that are blacklisted for restricted background data.

BUG: 27432317
Change-Id: Ie9156ab4f2fa7c639d8e9a978954e09b322d6187
et/app/src/com/android/cts/net/hostside/AbstractRestrictBackgroundNetworkTestCase.java
et/app/src/com/android/cts/net/hostside/DataSaverModeTest.java
et/app2/src/com/android/cts/net/hostside/app2/Common.java
et/app2/src/com/android/cts/net/hostside/app2/MyBroadcastReceiver.java
et/app2/src/com/android/cts/net/hostside/app2/MyService.java
et/src/com/android/cts/net/HostsideRestrictBackgroundNetworkTests.java
e38cc07991aa324da41bd0028c7342cc911fd1a9 02-Mar-2016 Stuart Scott <stuartscott@google.com> Migrate CppTools to CTSv2

bug:21762834
Change-Id: I4f930b3e21ffd1399c416a38dd728d91cee5d29e
pptools/Android.mk
pptools/AndroidTest.xml
pptools/app/Android.mk
pptools/app/AndroidManifest.xml
pptools/app/src/android/cpptools/app/CppToolsDeviceActivity.java
pptools/app/src/android/sample/app/SampleDeviceActivity.java
pptools/src/com/android/cts/cpptools/RunAsHostTest.java
2ea8537a06c1f2976f238d8d1925c1415754c8a7 17-Sep-2015 apple <houjuanjuan2000@gmail.com> Issue 186618:run cts com.android.cts.appsecurity.DocumentsTest--testTree--fail5.1_r5
[root cause]in testTree method, the second writeFully(...) task may be
executed in the AsyncTask after readFully(...) task, or they may be
executed at the same time. Since the read and write operation is not
protected by synchronized. Two tasks running on different thread my
access doc.contents at the same time, and may lead to a null pointer
crash
[changesY] using AsyncTask.SERIAL_EXECUTOR instead of AsyncTask.THREAD_POOL_EXECUTOR

Change-Id: I2aa25c350960e010719b911094969e4662ce1a7a
(cherry picked from commit 1da654ccfeca9f6f23fc1ad272b92864aa5273ec)
ppsecurity/test-apps/DocumentProvider/src/com/android/cts/documentprovider/MyDocumentsProvider.java
a58ed318e9491738cb1c2ebe3db6da20906696c1 17-Sep-2015 apple <houjuanjuan2000@gmail.com> Issue 186618:run cts com.android.cts.appsecurity.DocumentsTest--testTree--fail5.1_r5
[root cause]in testTree method, the second writeFully(...) task may be
executed in the AsyncTask after readFully(...) task, or they may be
executed at the same time. Since the read and write operation is not
protected by synchronized. Two tasks running on different thread my
access doc.contents at the same time, and may lead to a null pointer
crash
[changesY] using AsyncTask.SERIAL_EXECUTOR instead of AsyncTask.THREAD_POOL_EXECUTOR

Change-Id: I2aa25c350960e010719b911094969e4662ce1a7a
(cherry picked from commit 1da654ccfeca9f6f23fc1ad272b92864aa5273ec)
ppsecurity/test-apps/DocumentProvider/src/com/android/cts/documentprovider/MyDocumentsProvider.java
8a31c4c3b9340dceca107ad21496b913b4bd9b0f 01-Mar-2016 Esteban Talavera <etalavera@google.com> Fix timeout when running device policy CTS

Run all CTS using common libraries rather than calling am instrumentation
directly, to prevent timeouts. Timeout is set to two minutes by default
for regular adb commands, while there is no timeout if calling through
libraries. Managed profile tests something take over 2m as they have to
create and remove a user

Bug: 27358435
Change-Id: I42b0304f20f996684574c1e329b5ef8d179aed15
evicepolicy/src/com/android/cts/devicepolicy/BaseDevicePolicyTest.java
evicepolicy/src/com/android/cts/devicepolicy/BaseLauncherAppsTest.java
evicepolicy/src/com/android/cts/devicepolicy/CustomDeviceOwnerTest.java
evicepolicy/src/com/android/cts/devicepolicy/LauncherAppsMultiUserTest.java
evicepolicy/src/com/android/cts/devicepolicy/LauncherAppsProfileTest.java
evicepolicy/src/com/android/cts/devicepolicy/LauncherAppsSingleUserTest.java
evicepolicy/src/com/android/cts/devicepolicy/ManagedProfileTest.java
86d56568852eab15be076c2ba47212ae0c0d2691 02-Mar-2016 Felipe Leme <felipeal@google.com> Merge "Tagged app2 as a CTS test artifact." into nyc-dev
141e474dab145a19ca4253d97ce2302d1ac7b065 02-Mar-2016 Felipe Leme <felipeal@google.com> Tagged app2 as a CTS test artifact.

BUG: 27436960

Change-Id: I4e97b6341dae3361f4efdaec3132a7aa9a38dece
et/app2/Android.mk
d4359569ae1825817bfbc847dd3fcf96becc3860 01-Mar-2016 Robin Lee <rgl@google.com> Merge "KeyManagement: Verify NYC granting APIs' behaviour" into nyc-dev
b4c3e6b20a8b80808031e0eb349f127db27c7bd4 01-Mar-2016 Philipp Weiß <phweiss@google.com> Merge "Move DPM.createAndManageUser() tests from GTS to CTS" into nyc-dev
2ff78ae2b2ff65060c39cc849d68f56463e434dd 19-Feb-2016 Stuart Scott <stuartscott@google.com> Switch to CTSv2

bug:21762834
Change-Id: Ie51a0ed4560b46c2f360e14980e5fab7fe6479fe
adb/Android.mk
bioverride/Android.mk
bioverride/app/Android.mk
ppsecurity/Android.mk
ppsecurity/test-apps/Android.mk
ppsecurity/test-apps/AppAccessData/Android.mk
ppsecurity/test-apps/AppWithData/Android.mk
ppsecurity/test-apps/DocumentClient/Android.mk
ppsecurity/test-apps/DocumentProvider/Android.mk
ppsecurity/test-apps/EncryptionApp/Android.mk
ppsecurity/test-apps/ExternalStorageApp/Android.mk
ppsecurity/test-apps/InstrumentationAppDiffCert/Android.mk
ppsecurity/test-apps/MultiUserStorageApp/Android.mk
ppsecurity/test-apps/PermissionDeclareApp/Android.mk
ppsecurity/test-apps/PermissionDeclareAppCompat/Android.mk
ppsecurity/test-apps/ReadExternalStorageApp/Android.mk
ppsecurity/test-apps/SharedUidInstall/Android.mk
ppsecurity/test-apps/SharedUidInstallDiffCert/Android.mk
ppsecurity/test-apps/SimpleAppInstall/Android.mk
ppsecurity/test-apps/SimpleAppInstallDiffCert/Android.mk
ppsecurity/test-apps/SplitApp/Android.mk
ppsecurity/test-apps/SplitApp/feature/Android.mk
ppsecurity/test-apps/SplitApp/jni/Android.mk
ppsecurity/test-apps/SplitApp/libs/arm64-v8a/Android.mk
ppsecurity/test-apps/SplitApp/libs/armeabi-v7a/Android.mk
ppsecurity/test-apps/SplitApp/libs/armeabi/Android.mk
ppsecurity/test-apps/SplitApp/libs/mips/Android.mk
ppsecurity/test-apps/SplitApp/libs/mips64/Android.mk
ppsecurity/test-apps/SplitApp/libs/x86/Android.mk
ppsecurity/test-apps/SplitApp/libs/x86_64/Android.mk
ppsecurity/test-apps/TargetInstrumentationApp/Android.mk
ppsecurity/test-apps/UsePermissionApp/Android.mk
ppsecurity/test-apps/UsePermissionAppCompat/Android.mk
ppsecurity/test-apps/UsePermissionDiffCert/Android.mk
ppsecurity/test-apps/WriteExternalStorageApp/Android.mk
ppsecurity/test-apps/keysets/Android.mk
ppsecurity/test-apps/keysets/malBadKey/Android.mk
ppsecurity/test-apps/keysets/malNoDef/Android.mk
ppsecurity/test-apps/keysets/malOneDef/Android.mk
ppsecurity/test-apps/keysets/permDef/Android.mk
ppsecurity/test-apps/keysets/permUse/Android.mk
ppsecurity/test-apps/keysets/testApp/Android.mk
ppsecurity/test-apps/keysets/uA/Android.mk
ppsecurity/test-apps/keysets/uAB/Android.mk
ppsecurity/test-apps/keysets/uAuB/Android.mk
ppsecurity/test-apps/keysets/uB/Android.mk
ppsecurity/test-apps/keysets/uBsharedUser/Android.mk
ppsecurity/test-apps/keysets/uEcA/Android.mk
ppsecurity/test-apps/keysets/uNone/Android.mk
trace/Android.mk
trace/AtraceTestApp/Android.mk
pptools/Android.mk
evicepolicy/Android.mk
evicepolicy/app/AccountManagement/Android.mk
evicepolicy/app/AppRestrictionsManagingApp/Android.mk
evicepolicy/app/AppRestrictionsTargetApp/Android.mk
evicepolicy/app/CertInstaller/Android.mk
evicepolicy/app/ContactDirectoryProvider/Android.mk
evicepolicy/app/DeviceAdmin/api23/Android.mk
evicepolicy/app/DeviceAdmin/api24/Android.mk
evicepolicy/app/DeviceAndProfileOwner/Android.mk
evicepolicy/app/DeviceOwner/Android.mk
evicepolicy/app/IntentReceiver/Android.mk
evicepolicy/app/IntentSender/Android.mk
evicepolicy/app/LauncherTests/Android.mk
evicepolicy/app/LauncherTestsSupport/Android.mk
evicepolicy/app/ManagedProfile/Android.mk
evicepolicy/app/PackageInstaller/Android.mk
evicepolicy/app/ProfileOwner/Android.mk
evicepolicy/app/SimpleApp/Android.mk
evicepolicy/app/SimplePreMApp/Android.mk
evicepolicy/app/VpnApp/Android.mk
evicepolicy/app/WidgetProvider/Android.mk
evicepolicy/app/WifiConfigCreator/Android.mk
umpsys/Android.mk
umpsys/FramestatsTestApp/Android.mk
ank/Android.mk
ank/app/Android.mk
dwpsecurity/Android.mk
dwpsecurity/app/Android.mk
onkey/Android.mk
onkey/test-apps/CtsMonkeyApp/Android.mk
onkey/test-apps/CtsMonkeyApp2/Android.mk
et/Android.mk
et/app/Android.mk
s/Android.mk
s/app/Android.mk
ample/Android.mk
ample/app/Android.mk
ecurity/Android.mk
ervices/activitymanager/Android.mk
ervices/activitymanager/app/Android.mk
ystemui/Android.mk
ystemui/app/Android.mk
heme/Android.mk
heme/app/Android.mk
i/Android.mk
i/appA/Android.mk
i/appB/Android.mk
i/control/Android.mk
sage/Android.mk
sage/app/Android.mk
sb/Android.mk
sb/SerialTestApp/Android.mk
d2a874eb5e4a276e6afc741ad017204f25541cd7 22-Feb-2016 phweiss <phweiss@google.com> Move DPM.createAndManageUser() tests from GTS to CTS

Bug: 26952723
Change-Id: I61af3aebed19f9f4845ca10e3b1a8fc626ee772f
evicepolicy/app/DeviceOwner/AndroidManifest.xml
evicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/CreateAndManageUserTest.java
evicepolicy/src/com/android/cts/devicepolicy/DeviceOwnerTest.java
fbb0bf9461561da28f09a2d7a302396e77fb0048 29-Feb-2016 Tony Mak <tonymak@google.com> Merge "Implement CTS for DISALLOW_UNMUTE_MICROPHONE and DISALLOW_ADJUST_VOLUME" into nyc-dev
d6299f37dc01814bb166298c8e797e9fbbb476fb 29-Feb-2016 Tony Mak <tonymak@google.com> Implement CTS for DISALLOW_UNMUTE_MICROPHONE and DISALLOW_ADJUST_VOLUME

Tests are ported from xts.

BUG: 26709212

Change-Id: I8e12dbfef8fefabebd7a429da550e2866908c036
evicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/AudioRestrictionTest.java
evicepolicy/src/com/android/cts/devicepolicy/DeviceAndProfileOwnerTest.java
162bddf6df63c42df1a20cd9979cd08cd457e461 27-Feb-2016 Chong Zhang <chz@google.com> cts: test minimalSize for docked stack

bug: 27157489
Change-Id: I1b6955e0246edeec51c8cb121b200837e4b4cae0
ervices/activitymanager/src/android/server/cts/ActivityManagerDockedStackTests.java
ervices/activitymanager/src/android/server/cts/ActivityManagerManifestLayoutTests.java
ervices/activitymanager/src/android/server/cts/ActivityManagerTestBase.java
a89a18997b4b588b4d82d2fcf50fde6993564b97 25-Feb-2016 Robin Lee <rgl@google.com> KeyManagement: Verify NYC granting APIs' behaviour

We have an extension of installKeyPair which gives a caller the ability
to optionally reserve access to an installed keypair at install time.

Side-effect of testing this sort of thing is that we can track any
interesting future changes to the lifecycle of grants by KeyChain.

Bug: 24746231
Bug: 27335182
Change-Id: Ie32befed2478cf62f3984c0c9025ef8c9a9e32ac
evicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/KeyManagementTest.java
bdd81399219215482c559ed394eb7a54cbb716db 25-Feb-2016 Chong Zhang <chz@google.com> Merge "cts: add test for AndroidManifestLayout" into nyc-dev
893478002b7d90925af0cec8ad88f70a9e009ae3 25-Feb-2016 Felipe Leme <felipeal@google.com> Merge "Added CTS tests to check background network access while on power save mode." into nyc-dev
5f158e0ed295268054cf277c9fdaaf5c2d7afd4b 24-Feb-2016 Chong Zhang <chz@google.com> cts: add test for AndroidManifestLayout

bug: 27157489
Change-Id: Ica7f6dba42cc86f7819f2d4eb13174567be4cdc5
ervices/activitymanager/app/AndroidManifest.xml
ervices/activitymanager/app/src/android/server/app/BottomLeftLayoutActivity.java
ervices/activitymanager/app/src/android/server/app/BottomRightLayoutActivity.java
ervices/activitymanager/app/src/android/server/app/TopLeftLayoutActivity.java
ervices/activitymanager/app/src/android/server/app/TopRightLayoutActivity.java
ervices/activitymanager/src/android/server/cts/ActivityManagerFreeformStackTests.java
ervices/activitymanager/src/android/server/cts/ActivityManagerManifestLayoutTests.java
ervices/activitymanager/src/android/server/cts/ActivityManagerState.java
ervices/activitymanager/src/android/server/cts/ActivityManagerTestBase.java
ervices/activitymanager/src/android/server/cts/WindowManagerState.java
e335fb6d77ff2825e6c5a736691a065b50909626 03-Feb-2016 Robin Lee <rgl@google.com> Hostside test for setting organization name

Bug: 26638631
Change-Id: Ic7b0ff50d01c8ab43dd495964bbd321d6b2c04d0
evicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/OrganizationInfoTest.java
evicepolicy/src/com/android/cts/devicepolicy/ManagedProfileTest.java
43e9b1913f0858f9793c5d5d2a62646d64d70e1c 24-Feb-2016 Wale Ogunwale <ogunwale@google.com> CTS for activity lifecycle when resizing.

In split screen and freeform multi-window mode validate:
- Activity is relaunched if it doesn't handle configuration changes.
- Activity isn't relaunched if it does handle configuration changes
and the activity also receives onConfiguration changed call.

Bug: 26592363
Change-Id: I2966b7175b6f62a13eb78663fc9b8de52cea3523
ervices/activitymanager/app/AndroidManifest.xml
ervices/activitymanager/app/src/android/server/app/AbstractLifecycleLogActivity.java
ervices/activitymanager/app/src/android/server/app/NoRelaunchActivity.java
ervices/activitymanager/app/src/android/server/app/TestActivity.java
ervices/activitymanager/src/android/server/cts/ActivityManagerDockedStackTests.java
ervices/activitymanager/src/android/server/cts/ActivityManagerFreeformStackTests.java
ervices/activitymanager/src/android/server/cts/ActivityManagerTestBase.java
438b102a9b85ffa1e4bca7027d5b8824af6e7e67 24-Feb-2016 Wale Ogunwale <ogunwale@google.com> Merge "Add some tests for freeform stack." into nyc-dev
f1542ffc6e73b4be7d5bc79ba951c4a484e3c7c2 24-Feb-2016 Robin Lee <rgl@google.com> Merge "Hostside test for always-on VPN" into nyc-dev
26e06ffc05b0c0b4924286b98e8d24d9bd6da1e5 24-Feb-2016 Selim Gurun <sgurun@google.com> Merge "Move abioverride tests to host side." into nyc-dev
364fd16016b96162ce055395bab59b70621ecb0f 20-Feb-2016 Selim Gurun <sgurun@google.com> Move abioverride tests to host side.

The abiOverride tests, which test whether an abi can be overwritten to
be 32 bit, requires no --abi flag to be set during installation. To
make testing possible, these tests are moved to host side, and installed
without the flag.

Bug: 27230945

Change-Id: Iaff7f2a0addc215aa3d9605b9ce94345ea3807eb
bioverride/Android.mk
bioverride/AndroidTest.xml
bioverride/app/Android.mk
bioverride/app/AndroidManifest.xml
bioverride/app/jni/Android.mk
bioverride/app/jni/CtsAbiOverrideJniOnLoad.cpp
bioverride/app/src/android/abioverride/app/AbiOverrideActivity.java
bioverride/src/android/abioverride/cts/AbiOverrideTest.java
ce738aaeb3f43d4a130e7ef2f2b294715a940b20 23-Feb-2016 Wale Ogunwale <ogunwale@google.com> Add some tests for freeform stack.

- Verify we can enter freeform mode on devices that support
PackageManager#FEATURE_FREEFORM_WINDOW_MANAGEMENT and the
opposite on devices that don't support the feature.
- Verify that ActivityOptions.setLaunchBounds works correctly
when we are in freeform mode.

Bug: 27157914
Change-Id: I679d93f9365be77b2f772a3d450b603efd5f9f5a
ervices/activitymanager/app/AndroidManifest.xml
ervices/activitymanager/app/src/android/server/app/FreeformActivity.java
ervices/activitymanager/src/android/server/cts/ActivityManagerFreeformStackTests.java
ervices/activitymanager/src/android/server/cts/ActivityManagerTestBase.java
6b548d68a1357e3c568d805688134ab7fbe4e509 17-Feb-2016 Lenka Trochtova <ltrochtova@google.com> Test that creating ephemeral users fails on systems without
split system user.

BUG: 27143201

Change-Id: Ia77f7480e9cf444a4599449c9b22d052e5b22b4e
evicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/CreateAndManageUserTest.java
evicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/ForceEphemeralUsersTest.java
evicepolicy/src/com/android/cts/devicepolicy/DeviceOwnerTest.java
evicepolicy/src/com/android/cts/devicepolicy/EphemeralUserTest.java
5ffd3a0ab0c5fc8d914184d5a51dbdf4274c1f24 09-Feb-2016 Robin Lee <rgl@google.com> Hostside test for always-on VPN

Bug: 26789060
Change-Id: Ie2656c42103fb50c5ffa551d68388a10a1b1e8c5
evicepolicy/app/DeviceAndProfileOwner/AndroidManifest.xml
evicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/AlwaysOnVpnTest.java
evicepolicy/app/VpnApp/Android.mk
evicepolicy/app/VpnApp/AndroidManifest.xml
evicepolicy/app/VpnApp/src/com/android/cts/vpnfirewall/IcmpMessage.java
evicepolicy/app/VpnApp/src/com/android/cts/vpnfirewall/Ipv4Packet.java
evicepolicy/app/VpnApp/src/com/android/cts/vpnfirewall/PingReflector.java
evicepolicy/app/VpnApp/src/com/android/cts/vpnfirewall/ReflectorVpnService.java
evicepolicy/app/VpnApp/src/com/android/cts/vpnfirewall/Rfc1071.java
evicepolicy/src/com/android/cts/devicepolicy/DeviceAndProfileOwnerTest.java
bc21b8a4cb2dd769ebef90346425425f7b25e9fa 24-Feb-2016 Grigory Dzhavadyan <grigoryj@google.com> resolve merge conflicts of c31d0bd0ef to nyc-dev

Change-Id: I9451259fce1d43354ac0262f699c250bbbea1a06
191ad312d8aa6e3c05195b0f8a2182497f986b44 24-Feb-2016 Grigory Dzhavadyan <grigoryj@google.com> resolve merge conflicts of 0d092ccad9 to marshmallow-cts-dev

Change-Id: Ib6d9724701bab0fae54550ff506fe9f9ff5bceb2
0d092ccad9fa3b39057dc1329888a9411c9d48f6 24-Feb-2016 Daniel Xie <dxie@google.com> Merge "resolve merge conflicts of 74ce520050 to lollipop-cts-dev" into lollipop-cts-dev
am: 6ae84c914c

* commit '6ae84c914c07c510e2ade42a4a2336afa78218ac':
Add a host-side test to verify run-as works in adb shell.
a5d6ea35e75d16afeea4ce4e4be2ed9f34a83200 24-Feb-2016 Grigory Dzhavadyan <grigoryj@google.com> resolve merge conflicts of 74ce520050 to lollipop-cts-dev

Change-Id: I359535878421ec1c48299f5a3ba046344c998c1f
64cfadb9d4ba4918881daa21199ee32baea4503c 23-Feb-2016 Makoto Onuki <omakoto@google.com> Merge "CTS for DPM.getWifiMacAddress()" into nyc-dev
fe3b9e54c25e9e701a8b89aaec144ed8824855f7 19-Feb-2016 Makoto Onuki <omakoto@google.com> CTS for DPM.getWifiMacAddress()

Bug 25506830
Bug 25496044

Change-Id: I8bef4655b73f955b2b732f5fb0fc8b1419e0d3e6
evicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/BaseDeviceOwnerTest.java
evicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/WifiTest.java
evicepolicy/app/ProfileOwner/Android.mk
evicepolicy/app/ProfileOwner/AndroidManifest.xml
evicepolicy/app/ProfileOwner/res/xml/device_admin.xml
evicepolicy/app/ProfileOwner/src/com/android/cts/profileowner/BaseProfileOwnerTest.java
evicepolicy/app/ProfileOwner/src/com/android/cts/profileowner/ClearProfileOwnerTest.java
evicepolicy/app/ProfileOwner/src/com/android/cts/profileowner/WifiTest.java
evicepolicy/src/com/android/cts/devicepolicy/DeviceOwnerTest.java
evicepolicy/src/com/android/cts/devicepolicy/ProfileOwnerTest.java
4acb44eadcd05bd7b2ca67f40ce8da8747ea8d43 23-Feb-2016 Felipe Leme <felipeal@google.com> Added CTS tests to check background network access while on power save mode.

BUG: 27127112
Change-Id: Ifa3019d7b94459d737a9dff80b4b36a2dd43aca5
et/app/src/com/android/cts/net/hostside/AbstractRestrictBackgroundNetworkTestCase.java
et/app/src/com/android/cts/net/hostside/BatterySaverModeTest.java
et/app/src/com/android/cts/net/hostside/DataSaverModeTest.java
et/app2/src/com/android/cts/net/hostside/app2/MyBroadcastReceiver.java
et/src/com/android/cts/net/HostsideRestrictBackgroundNetworkTests.java
74ce5200506801c3d251061422aca6d3f6fb279e 23-Feb-2016 Daniel Xie <dxie@google.com> Merge "Add a host-side test to verify run-as works in adb shell." into kitkat-cts-dev
9d89b13c0448bcbe49de19513cbb79b857f2a4d8 23-Feb-2016 Felipe Leme <felipeal@google.com> Merge "Split client-side test in 2 classes so some common code can be used to test Power Save Mode." into nyc-dev
6d20fa5230f3b7ec81952b41912adce328e8500d 23-Feb-2016 Felipe Leme <felipeal@google.com> Merge "Refactored how data is shared between test apps." into nyc-dev
4fd3ca36abd6437ff8bf4d4ff24ffe1321413d0a 22-Feb-2016 Makoto Onuki <omakoto@google.com> Un-suppress testPermission{AppUpdate,Prompts}() from

from MixedProfileOwnerTest.

I suppressed those tests on MixedProfileOwnerTest when I
added this class because at that point I thought it was something
to do with how we ran the CTS or something.

It turned out they're actually failing on MixedProfileOwnerTest
too, so it must be really a regression (eithr in the test or in the
actual code).

Bug 27291916

Change-Id: I9b74c85171a91cbc178250479f686783dbc3feab
evicepolicy/src/com/android/cts/devicepolicy/MixedProfileOwnerTest.java
dea5190d1c3e83695b289f30c69176aa418ac86c 22-Feb-2016 Felipe Leme <felipeal@google.com> Merge "Added test for the scenario where the app already has the requested permission." into nyc-dev
ec5d5bd85dd2b7db2748a14499f81cb5d65409e5 21-Feb-2016 Guang Zhu <guangzhu@google.com> fix incorrect use of CLog

Change-Id: I86b3a7b9ca946478afa0f863b2929a06ed5d5b87
adb/src/android/aadb/cts/TestDeviceFuncTest.java
140f79762e6b2eef205124a38fd8f8b36556bbfe 20-Feb-2016 Stuart Scott <stuartscott@google.com> Fix vm-tests-tf

Change-Id: I0ac07376cfab0b26b8ea03c1b2fbc751b3b73062
m/Android.mk
m/AndroidTest.xml
m/targetprep/Android.mk
m/targetprep/src/android/core/vm/targetprep/VmTestPreparer.java
fd0130ed0a2ffbd3081c03d86ef4236ba2768eab 19-Feb-2016 Felipe Leme <felipeal@google.com> Split client-side test in 2 classes so some common code can be used to
test Power Save Mode.

BUG: 27127112
Change-Id: I6954ce8474da6da678d4bfe194334ed5a08aaeff
et/app/src/com/android/cts/net/hostside/AbstractRestrictBackgroundNetworkTestCase.java
et/app/src/com/android/cts/net/hostside/ConnectivityManagerTest.java
et/app/src/com/android/cts/net/hostside/DataSaverModeTest.java
et/src/com/android/cts/net/HostsideRestrictBackgroundNetworkTests.java
286f6fcd85c64eac9bb778303d114f5eb8bc46d1 18-Feb-2016 Felipe Leme <felipeal@google.com> Refactored how data is shared between test apps.

When running the device-site tests, it's necessary to share state
between a second app and the main test app. Currently that's achieved
through a shared preference file that is accessed by both apps (since
they use a shared id), but this approach will not work on power save
mode tests (because the test app will be in foreground and the
background restrictions won't be applied in the second app).

This change refactors the data sharing mechanism by:

- Using an ordered broadcast that is sent from the test app to the
secondary app.
- Checking for the network status in the secondary app.
- Moving the test logic to the client-side tests.

BUG: 27127112
Change-Id: I44987701b908b329fdf40e3a7a97e9f30cfadecb
et/app/AndroidManifest.xml
et/app/src/com/android/cts/net/hostside/ConnectivityManagerTest.java
et/app2/AndroidManifest.xml
et/app2/src/com/android/cts/net/hostside/app2/Common.java
et/app2/src/com/android/cts/net/hostside/app2/MyBroadcastReceiver.java
et/src/com/android/cts/net/HostsideRestrictBackgroundNetworkTests.java
b18d9212ae5884cf2c91fa9fe5e67cba9a7c6300 19-Feb-2016 Ying Wang <wangying@google.com> Define the android.core.vm-tests-tf.jar as a module

So that we can include it in cts_v2 with:
LOCAL_COMPATIBILITY_SUITE := cts_v2

Change-Id: I482df29cca18723fe1d8a938735a48d69e7881b5
m/Android.mk
e4ba0dcedf949349880eb547b90ca878c66a375e 18-Feb-2016 Stuart Scott <stuartscott@google.com> Merge "Make VM tests work as a host side test with CTSv2." into nyc-dev
b1b723186902c71913b16ca2d6daae77b700bf36 18-Feb-2016 Tony Mak <tonymak@google.com> Merge "Add CTS for managed call through ACTION_CALL" into nyc-dev
dba9a7af64311d81169159d805612524cd9b8dec 16-Feb-2016 Stuart Scott <stuartscott@google.com> Make VM tests work as a host side test with CTSv2.

bug:27099366
bug:21762834
Change-Id: Iab42f84f0fac10c1aeca7f7ab9663f1883b2af85
m/Android.mk
m/AndroidTest.xml
m/targetprep/Android.mk
m/targetprep/src/android/core/vm/targetprep/VmTestPreparer.java
daffcecfeebd53e06e4e43dfe6905a84742a16e7 18-Feb-2016 Felipe Leme <felipeal@google.com> Added test for the scenario where the app already has the requested permission.

BUG: 26742218

Change-Id: I08d308b37bc0cd6758c592c7adaf388431114a82
ppsecurity/src/android/appsecurity/cts/DocumentsTest.java
ppsecurity/test-apps/DocumentClient/src/com/android/cts/documentclient/DocumentsClientTest.java
c0b020939a453c1b097b11f089aa7eb54ad7bdfd 17-Feb-2016 Felipe Leme <felipeal@google.com> Merge "Refactored tests that used ACTION_OPEN_EXTERNAL_DIRECTORY to use new APIs." into nyc-dev
c07b74e0c83a1a6d35acd541c10abf81012f53c3 17-Feb-2016 Tony Mak <tonymak@google.com> Merge "[CTS] Add new API PhoneLookup.CONTACT_ID, DATA_ID" into nyc-dev
a3f94678cb10cbb9b1ad997591c98c22c7e71358 17-Feb-2016 Felipe Leme <felipeal@google.com> Refactored tests that used ACTION_OPEN_EXTERNAL_DIRECTORY to use new
APIs.

BUG: 26742218
Change-Id: Ibddc44e922c30bb615c168ef59c05f153338d95e
ppsecurity/test-apps/DocumentClient/src/com/android/cts/documentclient/DocumentsClientTest.java
2d29cb1b4eeda1593d1f5f5f1785ceb1a8219ee1 17-Feb-2016 Tony Mak <tonymak@google.com> Add CTS for managed call through ACTION_CALL

BUG:27224064

Change-Id: Ib7cb8e2415a3ac38747862ff2dc66b565510cbd0
evicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/PhoneAccountTest.java
evicepolicy/src/com/android/cts/devicepolicy/ManagedProfileTest.java
cbf6b3639bfc170a73ef02de3cf42c5e4109f4bf 17-Feb-2016 Tony Mak <tonymak@google.com> [CTS] Add new API PhoneLookup.CONTACT_ID, DATA_ID

BUG:27149017
Change-Id: I61bcd0fcbb6471fafb135dae9ae6472b5bb882b7
evicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/ContactsTest.java
717b9fd093f891e23d2840acb85251fbccaef660 17-Feb-2016 Bill Yi <byi@google.com> Merge commit '4158fbc54acdcb2c7cc52704a45e0e9f3e93ffe1' into HEAD
dc8612c980e456e75a2840cd12ab2f232c0ff137 17-Feb-2016 Tomasz Mikolajewski <mtomasz@google.com> Merge "Remove unused return in MyDocumentsProvider.removeDocument. (CTS)" into nyc-dev
5eb3141ee0ca1db96ae101bc33a4a586ff91671f 17-Feb-2016 Daichi Hirono <hirono@google.com> Fix MyDocumentsProvicer in CTS.

The CL fixes MyDocumentsProvicer in CTS so that it returns correct value
for isChildDocument method.

BUG=27210470

Change-Id: Iba6664b6f6b2cd522a63cb928e5feaa33bed0397
ppsecurity/test-apps/DocumentClient/src/com/android/cts/documentclient/DocumentsClientTest.java
ppsecurity/test-apps/DocumentProvider/src/com/android/cts/documentprovider/MyDocumentsProvider.java
af9fda4e8707ff873cf7b2157a5d2741fb12e689 17-Feb-2016 Carlos Valdivia <carlosvaldivia@google.com> Merge "Remove GET_ACCOUNTS permission" into nyc-dev
4fb27cb07688b19538e9a1f1edad0ce4fff82976 16-Feb-2016 Wale Ogunwale <ogunwale@google.com> Merge changes from topic 'flaky-test' into nyc-dev

* changes:
Fixed a few issues with ActivityManagerPinnedStackTests test class
Remove pinned, docked, and freeform stacks on test tear down.
Reduce the chance of activity manager tests being flaky
527c4f39c0230450c20342fe45396f43286c5154 15-Feb-2016 Wale Ogunwale <ogunwale@google.com> Fixed a few issues with ActivityManagerPinnedStackTests test class

Wait for stacks in activity manager and window manager to have the
same value before proceeding with the state information we got as
there could be a transition running when we got the state information
separately from AM and WM.
Also cleaned up the test some.

Bug: 26982333
Bug: 26982215
Change-Id: I1b3bdea75d180d7db026967ae77bfd8a901baa1b
ervices/activitymanager/src/android/server/cts/ActivityAndWindowManagersState.java
ervices/activitymanager/src/android/server/cts/ActivityManagerPinnedStackTests.java
ervices/activitymanager/src/android/server/cts/ActivityManagerState.java
4320dc73ef334cd250427c98ab64e010679743f5 16-Feb-2016 Stuart Scott <stuartscott@google.com> Merge "Add missing libraries to openglperf2 test cases." into nyc-dev
7cd4e85e7623992316657a9766e8ca85217a3a70 12-Feb-2016 Wale Ogunwale <ogunwale@google.com> Remove pinned, docked, and freeform stacks on test tear down.

Prevents their presence from affecting subsequent tests.

Bug: 26982752
Change-Id: Ia21672265ca62ffdd9d73b134dd483debf6187fa
ervices/activitymanager/src/android/server/cts/ActivityManagerTestBase.java
82eb697da79ab822556e87bce7ddee6738b1797d 12-Feb-2016 Wale Ogunwale <ogunwale@google.com> Reduce the chance of activity manager tests being flaky

It is possible we get the activity manager and window manager states
before the activities under test is visible. We now wait a little for
the activities to be visible before getting state information.

Also, added configuration handling to some pipeable activities.

Bug: 26982752
Change-Id: I0a367e9d5b4e4f4e5174deb38362a3d85444cf37
ervices/activitymanager/app/AndroidManifest.xml
ervices/activitymanager/src/android/server/cts/ActivityAndWindowManagersState.java
ervices/activitymanager/src/android/server/cts/ActivityManagerDockedStackTests.java
ervices/activitymanager/src/android/server/cts/ActivityManagerPinnedStackTests.java
ervices/activitymanager/src/android/server/cts/ActivityManagerReplaceWindowTests.java
ervices/activitymanager/src/android/server/cts/ActivityManagerVisibleBehindActivityTests.java
fcae4daa6e4e925cf48bac58c1e25ecfcc33d225 16-Feb-2016 Ben Kwa <kenobi@google.com> Fix some IDs for UI elements.

Some resource IDs were changed in
ag/I00e20cbdbe9edfe269fb356440a93ef5d67c5298. Fix the cts code to use
the new IDs.

BUG=27184578

Change-Id: I0490260da9e7dd0530fe535181ef8e2a86f8de7d
ppsecurity/test-apps/DocumentClient/src/com/android/cts/documentclient/DocumentsClientTest.java
524910905a81f4b2f51ee02fb57177638d9964a7 15-Feb-2016 Tomasz Mikolajewski <mtomasz@google.com> Remove unused return in MyDocumentsProvider.removeDocument. (CTS)

Bug: 27113305
Change-Id: I1b1e04ee8ff56a176c4b7930d94ff6cf28a2c5ab
ppsecurity/test-apps/DocumentProvider/src/com/android/cts/documentprovider/MyDocumentsProvider.java
19561eb9685f87cd24b3f283247fd34422004bc7 11-Feb-2016 Tomasz Mikolajewski <mtomasz@google.com> Add CTS for DocumentsProvider.openTypedDocument.

Change-Id: If18e72796bc480c21b1acdcaac80ddbae16ec069
ppsecurity/src/android/appsecurity/cts/DocumentsTest.java
ppsecurity/test-apps/DocumentClient/src/com/android/cts/documentclient/DocumentsClientTest.java
ppsecurity/test-apps/DocumentProvider/src/com/android/cts/documentprovider/MyDocumentsProvider.java
ac4e91f72cd7aca4808856322b321575cffbe0e8 12-Feb-2016 Carlos Valdivia <carlosvaldivia@google.com> Remove GET_ACCOUNTS permission

It is deprecated and doesn't make a difference here anyway. Both the
AccountManagement and DeviceAndProfileOwner packages are signed with the
same keys.

Bug: 21901286
Change-Id: Ie36be5f6b69e9c38e2be92df8297fd518f737e0d
evicepolicy/app/AccountManagement/AndroidManifest.xml
evicepolicy/app/DeviceAndProfileOwner/AndroidManifest.xml
81a9e0262c3ded44fc75371014a200286877a83c 12-Feb-2016 Tomasz Mikolajewski <mtomasz@google.com> Merge "Add CTS for copyDocument, moveDocument and removeDocument in SAF." into nyc-dev
c50f5e481afebfd55ea48d36bff0ec1c2ef898de 09-Feb-2016 Stuart Scott <stuartscott@google.com> Add missing libraries to openglperf2 test cases.

bug:26980605
Change-Id: I288e99fd1ddf7fdd65081f06b75bedaf58aeb421
ank/src/android/jank/cts/CtsHostJankTest.java
0caac28e24677960f5b638262117e17f3f3ef0e2 12-Feb-2016 Felipe Leme <felipeal@google.com> Merge "Updated tests cases after to assert the proper number of notifications." into nyc-dev
0e316c176b507606f3a729f69cc60f64cabcf6cd 10-Feb-2016 Tomasz Mikolajewski <mtomasz@google.com> Add CTS for copyDocument, moveDocument and removeDocument in SAF.

Bug: 27108694
Change-Id: I1ec1df0098dadeccc703ed2a00689592f76853b8
ppsecurity/src/android/appsecurity/cts/DocumentsTest.java
ppsecurity/test-apps/DocumentClient/src/com/android/cts/documentclient/DocumentsClientTest.java
ppsecurity/test-apps/DocumentProvider/src/com/android/cts/documentprovider/MyDocumentsProvider.java
8be82a23ccb7743efc525e62e9c154615e9383ae 11-Feb-2016 Felipe Leme <felipeal@google.com> Updated tests cases after to assert the proper number of notifications.

Previously NMPS was broadcasting an intent every time
add|removeRestrictBackgroundWhitelistedUid() was called, but that
behavior has been changed to just broadcast an intent when there is a
change.

BUG: 26685616

Change-Id: I4eb7a4fda864a28ea23b661d1a88e18bfb80533d
et/app/src/com/android/cts/net/hostside/ConnectivityManagerTest.java
et/src/com/android/cts/net/HostsideRestrictBackgroundNetworkTests.java
3732f6692eab24553b62b81b762e45e1e187061b 10-Feb-2016 Makoto Onuki <omakoto@google.com> Move all resetPassword() tests to hostside test

- tests/tests/admin no longer runs as device-owner.
This fixes CTS v1, and also running those tests as DO wasn't a good
idea anyway.

- All the password related tests have been moved to the
DeviceAdmin hostside test.

- Now we really should run all the DeviceAdmin hostside tests
as a pure, non-device-owner DA, but turned out that's very painful
because that means each device side test can only call resetPassword()
once, then on the host side it needs to call DO to clear the password.
So I gave up and moved all the password quality related tests to
a single test, and run it as device-owner. Other tests are still
run as a pure non-DO da.

Bug 27045567

Change-Id: I5f54827b28e00f23c7b913ffb06c326cca161337
evicepolicy/app/DeviceAdmin/res/xml/device_admin.xml
evicepolicy/app/DeviceAdmin/src/com.android.cts.deviceadmin/BaseDeviceAdminTest.java
evicepolicy/app/DeviceAdmin/src/com.android.cts.deviceadmin/ClearDeviceAdminTest.java
evicepolicy/app/DeviceAdmin/src/com.android.cts.deviceadmin/ClearDeviceOwnerTest.java
evicepolicy/app/DeviceAdmin/src/com.android.cts.deviceadmin/ClearPasswordTest.java
evicepolicy/app/DeviceAdmin/src/com.android.cts.deviceadmin/DeviceAdminPasswordTest.java
evicepolicy/app/DeviceAdmin/src/com.android.cts.deviceadmin/DeviceAdminTest.java
evicepolicy/app/DeviceAdmin/src/com.android.cts.deviceadmin/DeviceOwnerPasswordTest.java
evicepolicy/src/com/android/cts/devicepolicy/BaseDeviceAdminHostSideTest.java
07175688e1ff70b4c77752487ee553799254c75a 10-Feb-2016 Felipe Leme <felipeal@google.com> Merge "Refactored tests to make a real network connection." into nyc-dev
972c597afe6a0da792b9dd45711346d4bb9a01b8 10-Feb-2016 Felipe Leme <felipeal@google.com> Refactored tests to make a real network connection.

The current approach assumes that if the active network is null it is
blocked for background access, but that's not the case.

BUG: 26685616
Change-Id: Ic6990037a2bc503c14512d7303ec71eb178f784b
et/app/src/com/android/cts/net/hostside/ConnectivityManagerTest.java
beee67ada802a2084101295ff910ae54606e83da 10-Feb-2016 Victor Chang <vichang@google.com> Merge "CTS photo_uri can actually be read for local and remote work directory" into nyc-dev
447fe8d49279d6d791ca55c827333bc3bd14cfd3 09-Feb-2016 Esteban Talavera <etalavera@google.com> Merge "Fix delegated cert installer test" into nyc-dev
bd1992c14722462a167da64d6b65687499f40978 09-Feb-2016 Esteban Talavera <etalavera@google.com> Fix delegated cert installer test

For the managed profile use case, set a profile owner
on the primary user instead of a plain device admin.
Device admins are not able to reset passwords from N.
For device owner or profile owner on meat user tests,
that existing owner will set/clear the password instead

Bug: 25906854
Change-Id: Ib5f448379b30373d499e317569d2a27f37f487c3
evicepolicy/app/DeviceAndProfileOwner/AndroidManifest.xml
evicepolicy/app/DeviceAndProfileOwner/res/xml/device_admin.xml
evicepolicy/app/DeviceAndProfileOwner/res/xml/primary_device_admin.xml
evicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/PrimaryUserAdminHelper.java
evicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/PrimaryUserDeviceAdmin.java
evicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/ResetPasswordHelper.java
evicepolicy/src/com/android/cts/devicepolicy/DeviceAndProfileOwnerTest.java
92f241b76c06f94e0509b4e06cb6b84d09b40155 09-Feb-2016 Jason Monk <jmonk@google.com> Merge "Add CTS Tests for QS Tiles" into nyc-dev
d5dd9ea7e2aeae85e52e6a17963231370510be3a 09-Feb-2016 Esteban Talavera <etalavera@google.com> Merge "Don't remove the admin while removing the DO" into nyc-dev
f145b2dce833565b49be73f748c98589a38cbd1c 29-Jan-2016 Jason Monk <jmonk@google.com> Add CTS Tests for QS Tiles

They are host side tests that install tiles and then run a bunch of
adb commands to force the TileServices through various states.

Change-Id: I8a6002d95501a8d8d120d2b12fc6784d13c72b1c
ystemui/Android.mk
ystemui/AndroidTest.xml
ystemui/app/Android.mk
ystemui/app/AndroidManifest.xml
ystemui/app/src/android/systemui/cts/TestActiveTileService.java
ystemui/app/src/android/systemui/cts/TestTileService.java
ystemui/src/android/host/systemui/ActiveTileServiceTest.java
ystemui/src/android/host/systemui/BaseTileServiceTest.java
ystemui/src/android/host/systemui/TileServiceTest.java
76ba3d26422b8e122ed731f741b791a812048a46 08-Feb-2016 Felipe Leme <felipeal@google.com> Improve CTS tests to really check background network restrictions.

BUG: 26685616
Change-Id: If2b1649435b0a4e5b8c383eb3196807a03359d70
et/app/src/com/android/cts/net/hostside/ConnectivityManagerTest.java
et/src/com/android/cts/net/HostsideRestrictBackgroundNetworkTests.java
7aa3f53e295adc5d0e4da9d7b14ad6fcfd4a76d6 08-Feb-2016 Esteban Talavera <etalavera@google.com> Don't remove the admin while removing the DO

That now fails. clearDeviceOwnerApp takes care of
removing the admin

Change-Id: Ida0ec6a9760977f4aae6d464390f5b2bdf591ded
evicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/ClearDeviceOwnerTest.java
evicepolicy/app/PackageInstaller/src/com/android/cts/packageinstaller/ClearDeviceOwnerTest.java
894124d8564b9ad349952bd1ef16eb9f3ab7b1a6 04-Feb-2016 Victor Chang <vichang@google.com> CTS photo_uri can actually be read for local and remote work directory

BUG=26581725

Change-Id: I826af74a5ae4de5f6da635ab9191050670bb5513
evicepolicy/app/ContactDirectoryProvider/res/raw/managed_photo.png
evicepolicy/app/ContactDirectoryProvider/res/raw/managed_thumbnail.png
evicepolicy/app/ContactDirectoryProvider/res/raw/primary_photo.png
evicepolicy/app/ContactDirectoryProvider/res/raw/primary_thumbnail.png
evicepolicy/app/ContactDirectoryProvider/src/com/android/cts/contactdirectoryprovider/DirectoryProvider.java
evicepolicy/app/ManagedProfile/res/raw/managed_photo.png
evicepolicy/app/ManagedProfile/res/raw/managed_thumbnail.png
evicepolicy/app/ManagedProfile/res/raw/primary_photo.png
evicepolicy/app/ManagedProfile/res/raw/primary_thumbnail.png
evicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/ContactsTest.java
0fc33180d15abf5efff5e1327a696f1a2d748247 06-Feb-2016 Makoto Onuki <omakoto@google.com> Clean up the DA host side test.

Bug 27045567

Change-Id: I89a30b494bb351e1d1a1874bc3eb6371ba93a555
evicepolicy/app/DeviceAdmin/res/xml/device_admin.xml
evicepolicy/app/DeviceAdmin/src/com.android.cts.deviceadmin/ClearPasswordTest.java
evicepolicy/app/DeviceAdmin/src/com.android.cts.deviceadmin/DeviceAdminTest.java
evicepolicy/src/com/android/cts/devicepolicy/BaseDeviceAdminHostSideTest.java
687545f9cc4e59276930381f448344889efea653 06-Feb-2016 Makoto Onuki <omakoto@google.com> Merge "Hostside DA CTS for DA targeting API level 23"
df147045a91ed6b66f42952e84e85935fff216d4 05-Feb-2016 Daniel Cashman <dcashman@google.com> Merge "Ignore ps proctitle cmd params." am: 608f77c5c7 am: 3d8d847757
am: 973b56c8d2

* commit '973b56c8d2dec6d20efcd6d9be06f5431bf4ef04':
Ignore ps proctitle cmd params.
973b56c8d2dec6d20efcd6d9be06f5431bf4ef04 05-Feb-2016 Daniel Cashman <dcashman@google.com> Merge "Ignore ps proctitle cmd params." am: 608f77c5c7
am: 3d8d847757

* commit '3d8d84775712eea3a57796b554f0f08f163834f1':
Ignore ps proctitle cmd params.
c83e983a03b1f9b67c1466aa8aebf7db277e8944 05-Feb-2016 dcashman <dcashman@google.com> Ignore ps proctitle cmd params.

toybox ps cmdline output may include commandline options/args in
addition to the executable used to start the process. Only pay
attention to the first portion.

Bug: 26985685
Change-Id: I787f54cbd80e33f5491d85a90def8c0bed778bde
ecurity/src/android/cts/security/SELinuxHostTest.java
2bed1bb5a75a1511ca9a47d7909ab7244d3f7ef1 05-Feb-2016 Daniel Cashman <dcashman@google.com> Merge "SELinuxHostTest: fix failures due to ps -Z output change" am: afbb457660
am: 856ea437a0

* commit '856ea437a06a1b57542e209234929f87a9e63edf':
SELinuxHostTest: fix failures due to ps -Z output change
b1ee00d2c1405e18240fff41da5b3c756c234384 20-Nov-2015 Nick Kralevich <nnk@google.com> SELinuxHostTest: fix failures due to ps -Z output change

The output of "ps -Z" changed, causing test failures. Use the toybox
version of ps and exactly specify what fields we want.

(cherry-pick of commit: 2387f0d2b0ba04e71650483a31d831314efdea9e)

Bug: 25777204
Change-Id: I633ed68e99598bae34ac9e108e983e801ab2b208
ecurity/src/android/cts/security/SELinuxHostTest.java
c769941fca4e88e0091415433091c4c34c2037ed 29-Jan-2016 Makoto Onuki <omakoto@google.com> Hostside DA CTS for DA targeting API level 23

When the DA is targeting MNC or below,
- resetPassowrd() will not throw, but just ignore the call.
- DA can still be activated without permission=BIND_DEVICE_ADMIN

Bug 25506830
Bug 24168653
Bug 25645900

Change-Id: I81070d6129f33fe99e74c652aaee798a177d0327
evicepolicy/app/DeviceAdmin/Android.mk
evicepolicy/app/DeviceAdmin/AndroidManifest.xml
evicepolicy/app/DeviceAdmin/api23/Android.mk
evicepolicy/app/DeviceAdmin/api23/AndroidManifest.xml
evicepolicy/app/DeviceAdmin/api24/Android.mk
evicepolicy/app/DeviceAdmin/api24/AndroidManifest.xml
evicepolicy/app/DeviceAdmin/src/com.android.cts.deviceadmin/BaseDeviceAdminTest.java
evicepolicy/app/DeviceAdmin/src/com.android.cts.deviceadmin/ClearDeviceAdminTest.java
evicepolicy/app/DeviceAdmin/src/com.android.cts.deviceadmin/ClearDeviceAdminWithNoProtectionTest.java
evicepolicy/app/DeviceAdmin/src/com.android.cts.deviceadmin/ClearDeviceOwnerTest.java
evicepolicy/app/DeviceAdmin/src/com.android.cts.deviceadmin/DeviceAdminReceiverWithNoProtection.java
evicepolicy/app/DeviceAdmin/src/com.android.cts.deviceadmin/DeviceAdminTest.java
evicepolicy/src/com/android/cts/devicepolicy/BaseDeviceAdminHostSideTest.java
evicepolicy/src/com/android/cts/devicepolicy/DeviceAdminHostSideTest.java
evicepolicy/src/com/android/cts/devicepolicy/DeviceAdminHostSideTestApi23.java
evicepolicy/src/com/android/cts/devicepolicy/DeviceAdminHostSideTestApi24.java
ab8d2be062e34edf5e44de59b73ba19495144803 04-Feb-2016 Felipe Leme <felipeal@google.com> Split hostside network tests in multiple classes.

Initially HostsideNetworkTests.java was used to just launch VpnTest, but
it became more complex with the inclusion of ConnectivityManagerTest,
which required hostside logic.

By splitting these tests not only the VPN tests will run faster (since it
doesn't need the setup/clean from ConnectivityManager), but the
ConnectivityManager tests will be cleaner (since it can have more logic
on setup and teardown).

BUG: 26685616
Change-Id: Ie29c4a3e83956b217d90b84c9b4541690cde0344
et/src/com/android/cts/net/HostsideNetworkTestCase.java
et/src/com/android/cts/net/HostsideRestrictBackgroundNetworkTests.java
et/src/com/android/cts/net/HostsideVpnTests.java
4e8ad5c93971e34ae9975093e242b4da13d0bddf 04-Feb-2016 Felipe Leme <felipeal@google.com> Renamed and cloned HostsideNetworkTests.java

This is a no-op change that will make it easier to split the
HostsideNetworkTestCase.java logic into multiple files.

In this change, HostsideNetworkTests.java was renamed to
HostsideNetworkTestCase.java and copied as-is to
HostsideRestrictBackgroundNetworkTests.java; the next change will split
the logic in between these class so they can be properly git-diffed.

In fact, the only difference between then is the class declarations:

diff HostsideNetworkTestCase.java HostsideRestrictBackgroundNetworkTests.java
39c39
< abstract class HostsideNetworkTestCase extends DeviceTestCase implements IAbiReceiver,
---
> public class HostsideRestrictBackgroundNetworkTests extends DeviceTestCase implements IAbiReceiver,

BUG: 26685616
Change-Id: I87dadec528eaeff776d55d3382f356066496429a
et/src/com/android/cts/net/HostsideNetworkTestCase.java
et/src/com/android/cts/net/HostsideNetworkTests.java
et/src/com/android/cts/net/HostsideRestrictBackgroundNetworkTests.java
783cffc0304fe66ca46b63b68c73f8502f00bbec 04-Feb-2016 Felipe Leme <felipeal@google.com> Merge "Added CTS tests for RESTRICT_BACKGROUND_CHANGED."
514351f67142e0fa36a641f8a8306554a2604c48 27-Jan-2016 Felipe Leme <felipeal@google.com> Added CTS tests for RESTRICT_BACKGROUND_CHANGED.

These tests require a second app (besides the test app) that defines a
service; the host-side test then launches the service whose only purpose
is to define a broadcast receiver, which in turn will count the number
of intents received in a shared preferences file. Then the test app will
read the shared preferences and assert the proper number of intents have
been received.

BUG: 26451391
Change-Id: I4c5d5e57c09a0bd57a7f6581820cc9115318dd47
et/app/AndroidManifest.xml
et/app/src/com/android/cts/net/hostside/ConnectivityManagerTest.java
et/app/src/com/android/cts/net/hostside/MyActivity.java
et/app/src/com/android/cts/net/hostside/MyVpnService.java
et/app2/Android.mk
et/app2/AndroidManifest.xml
et/app2/src/com/android/cts/net/hostside/app2/Common.java
et/app2/src/com/android/cts/net/hostside/app2/MyBroadcastReceiver.java
et/app2/src/com/android/cts/net/hostside/app2/MyService.java
et/src/com/android/cts/net/HostsideNetworkTests.java
df996937465d7c09bbd7a6659d2a4c52e5f12958 28-Jan-2016 Mahaver Chopra <mahaver@google.com> Added tests for password restrictions

Added some basic tests for DPM.setPasswordMinimum* restrictions.

Change-Id: I962bc1eda2f3b3148b57d1ddc7a467a48851867a
evicepolicy/app/ManagedProfile/res/xml/device_admin.xml
evicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/PasswordMinimumRestrictionsTest.java
evicepolicy/src/com/android/cts/devicepolicy/ManagedProfileTest.java
73be590f85b158889d08947a5c99c9424dcaffeb 02-Feb-2016 Makoto Onuki <omakoto@google.com> CTS for 26858840 -- clearDO/PO should remove it from admin list

Bug 26858840

Change-Id: Ibae44c6a024452853197aeb74813c4b8a1a74235
evicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/ClearDeviceOwnerTest.java
evicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/ClearProfileOwnerTest.java
evicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/Utils.java
9c8a63587008c75a494531b6a747c76cf5cbbc33 02-Feb-2016 Esteban Talavera <etalavera@google.com> Merge "Add tests for app restrictions managing app APIs"
58ccef78ec88132bd1d134db90ceb9d1fa8e599d 02-Feb-2016 Makoto Onuki <omakoto@google.com> Merge "CTS for user restriction layering"
0d87f33eab8ab831019a3fb615aff0506e9c736c 02-Feb-2016 Jorim Jaggi <jjaggi@google.com> Merge "Add CTS tests for resizedDockedStack (2/2)"
7b4a149af8386719cb6886e82e3d5df38e11db23 01-Feb-2016 Jorim Jaggi <jjaggi@google.com> Merge "Fix replacing window tests"
067cecb02722b00b853951b70a303f6780aa3704 01-Feb-2016 Jason Monk <jmonk@google.com> Merge "Revert "Add CTS Tests for QS Tiles""
cb76377cef1653c62955555aff1f13f5c30c7480 01-Feb-2016 Jason Monk <jmonk@google.com> Revert "Add CTS Tests for QS Tiles"

This reverts commit 952879d26caf5afe9bc56d87608fc4f88d253347.

Change-Id: I5d8f177ef51996f0d9948549a888ecf9cfc1cdd5
ysui/Android.mk
ysui/AndroidTest.xml
ysui/app/Android.mk
ysui/app/AndroidManifest.xml
ysui/app/src/android/sysui/testtile/TestActiveTileService.java
ysui/app/src/android/sysui/testtile/TestTileService.java
ysui/src/android/host/systemui/ActiveTileServiceTest.java
ysui/src/android/host/systemui/BaseTileServiceTest.java
ysui/src/android/host/systemui/TileServiceTest.java
2db6ad170c94f0849862e61206e874abe8bc47d1 27-Jan-2016 Esteban Talavera <etalavera@google.com> Add tests for app restrictions managing app APIs

Bug: 22541936
Change-Id: Id16e1608fce983c7f66efa9ddc9afef8dbb19524
evicepolicy/app/AppRestrictionsManagingApp/Android.mk
evicepolicy/app/AppRestrictionsManagingApp/AndroidManifest.xml
evicepolicy/app/AppRestrictionsManagingApp/src/com/android/cts/apprestrictions/managingapp/ApplicationRestrictionsManagerTest.java
evicepolicy/app/AppRestrictionsTargetApp/Android.mk
evicepolicy/app/AppRestrictionsTargetApp/AndroidManifest.xml
evicepolicy/app/AppRestrictionsTargetApp/src/com/android/cts/apprestrictions/targetapp/ApplicationRestrictionsActivity.java
evicepolicy/app/DeviceAndProfileOwner/AndroidManifest.xml
evicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/ApplicationRestrictionsActivity.java
evicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/ApplicationRestrictionsTest.java
evicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/SetPolicyActivity.java
evicepolicy/src/com/android/cts/devicepolicy/DeviceAndProfileOwnerTest.java
156a8f476c9589b82378a22f7aea5ebc5b7ae963 01-Feb-2016 Jason Monk <jmonk@google.com> Merge "Add CTS Tests for QS Tiles"
952879d26caf5afe9bc56d87608fc4f88d253347 29-Jan-2016 Jason Monk <jmonk@google.com> Add CTS Tests for QS Tiles

They are host side tests that install tiles and then run a bunch of
adb commands to force the TileServices through various states.

Change-Id: I876577f9a3bb7467161f6e62c910b69cb23a6d74
ysui/Android.mk
ysui/AndroidTest.xml
ysui/app/Android.mk
ysui/app/AndroidManifest.xml
ysui/app/src/android/sysui/testtile/TestActiveTileService.java
ysui/app/src/android/sysui/testtile/TestTileService.java
ysui/src/android/host/systemui/ActiveTileServiceTest.java
ysui/src/android/host/systemui/BaseTileServiceTest.java
ysui/src/android/host/systemui/TileServiceTest.java
31779ba9b57c35bbfee33e0c85ff64a854af7cd6 01-Feb-2016 Wale Ogunwale <ogunwale@google.com> Merge "Renamed Activity class multi-window APIs"
2f7514703d67734fbeeb64af53d1f4ba10e2bd63 01-Feb-2016 Michal Karpinski <mkarpinski@google.com> Merge "CTS tests for DPM Device Owner device logging"
7cac6fb23fdbaeb99937a36ff7589bf8c5567aa0 30-Jan-2016 Wale Ogunwale <ogunwale@google.com> Renamed FLAG_ACTIVITY_LAUNCH_TO_SIDE to FLAG_ACTIVITY_LAUNCH_ADJACENT

Per feedback from API council.

Bug: 26508215
Change-Id: I91d59c2016a8675d5b32a386a86dd851b32d3274
ervices/activitymanager/app/src/android/server/app/LaunchToSideActivity.java
0a75dcb34c4fa2410820ba9ad1ca1276ba52d35e 30-Jan-2016 Wale Ogunwale <ogunwale@google.com> Renamed Activity class multi-window APIs

As requested by API council.

Bug: 26507736
Change-Id: I8a8aa117c437f6351dc9dcb514654ac733443be1
ervices/activitymanager/app/src/android/server/app/AutoEnterPipActivity.java
ervices/activitymanager/app/src/android/server/app/LaunchPipOnPipActivity.java
229833ec951683176efb0588f1dea34fabe5e790 29-Dec-2015 Jorim Jaggi <jjaggi@google.com> Add CTS tests for resizedDockedStack (2/2)

Bug: 25015474
Bug: 26311778
Change-Id: I8342225eb10748eb9add58158892c1ed95b78a32
ervices/activitymanager/app/AndroidManifest.xml
ervices/activitymanager/app/src/android/server/app/DockedActivity.java
ervices/activitymanager/src/android/server/cts/ActivityManagerDockedStackTests.java
ervices/activitymanager/src/android/server/cts/ActivityManagerState.java
ervices/activitymanager/src/android/server/cts/ActivityManagerTestBase.java
38fe68d06418803c0a3f2f276e1e39efce33546d 28-Jan-2016 Makoto Onuki <omakoto@google.com> CTS for user restriction layering

- Make sure DO/PO can set all the restrictions they should be able to
set (but skip ones that'd affect test behavior), but not the other
ones.

- Make sure they're properly layered.

- Make sure user-0 PO can set DO restrictions too, but they won't leak
to other users.

TODO Test layering with system user restrictions, which is currently
not testable because CTS can't set user restrictions. Will add an
option to pm create-user to set default secondary user restrictions
(SMS/CALL) to test it.

Bug 25506830
Bug 23902097

Also fix bug 26858840

Change-Id: Ia4e6dcab9c53101da0186e5a7cccd60306e02e1b
evicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/BaseDeviceAdminTest.java
evicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/ClearDeviceOwnerTest.java
evicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/ClearProfileOwnerTest.java
evicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/Utils.java
evicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/userrestrictions/BaseUserRestrictionsTest.java
evicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/userrestrictions/CheckNoOwnerRestrictionsTest.java
evicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/userrestrictions/DeviceOwnerUserRestrictionsTest.java
evicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/userrestrictions/PrimaryProfileOwnerUserRestrictionsTest.java
evicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/userrestrictions/SecondaryProfileOwnerUserRestrictionsTest.java
evicepolicy/src/com/android/cts/devicepolicy/BaseDevicePolicyTest.java
evicepolicy/src/com/android/cts/devicepolicy/UserRestrictionsTest.java
567b6a7f589c5b289efe757f6aeec139040aa874 30-Jan-2016 Jorim Jaggi <jjaggi@google.com> Fix replacing window tests

Change-Id: I239cad548a6726faf77bee97324f99a646b7b7c1
ervices/activitymanager/src/android/server/cts/ActivityManagerReplaceWindowTests.java
73faa62117854dad30868493932185d1323cecc9 28-Jan-2016 Makoto Onuki <omakoto@google.com> Merge "CTS for DPM.resetPassword (DA case, API 24) ..."
92f2d123655316b565f2836879bc0698613cf9e1 28-Jan-2016 Makoto Onuki <omakoto@google.com> CTS for DPM.resetPassword (DA case, API 24) ...

... as well as "DA without BIND_DEVICE_ADMIN".

TODO: Make sure resetPassword won't throw securityException for
API 23 DAs

Bug 25645900
Bug 25506830
Bug 24168653

Change-Id: If1e714ed974adce20e2d65db4e5e8ef5118dcce7
evicepolicy/app/DeviceAdmin/Android.mk
evicepolicy/app/DeviceAdmin/AndroidManifest.xml
evicepolicy/app/DeviceAdmin/res/xml/device_admin.xml
evicepolicy/app/DeviceAdmin/src/com.android.cts.deviceadmin/ClearDeviceAdminTest.java
evicepolicy/app/DeviceAdmin/src/com.android.cts.deviceadmin/ClearDeviceOwnerTest.java
evicepolicy/app/DeviceAdmin/src/com.android.cts.deviceadmin/DeviceAdminReceiverWithNoProtection.java
evicepolicy/app/DeviceAdmin/src/com.android.cts.deviceadmin/DeviceAdminTest.java
evicepolicy/app/DeviceAndProfileOwner/Android.mk
evicepolicy/app/DeviceAndProfileOwner/AndroidManifest.xml
evicepolicy/src/com/android/cts/devicepolicy/BaseDevicePolicyTest.java
evicepolicy/src/com/android/cts/devicepolicy/DeviceAdminHostSideTest.java
evicepolicy/src/com/android/cts/devicepolicy/DeviceAndProfileOwnerTest.java
24d5683f767e2f488db0b8e8dae28ac277ea8b2c 26-Jan-2016 Lenka Trochtova <ltrochtova@google.com> Test creating ephemeral user with
DevicePolicyManager#createAndManageUser method.

BUG: 24883058

Change-Id: Ie7c3838c916a236566cbdf0ab728158e53987248
evicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/CreateAndManageUserTest.java
evicepolicy/src/com/android/cts/devicepolicy/DeviceOwnerTest.java
3be67af618220c001fcf39a25982091d2d5b4a3e 05-Jan-2016 Lenka Trochtova <ltrochtova@google.com> Test all guests are created ephemeral if the
all-guests-ephemeral config flag is true.

BUG: 25737696

Change-Id: I37687191d23581d87eb8576188f3cb128e4c5923
evicepolicy/src/com/android/cts/devicepolicy/BaseDevicePolicyTest.java
evicepolicy/src/com/android/cts/devicepolicy/EphemeralUserTest.java
1238dde6693360b12f64233f0684b6013d9146be 11-Jan-2016 Lenka Trochtova <ltrochtova@google.com> Add tests for force-ephemeral-users policy.

BUG: 24883058

Change-Id: I970df317e33bb9c56ae9719d88047818bd084c41
evicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/ForceEphemeralUsersTest.java
evicepolicy/src/com/android/cts/devicepolicy/BaseDevicePolicyTest.java
evicepolicy/src/com/android/cts/devicepolicy/DeviceOwnerTest.java
evicepolicy/src/com/android/cts/devicepolicy/EphemeralUserTest.java
7fdebafabe7e39d83a0fbac11c0ef8176e312184 27-Jan-2016 Makoto Onuki <omakoto@google.com> Merge "CTS for DPM.resetPassword() (part 1: DO/PO case)"
3c4645b36804bb1df84b3ade84cbe65d92617bd6 27-Jan-2016 Makoto Onuki <omakoto@google.com> CTS for DPM.resetPassword() (part 1: DO/PO case)

DO/PO should still be able to change/clear the password even if one is
already set.

Also renamed "MixedProfileOwnerTest" to "MixedManagedProfileOwnerTest"
and added "MixedProfileOwnerTest" for the pure-PO case.

TODO Add a test for the DA case too.

Bug 25645900
Bug 25506830
Bug 26827204

Change-Id: Id562b45cfb71796091215d3d4a9d026387232f72
evicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/ClearProfileOwnerNegativeTest.java
evicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/ClearProfileOwnerTest.java
evicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/ResetPasswordTest.java
evicepolicy/src/com/android/cts/devicepolicy/DeviceAndProfileOwnerTest.java
evicepolicy/src/com/android/cts/devicepolicy/MixedManagedProfileOwnerTest.java
evicepolicy/src/com/android/cts/devicepolicy/MixedProfileOwnerTest.java
e8bfeb2d7cb95b9e378a0ae067b106c61620d622 27-Jan-2016 Felipe Leme <felipeal@google.com> Removed reference to hidden annotation.

BUG: 26082535
BUG: 26451391
Change-Id: I267010a49df3212ca96f54b65aa7c8a14982a70c
et/app/src/com/android/cts/net/hostside/ConnectivityManagerTest.java
1acf231422706f8a3e72fd3b6cb4fd7cc43250f6 27-Jan-2016 Felipe Leme <felipeal@google.com> Merge "Added CTS tests for ACTION_OPEN_EXTERNAL_DIRECTORY."
8a470524f419af360e57eb241cafd3d2ebe0db93 27-Jan-2016 Felipe Leme <felipeal@google.com> Merge "Added tests for restricted background APIs."
b1f81a6a144aca0cc5ecce7ed9bb80273b39ef32 27-Jan-2016 Robin Lee <rgl@google.com> Stronger test for support message MAX_LENGTH

Change-Id: I1b216477594135536a51ccb1fa3710a2a00f8f6e
evicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/SupportMessageTest.java
10ed08322fe50534aa3f9a1f055b28c473d9fe15 23-Jan-2016 Felipe Leme <felipeal@google.com> Added CTS tests for ACTION_OPEN_EXTERNAL_DIRECTORY.

BUG: 23011462
Change-Id: I2a87b31f47a83023b71944d8db545eb19dae8bfa
ppsecurity/src/android/appsecurity/cts/DocumentsTest.java
ppsecurity/test-apps/DocumentClient/src/com/android/cts/documentclient/DocumentsClientTest.java
ppsecurity/test-apps/DocumentClient/src/com/android/cts/documentclient/MyActivity.java
4e6e4b439bcc5bd18ace56a54f3a561f309e2f70 20-Jan-2016 Felipe Leme <felipeal@google.com> Added tests for restricted background APIs.

Although the main purpose of these change is to test the new public
API (ConnectivityManager.getRestrictBackgroundStatus()), it also
indirectly tests the new private API on
INetworkPolicyManager (addRestrictBackgroundWhitelistedUid(),
removeRestrictBackgroundWhitelistedUid(), and
getRestrictBackgroundWhitelistedUids()), since they're used on each test
to setup the device state.

This change also modified how the device-side tests are run: the
runDeviceTests() had a className parameter that was not used, and this
CL not only uses it but also introduces a methodName as well. The
reasoning for this change is that the host-side tests must interact with
the device-side tests many times during each test; in fact, the "real"
test is done at the host side, while the device-side test is just used
to assert the expected result of getRestrictBackgroundStatus()).

BUG: 26451391

Change-Id: I7114e350f3b247d2f05b0c280a09cad383c61f9a
et/app/src/com/android/cts/net/hostside/ConnectivityManagerTest.java
et/src/com/android/cts/net/HostsideNetworkTests.java
dbc4d9e66c81cb8c32a4ae471bddaf20347594ff 27-Jan-2016 Robin Lee <rgl@google.com> Merge "Tests for the set.*SupportMessage device policies"
3feb77eaae0e114f6ae67578997ac741512cbf77 27-Jan-2016 Tony Mak <tonymak@google.com> Merge "Fix typo in test case method name"
055d2f3e3e44e6723422368d4fa14a77c6022207 27-Jan-2016 Tony Mak <tonymak@google.com> Fix typo in test case method name

Change-Id: I605a32329e0bab1d15636634575252d7d225ebb0
evicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/ContactsTest.java
93d727830404bc3b1cba8aa0f4d690d4bbea8529 27-Jan-2016 Tony Mak <tonymak@google.com> Merge "Fix typo in cts test case name"
c07a541758271bf7c222ac946a0abf3631d6e37a 27-Jan-2016 Tony Mak <tonymak@google.com> Fix typo in cts test case name

Change-Id: Ib88ea32ffa3adba86828a5f17c8af479a4812766
evicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/ContactsTest.java
4fb741ba867039e989725a083e7c6874eb51e97c 22-Jan-2016 Michal Karpinski <mkarpinski@google.com> CTS tests for DPM Device Owner device logging

Basic tests that verify that device logging methods can only be used
by Device Owner with single user. Also a basic test to verify rate
limiting - that the log cannot be accessed immediately after
successful retrieval.

Bug: 26735203
Change-Id: I4f25ddba279e4909206db4642506d788959388ba
evicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/DeviceLoggingTest.java
evicepolicy/src/com/android/cts/devicepolicy/DeviceOwnerTest.java
23623afcefce63684265119eae2f6656095917ce 08-Jan-2016 Michal Karpinski <mkarpinski@google.com> CTS tests for DPM#requestBugreport()

Tests that check that requesting bugreport can be only made in
Device Owner mode with single user and that there can only be
one request running on the device at one time.

Bug: 26477286
Change-Id: I86d68a47a71fe3e3918cd4c33bef310083a278d6
evicepolicy/app/DeviceOwner/Android.mk
evicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/RemoteBugreportTest.java
evicepolicy/src/com/android/cts/devicepolicy/DeviceOwnerTest.java
a565eb555a8ebc5c9b78942551774e021237c4d3 26-Jan-2016 Robin Lee <rgl@google.com> Merge "Hostside test: device lock screen message policy"
c45a0b2cc569cb8b603bb31a2abdfe75fd41d48b 25-Jan-2016 Robin Lee <rgl@google.com> Tests for the set.*SupportMessage device policies

Sanity-checks the following APIs from DevicePolicyManager:
- setShortSupportMessage
- getShortSupportMessage
- setLongSupportMessage
- getLongSupportMessage

Bug: 25659579
Change-Id: Ifdfd4fd4c82d52903544083fe883c16226ab9061
evicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/SupportMessageTest.java
evicepolicy/src/com/android/cts/devicepolicy/DeviceAndProfileOwnerTest.java
b48ad8c4ef8be3bbc4749585e526bed51158ac37 26-Jan-2016 Tony Mak <tonymak@google.com> Merge "Test enterprise_content_filter_uri is working in managed profile."
fd778244492a6dfe59bd0edf897228b46e72f3b8 25-Jan-2016 Wale Ogunwale <ogunwale@google.com> Merge "Removed handling of layoutDirection configuration change"
9d8f26d8e39acfd938a2af57fb49c9918e3769ce 25-Jan-2016 Wale Ogunwale <ogunwale@google.com> Removed handling of layoutDirection configuration change

We thought this was required for resizing, but it isn't.

Bug: 26742139
Change-Id: Idb0cf4057c689718792730216ddff3ced3eb5200
ervices/activitymanager/app/AndroidManifest.xml
f21971ed585cf7d8c0b475198521866221c7fdcb 25-Jan-2016 Robin Lee <rgl@google.com> Hostside test: device lock screen message policy

Exercises:
- DevicePolicyManager.setDeviceOwnerLockScreenInfo
- DevicePolicyManager.getDeviceOwnerLockScreenInfo

These will need a corresponding CTS Verifier test to make sure that
the KeyGuard is actually showing the messages on the screen.

Bug: 22547309
Change-Id: Ieb0cce5ea9c16e1e6fbdcee2363eff46b14aec12
evicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/LockScreenInfoTest.java
evicepolicy/src/com/android/cts/devicepolicy/DeviceOwnerTest.java
58336821d4ad4935fa42197b64c87cc1ec8b7679 25-Jan-2016 Robin Lee <rgl@google.com> Tests for set/get organization color

Checks that the default colour is indeed Color.GRAY and that any of a
selection of common colours or one arbitrary colour can be set.

Bug: 26638631
Change-Id: I0c5ed01e7cfc050ada34d43baa804a3041ff22d0
evicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/OrganizationInfoTest.java
evicepolicy/src/com/android/cts/devicepolicy/ManagedProfileTest.java
a92af14ce02ef622421c1a08f566dc4de8e6f535 25-Jan-2016 Tony Mak <tonymak@google.com> Test enterprise_content_filter_uri is working in managed profile.

Bug=26486875

Change-Id: I0b1a0975f3eb3bc4549cac95797756043b855c7e
evicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/ContactsTest.java
evicepolicy/src/com/android/cts/devicepolicy/ManagedProfileTest.java
f2a9041ae33281e005cb6a22fc6e82b00cdcfe76 08-Jan-2016 Victor Chang <vichang@google.com> CTS for setCrossProfileContactsSearchDisabled and getCrossProfileContactsSearchDisabled

1. Added the netgative expected result when trying to access managed contacts
when policy disallows
2. Fixed b/26613449
3. Added ContactsTestSet to reuse some test cases among tests

note:
DevicePolicyManagerTest currently all fails as setUp and tearDown can't set BlankPassword
BUG=25981902

Change-Id: Iedca6b1237158bda96c320ff365da600eeb99857
evicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/ContactsTest.java
evicepolicy/src/com/android/cts/devicepolicy/ManagedProfileTest.java
ca793028393719978271bf571f5425515c1dd242 20-Jan-2016 Wale Ogunwale <ogunwale@google.com> Merge "Validate bounds when running pinned stack tests."
95c2a7e90ae27840912a7c0fc031cd812f1e2e2e 20-Jan-2016 Daniel Xie <dxie@google.com> Merge "Fix monkey package test" into kitkat-cts-dev am: e3bdd6a5ca am: be9108fbdd am: f6b4c61bb3 am: 36a8cc63c2 am: 5cd37f7c8c am: 1e9fec6eb3 am: a278751645 am: 531d187916 am: e293f594d5
am: 6542b69032

* commit '6542b6903246bbf940a422dd58ce68c24feca55b':
Fix monkey package test
6542b6903246bbf940a422dd58ce68c24feca55b 20-Jan-2016 Daniel Xie <dxie@google.com> Merge "Fix monkey package test" into kitkat-cts-dev am: e3bdd6a5ca am: be9108fbdd am: f6b4c61bb3 am: 36a8cc63c2 am: 5cd37f7c8c am: 1e9fec6eb3 am: a278751645 am: 531d187916
am: e293f594d5

* commit 'e293f594d5e8d5edd52ad0b8e61f2fe6fc361c4c':
Fix monkey package test
36a8cc63c23ad1581d6f58e890d183e6fd4ef1d1 20-Jan-2016 Daniel Xie <dxie@google.com> Merge "Fix monkey package test" into kitkat-cts-dev am: e3bdd6a5ca am: be9108fbdd
am: f6b4c61bb3

* commit 'f6b4c61bb30b3e1c1f538d6689cf21e7031799ec':
Fix monkey package test
f6b4c61bb30b3e1c1f538d6689cf21e7031799ec 20-Jan-2016 Daniel Xie <dxie@google.com> Merge "Fix monkey package test" into kitkat-cts-dev am: e3bdd6a5ca
am: be9108fbdd

* commit 'be9108fbdd86eab94fca2e8b4fd9cdb010940d93':
Fix monkey package test
be9108fbdd86eab94fca2e8b4fd9cdb010940d93 20-Jan-2016 Daniel Xie <dxie@google.com> Merge "Fix monkey package test" into kitkat-cts-dev
am: e3bdd6a5ca

* commit 'e3bdd6a5caa740018a6ecbbfceff3d053f0bd55a':
Fix monkey package test
b18d3a1aa4d2361cac24e0053362ae9751f4657a 20-Jan-2016 Nicholas Sauer <nicksauer@google.com> Fix monkey package test

bug: 26233889
Change-Id: Iae1fbac4cc079838f137eaadc1ef65214690c9b2
onkey/src/com/android/cts/monkey/PackageTest.java
b1d482fea68a2512cca83e58da239eb04599fb46 20-Jan-2016 Wale Ogunwale <ogunwale@google.com> Validate bounds when running pinned stack tests.

Bug: 26574470
Change-Id: I744b0c09e603600d32194853859ae30999fd8448
ervices/activitymanager/src/android/server/cts/ActivityAndWindowManagersState.java
ervices/activitymanager/src/android/server/cts/ActivityManagerPinnedStackTests.java
02e8e52ef826d21ef47a701dd208e6e7c41d2a04 20-Jan-2016 Wale Ogunwale <ogunwale@google.com> Merge "Add test for split-screen rotation while lockscreen is on."
077ffe77983aa7359217abe6c965242ef13485cb 20-Jan-2016 Tony Mak <tonymak@google.com> Merge "Add cts to verify behavior of new phone account"
5f656e0f178b08b5179db8c1f99f266fa3ab2a11 19-Jan-2016 Tony Mak <tonymak@google.com> Add cts to verify behavior of new phone account

1. Verify the visibility of phone account.
2. Verify the call is inserted properly

Change-Id: I29b5607dbb7e213cc07104dea881380659c66267
evicepolicy/app/ManagedProfile/AndroidManifest.xml
evicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/DummyConnectionService.java
evicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/DummyDialerActivity.java
evicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/PhoneAccountTest.java
evicepolicy/src/com/android/cts/devicepolicy/ManagedProfileTest.java
7560882fa9abf251706969c24173ec3c659c537a 19-Jan-2016 Tony Mak <tonymak@google.com> Merge "Cts for QuickContact with enterprise lookup uri"
ebb7a383157623fbfbe3b4552dcdf2ef40f932b1 18-Jan-2016 Tony Mak <tonymak@google.com> Cts for QuickContact with enterprise lookup uri

BUG=25982660

Change-Id: I8c4c7400611e29431c580edb56eca2433c684a48
evicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/ContactsTest.java
evicepolicy/src/com/android/cts/devicepolicy/ManagedProfileTest.java
8f0f200d1246ee659775f91b03e27c902237fa2f 18-Jan-2016 Benjamin Franz <bfranz@google.com> Merge "Update CTS tests for account management policies"
890da20feab2846291acd0f36ec7c0107b459908 15-Jan-2016 Wale Ogunwale <ogunwale@google.com> Add test for split-screen rotation while lockscreen is on.

Bug: 25970565
Bug: 19225708
Change-Id: I027833af8d850fb0c29001b67a7673bcf97c0bcb
ervices/activitymanager/src/android/server/cts/ActivityManagerDockedStackTests.java
ervices/activitymanager/src/android/server/cts/ActivityManagerTestBase.java
2415722477b5682517a87e4a36b003934082bc9b 14-Jan-2016 Wale Ogunwale <ogunwale@google.com> Merge "Added CTS test for rotation in docked mode."
8ffe16a0cb79dfc7c2a26c11b7115e484372cce4 14-Jan-2016 Wale Ogunwale <ogunwale@google.com> Added CTS test for rotation in docked mode.

Bug: 25970565
Bug: 19225708
Change-Id: Ie2c7e070911dd34270869f7a48df2afcfe7650b7
ervices/activitymanager/app/AndroidManifest.xml
ervices/activitymanager/app/src/android/server/app/LaunchToSideActivity.java
ervices/activitymanager/src/android/server/cts/ActivityAndWindowManagersState.java
ervices/activitymanager/src/android/server/cts/ActivityManagerDockedStackTests.java
ervices/activitymanager/src/android/server/cts/ActivityManagerState.java
ervices/activitymanager/src/android/server/cts/ActivityManagerTestBase.java
ervices/activitymanager/src/android/server/cts/WindowManagerState.java
4558ab62bbb89b92630c17bfed9024e1c8d94bbe 14-Jan-2016 Tony Mak <tonymak@google.com> Merge "Add CTS for Enterprise Email Lookup with directory id"
07f9dc195e4071de6ad87f1b695561385389a244 14-Jan-2016 Tony Mak <tonymak@google.com> Add CTS for Enterprise Email Lookup with directory id

Bug: 26537067
Change-Id: I7b5ca2cfb15cfd3c59819373e86ef1b82de6b651
evicepolicy/app/ContactDirectoryProvider/src/com/android/cts/contactdirectoryprovider/DirectoryProvider.java
evicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/ContactsTest.java
evicepolicy/src/com/android/cts/devicepolicy/ManagedProfileTest.java
d3a7e61626caaebd334c1e9e9ca95866b237cfba 13-Jan-2016 Daniel Cashman <dcashman@google.com> Merge "Make createProcMap regex more forgiving." am: 77bbc27eed am: 5eca2d8c2f
am: 5d18232bd1

* commit '5d18232bd1dbc072a71a62027e219cf6bcfee578':
Make createProcMap regex more forgiving.
5d18232bd1dbc072a71a62027e219cf6bcfee578 13-Jan-2016 Daniel Cashman <dcashman@google.com> Merge "Make createProcMap regex more forgiving." am: 77bbc27eed
am: 5eca2d8c2f

* commit '5eca2d8c2f0e833c8a663fd169e57467f4ab9039':
Make createProcMap regex more forgiving.
23eb435a8f126687534d6a2d49daea8f01953daf 13-Jan-2016 dcashman <dcashman@google.com> Make createProcMap regex more forgiving.

Allow whitespace at end of ps output.

Bug: 26512608
Change-Id: I80ecd18389e49a20b741f77dd7c35549ee52f695
ecurity/src/android/cts/security/SELinuxHostTest.java
0e4f87371722474b2f74854c2cee1b8359dec6c0 09-Nov-2015 Benjamin Franz <bfranz@google.com> Update CTS tests for account management policies

1. From N, the device / profile owner will be allowed to call the
account management APIs even if the policy is set.

2. Move the test for DISALLOW_MODIFY_ACCOUNTS from xts to cts, as it is
no longer Google specific.

Bug: 22030831
Change-Id: I1e3dc87e0f97cfb20c64591a1c3af7eaebc3bf4c
evicepolicy/app/AccountManagement/Android.mk
evicepolicy/app/AccountManagement/AndroidManifest.xml
evicepolicy/app/AccountManagement/res/values/strings.xml
evicepolicy/app/AccountManagement/res/xml/authenticator.xml
evicepolicy/app/AccountManagement/src/com/android/cts/devicepolicy/accountmanagement/AccountManagementTest.java
evicepolicy/app/AccountManagement/src/com/android/cts/devicepolicy/accountmanagement/AccountUtilsTest.java
evicepolicy/app/AccountManagement/src/com/android/cts/devicepolicy/accountmanagement/MockAccountAuthenticator.java
evicepolicy/app/AccountManagement/src/com/android/cts/devicepolicy/accountmanagement/MockAccountService.java
evicepolicy/app/DeviceAndProfileOwner/AndroidManifest.xml
evicepolicy/app/DeviceAndProfileOwner/res/values/strings.xml
evicepolicy/app/DeviceAndProfileOwner/res/xml/authenticator.xml
evicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/AccountManagementTest.java
evicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/AccountUtilsTest.java
evicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/DpcAllowedAccountManagementTest.java
evicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/MockAccountAuthenticator.java
evicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/MockAccountService.java
evicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/SetPolicyActivity.java
evicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/UserRestrictionActivity.java
evicepolicy/src/com/android/cts/devicepolicy/BaseDevicePolicyTest.java
evicepolicy/src/com/android/cts/devicepolicy/CustomDeviceOwnerTest.java
evicepolicy/src/com/android/cts/devicepolicy/DeviceAndProfileOwnerTest.java
evicepolicy/src/com/android/cts/devicepolicy/ManagedProfileTest.java
02c1b82dc6357be1e1ca7fc934b99064cc5590b2 12-Jan-2016 Wale Ogunwale <ogunwale@google.com> Updated translucent in Pip activity test case to cover real failure case.

Changed ActivityManagerVisibleBehindActivityTests#testTranslucentActivityOnTopOfPinnedStack
test case to cover a real life failure case we were seeing on Android TV where
the top translucent activity needs to be launched into the pinned stack vs.
being moved there after launch.

Bug: 26273032
Change-Id: I7cdb7f5bfd3698a6a125014a6fffc739739b5f0e
ervices/activitymanager/app/AndroidManifest.xml
ervices/activitymanager/app/src/android/server/app/AlwaysFocusablePipActivity.java
ervices/activitymanager/app/src/android/server/app/LaunchIntoPinnedStackPipActivity.java
ervices/activitymanager/app/src/android/server/app/LaunchPipOnPipActivity.java
ervices/activitymanager/app/src/android/server/app/TranslucentActivity.java
ervices/activitymanager/src/android/server/cts/ActivityManagerVisibleBehindActivityTests.java
2e54ce4a2af4e01c82e0195041d6a4952ba0b9aa 10-Jan-2016 Jeff Sharkey <jsharkey@android.com> Initial scaffolding for encryption-aware apps.

Bug: 26498834
Change-Id: I7c310d80398b592218552b87978cd8b92d282af2
ppsecurity/test-apps/EncryptionApp/Android.mk
ppsecurity/test-apps/EncryptionApp/AndroidManifest.xml
ppsecurity/test-apps/EncryptionApp/src/com/android/cts/encryptionapp/AwareActivity.java
ppsecurity/test-apps/EncryptionApp/src/com/android/cts/encryptionapp/AwareProvider.java
ppsecurity/test-apps/EncryptionApp/src/com/android/cts/encryptionapp/AwareReceiver.java
ppsecurity/test-apps/EncryptionApp/src/com/android/cts/encryptionapp/AwareService.java
ppsecurity/test-apps/EncryptionApp/src/com/android/cts/encryptionapp/EncryptionApp.java
ppsecurity/test-apps/EncryptionApp/src/com/android/cts/encryptionapp/EncryptionAppTest.java
ppsecurity/test-apps/EncryptionApp/src/com/android/cts/encryptionapp/UnawareActivity.java
ppsecurity/test-apps/EncryptionApp/src/com/android/cts/encryptionapp/UnawareProvider.java
ppsecurity/test-apps/EncryptionApp/src/com/android/cts/encryptionapp/UnawareReceiver.java
ppsecurity/test-apps/EncryptionApp/src/com/android/cts/encryptionapp/UnawareService.java
e0bc4a94145f882560a44c9eb9cb44f74f0659a5 12-Jan-2016 Wale Ogunwale <ogunwale@google.com> Merge "Fixed ActivityManagerPinnedStackTests#testEnterPictureInPictureMode test failure"
370e72c4e3a9ecb8db88d41869400c8817b1166d 12-Jan-2016 Wale Ogunwale <ogunwale@google.com> Merge "Added some test for visible behind activities."
fca666e9af8d4d98e63cb4d391f27c362bd454a8 11-Jan-2016 Nicholas Sauer <nicksauer@google.com> Remove all of dynamic config from sample

bug:26469660
Change-Id: I3db190c80d2bc3f1a3cb0844d87d25b7285c2f47
ample/AndroidTest.xml
ample/DynamicConfig.xml
ample/src/android/sample/cts/SampleHostTest.java
d711e3d97912467a49915fea4ca0d1a44e9b2b0c 08-Jan-2016 Tony Mak <tonymak@google.com> CTS for ENTERPRISE_CONTENT_FILTER_URIs

Add cts for these APIs
Callable.ENTERPRISE_CONTENT_FILTER_URI
Email.ENTERPRISE_CONTENT_FILTER_URI
Contacts.ENTERPRISE_CONTENT_FILTER_URI
Phone.ENTERPRISE_CONTENT_FILTER_URI

Also clean up the code to reduce code duplication.

BUG=25982358

Change-Id: I0261e4e502cb66e9708aad57cabc623976647c4f
evicepolicy/app/ContactDirectoryProvider/src/com/android/cts/contactdirectoryprovider/DirectoryProvider.java
evicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/ContactsTest.java
evicepolicy/src/com/android/cts/devicepolicy/ManagedProfileTest.java
4a262f5b34bab95a1b7037dc536126b35471a2ff 11-Jan-2016 Ricky Wai <rickywai@google.com> Merge "Add Work directory CTS and phonelookup with directory"
c19c5cea055ddfb7ab3051e4558f7820e212f3b3 07-Jan-2016 Ricky Wai <rickywai@google.com> Add Work directory CTS and phonelookup with directory

Bug: 25982307
Bug: 25982254
Change-Id: Ibde118a059960f342bc6a676783d3fb1ee5c109d
evicepolicy/app/ContactDirectoryProvider/Android.mk
evicepolicy/app/ContactDirectoryProvider/AndroidManifest.xml
evicepolicy/app/ContactDirectoryProvider/res/values/strings.xml
evicepolicy/app/ContactDirectoryProvider/src/com/android/cts/contactdirectoryprovider/DirectoryProvider.java
evicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/ContactsTest.java
evicepolicy/src/com/android/cts/devicepolicy/BaseDevicePolicyTest.java
evicepolicy/src/com/android/cts/devicepolicy/ManagedProfileTest.java
55c7c7f2cea318c56ebe3194708909fbde20e3e6 11-Jan-2016 Nicholas Sauer <nicksauer@google.com> Remove dynamic config dependent sample tests

bug: 26469660
Change-Id: I638ca122d77a2e92e8432a3be5614fb0e3730edd
ample/src/android/sample/cts/SampleHostTest.java
2c7ea129e088080f4a0187a682d5aa9bc3c99218 11-Jan-2016 Wale Ogunwale <ogunwale@google.com> Fixed ActivityManagerPinnedStackTests#testEnterPictureInPictureMode test failure

The test thought there isn't a window focus because the pattern for the
application error window is different. We now detect the application error
window pattern for focused window.

Change-Id: I0c8d5857c6e829aa34e68a7415e879d5b024d1d1
ervices/activitymanager/src/android/server/cts/WindowManagerState.java
bf352d489d8932a088f9adc04911f12fbac616f6 11-Jan-2016 Wale Ogunwale <ogunwale@google.com> Added some test for visible behind activities.

Bug: 19225708
Change-Id: I26b2889063278e4deb0e48f1ce9354b39a1e1034
ervices/activitymanager/app/AndroidManifest.xml
ervices/activitymanager/app/res/values/styles.xml
ervices/activitymanager/app/src/android/server/app/TranslucentActivity.java
ervices/activitymanager/app/src/android/server/app/VisibleBehindActivity.java
ervices/activitymanager/src/android/server/cts/ActivityAndWindowManagersState.java
ervices/activitymanager/src/android/server/cts/ActivityManagerDockedStackTests.java
ervices/activitymanager/src/android/server/cts/ActivityManagerPinnedStackTests.java
ervices/activitymanager/src/android/server/cts/ActivityManagerReplaceWindowTests.java
ervices/activitymanager/src/android/server/cts/ActivityManagerState.java
ervices/activitymanager/src/android/server/cts/ActivityManagerTestBase.java
ervices/activitymanager/src/android/server/cts/ActivityManagerVisibleBehindActivityTests.java
ervices/activitymanager/src/android/server/cts/WindowManagerState.java
390cfd9e15234f3ce5664cd61a6baf8134dfa744 07-Jan-2016 Chong Zhang <chz@google.com> cts: test replacing window functionality

bug: 26324082
bug: 19225708

Change-Id: Ia4e89d45ce3e260de65bd7b8b25049e6828c81fb
ervices/activitymanager/app/AndroidManifest.xml
ervices/activitymanager/app/src/android/server/app/NoRelaunchActivity.java
ervices/activitymanager/app/src/android/server/app/SlowCreateActivity.java
ervices/activitymanager/src/android/server/cts/ActivityAndWindowManagersState.java
ervices/activitymanager/src/android/server/cts/ActivityManagerReplaceWindowTests.java
ervices/activitymanager/src/android/server/cts/ActivityManagerTestBase.java
ervices/activitymanager/src/android/server/cts/WindowManagerState.java
7f1b88fb7b6021bb13b6bcb04a1da33d1b2bfedc 06-Jan-2016 Wale Ogunwale <ogunwale@google.com> Improve state information tracking for AM/WM during CTS testing

Allows us to better track the state of stacks and task with sysdump
during testing.

Bug: 19225708
Change-Id: I696f47a69f19a727446d0c95b4d024c481e6ffcd
ervices/activitymanager/src/android/server/cts/ActivityAndWindowManagersState.java
ervices/activitymanager/src/android/server/cts/ActivityManagerDockedStackTests.java
ervices/activitymanager/src/android/server/cts/ActivityManagerPinnedStackTests.java
ervices/activitymanager/src/android/server/cts/ActivityManagerState.java
ervices/activitymanager/src/android/server/cts/ActivityManagerTestBase.java
ervices/activitymanager/src/android/server/cts/WindowManagerState.java
6d2e401b091ad07af6288e82c4c23807c39d1093 05-Jan-2016 Wale Ogunwale <ogunwale@google.com> Merge "Additional CTS test for pinned stack"
11c4564a6cddee8c4dd4afd12a59488dde6c7bad 05-Jan-2016 Nicolas Prévot <nprevot@google.com> Merge "For cts tests, force stop the user."
e1f8a6b4c1d41afa6bd4c97663a8af0875946372 05-Jan-2016 Nicolas Prevot <nprevot@google.com> For cts tests, force stop the user.

If the user has a parent: stopping without forcing may not work because
we may not be able to stop the parent.

BUG:26379502
Change-Id: I93a43f91c964b68fdd61419a8ec793e584015e96
evicepolicy/src/com/android/cts/devicepolicy/BaseDevicePolicyTest.java
7f8cade670f471173e57a865c289c227d34ab741 01-Jan-2016 Wale Ogunwale <ogunwale@google.com> Additional CTS test for pinned stack

- Verify that pinned stack is front stack.
- Verify that there is only one resumed activity in the system.
- Verify that pinned activity window is the front window.
- Verify that pinned stack isn't focused stack and is for always focuable activity.
- Verify that pinned activity isn't focused activity and is for always focuable activity.
- Verify that pinned activity isn't resumed activity and is for always focuable activity.
- Verify launch on pinned stack @hidden API functionality.

Also, made the host side test class more modular.

Bug: 19225708
Bug: 26273032
Change-Id: Iab88787cba786737598eb7ea4137e067c6ec5f48
ervices/activitymanager/app/AndroidManifest.xml
ervices/activitymanager/app/src/android/server/app/AlwaysFocusablePipActivity.java
ervices/activitymanager/app/src/android/server/app/AutoEnterPipActivity.java
ervices/activitymanager/app/src/android/server/app/LaunchIntoPinnedStackPipActivity.java
ervices/activitymanager/app/src/android/server/app/PipActivity.java
ervices/activitymanager/src/android/server/cts/ActivityManagerDockedStackTests.java
ervices/activitymanager/src/android/server/cts/ActivityManagerPinnedStackTests.java
ervices/activitymanager/src/android/server/cts/ActivityManagerState.java
ervices/activitymanager/src/android/server/cts/ActivityManagerTestBase.java
ervices/activitymanager/src/android/server/cts/ActivityManagerTests.java
ervices/activitymanager/src/android/server/cts/WindowManagerState.java
7b254279e1a71117baa1532ababd6a7f507a91fc 28-Oct-2015 Nicolas Prevot <nprevot@google.com> Remove a cross-profile app linking test.

Remove the case where:
- there is a receiver with status always in the primary.
- there is no receiver with status always in the work profile.

BUG:26312621
Change-Id: I5328775a7439ee3768b81e8110edd3dae84c606c
evicepolicy/src/com/android/cts/devicepolicy/ManagedProfileTest.java
1a1d8a98662613fde51b68992b96ccddcea7b271 04-Jan-2016 Robin Lee <rgl@google.com> Merge "Use removeKeyPair teardown after KeyManagementTest"
5e7f7970033efaa8ee8d224e15d425795be663a1 22-Dec-2015 Filip Gruszczynski <gruszczy@google.com> Merge "Export test activities so they can be run without root."
b19f78f4b7cb7320a27de772028132616f68cd2f 22-Dec-2015 Filip Gruszczynski <gruszczy@google.com> Export test activities so they can be run without root.

Bug: 19225708
Change-Id: I1468349c2a7c0105af5e56bbacd79543da53106f
ervices/activitymanager/app/AndroidManifest.xml
ddf34dd22aa3cfb5d662c4d54e620c1d4456aa32 15-Dec-2015 Stuart Scott <stuartscott@google.com> Add support for tests to declare runtime hints.

bug:21762834
Change-Id: I11f3e6ecb026dcbbb8c73c750c7a70d8a15d81fb
adb/AndroidTest.xml
ppsecurity/AndroidTest.xml
evicepolicy/AndroidTest.xml
ank/AndroidTest.xml
onkey/AndroidTest.xml
ecurity/AndroidTest.xml
ervices/activitymanager/AndroidTest.xml
ervices/activitymanager/OldAndroidTest.xml
ervices/activitymanager/app/Android.mk
i/AndroidTest.xml
402742ee46c810949bf73054a6751fbca0300369 22-Dec-2015 Daniel Xie <dxie@google.com> Merge "Fix testWifiConfigLockdown failure due to wifi not being ready" into marshmallow-cts-dev am: c3e2864349 am: 49230ecdc0 am: 47e360cfea am: 4beef4455f am: 4e2702f13b am: 82c0d40467
am: ec4de3a964

* commit 'ec4de3a96410461dbcdd8acaea53ba7e2b306ccc':
Fix testWifiConfigLockdown failure due to wifi not being ready
4eec0b103e4cf99e4758f20759f42650484ee617 22-Dec-2015 Daniel Xie <dxie@google.com> Merge "Fix testExecuteShellCommand test in android.aadb" into marshmallow-cts-dev am: 782c7bd833 am: e64e871046 am: 7cc6683fe0 am: 3c9dc0a6f8 am: 631c665fa2 am: 46e49ee6d2
am: 3e144e7326

* commit '3e144e732659bbfd97bea7f5c1d860b6bfbce25c':
Fix testExecuteShellCommand test in android.aadb
f69db9cbe9e8c536e54e0dec45e6c418591b9bd4 15-Dec-2015 Lenka Trochtova <ltrochtova@google.com> Test the ephemeral user is automatically removed after stop.

BUG: 24883058

Change-Id: I0101a9afe2be720e1bc6bde6a96fa2f964361158
evicepolicy/src/com/android/cts/devicepolicy/BaseDevicePolicyTest.java
evicepolicy/src/com/android/cts/devicepolicy/EphemeralUserTest.java
557f84a4364d356e90c4b37b7407ae496dc250de 11-Aug-2015 Sebastien Hertz <shertz@google.com> CTS: check non-zygote apps are not debuggable DO NOT MERGE

Adds an hostside-like CTS test running a Java app (jar file) from
app_process, without forking from zygote, and checks it is not
debuggable (having no JDWP connection) using 'adb jdwp' command.

Bug: 23050463

(cherry picked from commit e37f4b4f078394e183547a8a913fd12e69c08cd7)

Change-Id: Ic4c71db200df2aad82273407f3d34ae1df9ae4ac
dwpsecurity/Android.mk
dwpsecurity/app/Android.mk
dwpsecurity/app/src/com/android/cts/jdwpsecurity/JdwpTest.java
dwpsecurity/src/android/jdwpsecurity/cts/JdwpSecurityHostTest.java
24a8bf64908be0f141d79fcbf0c3b622982b0ed2 21-Dec-2015 Daniel Xie <dxie@google.com> Merge "Add CTS test for DISALLOW_MODIFY_ACCOUNTS" into marshmallow-cts-dev am: 3baf8d9c9b am: 555e242bae am: 1cadf048dc am: 5728f01dc5 am: 4b2266abd1 am: 0e36229d1e
am: 714fb1ba00

* commit '714fb1ba007137fb947656f90e2478a35cd1504c':
Add CTS test for DISALLOW_MODIFY_ACCOUNTS
ec4de3a96410461dbcdd8acaea53ba7e2b306ccc 21-Dec-2015 Daniel Xie <dxie@google.com> Merge "Fix testWifiConfigLockdown failure due to wifi not being ready" into marshmallow-cts-dev am: c3e2864349 am: 49230ecdc0 am: 47e360cfea am: 4beef4455f am: 4e2702f13b
am: 82c0d40467

* commit '82c0d40467d4c6f2040ff00bf453604ec706e853':
Fix testWifiConfigLockdown failure due to wifi not being ready
3e144e732659bbfd97bea7f5c1d860b6bfbce25c 21-Dec-2015 Daniel Xie <dxie@google.com> Merge "Fix testExecuteShellCommand test in android.aadb" into marshmallow-cts-dev am: 782c7bd833 am: e64e871046 am: 7cc6683fe0 am: 3c9dc0a6f8 am: 631c665fa2
am: 46e49ee6d2

* commit '46e49ee6d246016b00348d64ff3a325f9b11de6a':
Fix testExecuteShellCommand test in android.aadb
714fb1ba007137fb947656f90e2478a35cd1504c 21-Dec-2015 Daniel Xie <dxie@google.com> Merge "Add CTS test for DISALLOW_MODIFY_ACCOUNTS" into marshmallow-cts-dev am: 3baf8d9c9b am: 555e242bae am: 1cadf048dc am: 5728f01dc5 am: 4b2266abd1
am: 0e36229d1e

* commit '0e36229d1e89b5e711b20962d65cc2257ec2991f':
Add CTS test for DISALLOW_MODIFY_ACCOUNTS
7257c6e1f444fcbfca94f5b2f3903550c0803749 21-Dec-2015 Daniel Xie <dxie@google.com> Merge "Increased CTS test timeout from 5 sec to 30 sec in ModifyInstallerPackageTest.java" into lollipop-mr1-cts-dev
c3e2864349c5ab518f94315ae09182e03118c02e 21-Dec-2015 Daniel Xie <dxie@google.com> Merge "Fix testWifiConfigLockdown failure due to wifi not being ready" into marshmallow-cts-dev
782c7bd83337be530d71295696ab0e15433eb954 21-Dec-2015 Daniel Xie <dxie@google.com> Merge "Fix testExecuteShellCommand test in android.aadb" into marshmallow-cts-dev
65db2da69693e5b80cf7cee06d3a398c9a56f07a 17-Dec-2015 Robin Lee <rgl@google.com> Use removeKeyPair teardown after KeyManagementTest

Bug: 22541933
Change-Id: I5acaec80359842b33649c3ab85133d4105df3bf3
evicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/KeyManagementTest.java
7e7c5dc50d61c1da1fefc807c8ba29d7609c8830 18-Dec-2015 Benjamin Franz <bfranz@google.com> Add CTS test for DISALLOW_MODIFY_ACCOUNTS

This test was previously in XTS and is ported across to CTS.

Bug: 22030831
Change-Id: Idd886b85305fb4f160deffe002ff9e87f999ed58
evicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/AccountManagementTest.java
c3711f11cdb054aee274baf44bdc310db6560bd7 17-Dec-2015 Paul Lawrence <paullawrence@google.com> Disable test that times out on many devices

Bug: 26200913
Change-Id: I3973e47fc4e531ce5344878b8e3a78c898445250
ecurity/src/android/security/cts/EncryptionHostTest.java
aaf9440dea1d22ded997a4ba6f83289775b40cd4 16-Dec-2015 Fyodor Kupolov <fkupolov@google.com> Merge "Fixed hard-coded paths to dataDir"
75a57221e5a781c2cfd5d7e7d1927689318432f3 16-Dec-2015 Wale Ogunwale <ogunwale@google.com> Merge "Added some CTS test for picture-in-picture mode."
e2f7d4ff3781cb698fb5513bf1e3cc61191cdb57 16-Dec-2015 Wale Ogunwale <ogunwale@google.com> Added some CTS test for picture-in-picture mode.

- Host side test to make sure activity is put in the
pinned stack when it is piped
- Device side test to make sure the Activity#enterPictureInPictureMode
works as expected depending on the activity attribute and device support.

Bug: 25580820
Bug: 19225708
Change-Id: I89d7ebaee6318c5e00f7f47e0a5e16ba66beb132
ervices/activitymanager/app/AndroidManifest.xml
ervices/activitymanager/app/src/android/server/app/PipActivity.java
ervices/activitymanager/src/android/server/cts/ActivityManagerTests.java
ee146131e2896b5e87e6edcb70cb4c9f187156bf 16-Dec-2015 Jeff Sharkey <jsharkey@google.com> Merge "Verify ownership change after package install."
5c6c2d44e6210037adc0ff26014500902e1e1c29 16-Dec-2015 Jeffrey Vander Stoep <jeffv@google.com> Merge "SELinuxHostTest: update checkfc to use -s for service_contexts" am: 17ba365acb am: e2212fba61
am: 9d351b3893

* commit '9d351b3893f2d53701541d8cd1f3bfc60eed09ad':
SELinuxHostTest: update checkfc to use -s for service_contexts
9d351b3893f2d53701541d8cd1f3bfc60eed09ad 16-Dec-2015 Jeffrey Vander Stoep <jeffv@google.com> Merge "SELinuxHostTest: update checkfc to use -s for service_contexts" am: 17ba365acb
am: e2212fba61

* commit 'e2212fba611548df0f86c3d15828a525e095b55c':
SELinuxHostTest: update checkfc to use -s for service_contexts
17ba365acbfeb8f243b26f89011b009475c63182 16-Dec-2015 Jeffrey Vander Stoep <jeffv@google.com> Merge "SELinuxHostTest: update checkfc to use -s for service_contexts"
933ec5f7822e9e3c086a2a17241032dc3685c0d0 15-Dec-2015 Filip Gruszczynski <gruszczy@google.com> CTS test for launching to the side.

Bug: 26141281
Bug: 19225708
Change-Id: I2381e5e543a835ddf42f34d6cb00c03bed646cfb
ervices/activitymanager/OldAndroidTest.xml
ervices/activitymanager/app/AndroidManifest.xml
ervices/activitymanager/app/src/android/server/app/LaunchToSideActivity.java
ervices/activitymanager/src/android/server/cts/ActivityManagerTests.java
c3f114018b2818db8660f95cb3172c76029c7d22 29-Nov-2015 Lenka Trochtova <ltrochtova@google.com> Add tests for ephemeral users.

BUG: 24883058

Change-Id: If130691b6cf458df890dac918f86944d34be1797
evicepolicy/src/com/android/cts/devicepolicy/BaseDevicePolicyTest.java
evicepolicy/src/com/android/cts/devicepolicy/EphemeralUserTest.java
b91667c7cd21ec4c109aac2bf3e0e1e1bd49a4b6 14-Dec-2015 Jeff Sharkey <jsharkey@android.com> Verify ownership change after package install.

When performing "gift" tests, shift the writing to occur before the
target packages are installed. This follows the typically pattern
of how OBB files are often written before the actual app is installed.

Then continue with the rest of the tests to verify that gift files
can be read by the newly installed apps. This verifies that the
FUSE daemon correctly reevaluates the directory and file ownership
after an install occurs.

Also extend gift testing to all package-specific external storage
directories.

Bug: 25399427
Change-Id: Idced83c4b52a89d1cf0d5182e43ef2828aa28f26
ppsecurity/src/android/appsecurity/cts/ExternalStorageHostTest.java
ppsecurity/test-apps/ExternalStorageApp/src/com/android/cts/externalstorageapp/CommonExternalStorageTest.java
ppsecurity/test-apps/ExternalStorageApp/src/com/android/cts/externalstorageapp/GiftTest.java
ppsecurity/test-apps/ReadExternalStorageApp/src/com/android/cts/readexternalstorageapp/ReadGiftTest.java
ppsecurity/test-apps/WriteExternalStorageApp/src/com/android/cts/writeexternalstorageapp/WriteExternalStorageTest.java
ppsecurity/test-apps/WriteExternalStorageApp/src/com/android/cts/writeexternalstorageapp/WriteGiftTest.java
6fbf7910e07570a53be6698da995d5abd7eeb464 14-Dec-2015 Aaron Holden <aaronholden@google.com> Fix testExecuteShellCommand test in android.aadb

Ensure 'adb shell ls' lists contents of device's root directory, rather
than the current directory.

bug:26126391
Change-Id: I1c2c5bb9a4b3a438af1674959c6676849b1dc303
adb/src/com/android/cts/aadb/TestDeviceFuncTest.java
e45a49c9bbe183ff3a97f63fe37d75ea7b516382 11-Dec-2015 Daniel Xie <dxie@google.com> Merge "MonkeyTests assertion failures errors. Limit the amount of error data contained in an assertion failue" into kitkat-cts-dev am: d527cc199f am: 3c12682003 am: e841d86c0a am: 0d24e5587d am: fc384026ed am: fee04d492b am: 639e601e22 am: cb98db3d25 am: bef6a5c135
am: 44aee7c284

* commit '44aee7c2842c3b6e24eb6d2bc375c49d2d7e1b9f':
MonkeyTests assertion failures errors. Limit the amount of error data contained in an assertion failue
44aee7c2842c3b6e24eb6d2bc375c49d2d7e1b9f 11-Dec-2015 Daniel Xie <dxie@google.com> Merge "MonkeyTests assertion failures errors. Limit the amount of error data contained in an assertion failue" into kitkat-cts-dev am: d527cc199f am: 3c12682003 am: e841d86c0a am: 0d24e5587d am: fc384026ed am: fee04d492b am: 639e601e22 am: cb98db3d25
am: bef6a5c135

* commit 'bef6a5c1350878f4842fcfdc918e67377c7df2aa':
MonkeyTests assertion failures errors. Limit the amount of error data contained in an assertion failue
0d24e5587de93bbaad66d2e3df91ef96f2a6c1e6 11-Dec-2015 Daniel Xie <dxie@google.com> Merge "MonkeyTests assertion failures errors. Limit the amount of error data contained in an assertion failue" into kitkat-cts-dev am: d527cc199f am: 3c12682003
am: e841d86c0a

* commit 'e841d86c0abea4be8eb354274827e79ef931fe89':
MonkeyTests assertion failures errors. Limit the amount of error data contained in an assertion failue
31eca2934695fafcb14d159250eb2b8b77b6d29d 04-Dec-2015 Paul Lawrence <paullawrence@google.com> Add userdebug test to see if actually encrypted

Change-Id: I7ea73ad29499e10f76a2529006b38658bf7ecaf7
ecurity/src/android/security/cts/EncryptionHostTest.java
aa887d352b36e69ec36134af2507a93c886d4564 26-Nov-2015 Robin Lee <rgl@google.com> Fix testWifiConfigLockdown failure due to wifi not being ready

This test case will add a network before wifi is ready. Thus, adding
network will be fail and test case will not pass.

For normal use (eg. WifiManagerTest.java), when a test case need to use
wifi, it will listen to wifi state change broadcasts or sleep a while to
make sure wifi is enabled. For some chips, enabling wifi takes about 2
seconds. enable wifi. Running this test case in these chips may cause
the same issue.

Solution: After enabling wifi, sleep a while make sure wifi is enabled.

Bug: 25171253
Change-Id: I0fa28db34ad59d2a0f1340d4602363a3ab1713f2
evicepolicy/app/WifiConfigCreator/src/com/android/cts/deviceowner/wificonfigcreator/WifiConfigCreatorActivity.java
bef1b5c37edae39026a07919fb51e0fe9e5a841d 25-Nov-2015 Filip Gruszczynski <gruszczy@google.com> First two host side tests for Activity Manager.

Bug: 19225708

Change-Id: I3f4d9dc7c2a6bd75048f8fee56d5859bf0fad1c6
ervices/Android.mk
ervices/activitymanager/Android.mk
ervices/activitymanager/AndroidTest.xml
ervices/activitymanager/OldAndroidTest.xml
ervices/activitymanager/app/Android.mk
ervices/activitymanager/app/AndroidManifest.xml
ervices/activitymanager/app/src/android/server/app/TestActivity.java
ervices/activitymanager/src/android/server/cts/ActivityManagerTests.java
807de243eebb0a4d9a11093ccad8d7e4db59a18c 09-Dec-2015 Fyodor Kupolov <fkupolov@google.com> Fixed hard-coded paths to dataDir

Paths to data dir depend on the user and should not be hardcoded.

Bug: 26091088
Change-Id: I535c00fd7533de5341b4b51021bbb3fa0dfa48e7
ppsecurity/test-apps/AppAccessData/src/com/android/cts/appaccessdata/AccessPrivateDataTest.java
ppsecurity/test-apps/AppWithData/src/com/android/cts/appwithdata/CreatePrivateDataTest.java
bfbbb540f2ec2e63c300f39a39196443bd58dfe8 09-Dec-2015 Steve McKay <smckay@google.com> Fix CTS tests...use correct file id.

Bug: 25949202
Change-Id: I348bd53a717476d148642ef880ee2cf57a1eb3ec
ppsecurity/test-apps/DocumentClient/src/com/android/cts/documentclient/DocumentsClientTest.java
e841d86c0abea4be8eb354274827e79ef931fe89 08-Dec-2015 Daniel Xie <dxie@google.com> Merge "MonkeyTests assertion failures errors. Limit the amount of error data contained in an assertion failue" into kitkat-cts-dev am: d527cc199f
am: 3c12682003

* commit '3c12682003d59426d757118c63123552f3657f5d':
MonkeyTests assertion failures errors. Limit the amount of error data contained in an assertion failue
3c12682003d59426d757118c63123552f3657f5d 08-Dec-2015 Daniel Xie <dxie@google.com> Merge "MonkeyTests assertion failures errors. Limit the amount of error data contained in an assertion failue" into kitkat-cts-dev
am: d527cc199f

* commit 'd527cc199f4f0a22f594b4e48a70e0909ae7caf1':
MonkeyTests assertion failures errors. Limit the amount of error data contained in an assertion failue
6dd5e7313a03764d9b60631807cc8330e9aef704 08-Dec-2015 Nicholas Sauer <nicksauer@google.com> MonkeyTests assertion failures errors.
Limit the amount of error data contained in an assertion failue

bug: 26067928
Change-Id: Ic23a94a163739b2c1c496fc961ea56dc9610a429
onkey/src/com/android/cts/monkey/PackageTest.java
718d102f7640432c68a78169e951aa0f390e9672 06-Dec-2015 Daniel Xie <dxie@google.com> Merge "Improve the color comparison" into kitkat-cts-dev am: 1510424e14
am: 0a5de00fd4

* commit '0a5de00fd45f858c91828445b59121515514cde9':
Improve the color comparison
0a5de00fd45f858c91828445b59121515514cde9 06-Dec-2015 Daniel Xie <dxie@google.com> Merge "Improve the color comparison" into kitkat-cts-dev
am: 1510424e14

* commit '1510424e1436490d301953513fd1dc1b59dddc1a':
Improve the color comparison
768d92ea617ec2a3bf1a7bf67b9ee2f2d8fd4df1 03-Dec-2015 Shinichiro Hamaji <hamaji@google.com> resolve merge conflicts of 7ec405ec38 to master.

Change-Id: I9c79e620ccb50c6ca7ed2744664b66f62988d879
70c2ec941627675ab5b3860d778194fa46542cec 25-Nov-2015 Todd Kennedy <toddke@google.com> Fix tests

We provide more detailed information when an install fails. Take that into
account for the CTS tests

Bug: 25873890
Bug: 25873793
Change-Id: Ifce17a33c45fca1eeb7a1aa637f5d2730dbd20a2
ppsecurity/src/android/appsecurity/cts/AppSecurityTests.java
103605f1498d5eef45a539578eacfaffa276aa88 20-Nov-2015 Nick Kralevich <nnk@google.com> Merge "SELinuxHostTest: fix failures due to ps -Z output change"
2387f0d2b0ba04e71650483a31d831314efdea9e 20-Nov-2015 Nick Kralevich <nnk@google.com> SELinuxHostTest: fix failures due to ps -Z output change

The output of "ps -Z" changed, causing test failures. Use the toybox
version of ps and exactly specify what fields we want.

Bug: 25777204
Change-Id: I633ed68e99598bae34ac9e108e983e801ab2b208
ecurity/src/android/security/cts/SELinuxHostTest.java
2b5ec049fd5bb1788a4448c5fc41da18bc561012 16-Nov-2015 Tomasz Mikolajewski <mtomasz@google.com> CTS tests for FLAG_VIRTUAL_DOCUMENT.

Bug: 20820363
Change-Id: If8e56860c68044f18f9cad966f8ceb0d605e3389
ppsecurity/test-apps/DocumentClient/src/com/android/cts/documentclient/DocumentsClientTest.java
ppsecurity/test-apps/DocumentProvider/src/com/android/cts/documentprovider/MyDocumentsProvider.java
7b621df825fc63922381909fd2f8bb52760b9c66 20-Nov-2015 Daniel Xie <dxie@google.com> Merge "Selectively delete files from the sdcard" into marshmallow-cts-dev am: 2a2c06e583 am: b69e36ace5 am: 917d65495b am: 64fe747b36 am: 6d20f86e8f
am: d667e4ccc5

* commit 'd667e4ccc5b470e8671b6b5521e3715fba41291c':
Selectively delete files from the sdcard
d667e4ccc5b470e8671b6b5521e3715fba41291c 20-Nov-2015 Daniel Xie <dxie@google.com> Merge "Selectively delete files from the sdcard" into marshmallow-cts-dev am: 2a2c06e583 am: b69e36ace5 am: 917d65495b am: 64fe747b36
am: 6d20f86e8f

* commit '6d20f86e8f2e0d4fb2853d3362113bca984c2aa0':
Selectively delete files from the sdcard
2a2c06e58341c74e934258b140ba4f56e8b57ccb 19-Nov-2015 Daniel Xie <dxie@google.com> Merge "Selectively delete files from the sdcard" into marshmallow-cts-dev
442a1812217cc2724e711f2ad9712f1ef991071b 19-Nov-2015 Nicholas Sauer <nicksauer@google.com> Selectively delete files from the sdcard

bug:25651013
Change-Id: Ie5186a2b6cfd1571f8a3cea78affab2a7540b4d1
ppsecurity/src/com/android/cts/appsecurity/ExternalStorageHostTest.java
ppsecurity/test-apps/WriteExternalStorageApp/src/com/android/cts/writeexternalstorageapp/WriteExternalStorageTest.java
5fd84ab5bfac711023f08b9b458ac939f592f1bb 17-Nov-2015 Daniel Xie <dxie@google.com> Merge "Fix timeout for testCanInstallValidRsaKeypair in hostsidetests" into marshmallow-cts-dev am: 7f1cd78501 am: e026066b3a am: 5965676a42 am: 59f409c20d
am: ab8837f376

* commit 'ab8837f376fb0f5b429d1ac4761f9094353f0a80':
Fix timeout for testCanInstallValidRsaKeypair in hostsidetests
4e487c16743fde22da62ddec3084dd630796044b 17-Nov-2015 Daniel Xie <dxie@google.com> Merge "Runtime hint for android.adminhostside CTS test" into marshmallow-cts-dev am: 2ea49fcb72 am: 6e428d5944 am: c973aeebf0 am: a7553da755
am: 6941880d63

* commit '6941880d639b4523914ef6e1e976af88059118b5':
Runtime hint for android.adminhostside CTS test
096163c6dcef8316bbb284bf84b57177882446ca 17-Nov-2015 Daniel Xie <dxie@google.com> Merge "Fix timeout for testCanInstallValidRsaKeypair in hostsidetests" into marshmallow-cts-dev am: 7f1cd78501 am: e026066b3a am: 5965676a42 am: 59f409c20d
am: ab8837f376

* commit 'ab8837f376fb0f5b429d1ac4761f9094353f0a80':
Fix timeout for testCanInstallValidRsaKeypair in hostsidetests
a11cdf3cf14d043418b01d34cd0d3996b6c434bb 17-Nov-2015 Daniel Xie <dxie@google.com> Merge "Remove a cross-profile app linking test." into marshmallow-cts-dev am: 4cc519da7f am: 34e8f24ced am: c87b260d08 am: 5d6e80cb92
am: da4b7c2314

* commit 'da4b7c2314d9405bf86add7f01fddd323771ffa2':
Remove a cross-profile app linking test.
2ea49fcb72e4c5a6c442f56afcc229b34100fe59 17-Nov-2015 Daniel Xie <dxie@google.com> Merge "Runtime hint for android.adminhostside CTS test" into marshmallow-cts-dev
7f1cd78501088dc5768fd5c8f22a1b6ebf131b6c 17-Nov-2015 Daniel Xie <dxie@google.com> Merge "Fix timeout for testCanInstallValidRsaKeypair in hostsidetests" into marshmallow-cts-dev
253936a40d7454521efe3fe88fec784ed13b33b2 09-Nov-2015 Nash Lincoln <nashira@google.com> Merge "migrate monkey host test to cts_v2"
1319566a6346ada505b43145816075bee6bac177 09-Nov-2015 Nash Lincoln <nashira@google.com> Merge "migrate usb host tests to cts_v2"
784594eaccd859983db7e559c87849de825e522a 09-Nov-2015 Nash Lincoln <nashira@google.com> Merge "migrate net host tests to cts_v2"
89c469017559fc073ee64400c7c82e6c2a2c3008 09-Nov-2015 Nash Lincoln <nashira@google.com> Merge "migrate device policy tests to cts_v2"
5495cf2eb2ee20da47456bec24a91e861d48ae20 07-Nov-2015 Nash Lincoln <nashira@google.com> migrate usb host tests to cts_v2

Change-Id: I56c8e110c08f4394413cdb567c326d34fa907853
sb/Android.mk
sb/AndroidTest.xml
sb/SerialTestApp/Android.mk
sb/src/com/android/cts/usb/TestUsbTest.java
64a0c729cd6d5c8003329d4f0f8a5ccef5478fac 07-Nov-2015 Nash Lincoln <nashira@google.com> migrate net host tests to cts_v2

Change-Id: Ida3141522a536a2d33bb366fdb6b00ced907c3a4
et/Android.mk
et/AndroidTest.xml
et/app/Android.mk
et/src/com/android/cts/net/HostsideNetworkTests.java
f921ac3d62c8257b15d1bd1f4555e5b409c7ac75 07-Nov-2015 Nash Lincoln <nashira@google.com> migrate monkey host test to cts_v2

Change-Id: Iaf5630f9d8faa38fcca2a5f0c19a9026ba9f587a
onkey/Android.mk
onkey/AndroidTest.xml
onkey/src/com/android/cts/monkey/AbstractMonkeyTest.java
onkey/test-apps/CtsMonkeyApp/Android.mk
onkey/test-apps/CtsMonkeyApp2/Android.mk
afa857b095f288a0f6d19079e8c2a7fd957e8213 07-Nov-2015 Nash Lincoln <nashira@google.com> migrate device policy tests to cts_v2

Change-Id: I42704ffc11bc5b89a789618d78194130f871e1ce
evicepolicy/Android.mk
evicepolicy/AndroidTest.xml
evicepolicy/app/CertInstaller/Android.mk
evicepolicy/app/DeviceAndProfileOwner/Android.mk
evicepolicy/app/DeviceOwner/Android.mk
evicepolicy/app/IntentReceiver/Android.mk
evicepolicy/app/IntentSender/Android.mk
evicepolicy/app/LauncherTests/Android.mk
evicepolicy/app/LauncherTestsSupport/Android.mk
evicepolicy/app/ManagedProfile/Android.mk
evicepolicy/app/PackageInstaller/Android.mk
evicepolicy/app/SimpleApp/Android.mk
evicepolicy/app/SimplePreMApp/Android.mk
evicepolicy/app/WidgetProvider/Android.mk
evicepolicy/app/WifiConfigCreator/Android.mk
evicepolicy/src/com/android/cts/devicepolicy/BaseDevicePolicyTest.java
evicepolicy/src/com/android/cts/devicepolicy/CustomDeviceOwnerTest.java
evicepolicy/src/com/android/cts/devicepolicy/DeviceAndProfileOwnerTest.java
50a03a53e7fed98423ff4f411c8183800a7868c6 07-Nov-2015 Nash Lincoln <nashira@google.com> Merge "migrate host atrace tests to cts_v2"
19a17c9e24e10d722e9462ac1f99238e19105aab 07-Nov-2015 Nash Lincoln <nashira@google.com> migrate host atrace tests to cts_v2

Change-Id: I932a1126d2d47b64f536a7de428e2ba5a6b6d0c6
trace/Android.mk
trace/AndroidTest.xml
trace/AtraceTestApp/Android.mk
trace/src/android/atrace/cts/AtraceHostTest.java
c7f3b2528cfe4d3c89457d5af9cdd3d48120360d 20-Oct-2015 Aaron Holden <aaronholden@google.com> Migrate app security tests to CTS_v2

bug:21762834

Change-Id: Ib4e462977f648970004d82c1a2f56dfc032b4781
ppsecurity/Android.mk
ppsecurity/AndroidTest.xml
ppsecurity/src/android/appsecurity/cts/AdoptableHostTest.java
ppsecurity/src/android/appsecurity/cts/AppSecurityTests.java
ppsecurity/src/android/appsecurity/cts/DocumentsTest.java
ppsecurity/src/android/appsecurity/cts/ExternalStorageHostTest.java
ppsecurity/src/android/appsecurity/cts/KeySetHostTest.java
ppsecurity/src/android/appsecurity/cts/PermissionsHostTest.java
ppsecurity/src/android/appsecurity/cts/SplitTests.java
ppsecurity/src/android/appsecurity/cts/Utils.java
ppsecurity/src/com/android/cts/appsecurity/AdoptableHostTest.java
ppsecurity/src/com/android/cts/appsecurity/AppSecurityTests.java
ppsecurity/src/com/android/cts/appsecurity/DocumentsTest.java
ppsecurity/src/com/android/cts/appsecurity/ExternalStorageHostTest.java
ppsecurity/src/com/android/cts/appsecurity/KeySetHostTest.java
ppsecurity/src/com/android/cts/appsecurity/PermissionsHostTest.java
ppsecurity/src/com/android/cts/appsecurity/SplitTests.java
ppsecurity/src/com/android/cts/appsecurity/Utils.java
ppsecurity/test-apps/Android.mk
ppsecurity/test-apps/AppAccessData/Android.mk
ppsecurity/test-apps/AppWithData/Android.mk
ppsecurity/test-apps/DocumentClient/Android.mk
ppsecurity/test-apps/DocumentProvider/Android.mk
ppsecurity/test-apps/ExternalStorageApp/Android.mk
ppsecurity/test-apps/InstrumentationAppDiffCert/Android.mk
ppsecurity/test-apps/MultiUserStorageApp/Android.mk
ppsecurity/test-apps/PermissionDeclareApp/Android.mk
ppsecurity/test-apps/PermissionDeclareAppCompat/Android.mk
ppsecurity/test-apps/ReadExternalStorageApp/Android.mk
ppsecurity/test-apps/SharedUidInstall/Android.mk
ppsecurity/test-apps/SharedUidInstallDiffCert/Android.mk
ppsecurity/test-apps/SimpleAppInstall/Android.mk
ppsecurity/test-apps/SimpleAppInstallDiffCert/Android.mk
ppsecurity/test-apps/SplitApp/Android.mk
ppsecurity/test-apps/SplitApp/feature/Android.mk
ppsecurity/test-apps/SplitApp/jni/Android.mk
ppsecurity/test-apps/SplitApp/libs/Android.mk
ppsecurity/test-apps/SplitApp/libs/arm64-v8a/Android.mk
ppsecurity/test-apps/SplitApp/libs/armeabi-v7a/Android.mk
ppsecurity/test-apps/SplitApp/libs/armeabi/Android.mk
ppsecurity/test-apps/SplitApp/libs/mips/Android.mk
ppsecurity/test-apps/SplitApp/libs/mips64/Android.mk
ppsecurity/test-apps/SplitApp/libs/x86/Android.mk
ppsecurity/test-apps/SplitApp/libs/x86_64/Android.mk
ppsecurity/test-apps/TargetInstrumentationApp/Android.mk
ppsecurity/test-apps/UsePermissionApp/Android.mk
ppsecurity/test-apps/UsePermissionAppCompat/Android.mk
ppsecurity/test-apps/UsePermissionDiffCert/Android.mk
ppsecurity/test-apps/WriteExternalStorageApp/Android.mk
ppsecurity/test-apps/keysets/Android.mk
ppsecurity/test-apps/keysets/malBadKey/Android.mk
ppsecurity/test-apps/keysets/malNoDef/Android.mk
ppsecurity/test-apps/keysets/malOneDef/Android.mk
ppsecurity/test-apps/keysets/permDef/Android.mk
ppsecurity/test-apps/keysets/permUse/Android.mk
ppsecurity/test-apps/keysets/testApp/Android.mk
ppsecurity/test-apps/keysets/uA/Android.mk
ppsecurity/test-apps/keysets/uAB/Android.mk
ppsecurity/test-apps/keysets/uAuB/Android.mk
ppsecurity/test-apps/keysets/uB/Android.mk
ppsecurity/test-apps/keysets/uBsharedUser/Android.mk
ppsecurity/test-apps/keysets/uEcA/Android.mk
ppsecurity/test-apps/keysets/uNone/Android.mk
147c5b1180e00a3dd34af51d3ff6274d2ab8cd2e 28-Oct-2015 Nicolas Prevot <nprevot@google.com> Remove a cross-profile app linking test.

Remove the case where:
- there is a receiver with status always in the primary.
- there is no receiver with status always in the work profile.

BUG:25109215
Change-Id: I5328775a7439ee3768b81e8110edd3dae84c606c
evicepolicy/src/com/android/cts/devicepolicy/ManagedProfileTest.java
72ebd2f6b5881e83bb6c98a3fc13fcea003dde54 28-Oct-2015 Jed Estep <jestep@google.com> Runtime hint for android.adminhostside CTS test

Change-Id: I682495737c77cb77bddcb47a7fab47753a2c2e43
evicepolicy/Android.mk
5bab28ad2c398d9eacf167344f588d5b82979235 27-Oct-2015 Stuart Scott <stuartscott@google.com> Dont use IFolderBuildInfo for local runs.

Bug:21762834
Change-Id: I1f6526661bdef4f9f35b94b81f5b6e33cd8756e8
umpsys/src/android/dumpsys/cts/DumpsysHostTest.java
ank/src/android/jank/cts/CtsHostJankTest.java
dwpsecurity/src/android/jdwpsecurity/cts/JdwpSecurityHostTest.java
ample/src/android/sample/cts/SampleHostResultTest.java
heme/src/android/theme/cts/ThemeHostTest.java
i/src/android/ui/cts/InstallTimeTest.java
i/src/android/ui/cts/TaskSwitchingTest.java
8ea1911b7e6d230526b101ca4dc3314fa7adffa0 22-Oct-2015 Junjie Hu <junjie.hu@mediatek.com> Fix timeout for testCanInstallValidRsaKeypair in hostsidetests

testCanInstallValidRsaKeypair will fail because of timeout when
running cts fulltest.The timeout reason is that there are near 190
'cryptfs changepw' command queued in vold. There are too many cts
testcases execute DevicePolicyManager.resetPassword().

Solution:
Extend timeout from 8 sec to 6 minutes

Change-Id: I794b1071185f41863f745558936240ec35e5bb44
Signed-off-by: Junjie Hu <junjie.hu@mediatek.com>
evicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/KeyManagementTest.java
133688f4c723602a3cad387e43775792eff7d5f5 23-Oct-2015 Steve McKay <smckay@google.com> Merge " Make CTS tests touch specific."
48ac3f007755f7f1adc52e724b8863b25a7cbd50 22-Oct-2015 Steve McKay <smckay@google.com> Make CTS tests touch specific.

Now that https://buganizer.corp.google.com/u/0/issues/24904588 is fixed.

Change-Id: I703c4280cf79edec53f4f30f941df04f06a35baa
ppsecurity/test-apps/DocumentClient/src/com/android/cts/documentclient/DocumentsClientTest.java
d939d0d2c112af41caca62054cbe661345264d28 22-Oct-2015 Aaron Holden <aaronholden@google.com> Merge "Migrate aadb tests to CTS_v2"
bde82934c6e812dc36c7f55ec0bd1d8cf6847a28 22-Oct-2015 Aaron Holden <aaronholden@google.com> Merge "Migrate dumpsys tests to CTS_v2"
8cc910a6b8788757e4bb7f5d131beb0f8f7657f9 17-Oct-2015 Aaron Holden <aaronholden@google.com> Migrate aadb tests to CTS_v2

bug:21762834
Change-Id: I486fc9dec939d9d27d1105fb1f3805e3a475de49
adb/Android.mk
adb/AndroidTest.xml
adb/src/android/aadb/cts/TestDeviceFuncTest.java
adb/src/android/aadb/cts/TestDeviceStressTest.java
adb/src/com/android/cts/aadb/TestDeviceFuncTest.java
adb/src/com/android/cts/aadb/TestDeviceStressTest.java
35addd3162f912ae74c8c4e272342a0450aaba6c 15-Sep-2015 Dongwon Kang <dwkang@google.com> DO NOT MERGE: Disable two multi user tests for TV devices

cherry-picked from: I3aa70267d89154ea34a861cb255dd334a97a7c1c

Bug: 24266736, Bug: 23391204
Change-Id: I810271887290b3c2c6260f60851c5caed7418118
evicepolicy/src/com/android/cts/devicepolicy/LauncherAppsMultiUserTest.java
1010044e48e81729b3c5fd3c098a08a9bf55c658 21-Oct-2015 Stuart Scott <stuartscott@google.com> Merge "Add dependancies on test apps outside of a test's directory."
729ba1e94bdb93157bf83684bd96a634998ccc8f 21-Oct-2015 Aaron Holden <aaronholden@google.com> Migrate dumpsys tests to CTS_v2

bug:21762834
Change-Id: I19a30ff4dbbb9b5db5ee8a8eac1dbd6a03ed0339
umpsys/Android.mk
umpsys/AndroidTest.xml
umpsys/FramestatsTestApp/Android.mk
umpsys/src/android/dumpsys/cts/DumpsysHostTest.java
480460ccae787d5aef3ec078d5e94f69c51a8749 21-Oct-2015 Stuart Scott <stuartscott@google.com> Merge "Add hostside jar test runner."
cb6afd1d81a968c241ec5b38423e9478b54a8f21 21-Oct-2015 Stuart Scott <stuartscott@google.com> Add dependancies on test apps outside of a test's directory.

bug:21762834
Change-Id: I115ebb0d1dcd7ff9e6875cd9e589706a57bab6d4
ank/Android.mk
i/Android.mk
411e3bd30c61fb3e584085c0b96c2c4abf6ba234 21-Oct-2015 Nick Kralevich <nnk@google.com> Merge "SELinuxHostTest: Fix testValidServiceContexts()" am: 048d32aa56 am: ac83410459
am: be3fb414ea

* commit 'be3fb414ead2261feabcdc14d4bbc4255889c535':
SELinuxHostTest: Fix testValidServiceContexts()
be3fb414ead2261feabcdc14d4bbc4255889c535 21-Oct-2015 Nick Kralevich <nnk@google.com> Merge "SELinuxHostTest: Fix testValidServiceContexts()" am: 048d32aa56
am: ac83410459

* commit 'ac834104594507a705020b8d5e5ea11d128c6bdd':
SELinuxHostTest: Fix testValidServiceContexts()
ac834104594507a705020b8d5e5ea11d128c6bdd 21-Oct-2015 Nick Kralevich <nnk@google.com> Merge "SELinuxHostTest: Fix testValidServiceContexts()"
am: 048d32aa56

* commit '048d32aa5639d3dcae80f4157937f9a36e6c581e':
SELinuxHostTest: Fix testValidServiceContexts()
048d32aa5639d3dcae80f4157937f9a36e6c581e 21-Oct-2015 Nick Kralevich <nnk@google.com> Merge "SELinuxHostTest: Fix testValidServiceContexts()"
65456a6ef399638411956335045c3228674e1bde 21-Oct-2015 William Roberts <william.c.roberts@intel.com> SELinuxHostTest: update checkfc to use -s for service_contexts

Change-Id: I62077e4d0760858a9459e753e14dfd209868080f
Signed-off-by: William Roberts <william.c.roberts@intel.com>
ecurity/src/android/cts/security/SELinuxHostTest.java
6626277a4572fbe0653c60c6219bcd4710e1bff9 21-Oct-2015 William Roberts <william.c.roberts@intel.com> SELinuxHostTest: Fix testValidServiceContexts()

Test method testValidServiceContexts() should run checkfc with the
service_contexts file to ensure that they are valid. Currently,
it's using the property_contexts file. Update the test to use
service_contexts.

Change-Id: Id8eede43d73bb480e34c52107d7132a0cd626ceb
Signed-off-by: William Roberts <william.c.roberts@intel.com>
ecurity/src/android/cts/security/SELinuxHostTest.java
2df3fc6bfb366b87336b4e353d2162f3e6571748 21-Oct-2015 Daniel Xie <dxie@google.com> Merge "Fix SeedTest for landscape" into kitkat-cts-dev
a41d49723a200eec6af9c9504a961cb2df306295 20-Oct-2015 Daniel Xie <dxie@google.com> Squashed mnc-dev changes:

This contains all of the changes from b54aa51 to
791e51a on mnc-dev, except the changes
to tests/tests/security.

Bug: 24846656
Change-Id: I01f53a1a238ac49f86928e0e22796dc73e0e34af
ppsecurity/src/com/android/cts/appsecurity/AdoptableHostTest.java
trace/AtraceTestApp/AndroidManifest.xml
trace/src/android/atrace/cts/AtraceHostTest.java
evicepolicy/app/DeviceAndProfileOwner/AndroidManifest.xml
evicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/UserRestrictionActivity.java
evicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/CaCertManagementTest.java
evicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/PackageInstallTest.java
evicepolicy/app/PackageInstaller/Android.mk
evicepolicy/app/PackageInstaller/AndroidManifest.xml
evicepolicy/app/PackageInstaller/res/xml/device_admin.xml
evicepolicy/app/PackageInstaller/src/com/android/cts/packageinstaller/BasePackageInstallTest.java
evicepolicy/app/PackageInstaller/src/com/android/cts/packageinstaller/ClearDeviceOwnerTest.java
evicepolicy/app/PackageInstaller/src/com/android/cts/packageinstaller/ManualPackageInstallTest.java
evicepolicy/app/PackageInstaller/src/com/android/cts/packageinstaller/SilentPackageInstallTest.java
evicepolicy/src/com/android/cts/devicepolicy/BaseDevicePolicyTest.java
evicepolicy/src/com/android/cts/devicepolicy/CustomDeviceOwnerTest.java
evicepolicy/src/com/android/cts/devicepolicy/DeviceAndProfileOwnerTest.java
evicepolicy/src/com/android/cts/devicepolicy/DeviceOwnerTest.java
evicepolicy/src/com/android/cts/devicepolicy/LauncherAppsMultiUserTest.java
umpsys/FramestatsTestApp/Android.mk
umpsys/FramestatsTestApp/AndroidManifest.xml
umpsys/FramestatsTestApp/src/com/android/cts/framestatstestapp/FramestatsTestAppActivity.java
umpsys/src/android/dumpsys/cts/DumpsysHostTest.java
ecurity/src/android/cts/security/SELinuxHostTest.java
heme/src/android/theme/cts/ComparisonTask.java
227b641e88342a38e292ab2d8726a5fbc49c2f39 19-Oct-2015 Daniel Xie <dxie@google.com> Merge "[PATCH] CTS4.4 : Fix ThemeHostTest#testHoloThemes" into kitkat-cts-dev
2b32e8ecc8946a64fb6ffc91c7a3f7acc482f0f7 19-Oct-2015 Jeff Sharkey <jsharkey@google.com> am 1c4cf1f3: am 62190192: am d8d381f7: Merge "Issue 186618:run cts com.android.cts.appsecurity.DocumentsTest--testTree--fail5.1_r2 [root cause]in testTree method, the second writeFully(...) task may be executed in the AsyncTask after readFully(...) task, or they may b

* commit '1c4cf1f3cc27400fbc03c96d1498009fa498b1a2':
Issue 186618:run cts com.android.cts.appsecurity.DocumentsTest--testTree--fail5.1_r2 [root cause]in testTree method, the second writeFully(...) task may be executed in the AsyncTask after readFully(...) task, or they may be executed at the same time. Since the read and write operation is not protected by synchronized. Two tasks running on different thread my access doc.contents at the same time, and may lead to a null pointer crash [changesY] using AsyncTask.SERIAL_EXECUTOR instead of AsyncTask.THREAD_POOL_EXECUTOR
1c4cf1f3cc27400fbc03c96d1498009fa498b1a2 19-Oct-2015 Jeff Sharkey <jsharkey@google.com> am 62190192: am d8d381f7: Merge "Issue 186618:run cts com.android.cts.appsecurity.DocumentsTest--testTree--fail5.1_r2 [root cause]in testTree method, the second writeFully(...) task may be executed in the AsyncTask after readFully(...) task, or they may be executed at

* commit '6219019251536924ef5b7d17182c81588f45bb41':
Issue 186618:run cts com.android.cts.appsecurity.DocumentsTest--testTree--fail5.1_r2 [root cause]in testTree method, the second writeFully(...) task may be executed in the AsyncTask after readFully(...) task, or they may be executed at the same time. Since the read and write operation is not protected by synchronized. Two tasks running on different thread my access doc.contents at the same time, and may lead to a null pointer crash [changesY] using AsyncTask.SERIAL_EXECUTOR instead of AsyncTask.THREAD_POOL_EXECUTOR
6219019251536924ef5b7d17182c81588f45bb41 19-Oct-2015 Jeff Sharkey <jsharkey@google.com> am d8d381f7: Merge "Issue 186618:run cts com.android.cts.appsecurity.DocumentsTest--testTree--fail5.1_r2 [root cause]in testTree method, the second writeFully(...) task may be executed in the AsyncTask after readFully(...) task, or they may be executed at the same tim

* commit 'd8d381f77c4aac8af1f68a85ca3f7418ab6154e4':
Issue 186618:run cts com.android.cts.appsecurity.DocumentsTest--testTree--fail5.1_r2 [root cause]in testTree method, the second writeFully(...) task may be executed in the AsyncTask after readFully(...) task, or they may be executed at the same time. Since the read and write operation is not protected by synchronized. Two tasks running on different thread my access doc.contents at the same time, and may lead to a null pointer crash [changesY] using AsyncTask.SERIAL_EXECUTOR instead of AsyncTask.THREAD_POOL_EXECUTOR
1da654ccfeca9f6f23fc1ad272b92864aa5273ec 17-Sep-2015 apple <houjuanjuan2000@gmail.com> Issue 186618:run cts com.android.cts.appsecurity.DocumentsTest--testTree--fail5.1_r2
[root cause]in testTree method, the second writeFully(...) task may be
executed in the AsyncTask after readFully(...) task, or they may be
executed at the same time. Since the read and write operation is not
protected by synchronized. Two tasks running on different thread my
access doc.contents at the same time, and may lead to a null pointer
crash
[changesY] using AsyncTask.SERIAL_EXECUTOR instead of AsyncTask.THREAD_POOL_EXECUTOR

Change-Id: I2aa25c350960e010719b911094969e4662ce1a7a
ppsecurity/test-apps/DocumentProvider/src/com/android/cts/documentprovider/MyDocumentsProvider.java
227d96a311cfd80e704f00807c78c5d86399db97 19-Oct-2015 Matt Belland <belland@google.com> Merge "Flesh out dumpsys batterystats tests related to core metrics."
859587df5487351e6cd36aed9771c9c4f73afaf9 13-Oct-2015 Matt Belland <belland@google.com> Flesh out dumpsys batterystats tests related to core metrics.

These core metrics being:
- On-Battery Duration
- Network Activity
- Estimated Power Usage
- Wakelock Usage

Bug: 22792566
Change-Id: I4ed52b68bd4884b6919cdbc811b11dea3a0999e9
umpsys/src/android/dumpsys/cts/DumpsysHostTest.java
e5569f98d249c70a523db85340e4685948f2dd6e 16-Oct-2015 Daniel Xie <dxie@google.com> am e4edff0a: am 773fdeda: am c593e910: am 9e4a30de: am 27da12ff: Merge "[devicepolicy] More complete test of CaCert API" into marshmallow-cts-dev am: 66963f6780

* commit 'e4edff0a38e4d924ab229605ed51dd299755a810':
[devicepolicy] More complete test of CaCert API
e4edff0a38e4d924ab229605ed51dd299755a810 16-Oct-2015 Daniel Xie <dxie@google.com> am 773fdeda: am c593e910: am 9e4a30de: am 27da12ff: Merge "[devicepolicy] More complete test of CaCert API" into marshmallow-cts-dev am: 66963f6780

* commit '773fdedae2ae34c48e0de35848d8f9743994d67e':
[devicepolicy] More complete test of CaCert API
917ec94c17e59b7a8422404221e6db1a4f48c7c0 14-Sep-2015 Stuart Scott <stuartscott@google.com> Add hostside jar test runner.

bug:21762834
Change-Id: If159f61b6fa6ec4d28e39be24890f56c76434a89
ank/AndroidTest.xml
ank/src/android/jank/cts/CtsHostJankTest.java
dwpsecurity/AndroidTest.xml
s/AndroidTest.xml
ample/AndroidTest.xml
ecurity/Android.mk
ecurity/AndroidTest.xml
heme/AndroidTest.xml
heme/src/android/theme/cts/ThemeHostTest.java
i/AndroidTest.xml
sage/AndroidTest.xml
27da12ffb387cc8b61c8531764240f77fdae224b 16-Oct-2015 Daniel Xie <dxie@google.com> Merge "[devicepolicy] More complete test of CaCert API" into marshmallow-cts-dev
am: 66963f6780

* commit '66963f67808af6870ab56c871bd5b0bb290f0913':
[devicepolicy] More complete test of CaCert API
5e4a4dd2074693caf70cb0f2d672400fd71a9ed8 19-Sep-2015 Adam Lesinski <adamlesinski@google.com> BatteryStats host side: Test for presence of CPU time usage data

Bug:23290127
Change-Id: I0a86ce47b2a63437534122277cdbb2270ecd7fb1
umpsys/src/android/dumpsys/cts/DumpsysHostTest.java
a604e38036dfede90f6aef4ff6248167d4340aea 09-Oct-2015 Takeshi Katae <takeshi.katae.xm@kyocera.jp> [PATCH] CTS4.4 : Fix ThemeHostTest#testHoloThemes

This test case is going to capture widget which does not have focus.
But, even if the widget is not focusable, the widget that contains
focusable child view(s) can have focus, if
com.android.internal.R.bool.config_defaultInTouchMode is false.
This patch prevents the focusable child view from getting focus.

Change-Id: Ib2225359c2a51482a0a6d8e7d2f5b5f296ed92bd
Signed-off-by: Takeshi Katae <takeshi.katae.xm@kyocera.jp>
heme/app/src/android/theme/app/HoloDeviceActivity.java
95c7bda5f166ebd75bedea981f61034fd0c158a2 08-Oct-2015 Ryoma Sasaki <ryoma.sasaki@brilliantservice.co.jp> Fix SeedTest for landscape

By commit ce9362e77a7e71810c0cb8abdef216672d53688d, touch is disabled and
the orientation is locked to portrait during runs of the monkey activity.

After that, by commit 66b07044958047f2e40bd59976c0fcf0e0da845f, touch is
enabled, but the orientation remains locked to portrait during runs of that.

This causes testSeed to be failed when the orientation is landscape.

Change-Id: I8421ddc4f2decb0a80c2533d76bf44495f57f90d
Signed-off-by: Ryoma Sasaki <ryoma.sasaki@brilliantservice.co.jp>
onkey/test-apps/CtsMonkeyApp/AndroidManifest.xml
53d2671f2aac00abddd5648d8c4e1c29ee00efc5 30-Sep-2015 Robin Lee <rgl@google.com> [devicepolicy] More complete test of CaCert API

Main improvement: checking whether a CA certificate is not only listed
by the system but also whether it's *trusted* by standard security
APIs like TrustManager.

Bug:17469404
Change-Id: If5be7451f6823f22c57db1b2b7b373784bf77d99
evicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/CaCertManagementTest.java
1bf91b255d450319a4d05570b20cd9602c97845d 06-Oct-2015 Stuart Scott <stuartscott@google.com> Remove common-config and switch to AndroidJUnitTest.

bug:21762834
Change-Id: I17e1b44e4429a3fbeb9f110a74038e4ec306af38
ank/AndroidTest.xml
dwpsecurity/AndroidTest.xml
s/AndroidTest.xml
ample/AndroidTest.xml
heme/AndroidTest.xml
i/AndroidTest.xml
sage/AndroidTest.xml
2984e627bed0bb9e27da6c3cb89180ae7bbab759 05-Oct-2015 Stuart Scott <stuartscott@google.com> Merge "Revert "Add hostside jar test runner.""
ac512edf60522e34d086398a773c02d1383bd07e 05-Oct-2015 Stuart Scott <stuartscott@google.com> Revert "Add hostside jar test runner."

This reverts commit 666fd82bed2f774757b4b706d2b4878d2a425a08.

Change-Id: I14b8888d76d090a219de4f987b132d535b05b110
ample/AndroidTest.xml
efebde360483dc5b53cc67bcdc5f24b6f17ce461 05-Oct-2015 Stuart Scott <stuartscott@google.com> Merge "Add hostside jar test runner."
2821ff7a0bbac8843f427cfb2b4ff520ed03d190 02-Oct-2015 Stuart Scott <stuartscott@google.com> Merge "Migrate App Usage host tests to CTSv2."
46ede90e584f47d177a94115ffc7336c718e4045 30-Sep-2015 Grigory Dzhavadyan <grigoryj@google.com> Add a host-side test to verify run-as works in adb shell.

Currently it is impossible to debug C++ applications on some devices
without taking special measures. To prevent this from happening in the
future, we'll add some CTS tests that cover the functionality necessary
for debugging C++ code.

Change-Id: I37d339a8d74c7c4fef4fc96f3908b0fa38ad7f0f
pptools/Android.mk
pptools/app/Android.mk
pptools/app/AndroidManifest.xml
pptools/app/src/android/sample/app/SampleDeviceActivity.java
pptools/src/com/android/cts/cpptools/RunAsHostTest.java
6a8a18b3de64a99da2d124798d8144ebe8ef943e 17-Sep-2015 kang.lee <kang.lee@lge.com> Fix CTS 4.4 R4 testHoloTheme test failure.

1. In CTS 4.4 R4, during testing testHoloTheme,
comparing "datepicker" and "timepicker" was failed.
On device side, the test of EditText at each picker cannot
get correct layout. It may be timing issue in 4.4.2

2. So, I delete mViewGroup.measure() and mViewGroup.layout() in setUpUi().
Due to these codes, child view cannot draw layout with correct font measuring value
when ReferenceViewGroup called onLayout callback.
It seems good for entrusting the measure of viewGroup to normal framework operation.

Change-Id: Ied848d27ab125896e5a9ff702c6838bf01d32c8d
Signed-off-by: Kang Lee <kang.lee@lge.com>
heme/app/src/android/theme/app/HoloDeviceActivity.java
a0c6f39a65e5db0a01ef1216447e5ca838032aef 29-Sep-2015 Stuart Scott <stuartscott@google.com> Migrate App Usage host tests to CTSv2.

bug:21762834
Change-Id: I1d7d6dd6fc260b493082cd9bc73992256620e018
sage/Android.mk
sage/AndroidTest.xml
sage/app/Android.mk
sage/app/AndroidManifest.xml
sage/app/src/android/app/usage/app/TestActivity.java
sage/app/src/com/android/cts/app/usage/test/TestActivity.java
sage/src/android/app/usage/cts/AppIdleHostTest.java
sage/src/com/android/cts/app/usage/AppIdleHostTest.java
372e9e9523367709a131a02e2b0a32d475b99b02 29-Sep-2015 Stuart Scott <stuartscott@google.com> Migrate theme host to CTSv2

bug:21762834
Change-Id: Ie597ccfa4478c3984f97510fc774b9e2a67a947f
heme/Android.mk
heme/AndroidTest.xml
heme/app/Android.mk
heme/src/android/theme/cts/ThemeHostTest.java
7f5422a0771a47a2a4c589e0eb6b63cb0839ead6 29-Sep-2015 Stuart Scott <stuartscott@google.com> Add missing import/dependancy.

bug:21762834
Change-Id: I730e7918a066ee8553161a8dfca0b3dc6b0d0402
dwpsecurity/Android.mk
dwpsecurity/src/android/jdwpsecurity/cts/JdwpSecurityHostTest.java
d1cf4371c5c15d871b029db9b5f0d522473605e7 29-Sep-2015 Stuart Scott <stuartscott@google.com> Merge "Migrate app tests."
1ec6aa026cffa6f1c2969454b4d9fc68ed18d3dd 29-Sep-2015 Stuart Scott <stuartscott@google.com> Merge "Migrate Jank, OpenGl, and UI tests to CTSv2"
623ab9204781924a1187279e8afd5fa25411d025 29-Sep-2015 Stuart Scott <stuartscott@google.com> Merge "Migrate OS tests to CTSv2"
473180e66df70d7600d575a2513a629cfddf5f50 29-Sep-2015 Stuart Scott <stuartscott@google.com> Merge "Migrate security to CTSv2."
fecf412fb19049552cb1f96741eccfe7612b1d19 29-Sep-2015 Stuart Scott <stuartscott@google.com> Merge "Migrate JDWP to CTS_v2."
423ee7387f9ed3c2de6fe607ebe7c2564b62bfbe 29-Sep-2015 Stuart Scott <stuartscott@google.com> Migrate JDWP to CTS_v2.

bug:21762834
Change-Id: I09e25b76947ce3e4305cd8acf9c509b07be269d5
dwpsecurity/Android.mk
dwpsecurity/AndroidTest.xml
dwpsecurity/app/Android.mk
dwpsecurity/src/android/jdwpsecurity/cts/JdwpSecurityHostTest.java
e91414349691e75dc66b3207da4d07aa59767031 29-Sep-2015 Stuart Scott <stuartscott@google.com> Migrate OS tests to CTSv2

bug:21762834
Change-Id: I69147dbd09d2226d15b767aaefc32e21ae564f3d
s/Android.mk
s/AndroidTest.xml
s/OldAndroidTest.xml
s/app/Android.mk
s/app/AndroidManifest.xml
s/app/src/android/os/app/TestNonExported.java
s/app/src/com/android/cts/app/os/test/TestNonExported.java
s/src/android/os/cts/OsHostTests.java
s/src/com/android/cts/app/os/OsHostTests.java
3552d23c37ebf3ea61da8d1c672d9ddb6fea09f0 29-Sep-2015 Stuart Scott <stuartscott@google.com> Migrate security to CTSv2.

bug:21762834
Change-Id: Idf5461abffcbeba734c651e40739facb0ed7ffec
ecurity/AndroidTest.xml
ecurity/src/android/cts/security/SELinuxHostTest.java
ecurity/src/android/security/cts/SELinuxHostTest.java
c053ba2f92d34a6d0bb89434daa3fd59b75c819f 29-Sep-2015 Daniel Xie <dxie@google.com> am 6b784479: am c8bb2777: am 89624149: am 442a77b4: am 1004ed31: resolved conflicts for ed0ccb8a to mnc-dev

* commit '6b78447937268f3368d89c449491f85cb674fd4d':
Improve the color comparison
6b78447937268f3368d89c449491f85cb674fd4d 29-Sep-2015 Daniel Xie <dxie@google.com> am c8bb2777: am 89624149: am 442a77b4: am 1004ed31: resolved conflicts for ed0ccb8a to mnc-dev

* commit 'c8bb2777413bb241b765a2479d7f41a4fde3bfd2':
Improve the color comparison
1004ed31460cb5b1c40ba1a584b96e34e3ced3cc 29-Sep-2015 Daniel Xie <dxie@google.com> resolved conflicts for ed0ccb8a to mnc-dev

Change-Id: I0938cf7bf1cfacc29083692907e8be20811d36cb
ed0ccb8a008f43cb6d4acdf54e9d2eabb2817758 29-Sep-2015 Daniel Xie <dxie@google.com> am c5a60642: am e20fc935: am f653c0f6: am 9df0892c: am 0629f275: am ff367fdd: am 8a8ad882: am 1510424e: Merge "Improve the color comparison" into kitkat-cts-dev

* commit 'c5a606423f9c265ae6304aeb8706dca11d53e1bd':
Improve the color comparison
c5a606423f9c265ae6304aeb8706dca11d53e1bd 29-Sep-2015 Daniel Xie <dxie@google.com> am e20fc935: am f653c0f6: am 9df0892c: am 0629f275: am ff367fdd: am 8a8ad882: am 1510424e: Merge "Improve the color comparison" into kitkat-cts-dev

* commit 'e20fc935e389a014a67e72d166b776b3bb736d71':
Improve the color comparison
e20fc935e389a014a67e72d166b776b3bb736d71 29-Sep-2015 Daniel Xie <dxie@google.com> am f653c0f6: am 9df0892c: am 0629f275: am ff367fdd: am 8a8ad882: am 1510424e: Merge "Improve the color comparison" into kitkat-cts-dev

* commit 'f653c0f6c451cff56f8e656a6204001eb5fa1ae1':
Improve the color comparison
9df0892cad76083e05ec33c3dc04910f109615b7 29-Sep-2015 Daniel Xie <dxie@google.com> am 0629f275: am ff367fdd: am 8a8ad882: am 1510424e: Merge "Improve the color comparison" into kitkat-cts-dev

* commit '0629f2757bb53953997115ff40c6f471bdb87df5':
Improve the color comparison
0629f2757bb53953997115ff40c6f471bdb87df5 29-Sep-2015 Daniel Xie <dxie@google.com> am ff367fdd: am 8a8ad882: am 1510424e: Merge "Improve the color comparison" into kitkat-cts-dev

* commit 'ff367fdd77ee7713672f7ad6bd93fdc2b090a3a1':
Improve the color comparison
9bdd69b9a2abca592439124afdbe13cdf8c66903 11-Aug-2015 Stuart Scott <stuartscott@google.com> Migrate app tests.

bug:21762834
Change-Id: I16e40e97f084a0b42be82ef3a5c6b4590bbb7a2c
evicepolicy/app/SimpleApp/Android.mk
8a8ad8826660de38bbf8479004bc66a0d798f538 28-Sep-2015 Daniel Xie <dxie@google.com> am 1510424e: Merge "Improve the color comparison" into kitkat-cts-dev

* commit '1510424e1436490d301953513fd1dc1b59dddc1a':
Improve the color comparison
bb212349dbfd131dd771f01f27db542d67fbedba 15-Sep-2015 Stuart Scott <stuartscott@google.com> Migrate Jank, OpenGl, and UI tests to CTSv2

bug:21762834
Change-Id: I67dc7f6e3ab5a2225b3ee0d30331a7033d38769a
ank/Android.mk
ank/AndroidTest.xml
ank/app/Android.mk
ank/app/src/android/jank/cts/CtsJankTestBase.java
ank/app/src/android/jank/cts/opengl/CtsDeviceJankOpenGl.java
ank/src/android/jank/cts/CtsHostJankTest.java
ank/src/android/jank/cts/opengl/CtsHostJankOpenGl.java
i/Android.mk
i/AndroidTest.xml
i/appA/Android.mk
i/appA/AndroidManifest.xml
i/appA/src/android/taskswitching/appa/AppAActivity.java
i/appB/Android.mk
i/appB/AndroidManifest.xml
i/appB/src/android/taskswitching/appb/AppBActivity.java
i/control/Android.mk
i/control/AndroidManifest.xml
i/control/src/android/taskswitching/control/cts/TaskSwitchingDeviceTest.java
i/src/android/ui/cts/InstallTimeTest.java
i/src/android/ui/cts/TaskSwitchingTest.java
bc01495e0785439e53539952a2f69f8a4c3fcd67 27-Sep-2015 Prashant Malani <pmalani@google.com> am 9f9632fe: am beb9913b: am ddfb7c66: am cd9ff5cd: am f1d16eed: Merge "Fix DrmServer test for devices that don\'t require drmserver" into mnc-dev

* commit '9f9632fe92de07c6639a521c6761a94845307b40':
Fix DrmServer test for devices that don't require drmserver
9f9632fe92de07c6639a521c6761a94845307b40 26-Sep-2015 Prashant Malani <pmalani@google.com> am beb9913b: am ddfb7c66: am cd9ff5cd: am f1d16eed: Merge "Fix DrmServer test for devices that don\'t require drmserver" into mnc-dev

* commit 'beb9913b3a52c20f343e1603258bbfdc0d2c3c8b':
Fix DrmServer test for devices that don't require drmserver
ad71dcf7275bfa961fb05e86c77f109c95c4e892 23-Sep-2015 Prashant Malani <pmalani@google.com> Fix DrmServer test for devices that don't require drmserver

Bug: 24404664

Change-Id: If6296897f75ec4b3628b47b5829e7446d106d5f9
ecurity/src/android/cts/security/SELinuxHostTest.java
971789bf3cb3b28776f34bc418b0a89386bebd05 25-Sep-2015 Lei.zhang <lzha99xx@gmail.com> Increased CTS test timeout from 5 sec to 30 sec in ModifyInstallerPackageTest.java

Fix CTS fail for ModifyInstallerPackageTest.

Change-Id: I1ed50c2820113a56b7aa6631bc5633ff10354c21
Signed-off-by: lzha99xx@gmail.com
ppsecurity/test-apps/UsePermissionDiffCert/src/com/android/cts/usespermissiondiffcertapp/ModifyInstallerPackageTest.java
3c4b6e68fa4771c729ff33e707a3a43bfc125274 18-Sep-2015 Masanori OGINO <ogino.masanori@sharp.co.jp> Improve the color comparison

There might be a big difference of RGB values around a gradated part
even if they look like a similar appearance. So it would be better
to use the premultiplied alpha for the comparison of images with an
alpha channel.

Change-Id: Iab1d756af6cf6940c46f578ec03f0901dbb80897
heme/src/android/theme/cts/ComparisonTask.java
7900e863fc3626351408fa3194902909d6c6bedd 24-Sep-2015 Dongwon Kang <dwkang@google.com> am bc5459f9: am a07c6451: am 9e855985: am 13445044: Merge "DO NOT MERGE: Disable two multi user tests for TV devices" into mnc-dev

* commit 'bc5459f98f824d89a9ce8e072581a33af6fd8b9d':
DO NOT MERGE: Disable two multi user tests for TV devices
134450444a4660d84220a13e5d991fbfa485dd53 24-Sep-2015 Dongwon Kang <dwkang@google.com> Merge "DO NOT MERGE: Disable two multi user tests for TV devices" into mnc-dev
41f66cec804a0863f288f4cde2804c4329178e08 22-Sep-2015 Kenny Guy <kennyguy@google.com> am 43a17442: Merge "Make LauncherApps tests less flakey." into lollipop-cts-dev

* commit '43a174421c9e4ebfaa3e2ef9fba1a413584a1405':
Make LauncherApps tests less flakey.
f813d99e689fc792e1bb3722dff882b3610cc302 22-Sep-2015 Daniel Xie <dxie@google.com> am d2162c81: Merge "Change assertcode of checkSignalStrength in DumpsysHostTest" into lollipop-cts-dev

* commit 'd2162c816774d625976de06c3e6a0c1c6c480b8d':
Change assertcode of checkSignalStrength in DumpsysHostTest
666fd82bed2f774757b4b706d2b4878d2a425a08 14-Sep-2015 Stuart Scott <stuartscott@google.com> Add hostside jar test runner.

bug:21762834
Change-Id: Ie9bbc855c1dd0dcfc0b50ad1362292a0634b7738
ample/AndroidTest.xml
4179b4f2bd087fa4bd85048f6497895fb8e69549 18-Sep-2015 Kenny Guy <kennyguy@google.com> Merge "Enable widget test now whitelist behaviour fixed."
196981886b828e92a6ec531d1fa9111bf24e7e76 17-Sep-2015 Nicolas Prévot <nprevot@google.com> Merge "Don't assume the parent is the owner in managed profile cts tests."
486af65f3f6cee353642be65229b8e0457d96caf 19-Aug-2015 Nicolas Prevot <nprevot@google.com> Don't assume the parent is the owner in managed profile cts tests.

With system-user split, the parent is not always the owner any more.

BUG:23104727
Change-Id: I9d89516e46063dc1d52ed9c5a41e0c73e37aef0e
evicepolicy/src/com/android/cts/devicepolicy/BaseDevicePolicyTest.java
evicepolicy/src/com/android/cts/devicepolicy/DeviceAndProfileOwnerTest.java
evicepolicy/src/com/android/cts/devicepolicy/LauncherAppsProfileTest.java
evicepolicy/src/com/android/cts/devicepolicy/ManagedProfileTest.java
evicepolicy/src/com/android/cts/devicepolicy/MixedProfileOwnerTest.java
025bd02cebc59376396879dfcda23aa9bbb8428b 15-Sep-2015 Daniel Xie <dxie@google.com> am 87a13283: Merge "fix incorrection assumption due to DST" into lollipop-cts-dev

* commit '87a13283cb7290e623d9fea20b5bda5487e715a4':
fix incorrection assumption due to DST
0e753a8627c3b08168886d295edb26d178b934b5 15-Sep-2015 Daniel Xie <dxie@google.com> am df91c971: Merge "Fix com.android.cts.monkey.VerbosityTest#testVerbosity seldom fail" into lollipop-cts-dev

* commit 'df91c971df8b2c08d89a18b020481a151a347e36':
Fix com.android.cts.monkey.VerbosityTest#testVerbosity seldom fail
b25ca64e97d25a6bea2ed03fb1fe73fda18a8e63 15-Sep-2015 Fyodor Kupolov <fkupolov@google.com> am 3682098c: Merge "Update cts to not require multi-user when managed_users are declared" into lollipop-cts-dev

* commit '3682098c9abf4b857eb1bd71430037fec569a083':
Update cts to not require multi-user when managed_users are declared
062f04bcd79c6141a69187c8110271d23137f25a 15-Sep-2015 Alain Vongsouvanh <alainv@google.com> am 68b8b477: Merge "Refactoring the ThemeHostTest to reduce timeout." into lollipop-cts-dev

* commit '68b8b477a1e4c82fa54f471938ab0b3db3bbd8bd':
Refactoring the ThemeHostTest to reduce timeout.
a9154fed44dd11cf55bf11d9f684a34035b42db0 15-Sep-2015 Dongwon Kang <dwkang@google.com> DO NOT MERGE: Disable two multi user tests for TV devices

Bug: 23718447
Change-Id: I3aa70267d89154ea34a861cb255dd334a97a7c1c
evicepolicy/src/com/android/cts/devicepolicy/LauncherAppsMultiUserTest.java
a404aa8960dae45f239d899a4b8a07e660443bbb 15-Sep-2015 Alain Vongsouvanh <alainv@google.com> am ed577509: Merge "Use ITestDevice#pullFile instead of ITestDevice#executeAdbCommand." into lollipop-cts-dev

* commit 'ed5775098892e667d1fa3b5d625e2f1396468a58':
Use ITestDevice#pullFile instead of ITestDevice#executeAdbCommand.
12f128a54453191cd0dbcffcbe85028435bcba05 15-Sep-2015 Chris Craik <ccraik@google.com> am c4b1ec2c: am 2db47daf: am 116cf165: am f471ec21: am 285cd150: Make atrace test app debuggable

* commit 'c4b1ec2cc6f2e5ad0768b0d6574b8dd83bd01676':
Make atrace test app debuggable
c4b1ec2cc6f2e5ad0768b0d6574b8dd83bd01676 15-Sep-2015 Chris Craik <ccraik@google.com> am 2db47daf: am 116cf165: am f471ec21: am 285cd150: Make atrace test app debuggable

* commit '2db47dafcdc3e9d6dd4061952ff7959ccefb5c07':
Make atrace test app debuggable
285cd150807736976b2b229cceeffd54ad9f2019 15-Sep-2015 Chris Craik <ccraik@google.com> Make atrace test app debuggable

bug:23819673

This enables its traces to be captured on user builds.

Change-Id: Ie56a6cb725e0a6e6d77ae254f0518d5bedd89409
trace/AtraceTestApp/AndroidManifest.xml
a57620d00e19550708e4a43c329e74ea05b14ac4 14-Sep-2015 Daniel Xie <dxie@google.com> am 4b50d86e: am 07e6e76a: am 7c5ce400: am 8e7a52d8: am 018014e6: (-s ours) am 5007744e: am d326b4f4: am b3405de8: (-s ours) Merge "DO NOT MERGE: Fix com.android.cts.monkey.VerbosityTest#testVerbosity seldom fail" into kitkat-cts-dev

* commit '4b50d86e6c054a4a21a7c80a9bcf75fc515e5565':
4b50d86e6c054a4a21a7c80a9bcf75fc515e5565 14-Sep-2015 Daniel Xie <dxie@google.com> am 07e6e76a: am 7c5ce400: am 8e7a52d8: am 018014e6: (-s ours) am 5007744e: am d326b4f4: am b3405de8: (-s ours) Merge "DO NOT MERGE: Fix com.android.cts.monkey.VerbosityTest#testVerbosity seldom fail" into kitkat-cts-dev

* commit '07e6e76acbb1b296b0b459d8b73411c004659282':
07e6e76acbb1b296b0b459d8b73411c004659282 14-Sep-2015 Daniel Xie <dxie@google.com> am 7c5ce400: am 8e7a52d8: am 018014e6: (-s ours) am 5007744e: am d326b4f4: am b3405de8: (-s ours) Merge "DO NOT MERGE: Fix com.android.cts.monkey.VerbosityTest#testVerbosity seldom fail" into kitkat-cts-dev

* commit '7c5ce400a601390114b25478632ebb22f4793866':
367a2d601e2566d5135438b0697a0a177955a985 14-Sep-2015 Kenny Guy <kennyguy@google.com> Enable widget test now whitelist behaviour fixed.

Enable test that checks widgets still available
to applications in a managed profile after being
removed from the cross profile whitelist.

Bug: 21180997
Change-Id: I44ab5fcf0952427f58cc65d7e67c04145732fe57
evicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/CrossProfileWidgetTest.java
e5e8101b4bfc73182923796034df52a293fd591e 12-Sep-2015 Sander Alewijnse <salewijnse@google.com> am 3fefecef: Merge "Add test for checking max users > 1 if managed users feature enabled" into lmp-sprout-dev

* commit '3fefecefadad527d0a10fd0163337aa8a03c8639':
Add test for checking max users > 1 if managed users feature enabled
7ca010c0e0e3edae0de30b51a01ba074a3314c04 11-Sep-2015 Jeff Sharkey <jsharkey@google.com> am 6d1106ca: am 799327bd: am 0261df29: am 93099fd8: am 99c1a72c: Merge "Increase timeout when mounting adopted storage." into mnc-dev

* commit '6d1106ca1e45045e5787f7880be59cccc80a5fd4':
Increase timeout when mounting adopted storage.
6d1106ca1e45045e5787f7880be59cccc80a5fd4 11-Sep-2015 Jeff Sharkey <jsharkey@google.com> am 799327bd: am 0261df29: am 93099fd8: am 99c1a72c: Merge "Increase timeout when mounting adopted storage." into mnc-dev

* commit '799327bd7791513158b861f168f721e6981db1cb':
Increase timeout when mounting adopted storage.
bb20d6e392f817879f80956c29fa24b68d4eeab3 10-Sep-2015 Jeff Sharkey <jsharkey@android.com> Increase timeout when mounting adopted storage.

Bug: 23954204
Change-Id: Ib743b53f20059b53bdad304c814438bebfe821d2
ppsecurity/src/com/android/cts/appsecurity/AdoptableHostTest.java
c1ace057791e336f79e1b879378968252d5164e9 10-Sep-2015 Zoltan Szatmary-Ban <szatmz@google.com> am 79892c8d: Merge "Differentiate device feature checking across Device Policy tests" into lmp-sprout-dev

* commit '79892c8df4958ad33810d59fa7bfd080f1376c2b':
Differentiate device feature checking across Device Policy tests
aa6c86d50ddf8a85d518037bf507080febde3c22 10-Sep-2015 dcashman <dcashman@google.com> am 48f49f3d: Merge "Split SELinux neverallow rules test." into lmp-sprout-dev

* commit '48f49f3d276ba47a84b2e259ade6216832d19469':
Split SELinux neverallow rules test.
e9a6212bb083bcf360442ccea13f353b6b7ae7d1 10-Sep-2015 dcashman <dcashman@google.com> am 056fff4a: Merge "Change SELinuxHostTest to new sepolicy-analyze args." into lmp-sprout-dev

* commit '056fff4a862d0f2dc020b3da16bcae30a535b527':
Change SELinuxHostTest to new sepolicy-analyze args.
6bd212b11ff40e78a112c938087d9fb39d3881d6 10-Sep-2015 Takayuki Hoshi <hoshi@google.com> am b5679b61: Merge "Fix MonkeyApp so it keeps the current screen orientation on TVs" into lmp-sprout-dev

* commit 'b5679b61a290041034d74c4167b0f1518568a92a':
Fix MonkeyApp so it keeps the current screen orientation on TVs
080490efe59d84ba7530d956342a7185063d01e0 10-Sep-2015 dcashman <dcashman@google.com> am 30044c61: Change SELinux neverallow tests to be sepolicy-analyze based.

* commit '30044c619ab3fa1924f8909ed91a3f7c7ad0e896':
Change SELinux neverallow tests to be sepolicy-analyze based.
89b0aa33f75b335ff99ef17fbeed689ae8262721 10-Sep-2015 dcashman <dcashman@google.com> am 13eae907: Fix SELinuxHostTest package structure.

* commit '13eae907470271d41619140c16bc4be62379821f':
Fix SELinuxHostTest package structure.
f47c1f71bdf5086e394ba08a3b71d545f7ef9d3b 10-Sep-2015 Kenny Guy <kennyguy@google.com> am d101eb99: Merge "Tests for LauncherApps" into lmp-sprout-dev

* commit 'd101eb99f187a1a240968892452f546f163e202f':
Tests for LauncherApps
095331ce80eb6562633aad2ef8a08bfca85b8c2a 10-Sep-2015 Chenjie Luo <cjluo@google.com> am 2af4089c: Merge "Update mdpi ldpi reference images for android.host.theme with API level 21" into lmp-sprout-dev

* commit '2af4089c70ac4b2f8c25d77a96f24c6cb34d8de3':
Update mdpi ldpi reference images for android.host.theme with API level 21
2016733b35b9acabf4a2bcfdcb3443ec9d9b8475 10-Sep-2015 Chenjie Luo <cjluo@google.com> am 7123c240: Merge "Optimize assets reading path in sdcard in android.host.theme" into lmp-sprout-dev

* commit '7123c240be751aa68211bd506eabf5949af19ee0':
Optimize assets reading path in sdcard in android.host.theme
5184ef42af06320a679199be4c76fbda655aed99 10-Sep-2015 Takayuki Hoshi <hoshi@google.com> am 9673c600: Merge "Fix testSyncFiles_extStorageVariable and testSyncFiles_normal" into lmp-sprout-dev

* commit '9673c600463ed1e95b48b1de0d97e512379532b0':
Fix testSyncFiles_extStorageVariable and testSyncFiles_normal
6a97540588f237ffa3564d3c9a02457832c0df5c 10-Sep-2015 Alexandra Gherghina <alexgherghina@google.com> am 9bd5998d: Merge "Cts tests for Settings intents" into lmp-sprout-dev

* commit '9bd5998dc65a39af2b8d25eb5b8f7a4e63a565cb':
Cts tests for Settings intents
3ad9608c8c989c7257922457dd2eefbee4b216d5 10-Sep-2015 Rubin Xu <rubinxu@google.com> am 5cd8e6a4: Merge "Remove exception check in testWipeData CTS test" into lmp-sprout-dev

* commit '5cd8e6a430babeb8255e3dfe874c2b6709a0dac3':
Remove exception check in testWipeData CTS test
994846030661d657fd02c1b8e5c6c7bc84c715cb 10-Sep-2015 Nicolas Prevot <nprevot@google.com> am 23e37975: Merge "Fix the lock task cts test." into lmp-sprout-dev

* commit '23e3797564b195403cb8d6e4e29d96e32f659e16':
Fix the lock task cts test.
f23cda45ebb7728c20d8fe0050a4465a8020cb25 08-Sep-2015 John Reck <jreck@google.com> am c3621b5c: am cdc87218: am 430cf963: am 19a846d6: am 58581c3d: Merge "Fix the framestats test to use its own activity" into mnc-dev

* commit 'c3621b5c3571b62002a96d2a83910f0f36cd8970':
Fix the framestats test to use its own activity
c3621b5c3571b62002a96d2a83910f0f36cd8970 08-Sep-2015 John Reck <jreck@google.com> am cdc87218: am 430cf963: am 19a846d6: am 58581c3d: Merge "Fix the framestats test to use its own activity" into mnc-dev

* commit 'cdc87218e5b53687d4721d2b69e88802352c709b':
Fix the framestats test to use its own activity
7a2a96d73c246d976491e294046719186e81ddd8 05-Sep-2015 John Reck <jreck@google.com> Fix the framestats test to use its own activity

Bug: 23776983

Don't assume com.android.systemui is present or has
rendered frames. Instead launch an activity to ensure
there is a package we can query the framestats for

Change-Id: I90c94274d8514959951c61fb539ab3c0150d729f
umpsys/FramestatsTestApp/Android.mk
umpsys/FramestatsTestApp/AndroidManifest.xml
umpsys/FramestatsTestApp/src/com/android/cts/framestatstestapp/FramestatsTestAppActivity.java
umpsys/src/android/dumpsys/cts/DumpsysHostTest.java
c3358522cf050b448ee41b12a177a51949ce19c9 07-Sep-2015 Chris Craik <ccraik@google.com> am 6a265cf1: am 13ed3683: am cad68ba0: am 5973211a: am be10ebbd: Merge "Fix AtraceHostTest to not rely on parsing tgid" into mnc-dev

* commit '6a265cf164f686ae5490a6b683c71e48cff5281b':
Fix AtraceHostTest to not rely on parsing tgid
586c3a44cc516643790ca8bbece60a86d784b49d 07-Sep-2015 Alex Chau <alexchau@google.com> am d640cc63: am b264d2a9: am f758bf38: am 2daea98f: am ca49dee9: Merge "CTS: Create test for DISALLOW_INSTALL_UNKNOWN_SOURCES" into mnc-dev

* commit 'd640cc630e4f2feb124f2b4362f1562e11d07d7b':
CTS: Create test for DISALLOW_INSTALL_UNKNOWN_SOURCES
6a265cf164f686ae5490a6b683c71e48cff5281b 05-Sep-2015 Chris Craik <ccraik@google.com> am 13ed3683: am cad68ba0: am 5973211a: am be10ebbd: Merge "Fix AtraceHostTest to not rely on parsing tgid" into mnc-dev

* commit '13ed36837b9b99a7623fbb2a04f489bdc717956f':
Fix AtraceHostTest to not rely on parsing tgid
e112e8acbee54dd19124205d491999bab9835322 05-Sep-2015 Daniel Xie <dxie@google.com> am ef6f1736: am dc3d3a43: am ac79e25f: Merge "AppSecurityTests: Do not delete in WhiteLists." into kitkat-cts-dev

* commit 'ef6f17368b6973be639ba8bf43ca45853512b129':
AppSecurityTests: Do not delete in WhiteLists.
dc3d3a43f1f28ee5d3f3575b49f5d46f0328a1eb 04-Sep-2015 Daniel Xie <dxie@google.com> am ac79e25f: Merge "AppSecurityTests: Do not delete in WhiteLists." into kitkat-cts-dev

* commit 'ac79e25fc90566f1602743d1e4d486aebc05fc97':
AppSecurityTests: Do not delete in WhiteLists.
764d8f9de16773ef4fec14616b16415f82251eed 04-Sep-2015 Chris Craik <ccraik@google.com> Fix AtraceHostTest to not rely on parsing tgid

bug:23819673

This removes the need for the 'sched' workaround (which wasn't a full
workaround to begin with).

Change-Id: Id059a330f34379b28f7fbad9961805364c3f6440
trace/src/android/atrace/cts/AtraceHostTest.java
d640cc630e4f2feb124f2b4362f1562e11d07d7b 04-Sep-2015 Alex Chau <alexchau@google.com> am b264d2a9: am f758bf38: am 2daea98f: am ca49dee9: Merge "CTS: Create test for DISALLOW_INSTALL_UNKNOWN_SOURCES" into mnc-dev

* commit 'b264d2a99c019257ac9d0409ba989705e7fa1088':
CTS: Create test for DISALLOW_INSTALL_UNKNOWN_SOURCES
d5ca7e98a280e8ebd9964a814c27808afc8a8bdf 04-Sep-2015 Jeff Sharkey <jsharkey@android.com> am 4e9b7b53: Scroll list of documents when offscreen.

* commit '4e9b7b53f7c5166bb49b6c1c7b1bb9dda9d3bbe4':
Scroll list of documents when offscreen.
ea57bc1049906f267880b952221837196fd9d469 04-Sep-2015 Jeff Sharkey <jsharkey@android.com> am e837d827: Scroll to find offscreen Documents roots.

* commit 'e837d82731d7455e6c49e006eb7cbd4ba257773e':
Scroll to find offscreen Documents roots.
247f4b70db14b9c96f562c033107b3e42917ab12 04-Sep-2015 Justin Koh <justinkoh@google.com> am 3d6de021: Merge "Increased a CTS test timeout from 5 sec to 30 sec. This test was already flaky on L phones and tablets, but it almost never passed on Clockwork Coral (L) devices. Now it passes. Bug: 18040863 Bug: 18533405" into lmp-sprout-dev

* commit '3d6de0212fb5e0b3400c918a07760a163cb409d0':
Increased a CTS test timeout from 5 sec to 30 sec. This test was already flaky on L phones and tablets, but it almost never passed on Clockwork Coral (L) devices. Now it passes. Bug: 18040863 Bug: 18533405
46e041da352f10c4a18154359ef45553f8c124fa 04-Sep-2015 Chenjie Luo <cjluo@google.com> am a42b40e5: Merge "Update buttom_pressed reference image" into lmp-sprout-dev

* commit 'a42b40e5a3abb72af3c3395fa6207a2e775bbfd3':
Update buttom_pressed reference image
02cb82b8d9fd85c547c7d2c4eab5cabba0edf817 04-Sep-2015 Youngmin Cho <youngminc@google.com> am 7d28e015: Merge "CTS tests for Dumpsys Batterystats" into lmp-sprout-dev

* commit '7d28e01578b081ba3c761c40183fb283f9f2a571':
CTS tests for Dumpsys Batterystats
8deefb4291236e1906cf011bacde34e6753035d2 04-Sep-2015 Roman Dudko <romandudko@google.com> am b65339b5: Merge "CTS tests for Dumpsys Procstats (this time in lmp-sprout-dev)" into lmp-sprout-dev

* commit 'b65339b5d0b0034205a36f5f9159d9313a224f90':
CTS tests for Dumpsys Procstats (this time in lmp-sprout-dev)
d05409d81599a6508cf0c5656a374c8cd8bc26b9 04-Sep-2015 Nicholas Sauer <nicksauer@google.com> am 2f54c52b: Add "-v" to any logcat commands run from within CTS tests

* commit '2f54c52b949967679ad08a6c42e7c526238ade09':
Add "-v" to any logcat commands run from within CTS tests
8b5df142344dadbf0ad0eb51952d0498eccf2eea 10-Aug-2015 Alex Chau <alexchau@google.com> CTS: Create test for DISALLOW_INSTALL_UNKNOWN_SOURCES

Added a new CTS app - PackageInstaller to test installing apk in a non
device owner package under policy restrictions

Note:
UserRestrictionActivity is copied from ManagedProfileTest

Bug: 18928535
Change-Id: I4fced5b345c4594009203681501ad84079dd3c61
evicepolicy/app/DeviceAndProfileOwner/AndroidManifest.xml
evicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/UserRestrictionActivity.java
evicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/PackageInstallTest.java
evicepolicy/app/PackageInstaller/Android.mk
evicepolicy/app/PackageInstaller/AndroidManifest.xml
evicepolicy/app/PackageInstaller/res/xml/device_admin.xml
evicepolicy/app/PackageInstaller/src/com/android/cts/packageinstaller/BasePackageInstallTest.java
evicepolicy/app/PackageInstaller/src/com/android/cts/packageinstaller/ClearDeviceOwnerTest.java
evicepolicy/app/PackageInstaller/src/com/android/cts/packageinstaller/ManualPackageInstallTest.java
evicepolicy/app/PackageInstaller/src/com/android/cts/packageinstaller/SilentPackageInstallTest.java
evicepolicy/src/com/android/cts/devicepolicy/BaseDevicePolicyTest.java
evicepolicy/src/com/android/cts/devicepolicy/CustomDeviceOwnerTest.java
evicepolicy/src/com/android/cts/devicepolicy/DeviceAndProfileOwnerTest.java
evicepolicy/src/com/android/cts/devicepolicy/DeviceOwnerTest.java
3eb474e894b74e4638bf61088d05f5b00055e398 03-Sep-2015 Rubin Xu <rubinxu@google.com> am 326d4dd6: am 795e4937: am 05374389: am 8044c5ea: am eb4c45df: Merge "Move delegated cert installer to DeviceAndProfileOwner tests" into mnc-dev

* commit '326d4dd62219b3af30ea4db4b7aaa5bdcefe8b21':
Move delegated cert installer to DeviceAndProfileOwner tests
1697e20bde28a7f9529c1de3471963e91cea1b0d 03-Sep-2015 Nicolas Prévot <nprevot@google.com> am 4d44f85b: am 8e803e57: am ec387319: am 06ac0148: am ca22dd4d: Merge "Increase timeout for testOwnerChangedBroadcast." into mnc-dev

* commit '4d44f85b54d20f9dcf061941da34bd5432fe3610':
Increase timeout for testOwnerChangedBroadcast.
5a44fc75d1d534272a1737604f1bf087f9ce9d66 03-Sep-2015 Alex Chau <alexchau@google.com> am dbebe25a: am 0d3d9bfa: am 2c567cd6: am b4768104: am eb005a19: Merge "CTS: Dismiss error dialog after running DeviceAndProfileOwnerTest.testAccountManagement" into mnc-dev

* commit 'dbebe25a21671d82742944022267988ed6cadf95':
CTS: Dismiss error dialog after running DeviceAndProfileOwnerTest.testAccountManagement
326d4dd62219b3af30ea4db4b7aaa5bdcefe8b21 03-Sep-2015 Rubin Xu <rubinxu@google.com> am 795e4937: am 05374389: am 8044c5ea: am eb4c45df: Merge "Move delegated cert installer to DeviceAndProfileOwner tests" into mnc-dev

* commit '795e4937e80473ccd4ea343a18150e54918ddc28':
Move delegated cert installer to DeviceAndProfileOwner tests
4d44f85b54d20f9dcf061941da34bd5432fe3610 03-Sep-2015 Nicolas Prévot <nprevot@google.com> am 8e803e57: am ec387319: am 06ac0148: am ca22dd4d: Merge "Increase timeout for testOwnerChangedBroadcast." into mnc-dev

* commit '8e803e5705fb2e30d9b93644d6c59e0aeac737ca':
Increase timeout for testOwnerChangedBroadcast.
eb4c45df3c7008ec7d52838a80e8651f27c775f5 03-Sep-2015 Rubin Xu <rubinxu@google.com> Merge "Move delegated cert installer to DeviceAndProfileOwner tests" into mnc-dev
ca22dd4ded4b04f1eed558a8c8e45987cc5e92ee 03-Sep-2015 Nicolas Prévot <nprevot@google.com> Merge "Increase timeout for testOwnerChangedBroadcast." into mnc-dev
dbebe25a21671d82742944022267988ed6cadf95 03-Sep-2015 Alex Chau <alexchau@google.com> am 0d3d9bfa: am 2c567cd6: am b4768104: am eb005a19: Merge "CTS: Dismiss error dialog after running DeviceAndProfileOwnerTest.testAccountManagement" into mnc-dev

* commit '0d3d9bface35dc48d396511683be707fecb3ee8e':
CTS: Dismiss error dialog after running DeviceAndProfileOwnerTest.testAccountManagement
eb005a196214fea91934ceb25a037d012cf6942c 03-Sep-2015 Alex Chau <alexchau@google.com> Merge "CTS: Dismiss error dialog after running DeviceAndProfileOwnerTest.testAccountManagement" into mnc-dev
ff15fe978799fa9e23ba4f31a73f2ba84899bab6 29-Aug-2015 Stuart Scott <stuartscott@google.com> Compatibility build rule rather than library

bug:21762834
Change-Id: I81a07d545cd7d34ede9127cacdeab975d6585c4e
ample/Android.mk
4655e5b3f7ce35df180e4717aefcc539ff5e8aca 28-Aug-2015 Chris Craik <ccraik@google.com> am a86f9ad5: am 9d784345: am 5dac9673: am 439e37bf: am 17d6c43b: Merge "Add sched tracing to atrace test" into mnc-dev

* commit 'a86f9ad52611a23dac319fd116a09495db57e771':
Add sched tracing to atrace test
a86f9ad52611a23dac319fd116a09495db57e771 28-Aug-2015 Chris Craik <ccraik@google.com> am 9d784345: am 5dac9673: am 439e37bf: am 17d6c43b: Merge "Add sched tracing to atrace test" into mnc-dev

* commit '9d7843457a0f3d17005296b8a8e150e00d528770':
Add sched tracing to atrace test
17d6c43b9962abd7359434b2284be2df406576eb 28-Aug-2015 Chris Craik <ccraik@google.com> Merge "Add sched tracing to atrace test" into mnc-dev
acd7aadeecf2f19eadc3fd1cda37f0f903a33682 28-Aug-2015 Alan Viverette <alanv@google.com> am 3a9e43e0: am d6d7e4f5: am ebe96344: am 156aa407: am 76082b7a: Merge "Theme tests for Material" into mnc-dev

* commit '3a9e43e0b148a86d3fff6fa072acd51f57e3140f':
Theme tests for Material
3a9e43e0b148a86d3fff6fa072acd51f57e3140f 28-Aug-2015 Alan Viverette <alanv@google.com> am d6d7e4f5: am ebe96344: am 156aa407: am 76082b7a: Merge "Theme tests for Material" into mnc-dev

* commit 'd6d7e4f525b6e69f55c33fae0b09c5f5aae38619':
Theme tests for Material
76082b7a971c59eaf05695da5e81ad4b44931510 28-Aug-2015 Alan Viverette <alanv@google.com> Merge "Theme tests for Material" into mnc-dev
6edcf4adeedaf777c018c5d79426541a74fa0d1d 27-Aug-2015 Bart Sears <bsears@google.com> am ddb1fc05: am ea51b872: am c9daef16: am 4572244d: am b08f69d6: Merge "CTS test for runtime permission grants" into mnc-dev

* commit 'ddb1fc0505ee00a1e1584c0a69d58be13eb3036d':
CTS test for runtime permission grants
ddb1fc0505ee00a1e1584c0a69d58be13eb3036d 27-Aug-2015 Bart Sears <bsears@google.com> am ea51b872: am c9daef16: am 4572244d: am b08f69d6: Merge "CTS test for runtime permission grants" into mnc-dev

* commit 'ea51b872d010268f6efe432ca6dfa1954338d665':
CTS test for runtime permission grants
f4cfaedbc9f764b78dd3394e529d8438a05e692d 27-Aug-2015 Bart Sears <bsears@google.com> am b08f69d6: Merge "CTS test for runtime permission grants" into mnc-dev

* commit 'b08f69d66e75e14842bdcbdede68bff3bdd908b0':
CTS test for runtime permission grants
ce117e9aad5231539962fa5322aa97c585a14fa4 26-Aug-2015 Chris Tate <ctate@android.com> am fb80c922: am 601353b0: am dba04a86: am 9b564f90: am 80253811: Merge "Add CTS test for verifying runtime permission grant scope" into mnc-dev

* commit 'fb80c922834652131b9bb34c3785e96155c3dc05':
Add CTS test for verifying runtime permission grant scope
c15ea9f9eedc62d1c92511409b53e57f1691e249 26-Aug-2015 Alan Viverette <alanv@google.com> Theme tests for Material

Bug: 21488226
Change-Id: Ie22b8618a2824029641dd18a7f362b09fe68f800
heme/Android.mk
heme/README
heme/android_device.py
heme/app/Android.mk
heme/app/AndroidManifest.xml
heme/app/res/layout/holo_test.xml
heme/app/res/layout/theme_test.xml
heme/app/res/values/strings.xml
heme/app/src/android/theme/app/DisplayInfoActivity.java
heme/app/src/android/theme/app/GenerateBitmapTask.java
heme/app/src/android/theme/app/GenerateImagesActivity.java
heme/app/src/android/theme/app/HoloDeviceActivity.java
heme/app/src/android/theme/app/ReferenceImagesTest.java
heme/app/src/android/theme/app/ThemeDeviceActivity.java
heme/app/src/android/theme/app/ThemeTestUtils.java
heme/assets/23/400dpi.zip
heme/assets/23/560dpi.zip
heme/assets/23/hdpi.zip
heme/assets/23/ldpi.zip
heme/assets/23/mdpi.zip
heme/assets/23/tvdpi.zip
heme/assets/23/xhdpi.zip
heme/assets/23/xxhdpi.zip
heme/generate_images.sh
heme/run_theme_capture_device.py
heme/src/android/theme/cts/ComparisonTask.java
heme/src/android/theme/cts/ThemeHostTest.java
fb80c922834652131b9bb34c3785e96155c3dc05 26-Aug-2015 Chris Tate <ctate@android.com> am 601353b0: am dba04a86: am 9b564f90: am 80253811: Merge "Add CTS test for verifying runtime permission grant scope" into mnc-dev

* commit '601353b0738a9a3eba773d5c3f2eeb035fe70de3':
Add CTS test for verifying runtime permission grant scope
c45503e3af2a49584cffdfb3dec0731953136538 26-Aug-2015 Christopher Tate <ctate@google.com> CTS test for runtime permission grants

Add a test to verify that when an app has <uses-permission> declarations
for multiple permissions within the same conceptual group, and then a runtime
request is issued (and accepted) naming just one of those permissions, the
other manifest-requested permission within the same group is also granted.

Bug 23525514

Change-Id: I3927979751e0650595268ee8a0de86212f5574ca
ppsecurity/src/com/android/cts/appsecurity/PermissionsHostTest.java
ppsecurity/test-apps/UsePermissionApp/AndroidManifest.xml
ppsecurity/test-apps/UsePermissionApp/src/com/android/cts/usepermission/UsePermissionTest.java
42c2b635c09c2c1601665c9acf94c13c63548fee 26-Aug-2015 Chris Tate <ctate@android.com> am 80253811: Merge "Add CTS test for verifying runtime permission grant scope" into mnc-dev

* commit '802538118c48d01b16fc7a8ea841c505de8e7655':
Add CTS test for verifying runtime permission grant scope
5c6ca05ed96fc839f4b7f8196bbf3565281911c4 26-Aug-2015 Christopher Tate <ctate@google.com> Add CTS test for verifying runtime permission grant scope

Specifically: we now verify that when an app <uses-permission> a
single permission from within a group, and that request is granted,
the app does not also wind up with other permissions defined within
that group.

Bug 23525514

Change-Id: I73e53d5c8a9ba20441b3ceda9494da27015ef6fc
ppsecurity/src/com/android/cts/appsecurity/PermissionsHostTest.java
ppsecurity/test-apps/UsePermissionApp/AndroidManifest.xml
ppsecurity/test-apps/UsePermissionApp/src/com/android/cts/usepermission/UsePermissionTest.java
151a3c42cd329895662de2fc3703465ce45703d4 26-Aug-2015 Sebastien Hertz <shertz@google.com> am 4e4764df: am cd96c6e8: am d6fbf416: am 3f733482: CTS: check non-zygote apps are not debuggable

* commit '4e4764df27f57a9ab81c3c66283c42e3988158d3':
CTS: check non-zygote apps are not debuggable
4e4764df27f57a9ab81c3c66283c42e3988158d3 25-Aug-2015 Sebastien Hertz <shertz@google.com> am cd96c6e8: am d6fbf416: am 3f733482: CTS: check non-zygote apps are not debuggable

* commit 'cd96c6e8719c42151307baba9ca183fd14e55f5d':
CTS: check non-zygote apps are not debuggable
cd96c6e8719c42151307baba9ca183fd14e55f5d 25-Aug-2015 Sebastien Hertz <shertz@google.com> am d6fbf416: am 3f733482: CTS: check non-zygote apps are not debuggable

* commit 'd6fbf416d3df373edfa3247ee88791b63d35eeaa':
CTS: check non-zygote apps are not debuggable
55a9be0cd1d8cc6cca7e7903594b1a931df5c67d 25-Aug-2015 Alex Chau <alexchau@google.com> CTS: Dismiss error dialog after running DeviceAndProfileOwnerTest.testAccountManagement

Send a home intent to dismiss the dialog.

Bug: 23514846
Change-Id: Icb86634baffbb93203ae2d18a4a6565d0902c856
evicepolicy/src/com/android/cts/devicepolicy/DeviceAndProfileOwnerTest.java
1c2f5200305715ae479d8f0be953b35abfe03e79 20-Aug-2015 Nicolas Prevot <nprevot@google.com> Increase timeout for testOwnerChangedBroadcast.

This test relies on background broadcast intents,
which can have long delays.

BUG:23408079
Change-Id: I7b40d80ed56097b4da9385aec5b97a8f96dd3643
evicepolicy/app/IntentReceiver/src/com/android/cts/intent/receiver/OwnerChangedBroadcastTest.java
1dc225cd46ef6c10177ad7bc3bf9651c2f441bc6 25-Aug-2015 Sebastien Hertz <shertz@google.com> am 16640ea9: am f872d428: CTS: check non-zygote apps are not debuggable DO NOT MERGE

* commit '16640ea9664164f3a45cea9a11492c654292d0cf':
CTS: check non-zygote apps are not debuggable DO NOT MERGE
d6fbf416d3df373edfa3247ee88791b63d35eeaa 25-Aug-2015 Sebastien Hertz <shertz@google.com> am 3f733482: CTS: check non-zygote apps are not debuggable

* commit '3f7334822ba4cc53f81f22f3519093bf4e1d7f89':
CTS: check non-zygote apps are not debuggable
1c328b0f394bb6209a1b35169630d22c55c9632b 22-Aug-2015 Adam Lesinski <adamlesinski@google.com> am 96cadcc2: am b62ea778: am 9d39f4b2: am d05279cd: am 1a6c797e: Merge "Fix cts test in DumpsysHostTest#testBatteryStatsOutput" into mnc-dev

* commit '96cadcc223de5b3fcfb6bfd2230f686f1512e5b7':
Fix cts test in DumpsysHostTest#testBatteryStatsOutput
96cadcc223de5b3fcfb6bfd2230f686f1512e5b7 22-Aug-2015 Adam Lesinski <adamlesinski@google.com> am b62ea778: am 9d39f4b2: am d05279cd: am 1a6c797e: Merge "Fix cts test in DumpsysHostTest#testBatteryStatsOutput" into mnc-dev

* commit 'b62ea778f60956398f93dffd80011a1e554babde':
Fix cts test in DumpsysHostTest#testBatteryStatsOutput
95244e5dfd4b3ca096565ccfbe9b9483c97449c8 21-Aug-2015 Adam Lesinski <adamlesinski@google.com> am 1a6c797e: Merge "Fix cts test in DumpsysHostTest#testBatteryStatsOutput" into mnc-dev

* commit '1a6c797ee032832dc8993154d5ac81ef9dee75db':
Fix cts test in DumpsysHostTest#testBatteryStatsOutput
1a6c797ee032832dc8993154d5ac81ef9dee75db 21-Aug-2015 Adam Lesinski <adamlesinski@google.com> Merge "Fix cts test in DumpsysHostTest#testBatteryStatsOutput" into mnc-dev
f8428fd3277c155e98f3ccdaa6b15a7d07604b67 21-Aug-2015 Benjamin Franz <bfranz@google.com> am 93404641: am 02a5f399: am 9b3b125c: am eae5f42a: am a5e7d9b6: Merge "Add CTS tests for cross profile widgets" into mnc-dev

* commit '9340464107a813d9c8e5926b9d5b6ae8a71df629':
Add CTS tests for cross profile widgets
9340464107a813d9c8e5926b9d5b6ae8a71df629 21-Aug-2015 Benjamin Franz <bfranz@google.com> am 02a5f399: am 9b3b125c: am eae5f42a: am a5e7d9b6: Merge "Add CTS tests for cross profile widgets" into mnc-dev

* commit '02a5f39966a4522bd3af0c50d1facb42ee62528d':
Add CTS tests for cross profile widgets
3bf01afcff7aa8e0c6502bb1aaccb39c76bd1305 21-Aug-2015 Benjamin Franz <bfranz@google.com> am a5e7d9b6: Merge "Add CTS tests for cross profile widgets" into mnc-dev

* commit 'a5e7d9b6f77f306dfe9585ff69ab4234e0667463':
Add CTS tests for cross profile widgets
a5e7d9b6f77f306dfe9585ff69ab4234e0667463 21-Aug-2015 Benjamin Franz <bfranz@google.com> Merge "Add CTS tests for cross profile widgets" into mnc-dev
1dcb7b9b0af5fd3d772b5c68380032ed1e87ee2e 20-Aug-2015 Sungsoo Lim <sungsoo@google.com> (DO NOT MERGE) Disable two tests for TV that fail on TV

Bug: 22560640
Change-Id: Id54744b6adac840a9c89f349f176f2e07eec8fdc
evicepolicy/src/com/android/cts/devicepolicy/LauncherAppsSingleUserTest.java
9c97553988b37201bd2e560e33e4588ab4edcae1 21-Aug-2015 Adam Lesinski <adamlesinski@google.com> Fix cts test in DumpsysHostTest#testBatteryStatsOutput

The output in BatteryStats is comma separated. Some of the values
can be the empty string. When testing for the number of entries,
We call String.split(str) and count the length of the resulting array.
Unfortunately, when an empty string is the last value in the comma
separated list, it is dropped.

Using String.split(str, -1) retains the trailing empty string.

Bug:22807424
Change-Id: I666f27614122bc962351e4fca681d838fd656df8
umpsys/src/android/dumpsys/cts/DumpsysHostTest.java
785dd11b446ed22370e5eaa31ad7ac4011b382a6 18-Aug-2015 Henry Jian <hzjian@google.com> Dynamic cts phase 2, device/host side

Change-Id: I3fcea82a41788877692465e67d8b9923cd8bf4b1
ample/AndroidTest.xml
ample/DynamicConfig.xml
ample/src/android/sample/cts/SampleHostTest.java
f872d42837c64d82260e40f64be592ee9a233a95 11-Aug-2015 Sebastien Hertz <shertz@google.com> CTS: check non-zygote apps are not debuggable DO NOT MERGE

Adds an hostside-like CTS test running a Java app (jar file) from
app_process, without forking from zygote, and checks it is not
debuggable (having no JDWP connection) using 'adb jdwp' command.

Bug: 23050463

(cherry picked from commit e37f4b4f078394e183547a8a913fd12e69c08cd7)

Change-Id: Ic4c71db200df2aad82273407f3d34ae1df9ae4ac
dwpsecurity/Android.mk
dwpsecurity/app/Android.mk
dwpsecurity/app/src/com/android/cts/jdwpsecurity/JdwpTest.java
dwpsecurity/src/android/jdwpsecurity/cts/JdwpSecurityHostTest.java
c944a87836179e2879139a2d866452a1272a1c0f 18-Aug-2015 Rubin Xu <rubinxu@google.com> Move delegated cert installer to DeviceAndProfileOwner tests

Bug: 22709411
Change-Id: I99406dafb5490b261c74ced64aa5c68bfdc9d1c0
evicepolicy/app/DeviceAndProfileOwner/AndroidManifest.xml
evicepolicy/app/DeviceAndProfileOwner/res/xml/primary_device_admin.xml
evicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/DelegatedCertInstallerTest.java
evicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/PrimaryUserAdminHelper.java
evicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/PrimaryUserDeviceAdmin.java
evicepolicy/app/ManagedProfile/res/xml/primary_device_admin.xml
evicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/DelegatedCertInstallerTest.java
evicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/PrimaryUserAdminHelper.java
evicepolicy/src/com/android/cts/devicepolicy/DeviceAndProfileOwnerTest.java
evicepolicy/src/com/android/cts/devicepolicy/ManagedProfileTest.java
3f7334822ba4cc53f81f22f3519093bf4e1d7f89 11-Aug-2015 Sebastien Hertz <shertz@google.com> CTS: check non-zygote apps are not debuggable

Adds an hostside-like CTS test running a Java app (jar file) from
app_process, without forking from zygote, and checks it is not
debuggable (having no JDWP connection) using 'adb jdwp' command.

Bug: 23050463

(cherry picked from commit e37f4b4f078394e183547a8a913fd12e69c08cd7)

Change-Id: I5300ccff6ad3c202289f7dad0aa8789f69124c23
dwpsecurity/Android.mk
dwpsecurity/app/Android.mk
dwpsecurity/app/src/com/android/cts/jdwpsecurity/JdwpTest.java
dwpsecurity/src/android/jdwpsecurity/cts/JdwpSecurityHostTest.java
d0dba0960e134b75de29888a6058dd13bbe0e4c8 19-Aug-2015 Chris Craik <ccraik@google.com> am 5629066e: am f62832c3: am c38d287b: am 6018ca0f: am dd21f260: Merge "Support multiple variants of ftrace format" into mnc-dev

* commit '5629066e41009d74c6b2b9bae3477e9a2f2a8fd0':
Support multiple variants of ftrace format
f690d42e7c6961d532a6b2d945b70e381290b98e 19-Aug-2015 Adam Lesinski <adamlesinski@google.com> am 7ee55ed2: am 170d2467: am 28569783: am f91f3018: am 068bd34f: Merge "Fix AppIdleHostTest" into mnc-dev

* commit '7ee55ed2f05d2ac6b000d8e0a5b96146cbe240b1':
Fix AppIdleHostTest
5629066e41009d74c6b2b9bae3477e9a2f2a8fd0 19-Aug-2015 Chris Craik <ccraik@google.com> am f62832c3: am c38d287b: am 6018ca0f: am dd21f260: Merge "Support multiple variants of ftrace format" into mnc-dev

* commit 'f62832c367c35074538f5830ba94600d4f2f4412':
Support multiple variants of ftrace format
7ee55ed2f05d2ac6b000d8e0a5b96146cbe240b1 19-Aug-2015 Adam Lesinski <adamlesinski@google.com> am 170d2467: am 28569783: am f91f3018: am 068bd34f: Merge "Fix AppIdleHostTest" into mnc-dev

* commit '170d2467fcf5913d95dfefbfbbc15303528a2551':
Fix AppIdleHostTest
1f39f48db74e4ef7d5b95efa32eafec09c69fa28 19-Aug-2015 Chris Craik <ccraik@google.com> am dd21f260: Merge "Support multiple variants of ftrace format" into mnc-dev

* commit 'dd21f260347b3f6850157e2de2d3466ddc12ae64':
Support multiple variants of ftrace format
625780ee3dce0315b66c7d798227d43228689a75 19-Aug-2015 Adam Lesinski <adamlesinski@google.com> am 068bd34f: Merge "Fix AppIdleHostTest" into mnc-dev

* commit '068bd34f02939f9d839ef78f1f679929821c22df':
Fix AppIdleHostTest
dd21f260347b3f6850157e2de2d3466ddc12ae64 19-Aug-2015 Chris Craik <ccraik@google.com> Merge "Support multiple variants of ftrace format" into mnc-dev
068bd34f02939f9d839ef78f1f679929821c22df 18-Aug-2015 Adam Lesinski <adamlesinski@google.com> Merge "Fix AppIdleHostTest" into mnc-dev
05488bbb1e3bbe71b9df5d50f7097226274eec07 11-Aug-2015 Benjamin Franz <bfranz@google.com> Add CTS tests for cross profile widgets

Bug: 17602012
Change-Id: I22d00919cec305d587e18e2e67c38e5780dd220b
evicepolicy/app/ManagedProfile/AndroidManifest.xml
evicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/CrossProfileWidgetPrimaryUserTest.java
evicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/CrossProfileWidgetTest.java
evicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/SetPolicyActivity.java
evicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/UserRestrictionActivity.java
evicepolicy/app/WidgetProvider/Android.mk
evicepolicy/app/WidgetProvider/AndroidManifest.xml
evicepolicy/app/WidgetProvider/res/layout/simple_widget.xml
evicepolicy/app/WidgetProvider/res/xml/simple_widget_provider_info.xml
evicepolicy/app/WidgetProvider/src/com/android/cts/widgetprovider/SimpleAppWidgetHostService.java
evicepolicy/app/WidgetProvider/src/com/android/cts/widgetprovider/SimpleWidgetProvider.java
evicepolicy/src/com/android/cts/devicepolicy/BaseDevicePolicyTest.java
evicepolicy/src/com/android/cts/devicepolicy/ManagedProfileTest.java
5f1abc68e9ca3076fdf003317f2c61e3241c7595 18-Aug-2015 Benjamin Franz <bfranz@google.com> am 0d27ec71: am b65e480c: am 8b4ab04d: am 052918f1: am a60d59bb: Merge "Add test that device owner cannot be set when account present" into mnc-dev

* commit '0d27ec714e8025f6b3bf00005e3f5957d8915f89':
Add test that device owner cannot be set when account present
0d27ec714e8025f6b3bf00005e3f5957d8915f89 18-Aug-2015 Benjamin Franz <bfranz@google.com> am b65e480c: am 8b4ab04d: am 052918f1: am a60d59bb: Merge "Add test that device owner cannot be set when account present" into mnc-dev

* commit 'b65e480cc680ef4819a8690e2a3357785997d721':
Add test that device owner cannot be set when account present
bdcc0887eb460625ac81d6c7809def9de584adac 18-Aug-2015 Benjamin Franz <bfranz@google.com> am a60d59bb: Merge "Add test that device owner cannot be set when account present" into mnc-dev

* commit 'a60d59bb635710fa57b4c405183d44df530d5557':
Add test that device owner cannot be set when account present
a60d59bb635710fa57b4c405183d44df530d5557 18-Aug-2015 Benjamin Franz <bfranz@google.com> Merge "Add test that device owner cannot be set when account present" into mnc-dev
6b16fd887df6e1c0a05c66b01a8abee8fed905ba 18-Aug-2015 Sebastien Hertz <shertz@google.com> am ae4f167a: am 8b761d51: am be9083a8: am 1c6764d9: am efaf2185: Merge "CTS: check non-zygote apps are not debuggable" into mnc-dev

* commit 'ae4f167a2f567b0dce52069adb006f9946aa8f02':
CTS: check non-zygote apps are not debuggable
ae4f167a2f567b0dce52069adb006f9946aa8f02 18-Aug-2015 Sebastien Hertz <shertz@google.com> am 8b761d51: am be9083a8: am 1c6764d9: am efaf2185: Merge "CTS: check non-zygote apps are not debuggable" into mnc-dev

* commit '8b761d5114ffe35de4b8dbcf3c95a9ced613a561':
CTS: check non-zygote apps are not debuggable
3749e9f09a87a48d15fe9783e8c8e6d3bd8f967d 18-Aug-2015 Sebastien Hertz <shertz@google.com> am efaf2185: Merge "CTS: check non-zygote apps are not debuggable" into mnc-dev

* commit 'efaf2185965d709750f78469a2c17823a187b1ad':
CTS: check non-zygote apps are not debuggable
efaf2185965d709750f78469a2c17823a187b1ad 18-Aug-2015 Sebastien Hertz <shertz@google.com> Merge "CTS: check non-zygote apps are not debuggable" into mnc-dev
1366c4516eee706180fe8846d1c073a8eca6eec7 18-Aug-2015 Chris Tate <ctate@android.com> am 91a8260d: am 8f5c211e: am 281fb4c6: am bb70577d: am c732da9f: Merge "Add CTS test for startActivity vs exported" into mnc-dev

* commit '91a8260d266e7e493e018f0d025e2879143f0724':
Add CTS test for startActivity vs exported
91a8260d266e7e493e018f0d025e2879143f0724 18-Aug-2015 Chris Tate <ctate@android.com> am 8f5c211e: am 281fb4c6: am bb70577d: am c732da9f: Merge "Add CTS test for startActivity vs exported" into mnc-dev

* commit '8f5c211eaf3b2371982fcbe25e22df01b112b6e4':
Add CTS test for startActivity vs exported
a31eea070280babb049302b5a6d1c17bc8307803 18-Aug-2015 Chris Tate <ctate@android.com> am c732da9f: Merge "Add CTS test for startActivity vs exported" into mnc-dev

* commit 'c732da9fd789aaa36d50ecd3506eb9ef599c9d0f':
Add CTS test for startActivity vs exported
08a4a4925e01ae94aed94fca0f12d23838f8ba35 18-Aug-2015 Chris Craik <ccraik@google.com> Support multiple variants of ftrace format

bug:23241102

Also updates expected list of trace strings

Change-Id: Ibafa7be87e42ce418a5e1c128aa2e5804eada7d5
trace/src/android/atrace/cts/AtraceHostTest.java
eacd4fdae800bc29176ba895c6d2112192b5540a 18-Aug-2015 Christopher Tate <ctate@google.com> Add CTS test for startActivity vs exported

Specifically, require that if startActivity() is called for an activity
component that is not exported, a permission denial is thrown.

The new hostsidetests/os umbrella is intended, going forward, as a place
to put other core OS test content that requires being driven from the
host side.

Bug 23223804

Change-Id: I498a08deb66f8bdb55bc1b19e5cc3f93a0cfb494
s/Android.mk
s/AndroidTest.xml
s/app/Android.mk
s/app/AndroidManifest.xml
s/app/src/com/android/cts/app/os/test/TestNonExported.java
s/src/com/android/cts/app/os/OsHostTests.java
153aa745f2659685dfb74ed559cb4af8eeea736e 17-Aug-2015 Stuart Scott <stuartscott@google.com> Merge "Revert "Revert "Move compatibility build info into build attributes."""
08e1d86a1a28344fb66c9275bf9e7aae13976852 12-Aug-2015 Benjamin Franz <bfranz@google.com> Add test that device owner cannot be set when account present

Bug: 20412568
Change-Id: I52fc6f81f7534bf5538e95e1415fa09a7e7a9f5c
evicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/AccountManagementTest.java
evicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/AccountUtilsTest.java
evicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/ClearDeviceOwnerTest.java
evicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/MockAccountAuthenticator.java
evicepolicy/src/com/android/cts/devicepolicy/CustomDeviceOwnerTest.java
evicepolicy/src/com/android/cts/devicepolicy/ManagedProfileTest.java
6cbd55d1b3a7fcb8b61ffee0dd735c6a96a81609 15-Aug-2015 Adam Lesinski <adamlesinski@google.com> Fix AppIdleHostTest

- Add CtsDeviceAppUsageTestApp to test case list
- Due to complexity of conditions required to actually
be inactive, test that an app IS active after launching
it. This is more important anyways, as there would be
a negative impact if apps were wrongly put into idle
mode.

Bug:23016850
Change-Id: I8cd7fae7da477fe33f96cc75353ca63ad8680488
sage/Android.mk
sage/src/com/android/cts/app/usage/AppIdleHostTest.java
ed8de38101affea16c903c1dfb0ef54391d3c525 14-Aug-2015 Jeff Sharkey <jsharkey@google.com> am 15d87448: am 33a83abe: am 52ece62c: am 7f0aa998: am 587b4a48: Merge "Wait for newly formatted volume to be mounted." into mnc-dev

* commit '15d87448a7418d2c2415870889206d6840cb2cc1':
Wait for newly formatted volume to be mounted.
1b7df09cf1b745a3710e6f0541bfe80565a1a4e4 14-Aug-2015 Rob Carr <racarr@google.com> am d49e50b5: am 32fff9c9: am e9d1cd7b: am 9ce5c33e: am f03056dd: Merge "Add support for DisplayMetrics.DENSITY_420 to tests" into mnc-dev

* commit 'd49e50b50eda36b7c13e88fce20bbc2cf657ff67':
Add support for DisplayMetrics.DENSITY_420 to tests
15d87448a7418d2c2415870889206d6840cb2cc1 14-Aug-2015 Jeff Sharkey <jsharkey@google.com> am 33a83abe: am 52ece62c: am 7f0aa998: am 587b4a48: Merge "Wait for newly formatted volume to be mounted." into mnc-dev

* commit '33a83abeba969f2b7e1a476a9643b1b2727ebb00':
Wait for newly formatted volume to be mounted.
cde780c13031e610c9e740467d82eea537075f2b 14-Aug-2015 Jeff Sharkey <jsharkey@google.com> am 587b4a48: Merge "Wait for newly formatted volume to be mounted." into mnc-dev

* commit '587b4a48abbffa4edf835eff343d8c1aa5b34305':
Wait for newly formatted volume to be mounted.
587b4a48abbffa4edf835eff343d8c1aa5b34305 14-Aug-2015 Jeff Sharkey <jsharkey@google.com> Merge "Wait for newly formatted volume to be mounted." into mnc-dev
40e9d233a6be945d5d99e4f6f1b38d9b77f2807e 14-Aug-2015 Jeff Sharkey <jsharkey@android.com> Wait for newly formatted volume to be mounted.

Partitioning only blocks until the format is finished, so give more
breathing room for the system to mount the newly formatted volume.

Bug: 23215495
Change-Id: Icadf754eb2efd94ea032983379d016e3b6535129
ppsecurity/src/com/android/cts/appsecurity/AdoptableHostTest.java
d49e50b50eda36b7c13e88fce20bbc2cf657ff67 14-Aug-2015 Rob Carr <racarr@google.com> am 32fff9c9: am e9d1cd7b: am 9ce5c33e: am f03056dd: Merge "Add support for DisplayMetrics.DENSITY_420 to tests" into mnc-dev

* commit '32fff9c9f3983123e13c6aea4bbc347fac2a2882':
Add support for DisplayMetrics.DENSITY_420 to tests
3a078a612b58642adca6fef1762ce4c6a67b752a 14-Aug-2015 Rob Carr <racarr@google.com> am f03056dd: Merge "Add support for DisplayMetrics.DENSITY_420 to tests" into mnc-dev

* commit 'f03056dd979aefa90ef443deb75730ed99ff60b8':
Add support for DisplayMetrics.DENSITY_420 to tests
f03056dd979aefa90ef443deb75730ed99ff60b8 14-Aug-2015 Rob Carr <racarr@google.com> Merge "Add support for DisplayMetrics.DENSITY_420 to tests" into mnc-dev
4696492299f271430a2d6ba3ae8c12072bdca75f 14-Aug-2015 Kenny Guy <kennyguy@google.com> am 7cf396bf: am 7bfbad9a: am 49462953: am 947f45d8: am 52e6c06e: am 326a5d6c: am f9511521: am d9a99a62: am de234ef4: Merge "Make LauncherApps tests less flakey." into lollipop-cts-dev automerge: 43a1744

* commit '7cf396bf78a306b15486473d105d995ecfebeee3':
Make LauncherApps tests less flakey.
7cf396bf78a306b15486473d105d995ecfebeee3 14-Aug-2015 Kenny Guy <kennyguy@google.com> am 7bfbad9a: am 49462953: am 947f45d8: am 52e6c06e: am 326a5d6c: am f9511521: am d9a99a62: am de234ef4: Merge "Make LauncherApps tests less flakey." into lollipop-cts-dev automerge: 43a1744

* commit '7bfbad9af396b6c5bc71f9bc65dabd1a721cf10b':
Make LauncherApps tests less flakey.
54dc5f59eafdad6733650d53590acbb752ad2c8a 14-Aug-2015 Kenny Guy <kennyguy@google.com> am 52e6c06e: am 326a5d6c: am f9511521: am d9a99a62: am de234ef4: Merge "Make LauncherApps tests less flakey." into lollipop-cts-dev automerge: 43a1744

* commit '52e6c06e6218929dce16a60bc943a675eba22fe8':
Make LauncherApps tests less flakey.
52e6c06e6218929dce16a60bc943a675eba22fe8 14-Aug-2015 Kenny Guy <kennyguy@google.com> am 326a5d6c: am f9511521: am d9a99a62: am de234ef4: Merge "Make LauncherApps tests less flakey." into lollipop-cts-dev automerge: 43a1744

* commit '326a5d6cb189cb89df348527aec971034076483a':
Make LauncherApps tests less flakey.
326a5d6cb189cb89df348527aec971034076483a 14-Aug-2015 Kenny Guy <kennyguy@google.com> am f9511521: am d9a99a62: am de234ef4: Merge "Make LauncherApps tests less flakey." into lollipop-cts-dev automerge: 43a1744

* commit 'f9511521d04caaddca7b61373462f4a84fd2a90b':
Make LauncherApps tests less flakey.
f9511521d04caaddca7b61373462f4a84fd2a90b 14-Aug-2015 Kenny Guy <kennyguy@google.com> am d9a99a62: am de234ef4: Merge "Make LauncherApps tests less flakey." into lollipop-cts-dev automerge: 43a1744

* commit 'd9a99a624684336e46b20dc19515e4ecdcbd60f4':
Make LauncherApps tests less flakey.
de234ef4418ff7789a2d08c8886cf5f3098e7268 14-Aug-2015 Kenny Guy <kennyguy@google.com> Merge "Make LauncherApps tests less flakey." into lollipop-cts-dev
automerge: 43a1744

* commit '43a174421c9e4ebfaa3e2ef9fba1a413584a1405':
Make LauncherApps tests less flakey.
108b49874322c5414831612c46e283207925a753 13-Aug-2015 Robert Carr <racarr@google.com> Add support for DisplayMetrics.DENSITY_420 to tests

Bug: 23159806

Change-Id: Ie2acc2fc59d9f2ea79ad230bdf98a0f2f5a830d5
heme/app/src/android/theme/app/DisplayInfoActivity.java
e37f4b4f078394e183547a8a913fd12e69c08cd7 11-Aug-2015 Sebastien Hertz <shertz@google.com> CTS: check non-zygote apps are not debuggable

Adds an hostside-like CTS test running a Java app (jar file) from
app_process, without forking from zygote, and checks it is not
debuggable (having no JDWP connection) using 'adb jdwp' command.

Bug: 23050463
Change-Id: I8175ca467457502bd9f42c0426c082bf01735c11
dwpsecurity/Android.mk
dwpsecurity/app/Android.mk
dwpsecurity/app/src/com/android/cts/jdwpsecurity/JdwpTest.java
dwpsecurity/src/android/jdwpsecurity/cts/JdwpSecurityHostTest.java
0ce632b8a1c66dc41690aec328f086eeda429768 13-Aug-2015 Stuart Scott <stuartscott@google.com> Revert "Revert "Move compatibility build info into build attributes.""

This reverts commit 1c28c69c33fd2e8b84b22b240ca96c1df105e2fd.

Change-Id: Id807f5fdcf2542f25d710326c3fef936ed3b65b7
ample/src/android/sample/cts/SampleHostResultTest.java
54f6871f03caa1bccec60fe698f518bfc3c16969 13-Aug-2015 Stuart Scott <stuartscott@google.com> Merge "Revert "Move compatibility build info into build attributes.""
1c28c69c33fd2e8b84b22b240ca96c1df105e2fd 13-Aug-2015 Stuart Scott <stuartscott@google.com> Revert "Move compatibility build info into build attributes."

This reverts commit cdd549d382c1b8a27cfaf0daf048b493713ffe2e.

Change-Id: I7cc0433ba3c003ae34a4d181aa7dbe96a45165e2
ample/src/android/sample/cts/SampleHostResultTest.java
6b20a246651878d916c91324a27f89338d61caed 13-Aug-2015 Stuart Scott <stuartscott@google.com> Merge "Move compatibility build info into build attributes."
8da2326c3c041b5a09f6ebf30b03d340fc46b02c 13-Aug-2015 Kenny Guy <kennyguy@google.com> Make LauncherApps tests less flakey.

Change code to not assume that delay in installing
and running a test is enough to receive package
callbacks.
Instead wait for up to 60 seconds if package callback
hasn't happened.

Bug: 23016451

Change-Id: Id02c82da5c7acae927e38ca2c648f82a8cdd93c5
evicepolicy/app/LauncherTests/src/com/android/cts/launchertests/LauncherAppsTests.java
evicepolicy/app/LauncherTestsSupport/src/com/android/cts/launchertests/support/LauncherCallbackTestsService.java
evicepolicy/src/com/android/cts/devicepolicy/LauncherAppsMultiUserTest.java
4b09c6719f5eab564defbe43c98c4c9f013b0174 13-Aug-2015 Nick Kralevich <nnk@google.com> am b2e8a646: resolved conflicts for merge of 4e9960a6 to mnc-dr-dev-plus-aosp

* commit 'b2e8a64669ff37f2ff1fdc7ef8f22e644db5316f':
SELinuxHostTest: Switch to file_contexts.bin.
b2e8a64669ff37f2ff1fdc7ef8f22e644db5316f 13-Aug-2015 Nick Kralevich <nnk@google.com> resolved conflicts for merge of 4e9960a6 to mnc-dr-dev-plus-aosp

Change-Id: I43836432c1249431036b4fe87db1ce9a77a14431
9a131ce7000c86d23bcf313d6e72dbf3963ec964 13-Aug-2015 Nick Kralevich <nnk@google.com> resolved conflicts for merge of 4e9960a6 to mnc-dev-plus-aosp

Change-Id: I862db7776cfbd82670e1a88c88ed88a7b5abfba8
1070547e7090e7e53a16dc11f5ed5a6a8b015560 12-Aug-2015 Esteban Talavera <etalavera@google.com> am 9fd73d94: am e831f2b2: am 2f5eddd3: am 8b5349cf: am c3494a45: Merge "Checking for multiuser before trying to create one" into mnc-dev

* commit '9fd73d94d83b75075287f467e9cc6ee69494034b':
Checking for multiuser before trying to create one
9fd73d94d83b75075287f467e9cc6ee69494034b 12-Aug-2015 Esteban Talavera <etalavera@google.com> am e831f2b2: am 2f5eddd3: am 8b5349cf: am c3494a45: Merge "Checking for multiuser before trying to create one" into mnc-dev

* commit 'e831f2b27ebe7767db3f877b66e2ea76a7ea4119':
Checking for multiuser before trying to create one
91cd11009c1cb9bf0ec6270f3add4f294f329d72 12-Aug-2015 Esteban Talavera <etalavera@google.com> am c3494a45: Merge "Checking for multiuser before trying to create one" into mnc-dev

* commit 'c3494a4598c0bcb527a9f565f274b38e2accd8c7':
Checking for multiuser before trying to create one
c3494a4598c0bcb527a9f565f274b38e2accd8c7 12-Aug-2015 Esteban Talavera <etalavera@google.com> Merge "Checking for multiuser before trying to create one" into mnc-dev
d118a4fae0784cbe64ef7028882cabffd7e4728f 12-Aug-2015 Esteban Talavera <etalavera@google.com> Checking for multiuser before trying to create one

Change-Id: I1d68807c0ccba89bd959431c02233d92a02f5480
evicepolicy/src/com/android/cts/devicepolicy/CustomDeviceOwnerTest.java
cdd549d382c1b8a27cfaf0daf048b493713ffe2e 31-Jul-2015 Stuart Scott <stuartscott@google.com> Move compatibility build info into build attributes.

bug:22830394
bug:21762834
Change-Id: I0df8b3eb8d35ac2c7c1cfbf664ef342040df0738
ample/src/android/sample/cts/SampleHostResultTest.java
1da23d65845e52f766a5188db025c99270c33398 11-Aug-2015 Alex Chau <alexchau@google.com> am 79092a57: am e2519cc1: am 4e6492b5: am ab802a9e: am b907f028: Merge "CTS test that account management works for managed profile" into mnc-dev

* commit '79092a574ba9bf2cc61188fbbdb57c22b785ba66':
CTS test that account management works for managed profile
79092a574ba9bf2cc61188fbbdb57c22b785ba66 11-Aug-2015 Alex Chau <alexchau@google.com> am e2519cc1: am 4e6492b5: am ab802a9e: am b907f028: Merge "CTS test that account management works for managed profile" into mnc-dev

* commit 'e2519cc1e2dbb86e92e13d976e62dbab14e1526e':
CTS test that account management works for managed profile
68a7ef00ea6f26e5512c25cc8e4d7cc0f1209102 11-Aug-2015 Alex Chau <alexchau@google.com> am b907f028: Merge "CTS test that account management works for managed profile" into mnc-dev

* commit 'b907f02885ccb84590b8291223995d4c948c4144':
CTS test that account management works for managed profile
b907f02885ccb84590b8291223995d4c948c4144 11-Aug-2015 Alex Chau <alexchau@google.com> Merge "CTS test that account management works for managed profile" into mnc-dev
672eec9ddb001c4f70537ee79b0599158cc505ce 11-Aug-2015 Jeff Sharkey <jsharkey@google.com> am d74a8587: am d373a1b9: am 270415c2: am 71fbd240: am e9cd5f6f: Merge "Verify that per-user storage is isolated." into mnc-dev

* commit 'd74a8587f0a2cb4e46a8a8a7383dae023474e254':
Verify that per-user storage is isolated.
0a65dc1938f2ec02784061f5051d5a4eb53faaad 11-Aug-2015 Jeff Sharkey <jsharkey@google.com> am e9cd5f6f: Merge "Verify that per-user storage is isolated." into mnc-dev

* commit 'e9cd5f6f6e8e042ed29388acde919400642960f6':
Verify that per-user storage is isolated.
d74a8587f0a2cb4e46a8a8a7383dae023474e254 11-Aug-2015 Jeff Sharkey <jsharkey@google.com> am d373a1b9: am 270415c2: am 71fbd240: am e9cd5f6f: Merge "Verify that per-user storage is isolated." into mnc-dev

* commit 'd373a1b99fb417f60b8feaec0d4a8ed9f24b7375':
Verify that per-user storage is isolated.
338cdcc45f5c191ad46a8128b4b93f9199ca127b 11-Aug-2015 Jeff Sharkey <jsharkey@android.com> Verify that per-user storage is isolated.

Bug: 22633097
Change-Id: I3bf5eb46fc6bdacc3914a3bf2e468eac5a9e2768
ppsecurity/src/com/android/cts/appsecurity/ExternalStorageHostTest.java
ppsecurity/test-apps/MultiUserStorageApp/src/com/android/cts/multiuserstorageapp/MultiUserStorageTest.java
d37791201e635404d868798ac0f2acc8585c644e 04-Aug-2015 Alex Chau <alexchau@google.com> CTS test that account management works for managed profile

Copied AccountManagementTest together with mock authenticator from xts
and run as ManagedProfileTest

Bug: 16365585
Change-Id: I29b96be7744d11b48d86093fcf5a3f6059e28a70
evicepolicy/app/DeviceAndProfileOwner/AndroidManifest.xml
evicepolicy/app/DeviceAndProfileOwner/res/values/strings.xml
evicepolicy/app/DeviceAndProfileOwner/res/xml/authenticator.xml
evicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/AccountManagementTest.java
evicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/MockAccountAuthenticator.java
evicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/MockAccountService.java
evicepolicy/src/com/android/cts/devicepolicy/DeviceAndProfileOwnerTest.java
18bf3418e742f2d2a54fe47fb94ab3d35d01de57 10-Aug-2015 Benjamin Franz <bfranz@google.com> am 649c0779: am 99426674: am 6bcec2a9: am d75e394d: am 7f5866e2: Merge "Add further test for device owner pre-conditions" into mnc-dev

* commit '649c0779d5128e157daddf39a93a5c3932eca80c':
Add further test for device owner pre-conditions
649c0779d5128e157daddf39a93a5c3932eca80c 10-Aug-2015 Benjamin Franz <bfranz@google.com> am 99426674: am 6bcec2a9: am d75e394d: am 7f5866e2: Merge "Add further test for device owner pre-conditions" into mnc-dev

* commit '99426674b7aa074a6f9151e07d9a0df167986634':
Add further test for device owner pre-conditions
df6a35a8939e112446ed015a857f13e78c0bb7cb 10-Aug-2015 Benjamin Franz <bfranz@google.com> am 7f5866e2: Merge "Add further test for device owner pre-conditions" into mnc-dev

* commit '7f5866e264a18a1f6edde4cc0c19b7729dc17c29':
Add further test for device owner pre-conditions
7f5866e264a18a1f6edde4cc0c19b7729dc17c29 10-Aug-2015 Benjamin Franz <bfranz@google.com> Merge "Add further test for device owner pre-conditions" into mnc-dev
97fc0c27f68c7ef43804862ea762c088797e0a51 07-Aug-2015 Alex Chau <alexchau@google.com> am 89344097: am 63583db3: am f796667b: am 9e8e6f45: am 2b204957: resolved conflicts for merge of fbf97a70 to mnc-dev

* commit '893440971d5a12203bee42df655dc9d4b95b2061':
CTS: Test NFC sharing user restriction
893440971d5a12203bee42df655dc9d4b95b2061 07-Aug-2015 Alex Chau <alexchau@google.com> am 63583db3: am f796667b: am 9e8e6f45: am 2b204957: resolved conflicts for merge of fbf97a70 to mnc-dev

* commit '63583db3038301c3c53117addd2f931dd790f4ba':
CTS: Test NFC sharing user restriction
83d8608567f8d9df116a1260c3c13e1b1a1c26a7 07-Aug-2015 Alex Chau <alexchau@google.com> am 2b204957: resolved conflicts for merge of fbf97a70 to mnc-dev

* commit '2b20495725b296181ca96ac189500b5ca4b0d058':
CTS: Test NFC sharing user restriction
2b20495725b296181ca96ac189500b5ca4b0d058 07-Aug-2015 Alex Chau <alexchau@google.com> resolved conflicts for merge of fbf97a70 to mnc-dev

Change-Id: I3dfc3ac3b5886413a64fce569bae87665a612850
99ba7f5c423cf1598259cb4838aff0da61335604 06-Aug-2015 Jeff Sharkey <jsharkey@google.com> am a481474d: am 3101f372: am e6e2b0c6: am 84524684: am a38249c4: Merge "Protect runtime storage mount points." into mnc-dev

* commit 'a481474d2cb0a7d36c6931494e80a217b02b3ca9':
Protect runtime storage mount points.
a481474d2cb0a7d36c6931494e80a217b02b3ca9 06-Aug-2015 Jeff Sharkey <jsharkey@google.com> am 3101f372: am e6e2b0c6: am 84524684: am a38249c4: Merge "Protect runtime storage mount points." into mnc-dev

* commit '3101f372e9c5988423a2135857223b19176ed87d':
Protect runtime storage mount points.
fbf97a709c0e499759b3b12b2152004304e44023 06-Aug-2015 Alex Chau <alexchau@google.com> am 56367ceb: am aab71cc8: am 85b6f457: Merge "CTS: Test NFC sharing user restriction" into lollipop-mr1-cts-dev

* commit '56367cebbf6ddfa5ae0986bec142f658cd1bebd2':
CTS: Test NFC sharing user restriction
4567d867d7335c75dfce7cf9927c1e03022b8c44 06-Aug-2015 Jeff Sharkey <jsharkey@google.com> am a38249c4: Merge "Protect runtime storage mount points." into mnc-dev

* commit 'a38249c4321a891fbfa378f927e83e02c00e5eaf':
Protect runtime storage mount points.
1b80826bcd8fec5d4ae2dafa24e4680c6333c11c 06-Aug-2015 Jeff Sharkey <jsharkey@android.com> Protect runtime storage mount points.

We have a bunch of magic that mounts the correct view of storage
access based on the runtime permissions of an app, but we forgot to
protect the real underlying data sources; oops.

This series of changes just bumps the directory heirarchy one level
to give us /mnt/runtime which we can mask off as 0700 to prevent
people from jumping to the exposed internals.

Also add CTS tests to verify that we're protecting access to
internal mount points like this.

Bug: 22964288
Change-Id: I004ae56da3d4f287d0e9875657f6baaafb885f12
ppsecurity/test-apps/ExternalStorageApp/src/com/android/cts/externalstorageapp/CommonExternalStorageTest.java
ppsecurity/test-apps/ExternalStorageApp/src/com/android/cts/externalstorageapp/ExternalStorageTest.java
ppsecurity/test-apps/ReadExternalStorageApp/src/com/android/cts/readexternalstorageapp/ReadExternalStorageTest.java
ppsecurity/test-apps/WriteExternalStorageApp/src/com/android/cts/writeexternalstorageapp/WriteExternalStorageTest.java
a69540fe95c9ddfd7e3382740f3251639eb34521 05-Aug-2015 Stephen Smalley <sds@tycho.nsa.gov> SELinuxHostTest: Switch to file_contexts.bin.

Update SELinuxHostTest to switch from validating
file_contexts to validating file_contexts.bin. Use
checkfc -c to compare the device file_contexts.bin
with the AOSP general_file_contexts.bin.

Depends on I2fff2f8cf87690a76219ddf4cf38939650f34782.

Change-Id: Ibc48cc5f3c3b0ed54e93f13e5c83fe190ba6a40d
Signed-off-by: Stephen Smalley <sds@tycho.nsa.gov>
ecurity/Android.mk
ecurity/src/android/cts/security/SELinuxHostTest.java
eb750074ce2ca9013b0232385afb90e3e72cb065 04-Aug-2015 Benjamin Franz <bfranz@google.com> Add further test for device owner pre-conditions

Add a CTS test to verify that device owner cannot be set via adb when a
secondary user is present.

Bug: 20412568
Change-Id: Ic6cf3fdeea32dd6b79f242f6371898ec4c58d990
evicepolicy/src/com/android/cts/devicepolicy/CustomDeviceOwnerTest.java
56367cebbf6ddfa5ae0986bec142f658cd1bebd2 06-Aug-2015 Alex Chau <alexchau@google.com> am aab71cc8: am 85b6f457: Merge "CTS: Test NFC sharing user restriction" into lollipop-mr1-cts-dev

* commit 'aab71cc8d4b5ebb6ec2e4e422b2637e56d967cfc':
CTS: Test NFC sharing user restriction
85b6f4579b82e7e3f597070dc104c23c26504b74 06-Aug-2015 Alex Chau <alexchau@google.com> Merge "CTS: Test NFC sharing user restriction" into lollipop-mr1-cts-dev
81bce2f3807c5bb1b519362650e6c23453802ac2 06-Aug-2015 Lance Jin-woong Chang <jinwoong@google.com> am daeea0a8: am 4385b551: am 0bb6f928: am 80689995: am 0ee91418: am 2be7a47e: am 7675f634: am c35968f2: am 39258b60: Merge "Fix for checkKernelWakelock function : It contains a comma character in the "Kernel Wakelock". So When parts arr\'s length is more than 7, Fix c

* commit 'daeea0a85a0be731e7f4d6f2352bcb000dcae132':
Fix for checkKernelWakelock function : It contains a comma character in the "Kernel Wakelock". So When parts arr's length is more than 7, Fix check routine.
daeea0a85a0be731e7f4d6f2352bcb000dcae132 06-Aug-2015 Lance Jin-woong Chang <jinwoong@google.com> am 4385b551: am 0bb6f928: am 80689995: am 0ee91418: am 2be7a47e: am 7675f634: am c35968f2: am 39258b60: Merge "Fix for checkKernelWakelock function : It contains a comma character in the "Kernel Wakelock". So When parts arr\'s length is more than 7, Fix check routine.

* commit '4385b5517a4821c8f2d0e076ec8699aecb05646e':
Fix for checkKernelWakelock function : It contains a comma character in the "Kernel Wakelock". So When parts arr's length is more than 7, Fix check routine.
828bbbf8f2f02f1e4c3fe2d7030251f0aed069db 06-Aug-2015 Lance Jin-woong Chang <jinwoong@google.com> am 0ee91418: am 2be7a47e: am 7675f634: am c35968f2: am 39258b60: Merge "Fix for checkKernelWakelock function : It contains a comma character in the "Kernel Wakelock". So When parts arr\'s length is more than 7, Fix check routine." into lollipop-mr1-cts-dev

* commit '0ee914188d9f0031f589fcc762ed27f144bd2427':
Fix for checkKernelWakelock function : It contains a comma character in the "Kernel Wakelock". So When parts arr's length is more than 7, Fix check routine.
0ee914188d9f0031f589fcc762ed27f144bd2427 06-Aug-2015 Lance Jin-woong Chang <jinwoong@google.com> am 2be7a47e: am 7675f634: am c35968f2: am 39258b60: Merge "Fix for checkKernelWakelock function : It contains a comma character in the "Kernel Wakelock". So When parts arr\'s length is more than 7, Fix check routine." into lollipop-mr1-cts-dev

* commit '2be7a47ed26e91df2e691fec35431c1838e43834':
Fix for checkKernelWakelock function : It contains a comma character in the "Kernel Wakelock". So When parts arr's length is more than 7, Fix check routine.
2be7a47ed26e91df2e691fec35431c1838e43834 05-Aug-2015 Lance Jin-woong Chang <jinwoong@google.com> am 7675f634: am c35968f2: am 39258b60: Merge "Fix for checkKernelWakelock function : It contains a comma character in the "Kernel Wakelock". So When parts arr\'s length is more than 7, Fix check routine." into lollipop-mr1-cts-dev

* commit '7675f634524056dc2729e3bcc104e42bfdd6fda4':
Fix for checkKernelWakelock function : It contains a comma character in the "Kernel Wakelock". So When parts arr's length is more than 7, Fix check routine.
da7ccee6ca1040781190f4a4a7a007d9ecd04ad0 22-Jul-2015 Alex Chau <alexchau@google.com> CTS: Test NFC sharing user restriction

- Test for UserManager#DISALLOW_OUTGOING_BEAM user restriction
- Added test for whether BeamShareActivity is resolved in
Intent.ACTION_SEND
- The beam-triggered path is not yet tested because it need to be
triggered manually. It should be added to CtsVerifier in a separate
commit

Bug: 19674152
Change-Id: Icc86bbf4a2f16061d7e9f9f282fabfb7b4a94233
evicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/NfcTest.java
evicepolicy/src/com/android/cts/devicepolicy/ManagedProfileTest.java
7931b95aa3bb3753f16b933d3ceb9fd756731fbf 04-Aug-2015 Nicolas Prévot <nprevot@google.com> am ed7c0474: am 8bfa9413: am 867d2ccd: am 71e418cc: am cf39360e: Merge "Test that the device owner changed broadcast is sent." into mnc-dev

* commit 'ed7c04745fca9070f1b3a9573f089fa4e3e4abe6':
Test that the device owner changed broadcast is sent.
ed7c04745fca9070f1b3a9573f089fa4e3e4abe6 04-Aug-2015 Nicolas Prévot <nprevot@google.com> am 8bfa9413: am 867d2ccd: am 71e418cc: am cf39360e: Merge "Test that the device owner changed broadcast is sent." into mnc-dev

* commit '8bfa94139e035a4be420e14236a3fec3bee7f95b':
Test that the device owner changed broadcast is sent.
3c5f87578af0f7c8752cdd2e32daac01840f8e2c 04-Aug-2015 Nicolas Prévot <nprevot@google.com> am cf39360e: Merge "Test that the device owner changed broadcast is sent." into mnc-dev

* commit 'cf39360e518c7ad31e2e410ab45ad28a98785727':
Test that the device owner changed broadcast is sent.
cf39360e518c7ad31e2e410ab45ad28a98785727 04-Aug-2015 Nicolas Prévot <nprevot@google.com> Merge "Test that the device owner changed broadcast is sent." into mnc-dev
4405d1af82327ea7b7bbe08ee51210e2227c976c 04-Aug-2015 Adam Lesinski <adamlesinski@google.com> am e5010779: am c845454a: am 77e2d71a: am c7e9b192: am c9b114fa: Merge "Fix expected misc output of dumpsys BatteryStats test" into mnc-dev

* commit 'e5010779cdba67f6f44ae918494ae54ec116162b':
Fix expected misc output of dumpsys BatteryStats test
e5010779cdba67f6f44ae918494ae54ec116162b 04-Aug-2015 Adam Lesinski <adamlesinski@google.com> am c845454a: am 77e2d71a: am c7e9b192: am c9b114fa: Merge "Fix expected misc output of dumpsys BatteryStats test" into mnc-dev

* commit 'c845454aeaf7d0aec83a3868931645813f6d82f3':
Fix expected misc output of dumpsys BatteryStats test
ee423536a61cb5a29e6de44849beb3f31f4537a3 03-Aug-2015 Adam Lesinski <adamlesinski@google.com> am c9b114fa: Merge "Fix expected misc output of dumpsys BatteryStats test" into mnc-dev

* commit 'c9b114fa6511580326860bedac221da963596410':
Fix expected misc output of dumpsys BatteryStats test
c9b114fa6511580326860bedac221da963596410 03-Aug-2015 Adam Lesinski <adamlesinski@google.com> Merge "Fix expected misc output of dumpsys BatteryStats test" into mnc-dev
8c15ed8093ded60878ba5d2bcc06ce34bee00bb5 03-Aug-2015 Adam Lesinski <adamlesinski@google.com> Fix expected misc output of dumpsys BatteryStats test

Bug:22807424
Change-Id: I64e887c673d49041944aae4e5932f38fb0c48623
umpsys/src/android/dumpsys/cts/DumpsysHostTest.java
fffb95a287d7abd204f300da76f5cabd6bd3887f 28-Jul-2015 Nicolas Prevot <nprevot@google.com> Test that the device owner changed broadcast is sent.

BUG:22840220
Change-Id: I1a9d93d3049faf2ccfbab4b60c386d4b8f965b0e
evicepolicy/app/IntentReceiver/Android.mk
evicepolicy/app/IntentReceiver/AndroidManifest.xml
evicepolicy/app/IntentReceiver/src/com/android/cts/intent/receiver/BroadcastIntentReceiver.java
evicepolicy/app/IntentReceiver/src/com/android/cts/intent/receiver/OwnerChangedBroadcastTest.java
evicepolicy/src/com/android/cts/devicepolicy/CustomDeviceOwnerTest.java
fbb245a29a185eb208a89bd892d9a8d607678faf 31-Jul-2015 Henry Jian <hzjian@google.com> dynamic cts phase 1
--add DynamicConfigPusher which push config file to certain location on device/host
--DynamicConfig will parse config file and store it in a Map
--Alter one host test case (SampleHostTests) to test dynamic config infrastructure. Modify its AndroidTest.xml to trigger DynamicConfigPusher.

Change-Id: I51eb6eeeaf344ade9f4cfe4225abbd5d04f78d49
ample/AndroidTest.xml
ample/src/android/sample/cts/SampleHostTest.java
7675f634524056dc2729e3bcc104e42bfdd6fda4 31-Jul-2015 Lance Jin-woong Chang <jinwoong@google.com> am c35968f2: am 39258b60: Merge "Fix for checkKernelWakelock function : It contains a comma character in the "Kernel Wakelock". So When parts arr\'s length is more than 7, Fix check routine." into lollipop-mr1-cts-dev

* commit 'c35968f2286dd08fb588c138a55eac66403f360f':
Fix for checkKernelWakelock function : It contains a comma character in the "Kernel Wakelock". So When parts arr's length is more than 7, Fix check routine.
967634c90556c1405c4a8cee26bbd9d9314a1959 31-Jul-2015 Benjamin Franz <bfranz@google.com> am be82841f: am d7d12ca7: am 3c74ce91: am e6a7e453: am 00a5e040: Merge "Add tests for pre-conditions of setProfileOwner and setDeviceOwner" into mnc-dev

* commit 'be82841f844372ce5ecae412ae7a780e1c5a1ad8':
Add tests for pre-conditions of setProfileOwner and setDeviceOwner
be82841f844372ce5ecae412ae7a780e1c5a1ad8 31-Jul-2015 Benjamin Franz <bfranz@google.com> am d7d12ca7: am 3c74ce91: am e6a7e453: am 00a5e040: Merge "Add tests for pre-conditions of setProfileOwner and setDeviceOwner" into mnc-dev

* commit 'd7d12ca7a52ef0120c4944ede608fcda3044ec47':
Add tests for pre-conditions of setProfileOwner and setDeviceOwner
746c57a2a8bb3792ef74c4b1dc976a0000c500b0 31-Jul-2015 Benjamin Franz <bfranz@google.com> am 00a5e040: Merge "Add tests for pre-conditions of setProfileOwner and setDeviceOwner" into mnc-dev

* commit '00a5e040e1705e6d8eb79b3e44f144d105cc9207':
Add tests for pre-conditions of setProfileOwner and setDeviceOwner
00a5e040e1705e6d8eb79b3e44f144d105cc9207 31-Jul-2015 Benjamin Franz <bfranz@google.com> Merge "Add tests for pre-conditions of setProfileOwner and setDeviceOwner" into mnc-dev
8c2ba43198bf7f005f2acb1cd18df44e31ca991c 31-Jul-2015 Benjamin Franz <bfranz@google.com> Add tests for pre-conditions of setProfileOwner and setDeviceOwner

Bug: 20412568
Change-Id: I3a6235c688a3f0a621519dd35183aa2b3e437ffe
evicepolicy/src/com/android/cts/devicepolicy/BaseDevicePolicyTest.java
evicepolicy/src/com/android/cts/devicepolicy/DeviceOwnerTest.java
evicepolicy/src/com/android/cts/devicepolicy/LauncherAppsProfileTest.java
evicepolicy/src/com/android/cts/devicepolicy/ManagedProfileTest.java
evicepolicy/src/com/android/cts/devicepolicy/MixedDeviceOwnerTest.java
evicepolicy/src/com/android/cts/devicepolicy/MixedProfileOwnerTest.java
1574c885b0aabd1461f3289996dff85deb5b03cd 31-Jul-2015 Benjamin Franz <bfranz@google.com> am 6b699bff: am 5333360d: am 13f5b6b1: am e917c5a7: am b66dbea4: Merge "Move tests for setApplicationHidden to CTS" into mnc-dev

* commit '6b699bff372c05a4e4778d0866151dd4383ae934':
Move tests for setApplicationHidden to CTS
6b699bff372c05a4e4778d0866151dd4383ae934 31-Jul-2015 Benjamin Franz <bfranz@google.com> am 5333360d: am 13f5b6b1: am e917c5a7: am b66dbea4: Merge "Move tests for setApplicationHidden to CTS" into mnc-dev

* commit '5333360d826b52f62fec6b935fe5fff07a23ae2a':
Move tests for setApplicationHidden to CTS
76baf779d5273f63ea802dffa2ff21287d921e36 31-Jul-2015 Benjamin Franz <bfranz@google.com> am b66dbea4: Merge "Move tests for setApplicationHidden to CTS" into mnc-dev

* commit 'b66dbea4361c637821878d5b7272b7ab2516c3ee':
Move tests for setApplicationHidden to CTS
b66dbea4361c637821878d5b7272b7ab2516c3ee 31-Jul-2015 Benjamin Franz <bfranz@google.com> Merge "Move tests for setApplicationHidden to CTS" into mnc-dev
d07f538901e2c01ed3aba4562b2eab5c0d6b69ef 30-Jul-2015 Benjamin Franz <bfranz@google.com> Move tests for setApplicationHidden to CTS

Tests used to be in GTS and are moved to CTS. Also extended the tests
to listen to the package manager broadcasts.

Bug: 22844272
Change-Id: I21a7a05e0c5fb512e07aa5c175f7679a16730b7f
evicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/ApplicationHiddenTest.java
evicepolicy/src/com/android/cts/devicepolicy/DeviceAndProfileOwnerTest.java
536a88fd3715dd946b7351948282fbd814e13b32 27-Jul-2015 hyeongchan.kim <hyeongchan.kim@lge.com> Fix for checkKernelWakelock function : It contains a comma character in the "Kernel Wakelock". So When parts arr's length is more than 7, Fix check routine.

Change-Id: I58d3f6ce88b25a584d290b94aff09f8d9c0aa8fd
umpsys/src/android/dumpsys/cts/DumpsysHostTest.java
6a91ea0c550fe29af9a94269a97962f32442f4f4 30-Jul-2015 Jeff Sharkey <jsharkey@google.com> am 44aacb76: am 539c220d: am 52d70c97: am bcba7c08: am 43ef55c2: Merge "Verify uninstall using "pm list"." into mnc-dev

* commit '44aacb76ea18fd6a31cf330e4618ac837b80e9c1':
Verify uninstall using "pm list".
44aacb76ea18fd6a31cf330e4618ac837b80e9c1 30-Jul-2015 Jeff Sharkey <jsharkey@google.com> am 539c220d: am 52d70c97: am bcba7c08: am 43ef55c2: Merge "Verify uninstall using "pm list"." into mnc-dev

* commit '539c220ddf102dfc25e5159b896a46c813b4454f':
Verify uninstall using "pm list".
510ea04372efc46e82abcdc32bacd3bdd2ce9ba8 30-Jul-2015 Jeff Sharkey <jsharkey@google.com> am 43ef55c2: Merge "Verify uninstall using "pm list"." into mnc-dev

* commit '43ef55c2d101fb55b07271f821291e51ce82be33':
Verify uninstall using "pm list".
43ef55c2d101fb55b07271f821291e51ce82be33 30-Jul-2015 Jeff Sharkey <jsharkey@google.com> Merge "Verify uninstall using "pm list"." into mnc-dev
5b49f68162b0af287a48681ec3ddf5c8c09f4885 30-Jul-2015 Jeff Sharkey <jsharkey@android.com> Verify uninstall using "pm list".

If we run a test expecting failure, some other part of the test
harness decides that something went horribly wrong and causes a
cascading failure. Instead, switch to verifying that the package
doesn't appear in pm list.

Bug: 22820380
Change-Id: Ieb315c02c54f12029ef54e4fe83258b50fef8ac9
ppsecurity/src/com/android/cts/appsecurity/AdoptableHostTest.java
c8bb6c029e0ac8af419f77ebd7e596fa868293c7 30-Jul-2015 Chris Craik <ccraik@google.com> Add sched tracing to atrace test

bug:22810300

Change-Id: I1b22c0358d3ca651e359fa3f10d220dedd50855c
trace/src/android/atrace/cts/AtraceHostTest.java
3b7be522897cc57b6a0e96d0c69fa537c54af5e1 30-Jul-2015 Benjamin Franz <bfranz@google.com> am c8c91674: am 7b6af225: am 92ad79dd: am fda7591c: am e2f7b6f6: Merge "Extend screen capture disabled test" into mnc-dev

* commit 'c8c91674e323623cd442cd430279a9d1d6094197':
Extend screen capture disabled test
c8c91674e323623cd442cd430279a9d1d6094197 30-Jul-2015 Benjamin Franz <bfranz@google.com> am 7b6af225: am 92ad79dd: am fda7591c: am e2f7b6f6: Merge "Extend screen capture disabled test" into mnc-dev

* commit '7b6af225738566629ca8aa8d9fd87cd32318547d':
Extend screen capture disabled test
33ae65bbd87f58a88b9ca5b95d1d69186814826e 30-Jul-2015 Benjamin Franz <bfranz@google.com> am e2f7b6f6: Merge "Extend screen capture disabled test" into mnc-dev

* commit 'e2f7b6f69adc8eb7bfc603b3f2d5d67e962cf674':
Extend screen capture disabled test
03c75acc5ffdf5a8e41c2b14e95c55aaf55fe008 30-Jul-2015 Sudheer Shanka <sudheersai@google.com> am 562d6b0b: am 62ec69e9: am 8b67c639: am 46a071ad: am e0482c1b: Merge "Add CTSVerifier tests for checking permission grant states." into mnc-dev

* commit '562d6b0b48833150bc16b237b63d95b3edba9bcc':
Add CTSVerifier tests for checking permission grant states.
e2f7b6f69adc8eb7bfc603b3f2d5d67e962cf674 30-Jul-2015 Benjamin Franz <bfranz@google.com> Merge "Extend screen capture disabled test" into mnc-dev
562d6b0b48833150bc16b237b63d95b3edba9bcc 30-Jul-2015 Sudheer Shanka <sudheersai@google.com> am 62ec69e9: am 8b67c639: am 46a071ad: am e0482c1b: Merge "Add CTSVerifier tests for checking permission grant states." into mnc-dev

* commit '62ec69e94494ac5de047919ac9254e6e1d359e03':
Add CTSVerifier tests for checking permission grant states.
768d1707c68e453cdab029843c6d4d35d48c0217 30-Jul-2015 Sudheer Shanka <sudheersai@google.com> am e0482c1b: Merge "Add CTSVerifier tests for checking permission grant states." into mnc-dev

* commit 'e0482c1bcab4deaeade4c5f87387527e97f2b27d':
Add CTSVerifier tests for checking permission grant states.
8e9b4590d9f13ce4c5cd0c854c8dea9dec594921 29-Jul-2015 Benjamin Franz <bfranz@google.com> Extend screen capture disabled test

Add another test that ensures that disabling screen capture on a
profile owner does not block screen shots for primary user activities.

Bug: 17482450
Change-Id: Id04093d8afeff4b10cf06bfce0686158cc352f73
evicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/ScreenCaptureDisabledTest.java
evicepolicy/src/com/android/cts/devicepolicy/DeviceAndProfileOwnerTest.java
evicepolicy/src/com/android/cts/devicepolicy/MixedDeviceOwnerTest.java
evicepolicy/src/com/android/cts/devicepolicy/MixedProfileOwnerTest.java
72ba56a7593f41f8646dbe5442cf1ff448d9c7bc 17-Jul-2015 Sudheer Shanka <sudheersai@google.com> Add CTSVerifier tests for checking permission grant states.

- Tests are added to check if permission is locked down in settings
depending on the state set by the device or profile owner.
- Moving CtsPermissionApp from cts/hostsidetests/devicepolicy/app
to cts/apps and using that for setting permission grant states.

Bug: 22192211

Change-Id: I0b9119f427f52a1122b738ce96a954bd74e880b2
evicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/PermissionsTest.java
evicepolicy/app/PermissionApp/Android.mk
evicepolicy/app/PermissionApp/AndroidManifest.xml
evicepolicy/app/PermissionApp/src/com/android/cts/permission/permissionapp/PermissionActivity.java
evicepolicy/src/com/android/cts/devicepolicy/DeviceAndProfileOwnerTest.java
8a00c5942735dc5245cf4933fe29dcb60e335344 28-Jul-2015 Benjamin Franz <bfranz@google.com> am e09cba30: am c07542cc: am fb40f176: am c45570f6: am d0e1da0a: Merge "Move PersistentIntentResolvingTest to DeviceAndProfileOwner" into mnc-dev

* commit 'e09cba309f7a901fab582c37c4af06777053e466':
Move PersistentIntentResolvingTest to DeviceAndProfileOwner
a2db0a998ae6f9855d646cde841e94e5cb3c8972 28-Jul-2015 Benjamin Franz <bfranz@google.com> am d89114a1: am ee5d4aa1: am b8fe6b70: am b6977251: am dccb9b2b: Merge "Move ScreenCaptureDisabledTest to DeviceAndProfileOwner" into mnc-dev

* commit 'd89114a13398decdf8f3c5e22ffd52227f51307b':
Move ScreenCaptureDisabledTest to DeviceAndProfileOwner
a2f4f61d536a3ea475941123c0b75d28299c2eab 28-Jul-2015 Benjamin Franz <bfranz@google.com> am 6b3a4af3: am 827f3e68: am fbb5b11d: am 98446026: am ebc03eb2: Merge "Move ApplicationRestrictionsTest to DeviceAndProfileOwner" into mnc-dev

* commit '6b3a4af3c42cd2f148d628669ecb3e0af26ad5ca':
Move ApplicationRestrictionsTest to DeviceAndProfileOwner
e09cba309f7a901fab582c37c4af06777053e466 28-Jul-2015 Benjamin Franz <bfranz@google.com> am c07542cc: am fb40f176: am c45570f6: am d0e1da0a: Merge "Move PersistentIntentResolvingTest to DeviceAndProfileOwner" into mnc-dev

* commit 'c07542ccada039e600dfc90cd8226152b19d06db':
Move PersistentIntentResolvingTest to DeviceAndProfileOwner
d89114a13398decdf8f3c5e22ffd52227f51307b 28-Jul-2015 Benjamin Franz <bfranz@google.com> am ee5d4aa1: am b8fe6b70: am b6977251: am dccb9b2b: Merge "Move ScreenCaptureDisabledTest to DeviceAndProfileOwner" into mnc-dev

* commit 'ee5d4aa11e5e64845e2ef36be44401db1ce7aa52':
Move ScreenCaptureDisabledTest to DeviceAndProfileOwner
6b3a4af3c42cd2f148d628669ecb3e0af26ad5ca 28-Jul-2015 Benjamin Franz <bfranz@google.com> am 827f3e68: am fbb5b11d: am 98446026: am ebc03eb2: Merge "Move ApplicationRestrictionsTest to DeviceAndProfileOwner" into mnc-dev

* commit '827f3e683d9ec663bc8217e4937944fdeba23eb8':
Move ApplicationRestrictionsTest to DeviceAndProfileOwner
2e86aafa875abe86aa5f735e45b082ceadb4e5ca 28-Jul-2015 Benjamin Franz <bfranz@google.com> am d0e1da0a: Merge "Move PersistentIntentResolvingTest to DeviceAndProfileOwner" into mnc-dev

* commit 'd0e1da0a2423b2417f0fb93a6dcf546f554fa630':
Move PersistentIntentResolvingTest to DeviceAndProfileOwner
cf731012976a04cc8600bb38029ad26193b17908 28-Jul-2015 Benjamin Franz <bfranz@google.com> am dccb9b2b: Merge "Move ScreenCaptureDisabledTest to DeviceAndProfileOwner" into mnc-dev

* commit 'dccb9b2bd31485fe7349cbf0bd9e61aa990331f9':
Move ScreenCaptureDisabledTest to DeviceAndProfileOwner
5c7e3ad2a4d0c53a9e40e96ab4aa05e0fb88fa8f 28-Jul-2015 Benjamin Franz <bfranz@google.com> am ebc03eb2: Merge "Move ApplicationRestrictionsTest to DeviceAndProfileOwner" into mnc-dev

* commit 'ebc03eb2cfc176378870fa0814e1a36b4010c0db':
Move ApplicationRestrictionsTest to DeviceAndProfileOwner
d0e1da0a2423b2417f0fb93a6dcf546f554fa630 28-Jul-2015 Benjamin Franz <bfranz@google.com> Merge "Move PersistentIntentResolvingTest to DeviceAndProfileOwner" into mnc-dev
dccb9b2bd31485fe7349cbf0bd9e61aa990331f9 28-Jul-2015 Benjamin Franz <bfranz@google.com> Merge "Move ScreenCaptureDisabledTest to DeviceAndProfileOwner" into mnc-dev
ebc03eb2cfc176378870fa0814e1a36b4010c0db 28-Jul-2015 Benjamin Franz <bfranz@google.com> Merge "Move ApplicationRestrictionsTest to DeviceAndProfileOwner" into mnc-dev
e772d86ec7215f6976e8ff0418b70bc40f0dd327 24-Jul-2015 Benjamin Franz <bfranz@google.com> Move PersistentIntentResolvingTest to DeviceAndProfileOwner

Bug: 22709411
Change-Id: I1185abfc7e554d163bf88565e8b838981f5a0481
evicepolicy/app/DeviceAndProfileOwner/AndroidManifest.xml
evicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/ExampleIntentReceivingActivity1.java
evicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/ExampleIntentReceivingActivity2.java
evicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/PersistentIntentResolvingTest.java
evicepolicy/app/DeviceOwner/AndroidManifest.xml
evicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/ExampleIntentReceivingActivity1.java
evicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/ExampleIntentReceivingActivity2.java
evicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/KeyManagementActivity.java
evicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/KeyManagementTest.java
evicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/PersistentIntentResolvingTest.java
evicepolicy/src/com/android/cts/devicepolicy/DeviceAndProfileOwnerTest.java
evicepolicy/src/com/android/cts/devicepolicy/DeviceOwnerTest.java
1db396d56ceb9ab23937d3c833c8678ff9e9628a 24-Jul-2015 Benjamin Franz <bfranz@google.com> Move ScreenCaptureDisabledTest to DeviceAndProfileOwner

Also extended the existing tests to actually trigger a screenshot and
verify that it is blocked.

Bug: 22709411
Bug: 17482450
Change-Id: Ic8cfa915f0e93215db5f76c12e55dff19921ca07
evicepolicy/app/DeviceAndProfileOwner/AndroidManifest.xml
evicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/ScreenCaptureDisabledActivity.java
evicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/ScreenCaptureDisabledTest.java
evicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/ScreenCaptureDisabledTest.java
evicepolicy/src/com/android/cts/devicepolicy/DeviceAndProfileOwnerTest.java
evicepolicy/src/com/android/cts/devicepolicy/DeviceOwnerTest.java
f877c5a0f71713a6118f00af11744bed1540a802 24-Jul-2015 Benjamin Franz <bfranz@google.com> Move ApplicationRestrictionsTest to DeviceAndProfileOwner

Because application restrictions apply to device and profile owner
situations, the test is moved to the DeviceAndProfileOwner package and
is now run in both situations.

Bug: 22709411
Change-Id: Ib72249241142d7d440f0283371a00b9440fc5d4a
evicepolicy/app/DeviceAndProfileOwner/AndroidManifest.xml
evicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/ApplicationRestrictionsActivity.java
evicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/ApplicationRestrictionsTest.java
evicepolicy/app/DeviceOwner/AndroidManifest.xml
evicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/ApplicationRestrictionActivity.java
evicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/ApplicationRestrictionsTest.java
evicepolicy/src/com/android/cts/devicepolicy/DeviceAndProfileOwnerTest.java
evicepolicy/src/com/android/cts/devicepolicy/DeviceOwnerTest.java
77257d49fe73b4d6f0a04655e9a9c9c0079955aa 25-Jul-2015 Jeff Sharkey <jsharkey@google.com> am 296e5351: am 28acb6d1: am f3a3c107: am 605e5678: am 5b1ad50d: Merge "Runtime permission tests for MediaStore." into mnc-dev

* commit '296e5351418c47ecfa70530f86b4ec6019123ae3':
Runtime permission tests for MediaStore.
296e5351418c47ecfa70530f86b4ec6019123ae3 25-Jul-2015 Jeff Sharkey <jsharkey@google.com> am 28acb6d1: am f3a3c107: am 605e5678: am 5b1ad50d: Merge "Runtime permission tests for MediaStore." into mnc-dev

* commit '28acb6d16dad80fce9a35aee9de58e3a4bb19750':
Runtime permission tests for MediaStore.
bef64c5de617da6b8b2b8e458775e4bf93b6a4aa 25-Jul-2015 Jeff Sharkey <jsharkey@google.com> am 5b1ad50d: Merge "Runtime permission tests for MediaStore." into mnc-dev

* commit '5b1ad50db539a0d1366d1ec4c9b70b805dda7466':
Runtime permission tests for MediaStore.
501c3c862f2edf8ed3a4966ffc3695c5e0b3b4fc 25-Jul-2015 Jeff Sharkey <jsharkey@android.com> Runtime permission tests for MediaStore.

Verify that MediaStore is enforcing runtime storage permissions.

Bug: 22718722
Change-Id: I4a253edd5e37f16a7325093b412761b5e2650bb7
ppsecurity/test-apps/ExternalStorageApp/src/com/android/cts/externalstorageapp/CommonExternalStorageTest.java
ppsecurity/test-apps/UsePermissionApp/src/com/android/cts/usepermission/UsePermissionTest.java
ppsecurity/test-apps/UsePermissionAppCompat/src/com/android/cts/usepermission/UsePermissionCompatTest.java
da2be2b90fe8aa0dc9cf53d74c4a8fa904882602 24-Jul-2015 Benjamin Franz <bfranz@google.com> resolved conflicts for merge of 853954c6 to master

Change-Id: I74cbc286008b0256a58bb76934a4067d093e91ad
853954c6a254e2ea73b2c4009fb03ea9cc4e3fc9 24-Jul-2015 Benjamin Franz <bfranz@google.com> am 1e0571be: am c7caecb9: am 0a56a87d: am 5b5fb5e6: Merge "Simplify CTS testing for policies that apply to DO and PO" into mnc-dev

* commit '1e0571bebf58b7fcc8b246fec9a353715478b615':
Simplify CTS testing for policies that apply to DO and PO
b25722cc306271bfa9833111fcbad0f43fd3b107 24-Jul-2015 Benjamin Franz <bfranz@google.com> am 5b5fb5e6: Merge "Simplify CTS testing for policies that apply to DO and PO" into mnc-dev

* commit '5b5fb5e6be49bd395266ff003783ecfdf37cfb95':
Simplify CTS testing for policies that apply to DO and PO
5b5fb5e6be49bd395266ff003783ecfdf37cfb95 24-Jul-2015 Benjamin Franz <bfranz@google.com> Merge "Simplify CTS testing for policies that apply to DO and PO" into mnc-dev
e02b145ec0f4d6b92944bbeb05deb9c3d6e51039 24-Jul-2015 Jeff Sharkey <jsharkey@google.com> am d23568c0: am 9aa95fd7: am 12dc3433: am ab0232a9: am 425b73d6: Merge "Tests to verify behavior of adoptable disks." into mnc-dev

* commit 'd23568c0217f63a9469233348b8670868f309f18':
Tests to verify behavior of adoptable disks.
46d15b1b5f154dabe3da9d916ac6d25517d01b3c 24-Jul-2015 Adam Lesinski <adamlesinski@google.com> am 02e6345b: am 55e98425: am 8d17964f: am ba497701: am 085d6012: Merge "Add UsageStatsManager#isAppInactive test" into mnc-dev

* commit '02e6345b93094f9e7d6e03b5bb8d6754369247e5':
Add UsageStatsManager#isAppInactive test
57335181a6db74a79b1e2dae619ca305cc876f3a 24-Jul-2015 Guang Zhu <guangzhu@google.com> am e22c37fc: am 3737159f: am 9fa2b85b: am 057af1fa: am 5c04a866: Merge "Revert "add more logging to monkey seed test"" into mnc-dev

* commit 'e22c37fc6b33eb354f715f59b3844732e40532ac':
Revert "add more logging to monkey seed test"
d23568c0217f63a9469233348b8670868f309f18 24-Jul-2015 Jeff Sharkey <jsharkey@google.com> am 9aa95fd7: am 12dc3433: am ab0232a9: am 425b73d6: Merge "Tests to verify behavior of adoptable disks." into mnc-dev

* commit '9aa95fd7d081721b0d2935808d2cfb7f049e4a65':
Tests to verify behavior of adoptable disks.
02e6345b93094f9e7d6e03b5bb8d6754369247e5 24-Jul-2015 Adam Lesinski <adamlesinski@google.com> am 55e98425: am 8d17964f: am ba497701: am 085d6012: Merge "Add UsageStatsManager#isAppInactive test" into mnc-dev

* commit '55e9842579af9a57677df66fb1c59e63f2a5e9a4':
Add UsageStatsManager#isAppInactive test
e22c37fc6b33eb354f715f59b3844732e40532ac 24-Jul-2015 Guang Zhu <guangzhu@google.com> am 3737159f: am 9fa2b85b: am 057af1fa: am 5c04a866: Merge "Revert "add more logging to monkey seed test"" into mnc-dev

* commit '3737159f4d46a08493f2c36ba60707bed3aa74f5':
Revert "add more logging to monkey seed test"
dd43747c43916537548714a31a91e5e0de68bfc1 24-Jul-2015 Chris Craik <ccraik@google.com> am 435b4c0c: am 6f5a5e31: am 5eb531be: am 392304ed: am 0f19d7f6: Merge "Fix build: Revert "Add CTS tests for NDK tracing"" into mnc-dev

* commit '435b4c0cfb36a700e37adfd7c5cc1661ea0c8641':
Fix build: Revert "Add CTS tests for NDK tracing"
735127fbaaae62aa5c5ebe55768a8d6a09c309f4 24-Jul-2015 Chris Craik <ccraik@google.com> am b998933c: am c135de36: am 9b8a514c: am e4f25559: am e306bf44: Merge "Add CTS tests for NDK tracing" into mnc-dev

* commit 'b998933c66883e90fb24d78b88afe661711e775a':
Add CTS tests for NDK tracing
4dd84de00a1a165195f7a0f4e20fa2326a6490fb 24-Jul-2015 Kenny Guy <kennyguy@google.com> am f604d64f: am fde00c51: am f835c73a: am 0fb56ec5: am 1aa05d6a: Merge "Remove Thread.sleep from device admin cts tests." into mnc-dev

* commit 'f604d64f43723661ff70cb2116957baacce03c8a':
Remove Thread.sleep from device admin cts tests.
0f47706e0844ae9afaea0710874ad51b47e9db2b 24-Jul-2015 Nicolas Prévot <nprevot@google.com> am 508316b5: am 73ffea65: am efea19b5: am b2769cbf: am 2c7ddfda: Merge "Cts tests for cross-profile app linking." into mnc-dev

* commit '508316b50fe5d1a8f233e2273b5caecc99e4bb39':
Cts tests for cross-profile app linking.
1c76988f74407b53cf25acf5bcd1e72e8ed21e50 24-Jul-2015 Colin Cross <ccross@android.com> resolved conflicts for merge of d6e867ab to master

Change-Id: I4392f2d43cfeee59c5a35cf51589181fe499c4c0
98dbed659c2149b718c34c4e768f8690ee96ea00 24-Jul-2015 Benjamin Franz <bfranz@google.com> am 11bb1d7c: am 00963029: am 6fab1936: am ab6e2992: am a6ba6ca8: Merge "Fix flaky permission tests" into mnc-dev

* commit '11bb1d7cde4098a81f37c2d6865dc3103abda5b9':
Fix flaky permission tests
435b4c0cfb36a700e37adfd7c5cc1661ea0c8641 23-Jul-2015 Chris Craik <ccraik@google.com> am 6f5a5e31: am 5eb531be: am 392304ed: am 0f19d7f6: Merge "Fix build: Revert "Add CTS tests for NDK tracing"" into mnc-dev

* commit '6f5a5e3132a09b244239d9135ca82ee5de8d9269':
Fix build: Revert "Add CTS tests for NDK tracing"
b998933c66883e90fb24d78b88afe661711e775a 23-Jul-2015 Chris Craik <ccraik@google.com> am c135de36: am 9b8a514c: am e4f25559: am e306bf44: Merge "Add CTS tests for NDK tracing" into mnc-dev

* commit 'c135de366c897fd8cd5433a801700e14581848e4':
Add CTS tests for NDK tracing
f604d64f43723661ff70cb2116957baacce03c8a 23-Jul-2015 Kenny Guy <kennyguy@google.com> am fde00c51: am f835c73a: am 0fb56ec5: am 1aa05d6a: Merge "Remove Thread.sleep from device admin cts tests." into mnc-dev

* commit 'fde00c51bb3cde58e1de31994ad447869adc449b':
Remove Thread.sleep from device admin cts tests.
508316b50fe5d1a8f233e2273b5caecc99e4bb39 23-Jul-2015 Nicolas Prévot <nprevot@google.com> am 73ffea65: am efea19b5: am b2769cbf: am 2c7ddfda: Merge "Cts tests for cross-profile app linking." into mnc-dev

* commit '73ffea65946365f9bdaa4a904714624374799d9c':
Cts tests for cross-profile app linking.
d6e867ab9db5a2d23fa395995b4e27f6cf928390 23-Jul-2015 Benjamin Franz <bfranz@google.com> am 08f578e5: am ce8ad026: am 63b5c75f: am e52bd3c2: Merge "Add UiAutomation test for runtime permissions" into mnc-dev

* commit '08f578e58695d19b20df057d8b4d522cb09bfb86':
Add UiAutomation test for runtime permissions
11bb1d7cde4098a81f37c2d6865dc3103abda5b9 23-Jul-2015 Benjamin Franz <bfranz@google.com> am 00963029: am 6fab1936: am ab6e2992: am a6ba6ca8: Merge "Fix flaky permission tests" into mnc-dev

* commit '00963029d5fb181e9b030e54d36e9a02ec9706c9':
Fix flaky permission tests
e86a5da9aba727171ecd3225efcde9e3c98fc5e1 23-Jul-2015 Jeff Sharkey <jsharkey@google.com> am 425b73d6: Merge "Tests to verify behavior of adoptable disks." into mnc-dev

* commit '425b73d67dfc7b75f8cd100cd49487a8630b3d91':
Tests to verify behavior of adoptable disks.
f7e7b4c56cb6838ac9da1c02806e7b21ff84a9d3 23-Jul-2015 Adam Lesinski <adamlesinski@google.com> am 085d6012: Merge "Add UsageStatsManager#isAppInactive test" into mnc-dev

* commit '085d6012feecb5d963220a30df0f77a38c2386de':
Add UsageStatsManager#isAppInactive test
172b953ce4dc164a4f4f7fb071d7ceb9c1c85b57 23-Jul-2015 Guang Zhu <guangzhu@google.com> am 5c04a866: Merge "Revert "add more logging to monkey seed test"" into mnc-dev

* commit '5c04a8664d6b421a5d46ae4111ca894b9ebe16c9':
Revert "add more logging to monkey seed test"
425b73d67dfc7b75f8cd100cd49487a8630b3d91 23-Jul-2015 Jeff Sharkey <jsharkey@google.com> Merge "Tests to verify behavior of adoptable disks." into mnc-dev
55cf974acfbd9ad29cc65e0ea961cb07ba124ef4 22-Jul-2015 Benjamin Franz <bfranz@google.com> Simplify CTS testing for policies that apply to DO and PO

Currently, code for policies that apply to device and profile owner
situations has to be duplicated or added to a shared library. This
change introduces one app that can act as device and profile owner and
holds all common test classes. Added the runtime permission tests to
this app as a first example.

Bug: 22192363
Change-Id: I6a7a8bf9f64a44f5aed4d8f70c3868a603b98757
evicepolicy/app/DeviceAndProfileOwner/Android.mk
evicepolicy/app/DeviceAndProfileOwner/AndroidManifest.xml
evicepolicy/app/DeviceAndProfileOwner/res/xml/device_admin.xml
evicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/BaseDeviceAdminTest.java
evicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/ClearDeviceOwnerTest.java
evicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/PermissionsTest.java
evicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/PermissionsTest.java
evicepolicy/src/com/android/cts/devicepolicy/BaseDevicePolicyTest.java
evicepolicy/src/com/android/cts/devicepolicy/DeviceAndProfileOwnerTest.java
evicepolicy/src/com/android/cts/devicepolicy/DeviceOwnerTest.java
evicepolicy/src/com/android/cts/devicepolicy/LauncherAppsProfileTest.java
evicepolicy/src/com/android/cts/devicepolicy/ManagedProfileTest.java
evicepolicy/src/com/android/cts/devicepolicy/MixedDeviceOwnerTest.java
evicepolicy/src/com/android/cts/devicepolicy/MixedProfileOwnerTest.java
085d6012feecb5d963220a30df0f77a38c2386de 23-Jul-2015 Adam Lesinski <adamlesinski@google.com> Merge "Add UsageStatsManager#isAppInactive test" into mnc-dev
7530eed68f92aacb835a76f641669e6ed139b738 22-Jul-2015 Jeff Sharkey <jsharkey@android.com> Tests to verify behavior of adoptable disks.

When a device claims to support adoptable disks, let's actually
adopt one to verify expected developer behavior. For example,
verify that both app and private data move together, and that
primary shared storage behaves predictibly when moved between
volumes.

Verify that we can stage both initial and inherited installs
directly on an adopted volume.

Bug: 22633097
Change-Id: I612f794ead35d04b8d03b868fd0fd826e27804f1
ppsecurity/src/com/android/cts/appsecurity/AdoptableHostTest.java
ppsecurity/src/com/android/cts/appsecurity/AdoptionHostTest.java
ppsecurity/src/com/android/cts/appsecurity/SplitTests.java
ppsecurity/test-apps/SplitApp/src/com/android/cts/splitapp/SplitAppTest.java
1f4ddbbfa154ef9f2d1209e96619d714ba7f3ffe 22-Jul-2015 Chris Craik <ccraik@google.com> am 0f19d7f6: Merge "Fix build: Revert "Add CTS tests for NDK tracing"" into mnc-dev

* commit '0f19d7f64134ddeb14bcc9c5289179dabbf678bb':
Fix build: Revert "Add CTS tests for NDK tracing"
f966432ef0fe28cc0ee8445789fd964960caa4ed 22-Jul-2015 Chris Craik <ccraik@google.com> am e306bf44: Merge "Add CTS tests for NDK tracing" into mnc-dev

* commit 'e306bf44492ab3de9b4cf43ed018e236fe89b373':
Add CTS tests for NDK tracing
63f948a4dff12fc58b966c5558b3ea657d37a0ff 22-Jul-2015 Kenny Guy <kennyguy@google.com> am 1aa05d6a: Merge "Remove Thread.sleep from device admin cts tests." into mnc-dev

* commit '1aa05d6ac385f75d0533a91fd7180c151c8664b6':
Remove Thread.sleep from device admin cts tests.
682a451de8daf81c239a8bf2bfdc480b9bbfa6b5 22-Jul-2015 Nicolas Prévot <nprevot@google.com> am 2c7ddfda: Merge "Cts tests for cross-profile app linking." into mnc-dev

* commit '2c7ddfdac2ae7134df718a1df138c85d48ab0db2':
Cts tests for cross-profile app linking.
ebebebb08948d650ac1e72c95c3a63c90f48e7ac 22-Jul-2015 Benjamin Franz <bfranz@google.com> am e52bd3c2: Merge "Add UiAutomation test for runtime permissions" into mnc-dev

* commit 'e52bd3c294a8605652ad42dc91eaf747cad17e74':
Add UiAutomation test for runtime permissions
7e3bb54c40a6af1472fcba038cdb19f02789640f 22-Jul-2015 Benjamin Franz <bfranz@google.com> am a6ba6ca8: Merge "Fix flaky permission tests" into mnc-dev

* commit 'a6ba6ca88294c21863e0518b86b01aa10c4479bd':
Fix flaky permission tests
5c04a8664d6b421a5d46ae4111ca894b9ebe16c9 22-Jul-2015 Guang Zhu <guangzhu@google.com> Merge "Revert "add more logging to monkey seed test"" into mnc-dev
62d414502e5653f2679d15c8e4601cdbc58b58c4 22-Jul-2015 Guang Zhu <guangzhu@google.com> Revert "add more logging to monkey seed test"

Bug: 21876569

This reverts commit 4b9912f86379898bcee35764361fdcdd79ea8103.

Change-Id: Ia1800413ed596f671cb43ff4e389e45312500fe1
onkey/src/com/android/cts/monkey/SeedTest.java
0f19d7f64134ddeb14bcc9c5289179dabbf678bb 22-Jul-2015 Chris Craik <ccraik@google.com> Merge "Fix build: Revert "Add CTS tests for NDK tracing"" into mnc-dev
f7f7145078bcb6400f9df09e70486e5d41eac653 22-Jul-2015 Chris Craik <ccraik@google.com> Fix build: Revert "Add CTS tests for NDK tracing"

This reverts commit 2b63369e1122eb17c1b45d3c51fd86e61bd607d9.

Change-Id: I9edee1c04b6c0125e5b4295f05a3fc5578e05c6a
trace/AtraceTestApp/Android.mk
trace/AtraceTestApp/jni/Android.mk
trace/AtraceTestApp/jni/AtraceTestAppJni.c
trace/AtraceTestApp/src/com/android/cts/atracetestapp/AtraceTestAppActivity.java
trace/src/android/atrace/cts/AtraceHostTest.java
e306bf44492ab3de9b4cf43ed018e236fe89b373 22-Jul-2015 Chris Craik <ccraik@google.com> Merge "Add CTS tests for NDK tracing" into mnc-dev
1aa05d6ac385f75d0533a91fd7180c151c8664b6 22-Jul-2015 Kenny Guy <kennyguy@google.com> Merge "Remove Thread.sleep from device admin cts tests." into mnc-dev
2a33a0017a4685c40dcc53ddf8f8c9152abb3db6 22-Jul-2015 Kenny Guy <kennyguy@google.com> Remove Thread.sleep from device admin cts tests.

Instead of using Thread.sleep in user management
test methods wait for stop-user to complete.

Bug: 22655100
Change-Id: Ia2cd002c7e8a86e0668732d15bd768add51afee1
evicepolicy/src/com/android/cts/devicepolicy/BaseDevicePolicyTest.java
2c7ddfdac2ae7134df718a1df138c85d48ab0db2 22-Jul-2015 Nicolas Prévot <nprevot@google.com> Merge "Cts tests for cross-profile app linking." into mnc-dev
e52bd3c294a8605652ad42dc91eaf747cad17e74 22-Jul-2015 Benjamin Franz <bfranz@google.com> Merge "Add UiAutomation test for runtime permissions" into mnc-dev
99bd2745f7c82d2f1b3ba4eb4c1c86a97fb4968b 21-Jul-2015 Nicolas Prevot <nprevot@google.com> Cts tests for cross-profile app linking.

BUG:22259892
Change-Id: I36ff381094bdb8be88e46462e330a4426470467a
evicepolicy/app/IntentReceiver/AndroidManifest.xml
evicepolicy/app/IntentReceiver/src/com/android/cts/intent/receiver/SimpleIntentReceiverActivity.java
evicepolicy/app/IntentSender/src/com/android/cts/intent/sender/AppLinkTest.java
evicepolicy/app/IntentSender/src/com/android/cts/intent/sender/IntentSenderActivity.java
evicepolicy/app/ManagedProfile/AndroidManifest.xml
evicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/CrossProfileUtils.java
evicepolicy/src/com/android/cts/devicepolicy/ManagedProfileTest.java
ac45aaf8f6a9955af5dd17cded9b280b95449797 09-Jul-2015 Benjamin Franz <bfranz@google.com> Add UiAutomation test for runtime permissions

Bug: 22192363
Change-Id: Idf2a9ef766cb4ce811253ba8d4aedb7cd2748377
evicepolicy/app/ManagedProfile/Android.mk
evicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/BaseManagedProfileTest.java
evicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/PermissionsTest.java
evicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/WipeDataTest.java
evicepolicy/src/com/android/cts/devicepolicy/ManagedProfileTest.java
a6ba6ca88294c21863e0518b86b01aa10c4479bd 22-Jul-2015 Benjamin Franz <bfranz@google.com> Merge "Fix flaky permission tests" into mnc-dev
a6f6b15bd8d794ef5dce14b9f88d6947ae4275ad 22-Jul-2015 Jeff Sharkey <jsharkey@android.com> Someone refactored something. Grr.

Change-Id: I36b586685bc2c809d6e94a46af93aecffa008b7b
ppsecurity/src/com/android/cts/appsecurity/ExternalStorageHostTest.java
dd0d1b4945be83f1938a8525fb69516c3ff6f15b 22-Jul-2015 Jeff Sharkey <jsharkey@android.com> am 42d07d93: am 368f2367: am f496808e: am e461f3cc: am 42f0bc3c: Merge "Split out storage tests, get them running again." into mnc-dev

* commit '42d07d932833563cd05f324bec623cef26dcb72a':
Split out storage tests, get them running again.
f6d79a45d3594a9a5cd2363dac8e1a5ce363c91a 21-Jul-2015 Adam Lesinski <adamlesinski@google.com> Add UsageStatsManager#isAppInactive test

Tests UsageStatsManager#isAppInactive by setting low idle thresholds
in settings and after launching an app and waiting for some short duration,
calling 'adb shell am get-inactive', which calls the desired method on UsageStatsManager.

Bug:21667688
Change-Id: I5acbee0f6b617fb93cdfc120a004b99d3fc07ada
sage/Android.mk
sage/app/Android.mk
sage/app/AndroidManifest.xml
sage/app/src/com/android/cts/app/usage/test/TestActivity.java
sage/src/com/android/cts/app/usage/AppIdleHostTest.java
42d07d932833563cd05f324bec623cef26dcb72a 22-Jul-2015 Jeff Sharkey <jsharkey@android.com> am 368f2367: am f496808e: am e461f3cc: am 42f0bc3c: Merge "Split out storage tests, get them running again." into mnc-dev

* commit '368f2367692545634cc6208eb0478d120180a305':
Split out storage tests, get them running again.
60ac7e3191030d1a54ca0ed51e3c539bbeb7c9a2 22-Jul-2015 Jeff Sharkey <jsharkey@android.com> am 42f0bc3c: Merge "Split out storage tests, get them running again." into mnc-dev

* commit '42f0bc3cad41ee465da1c1af00b2f2a3fdaa6146':
Split out storage tests, get them running again.
2b63369e1122eb17c1b45d3c51fd86e61bd607d9 21-Jul-2015 Chris Craik <ccraik@google.com> Add CTS tests for NDK tracing

bug:21195272

Fixes makefile, which previously broke the build.

This reverts commit 6153cf3d6fe681506483d508a75ec13bafbc2e8b.

Change-Id: I4f995d0b6e981a520eb9e943e19cb6fa6d8e6c45
trace/AtraceTestApp/Android.mk
trace/AtraceTestApp/jni/Android.mk
trace/AtraceTestApp/jni/AtraceTestAppJni.c
trace/AtraceTestApp/src/com/android/cts/atracetestapp/AtraceTestAppActivity.java
trace/src/android/atrace/cts/AtraceHostTest.java
81bf0890f40cd953967dbf31d66408adb4012f0c 21-Jul-2015 Jeff Sharkey <jsharkey@android.com> Split out storage tests, get them running again.

While working on storage tests, it turns out that several tests
were silently not being run. (!!) At some point the instrumentation
framework started ignoring methods that dind't start with the "test"
prefix, which resulted in silent success; ouch.

To fix this, split the one-off behaviors into separate test files,
and run them in their new location with "test" prefixes.

Split external storage tests into their own separate host test suite,
and clean up various invocation methods to call through to unified
Utils versions. Start adding skeleton test for adoptable storage.

Bug: 22633097
Change-Id: I5b8ffade970ff0086c95ddd5cd28fc069826a21a
ppsecurity/src/com/android/cts/appsecurity/AdoptionHostTest.java
ppsecurity/src/com/android/cts/appsecurity/AppSecurityTests.java
ppsecurity/src/com/android/cts/appsecurity/DocumentsTest.java
ppsecurity/src/com/android/cts/appsecurity/ExternalStorageHostTest.java
ppsecurity/src/com/android/cts/appsecurity/PermissionsHostTest.java
ppsecurity/src/com/android/cts/appsecurity/Utils.java
ppsecurity/test-apps/ExternalStorageApp/src/com/android/cts/externalstorageapp/CommonExternalStorageTest.java
ppsecurity/test-apps/ExternalStorageApp/src/com/android/cts/externalstorageapp/ExternalStorageTest.java
ppsecurity/test-apps/ExternalStorageApp/src/com/android/cts/externalstorageapp/GiftTest.java
ppsecurity/test-apps/MultiUserStorageApp/src/com/android/cts/multiuserstorageapp/MultiUserStorageTest.java
ppsecurity/test-apps/ReadExternalStorageApp/src/com/android/cts/readexternalstorageapp/ReadExternalStorageTest.java
ppsecurity/test-apps/ReadExternalStorageApp/src/com/android/cts/readexternalstorageapp/ReadGiftTest.java
ppsecurity/test-apps/WriteExternalStorageApp/src/com/android/cts/writeexternalstorageapp/WriteExternalStorageTest.java
ppsecurity/test-apps/WriteExternalStorageApp/src/com/android/cts/writeexternalstorageapp/WriteGiftTest.java
127c71e3b171de5688e61d142a065130a8903ad2 21-Jul-2015 Benjamin Franz <bfranz@google.com> Fix flaky permission tests

Because finishing an activity is not immediate, the activity manager
sometimes uses the existing instance of the PermissionActivity rather
than create a new one. This can be circumvented by the addition of the
FLAG_ACTIVITY_MULTIPLE_TASK flag to the launch intent.

Bug: 22505215
Change-Id: I24b771ba1918cf607d9184a6b70ce93a0f046f79
evicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/PermissionsTest.java
07e8ae4a12beddbf849167bc0d6f51096fcfee9b 17-Jul-2015 Jeff Sharkey <jsharkey@android.com> am c9d81972: am 9b945bfe: am 6a94ab3b: am 17adf5aa: am be675066: Merge "Need to ask for both storage permissions." into mnc-dev

* commit 'c9d819724dfe1e4b6a57d04ecbdbce8496ebe2a5':
Need to ask for both storage permissions.
c9d819724dfe1e4b6a57d04ecbdbce8496ebe2a5 17-Jul-2015 Jeff Sharkey <jsharkey@android.com> am 9b945bfe: am 6a94ab3b: am 17adf5aa: am be675066: Merge "Need to ask for both storage permissions." into mnc-dev

* commit '9b945bfeaf5f6601d20c6b276b8c75989d10c889':
Need to ask for both storage permissions.
606b11ab63cd9b063da3bf2c8c9da4aff5628d1c 17-Jul-2015 Jeff Sharkey <jsharkey@android.com> am be675066: Merge "Need to ask for both storage permissions." into mnc-dev

* commit 'be67506698e0e1fc0a90edd3a537dd4f25e079e6':
Need to ask for both storage permissions.
be67506698e0e1fc0a90edd3a537dd4f25e079e6 17-Jul-2015 Jeff Sharkey <jsharkey@android.com> Merge "Need to ask for both storage permissions." into mnc-dev
856e331067fbccead3aa81dc276ff0a3c6f1b156 17-Jul-2015 Jeff Sharkey <jsharkey@android.com> Need to ask for both storage permissions.

In the runtime model, requesting WRITE doesn't imply READ, so ask
for both.

Bug: 22514968
Change-Id: Iff47f6d3b32de5f6f508b2d82764936139d0a802
ppsecurity/src/com/android/cts/appsecurity/PermissionsHostTest.java
ppsecurity/test-apps/UsePermissionApp/src/com/android/cts/usepermission/UsePermissionTest.java
ppsecurity/test-apps/UsePermissionAppCompat/src/com/android/cts/usepermission/UsePermissionCompatTest.java
239c6b2d6181c414e6c5766aec990e2246712090 17-Jul-2015 Ian Pedowitz <ijpedowitz@google.com> Fix the build, compatibility-device-util_v2 was renamed to
compatibility-device-util in master, not upstream

Revert "Revert "Track rename of compatibility-device-util""

This reverts commit b6121206f1409a573439570ccf24e0f083de9e5c.

Change-Id: Ib5482e5d3020f3f3540d0dbaf4121f374797fe9b
evicepolicy/app/ManagedProfile/Android.mk
f34b4d8b3e7d049a81c5b362e8c9ed430522d74f 17-Jul-2015 Robin Lee <rgl@google.com> am 0d8e42a0: am 5a785846: am bc8f67b1: am 63a86223: am b6121206: Revert "Track rename of compatibility-device-util"

* commit '0d8e42a0b475c99c54f55e83764836235afa9813':
Revert "Track rename of compatibility-device-util"
0d8e42a0b475c99c54f55e83764836235afa9813 17-Jul-2015 Robin Lee <rgl@google.com> am 5a785846: am bc8f67b1: am 63a86223: am b6121206: Revert "Track rename of compatibility-device-util"

* commit '5a785846882d9a120311af1bbf60b5714c850c2c':
Revert "Track rename of compatibility-device-util"
8eda7896b8d04aca93d26eca97c9eb766532d197 17-Jul-2015 Robin Lee <rgl@google.com> am bd089bdf: am 63295fcb: am de6f0145: am da9312b4: Track rename of compatibility-device-util

* commit 'bd089bdf1ed0f0c3117d82c15ab2bcaf6ff07f8e':
Track rename of compatibility-device-util
50f77ab9bb5f72537eadb57bdab09661ea540823 17-Jul-2015 Robin Lee <rgl@google.com> am b6121206: Revert "Track rename of compatibility-device-util"

* commit 'b6121206f1409a573439570ccf24e0f083de9e5c':
Revert "Track rename of compatibility-device-util"
8284a8673f202383899083f8df21f3fbd957c03b 17-Jul-2015 Robin Lee <rgl@google.com> am da9312b4: Track rename of compatibility-device-util

* commit 'da9312b4c23eb19d475a0bf6c901e67d295b721a':
Track rename of compatibility-device-util
8988ac480dfebed28b8662d32024f2405a13552f 17-Jul-2015 Robin Lee <rgl@google.com> Track rename of compatibility-device-util

Was compatibility-device-util_v2. This name no longer exists.

Change-Id: I2a35134975cdd2142dfb8cddea20c49dce8a3fed
(cherry picked from commit da9312b4c23eb19d475a0bf6c901e67d295b721a)
evicepolicy/app/ManagedProfile/Android.mk
b6121206f1409a573439570ccf24e0f083de9e5c 17-Jul-2015 Robin Lee <rgl@google.com> Revert "Track rename of compatibility-device-util"

This reverts commit da9312b4c23eb19d475a0bf6c901e67d295b721a.

Change-Id: I1b0c07b749ba2fd60bc0a46dceddbccdecc1b317
evicepolicy/app/ManagedProfile/Android.mk
da9312b4c23eb19d475a0bf6c901e67d295b721a 17-Jul-2015 Robin Lee <rgl@google.com> Track rename of compatibility-device-util

Was compatibility-device-util_v2. This name no longer exists.

Change-Id: I2a35134975cdd2142dfb8cddea20c49dce8a3fed
evicepolicy/app/ManagedProfile/Android.mk
2dd3843e6de7a7c5bb4210897858b0a031da852f 17-Jul-2015 Robin Lee <rgl@google.com> am 77e8677d: am 8435feb4: am 45511f25: am aefff64a: am edbf1334: Merge "Tests for managed WiFi deleting on owner removal" into mnc-dev

* commit '77e8677d509dfe09cbfe31243b09c451c864ea15':
Tests for managed WiFi deleting on owner removal
77e8677d509dfe09cbfe31243b09c451c864ea15 17-Jul-2015 Robin Lee <rgl@google.com> am 8435feb4: am 45511f25: am aefff64a: am edbf1334: Merge "Tests for managed WiFi deleting on owner removal" into mnc-dev

* commit '8435feb4427f87b02b7de07750b10f95ddf09513':
Tests for managed WiFi deleting on owner removal
93846dd1760b933c625d40ddd4c155ce87dfa93f 17-Jul-2015 Robin Lee <rgl@google.com> am edbf1334: Merge "Tests for managed WiFi deleting on owner removal" into mnc-dev

* commit 'edbf13347c5ef867dbd63845f50f35dca0618ee1':
Tests for managed WiFi deleting on owner removal
edbf13347c5ef867dbd63845f50f35dca0618ee1 17-Jul-2015 Robin Lee <rgl@google.com> Merge "Tests for managed WiFi deleting on owner removal" into mnc-dev
fa32e70f32a49d649147c02af8387d2a3fbbf9bf 16-Jul-2015 Esteban Talavera <etalavera@google.com> am 0ba9fba5: am 0d0256f7: am fd1ad86d: am d03cd44c: am 5b769438: Merge "Added more logging to permissions tests" into mnc-dev

* commit '0ba9fba5980879c9da939052296abeea66d4f693':
Added more logging to permissions tests
0ba9fba5980879c9da939052296abeea66d4f693 16-Jul-2015 Esteban Talavera <etalavera@google.com> am 0d0256f7: am fd1ad86d: am d03cd44c: am 5b769438: Merge "Added more logging to permissions tests" into mnc-dev

* commit '0d0256f7c4afaaa778dbbc4b24c06ca5c62312d8':
Added more logging to permissions tests
6901a4fd2c8259d4b306ca425c68dec946dfb8f7 16-Jul-2015 Esteban Talavera <etalavera@google.com> am 5b769438: Merge "Added more logging to permissions tests" into mnc-dev

* commit '5b769438e99a0ff331fd279414639200972f36e3':
Added more logging to permissions tests
947ffe324e7f39a0aa0000f07921d3483cf5bd1e 11-Jul-2015 Robin Lee <rgl@google.com> Tests for managed WiFi deleting on owner removal

Tests that removing a managed profile will also remove any network
information associated with that profile.

Bug: 19573610
Change-Id: Icf910728632ac3f8de0c03e8c12490dbac1c4155
evicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/WifiConfigLockdownTest.java
evicepolicy/app/ManagedProfile/Android.mk
evicepolicy/app/ManagedProfile/AndroidManifest.xml
evicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/WifiTest.java
evicepolicy/app/WifiConfigCreator/src/com/android/cts/deviceowner/wificonfigcreator/WifiConfigCreatorActivity.java
evicepolicy/src/com/android/cts/devicepolicy/ManagedProfileTest.java
373164c5f20e250955ff9f10768fc3c75dc079a2 15-Jul-2015 Esteban Talavera <etalavera@google.com> Added more logging to permissions tests

Bug: 22505215
Change-Id: Ibcbbd16334481eb657cf38fe108d8ccaf4d61857
evicepolicy/app/PermissionApp/src/com/android/cts/permission/permissionapp/PermissionActivity.java
e5b543b2df8c79b3c3f47550107870d4cadb5354 15-Jul-2015 Jeff Sharkey <jsharkey@android.com> am 3de21b83: am 51abf08d: am 00d7a25b: am 9cb87076: am 1930106a: Tests to verify relaxed DownloadManager behavior.

* commit '3de21b83b1321c1322ff309320785f3a8d42bd60':
Tests to verify relaxed DownloadManager behavior.
3de21b83b1321c1322ff309320785f3a8d42bd60 15-Jul-2015 Jeff Sharkey <jsharkey@android.com> am 51abf08d: am 00d7a25b: am 9cb87076: am 1930106a: Tests to verify relaxed DownloadManager behavior.

* commit '51abf08d18242606f7775fa69e6209ce42dd16d6':
Tests to verify relaxed DownloadManager behavior.
c7fbbaa2d2af5a901a92f3da8a276f45016dada1 14-Jul-2015 Jeff Sharkey <jsharkey@android.com> am 1930106a: Tests to verify relaxed DownloadManager behavior.

* commit '1930106ac0f6485cdb907bc89d2296d546365a64':
Tests to verify relaxed DownloadManager behavior.
1930106ac0f6485cdb907bc89d2296d546365a64 14-Jul-2015 Jeff Sharkey <jsharkey@android.com> Tests to verify relaxed DownloadManager behavior.

DownloadManager now offers to download to package-specific
directories on external storage without requiring the broad
write permission.

Bug: 22135060
Change-Id: I7d6456688e86c330daa0c2ae3e2aa4f4e20f9c67
ppsecurity/test-apps/ExternalStorageApp/AndroidManifest.xml
ppsecurity/test-apps/ExternalStorageApp/src/com/android/cts/externalstorageapp/ExternalStorageTest.java
d3e73827a2d8df0c4f8b3bcf6184fa395f70f4c6 14-Jul-2015 Guang Zhu <guangzhu@google.com> am 89f29ca1: am 0d78b0c0: am d144f24c: am 69280fe2: am 355b56db: Merge "use locked orientation instead of "nosensor"" into mnc-dev

* commit '89f29ca1d83115f5dcc61b7afd05e8f8c24b54d3':
use locked orientation instead of "nosensor"
89f29ca1d83115f5dcc61b7afd05e8f8c24b54d3 14-Jul-2015 Guang Zhu <guangzhu@google.com> am 0d78b0c0: am d144f24c: am 69280fe2: am 355b56db: Merge "use locked orientation instead of "nosensor"" into mnc-dev

* commit '0d78b0c01aa4fb47fe0efd45057ed5d77f83b163':
use locked orientation instead of "nosensor"
6f583a8b95b062753bbd60444b85f595b4fdd8d4 14-Jul-2015 Guang Zhu <guangzhu@google.com> am 355b56db: Merge "use locked orientation instead of "nosensor"" into mnc-dev

* commit '355b56db3c0218e30b0be5017871231ff13e068f':
use locked orientation instead of "nosensor"
e3227c83b21c650ff409c2ab4969719a80e7ac2e 14-Jul-2015 Guang Zhu <guangzhu@google.com> use locked orientation instead of "nosensor"

"nosensor" still causes screen rotation on certain devices

Bug: 21876569
Change-Id: I48d853a7264849800629433a42bc8e6d9e12c591
onkey/test-apps/CtsMonkeyApp/AndroidManifest.xml
6c41fcb1f048666bd5bd1ef29a870d66f517c713 14-Jul-2015 Jeff Sharkey <jsharkey@android.com> am 95d93b63: am 8fccae01: am 9ead040e: am e9272ecb: am 44584495: Merge "Tests to verify runtime storage permissions." into mnc-dev

* commit '95d93b6335c1f87f728df3c803e0dc21ea9537ca':
Tests to verify runtime storage permissions.
95d93b6335c1f87f728df3c803e0dc21ea9537ca 14-Jul-2015 Jeff Sharkey <jsharkey@android.com> am 8fccae01: am 9ead040e: am e9272ecb: am 44584495: Merge "Tests to verify runtime storage permissions." into mnc-dev

* commit '8fccae01c4cb1aa99cb49504cf02c7e706e82876':
Tests to verify runtime storage permissions.
101d1c3d193ac4446ae8a443248f647be1d5867f 20-May-2015 Eric Bae <eric.bae@lge.com> Change assertcode of checkSignalStrength in DumpsysHostTest

Change assertEquals to assertTrue in checkSignalStrength, Because this assertcode is not sufficient to check RSSI Levels.

Change-Id: I058aadd663cc4f1aa3531e60d5c5e70b0b48864f
(cherry picked from commit 9bac23ef4d333566112494334aa80b314bf82e78)
umpsys/src/android/dumpsys/cts/DumpsysHostTest.java
564b5992cd5024f9b0c7ecff11595b4c219525a9 13-Jul-2015 Jeff Sharkey <jsharkey@android.com> am 44584495: Merge "Tests to verify runtime storage permissions." into mnc-dev

* commit '44584495ebcc4bafdf2da6a7f9460c2787329670':
Tests to verify runtime storage permissions.
f5fdad9d02b9c33896f573e5e44c58090b58511d 13-Jul-2015 Jeff Sharkey <jsharkey@android.com> Tests to verify runtime storage permissions.

Create host-side test to start verifying runtime permissions behavior
using two versions of a package that targets both modern and legacy
API levels.

The modern app uses UI automation to request and grant the storage
permission to itself, which verifies that we grant permission without
killing the app.

Bug: 21858077
Change-Id: Ie5a44aa63398874b4366d60c595d356375babff7
ppsecurity/src/com/android/cts/appsecurity/PermissionsHostTest.java
ppsecurity/test-apps/ExternalStorageApp/src/com/android/cts/externalstorageapp/CommonExternalStorageTest.java
ppsecurity/test-apps/UsePermissionApp/Android.mk
ppsecurity/test-apps/UsePermissionApp/AndroidManifest.xml
ppsecurity/test-apps/UsePermissionApp/src/com/android/cts/usepermission/MyActivity.java
ppsecurity/test-apps/UsePermissionApp/src/com/android/cts/usepermission/UsePermissionTest.java
ppsecurity/test-apps/UsePermissionAppCompat/Android.mk
ppsecurity/test-apps/UsePermissionAppCompat/AndroidManifest.xml
ppsecurity/test-apps/UsePermissionAppCompat/src/com/android/cts/usepermission/UsePermissionCompatTest.java
b617fb4c0722888778d5845206e5c57ba741c652 10-Jul-2015 Daniel Xie <dxie@google.com> am d19e15e7: am 87e7ec02: am c242ecb7: am 50a2e60a: am b9468cfa: am 6a12ca0e: am f53974f5: am 7ccedc6b: am 9f243fbe: Merge "Change assertcode of checkSignalStrength in DumpsysHostTest" into lollipop-mr1-cts-dev

* commit 'd19e15e7cf4a7855ff6a3be1d236ee9cf405f8c1':
Change assertcode of checkSignalStrength in DumpsysHostTest
d19e15e7cf4a7855ff6a3be1d236ee9cf405f8c1 10-Jul-2015 Daniel Xie <dxie@google.com> am 87e7ec02: am c242ecb7: am 50a2e60a: am b9468cfa: am 6a12ca0e: am f53974f5: am 7ccedc6b: am 9f243fbe: Merge "Change assertcode of checkSignalStrength in DumpsysHostTest" into lollipop-mr1-cts-dev

* commit '87e7ec02faa90fe937c8fc7c14612fbb37ba29e1':
Change assertcode of checkSignalStrength in DumpsysHostTest
c5f3b44c3913e620050c98c03ff70dfb48e1cb6f 10-Jul-2015 Daniel Xie <dxie@google.com> am b9468cfa: am 6a12ca0e: am f53974f5: am 7ccedc6b: am 9f243fbe: Merge "Change assertcode of checkSignalStrength in DumpsysHostTest" into lollipop-mr1-cts-dev

* commit 'b9468cfafbca7ffde4e3c5b8f0b5cf0dc713a286':
Change assertcode of checkSignalStrength in DumpsysHostTest
b9468cfafbca7ffde4e3c5b8f0b5cf0dc713a286 10-Jul-2015 Daniel Xie <dxie@google.com> am 6a12ca0e: am f53974f5: am 7ccedc6b: am 9f243fbe: Merge "Change assertcode of checkSignalStrength in DumpsysHostTest" into lollipop-mr1-cts-dev

* commit '6a12ca0efeaf90875fe7d0fd720725d11065b0c0':
Change assertcode of checkSignalStrength in DumpsysHostTest
29751a851b34ccf130664e8d803579a0db5e184d 10-Jul-2015 Benjamin Franz <bfranz@google.com> am d56e346b: Merge "Further extend cts tests for runtime permission policies" into mnc-dev

* commit 'd56e346bb734a50595a096909b3b6d4354b4646a':
Further extend cts tests for runtime permission policies
3cfbce9d60298afdbc187a47637149eb2c0b0ee7 10-Jul-2015 Benjamin Franz <bfranz@google.com> am 8ddb3de9: am 9462bf2c: am dcfed2ad: am a2712e3a: am d56e346b: Merge "Further extend cts tests for runtime permission policies" into mnc-dev

* commit '8ddb3de9f45e0220b72ddcc6411fce7087c2f6cd':
Further extend cts tests for runtime permission policies
8ddb3de9f45e0220b72ddcc6411fce7087c2f6cd 10-Jul-2015 Benjamin Franz <bfranz@google.com> am 9462bf2c: am dcfed2ad: am a2712e3a: am d56e346b: Merge "Further extend cts tests for runtime permission policies" into mnc-dev

* commit '9462bf2c1aae4c05a1edc2e955a9b18dccc3732e':
Further extend cts tests for runtime permission policies
e12bbff8e42beda9afd3f6b00eff7a194536613f 10-Jul-2015 Benjamin Franz <bfranz@google.com> Further extend cts tests for runtime permission policies

Added further checks to existing tests and adding a test that verifies
that app updates keep existing policies in place.

Bug: 22192363
Change-Id: I7df215556e2bc47b2a8c529ab0acf13e856a1a7f
evicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/PermissionsTest.java
evicepolicy/src/com/android/cts/devicepolicy/BaseDevicePolicyTest.java
evicepolicy/src/com/android/cts/devicepolicy/ManagedProfileTest.java
6a12ca0efeaf90875fe7d0fd720725d11065b0c0 10-Jul-2015 Daniel Xie <dxie@google.com> am f53974f5: am 7ccedc6b: am 9f243fbe: Merge "Change assertcode of checkSignalStrength in DumpsysHostTest" into lollipop-mr1-cts-dev

* commit 'f53974f5b51a015b83ae3c66fc87cc948d5164f4':
Change assertcode of checkSignalStrength in DumpsysHostTest
f53974f5b51a015b83ae3c66fc87cc948d5164f4 10-Jul-2015 Daniel Xie <dxie@google.com> am 7ccedc6b: am 9f243fbe: Merge "Change assertcode of checkSignalStrength in DumpsysHostTest" into lollipop-mr1-cts-dev

* commit '7ccedc6b58acf572fb3ee614dccf92fda58231cc':
Change assertcode of checkSignalStrength in DumpsysHostTest
9f243fbe7058a713f940e7191e2cbb23ad41d759 10-Jul-2015 Daniel Xie <dxie@google.com> Merge "Change assertcode of checkSignalStrength in DumpsysHostTest" into lollipop-mr1-cts-dev
0f1a373d170f3c904d540e6e67b0ead268f8956a 09-Jul-2015 Guang Zhu <guangzhu@google.com> am 58655e33: am 5c496c88: am 1dd09a43: am efd834bd: am 7a7b890e: Merge "lock device orientation for CTS monkey seed test" into mnc-dev

* commit '58655e33b1288a4e5362cc5f080f7f51faae0a6e':
lock device orientation for CTS monkey seed test
58655e33b1288a4e5362cc5f080f7f51faae0a6e 09-Jul-2015 Guang Zhu <guangzhu@google.com> am 5c496c88: am 1dd09a43: am efd834bd: am 7a7b890e: Merge "lock device orientation for CTS monkey seed test" into mnc-dev

* commit '5c496c8815b5fbc066e2acf72f6ae168ff5289c3':
lock device orientation for CTS monkey seed test
c1c6ef420ef4331ad79e12a5d2e0c0cdd34391bf 09-Jul-2015 Jeff Sharkey <jsharkey@android.com> am 1ff8977a: am 72b7c9aa: am 6d925e87: am bfef2dfa: am eccb68d8: Merge "Grant runtime permissions for split tests." into mnc-dev

* commit '1ff8977a5b416680fb5f0941bab6a5de3215f021':
Grant runtime permissions for split tests.
1ff8977a5b416680fb5f0941bab6a5de3215f021 09-Jul-2015 Jeff Sharkey <jsharkey@android.com> am 72b7c9aa: am 6d925e87: am bfef2dfa: am eccb68d8: Merge "Grant runtime permissions for split tests." into mnc-dev

* commit '72b7c9aac95b8232b80446c6489394322288d9cc':
Grant runtime permissions for split tests.
1a9e4a4dc90fece83e7d37a1f462a4b63d608ebb 09-Jul-2015 Guang Zhu <guangzhu@google.com> am 7a7b890e: Merge "lock device orientation for CTS monkey seed test" into mnc-dev

* commit '7a7b890effd444fef4dfee5fbb5862ac7747887f':
lock device orientation for CTS monkey seed test
7a7b890effd444fef4dfee5fbb5862ac7747887f 09-Jul-2015 Guang Zhu <guangzhu@google.com> Merge "lock device orientation for CTS monkey seed test" into mnc-dev
b5354a768918fbbd774a85dcbbbc6e9e531063b6 09-Jul-2015 Jeff Sharkey <jsharkey@android.com> am eccb68d8: Merge "Grant runtime permissions for split tests." into mnc-dev

* commit 'eccb68d8f7004640ca6ba531515d770970876b08':
Grant runtime permissions for split tests.
825fd34f63b06ccb69001a9775e9459a2ab948a0 09-Jul-2015 Jeff Sharkey <jsharkey@android.com> Grant runtime permissions for split tests.

Bug: 22331569
Change-Id: I12151f3c0849a13fc90d2a71eb86bb1dd9943514
ppsecurity/src/com/android/cts/appsecurity/SplitTests.java
22cec914ebde2c1dde668d825997e61fed50d328 09-Jul-2015 Guang Zhu <guangzhu@google.com> lock device orientation for CTS monkey seed test

Make the activities follow device "natural" orientation so that
the generated coordinates isn't affected by physical placement
of devices.

Bug: 21876569
Change-Id: I494a35f56a739e8a2dcc373a03d1622c284c8347
onkey/test-apps/CtsMonkeyApp/AndroidManifest.xml
8aaf38ec0b76df2329f62c256e9d36648d69d97b 08-Jul-2015 Stuart Scott <stuartscott@google.com> Merge "Revert "Revert "Moving to common compatibility utils."""
92423df543c8e11070c57585a6450e7f4e9a1a42 08-Jul-2015 Stuart Scott <stuartscott@google.com> Revert "Revert "Moving to common compatibility utils.""

This reverts commit 992b459293c4dcae2a12cdf5923e3e26a476bd1a.

This change includes the fix which caused the build breakage which
caused the revert this is reverting.

bug: 21762834
Change-Id: I1df495ba219208b07a7d7c8ac99d2890052caf69
ppsecurity/src/com/android/cts/appsecurity/AppSecurityTests.java
ppsecurity/src/com/android/cts/appsecurity/SplitTests.java
evicepolicy/src/com/android/cts/devicepolicy/BaseDevicePolicyTest.java
onkey/src/com/android/cts/monkey/AbstractMonkeyTest.java
ample/Android.mk
heme/src/android/theme/cts/ThemeHostTest.java
sb/src/com/android/cts/usb/TestUsbTest.java
3a9aaaae21ef365b18014bb5df18e2ce5c23d340 08-Jul-2015 Benjamin Franz <bfranz@google.com> am 44a9febe: am fb95cd12: am e17ad166: am 73244045: am e5bed3b3: Merge "Extend Managed Profile permissions tests" into mnc-dev

* commit '44a9febe6476c22c489228eb1d0cb4ff8920ede3':
Extend Managed Profile permissions tests
44a9febe6476c22c489228eb1d0cb4ff8920ede3 08-Jul-2015 Benjamin Franz <bfranz@google.com> am fb95cd12: am e17ad166: am 73244045: am e5bed3b3: Merge "Extend Managed Profile permissions tests" into mnc-dev

* commit 'fb95cd12fa637161d33e492f01279b494aa31064':
Extend Managed Profile permissions tests
a86971c0d4972f08c3753ce4ce6b714f6d71e092 08-Jul-2015 Benjamin Franz <bfranz@google.com> am e5bed3b3: Merge "Extend Managed Profile permissions tests" into mnc-dev

* commit 'e5bed3b3cee5722a55b8ec78198e80c23d89aa34':
Extend Managed Profile permissions tests
e5bed3b3cee5722a55b8ec78198e80c23d89aa34 08-Jul-2015 Benjamin Franz <bfranz@google.com> Merge "Extend Managed Profile permissions tests" into mnc-dev
e98d3ee84c432a7db38aca253ff0654783ae5632 06-Jul-2015 Benjamin Franz <bfranz@google.com> Extend Managed Profile permissions tests

Add tests for DevicePolicyManager.setPermissionPolicy and add a test
app that actually verifies that the permission was granted successfully.

Bug: 22192363
Change-Id: Ia7c86f5b348eba49f87e73e934fbeafdcbf620ff
evicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/PermissionsTest.java
evicepolicy/app/PermissionApp/Android.mk
evicepolicy/app/PermissionApp/AndroidManifest.xml
evicepolicy/app/PermissionApp/src/com/android/cts/permission/permissionapp/PermissionActivity.java
evicepolicy/src/com/android/cts/devicepolicy/ManagedProfileTest.java
15cdbe108caab613200fc2a14fdb6e4df40a56b8 08-Jul-2015 Esteban Talavera <etalavera@google.com> am 896d963c: am cd9e3a46: am b417e6f3: am 8e2526dd: am 18d5c213: Merge "Increase timeout when removing active admin in CTS" into mnc-dev

* commit '896d963c1bc2ca9f2d51e934ce7199d239fbb6eb':
Increase timeout when removing active admin in CTS
896d963c1bc2ca9f2d51e934ce7199d239fbb6eb 08-Jul-2015 Esteban Talavera <etalavera@google.com> am cd9e3a46: am b417e6f3: am 8e2526dd: am 18d5c213: Merge "Increase timeout when removing active admin in CTS" into mnc-dev

* commit 'cd9e3a46b7994802f3adf337c5d95f66f88b10b3':
Increase timeout when removing active admin in CTS
d90157c452682c8b8a05e040ffed1f91c89d5aa7 08-Jul-2015 Esteban Talavera <etalavera@google.com> am 18d5c213: Merge "Increase timeout when removing active admin in CTS" into mnc-dev

* commit '18d5c213be343bfba1018cc99746e47cc0afa6f7':
Increase timeout when removing active admin in CTS
18d5c213be343bfba1018cc99746e47cc0afa6f7 08-Jul-2015 Esteban Talavera <etalavera@google.com> Merge "Increase timeout when removing active admin in CTS" into mnc-dev
992b459293c4dcae2a12cdf5923e3e26a476bd1a 08-Jul-2015 Ian Pedowitz <ijpedowitz@google.com> Revert "Moving to common compatibility utils."

This reverts commit b054026b4d0347f958de7c4b3eaa6a52ff3d20cd.

Master is red, fixing the build by reverting all CL's merged from
b/21762834 today.

Bug: 21762834

Change-Id: Ibe31d8b615e55387ebbbd953f793f491ee30a2e8
ppsecurity/src/com/android/cts/appsecurity/AppSecurityTests.java
ppsecurity/src/com/android/cts/appsecurity/SplitTests.java
evicepolicy/src/com/android/cts/devicepolicy/BaseDevicePolicyTest.java
onkey/src/com/android/cts/monkey/AbstractMonkeyTest.java
ample/Android.mk
heme/src/android/theme/cts/ThemeHostTest.java
sb/src/com/android/cts/usb/TestUsbTest.java
b054026b4d0347f958de7c4b3eaa6a52ff3d20cd 06-Jul-2015 Stuart Scott <stuartscott@google.com> Moving to common compatibility utils.

bug:21762834
Change-Id: Ie0bf75bb1621308118633f41e063df40b529478d
ppsecurity/src/com/android/cts/appsecurity/AppSecurityTests.java
ppsecurity/src/com/android/cts/appsecurity/SplitTests.java
evicepolicy/src/com/android/cts/devicepolicy/BaseDevicePolicyTest.java
onkey/src/com/android/cts/monkey/AbstractMonkeyTest.java
ample/Android.mk
heme/src/android/theme/cts/ThemeHostTest.java
sb/src/com/android/cts/usb/TestUsbTest.java
dabf069d7bb20b5bae11d03e13b489e8b88eed3b 07-Jul-2015 John Reck <jreck@google.com> am 296c48c6: am e466c928: am c54c77ba: am 98c971d3: am 403e956e: Merge "Update gfxstats cts test" into mnc-dev

* commit '296c48c6ece7339087f695b5a7460ed1863c3966':
Update gfxstats cts test
6c3cbaea278baf13317af1bc239edac2c544a97c 07-Jul-2015 Esteban Talavera <etalavera@google.com> Increase timeout when removing active admin in CTS

Occasionally seeing timeouts when removing active admin in
testDelegatedCertInstaller. Might be a deadlock but changing the
timeout first just in case. Sleeping for 1 second at a time now
instead that 100ms, with a total timeout of 2min instead of 100secs

Bug: 22320787
Change-Id: I6a540c4c97414669eb69709472c5a2910f87ac7c
evicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/PrimaryUserAdminHelper.java
296c48c6ece7339087f695b5a7460ed1863c3966 07-Jul-2015 John Reck <jreck@google.com> am e466c928: am c54c77ba: am 98c971d3: am 403e956e: Merge "Update gfxstats cts test" into mnc-dev

* commit 'e466c928a234c18e5901e0f4616bea9fbd9b87f4':
Update gfxstats cts test
5f26887daec80e38b8c24c61e34cb5c9e9806d4c 07-Jul-2015 John Reck <jreck@google.com> am 403e956e: Merge "Update gfxstats cts test" into mnc-dev

* commit '403e956ec9d96014c8d9455167ed689d6c3cd384':
Update gfxstats cts test
8c26bbb490e38b1aad0897836ac07d615cc906b0 07-Jul-2015 John Reck <jreck@google.com> Update gfxstats cts test

Bug: 20853441
Change-Id: I2c7bbca9a28133dd2772f8a713f9ad8101da5b0a
umpsys/src/android/dumpsys/cts/DumpsysHostTest.java
c87193d4b1207f8ba3104dea9216d33ab4b685d7 30-Jun-2015 Zoltan Szatmary-Ban <szatmz@google.com> Fix broken build.

CTS compatibility-device-util library has changed module name.

Change-Id: Ia5e5a64725a6be4314a9be1109f741996622c916
evicepolicy/app/DeviceOwner/Android.mk
evicepolicy/app/WifiConfigCreator/Android.mk
9b151d0455aa75a2adf06c54c2749d4f0d782ccf 30-Jun-2015 Zoltan Szatmary-Ban <szatmz@google.com> am 29088f3d: am 3945bd67: am b99428e1: Add CTS tests for WiFi config lockdown

* commit '29088f3d4d0d5793aed3f32d081fe343a022ae50':
Add CTS tests for WiFi config lockdown
29088f3d4d0d5793aed3f32d081fe343a022ae50 30-Jun-2015 Zoltan Szatmary-Ban <szatmz@google.com> am 3945bd67: am b99428e1: Add CTS tests for WiFi config lockdown

* commit '3945bd67909df02ae8c3c67d24e7dc26594a8e6c':
Add CTS tests for WiFi config lockdown
b99428e18223e1e9c51914b0ff659f25fcb2bd5b 24-Jun-2015 Zoltan Szatmary-Ban <szatmz@google.com> Add CTS tests for WiFi config lockdown

Bug: 19570185
Change-Id: I379f64885ad3441ed6ea61713b530e16dfa80ae0
evicepolicy/app/DeviceOwner/Android.mk
evicepolicy/app/DeviceOwner/AndroidManifest.xml
evicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/BaseDeviceOwnerTest.java
evicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/WifiConfigLockdownTest.java
evicepolicy/app/WifiConfigCreator/Android.mk
evicepolicy/app/WifiConfigCreator/AndroidManifest.xml
evicepolicy/app/WifiConfigCreator/src/com/android/cts/deviceowner/wificonfigcreator/WifiConfigCreatorActivity.java
evicepolicy/src/com/android/cts/devicepolicy/DeviceOwnerTest.java
01d16fb4438c9a1b3394a11b9967c90f4273cd04 29-Jun-2015 Daniel Cashman <dcashman@google.com> am b0c1698e: am 7913f905: am 0f680196: Merge "Introduce seapp_neverallow test"

* commit 'b0c1698e2d25605992864ccfe50ae58a07e77024':
Introduce seapp_neverallow test
b0c1698e2d25605992864ccfe50ae58a07e77024 29-Jun-2015 Daniel Cashman <dcashman@google.com> am 7913f905: am 0f680196: Merge "Introduce seapp_neverallow test"

* commit '7913f9059d32c7dba40b1a5604c11a9450fa9e04':
Introduce seapp_neverallow test
b2884544b6fa414f559165274c46afe5919aef59 12-Jun-2015 William Roberts <william.c.roberts@intel.com> Introduce seapp_neverallow test

Augment existing seapp_contexts check to pass in the
general seapp_contexts neverallow file. Also, utilize
silent output feature of checkseapp.

Example Failure:
06-16 14:01:01 I/0a83bb8b: android.cts.security.SELinuxHostTest#testValidSeappContexts FAIL
junit.framework.AssertionFailedError: The seapp_contexts file was invalid:
Error: Rule in File "/tmp/seapp_contexts4625729967117239733.tmp" on line 10: "user=fake domain=system_app type=app_data_file" violates neverallow in File "/tmp/SELinuxHostTest8318648480567665560.tmp" on line 1: "user=((?!system).)* domain=system_app"

Change-Id: I171ed43cf4ae4961f66d5d8f56695345493f1261
Signed-off-by: William Roberts <william.c.roberts@intel.com>
ecurity/Android.mk
ecurity/src/android/cts/security/SELinuxHostTest.java
86b87d4c6455120621e5eef47e2bec04d7d26e94 25-Jun-2015 Guang Zhu <guangzhu@google.com> am 748371ca: am 390563de: am 38dd7180: Merge "add more logging to monkey seed test" into mnc-dev

* commit '748371cada4c8bdb776c4c4590a5779c9910835a':
add more logging to monkey seed test
748371cada4c8bdb776c4c4590a5779c9910835a 25-Jun-2015 Guang Zhu <guangzhu@google.com> am 390563de: am 38dd7180: Merge "add more logging to monkey seed test" into mnc-dev

* commit '390563dee41f7af310091f112769f3dacf751387':
add more logging to monkey seed test
38dd71806fdc699273eea3fa0f1d325079d95188 25-Jun-2015 Guang Zhu <guangzhu@google.com> Merge "add more logging to monkey seed test" into mnc-dev
66f02c938c40c1359a0a928ae05f0f27dd85d855 25-Jun-2015 Tony Mak <tonymak@google.com> am 6690e79a: am b63fc574: am 0687757c: Merge "CTS for setCameraDisabled" into mnc-dev

* commit '6690e79a7fed1428580c4810dcf953b3d28c10df':
CTS for setCameraDisabled
0d298cf82138b2a95a440926636c70e7f9982932 25-Jun-2015 Kenny Guy <kennyguy@google.com> am 89217a63: am f924190f: am a22962bb: Merge "Move LauncherAppsTests to AndroidJUnitRunner." into mnc-dev

* commit '89217a6354428f9bcf259c35aae097e723f12637':
Move LauncherAppsTests to AndroidJUnitRunner.
6690e79a7fed1428580c4810dcf953b3d28c10df 25-Jun-2015 Tony Mak <tonymak@google.com> am b63fc574: am 0687757c: Merge "CTS for setCameraDisabled" into mnc-dev

* commit 'b63fc57499d4980305948975595a64644f29603c':
CTS for setCameraDisabled
89217a6354428f9bcf259c35aae097e723f12637 25-Jun-2015 Kenny Guy <kennyguy@google.com> am f924190f: am a22962bb: Merge "Move LauncherAppsTests to AndroidJUnitRunner." into mnc-dev

* commit 'f924190fa8f32b69138163c56c1563e044167dee':
Move LauncherAppsTests to AndroidJUnitRunner.
0687757cbaa1cce21b37176449191ac1c757cf75 25-Jun-2015 Tony Mak <tonymak@google.com> Merge "CTS for setCameraDisabled" into mnc-dev
a79c33aaafe2509630e823d592e166e4cb915e60 25-Jun-2015 Tony Mak <tonymak@google.com> CTS for setCameraDisabled

Ensure this policy only affects current profile.

Bug: 21025289

Change-Id: I298027f0af914e998cc1fa2ffeab008fa6a9f60a
evicepolicy/app/ManagedProfile/AndroidManifest.xml
evicepolicy/app/ManagedProfile/res/xml/device_admin.xml
evicepolicy/app/ManagedProfile/res/xml/primary_device_admin.xml
evicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/CameraPolicyTest.java
evicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/CameraUtils.java
evicepolicy/src/com/android/cts/devicepolicy/ManagedProfileTest.java
a22962bb8daa666bf875ee93b600f7674c2dd0cc 25-Jun-2015 Kenny Guy <kennyguy@google.com> Merge "Move LauncherAppsTests to AndroidJUnitRunner." into mnc-dev
4b9912f86379898bcee35764361fdcdd79ea8103 24-Jun-2015 Guang Zhu <guangzhu@google.com> add more logging to monkey seed test

Bug: 21876569
Change-Id: Ibae40f5a37fc85c3a295ca8de61392aabfc6dfd3
onkey/src/com/android/cts/monkey/SeedTest.java
913f4f9e8466d0bbb731bc2122685bf25268b4b7 24-Jun-2015 Kenny Guy <kennyguy@google.com> Move LauncherAppsTests to AndroidJUnitRunner.

Bug: 22066600
Change-Id: I4e8f9462872a1ab45692b637a3fb39e5309386bf
evicepolicy/app/LauncherTests/Android.mk
evicepolicy/app/LauncherTests/AndroidManifest.xml
evicepolicy/app/LauncherTests/src/com/android/cts/launchertests/LauncherAppsTests.java
6d1637006757a249b41054e34fcd76a47ddabf6c 24-Jun-2015 Amith Yamasani <yamasani@google.com> am 361c48a3: am f3907a7f: am c9bbb070: Merge "Permission grant tests for legacy apps" into mnc-dev

* commit '361c48a3576fd157a1dff20a8639859ea13c92be':
Permission grant tests for legacy apps
361c48a3576fd157a1dff20a8639859ea13c92be 24-Jun-2015 Amith Yamasani <yamasani@google.com> am f3907a7f: am c9bbb070: Merge "Permission grant tests for legacy apps" into mnc-dev

* commit 'f3907a7f78b8471f4237cf2919b25009bbff9e53':
Permission grant tests for legacy apps
c9bbb070e7be2beda71dd1752c46a9c5301d0286 24-Jun-2015 Amith Yamasani <yamasani@google.com> Merge "Permission grant tests for legacy apps" into mnc-dev
2401f13f69170ff9a275bf4bac9d92a927baca6c 24-Jun-2015 Amith Yamasani <yamasani@google.com> Permission grant tests for legacy apps

Negative tests to ensure that legacy apps can't be granted/revoked
permissions via device policy.

Bug: 21835304
Change-Id: Id85d266cfa998025c832abc1fee851107d6ae897
evicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/PermissionsTest.java
evicepolicy/app/SimplePreMApp/Android.mk
evicepolicy/app/SimplePreMApp/AndroidManifest.xml
evicepolicy/app/SimplePreMApp/src/com/android/cts/launcherapps/simplepremapp/SimpleActivity.java
evicepolicy/src/com/android/cts/devicepolicy/ManagedProfileTest.java
3ac89dddd05624360769a16e4c141e08c7a89a2a 24-Jun-2015 Robin Lee <rgl@google.com> am 0790eb86: am 6e14e9d7: am 33c29010: Merge "Validate deviceowner KeyManagementTest install" into mnc-dev

* commit '0790eb865c26bf8a9a143f0727632c587039fa1a':
Validate deviceowner KeyManagementTest install
0790eb865c26bf8a9a143f0727632c587039fa1a 24-Jun-2015 Robin Lee <rgl@google.com> am 6e14e9d7: am 33c29010: Merge "Validate deviceowner KeyManagementTest install" into mnc-dev

* commit '6e14e9d751d6aa5b9dc2f7619832bccbd20738b8':
Validate deviceowner KeyManagementTest install
a98f8da6829f6f2a8c1d8e680fd1791a4ad25ef5 19-Jun-2015 Robin Lee <rgl@google.com> Validate deviceowner KeyManagementTest install

Bug: 19569292
Change-Id: I2cfd155026a2b9a5c50f9024d7b2f1d85054238c
evicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/BaseDeviceOwnerTest.java
evicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/KeyManagementTest.java
f03350bc3899d547b86f9ed09aac332764ac68b9 22-Jun-2015 Stuart Scott <stuartscott@google.com> Merge "Implements plans via Tradefed config files."
66476a95a70d3f73320b82edf33ea76a3f0df7ac 09-Jun-2015 Stuart Scott <stuartscott@google.com> Implements plans via Tradefed config files.

Also moves result reporting into common/util so CTS verifier can use

Change-Id: Ib3a42cf17c06da6650195d49403b7b89cce2cb02
ample/src/android/sample/cts/SampleHostResultTest.java
92a464703ce64133e93fb8b6fe0f3624f5d61a5f 19-Jun-2015 Nick Kralevich <nnk@google.com> am beffeddd: am 8c06ea58: am 4f77879b: Merge "security: fix change in SELinux for kernel threads test"

* commit 'beffeddd5c3495bef0d45f51d747d9f54b7fdc6a':
security: fix change in SELinux for kernel threads test
beffeddd5c3495bef0d45f51d747d9f54b7fdc6a 19-Jun-2015 Nick Kralevich <nnk@google.com> am 8c06ea58: am 4f77879b: Merge "security: fix change in SELinux for kernel threads test"

* commit '8c06ea58c87c967990cde454d19ebdd0f970be6b':
security: fix change in SELinux for kernel threads test
021537c55006af35c7a5d5e2296bd391ecd5a56d 19-Jun-2015 Oren Laadan <orenl@cellrox.com> security: fix change in SELinux for kernel threads test

Commit b13e4d490524cdb6364af8fc269cc2c4862eb924 had good intentions but
forgot to test for procs==null, risking a pointer dereference bug. Fix.

Change-Id: I34741fe627a65d718ac700f11dd4a16711631692
ecurity/src/android/cts/security/SELinuxHostTest.java
0228bf91f5360f307591bfae80b0a96d79768fcd 18-Jun-2015 Benjamin Franz <bfranz@google.com> am 4756cbd0: am 95f0d8eb: am c224f518: Merge "Add CTS tests for setUninstallBlocked" into mnc-dev

* commit '4756cbd072a6309e03390023e42b6d00f8d2f371':
Add CTS tests for setUninstallBlocked
4756cbd072a6309e03390023e42b6d00f8d2f371 18-Jun-2015 Benjamin Franz <bfranz@google.com> am 95f0d8eb: am c224f518: Merge "Add CTS tests for setUninstallBlocked" into mnc-dev

* commit '95f0d8ebc58e06b74fc43517f562c0dc12dd9a1d':
Add CTS tests for setUninstallBlocked
c224f518096a0e83d361b856397db3602db1932e 18-Jun-2015 Benjamin Franz <bfranz@google.com> Merge "Add CTS tests for setUninstallBlocked" into mnc-dev
929a33641980c9bcbca3d20cd0eb4a51c1318a37 16-Jun-2015 Benjamin Franz <bfranz@google.com> Add CTS tests for setUninstallBlocked

Bug: 21511878
Change-Id: Id1a52fc9e7cf5a40fcbf9befa97baa21155d7596
evicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/PackageInstallTest.java
evicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/SilentPackageInstallerTest.java
evicepolicy/src/com/android/cts/devicepolicy/DeviceOwnerTest.java
ac79e25fc90566f1602743d1e4d486aebc05fc97 18-Jun-2015 Daniel Xie <dxie@google.com> Merge "AppSecurityTests: Do not delete in WhiteLists." into kitkat-cts-dev
453643cb377c9b5cf7a52b322fd3d33e75ca3ac6 17-Jun-2015 Daichi Hirono <hirono@google.com> am c9359ec2: am d0bb74f8: am 70a1b6d8: Merge "Fix DocumentsTest#testTree." into mnc-dev

* commit 'c9359ec2de81fc4b1f8de1dd5c7fc3ce2d82f302':
Fix DocumentsTest#testTree.
c9359ec2de81fc4b1f8de1dd5c7fc3ce2d82f302 17-Jun-2015 Daichi Hirono <hirono@google.com> am d0bb74f8: am 70a1b6d8: Merge "Fix DocumentsTest#testTree." into mnc-dev

* commit 'd0bb74f837b35e44cfda9584d1f52a93b33d2b33':
Fix DocumentsTest#testTree.
70a1b6d80f72a449a6e709faa19224dd60094741 17-Jun-2015 Daichi Hirono <hirono@google.com> Merge "Fix DocumentsTest#testTree." into mnc-dev
c40e86c6a1ef36cc431e1d0561f0a9a68ca77875 16-Jun-2015 Daichi Hirono <hirono@google.com> Fix DocumentsTest#testTree.

Previously the test sometimes crashed because it tries to read data before the
provider completes writing.

The CL adds synchronized blocks to the provider's implementation so that it
blocks read operation before writing.

BUG=21330123

Change-Id: I3b5ba5d2fb8e1f998179c587ff8733a0a8a2302b
ppsecurity/test-apps/DocumentProvider/src/com/android/cts/documentprovider/MyDocumentsProvider.java
b844230dfe8b8ce5e1cf70612c0f728afeb46ccf 17-Jun-2015 dcashman <dcashman@google.com> am c6b8dd78: am ae742a8a: am 5733c43e: Merge "Expand keyset cts key rotation tests to include EC keys." into mnc-dev

* commit 'c6b8dd78c89fb73c32efc7dcb5e91d987f8129f5':
Expand keyset cts key rotation tests to include EC keys.
c6b8dd78c89fb73c32efc7dcb5e91d987f8129f5 17-Jun-2015 dcashman <dcashman@google.com> am ae742a8a: am 5733c43e: Merge "Expand keyset cts key rotation tests to include EC keys." into mnc-dev

* commit 'ae742a8aa44e6fb49029fffa12a8ac3846798f3f':
Expand keyset cts key rotation tests to include EC keys.
5733c43ed4546187058aba32edd7b27a89a13745 17-Jun-2015 dcashman <dcashman@google.com> Merge "Expand keyset cts key rotation tests to include EC keys." into mnc-dev
7488b95022fbe0239eef661e213c7490337bd775 16-Jun-2015 Nick Kralevich <nnk@google.com> am 59216328: am 3e8150d5: am 324694b8: Merge "security: adjust test on SELinux for kernel threads"

* commit '59216328dfd2e7dadc76665e0ad207d5d878d824':
security: adjust test on SELinux for kernel threads
59216328dfd2e7dadc76665e0ad207d5d878d824 16-Jun-2015 Nick Kralevich <nnk@google.com> am 3e8150d5: am 324694b8: Merge "security: adjust test on SELinux for kernel threads"

* commit '3e8150d5a205481a83385ab5806053b980005832':
security: adjust test on SELinux for kernel threads
b13e4d490524cdb6364af8fc269cc2c4862eb924 10-Jun-2015 Oren Laadan <orenl@cellrox.com> security: adjust test on SELinux for kernel threads

The test currently verifies that all processes running in kernel domain
are kernel threads. It also tests that there is at least one such kernel
thread. However the latter test fails inside a child pid namespace since
all kernel threads always reside in the initial pid-namespace. To fix
this breakage remove the test for existence which is anyway not strictly
needed to validate proper SELinux setup.

Change-Id: I438600a875a1ba3af94c5cffa1c183150aa0036a
ecurity/src/android/cts/security/SELinuxHostTest.java
e167821bf78bdd02ef23e6937d73815fdedd96e7 12-Jun-2015 Rubin Xu <rubinxu@google.com> am 686c5076: am 6b7e7fbf: am 7ab1df2a: Merge "CTS tests for SystemUpdatePolicy APIs in DevicePoliyManager" into mnc-dev

* commit '686c5076ed11d606df66b999a0c115aaa8154254':
CTS tests for SystemUpdatePolicy APIs in DevicePoliyManager
8f5c2583ffef84c029e97470f549daf77f69202b 12-Jun-2015 Daniel Xie <dxie@google.com> am 1563ce25: am a27392d8: am fbfbac3b: am bb39ce78: am 05a2511f: am a5c4941c: am d56eb860: am 69e0b456: am f48839c1: Merge "Fix com.android.cts.monkey.VerbosityTest#testVerbosity seldom fail" into lollipop-cts-dev automerge: df91c97

* commit '1563ce25635f1ea3157f979cd483dbe626be66f4':
Fix com.android.cts.monkey.VerbosityTest#testVerbosity seldom fail
7ab1df2ab4c67deef6d215abc0226a90762e9f19 12-Jun-2015 Rubin Xu <rubinxu@google.com> Merge "CTS tests for SystemUpdatePolicy APIs in DevicePoliyManager" into mnc-dev
fbfbac3b25660a95e036917c391e10e5503795f0 12-Jun-2015 Daniel Xie <dxie@google.com> am bb39ce78: am 05a2511f: am a5c4941c: am d56eb860: am 69e0b456: am f48839c1: Merge "Fix com.android.cts.monkey.VerbosityTest#testVerbosity seldom fail" into lollipop-cts-dev automerge: df91c97

* commit 'bb39ce7886482ca44a99f9230f6d06d4b0381e8e':
Fix com.android.cts.monkey.VerbosityTest#testVerbosity seldom fail
bb39ce7886482ca44a99f9230f6d06d4b0381e8e 12-Jun-2015 Daniel Xie <dxie@google.com> am 05a2511f: am a5c4941c: am d56eb860: am 69e0b456: am f48839c1: Merge "Fix com.android.cts.monkey.VerbosityTest#testVerbosity seldom fail" into lollipop-cts-dev automerge: df91c97

* commit '05a2511f4b32a14898ba7f712c9e969f024560b0':
Fix com.android.cts.monkey.VerbosityTest#testVerbosity seldom fail
39ce7d89b426a1ce5e7fc235943d1c0e2813eb68 10-Jun-2015 Rubin Xu <rubinxu@google.com> CTS tests for SystemUpdatePolicy APIs in DevicePoliyManager

Bug: 19650525
Change-Id: I5e8d024d013bf64c5d267321edf5a7f5fb995696
evicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/SystemUpdatePolicyTest.java
evicepolicy/src/com/android/cts/devicepolicy/DeviceOwnerTest.java
7e65320b056f98d621657c75f5dcd88deaa32eff 11-Jun-2015 Chris Craik <ccraik@google.com> am c965d091: am 87cfc742: am ff7402c5: Merge "Fix build." into mnc-dev

* commit 'c965d0910a4fff0d7700c17d415102fe9505a351':
Fix build.
ff7402c55f0e24c6dc1afb89977ddfcacf13245a 11-Jun-2015 Chris Craik <ccraik@google.com> Merge "Fix build." into mnc-dev
ba6d9e5627fc4e1d1fe9b9e802cc73acaf66625a 11-Jun-2015 Chris Craik <ccraik@google.com> am 86f883d2: am feee3b13: am 65b437ab: Merge "Test NDK tracing" into mnc-dev

* commit '86f883d26cf30de5740d58d42403a49ec0bfebc6':
Test NDK tracing
6153cf3d6fe681506483d508a75ec13bafbc2e8b 11-Jun-2015 Chris Craik <ccraik@google.com> Fix build.

This reverts commit 5a8089fcea6df95047eafb6e67034e0e2f52e515.

Change-Id: I595ba6874178e6086eccf7e621084b8fee995c75
trace/AtraceTestApp/Android.mk
trace/AtraceTestApp/jni/Android.mk
trace/AtraceTestApp/jni/AtraceTestAppJni.c
trace/AtraceTestApp/src/com/android/cts/atracetestapp/AtraceTestAppActivity.java
trace/src/android/atrace/cts/AtraceHostTest.java
08add6eb95345aeefe3dbeff13abcfeea58019b2 11-Jun-2015 Benjamin Franz <bfranz@google.com> am 2fdf52ae: am a4034dcf: am 773e4507: Merge "Update lockTaskTest with changed behaviour" into mnc-dev

* commit '2fdf52aee2d88396569744aef01e960e37223e6b':
Update lockTaskTest with changed behaviour
65b437abc25d61d7cf85180845d14a7a750ddb3e 11-Jun-2015 Chris Craik <ccraik@google.com> Merge "Test NDK tracing" into mnc-dev
773e45072bed9c12324de6aefe2a7fdb2ce656ad 11-Jun-2015 Benjamin Franz <bfranz@google.com> Merge "Update lockTaskTest with changed behaviour" into mnc-dev
851517b484b1b55af191c1d591a3b9a86aecfd44 02-Jun-2015 dcashman <dcashman@google.com> Expand keyset cts key rotation tests to include EC keys.

Bug: 21363613
Change-Id: If9eafc725dec4800276251722a7456382dfe207d
ppsecurity/certs/keysets/cts-keyset-test-dsa-a.pk8
ppsecurity/certs/keysets/cts-keyset-test-ec-a.pk8
ppsecurity/certs/keysets/cts-keyset-test-ec-a.x509.pem
ppsecurity/src/com/android/cts/appsecurity/KeySetHostTest.java
ppsecurity/test-apps/keysets/uA/Android.mk
ppsecurity/test-apps/keysets/uEcA/Android.mk
ppsecurity/test-apps/keysets/uEcA/AndroidManifest.xml
6005e107697101b8080df412daac9c80dc981985 18-Mar-2015 Guang Zhu <guangzhu@google.com> fix incorrection assumption due to DST

Bug: 19685371
Change-Id: I4828590316a9bcd50669579359f8b60d80011908
adb/src/com/android/cts/aadb/TestDeviceFuncTest.java
5a8089fcea6df95047eafb6e67034e0e2f52e515 10-Jun-2015 Chris Craik <ccraik@google.com> Test NDK tracing

Change-Id: I616d1ee575d4ad96297318c410468bf459679065
trace/AtraceTestApp/Android.mk
trace/AtraceTestApp/jni/Android.mk
trace/AtraceTestApp/jni/AtraceTestAppJni.c
trace/AtraceTestApp/src/com/android/cts/atracetestapp/AtraceTestAppActivity.java
trace/src/android/atrace/cts/AtraceHostTest.java
a5c4941c4cf356f32b41f454b27d8c24b36899bb 10-Jun-2015 Daniel Xie <dxie@google.com> am d56eb860: am 69e0b456: am f48839c1: Merge "Fix com.android.cts.monkey.VerbosityTest#testVerbosity seldom fail" into lollipop-cts-dev automerge: df91c97

* commit 'd56eb860d0ed1abb0691c89007cb7b1cce17c1fb':
Fix com.android.cts.monkey.VerbosityTest#testVerbosity seldom fail
d56eb860d0ed1abb0691c89007cb7b1cce17c1fb 10-Jun-2015 Daniel Xie <dxie@google.com> am 69e0b456: am f48839c1: Merge "Fix com.android.cts.monkey.VerbosityTest#testVerbosity seldom fail" into lollipop-cts-dev automerge: df91c97

* commit '69e0b456674af3c6667974b7f31f80189aaaee36':
Fix com.android.cts.monkey.VerbosityTest#testVerbosity seldom fail
f48839c110eb9f91c612633f1b6d0e4f91633e3e 10-Jun-2015 Daniel Xie <dxie@google.com> Merge "Fix com.android.cts.monkey.VerbosityTest#testVerbosity seldom fail" into lollipop-cts-dev
automerge: df91c97

* commit 'df91c971df8b2c08d89a18b020481a151a347e36':
Fix com.android.cts.monkey.VerbosityTest#testVerbosity seldom fail
0775d0b48b0283a9b493ca687d7685d498ebf670 10-Jun-2015 Ricky Wai <rickywai@google.com> am ebcfb2fe: am d7cf606c: am eed45547: Merge "Fix testNoDebuggingFeaturesRestriction fails in eng/userdebug build" into mnc-dev

* commit 'ebcfb2fefff84a675f2257e93a6b7550c293a31a':
Fix testNoDebuggingFeaturesRestriction fails in eng/userdebug build
fa7bb200e456eec0f664cebb933ce63be3d8c1a1 10-Jun-2015 Chris Craik <ccraik@google.com> am 26b471e4: am 54e17209: am 57c50426: Merge "Cleanup atrace and dumpsys tests" into mnc-dev

* commit '26b471e475a2d36183ce482786c914e53ff9b650':
Cleanup atrace and dumpsys tests
eed455474e6c913a1a2532b92b206c8854c71b0a 10-Jun-2015 Ricky Wai <rickywai@google.com> Merge "Fix testNoDebuggingFeaturesRestriction fails in eng/userdebug build" into mnc-dev
57c50426b66a96642ad6f65f79d96811c7526b71 10-Jun-2015 Chris Craik <ccraik@google.com> Merge "Cleanup atrace and dumpsys tests" into mnc-dev
a7192e46ad2f5bf84cf68b02a56190a1facca9ad 09-Jun-2015 Ricky Wai <rickywai@google.com> Fix testNoDebuggingFeaturesRestriction fails in eng/userdebug build

Bug: 21628547
Change-Id: Ib7a3bb9dd31a6822834ea8603e23f7ad3e8866f5
evicepolicy/src/com/android/cts/devicepolicy/ManagedProfileTest.java
488eb8de4123389ee73d6d61ff3c303d84e88b32 09-Jun-2015 Stuart Scott <stuartscott@google.com> Merge "Define test case out dir and tag certain modules."
5fbf3724d112898002730fffbaf6ea382ba66e88 09-Jun-2015 Benjamin Franz <bfranz@google.com> Update lockTaskTest with changed behaviour

Updating the CTS tests to reflect the alignment in behaviour between
the two different ways of starting a lock task mode.

Bug: 21608206
Change-Id: I6664691eceda9b646fe2e5f787d34ab2930bb941
evicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/LockTaskTest.java
5ae19e157ee023aa6ed2af8bb88e3dafb30efd27 04-Jun-2015 Stuart Scott <stuartscott@google.com> Define test case out dir and tag certain modules.

Change-Id: I6cb22c493fd912e361a6fbb39f2f43897183d416
ample/Android.mk
ample/AndroidTest.xml
ample/app/Android.mk
ample/app/AndroidManifest.xml
ample/src/android/sample/cts/SampleHostResultTest.java
ample/src/android/sample/cts/SampleHostTest.java
f8a220b1a19434927c81b00e6c422974f9931925 09-Jun-2015 Daniel Xie <dxie@google.com> am 775eeca0: am 44bc7921: am 26bbbb37: am 4cedf16a: am 48c2210b: am dab66aa3: Merge "Fix testVpn timing issue for com.android.cts.net.HostsideNetworkTests class" into lollipop-mr1-cts-dev

* commit '775eeca0205b87008bd21b1dd95be228870f5aee':
Fix testVpn timing issue for com.android.cts.net.HostsideNetworkTests class
4a4cce76452725a2559a4f78f58c3d75da1e8f9e 08-Jun-2015 Amith Yamasani <yamasani@google.com> Merge "Tests for Profile Owner permissions API" into mnc-dev
cddc666446ea2e8fa7404675df9c7ae161aafa65 08-Jun-2015 Chris Craik <ccraik@google.com> Merge "Add Atrace test for trace content" into mnc-dev
6a453fca28d5bf1af3632fc0617907e8a2212c48 06-Jun-2015 Nicholas Sauer <nicksauer@google.com> Merge "Revert "Fix cts coverage report inclusion of incorrect classes"" into mnc-dev
c2fc10cb2e22401c4eb526cd6372581436163420 06-Jun-2015 Nicholas Sauer <nicksauer@google.com> Revert "Fix cts coverage report inclusion of incorrect classes"

This change broke managed users tests
bug: 21629462
This reverts commit 59eb6ec810f491939407f190c38c509a71d51696.

Change-Id: Ia4253029393faacdb82b1cf7f4ba3027ca00ff34
evicepolicy/app/IntentSender/Android.mk
evicepolicy/app/ManagedProfile/Android.mk
422a795c05e662f623ff74c70094e1811aeb69c6 26-May-2015 Amith Yamasani <yamasani@google.com> Tests for Profile Owner permissions API

Change-Id: I345f7458d44d9dddd39991512abd728dc02debea
evicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/PermissionsTest.java
evicepolicy/app/SimpleApp/AndroidManifest.xml
evicepolicy/src/com/android/cts/devicepolicy/ManagedProfileTest.java
775eeca0205b87008bd21b1dd95be228870f5aee 06-Jun-2015 Daniel Xie <dxie@google.com> am 44bc7921: am 26bbbb37: am 4cedf16a: am 48c2210b: am dab66aa3: Merge "Fix testVpn timing issue for com.android.cts.net.HostsideNetworkTests class" into lollipop-mr1-cts-dev

* commit '44bc7921970243252a346fba768cbd586a2329b0':
Fix testVpn timing issue for com.android.cts.net.HostsideNetworkTests class
26bbbb37fdc2a385a3fd340ddf179a3aead9c0ae 06-Jun-2015 Daniel Xie <dxie@google.com> am 4cedf16a: am 48c2210b: am dab66aa3: Merge "Fix testVpn timing issue for com.android.cts.net.HostsideNetworkTests class" into lollipop-mr1-cts-dev

* commit '4cedf16ab9944ee8ba2b9a0210e6247e4aec9f84':
Fix testVpn timing issue for com.android.cts.net.HostsideNetworkTests class
4cedf16ab9944ee8ba2b9a0210e6247e4aec9f84 06-Jun-2015 Daniel Xie <dxie@google.com> am 48c2210b: am dab66aa3: Merge "Fix testVpn timing issue for com.android.cts.net.HostsideNetworkTests class" into lollipop-mr1-cts-dev

* commit '48c2210b5e45e3be88064a7f64b3d197b973d2a4':
Fix testVpn timing issue for com.android.cts.net.HostsideNetworkTests class
6639933dab8372af0687f2e8d2ffef85e318166e 06-Jun-2015 Chris Craik <ccraik@google.com> Add Atrace test for trace content

bug:21559370

Change-Id: Ie1d7dfa58c88da3b1c8d5663f9852f12590539b0
trace/AtraceTestApp/Android.mk
trace/AtraceTestApp/AndroidManifest.xml
trace/AtraceTestApp/src/com/android/cts/atracetestapp/AtraceTestAppActivity.java
trace/src/android/atrace/cts/AtraceHostTest.java
4a305d55754cfbc864b165527bfe24ce6218d946 23-Apr-2015 Junjie Hu <junjie.hu@mediatek.com> Fix testVpn timing issue for com.android.cts.net.HostsideNetworkTests class

It is a issue caused by bad test case.
Please ensure the previous vpn connection is disconnected before running next
vpn test case, this will affect the test result.And the CTS test case also
tries to connect socket before the vpn rule is set in netd.
It is the same issue as http://b/18436087 .
The delay 300ms is too short, and recommend extend to 1000 or 3000 ms.
Since L MR1 is known as supporting some low memory device, we suggest fixing
the new CTS test case for some low-end devices.

Change-Id: I6051c95c663e867fc66c580ce8bd8d25fce0b8fc
Signed-off-by: Junjie Hu <junjie.hu@mediatek.com>
et/app/src/com/android/cts/net/hostside/VpnTest.java
66b07044958047f2e40bd59976c0fcf0e0da845f 25-May-2014 Junjie.Hu <junjie.hu@mediatek.com> DO NOT MERGE: Fix com.android.cts.monkey.VerbosityTest#testVerbosity seldom fail

Fail message:
String v1 = mDevice.executeShellCommand(MONKEY_CMD + " -v -p " + PKGS[0] + " 500");
assertTrue(v1.contains("Events injected"));
assertTrue(v1.contains("Sending Touch")); // fail here

This test case will check touch event exist or not after run monkey
"monkey --pct-touch 0 --pct-motion 0 --pct-majornav 0 --pct-syskeys 0
--pct-anyevent 0 --pct-rotation 0 -v -v -p xxx 500", this cmd set
touch Event percentages: %0, which will reduce touch event ratio.
CTS 4.2_r3 Version: which didnot set touch Event percentages, default
touch Event percentages will be 10%: static final String MONKEY_CMD=
"monkey --pct-majornav 0 --pct-syskeys 0 --pct-anyevent 0".

This issue also can be reproduced in Nexus 5 when set Nexus5 to special
date/time: such as 2014-05-19 09:34 or 2014-05-19 09:53 or 2014-05-19 09:38
or 2014-05-19 09:42,then run this test case "run cts -c
com.android.cts.monkey.VerbosityTest -m testVerbosity"

So we suggest to delete " --pct-touch 0" in MONKEY_CMD

Change-Id: I8f47b0afabdd716523dc8ae7a8a73c803da70fa7
Signed-off-by: Junjie.Hu <junjie.hu@mediatek.com>
onkey/src/com/android/cts/monkey/AbstractMonkeyTest.java
eb1e0ea6ad07ec1a3fb6371cc548ca7a940a5c83 04-Jun-2015 Adam Powell <adamp@google.com> Add tests for DENSITY_360

Add appropriate tests for 360dpi as a new officially supported screen
density.

Bug 19529059

Change-Id: I936a5afa51b4faafd9fb6a56ba31ba48e4b91ddc
heme/app/src/android/theme/app/DisplayInfoActivity.java
bf3b8d74a8c41674e7daa74e2a4e6f835d9d3951 04-Jun-2015 Chris Craik <ccraik@google.com> Cleanup atrace and dumpsys tests

Change-Id: I21a20624f80b9f2ecc583f7b49769615847416da
trace/Android.mk
umpsys/Android.mk
umpsys/src/android/dumpsys/cts/DumpsysHostTest.java
4a018e52377c51223094d609a565ca2383679f61 04-Jun-2015 Benjamin Franz <bfranz@google.com> Merge "Update LockTaskTest with new API call and behaviour changes" into mnc-dev
4aea9d6d61db7fb53625e7c89d7362b9181725b2 03-Jun-2015 Chris Craik <ccraik@google.com> Merge "Add sched to required tag list" into mnc-dev
5c1e7be597cfcfe1212b66237a83ddd457b24300 03-Jun-2015 Rubin Xu <rubinxu@google.com> Merge "CTS tests for delegated cert installer API" into mnc-dev
d6254fcddafcecef29593eb61ae0b0fb3196c531 03-Jun-2015 Chris Craik <ccraik@google.com> Add sched to required tag list

bug:21559370

Change-Id: Ibbdd2d2357390ac7e38ebadc1d383e6b895516d0
trace/src/android/atrace/cts/AtraceHostTest.java
5340fa49f48366e41190e7626894d72711a096b7 03-Jun-2015 John Reck <jreck@google.com> Merge "CTS tests for framestats" into mnc-dev
13861d04c86b0d8c72217401ed205bf6de796f39 03-Jun-2015 Chris Craik <ccraik@google.com> Merge "Add initial atrace host tests" into mnc-dev
6e9ebcb1004243be7d2287a1cf250664ba048eae 02-Jun-2015 Chris Craik <ccraik@google.com> Add initial atrace host tests

bug:21559370
bug:21566233

Change-Id: Ib7501dd1388c49b529911669dee97e52f518ced0
trace/Android.mk
trace/src/android/atrace/cts/AtraceHostTest.java
76ab672123a6613b3b0efffd50c33ee33e2c967d 25-May-2014 Junjie.Hu <junjie.hu@mediatek.com> Fix com.android.cts.monkey.VerbosityTest#testVerbosity seldom fail

Fail message:
String v1 = mDevice.executeShellCommand(MONKEY_CMD + " -v -p " + PKGS[0] + " 500");
assertTrue(v1.contains("Events injected"));
assertTrue(v1.contains("Sending Touch")); // fail here

This test case will check touch event exist or not after run monkey
"monkey --pct-touch 0 --pct-motion 0 --pct-majornav 0 --pct-syskeys 0
--pct-anyevent 0 --pct-rotation 0 -v -v -p xxx 500", this cmd set
touch Event percentages: %0, which will reduce touch event ratio.
CTS 4.2_r3 Version: which didnot set touch Event percentages, default
touch Event percentages will be 10%: static final String MONKEY_CMD=
"monkey --pct-majornav 0 --pct-syskeys 0 --pct-anyevent 0".

This issue also can be reproduced in Nexus 5 when set Nexus5 to special
date/time: such as 2014-05-19 09:34 or 2014-05-19 09:53 or 2014-05-19 09:38
or 2014-05-19 09:42,then run this test case "run cts -c
com.android.cts.monkey.VerbosityTest -m testVerbosity"

So we suggest to delete " --pct-touch 0" in MONKEY_CMD

Change-Id: I8f47b0afabdd716523dc8ae7a8a73c803da70fa7
Signed-off-by: Junjie.Hu <junjie.hu@mediatek.com>
onkey/src/com/android/cts/monkey/AbstractMonkeyTest.java
5003e6530e758ab6ae5664749ac95e29df470bf2 02-Jun-2015 John Reck <jreck@google.com> CTS tests for framestats

Bug: 21560187
Change-Id: Ib830319b9a3a93e45e67b6b96a677aeb600cbe17
umpsys/src/android/dumpsys/cts/DumpsysHostTest.java
a21a564ad7ec0751f243977b26c04783051e89a9 09-Mar-2015 Rubin Xu <rubinxu@google.com> CTS tests for delegated cert installer API

Include hostside tests and negative API tests in DevicePolicyManagerTest

Bug: 19550928
Change-Id: Id59a6aa96ff31a3e9c78b195885f88cb69fc16ca
evicepolicy/app/CertInstaller/Android.mk
evicepolicy/app/CertInstaller/AndroidManifest.xml
evicepolicy/app/CertInstaller/src/com/android/cts/certinstaller/CertInstallerActivity.java
evicepolicy/app/ManagedProfile/AndroidManifest.xml
evicepolicy/app/ManagedProfile/res/xml/primary_device_admin.xml
evicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/DelegatedCertInstallerTest.java
evicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/PrimaryUserAdminHelper.java
evicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/PrimaryUserDeviceAdmin.java
evicepolicy/src/com/android/cts/devicepolicy/BaseDevicePolicyTest.java
evicepolicy/src/com/android/cts/devicepolicy/ManagedProfileTest.java
9a9661e816f062099e9086c5a26f532001b1740e 17-Feb-2014 nao <nao.tanaka.cy@kyocera.jp> AppSecurityTests: Do not delete in WhiteLists.

The applications do not have any permissions to access to some
directories that are protected by FUSE Daemon.
But AppSecurityTests will delete these directories.
This implementation contradicts AppSecurityTests.

Following files and directories should be protected

- .android_secure
- android_secure
- autorun.inf

These are not allowed to any access by FUSE daemon.

Change-Id: Ia3e57ac888a756f23b5fa76bcaca7109733098bb
Signed-off-by: nao <nao.tanaka.cy@kyocera.jp>
(cherry picked from commit a7fbe2a19973287ac4706d245b297a900b8b3001)
ppsecurity/test-apps/ExternalStorageApp/src/com/android/cts/externalstorageapp/CommonExternalStorageTest.java
b2391c3eec7f7a37cfa6d3e0dc224fa947554d0d 02-Jun-2015 Nicholas Sauer <nicksauer@google.com> Merge "Fix cts coverage report inclusion of incorrect classes" into mnc-dev
59eb6ec810f491939407f190c38c509a71d51696 01-Jun-2015 Nicholas Sauer <nicksauer@google.com> Fix cts coverage report inclusion of incorrect classes

CTS coverage reporting uses dexdeps to determine which classes
and methods are used by a test app. Using LOCAL_STATIC_JAVA_LIBRARIES
to link dependent java libraries, causes the dependent libraries' dependencies
to be directly included in the classes.dex and therefore in the output
from dexdeps. This causes to the coverage tool to report coverage of
methods and classes that are not actually access by the test applications.

Switching to LOCAL_JAVA_LIBRARIES prevents this and does not appear to
break these tests.

bug: 21448392
Change-Id: Id031c71e409450225a9287e796a0fda53203bd8b
evicepolicy/app/IntentSender/Android.mk
evicepolicy/app/ManagedProfile/Android.mk
5319c65af309a4fd6dba7297f2ca3909e405e9e3 01-Jun-2015 Stefan Kuhne <skuhne@google.com> Merge "Adding three CTS tests for the time tracking api" into mnc-dev
db3fca79716980fd615bba2619cfd5dd3b6267ef 27-May-2015 Stefan Kuhne <skuhne@google.com> Adding three CTS tests for the time tracking api

Bug: 21374371
Change-Id: Ia414723ec8d0829195ec5ce190e7e14f03522584
evicepolicy/app/SimpleApp/AndroidManifest.xml
evicepolicy/app/SimpleApp/src/com/android/cts/launcherapps/simpleapp/SimpleActivityChainExit.java
evicepolicy/app/SimpleApp/src/com/android/cts/launcherapps/simpleapp/SimpleActivityImmediateExit.java
1b210a331cb9602e6be6b94c8e24dd474de2b564 07-May-2015 Benjamin Franz <bfranz@google.com> Update LockTaskTest with new API call and behaviour changes

A new API ActivityManager.getLockTaskModeState was introduced and is
added to the tests. Additionally, the behaviour of lock task mode
changed slightly in that whitelisted apps can now launch new tasks,
whereas non-whitelisted apps still cannot be launched in new tasks.

Bug: 19516141
Bug: 20514015
Change-Id: Id4896faa80c8af05f8c59e85b9f05e02eb761252
evicepolicy/app/DeviceOwner/AndroidManifest.xml
evicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/LockTaskTest.java
evicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/LockTaskUtilityActivityIfWhitelisted.java
evicepolicy/app/IntentReceiver/AndroidManifest.xml
evicepolicy/app/IntentReceiver/src/com/android/cts/intent/receiver/IntentReceiverActivity.java
evicepolicy/src/com/android/cts/devicepolicy/DeviceOwnerTest.java
f7050df0aaf0dc58d9f5346b9d0185ba4832b320 22-May-2015 dcashman <dcashman@google.com> Add packageparser and shared user keyset cts tests.

Add cts checks to make sure that apps specifying a shared user cannot use key
rotation. Also make sure that app install fails when upgrade keysets are
specified that map to badly defined keysets.

Change-Id: I05f102ce030ea21c7cbe742e19ef167decd9d020
ppsecurity/src/com/android/cts/appsecurity/KeySetHostTest.java
ppsecurity/test-apps/keysets/malBadKey/Android.mk
ppsecurity/test-apps/keysets/malBadKey/AndroidManifest.xml
ppsecurity/test-apps/keysets/malNoDef/Android.mk
ppsecurity/test-apps/keysets/malNoDef/AndroidManifest.xml
ppsecurity/test-apps/keysets/malOneDef/Android.mk
ppsecurity/test-apps/keysets/malOneDef/AndroidManifest.xml
ppsecurity/test-apps/keysets/uBsharedUser/Android.mk
ppsecurity/test-apps/keysets/uBsharedUser/AndroidManifest.xml
c2c580f3b45fe2cfb63d698941ac5870176f0ce7 27-May-2015 Makoto Onuki <omakoto@google.com> Add CTS for enterprise SIP lookup

It's mostly the same thing as the phone lookup, but the internal behavior is
slightly different. Make sure the returned photo URIs are actually valid
and readable.

Bug 20687987

Change-Id: Ief6742b30a9b44e7752305f5ca6f8453f2cf7b97
evicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/ContactsTest.java
evicepolicy/src/com/android/cts/devicepolicy/ManagedProfileTest.java
7eb3ecb4230bbde1f6a2be0140e7955ef4889d5b 21-May-2015 Fyodor Kupolov <fkupolov@google.com> Allow no more than one managed profile on the device

Bug: 21064402
Change-Id: I9b66f7c3e7621e2c8b97e007a5a00a6cd87bbd27
evicepolicy/src/com/android/cts/devicepolicy/ManagedProfileTest.java
b8f3eea11b46da46f5e602e7d1cc0a5502c742a9 20-May-2015 Esteban Talavera <etalavera@google.com> Merge "Add CTS test for silent package install" into mnc-dev
57b4ba29f440e4d4e058e15b9547c51414de88c8 11-May-2015 Benjamin Franz <bfranz@google.com> Add CTS test for silent package install

We introduced the possibility for the device owner to silently install
and delete packages using the PackageInstaller APIs. This test uses a
simple test app to verify this behaviour.

Bug: 19524037
Change-Id: I0b8ed119fd42a002023cf2e53089f502ac5c3987
evicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/SilentPackageInstallerTest.java
evicepolicy/src/com/android/cts/devicepolicy/BaseDevicePolicyTest.java
evicepolicy/src/com/android/cts/devicepolicy/DeviceOwnerTest.java
96b43e03f823d7790a3e25c8df582f323181d2b6 20-May-2015 Keith Cheung <keithcheung@google.com> Merge "Add CTS tests for Email.ENTERPRISE_CONTENT_LOOKUP_URI" into mnc-dev
6601ef71230b6c58c5ce9edbe53b4a151f9e53de 20-May-2015 Fyodor Kupolov <fkupolov@google.com> am 4b711553: am 289079d8: am 6b6c4618: am 62bc409c: am 11fb9d0d: Merge "Update cts to not require multi-user when managed_users are declared" into lollipop-cts-dev automerge: 3682098

* commit '4b7115531293641cea9a7d195f5128c1af6e1dd0':
Update cts to not require multi-user when managed_users are declared
9bac23ef4d333566112494334aa80b314bf82e78 20-May-2015 Eric Bae <eric.bae@lge.com> Change assertcode of checkSignalStrength in DumpsysHostTest

Change assertEquals to assertTrue in checkSignalStrength, Because this assertcode is not sufficient to check RSSI Levels.

Change-Id: I058aadd663cc4f1aa3531e60d5c5e70b0b48864f
umpsys/src/android/dumpsys/cts/DumpsysHostTest.java
4b7115531293641cea9a7d195f5128c1af6e1dd0 20-May-2015 Fyodor Kupolov <fkupolov@google.com> am 289079d8: am 6b6c4618: am 62bc409c: am 11fb9d0d: Merge "Update cts to not require multi-user when managed_users are declared" into lollipop-cts-dev automerge: 3682098

* commit '289079d89d64de878af3bfe6265d3e5991a6aa4b':
Update cts to not require multi-user when managed_users are declared
289079d89d64de878af3bfe6265d3e5991a6aa4b 19-May-2015 Fyodor Kupolov <fkupolov@google.com> am 6b6c4618: am 62bc409c: am 11fb9d0d: Merge "Update cts to not require multi-user when managed_users are declared" into lollipop-cts-dev automerge: 3682098

* commit '6b6c46185147b85aad3d185aaf03d8844a723bee':
Update cts to not require multi-user when managed_users are declared
6b6c46185147b85aad3d185aaf03d8844a723bee 19-May-2015 Fyodor Kupolov <fkupolov@google.com> am 62bc409c: am 11fb9d0d: Merge "Update cts to not require multi-user when managed_users are declared" into lollipop-cts-dev automerge: 3682098

* commit '62bc409c1d4dcf5684821688e954944205c66bf1':
Update cts to not require multi-user when managed_users are declared
11fb9d0d3117c3078d6f7ef8e3ba682e2ae7f4b3 19-May-2015 Fyodor Kupolov <fkupolov@google.com> Merge "Update cts to not require multi-user when managed_users are declared" into lollipop-cts-dev
automerge: 3682098

* commit '3682098c9abf4b857eb1bd71430037fec569a083':
Update cts to not require multi-user when managed_users are declared
91611e14f0e94c819be7490997c2ee15da62b609 15-May-2015 Nicolas Prevot <nprevot@google.com> Update cts to not require multi-user when managed_users are declared

Tests that need to create a managed profile do not need to check
multi-user support.
Also remove the cts test which checks that multi-user support is
a prerequisite for managed_users.

BUG: 21119929

Change-Id: Ie58cf9adc675318d810dcb48beeb5b4842b557c4
evicepolicy/src/com/android/cts/devicepolicy/LauncherAppsProfileTest.java
evicepolicy/src/com/android/cts/devicepolicy/ManagedProfileTest.java
cba454795e4c233d82b7aec02b96bc259d0de86f 29-Apr-2015 Keith Cheung <keithcheung@google.com> Add CTS tests for Email.ENTERPRISE_CONTENT_LOOKUP_URI

To run:
1. Follow https://sites.google.com/a/google.com/android-cts/cts
2. make cts
3. out/host/linux-x86/cts/android-cts/tools/cts-tradefed run singleCommand
cts --class com.android.cts.devicepolicy.ManagedProfileTest

Bug: 19550641
Change-Id: I27293b1de7a47285d5057df0f4bd112a57ddac5a
evicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/ContactsTest.java
evicepolicy/src/com/android/cts/devicepolicy/ManagedProfileTest.java
c019c0230085dc568cc43104a77f0a51d27c1828 15-May-2015 Alain Vongsouvanh <alainv@google.com> am f171067a: am c533d820: am 79177922: am f6844951: am 8d12849e: Merge "Refactoring the ThemeHostTest to reduce timeout." into lollipop-cts-dev automerge: 68b8b47

* commit 'f171067a17caac7a201fd73c9a09ec3dd18ad698':
Refactoring the ThemeHostTest to reduce timeout.
2858d2dffd1d9e1f2f14c33b24c1976d50756cc8 15-May-2015 Alain Vongsouvanh <alainv@google.com> am a31763e3: resolved conflicts for merge of ace34a58 to lmp-mr1-ub-dev

* commit 'a31763e3ca78df665244aa9b730368ff0755deae':
Use ITestDevice#pullFile instead of ITestDevice#executeAdbCommand.
f171067a17caac7a201fd73c9a09ec3dd18ad698 15-May-2015 Alain Vongsouvanh <alainv@google.com> am c533d820: am 79177922: am f6844951: am 8d12849e: Merge "Refactoring the ThemeHostTest to reduce timeout." into lollipop-cts-dev automerge: 68b8b47

* commit 'c533d820eb4f219c340329d26c49b87392023ebc':
Refactoring the ThemeHostTest to reduce timeout.
a31763e3ca78df665244aa9b730368ff0755deae 15-May-2015 Alain Vongsouvanh <alainv@google.com> resolved conflicts for merge of ace34a58 to lmp-mr1-ub-dev

Change-Id: Ie40f77137884f1954575cc8598ce4c3e788ed5ab
c533d820eb4f219c340329d26c49b87392023ebc 14-May-2015 Alain Vongsouvanh <alainv@google.com> am 79177922: am f6844951: am 8d12849e: Merge "Refactoring the ThemeHostTest to reduce timeout." into lollipop-cts-dev automerge: 68b8b47

* commit '7917792290627381d33481daeb58081c1da81d72':
Refactoring the ThemeHostTest to reduce timeout.
ace34a580f737f8dcde6ea8e77f0c1c87a2a0e2b 14-May-2015 Alain Vongsouvanh <alainv@google.com> resolved conflicts for merge of 8ea01c52 to lmp-mr1-modular-dev

Change-Id: I35fdcd595ece75dcf563c9fec8ea8ea663d66ac6
7917792290627381d33481daeb58081c1da81d72 14-May-2015 Alain Vongsouvanh <alainv@google.com> am f6844951: am 8d12849e: Merge "Refactoring the ThemeHostTest to reduce timeout." into lollipop-cts-dev automerge: 68b8b47

* commit 'f68449519ac879550b863e8e48af8c4ea024fee0':
Refactoring the ThemeHostTest to reduce timeout.
8d12849e449e97bf5e6e2a167e23fdd71eb7edf4 14-May-2015 Alain Vongsouvanh <alainv@google.com> Merge "Refactoring the ThemeHostTest to reduce timeout." into lollipop-cts-dev
automerge: 68b8b47

* commit '68b8b477a1e4c82fa54f471938ab0b3db3bbd8bd':
Refactoring the ThemeHostTest to reduce timeout.
17afc909fef5812d91f4a1ce6d41aeddbce4f9e2 11-May-2015 Alain Vongsouvanh <alainv@google.com> Refactoring the ThemeHostTest to reduce timeout.

This change reduces the running time from about 38 minutes to about 2 minutes on a 2013 Nexus 7.
Using the Activity life-cycle reduces the chance of running into race-conditions due to window or focus events.

b/20309726
b/19239998
b/20192310

Change-Id: Idcb6c51f083ced3c5a666d21bf10dcd6d19298e1
heme/app/Android.mk
heme/app/AndroidManifest.xml
heme/app/res/layout/holo_test.xml
heme/app/src/android/theme/app/CaptureActivity.java
heme/app/src/android/theme/app/CaptureHolo.java
heme/app/src/android/theme/app/HoloDeviceActivity.java
heme/app/src/android/theme/app/ReferenceViewGroup.java
heme/src/android/theme/cts/ThemeHostTest.java
8ea01c52cd701961f5c9d2b094228bbaf06e13e8 14-May-2015 Alain Vongsouvanh <alainv@google.com> resolved conflicts for merge of 0f505087 to lmp-mr1-app-dev

Change-Id: I3677ffd80ea646b0237ccac87a0fd2211e6c5d65
bf08a6bcf9c8a1bcf3ea208fdc0d88aaf27263d2 14-May-2015 Alain Vongsouvanh <alainv@google.com> Merge "Use ITestDevice#pullFile instead of ITestDevice#executeAdbCommand." into lollipop-cts-dev
automerge: ed57750

* commit 'ed5775098892e667d1fa3b5d625e2f1396468a58':
Use ITestDevice#pullFile instead of ITestDevice#executeAdbCommand.
2cda0cd2eb73d310af7be5f3373ece8820f8e4e7 30-Apr-2015 Alain Vongsouvanh <alainv@google.com> Use ITestDevice#pullFile instead of ITestDevice#executeAdbCommand.

Using the pullFile method will prevent the android.host.security test suite to crash the device when the targeted files do not exist.

b/20165544

Change-Id: Ic3ebb1fb55646cd05efb6d0d94bc8a6eca636d06
ecurity/src/android/cts/security/SELinuxHostTest.java
dbcd79fb1d7f936e7971772daaff6492ed4e6c7d 04-May-2015 Guang Zhu <guangzhu@google.com> fix incorrection assumption due to DST
automerge: 3467361

* commit '3467361ee795e22b79c50fddd9197a390908437e':
fix incorrection assumption due to DST
c0fe13a8fc0eebcfcc2872573bc1c9f9e99b521d 04-May-2015 Sander Alewijnse <salewijnse@google.com> am 3fefecef: Merge "Add test for checking max users > 1 if managed users feature enabled" into lmp-sprout-dev
automerge: 70071d0

* commit '70071d01c62c1bba6714ec380aff4e25e416ad8a':
Add test for checking max users > 1 if managed users feature enabled
7aa21bf5965cb78ea381cf47766f8231504bf693 04-May-2015 Ricky Wai <rickywai@google.com> Merge "Add caller-id cts test cases" into lmp-mr1-dev
automerge: 7a95cde

* commit '7a95cde001019cae8b710e329055e427decaa7cd':
Add caller-id cts test cases
38cd2ba73b54ed71543d35cc816ccdedc275c571 04-May-2015 Zoltan Szatmary-Ban <szatmz@google.com> resolved conflicts for merge of 79892c8d to lmp-mr1-dev
automerge: 1d69c0e

* commit '1d69c0e510a2f19c00d2be08e2264802a30c385a':
Differentiate device feature checking across Device Policy tests
a8e55671372ccd1d9ad9030fec916257cfde54f8 22-Apr-2015 Victor Chang <vichang@google.com> Add DevicePolicyManager.get/setBluetoothContactSharingDisabled cts test

It only tests the getter and setter.

Bug: 19990980
Change-Id: I41e56754d55ed8b577f68a92c198affd131dce0e
evicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/ContactsTest.java
evicepolicy/src/com/android/cts/devicepolicy/ManagedProfileTest.java
43ecd1302352e6a474105d4656a5dd5d6e41134b 23-Apr-2015 Nicolas Prevot <nprevot@google.com> Install additional apps only for the cts tests that require them.

The applications IntentSender and IntentReceiver are used only by the
cts tests testCrossProfileContent and testCrossProfileCopyPaste.
Install them only for these tests.

Change-Id: If7a783cb38cb2a80563d5f6afb398712cce8414d
evicepolicy/src/com/android/cts/devicepolicy/ManagedProfileTest.java
60ad65dcf4d9aa2790e4e92485f6f89f5e4ee5f4 01-Apr-2015 Fyodor Kupolov <fkupolov@google.com> Merge "Support for nested bundles in setApplicationRestrictions"
f275a6e463384eae765852bf8f8d83b87c55e2c4 31-Mar-2015 Fyodor Kupolov <fkupolov@google.com> Support for nested bundles in setApplicationRestrictions

Modified ApplicationRestrictionsTest to test new restriction types - bundle
and bundle-array.

Bug: 19540606
Change-Id: I32b264e04d5d177ea5b4c39a8ace5ee0ce907970
evicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/ApplicationRestrictionsTest.java
6d6faea48b545fb47145e29a18bb4ad83ee3adc0 29-Mar-2015 Jeff Sharkey <jsharkey@android.com> Better verification of multi-user storage.

We need to start-user before running storage tests. Also list exact
files that caused test failure.

Bug: 19993667
Change-Id: I31835c996bf05a8502370590e17a1b03d37d7152
ppsecurity/src/com/android/cts/appsecurity/AppSecurityTests.java
ppsecurity/test-apps/ExternalStorageApp/src/com/android/cts/externalstorageapp/CommonExternalStorageTest.java
ppsecurity/test-apps/WriteExternalStorageApp/src/com/android/cts/writeexternalstorageapp/WriteExternalStorageTest.java
8ea2becef97509aef884c82cff8d794714ea9a25 30-Mar-2015 Qiwen Zhao <zhao@google.com> DO NOT MERGE ANYWHERE.

Revert "DO NOT MERGE ANYWHERE."

This reverts commit b7c798f9b84c7c100aa37e6aa77e7f31460c7bd7, reversing
changes made to 4e8ecc32db5d3a17ccec099681425c34b630d23b.
ecurity/Android.mk
ecurity/src/android/cts/security/SELinuxHostTest.java
d3b7d1f05ccaa070f736eff74da10657ba1c4d0b 25-Mar-2015 Nick Kralevich <nnk@google.com> am aaafcfa6: am c2610321: am 08e720f8: Merge "SELinuxHostTest: Check that each executable has the expected domain."

* commit 'aaafcfa6967439288379d52ef549150d3bc63408':
SELinuxHostTest: Check that each executable has the expected domain.
50acced6ee8aca479cdbdd92f36a8c928ad09b23 25-Mar-2015 Nick Kralevich <nnk@google.com> am a0623739: am 6d093a28: am 2e4cfa57: Merge "SELinuxHostTest: Add domain tests for logd and lmkd."

* commit 'a0623739a85a52cfaa7ba5cd5948c893c97bd44d':
SELinuxHostTest: Add domain tests for logd and lmkd.
c2610321b501c0a5861bf4669cd4e17a6dfc9628 25-Mar-2015 Nick Kralevich <nnk@google.com> am 08e720f8: Merge "SELinuxHostTest: Check that each executable has the expected domain."

* commit '08e720f8ee9a1170d995b03b748528098f22e101':
SELinuxHostTest: Check that each executable has the expected domain.
6d093a28e7f8369dcd371ef4fa42557aabc532f5 25-Mar-2015 Nick Kralevich <nnk@google.com> am 2e4cfa57: Merge "SELinuxHostTest: Add domain tests for logd and lmkd."

* commit '2e4cfa577a0019b169b2e945d7db06bb9cd70297':
SELinuxHostTest: Add domain tests for logd and lmkd.
08e720f8ee9a1170d995b03b748528098f22e101 25-Mar-2015 Nick Kralevich <nnk@google.com> Merge "SELinuxHostTest: Check that each executable has the expected domain."
402f1bcad3bf6341b656a88a535435cbbc283b92 24-Mar-2015 Jeff Sharkey <jsharkey@android.com> Verify storage behavior for secondary users.

If the device claims to support multiple users, run storage tests
both under owner and secondary users.

Bug: 19905213
Change-Id: Id4c5dcaaf6b26dbec0e77827976d0df3b1984c20
ppsecurity/src/com/android/cts/appsecurity/AppSecurityTests.java
ppsecurity/test-apps/ExternalStorageApp/src/com/android/cts/externalstorageapp/CommonExternalStorageTest.java
4449a6b2439e2309ff76ec2fcb4c624dbae51d01 18-Mar-2015 Stephen Smalley <sds@tycho.nsa.gov> SELinuxHostTest: Add domain tests for logd and lmkd.

Change-Id: I53baea684f78f81c1973c3bd5617ab8cc6087b13
Signed-off-by: Stephen Smalley <sds@tycho.nsa.gov>
ecurity/src/android/cts/security/SELinuxHostTest.java
8873e2c5e0f2506c2741120cc32a7176bda9e1f6 20-Mar-2015 Stephen Smalley <sds@tycho.nsa.gov> SELinuxHostTest: Check that each executable has the expected domain.

The current SELinux domain tests only check that each domain has
the expected executable, but not vice versa, so it is possible
for a service to run in a completely different domain and still
pass the test. Validate that each running process with one of these
executables has the expected domain as well.

Change-Id: I927da0736137db9a807f92d09e70940f235a7b8e
Signed-off-by: Stephen Smalley <sds@tycho.nsa.gov>
ecurity/src/android/cts/security/SELinuxHostTest.java
57b950dbebab3d412d242a993a9619dd78828652 18-Mar-2015 Guang Zhu <guangzhu@google.com> am f8e98a3f: am 60a3845f: am 3467361e: fix incorrection assumption due to DST

* commit 'f8e98a3f02897c104daeaf9f2ab6f6fbea07745d':
fix incorrection assumption due to DST
f8e98a3f02897c104daeaf9f2ab6f6fbea07745d 18-Mar-2015 Guang Zhu <guangzhu@google.com> am 60a3845f: am 3467361e: fix incorrection assumption due to DST

* commit '60a3845f598ebe1c205b3afa1e782b396a21fb69':
fix incorrection assumption due to DST
3467361ee795e22b79c50fddd9197a390908437e 18-Mar-2015 Guang Zhu <guangzhu@google.com> fix incorrection assumption due to DST

Bug: 19685371
Change-Id: I4828590316a9bcd50669579359f8b60d80011908
adb/src/com/android/cts/aadb/TestDeviceFuncTest.java
e63191d9cb0476447cedfca4f9b84ade3fe8af54 13-Mar-2015 Nick Kralevich <nnk@google.com> am 14adea68: am 72edcdfb: Merge "SELinuxHostTest: Add testMLSAttributes test."

* commit '14adea68ce1e04bdca4475a2ca10fe2acb169458':
SELinuxHostTest: Add testMLSAttributes test.
14adea68ce1e04bdca4475a2ca10fe2acb169458 13-Mar-2015 Nick Kralevich <nnk@google.com> am 72edcdfb: Merge "SELinuxHostTest: Add testMLSAttributes test."

* commit '72edcdfb71cd59d0490a74b1aa1302259415604c':
SELinuxHostTest: Add testMLSAttributes test.
23345754be366c9cdd002819efc04ee13d235ecc 13-Mar-2015 Stephen Smalley <sds@tycho.nsa.gov> SELinuxHostTest: Add testMLSAttributes test.

Using the sepolicy-analyze attribute support added by
Ie19361c02feb1ad14ce36862c6aace9e66c422bb, check that
mlstrustedsubject does not include the untrusted_app domain
and that mlstrustedobject does not include the app_data_file type.
Either of these cases would defeat the purpose of enabling
levelFrom=user in seapp_contexts for per-user isolation of
normal apps.

Change-Id: I5c77283e419363bf8834731bfefa61977402d661
Signed-off-by: Stephen Smalley <sds@tycho.nsa.gov>
ecurity/src/android/cts/security/SELinuxHostTest.java
25a8c341343f4ee20f2f28b220dcebfcca3a1512 13-Mar-2015 Nick Kralevich <nnk@google.com> am bfa4601e: am fa060ca9: Merge "SELinuxHostTest: Add tests for other AOSP *_contexts entries."

* commit 'bfa4601e9f6beddd1f1bef742557299473e44e52':
SELinuxHostTest: Add tests for other AOSP *_contexts entries.
bfa4601e9f6beddd1f1bef742557299473e44e52 13-Mar-2015 Nick Kralevich <nnk@google.com> am fa060ca9: Merge "SELinuxHostTest: Add tests for other AOSP *_contexts entries."

* commit 'fa060ca9d964fdda96899f18108305b503d3940c':
SELinuxHostTest: Add tests for other AOSP *_contexts entries.
29dfebf7b40c2f1defbcf56878cc659c6e979a11 13-Mar-2015 Stephen Smalley <sds@tycho.nsa.gov> SELinuxHostTest: Add tests for other AOSP *_contexts entries.

As in I431c1ab22fc53749f623937154b9ec43469d9645, add tests that
require the other device *_contexts files to be identical to the
general AOSP *_contexts entries. Other entries may be added after
the AOSP entries. Retain the separate validation tests to ensure that
all of the entries are valid and that none of the later entries conflict
with the AOSP entries.

Change-Id: Ia54aa263f2245c7090f4b9d9703130c19f11bd28
Signed-off-by: Stephen Smalley <sds@tycho.nsa.gov>
ecurity/Android.mk
ecurity/src/android/cts/security/SELinuxHostTest.java
816119351db5c1eef2ede52418ed595365d98a5d 13-Mar-2015 Nick Kralevich <nnk@google.com> am 6d66faaa: am 9251d4c0: Merge "SELinuxHostTest: Add a test for the AOSP seapp_contexts entries."

* commit '6d66faaac0e1dbd857f3cec2ad0093f202f81deb':
SELinuxHostTest: Add a test for the AOSP seapp_contexts entries.
daf6e1a5600551a413f603f2f3dd13782457e543 13-Mar-2015 Nick Kralevich <nnk@google.com> am 6762b0be: am 4049c5de: Merge "SELinuxHostTest: Validate other SELinux configuration files."

* commit '6762b0bedb1db66d811339406b1600af8f124e2e':
SELinuxHostTest: Validate other SELinux configuration files.
019765de802d0e70fbd73534c0edc10e3b1057de 13-Mar-2015 Nick Kralevich <nnk@google.com> am c8303cb5: am 94321b17: Merge "Implement SELinux no-booleans test as a hostsidetest."

* commit 'c8303cb5d7be04478db8f4b87de4615e753fc8a5':
Implement SELinux no-booleans test as a hostsidetest.
6d66faaac0e1dbd857f3cec2ad0093f202f81deb 12-Mar-2015 Nick Kralevich <nnk@google.com> am 9251d4c0: Merge "SELinuxHostTest: Add a test for the AOSP seapp_contexts entries."

* commit '9251d4c05cbe7b9f2edb2071fcdd91e1679e80bc':
SELinuxHostTest: Add a test for the AOSP seapp_contexts entries.
6762b0bedb1db66d811339406b1600af8f124e2e 12-Mar-2015 Nick Kralevich <nnk@google.com> am 4049c5de: Merge "SELinuxHostTest: Validate other SELinux configuration files."

* commit '4049c5de179ae219e65c75cb0819f33b9088e87b':
SELinuxHostTest: Validate other SELinux configuration files.
c8303cb5d7be04478db8f4b87de4615e753fc8a5 12-Mar-2015 Nick Kralevich <nnk@google.com> am 94321b17: Merge "Implement SELinux no-booleans test as a hostsidetest."

* commit '94321b17c8718c2f36838153c05df0122e56e5df':
Implement SELinux no-booleans test as a hostsidetest.
2f1ee58e63924704b20a2e9a339d57102c2fa0e1 12-Mar-2015 Sander Alewijnse <salewijnse@google.com> am 96b2bf4a: am 9b694bed: am 70071d01: am 3fefecef: Merge "Add test for checking max users > 1 if managed users feature enabled" into lmp-sprout-dev

* commit '96b2bf4a126b9e7df8f1aa8951877221f4a53ec2':
Add test for checking max users > 1 if managed users feature enabled
478800028cdb3c8080b0b1fb6b195b8c972688e0 12-Mar-2015 Stephen Smalley <sds@tycho.nsa.gov> SELinuxHostTest: Add a test for the AOSP seapp_contexts entries.

Add a test that requires the device seapp_contexts to be identical
to the general AOSP seapp_contexts entries. Other entries may be
added after the AOSP entries. Retain the separate checkseapp validation
test to ensure that all of the entries are valid and that none of the
later entries conflict with the AOSP entries.

Change-Id: I431c1ab22fc53749f623937154b9ec43469d9645
Signed-off-by: Stephen Smalley <sds@tycho.nsa.gov>
ecurity/Android.mk
ecurity/src/android/cts/security/SELinuxHostTest.java
d4e1e04782893dfd2fa4bdd5475640c360423a5e 12-Mar-2015 Stephen Smalley <sds@tycho.nsa.gov> SELinuxHostTest: Validate other SELinux configuration files.

Add new tests to SELinuxHostTest to validate the other SELinux
configuration files, including seapp_contexts, file_contexts,
property_contexts, and service_contexts. Requires adding the
checkseapp and checkfc programs as resources.

Change-Id: I43f99b4c0bd5105507c8ef9ccba6df3af059c1f5
Signed-off-by: Stephen Smalley <sds@tycho.nsa.gov>
ecurity/Android.mk
ecurity/src/android/cts/security/SELinuxHostTest.java
ea811aee1f984d1f53f5257054f3034c4d49334e 11-Mar-2015 Stephen Smalley <sds@tycho.nsa.gov> Implement SELinux no-booleans test as a hostsidetest.

Change-Id: Ia23a834b05d0b49086374613ff8019dd224bb748
Signed-off-by: Stephen Smalley <sds@tycho.nsa.gov>
ecurity/src/android/cts/security/SELinuxHostTest.java
be831d85e3b053e4d356435e33b0fd755a4fe8e6 12-Mar-2015 Robin Lee <rgl@google.com> Explain why resetPassword needs to be called

This is confusing to anyone who doesn't know about the side-effects of
this method.

Change-Id: I5f67a43161b262f84c2e0f04e7d3c91074eadf68
evicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/KeyManagementTest.java
96b2bf4a126b9e7df8f1aa8951877221f4a53ec2 11-Mar-2015 Sander Alewijnse <salewijnse@google.com> am 9b694bed: am 70071d01: am 3fefecef: Merge "Add test for checking max users > 1 if managed users feature enabled" into lmp-sprout-dev

* commit '9b694bedec7cc85892618c554f55982589a0e895':
Add test for checking max users > 1 if managed users feature enabled
70071d01c62c1bba6714ec380aff4e25e416ad8a 11-Mar-2015 Sander Alewijnse <salewijnse@google.com> am 3fefecef: Merge "Add test for checking max users > 1 if managed users feature enabled" into lmp-sprout-dev

* commit '3fefecefadad527d0a10fd0163337aa8a03c8639':
Add test for checking max users > 1 if managed users feature enabled
1357a23bc128ec0e1083b14cc1a915a7f92a5b67 26-Feb-2015 Sander Alewijnse <salewijnse@google.com> Add test for checking max users > 1 if managed users feature enabled

Bug:19508052
Change-Id: I5449a2ab537be6afaef108275a294fefa73f4407
evicepolicy/src/com/android/cts/devicepolicy/ManagedProfileTest.java
8813c8b2d9f3d45d0682ae18d9de692319f0aced 26-Feb-2015 Ricky Wai <rickywai@google.com> am 9b5926b7: am 7a95cde0: Merge "Add caller-id cts test cases" into lmp-mr1-dev

* commit '9b5926b7c68e74066864a0d6b2c909d20583ef63':
Add caller-id cts test cases
9b5926b7c68e74066864a0d6b2c909d20583ef63 26-Feb-2015 Ricky Wai <rickywai@google.com> am 7a95cde0: Merge "Add caller-id cts test cases" into lmp-mr1-dev

* commit '7a95cde001019cae8b710e329055e427decaa7cd':
Add caller-id cts test cases
7a95cde001019cae8b710e329055e427decaa7cd 26-Feb-2015 Ricky Wai <rickywai@google.com> Merge "Add caller-id cts test cases" into lmp-mr1-dev
99ee91daa4226beb51ebeb4cf06e44f8af2a3410 24-Feb-2015 Nicolas Prevot <nprevot@google.com> Merge "Remove already present users when starting managed profile tests."
90fd37934108885c1c7596d2942f899fcdeeb391 23-Feb-2015 Nicolas Prevot <nprevot@google.com> Remove already present users when starting managed profile tests.

Change-Id: I3b542fb900682ed110d13042e4e47967834d4ab5
evicepolicy/src/com/android/cts/devicepolicy/BaseDevicePolicyTest.java
evicepolicy/src/com/android/cts/devicepolicy/BaseLauncherAppsTest.java
evicepolicy/src/com/android/cts/devicepolicy/ManagedProfileTest.java
86edd21028789b74bc2f51d0bf62451df4723f86 23-Feb-2015 Nicolas Prevot <nprevot@google.com> Merge "Get the clipboard through the activity context."
c959b7fd44e69739dff321406de74a4d9c52352e 23-Feb-2015 Nicolas Prevot <nprevot@google.com> Get the clipboard through the activity context.

In CopyPasteTest: the clipboard was obtained through
the test class context.
Use the activity context to get it instead.

BUG:19452163
Change-Id: I442dc657df4d53c5f260d6844c73d6021411bb92
evicepolicy/app/IntentSender/src/com/android/cts/intent/sender/CopyPasteTest.java
e15238f4133924b57650d426d6843de05e5f1a4d 20-Feb-2015 Alan Treadway <alantreadway@google.com> Fix for ManagedProfileTest failures.

Recent restrictions on the names of remote test methods to execute in
CrossProfileUtils meant that ManagedProfileTest testcases were
failing - all remote method names to be invoked now have a 'test'
prefix to workaround this.

Bug: 19434875
Change-Id: I08223188e2ba4850bbae91220f4a876b619d1555
evicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/CrossProfileUtils.java
evicepolicy/src/com/android/cts/devicepolicy/ManagedProfileTest.java
394947d868a4c2089e5c43c47b9a2dcf849f8462 18-Feb-2015 Zoltan Szatmary-Ban <szatmz@google.com> Fix CTS build.

Change-Id: I09917ebd0749322dca19c49d7b568c54e8b503fe
evicepolicy/src/com/android/cts/devicepolicy/BaseDevicePolicyTest.java
b397a529772a7e1e8faebabda37539dd54cf37b5 18-Feb-2015 Unsuk Jung <unsuk@google.com> resolved conflicts for merge of 1bdc908e to master

Change-Id: Icdd96bf222b2b625f085efd506c6148fd6e16c9f
1bdc908e096b46711b4bfdde7bd1a678bc386851 17-Feb-2015 Zoltan Szatmary-Ban <szatmz@google.com> am 1d69c0e5: resolved conflicts for merge of 79892c8d to lmp-mr1-dev

* commit '1d69c0e510a2f19c00d2be08e2264802a30c385a':
Differentiate device feature checking across Device Policy tests
1d69c0e510a2f19c00d2be08e2264802a30c385a 17-Feb-2015 Zoltan Szatmary-Ban <szatmz@google.com> resolved conflicts for merge of 79892c8d to lmp-mr1-dev

Change-Id: I907d3760640108f707837a42154bbed3f0371eec
080be6fe872a80d7bb02250fe54a9fe7240d5f9a 12-Feb-2015 Ricky Wai <rickywai@google.com> Add caller-id cts test cases

It tests Managed Profile contacts query in Primary Profile,
when DevicePolicyManager.setCrossProfileCallerIdDisabled() is enabled or disabled.

Change-Id: I054361231f583f4e7134e6cc2a9f83638b083bc7
evicepolicy/app/ManagedProfile/AndroidManifest.xml
evicepolicy/app/ManagedProfile/res/raw/ic_contact_picture.png
evicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/ContactsTest.java
evicepolicy/src/com/android/cts/devicepolicy/ManagedProfileTest.java
479d72c6b5406419282d7b0e1d6898334dba059f 12-Feb-2015 Zoltan Szatmary-Ban <szatmz@google.com> Differentiate device feature checking across Device Policy tests

Maintaining a boolean array for features presence. mHasFeature gets
set up by subclasses based on the feature array.

Bug: 19278471

Change-Id: Ifbed41b9a8b0c9a32a7b71b09ca36a77521618ea
evicepolicy/src/com/android/cts/devicepolicy/BaseDevicePolicyTest.java
evicepolicy/src/com/android/cts/devicepolicy/ManagedProfileTest.java
0337dbf56e1a9a02cd3cb93ccedb8b051e179135 04-Feb-2015 Stuart Scott <stuartscott@google.com> Split the build of the CTS infrastructure from the tests.

This allows developers to build the test packages individually without
needing to build the entire CTS release.

Add new build target for support packages

bug: 18945639
Change-Id: I60b79797b2d254b96aa98f88cfd5b19d195ea982
ppsecurity/test-apps/AppAccessData/Android.mk
ppsecurity/test-apps/AppWithData/Android.mk
ppsecurity/test-apps/DocumentClient/Android.mk
ppsecurity/test-apps/DocumentProvider/Android.mk
ppsecurity/test-apps/ExternalStorageApp/Android.mk
ppsecurity/test-apps/InstrumentationAppDiffCert/Android.mk
ppsecurity/test-apps/MultiUserStorageApp/Android.mk
ppsecurity/test-apps/PermissionDeclareApp/Android.mk
ppsecurity/test-apps/PermissionDeclareAppCompat/Android.mk
ppsecurity/test-apps/ReadExternalStorageApp/Android.mk
ppsecurity/test-apps/SharedUidInstall/Android.mk
ppsecurity/test-apps/SharedUidInstallDiffCert/Android.mk
ppsecurity/test-apps/SimpleAppInstall/Android.mk
ppsecurity/test-apps/SimpleAppInstallDiffCert/Android.mk
ppsecurity/test-apps/SplitApp/Android.mk
ppsecurity/test-apps/SplitApp/feature/Android.mk
ppsecurity/test-apps/SplitApp/libs/arm64-v8a/Android.mk
ppsecurity/test-apps/SplitApp/libs/armeabi-v7a/Android.mk
ppsecurity/test-apps/SplitApp/libs/armeabi/Android.mk
ppsecurity/test-apps/SplitApp/libs/mips/Android.mk
ppsecurity/test-apps/SplitApp/libs/mips64/Android.mk
ppsecurity/test-apps/SplitApp/libs/x86/Android.mk
ppsecurity/test-apps/SplitApp/libs/x86_64/Android.mk
ppsecurity/test-apps/TargetInstrumentationApp/Android.mk
ppsecurity/test-apps/UsePermissionDiffCert/Android.mk
ppsecurity/test-apps/WriteExternalStorageApp/Android.mk
ppsecurity/test-apps/keysets/permDef/Android.mk
ppsecurity/test-apps/keysets/permUse/Android.mk
ppsecurity/test-apps/keysets/testApp/Android.mk
ppsecurity/test-apps/keysets/uA/Android.mk
ppsecurity/test-apps/keysets/uAB/Android.mk
ppsecurity/test-apps/keysets/uAuB/Android.mk
ppsecurity/test-apps/keysets/uB/Android.mk
ppsecurity/test-apps/keysets/uNone/Android.mk
onkey/test-apps/CtsMonkeyApp/Android.mk
onkey/test-apps/CtsMonkeyApp2/Android.mk
et/app/Android.mk
7d0922e2b86238c7d8778a62ccead1e55f8f0782 09-Feb-2015 Chenjie Luo <cjluo@google.com> am b42253e1: am be215ae0: Merge "Add assets to API level 22 to android.host.theme." into lmp-mr1-dev

* commit 'b42253e160b05060e13f7ea33fecee8b158a623c':
Add assets to API level 22 to android.host.theme.
b42253e160b05060e13f7ea33fecee8b158a623c 07-Feb-2015 Chenjie Luo <cjluo@google.com> am be215ae0: Merge "Add assets to API level 22 to android.host.theme." into lmp-mr1-dev

* commit 'be215ae0646a0f3b063239554d22e79df1e17935':
Add assets to API level 22 to android.host.theme.
be215ae0646a0f3b063239554d22e79df1e17935 06-Feb-2015 Chenjie Luo <cjluo@google.com> Merge "Add assets to API level 22 to android.host.theme." into lmp-mr1-dev
13786779db03714cee7b098b5edd771e5d71b5ce 06-Feb-2015 Chenjie Luo <cjluo@google.com> Add assets to API level 22 to android.host.theme.

The new assets are copied from API level 21 since system UI is not changed

Bug: 18898218
Change-Id: Icb654bbac9d7a78fa8272e198ef5f9236ce7fba3
heme/assets/22/400dpi.zip
heme/assets/22/560dpi.zip
heme/assets/22/hdpi.zip
heme/assets/22/ldpi.zip
heme/assets/22/mdpi.zip
heme/assets/22/tvdpi.zip
heme/assets/22/xhdpi.zip
heme/assets/22/xxhdpi.zip
48f49f3d276ba47a84b2e259ade6216832d19469 06-Feb-2015 dcashman <dcashman@google.com> Merge "Split SELinux neverallow rules test." into lmp-sprout-dev
fb28897f87bf1da442ae589a198981a23b3b0a06 25-Oct-2014 dcashman <dcashman@google.com> Split SELinux neverallow rules test.

The current neverallow rules test component of the security host tests is
responsible for validating all of the security assertions present as part of
the neverallow rules present, but it offers an all-or-nothing result. Given
the number and scope of those rules, finer granularity is desired. This CL
dynamically produces a java source file at build-time which has split each
neverallow rule into its own test.

Bug: 18005561
Bug: 18617876

Cherry-pick of commit: b34ae0b2998aa3ac14034b2a8e48b6d4e94f7605
with commit: a44c966e626ba1ed4476c5e45fdade51fffcf74a squashed in.

Bug: 19191637
ecurity/Android.mk
ecurity/src/android/cts/security/SELinuxHostTest.java
056fff4a862d0f2dc020b3da16bcae30a535b527 06-Feb-2015 dcashman <dcashman@google.com> Merge "Change SELinuxHostTest to new sepolicy-analyze args." into lmp-sprout-dev
b96a667f1977e150d11179eb637b51ec594d4728 06-Feb-2015 Takayuki Hoshi <hoshi@google.com> am 0cc7a53c: am fc28b80a: am b5679b61: Merge "Fix MonkeyApp so it keeps the current screen orientation on TVs" into lmp-sprout-dev

* commit '0cc7a53ca83202a32abc12fc9748b60358c334ef':
Fix MonkeyApp so it keeps the current screen orientation on TVs
0cc7a53ca83202a32abc12fc9748b60358c334ef 06-Feb-2015 Takayuki Hoshi <hoshi@google.com> am fc28b80a: am b5679b61: Merge "Fix MonkeyApp so it keeps the current screen orientation on TVs" into lmp-sprout-dev

* commit 'fc28b80a2502b78830b346f77ce85cdc7c0be690':
Fix MonkeyApp so it keeps the current screen orientation on TVs
8bba8a69b19677853e0650ff6371d39d3bf76cd9 06-Feb-2015 Kenny Guy <kennyguy@google.com> resolved conflicts for merge of 3abcb7b7 to master

Change-Id: Ib2bec554f39e76287ea061c10852ce9028d61d17
fc28b80a2502b78830b346f77ce85cdc7c0be690 06-Feb-2015 Takayuki Hoshi <hoshi@google.com> am b5679b61: Merge "Fix MonkeyApp so it keeps the current screen orientation on TVs" into lmp-sprout-dev

* commit 'b5679b61a290041034d74c4167b0f1518568a92a':
Fix MonkeyApp so it keeps the current screen orientation on TVs
b5679b61a290041034d74c4167b0f1518568a92a 06-Feb-2015 Takayuki Hoshi <hoshi@google.com> Merge "Fix MonkeyApp so it keeps the current screen orientation on TVs" into lmp-sprout-dev
e8e4d7455af3a0fd51a5f5d507fee470236f76af 06-Feb-2015 Takayuki Hoshi <hoshi@google.com> Fix MonkeyApp so it keeps the current screen orientation on TVs

Bug: 19258962
Change-Id: I133c71857771e0968cd625b4a8846b77983b3ffd
onkey/test-apps/CtsMonkeyApp/AndroidManifest.xml
511af23079438ecdc02e245759defc9773d32172 04-Nov-2014 dcashman <dcashman@google.com> Change SELinuxHostTest to new sepolicy-analyze args.

As part of the refactoring of sepolicy-analyze
in Change-Id: I45fa07d776cf1bec7d60dba0c03ee05142b86c19, we changed
the command-line arguments expected. Update the testAllEnforcing()
and testNeverallowRules SELinux CTS tests to reflect this change.

Cherry-pick of commit: eb23950e7839c40a3f59aad42de4cb659abcdde2

Change-Id: I5f5d47eb7e818b90716eecfaadf3fc8fb15c96cd
ecurity/src/android/cts/security/SELinuxHostTest.java
3abcb7b7781b73356f06090102a2a75cfd086449 06-Feb-2015 Kenny Guy <kennyguy@google.com> am a26fde69: resolved conflicts for merge of d101eb99 to lmp-mr1-dev

* commit 'a26fde696f90036da472aa78175e183dd2bbb675':
Tests for LauncherApps
30044c619ab3fa1924f8909ed91a3f7c7ad0e896 17-Oct-2014 dcashman <dcashman@google.com> Change SELinux neverallow tests to be sepolicy-analyze based.

Change I47c16ccb910ac730c092cb3ab977c59cb8197ce0 added support to
sepolicy-analyze for checking the SELinux policy binary for neverallow rule
violations. This offers an improvement over the current tests, since this now
checks the entire policy rather than just the components which are extracted
from the AOSP policy. Remove the old tests and replace them with the new.

Cherry-pick from commit: 1e4bf6161c7e771c48540cd77d8e7ada69af8c95

Bug: 19191637
Change-Id: I594a9df75ad52a07b101d71d11d9517dbf9d79be
ecurity/Android.mk
ecurity/src/android/cts/security/SELinuxHostTest.java
13eae907470271d41619140c16bc4be62379821f 16-Oct-2014 dcashman <dcashman@google.com> Fix SELinuxHostTest package structure.

Cherry-pick of commit: d75d6e356711ca16473663ed4631151e3cde59ae

Bug: 19191637
Change-Id: I9200903bd85791e39ccbf70c43717bfe8f6b3076
ecurity/src/android/cts/security/SELinuxHostTest.java
ecurity/src/android/security/cts/SELinuxHostTest.java
a26fde696f90036da472aa78175e183dd2bbb675 05-Feb-2015 Kenny Guy <kennyguy@google.com> resolved conflicts for merge of d101eb99 to lmp-mr1-dev

Change-Id: I406b6e0f5bddd0cd3f1efc3f6cddb07de4cc47d5
817fec2c53a1e05477a4fdc7a1ecc9e3487d6064 05-Feb-2015 Nick Korostelev <nkorsote@google.com> Merge "upgraded devicepolicy tests to use AndroidJUnitRunner"
3ca92c6f759467d3c402a23ec0623c7af6c1cb5e 29-Jan-2015 Nick Korostelev <nkorsote@google.com> upgraded devicepolicy tests to use AndroidJUnitRunner

Bug: 19167490
Change-Id: I4dce05838484acee367c15714b86ad26054bdb8d
evicepolicy/app/DeviceOwner/Android.mk
evicepolicy/app/DeviceOwner/AndroidManifest.xml
evicepolicy/app/IntentSender/Android.mk
evicepolicy/app/IntentSender/AndroidManifest.xml
evicepolicy/app/ManagedProfile/Android.mk
evicepolicy/app/ManagedProfile/AndroidManifest.xml
evicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/ManagedProfileTest.java
evicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/PrimaryUserTest.java
evicepolicy/src/com/android/cts/devicepolicy/BaseDevicePolicyTest.java
d101eb99f187a1a240968892452f546f163e202f 05-Feb-2015 Kenny Guy <kennyguy@google.com> Merge "Tests for LauncherApps" into lmp-sprout-dev
08680635c7b840f36797c03dec9e6b9ea9ca7723 04-Feb-2015 Chenjie Luo <cjluo@google.com> am 329b6857: am ee8d4b37: am 2af4089c: Merge "Update mdpi ldpi reference images for android.host.theme with API level 21" into lmp-sprout-dev

* commit '329b68572bb5084ccd998129d3d411d0e4022e5d':
Update mdpi ldpi reference images for android.host.theme with API level 21
329b68572bb5084ccd998129d3d411d0e4022e5d 04-Feb-2015 Chenjie Luo <cjluo@google.com> am ee8d4b37: am 2af4089c: Merge "Update mdpi ldpi reference images for android.host.theme with API level 21" into lmp-sprout-dev

* commit 'ee8d4b376f2e0b7798ddd90cb4fb71b2cf9c28d4':
Update mdpi ldpi reference images for android.host.theme with API level 21
ee8d4b376f2e0b7798ddd90cb4fb71b2cf9c28d4 04-Feb-2015 Chenjie Luo <cjluo@google.com> am 2af4089c: Merge "Update mdpi ldpi reference images for android.host.theme with API level 21" into lmp-sprout-dev

* commit '2af4089c70ac4b2f8c25d77a96f24c6cb34d8de3':
Update mdpi ldpi reference images for android.host.theme with API level 21
da65244c460e0c704fb1998b2235c4f14f291261 26-Jan-2015 Kenny Guy <kennyguy@google.com> Tests for LauncherApps

CTS Tests for LauncherApps service.

Bug: 17561728
Change-Id: I007c9457781fb750981a506d60e4028a73fa9ba1
evicepolicy/app/LauncherTests/Android.mk
evicepolicy/app/LauncherTests/AndroidManifest.xml
evicepolicy/app/LauncherTests/src/com/android/cts/launchertests/LauncherAppsTests.java
evicepolicy/app/LauncherTests/src/com/android/cts/launchertests/TestActivity.java
evicepolicy/app/LauncherTestsSupport/Android.mk
evicepolicy/app/LauncherTestsSupport/AndroidManifest.xml
evicepolicy/app/LauncherTestsSupport/src/com/android/cts/launchertests/support/LauncherCallbackTestsService.java
evicepolicy/app/SimpleApp/Android.mk
evicepolicy/app/SimpleApp/AndroidManifest.xml
evicepolicy/app/SimpleApp/src/com/android/cts/launcherapps/simpleapp/NonExportedActivity.java
evicepolicy/app/SimpleApp/src/com/android/cts/launcherapps/simpleapp/NonLauncherActivity.java
evicepolicy/app/SimpleApp/src/com/android/cts/launcherapps/simpleapp/SimpleActivity.java
evicepolicy/src/com/android/cts/devicepolicy/BaseDevicePolicyTest.java
evicepolicy/src/com/android/cts/devicepolicy/BaseLauncherAppsTest.java
evicepolicy/src/com/android/cts/devicepolicy/LauncherAppsMultiUserTest.java
evicepolicy/src/com/android/cts/devicepolicy/LauncherAppsProfileTest.java
evicepolicy/src/com/android/cts/devicepolicy/LauncherAppsSingleUserTest.java
evicepolicy/src/com/android/cts/devicepolicy/ManagedProfileTest.java
6ca91c62dba608fc908bb6d446f405e613ed1ff0 30-Jan-2015 Chenjie Luo <cjluo@google.com> Update mdpi ldpi reference images for android.host.theme with API level 21

Bug: 18540917
Change-Id: I7b815ff7a1f3c9866d46373cfd22cf3a638543bd
heme/assets/21/ldpi.zip
heme/assets/21/mdpi.zip
5152f3d0bbb5c015fb6d3403cf2082b27673f500 30-Jan-2015 Chenjie Luo <cjluo@google.com> am 86859d2e: am 1206e364: am 7123c240: Merge "Optimize assets reading path in sdcard in android.host.theme" into lmp-sprout-dev

* commit '86859d2e9758b954ae47d3b6b9f97d5488b6d89a':
Optimize assets reading path in sdcard in android.host.theme
86859d2e9758b954ae47d3b6b9f97d5488b6d89a 30-Jan-2015 Chenjie Luo <cjluo@google.com> am 1206e364: am 7123c240: Merge "Optimize assets reading path in sdcard in android.host.theme" into lmp-sprout-dev

* commit '1206e3646dd0a77540fef4de8c8b987e5f35afea':
Optimize assets reading path in sdcard in android.host.theme
1206e3646dd0a77540fef4de8c8b987e5f35afea 30-Jan-2015 Chenjie Luo <cjluo@google.com> am 7123c240: Merge "Optimize assets reading path in sdcard in android.host.theme" into lmp-sprout-dev

* commit '7123c240be751aa68211bd506eabf5949af19ee0':
Optimize assets reading path in sdcard in android.host.theme
6c6a102e5dae787275a0005e31f2740402d56867 30-Jan-2015 Chenjie Luo <cjluo@google.com> Optimize assets reading path in sdcard in android.host.theme

Change-Id: Icc6a262b609ba14feabb9e80a962d842628c1d8b
heme/src/android/theme/cts/ComparisonTask.java
ae66135261ed6a5d25a47a98cf3cf832eeb094eb 27-Jan-2015 dcashman <dcashman@google.com> am 2068657b: resolved conflicts for merge of e614cdf9 to lmp-mr1-dev-plus-aosp

* commit '2068657bcbd4e506647e464f83e4c15ade5b2573':
Move SELinuxDomainTests to hostsidetests.
2068657bcbd4e506647e464f83e4c15ade5b2573 27-Jan-2015 dcashman <dcashman@google.com> resolved conflicts for merge of e614cdf9 to lmp-mr1-dev-plus-aosp

Change-Id: I58bad7cf2718df57b5f8e8fb36114785b282499c
712bb78cb792948e9914f6d09637182533c5b918 23-Jan-2015 dcashman <dcashman@google.com> Move SELinuxDomainTests to hostsidetests.

Bug: 19047585
Change-Id: I25b2f9b4fd52863580f2e051dc92b5f7e3d49dbf
ecurity/src/android/cts/security/SELinuxHostTest.java
0bc07b2883c4ad1dc7cc40706b0a3cc685110f86 23-Jan-2015 Jeff Sharkey <jsharkey@android.com> am c5f67f00: am cd627da9: Tests for new revisionCode attribute.

* commit 'c5f67f00190d93abacce6c4dd90fe03eaf08304c':
Tests for new revisionCode attribute.
cd627da9ae239fe423b7ce5fdcf25d298b8abde0 10-Dec-2014 Jeff Sharkey <jsharkey@android.com> Tests for new revisionCode attribute.

Verifies that split APKs can be updated with higher revision codes,
but never downgraded.

Bug: 19118834
Change-Id: I3ce174952d368a3ec70e6738852c71037ade19ed
ppsecurity/src/com/android/cts/appsecurity/SplitTests.java
ppsecurity/test-apps/SplitApp/Android.mk
ppsecurity/test-apps/SplitApp/feature/Android.mk
ppsecurity/test-apps/SplitApp/revision/AndroidManifest.xml
ppsecurity/test-apps/SplitApp/src/com/android/cts/splitapp/SplitAppTest.java
6e0f5425381a51d419a38e1d2787dbf4312e29a6 19-Jan-2015 Sudheer Shanka <sudheersai@google.com> Merge "Update dpm command usage."
ea9d81212c1d16e8c1d691ea46be04f5640ce851 15-Jan-2015 Takayuki Hoshi <hoshi@google.com> am d7375af9: am 66d3808b: am 9673c600: Merge "Fix testSyncFiles_extStorageVariable and testSyncFiles_normal" into lmp-sprout-dev

* commit 'd7375af9dbcb81cec7eec457a7f36be35941d627':
Fix testSyncFiles_extStorageVariable and testSyncFiles_normal
66d3808b0c91fc115305d86787a2638b91779270 15-Jan-2015 Takayuki Hoshi <hoshi@google.com> am 9673c600: Merge "Fix testSyncFiles_extStorageVariable and testSyncFiles_normal" into lmp-sprout-dev

* commit '9673c600463ed1e95b48b1de0d97e512379532b0':
Fix testSyncFiles_extStorageVariable and testSyncFiles_normal
5b08d5c0a3c2c4eb34aa6d0595dd9c201da4fd42 14-Jan-2015 Sudheer Shanka <sudheersai@google.com> Update dpm command usage.

Bug: 18426246
Change-Id: Ibc97ad02210f74c781d1ed5661cbdb59d89318d3
evicepolicy/src/com/android/cts/devicepolicy/ManagedProfileTest.java
6fc3c1ad1ad4580044eacd64f65c85182a2a62e8 14-Jan-2015 Takayuki Hoshi <hoshi@google.com> Fix testSyncFiles_extStorageVariable and testSyncFiles_normal

On fugu and molly and others,
- com.android.cts.aadb.TestDeviceFuncTest#testSyncFiles_extStorageVariable
- com.android.cts.aadb.TestDeviceFuncTest#testSyncFiles_normal
fail when timezone (persist.sys.timezone prop) is set on the
target Android device (e.g., to "Asia/Tokyo"). So fix it by
taking the timezone into account.

Bug: 19007115
Change-Id: Ib47fd27506caefda6a5f5becf9a45da9b347929e
adb/src/com/android/cts/aadb/TestDeviceFuncTest.java
5d0e5267598910c82efd1b5933c0101911577631 13-Jan-2015 Alexandra Gherghina <alexgherghina@google.com> am 4c1495de: am a22b1ec5: am 9bd5998d: Merge "Cts tests for Settings intents" into lmp-sprout-dev

* commit '4c1495de9e72aeeaf4e5184ede311f3f8a1e6c8b':
Cts tests for Settings intents
80546ef92bb826ac99e722e1c7b495e30ebedbd0 13-Jan-2015 Alexandra Gherghina <alexgherghina@google.com> am cad7ae14: am 556d35db: Merge "Revert "Cts tests for Settings intents"" into lmp-mr1-dev

* commit 'cad7ae14f5c9af877b30990d3056a904752b1be4':
Revert "Cts tests for Settings intents"
dab8ba58bb6edc418654fd95d360fb06451060dc 13-Jan-2015 Jeff Sharkey <jsharkey@android.com> am e292d611: am e6033f3e: Merge "Wait for DocumentsUI ANR timeout; expand drawer." into lmp-mr1-dev

* commit 'e292d611d9246e08ee5ef898bff0868382754509':
Wait for DocumentsUI ANR timeout; expand drawer.
a22b1ec5e89c95be75c17747ca3900b751c88a45 13-Jan-2015 Alexandra Gherghina <alexgherghina@google.com> am 9bd5998d: Merge "Cts tests for Settings intents" into lmp-sprout-dev

* commit '9bd5998dc65a39af2b8d25eb5b8f7a4e63a565cb':
Cts tests for Settings intents
556d35db4a47458f0527978fda6538564d86a958 13-Jan-2015 Alexandra Gherghina <alexgherghina@google.com> Merge "Revert "Cts tests for Settings intents"" into lmp-mr1-dev
9bd5998dc65a39af2b8d25eb5b8f7a4e63a565cb 13-Jan-2015 Alexandra Gherghina <alexgherghina@google.com> Merge "Cts tests for Settings intents" into lmp-sprout-dev
e6033f3e2af86453d49cfcf5e00dce9413c62323 12-Jan-2015 Jeff Sharkey <jsharkey@android.com> Merge "Wait for DocumentsUI ANR timeout; expand drawer." into lmp-mr1-dev
69d73a5882783281971745189516b867d574eb1f 09-Jan-2015 Jeff Sharkey <jsharkey@android.com> Wait for DocumentsUI ANR timeout; expand drawer.

The DocumentsUI ANR timeout is 20 seconds, so wait at least that
long before giving up on UI operations. Also try expanding the
roots drawer when we can't find the roots list; probably due to
wedged package removed broadcast.

Bug: 18787642
Change-Id: Iae03d17b120e2bec620a148f0c780aad7043c0d1
ppsecurity/test-apps/DocumentClient/src/com/android/cts/documentclient/DocumentsClientTest.java
4b78e76657091f23a5496cb356da36e88dba1db8 09-Jan-2015 Nicolas Prevot <nprevot@google.com> Merge "Comment that testNoDebuggingFeaturesRestriction fails if adb is running as root."
75e210ce59f34d0caf3c1c07bce933cb9ad6e4c9 09-Jan-2015 Alexandra Gherghina <alexgherghina@google.com> Revert "Cts tests for Settings intents"

This reverts commit 122af17e0c46dc39bc9d468b6e2c10794c5968fd.

Change-Id: I2b1121601dc77ae0101b5585b3b7bf446163a101
evicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/SettingsIntentsTest.java
evicepolicy/src/com/android/cts/devicepolicy/ManagedProfileTest.java
9a5cc2a857fa37ad02dbecfb596ff1aa2dbfa8ce 07-Jan-2015 Nicolas Prevot <nprevot@google.com> Comment that testNoDebuggingFeaturesRestriction fails if adb is running as root.

If adb is running as root, then the adb uid is 0 instead of SHELL_UID
so the DISALLOW_DEBUGGING_FEATURES restriction does not work and
testNoDebuggingFeaturesRestriction fails.

BUG:18927963

Change-Id: Ifbff9900a7db59dd996e22af69724cfc43e949ff
evicepolicy/src/com/android/cts/devicepolicy/ManagedProfileTest.java
d32728fd9a5da80877148201938c74c4734a303f 08-Jan-2015 Rubin Xu <rubinxu@google.com> am 5cd8e6a4: Merge "Remove exception check in testWipeData CTS test" into lmp-sprout-dev

* commit '5cd8e6a430babeb8255e3dfe874c2b6709a0dac3':
Remove exception check in testWipeData CTS test
551a7c2d1e192d9a8986de365fae7bac8722390e 16-Dec-2014 Alexandra Gherghina <alexgherghina@google.com> Cts tests for Settings intents

Bug: 18768328
Change-Id: I438a1de4af0674e7ebe979d4ffa6381ada99ba65
(cherry picked from commit 122af17e0c46dc39bc9d468b6e2c10794c5968fd)
evicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/SettingsIntentsTest.java
evicepolicy/src/com/android/cts/devicepolicy/ManagedProfileTest.java
85e51ae6902a825a7875a4f1ae3077d3fa7f2db8 08-Jan-2015 Alexandra Gherghina <alexgherghina@google.com> Merge "Cts tests for Settings intents" into lmp-mr1-dev
2ec353e7f44dcfe65ee15e00e2bd279fe76516fc 07-Jan-2015 Rubin Xu <rubinxu@google.com> Remove exception check in testWipeData CTS test

After ag/567397, DevicePolicyManagerService.WipeData()
will no longer raise a security exception when called
with ERASE_EXTERNAL_STORAGE flag from a managed profile.
As a result, we should no longer test for that exception
path either.

Bug: 18925478
Change-Id: I6982144956508d1bbed23cd2fd20383cce0838cb
evicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/WipeDataTest.java
122af17e0c46dc39bc9d468b6e2c10794c5968fd 16-Dec-2014 Alexandra Gherghina <alexgherghina@google.com> Cts tests for Settings intents

Bug: 18768328
Change-Id: I438a1de4af0674e7ebe979d4ffa6381ada99ba65
evicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/SettingsIntentsTest.java
evicepolicy/src/com/android/cts/devicepolicy/ManagedProfileTest.java
778542ec498624475a0e350e18a7ebafcdcba8a2 23-Dec-2014 Benjamin Franz <bfranz@google.com> Merge "Add bluetooth tests to managed profile." into lmp-mr1-dev
f2c0882ec468fac67bc2aa421d2f563d6bb675e2 17-Dec-2014 Benjamin Franz <bfranz@google.com> Add bluetooth tests to managed profile.

Test whether the basic bluetooth API is callable from
a managed profile.
Those tests correspond to the ones done in
android.bluetooth.cts.BasicAdapterTest for primary users.

Bug: 18466733
Change-Id: Id294ccba45c3ccc7dc87b85483c0d1e58dfd606f
evicepolicy/app/ManagedProfile/AndroidManifest.xml
evicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/BluetoothTest.java
evicepolicy/src/com/android/cts/devicepolicy/BaseDevicePolicyTest.java
evicepolicy/src/com/android/cts/devicepolicy/ManagedProfileTest.java
edb1e3de0154943dabbfba9dfab401a0ed43df96 19-Dec-2014 Nicolas Prevot <nprevot@google.com> resolved conflicts for merge of 23e37975 to lmp-mr1-dev

Change-Id: I4f82bc381b7ef69cb6099250aca7dce8484e7c72
4cb525394d52ecce303c18590d9955e098a22696 29-Nov-2014 Lorenzo Colitti <lorenzo@google.com> Test TCP and ICMPv6 on VPNs in addition to UDP.

Bug: 15605143
Change-Id: Ifd7a646990619057e714a789902df2c157a768c0
et/app/src/com/android/cts/net/hostside/MyVpnService.java
et/app/src/com/android/cts/net/hostside/PacketReflector.java
et/app/src/com/android/cts/net/hostside/UdpReflector.java
et/app/src/com/android/cts/net/hostside/VpnTest.java
a659a7e68ea78f608b81847fc3f953b39601fe2d 12-Dec-2014 Nicolas Prevot <nprevot@google.com> Fix the lock task cts test.

This test used to rely on onPause being called as a sign that a new activity
had been launched.
But onPause may be called without a new activity being launched.

To fix this test:
The activity that is launched signals that it has been launched with a
broadcast intent.

Also: the main event that can take a long time is to destroy the activity.
So, giving a long timeout when destroying the activity, and a shorter timeout
for the rest.

BUG:17890673

Change-Id: Ieb51ee64dafe26d8633f280c6554bc8e4ebf3bad
evicepolicy/app/DeviceOwner/AndroidManifest.xml
evicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/LockTaskTest.java
c74ec18707c4196127f3cd1608aba02d9b5f4f00 11-Dec-2014 Youngmin Cho <youngminc@google.com> Fix for b/18704498: allow additional fields in Misc and Process sections (not checking the fields' value though for backward compatibility).

Change-Id: I0f3d3dd09be26a8f4cc79006a736f6e63d791692
umpsys/src/android/dumpsys/cts/DumpsysHostTest.java
4e9b7b53f7c5166bb49b6c1c7b1bb9dda9d3bbe4 10-Dec-2014 Jeff Sharkey <jsharkey@android.com> Scroll list of documents when offscreen.

Make Documents tests more robust by offering to scroll, since the
requested document may be offscreen.

Bug: 18245993
Change-Id: Id05b86203851a21bdc2dee61c8d0c87645729b79
(cherry picked from commit 5ce1c8f7d05199a0115a27344c961400d1f66cc8)
ppsecurity/test-apps/DocumentClient/src/com/android/cts/documentclient/DocumentsClientTest.java
e837d82731d7455e6c49e006eb7cbd4ba257773e 05-Nov-2014 Jeff Sharkey <jsharkey@android.com> Scroll to find offscreen Documents roots.

When devices have lots of DocumentsProvider instances or GET_CONTENT
filters, we might need to scroll around to find the root that we're
interested in.

Bug: 18245993
Change-Id: I43a737b06eb578ebfd5954058772151b9f30a833
(cherry picked from commit 13e7ae80eb6b1e477ad0017a5e97b62d72a9e01d)
ppsecurity/test-apps/DocumentClient/src/com/android/cts/documentclient/DocumentsClientTest.java
ae2014907f66e2441b345b528bf180a912c92aef 10-Dec-2014 Jeff Sharkey <jsharkey@android.com> Merge "Scroll list of documents when offscreen." into lmp-mr1-dev
5ce1c8f7d05199a0115a27344c961400d1f66cc8 10-Dec-2014 Jeff Sharkey <jsharkey@android.com> Scroll list of documents when offscreen.

Make Documents tests more robust by offering to scroll, since the
requested document may be offscreen.

Bug: 18245993
Change-Id: Id05b86203851a21bdc2dee61c8d0c87645729b79
ppsecurity/test-apps/DocumentClient/src/com/android/cts/documentclient/DocumentsClientTest.java
474ee4520351a1e68b887e84defd57588fca9c25 10-Dec-2014 Justin Koh <justinkoh@google.com> am 3d6de021: Merge "Increased a CTS test timeout from 5 sec to 30 sec. This test was already flaky on L phones and tablets, but it almost never passed on Clockwork Coral (L) devices. Now it passes. Bug: 18040863 Bug: 18533405" into lmp-sprout-dev

* commit '3d6de0212fb5e0b3400c918a07760a163cb409d0':
Increased a CTS test timeout from 5 sec to 30 sec. This test was already flaky on L phones and tablets, but it almost never passed on Clockwork Coral (L) devices. Now it passes. Bug: 18040863 Bug: 18533405
f4fd4755bfd1a38db1a8a8d87c995ac61d165571 09-Dec-2014 Aaron Whyte <awhyte@google.com> Increased a CTS test timeout from 5 sec to 30 sec.
This test was already flaky on L phones and tablets, but it
almost never passed on Clockwork Coral (L) devices. Now it passes.
Bug: 18040863
Bug: 18533405

Change-Id: I32dc884d48021ff65bdcbe110d9489a6ba0fb322
ppsecurity/test-apps/UsePermissionDiffCert/src/com/android/cts/usespermissiondiffcertapp/AccessPermissionWithDiffSigTest.java
686dda144182d7197237d884083b5290db992408 09-Dec-2014 Jeff Sharkey <jsharkey@android.com> Merge "Use more accurate result for signature mismatch." into lmp-mr1-dev
d12e889ac6716d7c300f0f99436dd088958a7a1f 09-Dec-2014 Jeff Sharkey <jsharkey@android.com> Use more accurate result for signature mismatch.

INSTALL_FAILED_UPDATE_INCOMPATIBLE is a better description of the
real underlying cause when signatures don't match.

Bug: 18413784
Change-Id: Ia96a20b3335e5a46c7c28359155df5174191958c
ppsecurity/src/com/android/cts/appsecurity/AppSecurityTests.java
fecb9f17413c911ac1e3639f8679ec2ab8042084 08-Dec-2014 Chenjie Luo <cjluo@google.com> am a42b40e5: Merge "Update buttom_pressed reference image" into lmp-sprout-dev

* commit 'a42b40e5a3abb72af3c3395fa6207a2e775bbfd3':
Update buttom_pressed reference image
eabe66ecd3edaeae5d6bf843628b424f1a4ab445 06-Dec-2014 Chenjie Luo <cjluo@google.com> Update buttom_pressed reference image

Bug: 18540917
Change-Id: I41d775c1a95e49d231f6f9031900adff002ef4f4
heme/assets/21/hdpi.zip
a44c966e626ba1ed4476c5e45fdade51fffcf74a 03-Dec-2014 Nicholas Sauer <nicksauer@google.com> Fix CTS - Test plans not generated.

-Fix a typo introduced in ag/588257 that prevented test plans from generating
-Remove ddmlib from mk file. No longer necessary as it is included by the tradefed prebuilt

Cherry-pick of commit: a1715acb9f9cb6f5bb5bba0d5184ec42e2feadcf

Bug: 18617876
Change-Id: Ibffcdc2981ece968cd63f9c843aa6f6726af5cf4
ecurity/Android.mk
b79b5e8d868cdf28f7edd1b7e37dc380df43a91f 03-Dec-2014 Lorenzo Colitti <lorenzo@google.com> Merge "Add a CTS test for the VPN API." into lmp-mr1-dev
a273d525b1038dda6d8040a3d016346f4c961f73 03-Dec-2014 Nicholas Sauer <nicksauer@google.com> Merge "Fix CTS - Test plans not generated." into lmp-mr1-dev
a1715acb9f9cb6f5bb5bba0d5184ec42e2feadcf 03-Dec-2014 Nicholas Sauer <nicksauer@google.com> Fix CTS - Test plans not generated.

-Fix a typo introduced in ag/588257 that prevented test plans from generating
-Remove ddmlib from mk file. No longer necessary as it is included by the tradefed prebuilt

bug:18416269
Change-Id: I64ba6c0f0e721097165f84e6382090e72d23a3fb
ecurity/Android.mk
1961da5a541c87d5c09dc3c183b1c5b699633d37 02-Dec-2014 Jeff Sharkey <jsharkey@android.com> Test for getCodeCacheDir() behavior.

Verify that code cache directory is deleted on app upgrade. Also
clean up some other tests that had temporary workarounds.

Bug: 17968889
Change-Id: I7abdaff9dc498da584e9f6dc323edf67ac3350ea
ppsecurity/src/com/android/cts/appsecurity/SplitTests.java
ppsecurity/test-apps/SplitApp/src/com/android/cts/splitapp/SplitAppTest.java
33b838bef264d881895f71ac06023777deb54148 17-Nov-2014 Lorenzo Colitti <lorenzo@google.com> Add a CTS test for the VPN API.

Bug: 15605143
Change-Id: I8e5f8b281b6ee16acf8daf1b4a1113847e1ccabd
et/Android.mk
et/app/Android.mk
et/app/AndroidManifest.xml
et/app/src/com/android/cts/net/hostside/MyActivity.java
et/app/src/com/android/cts/net/hostside/MyVpnService.java
et/app/src/com/android/cts/net/hostside/UdpReflector.java
et/app/src/com/android/cts/net/hostside/VpnTest.java
et/src/com/android/cts/net/HostsideNetworkTests.java
6d84262c9451406f66b3920f00a9253c4b4c9474 27-Nov-2014 Youngmin Cho <youngminc@google.com> am 7d28e015: Merge "CTS tests for Dumpsys Batterystats" into lmp-sprout-dev

* commit '7d28e01578b081ba3c761c40183fb283f9f2a571':
CTS tests for Dumpsys Batterystats
b34ae0b2998aa3ac14034b2a8e48b6d4e94f7605 25-Oct-2014 dcashman <dcashman@google.com> Split SELinux neverallow rules test.

The current neverallow rules test component of the security host tests is
responsible for validating all of the security assertions present as part of
the neverallow rules present, but it offers an all-or-nothing result. Given
the number and scope of those rules, finer granularity is desired. This CL
dynamically produces a java source file at build-time which has split each
neverallow rule into its own test.

Bug: 18005561

Change-Id: Ib3b454766419532de69f1726bd03215d35d6d495
ecurity/Android.mk
ecurity/src/android/cts/security/SELinuxHostTest.java
8585c33ea93b8436dc444cc455762f6c0cd45571 24-Nov-2014 Youngmin Cho <youngminc@google.com> CTS tests for Dumpsys Batterystats

Based on ag/587218, DumpsysHostTest.java was modified to include
batterystats stuff.

Change-Id: I3a4d0dcbd841d3eaf15d6f4acf740f74be7f4414
umpsys/src/android/dumpsys/cts/DumpsysHostTest.java
fef43a24120800b6a61754d4cb85053d73eb3d9d 24-Nov-2014 Roman Dudko <romandudko@google.com> am b65339b5: Merge "CTS tests for Dumpsys Procstats (this time in lmp-sprout-dev)" into lmp-sprout-dev

* commit 'b65339b5d0b0034205a36f5f9159d9313a224f90':
CTS tests for Dumpsys Procstats (this time in lmp-sprout-dev)
b65339b5d0b0034205a36f5f9159d9313a224f90 22-Nov-2014 Roman Dudko <romandudko@google.com> Merge "CTS tests for Dumpsys Procstats (this time in lmp-sprout-dev)" into lmp-sprout-dev
e43346fdbd1cc47512b86dfd55e5d6fe2e7b7376 21-Nov-2014 Nicholas Sauer <nicksauer@google.com> am 2f54c52b: Add "-v" to any logcat commands run from within CTS tests

* commit '2f54c52b949967679ad08a6c42e7c526238ade09':
Add "-v" to any logcat commands run from within CTS tests
1ae46fda336d6c19cc55f94e083ab23f9d992787 19-Nov-2014 Ying Wang <wangying@google.com> Fix build warning.

Fix build warning:
find: `src': No such file or directory
...

Those modules don't have source directory with name "src".

Change-Id: I6eb0a813c61addfe28a785b544a87144d4a5ef47
ppsecurity/test-apps/keysets/permDef/Android.mk
ppsecurity/test-apps/keysets/permUse/Android.mk
ppsecurity/test-apps/keysets/uA/Android.mk
ppsecurity/test-apps/keysets/uAB/Android.mk
ppsecurity/test-apps/keysets/uAuB/Android.mk
ppsecurity/test-apps/keysets/uB/Android.mk
ppsecurity/test-apps/keysets/uNone/Android.mk
8e1f6e4a0868bb0bfce4341b068898ec615cd6b8 25-Oct-2014 dcashman <dcashman@google.com> Split SELinux neverallow rules test.

The current neverallow rules test component of the security host tests is
responsible for validating all of the security assertions present as part of
the neverallow rules present, but it offers an all-or-nothing result. Given
the number and scope of those rules, finer granularity is desired. This CL
dynamically produces a java source file at build-time which has split each
neverallow rule into its own test.

Bug: 18005561

Change-Id: Ib3b454766419532de69f1726bd03215d35d6d495
ecurity/Android.mk
ecurity/src/android/cts/security/SELinuxHostTest.java
736f60e4ee34c9d9bf23f217c300545c67c3a065 04-Nov-2014 dcashman <dcashman@google.com> Change SELinuxHostTest to new sepolicy-analyze args.

As part of the refactoring of sepolicy-analyze
in Change-Id: I45fa07d776cf1bec7d60dba0c03ee05142b86c19, we changed
the command-line arguments expected. Update the testAllEnforcing()
and testNeverallowRules SELinux CTS tests to reflect this change.

Cherry-pick of commit: eb23950e7839c40a3f59aad42de4cb659abcdde2

Change-Id: I5f5d47eb7e818b90716eecfaadf3fc8fb15c96cd
ecurity/src/android/cts/security/SELinuxHostTest.java
583d2d3f49ffacaff1e647e1d9ed59d459e7df3c 17-Oct-2014 dcashman <dcashman@google.com> Change SELinux neverallow tests to be sepolicy-analyze based.

Change I47c16ccb910ac730c092cb3ab977c59cb8197ce0 added support to
sepolicy-analyze for checking the SELinux policy binary for neverallow rule
violations. This offers an improvement over the current tests, since this now
checks the entire policy rather than just the components which are extracted
from the AOSP policy. Remove the old tests and replace them with the new.

Bug: 18004296

Cherry-pick of commit: d8f368c35d1dcdba572de21888bfdac2ac7d408c, which is a
cherry-pick of commit: 1e4bf6161c7e771c48540cd77d8e7ada69af8c95

Change-Id: I7c1d25493c311256b09598cf3874753331d81dd7
ecurity/Android.mk
ecurity/src/android/cts/security/SELinuxHostTest.java
2f54c52b949967679ad08a6c42e7c526238ade09 20-Nov-2014 Nicholas Sauer <nicksauer@google.com> Add "-v" to any logcat commands run from within CTS tests

Default logcat behavior will soon change. More details here:
https://code.google.com/p/android/issues/detail?id=75694

As a result, add -v brief to all invocations of logcat from CTS to avoid broken
tests when the aforementioned fix is applied.

bug:17410360
Change-Id: Ia5ca757863d9e9cab087b43e5f18be049bb7ae3f
onkey/src/com/android/cts/monkey/MonkeyTest.java
ample/src/android/sample/cts/SampleHostTest.java
heme/src/android/theme/cts/ThemeHostTest.java
sb/src/com/android/cts/usb/TestUsbTest.java
da4fccce3c71062f476cd0ba89724c68febd6310 13-Nov-2014 Roman Dudko <romandudko@google.com> CTS tests for Dumpsys Procstats (this time in lmp-sprout-dev)

Change-Id: I369355291b8bd7067002b4ca6077c022f5e7e1f7
umpsys/Android.mk
umpsys/src/android/dumpsys/cts/DumpsysHostTest.java
ea91b11f9ad5a18c47a5c05f86db3ed80513f337 19-Nov-2014 Ying Wang <wangying@google.com> Fix build warning.

Fix build warning:
find: `src': No such file or directory
...

Those modules don't have source directory with name "src".

Change-Id: I6eb0a813c61addfe28a785b544a87144d4a5ef47
ppsecurity/test-apps/keysets/permDef/Android.mk
ppsecurity/test-apps/keysets/permUse/Android.mk
ppsecurity/test-apps/keysets/uA/Android.mk
ppsecurity/test-apps/keysets/uAB/Android.mk
ppsecurity/test-apps/keysets/uAuB/Android.mk
ppsecurity/test-apps/keysets/uB/Android.mk
ppsecurity/test-apps/keysets/uNone/Android.mk
a15eecc265b8a93a1105fe7357bba3822b911910 16-Oct-2014 dcashman <dcashman@google.com> Fix SELinuxHostTest package structure.

Change-Id: I6b0261a1c46901e5465b466b6263bacfcbb229db
ecurity/src/android/cts/security/SELinuxHostTest.java
ecurity/src/android/security/cts/SELinuxHostTest.java
13e7ae80eb6b1e477ad0017a5e97b62d72a9e01d 05-Nov-2014 Jeff Sharkey <jsharkey@android.com> Scroll to find offscreen Documents roots.

When devices have lots of DocumentsProvider instances or GET_CONTENT
filters, we might need to scroll around to find the root that we're
interested in.

Bug: 18245993
Change-Id: I43a737b06eb578ebfd5954058772151b9f30a833
ppsecurity/test-apps/DocumentClient/src/com/android/cts/documentclient/DocumentsClientTest.java
39db84b811be3e0af3991ddc7c696a372d39917e 04-Nov-2014 dcashman <dcashman@google.com> Change SELinuxHostTest to new sepolicy-analyze args.

As part of the refactoring of sepolicy-analyze
in Change-Id: I45fa07d776cf1bec7d60dba0c03ee05142b86c19, we changed
the command-line arguments expected. Update the testAllEnforcing()
and testNeverallowRules SELinux CTS tests to reflect this change.

Change-Id: I5f5d47eb7e818b90716eecfaadf3fc8fb15c96cd
ecurity/src/android/cts/security/SELinuxHostTest.java
d8f368c35d1dcdba572de21888bfdac2ac7d408c 17-Oct-2014 dcashman <dcashman@google.com> Change SELinux neverallow tests to be sepolicy-analyze based.

Change I47c16ccb910ac730c092cb3ab977c59cb8197ce0 added support to
sepolicy-analyze for checking the SELinux policy binary for neverallow rule
violations. This offers an improvement over the current tests, since this now
checks the entire policy rather than just the components which are extracted
from the AOSP policy. Remove the old tests and replace them with the new.

Bug: 18004296
Change-Id: Iefe508df265f62efa92f8eb74fc65542d39e3e74
ecurity/Android.mk
ecurity/src/android/cts/security/SELinuxHostTest.java
99f81251726e5ed294a723541b694d3a940138d4 27-Oct-2014 Nicolas Prevot <nprevot@google.com> Cts tests for cross-profile copy paste.

BUG: 17998715

Change-Id: I7a752b44b4e15efa49de0912f58aa65f3cea1118
evicepolicy/app/IntentReceiver/AndroidManifest.xml
evicepolicy/app/IntentReceiver/src/com/android/cts/intent/receiver/IntentReceiverActivity.java
evicepolicy/app/IntentSender/src/com/android/cts/intent/sender/ContentTest.java
evicepolicy/app/IntentSender/src/com/android/cts/intent/sender/CopyPasteTest.java
evicepolicy/app/IntentSender/src/com/android/cts/intent/sender/IntentSenderActivity.java
evicepolicy/app/IntentSender/src/com/android/cts/intent/sender/IntentSenderTest.java
evicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/CrossProfileUtils.java
evicepolicy/src/com/android/cts/devicepolicy/ManagedProfileTest.java
421e3330c99b32a739d1cc8a8016afec3c312cae 22-Oct-2014 Jeff Sharkey <jsharkey@android.com> Merge "Force all densities required for SplitTests." into lmp-dev
1e85c99e1063b5c2b86e3257b6cd159035c7ba0d 22-Oct-2014 Jeff Sharkey <jsharkey@android.com> Force all densities required for SplitTests.

Otherwise they may be stripped by certain lunch targets.

Bug: 18050335
Change-Id: Ie627cb864de74a4a998f1e1e8b6fcde934fd138c
ppsecurity/test-apps/SplitApp/Android.mk
ppsecurity/test-apps/SplitApp/feature/Android.mk
f0779c01825b94bb16fd9a9a0627ea2fdfe665f9 22-Oct-2014 Chenjie Luo <cjluo@google.com> Merge "Update android.host.theme reference images for 400dpi device" into lmp-dev
ddf4f9194018d361f10736f4a92c785fdb1f0215 21-Oct-2014 Chenjie Luo <cjluo@google.com> Update android.host.theme reference images for 400dpi device

Bug: 17942910
Change-Id: Id1ad7ad1d44352f36e172e9c464d1502f1a6ad21
heme/assets/21/400dpi.zip
5daa84927ac35583b7c0c20ecd92de76121a89d7 21-Oct-2014 Jeff Sharkey <jsharkey@android.com> Wait a bit longer for DocumentsUI backends.

Since backends startup async, we might need to wait a few seconds
before they show up in the UI.

Bug: 18053011
Change-Id: I0a34502e5c9bd5884c7e363bce9a966eff69be3e
ppsecurity/test-apps/DocumentClient/src/com/android/cts/documentclient/DocumentsClientTest.java
afb216014c5435138e2232a47375e265087e0793 16-Oct-2014 Jeff Sharkey <jsharkey@android.com> am b9354014: Merge "Make sure Documents CTS tests wake up screen." into lmp-dev

* commit 'b9354014025c0e855a8d27835b68ed3b890b7efc':
Make sure Documents CTS tests wake up screen.
69a1ee21a099946cf6a169771040c5b8ba1d0449 16-Oct-2014 Jeff Sharkey <jsharkey@android.com> Make sure Documents CTS tests wake up screen.

Our test activity requests FLAG_TURN_SCREEN_ON, but when the screen
is off we blow through too quickly and the system doens't have a
chance to honor that flag. Wait for UI events to be processed before
continuing, which ensures that the screen comes on.

Bug: 17953507
Change-Id: I4a603411e3dd99c66e9054421da8c37669d6e8b6
ppsecurity/test-apps/DocumentClient/src/com/android/cts/documentclient/DocumentsClientTest.java
a831565ad3a2a008a90ffb886bc065b660cc8026 16-Oct-2014 dcashman <dcashman@google.com> am 82d999a6: Merge "Fix SELinuxHostTest package structure."

* commit '82d999a624995f3a52856493dab133ebf10d3d7e':
Fix SELinuxHostTest package structure.
d75d6e356711ca16473663ed4631151e3cde59ae 16-Oct-2014 dcashman <dcashman@google.com> Fix SELinuxHostTest package structure.

Change-Id: I6b0261a1c46901e5465b466b6263bacfcbb229db
ecurity/src/android/cts/security/SELinuxHostTest.java
ecurity/src/android/security/cts/SELinuxHostTest.java
8d959c10e2f3eb9e85951e9348c869cb9ef1cefd 14-Oct-2014 Jeff Sharkey <jsharkey@android.com> Security tests for cross user intents.

This splits the sender and receiver apps to allow us to test both
directions: from managed to parent and from parent to managed.

Bug: 17983737
Change-Id: I2af55d96a262f71b157bfa3c076846695f726aa8
evicepolicy/app/IntentReceiver/src/com/android/cts/intent/receiver/IntentReceiverActivity.java
evicepolicy/app/IntentSender/Android.mk
evicepolicy/app/IntentSender/AndroidManifest.xml
evicepolicy/app/IntentSender/res/xml/filepaths.xml
evicepolicy/app/IntentSender/src/com/android/cts/intent/sender/BasicContentProvider.java
evicepolicy/app/IntentSender/src/com/android/cts/intent/sender/IntentSenderActivity.java
evicepolicy/app/IntentSender/src/com/android/cts/intent/sender/IntentSenderTest.java
evicepolicy/app/ManagedProfile/AndroidManifest.xml
evicepolicy/app/ManagedProfile/res/xml/filepaths.xml
evicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/AllUsersActivity.java
evicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/ComponentDisablingActivity.java
evicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/CrossProfileUtils.java
evicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/ManagedProfileActivity.java
evicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/ManagedProfileTest.java
evicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/PrimaryUserActivity.java
evicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/PrimaryUserFilterSetterActivity.java
evicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/PrimaryUserTest.java
evicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/TestActivity.java
evicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/crossprofilecontent/BasicContentProvider.java
evicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/crossprofilecontent/CrossProfileContentTest.java
evicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/crossprofilecontent/IntentSenderActivity.java
evicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/crossprofileintentfilters/AllUsersActivity.java
evicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/crossprofileintentfilters/ComponentDisablingActivity.java
evicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/crossprofileintentfilters/ManagedProfileActivity.java
evicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/crossprofileintentfilters/ManagedProfileTest.java
evicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/crossprofileintentfilters/PrimaryUserActivity.java
evicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/crossprofileintentfilters/PrimaryUserFilterSetterActivity.java
evicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/crossprofileintentfilters/PrimaryUserTest.java
evicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/crossprofileintentfilters/TestActivity.java
evicepolicy/src/com/android/cts/devicepolicy/BaseDevicePolicyTest.java
evicepolicy/src/com/android/cts/devicepolicy/ManagedProfileTest.java
85053cfbcffbe6d64a218f66b5b408460e5ba4a5 22-Aug-2014 dcashman <dcashman@google.com> Create SELinux hostside test to check all domains are enforcing.

Change-Id: Ibcc206f01b095e211b04cd8e0b4685422892097b
ecurity/Android.mk
ecurity/src/android/security/cts/SELinuxHostTest.java
2594167c7b8729dec54b6c144b735c5c0fdb76d8 12-Oct-2014 Guang Zhu <guangzhu@google.com> fix build: add missing makefile keysets test app

Bug: 17391204

Change-Id: If14a8583c10e7e530f5bc1e9885f5e1d2b8b92d0
ppsecurity/test-apps/keysets/Android.mk
d48436276f3c00be53a75b2fc34941fb60a7e3d7 11-Oct-2014 Jeff Sharkey <jsharkey@android.com> Merge "Tests for DocumentsProvider and DocumentsUI." into lmp-dev
e53ecc01807134cdfe301aeb0a70be9e0218e048 11-Oct-2014 dcashman <dcashman@google.com> Merge "Add KeySet key-rotation CTS tests." into lmp-dev
e84939a2d4b8931db7dd197499a07e1146837f0e 22-Aug-2014 dcashman <dcashman@google.com> Add KeySet key-rotation CTS tests.

Port the keyset tests found at /platform/frameworks/base/core/tests/coretests/
to CTS.

Bug: 17391204
Change-Id: Ib67be62b9cdc973b2401e02d3b43d40b7d178be4
ppsecurity/certs/keysets/README
ppsecurity/certs/keysets/cts-keyset-test-a.pk8
ppsecurity/certs/keysets/cts-keyset-test-a.x509.pem
ppsecurity/certs/keysets/cts-keyset-test-b.pk8
ppsecurity/certs/keysets/cts-keyset-test-b.x509.pem
ppsecurity/certs/keysets/cts-keyset-test-c.pk8
ppsecurity/certs/keysets/cts-keyset-test-c.x509.pem
ppsecurity/src/com/android/cts/appsecurity/KeySetHostTest.java
ppsecurity/test-apps/keysets/permDef/Android.mk
ppsecurity/test-apps/keysets/permDef/AndroidManifest.xml
ppsecurity/test-apps/keysets/permDef/res/values/strings.xml
ppsecurity/test-apps/keysets/permUse/Android.mk
ppsecurity/test-apps/keysets/permUse/AndroidManifest.xml
ppsecurity/test-apps/keysets/permUse/res/values/strings.xml
ppsecurity/test-apps/keysets/testApp/Android.mk
ppsecurity/test-apps/keysets/testApp/AndroidManifest.xml
ppsecurity/test-apps/keysets/testApp/src/com/android/cts/keysets/KeySetPermissionsTest.java
ppsecurity/test-apps/keysets/uA/Android.mk
ppsecurity/test-apps/keysets/uA/AndroidManifest.xml
ppsecurity/test-apps/keysets/uAB/Android.mk
ppsecurity/test-apps/keysets/uAB/AndroidManifest.xml
ppsecurity/test-apps/keysets/uAuB/Android.mk
ppsecurity/test-apps/keysets/uAuB/AndroidManifest.xml
ppsecurity/test-apps/keysets/uB/Android.mk
ppsecurity/test-apps/keysets/uB/AndroidManifest.xml
ppsecurity/test-apps/keysets/uNone/Android.mk
ppsecurity/test-apps/keysets/uNone/AndroidManifest.xml
3c4d2fcf5775bb7bc002725b26a6d86e1fe6a049 10-Oct-2014 Jeff Sharkey <jsharkey@android.com> Tests for DocumentsProvider and DocumentsUI.

Developers can launch the OPEN_DOCUMENT, CREATE_DOCUMENT, and
OPEN_DOCUMENT_TREE to let the user pick from DocumentsProvider
instances running on the system. This test hosts both a provider
and client, and drives various UI interactions to ensure that
these intents match developer expectations.

Bug: 17953507
Change-Id: I40cc5ae7625edc098a43872183376ca1f62d175c
ppsecurity/src/com/android/cts/appsecurity/DocumentsTest.java
ppsecurity/src/com/android/cts/appsecurity/SplitTests.java
ppsecurity/src/com/android/cts/appsecurity/Utils.java
ppsecurity/test-apps/DocumentClient/Android.mk
ppsecurity/test-apps/DocumentClient/AndroidManifest.xml
ppsecurity/test-apps/DocumentClient/src/com/android/cts/documentclient/DocumentsClientTest.java
ppsecurity/test-apps/DocumentClient/src/com/android/cts/documentclient/MyActivity.java
ppsecurity/test-apps/DocumentProvider/Android.mk
ppsecurity/test-apps/DocumentProvider/AndroidManifest.xml
ppsecurity/test-apps/DocumentProvider/src/com/android/cts/documentprovider/GetContentActivity.java
ppsecurity/test-apps/DocumentProvider/src/com/android/cts/documentprovider/MyDocumentsProvider.java
b297f57cf8db9e274b4977c220e998a835a7aa79 08-Oct-2014 Nicolas Prevot <nprevot@google.com> Test that apps permissions don't work accross users for uris.

Only uri grants should work accross users.

Also move code from the activity to the activity instrumentation.

BUG:17746554

Change-Id: I8702a427513b1e0f3f8055a527c5ef47d30af71c
evicepolicy/app/IntentReceiver/AndroidManifest.xml
evicepolicy/app/IntentReceiver/src/com/android/cts/intent/receiver/IntentReceiverActivity.java
evicepolicy/app/ManagedProfile/AndroidManifest.xml
evicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/crossprofilecontent/BasicContentProvider.java
evicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/crossprofilecontent/CrossProfileContentTest.java
evicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/crossprofilecontent/IntentSenderActivity.java
97d45fdb6bf6bb382df5d461d1036145f6e6bce4 10-Oct-2014 Esteban Talavera <etalavera@google.com> Merge "Add CTS test for DISALLOW_DEBUGGING_FEATURES user restriction" into lmp-dev
d724a39440fc8d9d6021f8d6e11c9d6dc5f8dcb3 09-Oct-2014 Jeff Sharkey <jsharkey@android.com> Tests for "feature" split APKs.

Adds a new "feature" split APK which contains code, new manifest
components, and its own set of split resources. Verify that code
and resources from both base and feature coexist, and that they can
interact with each other.

Bug: 16947729
Change-Id: I8cc1a6c3402ce994aacd9c103338393fb3d145f2
ppsecurity/src/com/android/cts/appsecurity/SplitTests.java
ppsecurity/test-apps/SplitApp/Android.mk
ppsecurity/test-apps/SplitApp/feature/Android.mk
ppsecurity/test-apps/SplitApp/feature/AndroidManifest.xml
ppsecurity/test-apps/SplitApp/feature/assets/dir/dirfile2.txt
ppsecurity/test-apps/SplitApp/feature/assets/file2.txt
ppsecurity/test-apps/SplitApp/feature/res/values-v7/values.xml
ppsecurity/test-apps/SplitApp/feature/res/values/values.xml
ppsecurity/test-apps/SplitApp/feature/src/com/android/cts/splitapp/FeatureActivity.java
ppsecurity/test-apps/SplitApp/feature/src/com/android/cts/splitapp/FeatureLogic.java
ppsecurity/test-apps/SplitApp/feature/src/com/android/cts/splitapp/FeatureProvider.java
ppsecurity/test-apps/SplitApp/feature/src/com/android/cts/splitapp/FeatureR.java
ppsecurity/test-apps/SplitApp/feature/src/com/android/cts/splitapp/FeatureReceiver.java
ppsecurity/test-apps/SplitApp/feature/src/com/android/cts/splitapp/FeatureService.java
ppsecurity/test-apps/SplitApp/src/com/android/cts/splitapp/BaseR.java
ppsecurity/test-apps/SplitApp/src/com/android/cts/splitapp/SplitAppTest.java
cf53b191471f363de7a30df4e0a16b15bdf633de 09-Oct-2014 Esteban Talavera <etalavera@google.com> Add CTS test for DISALLOW_DEBUGGING_FEATURES user restriction

Once the restriction is applied, certain adb commands should not work on the secondary user.

Bug: 17875884
Change-Id: I2f763441b1ead03bb6ef21dc404368111dc275ce
evicepolicy/app/ManagedProfile/AndroidManifest.xml
evicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/UserRestrictionActivity.java
evicepolicy/src/com/android/cts/devicepolicy/ManagedProfileTest.java
6302bb5a9dfd58f975d9614bab261d664a19661a 07-Oct-2014 Jeff Sharkey <jsharkey@android.com> First pass at CTS tests for split APKs.

Defines a CtsSplitApp which includes a base APK, along with splits
for density, API version, and locale. New host-side tests install
various combinations of these split APKs to assert correct behavior.

Specifically verifies that split resources can change manifest
enabled settings, and that the best-matching drawable resources
are picked based on installed splits.

Also includes native code for all supported architectures in
separate splits, verifying that we can install various combinations
and load them correctly. All native code is checked in as prebuilts
since the normal build system can only handle two ABIs max. See the
build_libs.sh script to rebuild and generate all the makefiles from
a single template.

Verifies that security is enforced when installing splits with
different version codes or signing certificates.

Currently only uses "pm" commands directly for managing atomic
install sessions, which is what other SDK tools will be using. Future
changes will add public API tests.

Bug: 16947729
Change-Id: I21cdcad03870311daad93f551f2555fd27ed8378
ppsecurity/src/com/android/cts/appsecurity/SplitTests.java
ppsecurity/test-apps/SplitApp/Android.mk
ppsecurity/test-apps/SplitApp/AndroidManifest.xml
ppsecurity/test-apps/SplitApp/NativeTemplate.mk
ppsecurity/test-apps/SplitApp/README
ppsecurity/test-apps/SplitApp/assets/dir/dirfile1.txt
ppsecurity/test-apps/SplitApp/assets/file1.txt
ppsecurity/test-apps/SplitApp/build_libs.sh
ppsecurity/test-apps/SplitApp/jni/Android.mk
ppsecurity/test-apps/SplitApp/jni/Application.mk
ppsecurity/test-apps/SplitApp/jni/com_android_cts_splitapp_Native.cpp
ppsecurity/test-apps/SplitApp/libs/Android.mk
ppsecurity/test-apps/SplitApp/libs/arm64-v8a/Android.mk
ppsecurity/test-apps/SplitApp/libs/arm64-v8a/AndroidManifest.xml
ppsecurity/test-apps/SplitApp/libs/arm64-v8a/raw/lib/arm64-v8a/libsplitappjni.so
ppsecurity/test-apps/SplitApp/libs/armeabi-v7a/Android.mk
ppsecurity/test-apps/SplitApp/libs/armeabi-v7a/AndroidManifest.xml
ppsecurity/test-apps/SplitApp/libs/armeabi-v7a/raw/lib/armeabi-v7a/libsplitappjni.so
ppsecurity/test-apps/SplitApp/libs/armeabi/Android.mk
ppsecurity/test-apps/SplitApp/libs/armeabi/AndroidManifest.xml
ppsecurity/test-apps/SplitApp/libs/armeabi/raw/lib/armeabi/libsplitappjni.so
ppsecurity/test-apps/SplitApp/libs/mips/Android.mk
ppsecurity/test-apps/SplitApp/libs/mips/AndroidManifest.xml
ppsecurity/test-apps/SplitApp/libs/mips/raw/lib/mips/libsplitappjni.so
ppsecurity/test-apps/SplitApp/libs/mips64/Android.mk
ppsecurity/test-apps/SplitApp/libs/mips64/AndroidManifest.xml
ppsecurity/test-apps/SplitApp/libs/mips64/raw/lib/mips64/libsplitappjni.so
ppsecurity/test-apps/SplitApp/libs/x86/Android.mk
ppsecurity/test-apps/SplitApp/libs/x86/AndroidManifest.xml
ppsecurity/test-apps/SplitApp/libs/x86/raw/lib/x86/libsplitappjni.so
ppsecurity/test-apps/SplitApp/libs/x86_64/Android.mk
ppsecurity/test-apps/SplitApp/libs/x86_64/AndroidManifest.xml
ppsecurity/test-apps/SplitApp/libs/x86_64/raw/lib/x86_64/libsplitappjni.so
ppsecurity/test-apps/SplitApp/res/drawable-hdpi/image.png
ppsecurity/test-apps/SplitApp/res/drawable-mdpi/image.png
ppsecurity/test-apps/SplitApp/res/drawable-xhdpi/image.png
ppsecurity/test-apps/SplitApp/res/drawable-xxhdpi/image.png
ppsecurity/test-apps/SplitApp/res/values-de/values.xml
ppsecurity/test-apps/SplitApp/res/values-fr/values.xml
ppsecurity/test-apps/SplitApp/res/values-sw600dp/values.xml
ppsecurity/test-apps/SplitApp/res/values-v7/values.xml
ppsecurity/test-apps/SplitApp/res/values/values.xml
ppsecurity/test-apps/SplitApp/res/xml-v7/my_activity_meta.xml
ppsecurity/test-apps/SplitApp/res/xml/my_activity_meta.xml
ppsecurity/test-apps/SplitApp/src/com/android/cts/splitapp/BaseActivity.java
ppsecurity/test-apps/SplitApp/src/com/android/cts/splitapp/Native.java
ppsecurity/test-apps/SplitApp/src/com/android/cts/splitapp/SplitAppTest.java
3924da3d4d4d1ce2a5329834a7a3f9e270aec892 08-Oct-2014 Baligh Uddin <baligh@google.com> Merge "Suppress all new Enterprise CTS tests." into lmp-dev
932c8867adb7afdd4d343dfde31ae85ba1513aa3 07-Oct-2014 Esteban Talavera <etalavera@google.com> Suppress all new Enterprise CTS tests.

As requested by Unsuk, new test cases should be added to knownfailures.txt,
so that the test team can help running them as part of the CTS-staging plan.
The stable tests will then be moved out of CTS-staging by the test team.

Also, suppressed LockTaskTest separately until we stop it being flaky.

Bug: 17890673
Change-Id: Ia3c0516d5aec436e9c7944d418acb3683b9ada0c
evicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/LockTaskTest.java
545608703e5292e2b999ec99a7aa5e53c92861eb 07-Oct-2014 Esteban Talavera <etalavera@google.com> Merge "Add more logging when host side assertions fail" into lmp-dev
48a77588525ff5766cf1df014f1caa8c514994e9 07-Oct-2014 Esteban Talavera <etalavera@google.com> Add more logging when host side assertions fail

So that it's easier to find out why a test failed on the CTS test console.

Bug: 17312478
Change-Id: Ifd80ac9c76dc7a003fbf5ceb44b61a71c5596a11
evicepolicy/src/com/android/cts/devicepolicy/BaseDevicePolicyTest.java
evicepolicy/src/com/android/cts/devicepolicy/DeviceOwnerTest.java
evicepolicy/src/com/android/cts/devicepolicy/ManagedProfileTest.java
04b178a5eab90ab15d441190c58cf84284f34571 02-Oct-2014 Alexandra Gherghina <alexgherghina@google.com> Add tests for Cross-profile intent filters that start apps

Bug: 15900074
Change-Id: Ib9afcfe26d00247622e2454b1e7838e22635272a
evicepolicy/app/ManagedProfile/AndroidManifest.xml
evicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/crossprofileintentfilters/ManagedProfileActivity.java
evicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/crossprofileintentfilters/ManagedProfileTest.java
evicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/crossprofileintentfilters/PrimaryUserActivity.java
evicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/crossprofileintentfilters/PrimaryUserTest.java
evicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/crossprofileintentfilters/TestActivity.java
2e46e112b097adbf76cf22ed09e070822315db62 03-Oct-2014 Nicolas Prevot <nprevot@google.com> Merge "CTS tests for cross-profile content uris." into lmp-dev
25543f05c26ce085ca4d33a920cb7a55e71d4388 02-Oct-2014 Alexandra Gherghina <alexgherghina@google.com> Disable activities in a way allowed on a user build

Bug: 15900074
Change-Id: Ic7e1ebe2f9e7e536e2fb126087669774d1a105d3
evicepolicy/app/ManagedProfile/AndroidManifest.xml
evicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/crossprofileintentfilters/ComponentDisablingActivity.java
evicepolicy/src/com/android/cts/devicepolicy/ManagedProfileTest.java
7366f3f6496a75c643656c1c5d37c86dedabe6f7 01-Oct-2014 Nicolas Prevot <nprevot@google.com> CTS tests for cross-profile content uris.

Test that apps in other profiles receiving an intent can read/write uris passed in the ClipData.

BUG: 17746554

Change-Id: Ife0b9556d4b25fb99c93836309829d4c00412257
evicepolicy/app/IntentReceiver/Android.mk
evicepolicy/app/IntentReceiver/AndroidManifest.xml
evicepolicy/app/IntentReceiver/src/com/android/cts/intent/receiver/IntentReceiverActivity.java
evicepolicy/app/ManagedProfile/Android.mk
evicepolicy/app/ManagedProfile/AndroidManifest.xml
evicepolicy/app/ManagedProfile/res/xml/filepaths.xml
evicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/BaseManagedProfileTest.java
evicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/crossprofilecontent/CrossProfileContentTest.java
evicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/crossprofilecontent/IntentSenderActivity.java
evicepolicy/src/com/android/cts/devicepolicy/ManagedProfileTest.java
17aafef6b643b07102d9a7284eca3d4c3296021f 30-Sep-2014 Esteban Talavera <etalavera@google.com> Create environment for running CTS test for Device Owner

At the moment, all DeviceOwner tests are implemented as GTS tests.
However, many of them can be run as CTS tests (i.e. they don't
require special permissions). I've moved across those tests on this change.

Also, I've renamed Profile Owner tests to Managed Profile to avoid confusion.

Bug: 17312478
Change-Id: I426e5b752a36403ec84f5b914558dfbcd407a08a
evicepolicy/app/DeviceOwner/Android.mk
evicepolicy/app/DeviceOwner/AndroidManifest.xml
evicepolicy/app/DeviceOwner/res/xml/device_admin.xml
evicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/ApplicationRestrictionActivity.java
evicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/ApplicationRestrictionsTest.java
evicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/BaseDeviceOwnerTest.java
evicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/CaCertManagementTest.java
evicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/ClearDeviceOwnerTest.java
evicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/DeviceOwnerSetupTest.java
evicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/ExampleIntentReceivingActivity1.java
evicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/ExampleIntentReceivingActivity2.java
evicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/FakeKeys.java
evicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/KeyManagementTest.java
evicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/LockTaskTest.java
evicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/LockTaskUtilityActivity.java
evicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/PersistentIntentResolvingTest.java
evicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/ScreenCaptureDisabledTest.java
evicepolicy/app/ManagedProfile/Android.mk
evicepolicy/app/ManagedProfile/AndroidManifest.xml
evicepolicy/app/ManagedProfile/res/values/strings.xml
evicepolicy/app/ManagedProfile/res/xml/device_admin.xml
evicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/BaseManagedProfileTest.java
evicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/ManagedProfileSetupTest.java
evicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/WipeDataTest.java
evicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/crossprofileintentfilters/AllUsersActivity.java
evicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/crossprofileintentfilters/ManagedProfileActivity.java
evicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/crossprofileintentfilters/ManagedProfileTest.java
evicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/crossprofileintentfilters/PrimaryUserActivity.java
evicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/crossprofileintentfilters/PrimaryUserFilterSetterActivity.java
evicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/crossprofileintentfilters/PrimaryUserTest.java
evicepolicy/app/ProfileOwner/Android.mk
evicepolicy/app/ProfileOwner/AndroidManifest.xml
evicepolicy/app/ProfileOwner/res/values/strings.xml
evicepolicy/app/ProfileOwner/res/xml/device_admin.xml
evicepolicy/app/ProfileOwner/src/com/android/cts/profileowner/BaseProfileOwnerTest.java
evicepolicy/app/ProfileOwner/src/com/android/cts/profileowner/ProfileOwnerSetupTest.java
evicepolicy/app/ProfileOwner/src/com/android/cts/profileowner/WipeDataTest.java
evicepolicy/app/ProfileOwner/src/com/android/cts/profileowner/crossprofileintentfilters/AllUsersActivity.java
evicepolicy/app/ProfileOwner/src/com/android/cts/profileowner/crossprofileintentfilters/ManagedProfileActivity.java
evicepolicy/app/ProfileOwner/src/com/android/cts/profileowner/crossprofileintentfilters/ManagedProfileTest.java
evicepolicy/app/ProfileOwner/src/com/android/cts/profileowner/crossprofileintentfilters/PrimaryUserActivity.java
evicepolicy/app/ProfileOwner/src/com/android/cts/profileowner/crossprofileintentfilters/PrimaryUserFilterSetterActivity.java
evicepolicy/app/ProfileOwner/src/com/android/cts/profileowner/crossprofileintentfilters/PrimaryUserTest.java
evicepolicy/src/com/android/cts/devicepolicy/BaseDevicePolicyTest.java
evicepolicy/src/com/android/cts/devicepolicy/DeviceOwnerTest.java
evicepolicy/src/com/android/cts/devicepolicy/ManagedProfileTest.java
evicepolicy/src/com/android/cts/devicepolicy/ProfileOwnerTest.java
259ad47efcbe29a0fd7616f1ba6fcbd1a68331ff 17-Sep-2014 Nicolas Prevot <nprevot@google.com> Tests for cross-profile intent filters

Bug: 15900074
Change-Id: Id67285cccc7c08173154144de7d37ad9a2ff1bb4
evicepolicy/app/ProfileOwner/AndroidManifest.xml
evicepolicy/app/ProfileOwner/src/com/android/cts/profileowner/BaseProfileOwnerTest.java
evicepolicy/app/ProfileOwner/src/com/android/cts/profileowner/crossprofileintentfilters/AllUsersActivity.java
evicepolicy/app/ProfileOwner/src/com/android/cts/profileowner/crossprofileintentfilters/ManagedProfileActivity.java
evicepolicy/app/ProfileOwner/src/com/android/cts/profileowner/crossprofileintentfilters/ManagedProfileTest.java
evicepolicy/app/ProfileOwner/src/com/android/cts/profileowner/crossprofileintentfilters/PrimaryUserActivity.java
evicepolicy/app/ProfileOwner/src/com/android/cts/profileowner/crossprofileintentfilters/PrimaryUserFilterSetterActivity.java
evicepolicy/app/ProfileOwner/src/com/android/cts/profileowner/crossprofileintentfilters/PrimaryUserTest.java
evicepolicy/src/com/android/cts/devicepolicy/ProfileOwnerTest.java
a8ddb66799eccef2697ea7e88506c9a482a66ef5 22-Sep-2014 Rubin Xu <rubinxu@google.com> CTS test for DevicePolicyManager.wipeData()

If called within a managed profile, wipeData() should remove the current
managed profile. Also, it shouldn't erase the external storage.

Bug: 17562361
Change-Id: Iae3a20436e933792d26a46e0b59d1a4cb1611f4b
evicepolicy/app/ProfileOwner/Android.mk
evicepolicy/app/ProfileOwner/src/com/android/cts/profileowner/WipeDataTest.java
evicepolicy/src/com/android/cts/devicepolicy/ProfileOwnerTest.java
a4e46484cb5df4323bc8a3b76dee9a95de3c34c9 24-Sep-2014 Brett Chabot <brettchabot@google.com> Adjust cts-tradefed to JUnit4 test listener changes

Bug: 16684768
Change-Id: Icfff630f95bd59469490b13da1807878ee17b155
ppsecurity/src/com/android/cts/appsecurity/AppSecurityTests.java
evicepolicy/.gitignore
evicepolicy/src/com/android/cts/devicepolicy/ProfileOwnerTest.java
sb/.gitignore
sb/src/com/android/cts/usb/TestUsbTest.java
c04471d21f3cd409cc215d41b1cdda19769e8c5c 25-Sep-2014 Brett Chabot <brettchabot@google.com> Remove ddmlib -> cts dependency.

ddmlib is now included in tradefed-prebuilt

Bug: 17649015
Change-Id: I214eef2324898412e53a0479321d53e3ba621b5b
adb/Android.mk
ppsecurity/Android.mk
evicepolicy/Android.mk
onkey/Android.mk
ample/Android.mk
ecurity/Android.mk
heme/Android.mk
sb/Android.mk
e28ba07a143afcf77e6850cf81c916e79a57c38b 22-Sep-2014 Stuart Scott <stuartscott@google.com> Update Sample Tests

Change-Id: Iebf7c5feac7f5f7ace7118907e2ffbba667a6382
ample/src/android/sample/cts/SampleHostResultTest.java
ample/src/android/sample/cts/SampleHostTest.java
8c2a2d2290e6553da8856acbebe2bb0520f71486 22-Sep-2014 Stuart Scott <stuartscott@google.com> Merge "Add 64bit support to tests and runners in CTS" into lmp-dev
be18f008ad358dfdc97a01db7a40513bf1e93fa8 20-Sep-2014 Chenjie Luo <cjluo@google.com> Merge "Create assets for new density bucket DENSITY_560 for android.host.theme" into lmp-dev
aec66bf969d1c66efed175e23259f09f53d97f88 20-Sep-2014 Chenjie Luo <cjluo@google.com> Create assets for new density bucket DENSITY_560 for android.host.theme

bug: 17458639
Change-Id: Ida7d3f440a79249836cb480484f89eaec2a7ac8e
heme/app/Android.mk
heme/app/res/drawable-560dpi/display_info.png
heme/app/src/android/theme/app/DisplayInfoActivity.java
heme/assets/21/560dpi.zip
heme/src/android/theme/cts/ThemeHostTest.java
b53252af5bd312b72cff1f78541d663df9888912 17-Sep-2014 Esteban Talavera <etalavera@google.com> Add environment to write profile owner CTS tests

Added the skeleton to be able to run CTS tests on profile owner APIs.

Bug: 17312478
Change-Id: I921289536d36e8c697959c3022afafbcf2eef49a
evicepolicy/Android.mk
evicepolicy/app/Android.mk
evicepolicy/app/ProfileOwner/Android.mk
evicepolicy/app/ProfileOwner/AndroidManifest.xml
evicepolicy/app/ProfileOwner/res/values/strings.xml
evicepolicy/app/ProfileOwner/res/xml/device_admin.xml
evicepolicy/app/ProfileOwner/src/com/android/cts/profileowner/BaseProfileOwnerTest.java
evicepolicy/app/ProfileOwner/src/com/android/cts/profileowner/ProfileOwnerSetupTest.java
evicepolicy/src/com/android/cts/devicepolicy/ProfileOwnerTest.java
fef5e2c93f8f4371d52eec56dd8da7012e970da5 06-Sep-2014 Stuart Scott <stuartscott@google.com> Add 64bit support to tests and runners in CTS

Change-Id: I9a676e19d3ef88f76d8cd862b6fb78917a227159
ppsecurity/src/com/android/cts/appsecurity/AppSecurityTests.java
onkey/src/com/android/cts/monkey/AbstractMonkeyTest.java
ample/src/android/sample/cts/SampleHostResultTest.java
ample/src/android/sample/cts/SampleHostTest.java
heme/src/android/theme/cts/ComparisonTask.java
heme/src/android/theme/cts/ThemeHostTest.java
sb/src/com/android/cts/usb/TestUsbTest.java
5909bcd834fdad6008a7187a1ae3031121a0d6f6 22-Aug-2014 dcashman <dcashman@google.com> Create SELinux hostside test to check all domains are enforcing.

Change-Id: I37936fed33c337e1ab2816258c2aff52700af116
ecurity/Android.mk
ecurity/src/android/security/cts/SELinuxHostTest.java
96b5fc0550d450b86131b2879b2e56b928a942a9 11-Sep-2014 Dianne Hackborn <hackbod@google.com> Add new CTS test for revoking granted permissions.

Change-Id: I4891c245994b2346b7e78cc97151796b03692514
ppsecurity/test-apps/UsePermissionDiffCert/src/com/android/cts/usespermissiondiffcertapp/AccessPermissionWithDiffSigTest.java
f2914309dc3081ee738b5980cc419b32b16b12c8 08-Sep-2014 Chenjie Luo <cjluo@google.com> Update the reference images for android.host.theme

bug: 17405446
Change-Id: Ib4f36062f79036837b040ad57b5166cbf275cea1
heme/assets/21/hdpi.zip
heme/assets/21/tvdpi.zip
heme/assets/21/xhdpi.zip
heme/assets/21/xxhdpi.zip
42aaa5c186ad6d8d539ad4862dd900ff89e67eb3 21-Aug-2014 Chenjie Luo <cjluo@google.com> Create a theme test in cts and updated reference pictures
1) Move android.host.holo to android.host.theme
2) Migrate other tests from android.holo to android.host.theme
3) Skip theme test for watch and tv
4) Delete the CtsHoloTestCases

bug: 17160329
Change-Id: I17bddcbd3a97d5638ba77a6f6b7b0b492c63d4cb
olo/Android.mk
olo/app/Android.mk
olo/app/AndroidManifest.xml
olo/app/res/drawable-400dpi/display_info.png
olo/app/res/drawable-hdpi/display_info.png
olo/app/res/drawable-land-400dpi/display_info.png
olo/app/res/drawable-land-hdpi/display_info.png
olo/app/res/drawable-land-ldpi/display_info.png
olo/app/res/drawable-land-mdpi/display_info.png
olo/app/res/drawable-land-tvdpi/display_info.png
olo/app/res/drawable-land-xhdpi/display_info.png
olo/app/res/drawable-land-xxhdpi/display_info.png
olo/app/res/drawable-land-xxxhdpi/display_info.png
olo/app/res/drawable-ldpi/display_info.png
olo/app/res/drawable-mdpi/display_info.png
olo/app/res/drawable-tvdpi/display_info.png
olo/app/res/drawable-xhdpi/display_info.png
olo/app/res/drawable-xxhdpi/display_info.png
olo/app/res/drawable-xxxhdpi/display_info.png
olo/app/res/layout/button.xml
olo/app/res/layout/checkbox.xml
olo/app/res/layout/chronometer.xml
olo/app/res/layout/display_info.xml
olo/app/res/layout/holo_test.xml
olo/app/res/values/strings.xml
olo/app/src/android/holo/app/CaptureActivity.java
olo/app/src/android/holo/app/CaptureHolo.java
olo/app/src/android/holo/app/DisplayInfoActivity.java
olo/app/src/android/holo/app/HoloDeviceActivity.java
olo/assets/17/hdpi.zip
olo/assets/17/ldpi.zip
olo/assets/17/mdpi.zip
olo/assets/17/tvdpi.zip
olo/assets/17/xhdpi.zip
olo/assets/17/xxhdpi.zip
olo/assets/18/hdpi.zip
olo/assets/18/ldpi.zip
olo/assets/18/mdpi.zip
olo/assets/18/tvdpi.zip
olo/assets/18/xhdpi.zip
olo/assets/18/xxhdpi.zip
olo/assets/18/xxxhdpi.zip
olo/assets/19/400dpi.zip
olo/assets/19/hdpi.zip
olo/assets/19/ldpi.zip
olo/assets/19/mdpi.zip
olo/assets/19/tvdpi.zip
olo/assets/19/xhdpi.zip
olo/assets/19/xxhdpi.zip
olo/assets/19/xxxhdpi.zip
olo/src/android/holo/cts/ComparisonTask.java
olo/src/android/holo/cts/HoloHostTest.java
heme/Android.mk
heme/app/Android.mk
heme/app/AndroidManifest.xml
heme/app/res/drawable-400dpi/display_info.png
heme/app/res/drawable-hdpi/display_info.png
heme/app/res/drawable-ldpi/display_info.png
heme/app/res/drawable-mdpi/display_info.png
heme/app/res/drawable-tvdpi/display_info.png
heme/app/res/drawable-xhdpi/display_info.png
heme/app/res/drawable-xxhdpi/display_info.png
heme/app/res/drawable-xxxhdpi/display_info.png
heme/app/res/layout/button.xml
heme/app/res/layout/calendarview.xml
heme/app/res/layout/checkbox.xml
heme/app/res/layout/chronometer.xml
heme/app/res/layout/color_blue_bright.xml
heme/app/res/layout/color_blue_dark.xml
heme/app/res/layout/color_blue_light.xml
heme/app/res/layout/color_green_dark.xml
heme/app/res/layout/color_green_light.xml
heme/app/res/layout/color_orange_dark.xml
heme/app/res/layout/color_orange_light.xml
heme/app/res/layout/color_purple.xml
heme/app/res/layout/color_red_dark.xml
heme/app/res/layout/color_red_light.xml
heme/app/res/layout/datepicker.xml
heme/app/res/layout/display_info.xml
heme/app/res/layout/edittext.xml
heme/app/res/layout/empty.xml
heme/app/res/layout/holo_test.xml
heme/app/res/layout/progressbar.xml
heme/app/res/layout/progressbar_horizontal_0.xml
heme/app/res/layout/progressbar_horizontal_100.xml
heme/app/res/layout/progressbar_horizontal_50.xml
heme/app/res/layout/progressbar_large.xml
heme/app/res/layout/progressbar_small.xml
heme/app/res/layout/radiobutton.xml
heme/app/res/layout/radiobutton_checked.xml
heme/app/res/layout/radiogroup_horizontal.xml
heme/app/res/layout/radiogroup_vertical.xml
heme/app/res/layout/ratingbar_0.xml
heme/app/res/layout/ratingbar_2point5.xml
heme/app/res/layout/ratingbar_5.xml
heme/app/res/layout/searchview.xml
heme/app/res/layout/seekbar_0.xml
heme/app/res/layout/seekbar_100.xml
heme/app/res/layout/seekbar_50.xml
heme/app/res/layout/spinner.xml
heme/app/res/layout/switch_button.xml
heme/app/res/layout/switch_button_checked.xml
heme/app/res/layout/textview.xml
heme/app/res/layout/timepicker.xml
heme/app/res/layout/togglebutton.xml
heme/app/res/layout/togglebutton_checked.xml
heme/app/res/layout/zoomcontrols.xml
heme/app/res/values/arrays.xml
heme/app/res/values/dimens.xml
heme/app/res/values/strings.xml
heme/app/src/android/theme/app/CaptureActivity.java
heme/app/src/android/theme/app/CaptureHolo.java
heme/app/src/android/theme/app/DisplayInfoActivity.java
heme/app/src/android/theme/app/HoloDeviceActivity.java
heme/app/src/android/theme/app/LayoutModifier.java
heme/app/src/android/theme/app/ReferenceViewGroup.java
heme/app/src/android/theme/app/modifiers/AbstractLayoutModifier.java
heme/app/src/android/theme/app/modifiers/DatePickerModifier.java
heme/app/src/android/theme/app/modifiers/ProgressBarModifier.java
heme/app/src/android/theme/app/modifiers/SearchViewModifier.java
heme/app/src/android/theme/app/modifiers/TimePickerModifier.java
heme/app/src/android/theme/app/modifiers/ViewCheckedModifier.java
heme/app/src/android/theme/app/modifiers/ViewPressedModifier.java
heme/assets/17/400dpi.zip
heme/assets/17/hdpi.zip
heme/assets/17/ldpi.zip
heme/assets/17/mdpi.zip
heme/assets/17/tvdpi.zip
heme/assets/17/xhdpi.zip
heme/assets/18/400dpi.zip
heme/assets/18/hdpi.zip
heme/assets/18/ldpi.zip
heme/assets/18/mdpi.zip
heme/assets/18/tvdpi.zip
heme/assets/18/xhdpi.zip
heme/assets/19/400dpi.zip
heme/assets/19/hdpi.zip
heme/assets/19/ldpi.zip
heme/assets/19/mdpi.zip
heme/assets/19/tvdpi.zip
heme/assets/19/xhdpi.zip
heme/assets/19/xxhdpi.zip
heme/assets/21/400dpi.zip
heme/assets/21/hdpi.zip
heme/assets/21/ldpi.zip
heme/assets/21/mdpi.zip
heme/assets/21/tvdpi.zip
heme/assets/21/xhdpi.zip
heme/assets/21/xxhdpi.zip
heme/src/android/theme/cts/ComparisonTask.java
heme/src/android/theme/cts/ThemeHostTest.java
52f4e69e6148e3f4a16ece309a74f9d911ffc996 28-Aug-2014 Chenjie Luo <cjluo@google.com> am 15f2037e: am 8bd84f74: Update ApiLevel-19 reference images to CtsThemeHostTestCases

* commit '15f2037e4f9bb425dbdcb5cc64692a6f26d96ce9':
Update ApiLevel-19 reference images to CtsThemeHostTestCases
8bd84f742639deeac362f660f8d304a6d9cce34b 28-Aug-2014 Chenjie Luo <cjluo@google.com> Update ApiLevel-19 reference images to CtsThemeHostTestCases

Update the reference images from ApiLevel 18 to 19 and also delete CtsHoloTestCases

Bug: 17160329
Change-Id: I009d7c0b2b3d491c70b1f235969e436874d24586
heme/app/res/drawable-xxxhdpi/display_info.png
heme/assets/18/400dpi.zip
heme/assets/18/hdpi.zip
heme/assets/18/ldpi.zip
heme/assets/18/mdpi.zip
heme/assets/18/tvdpi.zip
heme/assets/18/xhdpi.zip
heme/assets/19/400dpi.zip
heme/assets/19/hdpi.zip
heme/assets/19/ldpi.zip
heme/assets/19/mdpi.zip
heme/assets/19/tvdpi.zip
heme/assets/19/xhdpi.zip
heme/assets/19/xxhdpi.zip
173ec55883294d9f741688b40f16918fbf248393 26-Aug-2014 Chenjie Luo <cjluo@google.com> am e67d4bb5: am dc64dfa7: am b607aed1: am 09eea44a: am a6fff060: am ee271459: Rename hostsidetests/theme/src/android/holo/cts to hostsidetests/theme/src/android/theme/cts to fit the package name android.theme.cts

* commit 'e67d4bb57b47ff2361e063a1b7395bdd0ea47b6e':
Rename hostsidetests/theme/src/android/holo/cts to hostsidetests/theme/src/android/theme/cts to fit the package name android.theme.cts
dc64dfa7f942b28af1addfabe959d187a5ae9b9d 26-Aug-2014 Chenjie Luo <cjluo@google.com> am b607aed1: am 09eea44a: am a6fff060: am ee271459: Rename hostsidetests/theme/src/android/holo/cts to hostsidetests/theme/src/android/theme/cts to fit the package name android.theme.cts

* commit 'b607aed13080618b431694cdfa9cab5d26fd5b2d':
Rename hostsidetests/theme/src/android/holo/cts to hostsidetests/theme/src/android/theme/cts to fit the package name android.theme.cts
09eea44a5067f5eaa6233d771e607897c25823ca 25-Aug-2014 Chenjie Luo <cjluo@google.com> am a6fff060: am ee271459: Rename hostsidetests/theme/src/android/holo/cts to hostsidetests/theme/src/android/theme/cts to fit the package name android.theme.cts

* commit 'a6fff060c4ae53d1ba5daba3efca59db4e20dad2':
Rename hostsidetests/theme/src/android/holo/cts to hostsidetests/theme/src/android/theme/cts to fit the package name android.theme.cts
ee2714592db8d94eb596b672ed8ce64141229710 25-Aug-2014 Chenjie Luo <cjluo@google.com> Rename hostsidetests/theme/src/android/holo/cts to hostsidetests/theme/src/android/theme/cts to fit the package name android.theme.cts

bug: 17160329

Change-Id: Ied3048fac68a49c8673b124789d363e6075a19c3
heme/src/android/holo/cts/ComparisonTask.java
heme/src/android/holo/cts/ThemeHostTest.java
heme/src/android/theme/cts/ComparisonTask.java
heme/src/android/theme/cts/ThemeHostTest.java
5041b71aa56585fae8b116686a7e8c889b1245eb 23-Aug-2014 Chenjie Luo <cjluo@google.com> am 14d04b01: am fae2964e: resolved conflicts for merge of fa2b535e to klp-dev

* commit '14d04b0189ab19475b84383d93003e93b6bd1731':
Create a theme test in cts 1) Move android.host.holo to android.host.theme 2) Migrate other tests from android.holo to android.host.theme 3) Skip theme test for watch and tv
fae2964e08501c420d847a91bf2065d7bac2dc99 23-Aug-2014 Chenjie Luo <cjluo@google.com> resolved conflicts for merge of fa2b535e to klp-dev

Change-Id: Icde2da94d8e101ff0ccda5e76d6278b902379d13
2a81c45aca4ee86d320c021d538e7a7a21af908c 23-Aug-2014 Chenjie Luo <cjluo@google.com> am f80f03ed: am d2f312b7: Create a theme test in cts 1) Move android.host.holo to android.host.theme 2) Migrate other tests from android.holo to android.host.theme 3) Skip theme test for watch and tv

* commit 'f80f03ed41cdd9bb0511fb2e4669efadd8897236':
Create a theme test in cts 1) Move android.host.holo to android.host.theme 2) Migrate other tests from android.holo to android.host.theme 3) Skip theme test for watch and tv
d2f312b7a752fb0b4f77ba8e2979132ff62abe9f 21-Aug-2014 Chenjie Luo <cjluo@google.com> Create a theme test in cts
1) Move android.host.holo to android.host.theme
2) Migrate other tests from android.holo to android.host.theme
3) Skip theme test for watch and tv

bug: 17160329

Change-Id: I17bddcbd3a97d5638ba77a6f6b7b0b492c63d4cb
olo/Android.mk
olo/app/Android.mk
olo/app/AndroidManifest.xml
olo/app/res/drawable-400dpi/display_info.png
olo/app/res/drawable-hdpi/display_info.png
olo/app/res/drawable-land-400dpi/display_info.png
olo/app/res/drawable-land-hdpi/display_info.png
olo/app/res/drawable-land-ldpi/display_info.png
olo/app/res/drawable-land-mdpi/display_info.png
olo/app/res/drawable-land-tvdpi/display_info.png
olo/app/res/drawable-land-xhdpi/display_info.png
olo/app/res/drawable-land-xxhdpi/display_info.png
olo/app/res/drawable-ldpi/display_info.png
olo/app/res/drawable-mdpi/display_info.png
olo/app/res/drawable-tvdpi/display_info.png
olo/app/res/drawable-xhdpi/display_info.png
olo/app/res/drawable-xxhdpi/display_info.png
olo/app/res/layout/button.xml
olo/app/res/layout/checkbox.xml
olo/app/res/layout/chronometer.xml
olo/app/res/layout/display_info.xml
olo/app/res/layout/holo_test.xml
olo/app/res/values/strings.xml
olo/app/src/android/holo/app/CaptureActivity.java
olo/app/src/android/holo/app/CaptureHolo.java
olo/app/src/android/holo/app/DisplayInfoActivity.java
olo/app/src/android/holo/app/HoloDeviceActivity.java
olo/assets/17/hdpi.zip
olo/assets/17/ldpi.zip
olo/assets/17/mdpi.zip
olo/assets/17/tvdpi.zip
olo/assets/17/xhdpi.zip
olo/assets/17/xxhdpi.zip
olo/src/android/holo/cts/ComparisonTask.java
olo/src/android/holo/cts/HoloHostTest.java
heme/Android.mk
heme/app/Android.mk
heme/app/AndroidManifest.xml
heme/app/res/drawable-400dpi/display_info.png
heme/app/res/drawable-hdpi/display_info.png
heme/app/res/drawable-ldpi/display_info.png
heme/app/res/drawable-mdpi/display_info.png
heme/app/res/drawable-tvdpi/display_info.png
heme/app/res/drawable-xhdpi/display_info.png
heme/app/res/drawable-xxhdpi/display_info.png
heme/app/res/layout/button.xml
heme/app/res/layout/calendarview.xml
heme/app/res/layout/checkbox.xml
heme/app/res/layout/chronometer.xml
heme/app/res/layout/color_blue_bright.xml
heme/app/res/layout/color_blue_dark.xml
heme/app/res/layout/color_blue_light.xml
heme/app/res/layout/color_green_dark.xml
heme/app/res/layout/color_green_light.xml
heme/app/res/layout/color_orange_dark.xml
heme/app/res/layout/color_orange_light.xml
heme/app/res/layout/color_purple.xml
heme/app/res/layout/color_red_dark.xml
heme/app/res/layout/color_red_light.xml
heme/app/res/layout/datepicker.xml
heme/app/res/layout/display_info.xml
heme/app/res/layout/edittext.xml
heme/app/res/layout/empty.xml
heme/app/res/layout/holo_test.xml
heme/app/res/layout/progressbar.xml
heme/app/res/layout/progressbar_horizontal_0.xml
heme/app/res/layout/progressbar_horizontal_100.xml
heme/app/res/layout/progressbar_horizontal_50.xml
heme/app/res/layout/progressbar_large.xml
heme/app/res/layout/progressbar_small.xml
heme/app/res/layout/radiobutton.xml
heme/app/res/layout/radiobutton_checked.xml
heme/app/res/layout/radiogroup_horizontal.xml
heme/app/res/layout/radiogroup_vertical.xml
heme/app/res/layout/ratingbar_0.xml
heme/app/res/layout/ratingbar_2point5.xml
heme/app/res/layout/ratingbar_5.xml
heme/app/res/layout/searchview.xml
heme/app/res/layout/seekbar_0.xml
heme/app/res/layout/seekbar_100.xml
heme/app/res/layout/seekbar_50.xml
heme/app/res/layout/spinner.xml
heme/app/res/layout/switch_button.xml
heme/app/res/layout/switch_button_checked.xml
heme/app/res/layout/textview.xml
heme/app/res/layout/timepicker.xml
heme/app/res/layout/togglebutton.xml
heme/app/res/layout/togglebutton_checked.xml
heme/app/res/layout/zoomcontrols.xml
heme/app/res/values/arrays.xml
heme/app/res/values/dimens.xml
heme/app/res/values/strings.xml
heme/app/src/android/theme/app/CaptureActivity.java
heme/app/src/android/theme/app/CaptureHolo.java
heme/app/src/android/theme/app/DisplayInfoActivity.java
heme/app/src/android/theme/app/HoloDeviceActivity.java
heme/app/src/android/theme/app/LayoutModifier.java
heme/app/src/android/theme/app/ReferenceViewGroup.java
heme/app/src/android/theme/app/modifiers/AbstractLayoutModifier.java
heme/app/src/android/theme/app/modifiers/DatePickerModifier.java
heme/app/src/android/theme/app/modifiers/ProgressBarModifier.java
heme/app/src/android/theme/app/modifiers/SearchViewModifier.java
heme/app/src/android/theme/app/modifiers/TimePickerModifier.java
heme/app/src/android/theme/app/modifiers/ViewCheckedModifier.java
heme/app/src/android/theme/app/modifiers/ViewPressedModifier.java
heme/assets/17/400dpi.zip
heme/assets/17/hdpi.zip
heme/assets/17/ldpi.zip
heme/assets/17/mdpi.zip
heme/assets/17/tvdpi.zip
heme/assets/17/xhdpi.zip
heme/src/android/holo/cts/ComparisonTask.java
heme/src/android/holo/cts/ThemeHostTest.java
0fe723b03eca4aea6ba38a97ec2296accd8f69ae 27-Jul-2014 Bart Sears <bsears@google.com> am 3c5d878d: am 39b0fffa: Merge "For the TestDeviceStressTest is the new CTS test case in Android 4.3, this test want test the stability of the adb push/rm , it make 200 little files and try to push it to /storage/sdcard0 and then rm it, this step need repeat 50 time

* commit '3c5d878d4bc365392c1f28cc495694d56df433da':
For the TestDeviceStressTest is the new CTS test case in Android 4.3, this test want test the stability of the adb push/rm , it make 200 little files and try to push it to /storage/sdcard0 and then rm it, this step need repeat 50 times in 10 mins. But for some OEM, the sdcard performance may be poor, some device need 15mins to finish this test without any adb issue. But because the time is too long,which cause the test can not finished in 10 mins , therefore this test case always result failed in most of our devices. So in order to compatible most of the Android device, I submit the patch to reduce the test times from 50 to 25 times. I do think it will benifit more manufactory and meanwhile with no side-effect for the really test result.
64bac3932c3047d1ee00a95fec200195a0989443 17-Feb-2014 yangxingsui <yang.xingsui@zte.com.cn> For the TestDeviceStressTest is the new CTS test case in Android 4.3,
this test want test the stability of the adb push/rm , it make 200
little files and try to push it to /storage/sdcard0 and then rm it, this
step need repeat 50 times in 10 mins.
But for some OEM, the sdcard performance may be poor, some device
need 15mins to finish this test without any adb issue. But because the
time is too long,which cause the test can not finished in 10 mins
, therefore this test case always result failed in most of our
devices.
So in order to compatible most of the Android device, I submit
the patch to reduce the test times from 50 to 25 times. I do think
it will benifit
more manufactory and meanwhile with no side-effect for
the really test result.

Change-Id: I75b3eb0be78298c993bd58e5ca4c6726023cddba
adb/src/com/android/cts/aadb/TestDeviceStressTest.java
7403011e1eb3d307d768f8030c1dd627ce314bf4 11-May-2014 Nicholas Sauer <nicksauer@google.com> Test the image dimensions captured in a screenshot.
bug:14609275
bug:15500275

Change-Id: I62c99835e33fdb5a6a5979685469dfe6d51bb74e
(cherry picked from commit 922c6a30d1715972bf113f2bb9f0315e41a54ab9)
adb/src/com/android/cts/aadb/TestDeviceFuncTest.java
922c6a30d1715972bf113f2bb9f0315e41a54ab9 11-May-2014 Nicholas Sauer <nicksauer@google.com> Test the image dimensions captured in a screenshot.
bug:14609275

Change-Id: I62c99835e33fdb5a6a5979685469dfe6d51bb74e
adb/src/com/android/cts/aadb/TestDeviceFuncTest.java
fcf43a25fe1316789c71bbb3fc91f03ab3505cef 08-May-2014 Justin Koh <justinkoh@google.com> am 0c156da0: am 5af49297: Reduce min file size for screenshots

* commit '0c156da05aca9667643205ed34dc6ac310766aa1':
Reduce min file size for screenshots
0c156da05aca9667643205ed34dc6ac310766aa1 08-May-2014 Justin Koh <justinkoh@google.com> am 5af49297: Reduce min file size for screenshots

* commit '5af49297f70ea8fd7d2cc64da199836a6ffd85db':
Reduce min file size for screenshots
5af49297f70ea8fd7d2cc64da199836a6ffd85db 08-May-2014 Justin Koh <justinkoh@google.com> Reduce min file size for screenshots

Reduce min file size for screenshots to 10K from 16K. 16K is too big for
devices which have a small screen.
Bug:14609275
Change-Id: I9368da1c5bf6fa7242efcb2d9c5abd511a742168
adb/src/com/android/cts/aadb/TestDeviceFuncTest.java
8e2981012e3ecae3a11ec7a6bd96a3380d1c2207 05-Apr-2014 Jeff Sharkey <jsharkey@android.com> CTS tests for prefix-based Uri permission grants.

Verify that new prefix-based grants work correctly, including
how they interact with persistable grants. Also verify the direct
Context grant/revoke methods.

Bug: 10607375
Change-Id: I594b33b26b517ec72fb2581615bbebae7cde10b9
ppsecurity/test-apps/UsePermissionDiffCert/src/com/android/cts/usespermissiondiffcertapp/AccessPermissionWithDiffSigTest.java
f7a404a1b78c1cbf2a47a843577871ff952e677f 09-Apr-2014 Stuart Scott <stuartscott@google.com> am 3e4a0475: am cb8b1f0b: am 7a2c82c7: am 23f6d795: Merge "Uninstall the Holo Apk in tearDown." into klp-dev

* commit '3e4a04755084ed48b2054ad56733c544a0885732':
Uninstall the Holo Apk in tearDown.
3e4a04755084ed48b2054ad56733c544a0885732 09-Apr-2014 Stuart Scott <stuartscott@google.com> am cb8b1f0b: am 7a2c82c7: am 23f6d795: Merge "Uninstall the Holo Apk in tearDown." into klp-dev

* commit 'cb8b1f0b00b40b340e6e71e9a8030a433574a577':
Uninstall the Holo Apk in tearDown.
a2a424d6fb351a53ab8a172e8241ce0929fc892b 08-Apr-2014 Stuart Scott <stuartscott@google.com> Uninstall the Holo Apk in tearDown.

bug:13792540
Change-Id: Ibd1171f8c7413e7feb154522a3a25d1b7b804445
olo/src/android/holo/cts/HoloHostTest.java
a6ea2481f93a3e703de11bb1f6c656827608cea3 09-Jan-2014 Brett Chabot <brettchabot@google.com> Move to android.support.test as CTS instrumentation runner.

Also do the following related cleanup
- Remove references to deprecated BrokenTest and KnownFailure
- Switch CTS tests to build against SDK and not private
android.test.runner where possible

Bug: 12924356

Change-Id: If6151b836456eec4838f8d7d6e11c9834c007fca
ppsecurity/.gitignore
ppsecurity/src/com/android/cts/appsecurity/AppSecurityTests.java
ppsecurity/test-apps/AppAccessData/Android.mk
ppsecurity/test-apps/AppAccessData/AndroidManifest.xml
ppsecurity/test-apps/AppWithData/Android.mk
ppsecurity/test-apps/AppWithData/AndroidManifest.xml
ppsecurity/test-apps/ExternalStorageApp/Android.mk
ppsecurity/test-apps/ExternalStorageApp/AndroidManifest.xml
ppsecurity/test-apps/InstrumentationAppDiffCert/Android.mk
ppsecurity/test-apps/InstrumentationAppDiffCert/AndroidManifest.xml
ppsecurity/test-apps/MultiUserStorageApp/Android.mk
ppsecurity/test-apps/MultiUserStorageApp/AndroidManifest.xml
ppsecurity/test-apps/PermissionDeclareApp/Android.mk
ppsecurity/test-apps/PermissionDeclareAppCompat/Android.mk
ppsecurity/test-apps/ReadExternalStorageApp/Android.mk
ppsecurity/test-apps/ReadExternalStorageApp/AndroidManifest.xml
ppsecurity/test-apps/SharedUidInstall/Android.mk
ppsecurity/test-apps/SharedUidInstallDiffCert/Android.mk
ppsecurity/test-apps/SimpleAppInstall/Android.mk
ppsecurity/test-apps/SimpleAppInstallDiffCert/Android.mk
ppsecurity/test-apps/TargetInstrumentationApp/Android.mk
ppsecurity/test-apps/UsePermissionDiffCert/Android.mk
ppsecurity/test-apps/UsePermissionDiffCert/AndroidManifest.xml
ppsecurity/test-apps/WriteExternalStorageApp/Android.mk
ppsecurity/test-apps/WriteExternalStorageApp/AndroidManifest.xml
olo/app/Android.mk
olo/app/AndroidManifest.xml
sb/SerialTestApp/Android.mk
sb/SerialTestApp/AndroidManifest.xml
sb/src/com/android/cts/usb/TestUsbTest.java
29a9d579c7ace329db3a2e42d1129bb8fbadd1cc 11-Mar-2014 Unsuk Jung <unsuk@google.com> am c0702445: Merge "AppSecurityTests: Do not delete in WhiteLists."

* commit 'c070244575c63be88b0a941f0fae27034d391250':
AppSecurityTests: Do not delete in WhiteLists.
af3ac04b0d9cebec3920b7ace00905d0bc1866dd 11-Mar-2014 Stuart Scott <stuartscott@google.com> am c19cd3f3: Merge "For the TestDeviceStressTest is the new CTS test case in Android 4.3, this test want test the stability of the adb push/rm , it make 200 little files and try to push it to /storage/sdcard0 and then rm it, this step need repeat 50 times in 10 mins.

* commit 'c19cd3f3401d2e036d27f5c69f12411ce970b239':
For the TestDeviceStressTest is the new CTS test case in Android 4.3, this test want test the stability of the adb push/rm , it make 200 little files and try to push it to /storage/sdcard0 and then rm it, this step need repeat 50 times in 10 mins. But for some OEM, the sdcard performance may be poor, some device need 15mins to finish this test without any adb issue. But because the time is too long,which cause the test can not finished in 10 mins , therefore this test case always result failed in most of our devices. So in order to compatible most of the Android device, I submit the patch to reduce the test times from 50 to 25 times. I do think it will benifit more manufactory and meanwhile with no side-effect for the really test result.
0fce60a1b559d67a1b8ca3083360eea74c7e4721 28-Feb-2014 Unsuk Jung <unsuk@google.com> am c0702445: Merge "AppSecurityTests: Do not delete in WhiteLists."

* commit 'c070244575c63be88b0a941f0fae27034d391250':
AppSecurityTests: Do not delete in WhiteLists.
c070244575c63be88b0a941f0fae27034d391250 28-Feb-2014 Unsuk Jung <unsuk@google.com> Merge "AppSecurityTests: Do not delete in WhiteLists."
c8b2ec120ce76fcd9ead9235a94836fe9fd47ed4 26-Feb-2014 Stuart Scott <stuartscott@google.com> am c19cd3f3: Merge "For the TestDeviceStressTest is the new CTS test case in Android 4.3, this test want test the stability of the adb push/rm , it make 200 little files and try to push it to /storage/sdcard0 and then rm it, this step need repeat 50 times in 10 mins.

* commit 'c19cd3f3401d2e036d27f5c69f12411ce970b239':
For the TestDeviceStressTest is the new CTS test case in Android 4.3, this test want test the stability of the adb push/rm , it make 200 little files and try to push it to /storage/sdcard0 and then rm it, this step need repeat 50 times in 10 mins. But for some OEM, the sdcard performance may be poor, some device need 15mins to finish this test without any adb issue. But because the time is too long,which cause the test can not finished in 10 mins , therefore this test case always result failed in most of our devices. So in order to compatible most of the Android device, I submit the patch to reduce the test times from 50 to 25 times. I do think it will benifit more manufactory and meanwhile with no side-effect for the really test result.
a7fbe2a19973287ac4706d245b297a900b8b3001 17-Feb-2014 nao <nao.tanaka.cy@kyocera.jp> AppSecurityTests: Do not delete in WhiteLists.

The applications do not have any permissions to access to some
directories that are protected by FUSE Daemon.
But AppSecurityTests will delete these directories.
This implementation contradicts AppSecurityTests.

Following files and directories should be protected

- .android_secure
- android_secure
- autorun.inf

These are not allowed to any access by FUSE daemon.

Change-Id: Ia3e57ac888a756f23b5fa76bcaca7109733098bb
Signed-off-by: nao <nao.tanaka.cy@kyocera.jp>
ppsecurity/test-apps/ExternalStorageApp/src/com/android/cts/externalstorageapp/CommonExternalStorageTest.java
0a613ca8f5a15d811a2afa132fced64542da64d1 22-Feb-2014 Stuart Scott <stuartscott@google.com> am 6596a0d1: am 58b8af59: am 75db54cc: am f5c69833: Update holo resources for api 17

* commit '6596a0d14b6db6e4ddce3c4ed5b4a60a58ed72d6':
Update holo resources for api 17
58b8af59fbc89a828479d8ec7c6ff9b1d0a65f52 22-Feb-2014 Stuart Scott <stuartscott@google.com> am 75db54cc: am f5c69833: Update holo resources for api 17

* commit '75db54cc9521b7319337090d2ad03e54fb475817':
Update holo resources for api 17
576c4e3d1c481aace67c578c2ce7b7945afedb6a 22-Feb-2014 Stuart Scott <stuartscott@google.com> am 0efd91ef: am 7839b7af: Update holo resources for api 18

* commit '0efd91ef216ba3753dde0180446f980464f2cbf2':
Update holo resources for api 18
a14a7d13b6811d148b4f4bea1b01cfd53862889e 22-Feb-2014 Stuart Scott <stuartscott@google.com> Update holo resources for api 19

Change-Id: I32f8903a59d3ee923b746534228b026ea54d4da1
olo/assets/19/400dpi.zip
olo/assets/19/hdpi.zip
olo/assets/19/ldpi.zip
olo/assets/19/mdpi.zip
olo/assets/19/tvdpi.zip
olo/assets/19/xhdpi.zip
olo/assets/19/xxhdpi.zip
olo/assets/19/xxxhdpi.zip
f5c69833cef2ea7fa946881684c72c00ba10cb94 21-Feb-2014 Stuart Scott <stuartscott@google.com> Update holo resources for api 17

Change-Id: I8391ff46085b4c97c92cb6b2bdff406089262b33
olo/assets/17/hdpi.zip
olo/assets/17/ldpi.zip
olo/assets/17/mdpi.zip
olo/assets/17/tvdpi.zip
olo/assets/17/xhdpi.zip
olo/assets/17/xxhdpi.zip
7839b7affbbd6a25a0e0fabb26ae733f33af5173 21-Feb-2014 Stuart Scott <stuartscott@google.com> Update holo resources for api 18

Change-Id: I6781b6a203cd8a3769d67e652cc86d13d4a33a93
olo/assets/18/hdpi.zip
olo/assets/18/ldpi.zip
olo/assets/18/mdpi.zip
olo/assets/18/tvdpi.zip
olo/assets/18/xhdpi.zip
olo/assets/18/xxhdpi.zip
olo/assets/18/xxxhdpi.zip
e226cd6db0847a0d5943309b0c102dcdd5584697 21-Feb-2014 Stuart Scott <stuartscott@google.com> Merge "Updating resources for hostside holo tests" into klp-dev
d2c7f923a46f6a09fcb963faf38d81fb2dd5e99c 20-Feb-2014 Stuart Scott <stuartscott@google.com> am 371cc061: am e11293b2: am e89fa097: am 6917cba4: Holo test only includes assets for the current version.

* commit '371cc061ba50b96bd2671cd0d4c84bf31c21bac6':
Holo test only includes assets for the current version.
e11293b2af44d32098638b302896da4cd7867793 20-Feb-2014 Stuart Scott <stuartscott@google.com> am e89fa097: am 6917cba4: Holo test only includes assets for the current version.

* commit 'e89fa0976c850f56a9c8f268c60eae082e8573e3':
Holo test only includes assets for the current version.
6917cba4bfb93ac5985ff4744aeb65cf250cb677 20-Feb-2014 Stuart Scott <stuartscott@google.com> Holo test only includes assets for the current version.

Change-Id: I687fc898ef998771d3abbcbe3dcc1cf1de2c9b83
olo/Android.mk
e82c7e9c91afb48b3e83e05efba1997a5ec36765 05-Feb-2014 Stuart Scott <stuartscott@google.com> Updating resources for hostside holo tests

Change-Id: I1c1ce6c8a55470829c5e0742b4a1cb9d88cf60a6
olo/app/res/drawable-land-xxxhdpi/display_info.png
olo/app/res/drawable-xxxhdpi/display_info.png
olo/app/src/android/holo/app/DisplayInfoActivity.java
olo/assets/19/400dpi.zip
olo/assets/19/hdpi.zip
olo/assets/19/ldpi.zip
olo/assets/19/mdpi.zip
olo/assets/19/tvdpi.zip
olo/assets/19/xhdpi.zip
olo/assets/19/xxhdpi.zip
olo/assets/19/xxxhdpi.zip
c7305d1db1b50ead133fa4d826a9219a2fe54e19 20-Feb-2014 Stuart Scott <stuartscott@google.com> am 258e373e: am 506bed7b: Adds holo resources for api 18

* commit '258e373e9053f9f6135a43fdd2e75692bcabb1c8':
Adds holo resources for api 18
1734c7f6017b47f268b571a570b81157bd9e13c4 20-Feb-2014 Stuart Scott <stuartscott@google.com> resolved conflicts for merge of 995a69d8 to klp-dev

Change-Id: Ib845d7bf8d3473eb544ddb3265cce46def217ce9
506bed7b92236eadcdea8250b849909273a67c03 19-Feb-2014 Stuart Scott <stuartscott@google.com> Adds holo resources for api 18

Change-Id: Ia962b9ec3a89111989000788a2557e089e9b0bde
olo/assets/18/hdpi.zip
olo/assets/18/ldpi.zip
olo/assets/18/mdpi.zip
olo/assets/18/tvdpi.zip
olo/assets/18/xhdpi.zip
olo/assets/18/xxhdpi.zip
olo/assets/18/xxxhdpi.zip
aa53380c941f848ce959509eef880f5027f34137 20-Feb-2014 Stuart Scott <stuartscott@google.com> am a5edaf9d: am 87e16eaa: Rewritting Holo tests as hostside tests for speed and stability

* commit 'a5edaf9dedfb5411acb0daa2683935bdccabdc41':
Rewritting Holo tests as hostside tests for speed and stability
87e16eaa61602b0cf3f204432c881ed790ae8534 19-Feb-2014 Stuart Scott <stuartscott@google.com> Rewritting Holo tests as hostside tests for speed and stability

Change-Id: I3936ad03b6c9249a0331471461cb48d5ba809f59
olo/Android.mk
olo/app/Android.mk
olo/app/AndroidManifest.xml
olo/app/res/drawable-400dpi/display_info.png
olo/app/res/drawable-hdpi/display_info.png
olo/app/res/drawable-land-400dpi/display_info.png
olo/app/res/drawable-land-hdpi/display_info.png
olo/app/res/drawable-land-ldpi/display_info.png
olo/app/res/drawable-land-mdpi/display_info.png
olo/app/res/drawable-land-tvdpi/display_info.png
olo/app/res/drawable-land-xhdpi/display_info.png
olo/app/res/drawable-land-xxhdpi/display_info.png
olo/app/res/drawable-ldpi/display_info.png
olo/app/res/drawable-mdpi/display_info.png
olo/app/res/drawable-tvdpi/display_info.png
olo/app/res/drawable-xhdpi/display_info.png
olo/app/res/drawable-xxhdpi/display_info.png
olo/app/res/layout/button.xml
olo/app/res/layout/checkbox.xml
olo/app/res/layout/chronometer.xml
olo/app/res/layout/display_info.xml
olo/app/res/layout/holo_test.xml
olo/app/res/values/strings.xml
olo/app/src/android/holo/app/CaptureActivity.java
olo/app/src/android/holo/app/CaptureHolo.java
olo/app/src/android/holo/app/DisplayInfoActivity.java
olo/app/src/android/holo/app/HoloDeviceActivity.java
olo/assets/17/hdpi.zip
olo/assets/17/ldpi.zip
olo/assets/17/mdpi.zip
olo/assets/17/tvdpi.zip
olo/assets/17/xhdpi.zip
olo/assets/17/xxhdpi.zip
olo/src/android/holo/cts/ComparisonTask.java
olo/src/android/holo/cts/HoloHostTest.java
0b1eead89a602243d1d8229fa09ff510c571d02d 17-Feb-2014 yangxingsui <yang.xingsui@zte.com.cn> For the TestDeviceStressTest is the new CTS test case in Android 4.3,
this test want test the stability of the adb push/rm , it make 200
little files and try to push it to /storage/sdcard0 and then rm it, this
step need repeat 50 times in 10 mins.
But for some OEM, the sdcard performance may be poor, some device
need 15mins to finish this test without any adb issue. But because the
time is too long,which cause the test can not finished in 10 mins
, therefore this test case always result failed in most of our
devices.
So in order to compatible most of the Android device, I submit
the patch to reduce the test times from 50 to 25 times. I do think
it will benifit
more manufactory and meanwhile with no side-effect for
the really test result.

Change-Id: I75b3eb0be78298c993bd58e5ca4c6726023cddba
adb/src/com/android/cts/aadb/TestDeviceStressTest.java
d35f8eb44fe78cb7bfc2f7d92cb64c5ed013abfd 14-Jan-2014 Stuart Scott <stuartscott@google.com> Adding CTS test samples device- and host-side tests.

Change-Id: I925182e7565284e335ef7a5b64a80c7b60aa1d38
ample/Android.mk
ample/app/Android.mk
ample/app/AndroidManifest.xml
ample/app/src/android/sample/app/SampleDeviceActivity.java
ample/src/android/sample/cts/SampleHostResultTest.java
ample/src/android/sample/cts/SampleHostTest.java
6ab5bad82445b81f833f16a5ec21ee2498d6422b 06-Nov-2013 Tom O'Neill <tomo@google.com> Partially revert "CTS tests for LOCATION_MODE"

This partially reverts commit d6c95539981804e5ac691e6358ad078e48accb6e,
https://googleplex-android-review.googlesource.com/#/c/380591

- That CL ended up being a dead-end

Change-Id: If222806eebbe304fc614e17fa064c1580f5e3ee7
ocation/Android.mk
ocation/src/com/android/cts/location/LocationModeTest.java
d8d85880bba147a0a40bb199b0597241c3ef5f29 25-Oct-2013 Unsuk Jung <unsuk@google.com> Merge "Fix build" into klp-dev
849fa19f2ca6921359fa3000423ec9b0325d576c 25-Oct-2013 Tom O'Neill <tomo@google.com> Fix build

Change-Id: I4840fed8634cc1549e7edd45b1153f410775c1d5
ocation/src/com/android/cts/location/LocationModeTest.java
dd0cf889f0dcc6bd0c80ecfbe2eedeff2067c4df 25-Oct-2013 Stuart Scott <stuartscott@google.com> Merge "CTS tests for LOCATION_MODE" into klp-dev
d6c95539981804e5ac691e6358ad078e48accb6e 25-Oct-2013 Tom O'Neill <tomo@google.com> CTS tests for LOCATION_MODE

Change-Id: Ie05af4654549df049ca38b2a218eccbaa0450067
ocation/Android.mk
ocation/src/com/android/cts/location/LocationModeTest.java
8f61b50e4dba5584e4796066bbb48637061d4b0b 23-Oct-2013 Jeff Sharkey <jsharkey@android.com> Assert that all external storage is isolated.

Any storage devices exposed through APIs need to be fully isolated
across user boundaries.

Bug: 11221486
Change-Id: I3e82d970f3a1b0c00c02e71f4eacbad81d452096
ppsecurity/test-apps/ExternalStorageApp/src/com/android/cts/externalstorageapp/CommonExternalStorageTest.java
ppsecurity/test-apps/MultiUserStorageApp/Android.mk
ppsecurity/test-apps/MultiUserStorageApp/src/com/android/cts/multiuserstorageapp/MultiUserStorageTest.java
4810777cf2294baa15f7f63b1dd62524651b77dd 12-Oct-2013 Jeff Sharkey <jsharkey@android.com> Tests for persistable Uri permission grants.

Verify that persistable permissions can be taken, enumerated, and
relinquished. Verify both sides of taken grants can enumerate them.

Verify that touching grant updates timestamp. Clean up launching
of GrantUriPermission receiver.

Bug: 11080911
Change-Id: I0a5779ad97136444d1b3e5eec70c746ae37deb2e
ppsecurity/test-apps/PermissionDeclareApp/src/com/android/cts/permissiondeclareapp/GrantUriPermission.java
ppsecurity/test-apps/UsePermissionDiffCert/Android.mk
ppsecurity/test-apps/UsePermissionDiffCert/src/com/android/cts/usespermissiondiffcertapp/AccessPermissionWithDiffSigTest.java
ppsecurity/test-apps/UsePermissionDiffCert/src/com/android/cts/usespermissiondiffcertapp/ReceiveUriActivity.java
1d0c4c16d674e9d47a6137a9af67488433114a18 08-Oct-2013 Jeff Sharkey <jsharkey@android.com> Require that secondary media is always present.

To verify that permissions on secondary external storage are working
correctly, we always require valid media to be inserted during CTS.

Bug: 10330128, 10330229
Change-Id: Ie5f462c5e6af861c74eee4abb83458c02d139680
ppsecurity/test-apps/ExternalStorageApp/src/com/android/cts/externalstorageapp/CommonExternalStorageTest.java
ppsecurity/test-apps/ReadExternalStorageApp/src/com/android/cts/readexternalstorageapp/ReadExternalStorageTest.java
ppsecurity/test-apps/WriteExternalStorageApp/src/com/android/cts/writeexternalstorageapp/WriteExternalStorageTest.java
79fcc721bdbd0ef44b4c7a8b735b8f15e0faffb6 03-Oct-2013 Jeff Sharkey <jsharkey@android.com> Only primary external storage is writable.

Verify that mount points not representing primary external storage
do not allow writing. Apps are still allowed to write to package-
specific directories on secondary storage devices, as verified by
testAllPackageDirsWritable().

More tests to verify getStorageState() behavior. Handle missing
secondary external storage devices with null checks.

Bug: 10577541
Change-Id: I8ffb024c83cd79156c764c667812b850a57781a3
ppsecurity/test-apps/ExternalStorageApp/src/com/android/cts/externalstorageapp/CommonExternalStorageTest.java
ppsecurity/test-apps/ExternalStorageApp/src/com/android/cts/externalstorageapp/ExternalStorageTest.java
ppsecurity/test-apps/ReadExternalStorageApp/src/com/android/cts/readexternalstorageapp/ReadExternalStorageTest.java
ppsecurity/test-apps/WriteExternalStorageApp/src/com/android/cts/writeexternalstorageapp/WriteExternalStorageTest.java
85fb765e613f03b51203a1384f5343394fb21d98 02-Oct-2013 Jeff Sharkey <jsharkey@android.com> Test new READ/WRITE_EXTERNAL_STORAGE behavior.

In KLP, the platform now makes package-specific directories on
external storage available to apps without requiring they hold any
storage permissions. This change uses three different packages to
verify behavior of apps with no permissions, with READ_EXTERNAL,
and with WRITE_EXTERNAL. All three packages run a set of common
tests to verify that package-specific directories are always
writable.

Also verifies behavior of new APIs that provide access to secondary
external storage devices. Specifically, apps only get write access
to their package-specific directories. Apps holding WRITE_EXTERNAL
can only write outside their package-specific directories on primary
external storage.

Bug: 10577541
Change-Id: I467221c358fdc69f88d0df81d7ee50ad3c5ab5d5
ppsecurity/src/com/android/cts/appsecurity/AppSecurityTests.java
ppsecurity/test-apps/ExternalStorageApp/Android.mk
ppsecurity/test-apps/ExternalStorageApp/src/com/android/cts/externalstorageapp/CommonExternalStorageTest.java
ppsecurity/test-apps/ExternalStorageApp/src/com/android/cts/externalstorageapp/ExternalStorageTest.java
ppsecurity/test-apps/ReadExternalStorageApp/Android.mk
ppsecurity/test-apps/ReadExternalStorageApp/AndroidManifest.xml
ppsecurity/test-apps/ReadExternalStorageApp/src/com/android/cts/readexternalstorageapp/ReadExternalStorageTest.java
ppsecurity/test-apps/WriteExternalStorageApp/Android.mk
ppsecurity/test-apps/WriteExternalStorageApp/src/com/android/cts/writeexternalstorageapp/WriteExternalStorageTest.java
3740265ff4396d162dd427c63da9d1705e7ebbe8 17-Sep-2013 Jeff Sharkey <jsharkey@android.com> Remove unenforced READ_EXTERNAL_STORAGE tests.

This permission is now always enforced in KLP, so these tests are no
longer valid.

Bug: 10668366
Change-Id: I809e70bf1cdcb7ae0244531a748d1342cf151856
ppsecurity/src/com/android/cts/appsecurity/AppSecurityTests.java
ppsecurity/test-apps/ExternalStorageApp/src/com/android/cts/externalstorageapp/ExternalStorageTest.java
4a22a14b827e066f0c767b76459216d0f64efe72 10-Sep-2013 JP Abgrall <jpa@google.com> am ed1a76ea: am ed54695d: AppSecurity: Add traffic stats test, and fix file access test

* commit 'ed1a76ea1c23cec5102cff99d304f79fb5181b11':
AppSecurity: Add traffic stats test, and fix file access test
ed54695de8fd548fba1646d08bf22e667b108ab3 06-Sep-2013 JP Abgrall <jpa@google.com> AppSecurity: Add traffic stats test, and fix file access test

* Fix the private file access test which would fail because the path
was wrong.
* Add a test that ensures the private file is actually "not accessible"
because it can't be as opposed to it not being there: the new test
accesses a public file created at the same time as the private file.
* Add tests around traffic stats
. add internet permission to app that creates data.
. generate private traffic stats (tagged sockets).
. read back traffic stats to make sure that only public stats are visible.

Bug: 10349057
Change-Id: Ic444185bccb05cf31849ba3c986aed5d3de90303
Signed-off-by: JP Abgrall <jpa@google.com>
ppsecurity/test-apps/AppAccessData/src/com/android/cts/appaccessdata/AccessPrivateDataTest.java
ppsecurity/test-apps/AppWithData/AndroidManifest.xml
ppsecurity/test-apps/AppWithData/src/com/android/cts/appwithdata/CreatePrivateDataTest.java
b04de8ff5d5dad76062130c813373d78bbec318c 21-Aug-2013 keunyoung <keunyoung@google.com> add test to check usb serial == Build.SERIAL

- follows cdd update for KLP
- checks matches of serial, property ro.serialno, Build.SERIAL, and USB serial
- also updated os.Build test regarding minimum length change
- lsusb should be installed in host to make this test pass: apt-get install usbutils

bug: 10298217
Change-Id: Ibe83dcec34924da7d7d08e3e34cbfa11550b3219
sb/Android.mk
sb/SerialTestApp/Android.mk
sb/SerialTestApp/AndroidManifest.xml
sb/SerialTestApp/src/com/android/cts/usb/serialtest/UsbSerialTest.java
sb/src/com/android/cts/usb/TestUsbTest.java
7bdfb9b899225f0afa7decfaf13496fd4c09a819 16-May-2013 keunyoung <keunyoung@google.com> rename monkey package to run it last.

- monkey may trigger orientation change and other problems.
- to avoid the uncertainty, run it last.
- also set pct-rotation 0 to prevent rotation

Change-Id: I9975102d8db15e378c83432e761284a47cb81956
onkey/Android.mk
onkey/src/com/android/cts/monkey/AbstractMonkeyTest.java
693215af1b26b4b33def5f64bb9a46a0d71eb41f 27-Apr-2013 keunyoung <keunyoung@google.com> add retry for checking logcat
- 10ms sometimes is too short, and test fails
- also remove file size check as it is not guaranteed.

bug: 8683147
Change-Id: I888d89c8d0b619585f8d1063710f9c188c7163a8
adb/src/com/android/cts/aadb/TestDeviceFuncTest.java
c767cbae17e703876ede9bad3c33316f8e0d0c03 03-Apr-2013 keunyoung <keunyoung@google.com> merge adb unit / stress tests

- cases involving reboot and fastboot all removed.
- cases involving device APK removed. can be added later.
- failing cases for user image also removed.
- package name aadb is intentional to run it first.

bug: 8400629

Change-Id: I488573b69bbd1a3a07b18bb4be3c0bd4403ccc3c
adb/Android.mk
adb/src/com/android/cts/aadb/TestDeviceFuncTest.java
adb/src/com/android/cts/aadb/TestDeviceStressTest.java
05c8edd86faf6135cfdcb825b1e2b951138a01dc 29-Mar-2013 Jeff Sharkey <jsharkey@android.com> am 44bbe590: am 394e4193: More test providers support opening files.

* commit '44bbe590b9638cd03461e498db8ab2b2ce719914':
More test providers support opening files.
394e4193ffa90da853d577320c45adb28dca9349 29-Mar-2013 Jeff Sharkey <jsharkey@android.com> More test providers support opening files.

Bug: 8462078
Change-Id: I49e0859d1f59675561f4cf17d17d4eafd48914fa
ppsecurity/test-apps/PermissionDeclareApp/src/com/android/cts/permissiondeclareapp/AmbiguousContentProvider.java
ppsecurity/test-apps/PermissionDeclareAppCompat/src/com/android/cts/permissiondeclareappcompat/AmbiguousContentProvider.java
b6fc2d22b24eee3d7ed9d273b8c4213deeb945fd 20-Mar-2013 Brian Muramatsu <btmura@google.com> am 2ebee405: am 7123092d: Merge "Fix SeedTest for landscape no auto-rotate screens" into jb-mr1.1-dev

* commit '2ebee405a52ca21fae501e570b695035a4529c54':
Fix SeedTest for landscape no auto-rotate screens
ce9362e77a7e71810c0cb8abdef216672d53688d 19-Mar-2013 Brian Muramatsu <btmura@google.com> Fix SeedTest for landscape no auto-rotate screens

Bug 8399190

Set the orientation to portrait so the orientation is fixed between runs
of the monkey activity and disable touch and motion events to make it
work automagically.

Change-Id: I0313e98d1b64eb06cb87c1d0f60c08d72fca7166
onkey/src/com/android/cts/monkey/AbstractMonkeyTest.java
onkey/test-apps/CtsMonkeyApp/AndroidManifest.xml
413a04fb1917a35d43115c8094e621ff54b38903 06-Mar-2013 Jeff Sharkey <jsharkey@android.com> Merge commit '905dd107' into merge

Change-Id: Iaa9459dcc4bae253622d179c3007bceb9ed0d1f2
97434985ee034e1bfb51d8876416c202fcf7dbd6 28-Feb-2013 Jeff Sharkey <jsharkey@android.com> Tests to verify writing of Uri grants.

Bug: 8275867
Change-Id: I035568c3a6feed9d48f72b004c7a729a92c987ea
ppsecurity/test-apps/PermissionDeclareApp/src/com/android/cts/permissiondeclareapp/PermissionContentProvider.java
ppsecurity/test-apps/PermissionDeclareApp/src/com/android/cts/permissiondeclareapp/PermissionContentProviderGranting.java
ppsecurity/test-apps/PermissionDeclareApp/src/com/android/cts/permissiondeclareapp/PermissionContentProviderPath.java
ppsecurity/test-apps/PermissionDeclareApp/src/com/android/cts/permissiondeclareapp/PermissionContentProviderPathRestricting.java
ppsecurity/test-apps/PermissionDeclareApp/src/com/android/cts/permissiondeclareapp/PrivateContentProvider.java
ppsecurity/test-apps/PermissionDeclareApp/src/com/android/cts/permissiondeclareapp/PrivateContentProviderGranting.java
ppsecurity/test-apps/UsePermissionDiffCert/src/com/android/cts/usespermissiondiffcertapp/AccessPermissionWithDiffSigTest.java
2994c16f06d6b19c17b3340b51fa4605f8e6f74d 28-Feb-2013 Jeff Sharkey <jsharkey@android.com> Tests to verify writing of Uri grants.

Bug: 8275867
Change-Id: I035568c3a6feed9d48f72b004c7a729a92c987ea
ppsecurity/test-apps/PermissionDeclareApp/src/com/android/cts/permissiondeclareapp/AmbiguousContentProvider.java
ppsecurity/test-apps/PermissionDeclareApp/src/com/android/cts/permissiondeclareapp/PermissionContentProvider.java
ppsecurity/test-apps/PermissionDeclareApp/src/com/android/cts/permissiondeclareapp/PermissionContentProviderGranting.java
ppsecurity/test-apps/PermissionDeclareApp/src/com/android/cts/permissiondeclareapp/PermissionContentProviderPath.java
ppsecurity/test-apps/PermissionDeclareApp/src/com/android/cts/permissiondeclareapp/PermissionContentProviderPathRestricting.java
ppsecurity/test-apps/PermissionDeclareApp/src/com/android/cts/permissiondeclareapp/PrivateContentProvider.java
ppsecurity/test-apps/PermissionDeclareApp/src/com/android/cts/permissiondeclareapp/PrivateContentProviderGranting.java
ppsecurity/test-apps/PermissionDeclareAppCompat/src/com/android/cts/permissiondeclareappcompat/AmbiguousContentProvider.java
ppsecurity/test-apps/UsePermissionDiffCert/src/com/android/cts/usespermissiondiffcertapp/AccessPermissionWithDiffSigTest.java
2bc46e66b223513edefa48dd6df368f44e0ace8c 02-Nov-2012 Brian Muramatsu <btmura@google.com> Prevent monkey tests from toggling airplane mode

Bug 7449076

Monkey was sometimes toggling airplane mode via quick settings. Use a
full screen theme and deactivate some events to avoid this side effect.

Change-Id: Ie10dcc9bd3a0323a7db9336097573e53463b96d0
onkey/src/com/android/cts/monkey/AbstractMonkeyTest.java
onkey/src/com/android/cts/monkey/CategoryTest.java
onkey/src/com/android/cts/monkey/MonkeyTest.java
onkey/src/com/android/cts/monkey/PackageTest.java
onkey/src/com/android/cts/monkey/SeedTest.java
onkey/src/com/android/cts/monkey/VerbosityTest.java
onkey/test-apps/CtsMonkeyApp/AndroidManifest.xml
onkey/test-apps/CtsMonkeyApp2/AndroidManifest.xml
f1d71ef02e55fb9179ec2a5b75f5184f41c94ac6 23-Oct-2012 Jeff Sharkey <jsharkey@android.com> Remove multi-user OBB tests; verify path security.

Since OBB language in API documentation is now relaxed, remove
related CTS tests. Add tests to verify permissions on storage
paths.

Bug: 7384941
Change-Id: I0d869a65ff5eb992a5a31560f9833530005c5043
ppsecurity/src/com/android/cts/appsecurity/AppSecurityTests.java
8cb5b6bbeeb0b59cd9a6cd3bf8c6161a22e7eae3 19-Oct-2012 Jeff Sharkey <jsharkey@android.com> Improve external storage CTS tests.

Change read test to no longer depend on existing file, and verify
that written values can be read back. Remove testing of paths not
covered by CDD.

Verify that EXTERNAL_STORAGE environment variable is defined
correctly. Improve multi-user storage test to validate legacy paths.

Bug: 7369656
Change-Id: Ic3ffc24e81297c739d2b07273957b01be2d05445
ppsecurity/test-apps/MultiUserStorageApp/src/com/android/cts/multiuserstorageapp/MultiUserStorageTest.java
ppsecurity/test-apps/WriteExternalStorageApp/src/com/android/cts/writeexternalstorageapp/WriteExternalStorageTest.java
429cd4e77a27b07df65b3930bc19663ecdab1815 12-Oct-2012 Jeff Sharkey <jsharkey@android.com> CTS tests to verify multi-user emulated storage.

Verifies that each user has its own isolated emulated storage, minus
shared storage for OBB files. Also tests to verify that legacy
filesystem paths like "/sdcard" continue working.

Adds early support for multi-user CTS tests, should eventually be
moved into ITestDevice and RemoteAndroidTestRunner.

Bug: 7048947
Change-Id: I0573b9236b267ab798676926910ec4e1890fe7cb
ppsecurity/src/com/android/cts/appsecurity/AppSecurityTests.java
ppsecurity/test-apps/MultiUserStorageApp/Android.mk
ppsecurity/test-apps/MultiUserStorageApp/AndroidManifest.xml
ppsecurity/test-apps/MultiUserStorageApp/src/com/android/cts/multiuserstorageapp/MultiUserStorageTest.java
ppsecurity/test-apps/WriteExternalStorageApp/src/com/android/cts/writeexternalstorageapp/WriteExternalStorageTest.java
b7d457cefac4877011bd3a634e8b33d7f29554eb 13-Sep-2012 Keun young Park <keunyoung@google.com> adjust sdcard dir

Bug: 7155893
Change-Id: Id8166ae943db0141c40ed79bbb4937ad795af66a
ppsecurity/src/com/android/cts/appsecurity/AppSecurityTests.java
380058bb18437475db82fd1632932795a4349f8c 28-Jul-2012 Nick Kralevich <nnk@google.com> Add unittests for "ambiguous" content providers

Add CTS tests describing the behavior of "ambiguous" content providers.
These are content providers where the provider doesn't specify an
android:exported line.

For API versions 16 and below, the default value of android:exported
is "true". Add "PermissionDeclareAppCompat", with target API level
16, and verify that it's content providers are visible.

Update the current tests, and verify that content providers which
don't have an "android:exported" line are not exported.

Bug: 3306452

Change-Id: Id7e8b0721bbc53d8e610a053c3f545fabd4ae596
ppsecurity/src/com/android/cts/appsecurity/AppSecurityTests.java
ppsecurity/test-apps/PermissionDeclareApp/AndroidManifest.xml
ppsecurity/test-apps/PermissionDeclareApp/src/com/android/cts/permissiondeclareapp/AmbiguousContentProvider.java
ppsecurity/test-apps/PermissionDeclareAppCompat/Android.mk
ppsecurity/test-apps/PermissionDeclareAppCompat/AndroidManifest.xml
ppsecurity/test-apps/PermissionDeclareAppCompat/src/com/android/cts/permissiondeclareappcompat/AmbiguousContentProvider.java
ppsecurity/test-apps/UsePermissionDiffCert/src/com/android/cts/usespermissiondiffcertapp/AccessPermissionWithDiffSigTest.java
b1843f8e30877a23a46b6c733b9b82d8ff3e8f02 28-Jul-2012 Nick Kralevich <nnk@google.com> AccessPermissionWithDiffSigTest: Fix cut / paste typo in tests.

Change-Id: I2ee7721f48141536f90714e8752fd8988e88cad1
ppsecurity/test-apps/UsePermissionDiffCert/src/com/android/cts/usespermissiondiffcertapp/AccessPermissionWithDiffSigTest.java
96eb403f3758efd1ce9db1959e718d67df493e5f 28-Jul-2012 Nick Kralevich <nnk@google.com> AccessPermissionWithDiffSigTest: Make variables private.

Change-Id: I69c691205dd7db9fb4c3940b4d8f5d10b30c4581
ppsecurity/test-apps/UsePermissionDiffCert/src/com/android/cts/usespermissiondiffcertapp/AccessPermissionWithDiffSigTest.java
d3cc6fb3521c85c1206ea82b6b32d01d2adbc685 26-Jul-2012 Jeff Sharkey <jsharkey@android.com> am 875bfc7c: am 9d204c23: Increase timeouts in ReceiveUriActivity.

* commit '875bfc7caf90cdd72aa27e1c29f938dd6ba91ee0':
Increase timeouts in ReceiveUriActivity.
9d204c23e28f9c6795f7a39222d6f1cc31dff29f 26-Jul-2012 Jeff Sharkey <jsharkey@android.com> Increase timeouts in ReceiveUriActivity.

In rare cases, another app may cause our lifecycle callbacks to be
delayed for several seconds. This increases the timeouts to make the
tests less likely to fail.

Bug: 6820047
Change-Id: I9f71c6324ddfdcbf97e80da90d0294add0f777e3
ppsecurity/test-apps/UsePermissionDiffCert/src/com/android/cts/usespermissiondiffcertapp/ReceiveUriActivity.java
9e4c8f6ccdd088e1ae9f1976dda103db11add8a3 24-Jul-2012 Brett Chabot <brettchabot@google.com> am 2a96525c: am 2a17ffc8: Merge "Improve error reporting for AppSecurityTests#testPermissionDiffCert" into jb-dev

* commit '2a96525cfae2d29bb3647f4ae15863955cb55f4e':
Improve error reporting for AppSecurityTests#testPermissionDiffCert
513faea55e432ff73a18edae5ab99993abf4c01e 24-Jul-2012 Brett Chabot <brettchabot@google.com> Improve error reporting for AppSecurityTests#testPermissionDiffCert

Bug 6820047

Change-Id: I86ab22d94710183da0299a11a49968be281118cc
ppsecurity/src/com/android/cts/appsecurity/AppSecurityTests.java
6512dc24f20494b1945635588406083a75d69a75 20-Jul-2012 Jeff Sharkey <jsharkey@android.com> am abc30fbc: am c77ef9dc: Merge "Remove external storage enforcement test." into jb-dev

* commit 'abc30fbcfb5fe1f51edc6507555227e4d2810473':
Remove external storage enforcement test.
2c152b1284f703c9ecc5ce3fb958cd3fd7817e01 20-Jul-2012 Jeff Sharkey <jsharkey@android.com> Remove external storage enforcement test.

This test only works on engineering builds, and current default is
for permission to be unenforced. The unenforced test still remains.

Bug: 6721185
Change-Id: I13bd91d0b5f7de3d2abf63c96a7e662ceda1da4b
ppsecurity/src/com/android/cts/appsecurity/AppSecurityTests.java
5a9e2f48a6ff326df4efc74b1144d1655e4cfb2e 17-Jul-2012 Brian Muramatsu <btmura@google.com> am 472e49de: am db7523ad: Merge "Fix PackageTest#testSinglePackage" into jb-dev

* commit '472e49de36737f528fbbdf5adde51f1cd47eef22':
Fix PackageTest#testSinglePackage
db7523ad7b6252b269c24d9ceecc990b53d60f1a 17-Jul-2012 Brian Muramatsu <btmura@google.com> Merge "Fix PackageTest#testSinglePackage" into jb-dev
d7d21cc4558fb7bc606a4ea1e6765c10835f2490 17-Jul-2012 Brian Muramatsu <btmura@google.com> Fix PackageTest#testSinglePackage

ChimpActivity can appear in the logs when it is rejected like:
"// Rejecting start of... ChimpActivity..." so use regular
expressions to check that "// Allowing ..." does not appear
when the package scope is restricted.

Bug 6681325

Change-Id: I2231326deb9e5094b6293ff6682d28f253492a19
onkey/src/com/android/cts/monkey/PackageTest.java
e30799a6cb10a55f7c1ba291d93e93b5ca9f2cb7 16-Jul-2012 Brian Muramatsu <btmura@google.com> am 7c707365: am 374aa66f: Merge "Print host output on monkey test failure" into jb-dev

* commit '7c7073652ce6a9ffdcb50eec495e324d46e0a0e6':
Print host output on monkey test failure
374aa66ff284291ea1fc4fa073778b0ecb0004ca 16-Jul-2012 Brian Muramatsu <btmura@google.com> Merge "Print host output on monkey test failure" into jb-dev
7fac1b48cf6f405cf581bc3037cd1d11c5c4e51c 16-Jul-2012 Brian Muramatsu <btmura@google.com> Print host output on monkey test failure

Bug 6681325

Change-Id: I5cb6df8ad895af18329f7b451aa07e24b0603c93
onkey/src/com/android/cts/monkey/PackageTest.java
2fb551475bdd79120c890ed2d30724e371a18822 10-Jul-2012 Brian Muramatsu <btmura@google.com> am e05d2f8d: am b93ea2c6: Clear logcat before every monkey test

* commit 'e05d2f8d7be6fb482451e21da3d238ebefb52a20':
Clear logcat before every monkey test
b93ea2c61d2a1c550fedaed061737a6515598a3f 10-Jul-2012 Brian Muramatsu <btmura@google.com> Clear logcat before every monkey test

Bug 6681325

Change-Id: I5fee05f76306d1eda61f21b0dd0d62f037f95158
onkey/src/com/android/cts/monkey/AbstractMonkeyTest.java
onkey/src/com/android/cts/monkey/MonkeyTest.java
65029a8b3f267664c90596f35568fcc452cd9b8a 29-Jun-2012 Catherine Liu <wlcl05@motorola.com> am a7112955: am 7751e0fd: Fix pattern issue in MonkeyTest

* commit 'a71129555964b45bd2b5b9741580a8c5e7e8b17d':
Fix pattern issue in MonkeyTest
7751e0fd7102060bd8691f0bf18dda3b54f40184 18-Jun-2012 Catherine Liu <wlcl05@motorola.com> Fix pattern issue in MonkeyTest

The pattern is designed to match the output of logcat without
format.
But, there are 8 formats defined in /system/core/liblog/logprint.c.
If logcat is set with any format, the test cases will fail.
Since 'executeAdbCommand' ensures the tag filter of 'MonkeyActivity:I',
check if the output contains MONKEY or HUMAN should work as expected.

Change-Id: Ibcf18407bf6dee0d405ca90c5d597cff940a7201
onkey/src/com/android/cts/monkey/MonkeyTest.java
cb71127265557fa7a9b9387c71413632ea7086af 17-Jun-2012 Brian Carlstrom <bdc@google.com> APKs part of CTS should have LOCAL_DEX_PREOPT := false (1 of 2)

Change-Id: I6bfadc28d804d48e51727e80e140fe9ae8b1380a
ppsecurity/test-apps/AppAccessData/Android.mk
ppsecurity/test-apps/AppWithData/Android.mk
ppsecurity/test-apps/ExternalStorageApp/Android.mk
ppsecurity/test-apps/InstrumentationAppDiffCert/Android.mk
ppsecurity/test-apps/PermissionDeclareApp/Android.mk
ppsecurity/test-apps/SharedUidInstall/Android.mk
ppsecurity/test-apps/SharedUidInstallDiffCert/Android.mk
ppsecurity/test-apps/SimpleAppInstall/Android.mk
ppsecurity/test-apps/SimpleAppInstallDiffCert/Android.mk
ppsecurity/test-apps/TargetInstrumentationApp/Android.mk
ppsecurity/test-apps/UsePermissionDiffCert/Android.mk
ppsecurity/test-apps/WriteExternalStorageApp/Android.mk
onkey/test-apps/CtsMonkeyApp/Android.mk
onkey/test-apps/CtsMonkeyApp2/Android.mk
a23fe3f206d662238cba7e813686cc8f27b9d3cd 08-May-2012 Brian Muramatsu <btmura@google.com> Merge "Make Baboons Extend Monkeys" into jb-dev
252c1bea907efabb48b742e8ababcca6c6c8f064 08-May-2012 Brian Muramatsu <btmura@google.com> Make Baboons Extend Monkeys

Bug 6332291

The monkey test in JB was executing BaboonActivity instead of
MonkeyActivity, and MonkeyActivity was the only one printing out
the log message. Make BaboonActivity extend MonkeyActivity to
have BaboonActivity print the log message too.

Change-Id: Ie83b17d9429603024c70fa71c745ad437ca73bb6
onkey/src/com/android/cts/monkey/MonkeyTest.java
onkey/test-apps/CtsMonkeyApp/src/com/android/cts/monkey/BaboonActivity.java
b5a88dd31db8792789245bb263baf23fed4b094d 08-May-2012 Jeff Sharkey <jsharkey@android.com> Tests for READ_EXTERNAL permission.

Verify that app with no permissions is allowed (and blocked) from
reading external storage. Verify that app with only WRITE_EXTERNAL
is always able to read/write.

Bug: 6315473
Change-Id: I53483110c2d296c53350b48d38967b0bf3f38148
ppsecurity/src/com/android/cts/appsecurity/AppSecurityTests.java
ppsecurity/test-apps/ExternalStorageApp/Android.mk
ppsecurity/test-apps/ExternalStorageApp/AndroidManifest.xml
ppsecurity/test-apps/ExternalStorageApp/src/com/android/cts/externalstorageapp/ExternalStorageTest.java
ppsecurity/test-apps/WriteExternalStorageApp/Android.mk
ppsecurity/test-apps/WriteExternalStorageApp/AndroidManifest.xml
ppsecurity/test-apps/WriteExternalStorageApp/src/com/android/cts/writeexternalstorageapp/WriteExternalStorageTest.java
5d871c9620f1557105f1c5b5d82e9881b063e7b2 05-May-2012 Jeff Sharkey <jsharkey@android.com> Fix path-permission tests.

Broken because of regex instead of prefix matching. Also made test
clearer.

Bug: 6332123
Change-Id: Id5cf802b14940eac84620f6eb79399ef7fb93528
ppsecurity/test-apps/PermissionDeclareApp/AndroidManifest.xml
ppsecurity/test-apps/UsePermissionDiffCert/src/com/android/cts/usespermissiondiffcertapp/AccessPermissionWithDiffSigTest.java
ba89df38d74cce9ce86a6c1630b2da184520a395 07-Apr-2012 Jeff Sharkey <jsharkey@android.com> Add missing provider for CTS tests.

Bug: 6298704
Change-Id: Ic7b87d98bc75a82d90425e4c299d3f31439bc6ce
ppsecurity/test-apps/PermissionDeclareApp/src/com/android/cts/permissiondeclareapp/PermissionContentProviderPathRestricting.java
da16ed5c89712c7680cfddb154e21cc1707a3c58 15-Mar-2012 Brian Muramatsu <btmura@google.com> am 0b2304a0: am 19d28538: am ed277cb3: Fix SeedTest

* commit '0b2304a061d1d3dadf2f75d457dfb0e43526743f':
Fix SeedTest
d43d1b5774dc60edfef4bebd252d47dc87ac4337 13-Mar-2012 Svetoslav Ganov <svetoslavganov@google.com> Merge "Automated accessibility CTS tests and added more tests."
082f61c23af6de8a1936e7c845298afba1b1fe9e 13-Mar-2012 Jeff Sharkey <jsharkey@android.com> Test <path-permissions> on unprotected providers.

Tests new framework feature allows <path-permissions> to restrict
access to ContentProvider paths that would otherwise be allowed by
lack of a top-level <provider> permission.

Bug: 6131916
Change-Id: I52cd37b346eb6c367b457ff8426e1c72fe1562bf
ppsecurity/test-apps/PermissionDeclareApp/AndroidManifest.xml
ppsecurity/test-apps/UsePermissionDiffCert/AndroidManifest.xml
ppsecurity/test-apps/UsePermissionDiffCert/src/com/android/cts/usespermissiondiffcertapp/AccessPermissionWithDiffSigTest.java
b803f80f0fa6680dd8fe7606e7d9b6a908ddaaf4 08-Mar-2012 Svetoslav Ganov <svetoslavganov@google.com> Automated accessibility CTS tests and added more tests.

1. Added test runners for the two accessibility sets of tests
to the cts-tradefed test types. While these runners are
specific to the accessibility tests, the CTS maintainers
are fine adding specific tests to the CTS tradefed library
since there is already such a precedent and it is not common
for someone to need adding custom runners.

2. Modified the build rule for a CTS package to take as an
argument a runner class name. This enabled the package to
specify which runner to invoke the tests in it.

3. Added tests for the accessibility API to maximize CTS test
coverage. Currently not tested are interfaces and callbacks
invoked by the system.

5. The accessibility tests can be used as an example for writing
tests that require modification of the secure settings or
generally require execution of shell commands from the host
before and after running the tests.

bug:5946699

Change-Id: I3b68bff4fed846b374a88a2abe812801bd6f2c8f
ccessibilityservice/Android.mk
ccessibilityservice/src/android/accessibilityservice/cts/AccessibilityServiceTestsRunnerTest.java
d33633fce01d2bf66ccb5d31b1722823936b1626 08-Mar-2012 Dianne Hackborn <hackbod@google.com> Add CTS tests for new ClipData Intent feature.

Change-Id: I87f7b5c7f23fbfafeede81bc82bd4ee464842f5c
ppsecurity/test-apps/UsePermissionDiffCert/src/com/android/cts/usespermissiondiffcertapp/AccessPermissionWithDiffSigTest.java
2d5d0435ca113cd3420dde1bc1432e507a729919 29-Feb-2012 Svetoslav Ganov <svetoslavganov@google.com> Remove manual steps from the accessibility CTS tests.

1. Added a host side test that serves as a runer for the CTS
test which are instrumentation tests. The runner is responsible
for installing all needed packages, enabling accessibility
and the delegating accessibility service via shell commands,
running the instrumentation tests on the device, and cleaning up.
This test is pretty much a driver for running the remote tests.
To fit the current state of the CTS test framework the driver
has to declare as empty test method all remotely run tests so
description of these tests to be added in the CTS test description
XML because CTS allows only reporting results of declared tests.

2. Updated the JarHost test to use the same class loader for each
method of a test it ruts to enable sharing static state between
test methods - this is useful to avoid doing expensive operations
before every test.

bug:5946699

Change-Id: I41f4016c386c16c2ce517641f5b18045f67f46f1
ccessibilityservice/Android.mk
ccessibilityservice/src/android/accessibilityservice/cts/AccessibilityServiceTestsRunnerTest.java
2f102b5a281a576b432a25ae49c5e45e6d599a84 10-Feb-2012 Brian Muramatsu <btmura@google.com> Fix CTS Proguard Build Issues

...by disabling Proguard on these packages. These are just empty
test packages used by the Monkey host side tests.

Change-Id: I7ba8f7aa1a7a2bc8314ba54e9ef7b60073f44a47
onkey/test-apps/CtsMonkeyApp/Android.mk
onkey/test-apps/CtsMonkeyApp2/Android.mk
ad16ce1f821e65f91392c14b8c063970cec803c3 07-Feb-2012 Brian Muramatsu <btmura@google.com> Merge "Monkeying Around"
a78e3ec91fef1df8edbc4ae9ef6de182b309a13f 07-Feb-2012 Brian Muramatsu <btmura@google.com> Monkeying Around

Bug 5898005

Spot check the package, category, seed, and verbosity flags.
These tests are not very strict but make sure things appear to
be working as expected.

Change-Id: Ia5dd9662e8164d6151c37f6eeebd32d5f9dd97ec
onkey/src/com/android/cts/monkey/AbstractMonkeyTest.java
onkey/src/com/android/cts/monkey/CategoryTest.java
onkey/src/com/android/cts/monkey/MonkeyTest.java
onkey/src/com/android/cts/monkey/PackageTest.java
onkey/src/com/android/cts/monkey/SeedTest.java
onkey/src/com/android/cts/monkey/VerbosityTest.java
onkey/test-apps/CtsMonkeyApp/AndroidManifest.xml
onkey/test-apps/CtsMonkeyApp/src/com/android/cts/monkey/BaboonActivity.java
onkey/test-apps/CtsMonkeyApp2/Android.mk
onkey/test-apps/CtsMonkeyApp2/AndroidManifest.xml
onkey/test-apps/CtsMonkeyApp2/src/com/android/cts/monkey2/ChimpActivity.java
29c03504100eb3dff7752ad6e388b7071992808a 04-Feb-2012 Brian Muramatsu <btmura@google.com> Move AppSecurity Tests to hostsidetests

No code was changed. Just moving to hostsidetests with the new
monkey host tests. There are no other host tests besides these
so far...

Change-Id: I82ad462aa77ebefe251f903288698ca20c0ad836
ppsecurity/Android.mk
ppsecurity/certs/cts-testkey1.pem
ppsecurity/certs/cts-testkey1.pk8
ppsecurity/certs/cts-testkey1.x509.pem
ppsecurity/certs/cts-testkey2.pem
ppsecurity/certs/cts-testkey2.pk8
ppsecurity/certs/cts-testkey2.x509.pem
ppsecurity/src/com/android/cts/appsecurity/AppSecurityTests.java
ppsecurity/test-apps/Android.mk
ppsecurity/test-apps/AppAccessData/Android.mk
ppsecurity/test-apps/AppAccessData/AndroidManifest.xml
ppsecurity/test-apps/AppAccessData/src/com/android/cts/appaccessdata/AccessPrivateDataTest.java
ppsecurity/test-apps/AppWithData/Android.mk
ppsecurity/test-apps/AppWithData/AndroidManifest.xml
ppsecurity/test-apps/AppWithData/src/com/android/cts/appwithdata/CreatePrivateDataTest.java
ppsecurity/test-apps/InstrumentationAppDiffCert/Android.mk
ppsecurity/test-apps/InstrumentationAppDiffCert/AndroidManifest.xml
ppsecurity/test-apps/InstrumentationAppDiffCert/src/com/android/cts/instrumentationdiffcertapp/InstrumentationFailToRunTest.java
ppsecurity/test-apps/PermissionDeclareApp/Android.mk
ppsecurity/test-apps/PermissionDeclareApp/AndroidManifest.xml
ppsecurity/test-apps/PermissionDeclareApp/src/com/android/cts/permissiondeclareapp/GrantUriPermission.java
ppsecurity/test-apps/PermissionDeclareApp/src/com/android/cts/permissiondeclareapp/PermissionContentProvider.java
ppsecurity/test-apps/PermissionDeclareApp/src/com/android/cts/permissiondeclareapp/PermissionContentProviderGranting.java
ppsecurity/test-apps/PermissionDeclareApp/src/com/android/cts/permissiondeclareapp/PermissionContentProviderPath.java
ppsecurity/test-apps/PermissionDeclareApp/src/com/android/cts/permissiondeclareapp/PrivateContentProvider.java
ppsecurity/test-apps/PermissionDeclareApp/src/com/android/cts/permissiondeclareapp/PrivateContentProviderGranting.java
ppsecurity/test-apps/PermissionDeclareApp/src/com/android/cts/permissiondeclareapp/SetInstallerPackage.java
ppsecurity/test-apps/SharedUidInstall/Android.mk
ppsecurity/test-apps/SharedUidInstall/AndroidManifest.xml
ppsecurity/test-apps/SharedUidInstall/src/com/android/cts/shareduidinstall/SharedUidActivity.java
ppsecurity/test-apps/SharedUidInstallDiffCert/Android.mk
ppsecurity/test-apps/SharedUidInstallDiffCert/AndroidManifest.xml
ppsecurity/test-apps/SharedUidInstallDiffCert/src/com/android/cts/shareduidinstalldiffcert/SharedUidActivity.java
ppsecurity/test-apps/SimpleAppInstall/Android.mk
ppsecurity/test-apps/SimpleAppInstall/AndroidManifest.xml
ppsecurity/test-apps/SimpleAppInstall/src/com/android/cts/simpleappinstall/SimpleAppActivity.java
ppsecurity/test-apps/SimpleAppInstallDiffCert/Android.mk
ppsecurity/test-apps/SimpleAppInstallDiffCert/AndroidManifest.xml
ppsecurity/test-apps/SimpleAppInstallDiffCert/src/com/android/cts/simpleappinstall/SimpleAppActivity.java
ppsecurity/test-apps/TargetInstrumentationApp/Android.mk
ppsecurity/test-apps/TargetInstrumentationApp/AndroidManifest.xml
ppsecurity/test-apps/TargetInstrumentationApp/src/com/android/cts/targetinstrumentationapp/TargetInstrumentationActivity.java
ppsecurity/test-apps/UsePermissionDiffCert/Android.mk
ppsecurity/test-apps/UsePermissionDiffCert/AndroidManifest.xml
ppsecurity/test-apps/UsePermissionDiffCert/src/com/android/cts/usespermissiondiffcertapp/AccessPermissionWithDiffSigTest.java
ppsecurity/test-apps/UsePermissionDiffCert/src/com/android/cts/usespermissiondiffcertapp/ModifyInstallerPackageTest.java
ppsecurity/test-apps/UsePermissionDiffCert/src/com/android/cts/usespermissiondiffcertapp/ReceiveUriActivity.java
ppsecurity/test-apps/UsePermissionDiffCert/src/com/android/cts/usespermissiondiffcertapp/ReceiveUriService.java
1b15fd36483815344b7e8a53c76e4d5fd3c2a8e7 02-Feb-2012 Brian Muramatsu <btmura@google.com> Tests for ActivityManager#isUserAMonkey

Bug 5882598

- Add a host side test that installs an activity that logs whether or
not the user is a monkey. The host executes "adb shell monkey" and
the test then parses the lines looking for the log line printed out
by the activity.

- Creates a new top level CTS directory called "hostsidetests" to put
all host side tests under rather than putting it under "tests"
since that directory is more for the com.android.cts.stub package
and I would like to avoid cluttering that directory as we add more
host side tests.

Change-Id: I9d7b571b0244867e84bdff14418a544c713578e1
ndroid.mk
onkey/Android.mk
onkey/src/com/android/cts/monkey/MonkeyTest.java
onkey/test-apps/Android.mk
onkey/test-apps/CtsMonkeyApp/Android.mk
onkey/test-apps/CtsMonkeyApp/AndroidManifest.xml
onkey/test-apps/CtsMonkeyApp/src/com/android/cts/monkey/MonkeyActivity.java