240181 Commits

Author SHA1 Message Date
Amith Yamasani
db0f3a708a Merge "Update interface quota on the handler" into nyc-dev 2016-04-15 18:22:13 +00:00
Craig Donner
fc465bf6bf Merge "Fix VR mode handling when the screen blanks and unblanks." into nyc-dev 2016-04-15 18:22:02 +00:00
Adam Powell
cbade7f4d3 Retain loaders through stopped config changes
Framework edition

Previously we would throw away any stopped LoaderManagers when we went
to retain instances to pass along as nonConfigurationInstances during
config changes or similar activity restarts. This causes loaders to do
more work than they need to when a calling activity starts a new
activity on top, a config change happens (e.g. screen rotation) and
then the top activity is finished, restarting the caller in a new
configuration. The loaders would go through onReset unnecessarily,
potentially throwing away data to be reloaded again after the config
change completes.

Instead of throwing away stopped LoaderManagers in this case, restart
them and retain them across the config change so they can resume where
they left off.

Bug 27176186

Change-Id: Ia52c6448d2ad41dcb25d493770d9ffae20a19d2a
2016-04-15 11:14:37 -07:00
Mitchell Wills
2657981836 Merge "Connect WifiScanner synchronously without sync barrier" into nyc-dev 2016-04-15 18:10:46 +00:00
TreeHugger Robot
23cd9dab01 Merge "CEC: Remove listener records only if they are currently used" into nyc-dev 2016-04-15 18:10:24 +00:00
Robert Carr
90da5e5448 Always assign layer when restacking special windows.
In assignAndIncreaseLayerIfNeeded we need to always
restack the special windows, even if we are stacking them
downwards, otherwise they could be left at too high of
a value from a previous pass. This check was added by
me originally, as a now revealed poorly thought out attempt
to avoid changing existing behavior too much.

Bug: 28139028
Change-Id: I305499e194f2c6bcf7a38c80af1e64bd1fc20943
2016-04-15 11:10:08 -07:00
Steve McKay
8f6387021b Handle delete failure notifications correctly.
Case was omitted in dialog, resulting in UnsupportedOperationException.
Remove a redundant flag check.

Bug: 28204292
Change-Id: I313d61c72596d4a127f61d557af7300f50d26bf0
2016-04-15 11:02:36 -07:00
John Reck
cd1c3eba69 Add a callback for when a gl functor is released
Bug: 27709981

Change-Id: Id5be3e8f88d6d84a9c59c7ed23e7e8862feefbe8
2016-04-15 10:56:53 -07:00
TreeHugger Robot
82a0ccac6a Merge "Added new actions for Data Saver stats." into nyc-dev 2016-04-15 17:53:43 +00:00
Abodunrinwa Toki
f061f2e706 Merge "Update FloatingToolbar overflow button." into nyc-dev 2016-04-15 17:52:09 +00:00
Doris Liu
da62de4f65 Merge "Fix ref count of fillGradient and strokeGradient" into nyc-dev 2016-04-15 17:47:25 +00:00
TreeHugger Robot
6f8476dc15 Merge "TIF: Specify the default implementation of onTune(Uri, Bundle)" into nyc-dev 2016-04-15 17:39:14 +00:00
Calin Juravle
8f5770dcdb Register the UI Thread as a sensitive thread to the runtime
Bug: 27865109
Bug: 28065407
Change-Id: I46194d444530770f505ac5e653536be2da7dd08b
2016-04-15 18:38:21 +01:00
Todd Kennedy
d022ac21eb Fix parse flags
Setting PARSE_IS_SYSTEM to the parse flags happens long after the
APK is actually parsed. So, we fail to pick up the boot aware and
protected storage attributes. Instead, always pull them from the
manifest, but, remove the flags if the package is not actually a
system package.

Also, we were incorrectly skipping certificate verification if
the flag PARSE_IS_SYSTEM was set. However, this flag is used for
_any_ system package -- whether it's physically on /system or if
it's an unbundled update. Instead, we should only skip this step
if the flag PARSE_IS_SYSTEM_DIR. We can implicitly trust any
APK actually stored in /system.

