Commit Graph

301953 Commits

Author SHA1 Message Date
TreeHugger Robot
6fc806b56c Merge "Fix casting issue in use of ICU Measures" 2016-12-20 19:31:10 +00:00
Daniel Nishi
77a78c6f44 Augment diskstats dumpsys to have categorization and apps.
This adds a new service which opportunistically saves the
file system categorization information and the app sizes. This
information is fetched during a diskstats dumpsys call from a file
stored on the disk. This allows us to keep the dumpsys running quickly
while adding information which is costly to calculate.

Bug: 32207207
Test: System server instrumentation tests
Change-Id: Id59e84b9ad38a9debf3e46e5133ef06f7353829d
2016-12-20 11:22:44 -08:00
Brad Ebinger
9ab43212ca Adds custom call forwarding block while roaming carrier config key
Adds support for supplying custom call forwarding prefixes in the carrier
config. When a prefix supplied in the carrier config is matched to the number
being dialed, we do not complete the call and instead show an error message
on the dialer UI.

Test: Manual
Bug: 30458052
Change-Id: I3149a565b0fd631d69ab0c0f27be509237b80177
2016-12-20 19:14:01 +00:00
Chris Craik
f7505803ea Fast-path for ViewGroup#invalidateChild, invalidate tests
Bug: 33460152
Test: new tests passing

We spend a lot of time computing a damage rectangle that the ViewRootImpl ignores with HW
acceleration. Skip all that with a fast path.

Change-Id: Ia7447d1242cd5279be2ce34eead0cd813baffd33
2016-12-20 11:04:30 -08:00
Sundeep Ghuman
c63d5b0c74 Define the calculateRankingScore method and Key.
Define the key to be used to store the rankingScoreOffset inside the
ScoredNetwork bundle. Implement a platform API method to calculate the
ranking score for a given rssi.

Bug: 33049302
Test: Unit tests
Change-Id: Ia3fea2197d7c211a2313fced8713d79d8d5f4f6e
Topic: ScoredNetworkRankingScore
2016-12-20 11:02:29 -08:00
Amin Shaikh
14965357b7 Make WifiConfiguration#meteredHint a @SystemApi
This allows NetworkRecommendationProviders to set this field on
returned WifiConfigurations.

Test: make
Bug: 33760009
Change-Id: I4d34272a1fb8d88bcc56cf4f00d8beadd06ac603
2016-12-20 11:00:34 -08:00
Sergei Vasilinetc
99418fb205 Merge "Throw exception if getPixel(s) is called on a hardware bitmap" 2016-12-20 18:56:31 +00:00
Sergei Vasilinetc
3029730399 Merge "Add docs about Config.HARDWARE in Bitmap.writeToParcel method" 2016-12-20 18:55:21 +00:00
Sean Stout
b69b744e07 Renamed "Demo mode" to "System UI demo mode"
Test: Manually verified string in "Developer options"
Bug: 33694332
Change-Id: Ib47adda7e2637c8f3c0cee5f64ed7054e5b3c6f1
2016-12-20 10:52:15 -08:00
Alex Klyubin
be81b50b6e Merge "Permit 65535 byte ZIP comments and empty Central Directory"
am: f420b91e26

Change-Id: Ic178cdd9043c171f2f51643212e34b642657abe9
2016-12-20 18:45:57 +00:00
Amin Shaikh
e2e395e146 Add Wi-Fi quality badge icons.
Test: make
Bug: 33705924
Change-Id: I6ae9fab369151e6c2d3769d7ba4a20103368f0a0
2016-12-20 10:42:25 -08:00
Daniel Nishi
a59272eb5e Add an app size collector.
The app collector gets a list of app sizes for packages on a given
storage volume. This information will be exposed as part of an
expansion of the diskstats dumpsys.

When the collector runs, it sets up a handler on a BackgroundThread
which asks the PackageManager for the package sizes for all apps and
all users. The call for the information is blocked using a
CompletableFuture until the call times out or until we've received
all of the package stats. After the stats are all obtained, the
future completes.

