107924 Commits

Author SHA1 Message Date
Adam Powell
2be7ec671b Add View methods isAttachedToWindow and hasLayout
isAttachedToWindow does what it says on the label and provides a
standard, public API for checking a view's attachment state. This
removes the need for tracking this out of band in response to
onAttachedToWindow/onDetachedFromWindow in custom view
implementations.

hasLayout returns true whenever the view has been through at least one
call to layout() since the last time it was attached to or detached
from a window. This allows for standard checks in code that needs to
behave differently if first layout has not completed yet, such as
whether or not to no-op an animation in order to set up initial state.

Change-Id: I8dab70dcd5a22a32e260ed50987ccdaa4100072b
2013-06-10 16:28:35 -07:00
Scott Main
938e8b67c2 am d731c902: am f0380a26: am 343f581d: Merge "fix typo and clarify class references in database lesson bug: 9372560" into jb-mr1.1-ub-dev
* commit 'd731c902408b0a86deb8fce04b8391bec756f498':
  fix typo and clarify class references in database lesson bug: 9372560
2013-06-10 16:19:13 -07:00
Scott Main
d731c90240 am f0380a26: am 343f581d: Merge "fix typo and clarify class references in database lesson bug: 9372560" into jb-mr1.1-ub-dev
* commit 'f0380a267c8ae9c351d5799752fe5fdb9b210800':
  fix typo and clarify class references in database lesson bug: 9372560
2013-06-10 16:17:45 -07:00
Scott Main
f0380a267c am 343f581d: Merge "fix typo and clarify class references in database lesson bug: 9372560" into jb-mr1.1-ub-dev
* commit '343f581de20c9a7ddeb69271e6c1e19c2f417b19':
  fix typo and clarify class references in database lesson bug: 9372560
2013-06-10 16:16:33 -07:00
Scott Main
343f581de2 Merge "fix typo and clarify class references in database lesson bug: 9372560" into jb-mr1.1-ub-dev 2013-06-10 23:14:32 +00:00
Baligh Uddin
45bd14ffb2 Import translations. DO NOT MERGE
Change-Id: Iaa894cf0f19b3e153c980a9a48a92beb361124ec
Auto-generated-cl: translation import
2013-06-10 15:19:01 -07:00
Ashish Sharma
89581aef18 Do not allow 0 or smaller periodicity for syncs.
b/9295383

Change-Id: I5f758f4a033d74e42a04b214a6b70b94d394280d
(cherry picked from commit 4970974d74a2986a333e645a5c141ef5f9a753cc)
2013-06-10 15:18:49 -07:00
John Spurlock
e18b34d003 Save Notification large icon to extras.
This piece of semantic info was defined, cleared properly on
lightenPayload, but never saved.

Change-Id: Ib2c5372a57d2a01617e401231c150260d22b05d6
2013-06-10 15:18:36 -07:00
Chris Craik
cc65fbc2da Workaround possible use after delete
bug:9321162
Change-Id: Ic35af5b5925da56e9a143e6b33658831038f3b72
2013-06-10 15:18:19 -07:00
Daniel Sandler
9698fa4c38 Do not block notifications or toasts for SYSTEM_UID or PHONE_UID.
The specific bug is this: SIM PIN unlock attempt toasts are
sent from com.android.settings/.IccLockSettings which runs
as the phone process; NoMan wasn't having any of that and
was blocking the toasts.

With this change we treat SYSTEM_UID and PHONE_UID the same
for all security checks, and furthermore we guarantee that
all notifications and toasts from those UIDs will be
permitted.

Bug: 9098802
Change-Id: Idc788527aa2cb38e015fe92773766a514167999e
2013-06-10 15:18:04 -07:00
Romain Guy
3ad5dfda32 Don't orphan footers with transient state
Bug #8725945

Selecting text in an EditText causes the View to have transient
state. This would in turn cause the View to be removed from its
ListView parent. When removed, the EditText would lose its
AttachInfo, causing all sorts of problems. Headers and footers
must not be removed, only detached. This is the part of the fix
in AbsListView.

Fixing AbsListView triggered a second bug: when a View is removed
from the Window manager, it would keep its parent assigned, thus
making it impossible to add it again to the window manager. When
a ViewRootImpl goes through doDie(), it must set its content view's
parent to null to properly cleanup.

Change-Id: I0489daa74f8f7fcf85526f0928f8925ec30d4f42
2013-06-10 15:17:48 -07:00
Jeff Sharkey
9e87efbb00 Avoid logging sensitive data.
When building commands to send across NativeDaemonConnector, scrub
sensitive arguments to prevent them from being logged.

Bug: 8609800
Change-Id: I84b16791749264a010f7e59f9918f68d71bac6b9
2013-06-10 15:17:32 -07:00
Marco Nelissen
ecba2e4b95 Unhide MediaExtractor.getPsshInfo()
b/9373882

