Commit Graph

82489 Commits

Author SHA1 Message Date
Roozbeh Pournader
2be7eff3a4 Merge "Use fallback-based line spacing in TextView etc" 2017-08-24 19:24:06 +00:00
Roozbeh Pournader
c4c3a0f5a9 Merge "Support fallback linespacing in DynamicLayout" 2017-08-24 18:38:00 +00:00
Roozbeh Pournader
612e67323f Merge "Add a builder for DynamicLayout and switch TextView to it" 2017-08-24 17:39:14 +00:00
Wale Ogunwale
d6fc25b757 Merge "Migrated some windowing methods from StackId to WindowConfiguration" 2017-08-24 17:32:08 +00:00
Chris Thornton
4a4db678aa Merge "The VIS should return an AOHD regardless of keyphrase availability." into oc-mr1-dev am: 0a14929b77
am: edb86c3933

Change-Id: Ia298587cd12331206038f70ddc949782105558f0
2017-08-24 16:31:19 +00:00
Chris Thornton
edb86c3933 Merge "The VIS should return an AOHD regardless of keyphrase availability." into oc-mr1-dev
am: 0a14929b77

Change-Id: I01f692007628850151e023a9dd8fdb9d9451527a
2017-08-24 16:20:08 +00:00
TreeHugger Robot
0a14929b77 Merge "The VIS should return an AOHD regardless of keyphrase availability." into oc-mr1-dev 2017-08-24 16:08:21 +00:00
Wale Ogunwale
3382ab1fc7 Migrated some windowing methods from StackId to WindowConfiguration
First pass at transitioning away from using stack ids for windowing mode
to WindowConfiguration. Added some TODO that will require the introduction
of applicationType in WindowConfiguration before additional conversation
can be done.

Test: bit FrameworksServicesTests:com.android.server.wm.WindowConfigurationTests
Test: adb shell am instrument -w -e package com.android.server.wm com.android.frameworks.servicestests/android.support.test.runner.AndroidJUnitRunner
Test: go/wm-smoke
Change-Id: I2b315623faa16445a9f942e082089123842cb5a1
2017-08-24 08:57:10 -07:00
Jorim Jaggi
7559e6683c Merge "Sleep activities with AOD" into oc-mr1-dev am: f1ef6ef742
am: 2b99571564

Change-Id: Iae4b6dd49ba82cff1ba17b0d1265a085e1ad459e
2017-08-24 13:38:45 +00:00
Jorim Jaggi
2b99571564 Merge "Sleep activities with AOD" into oc-mr1-dev
am: f1ef6ef742

Change-Id: Id4bcfa48e8cd32449c82e5b501357a6315329e11
2017-08-24 13:26:16 +00:00
Jorim Jaggi
f1ef6ef742 Merge "Sleep activities with AOD" into oc-mr1-dev 2017-08-24 13:19:42 +00:00
TreeHugger Robot
1fdf6034df Merge "Expand the animation from the user's last touch point" 2017-08-24 13:06:13 +00:00
Alexandru-Andrei Rotaru
83f6c7f7a6 Merge "StringParceledListSlice throws exception when the IPC memory threshold is exceeded" into oc-mr1-dev
am: afe28cdf7e

Change-Id: Id6236ee2229b1a03fbddb5b408fb956f8e6ece09
2017-08-24 10:17:37 +00:00
TreeHugger Robot
afe28cdf7e Merge "StringParceledListSlice throws exception when the IPC memory threshold is exceeded" into oc-mr1-dev 2017-08-24 10:08:15 +00:00
Winson Chung
6d904f45db Merge "Move PiP state check exception to the client side" into oc-mr1-dev am: 3a02835a02
am: 82ff58e40e

Change-Id: I12a79c551d45acad5e701a4e727f67ffb4051fa4
2017-08-24 05:24:48 +00:00
Winson Chung
82ff58e40e Merge "Move PiP state check exception to the client side" into oc-mr1-dev
am: 3a02835a02

Change-Id: I628c81e32efecf733c6deb73f2877b00f66fa68c
2017-08-24 05:12:43 +00:00
TreeHugger Robot
3a02835a02 Merge "Move PiP state check exception to the client side" into oc-mr1-dev 2017-08-24 05:00:48 +00:00
Roozbeh Pournader
5caf5a690f Use fallback-based line spacing in TextView etc
In TextView and Switch, version-gate the use of
setUseLineSpacingFromFallbacks() to apps targeting Android P and
later for backward compatibility.

