402 Commits

Author SHA1 Message Date
Ricky Wai
035e924470 Fix work profile screen timeout policy
Settings screen should apply both primary and managed maximum
timeout policy, even separate profile challenge is enabled.

Bug: 27493348
Change-Id: Ia1ec1cafc7665c54816833af64e0f446a77a55b2
2016-04-07 17:16:03 +01:00
Bill Yi
da92d4881e Import translations. DO NOT MERGE
Change-Id: I856a941ac139b90d05f278db1023b96715211893
Auto-generated-cl: translation import
2016-04-06 05:38:14 -07:00
Sanket Agarwal
a951a593c0 Merge "PBAP connect to alternate device." into nyc-dev 2016-04-05 23:39:20 +00:00
Joseph Pirozzo
c76c857c26 PBAP connect to alternate device.
Fix connect to first disconnect from all connected devices before
attempting to connect to a new device for PBAP Client.

Bug: 28003503
Change-Id: I1299fc146c881f359832dae2da814a4aebbfec59
2016-04-05 14:50:20 -07:00
Bill Yi
f7d28faa04 Merge "Import translations. DO NOT MERGE" into nyc-dev 2016-04-05 03:22:27 +00:00
Bill Yi
de21fce560 Import translations. DO NOT MERGE
Change-Id: I1dc28e766598553596a3abdf05a7781b7b67f4c8
Auto-generated-cl: translation import
2016-04-04 18:01:54 -07:00
Muyuan Li
18d2b32423 SettingsLib: refactor for extensibility.
Add short version of charging / discharging labels. Extended getBatteryInfo method to take in additional flag for short version labels.

Change-Id: I499ce59493f1345c3084d48829ded5117d470e44
(cherry picked from commit e686bf4514d9c1116a4eaa8af285f44613e23b36)
2016-04-04 23:19:29 +00:00
Bill Yi
ba25767b1b Merge "Import translations. DO NOT MERGE" into nyc-dev 2016-03-31 13:23:21 +00:00
Andrei Stingaceanu
aa60469445 Merge "AfW - suspend apps - API polish" into nyc-dev 2016-03-31 10:57:58 +00:00
Bill Yi
77d4d8f90f Import translations. DO NOT MERGE
Change-Id: I59f563780cebed31c23117028a5025e16f37b8ea
Auto-generated-cl: translation import
2016-03-30 22:18:13 -07:00
Sudheer Shanka
d2a968f9c3 Merge "Return null value if getActiveAdminUncheckedLocked returns null." into nyc-dev 2016-03-31 01:14:21 +00:00
Sudheer Shanka
549b969280 Return null value if getActiveAdminUncheckedLocked returns null.
- Split per user version of getUserRestrictions into a separate method
  in DPMS and make the per-user version return null if the admin
  parameter is not a valid one.
- Update isAccessibilityServicePermittedByAdmin and
  isInputMethodPermittedByAdmin to return false if the admin parameter
  is not a valid one.

Bug: 27909087
Change-Id: I6f4cae6552cbfe02dc4a92b04eeeddf0314e0974
2016-03-30 17:12:07 -07:00
Joseph Pirozzo
43b5d980d8 Merge "PBAP client Settings profile." into nyc-dev 2016-03-30 21:00:54 +00:00
Joseph Pirozzo
563c700f70 PBAP client Settings profile.
Add content to Settings and SettingsLib to add a checkbox for PBAP
client profile, and remove the box for PBAP server profile when the
client profile is enabled.

Bug: 27642222
Change-Id: I125559904a8e017a01ae90b1f6425129a87cbee3
2016-03-30 12:20:51 -07:00
Jason Monk
4ea6657d58 Clear out old views when setting new content in settings
Bug: 27529989
Change-Id: Id44ca442c2117bc5df7929bcd79434c0ae23cded
2016-03-30 12:35:29 -04:00
Udam Saini
68dab67de2 Calling setIsDrawerPresent(false) twice causes a crash.
We should only call setDrawerLockMode(...) if mDrawerLayout isn't
null.

