234162 Commits

Author SHA1 Message Date
Phil Burk
4e572d32f8 Merge "AudioService: add support for ENCODED_SURROUND_OUTPUT" into nyc-dev 2016-03-01 00:06:21 +00:00
Jeff Sharkey
8cac67b616 Merge "Need to clear identity when rebooting for FBE." into nyc-dev 2016-03-01 00:03:29 +00:00
Jeff Sharkey
753c347efd Merge "Parcelable classes should always be final." into nyc-dev 2016-03-01 00:02:43 +00:00
Jeff Sharkey
1176e51b49 Need to clear identity when rebooting for FBE.
Bug: 27412530
Change-Id: I6d5b925a16daefd1b6906ce036faeb6244d503fb
2016-02-29 17:01:30 -07:00
Jeff Sharkey
50d1c044b5 Parcelable classes should always be final.
Also hide ConnectivityMetricsEvent which isn't being used yet.

Bug: 27415331
Change-Id: Iacdccddda504f3f669185f807b4f35b8dc2b0212
2016-02-29 16:46:09 -07:00
Selim Cinek
a52f6a17ef Fixed a bug where group children where not expandable
Bug: 27417777
Change-Id: I57368f18b810bc9f6fc7c08c0f7fb038743b528d
2016-02-29 23:44:28 +00:00
Jeff Sharkey
74db59042c Merge "More lint checks." into nyc-dev 2016-02-29 23:21:31 +00:00
Jeff Sharkey
331279b239 More lint checks.
-- Error if Parcelable classes aren't final.
-- Warn that MIN_/MAX_ constants that should be dynamic.
-- Error if throwing raw RemoteException.
-- Warn if methods accept File without stream variants.
-- Ignore upstream ICU project.

Bug: 27410989
Change-Id: I12d843e63078dc696c1798a20e088608f1ba9ed1
2016-02-29 16:19:46 -07:00
Pablo Ceballos
86a27f343c Merge "Fix glGetTransformFeedbackVarying JNI" into nyc-dev 2016-02-29 22:58:56 +00:00
Steve McKay
9e9bce724e Merge "Update preconditions to be asserts..." into nyc-dev 2016-02-29 22:55:50 +00:00
Steve McKay
a1f7680f53 Update preconditions to be asserts...
Which are now supported by Jack.
Retain a few preconditions checks that enforce contract.
Disable the one assert we had...because it failed in tests.

Change-Id: I2f6cb01e1af1534be4428ce4a3ee625a163dd163
2016-02-29 14:47:40 -08:00
Yujie Qin
2a1d3cbc02 Merge "Use SkFILEStream directly when possible" into nyc-dev 2016-02-29 22:39:41 +00:00
Wale Ogunwale
6aeeb21b6b Merge "Use realActivity name when comparing if intents are the same" into nyc-dev 2016-02-29 22:38:29 +00:00
Wale Ogunwale
715a1dcffd Use realActivity name when comparing if intents are the same
The TaskRecord intent (usually the intent of the root activity) component
names are based on the realActivity (the activity we are actually launching
and not the input alias) and the ActivityRecord intent is based on the input
component name which can be an alias. This leads to issues when we are trying
to compare the intent of a task and an activity to see if they resolve to
the same thing since the component names will be different in the case of
aliasing.
We know base the activity intent component name on the realActivity before
comparing with the task record intent.

Bug: 27403679
Bug: 27112965
Change-Id: I196e03bb018582cbac977fb3ad45354f00f51578
2016-02-29 14:27:32 -08:00
Colin Cross
414c529a4f Merge "Add dumpsys meminfo --unreachable" into nyc-dev 2016-02-29 22:19:40 +00:00
Chris Craik
b878a99f23 Merge "Fix matrix mapping of negative rects" into nyc-dev 2016-02-29 22:02:26 +00:00
Chris Craik
5005033fa3 Merge "Fix arc positioning" into nyc-dev 2016-02-29 22:02:23 +00:00
Yohei Yukawa
b7480c2bd6 Merge "Revert "InputConnectionWrapper never supports null target."" into nyc-dev 2016-02-29 21:49:42 +00:00
John Reck
def048e596 Merge "Fix dirtyMask in AnimateFunctor" into nyc-dev 2016-02-29 21:47:22 +00:00
Tony Mak
4936753d9f Merge "Fix setBluetoothContactSharingDisabled does not persist" into nyc-dev 2016-02-29 21:46:16 +00:00
Mady Mellor
a5d6c37338 Merge "Update the animation when showing / closing inline controls" into nyc-dev 2016-02-29 21:43:41 +00:00
John Reck
9e066cbf59 Fix dirtyMask in AnimateFunctor
Bug: 27313379
Change-Id: I0c0cffe7e1940914f0143714643ede539b86216f
2016-02-29 13:40:52 -08:00
Andrii Kulian
6cf85afcb1 Merge "Reset pointer icon when view is not present" into nyc-dev 2016-02-29 21:36:08 +00:00
Yohei Yukawa
abc4b8f035 Revert "InputConnectionWrapper never supports null target."
This reverts commit 90bd36363c5738b3f526aa1f1d44f432236300a0.

