OSDN Git Service
Robin Lee [Tue, 2 Jun 2015 18:16:25 +0000 (18:16 +0000)]
Merge "Consistent documentation and annotations for DPMS" into mnc-dev
Robin Lee [Tue, 2 Jun 2015 16:56:29 +0000 (09:56 -0700)]
Consistent documentation and annotations for DPMS
Annotated all uses of the ComponentName parameter to methods in
DevicePolicyManager to indicate whether null is acceptable.
Deleted or fixed some inconsistent or poorly-worded documentation.
Bug:
21422939
Change-Id: I8d86d0968c2af3595f268828ea1625f1ed256d50
Olawale Ogunwale [Tue, 2 Jun 2015 17:51:15 +0000 (17:51 +0000)]
Merge "Should reset mDismissKeyguard on keyguard secure change" into mnc-dev
Olawale Ogunwale [Tue, 2 Jun 2015 17:51:00 +0000 (17:51 +0000)]
Merge "Fix null pointer dereference when security exception occurs" into mnc-dev
Olawale Ogunwale [Tue, 2 Jun 2015 17:50:37 +0000 (17:50 +0000)]
Merge "WindowManagerService not propagating X and Y steps" into mnc-dev
Carlos Valdivia [Tue, 2 Jun 2015 17:31:27 +0000 (17:31 +0000)]
Merge "System Health: Support expiring tokens" into mnc-dev
Dmitriy Ivanov [Tue, 2 Jun 2015 17:28:21 +0000 (17:28 +0000)]
Merge "Print exception stacktrace on failed scanPackageLI" into mnc-dev
Wei Wang [Tue, 2 Jun 2015 17:23:59 +0000 (17:23 +0000)]
Merge "Expose a few system APIs for BLE scan only mode." into mnc-dev
Wei Wang [Mon, 1 Jun 2015 19:14:28 +0000 (12:14 -0700)]
Expose a few system APIs for BLE scan only mode.
Bug:
21562349
Change-Id: Ifc58efcf01edac5b4f9e5266adb966e7bc492209
Carlos Valdivia [Fri, 22 May 2015 21:11:35 +0000 (14:11 -0700)]
System Health: Support expiring tokens
In the past android:customTokens=true authenticators were required to handle
their own token caching. This is detrimental for battery when high traffic
authenticators are constantly spinning up processes to start services to do
file io to check their own caches. This change allows authenticator
implementers to optionally let the framework do some of the work for them by
providing the framework with a expiration time.
The AccountManagerService will make a best effort to re-use the cached
token if possible.
Bug:
21530782
Change-Id: I16a7edba36a220e3891e55cf61c725c2be863323
Svet Ganov [Tue, 2 Jun 2015 16:49:46 +0000 (16:49 +0000)]
Merge "Respect accessibility importance for before/after node ordering." into mnc-dev
Alan Viverette [Tue, 2 Jun 2015 16:47:52 +0000 (16:47 +0000)]
Merge "Remove strict mode violation from value to string coercion" into mnc-dev
Svet Ganov [Tue, 2 Jun 2015 16:45:16 +0000 (09:45 -0700)]
Respect accessibility importance for before/after node ordering.
One can set a view to be visited before/after another one for
accessibility but the before/after target views were always added
to the node info for the view regardless if they are included
for accessiilbity. Now the target viwes are reported only if they
should be included for accessibility.
Change-Id: Iba64e6f0ee0dc090c8c3e6a0a940df8c7ecd49d9
Selim Cinek [Mon, 1 Jun 2015 13:11:19 +0000 (06:11 -0700)]
Fixed a crash with HUNs
Bug:
21500600
Change-Id: Idf0a7be5d58bb5c666b930a0beada1e0ed2869aa
Andre Eisenbach [Tue, 2 Jun 2015 08:38:03 +0000 (01:38 -0700)]
Bluetooth PAN: Set isPreferred to true (1/2)
isPreferred must always be true for PAN so that the DUT can initiate
a PANU connection with the remote device not only from the internet
access menu in the profile setting, but also from the paired device
list menu.
Currently isPreferred is only true when PAN is in connected state
for the PANU role, so it will return false when the PAN profile is
not connected and the PANU connection will never be initiated
from the paired device list menu.
Change-Id: I120e681a113f56b74b45e01870adf96cdc2ca262
Nitin Shivpure [Thu, 12 Dec 2013 14:33:49 +0000 (20:03 +0530)]
Bluetooth: Fix to avoid framework reboot during monkey testing
When running monkeyrunner, sometimes the framework is disconnected due
to an unhandled Java exception while binding the PAN service (when it
is unsuccessful). Handing the Java exception while binding PAN service
solves this issue.
Change-Id: Idea710593a3f9496305f636042605303e73e7749
Seigo Nonaka [Tue, 2 Jun 2015 07:55:48 +0000 (07:55 +0000)]
Merge "Hide the software input based on its state." into mnc-dev
Lorenzo Colitti [Tue, 2 Jun 2015 07:47:46 +0000 (07:47 +0000)]
Merge "Fix DHCP lease time parsing." into mnc-dev
Erik Kline [Tue, 2 Jun 2015 07:42:53 +0000 (07:42 +0000)]
Merge "pass a defensive copy of DhcpResults" into mnc-dev
Erik Kline [Tue, 2 Jun 2015 06:51:45 +0000 (15:51 +0900)]
pass a defensive copy of DhcpResults
Also: correct state transition handling in DhcpBoundState#enter().
Bug:
20451261
Change-Id: I3be50f6b1b3fae179d6fff7ca8ae1d687caa3221
Lorenzo Colitti [Tue, 2 Jun 2015 04:15:50 +0000 (13:15 +0900)]
Fix DHCP lease time parsing.
Currently we treat a lease time larger than 2**31-1 as a negative
value, which causes DhcpClient to attempt to renew its IP address
constantly. Fix this by properly handling large and infinite
lifetimes, and while we're at it, impose a minimum lease time of
60 seconds.
Bug:
21352084
Change-Id: If62c9efeffad6222e2fe0c110f77d0e4c70de96d
Jeff Brown [Tue, 2 Jun 2015 03:45:27 +0000 (03:45 +0000)]
am
65f6996a: (-s ours) am
eb4bd19e: Terminate loop properly when cursor window is full. DO NOT MERGE
* commit '
65f6996add7fe38000b5e28675b70064cec31837':
Terminate loop properly when cursor window is full. DO NOT MERGE
Jeff Brown [Tue, 2 Jun 2015 03:33:31 +0000 (03:33 +0000)]
am
eb4bd19e: Terminate loop properly when cursor window is full. DO NOT MERGE
* commit '
eb4bd19ef09b2c277347b08c4a050f01f686c9c2':
Terminate loop properly when cursor window is full. DO NOT MERGE
Andre Eisenbach [Thu, 14 May 2015 21:48:00 +0000 (14:48 -0700)]
Un-hide connectGatt() variant with selective transport
Change-Id: I1d3c512160de2bd68550faf243bb151d5cf7f3c9
Ruben Brunk [Tue, 2 Jun 2015 01:48:21 +0000 (01:48 +0000)]
Merge "Track camera and flashlight usage in battery stats." into mnc-dev
Seigo Nonaka [Tue, 26 May 2015 11:54:43 +0000 (20:54 +0900)]
Hide the software input based on its state.
This is a 2nd trial of I20ae2749a which is reverted due to a regression.
The goals of this CL are two:
- Split setImeWindowStatus method into two: keeping IMS status and
updating system UI e.g. NavBar icon state.
- Hide software keyboard based on a realistic IMS status.
IMMS#mImeWindowVis has been used for two purpose, keeping IMS status and
updating the NavBar icons, e.g. keyboard icon.
However, to update NavBar icon, sometimes IMMS#mImeWindowVis value is
updated without any notification from IMS. As the result, the status
value becomes incosistent with the real IMS state.
This patch extracts NavBar update logic into separate method and keeps
IMMS#mImeWindowVis as notified status. Then, use it for hiding software
input correctly in IMMS#hideCurrentInputLocked.
This CL also removes refreshImeWindowVisibilityLocked method including
workaround for fixing Bug
11186297. That issue is no longer
reproducible with latest lock screen and almost no effect for existing
users and developers. So simply remove them in this CL.
BUG:
21446788
BUG:
20764441
BUG:
18722991
Change-Id: I33dc6278fd892f26e56352722bf9449b8b102030
Quddus Chong [Tue, 2 Jun 2015 01:25:21 +0000 (01:25 +0000)]
am
348d0a68: am
7af35669: docs: Added Javadocs for Testing Support Library v0.3 and updated the corresponding setup instructions. bug:
21442922
* commit '
348d0a68ad317877061f23da512144b0e4c2dc7c':
docs: Added Javadocs for Testing Support Library v0.3 and updated the corresponding setup instructions. bug:
21442922
Dmitriy Ivanov [Tue, 2 Jun 2015 01:19:10 +0000 (18:19 -0700)]
Print exception stacktrace on failed scanPackageLI
The current message does not provide enough
information to figure out what is going on.
Bug: http://b/
8076853
Change-Id: I741781ce6829eac44e4edddd0a545f3be743ceeb
Sanket Padawe [Tue, 2 Jun 2015 01:20:25 +0000 (01:20 +0000)]
Merge "Fix issue related selecting of "Contact sharing" in BT Settings." into mnc-dev
Clara Bayarri [Tue, 2 Jun 2015 01:15:44 +0000 (01:15 +0000)]
Merge "Fix TextView ActionMode overflow finishes the ActionMode" into mnc-dev
Clara Bayarri [Tue, 2 Jun 2015 01:15:02 +0000 (01:15 +0000)]
Merge "Make Text Selection Action Mode secondary items IF_ROOM" into mnc-dev
Quddus Chong [Tue, 2 Jun 2015 01:07:57 +0000 (01:07 +0000)]
am
7af35669: docs: Added Javadocs for Testing Support Library v0.3 and updated the corresponding setup instructions. bug:
21442922
* commit '
7af3566912b0e014cfd1704acdeb31a0a7cca0d3':
docs: Added Javadocs for Testing Support Library v0.3 and updated the corresponding setup instructions. bug:
21442922
Adam Powell [Tue, 2 Jun 2015 01:00:05 +0000 (01:00 +0000)]
Merge "Don't take the compatibility path for non-primary ActionModes" into mnc-dev
Svetoslav [Tue, 2 Jun 2015 00:22:38 +0000 (00:22 +0000)]
Merge "Don't add real children for a view with a node provider" into mnc-dev
Svetoslav [Tue, 2 Jun 2015 00:21:59 +0000 (17:21 -0700)]
Don't add real children for a view with a node provider
Change-Id: I1dd43fa5ff93e8eb76e2c7587fb13cd1ef097678
Quddus Chong [Wed, 27 May 2015 23:07:54 +0000 (16:07 -0700)]
docs: Added Javadocs for Testing Support Library v0.3 and updated
the corresponding setup instructions.
bug:
21442922
Change-Id: I7374e8102fc95377e83db738ab7ff20510e04faa
Jeff Brown [Sat, 30 May 2015 01:48:38 +0000 (18:48 -0700)]
Terminate loop properly when cursor window is full. DO NOT MERGE
The existing code exits the column-filling loop immediately but
may continue to try to fill rows. Ordinarily this should fail
too but it's possible for the process to continue and then
blow up a little later. Fixed this problem by exiting the row-
filling loop promptly.
Bug:
21406130
Change-Id: Ifab59188d5d1b40f3c1f5c97604dd48da71bf37b
(cherry picked from commit
bb8c841e909a2fb967db2ad3b9f8b058f9b849e8)
Jorim Jaggi [Mon, 1 Jun 2015 23:25:39 +0000 (16:25 -0700)]
Fix shared drawable state
Not calling mutate here had a side-effect making the icon in the
status bar untintable in SysUI.
Bug:
21566007
Change-Id: Ifb78c81ba7f04d496f14031ef635a6e964e6280e
Ruben Brunk [Wed, 27 May 2015 00:32:16 +0000 (17:32 -0700)]
Track camera and flashlight usage in battery stats.
Bug:
15986092
Change-Id: Idf03981271721c44fd43327d5d90cf6f3fecfacb
Svetoslav [Mon, 1 Jun 2015 23:53:54 +0000 (23:53 +0000)]
Merge "Add accidentally deleted strings." into mnc-dev
Selim Gurun [Mon, 1 Jun 2015 23:53:06 +0000 (23:53 +0000)]
Merge "Remove ViewAssistStructure and use the frameworks data structure" into mnc-dev
Alan Viverette [Mon, 1 Jun 2015 23:52:35 +0000 (23:52 +0000)]
Merge "Always send VIEW_CLICKED event from AdapterView.performItemClick()" into mnc-dev
Svetoslav [Mon, 1 Jun 2015 23:51:11 +0000 (16:51 -0700)]
Add accidentally deleted strings.
Change-Id: I16d7c151b46c076bfdccb1ff0b2bcb0934eedf93
Eino-Ville Talvala [Mon, 1 Jun 2015 23:47:31 +0000 (23:47 +0000)]
Merge "Camera2: Remove isLoggable" into mnc-dev
Alan Viverette [Mon, 1 Jun 2015 23:41:42 +0000 (16:41 -0700)]
Always send VIEW_CLICKED event from AdapterView.performItemClick()
This makes it consistent with View.performClick().
Bug:
19574976
Change-Id: I00b222d56aa6fac03c2e6ead0604ee2ff3a6969d
Selim Gurun [Mon, 1 Jun 2015 23:26:10 +0000 (16:26 -0700)]
Remove ViewAssistStructure and use the frameworks data structure
As part of the API rename from ViewAssistStructure to ViewStructure,
we added a temporary workaround to prevent build breakage. Remove
the temporary workaround since the current unbundled webview package
implements the updated onProvideVirtualStructure API.
Change-Id: I13a5b8dee3e856eb585de53a0750bd52c7a909a7
Jeff Brown [Mon, 1 Jun 2015 23:34:24 +0000 (23:34 +0000)]
Merge "Terminate loop properly when cursor window is full." into mnc-dev
Jeff Brown [Sat, 30 May 2015 01:48:38 +0000 (18:48 -0700)]
Terminate loop properly when cursor window is full.
The existing code exits the column-filling loop immediately but
may continue to try to fill rows. Ordinarily this should fail
too but it's possible for the process to continue and then
blow up a little later. Fixed this problem by exiting the row-
filling loop promptly.
Bug:
21406130
Change-Id: Ifab59188d5d1b40f3c1f5c97604dd48da71bf37b
Adrian Roos [Mon, 1 Jun 2015 23:25:33 +0000 (23:25 +0000)]
Merge "Translucent bars in landscape" into mnc-dev
Deepanshu Gupta [Mon, 1 Jun 2015 23:20:11 +0000 (23:20 +0000)]
Merge "LayoutLib: Skip classes from java package." into mnc-dev
Deepanshu Gupta [Mon, 1 Jun 2015 23:20:03 +0000 (23:20 +0000)]
Merge "Skip warnings for some unresolved references." into mnc-dev
Quddus Chong [Mon, 1 Jun 2015 23:11:47 +0000 (23:11 +0000)]
am
65b7485d: am
2b95561d: docs: Fixed typo for confirm credentials section in the API Overview. bug:
21444273
* commit '
65b7485d64661394b61df3df7eeccd063932886e':
docs: Fixed typo for confirm credentials section in the API Overview. bug:
21444273
Winson Chung [Mon, 1 Jun 2015 23:07:36 +0000 (23:07 +0000)]
Merge "Don't focus view for invalid task index." into mnc-dev
Winson Chung [Mon, 1 Jun 2015 23:02:58 +0000 (16:02 -0700)]
Don't focus view for invalid task index.
Bug:
21322861
Change-Id: I7b8397d18b488bd8f459e578b64d6e82e4f1437d
Sanket Padawe [Mon, 1 Jun 2015 22:55:30 +0000 (15:55 -0700)]
Fix issue related selecting of "Contact sharing" in BT Settings.
Bug:
20041014
Change-Id: I84b59fdfd82c4bf25965bcb10a15fbff2dfbe721
Adrian Roos [Wed, 27 May 2015 01:30:37 +0000 (18:30 -0700)]
Translucent bars in landscape
Bug:
18739556
Change-Id: Ib9602a9d1f09e6bd6c1306927990676120dff012
Adam Powell [Mon, 1 Jun 2015 22:37:37 +0000 (22:37 +0000)]
Merge "Fix one-action choosers with EXTRA_INITIAL_INTENTS" into mnc-dev
Tyler Gunn [Mon, 1 Jun 2015 22:35:28 +0000 (22:35 +0000)]
Merge "Cleanup Video API javadoc." into mnc-dev
Tyler Gunn [Mon, 1 Jun 2015 22:33:57 +0000 (22:33 +0000)]
Merge "IMS: Conference fixes" into mnc-dev
Dianne Hackborn [Mon, 1 Jun 2015 22:28:44 +0000 (22:28 +0000)]
Merge "Update VoiceInteractionService from API review." into mnc-dev
Alan Viverette [Mon, 1 Jun 2015 22:18:37 +0000 (15:18 -0700)]
Remove strict mode violation from value to string coercion
The legitimate uses of value to string coercion, including the
interaction between lax attribute formatting and AAPT type inference,
combined with the low likelihood of unintentional coercion and low cost
of most string coercions, makes the value to string coercion violation
overkill.
Bug:
21563086
Change-Id: I7892e776d3e5479fcba507749b074c2abdf1b781
Alan Viverette [Mon, 1 Jun 2015 22:08:27 +0000 (22:08 +0000)]
Merge "ActionBar menu text should look like Button" into mnc-dev
Raph Levien [Mon, 1 Jun 2015 21:41:58 +0000 (21:41 +0000)]
Merge "Revert "Revert "Use getRunAdvance to position cursor""" into mnc-dev
Alan Viverette [Mon, 1 Jun 2015 21:56:34 +0000 (21:56 +0000)]
Merge "Clean up AbsListView constructor" into mnc-dev
Robert Shih [Mon, 1 Jun 2015 21:55:49 +0000 (21:55 +0000)]
Merge "MediaPlayer: trigger onError instead of exception on stale native notifications" into mnc-dev
Tyler Gunn [Mon, 1 Jun 2015 21:29:11 +0000 (14:29 -0700)]
IMS: Conference fixes
- Set phoneaccount to Conference
- Handle conference call in DIALING state
Change-Id: I549bf664724473f0d5d4450cbc8d96f7b534f43a
Bug:
21376607
Deepanshu Gupta [Mon, 1 Jun 2015 21:21:24 +0000 (14:21 -0700)]
LayoutLib: Skip classes from java package.
Classes in "java" package can't be defined at runtime anyway. No use
including them in LayoutLib.
Change-Id: I7e7c46f0d74e32c893b23093828569b4fa5e3a73
Deepanshu Gupta [Wed, 27 May 2015 19:35:56 +0000 (12:35 -0700)]
Skip warnings for some unresolved references.
Some applications rename the newer RTL attributes to the older
attributes in order to target RTL locales, but not need to include two
attributes everywhere it's needed. For example, iosched renames
paddingStart to paddingLeft (among other attributes) for API 17 and
above. This leads to hundreds of warnings about missing attributes.
This change suppresses such warnings.
Also, skip adding unresolved attributes to the typed array. This is more
in line with the actual implementation on device, and prevents
unexpected warnings/errors/crashes later.
Change-Id: Iee616fa6295aa9731ede0cf9dcd6dd2bd1fe8f20
Raph Levien [Mon, 1 Jun 2015 21:34:47 +0000 (14:34 -0700)]
Revert "Revert "Use getRunAdvance to position cursor""
This reverts commit
5730c974800a0ffed59a041d9e249a5c42e417db.
Quddus Chong [Mon, 1 Jun 2015 21:31:23 +0000 (21:31 +0000)]
am
2b95561d: docs: Fixed typo for confirm credentials section in the API Overview. bug:
21444273
* commit '
2b95561db50426779947ad5ab680994c24d79396':
docs: Fixed typo for confirm credentials section in the API Overview. bug:
21444273
Abodunrinwa Toki [Mon, 1 Jun 2015 21:31:19 +0000 (21:31 +0000)]
Merge "Fix FloatingToolbar look and animation for RTL." into mnc-dev
Eino-Ville Talvala [Mon, 1 Jun 2015 21:26:01 +0000 (21:26 +0000)]
Merge "Camera2: Add tangential distortion coefficients" into mnc-dev
Quddus Chong [Mon, 1 Jun 2015 21:05:12 +0000 (14:05 -0700)]
docs: Fixed typo for confirm credentials section in the API Overview.
bug:
21444273
Change-Id: I01700e95227e5f7c09a5d6428877087d7ff0121a
Andrew Flynn [Mon, 1 Jun 2015 21:11:51 +0000 (21:11 +0000)]
Merge "Remove separate light/dark animated vector drawables" into mnc-dev
Chris Craik [Mon, 1 Jun 2015 20:58:01 +0000 (20:58 +0000)]
Merge "Fix RenderScript copy tracing sections" into mnc-dev
Robert Shih [Thu, 28 May 2015 01:11:44 +0000 (18:11 -0700)]
MediaPlayer: trigger onError instead of exception on stale native notifications
This change also reverted commit
2c838fbd87ad5685c0008b419ea02421159b9b70,
"MediaPlayer: add mPreparing to weed out unwanted prepared messages".
Bug:
21266735
Change-Id: I392342519420bee2fde1fe1915c51d24101ca27d
Andrew Flynn [Mon, 1 Jun 2015 20:34:21 +0000 (16:34 -0400)]
Remove separate light/dark animated vector drawables
Now that AnimatedVectorDrawables can use themed animations, SysUI no longer
needs to track separate AVDs for the carrier network change icons.
Bug:
21118142
Change-Id: Ifb6d7b5e7e3de85c10bc13183b4142fd2e6714b6
Chris Tate [Mon, 1 Jun 2015 20:11:56 +0000 (20:11 +0000)]
Merge "DO NOT MERGE Fix bug regarding the comparator sorts Alarms into increasing time order." into mnc-dev
John Spurlock [Mon, 1 Jun 2015 20:07:38 +0000 (20:07 +0000)]
Merge "Next alarm clock updates." into mnc-dev
Andrew Flynn [Mon, 1 Jun 2015 20:04:06 +0000 (20:04 +0000)]
Merge "Change colors of AVD test" into mnc-dev
Raph Levien [Mon, 1 Jun 2015 19:45:24 +0000 (19:45 +0000)]
Merge "Revert "Use getRunAdvance to position cursor"" into mnc-dev
Jason Monk [Mon, 1 Jun 2015 19:45:22 +0000 (19:45 +0000)]
Merge "Be more careful with mAccessPoints usage" into mnc-dev
Eino-Ville Talvala [Mon, 1 Jun 2015 19:39:54 +0000 (12:39 -0700)]
Camera2: Remove isLoggable
Change-Id: I83b2c8321ab6b48cf68ef7a4d724559ead1a1790
Raph Levien [Mon, 1 Jun 2015 19:40:42 +0000 (12:40 -0700)]
Revert "Use getRunAdvance to position cursor"
This reverts commit
cb5499c85097450c48f66f6c08a35bab2ad5ab12.
Bug:
21549197
Jorim Jaggi [Mon, 1 Jun 2015 19:13:10 +0000 (19:13 +0000)]
Merge "Cleanup Keyguard handling when turning off screen" into mnc-dev
Filip Gruszczynski [Mon, 1 Jun 2015 19:09:57 +0000 (19:09 +0000)]
am
11d50c9c: am
06756f35: Dismiss or cancel in SwipeDismissLayout on screen off.
* commit '
11d50c9cc6f9990af5b9abf2058f6b7d4a5c8ae0':
Dismiss or cancel in SwipeDismissLayout on screen off.
Wale Ogunwale [Mon, 1 Jun 2015 19:06:44 +0000 (19:06 +0000)]
Merge "Allow app to stop lockTaskMode if started by manifest attribute" into mnc-dev
Jason Monk [Mon, 1 Jun 2015 19:00:57 +0000 (15:00 -0400)]
Be more careful with mAccessPoints usage
Bug:
21559453
Change-Id: I1a0bcf7282ad1a651169dea7e8ac5bc618b580d1
Filip Gruszczynski [Mon, 1 Jun 2015 18:57:21 +0000 (18:57 +0000)]
am
06756f35: Dismiss or cancel in SwipeDismissLayout on screen off.
* commit '
06756f352d2046246bc147fa1f55d1dfbfcb37f5':
Dismiss or cancel in SwipeDismissLayout on screen off.
Dianne Hackborn [Sat, 30 May 2015 00:58:53 +0000 (17:58 -0700)]
Update VoiceInteractionService from API review.
This may even manage to retain compatibility with existing
binaries! (For now.)
Change-Id: I3b1386287a6b9b20b57ac2e2444fd6f458837277
Wale Ogunwale [Mon, 1 Jun 2015 16:48:36 +0000 (09:48 -0700)]
Allow app to stop lockTaskMode if started by manifest attribute
It is possible lockTaskMode was started by the system process
because android:lockTaskMode is set to a locking value in the
application's manifest instead of the app calling
startLockTaskMode. In this case TaskRecord.mLockTaskUid will
be 0, so we compare the callingUid to the
TaskRecord.effectiveUid instead so the app can exit lockTaskMode.
Bug:
21464182
Change-Id: Ibca6de8e4b17051d5fcbb05cde9c8aefed7216f2
Alan Viverette [Mon, 1 Jun 2015 18:27:04 +0000 (11:27 -0700)]
ActionBar menu text should look like Button
Bug:
21560189
Change-Id: Idae6569a5b1c9e3e3ab297c4d057f37e9add9aaa
Adam Powell [Mon, 1 Jun 2015 18:26:32 +0000 (11:26 -0700)]
Don't take the compatibility path for non-primary ActionModes
Action modes that are not of type PRIMARY currently go through some
compatibility gymnastics so that the non-typed startActionModeForChild
ViewParent method has an opportunity to process them. Unfortunately, a
lot of apps in the wild use AppCompat, which intercepts these and
presents its own contextual action bar UI.
In practice this now means that the new floating toolbars for
TextViews and similar components don't show up in the majority of
existing apps. While this may be more correct from a compatibility
standpoint, it presents a poor user experience.
Only take the compatibility code path that calls through the older,
untyped startActionModeForChild method when the type is PRIMARY. The
tradeoff is that apps that previously would use parent views to modify
a text selection action mode will now no longer be able to do so.
Change-Id: I8c892a7a84ec36e6a484a5cba0c95281ea6beafb
Winson Chung [Mon, 1 Jun 2015 18:19:44 +0000 (18:19 +0000)]
Merge "Ensuring that we write to disk first." into mnc-dev
Winson Chung [Fri, 29 May 2015 20:36:56 +0000 (13:36 -0700)]
Ensuring that we write to disk first.
Change-Id: I2c55db77ab6feef1b405858aac53fb0ed3370dc2
Winson Chung [Fri, 29 May 2015 23:27:00 +0000 (16:27 -0700)]
Allow long-pressing task icon to show app-info.
Bug:
17369696
Yorke Lee [Mon, 1 Jun 2015 18:00:49 +0000 (18:00 +0000)]
Merge "Add ability to modify default dialer via ADB" into mnc-dev
Alan Viverette [Mon, 1 Jun 2015 18:00:05 +0000 (18:00 +0000)]
Merge "Prevent crash when ColorStateList has unresolved attrs" into mnc-dev
Chris Craik [Mon, 1 Jun 2015 17:39:36 +0000 (10:39 -0700)]
Fix RenderScript copy tracing sections
bug:
21560057
Change-Id: I3b44d04bd908d9549ef7ada5f48f5d94e239d186
Yin-Chia Yeh [Mon, 1 Jun 2015 17:53:40 +0000 (17:53 +0000)]
Merge "Camera2: Add missing LEGACY available keys" into mnc-dev