238321 Commits

Author SHA1 Message Date
Shishir Agrawal
dc50a87495 Fixing few TelephonyManager calls to work when there is no SIM.
* getDeviceSoftwareVersion - Fixed to work for no SIM by not looking up subId.
* getImei - Fixed to work for no SIM by not looking up subId.
* getActivePhoneTypeForSlot - Adding a method (hidden).
* getCallState - Adding slotId version (hidden).

Bug: 27378995
Change-Id: Ib67ae3df5562d75727dc7e4ac023021fb331d3b5
2016-04-12 12:41:22 -07:00
Jason Monk
8af20ef6a8 Merge "The return and fixing of demo mode" into nyc-dev 2016-04-12 18:53:20 +00:00
Ashutosh Joshi
250c617d13 Merge "Remove LOAD_OS_APP message from standard context hub messages" into nyc-dev 2016-04-12 18:30:20 +00:00
Jorim Jaggi
09c4954cc1 Make sure to report activity launch time when starting from recents
Bug: 27295491
Change-Id: I27d660ccc960610f39c72ba9bbab5963746fcd45
2016-04-12 18:18:23 +00:00
Jorim Jaggi
971d8e6399 Don't remove background when resizing
This leads to flickers, as we should not draw in a translucent way
if we didn't specify that our window is translucent, because the
renderer has some about translucency.

Instead, we should clip the backdrop content by the inverse of the
content clip rect, which is not yet implemented.

Bug: 28009524
Change-Id: Ia3f54fb83997ace863e78ff1cbe45cfb64f92f26
2016-04-12 18:14:14 +00:00
Jorim Jaggi
d7f6e7c769 Clip mWinShowWhenLocked if Keyguard is not showing
Bug: 28076605
Change-Id: I80ae6dbd09d419c258efd79639a62dce8c2fbe79
2016-04-12 18:13:26 +00:00
Jorim Jaggi
47ee9ad92c Refine exit animation
Don't move the other stack when exiting multi-window with undock
gesture.

Bug: 27154882
Change-Id: Ia2793d2e2b16def543289f8b2b13631db90edca8
2016-04-12 18:11:23 +00:00
Winson Chung
59d2a90358 Merge "Fixing issue with scrolling tasks upwards" into nyc-dev 2016-04-12 18:11:17 +00:00
Jorim Jaggi
5ac2ba25ce Fix a small issue with IME adjustment
For some keyboards, display frame is the same as the fullscreen, because
the way they layout their stuff is different. In such cases, the stack
bounds were moved too far.

Bug: 28126905
Change-Id: Id3c2c8d9d16e27634006a8ef70d35d8826302da0
2016-04-12 18:10:29 +00:00
Winson
da8d2285e5 Fixing issue with scrolling tasks upwards
- When scrolling the stack away from the task overrides, we should 
  actually lock the stack scroll and instead apply the changes in scroll
  to the override tasks.

Bug: 27376567
Change-Id: Idd1874ab0f6f5eb273bf6e9623b84277961f4291
2016-04-12 18:05:28 +00:00
Jorim Jaggi
38b5ec9f08 Fix some serious pre draw listener leaks
These were responsible for a huuge memory leak, and probably also
responsible for some significant amount of jank when using the
device for a while.

