OSDN Git Service

android-x86/packages-apps-Settings.git
7 years agoAdd summary to special app access.
Doris Ling [Tue, 11 Apr 2017 22:35:49 +0000 (15:35 -0700)]
Add summary to special app access.

Get the count of apps that has unrestricted data access and add that to
the summary for Apps & notifications -> Special app access.

Bug: 36376411
Test: make RunSettingsRoboTests
Change-Id: Id80a030e1e066f1391f94114f478091a2a87fcd8

7 years agoMerge "Turn off QUIET_MODE before changing unified lock credential." into oc-dev
Charles He [Wed, 26 Apr 2017 13:29:42 +0000 (13:29 +0000)]
Merge "Turn off QUIET_MODE before changing unified lock credential." into oc-dev

7 years agoMerge "Add search index provider for ConfigureNotificationSettings" into oc-dev
TreeHugger Robot [Wed, 26 Apr 2017 00:06:41 +0000 (00:06 +0000)]
Merge "Add search index provider for ConfigureNotificationSettings" into oc-dev

7 years agoMerge "Don't shows Files when storage is adopted." into oc-dev
Daniel Nishi [Tue, 25 Apr 2017 22:30:29 +0000 (22:30 +0000)]
Merge "Don't shows Files when storage is adopted." into oc-dev

7 years agoMerge "Don't crash on opening ejecting USB." into oc-dev
Daniel Nishi [Tue, 25 Apr 2017 22:30:13 +0000 (22:30 +0000)]
Merge "Don't crash on opening ejecting USB." into oc-dev

7 years agoMerge "Implemented ACTION_REQUEST_SET_AUTOFILL_SERVICE." into oc-dev
TreeHugger Robot [Tue, 25 Apr 2017 22:27:08 +0000 (22:27 +0000)]
Merge "Implemented ACTION_REQUEST_SET_AUTOFILL_SERVICE." into oc-dev

7 years agoMerge "'Allow sound' = let the app decide" into oc-dev
TreeHugger Robot [Tue, 25 Apr 2017 21:45:19 +0000 (21:45 +0000)]
Merge "'Allow sound' = let the app decide" into oc-dev

7 years agoMerge "Distribute the misc among all the apps" into oc-dev
TreeHugger Robot [Tue, 25 Apr 2017 21:44:54 +0000 (21:44 +0000)]
Merge "Distribute the misc among all the apps" into oc-dev

7 years agoMerge "Move battery stats loading to AsyncLoader." into oc-dev
TreeHugger Robot [Tue, 25 Apr 2017 21:44:05 +0000 (21:44 +0000)]
Merge "Move battery stats loading to AsyncLoader." into oc-dev

7 years agoImplemented ACTION_REQUEST_SET_AUTOFILL_SERVICE.
Felipe Leme [Tue, 25 Apr 2017 01:10:09 +0000 (18:10 -0700)]
Implemented ACTION_REQUEST_SET_AUTOFILL_SERVICE.

Bug: 37673809
Fixes: 37576671
Test: manual verification
Test: make RunSettingsRoboTests -j90

Change-Id: I36170cb715473dfbf598deedd9719a46168aabc8

7 years agoMove battery stats loading to AsyncLoader.
jackqdyulei [Thu, 13 Apr 2017 18:44:42 +0000 (11:44 -0700)]
Move battery stats loading to AsyncLoader.

It takes 3-4 seconds to load the battery settings page in Ryu. Main
reason is that it takes too long to init BatteryStatsHelper.

This cl moves loading code to AsyncLoader, and we will refresh ui once
the loading part is finished.

Following cl will add animation for the battery header to make it not
so janky

Bug: 37196170
Test: RunSettingsRoboTest
Change-Id: I40dfdde4a072e28a56c8fdf0ec6d671b5109fc6d

7 years agoMerge changes I4ae01109,Ib45289c3 into oc-dev
TreeHugger Robot [Tue, 25 Apr 2017 20:16:19 +0000 (20:16 +0000)]
Merge changes I4ae01109,Ib45289c3 into oc-dev

* changes:
  Remove shadow below app info header.
  Fix ANR in installed app details.

7 years agoAdd search index provider for ConfigureNotificationSettings
Fan Zhang [Tue, 25 Apr 2017 19:45:35 +0000 (12:45 -0700)]
Add search index provider for ConfigureNotificationSettings

Change-Id: I1da8e318a8823ffe54b2edd7a83a8c7e31ee34e6
Fix: 37593839
Test: make RunSettingsRoboTests

