/packages/modules/GeoTZ/s2storage/src/test/java/com/android/storage/s2/ |
D | SortedS2RangesTest.java | 33 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/modules/GeoTZ/tzs2storage/src/test/java/com/android/timezone/location/storage/tzs2range/ |
D | TzS2RangeFileFormatTest.java | 31 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 …]
|
D | SuffixTableRangeTest.java | 45 int s2Level = 12; in equalsAndHashcode() local 46 long startCellId = cellId(s2Level, 5, 1); in equalsAndHashcode() 47 long endCellId = cellId(s2Level, 5, 2); in equalsAndHashcode()
|
D | TzS2RangeTest.java | 48 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/services/Telephony/utils/satellite/s2storage/src/test/java/com/android/telephony/sats2range/ |
D | SatS2RangeFileFormatTest.java | 34 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 71 SatS2RangeFileFormat satS2RangeFileFormat = new SatS2RangeFileFormat(s2Level, 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() 89 int s2Level = 12; in createCellId() local [all …]
|
/packages/modules/GeoTZ/s2storage/src/readonly/java/com/android/storage/s2/ |
D | S2Support.java | 136 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 …]
|
D | SortedS2Ranges.java | 41 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()
|
D | S2CellOrdering.java | 59 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/services/Telephony/utils/satellite/tools/src/main/java/com/android/telephony/tools/sats2/ |
D | SatS2FileCreator.java | 54 public static void create(String inputFile, int s2Level, boolean isAllowedList, in create() argument 61 System.out.println("Denormalizing S2 Cell IDs to the expected s2 level=" + s2Level); in create() 62 List<S2CellId> sortedS2CellIds = denormalize(s2Cells, s2Level); in create() 69 List<SatS2Range> satS2Ranges = createSatS2Ranges(sortedS2CellIds, s2Level); in create() 73 FileFormats.getFileFormatForLevel(s2Level, isAllowedList); in create() 159 private static List<S2CellId> denormalize(List<Long> s2CellNumbers, int s2Level) { in denormalize() argument 163 if (s2CellId.level() == s2Level) { in denormalize() 167 } else if (s2CellId.level() < s2Level) { in denormalize() 168 S2CellId childEnd = s2CellId.childEnd(s2Level); in denormalize() 169 for (s2CellId = s2CellId.childBegin(s2Level); !s2CellId.equals(childEnd); in denormalize() [all …]
|
D | CreateSatS2File.java | 37 int s2Level = arguments.s2Level; in main() local 40 SatS2FileCreator.create(inputFile, s2Level, isAllowedList, outputFile); in main() 52 public int s2Level; field in CreateSatS2File.Arguments
|
D | FileFormats.java | 46 public static SatS2RangeFileFormat getFileFormatForLevel(int s2Level, boolean isAllowedList) { in getFileFormatForLevel() argument 47 switch (s2Level) { in getFileFormatForLevel() 55 throw new IllegalArgumentException("s2Level=" + s2Level in getFileFormatForLevel()
|
D | SatS2LocationLookup.java | 53 private static S2CellId getS2CellId(double latDegrees, double lngDegrees, int s2Level) { in getS2CellId() argument 58 return cellId.parent(s2Level); in getS2CellId()
|
/packages/modules/GeoTZ/data_pipeline/src/main/java/com/android/timezone/location/data_pipeline/steps/ |
D | TzS2CellUnionsToTzS2Ranges.java | 66 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/src/com/android/phone/satellite/accesscontrol/ |
D | S2RangeSatelliteOnDeviceAccessController.java | 44 @NonNull SatS2RangeFileReader satS2RangeFileReader, int s2Level) { in S2RangeSatelliteOnDeviceAccessController() argument 46 mS2Level = s2Level; in S2RangeSatelliteOnDeviceAccessController() 62 int s2Level = reader.getS2Level(); in create() local 63 return new S2RangeSatelliteOnDeviceAccessController(reader, s2Level); in create() 67 double latDegrees, double lngDegrees, int s2Level) { in createLocationTokenForLatLng() argument 68 return new LocationTokenImpl(getS2CellId(latDegrees, lngDegrees, s2Level).id()); in createLocationTokenForLatLng() 99 private static S2CellId getS2CellId(double latDegrees, double lngDegrees, int s2Level) { in getS2CellId() argument 104 return cellId.parent(s2Level); in getS2CellId()
|
D | SatelliteOnDeviceAccessController.java | 50 int s2Level) { in createLocationTokenForLatLng() argument 52 .createLocationTokenForLatLng(latDegrees, lngDegrees, s2Level); in createLocationTokenForLatLng()
|
D | SatelliteAccessController.java | 541 int s2Level = satelliteOnDeviceAccessController.getS2Level(); in isS2CellFileValid() local 542 if (s2Level < MIN_S2_LEVEL || s2Level > MAX_S2_LEVEL) { in isS2CellFileValid() 543 ploge("isS2CellFileValid: invalid s2 level = " + s2Level); in isS2CellFileValid()
|
/packages/services/Telephony/tests/src/com/android/phone/satellite/accesscontrol/ |
D | S2RangeSatelliteOnDeviceAccessControllerTest.java | 83 int s2Level = accessController.getS2Level(); in testSatelliteAccessControl() local 90 s2LatLng.latDegrees(), s2LatLng.lngDegrees(), s2Level); in testSatelliteAccessControl() 101 s2LatLng.latDegrees(), s2LatLng.lngDegrees(), s2Level); in testSatelliteAccessControl() 110 s2LatLng.latDegrees(), s2LatLng.lngDegrees(), s2Level); in testSatelliteAccessControl() 119 s2LatLng.latDegrees(), s2LatLng.lngDegrees(), s2Level); in testSatelliteAccessControl() 128 s2LatLng.latDegrees(), s2LatLng.lngDegrees(), s2Level); in testSatelliteAccessControl() 136 s2LatLng.latDegrees(), s2LatLng.lngDegrees(), s2Level); in testSatelliteAccessControl() 145 s2LatLng.latDegrees(), s2LatLng.lngDegrees(), s2Level); in testSatelliteAccessControl() 154 s2LatLng.latDegrees(), s2LatLng.lngDegrees(), s2Level); in testSatelliteAccessControl()
|
/packages/services/Telephony/utils/satellite/tools/src/test/java/com/android/telephony/tools/sats2/ |
D | CreateSatS2FileTest.java | 63 int s2Level = 12; in testCreateSatS2FileWithInvalidInput() local 74 SatS2RangeFileFormat fileFormat = FileFormats.getFileFormatForLevel(s2Level, isAllowedList); in testCreateSatS2FileWithInvalidInput() 80 "--s2-level", String.valueOf(s2Level), in testCreateSatS2FileWithInvalidInput() 96 int s2Level = 12; in testCreateSatS2FileWithValidInput() local 111 SatS2RangeFileFormat fileFormat = FileFormats.getFileFormatForLevel(s2Level, isAllowedList); in testCreateSatS2FileWithValidInput() 117 "--s2-level", String.valueOf(s2Level), in testCreateSatS2FileWithValidInput()
|
/packages/modules/GeoTZ/tzs2storage/tools/src/java/com/android/timezone/location/tools/tzs2/ |
D | FileFormats.java | 34 static TzS2RangeFileFormat getFileFormatForLevel(int s2Level) { in getFileFormatForLevel() argument 35 switch (s2Level) { in getFileFormatForLevel() 43 throw new IllegalArgumentException("s2Level=" + s2Level + " not mapped"); in getFileFormatForLevel()
|
D | CreateTzS2File.java | 50 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/ |
D | S2RangeFileBasedGeoTimeZonesFinder.java | 42 @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/services/Telephony/utils/satellite/s2storage/src/readonly/java/com/android/telephony/sats2range/read/ |
D | SatS2RangeFileFormat.java | 93 public SatS2RangeFileFormat(int s2Level, int prefixBitCount, int suffixBitCount, in SatS2RangeFileFormat() argument 96 Conditions.checkArgInRange("s2Level", s2Level, 0, MAX_S2_LEVEL); in SatS2RangeFileFormat() 124 if (S2Support.storageBitCountForLevel(s2Level) != prefixBitCount + suffixBitCount) { in SatS2RangeFileFormat() 129 + S2Support.storageBitCountForLevel(s2Level) + ")"); in SatS2RangeFileFormat() 157 mDataS2Level = s2Level; in SatS2RangeFileFormat()
|
/packages/modules/GeoTZ/tzs2storage/src/readonly/java/com/android/timezone/location/storage/tzs2range/ |
D | TzS2RangeFileFormat.java | 91 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/ |
D | TzS2PolygonsToTzS2CellUnionsTest.java | 69 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/ |
D | TzS2CellUnionsToTzS2RangesTest.java | 69 final int s2Level = 16; in regressionTest() local 75 "--s2-level", Integer.toString(s2Level), in regressionTest()
|