41989 Commits

Author SHA1 Message Date
Craig Mautner
48d0d18867 Add activity token to display system.
First step in adding activity specific information to displays.
Replace CompatibilityInfoHolder with DisplayAdjustmentsHolder that
holds an activity token in addition to the CompatibilityInfo.

Change-Id: Ie113cd8dd9c62e0b5311204e039a4829096bea68
2013-06-22 15:30:13 -07:00
Torne (Richard Coles)
03ce9b3e69 Enable preloading of the appropriate WebView.
Allow the appropriate WebView to be preloaded in the zygote by
constructing the currently selected WebViewFactoryProvider when the
WebViewFactory is preloaded. At runtime, if the preloaded provider is
still the current selection, the preloaded instance is used, otherwise
the provider is loaded at that time.

This change also removes "graceful" fallback from the experimental
WebView to the classic implementation: if the option to use the
experimental WebView is selected and it could not be loaded
successfully at the time a WebView is created, an exception will be
thrown, rather than allowing execution to continue with the classic
implementation, as the fallback may mislead developers who do not
examine logcat output in detail.

Change-Id: I0cd01c784d7048abeac55ab5863ca16b8fd9ecf2
2013-06-19 15:03:08 +01:00
Fabrice Di Meglio
1cc0a6514f Merge "Fix potential NPE if there is no child in HorizontalScrollView" 2013-06-18 23:55:01 +00:00
Svetoslav
9dafebb817 Correctly update the source of recurring subtree change accessibility events.
Change-Id: I0b0fd9224a5208b274e5c889a27417ef13579849
2013-06-18 16:36:15 -07:00
Fabrice Di Meglio
f2fb76cc23 Fix potential NPE if there is no child in HorizontalScrollView
- related to the previous change for saving the scroll position
- also related to bug #9463581 NPE observed while launching News&Weather app from all apps tray

Change-Id: I9f2f8a246e793eefa1cf510e15a56a1058fb9c18
2013-06-18 15:49:16 -07:00
Jeff Brown
a506a6ec94 Add an API to allow for creating private virtual displays.
This change enables applications to create a private virtual
display that renders its content to a surface of its own creation.
The display is private in the sense that only the application
that owns the display is allowed to place windows upon it.
Mirroring and blanking is also disabled for these displays.

Bug: 9192512
Change-Id: I852ea07f0c7df1d244e354e3daca3a6960285ca0
2013-06-18 15:32:41 -07:00
Fabrice Di Meglio
012416fdbb Merge "Fix bug #9463581 NPE observed while launching News&Weather app from all apps tray" 2013-06-18 21:54:49 +00:00
Svetoslav
2f0396ad56 Merge "Crash in ViewRootImpl when accessibility is on." 2013-06-18 21:46:47 +00:00
Svetoslav
e89f48bfb1 Crash in ViewRootImpl when accessibility is on.
We fire view subtree mutation events every X amount of time.
It was possible that the runnable that fires an event to be
scheduled more than once while this should not happen. As
a result there was a crash since we did not expect to have
a second run and nullified a reference.

bug:9422804

Change-Id: I914e163b026cd217e1536ab0ed3a6b11113c2c73
2013-06-18 14:43:47 -07:00
Fabrice Di Meglio
d6d543977d Fix bug #9463581 NPE observed while launching News&Weather app from all apps tray
- dont suppose that there will always be one child

Change-Id: I51c5cdf06294af25c992cfbaacabbc29dd1b9ad3
2013-06-18 14:09:07 -07:00
Chiao Cheng
4607c0d936 Merge "Remove un-used snippetize method from ContactsContract." 2013-06-18 20:51:42 +00:00
Svetoslav
3fcf1eda18 Update Javadoc references
Change-Id: I2e4834070de6ebd55e6350f31f9f8e619cb0ff2d
2013-06-18 13:30:35 -07:00
Svetoslav
d4719fcffd Merge "Adding traits APIs to AccessibilityNodeInfo." 2013-06-18 17:42:27 +00:00
Svetoslav
3577a283e1 Adding traits APIs to AccessibilityNodeInfo.
This change adds several traits and properties to AccessibilityNodeInfo
aiming to allow better description of native Android components to
accessibility services as well as mapping web content to native Android
node info tree.

Change-Id: I36b893cbaa6213c9d02d805e9dc36b6d792b4961
2013-06-18 10:41:48 -07:00
Jeff Sharkey
1a6a620e45 Merge "Add generic sugar for ArrayMap and ArraySet." 2013-06-18 16:42:45 +00:00
Jeff Sharkey
43f4263a85 Add generic sugar for ArrayMap and ArraySet.
Change-Id: Id749bd41f2e53664c00a0199c14babd2b63087fb
2013-06-18 09:29:56 -07:00
Jeff Sharkey
b31e370a94 Merge "Use package name when caching SharedPreferences." 2013-06-18 16:17:18 +00:00
Scott Main
2887271ff3 am 8303a203: am 94ba190e: am de04dfb6: Merge "some extra docs for TextDirectionHeuristic" into jb-mr2-dev
* commit '8303a2036efd93eecda6da1e481e1659a40ca12e':
  some extra docs for TextDirectionHeuristic