In internal widgets, ImageFloatingTextView and SubtitleView, always
turn it on, since there is no backward compatibility concerns.

Bug: 28963299
Test: bit CtsWidgetTestCases:android.widget.cts.CheckedTextViewTest
Test: bit CtsWidgetTestCases:android.widget.cts.EditTextTest
Test: bit CtsWidgetTestCases:android.widget.cts.SwitchTest
Test: bit CtsWidgetTestCases:android.widget.cts.TextViewTest
Test: bit FrameworksCoreTests:android.widget.TextViewTest
Change-Id: Icfe4e71ba26bbc6755ba12ddab72e6bf20b3ce25
2017-08-23 17:41:06 -07:00
Nate Fischer
da6710a9fe Merge "WebView: clarify docs for addJavascriptInterface" into oc-mr1-dev
am: bc99692f02

Change-Id: I515ab33e8a306c4f8c0cd64d0bc3d8269d0c1904
2017-08-23 23:56:56 +00:00
TreeHugger Robot
bc99692f02 Merge "WebView: clarify docs for addJavascriptInterface" into oc-mr1-dev 2017-08-23 23:41:56 +00:00
Svetoslav Ganov
4a82f72efe Merge "Use all certs for computing package signing sha256" into oc-mr1-dev am: ee580764ad
am: 58d7ef66c5

Change-Id: If59ded7ac42c8277d12b8f65865806e8ffb9f036
2017-08-23 23:35:25 +00:00
Roozbeh Pournader
15b213d556 Support fallback linespacing in DynamicLayout
Bug: 28963299
Test: bit FrameworksCoreTests:android.text.
Change-Id: I132499d5927b26fb45522ffee99bac12aca3721f
2017-08-23 16:34:25 -07:00
Svetoslav Ganov
58d7ef66c5 Merge "Use all certs for computing package signing sha256" into oc-mr1-dev
am: ee580764ad

Change-Id: Ie766ecd41d2ac07dd3608fa4ed69edc3c575058f
2017-08-23 23:21:18 +00:00
Sudheer Shanka
523c42e85c Merge "Merge "Change KernelUidCpuFreqTimeReader Slog.wtf to Slog.e" into oc-mr1-dev am: 29091ec55f" into oc-mr1-dev-plus-aosp
am: 383551da86

Change-Id: I9303dbda0f4d82c161d8cddacc8d3a56ebe1d52c
2017-08-23 23:01:49 +00:00
TreeHugger Robot
ee580764ad Merge "Use all certs for computing package signing sha256" into oc-mr1-dev 2017-08-23 22:51:41 +00:00
Sudheer Shanka
24fbd020fb Merge "Change KernelUidCpuFreqTimeReader Slog.wtf to Slog.e" into oc-mr1-dev
am: 29091ec55f

Change-Id: I2540bd98007d8471758dfcbf365cab231594c52c
2017-08-23 22:38:49 +00:00
Sudheer Shanka
29091ec55f Merge "Change KernelUidCpuFreqTimeReader Slog.wtf to Slog.e" into oc-mr1-dev 2017-08-23 22:26:08 +00:00
Winson Chung
298f95b1ad Move PiP state check exception to the client side
- When calling enterPictureInPictureMode(), the state of the activity in
  the client may be out of sync with the state of the activity in the
  system, causing an exception to be thrown erroneously. Instead, fail
  silently in the system if this occurs, and throw the exception in the
  client when it attempts to enter PiP from an invalid state.

Bug: 63753007
Test: android.server.cts.ActivityManagerPinnedStackTests

Change-Id: Ia99cc086805edc31f997d4325f7a5ccd7c85a77e
2017-08-23 15:06:32 -07:00
Roozbeh Pournader
22a167cac8 Add a builder for DynamicLayout and switch TextView to it
The builder mostly copies the structure and the logic of
StaticLayout.

We also improve various parts of code and documentation in
StaticLayout's builder.

