Commit Graph

246497 Commits

Author SHA1 Message Date
Adam Lesinski
0d47f4b646 Merge "BatteryStats: Introduce Async external stats requests" into nyc-dev 2016-04-18 23:27:10 +00:00
John Reck
8cddce3f8f Merge "Make getFrameNumber lazy" into nyc-dev 2016-04-18 23:20:39 +00:00
Wale Ogunwale
3ad75d608d Properly resume paused activity when docked stack in maximized
Force focus to the fullscreen stack so that its activity is resumed
regardless of it current state when moving all tasks from the docked
stack to the fullscreen stack and the fullscreen stack should be on
top.

Bug: 28247643
Bug: 28196862
Change-Id: Ic60c3794db765e9ee31b0facbbc4f461d65f30c2
2016-04-18 16:18:42 -07:00
Sailesh Nepal
3f985f3466 Merge "[Call Timing] Add constants for call timing extras" into nyc-dev
am: b05e485

* commit 'b05e4851d01473432e841e757f2c96fd60ab300e':
  [Call Timing] Add constants for call timing extras

Change-Id: Ic2c8f68f29c2ed628baa83a0316ce9a7e9564078
2016-04-18 22:43:01 +00:00
Sailesh Nepal
b05e4851d0 Merge "[Call Timing] Add constants for call timing extras" into nyc-dev 2016-04-18 22:36:40 +00:00
Adam Lesinski
ea9d9daf2b Merge "Optimize ResTable::getLocales() to improve bindApplication performance" into nyc-dev
am: bfdc202

* commit 'bfdc2020b94d6368a7a8cf97bf545d28c757e0fd':
  Optimize ResTable::getLocales() to improve bindApplication performance

Change-Id: I494a2829ee71b98c707c8e5768ca2415c98dce23
2016-04-18 22:35:24 +00:00
Adam Lesinski
99548b7a82 Merge "Use Activity resources in DecorContext" into nyc-dev
am: 6cc3199

* commit '6cc31990fc1952b9533cf9b695dd287b87a93e82':
  Use Activity resources in DecorContext

Change-Id: Ie30b91a0c926c8ac84f2364a3267b5e0f22c30e7
2016-04-18 22:35:22 +00:00
Adam Lesinski
bfdc2020b9 Merge "Optimize ResTable::getLocales() to improve bindApplication performance" into nyc-dev 2016-04-18 22:24:09 +00:00
Adam Lesinski
6cc31990fc Merge "Use Activity resources in DecorContext" into nyc-dev 2016-04-18 22:23:43 +00:00
Christopher Tate
76418899e6 Kill the real/isolated uid group, not the ApplicationInfo uid
This is a direct reimplementation in L of fixes applied to N in
these two commits:

8dc8d37c1d
e8741d23d2

Bug 19285814

Change-Id: I59bcc8f1d41c426e9da635bea9ad1d7c6756d5aa
2016-04-18 15:20:01 -07:00
Siyamed Sinir
375366cb2d Request re-layout after setText if layout width is 0
When TextView is in a layout with weight params (i.e. LinearLayout) and
the width is set to 0, do not try to prevent requestLayout.

Bug: 27995311
Change-Id: Idfe9d8d0b595a6db95beb1afd83ca96a2bd46546
2016-04-18 15:17:02 -07:00
Selim Cinek
3e7592d0cb Fixed a few issues when adapting the dpi
The statusbar is now behaving nicer and other
parts are behaving similar as if they had been inflated
that way. The signalclusterview is now properly recreated
ensuring that it's scaled correclty.

Fixes: 	26844819
Change-Id: Id1aab629204d03c079815358e7a5eb12d2a4e557
2016-04-18 15:10:37 -07:00
Selim Cinek
e803491cb0 Fixed a few issues with status bar density changes
Reinflated the brightnessmirror to have the propper layouting.
Also fixed the height of the heads up scrim.

Bug: 26844819
Change-Id: Idb24dbd40f071a2a722c59cc202ae46c5ace2da8
2016-04-18 15:10:36 -07:00
Selim Cinek
8532558431 Fixed a crash when changing density with HUN visible
The Quick settings page indicator was trying to access views that
don't exist yet.

