Commit Graph

7127 Commits

Author SHA1 Message Date
Alan Viverette
68ae7b3d23 am 61c9ca8e: am 36884392: am 2d4dc8db: Merge "Obtain handler from context in CaptioningManager" into mnc-dev
* commit '61c9ca8e9dc6613a9256cccee947e32a74490cfa':
  Obtain handler from context in CaptioningManager
2015-06-15 18:42:52 +00:00
Alan Viverette
2d4dc8db64 Merge "Obtain handler from context in CaptioningManager" into mnc-dev 2015-06-15 18:05:11 +00:00
Dianne Hackborn
f8b3253180 am ccd6d0c1: am d55860d9: am 8a435ced: Merge "Fix APIs." into mnc-dev
* commit 'ccd6d0c14decd111e7e12bf9844fa5ff75aa912e':
  Fix APIs.
2015-06-12 17:48:22 +00:00
Dianne Hackborn
8a435ced67 Merge "Fix APIs." into mnc-dev 2015-06-12 16:34:38 +00:00
Chet Haase
0a488ea63d am 501209df: am 16b4e751: am e61fc94b: Merge "Remove View.getBackgroundColor()" into mnc-dev
* commit '501209dfc0c3bce3596998074638faaa913da174':
  Remove View.getBackgroundColor()
2015-06-12 15:31:13 +00:00
Chet Haase
3dcb9945fd Remove View.getBackgroundColor()
This method was added earlier in M - removing it now based on API
Council feedback.

Issue #21572678  API Review: android.view.View.getBackgroundColor()

Change-Id: I04fad49c3c377218d0fb708dbeaea609aca46ce8
2015-06-12 13:25:27 +01:00
Adam Powell
b94e938e50 am 0b8f8c78: am b0fb6255: am de64ac45: Merge "Check targetSdkVersion when passing size hints for UNSPECIFIED specs" into mnc-dev
* commit '0b8f8c78a250b252e7c5b06c5f1f404e33791ff0':
  Check targetSdkVersion when passing size hints for UNSPECIFIED specs
2015-06-12 01:37:01 +00:00
Dianne Hackborn
ece0f4f519 Fix APIs.
Issue #21039494: API Review: android.os.PowerManager.isDeviceIdleMode()
Issue #21347000: API Review: android.content.IntentFilter
Issue #20654534: API Review: android.app.assist

Also allow use of ActivityManager.setWatchHeapLimit on any platform
build as long as the calling app is debuggable.

Change-Id: Ic597e596fa772fcdf2553b64f444b3d9269e8b92
2015-06-11 18:07:43 -07:00
Adam Powell
d5dbf4b2a0 Check targetSdkVersion when passing size hints for UNSPECIFIED specs
As of MNC stock widgets will pass a size in UNSPECIFIED MeasureSpec
values as a hint of the container size. This lets things like list items
size themselves at 1/3 the size of their container.

This breaks assumptions in a few existing applications, so maintain the
old expectation of 0 size in UNSPECIFIED MeasureSpecs for apps targeting
older SDK versions.

Bug 20975083

Change-Id: Ic7318e88854e00d96852dde2c0e10376b42bf77f
2015-06-11 13:57:41 -07:00
Chris Craik
68278f8420 am 15167d15: am 31f50838: am e22c59b2: Trace each stage of Choreographer driven frames
* commit '15167d15b493e54c5ccc8697256142815132cec0':
  Trace each stage of Choreographer driven frames
2015-06-11 20:25:44 +00:00
Chris Craik
e22c59b291 Trace each stage of Choreographer driven frames
bug:21374535

Change-Id: I332dac216defbc4517441e2a9cdffdf71731f1e6
2015-06-11 19:51:38 +00:00
Chris Banes
2997afda56 am d4e6479e: am 0d4798be: am dbdaa9b4: Merge "API council review feedback for ActionMenuView" into mnc-dev
* commit 'd4e6479ef72202f28fc306988b91f777300ee6d9':
  API council review feedback for ActionMenuView
