summaryrefslogtreecommitdiffstats
path: root/services/tests
diff options
context:
space:
mode:
authorAmith Yamasani <yamasani@google.com>2014-09-03 13:17:28 -0700
committerAmith Yamasani <yamasani@google.com>2014-09-03 13:17:28 -0700
commit0e8d7d63ba439cc0604af7055679dae3d30fdc48 (patch)
treec1602cdb8d5fee4547fe06bdb8b77563344383a9 /services/tests
parent0fd79c955b3745648d5f326bc784ced1e1188935 (diff)
downloadframeworks_base-0e8d7d63ba439cc0604af7055679dae3d30fdc48.zip
frameworks_base-0e8d7d63ba439cc0604af7055679dae3d30fdc48.tar.gz
frameworks_base-0e8d7d63ba439cc0604af7055679dae3d30fdc48.tar.bz2
Add some @SystemApi tags for internal user-related APIs
Also added an internal isManagedProfile() Bug: 17371392 Change-Id: Ibcc26771d954505cbd530192bf4a8a25a8d4cae0
Diffstat (limited to 'services/tests')
-rw-r--r--services/tests/servicestests/src/com/android/server/pm/UserManagerTest.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/services/tests/servicestests/src/com/android/server/pm/UserManagerTest.java b/services/tests/servicestests/src/com/android/server/pm/UserManagerTest.java
index 6e13732..a0b8c94 100644
--- a/services/tests/servicestests/src/com/android/server/pm/UserManagerTest.java
+++ b/services/tests/servicestests/src/com/android/server/pm/UserManagerTest.java
@@ -125,7 +125,8 @@ public class UserManagerTest extends AndroidTestCase {
UserInfo.FLAG_MANAGED_PROFILE, UserHandle.USER_OWNER);
assertNotNull(userInfo1);
assertNull(userInfo2);
-
+ // Verify that current user is not a managed profile
+ assertFalse(mUserManager.isManagedProfile());
// Cleanup
removeUser(userInfo1.id);
}