Commit Graph

34071 Commits

Author SHA1 Message Date
Yohei Yukawa
f6af093e2d Deprecate IMM#showSoftInputUnchecked() part 2
This is the 2nd attempt to have CryptKeeper stop depending on
InputMethodManager#showSoftInputUnchecked() do avoid non-deterministic
behaviors.  Note that the original one [1] was reverted [2] due to
ClassCastException as crypt_keeper_pin_field.xml was not updated to
use ImeAwareEditText.

We have been receiving more and more strange bug reports regarding
the initial IME visibility on CryptKeeper (Bug 31915865, Bug 35198715,
and Bug 36148078).  Most likely we have introduced more bugs before
fixing previous bugs.

As the first step to disentangle multiple problems, this CL addresses
a long standing issue that CryptKeeper relies on @hide internal API
InputMethodManager#showSoftInputUnchecked().  As explained in
Bug 36015425, IMM#showSoftInputUnchecked() is considered harmful in
terms of bypassing standard IME focus handling flows, which prevents
us from taking advantage of historical debugging mechanism that we
have added recently in Bug 35079353.

 [1]: I3cffeec286d9372ff05e85a49b82287cb1add8a2
      4ae46cd1ad
 [2]: I776ad2e6ba0eabacb3d6be6de23ba37fe5ce7bc7
      cf026ead80

Test: Manually verified that Bug 31915865 is still broken but this CL
      does not make it worse.
      1. Flash an image into a non direct-boot device.
      2. Set up a device boot password.
      3. adb reboot
      After the step 3, the software keyboard shows up automatically
      then suddenly disappears (Bug 35198715). Do the same test for
      device boot PIN instead of password.
Bug: 36015425
Change-Id: I182b05d3ff59fb3b4732d60d0d5a464f0e0e0235
2017-03-21 12:38:44 -07:00
Bartosz Fabianowski
e39e8350a1 Finalize strings for enterprise privacy
A few more final string tweaks for the enterprise privacy page.

Bug: 32692748
Test: m RunSettingsRoboTests

Change-Id: Icf91a1188febb303fb1a9e9a5259a06c3b2324da
2017-03-21 11:24:04 +01:00
TreeHugger Robot
7896f10920 Merge "Updating strings for unknown sources settings" 2017-03-21 04:28:17 +00:00
TreeHugger Robot
2219a7725b Merge "Add progress bar and delay to WifiSettings refresh." 2017-03-21 03:27:09 +00:00
Suprabh Shukla
4e3dc4a91d Updating strings for unknown sources settings
Updated strings and removed some obsolete strings that were no longer
used. Removed unusued instance variable in AppStateInstallAppsBridge

Test: Manual

Bug: 36454399
Change-Id: I858bb388f311fd012527500cf35255d191b4dfb7
2017-03-20 19:24:24 -07:00
Sundeep Ghuman
f35a55dee4 Add progress bar and delay to WifiSettings refresh.
This change shows the progress bar for 0.3 seconds before AccessPoints are
about to be refreshed and 1.7 afterwards for a total duration of roughly
2 seconds. This indirectly fixes issues with no longer having a refresh button,
indicates ongoing scanning to the user, and should help avoid user errors where
the user clicks on the wrong access point while the list is being updated.

In order to avoid excess UI movement, the progress bar off state is now set
to invisible rather than gone.

Bug: b/34774783
Test: Currently blocked on refactor, tracked in b/36403635 and will
start next week.
Change-Id: I2bb6b5b3d4611cdbfd7138c758785601896d05b9
2017-03-20 18:59:34 -07:00
Winson Chung
5dea0774f6 Merge "Update picture-in-picture settings to match mocks." 2017-03-21 00:28:58 +00:00
TreeHugger Robot
6922f4cd63 Merge "Disable development settings when the switch bar turns off." 2017-03-21 00:16:38 +00:00
Daniel Nishi
af11138589 Merge "Re-add the progress bar for storage preferences." 2017-03-20 22:54:03 +00:00
Fan Zhang
748649b006 Disable development settings when the switch bar turns off.
Change-Id: Icc9953c95ed4d131231bb6ba95d60b43092a3833
Fix: 29274149
Test: make RunSettingsRoboTests
2017-03-20 15:29:59 -07:00
Marie Janssen
d18020875b Merge "Bluetooth: stop pairing service correctly" am: 4e32e87e57 am: b7c50119e5
am: 912c74e02e

Change-Id: Ib822796906d81baad9a4b731a057b7ae14d7a355
2017-03-20 21:56:37 +00:00
Marie Janssen
912c74e02e Merge "Bluetooth: stop pairing service correctly" am: 4e32e87e57
am: b7c50119e5