Bug: 28963299
Test: bit FrameworksCoreTests:android.text.
Test: bit FrameworksCoreTests:android.widget.TextViewTest
Test: bit CtsTextTestCases:*
Test: bit CtsWidgetTestCases:android.widget.cts.TextViewTest
Test: bit CtsWidgetTestCases:android.widget.cts.EditTextTest
Change-Id: I5c4a6e031bd0f41f765a3d85e0b9b7e9be42ad4b
2017-08-23 15:05:06 -07:00
George Mount
2c0131aeb1 Merge "Use hardware bitmap for shared element snapshots." into oc-mr1-dev am: 230e025841
am: 2d3e8b8ddb

Change-Id: I8077587dfcfd160028635d4dd11c0438317febc3
2017-08-23 21:18:14 +00:00
George Mount
2d3e8b8ddb Merge "Use hardware bitmap for shared element snapshots." into oc-mr1-dev
am: 230e025841

Change-Id: I8dbb21476f7d38a37c8e5b5732b51255b0bcba14
2017-08-23 21:03:46 +00:00
George Mount
230e025841 Merge "Use hardware bitmap for shared element snapshots." into oc-mr1-dev 2017-08-23 20:52:34 +00:00
George Mount
3f81c33a35 Use hardware bitmap for shared element snapshots.
Bug: 64851247

Drawing to software bitmaps does not support many
features, most especially hardware bitmaps. This
changes the implementation to using hardware bitmaps
for View snapshots.

Also fixed broken TransitionTest discovered while
testing.

Test: I4ede02db67e578ea4a25069b683f1989c611e06c
Change-Id: I185bbfe1f789055c9efdba5297a74e481607afaf
2017-08-23 20:51:13 +00:00
Svetoslav Ganov
cdd685c075 Use all certs for computing package signing sha256
In several places we compute the sha256 of the app's signing certificate
(instant cookie storage, backup account permission grants, static shared
lib matching). It is possible that an app is singed with multiple certs
which unfortunately can appear in a random order. We were using only the
first certificate to compute the hash which may be problematic for apps
signed with multiple certs which are later reordered. If an app update's
certs are reordered for cookie storage the app would not be able to
access the cookie, for account grants the app would not get the grant,
and for shared libs the app would fail to install due to a missing lib.

Test: all cookie CTS tests pass
      all static shared lib CTS tests pass
      added test that cookie data not lost on sha256 computation change
      added test that lib install works when specifying
      multiple certs

bug:64270295

Change-Id: Ib6b55f25da735ff5c2762faf6e9b5888e749041d
2017-08-23 11:47:27 -07:00
Andrii Kulian
2955daca27 Merge "Track app visibility updates on the client" into oc-mr1-dev am: 0d008e3204
am: 0111667c9a

Change-Id: Icd38d427cb6b3339c99af8b56dcdb87c6aaabb76
2017-08-23 18:47:03 +00:00
Sudheer Shanka
8cde930d71 Change KernelUidCpuFreqTimeReader Slog.wtf to Slog.e
Bug: 63041570
Test: N/A
Change-Id: I2cb12f1b8f0333c4a000d601624dc95934cf9b90
2017-08-23 11:29:23 -07:00
Andrii Kulian
0111667c9a Merge "Track app visibility updates on the client" into oc-mr1-dev
am: 0d008e3204

Change-Id: Iaa4ef63044a5e20b5886b47a33380c33d2668442
2017-08-23 18:24:20 +00:00
Petar Šegina
91df3f9e7c Expand the animation from the user's last touch point
The Smart Select animation now expands from the spot the user last
lifted their finger.

In order to achieve this, the last up event coordinates need to be
tracked in Editor.

Since it's possible to trigger Smart Select by having the second of the
two taps outside any of the rectangles, the touch point gets moved into
the nearest rectangle and the animation starts from that point.

Test: manual - try out Smart Select by touching different words at
different points
Test: manual - try to trigger Smart Select with a double tap where the
second tap is outside of the word
Test: bit FrameworksCoreTests:android.widget.SelectionActionModeHelperTest
Test: bit CtsViewTestCases:android.view.textclassifier.cts.TextClassificationManagerTest
Test: bit FrameworksCoreTests:android.widget.TextViewActivityTest
Test: bit CtsAccessibilityServiceTestCases:android.accessibilityservice.cts.AccessibilityTextTraversalTest
Change-Id: I96844e8307554b010b476673820f98dae09c0cc3
2017-08-23 19:20:12 +01:00
Andrii Kulian
0d008e3204 Merge "Track app visibility updates on the client" into oc-mr1-dev 2017-08-23 18:06:50 +00:00
Nate Fischer
02e281a13d WebView: clarify docs for addJavascriptInterface
Docs change only, no change in logic.

