OSDN Git Service

android-x86/packages-apps-Settings.git
7 years agoHide unused recylerview to not confuse talkback.
Philip P. Moltmann [Mon, 29 Aug 2016 17:51:25 +0000 (10:51 -0700)]
Hide unused recylerview to not confuse talkback.

Fixes: 31088913
Change-Id: I1394cec881d8a1944004a69bc787e5341f8c9ddc

7 years agoMerge "Only show BootSounds preference if has_boot_sounds is true." into nyc-mr1-dev
Geoffrey Pitsch [Mon, 29 Aug 2016 13:06:21 +0000 (13:06 +0000)]
Merge "Only show BootSounds preference if has_boot_sounds is true." into nyc-mr1-dev

7 years agoMerge "Re-enable Ambient Display double tab." into nyc-mr1-dev
Doris Ling [Sat, 27 Aug 2016 00:04:19 +0000 (00:04 +0000)]
Merge "Re-enable Ambient Display double tab." into nyc-mr1-dev

7 years agoRe-enable Ambient Display double tab.
Doris Ling [Fri, 26 Aug 2016 21:29:52 +0000 (14:29 -0700)]
Re-enable Ambient Display double tab.

Restoring the changes to move Display->Ambient Display to Moves->Quick screen

This reverts commit 9b3000d8ac256093bbf62d04c518b67df244c311, except for
the removal of res/raw/gesture_ambient_move_lift.mp4

Test: Manual - Go to Settings->Display->Quick screen check and verify
the preference is restored.

Bug: 30595437
Change-Id: Ie50bcebd119714d49422b7139d0d0234f27584e2

7 years agoFix NullPointerException in DashboardSummary.
Doris Ling [Fri, 26 Aug 2016 18:13:21 +0000 (11:13 -0700)]
Fix NullPointerException in DashboardSummary.

In onSaveInstanceState(), move saving the suggestions logging lists to
the top so that it will be saved to the bundle even when layout manager
is null.

Test: run monkey
Change-Id: I248563a255158feadeb85898a920af96a1565fa9
Fixes:31111795

7 years agoMerge "Updated Nexus imprint screen" into nyc-mr1-dev
Salvador Martinez [Fri, 26 Aug 2016 17:01:11 +0000 (17:01 +0000)]
Merge "Updated Nexus imprint screen" into nyc-mr1-dev

7 years agoMerge "Fix fingerprint progress bar in RTL" into nyc-mr1-dev
TreeHugger Robot [Fri, 26 Aug 2016 00:56:15 +0000 (00:56 +0000)]
Merge "Fix fingerprint progress bar in RTL" into nyc-mr1-dev

7 years agoMerge "Add the specific string for the tablet device" into nyc-mr1-dev
Lei Yu [Thu, 25 Aug 2016 23:48:50 +0000 (23:48 +0000)]
Merge "Add the specific string for the tablet device" into nyc-mr1-dev

7 years agoFix fingerprint progress bar in RTL
Maurice Lam [Thu, 25 Aug 2016 01:54:09 +0000 (18:54 -0700)]
Fix fingerprint progress bar in RTL

Bug: 31047779
Change-Id: Ia6961d9fa425a8a247365f75f5c00955d69d2c60
(cherry picked from commit 6e300bca3a3f2302d513a64fd03071170ac5fad1)

7 years agoAdd the specific string for the tablet device
jackqdyulei [Thu, 25 Aug 2016 22:04:12 +0000 (15:04 -0700)]
Add the specific string for the tablet device

Bug: 30761670

Add "product=default" in support_disclaimer_content to prevent crash
when merging down to master branch.

Change-Id: Ib9ce94288ca4cf13514ba2af64031bd3ecafab7f

7 years agoMerge "Added guard to logging in AsyncTask" into nyc-mr1-dev
Salvador Martinez [Thu, 25 Aug 2016 19:57:24 +0000 (19:57 +0000)]
Merge "Added guard to logging in AsyncTask" into nyc-mr1-dev

7 years agoUpdated Nexus imprint screen
Salvador Martinez [Wed, 24 Aug 2016 18:07:37 +0000 (11:07 -0700)]
Updated Nexus imprint screen

The fingerprint settings screen looked ugly so an
icon was added and the styles used in the
preferences normalized so everything lines up
and is flush now.

Test: Visually Inspect
Bug: 27834731
Change-Id: I208d7fc2aecbe64d3a0b771fc73f49c9612f6efa
(cherry picked from commit 3d2d5e040ac0d28012c480a5bf1f10d947cf629c)

7 years agoInflate necessary previews upon user interaction instead of inflating everything...
Noah Wang [Thu, 25 Aug 2016 18:42:57 +0000 (18:42 +0000)]
Inflate necessary previews upon user interaction instead of inflating everything on creation of the screen. This will improve the speed of opening the screen and refreshing screen upon commiting change.
am: ff23df19ba

Change-Id: I5667a6eecd3ab379a34a1d3488b6f03f354358d1

