From 16258e3e98e0e648840171727f321fd9436a548d Mon Sep 17 00:00:00 2001 From: Erin Yan Date: Wed, 14 Aug 2019 12:03:12 -0700 Subject: [PATCH] Create dialog to show detecting Batmobile device & unlocking Bug: 136049501 Test: Manually on IHU Change-Id: I47b55e3032c814623aa5bf5c5c3ec1899c03e98e --- packages/CarSystemUI/AndroidManifest.xml | 4 + .../res/drawable/unlock_dialog_background.xml | 26 ++ .../res/layout/trust_agent_unlock_dialog.xml | 72 ++++++ .../CarSystemUI/res/values/colors_car.xml | 5 + .../CarSystemUI/res/values/dimens_car.xml | 6 + .../CarSystemUI/res/values/integers_car.xml | 2 + .../CarSystemUI/res/values/strings_car.xml | 15 ++ packages/CarSystemUI/res/values/styles.xml | 8 + .../systemui/statusbar/car/CarStatusBar.java | 7 +- .../car/CarTrustAgentUnlockDialogHelper.java | 240 ++++++++++++++++++ .../statusbar/car/FullscreenUserSwitcher.java | 114 ++++++++- 11 files changed, 489 insertions(+), 10 deletions(-) create mode 100644 packages/CarSystemUI/res/drawable/unlock_dialog_background.xml create mode 100644 packages/CarSystemUI/res/layout/trust_agent_unlock_dialog.xml create mode 100644 packages/CarSystemUI/src/com/android/systemui/statusbar/car/CarTrustAgentUnlockDialogHelper.java diff --git a/packages/CarSystemUI/AndroidManifest.xml b/packages/CarSystemUI/AndroidManifest.xml index 195d4fee51627..261b9f508ccd6 100644 --- a/packages/CarSystemUI/AndroidManifest.xml +++ b/packages/CarSystemUI/AndroidManifest.xml @@ -21,4 +21,8 @@ coreApp="true"> + + + + diff --git a/packages/CarSystemUI/res/drawable/unlock_dialog_background.xml b/packages/CarSystemUI/res/drawable/unlock_dialog_background.xml new file mode 100644 index 0000000000000..bec6ba7b7c4fc --- /dev/null +++ b/packages/CarSystemUI/res/drawable/unlock_dialog_background.xml @@ -0,0 +1,26 @@ + + + + + + + \ No newline at end of file diff --git a/packages/CarSystemUI/res/layout/trust_agent_unlock_dialog.xml b/packages/CarSystemUI/res/layout/trust_agent_unlock_dialog.xml new file mode 100644 index 0000000000000..2d9901c30d024 --- /dev/null +++ b/packages/CarSystemUI/res/layout/trust_agent_unlock_dialog.xml @@ -0,0 +1,72 @@ + + + + + + + + + + + + + + + +