On a different note ... At some point, we will break apart the
parse flags into actual parse flags [i.e. those that change
physically parsing an APK] and policy flags [i.e. those that
change the interpretation of the APK contents].

Bug: 28116074
Bug: 28088617
Change-Id: I85246b0cb18fb5647df3618107910e288137fbc7
2016-04-15 17:04:14 +00:00
Donghyun Cho
fbbeb3e54a CEC: Remove listener records only if they are currently used
HdmiControlService manages listeners in listener record instances, and
remove them when binders become disconnected. However, if the listener
and its record are replaced due to new listener, the record for the new
listener should not be set as null by previous binder's disconnection
signal.

Bug: 28069465
Change-Id: I2984d8f93d6443048cf5d3f2988b3c6cf362f012
(cherry picked from commit f5c2a1f58dc95b9800ffb6ebf405c11acc6626b2)
2016-04-15 16:47:03 +00:00
Sungsoo Lim
067f821ec8 Merge "Use a binder instead of a bundle in removeSubscriptionWithOptions" into nyc-dev 2016-04-15 16:42:48 +00:00
Makoto Onuki
1c685d2a2b Merge "Remove all icon bitmaps when a publisher is uninstalled." into nyc-dev 2016-04-15 16:34:20 +00:00
Amith Yamasani
3646cbdfe7 Update interface quota on the handler
This avoids making expensive netd calls while holding the mRulesLock

Doesn't fix the problem of turning on hotspot while WiFi was connected.
It is no longer blocked on isNetworkMetered() call though.

Partial fix for following bugs...
Bug: 27857665
Bug: 28201280
Change-Id: I62f3c0b0571292cc1e156b48ce3329def41cdd07
2016-04-15 09:17:16 -07:00
Jeremy Joslin
fc8601310d Added useExternalScores field to WifiConfiguration.
Bug: 25562019
Change-Id: Ie3b02875b74f6decb1d4be0107a5a8161f66d657
2016-04-15 09:10:46 -07:00
Felipe Leme
3ff576454b Added new actions for Data Saver stats.
BUG: 28166693
Change-Id: I9b7bba21da622ade9a419f3717a2d18a87f4143d
2016-04-15 09:10:17 -07:00
Benjamin Franz
a900359500 Merge "Revert "Revert "Throw security exception for non-parent aware APIs""" into nyc-dev 2016-04-15 15:34:52 +00:00
Raph Levien
6e49a7fc6d Merge "Don't do layout in hasGlyph for codepoint + vs" into nyc-dev 2016-04-15 15:20:22 +00:00
Julia Reynolds
9e8bc7c685 Merge "Notification slider update." into nyc-dev 2016-04-15 15:18:24 +00:00
Benjamin Franz
bc33c8290f Revert "Revert "Throw security exception for non-parent aware APIs""
This reverts commit a26c6265641543aef24245b84064b8f58de66c29.

Bug: 27532279
Change-Id: I0c0394a8abf12e7382e7083a0b9d7f8385c3a63d
2016-04-15 16:08:35 +01:00
Julia Reynolds
4d920ff6eb Notification slider update.
Bug: 27558254
Change-Id: I5e03aacf3aafb900f45d227a031a5dbb328ba18f
2016-04-15 11:03:53 -04:00
Benjamin Franz
23abc598a5 Merge "Don't show the unlock notification when Work mode is off" into nyc-dev 2016-04-15 14:53:42 +00:00
Benjamin Franz
2f4c2299c7 Merge "Maybe decrypt user when quiet mode is disabled" into nyc-dev 2016-04-15 14:53:17 +00:00
Ricky Wai
a4c0b1de1a Merge "Fix cannot unlock keyguard when work challege is unified and work mode is off" into nyc-dev 2016-04-15 13:44:54 +00:00
Paul Jensen
91723d7f7e Avoid APF JNEBS instruction with R1 as it doesn't work
APF version 2 and prior versions fail to execute JNEBS with R1 argument.
The APF interpreter tries to use R1's value as the number of bytes to
compare, as well as the offset within the packet to compare at.
This change makes ApfFilter avoid using this and makes the APF generator
throw if this is used.  This was limiting the IPv4 filter, causing it to
only drop multicast (when multicast filtering was enabled), rather than
a wider range of broadcast packets.

