Commit Graph

33387 Commits

Author SHA1 Message Date
Philip Quinn
a9831d40d0 Add settings for the assist gesture.
Availability of the gesture is gated by a new FeatureProvider.

Test: make -j RunSettingsRoboTests; manual test on
      supported/unsupported configurations.

Change-Id: I3529367a73e33370d5112b91d5144293ffa7fa22
2017-02-14 16:45:23 -08:00
TreeHugger Robot
cd79e3a785 Merge "Add logging for settings" 2017-02-14 03:01:32 +00:00
TreeHugger Robot
b88f73a059 Merge "Update char_limit for new string" 2017-02-14 02:21:20 +00:00
TreeHugger Robot
e1b06c9a19 Merge "Deprecate SettingsDrawerActivity.openTile." 2017-02-14 01:55:53 +00:00
Dmitry Dementyev
007d120c47 Merge "Add permission check to Intents used by Authenticator Settings." 2017-02-14 01:27:46 +00:00
Fan Zhang
42aaa53e75 Add logging for settings
- Log when navigating from Settings to injected tiles.
- Log when user creates a new widget shortcut

Fix: 33209678
Fix: 30137094
Test: RunSettingsRoboTests
Change-Id: I1e0f4e00709c392cde2550fafe53890836387c99
2017-02-13 16:57:28 -08:00
Fan Zhang
a516a22239 Update char_limit for new string
Change-Id: I49fc0522a5522bf5dae16d1a2d12e2819eee7a2a
Fix: 35187169
Test: build
2017-02-13 16:44:18 -08:00
Dmitry Dementyev
03e250bb55 Add permission check to Intents used by Authenticator Settings.
Setting shares system uid and can be used to bypass different security
checks.
We add proper handling for intents which resolve toexported=true activities with permission filed.
Added nested preferences filtering.

Change-Id: If68343d155364654fa7db55ace3fb3c4db508c7e
Test: manual tests
Bug: 14408627
2017-02-13 14:54:21 -08:00
Fan Zhang
e2de8d5e6f Fix a bug where SYNC_SETTINGS intent opens a blank page.
Point to the intent to new IA fragment (User & Account)

Change-Id: I3880518f36f875091175432c5e91cfcd7edb42cd
Fix: 34395427
Test: run settings integ test
2017-02-13 14:43:29 -08:00
Fan Zhang
628b3cb76e Deprecate SettingsDrawerActivity.openTile.
Use DashboardFeatureProvider to open tile instead. This makes logic more
centralized in one place, and makes logging easier in the future.

Bug: 30137094
Test: RunSettingsRoboTests
Change-Id: I8a028bb7cac8f70f6c237f253be8668cc3ef257e
2017-02-13 14:41:27 -08:00
TreeHugger Robot
33b0a66aee Merge changes from topic 'hotspot_summary'
* changes:
  Display current vpn for Vpn preference summary text
  Display carrier network name as celluar setting summary.
  Add hotspot summary text
2017-02-13 21:51:11 +00:00
Fan Zhang
0ef0d5006d Display current vpn for Vpn preference summary text
Change-Id: Id9917a07e519d16e2000b4fa9888f783171e55f8
Fix: 34974598
Test: RunSettingsRoboTests
2017-02-13 13:22:48 -08:00
Fan Zhang
333922ac88 Display carrier network name as celluar setting summary.
Bug: 34974598
Test: make RunSettingsRoboTests
Change-Id: I99436337919440e0dd21653f9ea63d6f3a694df0
2017-02-13 13:22:43 -08:00
Fan Zhang
c689d136c1 Add hotspot summary text
Bug: 34974598
Test: RunSettingsLibRoboTests

Change-Id: If5d17bf458f980b4f3a8fdeb4718bbf5d2993a21
2017-02-13 13:18:35 -08:00
TreeHugger Robot
85de8ad126 Merge "Add BatteryMeterView in Settings" 2017-02-13 20:45:17 +00:00
jackqdyulei
51967c0e6a Add BatteryMeterView in Settings
1. Show gauge icon at the top of battery main page instead of
battery usage graph.
2. Move the click action from battery usage graph to gauge icon.

Bug: 34387464
Test: RunSettingsRoboTest

Change-Id: Ib182619d6805b401cde03a50e2ae907cf4df7b94
2017-02-13 11:03:07 -08:00
TreeHugger Robot
65af66f0d8 Merge "Replace deprecated ACTION_MASTER_CLEAR by ACTION_FACTORY_RESET." 2017-02-13 17:46:23 +00:00
Bill Yi
3477a577f3 Import translations. DO NOT MERGE am: da8a98fb26 -s ours
am: daa2d5a23a  -s ours