Bug: 32207207
Test: System server instrumentation tests
Change-Id: I3a27dc4410effb12ae33894b561c02a60322f7b0
2016-12-20 10:35:51 -08:00
Alex Klyubin
f420b91e26 Merge "Permit 65535 byte ZIP comments and empty Central Directory" 2016-12-20 18:33:29 +00:00
phweiss
923d2cc9d9 DO NOT MERGE Show notification when network logging is enabled
A notification is shown after network logging is enabled
and after the next three reboots that are at least one day apart.

Clicking it sends an intent to quick settings to shown its device monitoring
dialog.

Cherry-picked from master.

Bug: 29748723
Bug: 33126577

(cherry-picked from commit a0cb251ca6)

Test: Manual, CTS-Verifier tests will be added later
Change-Id: I2bf517bd27ab23ad3f66270602dbf062efab8cbb
2016-12-20 19:23:58 +01:00
Selim Cinek
f3fa68586f We should schedule an update when the expansion changes
Since the shade is invisible when collapsed, we need
to update once in order to get the opening animation
working.

Change-Id: Ife0c2f704843b7916c33a5ee8e8e205f832fc631
Test: add notifications, open shade.
Fixes: 33773678
2016-12-20 18:21:34 +00:00
Chad Brubaker
d5115103fc Merge "Require targetSdk >= O for ephemeral installs" 2016-12-20 18:19:28 +00:00
Philipp Weiß
a2461343b5 Merge "DO NOT MERGE Rework Device Monitoring Dialog in Quicksettings" into nyc-mr2-dev am: 4d3aa8e8ab
am: 4e02b89a1e  -s ours

Change-Id: I88665a96717871a0a989ae69a840e1af62ce5b11
2016-12-20 18:18:19 +00:00
phweiss
6b3624bfb8 DO NOT MERGE Rework Device Monitoring Dialog in Quicksettings am: 2f512047c2
am: ccf8d9e9cf  -s ours

Change-Id: I02b79b28d9d25834f6fe2e67b3cbea94bb0fc084
2016-12-20 18:17:16 +00:00
Philipp Weiß
4e02b89a1e Merge "DO NOT MERGE Rework Device Monitoring Dialog in Quicksettings" into nyc-mr2-dev
am: 4d3aa8e8ab

Change-Id: Ibba35390892874fc32c0f9cebd50077b617e5e96
2016-12-20 18:06:53 +00:00
phweiss
ccf8d9e9cf DO NOT MERGE Rework Device Monitoring Dialog in Quicksettings
am: 2f512047c2

Change-Id: If56eee8a498435aaa059990eceea9555897e11b9
2016-12-20 18:06:47 +00:00
Daniel Nishi
3c7febdbd8 Add a file collector to the platform.
The file collector takes in a file path and recursively
classifies and provides the amount of storage provided by
each classification. This information can be surfaced in
Settings or to fulfill storage telemetry calculations.

Bug: 32207207
Test: System server instrumentation tests
Change-Id: Iff03260859cd4bbd11e7d60b1825115aad540d48
2016-12-20 10:03:32 -08:00
Andrew Sapperstein
325780b3f8 Merge "Add flags to send package name for feedback." 2016-12-20 18:00:33 +00:00
Philipp Weiß
4d3aa8e8ab Merge "DO NOT MERGE Rework Device Monitoring Dialog in Quicksettings" into nyc-mr2-dev 2016-12-20 17:57:37 +00:00
TreeHugger Robot
007820bbe6 Merge "2D Recents: Fix another typo in a dimension (fixes a layout glitch)" 2016-12-20 17:56:53 +00:00
Peeyush Agarwal
e2c893fc2d Fix keyboard shortcut display layout
The keyboard_shortcuts_keyword TextView in keyboard_shortcut_app_item
layout was wrap_content making it take all the space in case the text is
too long. The TextView is now rendered indide a KeyboardShortcutsLayout
which extends the RelativeLayout and sets the maxWidth of
keyboard_shortcuts_keyword TextView to 70% when onMeasure is called with
EXACT MeasureSpec.