2013-06-17 22:14:28 -07:00
Scott Main
8303a2036e am 94ba190e: am de04dfb6: Merge "some extra docs for TextDirectionHeuristic" into jb-mr2-dev
* commit '94ba190ebbd4fe7f8933d531cce7b4be8e04f287':
  some extra docs for TextDirectionHeuristic
2013-06-17 22:13:17 -07:00
Scott Main
e442662330 some extra docs for TextDirectionHeuristic
Change-Id: I8ceac72a76a29bde0e25ed418110a6e4120654e3
2013-06-17 19:05:29 -07:00
Scott Main
f78484b0b1 am ea893536: am c4473d10: am 27a8508e: add attributes reference for splimotionevents and layoutmode
* commit 'ea8935362da192508a4ff945b47e0c7ff1239679':
  add attributes reference for splimotionevents and layoutmode
2013-06-17 18:41:29 -07:00
Scott Main
ea8935362d am c4473d10: am 27a8508e: add attributes reference for splimotionevents and layoutmode
* commit 'c4473d10ed747fb1e84efff7183023e0ecc1a493':
  add attributes reference for splimotionevents and layoutmode
2013-06-17 18:39:18 -07:00
Craig Mautner
3b7e6b95c2 Merge "Add new API getStackBoxInfo" 2013-06-18 01:35:31 +00:00
Craig Mautner
fd1ce8d5a7 Add new API getStackBoxInfo
Change-Id: Ie2861e5e31bb3876cfe2d5c3d04ff58bb3955634
2013-06-17 18:34:28 -07:00
Dianne Hackborn
94c747db09 am 2f3f86c1: am 1d4cd879: am 11cd57ca: Merge "Avoid unnecessary FindClass("java/lang/String")."
* commit '2f3f86c113f10b841b8597a05f724a996ba76641':
  Avoid unnecessary FindClass("java/lang/String").
2013-06-17 18:33:49 -07:00
Scott Main
27a8508ee1 add attributes reference for splimotionevents and layoutmode
Change-Id: Id78f2957c994fc30a0837084f22766c8cfa70fe8
2013-06-18 01:33:33 +00:00
Chiao Cheng
31b730a009 Remove un-used snippetize method from ContactsContract.
Bug: 7896653
Change-Id: I5db6f9a58ce747605f66c681036795cdd3ed5d01
2013-06-17 18:31:34 -07:00
Dianne Hackborn
2f3f86c113 am 1d4cd879: am 11cd57ca: Merge "Avoid unnecessary FindClass("java/lang/String")."
* commit '1d4cd879044578cf7e2b37d45ef29abaabf7e662':
  Avoid unnecessary FindClass("java/lang/String").
2013-06-17 18:28:58 -07:00
Jeff Sharkey
8e3ddab1fc Use package name when caching SharedPreferences.
Otherwise multiple applications using the same process can end up
leaking SharedPreferences instances between the apps.

Change-Id: I2eb0e693cebea1daf87a9176eb8c5a22b9e9ec0b
2013-06-17 18:26:37 -07:00
Dianne Hackborn
1d4cd87904 am 11cd57ca: Merge "Avoid unnecessary FindClass("java/lang/String")."
* commit '11cd57caee4058dab743b91e715d7469c59a5c2f':
  Avoid unnecessary FindClass("java/lang/String").
2013-06-17 18:21:41 -07:00
Dianne Hackborn
11cd57caee Merge "Avoid unnecessary FindClass("java/lang/String")." 2013-06-18 01:14:37 +00:00
Xia Wang
96f94c81b7 am 7ea4e277: am 8fcb169f: am edc3bb66: Disable a flaky test case
* commit '7ea4e277fd7bdb7e2aa230509f57c1af39f5bf4b':
  Disable a flaky test case
2013-06-17 17:53:20 -07:00
Xia Wang
7ea4e277fd am 8fcb169f: am edc3bb66: Disable a flaky test case
* commit '8fcb169f7989123f993adfac5894d1ad5f35ed0b':
  Disable a flaky test case
2013-06-17 17:51:57 -07:00
Xia Wang
edc3bb661e Disable a flaky test case
Change-Id: I4ef780ed0c5394b67aa002baefc00e835018c4a0
2013-06-17 17:14:10 -07:00
Chris Craik
49cc5d7119 Merge "Handle all text bounds as post-translated" 2013-06-17 22:50:39 +00:00
Chris Craik
f09b746acb Handle all text bounds as post-translated
We were treating immediate mode bounds as pre translate, which is
inconsistent with using them for quickRejection.

