summaryrefslogtreecommitdiffstats
path: root/test-runner
diff options
context:
space:
mode:
authorAmith Yamasani <yamasani@google.com>2012-03-22 16:16:17 -0700
committerAmith Yamasani <yamasani@google.com>2012-03-27 11:23:01 -0700
commit135936072b24b090fb63940aea41b408d855a4f3 (patch)
treec10e6a7642df4246937bb6fbd7277b642daf3eee /test-runner
parent0c44525a4888de321c9497204d59c8515f828499 (diff)
downloadframeworks_base-135936072b24b090fb63940aea41b408d855a4f3.zip
frameworks_base-135936072b24b090fb63940aea41b408d855a4f3.tar.gz
frameworks_base-135936072b24b090fb63940aea41b408d855a4f3.tar.bz2
User management and switching
Broadcast intents that get sent out when users are added/removed/switched. More work on generating user-specific information in package manager queries. APIs to update user name and query a user by id. Removed Package.mSetStopped and mSetEnabled, since they're not user specific. User removal: - Cleanup ActivityManager, PackageManager, WallpaperManager, AppWidgetService and AccountManager. - Shutdown processes belonging to the user. Don't show vibrate option in long-press power if there's no vibrator. Lock the screen when switching users, to force unlocking. Change-Id: Ib23a721cb75285eef5fd6ba8c7272462764038fa
Diffstat (limited to 'test-runner')
-rw-r--r--test-runner/src/android/test/mock/MockPackageManager.java9
1 files changed, 9 insertions, 0 deletions
diff --git a/test-runner/src/android/test/mock/MockPackageManager.java b/test-runner/src/android/test/mock/MockPackageManager.java
index 351c771..5610134 100644
--- a/test-runner/src/android/test/mock/MockPackageManager.java
+++ b/test-runner/src/android/test/mock/MockPackageManager.java
@@ -45,6 +45,7 @@ import android.content.res.Resources;
import android.content.res.XmlResourceParser;
import android.graphics.drawable.Drawable;
import android.net.Uri;
+import android.os.RemoteException;
import java.util.List;
@@ -530,6 +531,14 @@ public class MockPackageManager extends PackageManager {
* @hide
*/
@Override
+ public UserInfo getUser(int userId) {
+ throw new UnsupportedOperationException();
+ }
+
+ /**
+ * @hide
+ */
+ @Override
public boolean removeUser(int id) {
throw new UnsupportedOperationException();
}