Fixes: 27927374
Change-Id: I1600ce8432b6550268da20443d32193b1d2debe4
2016-04-18 15:10:20 -07:00
Wale Ogunwale
dfc18623ed Use right starting window resource in multi-window mode.
Use the override configuration for the task the app is contained
in to generate resources for the starting window.

Bug: 28220001
Change-Id: I6fdf39a6d6de41287b44b25861a76f58fe58dd53
2016-04-18 15:09:34 -07:00
Adam Lesinski
b7e1ce0775 Optimize ResTable::getLocales() to improve bindApplication performance
Change from linear searching for uniqueness to binary search.

Bug:27198799
Change-Id: I1ccb6e93cc213810848f07d631d9d8de7c719803
2016-04-18 15:06:50 -07:00
Chong Zhang
954339c76b Merge "Misc fixes for IME adjust" into nyc-dev
am: b1dea03

* commit 'b1dea03f0a72923793895048e1a5aac0d4e485c5':
  Misc fixes for IME adjust

Change-Id: I77347387bd43aac660260bac6e8cb6c593c94493
2016-04-18 22:02:58 +00:00
Chong Zhang
b1dea03f0a Merge "Misc fixes for IME adjust" into nyc-dev 2016-04-18 22:01:10 +00:00
Felipe Leme
8478bf468e Added extra validation for invalid paths.
In normal circumstances, StorageVolume can only be obtained through
StorageManager and hence it will contain a valid path internally. But
the path could be invalid in at least 2 occations:

- App maliciously changed it using reflection.
- Mounted volume was ejected.

This change improves OpenExternalDirectoryActivity so it returns a
RESULT_CANCELED upon receiveving an invalid path.

BUG: 27962875

Change-Id: Ide43968babaa37961c7b704bd289f44eac952e94
2016-04-18 14:55:15 -07:00
Chong Zhang
198afac5ce Misc fixes for IME adjust
- Use thinner divider when IME adjusted

- Dim non-focused stack

- Restrict IME adjustment so that top pane is shrunk to 30% at most

- Move top stack up together with IME adjust

- Move bottom stack up even when not focused for thinner divider

bug: 28175599

Change-Id: I83556535e5a171f0ec28d88429186fa1315b910c
2016-04-18 14:52:34 -07:00
Dianne Hackborn
67324c990c Work on issue #28221912: Starting service as foreground might...
...kill previous notification.

Add new platform API to detach a notification from a service
without dismissing it.

Also, while I am here, add some more @IntDefs.

Change-Id: I3bb46d9cd3db7f73716c8ced19c20fea800eb30d
2016-04-18 14:48:09 -07:00
Adrian Roos
ca664b93b9 Disable anti-falsing logic with touch exploration
Change-Id: Ide1992f11ace9c2604f68fe3c9277c3e20ecb71a
Fixes: 28140321
2016-04-18 14:40:32 -07:00
Jeff Sharkey
84a4c971c4 Unlock should always wait for pending PRE_BOOT.
While processing an unlock request, we might go async to handle
long-running operations like dispatching PRE_BOOT_COMPLETED.  This
change ensures that all unlock requests for a particular user wait
in line behind any pending async operations.

Without this CL, any subsequent unlock requests would immediately
return successful, even though PRE_BOOT_COMPLETED events were still
being processed.

Bug: 28240584
Change-Id: I307d6aaebfb8f38028f3666a2e19e4399b7cf3a7
2016-04-18 15:38:35 -06:00
John Reck
28912a5084 Make getFrameNumber lazy
Change-Id: I783de544ad9a3636ea90f1c8c4034738997bfbc8
Fixes: 28246085
2016-04-18 14:34:18 -07:00
Wei Wang
4a03daaf6a Merge "Use ConnectivityThread for RttManager." into nyc-dev
am: f49b51e

* commit 'f49b51e000af2d17e315294f9584890d5e93fa33':
  Use ConnectivityThread for RttManager.