Bug: 26400906
Change-Id: Ie4140998ad288583c6a4137954fab4fe9a6f2cf7
2016-04-12 18:05:03 +00:00
Felipe Leme
e1b1ce77da Merge "Minor improvements useful for debugging." into nyc-dev 2016-04-12 17:56:01 +00:00
Samuel Tan
143a9333dc Merge "Remove config_wifi_hal_pno_enable and config_wifi_ssid_white_list_enable" into nyc-dev 2016-04-12 17:13:28 +00:00
Alexander Hills
e3f3cb1048 Merge "Fixes name of intent launch flag for Action Extender" into nyc-dev 2016-04-12 17:10:19 +00:00
Jason Monk
98d7c7a84d The return and fixing of demo mode
Change-Id: I2bcf3435b92c80b4ab3c46cba02902820c942c7c
Fixes: 27919212
2016-04-12 13:08:31 -04:00
Clara Bayarri
d922554f9d Merge "Fix empty state Chooser Activity UX" into nyc-dev 2016-04-12 17:02:27 +00:00
Jeff Sharkey
a6e38e4430 Merge "Another protected broadcast." into nyc-dev 2016-04-12 17:01:25 +00:00
Clara Bayarri
741c519c6e Fix empty state Chooser Activity UX
Bug: 26261965
Change-Id: I07680f70442a2f04dfd41d49ba4be327b9ccb38e
2016-04-12 17:52:09 +01:00
Mitchell Wills
eb8578cc89 Merge "Update WifiScanningService class name to new location" into nyc-dev 2016-04-12 16:45:34 +00:00
Ricky Wai
321cfa3791 Merge "Add tests for profile keys in LockSettingsStorage" into nyc-dev 2016-04-12 16:42:56 +00:00
Steve McKay
151f4b9b30 Merge "Tint current root icon." into nyc-dev 2016-04-12 16:41:50 +00:00
Jason Monk
4e540f905d Merge "Update system icon" into nyc-dev 2016-04-12 16:36:17 +00:00
Jason Monk
f306f85cae Merge "Settings dashboard performance work" into nyc-dev 2016-04-12 16:35:45 +00:00
Mady Mellor
2d2ec882c8 Merge "Fix gear not showing on left hand side of notification" into nyc-dev 2016-04-12 16:35:33 +00:00
Alan Viverette
0f0ffb0450 Merge "Default font scale is 1 if not otherwise specified" into nyc-dev 2016-04-12 16:29:28 +00:00
Jeff Sharkey
e9c752aa37 Another protected broadcast.
Bug: 28133722
Change-Id: I5fe8158a3c66168e1c5482711a487eba55876b73
2016-04-12 10:28:19 -06:00
Adam Powell
f763ea3b05 Merge "Fix: ResolverActivity sometimes cannot update the last chosen activity" into nyc-dev 2016-04-12 16:24:36 +00:00
Diego Perez
37e16f8e3b Merge "Fix broken delegates for FontFamily and PathParser" into nyc-dev 2016-04-12 16:24:22 +00:00
Yohei Yukawa
cd1e1de4ce Merge "Make sure that Toast is always shown by Meta-Space." into nyc-dev 2016-04-12 16:22:48 +00:00
Jason Monk
39bfdaf208 Update system icon
Change-Id: I5f6422e2a9cdc308ad8818fa554d8d421a188de6
Fixes: 24326872
2016-04-12 12:21:40 -04:00
Diego Perez
a0a51b6fb6 Fix broken delegates for FontFamily and PathParser
The theme editor is throwing an exception with the last embedded
layoutlib because a missing method. Added also another missing method in
FontFamily.

Change-Id: I710ba7618df6444a3185b581cdc5dc8400f7c604
2016-04-12 17:21:00 +01:00
Yuichi Biwa
66e495e647 Fix: ResolverActivity sometimes cannot update the last chosen activity
Symptom:
Calling startActivity() with an implicit intent,
ResolverActivity displays preferred activity candidates.
At first user selects one of them as "JUST ONCE".
And next, the last one is shown again on the top with "JUST ONCE" and
"ALWAYS".

But even if user selects another ones except top with "JUST ONCE".
Next time, the last one is not shown on the top.
Instead of that, first one still remain on the top.

It means that user can't select activities as "ALWAYS"
except first one.

Root cause:
The implicit intent has a URI but not MIME type.
In this case, Intent#resolveTypeIfNeeded returns "null".
So MIME type is not passed to PackageManagerService.
That's why this issue happens.

Change-Id: I87b6da9c5d8b47e071bbedf9f7d5f3ecea730875
2016-04-12 09:18:20 -07:00
Yi Kong
0755fc6c61 Track libcore change 2115cc0ca7d60965a361129d8826478ff2d847e4
Bug: 28108421
Change-Id: I774f264bf538b0fa2aac63c8e5225f82d7b03c2e
(cherry picked from commit 5182e272ad7b14604dc4d90114d97cf238140178)
(cherry picked from commit 05a77eee41804fc135cd43a7dfb8125c3365b0e2)
2016-04-12 17:12:26 +01:00
Alex Hills
4ec3ff4f8f Fixes name of intent launch flag for Action Extender
Changes the name from set/getHintContentIntentLaunchesActivity
to set/getLaunchesActivty