bug:26288300
Change-Id: I8a1b77e03414360f9cd7e3fa6e6c98ef0e139ebf
2016-03-29 10:55:01 -07:00
Andrei Stingaceanu
efc4a344a1 AfW - suspend apps - API polish
* renamed getPackageSuspended => isPackageSuspended
* does not return false for an error, instead throws
  NameNotFoundException if the package could not be
  found, or if there is an unknown RemoteException,
  wraps it in a RuntimeException and rethrows.

Bug: 27532430
Bug: 22776761
Change-Id: Iee00600089b1c0556a3312b10456826464fa8f9f
2016-03-29 14:49:21 +00:00
Jason Monk
fd2e0dfc93 Merge "Make sure settings tiles pick up locale changes" into nyc-dev 2016-03-28 14:46:07 +00:00
Jason Monk
ec02e471a6 Make sure settings tiles pick up locale changes
Bug: 27727312
Change-Id: Ic54437805bb264dd8e569ac38673c5ee36b2378a
2016-03-28 10:44:43 -04:00
Geoff Mendal
717bf27e77 Import translations. DO NOT MERGE
Change-Id: I8e62258c3b6d7a4a3a201084410e6420eaf8fbfa
Auto-generated-cl: translation import
2016-03-28 07:26:36 -07:00
Alan Viverette
76ba7186fe Merge "Move DensityUtils into SettingsLib" into nyc-dev 2016-03-25 19:59:39 +00:00
Alan Viverette
8890cfa67f Move DensityUtils into SettingsLib
Bug: 27644685
Change-Id: I24b9e53d9add294eba43b612b30e3c4d6f74c8b5
2016-03-25 14:56:38 -04:00
Joe Onorato
13460a6cba Turn off verbose logs and remove log that is covered by verbose logs.
Bug: 27744135
Change-Id: I436cfd325f87b3b9205d50e92e2a70a50dd33344
2016-03-24 11:32:17 -07:00
Geoff Mendal
d65a05e5f1 Import translations. DO NOT MERGE
Change-Id: I78231875388818087268e1386bdf02165c745f18
Auto-generated-cl: translation import
2016-03-23 07:23:38 -07:00
Tony Mantler
ddba18ecc4 Move hint strings to SettingsLib
b/18246360

Change-Id: I638adcabcbe4bf0e2db7836b87c603bf9abc3763
2016-03-21 14:50:55 -07:00
Geoff Mendal
27a1dc1e22 Import translations. DO NOT MERGE
Change-Id: Iccb009c4e690d42ec7d4b01cc749dae3f691cdc5
Auto-generated-cl: translation import
2016-03-21 07:24:16 -07:00
Geoff Mendal
c4669182ae Import translations. DO NOT MERGE
Change-Id: Ib2a13f397c947838b0c3db6d0cf8d6de18268bea
Auto-generated-cl: translation import
2016-03-19 03:52:30 +01:00
Jason Monk
a2e759d963 Merge "Fix Settings home lifecycle" into nyc-dev 2016-03-17 13:32:20 +00:00
Gustav Sennton
4b187acf9c Merge "Change wording of WebView Implementation invalid-choice Toast." into nyc-dev 2016-03-17 10:53:24 +00:00
Svetoslav Ganov
3084bb8719 Merge "Disallow disabling of the package installer" into nyc-dev 2016-03-16 23:32:26 +00:00
Jason Monk
14ee8d7e17 Fix Settings home lifecycle
Bug: 26268813
Bug: 27330440
Change-Id: I6f5ab4a412b129728db3e8dff134c04272909997
2016-03-16 14:26:24 -04:00
Geoff Mendal
ed893367b9 Import translations. DO NOT MERGE
Change-Id: Iefbda82e967a365520cdf26df0728b8eb425c6a7
Auto-generated-cl: translation import
2016-03-16 07:27:26 -07:00
Sudheer Shanka
2893302afc Call preference.setEnabled only after updating disabledByAdmin state.
We check the value of disabledByAdmin state in setEnabled, so update it
first before calling setEnabled.

