Home
last modified time | relevance | path

Searched refs:fileFormat (Results 1 – 25 of 36) sorted by relevance

12

/packages/modules/GeoTZ/tzs2storage/src/test/java/com/android/timezone/location/storage/tzs2range/
DSuffixTableBlockTest.java49 TzS2RangeFileFormat fileFormat = createS2RangeFileFormat(); in writer_createPopulatedBlockWriter_noEntriesThrows() local
50 assertEquals(13, fileFormat.getPrefixBitCount()); in writer_createPopulatedBlockWriter_noEntriesThrows()
58 SuffixTableWriter.createPopulated(fileFormat, suffixTableSharedData); in writer_createPopulatedBlockWriter_noEntriesThrows()
64 TzS2RangeFileFormat fileFormat = createS2RangeFileFormat(); in writer_createPopulatedBlockWriter_addRange() local
65 assertEquals(13, fileFormat.getPrefixBitCount()); in writer_createPopulatedBlockWriter_addRange()
66 assertEquals(14, fileFormat.getSuffixBitCount()); in writer_createPopulatedBlockWriter_addRange()
75 SuffixTableWriter.createPopulated(fileFormat, suffixTableSharedData); in writer_createPopulatedBlockWriter_addRange()
77 long invalidStartCellId = fileFormat.createCellId(tablePrefixValue - 1, 0); in writer_createPopulatedBlockWriter_addRange()
78 long validStartCellId = fileFormat.createCellId(tablePrefixValue, 0); in writer_createPopulatedBlockWriter_addRange()
79 long invalidEndCellId = fileFormat.createCellId(tablePrefixValue + 1, maxSuffixValue); in writer_createPopulatedBlockWriter_addRange()
[all …]
DTzS2RangeFileTest.java39 TzS2RangeFileFormat fileFormat; in findEntryByCellId() local
43 fileFormat = tzS2RangeFileWriter.getFileFormat(); in findEntryByCellId()
47 cellId(fileFormat, 1, 1000, 1000), in findEntryByCellId()
48 cellId(fileFormat, 1, 1000, 2000), in findEntryByCellId()
51 cellId(fileFormat, 1, 1000, 2000), in findEntryByCellId()
52 cellId(fileFormat, 1, 1000, 3000), in findEntryByCellId()
56 cellId(fileFormat, 1, 1001, 1000), in findEntryByCellId()
57 cellId(fileFormat, 1, 1001, 2000), in findEntryByCellId()
64 tzS2RangeFileReader.findEntryByCellId(cellId(fileFormat, 1, 1000, 1500)); in findEntryByCellId()
68 tzS2RangeFileReader.findEntryByCellId(cellId(fileFormat, 1, 1000, 2500)); in findEntryByCellId()
[all …]
DSuffixTableExtraInfoTest.java33 TzS2RangeFileFormat fileFormat = createS2RangeFileFormat(); in create_emptyBlock() local
41 SuffixTableExtraInfo extraInfo = SuffixTableExtraInfo.create(fileFormat, blockInfo); in create_emptyBlock()
48 TzS2RangeFileFormat fileFormat = createS2RangeFileFormat(); in create_nonEmptyBlock() local
51 SuffixTableWriter.createPopulated(fileFormat, suffixTableSharedData); in create_nonEmptyBlock()
56 fileFormat.createCellId(tablePrefix, 1000), in create_nonEmptyBlock()
57 fileFormat.createCellId(tablePrefix, 1001), arbitraryTzIdSetId); in create_nonEmptyBlock()
59 fileFormat.createCellId(tablePrefix, 1002), in create_nonEmptyBlock()
60 fileFormat.createCellId(tablePrefix, 1003), arbitraryTzIdSetId); in create_nonEmptyBlock()
62 fileFormat.createCellId(tablePrefix, 1004), in create_nonEmptyBlock()
63 fileFormat.createCellId(tablePrefix, 1005), arbitraryTzIdSetId); in create_nonEmptyBlock()
[all …]
DHeaderBlockTest.java40 TzS2RangeFileFormat fileFormat = createS2RangeFileFormat(); in readWrite() local
43 HeaderBlockWriter headerBlockWriter = HeaderBlockWriter.create(fileFormat); in readWrite()
55 assertEquals(fileFormat, headerBlock.getFileFormat()); in readWrite()
61 TzS2RangeFileFormat fileFormat = createS2RangeFileFormat(); in visit() local
64 HeaderBlockWriter headerBlockWriter = HeaderBlockWriter.create(fileFormat); in visit()
82 inOrder.verify(mockVisitor).visitFileFormat(fileFormat); in visit()
/packages/services/Telephony/utils/satellite/s2storage/src/test/java/com/android/telephony/sats2range/
DSuffixTableBlockTest.java51 SatS2RangeFileFormat fileFormat = TestUtils.createS2RangeFileFormat(true); in writer_createPopulatedBlockWriter_noEntriesThrows() local
52 assertEquals(13, fileFormat.getPrefixBitCount()); in writer_createPopulatedBlockWriter_noEntriesThrows()
58 SuffixTableWriter.createPopulated(fileFormat, suffixTableSharedData); in writer_createPopulatedBlockWriter_noEntriesThrows()
65 SatS2RangeFileFormat fileFormat = TestUtils.createS2RangeFileFormat(true); in writer_createPopulatedBlockWriter_addRange() local
66 assertEquals(13, fileFormat.getPrefixBitCount()); in writer_createPopulatedBlockWriter_addRange()
67 assertEquals(14, fileFormat.getSuffixBitCount()); in writer_createPopulatedBlockWriter_addRange()
74 SuffixTableWriter.createPopulated(fileFormat, suffixTableSharedData); in writer_createPopulatedBlockWriter_addRange()
76 long invalidStartCellId = fileFormat.createCellId(tablePrefixValue - 1, 0); in writer_createPopulatedBlockWriter_addRange()
77 long validStartCellId = fileFormat.createCellId(tablePrefixValue, 0); in writer_createPopulatedBlockWriter_addRange()
78 long invalidEndCellId = fileFormat.createCellId(tablePrefixValue + 1, maxSuffixValue); in writer_createPopulatedBlockWriter_addRange()
[all …]
DSatS2RangeFileReaderTest.java39 SatS2RangeFileFormat fileFormat; in findEntryByCellId() local
44 fileFormat = satS2RangeFileWriter.getFileFormat(); in findEntryByCellId()
48 TestUtils.createCellId(fileFormat, 1, 1000, 1000), in findEntryByCellId()
49 TestUtils.createCellId(fileFormat, 1, 1000, 2000)); in findEntryByCellId()
51 TestUtils.createCellId(fileFormat, 1, 1000, 2000), in findEntryByCellId()
52 TestUtils.createCellId(fileFormat, 1, 1000, 3000)); in findEntryByCellId()
55 TestUtils.createCellId(fileFormat, 1, 1001, 1000), in findEntryByCellId()
56 TestUtils.createCellId(fileFormat, 1, 1001, 2000)); in findEntryByCellId()
69 TestUtils.createCellId(fileFormat, 1, 1000, 1500)); in findEntryByCellId()
73 TestUtils.createCellId(fileFormat, 1, 1000, 2500)); in findEntryByCellId()
[all …]
DSuffixTableExtraInfoTest.java36 SatS2RangeFileFormat fileFormat = TestUtils.createS2RangeFileFormat(true); in create_emptyBlock() local
44 SuffixTableExtraInfo extraInfo = SuffixTableExtraInfo.create(fileFormat, blockInfo); in create_emptyBlock()
51 SatS2RangeFileFormat fileFormat = TestUtils.createS2RangeFileFormat(true); in create_nonEmptyBlock() local
54 SuffixTableWriter.createPopulated(fileFormat, suffixTableSharedData); in create_nonEmptyBlock()
58 fileFormat.createCellId(tablePrefix, 1000), in create_nonEmptyBlock()
59 fileFormat.createCellId(tablePrefix, 1001)); in create_nonEmptyBlock()
61 fileFormat.createCellId(tablePrefix, 1002), in create_nonEmptyBlock()
62 fileFormat.createCellId(tablePrefix, 1003)); in create_nonEmptyBlock()
64 fileFormat.createCellId(tablePrefix, 1004), in create_nonEmptyBlock()
65 fileFormat.createCellId(tablePrefix, 1005)); in create_nonEmptyBlock()
[all …]
DHeaderBlockTest.java38 SatS2RangeFileFormat fileFormat = TestUtils.createS2RangeFileFormat(true); in readWrite() local
41 HeaderBlockWriter headerBlockWriter = HeaderBlockWriter.create(fileFormat); in readWrite()
48 assertEquals(fileFormat, headerBlock.getFileFormat()); in readWrite()
53 SatS2RangeFileFormat fileFormat = TestUtils.createS2RangeFileFormat(true); in visit() local
56 HeaderBlockWriter headerBlockWriter = HeaderBlockWriter.create(fileFormat); in visit()
69 inOrder.verify(mockVisitor).visitFileFormat(fileFormat); in visit()
/packages/services/Telephony/tests/src/com/android/phone/satellite/accesscontrol/
DS2RangeSatelliteOnDeviceAccessControllerTest.java72 SatS2RangeFileFormat fileFormat = null; in testSatelliteAccessControl() local
74 fileFormat = createSatS2File(mFile, isAllowedList); in testSatelliteAccessControl()
86 S2CellId s2CellId = new S2CellId(TestUtils.createCellId(fileFormat, 1, 1000, 999)); in testSatelliteAccessControl()
96 s2CellId = new S2CellId(TestUtils.createCellId(fileFormat, 1, 1000, suffix)); in testSatelliteAccessControl()
107 s2CellId = new S2CellId(TestUtils.createCellId(fileFormat, 1, 1000, 2000)); in testSatelliteAccessControl()
116 s2CellId = new S2CellId(TestUtils.createCellId(fileFormat, 1, 1000, suffix)); in testSatelliteAccessControl()
125 s2CellId = new S2CellId(TestUtils.createCellId(fileFormat, 1, 1000, 3000)); in testSatelliteAccessControl()
133 s2CellId = new S2CellId(TestUtils.createCellId(fileFormat, 1, 1001, 999)); in testSatelliteAccessControl()
142 s2CellId = new S2CellId(TestUtils.createCellId(fileFormat, 1, 1001, suffix)); in testSatelliteAccessControl()
151 s2CellId = new S2CellId(TestUtils.createCellId(fileFormat, 1, 1001, 2000)); in testSatelliteAccessControl()
[all …]
/packages/services/Telephony/utils/satellite/tools/src/main/java/com/android/telephony/tools/sats2/
DCreateTestSatS2File.java37 SatS2RangeFileFormat fileFormat = FileFormats.getFileFormatForLevel(12, true); in main() local
38 if (fileFormat.getPrefixBitCount() != 11) { in main()
43 SatS2RangeFileWriter.open(file, fileFormat)) { in main() argument
46 fileFormat.createCellId(0b100_11111111, 1000), in main()
47 fileFormat.createCellId(0b100_11111111, 2000)); in main()
49 fileFormat.createCellId(0b100_11111111, 2000), in main()
50 fileFormat.createCellId(0b100_11111111, 3000)); in main()
54 fileFormat.createCellId(0b101_11111111, 1000), in main()
55 fileFormat.createCellId(0b101_11111111, 2000)); in main()
/packages/modules/GeoTZ/tzs2storage/tools/src/java/com/android/timezone/location/tools/tzs2/
DCreateTestTzS2File.java37 TzS2RangeFileFormat fileFormat = FileFormats.getFileFormatForLevel(12); in main() local
38 if (fileFormat.getPrefixBitCount() != 11) { in main()
42 try (TzS2RangeFileWriter tzS2RangeFileWriter = TzS2RangeFileWriter.open(file, fileFormat)) { in main() argument
45 fileFormat.createCellId(0b100_11111111, 1000), in main()
46 fileFormat.createCellId(0b100_11111111, 2000), in main()
49 fileFormat.createCellId(0b100_11111111, 2000), in main()
50 fileFormat.createCellId(0b100_11111111, 3000), in main()
55 fileFormat.createCellId(0b101_11111111, 1000), in main()
56 fileFormat.createCellId(0b101_11111111, 2000), in main()
/packages/services/Telephony/utils/satellite/s2storage/src/testutils/java/com/android/telephony/sats2range/testutils/
DTestUtils.java56 SatS2RangeFileFormat fileFormat, int faceId, int otherPrefixBits, int suffixBits) { in createCellId() argument
57 int prefixBitCount = fileFormat.getPrefixBitCount(); in createCellId()
71 int suffixBitCount = fileFormat.getSuffixBitCount(); in createCellId()
77 return fileFormat.createCellId(prefixValue, suffixBits); in createCellId()
106 File outputFile, SatS2RangeFileFormat fileFormat) throws Exception { in createValidTestS2CellFile() argument
110 printer.println(fileFormat.createCellId(0b100_11111111, suffix)); in createValidTestS2CellFile()
115 printer.println(fileFormat.createCellId(0b100_11111111, suffix)); in createValidTestS2CellFile()
120 printer.println(fileFormat.createCellId(0b101_11111111, suffix)); in createValidTestS2CellFile()
122 printer.print(fileFormat.createCellId(0b101_11111111, 2000)); in createValidTestS2CellFile()
130 File outputFile, SatS2RangeFileFormat fileFormat) throws Exception { in createInvalidTestS2CellFile() argument
[all …]
/packages/services/Telephony/utils/satellite/tools/src/test/java/com/android/telephony/tools/sats2/
DCreateSatS2FileTest.java74 SatS2RangeFileFormat fileFormat = FileFormats.getFileFormatForLevel(s2Level, isAllowedList); in testCreateSatS2FileWithInvalidInput() local
75 TestUtils.createInvalidTestS2CellFile(inputFilePath.toFile(), fileFormat); in testCreateSatS2FileWithInvalidInput() local
111 SatS2RangeFileFormat fileFormat = FileFormats.getFileFormatForLevel(s2Level, isAllowedList); in testCreateSatS2FileWithValidInput() local
112 TestUtils.createValidTestS2CellFile(inputFilePath.toFile(), fileFormat); in testCreateSatS2FileWithValidInput() local
140 long s2CellId = fileFormat.createCellId(0b100_11111111, 100); in testCreateSatS2FileWithValidInput()
144 s2CellId = fileFormat.createCellId(0b100_11111111, 2000); in testCreateSatS2FileWithValidInput()
148 s2CellId = fileFormat.createCellId(0b100_11111111, 4000); in testCreateSatS2FileWithValidInput()
152 s2CellId = fileFormat.createCellId(0b101_11111111, 500); in testCreateSatS2FileWithValidInput()
156 s2CellId = fileFormat.createCellId(0b101_11111111, 2500); in testCreateSatS2FileWithValidInput()
160 s2CellId = fileFormat.createCellId(0b101_11111111, 2500); in testCreateSatS2FileWithValidInput()
/packages/services/Telephony/utils/satellite/s2storage/src/readonly/java/com/android/telephony/sats2range/read/
DSuffixTableBlock.java88 private SuffixTableBlock(SatS2RangeFileFormat fileFormat, SuffixTableBlockDelegate delegate) { in SuffixTableBlock() argument
89 mFileFormat = Objects.requireNonNull(fileFormat); in SuffixTableBlock()
99 SatS2RangeFileFormat fileFormat, BlockData blockData) { in createPopulated() argument
104 PopulatedSuffixTableBlock delegate = new PopulatedSuffixTableBlock(fileFormat, packedTable); in createPopulated()
105 return new SuffixTableBlock(fileFormat, delegate); in createPopulated()
112 public static SuffixTableBlock createEmpty(SatS2RangeFileFormat fileFormat, int prefix) { in createEmpty() argument
113 return new SuffixTableBlock(fileFormat, new UnpopulatedSuffixTableBlock(prefix)); in createEmpty()
DSuffixTableExtraInfo.java59 SatS2RangeFileFormat fileFormat, BlockInfo blockInfo) { in create() argument
64 int prefix = blockInfo.getId() - fileFormat.getSuffixTableBlockIdOffset(); in create()
81 fileFormat.getMaxSuffixValue()); in create()
DPopulatedSuffixTableBlock.java59 SatS2RangeFileFormat fileFormat, IntValueTypedPackedTable packedTable) { in PopulatedSuffixTableBlock() argument
60 mFileFormat = Objects.requireNonNull(fileFormat); in PopulatedSuffixTableBlock()
114 S2CellMatcher(SatS2RangeFileFormat fileFormat, int suffixSearchValue) { in S2CellMatcher() argument
115 mFileFormat = Objects.requireNonNull(fileFormat); in S2CellMatcher()
/packages/modules/GeoTZ/tzs2storage/src/readonly/java/com/android/timezone/location/storage/tzs2range/read/
DSuffixTableBlock.java96 private SuffixTableBlock(TzS2RangeFileFormat fileFormat, SuffixTableBlockDelegate delegate) { in SuffixTableBlock() argument
97 mFileFormat = Objects.requireNonNull(fileFormat); in SuffixTableBlock()
107 TzS2RangeFileFormat fileFormat, BlockData blockData) { in createPopulated() argument
112 PopulatedSuffixTableBlock delegate = new PopulatedSuffixTableBlock(fileFormat, packedTable); in createPopulated()
113 return new SuffixTableBlock(fileFormat, delegate); in createPopulated()
120 public static SuffixTableBlock createEmpty(TzS2RangeFileFormat fileFormat, int prefix) { in createEmpty() argument
121 return new SuffixTableBlock(fileFormat, new UnpopulatedSuffixTableBlock(prefix)); in createEmpty()
DSuffixTableExtraInfo.java60 TzS2RangeFileFormat fileFormat, BlockInfo blockInfo) { in create() argument
65 int prefix = blockInfo.getId() - fileFormat.getSuffixTableBlockIdOffset(); in create()
82 fileFormat.getMaxSuffixValue()); in create()
DPopulatedSuffixTableBlock.java67 TzS2RangeFileFormat fileFormat, IntValueTypedPackedTable packedTable) { in PopulatedSuffixTableBlock() argument
68 mFileFormat = Objects.requireNonNull(fileFormat); in PopulatedSuffixTableBlock()
127 S2CellMatcher(TzS2RangeFileFormat fileFormat, int suffixSearchValue) { in S2CellMatcher() argument
128 mFileFormat = Objects.requireNonNull(fileFormat); in S2CellMatcher()
/packages/services/Telephony/utils/satellite/s2storage/src/write/java/com/android/telephony/sats2range/write/
DSuffixTableWriter.java59 private SuffixTableWriter(SatS2RangeFileFormat fileFormat, SuffixTableSharedData sharedData) in SuffixTableWriter() argument
61 mFileFormat = fileFormat; in SuffixTableWriter()
64 int keySizeBits = fileFormat.getSuffixBitCount(); in SuffixTableWriter()
65 int entrySizeByteCount = fileFormat.getTableEntryByteCount(); in SuffixTableWriter()
82 SatS2RangeFileFormat fileFormat, SuffixTableSharedData sharedData) throws IOException { in createPopulated() argument
83 return new SuffixTableWriter(fileFormat, sharedData); in createPopulated()
DHeaderBlockWriter.java43 private HeaderBlockWriter(SatS2RangeFileFormat fileFormat, File file) { in HeaderBlockWriter() argument
44 mFileFormat = fileFormat; in HeaderBlockWriter()
49 public static HeaderBlockWriter create(SatS2RangeFileFormat fileFormat) throws IOException { in create() argument
50 return new HeaderBlockWriter(fileFormat, File.createTempFile("header", ".bin")); in create()
DSatS2RangeFileWriter.java46 private SatS2RangeFileWriter(SatS2RangeFileFormat fileFormat, BlockFileWriter blockFileWriter) in SatS2RangeFileWriter() argument
49 mFileFormat = fileFormat; in SatS2RangeFileWriter()
51 mHeaderBlockWriter = HeaderBlockWriter.create(fileFormat); in SatS2RangeFileWriter()
55 public static SatS2RangeFileWriter open(File outFile, SatS2RangeFileFormat fileFormat) in open() argument
59 return new SatS2RangeFileWriter(fileFormat, writer); in open()
/packages/modules/GeoTZ/tzs2storage/src/write/java/com/android/timezone/location/storage/tzs2range/write/
DSuffixTableWriter.java59 private SuffixTableWriter(TzS2RangeFileFormat fileFormat, SuffixTableSharedData sharedData) in SuffixTableWriter() argument
61 mFileFormat = fileFormat; in SuffixTableWriter()
64 int keySizeBits = fileFormat.getSuffixBitCount(); in SuffixTableWriter()
65 int entrySizeByteCount = fileFormat.getTableEntryByteCount(); in SuffixTableWriter()
82 TzS2RangeFileFormat fileFormat, SuffixTableSharedData sharedData) throws IOException { in createPopulated() argument
83 return new SuffixTableWriter(fileFormat, sharedData); in createPopulated()
DHeaderBlockWriter.java47 private HeaderBlockWriter(TzS2RangeFileFormat fileFormat, File file) { in HeaderBlockWriter() argument
48 mFileFormat = fileFormat; in HeaderBlockWriter()
49 mBankedTzIdSetsPacker = new BankedTzIdSetsPacker(fileFormat.getMaxTzIdSetIdValue() + 1); in HeaderBlockWriter()
54 public static HeaderBlockWriter create(TzS2RangeFileFormat fileFormat) throws IOException { in create() argument
55 return new HeaderBlockWriter(fileFormat, File.createTempFile("header", ".bin")); in create()
DTzS2RangeFileWriter.java49 private TzS2RangeFileWriter(TzS2RangeFileFormat fileFormat, BlockFileWriter blockFileWriter) in TzS2RangeFileWriter() argument
52 mFileFormat = fileFormat; in TzS2RangeFileWriter()
54 mHeaderBlockWriter = HeaderBlockWriter.create(fileFormat); in TzS2RangeFileWriter()
59 public static TzS2RangeFileWriter open(File outFile, TzS2RangeFileFormat fileFormat) in open() argument
63 return new TzS2RangeFileWriter(fileFormat, writer); in open()

12