Lines Matching refs:userId

121             super(getWallpaperDir(wallpaper.userId).getAbsolutePath(),
123 mWallpaperDir = getWallpaperDir(wallpaper.userId);
169 int userId;
207 WallpaperData(int userId) {
208 this.userId = userId;
209 wallpaperFile = new File(getWallpaperDir(userId), WALLPAPER);
253 && mWallpaper.userId == mCurrentUserId) {
255 clearWallpaperLocked(true, mWallpaper.userId, null);
311 clearWallpaperLocked(false, wallpaper.userId, null);
391 clearWallpaperLocked(false, wallpaper.userId, null);
411 clearWallpaperLocked(false, wallpaper.userId, null);
439 private static File getWallpaperDir(int userId) {
440 return Environment.getUserSystemDirectory(userId);
503 void onStoppingUser(int userId) {
504 if (userId < 1) return;
506 WallpaperData wallpaper = mWallpaperMap.get(userId);
512 mWallpaperMap.remove(userId);
517 void onRemoveUser(int userId) {
518 if (userId < 1) return;
520 onStoppingUser(userId);
521 File wallpaperFile = new File(getWallpaperDir(userId), WALLPAPER);
523 File wallpaperInfoFile = new File(getWallpaperDir(userId), WALLPAPER_INFO);
528 void switchUser(int userId, IRemoteCallback reply) {
530 mCurrentUserId = userId;
531 WallpaperData wallpaper = mWallpaperMap.get(userId);
533 wallpaper = new WallpaperData(userId);
534 mWallpaperMap.put(userId, wallpaper);
535 loadSettingsLocked(userId);
559 clearWallpaperLocked(false, wallpaper.userId, reply);
570 void clearWallpaperLocked(boolean defaultFailed, int userId, IRemoteCallback reply) {
571 WallpaperData wallpaper = mWallpaperMap.get(userId);
572 File f = new File(getWallpaperDir(userId), WALLPAPER);
580 if (userId != mCurrentUserId) return;
633 int userId = UserHandle.getCallingUserId();
634 WallpaperData wallpaper = mWallpaperMap.get(userId);
636 throw new IllegalStateException("Wallpaper not yet initialized for user " + userId);
646 if (mCurrentUserId != userId) return; // Don't change the properties now
708 int userId = UserHandle.getCallingUserId();
710 WallpaperData wallpaper = mWallpaperMap.get(userId);
722 int userId = UserHandle.getCallingUserId();
723 WallpaperData wallpaper = mWallpaperMap.get(userId);
725 throw new IllegalStateException("Wallpaper not yet initialized for user " + userId);
743 File dir = getWallpaperDir(wallpaper.userId);
769 int userId = UserHandle.getCallingUserId();
770 WallpaperData wallpaper = mWallpaperMap.get(userId);
772 throw new IllegalStateException("Wallpaper not yet initialized for user " + userId);
821 int serviceUserId = wallpaper.userId;
897 if (wallpaper.userId == mCurrentUserId && mLastWallpaper != null) {
905 if (wallpaper.userId == mCurrentUserId) {
994 private static JournaledFile makeJournaledFile(int userId) {
995 final String base = new File(getWallpaperDir(userId), WALLPAPER_INFO).getAbsolutePath();
1000 JournaledFile journal = makeJournaledFile(wallpaper.userId);
1047 private void loadSettingsLocked(int userId) {
1050 JournaledFile journal = makeJournaledFile(userId);
1057 WallpaperData wallpaper = mWallpaperMap.get(userId);
1059 wallpaper = new WallpaperData(userId);
1060 mWallpaperMap.put(userId, wallpaper);
1274 pw.println(" User " + wallpaper.userId + ":");