[WifiSetup] Mechanism for suspending auto finish

We have been using forget() to prevent auto-reconnection when the
user hits back to Wifi setup. This has the side effect of forgetting
networks, which is undesirable especially for password protected APs.

The new mechanism keeps a flag on whether the user has selected a
connection. Only auto-advance if the user has picked a network and
there is a valid WiFi connection.

The new EXTRA_REQUIRE_USER_SELECTION can specify whether a user
selection is required initially. That is, whether to auto finish if
the system connected to a network without user input. The default is
false so WiFi can be skipped if the user started setup wizard with
a valid WiFi connection (e.g. after System Update). Note that a user
selection is always required when the user goes back from the next
screen.

Since the new AP dialog does not have a connect button, the SKIP
button in the navigation bar also changes to NEXT when there is a
valid WiFi connection, so the user can hit NEXT if they decided not
to change the network.

Bug: 15333554
Bug: 15999487
Change-Id: I98e935b8e09e470a0c49c44bc299bb2eced98634
Merge "[WifiSetup] Mechanism for suspending auto finish" into lmp-dev
Material fixes for tablets

Remove wireframe Android from pattern screen
Remove tablet specific password entry - we don't have one for PIN, and
the password one looks awful.

Bug: 15328359
Change-Id: I3d73a346166641ab72ecf520f9fbe2ee1379fe8a
Merge "Link WifiAssistant card with actual settings." into lmp-dev
Update Settings to use new UsageStats API

Change-Id: I89740d9b0c21f1ac6aa68feedc7730dd98b244c9
Merge "Fix overdraw and do some layout optimizations" into lmp-dev
Merge "Fix the way we select and apply Themes" into lmp-dev
Merge "Fix Utils.prepareCustomPreferencesList()" into lmp-dev
On factory reset, wipe the stored account challenges

Each time a user adds an account, a challenge gets
stored to the persistent data block service.

If a user factory resets *from Settings*, this is
considered a "secure wipe" and thus we must wipe
the account challenges as well.

No other factory reset mechanism must be permitted
to wipe this data.

Bug: 14288780
Change-Id: Ibe48ccae2d7b5f8d736717a27b7c4f44bed0fba7
Remove unnecessary saved persistent preference

This CL also fixes a bug in
InputMethodAndSubtypeUtil.updateSubtypesPreferenceChecked method that
prevents solving the issue/16115751.

Bug: 16115751
Change-Id: Ib46790172ed539d444fd609a1a97dabb2cb2d2f3
Merge "Remove unnecessary saved persistent preference" into lmp-dev
Remove deprecated locales - DO NOT MERGE

Change-Id: Ibf5ac73ae0784925297180cfec0236687d584fd4
Import translations. DO NOT MERGE

Change-Id: If479170defb29f3874fa320e15acd587560cff4c
Auto-generated-cl: translation import
Fix Settings behavior when disabling current IME

Bug: 16195373
Change-Id: I95d086e152b07e81aece773bc115ac0ac4517392
Merge "Fix Settings behavior when disabling current IME" into lmp-dev
Merge "Remove deprecated locales - DO NOT MERGE" into lmp-dev
Add Screen pinning back to settings

Adds a basic screen for screen pinning (previously lock-to-app) to
settings that describes the feature and allows it to be turned on
and off.

Bug: 16378448
Depends on Ide333463f86310eacb7a1d8b6dc7b1aea8722713 for Settings
constant
Change-Id: Id3ef8471794aa01de20efeb947bed95c50d6b954
Merge "Add Screen pinning back to settings" into lmp-dev
Merge "Fix AppDetails padding on tablet UI" into lmp-dev
Merge "Fix bug #16451628 Settings app crashes for intent: android.settings.ACTION_APP_NOTIFICATION_SETTINGS" into lmp-dev