Home | History | Annotate | Download | only in content

Lines Matching refs:cid

71     public static String createSdDir(int sizeMb, String cid, String sdEncKey, int uid,
80 int rc = mountService.createSecureContainer(cid, sizeMb, "ext4", sdEncKey, uid,
83 Log.e(TAG, "Failed to create secure container " + cid);
86 String cachePath = mountService.getSecureContainerPath(cid);
87 if (localLOGV) Log.i(TAG, "Created secure container " + cid +
96 public static String mountSdDir(String cid, String key, int ownerUid) {
98 int rc = getMountService().mountSecureContainer(cid, key, ownerUid);
100 Log.i(TAG, "Failed to mount container " + cid + " rc : " + rc);
103 return getMountService().getSecureContainerPath(cid);
110 public static boolean unMountSdDir(String cid) {
112 int rc = getMountService().unmountSecureContainer(cid, true);
114 Log.e(TAG, "Failed to unmount " + cid + " with rc " + rc);
140 public static String getSdDir(String cid) {
142 return getMountService().getSecureContainerPath(cid);
144 Log.e(TAG, "Failed to get container path for " + cid +
150 public static String getSdFilesystem(String cid) {
152 return getMountService().getSecureContainerFilesystemPath(cid);
154 Log.e(TAG, "Failed to get container path for " + cid +
160 public static boolean finalizeSdDir(String cid) {
162 int rc = getMountService().finalizeSecureContainer(cid);
164 Log.i(TAG, "Failed to finalize container " + cid);
169 Log.e(TAG, "Failed to finalize container " + cid +
175 public static boolean destroySdDir(String cid) {
177 if (localLOGV) Log.i(TAG, "Forcibly destroying container " + cid);
178 int rc = getMountService().destroySecureContainer(cid, true);
180 Log.i(TAG, "Failed to destroy container " + cid);
185 Log.e(TAG, "Failed to destroy container " + cid +
201 public static boolean isContainerMounted(String cid) {
203 return getMountService().isSecureContainerMounted(cid);
205 Log.e(TAG, "Failed to find out if container " + cid + " mounted");
285 public static boolean fixSdPermissions(String cid, int gid, String filename) {
287 int rc = getMountService().fixPermissionsSecureContainer(cid, gid, filename);
289 Log.i(TAG, "Failed to fixperms container " + cid);
294 Log.e(TAG, "Failed to fixperms container " + cid + " with exception " + e);