Bug: 27642236
Change-Id: Ie6c805b85a3afb87ffdaad0b80dbadc172b62d49
2016-03-14 14:59:52 -07:00
Nick Kralevich
3972507684 fix spelling
Change-Id: I82e64fa8a64be0fbfda748e6b57b5d339fd6f903
2016-03-12 15:00:50 -08:00
Gustav Sennton
ae71ddd154 Change wording of WebView Implementation invalid-choice Toast.
Add more intuitive and compact text for explaining that the chosen
WebView implementation is no longer invalid.

Bug: 27368515, 27424132
Change-Id: Ia0302964ebeecbd8f69eab436a58c8526359ec16
2016-03-10 18:15:23 +00:00
Tony Mantler
79d7e54f70 Merge "Remove redundant twiddling of Settings.Secure.ACCESSIBILITY_ENABLED" into nyc-dev 2016-03-10 16:54:10 +00:00
Sudheer Shanka
91f80006e5 Merge "Use compound drawable instead of image span." into nyc-dev 2016-03-10 15:58:25 +00:00
Sudheer Shanka
0dd17c8406 Merge "Fix description for the string disabled_by_admin." into nyc-dev 2016-03-10 01:05:37 +00:00
Sudheer Shanka
535b4e7eac Fix description for the string disabled_by_admin.
Change-Id: I229891fd6796521fc0b84f5ae5463b8697cf0934
2016-03-09 17:04:15 -08:00
Sudheer Shanka
8d774b752b Minor cleanup in RestrictedPreferenceHelper.setDisabledByAdmin.
Change-Id: I573ea3a0c4565c62d47c4458b7885a8cfbdf31cc
2016-03-09 14:48:19 -08:00
Tony Mantler
d48e0d44f6 Remove redundant twiddling of Settings.Secure.ACCESSIBILITY_ENABLED
This is handled by AccessibilityManagerService now

b/27477156

Change-Id: Ib55d753ec0bd07764780a126be4bb8e4a406d22d
2016-03-09 14:28:25 -08:00
Sudheer Shanka
f271fd5199 Use compound drawable instead of image span.
Bug: 27263531
Change-Id: Id35342c6656cd4b0f4b1756c903e9cf071293a14
2016-03-09 14:21:07 -08:00
Sudheer Shanka
d7061416eb Merge "Minor cleanup in restricted_icon." into nyc-dev 2016-03-09 17:03:38 +00:00
Sudheer Shanka
bc58e3faa1 Merge "Remove unused imports and variables." into nyc-dev 2016-03-09 17:03:33 +00:00
Sudheer Shanka
efbecddcb7 Remove unused imports and variables.
Bug: 27564074
Change-Id: I5eff9f673fe093a9068e94619cfe7eef10c0b4a9
2016-03-09 16:31:49 +00:00
Sudheer Shanka
65c000fd98 Minor cleanup in restricted_icon.
android:gravity doesn't have any effect for ImageView, remove it.

Bug: 27564074

Change-Id: Icb6e5dc2bfeb0b30b2b77cb56fc7439950eadce1
2016-03-09 16:31:28 +00:00
Jason Monk
4628b6c12a Merge "Support updates to the data usage graph" into nyc-dev 2016-03-09 15:40:56 +00:00
Martijn Coenen
502bc4e7a3 Merge "SettingsLib: Always update preference state." into nyc-dev 2016-03-09 10:30:40 +00:00
Sudheer Shanka
e8cd832eea Merge "Remove RestrictedDropDownPreference class." into nyc-dev 2016-03-08 22:58:00 +00:00
Jason Monk
0193a87196 Support updates to the data usage graph
Also make the graph a little bit more smooth.

Bug: 27278313
Change-Id: Ia9ff8a69691671c57cfaf6eb43e373a8386469ea
2016-03-08 16:35:05 -05:00