Change-Id: I08237170e91f978d9f8718fff3df30c6f6be59f3
2017-02-13 17:34:16 +00:00
Bill Yi
daa2d5a23a Import translations. DO NOT MERGE
am: da8a98fb26  -s ours

Change-Id: I111397e147e83c3cc0e8d83d365627792035b238
2017-02-13 17:31:14 +00:00
Lenka Trochtova
3393daccd9 Replace deprecated ACTION_MASTER_CLEAR by ACTION_FACTORY_RESET.
Both do the same, ACTION_FACTORY_RESET is the new name.

Test: manual - reset the device
BUG: 33656232

Change-Id: I30cedea600bfcbeffa5d1094a6e0e83326f7ccfc
2017-02-13 16:02:13 +01:00
Bill Yi
da8a98fb26 Import translations. DO NOT MERGE
Change-Id: Ia85aa9d355617a44a438932f30332cfcbb70842a
Auto-generated-cl: translation import
2017-02-12 23:02:41 -08:00
Bill Yi
2c3d473e3a Import translations. DO NOT MERGE
Change-Id: Ic5485e66425141363f2c338fa41dc94816916eec
Auto-generated-cl: translation import
2017-02-12 22:56:48 -08:00
Fan Zhang
ac3b32932a Merge "Fix a memory leak caused by dashboard freature provider." 2017-02-12 20:52:07 +00:00
Fan Zhang
27ffe047f1 DO NOT MERGE Fix "3 dot" icon size so it displays fully am: fa190d437b
am: 6583bc3479  -s ours

Change-Id: I3f2e6b5aa6d3d86f2cc11fadff1f2d25c29b3612
2017-02-12 01:44:03 +00:00
Fan Zhang
6583bc3479 DO NOT MERGE Fix "3 dot" icon size so it displays fully
am: fa190d437b

Change-Id: I7deb37ac62ff85f37d945d453bd6285a809779f1
2017-02-12 01:42:03 +00:00
TreeHugger Robot
c3136397a0 Merge "Sync search result loaders" 2017-02-12 01:19:15 +00:00
Fan Zhang
d69b443e35 Fix a memory leak caused by dashboard freature provider.
In constructor, use app context instead of fragment context

Change-Id: I24fbc457037c1d6854ecf0cb270110d73effb662
Fix: 35292764
Test: RunSettingsRoboTests
2017-02-11 16:57:31 -08:00
Fan Zhang
fa190d437b DO NOT MERGE Fix "3 dot" icon size so it displays fully
Viewport size was set wrong due to bad merge, causing the last dot got
truncated slightly.

Change-Id: I5d5bbd703e780b21957613d88a2250bc3ba69bb8
Fix: 28194068
Test: visual
2017-02-11 16:00:31 -08:00
Pavlin Radoslavov
d6d92e5e4f Merge "Add null pointer checks when updating A2DP configuration values" am: 6f7437580c am: bd3f96703c am: fae23e1e00
am: 73aa2c6b3f

Change-Id: Iac81cb29671c198414a53c517deb6db962294d0a
2017-02-11 01:34:12 +00:00
Pavlin Radoslavov
73aa2c6b3f Merge "Add null pointer checks when updating A2DP configuration values" am: 6f7437580c am: bd3f96703c
am: fae23e1e00

Change-Id: I55f901bee2b1a7368cf28cf0b2c6a89e8af27342
2017-02-11 01:31:52 +00:00
Pavlin Radoslavov
fae23e1e00 Merge "Add null pointer checks when updating A2DP configuration values" am: 6f7437580c
am: bd3f96703c

Change-Id: I04f7187c23a0f17c5ef2d37f75d892e4da54111e
2017-02-11 01:28:22 +00:00
Pavlin Radoslavov
bd3f96703c Merge "Add null pointer checks when updating A2DP configuration values"
am: 6f7437580c

Change-Id: I567042ca38e74e2ce228e4bb03c73095c8cf6513
2017-02-11 01:25:50 +00:00
Treehugger Robot
6f7437580c Merge "Add null pointer checks when updating A2DP configuration values" 2017-02-11 01:21:26 +00:00
Fan Zhang
1afcfa62c5 Merge "Update storage setting summary text format." 2017-02-10 21:58:34 +00:00
Pavlin Radoslavov
c851f854bb Add null pointer checks when updating A2DP configuration values
Under expected circumstances, those null pointer checks are not
needed: onCreate() is always called before onCreateView(),
and the former creates the objects: mBluetoothSelectA2dpCodec,
mBluetoothSelectA2dpSampleRate, mBluetoothSelectA2dpBitsPerSample,
mBluetoothSelectA2dpChannelMode, mBluetoothSelectA2dpLdacPlaybackQuality .

