Commit Graph

59884 Commits

Author SHA1 Message Date
Makoto Onuki
cbd0ed2944 API for blocked number provider
Bug 26232372

Change-Id: I4d243c00ab9f02af527a96d7b549abfe7876f565
2016-01-13 12:41:54 -08:00
Filip Gruszczynski
3a1cbc333e Merge "Use full display size for calculating volume dialog size." 2016-01-12 22:10:10 +00:00
Filip Gruszczynski
8c1ee9d8f5 Use full display size for calculating volume dialog size.
Bug: 26485500
Change-Id: I25ef29a3d611617b4dc59a315b072fafb3f3f825
2016-01-12 13:22:38 -08:00
Jeff Sharkey
fdeeeea6cf Follow installd changes, throw exceptions.
Start by passing down flags to work on both CE and DE storage areas;
a future change will refine this further.

Force consistent argument checking and null handling for all
installd callers.  Throw explicit exceptions instead of returning int
values that can accidentally be ignored.

Bug: 26466827
Change-Id: Iddb591f6b3c7786d210d3f132ff7f9886a97b749
2016-01-12 14:21:24 -07:00
Jeff Sharkey
c3132513bf Parsing a static archive should be stateless.
When the caller hasn't specific encryption-related matching flags,
we should match both aware and unaware components.

Bug: 26508249
Change-Id: I2c35f6e00e451ba3f5fa0810223b7a3d80dee233
2016-01-12 14:07:00 -07:00
Yohei Yukawa
475737c354 Merge "Suppress NPE in IMS#onEvaluateInputViewShown()." 2016-01-12 20:38:58 +00:00
Adrian Roos
292494a58b Merge "Apply transformations while offsetting focused rects" 2016-01-12 20:21:25 +00:00
Yohei Yukawa
cf8403bc36 Suppress NPE in IMS#onEvaluateInputViewShown().
This is a follow up CL for the previous commit [1], which may have
triggered an unknown bug in either Android Framework or LatinIME.

  [1]: Id4d332e3909590c68345e10e1f2e18650efb2eb7
       7b739a802c

InputMethodService#mSettingsObserver is initialized in #onCreate() and
cleard with null in #onDestroy().  Hence hitting NPE against it implies
that InputMethodService#onEvaluateInputViewShown() can be called before
InputMethodService#onCreate() or after InputMethodService#onDestroy().
Both possibilities are equaly problematic.  Note that this might be a
long-standing issue that just became obvious because of [1].

This CL does not attempt to fix the root cause but just tries to
suppresses the NPE to unblock QA tasks.  A proper fix should be made in
subsequent CLs.

Bug: 22517687
Bug: 26511607
Change-Id: I6bc87c3d18b560fe2253fb9f05557b95b04d0cf0
2016-01-12 12:17:42 -08:00
Kweku Adams
eb80f7c6d6 Fix documentation typo.
Change-Id: Ia40d67069f4789d8f8d0a7cb5dcf447cedec9950
2016-01-12 19:57:34 +00:00
Udam Saini
b6bb986889 Merge "Makes captive portal server calculation in one place." 2016-01-12 18:40:45 +00:00
Adam Powell
0c57596905 Merge "Eagerly update fragment state when moving between states" 2016-01-12 18:30:47 +00:00
Adam Powell
d1d4d9cb3a Eagerly update fragment state when moving between states
As seen in frameworks/support!

Previously we would not set a fragment's new state until the move to a
new target state was fully complete. This causes problems when other
parts of the fragment manager infrastructure (such as lazily
initializing a child fragment manager) read that state while we're
dispatching a state change call to a fragment.

In this situation, adding a child fragment and then calling
executePendingTransactions on the child FragmentManager would not have
the intended effect, as the child FragmentManager would still be in
state INITIALIZING. The expected lifecycle callbacks to the child
fragment would then occur later.

Fix this by updating the fragment state as we go through each phase of
moveToState before we dispatch to the associated onState method,
matching our usual pattern of invoking onFoo methods after foo has
occurred. Delete the redundant resumed field as we now can use the
state directly.

Bug 25019275

