273 Commits

Author SHA1 Message Date
Sudheer Shanka
39cef94f1a Made checkIfkeyguardNotificationFeaturesDisabled more generic.
Currently, it can be only used for checking the status of keyguard
notification features, made it generic so that it can be used for
other keyguard features like disable_fingerprint etc.

Change-Id: Ib2adfc12d7866cce248af78cc8b159cada9a6cad
2016-01-26 22:34:41 +00:00
Sudheer Shanka
6e3e9fc359 Merge "Add util method to get the admin who set maximum time to lock." 2016-01-26 22:29:41 +00:00
Jason Monk
ca7ec8a547 Make suggestions handle string or int
Evidently metadata bundles turn a single int into an integer rather than a
string without telling you.

Change-Id: I5c6557bad51981f27a7e213052e2be5bcc3a0a93
2016-01-26 17:01:00 -05:00
Jason Monk
294efa57ca Updates to SuggestionParser
Added support for feature requirements and return after dismiss delays.

Change-Id: I80e80a55817cd4d9717876e34fc591b3dd3228f1
2016-01-26 14:40:16 -05:00
Jason Monk
37e65a409f Merge "Only show settings drawer on top level items" 2016-01-26 14:46:02 +00:00
Sudheer Shanka
1b92aefaae Merge "Add support for adding preference summary when disabled by admin." 2016-01-26 14:42:04 +00:00
Sudheer Shanka
2d4e09750d Merge "Check for null condition in case there is no DPM support." 2016-01-26 14:29:29 +00:00
Sudheer Shanka
c61087106e Check for null condition in case there is no DPM support.
Change-Id: Ie7c70737d0c36ae9efd1920498d9f07b8a7016b1
2016-01-26 14:00:16 +00:00
Jeremy Klein
0301cd9523 Merge "Expose a simple tethering API which includes provision checks." 2016-01-26 03:59:51 +00:00
Jeremy Klein
36c7aa0325 Expose a simple tethering API which includes provision checks.
This CL exposes startTethering and stopTethering functions which also
encapsulate all provisioning check logic. Right now, only silent checks
are implemented, but UI checks will come in a follow-up CL. GTS tests
and Settings changes are under the same topic ID.

BUG: 26247383
Change-Id: I65f61d899594cb3f9035d8496366af17a57a090f
2016-01-25 16:37:09 -08:00
Sudheer Shanka
1450173034 Add support for adding preference summary when disabled by admin.
Change-Id: I455c3180266734fa4ba6b5bf7cb5fc2f34177759
2016-01-25 22:40:10 +00:00
Sudheer Shanka
45e298f4b9 Add util method to get the admin who set maximum time to lock.
Added util method checkIfMaximumTimeToLockIsSet in RestrictedLockUtils
to get the admin who set maximum time to lock. Also, made a few updates
to the javadocs of other methods.

Change-Id: Ide3048b277f854360aa92d975963b61dff2387bb
2016-01-25 13:00:35 +00:00
Tony Mantler
98608e43eb Move AccessPointPreference to SettingsLib
Change-Id: I4461d5bbe6dd6d78acb8c135150e15e982bb1fab
2016-01-22 14:58:48 -08:00
Jason Monk
946483a69e Only show settings drawer on top level items
Bug: 26080590
Change-Id: Id8d387492e2e1e09fc87f4123bf7c399a2c1380e
2016-01-22 15:19:44 -05:00
Sudheer Shanka
0fa741253d Add a guard against NullPointerException in RestrictedLockUtils.
Change-Id: I1eb7852cf58a4435a2c7627a569ade5f44855bf7
2016-01-21 13:47:51 +00:00
Ruben Brunk
742721389c Fix admin check in Settings.
- This check is broken when there are no Admins on the device.
- Blocks enabling NotificationListenerServices in Settings.

Change-Id: I2c30daf2fc4632d55e84f0e499e3ceedbe162b98
2016-01-21 06:02:32 +00:00
Geoff Mendal
a1f8007d46 Import translations. DO NOT MERGE
Change-Id: Ib8e74713e677b3468159602cf063077357ac1c09
Auto-generated-cl: translation import
2016-01-20 06:11:47 -08:00
Jason Monk
34ac1d6c6f Merge "Support data usage changes in Settings" 2016-01-19 19:03:19 +00:00
Neil Fuller
4370fba554 Merge "Fix for Settings timezone names when boot time is wrong" 2016-01-18 19:01:41 +00:00
Sudheer Shanka
e50cad066e Merge "Add an util method and update setMenuItemAsDisabledByAdmin." 2016-01-18 18:28:55 +00:00
Sudheer Shanka
a8f8fb4f8a Merge "Add extra utility method to RestrictedLockUtils." 2016-01-18 18:00:44 +00:00
Sudheer Shanka
ba4a49800e Merge "Remove spacing when removing padlock and add more util methods." 2016-01-18 17:24:19 +00:00
Sudheer Shanka
20e22960cb Remove spacing when removing padlock and add more util methods.
When adding the padlock, a space is appended to the string which needs
to removed along with the padlock. And added more utility methods in
RestrictedLockUtils.