7 years agoAdded guard to logging in AsyncTask
Salvador Martinez [Wed, 24 Aug 2016 22:11:21 +0000 (15:11 -0700)]
Added guard to logging in AsyncTask

An async task was trying to get the context
in an InstrumentedFragment. This could return
null if the context disappears before the new
thread gets to that line. Logging will now
be aborted if context is null to avoid this.

Test: Manual/Monkey Stability Test
Bug: 31058928
Change-Id: Iae97d389e58a76b0f213a2749415501894ebf649
(cherry picked from commit 566b66e27c69fbf48860f367781800442c5110e7)

7 years agoInflate necessary previews upon user interaction instead of
Noah Wang [Tue, 23 Aug 2016 21:56:27 +0000 (14:56 -0700)]
Inflate necessary previews upon user interaction instead of
inflating everything on creation of the screen. This will
improve the speed of opening the screen and refreshing screen upon
commiting change.

Test: Manually tested by interacting with ViewPager and SeekBar.
Bug: 30697309
Change-Id: Ieb2fac95696b8be33fd508f3b75741529b68e946
(cherry picked from commit 5666ddfe5d96c8bb2454b5e9c296ef664e5af9ae)

7 years agoMerge "Add tablet and device product version for the Moves description text." into...
TreeHugger Robot [Thu, 25 Aug 2016 02:27:14 +0000 (02:27 +0000)]
Merge "Add tablet and device product version for the Moves description text." into nyc-mr1-dev

7 years agoFix animation video render issue when Settings->Moves is resumed from screen off.
Doris Ling [Thu, 25 Aug 2016 01:54:55 +0000 (01:54 +0000)]
Fix animation video render issue when Settings->Moves is resumed from screen off.
am: 465e926542

Change-Id: Ie92491dd5aa16a473ead297a56795fe0d72bbb93

7 years agoMerge "Fix crash in ChooseLockPassworkFragment." into nyc-mr1-dev
TreeHugger Robot [Thu, 25 Aug 2016 01:44:21 +0000 (01:44 +0000)]
Merge "Fix crash in ChooseLockPassworkFragment." into nyc-mr1-dev

7 years agoFix animation video render issue when Settings->Moves is resumed from
Doris Ling [Tue, 23 Aug 2016 23:08:34 +0000 (16:08 -0700)]
Fix animation video render issue when Settings->Moves is resumed from
screen off.

Re-initialize the animation video if necessary when the preference is
visible to the user.

Fixes: 31023261

Test: manual -
1. Go to Settings -> Moves and verify that the animation video are
displayed correctly on load.
2. Press power button to turn screen off, then on again. Verify when
Moves settings resumes, the animation video is displayed correctly.
3. Repeat #2 above but let display time out instead of turning off
screen by power button.

Change-Id: I0ee21d23a4c402b3a8463dca3b36fce67d651993
(cherry picked from commit 008ba4ec402c6b223ff4126d9a180b3931a049ef)

7 years agoAdd tablet and device product version for the Moves description text.
Doris Ling [Thu, 25 Aug 2016 00:27:50 +0000 (17:27 -0700)]
Add tablet and device product version for the Moves description text.

Provide corresponding version of the string device/phone/tablet
according to the product type.

Change-Id: I9f1e47b88ee0d72bb52b588f781470922ba572c2
Fixes: 30946424

7 years agoDon't remove wifi preferences when updating AP to avoid GC. am: 9d031f2fbc
Fan Zhang [Thu, 25 Aug 2016 00:47:51 +0000 (00:47 +0000)]
Don't remove wifi preferences when updating AP to avoid GC. am: 9d031f2fbc
am: 1330f130d6

Change-Id: Ifa8d1b0f30a07243a49a61bd92072de4e90e8709

7 years agoDon't remove wifi preferences when updating AP to avoid GC.
Fan Zhang [Thu, 25 Aug 2016 00:44:53 +0000 (00:44 +0000)]
Don't remove wifi preferences when updating AP to avoid GC.
am: 9d031f2fbc

Change-Id: I0a4c7204dcb79880aee5db620b9642b8a1314757

7 years agoFix crash in ChooseLockPassworkFragment.
Doris Ling [Thu, 25 Aug 2016 00:17:52 +0000 (17:17 -0700)]
Fix crash in ChooseLockPassworkFragment.

Check for null activity when the handler receives messages to ensure
that the fragment is still attached to the activity.

Fixes: 31034901

Test: Manual - Manually try to update password, verify it works. Run
monkey test on settings package and verify no crash seen.

Change-Id: I9753729ee64458fa1bc25d78abc946d2563a5067

7 years agoMerge "Don't remove wifi preferences when updating AP to avoid GC." into nyc-mr1-dev
TreeHugger Robot [Thu, 25 Aug 2016 00:09:49 +0000 (00:09 +0000)]
Merge "Don't remove wifi preferences when updating AP to avoid GC." into nyc-mr1-dev

7 years agoDon't remove wifi preferences when updating AP to avoid GC.
Fan Zhang [Wed, 24 Aug 2016 21:52:49 +0000 (14:52 -0700)]
Don't remove wifi preferences when updating AP to avoid GC.