Change-Id: Ibfbef1a19cd1a8f88eb6587b06aadba0f5dfc4bf
2016-04-18 21:29:02 +00:00
Jim Miller
63faaddea9 Merge "Fix operator precedence bug causing a crash." into nyc-dev
am: 8df9400

* commit '8df940000ddf82e4268350abe6b1cf4be375160c':
  Fix operator precedence bug causing a crash.

Change-Id: I5224b47e58bc884c3ee75b4abc0540332906b581
2016-04-18 21:28:58 +00:00
Craig Donner
ca45867dfa Merge "Disables VR components by default, but enables them if a VR app is installed." into nyc-dev
am: de5dbec

* commit 'de5dbec3aba4b0fcae226a8a512d37b1ee3071a8':
  Disables VR components by default, but enables them if a VR app is installed.

Change-Id: I7c5440012a3cfedd3389aba5e987ebed67563839
2016-04-18 21:28:55 +00:00
Yang Ni
07837d6dab Fixed ScriptGroup finalizer for old API
Bug: 28242626

ScriptGroup finalizer clears out the list of closures, which is
uninitialized for the old API.

Need to check null first, before accessing the list.

Change-Id: Ibf914e17a0878c8c561f823c5f6f6f6619594de1
2016-04-18 14:27:02 -07:00
Wei Wang
f49b51e000 Merge "Use ConnectivityThread for RttManager." into nyc-dev 2016-04-18 21:17:25 +00:00
Jim Miller
8df940000d Merge "Fix operator precedence bug causing a crash." into nyc-dev 2016-04-18 21:09:52 +00:00
Jim Miller
c1e61b83c2 Fix operator precedence bug causing a crash.
This fixes a bug where string expression was being evaluated
and then compared to null.  The result is a constant expression
which always passes, resulting in inadvertently accessing the
null variable.

Fixes bug 28237450

Change-Id: I755b4466fd1985bd7f8984c17e06839ac4a30642
2016-04-18 14:08:37 -07:00
Craig Donner
de5dbec3ab Merge "Disables VR components by default, but enables them if a VR app is installed." into nyc-dev 2016-04-18 21:01:33 +00:00
Fyodor Kupolov
c86c3fdd9a Return null when user is locked
In getUserData, peekAuthToken return null instead of crashing when a user is
locked. As per JavaDoc authenticators are expected to handle null return values.

Bug: 28217043
Change-Id: I06d5a2965fe685cad21215958d5d94f413f77677
2016-04-18 13:57:31 -07:00
Felipe Leme
d8c79fe1ac Merge "Remove initial screenshot on interactive bugreport." into nyc-dev
am: 3f8f7f4

* commit '3f8f7f4c896a7b22346edf35058ed92c6d1f1361':
  Remove initial screenshot on interactive bugreport.

Change-Id: Ic373f62ed3e24d3a0f20fd8d88726ceccf8097c1
2016-04-18 20:51:56 +00:00
Adrian Roos
f2efdd8c7c Fix unprotected StatusBarManagerService calls
Some Binder calls in StatusBarManagerService were
left unprotected. They had no business being binder
calls in the first place, so they got moved to
StatusBarManagerInternal.

Bug: 28222649
Change-Id: Ib26dcca413eb642ba8cd6a4482bf13071f8bd3ab
2016-04-18 13:36:40 -07:00
TreeHugger Robot
3f8f7f4c89 Merge "Remove initial screenshot on interactive bugreport." into nyc-dev 2016-04-18 20:32:47 +00:00
Chris Craik
e706ef6b9e Add WebView scroll activity to UiBench
bug:28095056

Change-Id: Id1379d5a30835ef7285e729a3632cfef233d73a3
2016-04-18 13:29:58 -07:00
Jorim Jaggi
848adb801e Set correct stack before restoring tasks
am: 3c800a4

* commit '3c800a49178552d52354592790396a1e1f7ee8ef':
  Set correct stack before restoring tasks

Change-Id: Ic2434ddad22d11c2b4d3c965f9c8ce4535194b3f
2016-04-18 20:27:26 +00:00
Jorim Jaggi
7fbbfd8673 Fix IME layout
am: d450aa9