7 years agoMerge "Add searchable index for Bluetooth and Nfc only if the feature exists" into...
TreeHugger Robot [Tue, 25 Apr 2017 19:05:42 +0000 (19:05 +0000)]
Merge "Add searchable index for Bluetooth and Nfc only if the feature exists" into oc-dev

7 years agoMerge "Prevent fingerprint from bypassing work challenge" into oc-dev
TreeHugger Robot [Tue, 25 Apr 2017 18:59:33 +0000 (18:59 +0000)]
Merge "Prevent fingerprint from bypassing work challenge" into oc-dev

7 years agoMerge "Properly check wallpaper state before showing suggestion" into oc-dev
Fan Zhang [Tue, 25 Apr 2017 18:55:52 +0000 (18:55 +0000)]
Merge "Properly check wallpaper state before showing suggestion" into oc-dev

7 years agoMerge "Update account sync settings title." into oc-dev
Fan Zhang [Tue, 25 Apr 2017 18:55:28 +0000 (18:55 +0000)]
Merge "Update account sync settings title." into oc-dev

7 years agoDistribute the misc among all the apps
jackqdyulei [Fri, 21 Apr 2017 20:46:17 +0000 (13:46 -0700)]
Distribute the misc among all the apps

Distribute it in:
1. Battery main page(PowerUsageSummary)
2. Advanced battery page(PowerUsageAdvanced)

Bug: 37487061
Test: RunSettingsRoboTests
Change-Id: Id1810b81a6b380d908bcdc18421530e938578c37

7 years agoMerge "Remove STATE_TOP_SLEEPING from foreground time" into oc-dev
TreeHugger Robot [Tue, 25 Apr 2017 18:36:00 +0000 (18:36 +0000)]
Merge "Remove STATE_TOP_SLEEPING from foreground time" into oc-dev

7 years agoMerge "Make connected Wi-Fi message multiline to avoid cutoff." into oc-dev
TreeHugger Robot [Tue, 25 Apr 2017 18:33:49 +0000 (18:33 +0000)]
Merge "Make connected Wi-Fi message multiline to avoid cutoff." into oc-dev

7 years agoRemove shadow below app info header.
Fan Zhang [Tue, 25 Apr 2017 18:18:30 +0000 (11:18 -0700)]
Remove shadow below app info header.

Bug: 37670670
Test: visual
Change-Id: I4ae011098537a970568f9fa72c49847a595a7fe0

7 years ago'Allow sound' = let the app decide
Julia Reynolds [Wed, 19 Apr 2017 15:43:30 +0000 (11:43 -0400)]
'Allow sound' = let the app decide

Bug: 37479730
Test: manual
Change-Id: Ia5073dd0ef79664229c5aff0b89e7ef36edb68ee

7 years agoTurn off QUIET_MODE before changing unified lock credential.
Charles He [Mon, 24 Apr 2017 17:05:48 +0000 (18:05 +0100)]
Turn off QUIET_MODE before changing unified lock credential.

For FBE-enabled devices, the work profile disk encryption key is evicted
when the the profile is turned off (i.e. QUIET_MODE is on). If the user
attempts to change the profile's lock screen credentials in this state,
the profile will get into an unrecoverable state as vold does not have
the current encryption key.

Currently, separate work challenge does not suffer from this issue as
QUIET_MODE must be turned off before the change credentials flow could
be initiated in Settings. In this CL, we fix the issue for unified work
challenge as well by adopting the same approach.

This is temporary and should be removed when vold no longer relies on
the current key for resetting the password.

Bug: 35930129
Test: manually resetting unified PIN when work mode is off
      on both sailfish (FBE) and angler (no FBE)
Test: make SettingsRoboTests

Change-Id: Ibb4b1c40a9cad8a473e08cf0c294699406108cd9

7 years agoFix ANR in installed app details.
Fan Zhang [Mon, 24 Apr 2017 23:57:35 +0000 (16:57 -0700)]
Fix ANR in installed app details.

InstalledAppDetails tries to refreshUi whenever something about a
package changes. It does not need to refresh when the changing package
is different from what's being displayed.

Change-Id: Ib45289c39ee402cf8974bf52c881f44d225b8be5
Fix: 37424866
Test: make RunSettingsRoboTests

7 years agoMerge "Update Search UX for OC" into oc-dev
TreeHugger Robot [Tue, 25 Apr 2017 00:55:02 +0000 (00:55 +0000)]
Merge "Update Search UX for OC" into oc-dev

7 years agoDon't shows Files when storage is adopted.
Daniel Nishi [Tue, 4 Apr 2017 17:29:59 +0000 (10:29 -0700)]
Don't shows Files when storage is adopted.

One regression from the previous storage view is that the
Files category should not show at all when the storage is adopted.