Bug: 30870531

Removing wifi preferences every time will force update create a new set
of preferences, which leads to higher chance of GC.

Change-Id: Ifea2f63a3b54fa0d5861fb34a348d81e99bcab68

7 years agoDon't remove wifi preferences when updating AP to avoid GC.
Fan Zhang [Wed, 24 Aug 2016 21:52:49 +0000 (14:52 -0700)]
Don't remove wifi preferences when updating AP to avoid GC.

Bug: 30870531

Removing wifi preferences every time will force update create a new set
of preferences, which leads to higher chance of GC.

Change-Id: Ifea2f63a3b54fa0d5861fb34a348d81e99bcab68

7 years agoMerge "Inflate necessary previews upon user interaction instead of inflating everythi...
Noah Wang [Wed, 24 Aug 2016 21:16:13 +0000 (21:16 +0000)]
Merge "Inflate necessary previews upon user interaction instead of inflating everything on creation of the screen. This will improve the speed of opening the screen and refreshing screen upon commiting change." into nyc-mr1-dev

7 years agoInflate necessary previews upon user interaction instead of
Noah Wang [Tue, 23 Aug 2016 21:56:27 +0000 (14:56 -0700)]
Inflate necessary previews upon user interaction instead of
inflating everything on creation of the screen. This will
improve the speed of opening the screen and refreshing screen upon
commiting change.

Test: Manually tested by interacting with ViewPager and SeekBar.
Bug: 30697309
Change-Id: Ieb2fac95696b8be33fd508f3b75741529b68e946

7 years agoMerge "Fix animation video render issue when Settings->Moves is resumed from screen...
Doris Ling [Wed, 24 Aug 2016 04:05:38 +0000 (04:05 +0000)]
Merge "Fix animation video render issue when Settings->Moves is resumed from screen off." into nyc-mr1-dev

7 years agoMerge "Use isOemUnlockEnabled to drive oem unlocking toggle." into nyc-mr1-dev
TreeHugger Robot [Wed, 24 Aug 2016 00:31:53 +0000 (00:31 +0000)]
Merge "Use isOemUnlockEnabled to drive oem unlocking toggle." into nyc-mr1-dev

7 years agoMerge "Only sync adapters with access can see an account - settings" into nyc-mr1-dev
TreeHugger Robot [Tue, 23 Aug 2016 23:26:47 +0000 (23:26 +0000)]
Merge "Only sync adapters with access can see an account - settings" into nyc-mr1-dev

7 years agoMerge "Show summary of "Add user" item" into nyc-mr1-dev
Sudheer Shanka [Tue, 23 Aug 2016 23:23:07 +0000 (23:23 +0000)]
Merge "Show summary of "Add user" item" into nyc-mr1-dev

7 years agoFix animation video render issue when Settings->Moves is resumed from
Doris Ling [Tue, 23 Aug 2016 23:08:34 +0000 (16:08 -0700)]
Fix animation video render issue when Settings->Moves is resumed from
screen off.

Re-initialize the animation video if necessary when the preference is
visible to the user.

Fixes: 31023261

Test: manual -
1. Go to Settings -> Moves and verify that the animation video are
displayed correctly on load.
2. Press power button to turn screen off, then on again. Verify when
Moves settings resumes, the animation video is displayed correctly.
3. Repeat #2 above but let display time out instead of turning off
screen by power button.

Change-Id: I0ee21d23a4c402b3a8463dca3b36fce67d651993

7 years agoMerge "Position fingerprint progress in the center on landscape" into nyc-mr1-dev
Maurice Lam [Tue, 23 Aug 2016 22:57:32 +0000 (22:57 +0000)]
Merge "Position fingerprint progress in the center on landscape" into nyc-mr1-dev

7 years agoForce phone number display to be LTR in support tab.
Fan Zhang [Tue, 23 Aug 2016 22:43:30 +0000 (22:43 +0000)]
Force phone number display to be LTR in support tab.
am: 68c6d9956f

Change-Id: Ib5a7b11f9063af047f37a1f342ec715c590cb337

7 years agoMerge "Remove duplicate string for fingerprint enroll" into nyc-mr1-dev
Maurice Lam [Tue, 23 Aug 2016 22:19:57 +0000 (22:19 +0000)]
Merge "Remove duplicate string for fingerprint enroll" into nyc-mr1-dev

7 years agoMerge "Log settings suggestions events only once." into nyc-mr1-dev
Doris Ling [Tue, 23 Aug 2016 22:15:52 +0000 (22:15 +0000)]
Merge "Log settings suggestions events only once." into nyc-mr1-dev

7 years agoUse isOemUnlockEnabled to drive oem unlocking toggle.
Fan Zhang [Tue, 23 Aug 2016 22:13:22 +0000 (15:13 -0700)]
Use isOemUnlockEnabled to drive oem unlocking toggle.

Bug: 31031467
Test: manually turned on/off persistent_data_block

Change-Id: I21d18a898a220f9e46a53715d4b4fa01c7116e7f