Change-Id: I2af42656d6a7eb19e8e9ec798b615dab0d9d33cb
2013-06-10 15:06:28 -07:00
Scott Main
dc74caa7e8 add ViewGroup's layoutMode attribute to public resources
bug: 9359960

Change-Id: I9d3d45c6494ded12170c88f5080bbb0a58d0fd74
2013-06-10 14:51:37 -07:00
Chet Haase
aa660a04a7 Merge "Add dynamic scene creation/transition capability" 2013-06-10 21:07:41 +00:00
Baligh Uddin
ebb17713da Merge "Import translations. DO NOT MERGE" into jb-mr2-dev 2013-06-10 21:07:18 +00:00
Chet Haase
4f5072327d Add dynamic scene creation/transition capability
Add TransitionManager.beginDelayedTransition() to handle starting a transition
on the next frame for a given scene root based on all changes that
take place between the first call to that method and the next animation frame.

Issue #9321937 Transitions: consider batching up multiple scene actions

Change-Id: I3fc92b6b4ec5ff42b1e678bcfd385703e32eba2a
2013-06-10 14:06:14 -07:00
Craig Mautner
4985311b86 Merge "Don't change task type for launcher activities." 2013-06-10 20:57:17 +00:00
Craig Mautner
7873300a2b Don't change task type for launcher activities.
When the launcher starts a new activity don't let it change the task
type. This would cause the stacks to get confused.

Fixes bug 9323103.

Change-Id: Ie1d9c3bf85461827c7255e68003f11ed5a38f63b
2013-06-10 13:54:49 -07:00
Scott Main
802254faa1 fix typo and clarify class references in database lesson
bug: 9372560

Change-Id: I703c4196a026cb0b1469ee55491ee674868768ca
2013-06-10 13:54:37 -07:00
Amith Yamasani
3df2172215 Hide "Take bugreport" for secondary users
In QuickSettings and GlobalActions.

Bug: 9304471
Change-Id: Ia3118b3258b1f6983c47e96168b7b875b6fc798b
2013-06-10 13:45:10 -07:00
John Spurlock
f24e16aaf9 Merge "Save Notification large icon to extras." 2013-06-10 20:39:19 +00:00
Ashish Sharma
58100fb813 Merge "Do not allow 0 or smaller periodicity for syncs. b/9295383" into jb-mr2-dev 2013-06-10 20:15:59 +00:00
John Spurlock
a9221987c0 Merge "Save Notification large icon to extras." into jb-mr2-dev 2013-06-10 20:11:19 +00:00
Svetoslav
6b1d5a4ff2 Merge "Notification for changed subtree in accessibility mode not fired properly." 2013-06-10 19:55:39 +00:00
Svetoslav
00dbe81fea Notification for changed subtree in accessibility mode not fired properly.
We fire notifications that the a view subtree changed for accessibility.
In some cases the notifications were fired if accessibility is not
enabled. This is now fixed. Also the runnable for making the recurring
subtree change was not dequeued if it was pending but we received a
request which we decided to run immediately.

bug:9337912

Change-Id: I27401b3d11f81c653e8761a704ee530263b08c3a
2013-06-10 12:51:14 -07:00
Craig Mautner
6a7e5c28a4 Merge "Dismiss immediately to maintain consistent state." 2013-06-10 19:21:27 +00:00
Scott Main
fe7c2220a1 Merge "add NA message for any "signature" level permissions" into jb-mr2-dev 2013-06-10 19:21:17 +00:00
John Spurlock
c133ab8258 Log errors found in notification listener callbacks.
Otherwise, exceptions thrown inside listener callbacks are
not logged at all.

Change-Id: Iaef28e06abc4d6caf66051725e14a17ac954173e
2013-06-10 15:16:22 -04:00
Ashish Sharma
59dc7a8e75 Do not allow 0 or smaller periodicity for syncs.
b/9295383

Change-Id: I5f758f4a033d74e42a04b214a6b70b94d394280d
(cherry picked from commit 4970974d74a2986a333e645a5c141ef5f9a753cc)
2013-06-10 19:14:52 +00:00
Chris Craik
cb5d644fb8 Merge "Workaround possible use after delete" into jb-mr2-dev 2013-06-10 19:12:19 +00:00
Ashish Sharma
2983acc008 Merge "Do not allow 0 or smaller periodicity for syncs. b/9295383" 2013-06-10 19:05:28 +00:00
Scott Main
93e60b5b26 add NA message for any "signature" level permissions
Change-Id: If76e9e3b7ffc5d97422321db312a03869c407f08
2013-06-10 12:03:07 -07:00
Craig Mautner
92098c7c30 Dismiss immediately to maintain consistent state.
Fix bug introduced by deferring nulling of mParent.