We do not support calling #addJavascriptInterface until after JavaScript
is enabled via WebSettings#setJavaScriptEnabled. Calling these methods
in the wrong order is undefined behavior (and we've seen that it's buggy
under certain conditions, e.g. if the DOM includes an <img> element).

This clarifies the point in the docs and code example.

Bug: 64899039
Test: make -j40 docs (everything looks good)
Change-Id: I8ef9eec7f038037e6b898286e4dad8a57ecad472
(cherry picked from commit aaef6827ca)
2017-08-23 17:49:46 +00:00
TreeHugger Robot
4ad16025ac Merge "Update DISALLOW_CONFIG_TETHERING javadoc" 2017-08-23 17:24:19 +00:00
Selim Cinek
b481c010e6 Merge "Transforming all texts of decorated media custom views" into oc-mr1-dev am: 60a09546c0
am: 0c8a132ea3

Change-Id: Ie7e15d7c4010c0e3cbf0081a1a4084767c83b1fa
2017-08-23 16:23:40 +00:00
Selim Cinek
0c8a132ea3 Merge "Transforming all texts of decorated media custom views" into oc-mr1-dev
am: 60a09546c0

Change-Id: If41351abbd54b19dbdcaecca01fe7104176f488b
2017-08-23 16:07:49 +00:00
TreeHugger Robot
cbae716bed Merge "Update javadoc of UserManager#DISALLOW_ADJUST_VOLUME" 2017-08-23 16:07:04 +00:00
TreeHugger Robot
e0ebf03ba7 Merge "WebView: clarify docs for addJavascriptInterface" 2017-08-23 15:30:54 +00:00
Rubin Xu
1faf144fdd Update DISALLOW_CONFIG_TETHERING javadoc
We now force off tethering when DISALLOW_CONFIG_TETHERING is set.
Make this clear in the doc.

Bug: 27936525
Test: make -j docs
Change-Id: Ifd6f84f295bbce7b5bd6042a7f4f4be39190f6bc
2017-08-23 16:01:08 +01:00
Jorim Jaggi
f12ec0fb64 Sleep activities with AOD
Previously in the last release we started sleeping as soon as
the device was not interactive anymore. However, this caused
issues with ambiactive activites on Android Wear.

Instead, we introduce a new private flag on a window that signals
that all activities should be put to sleep. We use this flag in
SystemUI as soon as SystemUI is "dozing", which means its ambient
display is showing. This flag gets set before we request PWM to
wake-up, so it's ensured that this will not cause any spurious
lifecycle events.

Test: go/wm-smoke
Test: android.server.cts.KeyguardTests
Change-Id: I20f6dd4bfde220f945ef94d2ac1b89dd3694de32
Fixes: 64940094
2017-08-23 16:24:07 +02:00
Wen ZHANG
61ed0dc033 Update javadoc of UserManager#DISALLOW_ADJUST_VOLUME
Profile owners are not allowed setting this restriction until the N
release.

Test: No test as it only touches javadocs

Change-Id: I793e2c3b5270ee00e451551e68567e8995f31d1c
2017-08-23 14:32:59 +01:00
Alexandru-Andrei Rotaru
b7a79b47cb StringParceledListSlice throws exception when the IPC memory threshold is exceeded
Fixed the code such that list of strings that exceed the 256KB limit can
be transfered.
Bug: 64833731
Test: Added unit test in ParceledListSliceTest

Change-Id: I4e16708010125a444baa8fcb0af6101dc643cd38
(cherry picked from commit 2682fa7067)
2017-08-23 10:07:28 +00:00
Selim Cinek
05bba9e284 Merge "Fixed a bug with app provided media spans" into oc-mr1-dev am: 3c47a11598
am: 09adc8f1a3

Change-Id: Iefd242f4b242ae0861f7f1fd9b8b8b89b06d6f20
2017-08-23 04:23:57 +00:00