Lines Matching refs:type

167 partition_type_string(uint8 type)
171 if (type == kPartitionTypes[i].type)
179 get_partition_type_string(uint8 type, char* buffer)
182 if (const char* typeString = partition_type_string(type))
185 sprintf(buffer, "%s0x%x", kUnrecognizedTypeString, type);
255 /*! \brief Sets the \a type via its ID.
256 \param type ID of the partition type, it is in the range [0..255].
259 PartitionType::SetType(uint8 type)
261 fType = type;
262 fValid = partition_type_string(type);
267 /*! \brief Sets the type via its string name.
268 \param typeName Name of the partition type.
275 fType = kPartitionTypes[i].type;
281 // If this is an unrecognized type, parse the type number.
284 long type = strtol(typeName + kUnrecognizedTypeStringLength, NULL, 0);
285 if (type != 0 && type <= 255) {
286 fType = type;
297 /*! \brief Converts content type to the partition type that fits best.
298 \param content_type Name of the content type, it is standardized by system.
305 fType = kPartitionContentTypes[i].type;
321 if (fType < kPartitionTypes[i].type) {
322 fType = kPartitionTypes[i].type;
333 \brief Check whether the current type is valid.
337 \brief Check whether the current type describes empty type.
341 \brief Check whether the current type describes extended partition type.
345 \brief Returns ID of the current type.
349 \brief Returns string name of the current type.
388 (off_t)descriptor->size * blockSize, descriptor->type,
394 Partition::SetTo(off_t offset, off_t size, uint8 type, bool active,
400 fType = type;
504 PrimaryPartition::SetTo(off_t offset, off_t size, uint8 type, bool active,
508 Partition::SetTo(offset, size, type, active, 0, blockSize);
560 descriptor->type = Type();
678 LogicalPartition::SetTo(off_t offset, off_t size, uint8 type, bool active,
683 Partition::SetTo(offset, size, type, active, tableOffset,
708 descriptor->type = primary->Type();
711 descriptor->type = Type();