Change-Id: I33f976db23bfdd39d76c4201be0727bfafb00fd4
2016-01-18 17:16:45 +00:00
Sudheer Shanka
476da95b28 Merge "Check for null values when copying enforcedAdmin in QSTile.State." 2016-01-18 16:11:42 +00:00
Sudheer Shanka
1c09db211c Check for null values when copying enforcedAdmin in QSTile.State.
Bug: 26612685
Change-Id: I8228d1dffc3623d3589b51c6c33f07cc53605ef2
2016-01-18 16:05:10 +00:00
Geoff Mendal
55a24b4b14 Import translations. DO NOT MERGE
Change-Id: I070e73e494d9400f608efaa20a2409e42830001d
Auto-generated-cl: translation import
2016-01-18 06:12:47 -08:00
Jason Monk
f668d7cceb Support data usage changes in Settings
Change-Id: I78c6a3956e7136c3ed64d9323d3fe74df2898c5d
2016-01-16 11:18:59 -05:00
Julia Reynolds
21c30548ba Prevent users from blocking certain system notifications.
Bug: 26575595
Change-Id: I0c890852a441085fffab143a590a12fbd7f2b2a3
2016-01-15 15:00:02 -05:00
Sudheer Shanka
7664cbac35 Add an util method and update setMenuItemAsDisabledByAdmin.
Added an utility method checkIfUninstallBlocked in
RestrictedLockUtils. Also updated setMenuItemAsDisabledByAdmin
to be able to remove the added padlock and color spans.

Change-Id: I7874f7097d09bc9ab127307f2a8a03a20560347c
2016-01-15 15:47:19 +00:00
Sanket Agarwal
1bec6a5b0d Add support for AVRCP 1.3.
* Add metadata support.
* Add player settings support.
* Add playback support.

A2DP Settings App support.

Bluetooth: A2DP Sink support for Settings App

- add support for A2DP Sink in Settings App. This will enable connection
  initiation and updation on Settings App
- add framework Apis to support A2DP Sink. Any third party Apps can access
  A2DP Sink priority of device and playing state of device
- add support for key to set priority. This manages priority of device for
  A2DP Sink profile

Change-Id: If5f9139f37cdb9d200387877c7801075205c78a0
2016-01-14 21:59:33 +00:00
Bartosz Fabianowski
f9bf6da6cd Add WifiConfiguration.shared flag
am: 6fb0756d2f

* commit '6fb0756d2f59d70507919350f6192718b5d3f630':
  Add WifiConfiguration.shared flag
2016-01-14 17:24:52 +00:00
Sudheer Shanka
659133c77b Merge "Made changes to padlock support for preferences." 2016-01-14 16:38:35 +00:00
Sudheer Shanka
ea088af5c1 Made changes to padlock support for preferences.
- Currently, if a preference is disabled by admin, we add a padlock and disable
the preference. And now if the preference is enabled in some other place, the
padlock is not removed. Updated RestrictedPreference to fix this
behavior.
- Made RestrictedPreferenceHelper and
RestrictedPreferenceHelper.onAttachedToHierarchy public so that preferences in
Settings can use these.
- Put a check for null to avoid NullPointerException.
- Removed a redundant statement.

Change-Id: Ie88a761dc38c58a680c62b3703d2081c67462079
2016-01-14 16:25:56 +00:00
Bartosz Fabianowski
6fb0756d2f Add WifiConfiguration.shared flag
* Add boolean WifiConfiguration.shared, which indicates whether a network
  is shared (visible to and usable by all users) or private (visible to
  and usable only by the user who created it)
* Extend WifiConfiguration.configKey(...) so that when two users create
  private configurations for the same network, their configurationKeys
  will be different.
* Make AccessPoint.matches(...) take into account the shared flag

BUG=25600871

Change-Id: I4a4335fa3b4b4f850e16748583a29ab66992ddc8
2016-01-14 17:18:45 +01:00
Sudheer Shanka
f8f858e4ea Merge "Add restricted padlocks to tiles in quick settings." 2016-01-14 16:11:12 +00:00
xinhe
f7705c3ed6 Initial codes for Quality network selection
In this change list, the old WifiAutojoin module is
    refactored initially. The old WifiAutojoinController is
    replaced with a new WifiQualifiedNetworkSelector.
    WifiConfiguration, WifiConfigureStore and
    WifiStateMachine have been modified accordingly. The new
    network selection logic is refactored with a more clear
    and deterministci one. To refer to thedescribed in
    details, in "Quality Network Selection and Connectivity
    Scan Management in N". The link of the document is:
    https://docs.google.com/document/d
    /1JPTa2NEk-PgjCJ16fIrR6ohV-kDKveDlYDOeiMCB2_c

