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.cpp1308 long projectId = uid - AID_APP_START + PROJECT_ID_EXT_DATA_START; in get_occupied_app_space_external() local
1309 return GetOccupiedSpaceForProjectId(uuid, projectId); in get_occupied_app_space_external()
1325 long projectId = uid - AID_APP_START + PROJECT_ID_EXT_CACHE_START; in get_occupied_app_cache_space_external() local
1326 return GetOccupiedSpaceForProjectId(uuid, projectId); in get_occupied_app_cache_space_external()
DInstalldNativeService.cpp2402 long projectId = get_project_id(uid, PROJECT_ID_APP_START); in collectQuotaStats() local
2403 if ((space = GetOccupiedSpaceForProjectId(uuid, projectId)) != -1) { in collectQuotaStats()
2406 projectId = get_project_id(uid, PROJECT_ID_APP_CACHE_START); in collectQuotaStats()
2407 if ((space = GetOccupiedSpaceForProjectId(uuid, projectId)) != -1) { in collectQuotaStats()
2735 static long getProjectIdForUser(int userId, long projectId) { in getProjectIdForUser() argument
2736 return userId * PER_USER_RANGE + projectId; in getProjectIdForUser()
2801 long projectId = uid - AID_APP_START + PROJECT_ID_EXT_DATA_START; in getExternalSizesForUserWithQuota() local
2802 totalAppDataSize += GetOccupiedSpaceForProjectId(uuid, projectId); in getExternalSizesForUserWithQuota()
/frameworks/base/core/java/android/os/storage/
DStorageManager.java2510 private static native boolean setQuotaProjectId(String path, long projectId); in setQuotaProjectId() argument
2512 private static long getProjectIdForUser(int userId, int projectId) { in getProjectIdForUser() argument
2514 return userId * PER_USER_RANGE + projectId; in getProjectIdForUser()
2551 long projectId; in updateExternalStorageFileQuotaType() local
2583 projectId = getProjectIdForUser(userId, PROJECT_ID_EXT_DEFAULT); in updateExternalStorageFileQuotaType()
2586 projectId = getProjectIdForUser(userId, PROJECT_ID_EXT_MEDIA_AUDIO); in updateExternalStorageFileQuotaType()
2589 projectId = getProjectIdForUser(userId, PROJECT_ID_EXT_MEDIA_VIDEO); in updateExternalStorageFileQuotaType()
2592 projectId = getProjectIdForUser(userId, PROJECT_ID_EXT_MEDIA_IMAGE); in updateExternalStorageFileQuotaType()
2597 if (!setQuotaProjectId(filePath, projectId)) { in updateExternalStorageFileQuotaType()