Change-Id: I353995584681bd075491c09ae8db25f4223deda7
2017-03-20 21:49:43 +00:00
Marie Janssen
b7c50119e5 Merge "Bluetooth: stop pairing service correctly"
am: 4e32e87e57

Change-Id: Ied66e2bf14771853be46c09b0720c9978d53e3c9
2017-03-20 21:45:41 +00:00
Treehugger Robot
4e32e87e57 Merge "Bluetooth: stop pairing service correctly" 2017-03-20 21:37:37 +00:00
TreeHugger Robot
e0090cc711 Merge "Revert "Use color accent as background color for app info pages."" 2017-03-20 21:02:25 +00:00
TreeHugger Robot
fd6fda7cea Merge "Update strings" 2017-03-20 20:44:41 +00:00
TreeHugger Robot
b70b39c1e3 Merge "Finalize strings for enterprise privacy" 2017-03-20 19:36:44 +00:00
Marie Janssen
d06f49189c Bluetooth: stop pairing service correctly
If BluetoothPairingService was stopped and restarted, it would receive
a null intent, and it also would not signal correctly when it needed to
be stopped.

Since restarts can happen, check that we are still bonding when starting.

Also prevent crashes when we might be called with a null intent.

Test: initiate pairing remotely, adb am kill service, notice no crash
Bug: 36130262
Change-Id: I408811935fdb36591826f4481d103cf4799db27e
2017-03-20 12:23:26 -07:00
Fan Zhang
aa29ba0819 Update strings
Change-Id: Ic497a0a8511e375541da3b2d38e2f2d2b1b94c49
Fix: 27748242
Test: make RunSettingsRoboTests
2017-03-20 12:06:39 -07:00
Doris Ling
6743407475 Revert "Use color accent as background color for app info pages."
This reverts commit b2032416e9.

Change-Id: Ie80e061e6ccecbcf96404c5349ab136da7ca599f
2017-03-20 19:02:42 +00:00
Daniel Nishi
cf0e659a6c Re-add the progress bar for storage preferences.
This re-adds the progress bar and unifies the
StorageItemPreference and its alternate.

Change-Id: Iefc12b4b554306c706c83be232175dd2b84227b7
Fixes: 36223433
Test: Settings robotest
2017-03-20 11:42:46 -07:00
Bartosz Fabianowski
65e18a5778 Finalize strings for enterprise privacy
A few final string tweaks for the enterprise privacy page.

Bug: 32692748
Test: m RunSettingsRoboTests

Change-Id: I7957263e768a588188e98f298eaae25ec77abeca
2017-03-20 19:05:08 +01:00
TreeHugger Robot
9812557561 Merge "Start removing N/A DO disclosures from search index" 2017-03-20 18:03:51 +00:00
Christine Franks
b871045074 Merge "Add color temperature preference to Night Display" 2017-03-20 18:03:45 +00:00
Winson Chung
217d0e9d23 Update picture-in-picture settings to match mocks.
- Removing switches in top-level picture-in-picture settings, adding
  details screen for each app which contains the switch and some
  additional information.

Bug: 35957404
Test: make -j40 RunSettingsRoboTests
Change-Id: Ib22df8a52ab857e071ec43dd3e5d1f5282db35cb
2017-03-20 17:19:30 +00:00
Christine Franks
c53ab43d94 Add color temperature preference to Night Display
Bug: 32463283
Test: make RunSettingsRoboTests
Change-Id: Ibf3cf9af05b44a071603d3d7efa6e90ae00c823a
2017-03-20 15:47:41 +00:00
Denis Kuznetsov
9392681afa This CL updates the DO Disclosures page (aka "Enterprise Privacy")
to make items that shows admin granted permissions actionable.
Item click will result in opening the list of apps for a permission.

Test: make RunSettingsRoboTests
Bug: 32692748

Change-Id: I5f2536b116998810857e379f48a26a1c40055590
2017-03-20 15:52:16 +01:00
Bartosz Fabianowski
5dc168af1a Start removing N/A DO disclosures from search index
DO disclosures referring to actions that the admin did not actually
take are hidden in the UI, but still show up in the search index. This
CL takes the following steps toward fixing this:
* Pass the list of PreferenceControllers to the search indexer
* Make the first two PrefrenceControllers set isAvailable() correctly

There are more disclosures to update, but the difficult work is done
as all others will follow the same pattern.

Bug: 32692748
Test: m RunSettingsRoboTests

