Commit Graph

1697 Commits

Author SHA1 Message Date
TreeHugger Robot
095b183889 Merge "Refactor suggestion parser." 2017-05-12 18:14:52 +00:00
Fan Zhang
e138ef1d2b Refactor suggestion parser.
Move it to a suggestions package
Wrap suggestion list with a SuggestionList class, with additional
metadata.

Bug: 37947647
Test: make RunSettingsLibRoboTests
Change-Id: I1343d76c8e9acc0d17eb00a87e7f3a86551481d8
2017-05-11 17:24:04 -07:00
Phil Weaver
36e97f0b13 Merge "Removed obsolete a11y support for ClickableSpan" into oc-dev am: f970743e15
am: 95740552e1

Change-Id: I45f181b9fe8f9e54e88006338677ea6e8a571c8c
2017-05-11 18:15:02 +00:00
Phil Weaver
95740552e1 Merge "Removed obsolete a11y support for ClickableSpan" into oc-dev
am: f970743e15

Change-Id: I75df9d3ab5abd23fa7585575786bcc0b88101bf5
2017-05-11 17:59:07 +00:00
Phil Weaver
f970743e15 Merge "Removed obsolete a11y support for ClickableSpan" into oc-dev 2017-05-11 17:12:46 +00:00
Sundeep Ghuman
f52adc124f Merge "Change Wifi Picker icons to colorControlNormal." into oc-dev am: 8680e8fc78
am: d9b31bf8b1

Change-Id: I87732de67f300194e05b039034b84e682b6ca783
2017-05-11 08:41:29 +00:00
Jason Monk
9c44459b9a Merge "Fix battery icon tint in QS during battery saver" into oc-dev am: 0b9e1e7f22
am: 04a1e6325a

Change-Id: I4aed481f190f3d43b9c86ff16885e3e833a57e6c
2017-05-11 04:16:05 +00:00
Sundeep Ghuman
d9b31bf8b1 Merge "Change Wifi Picker icons to colorControlNormal." into oc-dev
am: 8680e8fc78

Change-Id: I6d315a98637b188615c81d558fd8d910d3fb6762
2017-05-11 04:02:16 +00:00
TreeHugger Robot
8680e8fc78 Merge "Change Wifi Picker icons to colorControlNormal." into oc-dev 2017-05-11 02:19:05 +00:00
Phil Weaver
bbb6063a53 Removed obsolete a11y support for ClickableSpan
Since we now support ClickableSpan accessibility natively,
we no longer need elaborate workaround for them. The helper
had its own issues, since it meant that some TextViews were
presented completely differently to accessibility than
others (thus the bug that led me here.)

Bug: 37363351
Test: Verified that Select to Speak can now highlight the
footer text in Settings properly. There is already a CTS
test for the ClickableSpan support.

Change-Id: I5dd4fb745c2c994099ca6c3332beff9a58227359
2017-05-10 15:59:51 -07:00
Jason Monk
04a1e6325a Merge "Fix battery icon tint in QS during battery saver" into oc-dev
am: 0b9e1e7f22

Change-Id: Ib5608f431e8586eb3c79151bade78c9f3656ad51
2017-05-10 22:39:15 +00:00
Lei Yu
be5808f98f Merge "Add method to get bluetooth mac" 2017-05-10 20:42:07 +00:00
Sundeep Ghuman
6962c0cbb5 Change Wifi Picker icons to colorControlNormal.
Change-Id: I63e7e3399931790f85b62857983932b32f2e1831
Bugs: b/38001656
Test: Visual inspection of color change (open wifi settings).
2017-05-10 13:01:18 -07:00
Jason Monk
bb769059b0 Fix battery icon tint in QS during battery saver
Test: visual
Change-Id: Id844604bfe0de141563781678980da774cc87ebc
Fixes: 37433416
2017-05-10 11:23:28 -04:00
TreeHugger Robot
19e05c1059 Merge "Add first impression type suggestion framework support" 2017-05-10 01:53:37 +00:00
TreeHugger Robot
582a84640e Merge "Import translations. DO NOT MERGE" into oc-dev 2017-05-10 01:44:30 +00:00
TreeHugger Robot
f660976ebe Merge "Import translations. DO NOT MERGE" 2017-05-09 18:39:39 +00:00
Bill Yi
f609d9c6e2 Import translations. DO NOT MERGE
Change-Id: I7ca58117acda5eeef3583667d7ad5835dc601ab3
Auto-generated-cl: translation import
2017-05-09 03:08:54 -07:00
Bill Yi
f2cacbe247 Import translations. DO NOT MERGE
Change-Id: Ibbe6a521642924ca7e253520cf28be3f04affaa1
Auto-generated-cl: translation import
2017-05-09 03:03:12 -07:00
Fan Zhang
a0f8d231dc Add first impression type suggestion framework support
- category definition now supports "exclusiveExpireDays" attribute.
	- When set, the category is exclusive as long as it hasn't expired.
	  Once it expires, the category becomes a regular category.
	- If not set, the category is permanently exclusive