Bug: 32980732
Fixes: 32980732
Test: Manual
Change-Id: I1250802af0a4ad011e842318384ca6fe5686989c
2016-12-20 17:53:20 +00:00
Lei Yu
6b33e20879 Merge "Change color selector for segment button text" 2016-12-20 17:51:36 +00:00
Lei Yu
241d2f6f30 Merge "Remove hardcode color for alarm group" 2016-12-20 17:50:17 +00:00
Felipe Leme
10bb9b5639 Added a deprecation warning to AM.requestBugReport()
BUG: 33776167
BUG: 26187278

Test: not needed

Change-Id: I2cfc1a403ad74740e3315bba96f7b124c59c9815
2016-12-20 09:17:52 -08:00
Tony Mak
b5670252ae DO NOT MERGE: Cross profile candidate should be considered am: ff11122ddc
am: 83dcc26065  -s ours

Change-Id: I57fe241a3a1aa961eee8b04799600cbfc7e619e0
2016-12-20 17:02:16 +00:00
Tony Mak
83dcc26065 DO NOT MERGE: Cross profile candidate should be considered
am: ff11122ddc

Change-Id: I9de28d980021579d70d85193b1994ddca042d4fa
2016-12-20 16:57:44 +00:00
Tony Mak
ff11122ddc DO NOT MERGE: Cross profile candidate should be considered
Bug: 32547783

Fixed the regression introduced in 8e2d9d1d90

Test: Manual test - Open a map link in work calendar, personal map is shown as an option.

Change-Id: If5651b5e09cf1916813e8f91dbdcdf53f9119ef2
(cherry picked from commit 9f2c93663c)
2016-12-20 16:43:45 +00:00
Selim Cinek
23e117a50e Merge "Fixed a bug where the shelf was clickable outside of keyguard" 2016-12-20 16:24:07 +00:00
phweiss
2f512047c2 DO NOT MERGE Rework Device Monitoring Dialog in Quicksettings
If a device owner is active, the layout is changed from a
standard AlertDialog with only one string to a custom dialog
that includes information on Device Owners, and VPN and Network Logging,
if enabled.

Cherry-picked from master and modified to not rely on changes that are not in
N:

A change in master renamed some variables in QSFooter.createDialog() and made
them final, this change is also included here.

The owner's organization name cannot be set in N.

In the case of active Device Owner and active VPN, there was a specialized
string for this in N. This string was now replaced by using the simpler
Device Owner string + an own entry for VPN in the new layout.

Some imports had to be included that were already there on master.

The dimen-tag throws an error message on floats during build, replaced by an
item-tag.

BUG: 29748723
BUG: 33126622
Test: Manual, CTS-Verifier tests will be added later

(cherry picked from commit 9e450e1233)

Change-Id: I2bfca9d9d02a42d9c3b17683625eda29e9369666
2016-12-20 17:11:01 +01:00
Philipp Weiß
cbe76a0f1e Merge "Show notification when network logging is enabled" 2016-12-20 15:58:44 +00:00
TreeHugger Robot
19e2fb57c9 Merge "Implement requestKeyboardShortcuts for PopupDecorView" 2016-12-20 15:38:27 +00:00
Nick Kralevich
b0e5079b5d LocalSocketImpl.cpp: Set O_CLOEXEC on received FDs
Set O_CLOEXEC on received file descriptors. This prevents FD leakage
across an exec boundary. Please see the description of O_CLOEXEC in "man
2 open" for the reasons why this is useful.

Test: Device boots and no observed errors.
Change-Id: Id0d9c9d71efb25dacb26d5d98d93fc3b72c1b6ae
2016-12-20 07:14:49 -08:00
Selim Cinek
0c87f87008 Fixed a bug where systemui could crash
Because the shelf could be the only visible view
and an animation happened, it could crash.

