)]}'
{
  "commit": "637aae69d587ebba3508c3aff70dd82e3dbbbace",
  "tree": "a470a7e68a721d992f173784a98106044157c14e",
  "parents": [
    "5ef76af1e51cdcc1154c1795646b58411cfb0895"
  ],
  "author": {
    "name": "Ludovic Barman",
    "email": "ludovicb@google.com",
    "time": "Tue Nov 19 16:00:48 2024 +0000"
  },
  "committer": {
    "name": "Ludovic Barman",
    "email": "ludovicb@google.com",
    "time": "Sun Nov 24 09:34:19 2024 +0000"
  },
  "message": "Add helper functions to S2CellIdUtils.\n\nThese methods are required for the density-based coarse location feature.\nThey match the implementation of the S2 lib in google3.\n\nAs per the code owners request, since this lib will now be used both by the altitude module and our coarse locations, it is moved outside of the altitude/ folder, into a new s2/ folder. As a result, four methods have to become public.\n\nFor location coarsening, we add the following methods:\n- In S2CellIdUtils, add a method toLatLngDegrees(s2cellId, latlng) which sets latlng to the center of the cell\n- In S2CellIdUtils, add a method containsLatLng(s2cellId, latlng) -\u003e Boolean\n\nTests:\n- atest FrameworksMockingServicesTests:S2CellIdUtilsTest\n\nNB: as discussed with the code owners, these are non-API changes that shouldn\u0027t be flagged. If need be, it could be gated behind the feature flag for the larger change (see other CLs)\n\nTest: manual atest on Pixel 7 pro (see above)\nBug: 376198890\nFlag: EXEMPT non-AI changes\nChange-Id: If1ec4b05b97e1916ce988264e6110102b60e19a9\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "b9fe804c504cb33880b4b4a1a3ab25787aa34a09",
      "old_mode": 33188,
      "old_path": "location/java/android/location/altitude/AltitudeConverter.java",
      "new_id": "3a4e70dd59501872b4b2c3d318dd2f7d1a51237e",
      "new_mode": 33188,
      "new_path": "location/java/android/location/altitude/AltitudeConverter.java"
    },
    {
      "type": "modify",
      "old_id": "df9ca97817f7d4e2bc447e0c198b69d8683ea684",
      "old_mode": 33188,
      "old_path": "location/java/com/android/internal/location/altitude/GeoidMap.java",
      "new_id": "d77fb9e011b2e8ec323100da5828a3a4d5928685",
      "new_mode": 33188,
      "new_path": "location/java/com/android/internal/location/altitude/GeoidMap.java"
    },
    {
      "type": "rename",
      "old_id": "08bcda41790e1062d9872ab121e8ccf7838f58f0",
      "old_mode": 33188,
      "old_path": "location/java/com/android/internal/location/altitude/S2CellIdUtils.java",
      "new_id": "fbdaf49f260e3fbbc4a51332853d06eed5a095dd",
      "new_mode": 33188,
      "new_path": "location/java/com/android/internal/location/geometry/S2CellIdUtils.java",
      "score": 80
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "9e43b8122cd35c913c42cbad704620233b0248f0",
      "new_mode": 33188,
      "new_path": "services/tests/mockingservicestests/src/com/android/server/location/geometry/S2CellIdUtilsTest.java"
    }
  ]
}