Fixes: 36786953
Test: Settings robotest

Change-Id: Ice365fabc3bfa66f4c5526ac78bbbfc5e15b7b35

7 years agoMerge "Prevent search crashes from uninstalled apps" into oc-dev
TreeHugger Robot [Tue, 25 Apr 2017 00:12:33 +0000 (00:12 +0000)]
Merge "Prevent search crashes from uninstalled apps" into oc-dev

7 years agoMerge "Do not call update() for read only APNs." into oc-dev
TreeHugger Robot [Mon, 24 Apr 2017 22:16:32 +0000 (22:16 +0000)]
Merge "Do not call update() for read only APNs." into oc-dev

7 years agoAdd searchable index for Bluetooth and Nfc only if the feature exists
Ruchi Kandoi [Fri, 21 Apr 2017 00:17:50 +0000 (17:17 -0700)]
Add searchable index for Bluetooth and Nfc only if the feature exists

Test: make RunSettingsRoboTests
Bug: 35657961
Change-Id: Ie2f4722b2b1599981c933f87f95016909ba92022
Signed-off-by: Ruchi Kandoi <kandoiruchi@google.com>
7 years agoMake connected Wi-Fi message multiline to avoid cutoff.
Stephen Chen [Mon, 24 Apr 2017 18:39:00 +0000 (11:39 -0700)]
Make connected Wi-Fi message multiline to avoid cutoff.

Bug: 37330280
Test: manual inspection.
Change-Id: Ifdf76d454cf98de2db03a266ad4c3a3cbcd79b4c

7 years agoRemove STATE_TOP_SLEEPING from foreground time
jackqdyulei [Mon, 24 Apr 2017 18:37:00 +0000 (11:37 -0700)]
Remove STATE_TOP_SLEEPING from foreground time

That state means the time when app is on top while screen is off,
we should not count it as foreground usage time.

Bug: 37547898
Test: RunSettingsRoboTests
Change-Id: I67e0c135d0c4b71cd667037b0d5dc7673b53607e

7 years agoUpdate Search UX for OC
Matthew Fritze [Sat, 1 Apr 2017 00:07:25 +0000 (17:07 -0700)]
Update Search UX for OC

- Change text opacity for Search UX
- Update dps between summary and breadcrumbs
- Remove icons for Title items
- Restrict summary to single line

Test: manual
Bug: 36853763
Change-Id: I2acd574ec9c490bbe7097d30c512e58ebe1ad9f2

7 years agoDo not call update() for read only APNs.
Amit Mahajan [Mon, 24 Apr 2017 18:02:03 +0000 (11:02 -0700)]
Do not call update() for read only APNs.

Calling update marks the APN USER_EDITED and thus makes it user
editable.

Test: manual
Bug: 37607890
Change-Id: Ia5aa0df470e04c8bcc58080577cc3da2ab6dc9df

7 years agoMerge "Fake data to be 0B after clearing." into oc-dev
Daniel Nishi [Mon, 24 Apr 2017 17:54:18 +0000 (17:54 +0000)]
Merge "Fake data to be 0B after clearing." into oc-dev

7 years agoMerge "Add TtsSpan for formatted time." into oc-dev
Lei Yu [Mon, 24 Apr 2017 17:01:58 +0000 (17:01 +0000)]
Merge "Add TtsSpan for formatted time." into oc-dev

7 years agoMerge "Add device name for connect string" into oc-dev
Lei Yu [Mon, 24 Apr 2017 17:00:48 +0000 (17:00 +0000)]
Merge "Add device name for connect string" into oc-dev

7 years agoOnly show headers in Master Clear when there are multiple profiles
Bartosz Fabianowski [Wed, 19 Apr 2017 09:51:43 +0000 (11:51 +0200)]
Only show headers in Master Clear when there are multiple profiles

The Master Clear dialog lists the accounts whose data will be lost by
a factory reset. The list contains the headings "Personal" and "Work"
to distinguish accounts in the main user and the work profile. When
there is no work profile, the header (only "Personal" would be shown in
this case) is superfluous and misleading (as the user may be using the
device for work).

