Commit Graph

34096 Commits

Author SHA1 Message Date
Maurice Lam
18d7965a11 Use InstrumentedFragment for EncryptionInterstitial
Since EncryptionInterstitial now uses buttons and not preference list
items, extend InstrumentedFragment rather than
SettingsPreferenceFragment for less overhead.

Test: Run EncryptionInterstitialTest via `am instrument`
Change-Id: Idb56b467ae03a1aff680dbc25d2889dad77f391d
2017-03-22 18:41:46 -07:00
Maurice Lam
9be96e06bb Use buttons for EncryptionInterstitial
Bug: 30742121
Test: Run EncryptionInterstitialTest via `am instrument`
Change-Id: I04d304da4153ebc7f8809ce9c640bccc5e1f5685
2017-03-22 18:37:56 -07:00
TreeHugger Robot
304d7f4455 Merge "Show channel description." 2017-03-22 14:03:58 +00:00
Fan Zhang
3a32ee6132 Move autofill app picker from advanced app to language page
Change-Id: I38979e17e51bda92179ca5b7ba4293677aa18a96
Fix: 36130404
Test: make RunSettingsRoboTests
2017-03-21 17:42:27 -07:00
Fan Zhang
3720e0c4f1 Update system setting page subtext
- Move android version from about phone subtext to system update
- Updates strings for autofill, keyboard & input, factory reset, swipe
  for notification
- Add a new pref category for spell checker and personal dictionary
- Display "None" if any default app is not selected
- Display current keyboard type as language subtext

Bug: 36395109
Test: make RunSettingsRoboTests
Change-Id: Id6ca94ea31e55f1c1ec04e47dcf657a25c35c7fe
2017-03-21 17:40:11 -07:00
TreeHugger Robot
aaa042de4e Merge "Misc search summary text updates." 2017-03-21 23:47:31 +00:00
TreeHugger Robot
34df520fa6 Merge "Update string char limit" 2017-03-21 23:44:32 +00:00
TreeHugger Robot
ca3997d27e Merge changes I54360698,Ic8a3db21
* changes:
  Finish removing N/A DO disclosures from search index
  DO Disclosures: Combine personal and work CA cert
2017-03-21 23:04:08 +00:00
TreeHugger Robot
19449197e6 Merge "Delete the estimated time in battery usage graph" 2017-03-21 22:24:56 +00:00
TreeHugger Robot
bbf6d04006 Merge "Create a way to inject a WifiTracker into WifiSettings." 2017-03-21 22:14:43 +00:00
Fan Zhang
fb562e1078 Update string char limit
Test: builds
Change-Id: I77f6a9da33380e24c50255848e35bfe56b757ec7
Fix: 36410839
2017-03-21 15:14:03 -07:00
Sanket Padawe
c0ec917161 Merge "Update SubscriptionManager API by replacing 'id' & 'idx' with 'index'." 2017-03-21 22:12:56 +00:00
TreeHugger Robot
d59de80a91 Merge "Update activity alias for developer settings activity" 2017-03-21 22:03:35 +00:00
TreeHugger Robot
f38ad51d4e Merge "Fix some animation janks during code start." 2017-03-21 21:57:02 +00:00
Fan Zhang
e05b352758 Misc search summary text updates.
- Remove static text from default app summaries.They will be filled
dynamically at runtime, so we don't need the static ones here.
- Remove summaryOn/summaryOff strings from a few fragments. Search
framework does not need them.

Change-Id: I165766073ba70aceead88c3df02d62f3700e4592
Fix: 36474747
Fix: 34573952
Test: run existing tests
2017-03-21 14:52:40 -07:00
jackqdyulei
3a03b722c6 Delete the estimated time in battery usage graph
Bug: 31012673
Test: RunSettingsRoboTests
Change-Id: Icac85a5fc523b70904e048d17eace30c91fe54ee
2017-03-21 13:39:21 -07:00
Fan Zhang
320d60f0ad Fix some animation janks during code start.
- Create a   summary placeholder for preferences with summary.
- Create a totally empty summary for prefernces without summary.
- For all dynamic prefs that has *no* SummaryLoader, add meta to set
their summary to empty.
- Other dynamic perfs has   as initial summary.

By doing this, all dynamic pref's height is fixed and will not change as
we update summaries, thus eliminating jank during cold start in each
page.

Also removed DashboardAlias for notification preference and default apps as a side fix.

Change-Id: Iec98b7ffef4e920bf573b2244ad04124c1c5d154
Fix: 36414481
Test: make RunSettingsRoboTests
2017-03-21 13:20:18 -07:00
TreeHugger Robot
979b0e6cf5 Merge "Update strings" 2017-03-21 19:37:53 +00:00
Fan Zhang
68d9e2aeaf Update activity alias for developer settings activity
Fix: 36432817
Test: rerun abvt test adb shell am instrument -w -e class
com.android.androidbvt.SysBugReportTests
com.android.androidbvt/android.support.test.runner.AndroidJUnitRunner

Change-Id: I6d45448e83fc25ad9cc77aa0edd979add56e28cf
2017-03-21 12:31:31 -07:00
Sanket Padawe
e96db834fb Update SubscriptionManager API by replacing 'id' & 'idx' with 'index'.
Bug: 35767068
Test: No build failure on update.
Change-Id: Ib7211a9d0c10a717bfd5a7b22b8bea2b3973d12f
2017-03-21 11:24:53 -07:00
Fan Zhang
d39b573aab Update strings
Fix: 36421690
Fix: 36432505
Fix: 36430514
Fix: 36431329
Fix: 36373539

Test: manual
Change-Id: Ia11d5ae340a7d8eef695ebe93d9e7fb50ecc91c0
2017-03-21 10:59:13 -07:00
Bartosz Fabianowski
b076e00c5e Finish 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 switches the remaining PreferenceControllers from setting visibility
to implementing isAvailable() instead.

Bug: 32692748
Test: m RunSettingsRoboTests

Change-Id: I54360698f28b549b18cdc230e3b9087cf4e9ff4a
2017-03-21 15:01:02 +01:00
Bartosz Fabianowski
4a19625286 DO Disclosures: Combine personal and work CA cert
It was decided that rather than having two separate items for CA certs
in the personal and work spaces, we should have just one item that
lists the sum of installed certs.

Bug: 32692748
Test: m RunSettingsRoboTests

Change-Id: Ic8a3db214a07992e3970262c2ce91f3df8a87773
2017-03-21 15:00:53 +01:00
Bartosz Fabianowski
479f32e0ed Remove "Device administration" heading
This heading was meant to go away in the new IA.

Bug: 32692748
Test: m RunSettingsRoboTests

Change-Id: I842673b01f62c2eb5eb51837d2c3d92829ac0ca0
2017-03-21 15:00:42 +01: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
2df0bf9d5c Create a way to inject a WifiTracker into WifiSettings.
Bug: b/36403696
Test: Preliminary step to enable creation of Espresso tests b/36403696
Change-Id: I63c49cca0905a9d05964c11b3307ccf1859db7ec
2017-03-20 19:00:37 -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