Bug: 28206777

Change-Id: I8d116e024e8bd641b21053c6b1defc734d744467
2016-04-15 13:18:19 +00:00
Benjamin Franz
f02420c5e1 Maybe decrypt user when quiet mode is disabled
When quiet mode is disabled for a user and that user is not currently
decrypted, we show a confirm credentials screen to trigger decryption
of that user. Only if that was successful, do we actually disable quiet
mode.

Bug: 27764124
Change-Id: Ib1f649194d89e225dad62c14f3ddba1fa3d79da2
2016-04-15 14:12:41 +01:00
Abodunrinwa Toki
cef2cd6e52 Update FloatingToolbar overflow button.
1. Change the background ripple to the type used in the ActionBar.
   It looks better.

Bug: 28206428
Change-Id: I2c3ebdc2479ec554c6b06d637b418a52a1794d7b
2016-04-15 13:50:22 +01:00
TreeHugger Robot
46dc79cecf Merge "Metrics logging for DNS queries." into nyc-dev 2016-04-15 11:14:57 +00:00
Nicolas Prévot
428fdd104c Merge "Call notifyLockedProfile in TrustManagerService instead of KeyguardViewMediator." into nyc-dev 2016-04-15 09:52:56 +00:00
Sailesh Nepal
da6bb3883f [Call Timing] Add constants for call timing extras
This CL defines new extras that can be set in a call's intent extras.
These extras track the following:
    CALL_CREATED_TIME_MILLIS - the time when the call was created by
	telephony (or another connection service)
    CALL_TELECOM_ROUTING_START_TIME_MILLIS - the time when telecom
	started processing the call
    CALL_TELECOM_ROUTING_END_TIME_MILLIS - the time when telecom
	finished processing things like call blocking and was ready to
	connect to the UI

These extras can be used by the dialer to track how long it takes for
calls to be shown to the user.

Bug: 28202119
Change-Id: I8fca259d449adedaeb4ff91d35bf59a7409be866
2016-04-15 02:23:59 -07:00
Ricky Wai
f6ef828a74 Fix cannot unlock keyguard when work challege is unified and work mode is off
Bug: 28138657
Change-Id: I20e2f571d9ac76c0cd92251de7e068f6c7fb3367
2016-04-15 09:21:17 +00:00
Lorenzo Colitti
43724734d7 Metrics logging for DNS queries.
Bug: 28204408
Change-Id: I05fc9b580aa20d99e8766057e17a38b5eb6267e8
2016-04-15 16:54:39 +09:00
Lorenzo Colitti
88bc0bbb13 Disambiguate NetworkCallback JavaDoc.
The JavaDoc for many of the requestNetwork and
[un]registerNetworkCallback APIs incorrectly mentions the
PendingIntent version of the APIs instead of the NetworkCallback
version.

Also fix a minor issue in the registerDefaultNetworkCallback
JavaDoc: the default network request is an implementation detail,
so don't mention it. Instead, talk about the "system default
network".

Change-Id: Id94d98261daa2bd768c10e033cb8092729b21c91
2016-04-15 16:24:13 +09:00
Rob Carr
bb9fb194f8 Merge changes Id603816c,I86e41324,I025d0558,I44d8dbac,Iabfc2e81, ... into nyc-dev
* changes:
  Only set mResizedWhileNotDragResizing for base windows.
  Fix Task dim with docked resize.
  Correct window replacement string comparison.
  Replace DimLayers with windows.
  Prevent premature window replacement.
  Correctly prevent entrance animation for replacing windows.
  Replace secondary app windows across activity relaunch.
