)]}'
{
  "commit": "e112db8ac61fca2a5a1d1c73b56b2223d93f816a",
  "tree": "ef686a7baa0e46c0ec8b465fab5c5cda2c06201d",
  "parents": [
    "0582bb68ae9184bd14023ee411d71d88bec127fe"
  ],
  "author": {
    "name": "Alejandro Nijamkin",
    "email": "nijamkin@google.com",
    "time": "Thu Sep 15 08:07:14 2022 -0700"
  },
  "committer": {
    "name": "Alejandro Nijamkin",
    "email": "nijamkin@google.com",
    "time": "Wed Sep 21 13:35:34 2022 -0700"
  },
  "message": "Extracts interface from UserSwitcherController.\n\nOur goal with this refactor is to provide a differnt implementation of\nUserSwitcherController that uses modern architecture inside itself. To\nachieve that, we need to be able to provide a new implementation\nalongside the existing implementation and switch between them based on\nour feature flags.\n\nThis CL extracts an interface our of the UserSwitcherController class,\nalso named UserSwitcherController (to minimize changes to downstream\ncustomers of this class) and moves the current implementation to\nUserSwitcherControllerOldImpl.\n\nAs a side-effect, we also had to move the old\nUserSwitcherController.BaseUserAdapter out into its own class,\nBaseUserSwitcherAdapter.\n\nThis CL was done almost entirely automatically using tools provided by\nthe Android Studio IDE. There are no logical changes in this CL at all.\n\nBug: 246631653\nTest: Manually verified that user switcher works properly in\nfull-screen, from quick settings, and from the bouncer.\n\nChange-Id: I383f1bb9147c7afc3047bcf2ad7422b7c6894821\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "818248439d0ab766d1359b640e9c034058d9c202",
      "old_mode": 33188,
      "old_path": "packages/SystemUI/ktfmt_includes.txt",
      "new_id": "9f275afa3765628d5cdc39591d27d497821eabae",
      "new_mode": 33188,
      "new_path": "packages/SystemUI/ktfmt_includes.txt"
    },
    {
      "type": "modify",
      "old_id": "f73c98e4971b2c037f4061b9e164d533eabdaf44",
      "old_mode": 33188,
      "old_path": "packages/SystemUI/src/com/android/keyguard/KeyguardSecurityContainer.java",
      "new_id": "a0cfd41b999fdb4fbc147740b9c08d616fd4d511",
      "new_mode": 33188,
      "new_path": "packages/SystemUI/src/com/android/keyguard/KeyguardSecurityContainer.java"
    },
    {
      "type": "modify",
      "old_id": "0ec4eef1e5516a21b6e56b140e4b478e5dc14339",
      "old_mode": 33188,
      "old_path": "packages/SystemUI/src/com/android/systemui/qs/tiles/UserDetailView.java",
      "new_id": "97476b2d1cdee9c6f40971fb0c26cfa3ea8127e9",
      "new_mode": 33188,
      "new_path": "packages/SystemUI/src/com/android/systemui/qs/tiles/UserDetailView.java"
    },
    {
      "type": "modify",
      "old_id": "4d6168989691a93a8f01e2a7e5b9c103bc88b323",
      "old_mode": 33188,
      "old_path": "packages/SystemUI/src/com/android/systemui/statusbar/phone/MultiUserSwitchController.java",
      "new_id": "00c3e8fac0b4eb9dfd2e21a831aa1771f00ca9ad",
      "new_mode": 33188,
      "new_path": "packages/SystemUI/src/com/android/systemui/statusbar/phone/MultiUserSwitchController.java"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "5b2d69564585b274e4e424d35fb5b511610085a0",
      "new_mode": 33188,
      "new_path": "packages/SystemUI/src/com/android/systemui/statusbar/policy/BaseUserSwitcherAdapter.kt"
    },
    {
      "type": "modify",
      "old_id": "163060814545e88cfa5d2bac12553027a155402b",
      "old_mode": 33188,
      "old_path": "packages/SystemUI/src/com/android/systemui/statusbar/policy/KeyguardQsUserSwitchController.java",
      "new_id": "dc73d1f007c6a92ee9d930c0411c3211a604cbb1",
      "new_mode": 33188,
      "new_path": "packages/SystemUI/src/com/android/systemui/statusbar/policy/KeyguardQsUserSwitchController.java"
    },
    {
      "type": "modify",
      "old_id": "e2f5734cb4f91400ee8ded186004c560b1caf249",
      "old_mode": 33188,
      "old_path": "packages/SystemUI/src/com/android/systemui/statusbar/policy/KeyguardUserSwitcherController.java",
      "new_id": "0995a00533a8c7cbea61aa2f55586ddb33106daf",
      "new_mode": 33188,
      "new_path": "packages/SystemUI/src/com/android/systemui/statusbar/policy/KeyguardUserSwitcherController.java"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "843c2329092c040ce203108b24195af583214f64",
      "new_mode": 33188,
      "new_path": "packages/SystemUI/src/com/android/systemui/statusbar/policy/UserSwitcherController.kt"
    },
    {
      "type": "rename",
      "old_id": "c36abbd4916fdbe9a37fc6bbff5542cf5f2b6365",
      "old_mode": 33188,
      "old_path": "packages/SystemUI/src/com/android/systemui/statusbar/policy/UserSwitcherController.java",
      "new_id": "d365aa6f952d48c3a8363d9e1de152df887c11a2",
      "new_mode": 33188,
      "new_path": "packages/SystemUI/src/com/android/systemui/statusbar/policy/UserSwitcherControllerOldImpl.java",
      "score": 84
    },
    {
      "type": "modify",
      "old_id": "1b7353923adaf1e11009e0f8414d13b4ec2f615a",
      "old_mode": 33188,
      "old_path": "packages/SystemUI/src/com/android/systemui/statusbar/policy/dagger/StatusBarPolicyModule.java",
      "new_id": "5e86b1ff880ab6e0cf6840205ab0bdcf160b3814",
      "new_mode": 33188,
      "new_path": "packages/SystemUI/src/com/android/systemui/statusbar/policy/dagger/StatusBarPolicyModule.java"
    },
    {
      "type": "modify",
      "old_id": "5e2dde6be0462999584a14adab187c0e030eb810",
      "old_mode": 33188,
      "old_path": "packages/SystemUI/src/com/android/systemui/user/UserSwitcherActivity.kt",
      "new_id": "108ab43977e9cc63f08dba9f3da5e8bad25fe940",
      "new_mode": 33188,
      "new_path": "packages/SystemUI/src/com/android/systemui/user/UserSwitcherActivity.kt"
    },
    {
      "type": "modify",
      "old_id": "305b5ee920a168271ef35441a92d58de4f5bd441",
      "old_mode": 33188,
      "old_path": "packages/SystemUI/src/com/android/systemui/user/data/repository/UserRepository.kt",
      "new_id": "035638800f9cf8991c030f7f29ddcac8da70dc38",
      "new_mode": 33188,
      "new_path": "packages/SystemUI/src/com/android/systemui/user/data/repository/UserRepository.kt"
    },
    {
      "type": "rename",
      "old_id": "37c0f3621b6f1cee429833a1e7fde077e6804e74",
      "old_mode": 33188,
      "old_path": "packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/userswitcher/StatusBarUserSwitcherControllerTest.kt",
      "new_id": "bf432388ad28302067725a9b4b06f2f474364106",
      "new_mode": 33188,
      "new_path": "packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/userswitcher/StatusBarUserSwitcherControllerOldImplTest.kt",
      "score": 97
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "f3046477f4d16fbf67be0d89146cd25bcb2a7773",
      "new_mode": 33188,
      "new_path": "packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/BaseUserSwitcherAdapterTest.kt"
    },
    {
      "type": "rename",
      "old_id": "8dcd4bb3b73871085b9314f4b8aeafc514397663",
      "old_mode": 33188,
      "old_path": "packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/UserSwitcherControllerTest.kt",
      "new_id": "76ecc1c7f36da888e596a384423ae537859f4529",
      "new_mode": 33188,
      "new_path": "packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/UserSwitcherControllerOldImplTest.kt",
      "score": 98
    },
    {
      "type": "modify",
      "old_id": "6b466e1ac2d87256c68ac1f65fecd84335bd9996",
      "old_mode": 33188,
      "old_path": "packages/SystemUI/tests/src/com/android/systemui/user/data/repository/UserRepositoryImplTest.kt",
      "new_id": "6fec343d036cccf1b799562104f2822a7ff5e54e",
      "new_mode": 33188,
      "new_path": "packages/SystemUI/tests/src/com/android/systemui/user/data/repository/UserRepositoryImplTest.kt"
    }
  ]
}