Bug: 30132270
Test: Manual :(

Change-Id: Id493652fc331d4500c4d772a9abcc716995565b3
(cherry picked from commit 30ba8680144a7978007511d4d9a3addbe9338284)

7 years agoMerge "Updating strings for Install unknown apps" into oc-dev
TreeHugger Robot [Sat, 22 Apr 2017 02:23:56 +0000 (02:23 +0000)]
Merge "Updating strings for Install unknown apps" into oc-dev

7 years agoMerge "Add Bluetooth Pairing notifications to a channel" into oc-dev
TreeHugger Robot [Sat, 22 Apr 2017 01:49:50 +0000 (01:49 +0000)]
Merge "Add Bluetooth Pairing notifications to a channel" into oc-dev

7 years agoMerge "Remove duplicates between battery and display settings" into oc-dev
TreeHugger Robot [Sat, 22 Apr 2017 00:56:08 +0000 (00:56 +0000)]
Merge "Remove duplicates between battery and display settings" into oc-dev

7 years agoAdd Bluetooth Pairing notifications to a channel
Ajay Panicker [Fri, 21 Apr 2017 23:31:50 +0000 (16:31 -0700)]
Add Bluetooth Pairing notifications to a channel

Bug: 37531430
Test: Send a pairing request to DUT from remote phone
Change-Id: I2014b0aa3c4797cbf8e601003471372f4920d21d

7 years agoPrevent search crashes from uninstalled apps
Matthew Fritze [Wed, 22 Mar 2017 20:51:36 +0000 (13:51 -0700)]
Prevent search crashes from uninstalled apps

All search results are now refreshed when resuming the
search fragment, to prevent crashes from results that
no longer exist.

Change-Id: I905465d14f415598ec7a2ebe7b29ed620cde0962
Fixes: 34817357
Test: make RunSettingsRoboTests
Merged-In: I96a0cbfee711ab9dee49d56bfdc4e885202d9ecd

7 years agoAdd device name for connect string
jackqdyulei [Tue, 18 Apr 2017 20:20:34 +0000 (13:20 -0700)]
Add device name for connect string

When there are more than one connected device, show
a general summary.

Bug: 37365660
Test: RunSettingsRoboTests
Change-Id: I0eed734e82750969bef97a61dd59167e679c0203

7 years agoAdd TtsSpan for formatted time.
jackqdyulei [Fri, 31 Mar 2017 19:57:10 +0000 (12:57 -0700)]
Add TtsSpan for formatted time.

Talk back will read "Used for 3m" as "Used for 3 meters", but
it will read "Used for 3h 3m" correctly.

This cl add specific Ttsspan if the time only contains "minute"

Bug: 36379530
Test: Run SettingsRoboTests

Change-Id: I033575938cce24221980dddd9d66be4e18804541

7 years agoMerge "Renaming intent action manage unknown sources" into oc-dev
TreeHugger Robot [Fri, 21 Apr 2017 21:22:05 +0000 (21:22 +0000)]
Merge "Renaming intent action manage unknown sources" into oc-dev

7 years agoUpdating strings for Install unknown apps
Suprabh Shukla [Wed, 19 Apr 2017 01:16:23 +0000 (18:16 -0700)]
Updating strings for Install unknown apps

Updating some strings for clarity based on ux review.

Test: Manual

Bug: 37362450
     37362065
Change-Id: I26dd191d19ea8f3bd905c2e61ff77c4a2b796b3c

7 years agoRenaming intent action manage unknown sources
Suprabh Shukla [Thu, 20 Apr 2017 23:02:54 +0000 (16:02 -0700)]
Renaming intent action manage unknown sources

Test: gts-tradefed run gts -m GtsExternalSourcesTestCases

Bug: 37515311
Change-Id: I3ad4ae24b67c6e8e68024bf5e8f73bc6563c443a

7 years agoUpdate account sync settings title.
Fan Zhang [Fri, 21 Apr 2017 20:24:34 +0000 (13:24 -0700)]
Update account sync settings title.

Change-Id: I188ec1e53d88a61d854cf70d91effa47cc8b8555
Fix: 36375242
Test: make RunSettingsRoboTests

7 years agoMerge "Remove icons for setting items in app & notification screen" into oc-dev
TreeHugger Robot [Fri, 21 Apr 2017 21:01:29 +0000 (21:01 +0000)]
Merge "Remove icons for setting items in app & notification screen" into oc-dev

7 years agoMerge "Fix disable/force stop app button incorrect state." into oc-dev
TreeHugger Robot [Fri, 21 Apr 2017 21:00:29 +0000 (21:00 +0000)]
Merge "Fix disable/force stop app button incorrect state." into oc-dev

7 years agoBluetooth: Make pairing notification cancellable
Marie Janssen [Wed, 19 Apr 2017 20:47:07 +0000 (13:47 -0700)]
Bluetooth: Make pairing notification cancellable

Add actions to the pairing service notification so the user can dismiss
the pairing request if they want to.

Add some more information to logs when the user takes an action.

Reformat the file to match android style.

Test: pair from a remote device, dismiss using the new actions
Bug: 36036358
Change-Id: Ie110044bd4caf465f454452737000f01e7430925
(cherry picked from commit c79470d0896f5ccfaa9a0e872dd396d47ec28daf)

7 years agoMerge "Fix wrong voice call time in battery page" into oc-dev
TreeHugger Robot [Fri, 21 Apr 2017 20:04:07 +0000 (20:04 +0000)]
Merge "Fix wrong voice call time in battery page" into oc-dev

7 years agoFake data to be 0B after clearing.
Daniel Nishi [Fri, 21 Apr 2017 18:20:48 +0000 (11:20 -0700)]
Fake data to be 0B after clearing.

The data folder -technically- takes up 16kB of space. By faking it to be
0B immediately after clearing, we can get the UI to look right.

Change-Id: I65321a79fc3266f66f61909682132de176237fb1
Fixes: 34199891
Test: Settings robotest

7 years agoFix wrong voice call time in battery page
jackqdyulei [Thu, 20 Apr 2017 16:48:02 +0000 (09:48 -0700)]
Fix wrong voice call time in battery page

The voice call is belong to DrainType.PHONE, which is not an app.
This cl stop using method in BatteryUtils to calculate the time, since
that method should only be used for DrainType.APP

Bug: 37402819
Test: RunSettingsRoboTests
Change-Id: I3aa7366401e54df87ffe913af0dcb1bcd5abf110

7 years agoMerge "Add EXTRA_FROM_STORAGE to photos gallery intent." into oc-dev
Daniel Nishi [Fri, 21 Apr 2017 17:18:04 +0000 (17:18 +0000)]
Merge "Add EXTRA_FROM_STORAGE to photos gallery intent." into oc-dev

7 years agoProperly check wallpaper state before showing suggestion
Fan Zhang [Thu, 20 Apr 2017 00:11:40 +0000 (17:11 -0700)]
Properly check wallpaper state before showing suggestion

The old check only considers static wallpaper. So if user set a dynamic
one we still think wallpaper is not set.

Change-Id: I3fa0908b29891cf7b90c24d5a63ce60d5985a70d
Fix: 34719455
Test: make RunSettingsRoboTests

7 years agoMerge "Fingerprint suggestion should not be dismissed until fingerprint added" into...
TreeHugger Robot [Fri, 21 Apr 2017 01:56:57 +0000 (01:56 +0000)]
Merge "Fingerprint suggestion should not be dismissed until fingerprint added" into oc-dev

7 years agoMerge "Include type service as type system" into oc-dev
TreeHugger Robot [Fri, 21 Apr 2017 01:45:28 +0000 (01:45 +0000)]
Merge "Include type service as type system" into oc-dev

7 years agoMerge "Remove deep link to app store from app header." into oc-dev
TreeHugger Robot [Fri, 21 Apr 2017 01:36:19 +0000 (01:36 +0000)]
Merge "Remove deep link to app store from app header." into oc-dev

7 years agoMerge "Bidi wrap keyboard names before displaying them." into oc-dev
TreeHugger Robot [Fri, 21 Apr 2017 01:02:34 +0000 (01:02 +0000)]
Merge "Bidi wrap keyboard names before displaying them." into oc-dev

7 years agoMerge "Change "Cell standby" to "Mobile network standby"" into oc-dev
TreeHugger Robot [Fri, 21 Apr 2017 00:45:15 +0000 (00:45 +0000)]
Merge "Change "Cell standby" to "Mobile network standby"" into oc-dev

7 years agoMerge "Update security status icons." into oc-dev
TreeHugger Robot [Fri, 21 Apr 2017 00:16:29 +0000 (00:16 +0000)]
Merge "Update security status icons." into oc-dev

7 years agoRemove icons for setting items in app & notification screen
Fan Zhang [Fri, 21 Apr 2017 00:05:27 +0000 (17:05 -0700)]
Remove icons for setting items in app & notification screen

Change-Id: Iddc2008fcf434fdec124db376be0247462f9ff4e
Fix: 35917329
Test: visual

7 years agoMerge "Add connect string for bluetooth page" into oc-dev
TreeHugger Robot [Thu, 20 Apr 2017 23:47:00 +0000 (23:47 +0000)]
Merge "Add connect string for bluetooth page" into oc-dev

7 years agoFix disable/force stop app button incorrect state.
Fan Zhang [Thu, 20 Apr 2017 22:10:46 +0000 (15:10 -0700)]
Fix disable/force stop app button incorrect state.

The LayoutPreference calls super.onBindPreview, which enables all
children views. This is usually fine because a Preference object has
just one click target. But the LayoutPreference can hold multiple click
targets so we should not force enable everything during every single
bind.

To fix this, we don't call super.onBind, and manually wire up
onClickListener and selectable/focusable state. Everything else from
super.onBind is useless to this preference type.

Change-Id: Ibb89f1be399311b9ee053733a050f04be6aa85e8
Fix: 37452204
Fix: 37538936
Fix: 35633637
Test: make RunSettingsRoboTests

7 years agoAdd EXTRA_FROM_STORAGE to photos gallery intent.
Daniel Nishi [Thu, 20 Apr 2017 21:46:28 +0000 (14:46 -0700)]
Add EXTRA_FROM_STORAGE to photos gallery intent.

Change-Id: I050149f558df0de83e7139354ac54176d7ced162
Fixes: 36991234
Test: Settings robotest

7 years agoMerge "Revert "Force update APs when enabling wifi in WifiSettings."" into oc-dev
Sundeep Ghuman [Thu, 20 Apr 2017 20:45:32 +0000 (20:45 +0000)]
Merge "Revert "Force update APs when enabling wifi in WifiSettings."" into oc-dev

7 years agoRemove deep link to app store from app header.
Fan Zhang [Thu, 20 Apr 2017 20:45:23 +0000 (13:45 -0700)]
Remove deep link to app store from app header.

The link doesn't actually work and uses wrong icon. There is a working
version at the app info screen already.

Change-Id: I16890bd66e095c3185e12d604d8daba5036ab24c
Fix: 37544209
Test: robotests

7 years agoFingerprint suggestion should not be dismissed until fingerprint added
Ajay Nadathur [Thu, 13 Apr 2017 23:06:28 +0000 (16:06 -0700)]
Fingerprint suggestion should not be dismissed until fingerprint added

- Do not dismiss fingerprint suggestion until atleast one fingerprint is
added.

bug: 36578142
Test: robotest & manually verified.
Change-Id: I3151c9ae971666a0964be007103a9b7ad41de5ce
(cherry picked from commit 51ef801b3245f37680e1513d7f2b22aea02754ba)

7 years agoBidi wrap keyboard names before displaying them.
Fan Zhang [Thu, 20 Apr 2017 18:01:32 +0000 (11:01 -0700)]
Bidi wrap keyboard names before displaying them.

This is needed because keyboard names can contain characters from mixed
locale. Without Bidi wrapping the labels will be garbled and not
readable.

Change-Id: I47668a65d7bef8828ad0424097834929ec12700d
Fix: 37353900
Test: make RunSettingsRoboTests

7 years agoRemove duplicates between battery and display settings
Matthew Fritze [Tue, 11 Apr 2017 20:22:40 +0000 (13:22 -0700)]
Remove duplicates between battery and display settings

Change preference keys of duplicate settings between
display and battery to avoid duplication in search.

Bug: 33701673
Test: make RunSettingsRoboTests
Change-Id: Iaad52f16ce33c478c64bcec656cc8edbe0c97283
Merged-In: I56c82e9e7f163d345065ca478849de9b14c173fe

7 years agoRevert "Force update APs when enabling wifi in WifiSettings."
Sundeep Ghuman [Thu, 20 Apr 2017 17:49:20 +0000 (17:49 +0000)]
Revert "Force update APs when enabling wifi in WifiSettings."

This reverts commit 1c231d32b125f368e29fc30b6edebc81b9db7623.

Reason for revert: b/37530557 - ANR in Settings due to deadlock

Change-Id: I85d70aa957dca76189b7600d7b39cb9a09437e91

7 years agoAdd connect string for bluetooth page
jackqdyulei [Thu, 20 Apr 2017 17:30:50 +0000 (10:30 -0700)]
Add connect string for bluetooth page

Bug: 37365660
Test: Build
Change-Id: I964b9d25e892666c51dbd98e499be23fe93007ec

7 years agoMerge "Gracefully handle null volumes after forgetting." into oc-dev
Daniel Nishi [Thu, 20 Apr 2017 17:05:28 +0000 (17:05 +0000)]
Merge "Gracefully handle null volumes after forgetting." into oc-dev

7 years agoChange "Cell standby" to "Mobile network standby"
jackqdyulei [Thu, 20 Apr 2017 16:59:28 +0000 (09:59 -0700)]
Change "Cell standby" to "Mobile network standby"

Bug: 37356060
Test: Build
Change-Id: I2c726a7f31ae37cf0a31b76e2a99d9c5735692fe

7 years agoMerge "Don't show warning dialog on opening ASM settings." into oc-dev
Daniel Nishi [Thu, 20 Apr 2017 16:55:28 +0000 (16:55 +0000)]
Merge "Don't show warning dialog on opening ASM settings." into oc-dev

7 years agoMerge "Fix default for a11y shortcut setting" into oc-dev
Phil Weaver [Thu, 20 Apr 2017 14:52:22 +0000 (14:52 +0000)]
Merge "Fix default for a11y shortcut setting" into oc-dev

7 years agoMerge "Remove WebView MultiProcess Developer Option." into oc-dev
TreeHugger Robot [Thu, 20 Apr 2017 12:59:31 +0000 (12:59 +0000)]
Merge "Remove WebView MultiProcess Developer Option." into oc-dev

7 years agoRemove WebView MultiProcess Developer Option.
Gustav Sennton [Fri, 7 Apr 2017 13:20:42 +0000 (14:20 +0100)]
Remove WebView MultiProcess Developer Option.

Now that MultiProcess WebView is enabled by default we can remove the
Developer Option that lets users choose whether to enable MultiProcess
for WebView.

Bug: 36513859
Test: Ensure the WebView MultiProcess Dev Setting no longer exists.
Change-Id: Ib2eab3831b5d8b56daeaf4c7a06337075804a1d4

7 years agoCheck for user restrictions disallowing BT in BluetoothEnabler.
Lenka Trochtova [Tue, 11 Apr 2017 18:29:21 +0000 (20:29 +0200)]
Check for user restrictions disallowing BT in BluetoothEnabler.

Test: make RunSettingsRoboTests -j40
Test: manual

BUG: 35596982
BUG: 32895313

Change-Id: Ie8f53b665a4aad4e6b17b20602cbe5502998d7a2
(cherry picked from commit 479d1971962ea79985535f00a323cd9a1597a553)

7 years agoUpdate security status icons.
William Luh [Wed, 19 Apr 2017 17:02:31 +0000 (10:02 -0700)]
Update security status icons.

Bug: 36847800
Test: make RunSettingsRoboTests

Also tested manually in app.

Change-Id: I5b7c043ed6af4c5a888710b582e8e69c6e3974c3

7 years agoMerge "Fix scanning settings link clickability in Talkback mode." into oc-dev
TreeHugger Robot [Wed, 19 Apr 2017 23:49:02 +0000 (23:49 +0000)]
Merge "Fix scanning settings link clickability in Talkback mode." into oc-dev

7 years agoMerge "Change how we calculate system size." into oc-dev
TreeHugger Robot [Wed, 19 Apr 2017 23:33:56 +0000 (23:33 +0000)]
Merge "Change how we calculate system size." into oc-dev

7 years agoMerge "Display and parse numbers properly in all locales" into oc-dev
TreeHugger Robot [Wed, 19 Apr 2017 23:30:07 +0000 (23:30 +0000)]
Merge "Display and parse numbers properly in all locales" into oc-dev

7 years agoMerge "Revert "Listen to brigtness updates to update brightness summary."" into oc-dev
TreeHugger Robot [Wed, 19 Apr 2017 22:29:24 +0000 (22:29 +0000)]
Merge "Revert "Listen to brigtness updates to update brightness summary."" into oc-dev

7 years agoMerge "Force update APs when enabling wifi in WifiSettings." into oc-dev
TreeHugger Robot [Wed, 19 Apr 2017 21:48:19 +0000 (21:48 +0000)]
Merge "Force update APs when enabling wifi in WifiSettings." into oc-dev

7 years agoMerge "Fix malformatted preference xml." into oc-dev
TreeHugger Robot [Wed, 19 Apr 2017 21:42:35 +0000 (21:42 +0000)]
Merge "Fix malformatted preference xml." into oc-dev

7 years agoDisplay and parse numbers properly in all locales
Fan Zhang [Mon, 17 Apr 2017 23:58:25 +0000 (16:58 -0700)]
Display and parse numbers properly in all locales

Change-Id: Iddf74fd6ed3139eede27733b69a31ce2fa7d1a92
Fix: 37311645
Test: make RunSettingsRoboTests

7 years agoFix scanning settings link clickability in Talkback mode.
Sundeep Ghuman [Wed, 19 Apr 2017 00:16:00 +0000 (17:16 -0700)]
Fix scanning settings link clickability in Talkback mode.

Bug: b/37431709
Test: make RunSettingsRoboTests
Change-Id: I0dc0a524a3c4abd1743748ebc8ebf20937018047

7 years agoDon't show warning dialog on opening ASM settings.
Daniel Nishi [Tue, 18 Apr 2017 21:12:54 +0000 (14:12 -0700)]
Don't show warning dialog on opening ASM settings.

On older devices, the activation warning dialog would show upon the
switchbar changing to On. This was occurring when the page opens
because the status was changing onResume. By shuffling the switchbar
changes into the ASMSwitchBarController, we can register our listener
after the initialization of the switch bar's first status.

Change-Id: I3610d07345684d1e66444981a8059d1c2965e955
Fixes: 37472724
Test: Settings robotests

7 years agoMerge "Revert "Changed the ambient display setting name"" into oc-dev
Adrian Roos [Wed, 19 Apr 2017 20:50:32 +0000 (20:50 +0000)]
Merge "Revert "Changed the ambient display setting name"" into oc-dev

7 years agoRevert "Listen to brigtness updates to update brightness summary."
Matthew Fritze [Wed, 19 Apr 2017 15:35:54 +0000 (15:35 +0000)]
Revert "Listen to brigtness updates to update brightness summary."

This reverts commit 4b95879634639e9d3ff81262a87478f081866ca9.

Change-Id: I13de29b0e42a09f6b3618826d7eb2a9ed00a54d8
Merged-In: I09fd9c843a4d32a131b87cd638785af552f81507

7 years agoFix malformatted preference xml.
Fan Zhang [Wed, 19 Apr 2017 19:41:26 +0000 (12:41 -0700)]
Fix malformatted preference xml.

Change-Id: I48273492bebb280f422b97ad0d5cbe23ff667a53
Fix: 37343765
Test: instrumentation test

7 years agoMerge "Fix action bar background not wide enough on tablets" into oc-dev
TreeHugger Robot [Wed, 19 Apr 2017 19:36:24 +0000 (19:36 +0000)]
Merge "Fix action bar background not wide enough on tablets" into oc-dev

7 years agoMerge "Use AfW user handle when setting auto_sync for work" into oc-dev
TreeHugger Robot [Wed, 19 Apr 2017 19:32:54 +0000 (19:32 +0000)]
Merge "Use AfW user handle when setting auto_sync for work" into oc-dev

7 years agoPrevent fingerprint from bypassing work challenge
Charles He [Wed, 19 Apr 2017 18:32:00 +0000 (19:32 +0100)]
Prevent fingerprint from bypassing work challenge

After too many incorrect attempts at entering the user credential (PIN,
password, or pattern) for the work profile, a timeout will be triggered
to limit the rate of retries. At the same time, fingerprint should no
longer be allowed to unlock the work profile, until the user unlocks it
with the correct user credential.

Previously, fingerprint was not banned from unlocking the work profile
during and after the said timeout. (Pattern lock screen only had a
partial fix which removed the fingerprint UI, but still allowed
fingerprint to unlock.)

This CL fixes the issue. It also replaces the following fields with
equivalent getter methods:
 - mIsStrongAuthRequired,
 - mAllowFpAuthentication.
Otherwise, we would have to rely on these internal states being always
up-to-date, which is less maintainable.

Test: make SettingsGoogle and manually enter incorrect PINs/patterns
Bug: 36912481
Change-Id: Id6ac6b5c78bdc19078ce8dd7acb4ec41329e57c3

7 years agoChange how we calculate system size.
Daniel Nishi [Tue, 18 Apr 2017 00:25:06 +0000 (17:25 -0700)]
Change how we calculate system size.

As per storage discussions, the best way to calculate storage for the
System is to just take all known data and subtract it from the used
bytes. There is more to the system than just the /system partition and,
even if we ignore the partitions and use the underlying block device
method of calculating it, we run into the problem of it not adding up to
the actual device size.

Change-Id: I6e1f775ea3f3b8b2cc78d734623934651e2fb7b4
Fixes: 37166310
Test: Robotests

7 years agoFix default for a11y shortcut setting
Phil Weaver [Wed, 19 Apr 2017 18:09:23 +0000 (11:09 -0700)]
Fix default for a11y shortcut setting

Settings thought the default for "Allow from lock screen" was
on. It's really off.

Bug: 37158451
Test: Manually confirmed that a fresh device now shows off.
Change-Id: I38dc4f6d2bfec5e0c8562c0d2c6e034db461aa98

7 years agoUse AfW user handle when setting auto_sync for work
Fan Zhang [Tue, 18 Apr 2017 23:29:05 +0000 (16:29 -0700)]
Use AfW user handle when setting auto_sync for work

Change-Id: Ib1aa576a0083282dc59d8fe0d5c4784233eef024
Fix: 36675513
Test: make RunSettingsRoboTests

7 years agoMerge "Respect user's choice on a11y shortcut dialog" into oc-dev
Phil Weaver [Wed, 19 Apr 2017 16:09:15 +0000 (16:09 +0000)]
Merge "Respect user's choice on a11y shortcut dialog" into oc-dev