7 years agoOnly sync adapters with access can see an account - settings
Svetoslav Ganov [Tue, 12 Jul 2016 02:34:21 +0000 (19:34 -0700)]
Only sync adapters with access can see an account - settings

This change ensures that when the user tries to toggle a sync for a
sync adapter that doesn't have access to an account we show UI for
the user to approve the sync.

bug:28163381

Change-Id: I59802df6614572cf0eaf4b72a177beb111b87b34

7 years agoPosition fingerprint progress in the center on landscape
Maurice Lam [Fri, 29 Jul 2016 00:12:24 +0000 (17:12 -0700)]
Position fingerprint progress in the center on landscape

Update the layout of the landscape fingerprint enrolling screen to
be consistent with fingerprint find sensor, which vertically centers
the graphic on the right.
Also added back the accessibility live region for TalkBack.

Bug: 30288351
Bug: 30287231
Change-Id: Ia5b429215e36bbc108585aa8b14330b77ddc8584
(cherry picked from commit c81575138ed00999aa0e9f1e5c4d6445f0300dda)

7 years agoRemove duplicate string for fingerprint enroll
Maurice Lam [Wed, 10 Aug 2016 19:27:29 +0000 (12:27 -0700)]
Remove duplicate string for fingerprint enroll

Bug: 30661068
Change-Id: Id8ba9eee04eded2c85535a577ac0f5a83034ce96
(cherry picked from commit 56093f6f4f08c4d57b40d853d1491149ed07b5c1)

7 years agoForce phone number display to be LTR in support tab.
Fan Zhang [Tue, 23 Aug 2016 16:18:13 +0000 (09:18 -0700)]
Force phone number display to be LTR in support tab.

Bug: 31030062
Test: manual switch between LTR/RLT languages

Change-Id: I94272c0ecbfa2f96842838c0f590b3704cd5c020
(cherry picked from commit dcfdde5a2c6fa72c564f8dd747d27fbef7fcab04)

7 years agoLog settings suggestions events only once.
Doris Ling [Tue, 2 Aug 2016 21:45:58 +0000 (14:45 -0700)]
Log settings suggestions events only once.

The show/hide settings suggestions events are logged every time Settings
is shown. Save the logged events into the state bundle so that when the
fragment is resumed, it does not re-log the suggestions events.

Also move the logging for the show suggestion event to when the suggestion
is loaded, as the suggestions can be empty when the fragment starts.

Change-Id: I644ea0012bad309e59fed0d48171915c955779cc
Fixes: 30108142

7 years agoAdd scrollbar to Settings app.
Doris Ling [Thu, 18 Aug 2016 22:16:23 +0000 (15:16 -0700)]
Add scrollbar to Settings app.

Overlay PreferenceTheme to add scrollbar to the view, and also add
scrollbar to the dashboard.

Change-Id: I2273b0825b200048bd1914923b551a593aa1e16d
Fixes: 30204662
Test: manual - Launch Settings and different sub-settings, and verify
that scrollbar is shown for screen that can be scrolled.

7 years agoMerge "Remove duplicated call to authenticationSucceeded()" into nyc-mr1-dev
Rubin Xu [Tue, 23 Aug 2016 13:07:02 +0000 (13:07 +0000)]
Merge "Remove duplicated call to authenticationSucceeded()" into nyc-mr1-dev

7 years agoMerge "Do not require MANAGE_DEVICE_ADMINS for showing admin-specifc policy transpare...
Rubin Xu [Tue, 23 Aug 2016 12:59:16 +0000 (12:59 +0000)]
Merge "Do not require MANAGE_DEVICE_ADMINS for showing admin-specifc policy transparency dialog" into nyc-mr1-dev

7 years agoMerge "Fix crash when selecting AppInfo for uninstalled app from Recents." into nyc...
Doris Ling [Tue, 23 Aug 2016 01:51:21 +0000 (01:51 +0000)]
Merge "Fix crash when selecting AppInfo for uninstalled app from Recents." into nyc-mr1-dev

7 years agoMerge "Update Jump to Camera gesture settings description text." into nyc-mr1-dev
Doris Ling [Tue, 23 Aug 2016 01:37:29 +0000 (01:37 +0000)]
Merge "Update Jump to Camera gesture settings description text." into nyc-mr1-dev

7 years agoMerge "Fix caption text being cut off when text size is set to very large." into...
Doris Ling [Tue, 23 Aug 2016 01:30:27 +0000 (01:30 +0000)]
Merge "Fix caption text being cut off when text size is set to very large." into nyc-mr1-dev

7 years agoMerge "Fix margin in Tap & pay -> Payment default." into nyc-mr1-dev
Doris Ling [Tue, 23 Aug 2016 01:29:41 +0000 (01:29 +0000)]
Merge "Fix margin in Tap & pay -> Payment default." into nyc-mr1-dev

7 years agoMerge "Stop apps with Storage Managers from launching activity when disabled" into...
TreeHugger Robot [Mon, 22 Aug 2016 22:24:15 +0000 (22:24 +0000)]
Merge "Stop apps with Storage Managers from launching activity when disabled" into nyc-mr1-dev

