Lines Matching refs:uuid
163 binder::Status checkArgumentUuid(const std::optional<std::string>& uuid) { in checkArgumentUuid() argument
164 if (!uuid || is_valid_filename(*uuid)) { in checkArgumentUuid()
168 StringPrintf("UUID %s is malformed", uuid->c_str())); in checkArgumentUuid()
172 binder::Status checkArgumentUuidTestOrNull(const std::optional<std::string>& uuid) { in checkArgumentUuidTestOrNull() argument
173 if (!uuid || strcmp(uuid->c_str(), kTestUuid) == 0) { in checkArgumentUuidTestOrNull()
177 StringPrintf("UUID must be null or \"%s\", got: %s", kTestUuid, uuid->c_str())); in checkArgumentUuidTestOrNull()
226 #define CHECK_ARGUMENT_UUID(uuid) { \ argument
227 binder::Status status = checkArgumentUuid((uuid)); \
233 #define CHECK_ARGUMENT_UUID_IS_TEST_OR_NULL(uuid) { \ argument
234 auto status = checkArgumentUuidTestOrNull(uuid); \
442 binder::Status InstalldNativeService::createAppData(const std::optional<std::string>& uuid, in createAppData() argument
446 CHECK_ARGUMENT_UUID(uuid); in createAppData()
450 const char* uuid_ = uuid ? uuid->c_str() : nullptr; in createAppData()
520 binder::Status InstalldNativeService::migrateAppData(const std::optional<std::string>& uuid, in migrateAppData() argument
523 CHECK_ARGUMENT_UUID(uuid); in migrateAppData()
527 const char* uuid_ = uuid ? uuid->c_str() : nullptr; in migrateAppData()
581 binder::Status InstalldNativeService::clearAppData(const std::optional<std::string>& uuid, in clearAppData() argument
584 CHECK_ARGUMENT_UUID(uuid); in clearAppData()
588 const char* uuid_ = uuid ? uuid->c_str() : nullptr; in clearAppData()
701 binder::Status InstalldNativeService::destroyAppData(const std::optional<std::string>& uuid, in destroyAppData() argument
704 CHECK_ARGUMENT_UUID(uuid); in destroyAppData()
708 const char* uuid_ = uuid ? uuid->c_str() : nullptr; in destroyAppData()
773 binder::Status InstalldNativeService::fixupAppData(const std::optional<std::string>& uuid, in fixupAppData() argument
776 CHECK_ARGUMENT_UUID(uuid); in fixupAppData()
779 const char* uuid_ = uuid ? uuid->c_str() : nullptr; in fixupAppData()
1272 binder::Status InstalldNativeService::createUserData(const std::optional<std::string>& uuid, in createUserData() argument
1275 CHECK_ARGUMENT_UUID(uuid); in createUserData()
1278 const char* uuid_ = uuid ? uuid->c_str() : nullptr; in createUserData()
1290 binder::Status InstalldNativeService::destroyUserData(const std::optional<std::string>& uuid, in destroyUserData() argument
1293 CHECK_ARGUMENT_UUID(uuid); in destroyUserData()
1296 const char* uuid_ = uuid ? uuid->c_str() : nullptr; in destroyUserData()
1319 path = findDataMediaPath(uuid, userId); in destroyUserData()
1327 binder::Status InstalldNativeService::freeCache(const std::optional<std::string>& uuid, in freeCache() argument
1330 CHECK_ARGUMENT_UUID(uuid); in freeCache()
1333 auto uuidString = uuid.value_or(""); in freeCache()
1334 const char* uuid_ = uuid ? uuid->c_str() : nullptr; in freeCache()
1364 auto media_path = findDataMediaPath(uuid, user) + "/Android/data/"; in freeCache()
1547 static void collectQuotaStats(const std::string& uuid, int32_t userId, in collectQuotaStats() argument
1552 if ((space = GetOccupiedSpaceForUid(uuid, uid)) != -1) { in collectQuotaStats()
1558 if ((space = GetOccupiedSpaceForGid(uuid, cacheGid)) != -1) { in collectQuotaStats()
1565 if ((space = GetOccupiedSpaceForGid(uuid, sharedGid)) != -1) { in collectQuotaStats()
1573 space = get_occupied_app_space_external(uuid, userId, appId); in collectQuotaStats()
1587 space = get_occupied_app_cache_space_external(uuid, userId, appId); in collectQuotaStats()
1607 int64_t appObbSize = GetOccupiedSpaceForProjectId(uuid, obbProjectId); in collectQuotaStats()
1731 binder::Status InstalldNativeService::getAppSize(const std::optional<std::string>& uuid, in getAppSize() argument
1736 CHECK_ARGUMENT_UUID(uuid); in getAppSize()
1771 auto uuidString = uuid.value_or(""); in getAppSize()
1772 const char* uuid_ = uuid ? uuid->c_str() : nullptr; in getAppSize()
1814 if (!uuid) { in getAppSize()
1833 if (!uuid) { in getAppSize()
1872 static external_sizes getExternalSizesForUserWithQuota(const std::string& uuid, int32_t userId, con… in getExternalSizesForUserWithQuota() argument
1878 if ((space = GetOccupiedSpaceForUid(uuid, uid)) != -1) { in getExternalSizesForUserWithQuota()
1883 if ((space = GetOccupiedSpaceForGid(uuid, audioGid)) != -1) { in getExternalSizesForUserWithQuota()
1888 if ((space = GetOccupiedSpaceForGid(uuid, videoGid)) != -1) { in getExternalSizesForUserWithQuota()
1893 if ((space = GetOccupiedSpaceForGid(uuid, imageGid)) != -1) { in getExternalSizesForUserWithQuota()
1897 if ((space = GetOccupiedSpaceForGid(uuid, AID_MEDIA_OBB)) != -1) { in getExternalSizesForUserWithQuota()
1903 if ((space = GetOccupiedSpaceForProjectId(uuid, defaultProjectId)) != -1) { in getExternalSizesForUserWithQuota()
1910 if ((space = GetOccupiedSpaceForProjectId(uuid, audioProjectId)) != -1) { in getExternalSizesForUserWithQuota()
1916 if ((space = GetOccupiedSpaceForProjectId(uuid, videoProjectId)) != -1) { in getExternalSizesForUserWithQuota()
1922 if ((space = GetOccupiedSpaceForProjectId(uuid, imageProjectId)) != -1) { in getExternalSizesForUserWithQuota()
1935 totalAppDataSize += GetOccupiedSpaceForProjectId(uuid, projectId); in getExternalSizesForUserWithQuota()
1939 totalAppCacheSize += GetOccupiedSpaceForProjectId(uuid, cacheProjectId); in getExternalSizesForUserWithQuota()
1943 totalAppObbSize += GetOccupiedSpaceForProjectId(uuid, obbProjectId); in getExternalSizesForUserWithQuota()
1958 binder::Status InstalldNativeService::getUserSize(const std::optional<std::string>& uuid, in getUserSize() argument
1962 CHECK_ARGUMENT_UUID(uuid); in getUserSize()
1978 auto uuidString = uuid.value_or(""); in getUserSize()
1979 const char* uuid_ = uuid ? uuid->c_str() : nullptr; in getUserSize()
1997 if (!uuid) { in getUserSize()
2012 if (!uuid) { in getUserSize()
2050 if (!uuid) { in getUserSize()
2068 if (!uuid) { in getUserSize()
2090 binder::Status InstalldNativeService::getExternalSize(const std::optional<std::string>& uuid, in getExternalSize() argument
2094 CHECK_ARGUMENT_UUID(uuid); in getExternalSize()
2105 auto uuidString = uuid.value_or(""); in getExternalSize()
2106 const char* uuid_ = uuid ? uuid->c_str() : nullptr; in getExternalSize()
2206 binder::Status InstalldNativeService::setAppQuota(const std::optional<std::string>& uuid, in setAppQuota() argument
2209 CHECK_ARGUMENT_UUID(uuid); in setAppQuota()
2284 const std::string& compilerFilter, const std::optional<std::string>& uuid, in dexopt() argument
2291 CHECK_ARGUMENT_UUID(uuid); in dexopt()
2310 const char* volume_uuid = getCStr(uuid); in dexopt()
2335 const std::optional<std::string>& uuid, const std::string& packageName, in linkNativeLibraryDirectory() argument
2338 CHECK_ARGUMENT_UUID(uuid); in linkNativeLibraryDirectory()
2343 const char* uuid_ = uuid ? uuid->c_str() : nullptr; in linkNativeLibraryDirectory()
2626 binder::Status InstalldNativeService::restoreconAppData(const std::optional<std::string>& uuid, in restoreconAppData() argument
2630 CHECK_ARGUMENT_UUID(uuid); in restoreconAppData()
2638 const char* uuid_ = uuid ? uuid->c_str() : nullptr; in restoreconAppData()
2969 const std::optional<std::string>& uuid, userid_t userid) { in findDataMediaPath() argument
2971 const char* uuid_ = uuid ? uuid->c_str() : nullptr; in findDataMediaPath()
2982 const std::optional<std::string>& uuid, bool* _aidl_return) { in isQuotaSupported() argument
2983 auto uuidString = uuid.value_or(""); in isQuotaSupported()