413 Commits

Author SHA1 Message Date
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
Tony Mantler
a1ae289679 Make AppRestrictionsHelper leanback-aware
Change-Id: I8bc1026a722bbd50e5bc6da0596914fd093c9f86
2016-01-13 11:08:40 -08: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
Geoff Mendal
53453502ca Import translations. DO NOT MERGE
Change-Id: Idd3021ee355626bc12361a252aab329d1d116b24
Auto-generated-cl: translation import
2016-01-06 05:57:10 -08:00
Tony Mantler
4c66048659 Merge "Increase charlimit for select_logd_size_summaries" 2016-01-05 21:08:47 +00:00
Tony Mantler
ea2295c446 Increase charlimit for select_logd_size_summaries
b/26328941
b/26335699

Change-Id: I40d5b745a5794bc63e3cb4c8bfb357164b36265d
2016-01-05 12:53:51 -08:00
Jorim Jaggi
6f2efd3d8c Add developer option for freeform window support (1/2)
Also disable default force-resizable on non-user builds.

Bug: 25276672
Bug: 24815256
Bug: 26294625
Bug: 26294534
Change-Id: I5b31e494c993d2d9dad175b94b4f30637e8f3718
2016-01-05 13:49:59 +01:00
Geoff Mendal
4a5b54fb3b Import translations. DO NOT MERGE
Change-Id: I86141e2b59f4b3fd5adf1beb3a848d2dae49e871
Auto-generated-cl: translation import
2016-01-04 05:53:33 -08:00
Geoff Mendal
4e31a9e688 Import translations. DO NOT MERGE
Change-Id: I8272ade26943091694be6ce0b8d7e8bbbc1e4ac6
Auto-generated-cl: translation import
2015-12-30 06:06:22 -08:00
Mark Salyzyn
6eb1a3e8c6 resolve merge conflicts of 94ab88228e to master.
Bug: 26178938
Change-Id: I1ec3421f4bb501942a0c06032d56cdaf06f56b45
2015-12-28 11:20:24 -08:00
Geoff Mendal
bc97f81d7a Import translations. DO NOT MERGE
Change-Id: I3f6a2f37d640e10ad8ed5d0db0e7a81d4a5e8ef3
Auto-generated-cl: translation import
2015-12-23 05:53:57 -08:00
Geoff Mendal
3f760fc7a1 Import translations. DO NOT MERGE
Change-Id: I172a76921ba1c4825f3f1c550c713800e8ea2fc6
Auto-generated-cl: translation import
2015-12-21 06:00:28 -08:00
Neil Fuller
4a18012a5d Fix for Settings timezone names when boot time is wrong
Avoid the libcore.icu.TimeZoneNames cache for time zone
settings by using ICU4J: it will not use timezone names
that were cached and can be missing / incorrect if the
clock was incorrect at zygote start. Instead, the devices
current time will be used when generating the names.

This change values correctness over performance. ICU does
perform its caching of names so I don't expect any
degredation to be noticeable.

Bug: 20879084
Bug: 26158280
Bug: 21015187
Bug: 26182881
Change-Id: I9f68e3e5232434949468305bbdaf7e697e58da1e
2015-12-17 11:43:29 +00:00