This fixes the overdraw counter not drawing correctly (since it uses
immediate mode drawing.

Change-Id: I1c734d367a00942bd7d9b041822c0a9f284e70a8
2013-06-17 15:17:11 -07:00
Adam Powell
3e0a4633c3 Merge "Don't flip action bar main content and tabs" 2013-06-17 21:23:23 +00:00
Adam Powell
32fa567b52 Don't flip action bar main content and tabs
Nobody ever used or liked this "feature" anyway. Onward and upward!

Change-Id: Ica65c413d13ddb998992c7d8761ad5134f75e4fd
2013-06-17 14:16:02 -07:00
Elliott Hughes
f0542ee466 am 704dfbfe: am 48fa06f3: am f6a67139: Merge "Correct Date format for el_GR, sv_SE and tr_TR locales"
* commit '704dfbfec40b4a51000e244a98e8723bb00ba321':
  Correct Date format for el_GR, sv_SE and tr_TR locales
2013-06-17 13:43:53 -07:00
Elliott Hughes
704dfbfec4 am 48fa06f3: am f6a67139: Merge "Correct Date format for el_GR, sv_SE and tr_TR locales"
* commit '48fa06f34fe3098fd820b97d9d28c9f27f8591de':
  Correct Date format for el_GR, sv_SE and tr_TR locales
2013-06-17 13:41:24 -07:00
Romain Guy
fb5c905097 Merge "Cancel layer update when a layer is about to be destroyed Bug #9310706" 2013-06-17 20:39:45 +00:00
Elliott Hughes
48fa06f34f am f6a67139: Merge "Correct Date format for el_GR, sv_SE and tr_TR locales"
* commit 'f6a671394ca3d269835d5f5b882b46f9539e9a96':
  Correct Date format for el_GR, sv_SE and tr_TR locales
2013-06-17 13:38:59 -07:00
howardb
5ad2451f9f Correct Date format for el_GR, sv_SE and tr_TR locales
Amend DateFormat.getDateFormat to CLDR data from icu4c
instead of locale specific resource entries which are incorrect
for several locales.

No CTS tests are added as they require changing the locale which
is not currently possible.

Bug: https://code.google.com/p/android/issues/detail?id=56385

Change-Id: Ibd11c7fd9b595e19a3e2bf508e1585aa50067e03
Signed-off-by: howardb <android@howardb.com>
2013-06-17 13:35:29 -07:00
Romain Guy
e93482f5ea Cancel layer update when a layer is about to be destroyed
Bug #9310706

Change-Id: I73eea6314c326f15a979617e3a05b525935f0d3f
2013-06-17 13:35:03 -07:00
Christopher Tate
0a1e9611e9 Merge "Some system apps are more system than others" 2013-06-17 20:01:53 +00:00
Victoria Lease
e8cb257d0e Merge "make setHinting(HINTING_ON) kNormal_Hinting" 2013-06-17 19:56:04 +00:00
Christopher Tate
ccbf84f44c Some system apps are more system than others
"signatureOrSystem" permissions are no longer available to all apps
residing en the /system partition.  Instead, there is a new /system/priv-app
directory, and only apps whose APKs are in that directory are allowed
to use signatureOrSystem permissions without sharing the platform cert.
This will reduce the surface area for possible exploits of system-
bundled applications to try to gain access to permission-guarded
operations.

The ApplicationInfo.FLAG_SYSTEM flag continues to mean what it is
says in the documentation: it indicates that the application apk was
bundled on the /system partition.  A new hidden flag FLAG_PRIVILEGED
has been introduced that reflects the actual right to access these
permissions.

At some point the "system" permission category will be
renamed to "privileged".

Bug 8765951

Change-Id: I6f0fd9cdb9170e076dfc66d83ecea76f8dd7335d
2013-06-17 12:47:35 -07:00
Victoria Lease
8870538f7c make setHinting(HINTING_ON) kNormal_Hinting
Previously, the default hinting mode for a freshly-constructed Paint
object is equivalent to Skia's kNormal_Hinting mode, in which font
hints are respected if available. Calling
Paint.setHinting(HINTING_ON), however, is equivalent to setting
Skia's kSlight_Hinting mode, in which font hints are ignored in
favour of freetype-generated autohints.

This discrepancy is bad for a variety of reasons:
- Once Paint.setHinting() has been called, it is impossible to return
  to the default hinting level.
- Calling paint.setHinting(otherPaint.getHinting()) can result in
  paint having a different hinting level than otherPaint.
- Paint.setHinting(HINTING_ON) actually results in font hints being
  ignored, which is perhaps the opposite of the intended behaviour.

This commit resolves these discrepancies by making HINTING_ON
correspond to Skia's kNormal_Hinting setting.

Change-Id: Iefb8e051ef53bea783e6f3be37748985ec397bc5
Bug: 9466164
2013-06-17 11:57:37 -07:00
Romain Guy
4ffa23379f Merge "Lazily allocate seldom-used data structures" 2013-06-17 18:34:34 +00:00
Romain Guy
6410c0aaf1 Lazily allocate seldom-used data structures
Change-Id: I8d6b9d2d821168329206c01ed6539a1466af272f
2013-06-17 11:34:09 -07:00