Change-Id: I97fe45578d59ab643c9779eaeb475a331e446335
2016-01-12 10:26:16 -08:00
Alan Viverette
b06271db81 Merge "Don't explicitly set the title's layout direction" 2016-01-12 17:48:42 +00:00
Alan Viverette
866d37d3c9 Merge "Apply Spinner dropDownSelector value from XML" 2016-01-12 15:52:32 +00:00
Victor Chang
c754dffe19 Merge "Create a new device policy for controlling work contacts search" 2016-01-12 11:51:01 +00:00
Victor Chang
1060c61866 Create a new device policy for controlling work contacts search
BUG=25981902

Change-Id: I5cea59d7d09bf54051ae0e56e824e4d3a08a49e7
2016-01-12 11:31:16 +00:00
Adrian Roos
83e725da7a Apply transformations while offsetting focused rects
Change-Id: Id6ebf8d50bd74f52fb76cf12bf14ccc0dcf7e34b
2016-01-12 12:25:36 +01:00
Jeff Sharkey
9229ee5959 Merge "Install non-EA providers once user is unlocked." 2016-01-12 03:16:22 +00:00
Chet Haase
fadc86666f Merge "Don't double-set keyframe values when Property exists" 2016-01-12 00:51:36 +00:00
Chet Haase
406a02b59d Don't double-set keyframe values when Property exists
There is logic in PVH.setupValue() that sets the value of
the appropriate keyframe from a Property, if that Property object
exists for the animator. But after that is done, it goes ahead and sets
the same keyframe value based on the getter for the target object.
This is not only redundant; it is wrong (in the odd situation in which
a getter would return something different than Property.get()).

The solution is to return early once we've set the value with the
Property object.

Issue #26471646  PropertyValuesHolder uses reflection in setupValue when a Property is being used

Change-Id: I12634a25661400f13f44872ba17625b32e93ca19
2016-01-11 16:27:20 -08:00
Todd Kennedy
12705131b9 Hide ephemerality
Change-Id: Ibf60366b3f00b1920e330cd804bcc1c550f8882a

Bug: 26404647
2016-01-11 16:21:03 -08:00
Yohei Yukawa
f55ed12fd1 Merge "Enrich JavaDoc for IC#deleteSurroundingText()." 2016-01-12 00:08:39 +00:00
Winson Chung
f273418b07 Merge "Snap docked stack after screen rotation" 2016-01-11 23:44:55 +00:00
George Mount
6b99325be9 Merge "Change access to action bar to control-<" 2016-01-11 23:12:00 +00:00
Jorim Jaggi
737af724eb Snap docked stack after screen rotation
- Move DividerSnapAlgorithm to com.android.internal, also move
some utility stuff into DividerUtils which is used from both
SystemUI and window manager
- When the screen rotation changes, rotate the stacks like before
but then also snap the docked stack to a valid snap position.

Change-Id: I9e1aa13f42f398a25c9016e6f20395ee212e405b
2016-01-11 23:05:56 +00:00
Julia Reynolds
04fc35428f Merge "Notification banning updates." 2016-01-11 21:32:37 +00:00
Shreyas Basarge
89ee618280 Flex time for periodic jobs in JobScheduler
A periodic job will start only within time
satisfying period - flex < time % period < period.

Bug: 26254850
Change-Id: I97a840446e5592e5151d784800855d909f1790b8
2016-01-11 20:58:29 +00:00
Alan Viverette
850cd726c8 Apply Spinner dropDownSelector value from XML
Bug: 26400523
Change-Id: I7e09d709214b6841b688cf130638583a9db01f19
2016-01-11 15:34:43 -05:00
Tingting Wang
9d46b3efd7 Merge "Remove @hide for CONTACT_METADATA_SYNC." 2016-01-11 20:18:37 +00:00
Jason Monk
057ee76e5c Fix build
Fix bad merge

Change-Id: I2cd1f32a7e50b8fa1f7f85c52fe34111f7cea577
2016-01-11 14:37:44 -05:00
Jason Monk
c06fbb1298 Move battery saver notification to QS
Remove the battery saver notification and instead create a detail
panel within QS that allows it to be turned on and off.

Change-Id: I54654d26183586fa171fda04877a840701f8ef33
2016-01-11 14:29:23 -05:00
Tingting Wang
e105521736 Remove @hide for CONTACT_METADATA_SYNC.
Make Contacts App access this flag.

BUG 26491409

