)]}'
{
  "commit": "be2ec6d958d7be2c798513d2b4cba6c3169e8ec5",
  "tree": "463dca6481805448b00248fd3d0b59949f84ad63",
  "parents": [
    "5358fcde1c601dde6a6dc207adf3d9d441e3af0b"
  ],
  "author": {
    "name": "alukin",
    "email": "alukin@google.com",
    "time": "Wed Aug 16 20:03:40 2023 +0000"
  },
  "committer": {
    "name": "Aleksandr Lukin",
    "email": "alukin@google.com",
    "time": "Tue Aug 22 09:49:57 2023 +0000"
  },
  "message": "Fix StorageStatsService#getTotalBytes\n\nFixing getTotalBytes by calling a new API in Vold.\n\n1. Returned the original implementation of rounding logic.\nNow it only rounds the bytes by increasing the size,\nand never by decreasing.\n2. Returned the original logic for all the device sizes \u003c\u003d 512GB  to\nprevent any potential regressions.\n3. For devices with larger capacities now calling vold (one-time call,\nthen the value is stored in memory) to get the block device size. It\u0027s\na very precise number of bytes, so only doing a small rounding (up to\n3GB) to try to bring the totalBytes to a nice-looking value, otherwise\njust return as is.\n\nShould be tested together with a Settings UI fix: I3dcc9698403612f961cf0de41925dcbcb43e260b\n\nVerified on multiple devices with storage \u003c\u003d 512GB: b/290892417#comment26.\nAlso verified for 1TB devices: personally and in b/295265657#comment10\n\nBug: 290892417\nBug: 295358118\nTest: verified manually + manually verified calling of new API\nTest: atest FileUtilsTest\nTest: atest StorageHostTest\nChange-Id: I01d72ede6c3ac62198d04829866655ba5a92dc45\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "af09a06627955f9df19f5933160783a80bf62da1",
      "old_mode": 33188,
      "old_path": "core/java/android/os/FileUtils.java",
      "new_id": "5b24dcacbf53e04ee66eb81a700a49164a8fe9a3",
      "new_mode": 33188,
      "new_path": "core/java/android/os/FileUtils.java"
    },
    {
      "type": "modify",
      "old_id": "bc52744078ea26f07e44c24169c1c6fa718fc5c5",
      "old_mode": 33188,
      "old_path": "core/java/android/os/storage/IStorageManager.aidl",
      "new_id": "369a1932e437901d0b109d49fe730d8d69956c87",
      "new_mode": 33188,
      "new_path": "core/java/android/os/storage/IStorageManager.aidl"
    },
    {
      "type": "modify",
      "old_id": "80dd48825ba7c02ec6f6426fb4f782c882ec5c83",
      "old_mode": 33188,
      "old_path": "core/java/android/os/storage/StorageManager.java",
      "new_id": "ee387e7c284fc8f8e4c1a7d81d3b1b3b9fa0616b",
      "new_mode": 33188,
      "new_path": "core/java/android/os/storage/StorageManager.java"
    },
    {
      "type": "modify",
      "old_id": "394ff0ae9a2e4b16701ff09002bc297380cb635b",
      "old_mode": 33188,
      "old_path": "core/tests/coretests/src/android/os/FileUtilsTest.java",
      "new_id": "a0d8183b8da7fbfea7082481afaddbe5ff90b88e",
      "new_mode": 33188,
      "new_path": "core/tests/coretests/src/android/os/FileUtilsTest.java"
    },
    {
      "type": "modify",
      "old_id": "73dbb86ae7cc63ec81d44eb587a063d53caa70f2",
      "old_mode": 33188,
      "old_path": "services/core/java/com/android/server/StorageManagerService.java",
      "new_id": "d47573d5276776e02066e44534de002140e9066f",
      "new_mode": 33188,
      "new_path": "services/core/java/com/android/server/StorageManagerService.java"
    },
    {
      "type": "modify",
      "old_id": "0d88a0d485fffd87a981ef28fa5ebd579bb631ff",
      "old_mode": 33188,
      "old_path": "services/usage/java/com/android/server/usage/StorageStatsService.java",
      "new_id": "030615fd7527adac80ae31da916aa1baeb250c90",
      "new_mode": 33188,
      "new_path": "services/usage/java/com/android/server/usage/StorageStatsService.java"
    }
  ]
}