Test: Add a notification and remove it while the yTranslation changes
Change-Id: Icf47e91075437f129ad9fd7c3f206e864178a753
Fixes: 33484955
2016-12-20 13:19:36 +01:00
Selim Cinek
a7d4f82c05 Introduced the visual stability manager
Notifications used to roam around and reorder whenever
they wished. Those little beasts must be tamed, hence
a new visual stability manager is introduced that
dictates the terms of their interplay.

Test: manual: add heads-up and see if they correctly appear
Test: runtest -x packages/SystemUI/tests/src/com/android/systemui/notification/VisualStabilityManagerTest.java
Bug: 32442500
Change-Id: I8d7596fa7c14e0df68459a77d445f618d517ad51
2016-12-20 13:19:36 +01:00
Selim Cinek
d4740141e6 Removing notifications always immediately when swiping them away
When swiping away notifications we were previously relying on the
notification manager to cancel the notification for us. If the state
diverges however (due to bugs) this leads to unrecoverable empty
holes which is super bad.

Change-Id: If63c5434b4e438fea560e0013a12c60655103977
Test: existing tests pass
Bug: 33457118
2016-12-20 13:19:35 +01:00
Selim Cinek
810bcde182 Fixed a bug where the shelf was clickable outside of keyguard
This lead to an issue where notifications on the very bottom weren't
clickable.

Test: add single notification on the bottom, click it
Change-Id: I444a8de60bec6dda2227a2df4d78c2564c59aa2b
Fixes: 33643806
2016-12-20 13:19:34 +01:00
Hugo Benichi
059a60b83d DO NOT MERGE Stricter NetworkNotificationManagerTest am: a865790a5b
am: 2abde827c5  -s ours

Change-Id: I5146235a579a66e8101106f288624fa2c00c4d43
2016-12-20 06:57:09 +00:00
Hugo Benichi
2abde827c5 DO NOT MERGE Stricter NetworkNotificationManagerTest
am: a865790a5b

Change-Id: I94ea5c6994d181e730ec4f49e98001eb81ed8740
2016-12-20 06:49:08 +00:00
Jeremy Joslin
fe3bb794e5 Merge "Implement the request and recommend calls." am: 1e814b3928 am: b50fdc7faa am: 949893f5b2
am: 71909ea39a  -s ours

Change-Id: Id214bf1902a46d95975f39b013f9c0622a570a37
2016-12-20 06:41:23 +00:00
Jeremy Joslin
71909ea39a Merge "Implement the request and recommend calls." am: 1e814b3928 am: b50fdc7faa
am: 949893f5b2

Change-Id: Ibd03bace49bc277a2777c8483da6b4ebfc56d217
2016-12-20 06:37:11 +00:00
Jeremy Joslin
949893f5b2 Merge "Implement the request and recommend calls." am: 1e814b3928
am: b50fdc7faa

Change-Id: I81f998b6934715f43797247f411919a4ceee5631
2016-12-20 06:32:42 +00:00
Jeremy Joslin
b50fdc7faa Merge "Implement the request and recommend calls."
am: 1e814b3928

Change-Id: I91c905ab2fc7e061462fb96c2c81a783aa93a391
2016-12-20 06:25:08 +00:00
Treehugger Robot
1e814b3928 Merge "Implement the request and recommend calls." 2016-12-20 06:16:03 +00:00
Paul Stewart
9aae1f3cf0 Merge changes I40064d3e,I50594ad8 into nyc-mr2-dev am: 7eaec196b7
am: cf03183241

Change-Id: Iea8951ca4ddc1b69ca57da6b9cbaf1bcdd860bcc
2016-12-20 05:13:54 +00:00
Paul Stewart
ed41d26b92 DO NOT MERGE Fix other String.format issues in NetworkNotificationManager.java am: 8e21030679
am: d0d9493102  -s ours

Change-Id: I3e94a34a2065939094f17f48383e2d9334d22f55
2016-12-20 05:12:30 +00:00
Joe LaPenna
9637af7bb1 DO NOT MERGE Fix malformed log statement. am: 02ca23d9a2
am: 5013035d95  -s ours

Change-Id: I9a6397cd16ba1f2ed0e21d8206d6c93b00778c91
2016-12-20 05:11:38 +00:00