Home
last modified time | relevance | path

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

/packages/modules/GeoTZ/s2storage/src/test/java/com/android/storage/s2/
DSortedS2RangesTest.java33 int s2Level = 15; in testCreateFromSorted_detectsUnsorted() local
34 S2LevelRange range0 = new S2LevelRange(cellId(s2Level, 1, 1000), in testCreateFromSorted_detectsUnsorted()
35 cellId(s2Level, 1, 1001)); in testCreateFromSorted_detectsUnsorted()
36 S2LevelRange range1 = new S2LevelRange(cellId(s2Level, 1, 1001), in testCreateFromSorted_detectsUnsorted()
37 cellId(s2Level, 1, 1002)); in testCreateFromSorted_detectsUnsorted()
39 () -> SortedS2Ranges.createFromSorted(s2Level, range1, range0)); in testCreateFromSorted_detectsUnsorted()
44 int s2Level = 15; in testCreateFromSorted() local
45 S2LevelRange range0 = new S2LevelRange(cellId(s2Level, 1, 1000), in testCreateFromSorted()
46 cellId(s2Level, 1, 1001)); in testCreateFromSorted()
47 S2LevelRange range1 = new S2LevelRange(cellId(s2Level, 1, 1001), in testCreateFromSorted()
[all …]
/packages/services/Telephony/utils/satellite/s2storage/src/test/java/com/android/telephony/sats2range/
DSatS2RangeFileFormatTest.java34 int s2Level = 12; in accessors() local
41 SatS2RangeFileFormat satS2RangeFileFormat = new SatS2RangeFileFormat(s2Level, in accessors()
45 assertEquals(s2Level, satS2RangeFileFormat.getS2Level()); in accessors()
65 int s2Level = 12; in calculateRangeLength() local
73 SatS2RangeFileFormat satS2RangeFileFormat = new SatS2RangeFileFormat(s2Level, in calculateRangeLength()
78 cellId(s2Level, 0, 0), cellId(s2Level, 0, 2))); in calculateRangeLength()
80 cellId(s2Level, 0, 2), cellId(s2Level, 0, 4))); in calculateRangeLength()
82 int cellsPerFace = intPow2(s2Level * 2); in calculateRangeLength()
85 cellId(s2Level, 0, 2), cellId(s2Level, 1, 4))); in calculateRangeLength()
91 int s2Level = 12; in createCellId() local
[all …]
DSuffixTableSharedDataTest.java134 int s2Level = 12; in createSatS2RangeFileFormat() local
141 return new SatS2RangeFileFormat(s2Level, in createSatS2RangeFileFormat()
/packages/modules/GeoTZ/tzs2storage/src/test/java/com/android/timezone/location/storage/tzs2range/
DTzS2RangeFileFormatTest.java31 int s2Level = 12; in accessors() local
37 TzS2RangeFileFormat tzS2RangeFileFormat = new TzS2RangeFileFormat(s2Level, prefixBitCount, in accessors()
41 assertEquals(s2Level, tzS2RangeFileFormat.getS2Level()); in accessors()
65 int s2Level = 12; in calculateRangeLength() local
71 TzS2RangeFileFormat tzS2RangeFileFormat = new TzS2RangeFileFormat(s2Level, prefixBitCount, in calculateRangeLength()
76 cellId(s2Level, 0, 0), cellId(s2Level, 0, 2))); in calculateRangeLength()
78 cellId(s2Level, 0, 2), cellId(s2Level, 0, 4))); in calculateRangeLength()
80 int cellsPerFace = intPow2(s2Level * 2); in calculateRangeLength()
83 cellId(s2Level, 0, 2), cellId(s2Level, 1, 4))); in calculateRangeLength()
88 int s2Level = 12; in createCellId() local
[all …]
DSuffixTableRangeTest.java45 int s2Level = 12; in equalsAndHashcode() local
46 long startCellId = cellId(s2Level, 5, 1); in equalsAndHashcode()
47 long endCellId = cellId(s2Level, 5, 2); in equalsAndHashcode()
DTzS2RangeTest.java48 int s2Level = 12; in equalsAndHashcode() local
49 long startCellId = cellId(s2Level, 5, 1); in equalsAndHashcode()
50 long endCellId = cellId(s2Level, 5, 2); in equalsAndHashcode()
/packages/modules/GeoTZ/s2storage/src/readonly/java/com/android/storage/s2/
DS2Support.java136 public static long getMaxIndex(int s2Level) { in getMaxIndex() argument
137 checkValidLevel(s2Level); in getMaxIndex()
138 return BitwiseUtils.getLowBitsMask(s2Level * BIT_COUNT_PER_LEVEL); in getMaxIndex()
247 public static long getMinCellId(int s2Level) { in getMinCellId() argument
248 checkValidLevel(s2Level); in getMinCellId()
249 return MIN_CELL_ID[s2Level]; in getMinCellId()
253 public static long getMaxCellId(int s2Level) { in getMaxCellId() argument
254 checkValidLevel(s2Level); in getMaxCellId()
255 return MAX_CELL_ID[s2Level]; in getMaxCellId()
258 private static void checkValidLevel(int s2Level) { in checkValidLevel() argument
[all …]
DSortedS2Ranges.java41 private SortedS2Ranges(int s2Level, List<T> ranges) { in SortedS2Ranges() argument
42 mS2Level = s2Level; in SortedS2Ranges()
53 int s2Level, T... ranges) { in createFromSorted() argument
54 return createFromSorted(s2Level, Arrays.asList(ranges)); in createFromSorted()
64 int s2Level, List<T> ranges) { in createFromSorted() argument
70 if (s2Level != currentRangeLevel) { in createFromSorted()
72 "currentRange=" + currentRange + " is not at level " + s2Level); in createFromSorted()
88 return new SortedS2Ranges<>(s2Level, ranges); in createFromSorted()
DS2CellOrdering.java59 public static long getMinCellIdNumeric(int s2Level) { in getMinCellIdNumeric() argument
60 return MIN_CELL_ID_NUMERIC[s2Level]; in getMinCellIdNumeric()
67 public static long getMaxCellIdNumeric(int s2Level) { in getMaxCellIdNumeric() argument
68 return MAX_CELL_ID_NUMERIC[s2Level]; in getMaxCellIdNumeric()
/packages/modules/GeoTZ/data_pipeline/src/main/java/com/android/timezone/location/data_pipeline/steps/
DTzS2CellUnionsToTzS2Ranges.java66 File inputDir, ExecutorService executorService, File outputDir, int s2Level, in TzS2CellUnionsToTzS2Ranges() argument
71 if (s2Level < 1 || s2Level > S2CellId.MAX_LEVEL) { in TzS2CellUnionsToTzS2Ranges()
72 throw new IllegalArgumentException("Bad S2 level=" + s2Level); in TzS2CellUnionsToTzS2Ranges()
74 this.mS2Level = s2Level; in TzS2CellUnionsToTzS2Ranges()
100 public int s2Level; field in TzS2CellUnionsToTzS2Ranges.Arguments
115 int s2Level = arguments.s2Level; in main() local
122 new TzS2CellUnionsToTzS2Ranges(inputDir, executorService, outputDir, s2Level, in main()
174 private static TzS2Ranges createTzS2Ranges(TzS2CellUnion tzS2CellUnion, int s2Level) { in createTzS2Ranges() argument
189 checkCellIdIsAtLevel(currentS2CellId, s2Level); in createTzS2Ranges()
192 createRangeStartAndEnd(currentS2CellId, s2Level); in createTzS2Ranges()
[all …]
/packages/services/Telephony/utils/satellite/tools/src/main/java/com/android/telephony/tools/sats2/
DSatS2FileCreator.java55 public static void create(String inputFile, int s2Level, boolean isAllowedList, in create() argument
62 System.out.println("Denormalizing S2 Cell IDs to the expected s2 level=" + s2Level); in create()
63 List<Pair<S2CellId, Integer>> sortedS2CellIds = normalize(s2Cells, s2Level); in create()
71 List<SatS2Range> satS2Ranges = createSatS2Ranges(sortedS2CellIds, s2Level); in create()
74 SatS2RangeFileFormat fileFormat = FileFormats.getFileFormatForLevel(s2Level, isAllowedList, in create()
180 List<Pair<Long, Integer>> s2CellNumbers, int s2Level) { in normalize() argument
184 if (s2CellId.level() == s2Level) { in normalize()
188 } else if (s2CellId.level() < s2Level) { in normalize()
189 S2CellId childEnd = s2CellId.childEnd(s2Level); in normalize()
190 for (s2CellId = s2CellId.childBegin(s2Level); !s2CellId.equals(childEnd); in normalize()
[all …]
DFileFormats.java46 public static SatS2RangeFileFormat getFileFormatForLevel(int s2Level, boolean isAllowedList) { in getFileFormatForLevel() argument
47 switch (s2Level) { in getFileFormatForLevel()
55 throw new IllegalArgumentException("s2Level=" + s2Level in getFileFormatForLevel()
61 public static SatS2RangeFileFormat getFileFormatForLevel(int s2Level, boolean isAllowedList, in getFileFormatForLevel() argument
63 SatS2RangeFileFormat fileFormat = getFileFormatForLevel(s2Level, isAllowedList); in getFileFormatForLevel()
DCreateSatS2File.java37 int s2Level = arguments.s2Level; in main() local
43 SatS2FileCreator.create(inputFile, s2Level, isAllowedList, entryValueSizeInBytes, in main()
56 public int s2Level; field in CreateSatS2File.Arguments
DSatS2LocationLookup.java175 private static S2CellId getS2CellId(double latDegrees, double lngDegrees, int s2Level) { in getS2CellId() argument
180 return cellId.parent(s2Level); in getS2CellId()
/packages/services/Telephony/src/com/android/phone/satellite/accesscontrol/
DS2RangeSatelliteOnDeviceAccessController.java52 int s2Level, in S2RangeSatelliteOnDeviceAccessController() argument
55 mS2Level = s2Level; in S2RangeSatelliteOnDeviceAccessController()
75 int s2Level = reader.getS2Level(); in create() local
76 return new S2RangeSatelliteOnDeviceAccessController(reader, s2Level, featureFlags); in create()
80 double latDegrees, double lngDegrees, int s2Level) { in createLocationTokenForLatLng() argument
81 return new LocationTokenImpl(getS2CellId(latDegrees, lngDegrees, s2Level).id()); in createLocationTokenForLatLng()
112 private static S2CellId getS2CellId(double latDegrees, double lngDegrees, int s2Level) { in getS2CellId() argument
117 return cellId.parent(s2Level); in getS2CellId()
DSatelliteOnDeviceAccessController.java55 int s2Level) { in createLocationTokenForLatLng() argument
57 .createLocationTokenForLatLng(latDegrees, lngDegrees, s2Level); in createLocationTokenForLatLng()
DSatelliteAccessController.java1036 int s2Level = satelliteOnDeviceAccessController.getS2Level(); in isS2CellFileValid() local
1037 if (s2Level < MIN_S2_LEVEL || s2Level > MAX_S2_LEVEL) { in isS2CellFileValid()
1038 ploge("isS2CellFileValid: invalid s2 level = " + s2Level); in isS2CellFileValid()
/packages/services/Telephony/tests/src/com/android/phone/satellite/accesscontrol/
DS2RangeSatelliteOnDeviceAccessControllerTest.java119 int s2Level = accessController.getS2Level(); in testSatelliteAccessControl() local
130 s2LatLng.latDegrees(), s2LatLng.lngDegrees(), s2Level); in testSatelliteAccessControl()
150 s2LatLng.latDegrees(), s2LatLng.lngDegrees(), s2Level); in testSatelliteAccessControl()
163 s2LatLng.latDegrees(), s2LatLng.lngDegrees(), s2Level); in testSatelliteAccessControl()
176 s2LatLng.latDegrees(), s2LatLng.lngDegrees(), s2Level); in testSatelliteAccessControl()
189 s2LatLng.latDegrees(), s2LatLng.lngDegrees(), s2Level); in testSatelliteAccessControl()
200 s2LatLng.latDegrees(), s2LatLng.lngDegrees(), s2Level); in testSatelliteAccessControl()
212 s2LatLng.latDegrees(), s2LatLng.lngDegrees(), s2Level); in testSatelliteAccessControl()
225 s2LatLng.latDegrees(), s2LatLng.lngDegrees(), s2Level); in testSatelliteAccessControl()
/packages/services/Telephony/utils/satellite/s2storage/src/readonly/java/com/android/telephony/sats2range/read/
DSatS2RangeFileFormat.java103 public SatS2RangeFileFormat(int s2Level, int prefixBitCount, int suffixBitCount, in SatS2RangeFileFormat() argument
105 this(s2Level, prefixBitCount, suffixBitCount, suffixTableBlockIdOffset, tableEntryBitCount, in SatS2RangeFileFormat()
113 public SatS2RangeFileFormat(int s2Level, int prefixBitCount, int suffixBitCount, in SatS2RangeFileFormat() argument
117 Conditions.checkArgInRange("s2Level", s2Level, 0, MAX_S2_LEVEL); in SatS2RangeFileFormat()
145 if (S2Support.storageBitCountForLevel(s2Level) != prefixBitCount + suffixBitCount) { in SatS2RangeFileFormat()
150 + S2Support.storageBitCountForLevel(s2Level) + ")"); in SatS2RangeFileFormat()
178 mDataS2Level = s2Level; in SatS2RangeFileFormat()
/packages/modules/GeoTZ/tzs2storage/tools/src/java/com/android/timezone/location/tools/tzs2/
DFileFormats.java34 static TzS2RangeFileFormat getFileFormatForLevel(int s2Level) { in getFileFormatForLevel() argument
35 switch (s2Level) { in getFileFormatForLevel()
43 throw new IllegalArgumentException("s2Level=" + s2Level + " not mapped"); in getFileFormatForLevel()
DCreateTzS2File.java50 public int s2Level; field in CreateTzS2File.Arguments
73 int s2Level = arguments.s2Level; in main() local
87 TzS2RangeFileFormat fileFormat = FileFormats.getFileFormatForLevel(s2Level); in main()
/packages/modules/GeoTZ/geotz_lookup/src/main/java/com/android/timezone/location/lookup/
DS2RangeFileBasedGeoTimeZonesFinder.java42 @NonNull TzS2RangeFileReader tzS2RangeFileReader, int s2Level) { in S2RangeFileBasedGeoTimeZonesFinder() argument
44 mS2Level = s2Level; in S2RangeFileBasedGeoTimeZonesFinder()
55 int s2Level = reader.getS2Level(); in create() local
56 return new S2RangeFileBasedGeoTimeZonesFinder(reader, s2Level); in create()
/packages/modules/GeoTZ/tzs2storage/src/readonly/java/com/android/timezone/location/storage/tzs2range/
DTzS2RangeFileFormat.java91 public TzS2RangeFileFormat(int s2Level, int prefixBitCount, int suffixBitCount, in TzS2RangeFileFormat() argument
94 Conditions.checkArgInRange("s2Level", s2Level, 0, MAX_S2_LEVEL); in TzS2RangeFileFormat()
122 if (S2Support.storageBitCountForLevel(s2Level) != prefixBitCount + suffixBitCount) { in TzS2RangeFileFormat()
127 + S2Support.storageBitCountForLevel(s2Level) + ")"); in TzS2RangeFileFormat()
154 mDataS2Level = s2Level; in TzS2RangeFileFormat()
/packages/modules/GeoTZ/data_pipeline/src/test/java/com/android/timezone/location/data_pipeline/steps/tzs2polygons_tzs2cellunions/
DTzS2PolygonsToTzS2CellUnionsTest.java69 final int s2Level = 12; in regressionTest() local
75 "--max-s2-level", Integer.toString(s2Level), in regressionTest()
/packages/modules/GeoTZ/data_pipeline/src/test/java/com/android/timezone/location/data_pipeline/steps/tzs2cellunions_to_tzs2ranges/
DTzS2CellUnionsToTzS2RangesTest.java69 final int s2Level = 16; in regressionTest() local
75 "--s2-level", Integer.toString(s2Level), in regressionTest()