summaryrefslogtreecommitdiffstats
path: root/src/com/android/settings/widget/ChartDataUsageView.java
Commit message (Collapse)AuthorAgeFilesLines
* Removed the no longer needed font size span flag fixGilles Debunne2012-05-041-10/+0
| | | | | | | | | | Related to bug 6448052 A text replacement (as opposed to a deletion) should (and will) not removei the EXCLUSIVE_EXCLUSIVE spans that have limits identical to the replaced range of charcters. Change-Id: Iefaeab9e5119e7223ef6800c55ff0c741976e138
* Data usage limit label font size fixedGilles Debunne2012-04-171-7/+15
| | | | | | | | | | | | | | | Bug 6326750 The font size around the text was removed when its content is replaced. This is WAI since the spans created from <font> html tags have a SPAN_EXCLUSIVE_EXCLUSIVE flag. These are removed when their length becomes 0. The bug came from a recent enforcement of this constraint. The fix is to change the flags of these AbsoluteSizeSpan spans. This CL also changes the code to avoid the creation of the int[] array. Change-Id: Ib58270bb9d1cf0c7609ba1e36d6c0cca841300db
* Migrate to @Override to remove warnings.Jeff Sharkey2012-04-091-18/+18
| | | | | | Bug: 6303344 Change-Id: I8f17edc3b12d50cedab2c5f555c63bc07d85bca2
* Auto grid lines, lower minimum, disable estimates.Jeff Sharkey2012-03-151-9/+20
| | | | | | | | | | Show automatic grid lines with power-of-two spacing, avoiding ANR when trying to render thousands of gridlines. Lower minimum chart height to 50MB to give better view of linear data. Also disable estimates rendering. Bug: 5500204, 6005240 Change-Id: Iacfed11b32c0095c9c2d08bee6a1b5e29637de98
* Linear bytes scale, time ticks on first week day.Jeff Sharkey2012-02-031-16/+44
| | | | | | | | | Move bytes to linear instead of logarithmic scale. Also render time ticks on first week day based on locale. Also enable testing of specific IMSI through setprop. Bug: 5452612, 5829693 Change-Id: I13200cf58a39bfe0ac343e1f83165e899867641b
* Unify shorthand for byte-based units.Jeff Sharkey2012-02-031-4/+3
| | | | Change-Id: I32f998b5ee1f5416c9cceafd124fd34b7433be42
* Data usage strings, sweep touches, fixes.Jeff Sharkey2011-09-251-6/+17
| | | | | | | | | | | | Change strings around limiting background data. Move limit/warning sweeps above inspection sweeps, and teach about additional neighbors on different axis. Guard against DialogFragment.show(), fix pie chart to draw edges, and remove data usage from battery UI. Bug: 5341374, 5337650, 5337385, 5319465, 5236335 Change-Id: Iea8c2a2ab405b645d85abe34a0178d4b8874cdd5
* Data usage: precise editing, restrict help, D-pad.Jeff Sharkey2011-09-131-1/+29
| | | | | | | | | | | | | | | Introduce dialogs for precise editing of network policy warning/limit values, triggered by click on sweep labels. Show up to 999MB before rounding to GB, and round to nearest 5MB value when dragging. Partial D-pad navigation around chart controls. Fix jumping when relayout during drag, and fix sweep overlap bug. When restricting data without limited networks, show dialog help to guide user towards network limit. When reloading chart data, try restoring to nearest cycle. Bug: 5289641, 5111701, 5226078 Change-Id: Ic59dee6496c480a64dc56f8534acf4d81b50bca7
* Data usage performance, bugfixes.Jeff Sharkey2011-09-121-16/+59
| | | | | | | | | | | | | | | | | Optimize launch times by removing unneeded extra work, including reloading data and tightening chart invalidation. Fix invalidation storm when sweeps overlap. Move chart history into loader instead of blocking main thread. Disable "Split 4G" mode until telephony support is ready, and combine any existing split policies. Async loading of application details. Remove alpha transitions to speed up on some hardware. Hide menus in detail mode. Delay kicking off force-poll. Fix inset padding on large devices. Bug: 5284321, 5273918, 5263056 Change-Id: I746d79c05e2a6ea97bbdbdc5d807e208328d1373
* Larger touch targets, snap to persisted value.Jeff Sharkey2011-09-081-9/+9
| | | | | | | | | | | | | Extend ListView content to screen edges, and use InsetBoundsDrawable to draw separator and divider with expected padding. Sweep touch targets are now much larger. Snap sweep to persisted value, and fix NFE when parsing label value. Bug: 5274249 Bug: 5262865 Bug: 5242857 Change-Id: Ifa0f3e622767d5b4dc85a73d6340207e6038a429
* Unify data/power layout, confirm disable, round.Jeff Sharkey2011-09-021-6/+12
| | | | | | | | | | Share consistent layout between data usage and battery usage. Show confirmation dialog before disabling mobile data. Round warning/limit sweep values to match displayed label. Suppress fade when switching data usage tabs. Bug: 5208510, 5058157, 5038589, 5252816 Change-Id: I3c76f3397445d2d3b173666a41672871df4c61af
* Data usage UI fixes; sweeps, combined history.Jeff Sharkey2011-08-281-0/+569
Fix sweep z-order so that limit are always above inspection range, and draw shadows behind sweep labels. Narrower margins for sweeps with labels; push labels to keep from overlapping. Generous touch targets on sweeps, and delegate touches to neighboring sweep if nearer. Refresh sweep layout during axis zoom, and don't allow zoom below default minimum. Let inspection sweeps move beyond valid data ranges. Draw less-frequent tick marks when working with large axis ranges. Remove Wi-Fi policies but continue showing historical data. Write NetworkPolicy if modified during read, and snapshot when async write requested. Handle combined UID histories for "Android OS." Bug: 5191421, 5092579, 5225988, 5221101, 5221065, 5221005, 5150906, 5058025 Change-Id: Id51652e8a10bb90e1345f7a8af01bd70cb8ac677