2015-06-11 17:07:11 +00:00
Chris Banes
dbdaa9b41e Merge "API council review feedback for ActionMenuView" into mnc-dev 2015-06-11 08:05:42 +00:00
Vladislav Kaznacheev
89210027d9 am 99eae978: am 093aba01: am 1955ee57: Merge "Make VPA.setInterpolator(null) unset the interpolator." into mnc-dev
* commit '99eae97826b89f7625652d3fd77ace53c11361f6':
  Make VPA.setInterpolator(null) unset the interpolator.
2015-06-11 01:33:06 +00:00
Vladislav Kaznacheev
1955ee57b3 Merge "Make VPA.setInterpolator(null) unset the interpolator." into mnc-dev 2015-06-10 21:55:39 +00:00
John Reck
979d1cc86b am f0a79ac9: am 0d8f5352: am 767ec843: Merge "Set the right reportNextDraw" into mnc-dev
* commit 'f0a79ac9351f54fa73cffc7227e88b5695767c8c':
  Set the right reportNextDraw
2015-06-10 18:43:11 +00:00
John Reck
6fa9512e34 Set the right reportNextDraw
Bug: 8012229

mReportNextDraw is set by resized to have updateWindow() do
its thing. However if we are in updateWindow() and the
relayout() call to WindowManager wants us to report the draw
we should set reportNextDraw instead of mReportNextDraw
so that we report that frame instead of at the accidental next
invalidate.

Change-Id: If6c38d95599469831a0bd5e4d2b3f6c4f259e40c
2015-06-10 10:25:20 -07:00
Chris Banes
a41b78973d API council review feedback for ActionMenuView
Reverts "MenuItem, navigation and overflow icon tinting" CL,
and adds getter and setter for the overflow icon to ActionMenuView
and Toolbar.

BUG: 21571899

Change-Id: I591f43650356443fa3256e4d74e28b6ddd8c2b33
2015-06-10 11:39:01 +01:00
Chris Craik
d55dee2018 am 64606735: am 57998147: am 751afe20: Merge "Dont ignore layer paint alpha in software path" into mnc-dev
* commit '646067359634a7f2a6e42096b09329127c0dc225':
  Dont ignore layer paint alpha in software path
2015-06-09 23:23:16 +00:00
Chris Craik
751afe2040 Merge "Dont ignore layer paint alpha in software path" into mnc-dev 2015-06-09 22:23:36 +00:00
Yohei Yukawa
e55669e4df am be9ed058: am 3f501b9b: am 62974816: Merge "Do not accept an empty string in EditorInfo#packageName anymore." into mnc-dev
* commit 'be9ed058c6c3c51135a91d476b7adb94bd497f9c':
  Do not accept an empty string in EditorInfo#packageName anymore.
2015-06-09 21:06:16 +00:00
Chris Craik
f396f011ee Dont ignore layer paint alpha in software path
bug:19412691

Change-Id: Ie56b2cbc667a078eb4a7c5bfe7b8e8dd6b0fc24b
2015-06-09 13:50:01 -07:00
Yohei Yukawa
62974816a3 Merge "Do not accept an empty string in EditorInfo#packageName anymore." into mnc-dev 2015-06-09 20:30:56 +00:00
Yohei Yukawa
bdf15ad208 am b274f3f4: am cce769a0: am eae09d1a: Merge "Update JavaDoc of EditorInfo#packageName." into mnc-dev
* commit 'b274f3f45c09c7679275184a2d6c111876d18f45':
  Update JavaDoc of EditorInfo#packageName.
2015-06-09 20:01:54 +00:00
Yohei Yukawa
eae09d1ad7 Merge "Update JavaDoc of EditorInfo#packageName." into mnc-dev 2015-06-09 19:23:02 +00:00
Selim Cinek
6d51af3151 am 68385af8: am 57327e20: am 78528b22: Fixed a RTL layouting bug with LinearLayout
* commit '68385af87fef67bf7be764676dd85d258bf1d8f7':
  Fixed a RTL layouting bug with LinearLayout