7 years agoMerge "Disabled BSM mode switch when plugged in" into nyc-mr1-dev
Salvador Martinez [Mon, 22 Aug 2016 21:56:21 +0000 (21:56 +0000)]
Merge "Disabled BSM mode switch when plugged in" into nyc-mr1-dev

7 years agoMerge "Made dialog material design compliant" into nyc-mr1-dev
Salvador Martinez [Mon, 22 Aug 2016 21:56:05 +0000 (21:56 +0000)]
Merge "Made dialog material design compliant" into nyc-mr1-dev

7 years agoMerge "Settings Focus prevented from moving to pref" into nyc-mr1-dev
Salvador Martinez [Mon, 22 Aug 2016 21:55:46 +0000 (21:55 +0000)]
Merge "Settings Focus prevented from moving to pref" into nyc-mr1-dev

7 years agoMerge "Prevent wifi icon from disappearing" into nyc-mr1-dev
Salvador Martinez [Mon, 22 Aug 2016 21:55:18 +0000 (21:55 +0000)]
Merge "Prevent wifi icon from disappearing" into nyc-mr1-dev

7 years agoMerge "Tests for launch support on default feature" into nyc-mr1-dev
Salvador Martinez [Mon, 22 Aug 2016 21:53:52 +0000 (21:53 +0000)]
Merge "Tests for launch support on default feature" into nyc-mr1-dev

7 years agoMerge "can open settings with support tab by default" into nyc-mr1-dev
Salvador Martinez [Mon, 22 Aug 2016 21:53:52 +0000 (21:53 +0000)]
Merge "can open settings with support tab by default" into nyc-mr1-dev

7 years agoTests for launch support on default feature
Salvador Martinez [Fri, 29 Jul 2016 16:50:56 +0000 (09:50 -0700)]
Tests for launch support on default feature

Includes some espresso tests to ensure that the proper
tab is selected when you attempt to launch settings.

Bug: 30233920
Change-Id: I171293114bd84b064b333091fcf2394d44debed5
(cherry picked from commit d1ef20beaa3c69e038860fd610f076892d428da2)

7 years agoMerge "Make number in dialog highlighted" into nyc-mr1-dev
Lei Yu [Mon, 22 Aug 2016 21:50:29 +0000 (21:50 +0000)]
Merge "Make number in dialog highlighted" into nyc-mr1-dev

7 years agoMerge "Fix the nullpointer bug in monkey test." into nyc-mr1-dev
Lei Yu [Mon, 22 Aug 2016 21:49:56 +0000 (21:49 +0000)]
Merge "Fix the nullpointer bug in monkey test." into nyc-mr1-dev

7 years agoMerge "Set oem unlock switch to reflect the actual state of device" into nyc-mr1-dev
TreeHugger Robot [Mon, 22 Aug 2016 21:32:44 +0000 (21:32 +0000)]
Merge "Set oem unlock switch to reflect the actual state of device" into nyc-mr1-dev

7 years agoMerge "Import translations. DO NOT MERGE" into nyc-mr1-dev
TreeHugger Robot [Mon, 22 Aug 2016 21:28:29 +0000 (21:28 +0000)]
Merge "Import translations. DO NOT MERGE" into nyc-mr1-dev

7 years agoMerge "Have a fallback package name when matching targetPackage." into nyc-mr1-dev
TreeHugger Robot [Mon, 22 Aug 2016 21:23:47 +0000 (21:23 +0000)]
Merge "Have a fallback package name when matching targetPackage." into nyc-mr1-dev

7 years agoMerge "Align text to view start so they layout correctly in RTL." into nyc-mr1-dev
TreeHugger Robot [Mon, 22 Aug 2016 21:17:20 +0000 (21:17 +0000)]
Merge "Align text to view start so they layout correctly in RTL." into nyc-mr1-dev

7 years agoMerge "When click conditional's title, expand/collapse content." into nyc-mr1-dev
TreeHugger Robot [Mon, 22 Aug 2016 20:01:16 +0000 (20:01 +0000)]
Merge "When click conditional's title, expand/collapse content." into nyc-mr1-dev

7 years agoImport translations. DO NOT MERGE
Bill Yi [Mon, 22 Aug 2016 19:57:11 +0000 (12:57 -0700)]
Import translations. DO NOT MERGE

Change-Id: Ic0668c1bf03195d38aabb92176ae6ff6d6f079d2
Auto-generated-cl: translation import

7 years agoSet oem unlock switch to reflect the actual state of device
Fan Zhang [Wed, 10 Aug 2016 17:08:35 +0000 (10:08 -0700)]
Set oem unlock switch to reflect the actual state of device

Bug: 30772025
Change-Id: I143ceafb36f2f2091683b29d02ee64c07e44bb15
(cherry picked from commit e98178bd58667b6ad756bf8a214547502185d66f)

7 years agoAlign text to view start so they layout correctly in RTL.
Fan Zhang [Thu, 11 Aug 2016 22:04:15 +0000 (15:04 -0700)]
Align text to view start so they layout correctly in RTL.