For some unknown reason, somehow the following chain of calls is executed
before onCreate() :
  onCreateView() ->
  getActivity().registerReceiver(mBluetoothA2dpReceiver, ...) ->
  mBluetoothA2dpReceiver.onReceive(...) ->
  updateBluetoothA2dpConfigurationValues()

Adding the null pointer checks until the issue is understood.

Test: Code compilation
Bug: 35204511
Change-Id: I7c1d81015e66b26544b7b26f36cbc75f11713496
2017-02-10 12:52:04 -08:00
TreeHugger Robot
979cacd777 Merge "Distribute all the hidden items to apps" 2017-02-10 20:10:39 +00:00
Marie Janssen
9241c3ec3c Merge "Remove Bluetooth autoconnect on dock" am: b65c7fc810 am: e7d5b13f53 am: deb32c220b
am: 76405153d1

Change-Id: I5d4283ec0aa65b8faf6a97693dcdb40df353c48a
2017-02-10 18:23:00 +00:00
Marie Janssen
76405153d1 Merge "Remove Bluetooth autoconnect on dock" am: b65c7fc810 am: e7d5b13f53
am: deb32c220b

Change-Id: I9742b1388b6b8702df0459e77414e3eb273115a8
2017-02-10 18:20:28 +00:00
Marie Janssen
deb32c220b Merge "Remove Bluetooth autoconnect on dock" am: b65c7fc810
am: e7d5b13f53

Change-Id: I696af3c6b2c3a2538e93356041c16f9c7149265c
2017-02-10 18:18:00 +00:00
Marie Janssen
e7d5b13f53 Merge "Remove Bluetooth autoconnect on dock"
am: b65c7fc810

Change-Id: Id3cf62ca55ff39867041b495aa832e220fbf70ee
2017-02-10 18:15:28 +00:00
Treehugger Robot
b65c7fc810 Merge "Remove Bluetooth autoconnect on dock" 2017-02-10 18:12:01 +00:00
TreeHugger Robot
765062ac3d Merge "Prompt credentials for installing/deleting sounds" 2017-02-10 18:11:56 +00:00
Matthew Fritze
40ce0fab75 Sync search result loaders
The loaders should be syncronized so the results can be
properly ranked without sudden insertions.

This means InstalledAppsLoader needs to finish faster,
which is accomplished by delaying icon loading to bind time
rather than as the apps are queried.

Bug: 34772522
Test: make RunSettingsRoboTests
Change-Id: I7f5244c574d37c6cfd8bbd0d3d40488f38211be3
2017-02-10 10:10:55 -08:00
Julia Reynolds
c260bcc6df Merge "Link back to app settings from channel page" 2017-02-10 16:05:11 +00:00
Robin Lee
cccf3244b6 Prompt credentials for installing/deleting sounds
Actually we probably want to confirm credentials in all locked cases
not just when starting the user -- fewer corners to special case.

Fix: 34734809
Test: manual. set a work profile lock, screen off/on, open sound settings, try to set a work ringtone. first attempt should prompt for credentials, second attempt should not until next screen-off.
Change-Id: I1fea94f3b0d1b768b22741b887d9891f5e318549
2017-02-10 15:34:53 +00:00
Sooraj Sasindran
cc0fec8ed5 Merge "Provide calling package name in cell info APIs" am: 5c365f9b54 am: f040f78303 -s ours am: 56741e2f41 -s ours
am: 8bf0c2bce9  -s ours

Change-Id: Iccade74b97d0c1869a7c986422970ad6db3df19f
2017-02-10 06:02:08 +00:00
Sooraj Sasindran
8bf0c2bce9 Merge "Provide calling package name in cell info APIs" am: 5c365f9b54 am: f040f78303 -s ours
am: 56741e2f41  -s ours

Change-Id: Icdde072f471c1c5823235cb6608bcfc87b629325
2017-02-10 05:57:31 +00:00
Sooraj Sasindran
56741e2f41 Merge "Provide calling package name in cell info APIs" am: 5c365f9b54
am: f040f78303  -s ours

Change-Id: Ia62560a2bd59edee436ee71338495e45d50b68be
2017-02-10 05:50:27 +00:00
Sooraj Sasindran
f040f78303 Merge "Provide calling package name in cell info APIs"
am: 5c365f9b54

Change-Id: I342921d22c83aadd77b75078f5d5e9191c8b683f
2017-02-10 05:45:18 +00:00
Sooraj Sasindran
5c365f9b54 Merge "Provide calling package name in cell info APIs" 2017-02-10 05:38:41 +00:00