Searched refs:projectId (Results 1 – 6 of 6) sorted by relevance
/frameworks/base/core/jni/ |
D | android_os_storage_StorageManager.cpp | 32 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/ |
D | QuotaUtils.cpp | 104 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()
|
D | QuotaUtils.h | 39 int64_t GetOccupiedSpaceForProjectId(const std::string& uuid, int projectId);
|
D | utils.cpp | 1310 long projectId = uid - AID_APP_START + PROJECT_ID_EXT_DATA_START; in get_occupied_app_space_external() local 1311 return GetOccupiedSpaceForProjectId(uuid, projectId); in get_occupied_app_space_external() 1327 long projectId = uid - AID_APP_START + PROJECT_ID_EXT_CACHE_START; in get_occupied_app_cache_space_external() local 1328 return GetOccupiedSpaceForProjectId(uuid, projectId); in get_occupied_app_cache_space_external()
|
D | InstalldNativeService.cpp | 2228 long projectId = get_project_id(uid, PROJECT_ID_APP_START); in collectQuotaStats() local 2229 if ((space = GetOccupiedSpaceForProjectId(uuid, projectId)) != -1) { in collectQuotaStats() 2232 projectId = get_project_id(uid, PROJECT_ID_APP_CACHE_START); in collectQuotaStats() 2233 if ((space = GetOccupiedSpaceForProjectId(uuid, projectId)) != -1) { in collectQuotaStats() 2553 static long getProjectIdForUser(int userId, long projectId) { in getProjectIdForUser() argument 2554 return userId * PER_USER_RANGE + projectId; in getProjectIdForUser() 2619 long projectId = uid - AID_APP_START + PROJECT_ID_EXT_DATA_START; in getExternalSizesForUserWithQuota() local 2620 totalAppDataSize += GetOccupiedSpaceForProjectId(uuid, projectId); in getExternalSizesForUserWithQuota()
|
/frameworks/base/core/java/android/os/storage/ |
D | StorageManager.java | 2542 private static native boolean setQuotaProjectId(String path, long projectId); in setQuotaProjectId() argument 2544 private static long getProjectIdForUser(int userId, int projectId) { in getProjectIdForUser() argument 2546 return userId * PER_USER_RANGE + projectId; in getProjectIdForUser() 2578 long projectId; in updateExternalStorageFileQuotaType() local 2603 projectId = getProjectIdForUser(userId, PROJECT_ID_EXT_DEFAULT); in updateExternalStorageFileQuotaType() 2606 projectId = getProjectIdForUser(userId, PROJECT_ID_EXT_MEDIA_AUDIO); in updateExternalStorageFileQuotaType() 2609 projectId = getProjectIdForUser(userId, PROJECT_ID_EXT_MEDIA_VIDEO); in updateExternalStorageFileQuotaType() 2612 projectId = getProjectIdForUser(userId, PROJECT_ID_EXT_MEDIA_IMAGE); in updateExternalStorageFileQuotaType() 2617 if (!setQuotaProjectId(filePath, projectId)) { in updateExternalStorageFileQuotaType()
|