OSDN Git Service
TreeHugger Robot [Wed, 12 Jul 2017 01:57:26 +0000 (01:57 +0000)]
Merge "Add another fingerprint button not visible in landscape mode" into oc-dr1-dev
TreeHugger Robot [Wed, 12 Jul 2017 00:01:47 +0000 (00:01 +0000)]
Merge "Remove obsolete bluetooth pages" into oc-dr1-dev
Ajay Nadathur [Tue, 11 Jul 2017 18:12:47 +0000 (11:12 -0700)]
Add another fingerprint button not visible in landscape mode
bug:
63067568
Test: Manually tested and verified
Change-Id: I172bbf4c4db6cebb2cc96874f3d8d29e859b07d1
Maurice Lam [Tue, 11 Jul 2017 23:41:32 +0000 (23:41 +0000)]
Merge "Add category for wallpaper suggestion" into oc-dr1-dev
TreeHugger Robot [Tue, 11 Jul 2017 22:32:19 +0000 (22:32 +0000)]
Merge "Assist gesture title should not be translated, remove unused strings" into oc-dr1-dev
TreeHugger Robot [Tue, 11 Jul 2017 22:02:35 +0000 (22:02 +0000)]
Merge "Bind service in onCreate" into oc-dr1-dev
jackqdyulei [Mon, 10 Jul 2017 22:15:33 +0000 (15:15 -0700)]
Remove obsolete bluetooth pages
1. Remove BluetoothSettingsObsolete
2. Remove DeviceListPreferenceObsoleteFragment
3. Update master swtich, now constantly point to new page
4. Update the tests
Future cl will remove the page switch API in BluetoothFeatureProvider
Bug:
63444548
Test: Test still pass
Change-Id: I24fb5cd03cf30044edb7201426e11e0a818f0a7f
Merged-In: I24fb5cd03cf30044edb7201426e11e0a818f0a7f
TreeHugger Robot [Tue, 11 Jul 2017 21:16:32 +0000 (21:16 +0000)]
Merge "Bluetooth: mLocalAdapter should never be null" into oc-dr1-dev
TreeHugger Robot [Tue, 11 Jul 2017 20:21:01 +0000 (20:21 +0000)]
Merge "Adjust UX for toggles when active scorer is not set." into oc-dr1-dev
jackqdyulei [Mon, 10 Jul 2017 20:22:50 +0000 (13:22 -0700)]
Bind service in onCreate
This cl puts the binding to onCreate instead of constructor, so
preference controller won't bind/unbind service without registering
Lifecycle.
Bug:
62105045
Test: RunSettingsRoboTests
Change-Id: I1e60d4b6ad7270aa5d04b7ec9fae1d3200fccc5f
Merged-In: I1e60d4b6ad7270aa5d04b7ec9fae1d3200fccc5f
Kevin Chyn [Fri, 7 Jul 2017 18:22:16 +0000 (11:22 -0700)]
Assist gesture title should not be translated, remove unused strings
Bug:
63441962
Test: manual && make -j RunSettingsRoboTests
Change-Id: I8b50ad378828f30f31dbfd648c9fac62af5d9da7
Daniel Nishi [Tue, 11 Jul 2017 19:46:19 +0000 (19:46 +0000)]
Merge "Expand ASM activation warning." into oc-dr1-dev
Jack He [Tue, 11 Jul 2017 19:04:01 +0000 (12:04 -0700)]
Bluetooth: mLocalAdapter should never be null
* mLocalAdapter should never be null
* We should crash if it is ever null
Bug:
63442969
Test: make, pair Bluetooth device
Change-Id: If98f9ea0762927eb57d00224b62abf24bbec69ba
Maurice Lam [Tue, 11 Jul 2017 18:21:43 +0000 (18:21 +0000)]
Merge "Hide screen lock options button in confirm lock" into oc-dr1-dev
Daniel Nishi [Tue, 27 Jun 2017 22:09:20 +0000 (15:09 -0700)]
Expand ASM activation warning.
If the device had ASM enabled by default but still opted to disable ASM
for policy reasons, we need to start warning the user.
Change-Id: I6a296e95d00413308de3ddc565b42c5f605087e9
Fixes:
62105682
Test: Settings robotest
TreeHugger Robot [Tue, 11 Jul 2017 04:01:24 +0000 (04:01 +0000)]
Merge "Import translations. DO NOT MERGE" into oc-dr1-dev
Bill Yi [Tue, 11 Jul 2017 03:55:40 +0000 (03:55 +0000)]
Import translations. DO NOT MERGE am:
7267438b58 -s ours
am:
750540ae48 -s ours
Change-Id: Ie4b8baffb9d82f30bef5251893124152a66f8f1c
Bill Yi [Tue, 11 Jul 2017 03:47:35 +0000 (03:47 +0000)]
Import translations. DO NOT MERGE
am:
7267438b58 -s ours
Change-Id: Id5933547a1b04477e00dbef1fd88382a01e02891
TreeHugger Robot [Tue, 11 Jul 2017 03:31:06 +0000 (03:31 +0000)]
Merge "Remove unnecessary keywords" into oc-dr1-dev
Bill Yi [Tue, 11 Jul 2017 03:30:04 +0000 (03:30 +0000)]
Import translations. DO NOT MERGE
am:
f812f94216 -s ours
Change-Id: Id14fbf7f7822ce74772c66410f9bd69e9ecba388
Kevin Chyn [Tue, 11 Jul 2017 00:54:04 +0000 (17:54 -0700)]
Remove unnecessary keywords
Fixes:
63544783
Test: make -j RunSettingsRoboTests && manual
Change-Id: I6f6cb8aff365174edb7cd22f18cbc1b7e7ba5b4a
Maurice Lam [Tue, 11 Jul 2017 01:15:10 +0000 (18:15 -0700)]
Hide screen lock options button in confirm lock
Hide the screen lock options button in the confirmation stage of
SetupChooseLockPassword, so the user cannot skip out of that screen
while the screen lock is being saved.
Test: Manual
Bug:
63526104
Change-Id: I8ee8938f3ddcd9f0ff3b1812fcae667eddaf09ab
Bill Yi [Tue, 11 Jul 2017 00:16:10 +0000 (17:16 -0700)]
Import translations. DO NOT MERGE
Change-Id: Ifbee1421f45d2cb6f3d5c533e5c4e9a2735afa10
Auto-generated-cl: translation import
Exempt-From-Owner-Approval: translation import
TreeHugger Robot [Tue, 11 Jul 2017 00:00:08 +0000 (00:00 +0000)]
Merge "Update notification redaction interstitial according to spec" into oc-dr1-dev
Bill Yi [Mon, 10 Jul 2017 23:49:52 +0000 (16:49 -0700)]
Import translations. DO NOT MERGE
Change-Id: Ifb8d0e63a8150656a55bb1b2adf5748c75a10224
Auto-generated-cl: translation import
Exempt-From-Owner-Approval: translation import
Bill Yi [Mon, 10 Jul 2017 23:23:41 +0000 (16:23 -0700)]
Import translations. DO NOT MERGE
Change-Id: I827ed97b3afd80dd3e834b3cf686c6b1d4a65d25
Auto-generated-cl: translation import
Exempt-From-Owner-Approval: translation import
TreeHugger Robot [Mon, 10 Jul 2017 23:23:13 +0000 (23:23 +0000)]
Merge "Add location as a Inline list payload" into oc-dr1-dev
Ajay Nadathur [Mon, 10 Jul 2017 21:21:10 +0000 (14:21 -0700)]
Update notification redaction interstitial according to spec
bug:
38395294
Test: Manually tested and verified
Change-Id: Iddd53af604c65bb8e40c081f9538535bd3043ad4
TreeHugger Robot [Mon, 10 Jul 2017 21:23:15 +0000 (21:23 +0000)]
Merge "Support multi line title for switch and edittext preferences" into oc-dr1-dev
Fan Zhang [Mon, 10 Jul 2017 19:08:04 +0000 (12:08 -0700)]
Support multi line title for switch and edittext preferences
Change-Id: I898288a1e8c9d3bedae3f5f3269d4aa0fd2308f6
Fix:
63509156
Test: visual
Matthew Fritze [Fri, 7 Jul 2017 15:04:42 +0000 (08:04 -0700)]
Add location as a Inline list payload
The inline payload is added to security settings because
security settings indexes the setting with the key
"location" which corresponds with the correct
PreferenceController, LocationPreferenceController.
However, we suppress the Location search result, so to
avoid confusion later, we don't include the ResultPayload
in the search indexing.
Bug:
62022517
Test: make RunSettingsRoboTests
Change-Id: Ica9b775fe7b43259e651f95b079b8cccb29d0ea8
Merged-In: Ic5515d38064498ae908f4cefedfeb3c2a2af449c
jackqdyulei [Mon, 10 Jul 2017 18:00:05 +0000 (11:00 -0700)]
Init BatteryUtils in constructor
In this case we won't have the NPE.
Bug:
63526637
Test: RunSettingsRoboTests
Change-Id: I20375e535ba07deddacf74052f31476e0cb28e56
Christine Franks [Mon, 10 Jul 2017 13:51:39 +0000 (13:51 +0000)]
Merge "Prevent clipping of SeekBar thumb" into oc-dr1-dev
TreeHugger Robot [Sat, 8 Jul 2017 23:01:36 +0000 (23:01 +0000)]
Merge "Adding key to individual entries in ManagedServiceSettings so that it can be linked using an intent. Also updating the icon loading logic so that it handles AdaptiveIcons properly." into oc-dr1-dev
Sunny Goyal [Fri, 7 Jul 2017 13:40:27 +0000 (06:40 -0700)]
Adding key to individual entries in ManagedServiceSettings so that it can
be linked using an intent.
Also updating the icon loading logic so that it handles AdaptiveIcons
properly.
Test: Manually tested on device
Bug:
63418030
Change-Id: I4d818956f2fa0585300d4dfb95ad7a16fe8882d5
Merged-In: I3059e3a562a593bc425d4e778be052ac014a7002
Maurice Lam [Sat, 8 Jul 2017 01:21:29 +0000 (18:21 -0700)]
Add category for wallpaper suggestion
Add PERSONALIZE category to wallpaper suggestion so it would be shown
during deferred setup.
Test: Manual
Bug:
62019610
Change-Id: Id3d9d926db298fba77dc472ae32574fe8855f962
TreeHugger Robot [Fri, 7 Jul 2017 23:52:58 +0000 (23:52 +0000)]
Merge "Update summary for "Voice Calls"" into oc-dr1-dev
TreeHugger Robot [Fri, 7 Jul 2017 23:35:08 +0000 (23:35 +0000)]
Merge "Increase suggestion/condition card width." into oc-dr1-dev
TreeHugger Robot [Fri, 7 Jul 2017 22:46:05 +0000 (22:46 +0000)]
Merge "Duplicate ambient display setting in battery settings." into oc-dr1-dev
TreeHugger Robot [Fri, 7 Jul 2017 22:39:20 +0000 (22:39 +0000)]
Merge "Add public intent filters to indexing" into oc-dr1-dev
jackqdyulei [Fri, 7 Jul 2017 20:05:46 +0000 (13:05 -0700)]
Update summary for "Voice Calls"
Change it from "Screen usage 2m" to "2m", since this is not a screen
usage. This cl has effect on all non-app batterySipper.
Bug:
63443732
Test: RunSettingsRoboTests
Change-Id: I027b3234bd7b56738ab31c5dfbc0d8bd7f19186e
Ajay Kumar Nadathur Sreenivasan [Fri, 7 Jul 2017 21:29:07 +0000 (21:29 +0000)]
Merge "Overlapping text over fingerprint animation" into oc-dr1-dev
TreeHugger Robot [Fri, 7 Jul 2017 21:12:58 +0000 (21:12 +0000)]
Merge "Get rid of spurious gear icon in BT details page" into oc-dr1-dev
Andrew Sapperstein [Fri, 7 Jul 2017 18:02:00 +0000 (11:02 -0700)]
Duplicate ambient display setting in battery settings.
Also fixed a bug where ambient display was duplicated
in search results.
Change-Id: I71e8d9ff12e59ad7b9eb309d1093df1ba67abaae
Merged-In: Iacdb53c70e90f8240da1ed9acec7e382ed1df5de
Fixes:
62298578
Test: robotests
TreeHugger Robot [Fri, 7 Jul 2017 19:31:47 +0000 (19:31 +0000)]
Merge "Create BatterySaverReceiver" into oc-dr1-dev
Ajay Nadathur [Fri, 7 Jul 2017 00:03:11 +0000 (17:03 -0700)]
Overlapping text over fingerprint animation
bug:
63122688
Test: Manually tested and verified using smallest & largest display
settings
Change-Id: I03a6ab380c8d611b69f0b817788ff1f34b47e19d
Antony Sargent [Fri, 7 Jul 2017 18:09:24 +0000 (11:09 -0700)]
Get rid of spurious gear icon in BT details page
The problem is that we were calling done() on the EntityHeaderController
and passing false for whether to rebind the action buttons, which means
we were getting the default behavior including a visible gear
icon. Passing true to request rebinding causes that icon to be hidden.
Bug:
63405635
Test: make RunSettingsRoboTests
Change-Id: I031f4a2d176ff3be025cc2675d7026a679936b03
Stephen Chen [Fri, 23 Jun 2017 22:14:14 +0000 (15:14 -0700)]
Adjust UX for toggles when active scorer is not set.
This change fixes two issues: when wakeup is not available, update the
number of items to show above the fold in wifi preferences. When scorer
is not set, grey out wakeup toggle and set summary to reflect the
status.
Bug:
62410973
Bug:
62343859
Test: make RunSettingsRoboTests -j40
Merged-In: I5f4131c6a86eab6c0fb03ea2b5101ba107a9189f
Change-Id: I5f4131c6a86eab6c0fb03ea2b5101ba107a9189f
TreeHugger Robot [Fri, 7 Jul 2017 17:39:11 +0000 (17:39 +0000)]
Merge "Search bar polish" into oc-dr1-dev
Ajay Kumar Nadathur Sreenivasan [Fri, 7 Jul 2017 17:30:15 +0000 (17:30 +0000)]
Merge "Screen lock type metrics are not reported if user goes back" into oc-dr1-dev
jackqdyulei [Wed, 5 Jul 2017 22:49:16 +0000 (15:49 -0700)]
Create BatterySaverReceiver
This cl elicits BatterySaverReceiver that listen to the change about
battery state and battery saver state.
BatterySaverController and BatterySaverSettings will use this receiver
to update the UI.
Bug:
32410757
Test: RunSettingsRoboTests
Change-Id: Ia92c6776985b89fe6a8d5b8d80898e502942b9b5
Merged-In: Ia92c6776985b89fe6a8d5b8d80898e502942b9b5
TreeHugger Robot [Fri, 7 Jul 2017 16:52:44 +0000 (16:52 +0000)]
Merge "AOD Settings: Add battery usage warning" into oc-dr1-dev
TreeHugger Robot [Fri, 7 Jul 2017 15:45:55 +0000 (15:45 +0000)]
Merge "Import translations. DO NOT MERGE" into oc-dr1-dev
Adrian Roos [Fri, 7 Jul 2017 14:30:04 +0000 (16:30 +0200)]
AOD Settings: Add battery usage warning
Change-Id: I14946046c1541e8092ed2b492867730713e3e1ed
Fixes:
33279975
Test: Open Settings > Display. Verify that always on strings contain the increased battery usage warning.
Bill Yi [Fri, 7 Jul 2017 10:12:06 +0000 (03:12 -0700)]
Import translations. DO NOT MERGE
Change-Id: I6c862c42b058adf710c961f7c42d108fbf8caf01
Auto-generated-cl: translation import
Exempt-From-Owner-Approval: translation import
TreeHugger Robot [Fri, 7 Jul 2017 03:43:12 +0000 (03:43 +0000)]
Merge "Fix Assist Gesture settings check" into oc-dr1-dev
Philip Quinn [Sun, 2 Jul 2017 04:24:10 +0000 (21:24 -0700)]
Add SeekBarPreference.getMax().
Bug:
63047816
Test: make -j
Change-Id: I416d044fa32f3aed32c1e6239baf9c57652bca2e
TreeHugger Robot [Fri, 7 Jul 2017 02:17:15 +0000 (02:17 +0000)]
Merge "Reduce spacing in condition cards." into oc-dr1-dev
TreeHugger Robot [Fri, 7 Jul 2017 02:13:37 +0000 (02:13 +0000)]
Merge "Update Anomaly detection framework" into oc-dr1-dev
TreeHugger Robot [Fri, 7 Jul 2017 02:02:51 +0000 (02:02 +0000)]
Merge "Use config_headlineFontFamily for password screens." into oc-dr1-dev
Christine Franks [Fri, 7 Jul 2017 01:37:41 +0000 (18:37 -0700)]
Prevent clipping of SeekBar thumb
Bug:
63406092
Test: manual - purely a UI change
Change-Id: I1fbf7cba6d3c172a7e04de36a665dcf78b629f00
TreeHugger Robot [Fri, 7 Jul 2017 01:26:48 +0000 (01:26 +0000)]
Merge "Update the gesture video container background color." into oc-dr1-dev
TreeHugger Robot [Thu, 6 Jul 2017 23:50:28 +0000 (23:50 +0000)]
Merge "Change empty apn type in user entered APN to non-read-only types." into oc-dr1-dev
TreeHugger Robot [Thu, 6 Jul 2017 23:46:39 +0000 (23:46 +0000)]
Merge "Add a confirmation dialog when forgetting BT device" into oc-dr1-dev
Andrew Sapperstein [Thu, 6 Jul 2017 23:34:58 +0000 (16:34 -0700)]
Search bar polish
Updated main page text color, text size, and search bar height.
Also updated results page text size.
Change-Id: Ic4a390136b854741a73e99431b8dd9452871dd2c
Fixes:
63397599
Fixes:
63394285
Test: robotests and manual
Doris Ling [Thu, 6 Jul 2017 22:23:00 +0000 (15:23 -0700)]
Reduce spacing in condition cards.
- decrease space between title and summary by 12dp.
- decrease space below button by 7dp.
Change-Id: I9caa0507b89367960fb94bf4af07cdd5dd1dbedf
Fix:
63394014
Test: Visual
Matthew Fritze [Thu, 29 Jun 2017 16:54:20 +0000 (09:54 -0700)]
Add public intent filters to indexing
Adds a public intent action to the index so that intents
can be created for callers outside of settings.
Change-Id: I9f87263f213b6de40542e8735c931ee1f0d82094
Fixes:
63136008
Test: make RunSettingsRoboTests
jackqdyulei [Thu, 29 Jun 2017 21:20:46 +0000 (14:20 -0700)]
Update Anomaly detection framework
This cl make it could have multiple actions for each anomaly type.
This includes:
1. Add field "targetSdkVersion", "bgRestrictionEnabled" in Anomaly
2. Add new action which includes "force stop" and "background check"
3. Add "sdkVersion" and "bgRestrictionEnabled" method in BatteryUtils
4. Update BackgroundCheckAction to check sdkVersion first
5. Update serveral tests and add new test
Bug:
63037765
Test: RunSettingsRoboTests
Change-Id: Iea7a131ee57d501f7737ae4a3ba672d948d05cd8
Doris Ling [Thu, 6 Jul 2017 22:33:55 +0000 (15:33 -0700)]
Increase suggestion/condition card width.
- decrease the padding for the suggestion/condition container so that
the card width matches that of the search box above.
Change-Id: I24aca5290ae5f7f457b95dbd51e5b8420327c863
Fix:
63395021
Test: visual
TreeHugger Robot [Thu, 6 Jul 2017 22:08:51 +0000 (22:08 +0000)]
Merge "Hide skip button when setting backup lock screen" into oc-dr1-dev
TreeHugger Robot [Thu, 6 Jul 2017 21:58:33 +0000 (21:58 +0000)]
Merge "Add util method to get battery stats" into oc-dr1-dev
Daniel Nishi [Thu, 6 Jul 2017 21:58:01 +0000 (21:58 +0000)]
Merge "Shrink the music icon." into oc-dr1-dev
Ajay Nadathur [Wed, 5 Jul 2017 20:17:30 +0000 (13:17 -0700)]
Screen lock type metrics are not reported if user goes back
bug:
63116381
Test: Manually tested and verified that metrics are passed back to
setupwizard. Also added robolectric tests
Change-Id: I9d095754addc34121a2a0a12b3e5d1479ff15a78
Daniel Nishi [Thu, 6 Jul 2017 21:50:49 +0000 (21:50 +0000)]
Merge "Update the Storage icons." into oc-dr1-dev
Andrew Sapperstein [Thu, 6 Jul 2017 21:30:28 +0000 (14:30 -0700)]
Use config_headlineFontFamily for password screens.
These screens are used whenever setting or confirming the
lockscreen PIN or password. Set them to a consistent textSize (24sp)
and a consistent fontFamily.
Would have set the fontFamily in the style, but unfortunately
setInputType is called on the TextViews after inflation which blows
away the fontFamily. Instead, we set it in code right after that
call.
Change-Id: I77c3f94e2b1ce6d1f19697394c5caa09aac423b0
Fixes:
62873478
Test: manual
Antony Sargent [Fri, 30 Jun 2017 22:23:01 +0000 (15:23 -0700)]
Add a confirmation dialog when forgetting BT device
This adds a confirmation dialog for when you hit the "Forget" button to
unpair with a device from the Bluetooth device details page.
Bug:
37955181
Test: make RunSettingsRoboTests
Change-Id: I7643ed09bf363c48078d6de8a47583bf91fc7729
Fan Zhang [Wed, 5 Jul 2017 23:12:00 +0000 (16:12 -0700)]
Fix a crash in AppInfoBase where appEntry is invalid
Change-Id: Ifbea967405ddc1e1bd069ddeab170bc67b1835b4
Fix:
63178369
Test: robotests
TreeHugger Robot [Thu, 6 Jul 2017 17:31:29 +0000 (17:31 +0000)]
Merge "Check non-indexable keys for raw data" into oc-dr1-dev
Daniel Nishi [Thu, 6 Jul 2017 17:04:53 +0000 (17:04 +0000)]
Merge "Unify storage calculations." into oc-dr1-dev
Matthew Fritze [Thu, 6 Jul 2017 01:15:43 +0000 (18:15 -0700)]
Check non-indexable keys for raw data
Change-Id: I182f6757cae0ccdd07c2c38ea0f02bd4998f79be
Fixes:
63360455
Test: make RunSettingsRoboTests
Alex Kulesza [Thu, 6 Jul 2017 14:02:26 +0000 (14:02 +0000)]
Merge "Render enhanced battery projection curves." into oc-dr1-dev
TreeHugger Robot [Thu, 6 Jul 2017 06:13:55 +0000 (06:13 +0000)]
Merge "Add a developer offload for tethering hardware acceleration." into oc-dr1-dev
TreeHugger Robot [Mon, 19 Jun 2017 23:21:12 +0000 (23:21 +0000)]
Change empty apn type in user entered APN to non-read-only types.
Test: Manually added APN and verified read-only and non-wildcardable
types are not included
Bug:
38186417
Change-Id: I07bcf1c2a950a1257446f0a7beb602fed79423b3
Daniel Sheng [Fri, 30 Jun 2017 20:14:57 +0000 (13:14 -0700)]
Removed camera lift gesture settings UI.
Bug:
37154489
Test: make + manual + unit tests
Change-Id: Ifefa07d0e8e0de19d78303352c6f0e01dc1c52ab
Merged-In: I79e70dea12a65fefcb06aca3fd1891a95d856626
Daniel Sheng [Thu, 6 Jul 2017 03:19:57 +0000 (03:19 +0000)]
Merge "Added suggestions for gestures." into oc-dr1-dev
Lorenzo Colitti [Tue, 4 Jul 2017 15:29:44 +0000 (00:29 +0900)]
Add a developer offload for tethering hardware acceleration.
Bug:
32163131
Test: builds
Change-Id: Icca7bbd2bdd572b1328e7d0fecb663405b115fe1
Jack He [Wed, 28 Jun 2017 19:08:55 +0000 (12:08 -0700)]
Bluetooth: Use string in remote device summary
* Use String in connected device summary instead of resource id
* This allows dynamic strings to be built by CachedBluetoothDevice
such as ones involve battery level percentages
Bug:
35874078
Test: make, unit test, test with Bluetooth devices
Change-Id: I583eac73280ca17387b215a4e7095e27de399998
Daniel Sheng [Thu, 8 Jun 2017 16:24:30 +0000 (09:24 -0700)]
Added suggestions for gestures.
Bug:
30986021
Test: manual + make RunSettingsRoboTests + adb shell am instrument -w
com.android.settings.tests.unit /android.support.test.runner.AndroidJUnitRunner
Change-Id: I7337a141cb21e5a1399aaca05ec1facd8629577b
Merged-In: I7aed110c81ca2fb6b90e2f359b4bb941c02bc1c3
Alex Kulesza [Thu, 29 Jun 2017 16:26:59 +0000 (12:26 -0400)]
Render enhanced battery projection curves.
BatteryInfo now supplies standard linear or enhanced projection curves,
depending on the provider.
Note that the semantics of parsing have changed slightly in that the
value of endTime supplied to onParsingStarted is now the end time of the
historical data and does not include the projection. However, as far as
I can see there is no existing code that depends on the parsing
functionality besides BatteryInfo itself.
Also slightly optimizes the updating behavior of the UsageGraph, since
we are now reconfiguring it multiple times.
Bug:
38400320
Test: make RunSettingsRoboTests, manual on device
Change-Id: Ieff26d31356b34bb38e49f54f979fd80549864b2
Alex Kulesza [Wed, 5 Jul 2017 21:43:11 +0000 (17:43 -0400)]
Make utility methods static.
BatteryUtils.convertUsToMs and .convertMsToUs should be static, and now
they are.
Bug:
63347148
Test: make RunSettingsRoboTests
Change-Id: If652e2d3e1260df9a933805d7da670fbb26b2c25
Antony Sargent [Wed, 5 Jul 2017 22:49:04 +0000 (22:49 +0000)]
Merge "Fix Bluetooth device details crash on screen rotation" into oc-dr1-dev
TreeHugger Robot [Wed, 5 Jul 2017 22:21:40 +0000 (22:21 +0000)]
Merge "Use EntityHeaderController in WifiDetailPreferenceController." into oc-dr1-dev
Daniel Nishi [Thu, 29 Jun 2017 19:30:26 +0000 (12:30 -0700)]
Shrink the music icon.
The icons on the ManageApplications screen are 42dp by default. By
pushing a big inset, we can shrink it to be appropriate.
Change-Id: Iadf9f9f708c7469f42559f88626789127f865543
Fixes:
62548746
Test: Manual
Matthew Fritze [Fri, 23 Jun 2017 01:47:38 +0000 (18:47 -0700)]
Add util method to get battery stats
Bug:
62271803
Test: make RunSettingsRoboTests
Change-Id: I91089c24c7cd5f7329be052c50859e049e70e9b1
Daniel Nishi [Wed, 28 Jun 2017 21:41:18 +0000 (14:41 -0700)]
Update the Storage icons.
Change-Id: I10648df80566629c09d03211ed642516595e4b22
Fixes:
62548249
Test: Manual
Daniel Nishi [Wed, 5 Jul 2017 20:40:41 +0000 (20:40 +0000)]
Merge "Storage item preferences should be 72dp tall." into oc-dr1-dev
TreeHugger Robot [Wed, 5 Jul 2017 20:38:52 +0000 (20:38 +0000)]
Merge "Update the method about foreground time." into oc-dr1-dev
TreeHugger Robot [Wed, 5 Jul 2017 20:21:46 +0000 (20:21 +0000)]
Merge "Make items in Advanced battery page unclickable." into oc-dr1-dev
Sundeep Ghuman [Thu, 29 Jun 2017 02:07:02 +0000 (19:07 -0700)]
Use EntityHeaderController in WifiDetailPreferenceController.
Switch to the Entity header to bring parity in design of
WifiNetworkDetailsFragment and other Settings pages.
Bug: b/
37252029
Test: make -j40 RunSettingsRoboTests
Change-Id: Ib11f3d37eac4dca08fa61eef67910cd328682bac
Daniel Nishi [Mon, 26 Jun 2017 20:42:36 +0000 (13:42 -0700)]
Unify storage calculations.
Due to one calculation using longs and the other using doubles, there
were situations where the percentage was off-by-one between the two
places.
By changing both places to now use doubles to calculate percentages, the
numbers should be unified.
Change-Id: I4f4ed19326562e198273adc60a1593c7d1a6b6a7
Fixes:
37923610
Test: Manual