OSDN Git Service
Romain Guy [Mon, 12 Aug 2013 20:52:12 +0000 (20:52 +0000)]
Merge "Take text alignment into account to compue text bounds Bug #
10258621" into klp-dev
Alan Viverette [Mon, 12 Aug 2013 20:47:39 +0000 (20:47 +0000)]
Merge "Not create context menu when mouse right click outside list/grid items" into klp-dev
Svetoslav [Mon, 12 Aug 2013 20:34:12 +0000 (20:34 +0000)]
Merge "Make PrintFileDocumentAdapter non-final." into klp-dev
Svetoslav [Mon, 12 Aug 2013 20:32:47 +0000 (13:32 -0700)]
Make PrintFileDocumentAdapter non-final.
Change-Id: I89a46bf766f5270dfaba7482b7b7cd997e19821a
Alan Viverette [Mon, 12 Aug 2013 20:29:15 +0000 (13:29 -0700)]
Not create context menu when mouse right click outside list/grid items
Even if mouse right click outside of list/grid items, a context menu
is made. But there is no item of the list, so a context menu info is
null. Then, NullPointerException happens at onCreateContextMenu()
using a context menu info.
For fixing the problem, check mTouchMoude and mMotionPosition to
distingusih where is clicked, on a list item or not, before
performButtonActionOnTouchDown() which makes a context menu.
Manually merged from AOSP contribution.
Change-Id: I778be73df36abbfd4ba9534d8e7a1ece6844ed40
Author: henrik baard <henrik.baard@sonymobile.com>
Romain Guy [Mon, 12 Aug 2013 20:25:29 +0000 (13:25 -0700)]
Take text alignment into account to compue text bounds
Bug #
10258621
Change-Id: I91abf1829a1814410ce8c0c2c17d888031987f18
Chet Haase [Mon, 12 Aug 2013 19:57:23 +0000 (19:57 +0000)]
Merge "pause/resume for Animators" into klp-dev
Craig Mautner [Mon, 12 Aug 2013 19:43:25 +0000 (19:43 +0000)]
Merge "Remove incorrect warning." into klp-dev
Craig Mautner [Mon, 12 Aug 2013 19:29:40 +0000 (12:29 -0700)]
Remove incorrect warning.
The warning about an ActivityRecord not being assigned a task was
incorrect in the location modified by this fix. In this case an
existing ActivityRecord is relaunched so it is not necessary to
assign the task to the passed ActivityRecord.
Addresses the warning associated with bug
10181389.
Change-Id: I76d5066c320bf9da2663bc34bcaca801ad4953bc
Katie McCormick [Mon, 12 Aug 2013 19:25:41 +0000 (12:25 -0700)]
am
6441b9bd: am
e5007896: am
e78b4f53: Doc change: collapse key fix... clean version of kmccormick\'s change from I620150b14ecd59db05f40c4422f8e2d09e05ebcb
* commit '
6441b9bd19c9226ad1e6c01008b79a51baf75cff':
Doc change: collapse key fix... clean version of kmccormick's change from I620150b14ecd59db05f40c4422f8e2d09e05ebcb
Katie McCormick [Mon, 12 Aug 2013 19:21:47 +0000 (12:21 -0700)]
am
e5007896: am
e78b4f53: Doc change: collapse key fix... clean version of kmccormick\'s change from I620150b14ecd59db05f40c4422f8e2d09e05ebcb
* commit '
e50078961ab0134ff5bcf57a9e8cc4b04027f942':
Doc change: collapse key fix... clean version of kmccormick's change from I620150b14ecd59db05f40c4422f8e2d09e05ebcb
Katie McCormick [Mon, 12 Aug 2013 19:18:45 +0000 (12:18 -0700)]
am
e78b4f53: Doc change: collapse key fix... clean version of kmccormick\'s change from I620150b14ecd59db05f40c4422f8e2d09e05ebcb
* commit '
e78b4f53392d25eda4a121670aca518df9615f71':
Doc change: collapse key fix... clean version of kmccormick's change from I620150b14ecd59db05f40c4422f8e2d09e05ebcb
Katie McCormick [Wed, 24 Jul 2013 01:12:38 +0000 (18:12 -0700)]
Doc change: collapse key fix... clean version of kmccormick's change from I620150b14ecd59db05f40c4422f8e2d09e05ebcb
Change-Id: I620150b14ecd59db05f40c4422f8e2d09e05ebcb
Chet Haase [Thu, 8 Aug 2013 21:00:00 +0000 (14:00 -0700)]
pause/resume for Animators
It is now possible to pause Animator-based animations. Pausing an
animator causes it to hold the current time/value indefinitely, or
until end/cancel/resume is called. When resume() is called, it continues
from where it left off.
There is a new listener interface on Animator, AnimatorPauseListener,
which can be used to listen to pause/resume events.
Change-Id: I77d1535e792fb7bf349f549a0ac0a0d85958cb47
Selim Gurun [Mon, 12 Aug 2013 18:27:26 +0000 (18:27 +0000)]
Merge "Add the API to support webview printing" into klp-dev
Romain Guy [Mon, 12 Aug 2013 18:11:36 +0000 (18:11 +0000)]
Merge "Update Bitmap.createBitmap() documentation" into klp-dev
Romain Guy [Mon, 12 Aug 2013 18:10:27 +0000 (11:10 -0700)]
Update Bitmap.createBitmap() documentation
Change-Id: Ic2efed6cc03c8b2c2d9810b7ab645b0b98b91e1f
Selim Gurun [Mon, 5 Aug 2013 22:23:09 +0000 (15:23 -0700)]
Add the API to support webview printing
Bug:
10190508
Change-Id: I47fc46bb1ea632876048b29621843f781c47aab7
Scott Main [Mon, 12 Aug 2013 17:46:33 +0000 (10:46 -0700)]
am
cdf3455c: am
6dd38cc5: Revert "Revert "resolved conflicts for merge of
45178b13 to jb-mr2-ub-dev" revert to fix conflicts, i\'ll fix it all later."
* commit '
cdf3455c502891683eaa242a14e413ff947dabe3':
Revert "Revert "resolved conflicts for merge of
45178b13 to jb-mr2-ub-dev" revert to fix conflicts, i'll fix it all later."
Scott Main [Mon, 12 Aug 2013 17:44:44 +0000 (10:44 -0700)]
am
6dd38cc5: Revert "Revert "resolved conflicts for merge of
45178b13 to jb-mr2-ub-dev" revert to fix conflicts, i\'ll fix it all later."
* commit '
6dd38cc5343106251c8d66ab11bb93550082e594':
Revert "Revert "resolved conflicts for merge of
45178b13 to jb-mr2-ub-dev" revert to fix conflicts, i'll fix it all later."
Scott Main [Mon, 12 Aug 2013 17:38:03 +0000 (17:38 +0000)]
Revert "Revert "resolved conflicts for merge of
45178b13 to jb-mr2-ub-dev" revert to fix conflicts, i'll fix it all later."
Submitted the original revert too soon.
This reverts commit
ebcee19783c4fe5ba776353e95974383850a4685.
Change-Id: I7c76b9c37a8d919cdf319dae1ae8f444300ed3d4
Scott Main [Mon, 12 Aug 2013 17:15:29 +0000 (10:15 -0700)]
am
7466b998: am
ebcee197: Revert "resolved conflicts for merge of
45178b13 to jb-mr2-ub-dev" revert to fix conflicts, i\'ll fix it all later.
* commit '
7466b998e6091b4857372611c66b6eca2b9324fb':
Revert "resolved conflicts for merge of
45178b13 to jb-mr2-ub-dev" revert to fix conflicts, i'll fix it all later.
Scott Main [Mon, 12 Aug 2013 17:14:03 +0000 (10:14 -0700)]
am
ebcee197: Revert "resolved conflicts for merge of
45178b13 to jb-mr2-ub-dev" revert to fix conflicts, i\'ll fix it all later.
* commit '
ebcee19783c4fe5ba776353e95974383850a4685':
Revert "resolved conflicts for merge of
45178b13 to jb-mr2-ub-dev" revert to fix conflicts, i'll fix it all later.
Scott Main [Mon, 12 Aug 2013 17:08:28 +0000 (17:08 +0000)]
Revert "resolved conflicts for merge of
45178b13 to jb-mr2-ub-dev"
revert to fix conflicts, i'll fix it all later.
This reverts commit
385bb2eb5184686c2d953fe4757522e61acb3392.
Change-Id: Ie0a995b185c3354ff369fce87f73810c1027a0b2
Andreas Huber [Mon, 12 Aug 2013 16:19:45 +0000 (09:19 -0700)]
Manage jclass objects (and most jobjects) in jni code using ScopedLocalRef
for safer refcounting. Previously jclass objects were not DeleteLocalRef'ed
at all, leading us to exhaust the local ref pool quickly in certain
circumstances.
This change also makes sure we properly serialize int64_t entries when
converting from AMessage to HashMap and boosts thread priority for
java-instantiated MediaCodecs slightly from NORMAL to FOREGROUND.
Change-Id: I4ebdd8a5ca6b3442698c9f86fcc31af8c199aaf5
Martin Kosiba [Thu, 8 Aug 2013 13:02:41 +0000 (14:02 +0100)]
Add super_onDrawVerticalScrollBar to WebView.PrivateAccess. DO NOT MERGE
Cherry pick of master I210dbab01c8b8d1eeff316a23c5d011e2e6c2a74
This exposes the super_onDrawVerticalScrollBar method which will
be called by the WebViewChromium implementation.
Change-Id: I3fe348633c163514e67b7712f1e9a086dee3d338
Ben Murdoch [Mon, 12 Aug 2013 08:33:38 +0000 (09:33 +0100)]
Add missing cleanspec
Change-Id: I92d6329e3c404249876e707048f6808f35fb019b
Jeff Sharkey [Mon, 12 Aug 2013 03:59:58 +0000 (03:59 +0000)]
Merge "API to discover granted Uri permissions." into klp-dev
Jeff Sharkey [Mon, 12 Aug 2013 03:53:18 +0000 (20:53 -0700)]
API to discover granted Uri permissions.
Now that granted Uri permissions can be persisted across reboots,
offer APIs to discover them. Returns incoming or outgoing grants
matching the requested flags and mask. Add helper method to discover
"open" documents using this new API and filtering for non-documents.
Require that callers own at least of the filtering packages to avoid
exposing all grants. Switch internal grant tracking to use ArrayMap.
Change-Id: I0a755f221d0d160b411f8d3cfc48279b64345733
Jeff Sharkey [Mon, 12 Aug 2013 02:09:50 +0000 (02:09 +0000)]
Merge "Bring along BridgeContext for the ride." into klp-dev
Jeff Sharkey [Mon, 12 Aug 2013 02:08:39 +0000 (19:08 -0700)]
Bring along BridgeContext for the ride.
Change-Id: Ic11c0df447c82be3922d529f18a290cfdfec6b05
Jeff Sharkey [Mon, 12 Aug 2013 00:46:33 +0000 (00:46 +0000)]
Merge "Catch a few extra users of UserEnvironment." into klp-dev
Jeff Sharkey [Mon, 12 Aug 2013 00:42:17 +0000 (17:42 -0700)]
Catch a few extra users of UserEnvironment.
Change-Id: I3112773b72c329893e4118ef1c4f4087d899139e
Jeff Sharkey [Mon, 12 Aug 2013 00:13:34 +0000 (00:13 +0000)]
Merge "APIs for multiple external storage devices." into klp-dev
Jeff Sharkey [Sun, 11 Aug 2013 23:28:14 +0000 (16:28 -0700)]
APIs for multiple external storage devices.
Provide developer APIs to discover application-specific paths on
secondary external storage devices. Covers files, cache, and OBB
directories. Apps will not have write access outside their package-
specific directories on secondary devices, so only primary storage is
exposed through Environment.
Creation of .nomedia files will be handled by FUSE daemon in future
change.
Change-Id: Ifcce6201a686d80269d7285adb597c008cf8fa7c
Svetoslav Ganov [Sun, 11 Aug 2013 22:27:00 +0000 (22:27 +0000)]
Merge "Fix the build" into klp-dev
Svetoslav Ganov [Sun, 11 Aug 2013 22:26:13 +0000 (15:26 -0700)]
Fix the build
Change-Id: Icf3b339f7b300cc8673443fa8afd38ce78964683
Svetoslav Ganov [Sun, 11 Aug 2013 21:42:53 +0000 (21:42 +0000)]
Merge "Refinement of the print service APIs." into klp-dev
Svetoslav Ganov [Sun, 11 Aug 2013 19:29:39 +0000 (12:29 -0700)]
Refinement of the print service APIs.
1. Factored out the printer discovery APIs of a print service in a
dedicated session object that is created by the print service on
demand. This ensures that added/removed/updated printers from
one session do not interfere with another session.
2. Updated the app facing APIs to pass in a document info along
with a printed file. Also exposed the print file adapter so
apps that create a temporary file for printing can intercept
when it is read by the system so the file can be deleted.
3. Updated the print service documentation.
Change-Id: I3473d586c26d8bda1cf7e2bdacb441aa9df982ed
Craig Mautner [Sat, 10 Aug 2013 18:52:39 +0000 (18:52 +0000)]
Merge "Put animation background behind visible wallpaper" into klp-dev
Craig Mautner [Sat, 10 Aug 2013 01:48:48 +0000 (18:48 -0700)]
Put animation background behind visible wallpaper
The new wallpaper positioning associated with multiple activity stacks
put animation backgrounds in front of the wallpaper. This caused
hideous jank. Testing for visible wallpaper and moving the background
behind it fixes the jank.
Fixes bug
10078282.
Possibly fixes bug
10247094.
Change-Id: I3f4e07accd7276d59725192081904b791f77781f
Wink Saville [Sat, 10 Aug 2013 18:22:31 +0000 (11:22 -0700)]
PROXY_SERVICE may be missing and its reference null.
Protect ourselves from when PROXY_SERVICE is missing
and mProxyService is null.
Bug:
10267814
Change-Id: Ia329376218e246cdde3d70b578c18466d48a6383
Katie McCormick [Sat, 10 Aug 2013 02:34:08 +0000 (19:34 -0700)]
am
94c529b8: am
385bb2eb: resolved conflicts for merge of
45178b13 to jb-mr2-ub-dev
* commit '
94c529b8d1119a452227238d54dcad86216478e7':
Doc change: collapse key fix.
Katie McCormick [Sat, 10 Aug 2013 02:31:19 +0000 (19:31 -0700)]
am
385bb2eb: resolved conflicts for merge of
45178b13 to jb-mr2-ub-dev
* commit '
385bb2eb5184686c2d953fe4757522e61acb3392':
Doc change: collapse key fix.
Zhihai Xu [Sat, 10 Aug 2013 01:47:06 +0000 (01:47 +0000)]
Merge "Bluetooth MAP profile - sms and mms support initial check-in" into klp-dev
Katie McCormick [Sat, 10 Aug 2013 00:55:05 +0000 (17:55 -0700)]
resolved conflicts for merge of
45178b13 to jb-mr2-ub-dev
Change-Id: I3f0f4d210dd48ddbed5795278c7e2b5f07da5978
destradaa [Sat, 10 Aug 2013 00:31:58 +0000 (00:31 +0000)]
Merge "Address Robin's code review comments in initial FlpHal submission." into klp-dev
Dianne Hackborn [Sat, 10 Aug 2013 00:23:36 +0000 (00:23 +0000)]
Merge "Allow bound processes to go PROCESS_STATE_TOP." into klp-dev
Dianne Hackborn [Sat, 10 Aug 2013 00:12:11 +0000 (17:12 -0700)]
Allow bound processes to go PROCESS_STATE_TOP.
For process state, if a top process is making use of another
process, we should probably count the second process as top
as well (instead of IMPORTANT_FOREGROUND). Specially, when
chrome binds to render processes we want those render
processes to be TOP. Otherwise, they end up in the
important foreground state and it looks like they are running
for some other reason in the background.
Change-Id: Id115dbb65dc2b403ffa4bbe4e7837564eb3b9cb5
Romain Guy [Sat, 10 Aug 2013 00:12:27 +0000 (00:12 +0000)]
Merge "Take shadow bounds into account for quick rejects Bug #
8634346" into klp-dev
Baligh Uddin [Sat, 10 Aug 2013 00:10:16 +0000 (00:10 +0000)]
Merge "Import translations. DO NOT MERGE" into klp-dev
Romain Guy [Sat, 10 Aug 2013 00:05:29 +0000 (00:05 +0000)]
Merge "Prevent AsyncTask from creating too many threads Bug #
10228005" into klp-dev
Baligh Uddin [Sat, 10 Aug 2013 00:02:40 +0000 (00:02 +0000)]
Merge "Import translations. DO NOT MERGE" into klp-dev
destradaa [Fri, 9 Aug 2013 22:01:49 +0000 (15:01 -0700)]
Address Robin's code review comments in initial FlpHal submission.
Change-Id: I50889599fdc5938a19b8bff4f11e64f44bcebdbf
Dianne Hackborn [Fri, 9 Aug 2013 23:19:07 +0000 (23:19 +0000)]
Merge "More stuff I need for the proc stats UI." into klp-dev
Dianne Hackborn [Fri, 9 Aug 2013 23:16:56 +0000 (16:16 -0700)]
More stuff I need for the proc stats UI.
Change-Id: I5f05b79bc4d5766a80f2db9d20ba8078b60c1b00
Romain Guy [Fri, 9 Aug 2013 23:09:44 +0000 (16:09 -0700)]
Prevent AsyncTask from creating too many threads
Bug #
10228005
From the ThreadPoolExecutor documentation:
- If fewer than corePoolSize threads are running, the Executor
always prefers adding a new thread rather than queuing.
- If corePoolSize or more threads are running, the Executor
always prefers queuing a request rather than adding a new thread.
- If a request cannot be queued, a new thread is created unless
this would exceed maximumPoolSize, in which case, the task will
be rejected.
Before this change AsyncTask could create up to 128 threads because
of the limited queue of 10 items (the capacity of a blocking queue
is fixed.)
This change increases the size of the queue to 128 items and reduces
the maximum number of threads to the number of CPU cores * 2 + 1.
Apps can still submit the same number of tasks.
Change-Id: I015d77b53b6a9fda39c618830b34d45a10de5571
Chet Haase [Fri, 9 Aug 2013 22:50:35 +0000 (22:50 +0000)]
Merge "Reduce amount of invalidation when old-style animations are running" into klp-dev
Katie McCormick [Fri, 9 Aug 2013 22:41:34 +0000 (22:41 +0000)]
Merge "Doc change: collapse key fix." into jb-mr2-dev
Katie McCormick [Wed, 24 Jul 2013 01:12:38 +0000 (18:12 -0700)]
Doc change: collapse key fix.
Change-Id: I620150b14ecd59db05f40c4422f8e2d09e05ebcb
Chet Haase [Thu, 8 Aug 2013 16:56:57 +0000 (09:56 -0700)]
Reduce amount of invalidation when old-style animations are running
Previously, old animations (view.animation.*) would cause invalidations on
both the area of the child view and then the entire parent area. There's no
reason for the second invalidation; only the child area need be redrawn.
Issue #
10229470 Old animation code in View.draw() may be invalidating too much
Change-Id: I4d0d16321e20b2f34dc579eacf5d3841aed33d6d
Matthew Xie [Fri, 19 Jul 2013 00:31:50 +0000 (17:31 -0700)]
Bluetooth MAP profile - sms and mms support initial check-in
bug:
10116530
Change-Id: I57d022005bcff5bc3e56438a81ac92566f957744
keunyoung [Fri, 9 Aug 2013 21:51:30 +0000 (21:51 +0000)]
Merge "add local focus mode and input event injection API to Window" into klp-dev
Craig Mautner [Fri, 9 Aug 2013 21:34:28 +0000 (21:34 +0000)]
Merge "Add extra layout pass after draw finished." into klp-dev
Craig Mautner [Thu, 8 Aug 2013 21:59:00 +0000 (14:59 -0700)]
Add extra layout pass after draw finished.
Once content has been drawn another pass through layout is required
to set mHasContent in the LogicalDisplay. Previously this pass was
occuring because of a delayed animation step. When timing of that
step changed that pass occurred before the draw completed. This is
why Presentations were immediately displayed in jb-mr1 and not
jb-mr2.
Fixes bug
10154780.
Change-Id: I0075c5a73d5cdf972e73fdd59c1fde46df64e245
Colin Cross [Fri, 9 Aug 2013 21:24:08 +0000 (21:24 +0000)]
Merge "parse named anonymous memory for dumpsys meminfo" into klp-dev
Romain Guy [Fri, 9 Aug 2013 21:06:29 +0000 (14:06 -0700)]
Take shadow bounds into account for quick rejects
Bug #
8634346
Change-Id: I995c5205c2959d8e4da638ae47fedcda92eb1b36
Martijn Coenen [Fri, 9 Aug 2013 20:47:49 +0000 (20:47 +0000)]
Merge "NFC: always upper-case parsed AIDs." into klp-dev
Alan Viverette [Fri, 9 Aug 2013 20:46:02 +0000 (20:46 +0000)]
Merge "Fix padding adjustment for scrollbars in View, FastScroller" into klp-dev
Martijn Coenen [Fri, 9 Aug 2013 20:43:34 +0000 (13:43 -0700)]
NFC: always upper-case parsed AIDs.
Also added activity intent action for Tap&Pay settings.
Change-Id: I5648e1ded3b79a3363899d1cab8aec55842b3e22
Colin Cross [Fri, 9 Aug 2013 20:23:46 +0000 (13:23 -0700)]
parse named anonymous memory for dumpsys meminfo
Treat [anon:libc_malloc] as native heap and anything else that
starts with [anon: as unknown.
Bug:
10212959
Change-Id: Ifd120ae86e7a22291383df37d2b96f9f2dcd68b9
Geoffrey Borggaard [Fri, 9 Aug 2013 20:27:26 +0000 (20:27 +0000)]
Merge "Add a name to the DeviceOwner" into klp-dev
Geoffrey Borggaard [Thu, 8 Aug 2013 18:31:36 +0000 (14:31 -0400)]
Add a name to the DeviceOwner
We will need to display the name of the device owner (the human
readable name of the institution) to the user.
"This device is managed by google.com"
Change-Id: Ic33b6530c19cb14a118245692697205de3911a58
Fabrice Di Meglio [Fri, 9 Aug 2013 19:54:19 +0000 (19:54 +0000)]
Merge "Fix bug #
10210182 CTS: android.widget.cts.TextViewTest#testDrawableResolution is failing on KLP" into klp-dev
Dianne Hackborn [Fri, 9 Aug 2013 19:10:38 +0000 (19:10 +0000)]
Merge "Add method for adding two ProcessStats objects together." into klp-dev
Dianne Hackborn [Fri, 9 Aug 2013 04:57:14 +0000 (21:57 -0700)]
Add method for adding two ProcessStats objects together.
Also move file reading code over to ProcessStats.
Change-Id: Ib42272b90a408a494044965e98beed16c0b3f8a5
Fabrice Di Meglio [Fri, 9 Aug 2013 18:11:32 +0000 (18:11 +0000)]
Merge "Fix bug #
10205316 CTS (KLP): android.graphics tests are failing" into klp-dev
Alan Viverette [Fri, 9 Aug 2013 17:40:50 +0000 (10:40 -0700)]
Fix padding adjustment for scrollbars in View, FastScroller
BUG:
10224791,
10248282
Change-Id: Ia89d2cbea163b7cad567ea37161552c1cfd66045
Baligh Uddin [Fri, 9 Aug 2013 07:29:33 +0000 (00:29 -0700)]
Import translations. DO NOT MERGE
Change-Id: I8e06a2ad389d19787557ab26ef10b20e6d667ec4
Auto-generated-cl: translation import
Baligh Uddin [Fri, 9 Aug 2013 07:04:11 +0000 (00:04 -0700)]
Import translations. DO NOT MERGE
Change-Id: I264c3003f2c7cd3c079a7a4114c509c6909c6bfd
Auto-generated-cl: translation import
Mathias Agopian [Fri, 9 Aug 2013 04:39:55 +0000 (04:39 +0000)]
Merge "fix-up dependencies to gl headers" into klp-dev
Mathias Agopian [Fri, 9 Aug 2013 02:24:14 +0000 (19:24 -0700)]
fix-up dependencies to gl headers
Change-Id: I9f176847587db1f9ccee2bc425106d277ffceee6
Romain Guy [Fri, 9 Aug 2013 02:11:20 +0000 (19:11 -0700)]
Remove an unnecessary allocation
Also remove dead code from OpenGLRenderer.cpp
Change-Id: I7eb54ca19e77ee3c32f1fe9513a031e6b2e115cf
(cherry picked from commit
5c7d5ab878b26f855175a3305a14ac12fcacf25e)
keunyoung [Fri, 2 Aug 2013 21:23:10 +0000 (14:23 -0700)]
add local focus mode and input event injection API to Window
- This enables keyboard navigation for window without focus.
- FLAG_LOCAL_FOCUS_MODE puts window into local focus mode.
- Application needs to put window in local focus mode, control focus, and
inject events to make dpad navigation work.
- Window in local focus mode does not interact with window manager or ime
regarding focus related events.
- Also renamed ViewRootImpl.dispatchKey to dispatchInputEvent to allow both key and touch events injection.
Change-Id: I8e8561f29e0dade3797fb7ae3ee7690e6b7f8895
Fabrice Di Meglio [Fri, 9 Aug 2013 02:11:34 +0000 (19:11 -0700)]
Fix bug #
10205316 CTS (KLP): android.graphics tests are failing
- fix null Shader case during copy
Related to https://googleplex-android-review.googlesource.com/#/c/336815/7
Change-Id: I920d6bb181ddb92d6f771e5060fd1858430e71ad
Fabrice Di Meglio [Thu, 8 Aug 2013 23:28:07 +0000 (16:28 -0700)]
Fix bug #
10210182 CTS: android.widget.cts.TextViewTest#testDrawableResolution is failing on KLP
This issue has been actually revealed by a fix for bug #
7034321 (Need Drawable RTL support)
where I identified an issue with Drawables resolution in TextView (was missing a call to
resetResolvedDrawables() and resolveDrawables()).
- add missing resetResolvedDrawables() and resolveDrawables() in TextView.setRelativeDrawablesIfNeeded()
- fix View.resolveDrawables():
this was a bit trycky as View.resolveDrawables() was wrongly supposing that the layout direction was
resolved and it could access View.getLayoutDirection() and could position the PFLAG2_DRAWABLE_RESOLVED
bit.
Dont forget that resolution of RTL properties (layoutDirection, Drawables ...) is happening in
View.measure() but in our case (TexView constructor) we still need to resolve the Drawables.
So now, be sure that we cannot resolve the Drawable if layout direction has not being resolved and the
raw layout direction is LAYOUT_DIRECTION_INHERIT.
But we can also "cheat" if the raw layout direction is LAYOUT_DIRECTION_LTR or LAYOUT_DIRECTION_RTL
or LAYOUT_DIRECTION_LOCALE as its resolution will give the same value :-)
Change-Id: I7a242d918697e1e1c2febf229e8edf1866b855be
Jeff Sharkey [Fri, 9 Aug 2013 00:59:01 +0000 (00:59 +0000)]
Merge "Always include a default DocumentStack." into klp-dev
Jeff Sharkey [Fri, 9 Aug 2013 00:57:16 +0000 (17:57 -0700)]
Always include a default DocumentStack.
Change-Id: Idbde1d832ac95c4b3c8bd5cd82b0fa695e0bcb6d
Svetoslav [Fri, 9 Aug 2013 00:52:50 +0000 (00:52 +0000)]
Merge "Some hygiene for the touch explorer." into klp-dev
Jeff Sharkey [Fri, 9 Aug 2013 00:44:55 +0000 (00:44 +0000)]
Merge "Allow packages.list access with new GID." into klp-dev
Svetoslav [Fri, 9 Aug 2013 00:34:30 +0000 (17:34 -0700)]
Some hygiene for the touch explorer.
1. Removed the inactive pointer filtering which was not reporting pointers
to the apps if they did not travel a minimal distance. This prohibits
developemnt of apps with innovative interaction models such as using
the screen as a virtual Braille keyboard.
2. We need the first pointer to travel some distance or a minimal amount of
time to pass before deciding if the user explores or performs a gesture.
In this period we were dropping events which was preventing inovative
interfaces such as gesture based typing since we were chopping off a
significant portion of the data.
Change-Id: I5c1aa98d14c83f356a9c59c93f4dc1f970c0faca
Jeff Sharkey [Wed, 10 Jul 2013 23:19:52 +0000 (16:19 -0700)]
Allow packages.list access with new GID.
The FUSE daemon is using packages.list to map from package name to
appId after it drops permissions, so create a new "package_info" GID
to grant read access.
Also switches FileUtils to use Libcore.os.
Change-Id: I9451ca4e90e8a985526805c6df0888a244a1db36
Jonathan Dixon [Fri, 9 Aug 2013 00:36:03 +0000 (00:36 +0000)]
Merge "Refactor Canvas.drawPicture() to delegate to Picture" into klp-dev
Jonathan Dixon [Fri, 2 Aug 2013 22:28:31 +0000 (15:28 -0700)]
Refactor Canvas.drawPicture() to delegate to Picture
Bug:
9814370
To allow WebView.capturePicture() to return a subclass, we need to
ensure the subclass is always consulted when being drawn into a canvas.
Change-Id: Ia0357f95b6fafb3ac81e6bcfaef05739e619897a
Wink Saville [Fri, 9 Aug 2013 00:10:34 +0000 (17:10 -0700)]
am
9b7b4450: am
02eab434: am
4d87d91d: Merge "If in a mobile captive portal is detected enable fail fast." into jb-mr2-dev
* commit '
9b7b4450185e723dc7021f7e8bae4a12d4dd5606':
If in a mobile captive portal is detected enable fail fast.
Wink Saville [Fri, 9 Aug 2013 00:10:32 +0000 (17:10 -0700)]
am
7c00be48: am
55adb390: am
35152f13: Merge "Have CaptivePortalTracker use gservices updateable provisioning urls." into jb-mr2-dev
* commit '
7c00be48fcb1986db14915beef549e925b5670d2':
Have CaptivePortalTracker use gservices updateable provisioning urls.
Wink Saville [Fri, 9 Aug 2013 00:09:23 +0000 (00:09 +0000)]
Merge "Merge commit '
81132d51' into fix-merge-conflict" into klp-dev
Wink Saville [Thu, 8 Aug 2013 23:51:46 +0000 (16:51 -0700)]
Merge commit '
81132d51' into fix-merge-conflict
* commit '
81132d51':
In CaptiviePortalTracker a socket timeout is probably a captive portal.
Change-Id: I624732a5c29427bc22a156ccd46e6ff727af09c5
Jeff Brown [Thu, 8 Aug 2013 23:30:27 +0000 (23:30 +0000)]
Merge "Use new ISurfaceComposer::destroyDisplay method" into klp-dev
Wink Saville [Thu, 8 Aug 2013 23:22:14 +0000 (16:22 -0700)]
am
81b1fa6f: am
9b6363e5: am
cbad1243: Merge "Check that hipri has started." into jb-mr2-dev
* commit '
81b1fa6fc62190d64a6b76b4a5ee7cc2bf3172ac':
Check that hipri has started.