Loading services/java/com/android/server/MountService.java +0 −32 Original line number Diff line number Diff line Loading @@ -79,8 +79,6 @@ class MountService extends IMountService.Stub private static final String VOLD_TAG = "VoldConnector"; protected static final int MAX_OBBS = 8; /* * Internal vold volume state constants */ Loading Loading @@ -161,7 +159,6 @@ class MountService extends IMountService.Stub * Mounted OBB tracking information. Used to track the current state of all * OBBs. */ final private Map<Integer, Integer> mObbUidUsage = new HashMap<Integer, Integer>(); final private Map<IBinder, List<ObbState>> mObbMounts = new HashMap<IBinder, List<ObbState>>(); final private Map<String, ObbState> mObbPathToStateMap = new HashMap<String, ObbState>(); Loading Loading @@ -1604,12 +1601,6 @@ class MountService extends IMountService.Stub } final int callerUid = Binder.getCallingUid(); final Integer uidUsage = mObbUidUsage.get(callerUid); if (uidUsage != null && uidUsage > MAX_OBBS) { throw new IllegalStateException("Maximum number of OBBs mounted!"); } obbState = new ObbState(filename, token, callerUid); addObbState(obbState); } Loading Loading @@ -1708,15 +1699,6 @@ class MountService extends IMountService.Stub } mObbPathToStateMap.put(obbState.filename, obbState); // Track the number of OBBs used by this UID. final int uid = obbState.callerUid; final Integer uidUsage = mObbUidUsage.get(uid); if (uidUsage == null) { mObbUidUsage.put(uid, 1); } else { mObbUidUsage.put(uid, uidUsage + 1); } } } Loading @@ -1734,20 +1716,6 @@ class MountService extends IMountService.Stub } mObbPathToStateMap.remove(obbState.filename); // Track the number of OBBs used by this UID. final int uid = obbState.callerUid; final Integer uidUsage = mObbUidUsage.get(uid); if (uidUsage == null) { Slog.e(TAG, "Called removeObbState for UID that isn't in map: " + uid); } else { final int newUsage = uidUsage - 1; if (newUsage == 0) { mObbUidUsage.remove(uid); } else { mObbUidUsage.put(uid, newUsage); } } } } Loading Loading
services/java/com/android/server/MountService.java +0 −32 Original line number Diff line number Diff line Loading @@ -79,8 +79,6 @@ class MountService extends IMountService.Stub private static final String VOLD_TAG = "VoldConnector"; protected static final int MAX_OBBS = 8; /* * Internal vold volume state constants */ Loading Loading @@ -161,7 +159,6 @@ class MountService extends IMountService.Stub * Mounted OBB tracking information. Used to track the current state of all * OBBs. */ final private Map<Integer, Integer> mObbUidUsage = new HashMap<Integer, Integer>(); final private Map<IBinder, List<ObbState>> mObbMounts = new HashMap<IBinder, List<ObbState>>(); final private Map<String, ObbState> mObbPathToStateMap = new HashMap<String, ObbState>(); Loading Loading @@ -1604,12 +1601,6 @@ class MountService extends IMountService.Stub } final int callerUid = Binder.getCallingUid(); final Integer uidUsage = mObbUidUsage.get(callerUid); if (uidUsage != null && uidUsage > MAX_OBBS) { throw new IllegalStateException("Maximum number of OBBs mounted!"); } obbState = new ObbState(filename, token, callerUid); addObbState(obbState); } Loading Loading @@ -1708,15 +1699,6 @@ class MountService extends IMountService.Stub } mObbPathToStateMap.put(obbState.filename, obbState); // Track the number of OBBs used by this UID. final int uid = obbState.callerUid; final Integer uidUsage = mObbUidUsage.get(uid); if (uidUsage == null) { mObbUidUsage.put(uid, 1); } else { mObbUidUsage.put(uid, uidUsage + 1); } } } Loading @@ -1734,20 +1716,6 @@ class MountService extends IMountService.Stub } mObbPathToStateMap.remove(obbState.filename); // Track the number of OBBs used by this UID. final int uid = obbState.callerUid; final Integer uidUsage = mObbUidUsage.get(uid); if (uidUsage == null) { Slog.e(TAG, "Called removeObbState for UID that isn't in map: " + uid); } else { final int newUsage = uidUsage - 1; if (newUsage == 0) { mObbUidUsage.remove(uid); } else { mObbUidUsage.put(uid, newUsage); } } } } Loading