Seems that the semantics of InputConnectionWrapper#setTarget() is more
complicated than I thought.  At least the following cases have worked
fine.

  case 1:
    InputConnectionWrapper wrapper =
            new InputConnectionWrapper(null, false);
    wrapper.SetTarget(ic);
    ...

  case 2:
    InputConnectionWrapper wrapper =
            new InputConnectionWrapper(null, true);
    wrapper.SetTarget(ic);
    ...

  case 3:
    InputConnectionWrapper wrapper =
            new InputConnectionWrapper(ic, true);
    wrapper.SetTarget(null);
    wrapper.SetTarget(ic2);
    ...

The previous code did not intended to break existing code.  Let's revert
it we decide how to deal with above cases.

Bug: 27407697
Change-Id: I8bc84d484ab0b27a02e74f11110430f70646e69a
2016-02-29 13:35:59 -08:00
Chris Craik
0066a01d7c Fix arc positioning
bug:27389290

Change-Id: I479a34ea079f1fce1c308aa809a57885ffa1d004
2016-02-29 13:34:44 -08:00
Tony Mak
e9aa6ec1cf Fix setBluetoothContactSharingDisabled does not persist
The default value of bluetotoh contact sharing is true.
So we should save when it is false.

Bug: 27410265
Change-Id: Icaf4ceeda09eca46d160acfecc53834819b66a18
2016-02-29 21:32:47 +00:00
Yohei Yukawa
82197c33a2 Merge "InputConnectionWrapper never supports null target." into nyc-dev 2016-02-29 21:13:10 +00:00
Chris Craik
261725fdb2 Fix matrix mapping of negative rects
bug:27381362

Also rejects ops with empty clip at record time, and short circuits clip
intersection, when one is empty.

Change-Id: I842612da14ad8fd9f1ba5e9e4fd027ba4e08d365
2016-02-29 13:10:25 -08:00
Andreas Gampe
15f6810d9e Merge "Frameworks/base: Refactor Paint & Canvas native allocation support" into nyc-dev 2016-02-29 21:04:15 +00:00
Yohei Yukawa
90bd36363c InputConnectionWrapper never supports null target.
This CL makes it clear that InputConnectionWrapper does not support null
target.  In other words, the semantics of null InputConnection can never
be emulated by a non-null InputConnectionWrapper.

This is particularly problematic when app developers are just forwarding
the return value of super.onCreateInputConnection() to
InputConnectionWrapper or its subclass, because there are many chance
that super.onCreateInputConnection() starts returning null, e.g. when:
  A. the application is extending a Framework class, and the Framework
     class is updated by OTA.
  B. the application is extending system WebView, and the WebView is
     updated.
  C. the application is extending a 3rd party library, and the app
     developer creates a new build with a new version of the 3rd party
     library.

To make it easy to catch these kind of bugs, this CL lets the
constructor of InputMethodWrapper throw NullPointerException when target
is null.  Bugs like crbug.com/571229 should be caught by developers
more easily.

Bug: 27407697
Change-Id: I83875bea886d4784f9507c930050efc29708d9db
2016-02-29 12:45:49 -08:00
Svet Ganov
6ac25c5641 Fix uninstalling apps with damaged/gone APK files
bug:27394497