* commit 'd450aa9ac5b30897abf14f76a9ae2a5d76bc5331':
  Fix IME layout

Change-Id: I2b89f223790ad9f6e2ce2c03540e68ed3a7a9ce4
2016-04-18 20:27:25 +00:00
John Reck
fd3cee138e Make surfaceRedrawNeeded forgiving
Fixes: 27071678

It's semi-common for apps to not realize surfaceRedrawNeeded
is a callback they can (and should) be handling, so have it be
more tolerant in lifecycle handling.

Specifically allow a renderer to have not yet been set on
GLSurfaceView, even though it was supposed to have been set already.
Apps are overriding the other lifecycle methods that require this
(created, changed, an destroyed) but not noticing this method.

Change-Id: I6cebca541eeec6e9949bdb55f687b095768a17b2
2016-04-18 13:26:48 -07:00
Jorim Jaggi
3c800a4917 Set correct stack before restoring tasks
When restoring a task when starting it from recents, we need to set
all the relevant state for the transition before we actually restore
the task and attach the docked stack, as all kinds of weird things
might go wrong otherwise.

Bug: 28194162
Bug: 27607141
Change-Id: I21d173a43c62d425e507e8cc3a1a576f95cfe048
2016-04-18 20:16:15 +00:00
Jorim Jaggi
d450aa9ac5 Fix IME layout
When introducing the fitToDisplay variable, it should have been

fitToDisplay = task != null -> (implies) !task.isFloating();

but was written as task != null && !task.isFloating.

Bug: 28182018
Change-Id: If0be86f1ed8bb88914ce167e9f5273b6b3dc2571
2016-04-18 20:15:49 +00:00
Amanda Kassay
bb0a30226d Merge "Copied over redirects from mnc-mr-docs/vendor/google/docs/app-engine-server/v4/redirects.yaml b/27314537" into mnc-mr-docs
am: 0050cd7

* commit '0050cd771117eaf554cc7fd90e29514d12aa189f':
  Copied over redirects from mnc-mr-docs/vendor/google/docs/app-engine-server/v4/redirects.yaml b/27314537

Change-Id: I260a6c1642670d143bedef4619f3190335e0cd73
2016-04-18 20:09:42 +00:00
Amanda Kassay
0050cd7711 Merge "Copied over redirects from mnc-mr-docs/vendor/google/docs/app-engine-server/v4/redirects.yaml b/27314537" into mnc-mr-docs 2016-04-18 19:59:29 +00:00
Jeff Sharkey
eea4a320da Merge "Iterate through all known users after moving." into nyc-dev
am: fed6c65

* commit 'fed6c65f2a05a75f75d0a258da214770ff9168de':
  Iterate through all known users after moving.

Change-Id: I1dbe8d3397d96932fc6d4362385820cca5b56d87
2016-04-18 19:57:51 +00:00
Jeff Sharkey
cb45951cad Disable "defusable" logging for now.
Bug: 28240784
Change-Id: I2c259867a8169eef220fb9faea6cdcafdde675b8
2016-04-18 13:56:11 -06:00
Jeff Sharkey
4dffd187ab Merge "Consistent creation/destruction of user data." into nyc-dev
am: ad14b88

* commit 'ad14b884f4110e03ec7b5ba7b913be25d19aa95c':
  Consistent creation/destruction of user data.

Change-Id: I5d06aab6a0112849ba54b965c18f345f6add9f30
2016-04-18 19:52:06 +00:00
Chris Craik
0c3dce718c Merge "Improve multi-window render clipping logic" into nyc-dev
am: c79c324

* commit 'c79c3246c9a3e0d2aa34afd18fddc95a6aff0f30':
  Improve multi-window render clipping logic

Change-Id: I57a2527e8e8ae96709bb690e4346a16f2029b141
2016-04-18 19:52:05 +00:00
Jeff Sharkey
fed6c65f2a Merge "Iterate through all known users after moving." into nyc-dev 2016-04-18 19:43:50 +00:00
Jeff Sharkey
ad14b884f4 Merge "Consistent creation/destruction of user data." into nyc-dev 2016-04-18 19:43:18 +00:00