In dismissDialog the removal was being put on a queue while the
state of the Dialog was being updated immediately. This meant that
if a show() was called before the remove was executed it would try
and add the DecorView a second time. Boom!

Fixes bug 9370301.

Change-Id: I576d1e207c786bc2e21dfd40cb94f2b63a020fe2
2013-06-10 11:39:21 -07:00
Daniel Sandler
4e5694aaa7 Merge "Do not block notifications or toasts for SYSTEM_UID or PHONE_UID." into jb-mr2-dev 2013-06-10 18:31:51 +00:00
Chris Craik
9abddd54d4 Workaround possible use after delete
bug:9321162
Change-Id: Ic35af5b5925da56e9a143e6b33658831038f3b72
2013-06-10 11:30:37 -07:00
Ashish Sharma
4970974d74 Do not allow 0 or smaller periodicity for syncs.
b/9295383

Change-Id: I5f758f4a033d74e42a04b214a6b70b94d394280d
2013-06-10 11:29:37 -07:00
Romain Guy
f38fd87844 am 7a6e1297: am 8d8fc469: Merge "Don\'t orphan footers with transient state Bug #8725945" into jb-mr2-dev
* commit '7a6e129759672f0c1b0ce462d389c0f469e7348f':
  Don't orphan footers with transient state Bug #8725945
2013-06-10 11:12:09 -07:00
The Android Open Source Project
b2765e7d9a am b72a2204: (-s ours) Reconcile with jb-mr2-zeroday-release - do not merge
* commit 'b72a2204113804855d4e64c8e8f5f1d1598c7f50':
2013-06-10 11:11:55 -07:00
Kenny Root
3606254a50 resolved conflicts for merge of e96a8207 to master
Change-Id: I90801b35ed0c00078a47faadc7fbb05d2e5fe381
2013-06-10 11:09:28 -07:00
Romain Guy
7a6e129759 am 8d8fc469: Merge "Don\'t orphan footers with transient state Bug #8725945" into jb-mr2-dev
* commit '8d8fc469952ffe3feb45e52388f2129f8dd5e40c':
  Don't orphan footers with transient state Bug #8725945
2013-06-10 10:26:57 -07:00
Romain Guy
8d8fc46995 Merge "Don't orphan footers with transient state Bug #8725945" into jb-mr2-dev 2013-06-10 17:23:25 +00:00
Wink Saville
45ac9645da Allow carrier provisioning to turn toggle radio power.
Previously CarrierProvisioning toggle airplane mode, but now that's
available only by the system.

Bug: 9356811
Change-Id: I5167f8614c07bafb688983a360a008f76403b2b8
2013-06-10 10:10:42 -07:00
Daniel Sandler
7c011302b6 Do not block notifications or toasts for SYSTEM_UID or PHONE_UID.
The specific bug is this: SIM PIN unlock attempt toasts are
sent from com.android.settings/.IccLockSettings which runs
as the phone process; NoMan wasn't having any of that and
was blocking the toasts.

With this change we treat SYSTEM_UID and PHONE_UID the same
for all security checks, and furthermore we guarantee that
all notifications and toasts from those UIDs will be
permitted.

Bug: 9098802
Change-Id: Idc788527aa2cb38e015fe92773766a514167999e
2013-06-10 12:19:16 -04:00
John Spurlock
bf563368e1 Save Notification large icon to extras.
This piece of semantic info was defined, cleared properly on
lightenPayload, but never saved.

Change-Id: Ib2c5372a57d2a01617e401231c150260d22b05d6
2013-06-10 11:45:17 -04:00
John Spurlock
ac08a4745e Save Notification large icon to extras.
This piece of semantic info was defined, cleared properly on
lightenPayload, but never saved.

Change-Id: I41fb5f836f9afe2be5407f292bd6b5e02dfc9cb3
2013-06-10 11:37:08 -04:00
Baligh Uddin
93b79fd410 Import translations. DO NOT MERGE
Change-Id: Ieae6313e43826f41d8a1ebef998ff4495184d1d1
Auto-generated-cl: translation import
2013-06-10 08:24:15 -07:00
The Android Open Source Project
b72a220411 Reconcile with jb-mr2-zeroday-release - do not merge
Change-Id: I40b8952e805164e6d984273872241dc6be2ad80a
2013-06-10 08:13:45 -07:00
Baligh Uddin
da31a83d64 Import translations. DO NOT MERGE
Change-Id: I0218059fd7c9f3f680110d4da707408fc6dcfc9c
Auto-generated-cl: translation import
2013-06-10 08:06:05 -07:00
Baligh Uddin
eca9982412 Import translations. DO NOT MERGE
Change-Id: Iaa894cf0f19b3e153c980a9a48a92beb361124ec
Auto-generated-cl: translation import
2013-06-10 07:52:12 -07:00