233140 Commits

Author SHA1 Message Date
Sudheer Shanka
af9c30aa74 Merge "Update ACTION_SHOW_ADMIN_SUPPORT_DETAILS action to be hidden." into nyc-dev 2016-02-18 13:58:05 +00:00
Julia Reynolds
d4ea741d66 Inflate and strip remote views for pre-N apps.
Bug: 27120291
Change-Id: I4e1497222f3787e68c3e385e45ab6a7c23799917
2016-02-18 08:35:45 -05:00
Shawn Willden
0f900c02d9 Merge "Add support for extending key validity while on body." into nyc-dev 2016-02-18 12:51:50 +00:00
Shawn Willden
adef49640d Add support for extending key validity while on body.
Bug: 21563854
Change-Id: I3b622d2af77ec4ac3ba42407fc391112c153ef0f
2016-02-18 05:50:21 -07:00
Sudheer Shanka
aebd5dd786 Update ACTION_SHOW_ADMIN_SUPPORT_DETAILS action to be hidden.
Bug: 27225657
Change-Id: I85ad8bf88845e9164011b303ec9ca90d993fc20e
2016-02-18 12:39:57 +00:00
Martijn Coenen
087fd6829d Merge "Update protected broadcasts used by NFC." into nyc-dev 2016-02-18 12:25:03 +00:00
Clara Bayarri
983bc7076c Merge "Lock Work Profile immediately when user presses power button" into nyc-dev 2016-02-18 11:21:19 +00:00
Clara Bayarri
3dc575f135 Lock Work Profile immediately when user presses power button
Bug: 26579952
Change-Id: I6e4e0fc2a4f41c72f0d940006f6ceb17e7852682
2016-02-18 11:20:35 +00:00
Martijn Coenen
5e906f8829 Update protected broadcasts used by NFC.
Change-Id: Ie7d062e83929e1058e19427f6ca624ab3f8ee472
2016-02-18 12:19:39 +01:00
Michal Karpinski
8c98d2b208 Applying final strings for remote bugreports after notification rework
Bug: 26226230
Change-Id: If9f6e882c545821fc36925fbdc4e0eff64115fe5
2016-02-18 10:55:40 +00:00
Yohei Yukawa
218c2ab00a Merge "Fix bugs in logic to find a default selectd IME." into nyc-dev 2016-02-18 09:30:45 +00:00
Erik Kline
ca4c61aa9f Add Protocol.BASE_ETHERNET
Change-Id: I4e51370c0b53d9902eea8aae409f9f7cffaf28ad
2016-02-18 18:15:52 +09:00
Yohei Yukawa
c2393ac3bf Fix bugs in logic to find a default selectd IME.
With this CL, InputMethodManagerService#resetDefaultImeLocked()
picks up the default selected IME with the same logic to find the
default enabled IMEs [1].  It should make sense because the default
selected IME should be one of the default enabled IMEs.  The previous
code is problematic because it does not check whether the IME is enabled
or not.  There was a chance that unusable IME could be picked up.

This CL also fixes the same problem to Bug 17347871 that only language
part of the locale is taken into account.

  [1] See the following series of CLs.
    - part 1: I831502db502f4073c9c2f50ce7705a4e45e2e1e3
              ed20f8d750ef0b6347448265a14ef2a2c7e1af5c
    - part 2: Ife93d909fb8a24471c425c903e2b7048826e17a3
              745e7bca8a622ffdf0d0a8e8e2485eab98182ede
    - part 3: I6571d464a46453934f0a8f5e79018a67a9a3c845
              d0dbd81fe2cd34c9a83e2f5217374d3e1a79f950
    - part 4: I871ccda787eb0f1099ba3574356c1da4b33681f3
              b21220efae92a56ff7b4b781fa614a6e3a8a3007

Bug: 27197621
Change-Id: Ia0f52c1fb9f5a68230284a1ec4829a2337b60bdd
2016-02-18 00:30:45 -08:00
Jaewan Kim
88072ab9b1 Merge "PIP: Temporarily disable overlay text bubble timeout" into nyc-dev 2016-02-18 04:54:04 +00:00
Deepanshu Gupta
d95e445394 Merge "Entry -> Map.Entry. Fixes build break" into nyc-dev 2016-02-18 04:53:25 +00:00
Deepanshu Gupta
48cad7fa07 Merge "Switch LayoutLib to Java 8" into nyc-dev 2016-02-18 04:53:03 +00:00
Deepanshu Gupta
3b6ea2e3a8 Entry -> Map.Entry. Fixes build break
Change-Id: I72fe70d6f617c7753a278e134ac22d71125d8def
2016-02-17 20:51:08 -08:00
Deepanshu Gupta
7914e4ca03 Switch LayoutLib to Java 8
The main build hasn't swtiched to java 8, but lambdas are already used
in layoutlib. This fixes the build break.

