Home
last modified time | relevance | path

Searched refs:projectId (Results 1 – 6 of 6) sorted by relevance

/frameworks/base/core/jni/
Dandroid_os_storage_StorageManager.cpp32 jstring path, jlong projectId) { in android_os_storage_StorageManager_setQuotaProjectId() argument
43 if (projectId > UINT32_MAX) { in android_os_storage_StorageManager_setQuotaProjectId()
44 LOG(ERROR) << "Invalid project id: " << projectId; in android_os_storage_StorageManager_setQuotaProjectId()
62 fsx.fsx_projid = projectId; in android_os_storage_StorageManager_setQuotaProjectId()
/frameworks/native/cmds/installd/
DQuotaUtils.cpp104 int64_t GetOccupiedSpaceForProjectId(const std::string& uuid, int projectId) { in GetOccupiedSpaceForProjectId() argument
110 if (quotactl(QCMD(Q_GETQUOTA, PRJQUOTA), device.c_str(), projectId, in GetOccupiedSpaceForProjectId()
113 PLOG(ERROR) << "Failed to quotactl " << device << " for Project ID " << projectId; in GetOccupiedSpaceForProjectId()
118 LOG(DEBUG) << "quotactl() for Project ID " << projectId << " " << dq.dqb_curspace; in GetOccupiedSpaceForProjectId()
DQuotaUtils.h39 int64_t GetOccupiedSpaceForProjectId(const std::string& uuid, int projectId);
Dutils.cpp1086 long projectId = uid - AID_APP_START + PROJECT_ID_EXT_DATA_START; in get_occupied_app_space_external() local
1087 return GetOccupiedSpaceForProjectId(uuid, projectId); in get_occupied_app_space_external()
1103 long projectId = uid - AID_APP_START + PROJECT_ID_EXT_CACHE_START; in get_occupied_app_cache_space_external() local
1104 return GetOccupiedSpaceForProjectId(uuid, projectId); in get_occupied_app_cache_space_external()
DInstalldNativeService.cpp1876 static long getProjectIdForUser(int userId, long projectId) { in getProjectIdForUser() argument
1877 return userId * PER_USER_RANGE + projectId; in getProjectIdForUser()
1942 long projectId = uid - AID_APP_START + PROJECT_ID_EXT_DATA_START; in getExternalSizesForUserWithQuota() local
1943 totalAppDataSize += GetOccupiedSpaceForProjectId(uuid, projectId); in getExternalSizesForUserWithQuota()
/frameworks/base/core/java/android/os/storage/
DStorageManager.java2445 private static native boolean setQuotaProjectId(String path, long projectId); in setQuotaProjectId() argument
2447 private static long getProjectIdForUser(int userId, int projectId) { in getProjectIdForUser() argument
2449 return userId * PER_USER_RANGE + projectId; in getProjectIdForUser()
2479 long projectId; in updateExternalStorageFileQuotaType() local
2497 projectId = getProjectIdForUser(userId, PROJECT_ID_EXT_DEFAULT); in updateExternalStorageFileQuotaType()
2500 projectId = getProjectIdForUser(userId, PROJECT_ID_EXT_MEDIA_AUDIO); in updateExternalStorageFileQuotaType()
2503 projectId = getProjectIdForUser(userId, PROJECT_ID_EXT_MEDIA_VIDEO); in updateExternalStorageFileQuotaType()
2506 projectId = getProjectIdForUser(userId, PROJECT_ID_EXT_MEDIA_IMAGE); in updateExternalStorageFileQuotaType()
2511 if (!setQuotaProjectId(filePath, projectId)) { in updateExternalStorageFileQuotaType()