Bug: 28011099
Change-Id: I65b7ab768c384a558f89e3bce539420454fed8a5
(cherry picked from commit 794de426da27b7d9bf4d93b0533d9e0ff16dc105)

7 years agoHave a fallback package name when matching targetPackage.
Fan Zhang [Fri, 12 Aug 2016 01:37:35 +0000 (18:37 -0700)]
Have a fallback package name when matching targetPackage.

Bug: 29774397

When figuring out best match package name, we should have a fallback.
Otherwise sometimes we get empty package names, causing problems when
trying to display memory usage for each app.

Change-Id: I9cc4205098bb7c727a3063b2275fb464c8153097
(cherry picked from commit d5ff4c42924d11c32ab591f5cef00694ce035e15)

7 years agoWhen click conditional's title, expand/collapse content.
Fan Zhang [Thu, 11 Aug 2016 23:41:29 +0000 (16:41 -0700)]
When click conditional's title, expand/collapse content.

Bug: 30200101

It used to lead user to detailed setting for that conditional. This
leaves some confusion about which click target goes to where.

Change-Id: Ic9525ace65ca488f4e709576fb1ec96a1cb99938
(cherry picked from commit a2db2ca8fad50f0fb4cdd060d83c746a857fe92a)

7 years agoHide default phone preference when there is no phone app.
Fan Zhang [Mon, 15 Aug 2016 19:32:20 +0000 (12:32 -0700)]
Hide default phone preference when there is no phone app.

Bug: 29859821
Change-Id: Ia6de0de04d74f4f947243f38ac2bd190ae586401
(cherry picked from commit bc6fc60683082dea6e91872e029787a0039e4cb5)

7 years agoDO NOT MERGE ANYWHERE: WiFiCallingSettings: hide wfc mode preference if not editable
Meng Wang [Mon, 22 Aug 2016 04:46:46 +0000 (04:46 +0000)]
DO NOT MERGE ANYWHERE: WiFiCallingSettings: hide wfc mode preference if not editable
am: 5ea4bb2f43  -s ours

Change-Id: Iba62c6b007ad0d68d528047896dfd88961a953cd

7 years agoDO NOT MERGE ANYWHERE: WiFiCallingSettings: hide wfc mode preference if not editable
Meng Wang [Thu, 18 Aug 2016 19:19:01 +0000 (12:19 -0700)]
DO NOT MERGE ANYWHERE: WiFiCallingSettings: hide wfc mode preference if not editable

Bug: 30947921
Change-Id: I80240fbd912afa9a40cee38070c4e77d5e9d6ae9
(cherry picked from commit 4436d6fe16c3a685b839358006183d1e8d304a33)

7 years agoStop apps with Storage Managers from launching activity when disabled
Matthew Fritze [Tue, 2 Aug 2016 21:39:59 +0000 (14:39 -0700)]
Stop apps with Storage Managers from launching activity when disabled

An app with a storage manager would be able to launch Manage Storage
from application settings, but when the app was disabled, the
activity would be null.

Test: In order to properly unit test this function, a large redesign is
needed in this class, and is outside the scope of this bug.

Change-Id: Ia6b78bc6761bac8b701c904a6e438bbd951b63e8
Fixes: 30457616
(cherry picked from commit 8f17fcaa1dd85c816916ffbed3f66ad80c2bbf0a)

7 years agoMerge "Fixed storage calculation when SD card is adopted as internal storage." into...
TreeHugger Robot [Fri, 19 Aug 2016 22:40:08 +0000 (22:40 +0000)]
Merge "Fixed storage calculation when SD card is adopted as internal storage." into nyc-mr1-dev

7 years agoMerge "Changing the languages drag handle as per the Material Design spec" into nyc...
Roozbeh Pournader [Fri, 19 Aug 2016 21:36:32 +0000 (21:36 +0000)]
Merge "Changing the languages drag handle as per the Material Design spec" into nyc-mr1-dev

7 years agoUpdate Jump to Camera gesture settings description text.
Doris Ling [Wed, 10 Aug 2016 17:30:05 +0000 (10:30 -0700)]
Update Jump to Camera gesture settings description text.

Change "double-tap" to "press twice" as action is performed on a button.

Fixes: 30766938

Change-Id: Idc2573e1aff3f7a38b1cb6740f68c0c086fa48da
(cherry picked from commit 559035937645a6115c50864d2c5ced43ae427ad2)

7 years agoFix caption text being cut off when text size is set to very large.
Doris Ling [Tue, 2 Aug 2016 00:04:38 +0000 (17:04 -0700)]
Fix caption text being cut off when text size is set to very large.

In landscape mode, the caption preview height is set to 100dp. When
running in tablet and setting the caption text size to Very large, 100dp
is not enough to render the complete text with all the paddings defined.
Increasing the preview height to make enough room to display the caption
text.

Change-Id: Ia45c01a16eb1829d569d71648de398d48a7e4618
Fixes: 29125201
(cherry picked from commit e797d91c83873c686000306368754e0621134d73)

