Home
last modified time | relevance | path

Searched refs:mFileFormat (Results 1 – 9 of 9) sorted by relevance

/aosp12/packages/modules/GeoTZ/s2storage/src/readonly/java/com/android/timezone/location/storage/tzs2range/read/
H A DPopulatedSuffixTableBlock.java42 private final TzS2RangeFileFormat mFileFormat; field in PopulatedSuffixTableBlock
52 mFileFormat = Objects.requireNonNull(fileFormat); in PopulatedSuffixTableBlock()
68 int suffixValue = mFileFormat.extractSuffixValueFromCellId(cellId); in findEntryByCellId()
69 S2CellMatcher matcher = new S2CellMatcher(mFileFormat, suffixValue); in findEntryByCellId()
107 private final TzS2RangeFileFormat mFileFormat; field in PopulatedSuffixTableBlock.S2CellMatcher
112 mFileFormat = Objects.requireNonNull(fileFormat); in S2CellMatcher()
167 long startCellId = mFileFormat.createCellId(mPrefix, startCellIdSuffix); in getSuffixTableRange()
172 mFileFormat.getTableEntryMaxRangeLengthValue()); in getSuffixTableRange()
176 if (endCellIdSuffix > mFileFormat.getMaxSuffixValue()) { in getSuffixTableRange()
180 if (endCellIdSuffix != mFileFormat.getMaxSuffixValue() + 1) { in getSuffixTableRange()
[all …]
H A DTzS2RangeFileReader.java45 private TzS2RangeFileFormat mFileFormat; field in TzS2RangeFileReader
87 mFileFormat = mHeaderBlock.getFileFormat(); in initialize()
90 mSuffixTableExtraInfos = new SuffixTableExtraInfo[mFileFormat.getMaxPrefixValue() + 1]; in initialize()
92 int blockId = prefix + mFileFormat.getSuffixTableBlockIdOffset(); in initialize()
97 SuffixTableExtraInfo.create(mFileFormat, blockInfo); in initialize()
158 int dataS2Level = mFileFormat.getS2Level(); in findEntryByCellId()
165 int prefix = mFileFormat.extractPrefixValueFromCellId(cellId); in findEntryByCellId()
177 mFileFormat.getMaxPrefixValue()); in getSuffixTableExtraInfoForPrefix()
185 return SuffixTableBlock.createEmpty(mFileFormat, prefix); in getSuffixTableBlockForPrefix()
187 Block block = mBlockFileReader.getBlock(prefix + mFileFormat.getSuffixTableBlockIdOffset()); in getSuffixTableBlockForPrefix()
[all …]
H A DSuffixTableBlock.java58 private final TzS2RangeFileFormat mFileFormat; field in SuffixTableBlock
97 mFileFormat = Objects.requireNonNull(fileFormat); in SuffixTableBlock()
143 if (getS2Level(cellId) != mFileFormat.getS2Level()) { in findEntryByCellId()
146 + mFileFormat.getS2Level()); in findEntryByCellId()
148 if (mFileFormat.extractPrefixValueFromCellId(cellId) != mPrefix) { in findEntryByCellId()
150 BitwiseUtils.toUnsignedString(mFileFormat.getPrefixBitCount(), mPrefix); in findEntryByCellId()
152 cellId + "(" + mFileFormat.cellIdToString(cellId) in findEntryByCellId()
H A DHeaderBlock.java35 private final TzS2RangeFileFormat mFileFormat; field in HeaderBlock
49 mFileFormat = new TzS2RangeFileFormat( in HeaderBlock()
100 return mFileFormat; in getFileFormat()
128 visitor.visitFileFormat(mFileFormat); in visit()
/aosp12/packages/modules/GeoTZ/s2storage/src/write/java/com/android/timezone/location/storage/tzs2range/write/
H A DTzS2RangeFileWriter.java47 private final TzS2RangeFileFormat mFileFormat; field in TzS2RangeFileWriter
52 mFileFormat = fileFormat; in TzS2RangeFileWriter()
75 currentPrefix <= mFileFormat.getMaxPrefixValue(); in processRanges()
103 if (mFileFormat.getS2Level() != S2Support.getS2Level(startCellId)) { in collectSamePrefixRanges()
107 int startCellPrefix = mFileFormat.extractPrefixValueFromCellId(startCellId); in collectSamePrefixRanges()
120 if (mFileFormat.getS2Level() != S2Support.getS2Level(endCellId)) { in collectSamePrefixRanges()
126 int endCellPrefixValue = mFileFormat.extractPrefixValueFromCellId(endCellId); in collectSamePrefixRanges()
140 long newStartCellId = mFileFormat.createCellId(startCellPrefix, 0); in collectSamePrefixRanges()
188 SuffixTableWriter.createPopulated(mFileFormat, sharedData); in writeSamePrefixRanges()
234 for (int i = 0; i < mFileFormat.getSuffixTableBlockIdOffset() - 1; i++) { in close()
[all …]
H A DSuffixTableWriter.java51 private final TzS2RangeFileFormat mFileFormat; field in SuffixTableWriter
61 mFileFormat = fileFormat; in SuffixTableWriter()
100 int rangeStartPrefixValue = mFileFormat.extractPrefixValueFromCellId(rangeStartCellId); in addRange()
101 int rangeStartSuffixValue = mFileFormat.extractSuffixValueFromCellId(rangeStartCellId); in addRange()
114 int rangeEndSuffixValue = mFileFormat.extractSuffixValueFromCellId(rangeEndCellId); in addRange()
125 mFileFormat.extractPrefixValueFromCellId(lastRangeAddedEndCellId); in addRange()
132 mFileFormat.extractSuffixValueFromCellId(lastRangeAddedEndCellId); in addRange()
140 int rangeLength = mFileFormat.calculateRangeLength(rangeStartCellId, rangeEndCellId); in addRange()
143 if (tzIdSetId < 0 || tzIdSetId > mFileFormat.getMaxTzIdSetIdValue()) { in addRange()
146 + " Max value=" + mFileFormat.getMaxTzIdSetIdValue()); in addRange()
[all …]
H A DHeaderBlockWriter.java43 private final TzS2RangeFileFormat mFileFormat; field in HeaderBlockWriter
48 mFileFormat = fileFormat; in HeaderBlockWriter()
72 tos.writeUnsignedByte(mFileFormat.getS2Level()); in close()
73 tos.writeUnsignedByte(mFileFormat.getPrefixBitCount()); in close()
74 tos.writeUnsignedByte(mFileFormat.getSuffixBitCount()); in close()
75 tos.writeUnsignedByte(mFileFormat.getTableEntryBitCount()); in close()
76 tos.writeUnsignedByte(mFileFormat.getTableEntryRangeLengthBitCount()); in close()
77 tos.writeUnsignedByte(mFileFormat.getSuffixTableBlockIdOffset()); in close()
/aosp12/frameworks/av/media/libmedia/include/media/
H A DMediaProfiles.h258 return mFileFormat; in getFileFormat()
271 mFileFormat(OUTPUT_FORMAT_THREE_GPP), in CamcorderProfile()
276 output_format mFileFormat; member
/aosp12/frameworks/av/media/libmedia/
H A DMediaProfiles.cpp445 profile->mFileFormat = static_cast<output_format>(fileFormat); in createCamcorderProfile()
794 profile->mFileFormat = OUTPUT_FORMAT_THREE_GPP; in createDefaultCamcorderTimeLapseQcifProfile()
812 profile->mFileFormat = OUTPUT_FORMAT_THREE_GPP; in createDefaultCamcorderTimeLapse480pProfile()
849 profile->mFileFormat = OUTPUT_FORMAT_THREE_GPP; in createDefaultCamcorderQcifProfile()
866 profile->mFileFormat = OUTPUT_FORMAT_THREE_GPP; in createDefaultCamcorderCifProfile()
1203 if (!strcmp("file.format", name)) return mCamcorderProfiles[index]->mFileFormat; in getCamcorderProfileParamByName()