cherry-picked from 8d106780b6a638552749e54e169fc72537d4bccc
and make changes on WiFiConfigurationSerializer.java since
it is not on mm-wireless-dev
Bug:26012244
Change-Id: I44e454544b630b891c9a58a18b5a028edcce580f
2016-01-13 15:06:30 -08:00
Sudheer Shanka
1c7cda8bbf Add restricted padlocks to tiles in quick settings.
Change-Id: Ib11a38f8512b811e5713a33055a04a72f1b825f1
2016-01-13 20:06:35 +00:00
Geoff Mendal
4da11f31c3 Import translations. DO NOT MERGE
Change-Id: If349d6b1bd99c61e78a7076d4c7b506abb7c9ac0
Auto-generated-cl: translation import
2016-01-13 05:55:54 -08:00
xinhe
8d106780b6 Initial codes for Quality network selection [DO NOT MERGE]
In this change list, the old WifiAutojoin module is
    refactored initially. The old WifiAutojoinController is
    replaced with a new WifiQualifiedNetworkSelector.
    WifiConfiguration, WifiConfigureStore and
    WifiStateMachine have been modified accordingly. The new
    network selection logic is refactored with a more clear
    and deterministci one. To refer to thedescribed in
    details, in "Quality Network Selection and Connectivity
    Scan Management in N". The link of the document is:
    https://docs.google.com/document/d
    /1JPTa2NEk-PgjCJ16fIrR6ohV-kDKveDlYDOeiMCB2_c

Bug:26012244

Change-Id: I3df124c110e458e3b6bc29466b9046748d79582a
2016-01-12 16:29:43 -08:00
Sudheer Shanka
9f77a7170a Add extra utility method to RestrictedLockUtils.
Change-Id: I558c975e5b35622cc7a4c1e8a8b16e6492ce983f
2016-01-12 19:38:53 +00:00
Sudheer Shanka
9ec29e3d6d Merge "Move restricted padlock support to SettingsLib" 2016-01-12 18:25:00 +00:00
Gustav Sennton
32895546c6 Merge "More string resources for WebView implementation setting." 2016-01-12 18:14:45 +00:00
Sudheer Shanka
7ff866d286 Move restricted padlock support to SettingsLib
Change-Id: Ib0b1c58d1f45e017b6b17ce0a55ca839b900cba4
2016-01-12 18:14:24 +00:00
Tony Mantler
231c9fd727 Merge "Move a bunch of app restrictions logic to SettingsLib" 2016-01-12 17:17:00 +00:00
Tony Mantler
e662ca6b5e Move a bunch of app restrictions logic to SettingsLib
Change-Id: I68cd6304164744fd0676d13ef6badffac79adab5
2016-01-12 09:16:21 -08:00
Jason Monk
c06fbb1298 Move battery saver notification to QS
Remove the battery saver notification and instead create a detail
panel within QS that allows it to be turned on and off.

Change-Id: I54654d26183586fa171fda04877a840701f8ef33
2016-01-11 14:29:23 -05:00
Geoff Mendal
73ffe1a9d6 Import translations. DO NOT MERGE
Change-Id: I582f2e3659c92e18880ec1970a42dcb4d9e44cfe
Auto-generated-cl: translation import
2016-01-11 05:59:44 -08:00
Jason Monk
f509d7e65a Add suggestions parsing to SettingsLib
Add a parser that will parse an XML of the suggestion categories
and ordering and query those categories into Tiles.

Change-Id: I3154c94e176108358163bbe36feb48e889fe00d1
2016-01-08 09:47:35 -05:00
Gustav Sennton
77cd9021d5 More string resources for WebView implementation setting.
It is not valid for the user to choose a disabled WebView implementation
so if the user does that we prompt them to enable the chosen package. In
this patch we add a string resource for the message prompting the user
to do this.

Bug: 26400585

Change-Id: I112783135c453c324f9178dcdac6bacdd73d33b1
2016-01-07 18:34:51 +00:00
Jeff Sharkey
e06b4d1d9f Consistent naming for PackageManager methods.
When hidden PackageManager methods take a userId argument, they
should be named explicitly with the "AsUser" suffix.  This fixes
several lagging examples so that we can pave the way to safely
start passing flags to new methods without scary overloading.

Also fix spacing issues in various logging statements.

Change-Id: I1e42f7f66427410275df713bea04f6e0445fba28
2016-01-06 15:21:06 -07:00