7 years agoFix margin in Tap & pay -> Payment default.
Doris Ling [Mon, 1 Aug 2016 18:35:03 +0000 (11:35 -0700)]
Fix margin in Tap & pay -> Payment default.

Change PaddingLeft to PaddingStart so that it also works in RTL.

Change-Id: I649a89798d95d64e0c5da6eb1decd217ef7e98c7
Fixes: 28762436
(cherry picked from commit c51143a35ace37a8aeb3fea828dbf40f43c2b81c)

7 years agoFix crash when selecting AppInfo for uninstalled app from Recents.
Doris Ling [Mon, 1 Aug 2016 18:00:04 +0000 (11:00 -0700)]
Fix crash when selecting AppInfo for uninstalled app from Recents.

When an app is uninstalled, the corresponding app info is not removed
fromi the Recents tasks. If user selects that app info entry from the
recents tasks, it will failed to retrieve the app detail as the package
is already removed.

Add the package removed event listener in InstalledAppDetails such
that when the package has been unintalled, its app info task will also
be removed from Recents.

Change-Id: I771507f8f53017f87eda31ddef77a95e30921cbf
Fixes: 28671923

Fix app info crashes when package is uninstalled from terminal.

Move start listening to the package removed intents to onCreate()
and continue listening throughout the whole lifecycle of the activity so
that if user unintall the package in the background, it will still be
notified.

Change-Id: I889b0ea3e1245be83750d73349ed3a0f85a51783
Fixes: 28671923

Fix crash in Storage app info when the corresponding app is uninstalled
in the background.

1. Move the handling for package removal from InstalledAppDetails to
AppInfoBase so that all app info subclass will now finish
correspondingly if the package is uninstalled.
2. In InstalledAppDetails, when handling package removal, will also
finish the app info fragment that it starts earlier.

Change-Id: Id741e7475414045040dd0797ff3bc63ac214f400
Fixes: 27774473

7 years agoMake number in dialog highlighted
jackqdyulei [Thu, 11 Aug 2016 21:44:53 +0000 (14:44 -0700)]
Make number in dialog highlighted

Bug: 28787910

Change-Id: Idf6767156c0a3dafffb62b9a41ee81f6a9712a2f
(cherry picked from commit c54973b8d838b97f508fd519444d954fdb30dd4f)

7 years agoFix the nullpointer bug in monkey test.
jackqdyulei [Thu, 11 Aug 2016 18:12:20 +0000 (11:12 -0700)]
Fix the nullpointer bug in monkey test.

Bug: 30632031

Change-Id: I295bcc804a5e847f99577353c888caa08dc8c7ef
(cherry picked from commit a2938d2a2ff29d003b5a984e9983d854330182ef)

7 years agocan open settings with support tab by default
Salvador Martinez [Tue, 26 Jul 2016 01:16:47 +0000 (18:16 -0700)]
can open settings with support tab by default

Changes were made to the two files to allow users to provide
an argument in the intent for the settings activity. This
argument allows you to specify if you want the summary tab
or support open on startup.

Fixes: 30233920
Change-Id: I4745a0f75ea6a60a22381f5e58f2fac3836d86b9
(cherry picked from commit 2368e548e69e7331a0ea9b579cc65dd4b73b1343)

7 years agoPrevent wifi icon from disappearing
Salvador Martinez [Fri, 12 Aug 2016 17:31:43 +0000 (10:31 -0700)]
Prevent wifi icon from disappearing

Made changes to WifiSettings that customizes
the preference icon so that the icon is never
null. This greatly reduces jittering.

Bug: 29979747
Change-Id: I3d2767310513389c09a37e34674a304278f4d0de
(cherry picked from commit 47568de0037401f1f5c1d17231f9198b16c8872e)

7 years agoSettings Focus prevented from moving to pref
Salvador Martinez [Mon, 8 Aug 2016 18:06:37 +0000 (11:06 -0700)]
Settings Focus prevented from moving to pref

RecyclerView containing preferences for support
tab and summary tab are no longer focusable
so that focus is not taken by preferences when
loaded.

Bug: 30214948
Change-Id: I23e717c58b1104fd0d2f8d89b77715a7b1fbc922
(cherry picked from commit 0a9e62d3998a5bcb57c4d0390378a5cddcad5250)

7 years agoMade dialog material design compliant
Salvador Martinez [Mon, 15 Aug 2016 23:59:30 +0000 (16:59 -0700)]
Made dialog material design compliant

modified layout file to get the correct
padding and layout as described in the material
design documents.

Bug: 30709085
Change-Id: I18edf220a62228872793fb5b655b02751f38e1f5
(cherry picked from commit cdb0f56db8332215cdf52b00169a7e34cb8dbee5)

7 years agoDisabled BSM mode switch when plugged in
Salvador Martinez [Mon, 8 Aug 2016 18:06:37 +0000 (11:06 -0700)]
Disabled BSM mode switch when plugged in

Battery Saver mode can no longer be toggled
when the device is plugged in. Additionaly,
A content description was added to the switch
so that talkback says something when it is single
tapped.