2015-06-09 18:59:02 +00:00
Selim Cinek
78528b22c2 Fixed a RTL layouting bug with LinearLayout
When the RTL properties of a horizontal LinearLayout
changed, nobody enforced the view to be layouted anew,
even though its layout is dependent on the layout
direction. This could lead to stale layouts being
temporarily layouted the wrong way.

Bug: 20495301
Change-Id: I979c8d86ee711626b2901b65ebdf007c1eb1c0fa
2015-06-09 18:33:19 +00:00
Yohei Yukawa
d57ba675b1 Do not accept an empty string in EditorInfo#packageName anymore.
In the previous CL Ib871141e3381e45c2623c5f4d692da7a7e78fcc5,
a null or empty EditorInfo#packageName was still allowed in case
there might be applications that simply forgot to set it.

However, after checking the code again, it would be safe to say
that having a null or an empty string in EditorInfo#packageName
would never happen unless the application intentionally clears it
in View#onCreateInputConnection. If there were such applications,
probably we could ask developers to stop doing that.

With this CL the system no longer accepts such an empty package
name.  IME developers do not need to handle such an exceptional
case in their side.

Bug: 18931038
Change-Id: I10d579b48b59fa8ada796e92d58517c6cc5f2230
2015-06-08 17:06:03 -07:00
Yohei Yukawa
915e2c7731 Update JavaDoc of EditorInfo#packageName.
This CL does nothing but updates JavaDoc of EditorInfo#packageName
about the changes made in M.

Bug: 18931038
Change-Id: I8c94f6470d77e22daabb7caa0ea57e85e51b3ec5
2015-06-08 17:05:44 -07:00
Wale Ogunwale
92839dfe61 am 152b03e8: am 549ac692: am d8b9b642: Merge "Use DisplayAdjustments when creating display in ResourceManager" into mnc-dev
* commit '152b03e85260463fe00c1157a172f6e068261012':
  Use DisplayAdjustments when creating display in ResourceManager
2015-06-08 20:46:23 +00:00
Wale Ogunwale
d8b9b642fe Merge "Use DisplayAdjustments when creating display in ResourceManager" into mnc-dev 2015-06-08 20:17:23 +00:00
Tim Kilbourn
6b051cfe1b am 2f7d4b5f: am 59a1dd78: am 72285e56: API review: Update hasMic to hasMicrophone.
* commit '2f7d4b5fb2e5df8396c20ff039bc2fbe58d3e39c':
  API review: Update hasMic to hasMicrophone.
2015-06-08 18:38:41 +00:00
Mady Mellor
3b3fd00bf1 resolved conflicts for merge of 1612c73a to master
Change-Id: Iffbd707f14fa42c12c35e18ff6826cebd00c7bf8
2015-06-08 11:33:41 -07:00
Mady Mellor
bbd2453555 am 0d2365e2: am 0820c666: am a54a8626: Merge "Change stylus button press to context click in GD - API review feedback" into mnc-dev
* commit '0d2365e27896e622d57bc8d0248fe0f28c750af6':
  Change stylus button press to context click in GD - API review feedback
2015-06-08 17:23:51 +00:00
George Mount
32c9721ec8 am 72e3b747: am d00a76ea: am 7c79c82b: Merge "Don\'t cause requestLayout when transition changes Visibility." into mnc-dev
* commit '72e3b7475cffc86eccc43e372c8299765c313dcd':
  Don't cause requestLayout when transition changes Visibility.
2015-06-08 17:23:34 +00:00
Abodunrinwa Toki
6f8029494d am f70aa841: am 6bbacb53: am 7d3b8833: Merge "Fix ActionMode.snooze API" into mnc-dev
* commit 'f70aa84170584eb7efcc048c55bb3a1aebe6d89d':
  Fix ActionMode.snooze API
2015-06-08 17:22:42 +00:00
Tim Kilbourn
72285e5600 API review: Update hasMic to hasMicrophone.
Also make the SearchEvent constructor available for testing.