Change-Id: I0d0317f2d7168be4412a24d34a9f23f04c6d8601
2016-02-29 12:44:44 -08:00
Jason Monk
f8d700ab83 Merge "Fix flashlight availability." into nyc-dev 2016-02-29 20:41:03 +00:00
Jason Monk
8e4341d980 Merge "Fixes in QS customization" into nyc-dev 2016-02-29 20:29:14 +00:00
Abhijith Shastry
1ce163fe34 Merge "Add new API to create an intent to manage blocked numbers." into nyc-dev 2016-02-29 20:23:21 +00:00
Abhijith Shastry
dbfe753c41 Merge "Add new API for creating intent to manage blocked numbers." into nyc-dev 2016-02-29 20:22:49 +00:00
Phil Burk
ac0f704b1a AudioService: add support for ENCODED_SURROUND_OUTPUT
Preference allows override of AudioPolicyManager.
Lets user force or prevent use of AC3 and DTS regardless
of what the EDID says.

Bug: 26373761
Change-Id: I21440f2b90af9a369a36b7b07724e992501bce6d
Signed-off-by: Phil Burk <philburk@google.com>
2016-02-29 12:20:43 -08:00
Alan Viverette
89dea902c1 Merge "Use asset cookie in XML block cache key" into nyc-dev 2016-02-29 20:12:38 +00:00
Jason Monk
04fd24966a Fixes in QS customization
- Revert to long-press to drag
 - X -> <-
 - Always save

Bug: 27397111
Bug: 27364013
Bug: 27396440
Change-Id: Ib19096b0ed65fb1112386735dffe9308e57c3d5a
2016-02-29 15:01:21 -05:00
Abhijith Shastry
a26fe99b1e Add new API to create an intent to manage blocked numbers.
This replaces the launchManageBlockedNumbersActivity API.

BUG: 27364137

Change-Id: I5d5a20d25f0dea8b8e0e998b51f80658ff404e2c
2016-02-29 11:53:43 -08:00
Ruben Brunk
b77f9ec93a Merge "Revert "DO NOT SUBMIT: Hide VR features for preview."" into nyc-dev 2016-02-29 19:50:37 +00:00
Ruben Brunk
e5d76e8276 Revert "DO NOT SUBMIT: Hide VR features for preview."
This reverts commit cfa66a2a45c3cec6c338d0d83806fb33d63cfd44.

Change-Id: Ibf36092205b14c29935d1f28be5f5b5f64b1d16c
2016-02-29 19:50:15 +00:00
Abhijith Shastry
1e6f8343b5 Add new API for creating intent to manage blocked numbers.
The launchManageBlockedNumbersActivity API will be removed.

BUG: 27364137
Change-Id: I440aaab521f5320bbc79b79f212ed1b418ce2d14
2016-02-29 11:47:10 -08:00
Ruben Brunk
8ccb68af89 Merge "DO NOT SUBMIT: Hide VR features for preview." into nyc-dev 2016-02-29 19:43:55 +00:00
Jeff Sharkey
b7cdf1da0a Merge "Delay migration until after user is prepared." into nyc-dev 2016-02-29 19:28:20 +00:00
Jason Monk
72d7bc4a09 Fix flashlight availability.
Bug: 26981482
Change-Id: I62059b3b7f18520ae8735f3f3557411991bee909
2016-02-29 14:09:30 -05:00
Jeff Sharkey
ca6abfd9d6 Delay migration until after user is prepared.
We don't have a vold connection early in the PackageManagerService
constructor, so we can only migrate the system user at boot.  We now
migrate other users only after they're explicitly unlocked by
UserManagerService.

Bug: 27330415
Change-Id: I29f21714acf65a598b8df496af0f7d2cb1d247c4
2016-02-29 12:07:14 -07:00
Diego Perez
1db8850b79 Merge "Fix StackMap renaming in Java 8" into nyc-dev 2016-02-29 19:01:56 +00:00
Dongwon Kang
f61dd544b2 Merge "PIP: Implement play/pause button in menu" into nyc-dev 2016-02-29 19:00:02 +00:00
Jaewan Kim
623381921c PIP: Implement play/pause button in menu
Bug: 26685243
Change-Id: Id3138cc35dbef90d91767797e7f26f3c60191b1a
2016-02-29 10:53:10 -08:00
Andreas Gampe
f6765f3965 Frameworks/base: Refactor Paint & Canvas native allocation support
Put the native allocation support into a holder class. This allows
statically initializing the classes in the boot image.

Bug: 27265238
Bug: 23130675
Change-Id: I857aebfdbaec39067a5eb58afceb49630176af98
2016-02-29 10:49:01 -08:00