Bug: 30083279
Change-Id: Id901598dbe13c443cae0b32769a2e3ef50428c08
(cherry picked from commit b9ab480a29205714d34de8f66d67f55a49ff04ba)

7 years agoExtend conditional button width so it has more click area.
Fan Zhang [Tue, 16 Aug 2016 01:31:55 +0000 (18:31 -0700)]
Extend conditional button width so it has more click area.

Bug: 30822058
Change-Id: I88a88c7807309741113e4b5557686c08261eb5d0
(cherry picked from commit 40b56b4c15f3b5e6984902d0fe267494dbe8ead2)

7 years agoImport translations. DO NOT MERGE
Bill Yi [Fri, 19 Aug 2016 14:39:53 +0000 (07:39 -0700)]
Import translations. DO NOT MERGE

Change-Id: I0efafca736424685e687ac6f08884fdc5e69e88d
Auto-generated-cl: translation import

7 years agoMerge "WiFiCallingSettings: hide wfc mode preference if not editable" into nyc-mr1-dev
TreeHugger Robot [Thu, 18 Aug 2016 21:59:16 +0000 (21:59 +0000)]
Merge "WiFiCallingSettings: hide wfc mode preference if not editable" into nyc-mr1-dev

7 years agoDo not allow apps to cause Bluetooth to be discoverable forever
Ajay Panicker [Thu, 18 Aug 2016 20:17:19 +0000 (13:17 -0700)]
Do not allow apps to cause Bluetooth to be discoverable forever

Trying to set a discoverable timout of 0 for Bluetooth will now
not allow bluetooth to be discoverable forever.

Bug: 28177801
Change-Id: Icfa03e2100f8e7f31415ebab39889b9ec32e6c77

7 years agoWiFiCallingSettings: hide wfc mode preference if not editable
Meng Wang [Thu, 18 Aug 2016 19:19:01 +0000 (12:19 -0700)]
WiFiCallingSettings: hide wfc mode preference if not editable

Bug: 30947921
Change-Id: I80240fbd912afa9a40cee38070c4e77d5e9d6ae9

7 years agoMerge "Display days of week in locale order." into nyc-mr1-dev
Julia Reynolds [Wed, 17 Aug 2016 16:42:25 +0000 (16:42 +0000)]
Merge "Display days of week in locale order." into nyc-mr1-dev

7 years agoLoad default data warning value instead of hardcode it.
Fan Zhang [Tue, 9 Aug 2016 23:27:54 +0000 (16:27 -0700)]
Load default data warning value instead of hardcode it.

Bug: 30898071
Change-Id: I36f3669ca07862476c778aabb1290f3ceb3afc92

7 years agoOnly show BootSounds preference if has_boot_sounds is true.
Geoffrey Pitsch [Tue, 16 Aug 2016 18:34:38 +0000 (14:34 -0400)]
Only show BootSounds preference if has_boot_sounds is true.

Defaults to false, to be overridden in device values.

Bug:30888962
Change-Id: I563b15b793f1a214598bb7b5a3d9dc9cf3af0d10

7 years agoImport translations. DO NOT MERGE
Bill Yi [Tue, 16 Aug 2016 09:31:55 +0000 (02:31 -0700)]
Import translations. DO NOT MERGE

Change-Id: Ib98e5307dd77c0295e16e465c0f12d362749ea4b
Auto-generated-cl: translation import

7 years agoFixed storage calculation when SD card is adopted as internal storage.
Felipe Leme [Mon, 8 Aug 2016 18:04:30 +0000 (11:04 -0700)]
Fixed storage calculation when SD card is adopted as internal storage.

A SD Card can be set as internal storage, in which case its total must
be added to the total internal storage size.

Prior to this change, the total internal storage size was hardcoded as
the value returned by Storage Manager.

Also fixed the storage summary total to exclude portable devices.

** Cherrypick of c53410c41148a3882673ba1a3d95dd050649ea2a **

Fixes: 30689428
BUG: 30742322

Change-Id: I1e33038eeebc91f3c525a387a97987391c10f2f9

7 years agoDon't dial any number if DIAL intent is not supported.
Fan Zhang [Mon, 15 Aug 2016 20:22:42 +0000 (13:22 -0700)]
Don't dial any number if DIAL intent is not supported.

Bug: 30868123
Change-Id: Ieb971fdd86011ef0699fdbcfec1ecce2112d0209

7 years agoMerge "Assist: Allow disabling the disclosure animation" into nyc-mr1-dev
TreeHugger Robot [Fri, 12 Aug 2016 20:28:10 +0000 (20:28 +0000)]
Merge "Assist: Allow disabling the disclosure animation" into nyc-mr1-dev

7 years agoMerge "Strings in a diclaimer dialog when turning on NFC." into nyc-mr1-dev
TreeHugger Robot [Fri, 12 Aug 2016 19:58:26 +0000 (19:58 +0000)]
Merge "Strings in a diclaimer dialog when turning on NFC." into nyc-mr1-dev