GetIconForType
status_t GetIconForType(const char* type, BBitmap* icon,
status_t GetIconForType(const char* type, uint8** data,
status_t GetIconForType(const char* type, BBitmap* icon,
status_t GetIconForType(const char* type, uint8** _data,
status_t GetIconForType(const char* type,
status_t GetIconForType(const char* type,
return GetIconForType(NULL, icon, which);
return GetIconForType(NULL, data, size);
return GetIconForType(NULL, icon, which);
return GetIconForType(NULL, data, size);
err = default_database_location()->GetIconForType(Type(), type,
return default_database_location()->GetIconForType(Type(), type, *_data,
success = type.GetIconForType(mimeString, icon, which) == B_OK;
success = type.GetIconForType(mimeString, icon, which) == B_OK;
success = type.GetIconForType(superType.Type(), icon,
&& appInfo.GetIconForType(type, &data, &size) == B_OK) {
&& appInfo.GetIconForType(type, &miniIcon, B_MINI_ICON) == B_OK) {
&& appInfo.GetIconForType(type, &largeIcon, B_LARGE_ICON) == B_OK) {
return GetIconForType(type, NULL, _icon, size);
return GetIconForType(type, NULL, _data, _size);
status_t err = appFileInfoRead.GetIconForType(type, &icon, iconSize);
status_t err = appFileInfoRead.GetIconForType(type, &data, &size);
if (preferredAppType.GetIconForType(signature.String(),
err = preferredAppType.GetIconForType(MimeType(), &bitmap, size);
err = preferredAppType.GetIconForType(MimeType(), &bitmap, size);
if (preferredApp.GetIconForType(type.Type(), &bitmap, size) == B_OK)
if (preferredApp.GetIconForType(superType.Type(),
if (info.GetIconForType(type, &data, &size) == B_OK) {
if (icon && info.GetIconForType(type, icon, B_LARGE_ICON) == B_OK)
if (icon && info.GetIconForType(type, icon, B_MINI_ICON) == B_OK)
if (preferredApp.GetIconForType(type.Type(), &data, &size) == B_OK)
if (preferredApp.GetIconForType(superType.Type(),
CHK(appFileInfo.GetIconForType(testType1, NULL, B_MINI_ICON)
CHK(appFileInfo.GetIconForType(testType1, NULL, B_LARGE_ICON)
CHK(appFileInfo.GetIconForType(testType1, &icon, B_MINI_ICON)
CHK(appFileInfo.GetIconForType(testType1, &icon2, B_LARGE_ICON)
CHK(appFileInfo.GetIconForType(testType1, &icon, B_MINI_ICON)
CHK(appFileInfo.GetIconForType(testType1, &icon2, B_LARGE_ICON)
CHK(appFileInfo.GetIconForType(testType1, &icon, B_MINI_ICON)
CHK(appFileInfo.GetIconForType(testType1, &icon, B_MINI_ICON) == B_OK);
CHK(appFileInfo.GetIconForType(testType1, &icon2, B_MINI_ICON)
CHK(appFileInfo.GetIconForType(testType1, &icon3, B_LARGE_ICON)
CHK(appFileInfo.GetIconForType(testType1, &icon4, B_LARGE_ICON)
CHK(appFileInfo.GetIconForType(testType1, &icon, B_MINI_ICON) == B_OK);
CHK(appFileInfo.GetIconForType(testType1, &icon3, B_LARGE_ICON)
CHK(appFileInfo.GetIconForType(testType1, &icon, B_MINI_ICON)
CHK(appFileInfo.GetIconForType(testType1, &icon2, B_LARGE_ICON)
CHK(appFileInfo.GetIconForType(NULL, &icon3, B_MINI_ICON) == B_OK);
CHK(appFileInfo.GetIconForType(NULL, &icon4, B_LARGE_ICON) == B_OK);
CHK(appFileInfo.GetIconForType(testType1, &icon, B_MINI_ICON)
CHK(appFileInfo.GetIconForType(testType1, &icon2, B_LARGE_ICON)
CHK(appFileInfo.GetIconForType(testType2, &icon3, B_MINI_ICON)
CHK(appFileInfo.GetIconForType(testType2, &icon4, B_LARGE_ICON)
CHK(appFileInfo.GetIconForType(invalidTestType, &icon, B_MINI_ICON)
CHK(appFileInfo.GetIconForType(invalidTestType, &icon3, B_LARGE_ICON)
CHK(mimeType.GetIconForType(testType1, &icon, B_MINI_ICON)
CHK(mimeType.GetIconForType(testType1, &icon2, B_LARGE_ICON)
CHK(mimeType.GetIconForType(testType1, &icon3, B_MINI_ICON)
CHK(mimeType.GetIconForType(testType1, &icon4, B_LARGE_ICON)
status_t error = info.GetIconForType(value.type.c_str(), &value.mini,
error = info.GetIconForType(value.type.c_str(), &value.large,
CHK(mime.GetIconForType(testTypeInvalid, bmp, helper.Size()) != B_OK); // R5 == B_BAD_VALUE
CHK(mime.GetIconForType(NULL, bmp, helper.Size()) == B_OK);
CHK(mime.GetIconForType(NULL, bmp, helper.Size()) != B_OK); // B_ENTRY_NOT_FOUND
return mime.GetIconForType(fileType.c_str(), icon, size);