- For exclusive category, do not use smart suggestion dismiss rules.
  Instead, use the rule defined by suggestion itself.
- Add logic to ensure suggestions are unique, because there is nothing
  stopping suggestion to be placed in different categories.

Bug: 37947647
Test: make RunSettingsLibRoboTests -j40

Change-Id: I98126bbce6d68fcf1d739b6defc00b801075b877
2017-05-08 17:27:08 -07:00
Fan Zhang
1d392ef56b Merge "Adjust icon width to match the width with framework" into oc-dev am: 7acd87d8d0
am: 0a7dc82eb4

Change-Id: Ic5f8d6912895e1e8f3066f258695566920568ffb
2017-05-08 23:16:19 +00:00
Fan Zhang
0a7dc82eb4 Merge "Adjust icon width to match the width with framework" into oc-dev
am: 7acd87d8d0

Change-Id: I17195379a917347d10a2aa11e1788ea920cde61d
2017-05-08 23:09:44 +00:00
TreeHugger Robot
7acd87d8d0 Merge "Adjust icon width to match the width with framework" into oc-dev 2017-05-08 22:59:05 +00:00
Fan Zhang
9c8d2fbb85 Fix NPE when opening tether preference.
Change-Id: I387d340859cef1adb190e9c763d78c167f0b298b
Fix: 38105700
Test: make RunSettingsLibRoboTests
2017-05-08 17:27:45 +00:00
Jeff Sharkey
1ee1bd0764 Merge "No quota-level details for public volumes." into oc-dev am: 4566cb5756
am: da61aba219

Change-Id: I30d0d4e9a9d686fe13e71f5360683bd546d7f5c5
2017-05-07 17:54:32 +00:00
Jeff Sharkey
da61aba219 Merge "No quota-level details for public volumes." into oc-dev
am: 4566cb5756

Change-Id: Ib778a428d4f43b976b13ab21aee021bb9beb7d79
2017-05-07 17:45:36 +00:00
Jeff Sharkey
4566cb5756 Merge "No quota-level details for public volumes." into oc-dev 2017-05-07 17:38:20 +00:00
Suprabh Shukla
ca245eec17 Adding SecureTouchListener to drop suspicious touches
Added a touch listener that will drop touches if the window receiving the
touch was partly or wholly obscured by another window sitting on top of
it.

Test: N/A

Bug: 35056974
Change-Id: I4a7273bd12ae10a65c39e6b4f1c6641266dd21e4
(cherry picked from commit 395b58d6ab)
2017-05-05 21:50:26 +00:00
Suprabh Shukla
f7617cd1ea Merge "Adding SecureTouchListener to drop suspicious touches" into oc-dev
am: 7c95e968ad

Change-Id: I51173313438190befa4ad1905ae90d828faab358
2017-05-05 21:47:14 +00:00
Jeff Sharkey
829bfe8c57 No quota-level details for public volumes.
Fall back to whatever statvfs() tells us.

Test: builds, boots
Bug: 37573475
Change-Id: I713564292d41797e80860d6aa739266d9799af7f
2017-05-05 15:37:29 -06:00
Suprabh Shukla
7c95e968ad Merge "Adding SecureTouchListener to drop suspicious touches" into oc-dev 2017-05-05 21:32:18 +00:00
Fan Zhang
8a01abf592 Adjust icon width to match the width with framework
Fix: 38011653
Test: visual
Change-Id: I27ce9f12b3cd01506910e42268d71cc78695ef35
2017-05-05 17:00:54 +00:00
TreeHugger Robot
9d06e809f7 Merge "Import translations. DO NOT MERGE" 2017-05-05 12:15:49 +00:00
TreeHugger Robot
8d95e04111 Merge "Import translations. DO NOT MERGE" into oc-dev 2017-05-05 11:54:08 +00:00
Bill Yi
5336f6ec2f Import translations. DO NOT MERGE
Change-Id: I9b5ebe94df837619db36f6d104daff7637c449b5
Auto-generated-cl: translation import
2017-05-04 22:14:51 -07:00
Bill Yi
0c79fa93ef Import translations. DO NOT MERGE
Change-Id: I796d84ec456ce4f4922df47c26589c349e290266
Auto-generated-cl: translation import
2017-05-04 22:09:02 -07:00
Sundeep Ghuman
788f2d69f8 Merge "Fix an NPE that can result from a race condition." into oc-dev am: d8aa2acea3
am: 375a306fe3