Change-Id: I440cb540fbcc5dd3722ecb6e335dd40914cc30b5
2016-01-11 11:12:03 -08:00
Jeremy Klein
502658dd90 Merge "Add a TETHER_PRIVILEGED permission and use it where needed." 2016-01-11 19:10:22 +00:00
Jeff Davidson
6cf2fb3f66 Merge "Define new APIs for metering and roaming network stats buckets." 2016-01-11 18:51:20 +00:00
Gustav Sennton
1075d812f6 Merge "Fix WebView loading logic to allow changing provider if current disabled" 2016-01-11 18:43:05 +00:00
Winson Chung
d0b0fa16a3 Merge "Revert "Snap docked stack after screen rotation"" 2016-01-11 17:53:40 +00:00
Winson Chung
3dc52ed179 Revert "Snap docked stack after screen rotation"
This reverts commit e65d6bb207.

Change-Id: I245aa9be3ea98ff742e02b02f6f1d344bc2e8182
2016-01-11 17:53:17 +00:00
Roozbeh Pournader
a514b63749 Merge "Support properly setting and getting LocaleLists" 2016-01-11 17:48:53 +00:00
Phil Weaver
0ff7f17984 Merge "Gesture dispatch from accessibility services." 2016-01-11 17:42:54 +00:00
Phil Weaver
a6b64f5099 Gesture dispatch from accessibility services.
Add public APIs to describe gestures and dispatch them from
an accessibility service. Added a new capability that
services must declare to have this capability.

Bug: 22514086

Change-Id: I9bff2d9335f0310115112d14b7ed033a6d6c2393
2016-01-11 09:32:43 -08:00
Jorim Jaggi
e65d6bb207 Snap docked stack after screen rotation
- Move DividerSnapAlgorithm to com.android.internal, also move
some utility stuff into DividerUtils which is used from both
SystemUI and window manager
- When the screen rotation changes, rotate the stacks like before
but then also snap the docked stack to a valid snap position.

Change-Id: Ifb0c65dfbdfca2343a76b12de982c0701fe0c3ab
2016-01-11 16:58:54 +00:00
Filip Gruszczynski
e8b3bb9af0 Merge "Load background drawable before passing to backdrop renderer." 2016-01-11 16:33:33 +00:00
Jeff Sharkey
5eeefba37c Merge "Temporary patch to work around broken casting." 2016-01-11 03:41:22 +00:00
Jeff Sharkey
6c4b87be9e Temporary patch to work around broken casting.
Bug: 26481405
Change-Id: If91ecfbfda94a2cb694098d456126f87311e1d05
2016-01-10 20:40:08 -07:00
Jeff Sharkey
263ce2b52a Merge "Fix IndentingPrintWriter after JDK switch." 2016-01-10 21:32:30 +00:00
Jeff Sharkey
67be718476 Fix IndentingPrintWriter after JDK switch.
We needed to overload more methods.  Verified that tests pass.

Bug: 26191999
Change-Id: I2b75890239d3febf3411c4b7bb4df92a6d61f056
2016-01-10 14:30:47 -07:00
Jeff Sharkey
bc215b8426 Merge "Fix NPE when UID has no packages." 2016-01-10 20:18:20 +00:00
Jeff Sharkey
377ded0fce Fix NPE when UID has no packages.
Bug: 25224723
Change-Id: I637214666a1f02bd23474c27a285eea9152cfa9d
2016-01-10 13:15:43 -07:00
Jeff Sharkey
2bd31dbd02 Install non-EA providers once user is unlocked.
When starting encryption-aware apps while the device is locked, we
can only spin up ContentProviders that have been marked as
encryption-aware.  Once the user is unlocked, we need to go back and
install non-encryption-aware providers in already running apps.

Fix bugs in getPackageInfo() where only one of the various MATCH_
flags was being consulted (!).  Move matching logic to single unified
location in PackageUserState so we have consistent behavior.

Fix another class of bugs where Safe Mode wasn't correctly filtering
package details (!).  These bugs are fixed by splicing in the new
MATCH_SYSTEM_ONLY flag as part of state-based flag mutation that was
added for encryption.

Bug: 25944787
Change-Id: I39c8da74b1f9ba944cc817176983f50ba322329c
2016-01-09 19:28:09 -07:00
Jeff Sharkey
3ea44a52f0 Device encrypted storage is always available.
In order to support backup/restore on devices without native FBE
support, we always need to make the DE storage area available.  Add
docs clarifying the lifecycle.

Bug: 26279618
Change-Id: I789915f295b10aca6bf80ca58406aea212835ffd
2016-01-09 15:34:44 -07:00