Change-Id: I4dd69ebd736179067899f5d86d3608d5fdb03d93
2016-02-17 20:50:00 -08:00
Erik Kline
7651b21fe9 {,Base}DhcpStateMachine is no more
am: efa4209fe0

* commit 'efa4209fe022d007f48edc3c4feaef00a9865cb5':
  {,Base}DhcpStateMachine is no more
2016-02-18 04:38:38 +00:00
Rakesh Iyer
9f831f64dc Dejank app switching.
App switching is a little janky, one of the causes seems
like we're doing a call into package manager to see if there
are more applications (to draw the arrow) and that is expensive
(around 10-160ms). Remove this call and maintain a cache and
query that instead.

Bug: 27232284
Change-Id: I9666073944e406b595a3486857f3fe44b2ae2039
2016-02-17 20:06:55 -08:00
Erik Kline
efa4209fe0 {,Base}DhcpStateMachine is no more
Bug: 26991160
Change-Id: I21f8c30627bf2a7fbcd5b4d5f1f1ad1a2dda759b
2016-02-18 12:56:45 +09:00
Simranjit Singh Kohli
a666d74d4b [Fix extra data in cache]
It seems that some account authenticators call getData before account
is added, which initializes the cache for that account.
1. We now don't initialize the cache if the account is not on the device.
2. We now use locking.

Bug: 23018710
Bug: 20071745
Change-Id: Ie59ca6b4e575f524a9d3bf286c3bd95abce4a596
2016-02-17 19:08:25 -08:00
Deepanshu Gupta
f0c5b7af6f Merge "LayoutLib fixes for N" into nyc-dev 2016-02-18 03:04:16 +00:00
Steve McKay
65001419cc Merge "Don't show recents as copy/move destination." into nyc-dev 2016-02-18 02:53:08 +00:00
Steve McKay
4a1ca86f47 Don't show recents as copy/move destination.
Revoke "SUPPORTS_CREATE" from the Recents faux-Root.
Don't allow copy to roots that don't support children.
Add friendly access methods to Root info for checking flags.
Only show spacer between roots sections when both non-empty.
Add docs explaining the "apps" section in roots.
Improve logic in the "canCopy" method.

Bug: 27232639
Change-Id: If78ee0ff73f0788de863345b560aecd41b23dfb9
2016-02-17 18:52:03 -08:00
Antonio Cansado
cd42acd951 Implementation of data usage callbacks.
NetworkStatsService will register data usage requests
and keep data usage stats scoped to the request.

There are different types of data usage requests
- scoped to a set of NetworkTemplate; these are restrictred to
device owners and carrier apps and allow the caller to monitor
all activity on the specified interfaces.
- scoped to all uids visible to the user, if the user has
android.Manifest.permission#PACKAGE_USAGE_STATS permission.
The set of uids may change over time, so we keep track of that.
- scoped to a set of uids given by the caller, granted that
the caller has access to those uids.
- scoped to the caller's own data usage. This doesn't require
PACKAGE_USAGE_STATS.

Bug: 25812785
Change-Id: Ie11f35fc1f29d0dbe82f7fc924b169bb55c76708
2016-02-17 18:43:53 -08:00
Adam Lesinski
3581fbc8ad Merge "AAPT2: Implement density stripping and initial Split support" into nyc-dev 2016-02-18 02:32:33 +00:00
Adam Lesinski
355f285ffd AAPT2: Implement density stripping and initial Split support
When a preferred density is supplied, the closest matching densities
will be selected, the rest stripped from the APK.

Split support will be enabled in a later CL. Command line support is still
needed, but the foundation is ready.

Bug:25958912
Change-Id: I56d599806b4ec4ffa24e17aad48d47130ca05c08
2016-02-17 18:17:25 -08:00
Deepanshu Gupta
491523d52c LayoutLib fixes for N
Moves LayoutLib to Java 8 - YAY!
Fix delegates

Change-Id: I098996e43e330e995d33f12df1c16355bbc02f0f
2016-02-18 02:10:24 +00:00
Alex Klyubin
be8c223c24 Merge "Use production ID for v2 signing scheme." into nyc-dev 2016-02-18 02:03:48 +00:00
Adrian Roos
a41849c80c Merge "App Crashes: Clarify mute option" into nyc-dev 2016-02-18 01:35:35 +00:00
Aurimas Liutikas
eae0422633 Merge "Suppress warnings of MultiDexLegacyAndException" into nyc-dev 2016-02-18 01:22:00 +00:00
Tomasz Mikolajewski
32a34d3379 Limit number of ClipData items for a quick viewer to 1000.
Bug: 20822219
Change-Id: I774be914ddeea0335dc646000a1d5c997ea73fd4
2016-02-18 00:54:26 +00:00
Vladislav Kaznacheev
40089ca995 Merge "Move more drag-related code to DragState" into nyc-dev 2016-02-18 00:51:53 +00:00
Vladislav Kaznacheev
527905e195 Do not call IWindowSession.updatePointer icon from pointer handler
Currently if View.setPointerIcon is called from inside a pointer
event handler this will cause a redundant round-trip to the server
which can be easily avoided.