Bug: 21572283
Bug: 21572676
Change-Id: I35cfd88b45aeb97b6ccf83aeb46b0ecc4bbc0947
2015-06-08 16:52:36 +00:00
Mady Mellor
e1f3214e72 Merge "Change stylus button press to context click in View - API review feedback" into mnc-dev 2015-06-08 15:11:32 +00:00
Mady Mellor
a54a8626ed Merge "Change stylus button press to context click in GD - API review feedback" into mnc-dev 2015-06-08 15:11:10 +00:00
George Mount
7c79c82b97 Merge "Don't cause requestLayout when transition changes Visibility." into mnc-dev 2015-06-08 14:18:13 +00:00
Abodunrinwa Toki
7d3b8833df Merge "Fix ActionMode.snooze API" into mnc-dev 2015-06-08 11:36:19 +00:00
Wale Ogunwale
26698514fb Use DisplayAdjustments when creating display in ResourceManager
We were previous only taking the Configuration into account when
creating Display objects in the ResourceManager. This led to the
Display object not containing critical CompatibilityInfo. We now
take the entire DisplayAdjustment into account.

Bug: 21637615
Change-Id: Ide5ff49bfa12791ad17993764f312836216b1dd8
2015-06-06 11:26:33 -07:00
George Mount
e5a93aa81c Don't cause requestLayout when transition changes Visibility.
Bug 21400515

When a Visibility transition temporarily changes a View's
visibility, it should not cause a requestLayout or any other
action, such as focus change. This adds a hidden method to
View to allow it to tweak the visibility without causing
other side-effects.

Change-Id: I5a06149983051319080130e5b5e7cc7edda8dd3e
2015-06-05 17:21:40 -07:00
Alan Viverette
727dcc7e6b Obtain handler from context in CaptioningManager
Rather than the current thread, which prevented us from loading the
CaptionManager in a CTS test.

Bug: 15389946
Change-Id: Ic0037cc2ecfcab57545088ab63ed5cb9742206a7
2015-06-05 17:13:19 -07:00
Mady Mellor
015020eb3a Change stylus button press to context click in GD - API review feedback
Based on API review feedback we should use onContextClick instead of
onStylusButtonPress. This CL updates associated methods and usage
in GestureDetector.

Additionally listens for mouse right clicks and calls the
onContextClick method for these as well.

Bug: 21572278
Change-Id: I4fa01997bff7265d5d2713353a93e07417a148e5
2015-06-05 14:41:22 -07:00
Mady Mellor
74bf927e5f am f65aa46c: am 854a2899: am 0f2f9f7a: Merge "Stylus scale - API review feedback" into mnc-dev
* commit 'f65aa46c503d9f0ca837203004782aa64971bd69':
  Stylus scale - API review feedback
2015-06-05 16:25:23 +00:00
Mady Mellor
e860891b1a Change stylus button press to context click in View - API review feedback
Updates all references in View's onStylusButtonPress to onContextClick
as per API review feedback.

Additionally listens for mouse right clicks and calls the onContextClick
method for these as well for the stylus button press.

Bug: 21572278
Change-Id: I5c1ee8c8f23a77d7c677b86356e89d0e4fc40056
2015-06-05 09:02:55 -07:00
Mady Mellor
0f2f9f7a51 Merge "Stylus scale - API review feedback" into mnc-dev 2015-06-05 15:50:52 +00:00
Chet Haase
0490163d45 am e5b5dda1: am aa365cc5: am e790c977: Hide View.getBackgroundColor() prior to removal
* commit 'e5b5dda19e90b81a31f0b1800e58aafb3c6665e4':
  Hide View.getBackgroundColor() prior to removal
2015-06-05 15:18:58 +00:00
Chet Haase
e790c97787 Hide View.getBackgroundColor() prior to removal
Issue #21572678  API Review: android.view.View.getBackgroundColor()

Change-Id: Ia4fa9e207db3af6e076581bf23747eba6e56bb69
2015-06-05 14:41:51 +00:00