Change-Id: I8ef879ae82cc360163fcd689eb5fad0d2b9d7db0
2016-04-12 11:44:36 -04:00
Jason Monk
557c716a3a Merge "Guard against crashes from data saver listeners" into nyc-dev 2016-04-12 15:39:09 +00:00
Julia Reynolds
a20e8f314f Merge "Return everything but an autogroup summary." into nyc-dev 2016-04-12 15:33:21 +00:00
Julia Reynolds
4c4ad595dd Return everything but an autogroup summary.
Bug: 28132467
Change-Id: I9a6df6d3e876af00a9ef6fc8ed702ed8342c751a
2016-04-12 11:28:48 -04:00
Chris Wren
9bb991a3bb Merge "remove special case code for groups." into nyc-dev 2016-04-12 15:25:16 +00:00
Mark Renouf
bbc98232f3 Merge "Customizes input extract edit view for Wear" into nyc-dev 2016-04-12 15:18:18 +00:00
Gustav Sennton
ce2cb7630c Merge "Add initial unit tests for WebViewUpdateService." into nyc-dev 2016-04-12 15:17:05 +00:00
Mark Renouf
91eb2651a0 Customizes input extract edit view for Wear
Provides an alternate presentation of the extract edit area
of an input method window, designed for sub 250dp width screens.

An icon is used on a round material style button in place of a text
action, providing more horizontal space for the editing area.

BUG: 28098677
(cherry picked from commit fd71a6a5d99bad5d3ab32edc328fb5b026b66215)

Change-Id: I0e559d17f78d1a48b37979a49e11ae1aad7503f4
2016-04-12 15:05:13 +00:00
Daniel Sandler
064e612779 Merge changes from topic 'vr-fixes' into nyc-dev
* changes:
  Suppress immersive mode confirmation in VR mode.
  Suppress heads-up notifications in VR mode.
2016-04-12 14:57:41 +00:00
Alan Viverette
04fd67cb8e Default font scale is 1 if not otherwise specified
Prevents the previous user's font scale from being used as the default.

Bug: 27187556
Change-Id: I51a66ddf2d6272bd74d433158db1c8cc54b45b6d
2016-04-12 10:54:04 -04:00
John Reck
d2eec0efb2 Merge "Framework-side of SurfaceView#getBitmap" into nyc-dev 2016-04-12 14:36:11 +00:00
Jason Monk
b0ae8f8209 Settings dashboard performance work
- Allow rebuilding apps not in the foreground
 - Allow rebuilding apps without a comparator
 - Initially apply current configuration so we don't immediately clear
   tile cache

Change-Id: I8d57f7e8f7fa119915bf6fdc8ece8bee976edbdc
Fixes: 26541310
2016-04-12 10:30:43 -04:00
Chris Wren
8ab776cd90 remove special case code for groups.
Once all the platforms as special, none of them will be.

Bug: 26919636
Change-Id: I70eb05126184feb2af310e71f0ffd82ab9dcebc6
2016-04-12 09:31:17 -04:00
Gustav Sennton
53b78241ff Add initial unit tests for WebViewUpdateService.
The logic in the WebViewUpdateService is now more complex and there
are lots of edge cases that should be tested to make sure we don't
regress anything.

Also refrain from running fallback logic on boot if fallback logic not
enabled (bug found through a failing test, yeeah buddy!).

Catch uncaught MissingWebViewException (very timing-dependent!) and add
test for this.

Add tests for:
Some package setups (single package, non-default vs. default packages,
    valid vs. invalid packages).
Ensure correct error codes used
Switching provider through settings-method
Switching provider through adding more prioritized provider
Switching provider in the middle of already running webview preparation
Ensure fallback logic is run when enabled and not run when disabled (at
    boot, packageStateChanged, and when adding a new user).

Bug: 27635535

Change-Id: I275ecb0f6129f71258da0fa053e7f7b36a675886
2016-04-12 14:25:38 +01:00
Shubham Ajmera
68b19f2778 Merge "Track libcore change 135ea6cd4f7ebe2f225351a1928d8a62bce5cb00" into nyc-dev 2016-04-12 12:23:01 +00:00
Gustav Sennton
67dd51831e Merge "Add more checks for invalid states when reading webview packages config." into nyc-dev 2016-04-12 11:43:20 +00:00
Oleksandr Peletskyi
26e3385508 Merge "Fixed cross profile usage of TextClock." into nyc-dev 2016-04-12 11:33:19 +00:00