Bug: 27107871
Change-Id: Ia641818c3700c0d96d0c32e020b91af58dccfa2a
2016-02-17 16:51:05 -08:00
Jaewan Kim
bfef1edd26 PIP: Temporarily disable overlay text bubble timeout
Bug: 27224884
Change-Id: I2aeae84b62d3918d5e43ea5fda616a37683e1841
2016-02-17 16:45:41 -08:00
Wale Ogunwale
7fbec4193b Merge "Make PipOverlayActivity views visible onResume" into nyc-dev 2016-02-18 00:44:58 +00:00
Vladislav Kaznacheev
5d6bdebfee Move more drag-related code to DragState
Pure refactoring: moving the code manipulating
DragState member variable into DragState.

Change-Id: I1f9feff32c8b18ae0ff451030d026d4276fecd5b
2016-02-17 16:44:17 -08:00
Wale Ogunwale
ed0f7e2297 Make PipOverlayActivity views visible onResume
Also moved the scheduling of the invisible timeout to onResume.

Change-Id: If56d61a2e20b08748e1c9f7f3ab1b12b22320110
2016-02-17 16:37:42 -08:00
Jorim Jaggi
185fa234a2 Fix some strings
Bug: 26411749
Bug: 27022727
Change-Id: I405ba61a46011365bfa2aebfdb0797738237e86b
2016-02-18 00:35:28 +00:00
Chet Haase
f4bfeab164 Merge "Fix typo in CalendarView style docs" into nyc-dev 2016-02-18 00:31:45 +00:00
Ben Kwa
6f4de5b6a1 Merge "Fix focus issues on RV." into nyc-dev 2016-02-18 00:19:21 +00:00
Adam Lesinski
1559fed4c4 DO NOT MERGE ANYWHERE: UsageStats: Use new settings key idle_duration2 for app idle
Ignores the old, re-appropriated key "idle_duration" which is now
set to a high value in order to force disable app idle on devices
with bug b/26355386

Bug:26355386
Change-Id: Iff9de843ad6e547d29c1583687fc7f7ce7e15090
2016-02-17 16:02:01 -08:00
Adam Lesinski
2bd90c6abc DO NOT MERGE ANYWHERE: UsageStats: Fix issue where initializing data for first time would cause crash
With the updated rolling window of stats for app idleness, we need to make sure
it is populated before we initialize some defaults.

Now that we look at older entries to figure out idleness, if those
entries are in the future (due to time change), set them to the current
screen on time.
Bug:26504153

Change-Id: Ia22add0e8eaf0f137002bbe3e91d747fef5b7d69
2016-02-17 16:01:48 -08:00
Adam Lesinski
9c7b543325 DO NOT MERGE ANYWHERE: UsageStatsService: Fix app idle issue at rollover time
App Idle queries are very frequent and so they only check in memory stats.
However, in memory stats can be missing some entries, especially after a rollover, but also
due to a larger bug fixed in master (too risky to take now).

The fix is to do a deep query (reading older files from disk) and maintain a parallel cache
of stats for app idle. That way the rolling window of data required to serve app idle queries
stays in memory.

Bug:26355386
Change-Id: I6a29bbc25214f6a3c2f24c8c079936e66f99e42e
2016-02-17 16:01:35 -08:00
Steve McKay
9a0fc1f680 Merge "Improvements to Copy/Move flow." into nyc-dev 2016-02-17 23:40:58 +00:00
Steve McKay
a6bbeab1d3 Improvements to Copy/Move flow.
- Always open drawer for copy/move operations.
- Set title to match operation.
- Update button to say "move" for move operations.
- Other minor fixes.

Also fix "Home" tests broken by ag/867110

Bug: 26506479
Change-Id: I3ccb4ddc72be0a21b91744bcb610c1ca490ac30c
2016-02-17 15:39:58 -08:00
Makoto Onuki
184db600df Ensure DO/PO are also DA.
Bug 24503508

Change-Id: Ib957b84d5bee185501636c406d9aaf4985a79d8d
2016-02-17 15:35:01 -08:00
Winson
2d47683ab9 Only set the task description if the colors are opaque.
Bug: 27214638
Change-Id: I75e0b8871087f0b8e6acd16dc751bb6374c0f968
2016-02-17 23:23:45 +00:00
Jorim Jaggi
7998e48ce3 Fix unlock transition when docked stack is visible
- Keep surface of docked divider when lockscreen is showing, like
all other apps, so we don't run into synchronization issues when
unlocking. We do this by setting policy visibily to false, but
keep clientVisibility=true
- Update docked stack visibility when starting unlock sequence to
visible.

Bug: 27154882
Change-Id: I6def5c18831e23579fcfc904133749f149eaf376
2016-02-17 23:16:37 +00:00