Change-Id: I7d3e248b80abe72b79fce7afa11f28a822de6986
2017-03-20 11:01:51 +01:00
TreeHugger Robot
92ae1f2d8e Merge "Import translations. DO NOT MERGE" 2017-03-18 16:33:05 +00:00
Bill Yi
5fce084616 Import translations. DO NOT MERGE
Change-Id: I9fece74d939eeb4c4d0c4a361e425744551f042d
Auto-generated-cl: translation import
2017-03-18 07:27:32 -07:00
Fan Zhang
11d2d68e23 Move developer options related class to development package
Bug: 34203528
Test: none, purely moving classes around
Change-Id: I3cd1d257f948729fda5c04632e7ce9114c40bd0c
2017-03-17 16:51:21 -07:00
Fan Zhang
2907f86971 Fallback to default wallpaper picker if first choice fails
- Add fallback logic in WallpaperSuggestionActivity
- Move some classes around
- Delete some unused class

Change-Id: Ifc8864428647a94f3ecae50d193c2156b2592ff3
Fix: 36140287
Test: make RunSettingsRoboTests
2017-03-17 16:49:58 -07:00
TreeHugger Robot
92c6a45358 Merge "Update string for Settings homepage." 2017-03-17 23:41:13 +00:00
TreeHugger Robot
c9be7e6ba7 Merge "Remove Index.java from old Search and its dependents" 2017-03-17 23:23:50 +00:00
TreeHugger Robot
edec9f1795 Merge changes from topic 'FrictionIcons'
* changes:
  Revert picker icon sizes to 24dp.
  Comment changes from ag/1991360.
  Clean up wifi_friction icon unused states.
  Fix list item spacing for preferences.
2017-03-17 23:06:10 +00:00
Daniel Nishi
c5def491ee Merge "Add borders to the Automatic Storage Management switch." 2017-03-17 22:55:14 +00:00
Daniel Nishi
3788262dac Merge "Size and position the donut." 2017-03-17 22:54:44 +00:00
TreeHugger Robot
c549c2dfd7 Merge "Update strings for Network & internet screen." 2017-03-17 22:29:12 +00:00
Daniel Nishi
47b07cc9c1 Merge changes from topic 'storage-o-strings'
* changes:
  Use total size and not free in Storage summary.
  Add new strings.
2017-03-17 22:03:48 +00:00
William Luh
f2feb70ba6 Merge "Cache the summary and icons for Security Settings injected tiles." 2017-03-17 22:01:39 +00:00
Doris Ling
e2baca1d04 Update string for Settings homepage.
Bug: 36375846
Test: builds
Change-Id: I97723b0a33f0fb04f7f4a0c5911a5d83a60d6014
2017-03-17 14:52:40 -07:00
TreeHugger Robot
1366046e57 Merge "Attemp to fix a concurrent modify exception" 2017-03-17 21:32:34 +00:00
Matthew Fritze
5c83cfa278 Remove Index.java from old Search and its dependents
Test: make RunSettingsRoboTests
Bug: 35763944, 36192909
Change-Id:  If216e1eeb4c29e7372720c6228fa4e99ea2a9904
2017-03-17 14:26:05 -07:00
TreeHugger Robot
7776243765 Merge "Update strings for Apps & notifications screen." 2017-03-17 21:05:25 +00:00
Doris Ling
faf37cdb5a Update strings for Network & internet screen.
Bug: 36296257
Test: builds
Change-Id: I417f6b9fd48725dd827a57f7af78f507fd9578fc
2017-03-17 13:54:44 -07:00
Fan Zhang
7c8f8a0a41 Attemp to fix a concurrent modify exception
Change-Id: I039091d43ba8c378066c26dcca416534d0f52d21
Fix: 36347434
Test: existing tests pass
2017-03-17 12:54:24 -07:00
TreeHugger Robot
a2475114ac Merge "Remove "remove account" from account sync detail page" 2017-03-17 19:49:10 +00:00
Sundeep Ghuman
830e47a2d5 Revert picker icon sizes to 24dp.
Bug: b/36295036
Test: See screenshot in bug
Change-Id: I68af38163d6770e60195b245c38942c3844ead46
2017-03-17 12:44:55 -07:00
Sundeep Ghuman
4d725a7708 Comment changes from ag/1991360.
Bug: NA
Change-Id: I832f4459e8becdc5862c83c2b2efd5cee0d417c9
Test: NA
2017-03-17 12:44:54 -07:00
Sundeep Ghuman
f0293ebb4d Clean up wifi_friction icon unused states.
Bug: 34802842
Test: NA - nonfunctional refactor
Change-Id: I3ad11a8b65bf8ac8aea0a240afa74724d4fb34f3
2017-03-17 12:44:54 -07:00