2016-04-15 06:20:28 +00:00
Baligh Uddin
236c40ac26 Import translations. DO NOT MERGE
Change-Id: Ibe3273d1791c214e6f9f311bbf37657a9051f830
Auto-generated-cl: translation import
2016-04-14 23:16:45 -07:00
Selim Cinek
4bb593492c Fixed a bug with the overflow number
The number didn't apply the contrast computations
and wasn't scaling when density changed.

Change-Id: Ibde116f176c3a8d20de28ab432a80d9219f75581
Fixes: 28073460
2016-04-15 13:30:18 +08:00
Craig Donner
b6ccae999f Fix VR mode handling when the screen blanks and unblanks.
When blanking the screen, turn off VR mode if it's enabled, and when waking up
after the keyboard goes away, turn it on if the top activity has requested VR
mode.

Bug: 26751056
Change-Id: Ib57b1c59e083e3615a02408d922c8c7be645ce92
2016-04-14 22:18:20 -07:00
Tomasz Mikolajewski
30616fcd21 Fallback to Recents when Downloads is not available.
Bug: 28182647
Change-Id: I0ece028f7980c7e55ca64d5aa34e98bdb4d08176
2016-04-15 14:06:09 +09:00
Andrii Kulian
5981b8c2e8 Merge "Remember task which is being locked" into nyc-dev 2016-04-15 04:32:57 +00:00
Raph Levien
032a35954c Don't do layout in hasGlyph for codepoint + vs
In the case where the input is a base codepoint + a variation selector,
the code currently checks hasVariationSelector and then does a layout,
checking for a single glyph. However, HarfBuzz in some cases will change
the VS into a space glyph, so hasGlyph will return false.

This patch makes hasGlyph rely entirely on the hasVariationSelector
method in the case of a base codepoint + a VS

Bug: 27531970
Bug: 28182689
Change-Id: Id190c427149213509f2d779ec1aa330feb4b62d8
2016-04-14 21:22:37 -07:00
Jorim Jaggi
ff71d20ff3 Put windows into resizing during IME adjust animation
Because the IME animates in with translucency there was a black hole
visible at the bottom. This CL puts the window into resizing mode,
waits until the change is commited, and then starts the animation

Bug: 28175599
Change-Id: Ib31c1e765639e5490208bccba77b25318ec8dc71
2016-04-14 20:47:45 -07:00
Jorim Jaggi
698e7634aa Disable resize when IME is adjusted
Bug: 28175599
Change-Id: I338dd230443973d912f17946ed722789b0f545a2
2016-04-14 20:45:56 -07:00
Jorim Jaggi
eb88d83fc5 Add nice animation when adjusting for IME in multi-window
- Run a separate animation when we need to adjust for the IME. We
can't use the attached animation because the adjustment animation
needs to be longer than the IME animation.
- Also run an animation when IME is disappearing.
- Adjust IME exit animation to better match with adjustment exit
animation.
- Make sure to update adjust for IME when entry/exit animation of
IME is starting, to avoid flickers.
- Don't update the IME window in PhoneWindowManager for layout
until the animation has started. This lead to an issue where the
content inset was set too large too early.

Bug: 27154882
Bug: 28175599
Change-Id: I09a33413e307f84d6c3cf4ae928c280f7ad48348
2016-04-14 20:45:45 -07:00
Jorim Jaggi
be67c90f4c Don't log transition time if no process switch
If the process of an activity that is launching has another
non-stopped activity, the data is not that interesting,
so remove the logging in these cases.

Bug: 27295491
Change-Id: I65d4a0e01b1e634a589ce8ecbbab337f0e6497ca
2016-04-15 03:12:16 +00:00
Baligh Uddin
52b9c133dc Import translations. DO NOT MERGE
Change-Id: I620bb1cffbc6a62baf7486c09e6a67887af65f47
Auto-generated-cl: translation import
2016-04-14 19:29:04 -07:00
Craig Donner
8819c9d2ff Replace CTS with CDD in comment for FEATURE_VR_MODE_HIGH_PERFORMANCE
Bug: 27532416
Change-Id: I303d63d5b70434019acd77e8d82abcbabb1a85c1
2016-04-14 19:27:50 -07:00