Change-Id: I9974992fea4dc46283ffe1bb8ff8ec9533832648
2017-05-04 19:34:20 +00:00
Sundeep Ghuman
375a306fe3 Merge "Fix an NPE that can result from a race condition." into oc-dev
am: d8aa2acea3

Change-Id: I41bfd05eb74502a034cf1289032ce6a8c50bcbd5
2017-05-04 19:25:38 +00:00
jackqdyulei
69061e2bca Add method to get bluetooth mac
Bug: 35875420
Test: Build
Change-Id: I2b4de320a89d466752708121b7e73676e455cde9
2017-05-04 11:05:31 -07:00
Sundeep Ghuman
5c5cd7aa2b Fix an NPE that can result from a race condition.
NetworkInfo and WifiInfo are set via broadcast receiver so while in a
true stable state network info should not be null if wifi info is, this
can occur in rare instances due to a race condition. It is convention in
AccessPoint.java to always null check network info.

Bug: b/37951301
Test: runtest --path
frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/wifi/WifiTrackerTest.java

Change-Id: Ia1b357c84b961a555ec24a5b930ade35ddf8dbba
2017-05-03 22:40:16 -07:00
Suprabh Shukla
395b58d6ab Adding SecureTouchListener to drop suspicious touches
Added a touch listener that will drop touches if the window receiving the
touch was partly or wholly obscured by another window sitting on top of
it.

Test: N/A

Bug: 35056974
Change-Id: I4a7273bd12ae10a65c39e6b4f1c6641266dd21e4
2017-05-03 17:54:47 -07:00
Sundeep Ghuman
942a208f37 Merge "Fix Array Index out of bounds error." into oc-dev am: 5c05814af4
am: 7e51b8b671

Change-Id: If6a037654ff0cb5be728ef0fa70553ea9b92ff88
2017-05-03 21:42:46 +00:00
Sundeep Ghuman
7e51b8b671 Merge "Fix Array Index out of bounds error." into oc-dev
am: 5c05814af4

Change-Id: I11b957781eaab2702b3c7f1466c89ce60a5c30c8
2017-05-03 21:30:17 +00:00
TreeHugger Robot
5c05814af4 Merge "Fix Array Index out of bounds error." into oc-dev 2017-05-03 21:22:49 +00:00
Sundeep Ghuman
a0ed3e22d7 Merge "Updating network info state should return true." into oc-dev am: 703a233b03
am: 3b2ac89b9a

Change-Id: Ie80882f6d119a334065af7728ddda3867b21d4cf
2017-05-03 04:37:12 +00:00
Sundeep Ghuman
3b2ac89b9a Merge "Updating network info state should return true." into oc-dev
am: 703a233b03

Change-Id: Ib8a36b3880b65ea333a93dc4bd3ab5bca66272e7
2017-05-03 04:30:05 +00:00
Sundeep Ghuman
96a5357908 Updating network info state should return true.
Update AccessPoint.java so that network state changes return updated
equals true, so that corresponding UI elements will updated
appropriately.

Bug: b/37289220
Test: runtest --path
packages/SettingsLib/tests/integ/src/com/android/settingslib/wifi/AccessPointTest.java

Change-Id: I1bc74997227b46468ef11efbf183a95ec0d2b15f
2017-05-02 17:49:29 -07:00
Sundeep Ghuman
221327dc05 Fix Array Index out of bounds error.
This error was caused by concurrent modification of the
mPendingNotifications SparseIntArray which fell outside the
synchronization block in copyAndNotifyListeners. Now the entire
copyAndNotifyListeners is synchronized on mLock.

Bug: b/37775443
Test: runtest --path
frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/wifi/WifiTrackerTest.java

Change-Id: I19e8a4ecea5cd45122f4ca89f8ed959e500c951a
2017-05-02 16:35:23 -07:00
Daniel Nishi
4452201f7e Merge "Don't crash during app uninstall." into oc-dev am: 661b6badef
am: b9fcccb0c0

Change-Id: I96165dece81c0d04cee6e8330216f63100a5cbd3
2017-05-02 17:17:47 +00:00
Daniel Nishi
b9fcccb0c0 Merge "Don't crash during app uninstall." into oc-dev
am: 661b6badef

Change-Id: Iceab4bdd88e348c4bd4019ee1fb6c7c8b3f5baf1
2017-05-02 17:09:51 +00:00